Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
feat(views/geo): support vector maps
Elian Doran8c4ed2d4dac9
diff --git a/apps/client/package.json b/apps/client/package.jsonindex c2404fd320..2c1f8c46a1 100644--- a/apps/client/package.json+++ b/apps/client/package.json@@ -18,6 +18,7 @@"@fullcalendar/list": "6.1.18","@fullcalendar/multimonth": "6.1.18","@fullcalendar/timegrid": "6.1.18",+ "@maplibre/maplibre-gl-leaflet": "0.1.2","@mermaid-js/layout-elk": "0.1.8","@mind-elixir/node-menu": "5.0.0","@popperjs/core": "2.11.8",diff --git a/apps/client/src/widgets/view_widgets/geo_view/index.ts b/apps/client/src/widgets/view_widgets/geo_view/index.tsindex bb6e26b6ef..c1a71e7a78 100644--- a/apps/client/src/widgets/view_widgets/geo_view/index.ts+++ b/apps/client/src/widgets/view_widgets/geo_view/index.ts@@ -10,6 +10,8 @@ import toast from "../../../services/toast.js";import { CommandListenerData, EventData } from "../../../components/app_context.js";import { createNewNote, moveMarker, setupDragging } from "./editing.js";import { openMapContextMenu } from "./context_menu.js";+import getMapLayer from "./map_layer.js";+import attributes from "../../../services/attributes.js";const TPL = /*html*/`<div class="geo-view">@@ -138,10 +140,10 @@ export default class GeoView extends ViewMode<MapData> {const map = L.map(this.$container[0], {worldCopyJump: true});- L.tileLayer("https://tile.openstreetmap.org/{z}/{x}/{y}.png", {- attribution: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors',- detectRetina: true- }).addTo(map);++ const layerName = this.parentNote.getLabelValue("mapLayer") ?? "openstreetmap";+ const layer = (await getMapLayer(layerName));+ layer.addTo(map);this.map = map;@@ -264,6 +266,11 @@ export default class GeoView extends ViewMode<MapData> {if (attributeRows.find((at) => [LOCATION_ATTRIBUTE, "color"].includes(at.name ?? ""))) {this.#reloadMarkers();}++ // Full reload if map layer is changed.+ if (loadResults.getAttributeRows().some(attr => attr.name === "mapLayer" && attributes.isAffecting(attr, this.parentNote))) {+ return true;+ }}async geoMapCreateChildNoteEvent({ ntxId }: EventData<"geoMapCreateChildNote">) {diff --git a/apps/client/src/widgets/view_widgets/geo_view/map_layer.ts b/apps/client/src/widgets/view_widgets/geo_view/map_layer.tsnew file mode 100644index 0000000000..fc1872970a--- /dev/null+++ b/apps/client/src/widgets/view_widgets/geo_view/map_layer.ts@@ -0,0 +1,46 @@+import L from "leaflet";+import type { StyleSpecification } from "maplibre-gl";++interface VectorLayer {+ type: "vector";+ style: string | (() => Promise<StyleSpecification>)+}++interface RasterLayer {+ type: "raster";+ url: string;+ attribution: string;+}++const LAYERS: Record<string, VectorLayer | RasterLayer> = {+ "openstreetmap": {+ type: "raster",+ url: "https://tile.openstreetmap.org/{z}/{x}/{y}.png",+ attribution: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'+ },+ "versatiles-colorful": {+ type: "vector",+ style: async () => {+ const style = await import("./styles/colorful/en.json");+ return style.default as unknown as StyleSpecification;+ }+ }+};++export default async function getMapLayer(layerName: string) {+ const layer = LAYERS[layerName] ?? LAYERS["openstreetmap"];++ if (layer.type === "vector") {+ const style = (typeof layer.style === "string" ? layer.style : await layer.style());+ await import("@maplibre/maplibre-gl-leaflet");++ return L.maplibreGL({+ style+ });+ }++ return L.tileLayer(layer.url, {+ attribution: layer.attribution,+ detectRetina: true+ });+}diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 7bf024c487..4d4012f8c3 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -184,6 +184,9 @@ importers:'@fullcalendar/timegrid':specifier: 6.1.18version: 6.1.18(@fullcalendar/[email protected])+ '@maplibre/maplibre-gl-leaflet':+ specifier: 0.1.2'@mermaid-js/layout-elk':specifier: 0.1.8version: 0.1.8([email protected])@@ -898,7 +901,7 @@ importers:'@vitest/browser':specifier: ^3.0.5- version: 3.2.4([email protected])([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])([email protected]([email protected])([email protected]))+ version: 3.2.4([email protected])([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])([email protected]([email protected])([email protected]))'@vitest/coverage-istanbul':specifier: ^3.0.5version: 3.2.4([email protected])@@ -931,7 +934,7 @@ importers:version: 5.8.3vite-plugin-svgo:specifier: ~2.0.0- version: 2.0.0([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))+ version: 2.0.0([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))vitest:specifier: ^3.0.5version: 3.2.4(@types/[email protected])(@types/[email protected])(@vitest/[email protected])(@vitest/[email protected])([email protected])([email protected])([email protected]([email protected])([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])@@ -3818,6 +3821,41 @@ packages:resolution: {integrity: sha512-9QOtNffcOF/c1seMCDnjckb3R9WHcG34tky+FHpNKKCW0wc/scYLwMtO+ptyGUfMW0/b/n4qRiALlaFHc9Oj7Q==}engines: {node: '>= 10.0.0'}+ '@mapbox/[email protected]':+ resolution: {integrity: sha512-tJaT+RbYGJYStt7wI3cq4Nl4SXxG8W7JDG5DMJu97V25RnbNg3QtQtf+KD+VLjNpWKYsRvXDNmNrBgEETr1ifA==}+ hasBin: true++ '@mapbox/[email protected]':+ resolution: {integrity: sha512-rY0o9A5ECsTQRVhv7tL/OyDpGAoUB4tTvLiW1DSzQGq4bvTPhNw1VpSNjDJc5GFZ2XuyOtSWSVN05qOtcD71qQ==}+ engines: {node: '>= 0.6'}++ '@mapbox/[email protected]':+ resolution: {integrity: sha512-6j56HdLTwWGO0fJPlrZtdU/B13q8Uwmo18Ck2GnGgN9PCFyKTZ3UbXeEdRFh18i9XQ92eH2VdtpJHpBD3aripQ==}++ '@mapbox/[email protected]':+ resolution: {integrity: sha512-qMqa27TLw+ZQz5Jk+RcwZGH7BQf5G/TrutJhspsca/3SHwmgKQ1iq+d3Jxz5oysPVYTGP6aXxCo5Lk9Er6YBAA==}++ '@mapbox/[email protected]':+ resolution: {integrity: sha512-nMkuDXFv60aBr9soUG5q+GvZYL+2KZHVvsqFCzqnkGEf46U2fvmytHaEVc1/YZbiLn8X+eR3QzX1+dwDO1lxlw==}++ '@mapbox/[email protected]':+ resolution: {integrity: sha512-MCEddb8u44/xfQ3oD+Srl/tNcQoqTw3goGk2oLsrFxOTc3dUp+kAnby3PvAeeBYSMSjSPD1nd1AJA6W49WnoUw==}++ '@mapbox/[email protected]':+ resolution: {integrity: sha512-Es6WcD0nO5l+2BOQS4uLfNPYQaNDfbot3X1XUoloz+x0mPDS3eeORZJl06HXjwBG1fOGwCRnzK88LMdxKRrd6Q==}+ engines: {node: '>=6.0.0'}++ '@maplibre/[email protected]':+ resolution: {integrity: sha512-3BzJlaqtWxXZdK+dTjuQ/0ayOwpcT0JPNaGgnbApm5itPBENotMcZoJhRdLKljmTRyXM9/v2+eOyv/xWYVd78A==}+ peerDependencies:+ '@types/leaflet': ^1.9.0+ leaflet: ^1.9.3+ maplibre-gl: ^2.4.0 || ^3.3.1 || ^4.3.2 || ^5.0.0++ '@maplibre/[email protected]':+ resolution: {integrity: sha512-IGJtuBbaGzOUgODdBRg66p8stnwj9iDXkgbYKoYcNiiQmaez5WVRfXm4b03MCDwmZyX93csbfHFWEJJYHnn5oA==}+ hasBin: true+'@marijn/[email protected]':resolution: {integrity: sha512-l0h88YhZFyKdXIFNfSWpyjStDjGHwZ/U7iobcK1cQQD8sejsONdQtTVU+1wVN1PBw40PiiHB1vA5S7VTfQiP9g==}@@ -5657,6 +5695,9 @@ packages:'@types/[email protected]':resolution: {integrity: sha512-nEnwB++1u5lVDM2UI4c1+5R+FYaKfaAzS4OococimjVm3nQw3TuzH5UNsocrcTBbhnerblyHj4A49qXbIiZdpA==}+ '@types/[email protected]':+ resolution: {integrity: sha512-qDO7wqtprzlpe8FfQ//ClPV9xiuoh2nkIgiouIptON9w5jvD/fA4szvP9GBlDVdJ5dldAl0kX/sy3URbWwLx0g==}+'@types/[email protected]':resolution: {integrity: sha512-6C8nqWur3j98U6+lXDfTUWIfgvZU+EumvpHKcYjujKH7woYyLj2sUmff0tRhrqM7BohUw7Pz3ZB1jj2gW9Fvmg==}@@ -5723,6 +5764,12 @@ packages:'@types/[email protected]':resolution: {integrity: sha512-R/BdP7OxEMc44l2Ex5lSXHoIXTB2JLNa3y2QISIbr58U/YcsffyQrYW//hZSdrfxrjRZj3GcUoxMPGdO8gSYuw==}+ '@types/[email protected]':+ resolution: {integrity: sha512-mUWlSxAmYLfwnRBmgYV86tgYmMIICX4kza8YnE/eIlywGe2XoOxlpVnXWwir92xRLjwyarqwpu2EJKD2pk0IUA==}++ '@types/[email protected]':+ resolution: {integrity: sha512-bpd8dRn9pr6xKvuEBQup8pwQfD4VUyqO/2deGjfpe6AwC8YRlyEipvefyRJUSiCJTZuCb8Pl1ciVV5ekqJ96Bg==}+'@types/[email protected]':resolution: {integrity: sha512-244ZnaIBpz4c6xutliAnYVZp6xJlmC569jZqnR3ElO1Y01ooYASSVQEqpd2x0A2UfrgVMs5V9/9tUAdZaDMytQ==}@@ -5774,6 +5821,9 @@ packages:'@types/[email protected]':resolution: {integrity: sha512-dISoDXWWQwUquiKsyZ4Ng+HX2KsPL7LyHKHQwgGFEA3IaKac4Obd+h2a/a6waisAoepJlBcx9paWqjA8/HVjCw==}+ '@types/[email protected]':+ resolution: {integrity: sha512-j3pOPiEcWZ34R6a6mN07mUkM4o4Lwf6hPNt8eilOeZhTFbxFXmKhvXl9Y28jotFPaI1bpPDJsbCprUoNke6OrA==}+'@types/[email protected]':resolution: {integrity: sha512-raZhRVTf6Vw5+QbmQ7LOHSDML71A5rj4+EqDzAbrZPfxfoGzFxMHRCq16VlddGIZpHELw0BG4G0YE2ANkdZiIQ==}@@ -5851,6 +5901,9 @@ packages:'@types/[email protected]':resolution: {integrity: sha512-pTVjI73witn+9ILmoJdajHGW2jkSaOzhiFYF1Rd3EQ94kymLqB9PjD9ISg7WaALC7+dCHT0FGe9T2LktLq/3GQ==}+ '@types/[email protected]':+ resolution: {integrity: sha512-Z0pOY34GDFl3Q6hUFYf3HkTwKEE02e7QgtJppBt+beEAxnyOpJua+voGFvxINBHa06GwLFFym7gRPY2SiKIfIA==}+'@types/[email protected]':resolution: {integrity: sha512-8WzXq62EXFhJ7QsH3Ocb/iKQ/Ty9ZVWnVzoTKc9tyyFRRF3a74Tk2+TLFgaFFw364Ere+npzHKEJ6ga2LzIL7w==}@@ -8175,6 +8228,9 @@ packages:resolution: {integrity: sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==}engines: {node: '>= 0.4'}+ resolution: {integrity: sha512-X7hshQbLyMJ/3RPhyObLARM2sNxxmRALLKx1+NVFFnQ9gKzmCrxm9+uLIAdBcvc8FNLpctqlQ2V6AE92Ol9UDQ==}+resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==}@@ -8989,6 +9045,9 @@ packages:resolution: {integrity: sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==}engines: {node: '>=6.9.0'}+ resolution: {integrity: sha512-AV9ROqlNqoZEIJGfm1ncNjEXfkz2hdFlZf0qkVfmkwdKa8vj7H16YUOT81rJw1rdFhyEDlN2Tds91p/glzbl5A==}+resolution: {integrity: sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==}engines: {node: 6.* || 8.* || >= 10.*}@@ -9063,6 +9122,9 @@ packages:resolution: {integrity: sha512-IaOQ9puYtjrkq7Y0Ygl9KDZnrf/aiUJYUpVf89y8kyaxbRG7Y1SrX/jaumrv81vc61+kiMempujsM3Yw7w5qcw==}+ resolution: {integrity: sha512-wcCp8vu8FT22BnvKVPjXa/ICBWRq/zjFfdofZy1WSpQZpphblv12/bOQLBC1rMM7SGOFS9ltVmKOHil5+Ml7gA==}+resolution: {integrity: sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==}engines: {node: '>= 6'}@@ -9116,6 +9178,10 @@ packages:resolution: {integrity: sha512-awConJSVCHVGND6x3tmMaKcQvwXLhjdkmomy2W+Goaui8YPgYgXJZewhg3fWC+DlfqqQuWg8AwqjGTD2nAPVWg==}engines: {node: '>=6'}+ resolution: {integrity: sha512-w0Uf9Y9/nyHinEk5vMJKRie+wa4kR5hmDbEhGGds/kG1PwGLLHKRoNMeJOyCQjjBkANlnScqgzcFwGHgmgLkVA==}+ engines: {node: '>=16'}+resolution: {integrity: sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==}engines: {node: '>=4'}@@ -9568,6 +9634,10 @@ packages:resolution: {integrity: sha512-7PnF4oN3CvZF23ADhA5wRaYEQpJ8qygSkbtTXWBeXWXmEVRXK+1ITciHWwHhsjv1TmW0MgacIv6hEi5pX5NQdA==}engines: {node: '>=10'}+ resolution: {integrity: sha512-X7rqawQBvfdjS10YU1y1YVreA3SsLrW9dX2CewP2EbBJM4ypVNLDkO5y04gejPwKIY9lR+7r9gn3rFPt/kmWFg==}+ engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0}+resolution: {integrity: sha512-+N0ngpO3e7cRUWOJAS7qw0IZIVc6XPrW4MlFBdD066F2L4k1L6ker3hLqSq7iXxU5tgS4WGkIUElWn5vogAEnw==}engines: {node: ^18.17.0 || >=20.5.0}@@ -10163,6 +10233,9 @@ packages:resolution: {integrity: sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==}+ resolution: {integrity: sha512-3CNZ2DnrpByG9Nqj6Xo8vqbjT4F6N+tb4Gb28ESAZjYZ5yqvmc56J+/kuIwkaAMOyblTQhUW7PxMkUb8Q36N3Q==}+resolution: {integrity: sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==}@@ -10210,6 +10283,9 @@ packages:resolution: {integrity: sha512-XCHRdUw4lf3SKBaJe4EvgqIuWwkPSo9XoeO8GjQW94Bp7TWv9hNhzZjZ+OH9yf1UmLygb7DIT5GSFQiyt16zYg==}hasBin: true+ resolution: {integrity: sha512-WbCVYJ27Sz8zi9Q7Q0xHC+05iwkm3Znipc2XTlrnJbsHMYktW4hPhXUE8Ys1engBrvffoSCqbil1JQAa7clRpA==}+resolution: {integrity: sha512-iQcmNA0M4ETMNi0kG/q0h/43wZk7rMeKYrXP7sqKIJbHkTU8Koowgzv+ieR/vWJbOwxx5nDC3UnudZ0aLSu4VA==}@@ -10590,6 +10666,10 @@ packages:resolution: {integrity: sha512-bJzx6nMoP6PDLPBFmg7+xRKeFZvFboMrGlxmNj9ClvX53KrmvM5bXFXEWjbz4cz1AFn+jWJ9z/DJSz7hrs0w3w==}engines: {node: '>=6'}+ resolution: {integrity: sha512-TTSfoTaF7RqKUR9wR5qDxCHH2J1XfZ1E85luiLOx0h8r50T/LnwAwwfV0WVNh9o8dA7rwt57Ucivf1emyeukXg==}+ engines: {node: '>=16.14.0', npm: '>=8.1.0'}+resolution: {integrity: sha512-1I+1qpDt4idfgLQG+BNWmrqku+7/2bi5nLf4YwF8y8zXvmfiTBY3PV3ZibfrjBueCByROpuBjLLFCajqkgYoLQ==}@@ -11030,6 +11110,9 @@ packages:resolution: {integrity: sha512-ZkcWZudylwF+ir3Ld1n7gL6bI2mQAzXvSobPwVtu8aYi2sbXeipeSkdcanRLzIofLcM5F53lGaKm2dk7orBi7Q==}+ resolution: {integrity: sha512-TvmkNhkv8yct0SVBSy+o8wYzXjE4Zz3PCesbfs8HiCXXdcTuocApFv11UWlNFWKYsP2okqrhb7JNlSm9InBhIw==}+resolution: {integrity: sha512-WWdIxpyjEn+FhQJQQv9aQAYlHoNVdzIzUySNV1gHUPDSdZJ3yZn7pAAbQcV7B56Mvu881q9FZV+0Vx2xC44VWA==}engines: {node: ^18.17.0 || >=20.5.0}@@ -11604,6 +11687,10 @@ packages:resolution: {integrity: sha512-//nshmD55c46FuFw26xV/xFAaB5HF9Xdap7HJBBnrKdAd6/GxDBaNA1870O79+9ueg61cZLSVc+OaFlfmObYVQ==}engines: {node: '>= 14.16'}+ resolution: {integrity: sha512-XDF38WCH3z5OV/OVa8GKUNtLAyneuzbCisx7QUCF8Q6Nutx0WnJrQe5O+kOtBlLfRNUws98Y58Lblp+NJG5T4Q==}+ hasBin: true+resolution: {integrity: sha512-nh39Mo1eGWmZS7y+mK/dQIqg7S1lp38DpRxkyoHf0ZcUs/HDc+yyTjuOtTvSMZHmfSLuSQaX945u05Y2Q6UWZg==}engines: {node: '>=14', npm: '>=7'}@@ -12516,6 +12603,9 @@ packages:engines: {node: '>=14.0.0'}hasBin: true+ resolution: {integrity: sha512-pcaShQc1Shq0y+E7GqJqvZj8DTthWV1KeHGdi0Z6IAin2Oi3JnLCOfwnCo84qc+HAp52wT9nK9H7FAJp5a44GQ==}+resolution: {integrity: sha512-SSjF9vcnF27mJK1XyFMNJzFd5u3pQiATFqoaDy03XuN00u4ziveVVEGt5RKJrDR8MHE/wJo9Nnad56RLzS2RMA==}@@ -12588,6 +12678,9 @@ packages:resolution: {integrity: sha512-Z2E/kOY1QjoMlCytmexzYfDm/w5fKAiRwpSzGtdnXW1zC88Z2yXazHHrOtwCzn+7wSxyE8PYM4rvVcMphF9sOA==}engines: {node: '>=12.0.0'}+ resolution: {integrity: sha512-TdDRD+/QNdrCGCE7v8340QyuXd4kIWIgapsE2+n/SaGiSSbomYl4TjHlvIoCWRpE7wFt02EpB35VVA2ImcBVqw==}+resolution: {integrity: sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==}engines: {node: '>= 0.10'}@@ -12657,6 +12750,9 @@ packages:resolution: {integrity: sha512-WuyALRjWPDGtt/wzJiadO5AXY+8hZ80hVpe6MyivgraREW751X3SbhRvG3eLKOYN+8VEvqLcf3wdnt44Z4S4SA==}engines: {node: '>=10'}+ resolution: {integrity: sha512-XdjUArbK4Bm5fLLvlm5KpTFOiOThgfWWI4axAZDWg4E/0mKdZyI9tNEfds27qCi1ze/vwTR16kvmmGhRra3c2g==}+resolution: {integrity: sha512-Zri5SfJmEzBJ3IexFdigvPSCamslJ7UjLkUn0tlgH7COJvaUr5V7FyUYgKifEMTw7gFO8ZLcWjcU+kq8akipzg==}engines: {node: '>= 10'}@@ -12916,6 +13012,9 @@ packages:resolution: {integrity: sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==}+ resolution: {integrity: sha512-kI5ffTiZWmJaS/huM8wZfEMer1eRd7oJQhDuxeCLe3t7N7mX3z94CN0xPxBQxFYQTSNz9T0i+v6inKqSdK8xrQ==}+resolution: {integrity: sha512-OcXjMsGdhL4XnbShKpAcSqPMzQoYkYyhbEaeSko47MjRP9NfEQMhZkXL1DoFlt9LWQn4YttrdnV6X2OiyzBi+A==}engines: {node: '>=10'}@@ -13875,6 +13974,9 @@ packages:resolution: {integrity: sha512-y/hkYGeXAj7wUMjxRbB21g/l6aAEituGXM9Rwl4o20+SX3e8YOSV6BxFXl+dL3Uk0mjSL3kCbNkwURm8/gEDig==}engines: {node: '>=14.18.0'}+ resolution: {integrity: sha512-IiOea5kJ9iqzD2t7QJq/cREyLHTtSmUT6gQsweojg9WH2sYJqZK9SswTu6jrscO6D1G5v5vYZ9ru/eq85lXeZQ==}+resolution: {integrity: sha512-tjLPs7dVyqgItVFirHYqe2T+MfWc2VOBQ8QFKKbWTA3PU7liZR8zoSpAi/C1k1ilm9RsXIKYf197oap9wXGVYg==}engines: {node: '>=14.18.0'}@@ -14112,6 +14214,9 @@ packages:resolution: {integrity: sha512-Zba82s87IFq9A9XmjiX5uZA/ARWDrB03OHlq+Vw1fSdt0I+4/Kutwy8BP4Y/y/aORMo61FQ0vIb5j44vSo5Pkg==}engines: {node: ^18.0.0 || >=20.0.0}+ resolution: {integrity: sha512-gRa9gwYU3ECmQYv3lslts5hxuIa90veaEcxDYuu3QGOIAEM2mOZkVHp48ANJuu1CURtRdHKUBY5Lm1tHV+sD4g==}+resolution: {integrity: sha512-op4nsTR47R6p0vMUUoYl/a+ljLFVtlfaXkLQmqfLR1qHma1h/ysYk4hEXZ880bf2CYgTskvTa/e196Vd5dDQXw==}engines: {node: '>=14.0.0'}@@ -14805,6 +14910,9 @@ packages:resolution: {integrity: sha512-/BpdSx+yCQGnCvecbyXdxHDkuk55/G3xwnC0GqY4gmQ3j+A+g8kzzgB4Nk/SINjqn6+waqw3EgbVF2QKExkRxQ==}+ resolution: {integrity: sha512-2LzDFzt0mZKZ9IpVF2r69G9bXaP2Q2sArJCmcCgvfTdCCZzSyz4aCLoQyUilu37Ll56tCblIZrXFIjNUpGIlmA==}+resolution: {integrity: sha512-z8P5DvDNjKDoFIHK7q8r8lackT6l+jo/Ye3HOle7l9nICP9lf1Ci25fy9vHd0JOWewkIFzXIEig3TdKT7JQ5fQ==}deprecated: Use your platform's native performance.now() and performance.timeOrigin.@@ -15000,6 +15108,11 @@ packages:engines: {node: '>= 8'}hasBin: true+ resolution: {integrity: sha512-GlaYyEb07DPxYCKhKzplCWBJtvxZcZMrL+4UkrTSJHHPyZU4mYYTv3qaOe77H7EODLSSopAUFAc6W8U4yqvscg==}+ engines: {node: ^16.13.0 || >=18.0.0}+ hasBin: true+resolution: {integrity: sha512-JEdGzHwwkrbWoGOlIHqQ5gtprKGOenpDHpxE9zVR1bWbOtYRyPPHMe9FaP6x61CmNaTThSkb0DAJte5jD+DmzQ==}engines: {node: ^18.17.0 || >=20.5.0}@@ -16543,6 +16656,8 @@ snapshots:'@ckeditor/ckeditor5-core': 46.0.0'@ckeditor/ckeditor5-upload': 46.0.0ckeditor5: 46.0.0(patch_hash=8331a09d41443b39ea1c784daaccfeb0da4f9065ed556e7de92e9c77edd9eb41)+ transitivePeerDependencies:+ - supports-color'@ckeditor/[email protected]':dependencies:@@ -16673,6 +16788,8 @@ snapshots:'@ckeditor/ckeditor5-core': 46.0.0'@ckeditor/ckeditor5-utils': 46.0.0ckeditor5: 46.0.0(patch_hash=8331a09d41443b39ea1c784daaccfeb0da4f9065ed556e7de92e9c77edd9eb41)+ transitivePeerDependencies:+ - supports-color'@ckeditor/[email protected](patch_hash=2361d8caad7d6b5bddacc3a3b4aa37dbfba260b1c1b22a450413a79c1bb1ce95)':dependencies:@@ -16898,6 +17015,8 @@ snapshots:'@ckeditor/ckeditor5-utils': 46.0.0ckeditor5: 46.0.0(patch_hash=8331a09d41443b39ea1c784daaccfeb0da4f9065ed556e7de92e9c77edd9eb41)es-toolkit: 1.39.5+ transitivePeerDependencies:+ - supports-color'@ckeditor/[email protected]':dependencies:@@ -16907,6 +17026,8 @@ snapshots:'@ckeditor/ckeditor5-utils': 46.0.0ckeditor5: 46.0.0(patch_hash=8331a09d41443b39ea1c784daaccfeb0da4f9065ed556e7de92e9c77edd9eb41)es-toolkit: 1.39.5+ transitivePeerDependencies:+ - supports-color'@ckeditor/[email protected]':dependencies:@@ -16961,8 +17082,6 @@ snapshots:ckeditor5: 46.0.0(patch_hash=8331a09d41443b39ea1c784daaccfeb0da4f9065ed556e7de92e9c77edd9eb41)es-toolkit: 1.39.5fuzzysort: 3.1.0- transitivePeerDependencies:- - supports-color'@ckeditor/[email protected]':dependencies:@@ -17005,8 +17124,6 @@ snapshots:'@ckeditor/ckeditor5-ui': 46.0.0'@ckeditor/ckeditor5-utils': 46.0.0ckeditor5: 46.0.0(patch_hash=8331a09d41443b39ea1c784daaccfeb0da4f9065ed556e7de92e9c77edd9eb41)- transitivePeerDependencies:- - supports-color'@ckeditor/[email protected]':dependencies:@@ -17094,6 +17211,8 @@ snapshots:'@ckeditor/ckeditor5-utils': 46.0.0'@ckeditor/ckeditor5-widget': 46.0.0ckeditor5: 46.0.0(patch_hash=8331a09d41443b39ea1c784daaccfeb0da4f9065ed556e7de92e9c77edd9eb41)+ transitivePeerDependencies:+ - supports-color'@ckeditor/[email protected]':dependencies:@@ -17153,8 +17272,6 @@ snapshots:'@ckeditor/ckeditor5-ui': 46.0.0'@ckeditor/ckeditor5-utils': 46.0.0ckeditor5: 46.0.0(patch_hash=8331a09d41443b39ea1c784daaccfeb0da4f9065ed556e7de92e9c77edd9eb41)- transitivePeerDependencies:- - supports-color'@ckeditor/[email protected]':dependencies:@@ -17291,8 +17408,6 @@ snapshots:'@ckeditor/ckeditor5-widget': 46.0.0ckeditor5: 46.0.0(patch_hash=8331a09d41443b39ea1c784daaccfeb0da4f9065ed556e7de92e9c77edd9eb41)es-toolkit: 1.39.5- transitivePeerDependencies:- - supports-color'@ckeditor/[email protected]':dependencies:@@ -17507,6 +17622,8 @@ snapshots:'@ckeditor/ckeditor5-ui': 46.0.0'@ckeditor/ckeditor5-utils': 46.0.0ckeditor5: 46.0.0(patch_hash=8331a09d41443b39ea1c784daaccfeb0da4f9065ed556e7de92e9c77edd9eb41)+ transitivePeerDependencies:+ - supports-color'@ckeditor/[email protected]':dependencies:@@ -19422,6 +19539,41 @@ snapshots:- supports-coloroptional: true+ '@mapbox/[email protected]':+ dependencies:+ get-stream: 6.0.1+ minimist: 1.2.8++ '@mapbox/[email protected]': {}++ '@mapbox/[email protected]': {}++ '@mapbox/[email protected]': {}++ '@mapbox/[email protected]': {}++ '@mapbox/[email protected]':+ dependencies:+ '@mapbox/point-geometry': 0.1.0++ '@mapbox/[email protected]': {}++ dependencies:+ '@types/leaflet': 1.9.20+ leaflet: 1.9.4+ maplibre-gl: 5.6.1++ '@maplibre/[email protected]':+ dependencies:+ '@mapbox/jsonlint-lines-primitives': 2.0.2+ '@mapbox/unitbezier': 0.0.1+ json-stringify-pretty-compact: 4.0.0+ minimist: 1.2.8+ quickselect: 3.0.0+ rw: 1.3.3+ tinyqueue: 3.0.0+'@marijn/[email protected]': {}'@mermaid-js/[email protected]([email protected])':@@ -21557,6 +21709,10 @@ snapshots:'@types/node': 22.16.5optional: true+ '@types/[email protected]':+ dependencies:+ '@types/geojson': 7946.0.16+'@types/[email protected]': {}'@types/[email protected]':@@ -21628,6 +21784,14 @@ snapshots:'@types/[email protected]': {}+ '@types/[email protected]': {}++ '@types/[email protected]':+ dependencies:+ '@types/geojson': 7946.0.16+ '@types/mapbox__point-geometry': 0.1.4+ '@types/pbf': 3.0.5+'@types/[email protected]':dependencies:'@types/jquery': 3.5.32@@ -21682,6 +21846,8 @@ snapshots:'@types/[email protected]': {}+ '@types/[email protected]': {}+'@types/[email protected]':dependencies:postcss: 8.5.6@@ -21775,6 +21941,10 @@ snapshots:'@types/node': 22.16.5form-data: 4.0.4+ '@types/[email protected]':+ dependencies:+ '@types/geojson': 7946.0.16+'@types/[email protected]':dependencies:'@types/methods': 1.1.4@@ -22118,26 +22288,6 @@ snapshots:- viteoptional: true- '@vitest/[email protected]([email protected])([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])([email protected]([email protected])([email protected]))':- dependencies:- '@testing-library/dom': 10.4.0- '@testing-library/user-event': 14.6.1(@testing-library/[email protected])- '@vitest/mocker': 3.2.4([email protected](@types/[email protected])([email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))- '@vitest/utils': 3.2.4- magic-string: 0.30.17- sirv: 3.0.1- tinyrainbow: 2.0.0- vitest: 3.2.4(@types/[email protected])(@types/[email protected])(@vitest/[email protected])(@vitest/[email protected])([email protected])([email protected])([email protected]([email protected])([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])- ws: 8.18.3([email protected])([email protected])- optionalDependencies:- playwright: 1.54.1- webdriverio: 9.18.4([email protected])([email protected])- transitivePeerDependencies:- - bufferutil- - msw- - utf-8-validate- - vite-'@vitest/[email protected]([email protected])([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])([email protected]([email protected])([email protected]))':dependencies:'@testing-library/dom': 10.4.0@@ -22269,7 +22419,7 @@ snapshots:sirv: 3.0.1tinyglobby: 0.2.14tinyrainbow: 2.0.0- vitest: 3.2.4(@types/[email protected])(@types/[email protected])(@vitest/[email protected])(@vitest/[email protected])([email protected])([email protected])([email protected]([email protected])([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])+ vitest: 3.2.4(@types/[email protected])(@types/[email protected])(@vitest/[email protected])(@vitest/[email protected])([email protected])([email protected])([email protected]([email protected])([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])'@vitest/[email protected]':dependencies:@@ -23370,8 +23520,6 @@ snapshots:dependencies:'@ckeditor/ckeditor5-collaboration-core': 46.0.0- transitivePeerDependencies:- - supports-color[email protected]([email protected])([email protected](patch_hash=8331a09d41443b39ea1c784daaccfeb0da4f9065ed556e7de92e9c77edd9eb41))([email protected]):dependencies:@@ -24669,6 +24817,8 @@ snapshots:es-errors: 1.3.0gopd: 1.2.0+ [email protected]: {}+@@ -25819,6 +25969,8 @@ snapshots:+ [email protected]: {}+@@ -25903,6 +26055,8 @@ snapshots:+ [email protected]: {}+dependencies:is-glob: 4.0.3@@ -25990,6 +26144,12 @@ snapshots:kind-of: 6.0.3which: 1.3.1+ dependencies:+ ini: 4.1.3+ kind-of: 6.0.3+ which: 4.0.0+@@ -26528,6 +26688,8 @@ snapshots:+ [email protected]: {}+@@ -27299,6 +27461,8 @@ snapshots:+ [email protected]: {}+optional: true@@ -27347,6 +27511,8 @@ snapshots:dependencies:commander: 8.3.0+ [email protected]: {}+@@ -27762,6 +27928,35 @@ snapshots:dependencies:p-defer: 1.0.0+ dependencies:+ '@mapbox/geojson-rewind': 0.5.2+ '@mapbox/jsonlint-lines-primitives': 2.0.2+ '@mapbox/point-geometry': 0.1.0+ '@mapbox/tiny-sdf': 2.0.6+ '@mapbox/unitbezier': 0.0.1+ '@mapbox/vector-tile': 1.3.1+ '@mapbox/whoots-js': 3.1.0+ '@maplibre/maplibre-gl-style-spec': 23.3.0+ '@types/geojson': 7946.0.16+ '@types/geojson-vt': 3.2.5+ '@types/mapbox__point-geometry': 0.1.4+ '@types/mapbox__vector-tile': 1.3.4+ '@types/pbf': 3.0.5+ '@types/supercluster': 7.1.3+ earcut: 3.0.2+ geojson-vt: 4.0.2+ gl-matrix: 3.4.3+ global-prefix: 4.0.0+ kdbush: 4.0.2+ murmurhash-js: 1.0.0+ pbf: 3.3.0+ potpack: 2.1.0+ quickselect: 3.0.0+ supercluster: 8.0.1+ tinyqueue: 3.0.0+ vt-pbf: 3.1.3+@@ -28482,6 +28677,8 @@ snapshots:imul: 1.0.1optional: true+ [email protected]: {}+optional: true@@ -29139,6 +29336,11 @@ snapshots:+ dependencies:+ ieee754: 1.2.1+ resolve-protobuf-schema: 2.1.0+@@ -30026,6 +30228,8 @@ snapshots:dependencies:commander: 9.5.0+ [email protected]: {}+@@ -30105,6 +30309,8 @@ snapshots:'@types/node': 24.1.0long: 5.3.2+ [email protected]: {}+dependencies:forwarded: 0.2.0@@ -30184,6 +30390,8 @@ snapshots:+ [email protected]: {}+@@ -30516,6 +30724,10 @@ snapshots:+ dependencies:+ protocol-buffers-schema: 3.6.0+@@ -31706,6 +31918,10 @@ snapshots:transitivePeerDependencies:- supports-color+ dependencies:+ kdbush: 4.0.2+dependencies:methods: 1.1.2@@ -32037,6 +32253,8 @@ snapshots:+ [email protected]: {}+@@ -32701,12 +32919,6 @@ snapshots:tinyglobby: 0.2.14vite: 7.0.5(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])- [email protected]([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])):- dependencies:- svgo: 3.3.2- typescript: 5.8.3- vite: 7.0.0(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])-[email protected]([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])):dependencies:svgo: 3.3.2@@ -32871,7 +33083,7 @@ snapshots:optionalDependencies:'@types/debug': 4.1.12'@types/node': 24.1.0- '@vitest/browser': 3.2.4([email protected])([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])([email protected]([email protected])([email protected]))+ '@vitest/browser': 3.2.4([email protected])([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])([email protected]([email protected])([email protected]))'@vitest/ui': 3.2.4([email protected])happy-dom: 18.0.1jsdom: 26.1.0([email protected])([email protected])@@ -32908,6 +33120,12 @@ snapshots:+ dependencies:+ '@mapbox/point-geometry': 0.1.0+ '@mapbox/vector-tile': 1.3.1+ pbf: 3.3.0+dependencies:browser-process-hrtime: 1.0.0@@ -33209,6 +33427,10 @@ snapshots:dependencies:isexe: 2.0.0+ dependencies:+ isexe: 3.1.1+dependencies:isexe: 3.1.1