diff --git a/main.ts b/main.ts index f210afe..f51f061 100644 --- a/main.ts +++ b/main.ts @@ -56,10 +56,10 @@ function initStandaloneApp(viewer: vizarr.VizarrViewer) { } } -function main() { +async function main() { console.log(`vizarr v${vizarr.version}: https://github.com/hms-dbmi/vizarr`); - const viewer = vizarr.createViewer(document.querySelector('#root')!); + const viewer = await vizarr.createViewer(document.querySelector('#root')!); // enable imjoy api when loaded as an iframe if (window.self !== window.top) { diff --git a/package-lock.json b/package-lock.json index 21c5a24..c6510cf 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,25 +8,26 @@ "name": "@hms-dbmi/vizarr", "version": "0.3.0", "dependencies": { - "@hms-dbmi/viv": "^0.13.0", + "@hms-dbmi/viv": "^0.16.0", "@material-ui/core": "^4.11.0", "@material-ui/icons": "^4.9.1", - "deck.gl": "^8.6.7", + "deck.gl": "^8.9.34", "imjoy-rpc": "^0.2.23", "jotai": "^1.0.0", "just-debounce-it": "^3.1.1", "mitt": "^3.0.0", "p-map": "^5.5.0", "quick-lru": "^6.0.0", - "react": "^17.0.1", - "react-dom": "^17.0.1", + "react": "^18.2.0", + "react-dom": "^18.2.0", "reference-spec-reader": "^0.1.1", "zarr": "^0.5.2" }, "devDependencies": { "@danmarshall/deckgl-typings": "^4.3.10", "@types/node": "^14.14.5", - "@types/react-dom": "^17.0.0", + "@types/react": "^18.2.51", + "@types/react-dom": "^18.2.18", "@vitejs/plugin-react": "^3.1.0", "prettier": "^2.2.0", "typescript": "^4.9.5", @@ -413,12 +414,13 @@ } }, "node_modules/@deck.gl/aggregation-layers": { - "version": "8.8.26", - "resolved": "https://registry.npmjs.org/@deck.gl/aggregation-layers/-/aggregation-layers-8.8.26.tgz", - "integrity": "sha512-DBYOUT4c3rtvr2AlS4UPdpv43GdEiP5cPMmLFOMQy1yN6ZiTYh4SsDEq+4u3FHRiH9PQl8VMHmTVLwcHarnNrQ==", + "version": "8.9.34", + "resolved": "https://registry.npmjs.org/@deck.gl/aggregation-layers/-/aggregation-layers-8.9.34.tgz", + "integrity": "sha512-/JEDlj5MNFX8yHWPO5ljooGMdA2EPuZydbT6wrQD1WMydgp8dcEF+zVRLXTDWH1Mq+HLj6JHT1IhENHXN5TZFA==", "dependencies": { - "@luma.gl/constants": "^8.5.16", - "@luma.gl/shadertools": "^8.5.16", + "@babel/runtime": "^7.0.0", + "@luma.gl/constants": "^8.5.21", + "@luma.gl/shadertools": "^8.5.21", "@math.gl/web-mercator": "^3.6.2", "d3-hexbin": "^0.2.1" }, @@ -429,15 +431,16 @@ } }, "node_modules/@deck.gl/carto": { - "version": "8.8.26", - "resolved": "https://registry.npmjs.org/@deck.gl/carto/-/carto-8.8.26.tgz", - "integrity": "sha512-K8hRXGAXyZyRsRTKMCZJhhdMZmdDUmKukg/ra7XSdFt879LwPB4OwZ/j6ccd+EXz97bgNURSERRH4FMKHPr6tA==", - "dependencies": { - "@loaders.gl/gis": "^3.2.10", - "@loaders.gl/loader-utils": "^3.2.10", - "@loaders.gl/mvt": "^3.2.10", - "@loaders.gl/tiles": "^3.2.10", - "@luma.gl/constants": "^8.5.16", + "version": "8.9.34", + "resolved": "https://registry.npmjs.org/@deck.gl/carto/-/carto-8.9.34.tgz", + "integrity": "sha512-LJe2Ipd8AKCL1GQiAHRmwa3ubVrlpHVaSAscwGUt5fnFM0J4gTIk5LysTwXBxg5owyCEd4yOgXK3m1PZ+CHu3w==", + "dependencies": { + "@babel/runtime": "^7.0.0", + "@loaders.gl/gis": "^3.4.13", + "@loaders.gl/loader-utils": "^3.4.13", + "@loaders.gl/mvt": "^3.4.13", + "@loaders.gl/tiles": "^3.4.13", + "@luma.gl/constants": "^8.5.21", "@math.gl/web-mercator": "^3.6.2", "cartocolor": "^4.0.2", "d3-array": "^3.2.0", @@ -447,7 +450,7 @@ "h3-js": "^3.7.0", "moment-timezone": "^0.5.33", "pbf": "^3.2.1", - "quadbin": "^0.1.2" + "quadbin": "^0.1.9" }, "peerDependencies": { "@deck.gl/aggregation-layers": "^8.0.0", @@ -455,18 +458,20 @@ "@deck.gl/extensions": "^8.0.0", "@deck.gl/geo-layers": "^8.0.0", "@deck.gl/layers": "^8.0.0", - "@loaders.gl/core": "^3.0.0" + "@loaders.gl/core": "^3.4.13" } }, "node_modules/@deck.gl/core": { - "version": "8.8.26", - "resolved": "https://registry.npmjs.org/@deck.gl/core/-/core-8.8.26.tgz", - "integrity": "sha512-CqhTo9ZXNn/rWdPa56FjZCPvmCjIA7Tzd3k+cS8Fn6bHYwYaXpPaHH5MStJd52xI1wfNBgCgQdHLE51aMUHeQg==", - "dependencies": { - "@loaders.gl/core": "^3.2.10", - "@loaders.gl/images": "^3.2.10", - "@luma.gl/constants": "^8.5.16", - "@luma.gl/core": "^8.5.16", + "version": "8.9.34", + "resolved": "https://registry.npmjs.org/@deck.gl/core/-/core-8.9.34.tgz", + "integrity": "sha512-VDne26NevBBvD9Xq6pIBuBt2ffZhzW1COU3IogqhJLhejECiC3RQhWtDRWQqUZpQYKTU2SlyKZcu+Nj7kaLBWA==", + "dependencies": { + "@babel/runtime": "^7.0.0", + "@loaders.gl/core": "^3.4.13", + "@loaders.gl/images": "^3.4.13", + "@luma.gl/constants": "^8.5.21", + "@luma.gl/core": "^8.5.21", + "@luma.gl/webgl": "^8.5.21", "@math.gl/core": "^3.6.2", "@math.gl/sun": "^3.6.2", "@math.gl/web-mercator": "^3.6.2", @@ -479,33 +484,38 @@ } }, "node_modules/@deck.gl/extensions": { - "version": "8.8.26", - "resolved": "https://registry.npmjs.org/@deck.gl/extensions/-/extensions-8.8.26.tgz", - "integrity": "sha512-ZFWLxRQfiVCwjpUSmKuLD2nNUI9QHRecMeWNdD6p2FH7piRnkYskRGRWnHGfqcp/ZBOR247ljoR9VkTTmPq/ig==", + "version": "8.9.34", + "resolved": "https://registry.npmjs.org/@deck.gl/extensions/-/extensions-8.9.34.tgz", + "integrity": "sha512-at2CSs1TXgOM035LWf+fk03r8yXMnokFBVd0QXlECj1izdBvehvhC7npgpqUJooKg0UMWmqUYkUH3uSrkfyIeA==", "dependencies": { - "@luma.gl/shadertools": "^8.5.16" + "@babel/runtime": "^7.0.0", + "@luma.gl/shadertools": "^8.5.21" }, "peerDependencies": { "@deck.gl/core": "^8.0.0", "@luma.gl/constants": "^8.0.0", "@luma.gl/core": "^8.0.0", + "@math.gl/core": "^3.6.2", + "@math.gl/web-mercator": "^3.6.2", "gl-matrix": "^3.0.0" } }, "node_modules/@deck.gl/geo-layers": { - "version": "8.8.26", - "resolved": "https://registry.npmjs.org/@deck.gl/geo-layers/-/geo-layers-8.8.26.tgz", - "integrity": "sha512-i77fu13BZjsw3enwu2yOus8i6pgm9aT8uvf0oKaXQzY3yFkU3705aphMMAvos5mGPGll0/U7YnFMiPuwHZbWww==", - "dependencies": { - "@loaders.gl/3d-tiles": "^3.2.10", - "@loaders.gl/gis": "^3.2.10", - "@loaders.gl/loader-utils": "^3.2.10", - "@loaders.gl/mvt": "^3.2.10", - "@loaders.gl/schema": "^3.2.10", - "@loaders.gl/terrain": "^3.2.10", - "@loaders.gl/tiles": "^3.2.10", - "@luma.gl/constants": "^8.5.16", - "@luma.gl/experimental": "^8.5.16", + "version": "8.9.34", + "resolved": "https://registry.npmjs.org/@deck.gl/geo-layers/-/geo-layers-8.9.34.tgz", + "integrity": "sha512-oXOdNByo8QHNrqjREeIX0btVzsj3aFzJcplatBpdLg6vr/iV8ZdsbRv8WO4CJJI3N6oVKIug2gHWogdIjpxHTg==", + "dependencies": { + "@babel/runtime": "^7.0.0", + "@loaders.gl/3d-tiles": "^3.4.13", + "@loaders.gl/gis": "^3.4.13", + "@loaders.gl/loader-utils": "^3.4.13", + "@loaders.gl/mvt": "^3.4.13", + "@loaders.gl/schema": "^3.4.13", + "@loaders.gl/terrain": "^3.4.13", + "@loaders.gl/tiles": "^3.4.13", + "@loaders.gl/wms": "^3.4.13", + "@luma.gl/constants": "^8.5.21", + "@luma.gl/experimental": "^8.5.21", "@math.gl/core": "^3.6.2", "@math.gl/culling": "^3.6.2", "@math.gl/web-mercator": "^3.6.2", @@ -518,26 +528,30 @@ "@deck.gl/extensions": "^8.0.0", "@deck.gl/layers": "^8.0.0", "@deck.gl/mesh-layers": "^8.0.0", - "@loaders.gl/core": "^3.0.0", + "@loaders.gl/core": "^3.4.13", "@luma.gl/core": "^8.0.0" } }, "node_modules/@deck.gl/google-maps": { - "version": "8.8.26", - "resolved": "https://registry.npmjs.org/@deck.gl/google-maps/-/google-maps-8.8.26.tgz", - "integrity": "sha512-BCvAaZwJ0PxdXEsO4xdYiPVZTOuop/NBwERBFKdukAY1EJUFsi9owoYAPco/YmQ8FTRlBJ29HdIU0iYfn/aGYQ==", + "version": "8.9.34", + "resolved": "https://registry.npmjs.org/@deck.gl/google-maps/-/google-maps-8.9.34.tgz", + "integrity": "sha512-w3MjIPHtEfV4/4TCa07mgqzxlZ7UV03xRRCdJE0iWiFTwIUcEFxFKZgyZV+4cinaf2gp53tVpcBZD6nHDPr33Q==", + "dependencies": { + "@babel/runtime": "^7.0.0" + }, "peerDependencies": { "@deck.gl/core": "^8.0.0", - "@luma.gl/constants": "^8.5.16", - "@luma.gl/core": "^8.5.16", + "@luma.gl/constants": "^8.5.0", + "@luma.gl/core": "^8.5.0", "@math.gl/core": "^3.6.0" } }, "node_modules/@deck.gl/json": { - "version": "8.8.26", - "resolved": "https://registry.npmjs.org/@deck.gl/json/-/json-8.8.26.tgz", - "integrity": "sha512-VL4TS97IY//r5L/SbaSh7WjUkLjrIBss4pF3tUkdwfsliyKoCk7pjz2QT0RtQ5ms5+n5nQ/5+yFa7o/Wu/1h8g==", + "version": "8.9.34", + "resolved": "https://registry.npmjs.org/@deck.gl/json/-/json-8.9.34.tgz", + "integrity": "sha512-+Svypau/H5B7dOUVW5iDOCRowqRNKQMGHSDUoSVcTcEV9Ca0vex9LeWmWWVUwYc6o1RcpyPi38TTyZdRe14sKw==", "dependencies": { + "@babel/runtime": "^7.0.0", "d3-dsv": "^1.0.8", "expression-eval": "^2.0.0" }, @@ -546,30 +560,32 @@ } }, "node_modules/@deck.gl/layers": { - "version": "8.8.26", - "resolved": "https://registry.npmjs.org/@deck.gl/layers/-/layers-8.8.26.tgz", - "integrity": "sha512-lY6uKv6j2OgmD9AvUY8qovBsiO6WHX0hALlnIWtRVU2Pt+TQBmOBhlhnX4LmhsPKKs19yOQesB4w0+a6ALnI/Q==", - "dependencies": { - "@loaders.gl/images": "^3.2.10", - "@loaders.gl/schema": "^3.2.10", - "@luma.gl/constants": "^8.5.16", - "@mapbox/tiny-sdf": "^1.1.0", + "version": "8.9.34", + "resolved": "https://registry.npmjs.org/@deck.gl/layers/-/layers-8.9.34.tgz", + "integrity": "sha512-kc9Wzk8Zf2XwdG/V0Md6dh6mlJjStkWHKCKQLJOwj9GDwP4KihzYY2xC98CMCgi2/H/lH03xYm3e5EHvwIENww==", + "dependencies": { + "@babel/runtime": "^7.0.0", + "@loaders.gl/images": "^3.4.13", + "@loaders.gl/schema": "^3.4.13", + "@luma.gl/constants": "^8.5.21", + "@mapbox/tiny-sdf": "^2.0.5", "@math.gl/core": "^3.6.2", "@math.gl/polygon": "^3.6.2", "@math.gl/web-mercator": "^3.6.2", - "earcut": "^2.0.6" + "earcut": "^2.2.4" }, "peerDependencies": { "@deck.gl/core": "^8.0.0", - "@loaders.gl/core": "^3.0.0", + "@loaders.gl/core": "^3.4.13", "@luma.gl/core": "^8.0.0" } }, "node_modules/@deck.gl/mapbox": { - "version": "8.8.26", - "resolved": "https://registry.npmjs.org/@deck.gl/mapbox/-/mapbox-8.8.26.tgz", - "integrity": "sha512-0oYHPusfn/gC4W21GpdNNDnloUqVsXxI4I4Ve9sJvAAlfYRb+A3p6u40lBH/NVS9BrmCaMMtdt+YYMKUIcwBnw==", + "version": "8.9.34", + "resolved": "https://registry.npmjs.org/@deck.gl/mapbox/-/mapbox-8.9.34.tgz", + "integrity": "sha512-3s34yFRmTe1KUK8TDWGw+1jATHwOpxpTrMjSWSZpR9AMqZ6ykOAkCziAUD4T+KgpqzzP5QJn+twt0mxPBoQ3eg==", "dependencies": { + "@babel/runtime": "^7.0.0", "@types/mapbox-gl": "^2.6.3" }, "peerDependencies": { @@ -577,14 +593,15 @@ } }, "node_modules/@deck.gl/mesh-layers": { - "version": "8.8.26", - "resolved": "https://registry.npmjs.org/@deck.gl/mesh-layers/-/mesh-layers-8.8.26.tgz", - "integrity": "sha512-Wkg4T627JQWyQiEW4dY/mVINNMJWMDPr1EmH9vybRFJmQuOPmt6yDQ0OKyv1ojI8xaXVDfP5z+lFY/q+g/cpow==", + "version": "8.9.34", + "resolved": "https://registry.npmjs.org/@deck.gl/mesh-layers/-/mesh-layers-8.9.34.tgz", + "integrity": "sha512-BJClDfB86+zgWOyXjLNfVBgZ8BlaSXWDHWj0vS7UuV79h/6PAdwMBfi28/PNO9A89cCtUd94MkB73G0ni56iTA==", "dependencies": { - "@loaders.gl/gltf": "^3.2.10", - "@luma.gl/constants": "^8.5.16", - "@luma.gl/experimental": "^8.5.16", - "@luma.gl/shadertools": "^8.5.16" + "@babel/runtime": "^7.0.0", + "@loaders.gl/gltf": "^3.4.13", + "@luma.gl/constants": "^8.5.21", + "@luma.gl/experimental": "^8.5.21", + "@luma.gl/shadertools": "^8.5.21" }, "peerDependencies": { "@deck.gl/core": "^8.0.0", @@ -592,9 +609,12 @@ } }, "node_modules/@deck.gl/react": { - "version": "8.8.26", - "resolved": "https://registry.npmjs.org/@deck.gl/react/-/react-8.8.26.tgz", - "integrity": "sha512-5W6WBRd9u+vDs5mzeOfyCi5gsmv0seeDQTg7ZYrKdv+m2DRXHJtc785w96j4mmkylJZbnQ4YAPKShIq00+kjwQ==", + "version": "8.9.34", + "resolved": "https://registry.npmjs.org/@deck.gl/react/-/react-8.9.34.tgz", + "integrity": "sha512-kelU3otxmEtNYQ7gVrVSLvju+StuqqSkDrcJU82igjNalOvjjPGst1H7blQTgk1lEbfHNeddusIYGipefyuImw==", + "dependencies": { + "@babel/runtime": "^7.0.0" + }, "peerDependencies": { "@deck.gl/core": "^8.0.0", "@types/react": ">= 16.3", @@ -960,17 +980,17 @@ } }, "node_modules/@hms-dbmi/viv": { - "version": "0.13.6", - "resolved": "https://registry.npmjs.org/@hms-dbmi/viv/-/viv-0.13.6.tgz", - "integrity": "sha512-CeP/qehola+vGi4okZV6/TcuzUW4CHa6noWvqq63N/JLhox1HSn0J2qu/Eduj7wpsX+Tvibk2eXV6K8GbiXm5A==", + "version": "0.16.0", + "resolved": "https://registry.npmjs.org/@hms-dbmi/viv/-/viv-0.16.0.tgz", + "integrity": "sha512-cYLo2Vnmy7AnxljuLR1KsivGuXaYPooRAIncTenXXrWqygPYvyCYcWgJ+PUnSsB6KbEnibyRjOKjJ6ZGkMXccw==", "dependencies": { - "@vivjs/constants": "0.13.6", - "@vivjs/extensions": "0.13.6", - "@vivjs/layers": "0.13.6", - "@vivjs/loaders": "0.13.6", - "@vivjs/types": "0.13.6", - "@vivjs/viewers": "0.13.6", - "@vivjs/views": "0.13.6" + "@vivjs/constants": "0.16.0", + "@vivjs/extensions": "0.16.0", + "@vivjs/layers": "0.16.0", + "@vivjs/loaders": "0.16.0", + "@vivjs/types": "0.16.0", + "@vivjs/viewers": "0.16.0", + "@vivjs/views": "0.16.0" } }, "node_modules/@jridgewell/gen-mapping": { @@ -1021,194 +1041,265 @@ } }, "node_modules/@loaders.gl/3d-tiles": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/@loaders.gl/3d-tiles/-/3d-tiles-3.3.1.tgz", - "integrity": "sha512-rhDjA/23w7VmWWv+2IduhvKFr2dxUDEs20w3BOBuN8HZG7BccrV/ffJwGHibn9/1SdzHhqUrrSXWNwkcKdFUvA==", - "dependencies": { - "@loaders.gl/draco": "3.3.1", - "@loaders.gl/gltf": "3.3.1", - "@loaders.gl/loader-utils": "3.3.1", - "@loaders.gl/math": "3.3.1", - "@loaders.gl/tiles": "3.3.1", + "version": "3.4.14", + "resolved": "https://registry.npmjs.org/@loaders.gl/3d-tiles/-/3d-tiles-3.4.14.tgz", + "integrity": "sha512-cxStTSLIJgRZnkTBYTcp9FPVBQWQlJMzW1LRlaKWiwAHkOKBElszzApIIEvRvZGSrs8k8TUi6BJ1Y41iiANF7w==", + "dependencies": { + "@loaders.gl/draco": "3.4.14", + "@loaders.gl/gltf": "3.4.14", + "@loaders.gl/loader-utils": "3.4.14", + "@loaders.gl/math": "3.4.14", + "@loaders.gl/tiles": "3.4.14", "@math.gl/core": "^3.5.1", - "@math.gl/geospatial": "^3.5.1" + "@math.gl/geospatial": "^3.5.1", + "long": "^5.2.1" }, "peerDependencies": { - "@loaders.gl/core": "^3.2.0" + "@loaders.gl/core": "^3.4.0" } }, + "node_modules/@loaders.gl/3d-tiles/node_modules/long": { + "version": "5.2.3", + "resolved": "https://registry.npmjs.org/long/-/long-5.2.3.tgz", + "integrity": "sha512-lcHwpNoggQTObv5apGNCTdJrO69eHOZMi4BNC+rTLER8iHAqGrUVeLh/irVIM7zTw2bOXA8T6uNPeujwOLg/2Q==" + }, "node_modules/@loaders.gl/core": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/@loaders.gl/core/-/core-3.3.1.tgz", - "integrity": "sha512-molMKfNbg/6T705VCW2XOKcXPfYZGj9XimQ6YVE4bSN+wwGpkni63ABuqndUllVga98CBZUBZplCQ0ljg6Bv3A==", + "version": "3.4.14", + "resolved": "https://registry.npmjs.org/@loaders.gl/core/-/core-3.4.14.tgz", + "integrity": "sha512-5PFcjv7xC8AYL17juDMrvo8n0Fcwg9s8F4BaM2YCNUsb9RCI2SmLuIFJMcx1GgHO5vL0WiTIKO+JT4n1FuNR6w==", "dependencies": { "@babel/runtime": "^7.3.1", - "@loaders.gl/loader-utils": "3.3.1", - "@loaders.gl/worker-utils": "3.3.1", - "@probe.gl/log": "^3.5.0" + "@loaders.gl/loader-utils": "3.4.14", + "@loaders.gl/worker-utils": "3.4.14", + "@probe.gl/log": "^4.0.1" + } + }, + "node_modules/@loaders.gl/core/node_modules/@probe.gl/env": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/@probe.gl/env/-/env-4.0.4.tgz", + "integrity": "sha512-sYNGqesDfWD6dFP5oNZtTeFA4Z6ak5T4a8BNPdNhoqy7PK9w70JHrb6mv+RKWqKXq33KiwCDWL7fYxx2HuEH2w==", + "dependencies": { + "@babel/runtime": "^7.0.0" + } + }, + "node_modules/@loaders.gl/core/node_modules/@probe.gl/log": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/@probe.gl/log/-/log-4.0.4.tgz", + "integrity": "sha512-WpmXl6njlBMwrm8HBh/b4kSp/xnY1VVmeT4PWUKF+RkVbFuKQbsU11dA1IxoMd7gSY+5DGIwxGfAv1H5OMzA4A==", + "dependencies": { + "@babel/runtime": "^7.0.0", + "@probe.gl/env": "4.0.4" } }, "node_modules/@loaders.gl/draco": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/@loaders.gl/draco/-/draco-3.3.1.tgz", - "integrity": "sha512-O73j+HpuKXhsoaD6jxYf1m8RDaE73eKWiBRwj8ExkhtFFmCnI02ERNuPhSbt7oN9xjEBuAuLBN2DpBtayKLhcA==", + "version": "3.4.14", + "resolved": "https://registry.npmjs.org/@loaders.gl/draco/-/draco-3.4.14.tgz", + "integrity": "sha512-HwNFFt+dKZqFtzI0uVGvRkudFEZXxybJ+ZRsNkBbzAWoMM5L1TpuLs6DPsqPQUIT9HXNHzov18cZI0gK5bTJpg==", "dependencies": { "@babel/runtime": "^7.3.1", - "@loaders.gl/loader-utils": "3.3.1", - "@loaders.gl/schema": "3.3.1", - "@loaders.gl/worker-utils": "3.3.1", + "@loaders.gl/loader-utils": "3.4.14", + "@loaders.gl/schema": "3.4.14", + "@loaders.gl/worker-utils": "3.4.14", "draco3d": "1.5.5" } }, "node_modules/@loaders.gl/gis": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/@loaders.gl/gis/-/gis-3.3.1.tgz", - "integrity": "sha512-Yzs84xMhPb8I4tjWYSGEso1SKwLF3dKY+C0AJbsUyL9zjljHcPSDjdHHdx6inBO+OoGjXr2HstPtPoaTyfKfaw==", + "version": "3.4.14", + "resolved": "https://registry.npmjs.org/@loaders.gl/gis/-/gis-3.4.14.tgz", + "integrity": "sha512-5cmhIwioPpSkfNzFRM3PbFDecjpYIhtEOFbryu3rE37npKHLTD2tF4ocQxUPB+QVED6GLwWBdzJIs64UWGrqjw==", "dependencies": { - "@loaders.gl/loader-utils": "3.3.1", - "@loaders.gl/schema": "3.3.1", + "@loaders.gl/loader-utils": "3.4.14", + "@loaders.gl/schema": "3.4.14", "@mapbox/vector-tile": "^1.3.1", "@math.gl/polygon": "^3.5.1", "pbf": "^3.2.1" } }, "node_modules/@loaders.gl/gltf": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/@loaders.gl/gltf/-/gltf-3.3.1.tgz", - "integrity": "sha512-FQgtA0DxtmZygRGCbQcgn6KzgwUgVzlyajVL+Lydo25qZ2MqafCdvGDQQaNz1bQSUtIReYKuOjig9YlycPYZaA==", - "dependencies": { - "@loaders.gl/draco": "3.3.1", - "@loaders.gl/images": "3.3.1", - "@loaders.gl/loader-utils": "3.3.1", - "@loaders.gl/textures": "3.3.1", + "version": "3.4.14", + "resolved": "https://registry.npmjs.org/@loaders.gl/gltf/-/gltf-3.4.14.tgz", + "integrity": "sha512-jv+B5S/taiwzXAOu5D9nk1jjU9+JCCr/6/nGguCE2Ya3IX7CI1Nlnp20eKKhW8ZCEokZavMNT0bNbiJ5ahEFjA==", + "dependencies": { + "@loaders.gl/draco": "3.4.14", + "@loaders.gl/images": "3.4.14", + "@loaders.gl/loader-utils": "3.4.14", + "@loaders.gl/textures": "3.4.14", "@math.gl/core": "^3.5.1" } }, "node_modules/@loaders.gl/images": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/@loaders.gl/images/-/images-3.3.1.tgz", - "integrity": "sha512-A3JgiPSmL/0D/u67+huXfOHg4pEU9BUMtboxmVc/F0jC/aueli6/Erlco4Bf0Ci4fy9+eApmHD4eKmFSamdNCw==", + "version": "3.4.14", + "resolved": "https://registry.npmjs.org/@loaders.gl/images/-/images-3.4.14.tgz", + "integrity": "sha512-tL447hTWhOKBOB87SE4hvlC8OkbRT0mEaW1a/wIS9f4HnYDa/ycRLMV+nvdvYMZur4isNPam44oiRqi7GcILkg==", "dependencies": { - "@loaders.gl/loader-utils": "3.3.1" + "@loaders.gl/loader-utils": "3.4.14" } }, "node_modules/@loaders.gl/loader-utils": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/@loaders.gl/loader-utils/-/loader-utils-3.3.1.tgz", - "integrity": "sha512-yp3ngZw4O9OY7O3d8DCFwsuwDGR4IlDqJCFp47CVS3crrpANBOP12hBZl1uLZJQ8KN1gFXp0tIQtp5/J2bv+Hg==", + "version": "3.4.14", + "resolved": "https://registry.npmjs.org/@loaders.gl/loader-utils/-/loader-utils-3.4.14.tgz", + "integrity": "sha512-HCTY2/F83RLbZWcTvWLVJ1vke3dl6Bye20HU1AqkA37J2vzHwOZ8kj6eee8eeSkIkf7VIFwjyhVJxe0flQE/Bw==", "dependencies": { "@babel/runtime": "^7.3.1", - "@loaders.gl/worker-utils": "3.3.1", - "@probe.gl/stats": "^3.5.0" + "@loaders.gl/worker-utils": "3.4.14", + "@probe.gl/stats": "^4.0.1" + } + }, + "node_modules/@loaders.gl/loader-utils/node_modules/@probe.gl/stats": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/@probe.gl/stats/-/stats-4.0.4.tgz", + "integrity": "sha512-SDuSY/D4yDL6LQDa69l/GCcnZLRiGYdyvYkxWb0CgnzTPdPrcdrzGkzkvpC3zsA4fEFw2smlDje370QGHwlisg==", + "dependencies": { + "@babel/runtime": "^7.0.0" } }, "node_modules/@loaders.gl/math": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/@loaders.gl/math/-/math-3.3.1.tgz", - "integrity": "sha512-s2ApdsxBsHqmZlopx3DOL2pav5S9iobdbAXD1ZEUWzTFcxcSIf0Z1CYIWKPBlUuzRJYaqd5fxHewfC4Er4sF5A==", + "version": "3.4.14", + "resolved": "https://registry.npmjs.org/@loaders.gl/math/-/math-3.4.14.tgz", + "integrity": "sha512-OBEVX6Q5pMipbCAiZyX2+q1zRd0nw8M2dclpny05on8700OaKMwfs47wEUnbfCU3iyHad3sgsAxN3EIh+kuo9Q==", "dependencies": { - "@loaders.gl/images": "3.3.1", - "@loaders.gl/loader-utils": "3.3.1", + "@loaders.gl/images": "3.4.14", + "@loaders.gl/loader-utils": "3.4.14", "@math.gl/core": "^3.5.1" } }, "node_modules/@loaders.gl/mvt": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/@loaders.gl/mvt/-/mvt-3.3.1.tgz", - "integrity": "sha512-I6E6gmtDTSAUZIP0gY8PVcjFVPVWby3l3c95JkFKpqyKyPWFEPOkxuxWk34TQXHe09Zj9GEEav/bMC6GvEit/Q==", + "version": "3.4.14", + "resolved": "https://registry.npmjs.org/@loaders.gl/mvt/-/mvt-3.4.14.tgz", + "integrity": "sha512-tozGmWvsJacjaLavjX4S/5yNDV9S4wJb7+vPG/nXWX2gTtgZ1mxcFQAtAJjokqpy37d1ZhLt+TXh0HrLoTmRgw==", "dependencies": { - "@loaders.gl/gis": "3.3.1", - "@loaders.gl/loader-utils": "3.3.1", - "@loaders.gl/schema": "3.3.1", + "@loaders.gl/gis": "3.4.14", + "@loaders.gl/loader-utils": "3.4.14", + "@loaders.gl/schema": "3.4.14", "@math.gl/polygon": "^3.5.1", "pbf": "^3.2.1" } }, "node_modules/@loaders.gl/schema": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/@loaders.gl/schema/-/schema-3.3.1.tgz", - "integrity": "sha512-VpVFLCc+38P0ddJ5478NnXN60YhNx9/dYHy1Y9ccOGTzaXPn8uFqM7DW/eNaJ7ikyiAWeSD75TpSQPzBrAd5MQ==", + "version": "3.4.14", + "resolved": "https://registry.npmjs.org/@loaders.gl/schema/-/schema-3.4.14.tgz", + "integrity": "sha512-r6BEDfUvbvzgUnh/MtkR5RzrkIwo1x1jtPFRTSJVsIZO7arXXlu3blffuv5ppEkKpNZ1Xzd9WtHp/JIkuctsmw==", "dependencies": { "@types/geojson": "^7946.0.7" } }, "node_modules/@loaders.gl/terrain": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/@loaders.gl/terrain/-/terrain-3.3.1.tgz", - "integrity": "sha512-WCABqgdzsIL0j5zP7xhBhIkz4nQ8EsSOyAS0bKGXlUWLWGZ9L9oVKSL4AHGgm4ult5S7ogZrPnMs7iSO9nab0g==", + "version": "3.4.14", + "resolved": "https://registry.npmjs.org/@loaders.gl/terrain/-/terrain-3.4.14.tgz", + "integrity": "sha512-vhchEVkPaWXnqd2ofujG2AEnBsk4hEw6LWSaFY7E3VMzNhI9l2EHvyU3+Hs03jYbXM4oLlQPGqd/T7x+5IMtig==", "dependencies": { "@babel/runtime": "^7.3.1", - "@loaders.gl/loader-utils": "3.3.1", - "@loaders.gl/schema": "3.3.1", + "@loaders.gl/images": "3.4.14", + "@loaders.gl/loader-utils": "3.4.14", + "@loaders.gl/schema": "3.4.14", "@mapbox/martini": "^0.2.0" } }, "node_modules/@loaders.gl/textures": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/@loaders.gl/textures/-/textures-3.3.1.tgz", - "integrity": "sha512-LjWprbSPTPvL+pnKKxqTVs1vuzysj8JJDMI374wSs2EQIBkxWgACjitR0+E7+DZ4qId1DtRmhW+L7x0SflekaA==", - "dependencies": { - "@loaders.gl/images": "3.3.1", - "@loaders.gl/loader-utils": "3.3.1", - "@loaders.gl/schema": "3.3.1", - "@loaders.gl/worker-utils": "3.3.1", + "version": "3.4.14", + "resolved": "https://registry.npmjs.org/@loaders.gl/textures/-/textures-3.4.14.tgz", + "integrity": "sha512-iKDHL2ZlOUud4/e3g0p0SyvkukznopYy6La3O6I9vDfKp8peuKMRRcTfFfd/zH0OqQC0hIhCXNz46vRLu7h6ng==", + "dependencies": { + "@loaders.gl/images": "3.4.14", + "@loaders.gl/loader-utils": "3.4.14", + "@loaders.gl/schema": "3.4.14", + "@loaders.gl/worker-utils": "3.4.14", "ktx-parse": "^0.0.4", "texture-compressor": "^1.0.2" } }, "node_modules/@loaders.gl/tiles": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/@loaders.gl/tiles/-/tiles-3.3.1.tgz", - "integrity": "sha512-dcy+3sYqLZehPLn4FrnViqZskwoxJbDzbtWcrcBE313GLcu+k0E1B+eZss0xwWfb89TltZqfugBVIUd/LW41FA==", + "version": "3.4.14", + "resolved": "https://registry.npmjs.org/@loaders.gl/tiles/-/tiles-3.4.14.tgz", + "integrity": "sha512-an3scxl65r74LW4WoIGgluBmQpMY9eb381y9mZmREphTP6bWEj96fL/tiR+G6TiE6HJqTv8O3PH6xwI9OQmEJg==", "dependencies": { - "@loaders.gl/loader-utils": "3.3.1", - "@loaders.gl/math": "3.3.1", + "@loaders.gl/loader-utils": "3.4.14", + "@loaders.gl/math": "3.4.14", "@math.gl/core": "^3.5.1", "@math.gl/culling": "^3.5.1", "@math.gl/geospatial": "^3.5.1", "@math.gl/web-mercator": "^3.5.1", - "@probe.gl/stats": "^3.5.0" + "@probe.gl/stats": "^4.0.1" }, "peerDependencies": { - "@loaders.gl/core": "^3.2.0" + "@loaders.gl/core": "^3.4.0" } }, + "node_modules/@loaders.gl/tiles/node_modules/@probe.gl/stats": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/@probe.gl/stats/-/stats-4.0.4.tgz", + "integrity": "sha512-SDuSY/D4yDL6LQDa69l/GCcnZLRiGYdyvYkxWb0CgnzTPdPrcdrzGkzkvpC3zsA4fEFw2smlDje370QGHwlisg==", + "dependencies": { + "@babel/runtime": "^7.0.0" + } + }, + "node_modules/@loaders.gl/wms": { + "version": "3.4.14", + "resolved": "https://registry.npmjs.org/@loaders.gl/wms/-/wms-3.4.14.tgz", + "integrity": "sha512-D1pObPSUj885zGPyHIb7GtcwpHQNk0T8nK/4EHb0SHLe0y1b4qwqSOswdS9geXT9Q61hyhl/L0zqyTgwjiMStg==", + "dependencies": { + "@babel/runtime": "^7.3.1", + "@loaders.gl/images": "3.4.14", + "@loaders.gl/loader-utils": "3.4.14", + "@loaders.gl/schema": "3.4.14", + "@loaders.gl/xml": "3.4.14", + "@turf/rewind": "^5.1.5", + "deep-strict-equal": "^0.2.0", + "lerc": "^4.0.1" + } + }, + "node_modules/@loaders.gl/wms/node_modules/lerc": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/lerc/-/lerc-4.0.4.tgz", + "integrity": "sha512-nHZH+ffiGPkgKUQtiZrljGUGV2GddvPcVTV5E345ZFncbKz+/rBIjDPrSxkiqW0EAtg1Jw7qAgRdaCwV+95Fow==" + }, "node_modules/@loaders.gl/worker-utils": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/@loaders.gl/worker-utils/-/worker-utils-3.3.1.tgz", - "integrity": "sha512-r1u358xZEMKUsv7gOabmc6fA6knWArYU0BqeWOaJHyN/72ESuDZrzjtk+Adux9rIJLlxrMHLq/o/WCsO1tmrYw==", + "version": "3.4.14", + "resolved": "https://registry.npmjs.org/@loaders.gl/worker-utils/-/worker-utils-3.4.14.tgz", + "integrity": "sha512-PUSwxoAYbskisXd0KfYEQ902b0igBA2UAWdP6PzPvY+tJmobfh74dTNwrrBQ1rGXQxxmGx6zc6/ksX6mlIzIrg==", "dependencies": { "@babel/runtime": "^7.3.1" } }, + "node_modules/@loaders.gl/xml": { + "version": "3.4.14", + "resolved": "https://registry.npmjs.org/@loaders.gl/xml/-/xml-3.4.14.tgz", + "integrity": "sha512-SNMGOHz4p8Cw+M6kxXhFEjXdNddJPOZY1rzNmRq7NYdGQlQYYeJdqV5HWzHx9BkoQYyrDXkrweGN0mY9QxCfeA==", + "dependencies": { + "@babel/runtime": "^7.3.1", + "@loaders.gl/loader-utils": "3.4.14", + "@loaders.gl/schema": "3.4.14", + "fast-xml-parser": "^4.2.5" + } + }, "node_modules/@luma.gl/constants": { - "version": "8.5.18", - "resolved": "https://registry.npmjs.org/@luma.gl/constants/-/constants-8.5.18.tgz", - "integrity": "sha512-lQLGAlroQaeJkAUwrb1fRiHlMBP9/ukyjnZ1QlYgXYyeC7/9XhLx4rqBlOzQ2sxcTHHwi73nHD0P2XmVuAccBg==" + "version": "8.5.21", + "resolved": "https://registry.npmjs.org/@luma.gl/constants/-/constants-8.5.21.tgz", + "integrity": "sha512-aJxayGxTT+IRd1vfpcgD/cKSCiVJjBNiuiChS96VulrmCvkzUOLvYXr42y5qKB4RyR7vOIda5uQprNzoHrhQAA==" }, "node_modules/@luma.gl/core": { - "version": "8.5.18", - "resolved": "https://registry.npmjs.org/@luma.gl/core/-/core-8.5.18.tgz", - "integrity": "sha512-XvxE2WE9jFEweJftczQ4QPd8FD23H8mWJoQej7llnyta0Xqb18Cx2VOzuyQ4uN7Uab42YkwXTu25uAq0SdAehA==", + "version": "8.5.21", + "resolved": "https://registry.npmjs.org/@luma.gl/core/-/core-8.5.21.tgz", + "integrity": "sha512-11jQJQEMoR/IN2oIsd4zFxiQJk6FE+xgVIMUcsCTBuzafTtQZ8Po9df8mt+MVewpDyBlTVs6g8nxHRH4np1ukA==", "dependencies": { "@babel/runtime": "^7.0.0", - "@luma.gl/constants": "8.5.18", - "@luma.gl/engine": "8.5.18", - "@luma.gl/gltools": "8.5.18", - "@luma.gl/shadertools": "8.5.18", - "@luma.gl/webgl": "8.5.18" + "@luma.gl/constants": "8.5.21", + "@luma.gl/engine": "8.5.21", + "@luma.gl/gltools": "8.5.21", + "@luma.gl/shadertools": "8.5.21", + "@luma.gl/webgl": "8.5.21" } }, "node_modules/@luma.gl/engine": { - "version": "8.5.18", - "resolved": "https://registry.npmjs.org/@luma.gl/engine/-/engine-8.5.18.tgz", - "integrity": "sha512-hLdtEPk3yt8ikL3g9qVc5FuMPMdhnj1ykPgmG6Mh4lRlCProgGSlwqWuAkzPYwYqIBqKlPNMv8DavRfsKAKc3g==", + "version": "8.5.21", + "resolved": "https://registry.npmjs.org/@luma.gl/engine/-/engine-8.5.21.tgz", + "integrity": "sha512-IG3WQSKXFNUEs8QG7ZjHtGiOtsakUu+BAxtJ6997A6/F06yynZ44tPe5NU70jG9Yfu3kV0LykPZg7hO3vXZDiA==", "dependencies": { "@babel/runtime": "^7.0.0", - "@luma.gl/constants": "8.5.18", - "@luma.gl/gltools": "8.5.18", - "@luma.gl/shadertools": "8.5.18", - "@luma.gl/webgl": "8.5.18", + "@luma.gl/constants": "8.5.21", + "@luma.gl/gltools": "8.5.21", + "@luma.gl/shadertools": "8.5.21", + "@luma.gl/webgl": "8.5.21", "@math.gl/core": "^3.5.0", "@probe.gl/env": "^3.5.0", "@probe.gl/stats": "^3.5.0", @@ -1216,11 +1307,11 @@ } }, "node_modules/@luma.gl/experimental": { - "version": "8.5.18", - "resolved": "https://registry.npmjs.org/@luma.gl/experimental/-/experimental-8.5.18.tgz", - "integrity": "sha512-Bw8mwO3NVYGwzYr1Edl4LVbT7JORIpymdXpmmoqP9SpWAh5HJmNSS8wt1FDaQGVCgSA/5QpmmZb1NjIKX4B40g==", + "version": "8.5.21", + "resolved": "https://registry.npmjs.org/@luma.gl/experimental/-/experimental-8.5.21.tgz", + "integrity": "sha512-uFKPChGofyihOKxtqJy78QCQCDFnuMTK4QHrUX/qiTnvFSO8BgtTUevKvWGN9lBvq+uDD0lSieeF9yBzhQfAzw==", "dependencies": { - "@luma.gl/constants": "8.5.18", + "@luma.gl/constants": "8.5.21", "@math.gl/core": "^3.5.0", "earcut": "^2.0.6" }, @@ -1234,34 +1325,34 @@ } }, "node_modules/@luma.gl/gltools": { - "version": "8.5.18", - "resolved": "https://registry.npmjs.org/@luma.gl/gltools/-/gltools-8.5.18.tgz", - "integrity": "sha512-AnZ8fxsJz/wRdUJazsFvTXbh8ypYX9rATPJj8YlDv08DGGFTQiq8MurzbEjXaEYshAu5w9rXd22nQXkQziUhmQ==", + "version": "8.5.21", + "resolved": "https://registry.npmjs.org/@luma.gl/gltools/-/gltools-8.5.21.tgz", + "integrity": "sha512-6qZ0LaT2Mxa4AJT5F44TFoaziokYiHUwO45vnM/NYUOIu9xevcmS6VtToawytMEACGL6PDeDyVqP3Y80SDzq5g==", "dependencies": { "@babel/runtime": "^7.0.0", - "@luma.gl/constants": "8.5.18", + "@luma.gl/constants": "8.5.21", "@probe.gl/env": "^3.5.0", "@probe.gl/log": "^3.5.0", "@types/offscreencanvas": "^2019.7.0" } }, "node_modules/@luma.gl/shadertools": { - "version": "8.5.18", - "resolved": "https://registry.npmjs.org/@luma.gl/shadertools/-/shadertools-8.5.18.tgz", - "integrity": "sha512-orkdnlVLB8AO4yf9jXXZqEG/UuwVg/v3Gmo4/F2vdrwkUMN+wUZFUdhssDGEGWvuauZWK9Mbz8XrxC0gmLbWzw==", + "version": "8.5.21", + "resolved": "https://registry.npmjs.org/@luma.gl/shadertools/-/shadertools-8.5.21.tgz", + "integrity": "sha512-WQah7yFDJ8cNCLPYpIm3r0wSlXLvjoA279fcknmATvvkW3/i8PcCJ/nYEBJO3hHEwwMQxD16+YZu/uwGiifLMg==", "dependencies": { "@babel/runtime": "^7.0.0", "@math.gl/core": "^3.5.0" } }, "node_modules/@luma.gl/webgl": { - "version": "8.5.18", - "resolved": "https://registry.npmjs.org/@luma.gl/webgl/-/webgl-8.5.18.tgz", - "integrity": "sha512-8pRMq4olLzEv7ToDtCagGDklkIu1iFFBEXT4Rh11ohrfUiDAPfGz5hJrr3m0XtsVfS1CQ5QPWN2tQclmXOL+cQ==", + "version": "8.5.21", + "resolved": "https://registry.npmjs.org/@luma.gl/webgl/-/webgl-8.5.21.tgz", + "integrity": "sha512-ZVLO4W5UuaOlzZIwmFWhnmZ1gYoU97a+heMqxLrSSmCUAsSu3ZETUex9gOmzdM1WWxcdWaa3M68rvKCNEgwz0Q==", "dependencies": { "@babel/runtime": "^7.0.0", - "@luma.gl/constants": "8.5.18", - "@luma.gl/gltools": "8.5.18", + "@luma.gl/constants": "8.5.21", + "@luma.gl/gltools": "8.5.21", "@probe.gl/env": "^3.5.0", "@probe.gl/stats": "^3.5.0" } @@ -1277,22 +1368,17 @@ "integrity": "sha512-6j56HdLTwWGO0fJPlrZtdU/B13q8Uwmo18Ck2GnGgN9PCFyKTZ3UbXeEdRFh18i9XQ92eH2VdtpJHpBD3aripQ==" }, "node_modules/@mapbox/tile-cover": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/@mapbox/tile-cover/-/tile-cover-3.0.2.tgz", - "integrity": "sha512-A6qvtttsYI66BYi8JMD0v7BzxeuXJf6qSzufmdvvYxDJyXqATZ7ig6OKHFCW7/OsUjpfFu3rB54JM/yHUOVB9g==", + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/@mapbox/tile-cover/-/tile-cover-3.0.1.tgz", + "integrity": "sha512-R8aoFY/87HWBOL9E2eBqzOY2lpfWYXCcTNgBpIxAv67rqQeD4IfnHD0iPXg/Z1cqXrklegEYZCp/7ZR/RsWqBQ==", "dependencies": { - "@mapbox/tilebelt": "^1.0.1" + "tilebelt": "^1.0.1" } }, - "node_modules/@mapbox/tilebelt": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@mapbox/tilebelt/-/tilebelt-1.0.2.tgz", - "integrity": "sha512-tGJN2VIgWrXqBTPIxFVklklIpcy6ss8W5ouq+cjNLXPXFraRaDR4Ice+5Q8/uLX+6aH23lWBMydOIn8PcdVcpA==" - }, "node_modules/@mapbox/tiny-sdf": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/@mapbox/tiny-sdf/-/tiny-sdf-1.2.5.tgz", - "integrity": "sha512-cD8A/zJlm6fdJOk6DqPUV8mcpyJkRz2x2R+/fYcWDYG3oWbG7/L7Yl/WqQ1VZCjnL9OTIMAn6c+BC5Eru4sQEw==" + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/@mapbox/tiny-sdf/-/tiny-sdf-2.0.6.tgz", + "integrity": "sha512-qMqa27TLw+ZQz5Jk+RcwZGH7BQf5G/TrutJhspsca/3SHwmgKQ1iq+d3Jxz5oysPVYTGP6aXxCo5Lk9Er6YBAA==" }, "node_modules/@mapbox/vector-tile": { "version": "1.3.1", @@ -1521,9 +1607,9 @@ } }, "node_modules/@petamoriken/float16": { - "version": "3.7.1", - "resolved": "https://registry.npmjs.org/@petamoriken/float16/-/float16-3.7.1.tgz", - "integrity": "sha512-oXZOc+aePd0FnhTWk15pyqK+Do87n0TyLV1nxdEougE95X/WXWDqmQobfhgnSY7QsWn5euZUWuDVeTQvoQ5VNw==" + "version": "3.8.4", + "resolved": "https://registry.npmjs.org/@petamoriken/float16/-/float16-3.8.4.tgz", + "integrity": "sha512-kB+NJ5Br56ZhElKsf0pM7/PQfrDdDVMRz8f0JM6eVOGE+L89z9hwcst9QvWBBnazzuqGTGtPsJNZoQ1JdNiGSQ==" }, "node_modules/@probe.gl/env": { "version": "3.6.0", @@ -1555,10 +1641,60 @@ "resolved": "https://registry.npmjs.org/@socket.io/component-emitter/-/component-emitter-3.1.0.tgz", "integrity": "sha512-+9jVqKhRSpsc591z5vX+X5Yyw+he/HCB4iQ/RYxw35CEPaY1gnsNE43nf9n9AaYjAQrTiI/mOwKUKdUs9vf7Xg==" }, + "node_modules/@turf/boolean-clockwise": { + "version": "5.1.5", + "resolved": "https://registry.npmjs.org/@turf/boolean-clockwise/-/boolean-clockwise-5.1.5.tgz", + "integrity": "sha512-FqbmEEOJ4rU4/2t7FKx0HUWmjFEVqR+NJrFP7ymGSjja2SQ7Q91nnBihGuT+yuHHl6ElMjQ3ttsB/eTmyCycxA==", + "dependencies": { + "@turf/helpers": "^5.1.5", + "@turf/invariant": "^5.1.5" + } + }, + "node_modules/@turf/clone": { + "version": "5.1.5", + "resolved": "https://registry.npmjs.org/@turf/clone/-/clone-5.1.5.tgz", + "integrity": "sha512-//pITsQ8xUdcQ9pVb4JqXiSqG4dos5Q9N4sYFoWghX21tfOV2dhc5TGqYOhnHrQS7RiKQL1vQ48kIK34gQ5oRg==", + "dependencies": { + "@turf/helpers": "^5.1.5" + } + }, + "node_modules/@turf/helpers": { + "version": "5.1.5", + "resolved": "https://registry.npmjs.org/@turf/helpers/-/helpers-5.1.5.tgz", + "integrity": "sha512-/lF+JR+qNDHZ8bF9d+Cp58nxtZWJ3sqFe6n3u3Vpj+/0cqkjk4nXKYBSY0azm+GIYB5mWKxUXvuP/m0ZnKj1bw==" + }, + "node_modules/@turf/invariant": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/@turf/invariant/-/invariant-5.2.0.tgz", + "integrity": "sha512-28RCBGvCYsajVkw2EydpzLdcYyhSA77LovuOvgCJplJWaNVyJYH6BOR3HR9w50MEkPqb/Vc/jdo6I6ermlRtQA==", + "dependencies": { + "@turf/helpers": "^5.1.5" + } + }, + "node_modules/@turf/meta": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/@turf/meta/-/meta-5.2.0.tgz", + "integrity": "sha512-ZjQ3Ii62X9FjnK4hhdsbT+64AYRpaI8XMBMcyftEOGSmPMUVnkbvuv3C9geuElAXfQU7Zk1oWGOcrGOD9zr78Q==", + "dependencies": { + "@turf/helpers": "^5.1.5" + } + }, + "node_modules/@turf/rewind": { + "version": "5.1.5", + "resolved": "https://registry.npmjs.org/@turf/rewind/-/rewind-5.1.5.tgz", + "integrity": "sha512-Gdem7JXNu+G4hMllQHXRFRihJl3+pNl7qY+l4qhQFxq+hiU1cQoVFnyoleIqWKIrdK/i2YubaSwc3SCM7N5mMw==", + "dependencies": { + "@turf/boolean-clockwise": "^5.1.5", + "@turf/clone": "^5.1.5", + "@turf/helpers": "^5.1.5", + "@turf/invariant": "^5.1.5", + "@turf/meta": "^5.1.5" + } + }, "node_modules/@types/geojson": { - "version": "7946.0.10", - "resolved": "https://registry.npmjs.org/@types/geojson/-/geojson-7946.0.10.tgz", - "integrity": "sha512-Nmh0K3iWQJzniTuPRcJn5hxXkfB1T1pgB89SBig5PlJQU5yocazeu4jATJlaA0GYFKWMqDdvYemoSnF2pXgLVA==" + "version": "7946.0.14", + "resolved": "https://registry.npmjs.org/@types/geojson/-/geojson-7946.0.14.tgz", + "integrity": "sha512-WCfD5Ht3ZesJUsONdhvm84dmzWOiOzOAqOncN0++w0lBw1o8OuDNJF2McvvCef/yBqb/HYRahp1BYtODFQ8bRg==" }, "node_modules/@types/hammerjs": { "version": "2.0.41", @@ -1566,9 +1702,9 @@ "integrity": "sha512-ewXv/ceBaJprikMcxCmWU1FKyMAQ2X7a9Gtmzw8fcg2kIePI1crERDM818W+XYrxqdBBOdlf2rm137bU+BltCA==" }, "node_modules/@types/mapbox-gl": { - "version": "2.7.10", - "resolved": "https://registry.npmjs.org/@types/mapbox-gl/-/mapbox-gl-2.7.10.tgz", - "integrity": "sha512-nMVEcu9bAcenvx6oPWubQSPevsekByjOfKjlkr+8P91vawtkxTnopDoXXq1Qn/f4cg3zt0Z2W9DVsVsKRNXJTw==", + "version": "2.7.20", + "resolved": "https://registry.npmjs.org/@types/mapbox-gl/-/mapbox-gl-2.7.20.tgz", + "integrity": "sha512-vuczqb42fXjqGa3Pe4ahYv80We/eM//4pelVYxRXV/DYBVGsD+XhmZNUD2aIdH6mcEV601/k6Z5dn6QFtULFCQ==", "dependencies": { "@types/geojson": "*" } @@ -1580,9 +1716,9 @@ "dev": true }, "node_modules/@types/offscreencanvas": { - "version": "2019.7.0", - "resolved": "https://registry.npmjs.org/@types/offscreencanvas/-/offscreencanvas-2019.7.0.tgz", - "integrity": "sha512-PGcyveRIpL1XIqK8eBsmRBt76eFgtzuPiSTyKHZxnGemp2yzGzWpjYKAfK3wIMiU7eH+851yEpiuP8JZerTmWg==" + "version": "2019.7.3", + "resolved": "https://registry.npmjs.org/@types/offscreencanvas/-/offscreencanvas-2019.7.3.tgz", + "integrity": "sha512-ieXiYmgSRXUDeOntE1InxjWyvEelZGP63M+cGuquuRLuIKKT1osnkXjxev9B7d1nXSug5vpunx+gNlbVxMlC9A==" }, "node_modules/@types/prop-types": { "version": "15.7.5", @@ -1590,9 +1726,9 @@ "integrity": "sha512-JCB8C6SnDoQf0cNycqd/35A7MjcnK+ZTqE7judS6o7utxUCg6imJg3QK2qzHKszlTjcj2cn+NwMB2i96ubpj7w==" }, "node_modules/@types/react": { - "version": "18.0.28", - "resolved": "https://registry.npmjs.org/@types/react/-/react-18.0.28.tgz", - "integrity": "sha512-RD0ivG1kEztNBdoAK7lekI9M+azSnitIn85h4iOiaLjaTrMjzslhaqCGaI4IyCJ1RljWiLCEu4jyrLLgqxBTew==", + "version": "18.2.51", + "resolved": "https://registry.npmjs.org/@types/react/-/react-18.2.51.tgz", + "integrity": "sha512-XeoMaU4CzyjdRr3c4IQQtiH7Rpo18V07rYZUucEZQwOUEtGgTXv7e6igQiQ+xnV6MbMe1qjEmKdgMNnfppnXfg==", "dependencies": { "@types/prop-types": "*", "@types/scheduler": "*", @@ -1600,31 +1736,14 @@ } }, "node_modules/@types/react-dom": { - "version": "17.0.19", - "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-17.0.19.tgz", - "integrity": "sha512-PiYG40pnQRdPHnlf7tZnp0aQ6q9tspYr72vD61saO6zFCybLfMqwUCN0va1/P+86DXn18ZWeW30Bk7xlC5eEAQ==", + "version": "18.2.18", + "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.2.18.tgz", + "integrity": "sha512-TJxDm6OfAX2KJWJdMEVTwWke5Sc/E/RlnPGvGfS0W7+6ocy2xhDVQVh/KvC2Uf7kACs+gDytdusDSdWfWkaNzw==", "dev": true, "dependencies": { - "@types/react": "^17" - } - }, - "node_modules/@types/react-dom/node_modules/@types/react": { - "version": "17.0.53", - "resolved": "https://registry.npmjs.org/@types/react/-/react-17.0.53.tgz", - "integrity": "sha512-1yIpQR2zdYu1Z/dc1OxC+MA6GR240u3gcnP4l6mvj/PJiVaqHsQPmWttsvHsfnhfPbU2FuGmo0wSITPygjBmsw==", - "dev": true, - "dependencies": { - "@types/prop-types": "*", - "@types/scheduler": "*", - "csstype": "^3.0.2" + "@types/react": "*" } }, - "node_modules/@types/react-dom/node_modules/csstype": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.1.tgz", - "integrity": "sha512-DJR/VvkAvSZW9bTouZue2sSxDwdTN92uHjqeKVm+0dAqdfNykRzQ95tay8aXMBAAPpUiq4Qcug2L7neoRh2Egw==", - "dev": true - }, "node_modules/@types/react-transition-group": { "version": "4.4.5", "resolved": "https://registry.npmjs.org/@types/react-transition-group/-/react-transition-group-4.4.5.tgz", @@ -1663,96 +1782,108 @@ } }, "node_modules/@vivjs/constants": { - "version": "0.13.6", - "resolved": "https://registry.npmjs.org/@vivjs/constants/-/constants-0.13.6.tgz", - "integrity": "sha512-nt9WMcUFgs24zVcLitvD5vcnnkephiG/6qDou16LOWPaWhODH2W/TbymOYHQp6MRoKKi3pIhIFeUxx/Ig1rUzw==", + "version": "0.16.0", + "resolved": "https://registry.npmjs.org/@vivjs/constants/-/constants-0.16.0.tgz", + "integrity": "sha512-PqGSlLzwE51CPXt9qOm8AF3rJKdsUv45Sw/ab7NNcXt9IBMrbS3lsh15hN+U7tP4a1uHWwqP0qRl/C3U9Dq76g==", "dependencies": { - "@luma.gl/constants": "~8.5.16" + "@luma.gl/constants": "~8.5.21" } }, "node_modules/@vivjs/extensions": { - "version": "0.13.6", - "resolved": "https://registry.npmjs.org/@vivjs/extensions/-/extensions-0.13.6.tgz", - "integrity": "sha512-yaz6OB3pdvMt5cJA1COnx9Vcw0zQIvfA8+/X1xxGBG87NDeQR0FY/vSMBe/nCTxcoYNFvxF8uWrXc2wWZWHWiw==", + "version": "0.16.0", + "resolved": "https://registry.npmjs.org/@vivjs/extensions/-/extensions-0.16.0.tgz", + "integrity": "sha512-otZXgaBCigKLkRgMkv8N3DR1AzRqDffXNk3J6N9i0njL1zYxwx/EcWbZTGx2sIOtAXNTaUKNISoXgS9fltNMaA==", "dependencies": { - "@vivjs/constants": "0.13.6" + "@vivjs/constants": "0.16.0" }, "peerDependencies": { - "@deck.gl/core": "~8.8.6" + "@deck.gl/core": "~8.8.27" } }, "node_modules/@vivjs/layers": { - "version": "0.13.6", - "resolved": "https://registry.npmjs.org/@vivjs/layers/-/layers-0.13.6.tgz", - "integrity": "sha512-thNulJNyvNJFn009847mKfdP4KNBr0j4udSbIB+u7sI2uEWBXt2Wnq7xgCep0AWT5SdHNtL5IqOk8B38RPvuTA==", + "version": "0.16.0", + "resolved": "https://registry.npmjs.org/@vivjs/layers/-/layers-0.16.0.tgz", + "integrity": "sha512-aD3D4qdvfMPKXUHZa+NiL1XOOZcOeCINsoSR+SbK584U8ZUmDj2lWOnyU4VUGL39qdParwEUURsw7xUuTs/Yug==", "dependencies": { "@math.gl/core": "^3.5.7", "@math.gl/culling": "^3.5.7", - "@vivjs/constants": "0.13.6", - "@vivjs/extensions": "0.13.6", - "@vivjs/loaders": "0.13.6", - "@vivjs/types": "0.13.6" + "@vivjs/constants": "0.16.0", + "@vivjs/extensions": "0.16.0", + "@vivjs/loaders": "0.16.0", + "@vivjs/types": "0.16.0" }, "peerDependencies": { - "@deck.gl/core": "~8.8.6", - "@deck.gl/geo-layers": "~8.8.6", - "@deck.gl/layers": "~8.8.6", - "@luma.gl/constants": "~8.5.16", - "@luma.gl/core": "~8.5.16", - "@luma.gl/engine": "~8.5.16", - "@luma.gl/webgl": "~8.5.16" + "@deck.gl/core": "~8.8.27", + "@deck.gl/geo-layers": "~8.8.27", + "@deck.gl/layers": "~8.8.27", + "@luma.gl/constants": "~8.5.21", + "@luma.gl/core": "~8.5.21", + "@luma.gl/engine": "~8.5.21", + "@luma.gl/webgl": "~8.5.21" } }, "node_modules/@vivjs/loaders": { - "version": "0.13.6", - "resolved": "https://registry.npmjs.org/@vivjs/loaders/-/loaders-0.13.6.tgz", - "integrity": "sha512-9KeCQ+I1yGvX/Y06CSEoY2xniZ305zAYCkhPCzX9kjb8BiRn97ci5DVNwfr2ajtSPXRiFhn9ITlSWBm8767Pbg==", + "version": "0.16.0", + "resolved": "https://registry.npmjs.org/@vivjs/loaders/-/loaders-0.16.0.tgz", + "integrity": "sha512-FU6XrMOJ94b4Ep2P0eRuJOFGEVkDT1tIRMiYjCq9LitGRKUiS8tHF8xzYkUrbzHXa1WwH/9PyIw5eeyMndc9Vw==", "dependencies": { - "@vivjs/types": "0.13.6", - "fast-xml-parser": "^3.16.0", + "@vivjs/types": "0.16.0", "geotiff": "^2.0.5", "lzw-tiff-decoder": "^0.1.1", "quickselect": "^2.0.0", - "zarr": "^0.5.1" + "zarr": "^0.6.2", + "zod": "^3.22.4" + } + }, + "node_modules/@vivjs/loaders/node_modules/zarr": { + "version": "0.6.2", + "resolved": "https://registry.npmjs.org/zarr/-/zarr-0.6.2.tgz", + "integrity": "sha512-3gtxrnpziRlDtrz0hz/M+hreCC5YexppeCVHK62Pmb2FSn947h14GHMDj9rQFkY2mPhRKDHhtB+AUGa8wqJW6Q==", + "dependencies": { + "numcodecs": "^0.2.2", + "p-queue": "^7.1.0" + }, + "engines": { + "node": ">=12" } }, "node_modules/@vivjs/types": { - "version": "0.13.6", - "resolved": "https://registry.npmjs.org/@vivjs/types/-/types-0.13.6.tgz", - "integrity": "sha512-pp9xGA3czWxRlSOWDYbt8noCUm2MTRrOmaQzuvsGPx0fZecvL+HbEzW3zQTyxRYJJQBqgkHqXNZfLkvwGCpRQw==", + "version": "0.16.0", + "resolved": "https://registry.npmjs.org/@vivjs/types/-/types-0.16.0.tgz", + "integrity": "sha512-n898DVFlHmDbvBsCG1SdSoPv9sgUDfCYedFp9A1msoHn/SVJhA5e6oTvVbgKGAxuTXKa3baXz7fIGvduVytZ3Q==", "dependencies": { - "@vivjs/constants": "0.13.6", + "@vivjs/constants": "0.16.0", "math.gl": "^3.5.7" } }, "node_modules/@vivjs/viewers": { - "version": "0.13.6", - "resolved": "https://registry.npmjs.org/@vivjs/viewers/-/viewers-0.13.6.tgz", - "integrity": "sha512-EZ55ebDIwntZs3t1gFYhM/kqi4RF+SHgEISTmvsVOcaJuUQlczxXwzJDe3KhRFGHEariJvIpObKaU3CurwdkKw==", + "version": "0.16.0", + "resolved": "https://registry.npmjs.org/@vivjs/viewers/-/viewers-0.16.0.tgz", + "integrity": "sha512-ih872YZS9H7JrPDYlZqZ2qDiXPWXT8fVx6cA0OouFO2bDOw8q1E2MN36lhN2pUYjL2aC2NmLgS1yq2zN0bblXQ==", "dependencies": { - "@vivjs/constants": "0.13.6", - "@vivjs/extensions": "0.13.6", - "@vivjs/views": "0.13.6", + "@vivjs/constants": "0.16.0", + "@vivjs/extensions": "0.16.0", + "@vivjs/views": "0.16.0", "fast-deep-equal": "^3.1.3" }, "peerDependencies": { - "@deck.gl/react": "~8.8.6", + "@deck.gl/react": "~8.8.27", "react": "^16.8.0 || ^17.0.0" } }, "node_modules/@vivjs/views": { - "version": "0.13.6", - "resolved": "https://registry.npmjs.org/@vivjs/views/-/views-0.13.6.tgz", - "integrity": "sha512-E/ix+BB5W2zKdLcIBQkPDAePS+++kOfDlq9BNdMXyUc2yVRxgYK5Bs3TXjPWLDqPkRcG6xlBI18Ajb38iRhOAQ==", + "version": "0.16.0", + "resolved": "https://registry.npmjs.org/@vivjs/views/-/views-0.16.0.tgz", + "integrity": "sha512-OQ4/3X5DLcu2yKVFeopmWW6iZ+hfTgkle84wfNPwPvvhtV3b1vEeUMzyBt5p1RSvpTzKGKv8CR5R4SdTunkUEQ==", "dependencies": { "@math.gl/core": "^3.5.7", - "@vivjs/layers": "0.13.6", - "@vivjs/loaders": "0.13.6", + "@vivjs/layers": "0.16.0", + "@vivjs/loaders": "0.16.0", "math.gl": "^3.5.7" }, "peerDependencies": { - "@deck.gl/core": "~8.8.6", - "@deck.gl/layers": "~8.8.6" + "@deck.gl/core": "~8.8.27", + "@deck.gl/layers": "~8.8.27" } }, "node_modules/aggregate-error": { @@ -1818,6 +1949,14 @@ "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" } }, + "node_modules/buf-compare": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/buf-compare/-/buf-compare-1.0.1.tgz", + "integrity": "sha512-Bvx4xH00qweepGc43xFvMs5BKASXTbHaHm6+kDYIK9p/4iFwjATQkmPKHQSgJZzKbAymhztRbXUf1Nqhzl73/Q==", + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/caniuse-lite": { "version": "1.0.30001460", "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001460.tgz", @@ -1920,6 +2059,18 @@ "integrity": "sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==", "dev": true }, + "node_modules/core-assert": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/core-assert/-/core-assert-0.2.1.tgz", + "integrity": "sha512-IG97qShIP+nrJCXMCgkNZgH7jZQ4n8RpPyPeXX++T6avR/KhLhgLiHKoEn5Rc1KjfycSfA9DMa6m+4C4eguHhw==", + "dependencies": { + "buf-compare": "^1.0.0", + "is-error": "^2.2.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/css-vendor": { "version": "2.0.8", "resolved": "https://registry.npmjs.org/css-vendor/-/css-vendor-2.0.8.tgz", @@ -1935,9 +2086,9 @@ "integrity": "sha512-Z1PhmomIfypOpoMjRQB70jfvy/wxT50qW08YXO5lMIJkrdq4yOTR+AW7FqutScmB9NkLwxo+jU+kZLbofZZq/w==" }, "node_modules/d3-array": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/d3-array/-/d3-array-3.2.2.tgz", - "integrity": "sha512-yEEyEAbDrF8C6Ob2myOBLjwBLck1Z89jMGFee0oPsn95GqjerpaOA4ch+vc2l0FNFFwMD5N7OCSEN5eAlsUbgQ==", + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/d3-array/-/d3-array-3.2.4.tgz", + "integrity": "sha512-tdQAmyA18i4J7wprpYq8ClcxZy3SC31QMeByyCFyRt7BVHdREQZ5lpzoe5mFEYZUWe+oq8HBvk9JjpibyEV4Jg==", "dependencies": { "internmap": "1 - 2" }, @@ -2052,21 +2203,33 @@ } }, "node_modules/deck.gl": { - "version": "8.8.26", - "resolved": "https://registry.npmjs.org/deck.gl/-/deck.gl-8.8.26.tgz", - "integrity": "sha512-XjJRWsEDu2Hfd9NGoZa912YfqSjbHwtJBoIcnQ1lV4ZiaQPx0xqyeUrsBG9dZP0X7AOsDPxcPqwnAkcK1QD0Gg==", - "dependencies": { - "@deck.gl/aggregation-layers": "8.8.26", - "@deck.gl/carto": "8.8.26", - "@deck.gl/core": "8.8.26", - "@deck.gl/extensions": "8.8.26", - "@deck.gl/geo-layers": "8.8.26", - "@deck.gl/google-maps": "8.8.26", - "@deck.gl/json": "8.8.26", - "@deck.gl/layers": "8.8.26", - "@deck.gl/mapbox": "8.8.26", - "@deck.gl/mesh-layers": "8.8.26", - "@deck.gl/react": "8.8.26" + "version": "8.9.34", + "resolved": "https://registry.npmjs.org/deck.gl/-/deck.gl-8.9.34.tgz", + "integrity": "sha512-3c7gu7xSDlNmBXDexk+RF783cVbl6D/WbSQNpPrmY5glct102A3hXqbVSV3l4jiCG2zd4y3AMBjSHdkHzgfBrw==", + "dependencies": { + "@babel/runtime": "^7.0.0", + "@deck.gl/aggregation-layers": "8.9.34", + "@deck.gl/carto": "8.9.34", + "@deck.gl/core": "8.9.34", + "@deck.gl/extensions": "8.9.34", + "@deck.gl/geo-layers": "8.9.34", + "@deck.gl/google-maps": "8.9.34", + "@deck.gl/json": "8.9.34", + "@deck.gl/layers": "8.9.34", + "@deck.gl/mapbox": "8.9.34", + "@deck.gl/mesh-layers": "8.9.34", + "@deck.gl/react": "8.9.34" + } + }, + "node_modules/deep-strict-equal": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/deep-strict-equal/-/deep-strict-equal-0.2.0.tgz", + "integrity": "sha512-3daSWyvZ/zwJvuMGlzG1O+Ow0YSadGfb3jsh9xoCutv2tWyB9dA4YvR9L9/fSdDZa2dByYQe+TqapSGUrjnkoA==", + "dependencies": { + "core-assert": "^0.2.0" + }, + "engines": { + "node": ">=0.10.0" } }, "node_modules/dom-helpers": { @@ -2183,6 +2346,7 @@ "version": "2.1.0", "resolved": "https://registry.npmjs.org/expression-eval/-/expression-eval-2.1.0.tgz", "integrity": "sha512-FUJO/Akvl/JOWkvlqZaqbkhsEWlCJWDeZG4tzX96UH68D9FeRgYgtb55C2qtqbORC0Q6x5419EDjWu4IT9kQfg==", + "deprecated": "The expression-eval npm package is no longer maintained. The package was originally published as part of a now-completed personal project, and I do not have incentives to continue maintenance.", "dependencies": { "jsep": "^0.3.0" } @@ -2193,18 +2357,24 @@ "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==" }, "node_modules/fast-xml-parser": { - "version": "3.21.1", - "resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-3.21.1.tgz", - "integrity": "sha512-FTFVjYoBOZTJekiUsawGsSYV9QL0A+zDYCRj7y34IO6Jg+2IMYEtQa+bbictpdpV8dHxXywqU7C0gRDEOFtBFg==", + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-4.3.4.tgz", + "integrity": "sha512-utnwm92SyozgA3hhH2I8qldf2lBqm6qHOICawRNRFu1qMe3+oqr+GcXjGqTmXTMGE5T4eC03kr/rlh5C1IRdZA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/NaturalIntelligence" + }, + { + "type": "paypal", + "url": "https://paypal.me/naturalintelligence" + } + ], "dependencies": { - "strnum": "^1.0.4" + "strnum": "^1.0.5" }, "bin": { - "xml2js": "cli.js" - }, - "funding": { - "type": "paypal", - "url": "https://paypal.me/naturalintelligence" + "fxparser": "src/cli/cli.js" } }, "node_modules/fs-extra": { @@ -2245,9 +2415,9 @@ } }, "node_modules/geotiff": { - "version": "2.0.7", - "resolved": "https://registry.npmjs.org/geotiff/-/geotiff-2.0.7.tgz", - "integrity": "sha512-FKvFTNowMU5K6lHYY2f83d4lS2rsCNdpUC28AX61x9ZzzqPNaWFElWv93xj0eJFaNyOYA63ic5OzJ88dHpoA5Q==", + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/geotiff/-/geotiff-2.1.2.tgz", + "integrity": "sha512-xw7Cd6HXukUdfFSe5QCSjdhebTCGkk87x7fKURqQPFKT+TijCCwKvoksL7T3+B6mJWZSB7muTJlwVIQsLtbkMA==", "dependencies": { "@petamoriken/float16": "^3.4.7", "lerc": "^3.0.0", @@ -2255,7 +2425,8 @@ "parse-headers": "^2.0.2", "quick-lru": "^6.1.1", "web-worker": "^1.2.0", - "xml-utils": "^1.0.2" + "xml-utils": "^1.0.2", + "zstddec": "^0.1.0" }, "engines": { "node": ">=10.19" @@ -2407,6 +2578,11 @@ "node": ">=12" } }, + "node_modules/is-error": { + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/is-error/-/is-error-2.2.2.tgz", + "integrity": "sha512-IOQqts/aHWbiisY5DuPJQ0gcbvaLFCa7fBa9xoLfxBZvQ+ZI/Zh9xoI7Gk+G64N0FdK4AbibytHht2tWgpJWLg==" + }, "node_modules/is-in-browser": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/is-in-browser/-/is-in-browser-1.1.3.tgz", @@ -2698,17 +2874,17 @@ } }, "node_modules/moment": { - "version": "2.29.4", - "resolved": "https://registry.npmjs.org/moment/-/moment-2.29.4.tgz", - "integrity": "sha512-5LC9SOxjSc2HF6vO2CyuTDNivEdoz2IvyJJGj6X8DJ0eFyfszE0QiEd+iXmBvUP3WHxSjFH/vIsA0EN00cgr8w==", + "version": "2.30.1", + "resolved": "https://registry.npmjs.org/moment/-/moment-2.30.1.tgz", + "integrity": "sha512-uEmtNhbDOrWPFS+hdjFCBfy9f2YoyzRpwcl+DqpC6taX21FzsTLQVbMV/W7PzNSX6x/bhC1zA3c2UQ5NzH6how==", "engines": { "node": "*" } }, "node_modules/moment-timezone": { - "version": "0.5.41", - "resolved": "https://registry.npmjs.org/moment-timezone/-/moment-timezone-0.5.41.tgz", - "integrity": "sha512-e0jGNZDOHfBXJGz8vR/sIMXvBIGJJcqFjmlg9lmE+5KX1U7/RZNMswfD8nKnNCnQdKTIj50IaRKwl1fvMLyyRg==", + "version": "0.5.44", + "resolved": "https://registry.npmjs.org/moment-timezone/-/moment-timezone-0.5.44.tgz", + "integrity": "sha512-nv3YpzI/8lkQn0U6RkLd+f0W/zy/JnoR5/EyPz/dNkPTBjA2jNLCVxaiQ8QpeLymhSZvX0wCL5s27NQWdOPwAw==", "dependencies": { "moment": "^2.29.4" }, @@ -2898,11 +3074,11 @@ "integrity": "sha512-TdDRD+/QNdrCGCE7v8340QyuXd4kIWIgapsE2+n/SaGiSSbomYl4TjHlvIoCWRpE7wFt02EpB35VVA2ImcBVqw==" }, "node_modules/quadbin": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/quadbin/-/quadbin-0.1.5.tgz", - "integrity": "sha512-/MQnN7V73myA+31gTxldTGN8ixqrUCXtUoDvRKSI9QZJOaq0cS9SNQkdToMxjC3ZSM2hN7mleOAn+9QVNlPZOg==", + "version": "0.1.9", + "resolved": "https://registry.npmjs.org/quadbin/-/quadbin-0.1.9.tgz", + "integrity": "sha512-5V6m6+cL/6+uBl3hYL+CWF06rRvlHkIepYKGQjTLYaHhu9InPppql0+0ROiCaOQdz8gPNlgge3glk5Qg1mWOYw==", "dependencies": { - "@mapbox/tile-cover": "^3.0.2" + "@mapbox/tile-cover": "3.0.1" }, "engines": { "node": ">=14" @@ -2925,28 +3101,26 @@ "integrity": "sha512-RKJ22hX8mHe3Y6wH/N3wCM6BWtjaxIyyUIkpHOvfFnxdI4yD4tBXEBKSbriGujF6jnSVkJrffuo6vxACiSSxIw==" }, "node_modules/react": { - "version": "17.0.2", - "resolved": "https://registry.npmjs.org/react/-/react-17.0.2.tgz", - "integrity": "sha512-gnhPt75i/dq/z3/6q/0asP78D0u592D5L1pd7M8P+dck6Fu/jJeL6iVVK23fptSUZj8Vjf++7wXA8UNclGQcbA==", + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react/-/react-18.2.0.tgz", + "integrity": "sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ==", "dependencies": { - "loose-envify": "^1.1.0", - "object-assign": "^4.1.1" + "loose-envify": "^1.1.0" }, "engines": { "node": ">=0.10.0" } }, "node_modules/react-dom": { - "version": "17.0.2", - "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-17.0.2.tgz", - "integrity": "sha512-s4h96KtLDUQlsENhMn1ar8t2bEa+q/YAtj8pPPdIjPDGBDIVNsrD9aXNWqspUe6AzKCIG0C1HZZLqLV7qpOBGA==", + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.2.0.tgz", + "integrity": "sha512-6IMTriUmvsjHUjNtEDudZfuDQUoWXVxKHhlEGSk81n4YFS+r/Kl99wXiwlVXtPBtJenozv2P+hxDsw9eA7Xo6g==", "dependencies": { "loose-envify": "^1.1.0", - "object-assign": "^4.1.1", - "scheduler": "^0.20.2" + "scheduler": "^0.23.0" }, "peerDependencies": { - "react": "17.0.2" + "react": "^18.2.0" } }, "node_modules/react-is": { @@ -3023,12 +3197,11 @@ "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" }, "node_modules/scheduler": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.20.2.tgz", - "integrity": "sha512-2eWfGgAqqWFGqtdMmcL5zCMK1U8KlXv8SQFGglL3CEtd0aDVDWgeF/YoCmvln55m5zSk3J/20hTaSBeSObsQDQ==", + "version": "0.23.0", + "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.0.tgz", + "integrity": "sha512-CtuThmgHNg7zIZWAXi3AsyIzA3n4xx7aNyjwC2VJldO2LMVDhFK+63xGqq6CsJH4rTAt6/M+N4GhZiDYPx9eUw==", "dependencies": { - "loose-envify": "^1.1.0", - "object-assign": "^4.1.1" + "loose-envify": "^1.1.0" } }, "node_modules/semver": { @@ -3109,6 +3282,12 @@ "texture-compressor": "bin/texture-compressor.js" } }, + "node_modules/tilebelt": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/tilebelt/-/tilebelt-1.0.1.tgz", + "integrity": "sha512-cxHzpa5JgsugY9NUVRH43gPaGJw/29LecAn4X7UGOP64+kB8pU4VQ3bIhSyfb5Mk4jDxwl3yk330L/EIhbJ5aw==", + "deprecated": "This module is now under the @mapbox namespace: install @mapbox/tilebelt instead" + }, "node_modules/tiny-warning": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/tiny-warning/-/tiny-warning-1.0.3.tgz", @@ -3227,9 +3406,9 @@ } }, "node_modules/web-worker": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/web-worker/-/web-worker-1.2.0.tgz", - "integrity": "sha512-PgF341avzqyx60neE9DD+XS26MMNMoUQRz9NOZwW32nPQrF6p77f1htcnjBSEV8BGMKZ16choqUG4hyI0Hx7mA==" + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/web-worker/-/web-worker-1.3.0.tgz", + "integrity": "sha512-BSR9wyRsy/KOValMgd5kMyr3JzpdeoR9KVId8u5GVlTTAtNChlsE4yTxeY7zMdNSyOmoKBv8NH2qeRY9Tg+IaA==" }, "node_modules/ws": { "version": "8.11.0", @@ -3252,9 +3431,9 @@ } }, "node_modules/xml-utils": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/xml-utils/-/xml-utils-1.3.0.tgz", - "integrity": "sha512-i4PIrX33Wd66dvwo4syicwlwmnr6wuvvn4f2ku9hA67C2Uk62Xubczuhct+Evnd12/DV71qKNeDdJwES8HX1RA==" + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/xml-utils/-/xml-utils-1.7.0.tgz", + "integrity": "sha512-bWB489+RQQclC7A9OW8e5BzbT8Tu//jtAOvkYwewFr+Q9T9KDGvfzC1lp0pYPEQPEoPQLDkmxkepSC/2gIAZGw==" }, "node_modules/xmlhttprequest-ssl": { "version": "2.0.0", @@ -3281,6 +3460,19 @@ "engines": { "node": ">=12" } + }, + "node_modules/zod": { + "version": "3.22.4", + "resolved": "https://registry.npmjs.org/zod/-/zod-3.22.4.tgz", + "integrity": "sha512-iC+8Io04lddc+mVqQ9AZ7OQ2MrUKGN+oIQyq1vemgt46jwCwLfhq7/pwnBnNXXXZb8VTVLKwp9EDkx+ryxIWmg==", + "funding": { + "url": "https://github.com/sponsors/colinhacks" + } + }, + "node_modules/zstddec": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/zstddec/-/zstddec-0.1.0.tgz", + "integrity": "sha512-w2NTI8+3l3eeltKAdK8QpiLo/flRAr2p8AGeakfMZOXBxOg9HIu4LVDxBi81sYgVhFhdJjv1OrB5ssI8uFPoLg==" } } } diff --git a/package.json b/package.json index 5648316..05750ef 100644 --- a/package.json +++ b/package.json @@ -2,18 +2,18 @@ "name": "@hms-dbmi/vizarr", "version": "0.3.0", "dependencies": { - "@hms-dbmi/viv": "^0.13.0", + "@hms-dbmi/viv": "^0.16.0", "@material-ui/core": "^4.11.0", "@material-ui/icons": "^4.9.1", - "deck.gl": "^8.6.7", + "deck.gl": "^8.9.34", "imjoy-rpc": "^0.2.23", "jotai": "^1.0.0", "just-debounce-it": "^3.1.1", "mitt": "^3.0.0", "p-map": "^5.5.0", "quick-lru": "^6.0.0", - "react": "^17.0.1", - "react-dom": "^17.0.1", + "react": "^18.2.0", + "react-dom": "^18.2.0", "reference-spec-reader": "^0.1.1", "zarr": "^0.5.2" }, @@ -35,7 +35,8 @@ "devDependencies": { "@danmarshall/deckgl-typings": "^4.3.10", "@types/node": "^14.14.5", - "@types/react-dom": "^17.0.0", + "@types/react": "^18.2.51", + "@types/react-dom": "^18.2.18", "@vitejs/plugin-react": "^3.1.0", "prettier": "^2.2.0", "typescript": "^4.9.5", diff --git a/src/index.tsx b/src/index.tsx index 043760b..e7f946d 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -1,5 +1,5 @@ import * as React from 'react'; -import ReactDOM from 'react-dom'; +import ReactDOM from 'react-dom/client'; import { Provider, atom } from 'jotai'; import { useSetAtom } from 'jotai'; import { ThemeProvider } from '@material-ui/styles'; @@ -25,18 +25,36 @@ export interface VizarrViewer { on(event: E, cb: (data: Events[E]) => void): void; } -export function createViewer(element: HTMLElement): VizarrViewer { +/** switch to Promise.withResolvers when it's available */ +function defer() { + let resolve: (value: T | PromiseLike) => void; + let reject: (reason?: any) => void; + const promise = new Promise((res, rej) => { + resolve = res; + reject = rej; + }); + // @ts-expect-error - resolve and reject are OK + return { promise, resolve, reject }; +} + +export function createViewer(element: HTMLElement): Promise { const ref = React.createRef(); const emitter = mitt(); const viewStateAtom = atomWithEffect( atom(undefined), ({ zoom, target }) => emitter.emit('viewStateChange', { zoom, target }) ); + let { promise, resolve } = defer(); function App() { const addImage = useSetAtom(addImageAtom); const setViewState = useSetAtom(viewStateAtom); React.useImperativeHandle(ref, () => ({ addImage, setViewState, on: emitter.on }), []); + React.useEffect(() => { + if (ref.current) { + resolve(ref.current); + } + }, []); return ( <> @@ -44,15 +62,13 @@ export function createViewer(element: HTMLElement): VizarrViewer { ); } - - ReactDOM.render( + ReactDOM.createRoot(element).render( - , - element + ); - return ref.current!; + return promise; }