From 6f7ef9fac203cd92c451cb932899740d1030e85f Mon Sep 17 00:00:00 2001 From: Development Seed Date: Wed, 7 Oct 2026 10:41:29 +0530 Subject: [PATCH] add new widgets for a MapLibre map and a table widget --- README.md | 9 +- docs/examples/geomap-table.ipynb | 1082 +++++++++++++++++ docs/myst.yml | 5 + package-lock.json | 34 +- package.json | 4 +- pyproject.toml | 6 + scripts/build.mjs | 7 + src/manywidgets/__init__.py | 5 + src/manywidgets/_version.py | 2 +- src/manywidgets/geo_map/__init__.py | 3 + src/manywidgets/geo_map/doc.md | 92 ++ src/manywidgets/geo_map/src/colormaps.ts | 64 + src/manywidgets/geo_map/src/controls.ts | 239 ++++ src/manywidgets/geo_map/src/css.d.ts | 6 + src/manywidgets/geo_map/src/grid.ts | 195 +++ src/manywidgets/geo_map/src/index.ts | 453 +++++++ src/manywidgets/geo_map/src/layers.ts | 129 ++ src/manywidgets/geo_map/style.css | 156 +++ src/manywidgets/geo_map/tests/geomap.test.ts | 304 +++++ src/manywidgets/geo_map/tests/test_geomap.py | 104 ++ src/manywidgets/geo_map/widget.py | 406 +++++++ .../skill/references/widgets-api.md | 1 + src/manywidgets/table/__init__.py | 3 + src/manywidgets/table/doc.md | 63 + src/manywidgets/table/src/index.ts | 272 +++++ src/manywidgets/table/style.css | 93 ++ src/manywidgets/table/tests/table.test.ts | 160 +++ src/manywidgets/table/tests/test_table.py | 80 ++ src/manywidgets/table/widget.py | 125 ++ 29 files changed, 4065 insertions(+), 37 deletions(-) create mode 100644 docs/examples/geomap-table.ipynb create mode 100644 src/manywidgets/geo_map/__init__.py create mode 100644 src/manywidgets/geo_map/doc.md create mode 100644 src/manywidgets/geo_map/src/colormaps.ts create mode 100644 src/manywidgets/geo_map/src/controls.ts create mode 100644 src/manywidgets/geo_map/src/css.d.ts create mode 100644 src/manywidgets/geo_map/src/grid.ts create mode 100644 src/manywidgets/geo_map/src/index.ts create mode 100644 src/manywidgets/geo_map/src/layers.ts create mode 100644 src/manywidgets/geo_map/style.css create mode 100644 src/manywidgets/geo_map/tests/geomap.test.ts create mode 100644 src/manywidgets/geo_map/tests/test_geomap.py create mode 100644 src/manywidgets/geo_map/widget.py create mode 100644 src/manywidgets/table/__init__.py create mode 100644 src/manywidgets/table/doc.md create mode 100644 src/manywidgets/table/src/index.ts create mode 100644 src/manywidgets/table/style.css create mode 100644 src/manywidgets/table/tests/table.test.ts create mode 100644 src/manywidgets/table/tests/test_table.py create mode 100644 src/manywidgets/table/widget.py diff --git a/README.md b/README.md index 50fcce8..7e008a1 100644 --- a/README.md +++ b/README.md @@ -9,9 +9,10 @@ MyST plugin. > **Status:** early but feature-complete for v1 — `Chart`, input controls (`Slider`, > `RangeSlider`, `Dropdown`, `Toggle`, `Button`, `NumberInput`), value displays -> (`Stat`, `NumberDisplay`, `Text`), layout containers (`Row`, `Column`, `Grid`), -> the `Binder` linking primitive, and optional lonboard interop (`LayerToggle`, -> `FilterBinder`, `LayerFilter`). +> (`Stat`, `NumberDisplay`, `Text`), `Table`, `GeoMap` (a MapLibre map with GeoJSON, +> XYZ-tile and client-styled grid-raster layers), layout containers (`Row`, +> `Column`, `Grid`), the `Binder` linking primitive, and optional lonboard interop +> (`LayerToggle`, `FilterBinder`, `LayerFilter`). ## Install @@ -39,6 +40,8 @@ from manywidgets import ( Chart, # Chart.js charts Slider, RangeSlider, Dropdown, Toggle, Button, NumberInput, # input controls Stat, NumberDisplay, Text, Legend, # value displays + Table, # sortable, selectable table of records + GeoMap, GridLayer, # MapLibre map: GeoJSON, XYZ tiles, quantized grid rasters Row, Column, Grid, # layout (arrange + keep children linked) Binder, # linking with transforms / nested paths ) diff --git a/docs/examples/geomap-table.ipynb b/docs/examples/geomap-table.ipynb new file mode 100644 index 0000000..992fffb --- /dev/null +++ b/docs/examples/geomap-table.ipynb @@ -0,0 +1,1082 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "id": "609ff011", + "metadata": {}, + "source": [ + "# GeoMap + Table: linked footprints and an explorable raster\n", + "\n", + "Two patterns that work with no kernel on a static page:\n", + "\n", + "1. a **search-result table linked to a footprint map** — click a row or a\n", + " polygon and the other side follows (`jslink` on `selected`);\n", + "2. a **quantized grid raster** the reader can re-stretch, re-colour and switch\n", + " between bands / an RGB composite, entirely in the browser.\n", + "\n", + "The data below is synthetic so this page builds anywhere." + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "id": "9f6bb69b", + "metadata": { + "execution": { + "iopub.execute_input": "2026-10-07T04:45:56.867447Z", + "iopub.status.busy": "2026-10-07T04:45:56.867138Z", + "iopub.status.idle": "2026-10-07T04:45:56.959345Z", + "shell.execute_reply": "2026-10-07T04:45:56.958924Z" + } + }, + "outputs": [ + { + "data": { + "application/vnd.jupyter.widget-view+json": { + "model_id": "5c2994ecd7da49a0ae85efcc8951ee6d", + "version_major": 2, + "version_minor": 1 + }, + "text/plain": [ + "" + ] + }, + "execution_count": 1, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "import numpy as np\n", + "from ipywidgets import jslink\n", + "from manywidgets import Column, GeoMap, GridLayer, Table\n", + "\n", + "rng = np.random.default_rng(7)\n", + "\n", + "# Eight fake \"granules\": tilted rectangles along a track near Death Valley.\n", + "features, rows = [], []\n", + "for i in range(8):\n", + " lon0, lat0 = -117.4 + 0.18 * i, 35.6 + 0.12 * i\n", + " ring = [[lon0, lat0], [lon0 + 0.5, lat0 + 0.08], [lon0 + 0.42, lat0 + 0.46], [lon0 - 0.08, lat0 + 0.38], [lon0, lat0]]\n", + " gid = f\"G{i+1:03d}\"\n", + " features.append({\"type\": \"Feature\", \"properties\": {\"granule\": gid, \"track\": 4, \"frame\": 4000 + i}, \"geometry\": {\"type\": \"Polygon\", \"coordinates\": [ring]}})\n", + " rows.append({\"granule\": gid, \"start\": f\"2025-10-{10+i:02d}T11:1{i}:30Z\", \"frame\": 4000 + i, \"polarization\": \"DHDH\", \"size\": int(rng.integers(4_500_000_000, 6_000_000_000))})\n", + "\n", + "table = Table(\n", + " rows,\n", + " columns=[\n", + " {\"key\": \"granule\", \"label\": \"Granule\"},\n", + " {\"key\": \"start\", \"label\": \"Start\", \"format\": \"datetime\"},\n", + " {\"key\": \"frame\", \"label\": \"Frame\"},\n", + " {\"key\": \"polarization\", \"label\": \"Pol\"},\n", + " {\"key\": \"size\", \"label\": \"Size\", \"format\": \"bytes\"},\n", + " ],\n", + " id_key=\"granule\",\n", + " selected=\"G003\",\n", + " max_height=\"220px\",\n", + ")\n", + "fmap = GeoMap(basemap=\"positron\", height=\"380px\", controls=False)\n", + "fmap.add_geojson({\"type\": \"FeatureCollection\", \"features\": features}, id=\"footprints\", id_property=\"granule\", tooltip=[\"granule\", \"frame\"])\n", + "fmap.selected = \"G003\"\n", + "jslink((table, \"selected\"), (fmap, \"selected\"))\n", + "jslink((table, \"hovered\"), (fmap, \"hovered\"))\n", + "Column(table, fmap)" + ] + }, + { + "cell_type": "markdown", + "id": "fae44d32", + "metadata": {}, + "source": [ + "## A grid raster with client-side styling\n", + "\n", + "`GridLayer.from_arrays` quantizes each band to one byte per pixel (0 = nodata)\n", + "and places the image by its four outer corners. The panel's band / stretch /\n", + "colormap / opacity changes are applied in the browser." + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "id": "5fc52a19", + "metadata": { + "execution": { + "iopub.execute_input": "2026-10-07T04:45:56.962887Z", + "iopub.status.busy": "2026-10-07T04:45:56.962798Z", + "iopub.status.idle": "2026-10-07T04:45:56.972622Z", + "shell.execute_reply": "2026-10-07T04:45:56.972307Z" + } + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "grid payload: 0.31 MB\n" + ] + }, + { + "data": { + "application/vnd.jupyter.widget-view+json": { + "model_id": "8c0b7a937b0e40d79bcf39cbc446e8ea", + "version_major": 2, + "version_minor": 1 + }, + "text/plain": [ + "" + ] + }, + "execution_count": 2, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "y, x = np.mgrid[0:240, 0:320]\n", + "hh = -18 + 6 * np.sin(x / 25) * np.cos(y / 20) + rng.normal(0, 1.5, x.shape)\n", + "hv = hh - 7 + rng.normal(0, 1, x.shape)\n", + "hh[20:40, 20:60] = np.nan # a nodata hole\n", + "corners = [[-116.78, 36.06], [-116.52, 36.09], [-116.49, 35.88], [-116.75, 35.85]] # TL, TR, BR, BL (slightly rotated)\n", + "\n", + "grid = GridLayer.from_arrays(\n", + " {\"HH\": hh, \"HV\": hv, \"HH/HV\": hh - hv},\n", + " corners,\n", + " id=\"window\",\n", + " label=\"Backscatter window\",\n", + " quantize={\"HH\": (-30, 5), \"HV\": (-35, 0), \"HH/HV\": (0, 15)},\n", + " units=\"dB\",\n", + " default_ranges={\"HH\": (-25, -10), \"HV\": (-32, -17), \"HH/HV\": (3, 11)},\n", + " composites={\"Dual-pol RGB\": [\"HH\", \"HV\", \"HH/HV\"]},\n", + ")\n", + "print(f\"grid payload: {grid.nbytes / 1e6:.2f} MB\")\n", + "\n", + "gmap = GeoMap(basemap=\"satellite\", height=\"420px\")\n", + "gmap.add_grid(grid)\n", + "gmap.add_geojson(\n", + " {\"type\": \"Feature\", \"properties\": {\"name\": \"scene\"}, \"geometry\": {\"type\": \"Polygon\", \"coordinates\": [[[-116.9, 36.2], [-116.4, 36.25], [-116.35, 35.75], [-116.85, 35.7], [-116.9, 36.2]]]}},\n", + " id=\"scene\", id_property=\"name\", fill_opacity=0.0, line=\"#ffd166\", line_width=2,\n", + ")\n", + "gmap" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": "manywidgets-venv", + "language": "python", + "name": "manywidgets-venv" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.12.8" + }, + "widgets": { + "application/vnd.jupyter.widget-state+json": { + "state": { + "01d02c7be3644efcb8c475bf8ed5451d": { + "model_module": "@jupyter-widgets/base", + "model_module_version": "2.0.0", + "model_name": "LayoutModel", + "state": { + "_model_module": "@jupyter-widgets/base", + "_model_module_version": "2.0.0", + "_model_name": "LayoutModel", + "_view_count": null, + "_view_module": "@jupyter-widgets/base", + "_view_module_version": "2.0.0", + "_view_name": "LayoutView", + "align_content": null, + "align_items": null, + "align_self": null, + "border_bottom": null, + "border_left": null, + "border_right": null, + "border_top": null, + "bottom": null, + "display": null, + "flex": null, + "flex_flow": null, + "grid_area": null, + "grid_auto_columns": null, + "grid_auto_flow": null, + "grid_auto_rows": null, + "grid_column": null, + "grid_gap": null, + "grid_row": null, + "grid_template_areas": null, + "grid_template_columns": null, + "grid_template_rows": null, + "height": null, + "justify_content": null, + "justify_items": null, + "left": null, + "margin": null, + "max_height": null, + "max_width": null, + "min_height": null, + "min_width": null, + "object_fit": null, + "object_position": null, + "order": null, + "overflow": null, + "padding": null, + "right": null, + "top": null, + "visibility": null, + "width": null + } + }, + "17c282e005b442f388cfd3fc88438dda": { + "model_module": "@jupyter-widgets/base", + "model_module_version": "2.0.0", + "model_name": "LayoutModel", + "state": { + "_model_module": "@jupyter-widgets/base", + "_model_module_version": "2.0.0", + "_model_name": "LayoutModel", + "_view_count": null, + "_view_module": "@jupyter-widgets/base", + "_view_module_version": "2.0.0", + "_view_name": "LayoutView", + "align_content": null, + "align_items": null, + "align_self": null, + "border_bottom": null, + "border_left": null, + "border_right": null, + "border_top": null, + "bottom": null, + "display": null, + "flex": null, + "flex_flow": null, + "grid_area": null, + "grid_auto_columns": null, + "grid_auto_flow": null, + "grid_auto_rows": null, + "grid_column": null, + "grid_gap": null, + "grid_row": null, + "grid_template_areas": null, + "grid_template_columns": null, + "grid_template_rows": null, + "height": null, + "justify_content": null, + "justify_items": null, + "left": null, + "margin": null, + "max_height": null, + "max_width": null, + "min_height": null, + "min_width": null, + "object_fit": null, + "object_position": null, + "order": null, + "overflow": null, + "padding": null, + "right": null, + "top": null, + "visibility": null, + "width": null + } + }, + "21807c8cce4e4f9dbe7efe05ad119706": { + "model_module": "@jupyter-widgets/base", + "model_module_version": "2.0.0", + "model_name": "LayoutModel", + "state": { + "_model_module": "@jupyter-widgets/base", + "_model_module_version": "2.0.0", + "_model_name": "LayoutModel", + "_view_count": null, + "_view_module": "@jupyter-widgets/base", + "_view_module_version": "2.0.0", + "_view_name": "LayoutView", + "align_content": null, + "align_items": null, + "align_self": null, + "border_bottom": null, + "border_left": null, + "border_right": null, + "border_top": null, + "bottom": null, + "display": null, + "flex": null, + "flex_flow": null, + "grid_area": null, + "grid_auto_columns": null, + "grid_auto_flow": null, + "grid_auto_rows": null, + "grid_column": null, + "grid_gap": null, + "grid_row": null, + "grid_template_areas": null, + "grid_template_columns": null, + "grid_template_rows": null, + "height": null, + "justify_content": null, + "justify_items": null, + "left": null, + "margin": null, + "max_height": null, + "max_width": null, + "min_height": null, + "min_width": null, + "object_fit": null, + "object_position": null, + "order": null, + "overflow": null, + "padding": null, + "right": null, + "top": null, + "visibility": null, + "width": null + } + }, + "408ec4babe5e4985bd2ebea5197961fb": { + "model_module": "@jupyter-widgets/base", + "model_module_version": "2.0.0", + "model_name": "LayoutModel", + "state": { + "_model_module": "@jupyter-widgets/base", + "_model_module_version": "2.0.0", + "_model_name": "LayoutModel", + "_view_count": null, + "_view_module": "@jupyter-widgets/base", + "_view_module_version": "2.0.0", + "_view_name": "LayoutView", + "align_content": null, + "align_items": null, + "align_self": null, + "border_bottom": null, + "border_left": null, + "border_right": null, + "border_top": null, + "bottom": null, + "display": null, + "flex": null, + "flex_flow": null, + "grid_area": null, + "grid_auto_columns": null, + "grid_auto_flow": null, + "grid_auto_rows": null, + "grid_column": null, + "grid_gap": null, + "grid_row": null, + "grid_template_areas": null, + "grid_template_columns": null, + "grid_template_rows": null, + "height": null, + "justify_content": null, + "justify_items": null, + "left": null, + "margin": null, + "max_height": null, + "max_width": null, + "min_height": null, + "min_width": null, + "object_fit": null, + "object_position": null, + "order": null, + "overflow": null, + "padding": null, + "right": null, + "top": null, + "visibility": null, + "width": null + } + }, + "5c2994ecd7da49a0ae85efcc8951ee6d": { + "model_module": "anywidget", + "model_module_version": "~0.9.*", + "model_name": "AnyModel", + "state": { + "_anywidget_id": "manywidgets.column.widget.Column", + "_css": ".manywidgets-column {\n margin: 10px 0;\n}\n\n.manywidgets-column__cell {\n min-width: 0;\n}\n", + "_dom_classes": [], + "_esm": "function m(t){return t?String(t).replace(/^IPY_MODEL_/,\"\"):\"\"}var u=()=>{};async function d(t,o,i){if(t.host&&typeof t.host.renderChild==\"function\"){let s=await t.host.renderChild(o,i);return typeof s==\"function\"?s:u}let e=t.model.widget_manager;if(!e||typeof e.create_view!=\"function\")throw new Error(\"[manywidgets] renderChild needs a static host or a widget_manager with create_view\");let n;if(typeof o==\"string\"){if(!e.get_model)throw new Error(\"[manywidgets] widget_manager has no get_model\");n=await e.get_model(m(o))}else n=o;let r=await e.create_view(n);return i.appendChild(r.el),()=>{try{r.remove?.()}catch{}}}async function f(t){let{model:o,el:i}=t,e=document.createElement(\"div\");e.className=\"manywidgets-column\",i.appendChild(e);let n=[];function r(){e.style.display=\"flex\",e.style.flexDirection=\"column\",e.style.gap=o.get(\"gap\")||\"8px\",e.style.alignItems=o.get(\"align\")||\"stretch\"}async function s(){n.forEach(c=>c()),n=[],e.replaceChildren();let a=o.get(\"children\")||[];for(let c of a){let l=document.createElement(\"div\");l.className=\"manywidgets-column__cell\",e.appendChild(l),n.push(await d(t,c,l))}}return r(),await s(),o.on(\"change:gap\",r),o.on(\"change:align\",r),o.on(\"change:children\",()=>{s()}),()=>n.forEach(a=>a())}var y={render:f};export{y as default};\n", + "_model_module": "anywidget", + "_model_module_version": "~0.9.*", + "_model_name": "AnyModel", + "_myst_child_traits": [ + "children" + ], + "_view_count": null, + "_view_module": "anywidget", + "_view_module_version": "~0.9.*", + "_view_name": "AnyView", + "align": "stretch", + "children": [ + "IPY_MODEL_6cb198ed971e454497b7d565eebc029f", + "IPY_MODEL_a9186e27bf334680b8b6d392fc5de665" + ], + "gap": "8px", + "layout": "IPY_MODEL_17c282e005b442f388cfd3fc88438dda", + "tabbable": null, + "theme_vars": {}, + "tooltip": null, + "widget_id": "column_1" + } + }, + "6cb198ed971e454497b7d565eebc029f": { + "model_module": "anywidget", + "model_module_version": "~0.9.*", + "model_name": "AnyModel", + "state": { + "_anywidget_id": "manywidgets.table.widget.Table", + "_css": ".manywidgets-table {\n border: 1px solid var(--mw-color-border);\n border-radius: var(--mw-control-radius);\n background: var(--mw-color-surface);\n margin: 10px 0;\n font-family: var(--mw-font-family);\n color: var(--mw-color-text);\n box-sizing: border-box;\n overflow: hidden;\n}\n\n.manywidgets-table__title {\n padding: var(--mw-control-padding-y) var(--mw-control-padding-x);\n color: var(--mw-color-text-muted);\n font-size: var(--mw-font-size-sm);\n font-weight: var(--mw-font-weight-strong);\n text-transform: uppercase;\n letter-spacing: 0.04em;\n border-bottom: 1px solid var(--mw-color-border);\n}\n\n.manywidgets-table__scroll {\n overflow: auto;\n}\n\n.manywidgets-table__table {\n width: 100%;\n border-collapse: collapse;\n font-size: var(--mw-font-size-md);\n}\n\n.manywidgets-table__th {\n position: sticky;\n top: 0;\n z-index: 1;\n background: var(--mw-color-surface-elevated, var(--mw-color-surface));\n color: var(--mw-color-text-muted);\n font-size: var(--mw-font-size-sm);\n font-weight: var(--mw-font-weight-strong);\n text-align: left;\n padding: 6px 10px;\n border-bottom: 1px solid var(--mw-color-border-strong);\n white-space: nowrap;\n user-select: none;\n}\n\n.manywidgets-table__th.is-sortable {\n cursor: pointer;\n}\n\n.manywidgets-table__th.is-sortable:hover {\n color: var(--mw-color-text);\n}\n\n.manywidgets-table__sort {\n margin-left: 4px;\n font-size: 0.7em;\n}\n\n.manywidgets-table__td {\n padding: 5px 10px;\n border-bottom: 1px solid var(--mw-color-border);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n max-width: 28em;\n}\n\n.manywidgets-table__th.is-right,\n.manywidgets-table__td.is-right {\n text-align: right;\n font-variant-numeric: tabular-nums;\n}\n\n.manywidgets-table__row {\n cursor: pointer;\n}\n\n.manywidgets-table__row.is-hovered,\n.manywidgets-table__row:hover {\n background: var(--mw-color-accent-soft);\n}\n\n.manywidgets-table__row.is-selected {\n background: var(--mw-color-accent-surface);\n box-shadow: inset 3px 0 0 var(--mw-color-accent);\n}\n\n.manywidgets-table__empty {\n padding: var(--mw-control-padding-y) var(--mw-control-padding-x);\n color: var(--mw-color-text-muted);\n font-size: var(--mw-font-size-md);\n}\n", + "_dom_classes": [], + "_esm": "function T(e){try{e?.save_changes?.()}catch{}}function V(e,t,o){let n=()=>o(e.get(t));return e.on?.(`change:${t}`,n),()=>e.off?.(`change:${t}`,n)}function h(e,t,o){for(let n of t)e.on?.(`change:${n}`,o);return()=>{for(let n of t)e.off?.(`change:${n}`,o)}}var B=[\".dark\",\".dark-theme\",\"[data-theme='dark']\",\"[data-color-mode='dark']\"],z=[\".light\",\".light-theme\",\"[data-theme='light']\",\"[data-color-mode='light']\"],I=`\n.manywidgets-theme-defaults {\n --mw-font-family: var(--jp-ui-font-family, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Oxygen, Ubuntu, sans-serif);\n --mw-font-family-mono: var(--jp-code-font-family, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);\n --mw-font-size-sm: 12px;\n --mw-font-size-md: 14px;\n --mw-font-weight-strong: 600;\n --mw-color-text: var(--myst-color-text, var(--jp-content-font-color1, #24292e));\n --mw-color-text-muted: var(--myst-color-text-secondary, var(--jp-content-font-color2, #586069));\n --mw-color-surface: var(--myst-color-bg, var(--jp-layout-color1, #ffffff));\n --mw-color-surface-elevated: var(--myst-color-surface, var(--jp-layout-color2, #f6f8fa));\n --mw-color-border: var(--myst-color-border, var(--jp-border-color2, #e1e4e8));\n --mw-color-border-strong: var(--myst-color-border-strong, var(--jp-border-color1, #d0d7de));\n --mw-color-accent: var(--myst-color-primary, var(--jp-brand-color1, #0366d6));\n --mw-color-accent-hover: var(--myst-color-primary-hover, var(--jp-brand-color0, #0256c7));\n --mw-color-accent-soft: var(--myst-color-active-bg, #ddf4ff);\n --mw-color-on-accent: #ffffff;\n --mw-color-code-bg: var(--myst-color-bg-secondary, var(--jp-layout-color2, #f6f8fa));\n --mw-color-positive: var(--myst-color-success, #1a7f37);\n --mw-color-negative: var(--myst-color-danger, #cf222e);\n --mw-color-warning: var(--myst-color-warning, #9a6700);\n --mw-color-info: var(--myst-color-info, var(--mw-color-accent));\n --mw-color-focus: var(--myst-color-focus-ring, var(--mw-color-accent));\n --mw-radius-2: 4px;\n --mw-radius-3: 6px;\n --mw-radius-4: 8px;\n --mw-radius-5: 10px;\n --mw-radius-thumb: 9999px;\n --mw-shadow-1: 0 1px 2px rgba(0, 0, 0, 0.25);\n --mw-shadow-2: 0 0 0 1px rgba(0, 0, 0, 0.1);\n --mw-control-padding-x: 14px;\n --mw-control-padding-y: 10px;\n --mw-control-gap: 6px;\n --mw-control-max-width: 320px;\n --mw-control-radius: var(--mw-radius-4);\n --mw-input-padding-x: 8px;\n --mw-input-padding-y: 6px;\n --mw-input-radius: var(--mw-radius-3);\n --mw-panel-padding-x: 18px;\n --mw-panel-padding-y: 14px;\n --mw-panel-radius: var(--mw-radius-5);\n --mw-stat-min-width: 140px;\n --mw-stat-value-size: 30px;\n --mw-number-display-value-size: 40px;\n --mw-toggle-track-width: 40px;\n --mw-toggle-track-height: 22px;\n --mw-toggle-thumb-size: 18px;\n --mw-cursor-button: pointer;\n --mw-cursor-slider-thumb: default;\n}\n\n.manywidgets-theme-defaults[data-mw-color-mode=\"dark\"] {\n --mw-color-text: var(--myst-color-text, var(--jp-content-font-color1, #f0f6fc));\n --mw-color-text-muted: var(--myst-color-text-secondary, var(--jp-content-font-color2, #8b949e));\n --mw-color-surface: var(--myst-color-bg, var(--jp-layout-color1, #111113));\n --mw-color-surface-elevated: var(--myst-color-surface, var(--jp-layout-color2, #18191b));\n --mw-color-border: var(--myst-color-border, var(--jp-border-color2, #3a3f44));\n --mw-color-border-strong: var(--myst-color-border-strong, var(--jp-border-color1, #4d5358));\n --mw-color-accent: var(--myst-color-primary, var(--jp-brand-color1, #6b9cff));\n --mw-color-accent-hover: var(--myst-color-primary-hover, var(--jp-brand-color0, #8bb3ff));\n --mw-color-accent-soft: var(--myst-color-active-bg, #1d2d50);\n --mw-color-code-bg: var(--myst-color-bg-secondary, var(--jp-layout-color2, #1f2328));\n --mw-color-positive: var(--myst-color-success, #7ee787);\n --mw-color-negative: var(--myst-color-danger, #ff7b72);\n --mw-color-warning: var(--myst-color-warning, #f2cc60);\n --mw-shadow-1: 0 1px 2px rgba(0, 0, 0, 0.5);\n --mw-shadow-2: 0 0 0 1px rgba(255, 255, 255, 0.12);\n}\n`;function H(e){let t=e.get(\"theme_vars\");return t&&typeof t==\"object\"?t:{}}function U(e){let t=e[\"--mw-color-mode\"];if(typeof t!=\"string\")return null;let o=t.trim().toLowerCase();return o===\"dark\"||o===\"light\"?o:null}function L(e,t){return t.some(o=>e.matches(o)||!!e.closest(o))}function K(e){if(e.parentElement?.closest(\".manywidgets-theme\"))return!0;let t=e.getRootNode();return!!(typeof ShadowRoot<\"u\"&&t instanceof ShadowRoot?t.host:null)?.closest(\".manywidgets-theme\")}function q(e){let t=e.ownerDocument,o=e.getRootNode(),n=typeof ShadowRoot<\"u\"&&o instanceof ShadowRoot?o.host:null,m=[e,n,t.body,t.documentElement].filter(s=>s instanceof Element);if(m.some(s=>L(s,B)))return\"dark\";if(m.some(s=>L(s,z)))return\"light\";let d=([e,t.documentElement].map(s=>getComputedStyle(s).colorScheme).find(s=>s&&s!==\"normal\")||\"\").split(/\\s+/);return d.includes(\"dark\")&&!d.includes(\"light\")?\"dark\":d.includes(\"light\")&&!d.includes(\"dark\")?\"light\":null}function Y(e,t){let o=e.ownerDocument,n=e.getRootNode(),u=[typeof ShadowRoot<\"u\"&&n instanceof ShadowRoot?n.host:null,o.body,o.documentElement].filter(f=>f instanceof Element),d=typeof MutationObserver<\"u\"?new MutationObserver(t):null;for(let f of u)d?.observe(f,{attributes:!0,attributeFilter:[\"class\",\"data-theme\",\"data-color-mode\",\"style\"]});let s=typeof globalThis.matchMedia==\"function\"?globalThis.matchMedia(\"(prefers-color-scheme: dark)\"):null;return s?.addEventListener?.(\"change\",t),()=>{d?.disconnect(),s?.removeEventListener?.(\"change\",t)}}function N(e,t){let o=[];G(e,I,\"manywidgets-theme-defaults\"),e.classList.add(\"manywidgets-theme\"),K(e)||e.classList.add(\"manywidgets-theme-defaults\");let n=()=>{let s=H(t),f=Object.keys(s).filter(g=>g.startsWith(\"--mw-\"));for(let g of o)f.includes(g)||e.style.removeProperty(g);for(let g of f)e.style.setProperty(g,String(s[g]));o=f,m()},m=()=>{let s=U(H(t))??q(e);s?e.dataset.mwColorMode=s:delete e.dataset.mwColorMode};n();let u=V(t,\"theme_vars\",n),d=Y(e,m);return()=>{u(),d()}}function G(e,t,o){let n=e.getRootNode()??document,m=\"head\"in n&&n.head?n.head:n,u=\"data-manywidgets-css\";if(m.querySelector(`style[${u}=\"${o}\"]`))return;let s=document.createElement(\"style\");s.setAttribute(u,o),s.textContent=t,m.appendChild(s)}var A=[\"B\",\"KB\",\"MB\",\"GB\",\"TB\",\"PB\"];function W(e){if(!Number.isFinite(e))return\"\";let t=Math.abs(e),o=0;for(;t>=1e3&&oString(e).padStart(2,\"0\");function J(e){if(e==null||e===\"\")return\"\";let t=new Date(e);return Number.isNaN(t.getTime())?String(e):`${t.getUTCFullYear()}-${b(t.getUTCMonth()+1)}-${b(t.getUTCDate())} ${b(t.getUTCHours())}:${b(t.getUTCMinutes())}:${b(t.getUTCSeconds())}`}function Q(e,t){if(e==null)return\"\";switch(t.format){case\"bytes\":return W(Number(e));case\"number\":{let o=Number(e);if(!Number.isFinite(o))return String(e);let n=t.digits===void 0?void 0:{minimumFractionDigits:t.digits,maximumFractionDigits:t.digits};return o.toLocaleString(void 0,n)}case\"datetime\":return J(e);default:return String(e)}}var M=e=>e==null||e===\"\";function X(e,t){let o=typeof e==\"number\"?e:Number(e),n=typeof t==\"number\"?t:Number(t);return Number.isFinite(o)&&Number.isFinite(n)?o-n:String(e).localeCompare(String(t),void 0,{sensitivity:\"base\"})}function Z({model:e,el:t}){let o=N(t,e),n=document.createElement(\"div\");n.className=\"manywidgets-table\";let m=document.createElement(\"div\");m.className=\"manywidgets-table__title\";let u=document.createElement(\"div\");u.className=\"manywidgets-table__scroll\";let d=document.createElement(\"table\");d.className=\"manywidgets-table__table\";let s=document.createElement(\"thead\"),f=document.createElement(\"tbody\");d.appendChild(s),d.appendChild(f);let g=document.createElement(\"div\");g.className=\"manywidgets-table__empty\",u.appendChild(d),n.appendChild(m),n.appendChild(u),n.appendChild(g),t.appendChild(n);let v=null,w=1,C=[],x=new Map;function j(a,c){let i=e.get(\"id_key\");return String(i?a[i]:c)}function P(a){let c=e.get(\"columns\")||[];if(c.length>0)return c.filter(r=>r&&r.key);let i=a[0];return i?Object.keys(i).map(r=>({key:r})):[]}function F(a){let c=a.map((r,l)=>[r,l]);if(!v)return c;let i=v;return c.sort((r,l)=>{let p=r[0][i],y=l[0][i];return M(p)||M(y)?Number(M(p))-Number(M(y)):X(p,y)*w})}function $(){s.replaceChildren();let a=document.createElement(\"tr\"),c=e.get(\"sortable\");for(let i of C){let r=document.createElement(\"th\");if(r.className=\"manywidgets-table__th\",(i.align===\"right\"||i.align===void 0&&i.format&&i.format!==\"text\"&&i.format!==\"datetime\")&&r.classList.add(\"is-right\"),r.textContent=i.label??i.key,c){if(r.classList.add(\"is-sortable\"),v===i.key){r.classList.add(w===1?\"is-sorted-asc\":\"is-sorted-desc\");let l=document.createElement(\"span\");l.className=\"manywidgets-table__sort\",l.textContent=w===1?\"\\u25B2\":\"\\u25BC\",r.appendChild(l)}r.addEventListener(\"click\",()=>{v===i.key?w=w===1?-1:1:(v=i.key,w=1),_()})}a.appendChild(r)}s.appendChild(a)}function D(a){f.replaceChildren(),x=new Map;for(let[c,i]of F(a)){let r=j(c,i),l=document.createElement(\"tr\");l.className=\"manywidgets-table__row\",l.dataset.id=r;for(let p of C){let y=document.createElement(\"td\");y.className=\"manywidgets-table__td\",(p.align===\"right\"||p.align===void 0&&p.format&&p.format!==\"text\"&&p.format!==\"datetime\")&&y.classList.add(\"is-right\"),y.textContent=Q(c[p.key],p),l.appendChild(y)}l.addEventListener(\"click\",()=>{e.get(\"selected\")!==r&&(e.set(\"selected\",r),T(e))}),l.addEventListener(\"mouseenter\",()=>{e.get(\"hovered\")!==r&&(e.set(\"hovered\",r),T(e))}),f.appendChild(l),x.set(r,l)}k(!1),E()}function _(){let a=e.get(\"rows\")||[];C=P(a),$(),D(a);let c=a.length===0;g.textContent=e.get(\"empty_text\")||\"\",g.style.display=c?\"\":\"none\",u.style.display=c?\"none\":\"\"}function k(a=!0){let c=e.get(\"selected\")||\"\";for(let[i,r]of x){let l=i===c;r.classList.toggle(\"is-selected\",l),l&&a&&typeof r.scrollIntoView==\"function\"&&r.scrollIntoView({block:\"nearest\"})}}function E(){let a=e.get(\"hovered\")||\"\";for(let[c,i]of x)i.classList.toggle(\"is-hovered\",c===a)}function S(){let a=e.get(\"title\")||\"\";m.textContent=a,m.style.display=a?\"\":\"none\"}function R(){u.style.maxHeight=e.get(\"max_height\")||\"\"}f.addEventListener(\"mouseleave\",()=>{e.get(\"hovered\")&&(e.set(\"hovered\",\"\"),T(e))}),S(),R(),_();let O=[h(e,[\"rows\",\"columns\",\"id_key\",\"sortable\",\"empty_text\"],_),h(e,[\"selected\"],()=>k(!0)),h(e,[\"hovered\"],E),h(e,[\"title\"],S),h(e,[\"max_height\"],R)];return()=>{for(let a of O)a();o()}}var oe={render:Z};export{oe as default,W as formatBytes,Q as formatCell,J as formatDatetime};\n", + "_model_module": "anywidget", + "_model_module_version": "~0.9.*", + "_model_name": "AnyModel", + "_view_count": null, + "_view_module": "anywidget", + "_view_module_version": "~0.9.*", + "_view_name": "AnyView", + "columns": [ + { + "key": "granule", + "label": "Granule" + }, + { + "format": "datetime", + "key": "start", + "label": "Start" + }, + { + "key": "frame", + "label": "Frame" + }, + { + "key": "polarization", + "label": "Pol" + }, + { + "format": "bytes", + "key": "size", + "label": "Size" + } + ], + "empty_text": "No rows", + "hovered": "", + "id_key": "granule", + "layout": "IPY_MODEL_01d02c7be3644efcb8c475bf8ed5451d", + "max_height": "220px", + "rows": [ + { + "frame": 4000, + "granule": "G001", + "polarization": "DHDH", + "size": 5917357433, + "start": "2025-10-10T11:10:30Z" + }, + { + "frame": 4001, + "granule": "G002", + "polarization": "DHDH", + "size": 5437643199, + "start": "2025-10-11T11:11:30Z" + }, + { + "frame": 4002, + "granule": "G003", + "polarization": "DHDH", + "size": 5367438678, + "start": "2025-10-12T11:12:30Z" + }, + { + "frame": 4003, + "granule": "G004", + "polarization": "DHDH", + "size": 5750476532, + "start": "2025-10-13T11:13:30Z" + }, + { + "frame": 4004, + "granule": "G005", + "polarization": "DHDH", + "size": 4837810784, + "start": "2025-10-14T11:14:30Z" + }, + { + "frame": 4005, + "granule": "G006", + "polarization": "DHDH", + "size": 4950249427, + "start": "2025-10-15T11:15:30Z" + }, + { + "frame": 4006, + "granule": "G007", + "polarization": "DHDH", + "size": 4927600550, + "start": "2025-10-16T11:16:30Z" + }, + { + "frame": 4007, + "granule": "G008", + "polarization": "DHDH", + "size": 5810330167, + "start": "2025-10-17T11:17:30Z" + } + ], + "selected": "G003", + "sortable": true, + "tabbable": null, + "theme_vars": {}, + "title": "", + "tooltip": null, + "widget_id": "table_1" + } + }, + "8c0b7a937b0e40d79bcf39cbc446e8ea": { + "model_module": "anywidget", + "model_module_version": "~0.9.*", + "model_name": "AnyModel", + "state": { + "_anywidget_id": "manywidgets.geo_map.widget.GeoMap", + "_css": ".manywidgets-geomap {\n position: relative;\n width: 100%;\n height: 480px;\n margin: 10px 0;\n border: 1px solid var(--mw-color-border);\n border-radius: var(--mw-control-radius);\n overflow: hidden;\n background: var(--mw-color-surface);\n font-family: var(--mw-font-family);\n color: var(--mw-color-text);\n}\n\n/* More specific than maplibre's `.maplibregl-map { position: relative }`, which\n lands on the same element and is injected after this stylesheet. */\n.manywidgets-geomap .manywidgets-geomap__map.maplibregl-map,\n.manywidgets-geomap .manywidgets-geomap__map {\n position: absolute;\n inset: 0;\n width: 100%;\n height: 100%;\n}\n\n/* Hover readout for grid layers (bottom-left, above the scale bar). */\n.manywidgets-geomap__readout {\n position: absolute;\n left: 8px;\n bottom: 28px;\n z-index: 2;\n pointer-events: none;\n padding: 4px 8px;\n border-radius: 4px;\n background: var(--mw-color-surface);\n border: 1px solid var(--mw-color-border);\n font-size: var(--mw-font-size-sm);\n line-height: 1.4;\n max-width: 70%;\n}\n\n/* Layer panel */\n.manywidgets-geomap__panel {\n position: absolute;\n top: 8px;\n right: 8px;\n z-index: 2;\n width: 240px;\n max-height: calc(100% - 16px);\n overflow: auto;\n background: var(--mw-color-surface);\n border: 1px solid var(--mw-color-border);\n border-radius: var(--mw-control-radius);\n font-size: var(--mw-font-size-sm);\n box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);\n}\n\n.manywidgets-geomap__panel-toggle {\n display: block;\n width: 100%;\n text-align: left;\n padding: 6px 10px;\n border: 0;\n border-bottom: 1px solid var(--mw-color-border);\n background: transparent;\n color: var(--mw-color-text-muted);\n font: inherit;\n font-weight: var(--mw-font-weight-strong);\n text-transform: uppercase;\n letter-spacing: 0.04em;\n cursor: pointer;\n}\n\n.manywidgets-geomap__panel.is-collapsed .manywidgets-geomap__panel-body {\n display: none;\n}\n.manywidgets-geomap__panel.is-collapsed {\n width: auto;\n}\n.manywidgets-geomap__panel.is-collapsed .manywidgets-geomap__panel-toggle {\n border-bottom: 0;\n}\n\n.manywidgets-geomap__layer {\n padding: 8px 10px;\n border-bottom: 1px solid var(--mw-color-border);\n display: grid;\n gap: 6px;\n}\n.manywidgets-geomap__layer:last-child {\n border-bottom: 0;\n}\n\n.manywidgets-geomap__layer-head {\n display: flex;\n align-items: center;\n gap: 6px;\n font-weight: var(--mw-font-weight-strong);\n cursor: pointer;\n}\n\n.manywidgets-geomap__field {\n display: grid;\n grid-template-columns: 48px 1fr 44px;\n align-items: center;\n gap: 6px;\n}\n.manywidgets-geomap__field select {\n grid-column: 2 / span 2;\n font: inherit;\n padding: 2px 4px;\n border: 1px solid var(--mw-color-border);\n border-radius: 4px;\n background: var(--mw-color-surface);\n color: var(--mw-color-text);\n}\n.manywidgets-geomap__field input[type=\"range\"] {\n width: 100%;\n min-width: 0;\n margin: 0;\n}\n.manywidgets-geomap__field-label {\n color: var(--mw-color-text-muted);\n}\n.manywidgets-geomap__field-value {\n text-align: right;\n font-variant-numeric: tabular-nums;\n}\n\n.manywidgets-geomap__colorbar {\n display: grid;\n grid-template-columns: auto 1fr auto;\n align-items: center;\n gap: 6px;\n font-size: 11px;\n color: var(--mw-color-text-muted);\n}\n.manywidgets-geomap__colorbar-swatch {\n height: 10px;\n border-radius: 3px;\n box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);\n}\n\n/* Tooltip (rendered inside maplibre's popup) */\n.manywidgets-geomap .maplibregl-popup-content {\n padding: 6px 8px;\n font-family: var(--mw-font-family);\n font-size: var(--mw-font-size-sm);\n color: #24292e;\n}\n.manywidgets-geomap__tip-row {\n display: flex;\n gap: 8px;\n justify-content: space-between;\n}\n.manywidgets-geomap__tip-row span {\n color: #586069;\n}\n", + "_dom_classes": [], + "_esm": "var S1=Object.create;var lm=Object.defineProperty;var M1=Object.getOwnPropertyDescriptor;var P1=Object.getOwnPropertyNames;var C1=Object.getPrototypeOf,E1=Object.prototype.hasOwnProperty;var I1=(J,re)=>()=>(re||J((re={exports:{}}).exports,re),re.exports);var A1=(J,re,ye,we)=>{if(re&&typeof re==\"object\"||typeof re==\"function\")for(let k of P1(re))!E1.call(J,k)&&k!==ye&&lm(J,k,{get:()=>re[k],enumerable:!(we=M1(re,k))||we.enumerable});return J};var z1=(J,re,ye)=>(ye=J!=null?S1(C1(J)):{},A1(re||!J||!J.__esModule?lm(ye,\"default\",{value:J,enumerable:!0}):ye,J));var um=I1((Ed,Id)=>{(function(J,re){typeof Ed==\"object\"&&typeof Id<\"u\"?Id.exports=re():typeof define==\"function\"&&define.amd?define(re):(J=typeof globalThis<\"u\"?globalThis:J||self,J.maplibregl=re())})(Ed,(function(){\"use strict\";var J={},re={};function ye(k,h,pe){if(re[k]=pe,k===\"index\"){var Ve=\"var sharedModule = {}; (\"+re.shared+\")(sharedModule); (\"+re.worker+\")(sharedModule);\",xe={};return re.shared(xe),re.index(J,xe),typeof window<\"u\"&&J.setWorkerUrl(window.URL.createObjectURL(new Blob([Ve],{type:\"text/javascript\"}))),J}}ye(\"shared\",[\"exports\"],(function(k){\"use strict\";function h(r,e,i,o){return new(i||(i=Promise))((function(a,l){function u(m){try{g(o.next(m))}catch(v){l(v)}}function p(m){try{g(o.throw(m))}catch(v){l(v)}}function g(m){var v;m.done?a(m.value):(v=m.value,v instanceof i?v:new i((function(_){_(v)}))).then(u,p)}g((o=o.apply(r,e||[])).next())}))}function pe(r,e){this.x=r,this.y=e}function Ve(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,\"default\")?r.default:r}var xe,et;typeof SuppressedError==\"function\"&&SuppressedError,pe.prototype={clone(){return new pe(this.x,this.y)},add(r){return this.clone()._add(r)},sub(r){return this.clone()._sub(r)},multByPoint(r){return this.clone()._multByPoint(r)},divByPoint(r){return this.clone()._divByPoint(r)},mult(r){return this.clone()._mult(r)},div(r){return this.clone()._div(r)},rotate(r){return this.clone()._rotate(r)},rotateAround(r,e){return this.clone()._rotateAround(r,e)},matMult(r){return this.clone()._matMult(r)},unit(){return this.clone()._unit()},perp(){return this.clone()._perp()},round(){return this.clone()._round()},mag(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals(r){return this.x===r.x&&this.y===r.y},dist(r){return Math.sqrt(this.distSqr(r))},distSqr(r){let e=r.x-this.x,i=r.y-this.y;return e*e+i*i},angle(){return Math.atan2(this.y,this.x)},angleTo(r){return Math.atan2(this.y-r.y,this.x-r.x)},angleWith(r){return this.angleWithSep(r.x,r.y)},angleWithSep(r,e){return Math.atan2(this.x*e-this.y*r,this.x*r+this.y*e)},_matMult(r){let e=r[2]*this.x+r[3]*this.y;return this.x=r[0]*this.x+r[1]*this.y,this.y=e,this},_add(r){return this.x+=r.x,this.y+=r.y,this},_sub(r){return this.x-=r.x,this.y-=r.y,this},_mult(r){return this.x*=r,this.y*=r,this},_div(r){return this.x/=r,this.y/=r,this},_multByPoint(r){return this.x*=r.x,this.y*=r.y,this},_divByPoint(r){return this.x/=r.x,this.y/=r.y,this},_unit(){return this._div(this.mag()),this},_perp(){let r=this.y;return this.y=this.x,this.x=-r,this},_rotate(r){let e=Math.cos(r),i=Math.sin(r),o=i*this.x+e*this.y;return this.x=e*this.x-i*this.y,this.y=o,this},_rotateAround(r,e){let i=Math.cos(r),o=Math.sin(r),a=e.y+o*(this.x-e.x)+i*(this.y-e.y);return this.x=e.x+i*(this.x-e.x)-o*(this.y-e.y),this.y=a,this},_round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},constructor:pe},pe.convert=function(r){if(r instanceof pe)return r;if(Array.isArray(r))return new pe(+r[0],+r[1]);if(r.x!==void 0&&r.y!==void 0)return new pe(+r.x,+r.y);throw new Error(\"Expected [x, y] or {x, y} point format\")};var pt=(function(){if(et)return xe;function r(e,i,o,a){this.cx=3*e,this.bx=3*(o-e)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*i,this.by=3*(a-i)-this.cy,this.ay=1-this.cy-this.by,this.p1x=e,this.p1y=i,this.p2x=o,this.p2y=a}return et=1,xe=r,r.prototype={sampleCurveX:function(e){return((this.ax*e+this.bx)*e+this.cx)*e},sampleCurveY:function(e){return((this.ay*e+this.by)*e+this.cy)*e},sampleCurveDerivativeX:function(e){return(3*this.ax*e+2*this.bx)*e+this.cx},solveCurveX:function(e,i){if(i===void 0&&(i=1e-6),e<0)return 0;if(e>1)return 1;for(var o=e,a=0;a<8;a++){var l=this.sampleCurveX(o)-e;if(Math.abs(l)l?p=o:g=o,o=.5*(g-p)+p;return o},solve:function(e,i){return this.sampleCurveY(this.solveCurveX(e,i))}},xe})(),Ge=Ve(pt);let Ye,Fe;function He(){return Ye!=null||(Ye=typeof OffscreenCanvas<\"u\"&&new OffscreenCanvas(1,1).getContext(\"2d\")&&typeof createImageBitmap==\"function\"),Ye}function st(){if(Fe==null&&(Fe=!1,He())){let e=new OffscreenCanvas(5,5).getContext(\"2d\",{willReadFrequently:!0});if(e){for(let o=0;o<25;o++){let a=4*o;e.fillStyle=`rgb(${a},${a+1},${a+2})`,e.fillRect(o%5,Math.floor(o/5),1,1)}let i=e.getImageData(0,0,5,5).data;for(let o=0;o<100;o++)if(o%4!=3&&i[o]!==o){Fe=!0;break}}}return Fe||!1}var le=1e-6,ut=typeof Float32Array<\"u\"?Float32Array:Array;function ei(){var r=new ut(9);return ut!=Float32Array&&(r[1]=0,r[2]=0,r[3]=0,r[5]=0,r[6]=0,r[7]=0),r[0]=1,r[4]=1,r[8]=1,r}function Qi(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[5]=1,r[6]=0,r[7]=0,r[8]=0,r[9]=0,r[10]=1,r[11]=0,r[12]=0,r[13]=0,r[14]=0,r[15]=1,r}function Ti(){var r=new ut(3);return ut!=Float32Array&&(r[0]=0,r[1]=0,r[2]=0),r}function Fi(r){var e=r[0],i=r[1],o=r[2];return Math.sqrt(e*e+i*i+o*o)}function it(r,e,i){var o=new ut(3);return o[0]=r,o[1]=e,o[2]=i,o}function W(r,e,i){return r[0]=e[0]+i[0],r[1]=e[1]+i[1],r[2]=e[2]+i[2],r}function K(r,e,i){return r[0]=e[0]*i,r[1]=e[1]*i,r[2]=e[2]*i,r}function ee(r,e,i){var o=e[0],a=e[1],l=e[2],u=i[0],p=i[1],g=i[2];return r[0]=a*g-l*p,r[1]=l*u-o*g,r[2]=o*p-a*u,r}var ve,Me=Fi;function je(r,e,i){var o=e[0],a=e[1],l=e[2],u=e[3];return r[0]=i[0]*o+i[4]*a+i[8]*l+i[12]*u,r[1]=i[1]*o+i[5]*a+i[9]*l+i[13]*u,r[2]=i[2]*o+i[6]*a+i[10]*l+i[14]*u,r[3]=i[3]*o+i[7]*a+i[11]*l+i[15]*u,r}function Oe(){var r=new ut(4);return ut!=Float32Array&&(r[0]=0,r[1]=0,r[2]=0),r[3]=1,r}function $e(r,e,i,o){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:\"zyx\",l=Math.PI/360;e*=l,o*=l,i*=l;var u=Math.sin(e),p=Math.cos(e),g=Math.sin(i),m=Math.cos(i),v=Math.sin(o),_=Math.cos(o);switch(a){case\"xyz\":r[0]=u*m*_+p*g*v,r[1]=p*g*_-u*m*v,r[2]=p*m*v+u*g*_,r[3]=p*m*_-u*g*v;break;case\"xzy\":r[0]=u*m*_-p*g*v,r[1]=p*g*_-u*m*v,r[2]=p*m*v+u*g*_,r[3]=p*m*_+u*g*v;break;case\"yxz\":r[0]=u*m*_+p*g*v,r[1]=p*g*_-u*m*v,r[2]=p*m*v-u*g*_,r[3]=p*m*_+u*g*v;break;case\"yzx\":r[0]=u*m*_+p*g*v,r[1]=p*g*_+u*m*v,r[2]=p*m*v-u*g*_,r[3]=p*m*_-u*g*v;break;case\"zxy\":r[0]=u*m*_-p*g*v,r[1]=p*g*_+u*m*v,r[2]=p*m*v+u*g*_,r[3]=p*m*_-u*g*v;break;case\"zyx\":r[0]=u*m*_-p*g*v,r[1]=p*g*_+u*m*v,r[2]=p*m*v-u*g*_,r[3]=p*m*_+u*g*v;break;default:throw new Error(\"Unknown angle order \"+a)}return r}function Xe(){var r=new ut(2);return ut!=Float32Array&&(r[0]=0,r[1]=0),r}function ot(r,e){var i=new ut(2);return i[0]=r,i[1]=e,i}Ti(),ve=new ut(4),ut!=Float32Array&&(ve[0]=0,ve[1]=0,ve[2]=0,ve[3]=0),Ti(),it(1,0,0),it(0,1,0),Oe(),Oe(),ei(),Xe();let qe=8192;function vt(r,e,i){return e*(qe/(r.tileSize*Math.pow(2,i-r.tileID.overscaledZ)))}function mt(r){return r instanceof Error?r:new Error(typeof r==\"string\"?r:String(r))}function Si(r,e){return(r%e+e)%e}function Bi(r,e,i){return r*(1-i)+e*i}function cr(r){if(r<=0)return 0;if(r>=1)return 1;let e=r*r,i=e*r;return 4*(r<.5?i:3*(r-e)+i-.75)}function ur(r,e,i,o){let a=new Ge(r,e,i,o);return l=>a.solve(l)}let un=ur(.25,.1,.25,1);function ti(r,e,i){return Math.min(i,Math.max(e,r))}function $r(r,e,i){let o=i-e,a=((r-e)%o+o)%o+e;return a===e?i:a}function Mi(r,...e){for(let i of e)for(let o in i)r[o]=i[o];return r}let fe=1;function ke(r,e,i){let o={};for(let a in r)o[a]=e.call(this,r[a],a,r);return o}function Ne(r,e,i){let o={};for(let a in r)e.call(this,r[a],a,r)&&(o[a]=r[a]);return o}function De(r){return Array.isArray(r)?r.map(De):typeof r==\"object\"&&r?ke(r,De):r}let Tt={};function xt(r){Tt[r]||(typeof console<\"u\"&&console.warn(r),Tt[r]=!0)}function ht(r,e,i){return(i.y-r.y)*(e.x-r.x)>(e.y-r.y)*(i.x-r.x)}function zt(r){return typeof WorkerGlobalScope<\"u\"&&r!==void 0&&r instanceof WorkerGlobalScope}let ci=null;function xr(r){return typeof ImageBitmap<\"u\"&&r instanceof ImageBitmap}let So=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=\";function Mo(r,e,i,o,a){return h(this,void 0,void 0,(function*(){if(typeof VideoFrame>\"u\")throw new Error(\"VideoFrame not supported\");let l=new VideoFrame(r,{timestamp:0});try{let u=l?.format;if(!u||!u.startsWith(\"BGR\")&&!u.startsWith(\"RGB\"))throw new Error(`Unrecognized format ${u}`);let p=u.startsWith(\"BGR\"),g=new Uint8ClampedArray(o*a*4);if(yield l.copyTo(g,(function(m,v,_,T,b){let P=4*Math.max(-v,0),C=(Math.max(0,_)-_)*T*4+P,A=4*T,z=Math.max(0,v),L=Math.max(0,_);return{rect:{x:z,y:L,width:Math.min(m.width,v+T)-z,height:Math.min(m.height,_+b)-L},layout:[{offset:C,stride:A}]}})(r,e,i,o,a)),p)for(let m=0;m{r.removeEventListener(e,i,o)}}}function Pi(r){return r*Math.PI/180}function hr(r){return r/Math.PI*180}let js={touchstart:!0,touchmove:!0,touchmoveWindow:!0,touchend:!0,touchcancel:!0},Ns={dblclick:!0,click:!0,mouseover:!0,mouseout:!0,mousedown:!0,mousemove:!0,mousemoveWindow:!0,mouseup:!0,mouseupWindow:!0,contextmenu:!0,wheel:!0},ya=\"AbortError\";class Po extends Error{constructor(e=ya){super(e instanceof Error?e.message:e),this.name=ya,e instanceof Error&&e.stack&&(this.stack=e.stack)}}function dc(r){return r instanceof Error&&r.name===ya}function va(r){if(r.aborted)throw new Po(r.reason)}let Wr={MAX_PARALLEL_IMAGE_REQUESTS:16,MAX_PARALLEL_IMAGE_REQUESTS_PER_FRAME:8,MAX_TILE_CACHE_ZOOM_LEVELS:5,REGISTERED_PROTOCOLS:{},WORKER_URL:\"\"};function Ar(r){return Wr.REGISTERED_PROTOCOLS[r.substring(0,r.indexOf(\"://\"))]}let tr=\"global-dispatcher\";class Nn extends Error{constructor(e,i,o,a){super(`AJAXError: ${i} (${e}): ${o}`),this.status=e,this.statusText=i,this.url=o,this.body=a}}let Us=()=>{var r;return zt(self)?(r=self.worker)===null||r===void 0?void 0:r.referrer:(window.location.protocol===\"blob:\"?window.parent:window).location.href},hn=function(r,e){return h(this,void 0,void 0,(function*(){var i,o;if(r.url.includes(\"://\")&&!/^https?:|^file:/.test(r.url)){let a=Ar(r.url);if(a){let l=yield a(r,e);return l.data||r.type!==\"arrayBuffer\"?l:Mi(l,{data:new ArrayBuffer(0)})}if(zt(self)&&(!((i=self.worker)===null||i===void 0)&&i.actor))return self.worker.actor.sendAsync({type:\"GR\",data:r,targetMapId:tr},e)}if(!(a=>{var l;return a.startsWith(\"file:\")||((l=Us())===null||l===void 0?void 0:l.startsWith(\"file:\"))&&!/^\\w+:/.test(a)})(r.url)){if(fetch&&Request&&AbortController&&Object.hasOwn(Request.prototype,\"signal\"))return(function(a,l){return h(this,void 0,void 0,(function*(){let u=new Request(a.url,{method:a.method||\"GET\",body:a.body,credentials:a.credentials,headers:a.headers,cache:a.cache,referrer:Us(),referrerPolicy:a.referrerPolicy,signal:l.signal}),p,g;a.type!==\"json\"||u.headers.has(\"Accept\")||u.headers.set(\"Accept\",\"application/json\");try{p=yield fetch(u)}catch(v){throw dc(v)?v:new Nn(0,mt(v).message,a.url,new Blob)}if(!p.ok){let v=yield p.blob();throw new Nn(p.status,p.statusText,a.url,v)}g=a.type===\"arrayBuffer\"||a.type===\"image\"?p.arrayBuffer():a.type===\"json\"?p.json():p.text();let m=yield g;return va(l.signal),{data:m,cacheControl:p.headers.get(\"Cache-Control\"),expires:p.headers.get(\"Expires\"),etag:p.headers.get(\"ETag\")}}))})(r,e);if(zt(self)&&(!((o=self.worker)===null||o===void 0)&&o.actor))return self.worker.actor.sendAsync({type:\"GR\",data:r,mustQueue:!0,targetMapId:tr},e)}return(function(a,l){return new Promise(((u,p)=>{var g;let m=new XMLHttpRequest;m.open(a.method||\"GET\",a.url,!0),a.type!==\"arrayBuffer\"&&a.type!==\"image\"||(m.responseType=\"arraybuffer\");for(let v in a.headers)m.setRequestHeader(v,a.headers[v]);a.type===\"json\"&&(m.responseType=\"text\",!((g=a.headers)===null||g===void 0)&&g.Accept||m.setRequestHeader(\"Accept\",\"application/json\")),m.withCredentials=a.credentials===\"include\",m.onerror=()=>{p(new Error(m.statusText))},m.onload=()=>{if(!l.signal.aborted)if((m.status>=200&&m.status<300||m.status===0)&&m.response!==null){let v=m.response;if(a.type===\"json\")try{v=JSON.parse(m.response)}catch(_){return void p(_)}u({data:v,cacheControl:m.getResponseHeader(\"Cache-Control\"),expires:m.getResponseHeader(\"Expires\"),etag:m.getResponseHeader(\"ETag\")})}else{let v=new Blob([m.response],{type:m.getResponseHeader(\"Content-Type\")});p(new Nn(m.status,m.statusText,a.url,v))}},l.signal.addEventListener(\"abort\",(()=>{m.abort(),p(new Po(l.signal.reason))})),m.send(a.body)}))})(r,e)}))};function dr(r){if(!r||r.indexOf(\"://\")<=0||r.startsWith(\"data:image/\")||r.startsWith(\"blob:\"))return!0;let e=new URL(r),i=window.location;return e.protocol===i.protocol&&e.host===i.host}function Un(r,e,i){var o;!((o=i[r])===null||o===void 0)&&o.includes(e)||(i[r]||(i[r]=[]),i[r].push(e))}function dn(r,e,i){if(i?.[r]){let o=i[r].indexOf(e);o!==-1&&i[r].splice(o,1)}}class Co{constructor(e,i={}){Mi(this,i),this.type=e}}class qn extends Co{constructor(e,i={}){super(\"error\",Mi({error:e},i))}}class xa{on(e,i){return this._listeners||(this._listeners={}),Un(e,i,this._listeners),{unsubscribe:()=>{this.off(e,i)}}}off(e,i){return dn(e,i,this._listeners),dn(e,i,this._oneTimeListeners),this}once(e,i){return i?(this._oneTimeListeners||(this._oneTimeListeners={}),Un(e,i,this._oneTimeListeners),this):new Promise((o=>this.once(e,o)))}fire(e,i){var o,a;typeof e==\"string\"&&(e=new Co(e,i||{}));let l=e.type;if(this.listens(l)){e.target=this;let u=!((o=this._listeners)===null||o===void 0)&&o[l]?this._listeners[l].slice():[];for(let m of u)m.call(this,e);let p=!((a=this._oneTimeListeners)===null||a===void 0)&&a[l]?this._oneTimeListeners[l].slice():[];for(let m of p)dn(l,m,this._oneTimeListeners),m.call(this,e);let g=this._eventedParent;g&&(Mi(e,typeof this._eventedParentData==\"function\"?this._eventedParentData():this._eventedParentData),g.fire(e))}else e instanceof qn&&console.error(e.error);return this}listens(e){var i,o,a,l,u;return((o=(i=this._listeners)===null||i===void 0?void 0:i[e])===null||o===void 0?void 0:o.length)>0||((l=(a=this._oneTimeListeners)===null||a===void 0?void 0:a[e])===null||l===void 0?void 0:l.length)>0||((u=this._eventedParent)===null||u===void 0?void 0:u.listens(e))}setEventedParent(e,i){return this._eventedParent=e,this._eventedParentData=i,this}}var de={$version:8,$root:{version:{required:!0,type:\"enum\",values:[8]},name:{type:\"string\"},metadata:{type:\"*\"},center:{type:\"array\",value:\"number\",length:2},centerAltitude:{type:\"number\"},zoom:{type:\"number\"},bearing:{type:\"number\",default:0,period:360,units:\"degrees\"},pitch:{type:\"number\",default:0,units:\"degrees\"},roll:{type:\"number\",default:0,units:\"degrees\"},state:{type:\"state\",default:{}},light:{type:\"light\"},sky:{type:\"sky\"},projection:{type:\"projection\"},terrain:{type:\"terrain\"},sources:{required:!0,type:\"sources\"},sprite:{type:\"sprite\"},glyphs:{type:\"string\"},\"font-faces\":{type:\"fontFaces\"},transition:{type:\"transition\"},layers:{required:!0,type:\"array\",value:\"layer\"}},sources:{\"*\":{type:\"source\"}},source:[\"source_vector\",\"source_raster\",\"source_raster_dem\",\"source_geojson\",\"source_video\",\"source_image\"],source_vector:{type:{required:!0,type:\"enum\",values:{vector:{}}},url:{type:\"string\"},tiles:{type:\"array\",value:\"string\"},bounds:{type:\"array\",value:\"number\",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:\"enum\",values:{xyz:{},tms:{}},default:\"xyz\"},minzoom:{type:\"number\",default:0},maxzoom:{type:\"number\",default:22},attribution:{type:\"string\"},promoteId:{type:\"promoteId\"},volatile:{type:\"boolean\",default:!1},encoding:{type:\"enum\",values:{mvt:{},mlt:{}},default:\"mvt\"},\"*\":{type:\"*\"}},source_raster:{type:{required:!0,type:\"enum\",values:{raster:{}}},url:{type:\"string\"},tiles:{type:\"array\",value:\"string\"},bounds:{type:\"array\",value:\"number\",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:\"number\",default:0},maxzoom:{type:\"number\",default:22},tileSize:{type:\"number\",default:512,units:\"pixels\"},scheme:{type:\"enum\",values:{xyz:{},tms:{}},default:\"xyz\"},attribution:{type:\"string\"},volatile:{type:\"boolean\",default:!1},\"*\":{type:\"*\"}},source_raster_dem:{type:{required:!0,type:\"enum\",values:{\"raster-dem\":{}}},url:{type:\"string\"},tiles:{type:\"array\",value:\"string\"},bounds:{type:\"array\",value:\"number\",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:\"number\",default:0},maxzoom:{type:\"number\",default:22},tileSize:{type:\"number\",default:512,units:\"pixels\"},attribution:{type:\"string\"},encoding:{type:\"enum\",values:{terrarium:{},mapbox:{},custom:{}},default:\"mapbox\"},redFactor:{type:\"number\",default:1},blueFactor:{type:\"number\",default:1},greenFactor:{type:\"number\",default:1},baseShift:{type:\"number\",default:0},volatile:{type:\"boolean\",default:!1},\"*\":{type:\"*\"}},source_geojson:{type:{required:!0,type:\"enum\",values:{geojson:{}}},data:{required:!0,type:\"*\"},maxzoom:{type:\"number\",default:18},attribution:{type:\"string\"},buffer:{type:\"number\",default:128,maximum:512,minimum:0},filter:{type:\"filter\"},tolerance:{type:\"number\",default:.375},cluster:{type:\"boolean\",default:!1},clusterRadius:{type:\"number\",default:50,minimum:0},clusterMaxZoom:{type:\"number\"},clusterMinPoints:{type:\"number\"},clusterProperties:{type:\"*\"},lineMetrics:{type:\"boolean\",default:!1},generateId:{type:\"boolean\",default:!1},promoteId:{type:\"promoteId\"}},source_video:{type:{required:!0,type:\"enum\",values:{video:{}}},urls:{required:!0,type:\"array\",value:\"string\"},coordinates:{required:!0,type:\"array\",length:4,value:{type:\"array\",length:2,value:\"number\"}}},source_image:{type:{required:!0,type:\"enum\",values:{image:{}}},url:{required:!0,type:\"string\"},coordinates:{required:!0,type:\"array\",length:4,value:{type:\"array\",length:2,value:\"number\"}}},layer:{id:{type:\"string\",required:!0},type:{type:\"enum\",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},\"fill-extrusion\":{},raster:{},hillshade:{},\"color-relief\":{},background:{}},required:!0},metadata:{type:\"*\"},source:{type:\"string\"},\"source-layer\":{type:\"string\"},minzoom:{type:\"number\",minimum:0,maximum:24},maxzoom:{type:\"number\",minimum:0,maximum:24},filter:{type:\"filter\"},layout:{type:\"layout\"},paint:{type:\"paint\"}},layout:[\"layout_fill\",\"layout_line\",\"layout_circle\",\"layout_heatmap\",\"layout_fill-extrusion\",\"layout_symbol\",\"layout_raster\",\"layout_hillshade\",\"layout_color-relief\",\"layout_background\"],layout_background:{visibility:{type:\"enum\",values:{visible:{},none:{}},default:\"visible\",expression:{interpolated:!1,parameters:[\"global-state\"]},\"property-type\":\"data-constant\"}},layout_fill:{\"fill-sort-key\":{type:\"number\",expression:{interpolated:!1,parameters:[\"zoom\",\"feature\"]},\"property-type\":\"data-driven\"},visibility:{type:\"enum\",values:{visible:{},none:{}},default:\"visible\",expression:{interpolated:!1,parameters:[\"global-state\"]},\"property-type\":\"data-constant\"}},layout_circle:{\"circle-sort-key\":{type:\"number\",expression:{interpolated:!1,parameters:[\"zoom\",\"feature\"]},\"property-type\":\"data-driven\"},visibility:{type:\"enum\",values:{visible:{},none:{}},default:\"visible\",expression:{interpolated:!1,parameters:[\"global-state\"]},\"property-type\":\"data-constant\"}},layout_heatmap:{visibility:{type:\"enum\",values:{visible:{},none:{}},default:\"visible\",expression:{interpolated:!1,parameters:[\"global-state\"]},\"property-type\":\"data-constant\"}},\"layout_fill-extrusion\":{visibility:{type:\"enum\",values:{visible:{},none:{}},default:\"visible\",expression:{interpolated:!1,parameters:[\"global-state\"]},\"property-type\":\"data-constant\"}},layout_line:{\"line-cap\":{type:\"enum\",values:{butt:{},round:{},square:{}},default:\"butt\",expression:{interpolated:!1,parameters:[\"zoom\",\"feature\"]},\"property-type\":\"data-driven\"},\"line-join\":{type:\"enum\",values:{bevel:{},round:{},miter:{}},default:\"miter\",expression:{interpolated:!1,parameters:[\"zoom\",\"feature\"]},\"property-type\":\"data-driven\"},\"line-miter-limit\":{type:\"number\",default:2,requires:[{\"line-join\":\"miter\"}],expression:{interpolated:!0,parameters:[\"zoom\",\"feature\"]},\"property-type\":\"data-driven\"},\"line-round-limit\":{type:\"number\",default:1.05,requires:[{\"line-join\":\"round\"}],expression:{interpolated:!0,parameters:[\"zoom\",\"feature\"]},\"property-type\":\"data-driven\"},\"line-sort-key\":{type:\"number\",expression:{interpolated:!1,parameters:[\"zoom\",\"feature\"]},\"property-type\":\"data-driven\"},visibility:{type:\"enum\",values:{visible:{},none:{}},default:\"visible\",expression:{interpolated:!1,parameters:[\"global-state\"]},\"property-type\":\"data-constant\"}},layout_symbol:{\"symbol-placement\":{type:\"enum\",values:{point:{},line:{},\"line-center\":{}},default:\"point\",expression:{interpolated:!1,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"symbol-spacing\":{type:\"number\",default:250,minimum:1,units:\"pixels\",requires:[{\"symbol-placement\":\"line\"}],expression:{interpolated:!0,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"symbol-avoid-edges\":{type:\"boolean\",default:!1,expression:{interpolated:!1,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"symbol-sort-key\":{type:\"number\",expression:{interpolated:!1,parameters:[\"zoom\",\"feature\"]},\"property-type\":\"data-driven\"},\"symbol-z-order\":{type:\"enum\",values:{auto:{},\"viewport-y\":{},source:{}},default:\"auto\",expression:{interpolated:!1,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"icon-allow-overlap\":{type:\"boolean\",default:!1,requires:[\"icon-image\",{\"!\":\"icon-overlap\"}],expression:{interpolated:!1,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"icon-overlap\":{type:\"enum\",values:{never:{},always:{},cooperative:{}},requires:[\"icon-image\"],expression:{interpolated:!1,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"icon-ignore-placement\":{type:\"boolean\",default:!1,requires:[\"icon-image\"],expression:{interpolated:!1,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"icon-optional\":{type:\"boolean\",default:!1,requires:[\"icon-image\",\"text-field\"],expression:{interpolated:!1,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"icon-rotation-alignment\":{type:\"enum\",values:{map:{},viewport:{},auto:{}},default:\"auto\",requires:[\"icon-image\"],expression:{interpolated:!1,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"icon-size\":{type:\"number\",default:1,minimum:0,units:\"factor of the original icon size\",requires:[\"icon-image\"],expression:{interpolated:!0,parameters:[\"zoom\",\"feature\"]},\"property-type\":\"data-driven\"},\"icon-text-fit\":{type:\"enum\",values:{none:{},width:{},height:{},both:{}},default:\"none\",requires:[\"icon-image\",\"text-field\"],expression:{interpolated:!1,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"icon-text-fit-padding\":{type:\"array\",value:\"number\",length:4,default:[0,0,0,0],units:\"pixels\",requires:[\"icon-image\",\"text-field\",{\"icon-text-fit\":[\"both\",\"width\",\"height\"]}],expression:{interpolated:!0,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"icon-image\":{type:\"resolvedImage\",tokens:!0,expression:{interpolated:!1,parameters:[\"zoom\",\"feature\"]},\"property-type\":\"data-driven\"},\"icon-rotate\":{type:\"number\",default:0,period:360,units:\"degrees\",requires:[\"icon-image\"],expression:{interpolated:!0,parameters:[\"zoom\",\"feature\"]},\"property-type\":\"data-driven\"},\"icon-padding\":{type:\"padding\",default:[2],units:\"pixels\",requires:[\"icon-image\"],expression:{interpolated:!0,parameters:[\"zoom\",\"feature\"]},\"property-type\":\"data-driven\"},\"icon-keep-upright\":{type:\"boolean\",default:!1,requires:[\"icon-image\",{\"icon-rotation-alignment\":\"map\"},{\"symbol-placement\":[\"line\",\"line-center\"]}],expression:{interpolated:!1,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"icon-offset\":{type:\"array\",value:\"number\",length:2,default:[0,0],requires:[\"icon-image\"],expression:{interpolated:!0,parameters:[\"zoom\",\"feature\"]},\"property-type\":\"data-driven\"},\"icon-anchor\":{type:\"enum\",values:{center:{},left:{},right:{},top:{},bottom:{},\"top-left\":{},\"top-right\":{},\"bottom-left\":{},\"bottom-right\":{}},default:\"center\",requires:[\"icon-image\"],expression:{interpolated:!1,parameters:[\"zoom\",\"feature\"]},\"property-type\":\"data-driven\"},\"icon-pitch-alignment\":{type:\"enum\",values:{map:{},viewport:{},auto:{}},default:\"auto\",requires:[\"icon-image\"],expression:{interpolated:!1,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"text-pitch-alignment\":{type:\"enum\",values:{map:{},viewport:{},auto:{}},default:\"auto\",requires:[\"text-field\"],expression:{interpolated:!1,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"text-rotation-alignment\":{type:\"enum\",values:{map:{},viewport:{},\"viewport-glyph\":{},auto:{}},default:\"auto\",requires:[\"text-field\"],expression:{interpolated:!1,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"text-field\":{type:\"formatted\",default:\"\",tokens:!0,expression:{interpolated:!1,parameters:[\"zoom\",\"feature\"]},\"property-type\":\"data-driven\"},\"text-font\":{type:\"array\",value:\"string\",default:[\"Open Sans Regular\",\"Arial Unicode MS Regular\"],requires:[\"text-field\"],expression:{interpolated:!1,parameters:[\"zoom\",\"feature\"]},\"property-type\":\"data-driven\"},\"text-size\":{type:\"number\",default:16,minimum:0,units:\"pixels\",requires:[\"text-field\"],expression:{interpolated:!0,parameters:[\"zoom\",\"feature\"]},\"property-type\":\"data-driven\"},\"text-max-width\":{type:\"number\",default:10,minimum:0,units:\"ems\",requires:[\"text-field\"],expression:{interpolated:!0,parameters:[\"zoom\",\"feature\"]},\"property-type\":\"data-driven\"},\"text-line-height\":{type:\"number\",default:1.2,units:\"ems\",requires:[\"text-field\"],expression:{interpolated:!0,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"text-letter-spacing\":{type:\"number\",default:0,units:\"ems\",requires:[\"text-field\"],expression:{interpolated:!0,parameters:[\"zoom\",\"feature\"]},\"property-type\":\"data-driven\"},\"text-justify\":{type:\"enum\",values:{auto:{},left:{},center:{},right:{}},default:\"center\",requires:[\"text-field\"],expression:{interpolated:!1,parameters:[\"zoom\",\"feature\"]},\"property-type\":\"data-driven\"},\"text-radial-offset\":{type:\"number\",units:\"ems\",default:0,requires:[\"text-field\"],\"property-type\":\"data-driven\",expression:{interpolated:!0,parameters:[\"zoom\",\"feature\"]}},\"text-variable-anchor\":{type:\"array\",value:\"enum\",values:{center:{},left:{},right:{},top:{},bottom:{},\"top-left\":{},\"top-right\":{},\"bottom-left\":{},\"bottom-right\":{}},requires:[\"text-field\",{\"symbol-placement\":[\"point\"]}],expression:{interpolated:!1,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"text-variable-anchor-offset\":{type:\"variableAnchorOffsetCollection\",requires:[\"text-field\",{\"symbol-placement\":[\"point\"]}],expression:{interpolated:!0,parameters:[\"zoom\",\"feature\"]},\"property-type\":\"data-driven\"},\"text-anchor\":{type:\"enum\",values:{center:{},left:{},right:{},top:{},bottom:{},\"top-left\":{},\"top-right\":{},\"bottom-left\":{},\"bottom-right\":{}},default:\"center\",requires:[\"text-field\",{\"!\":\"text-variable-anchor\"}],expression:{interpolated:!1,parameters:[\"zoom\",\"feature\"]},\"property-type\":\"data-driven\"},\"text-max-angle\":{type:\"number\",default:45,units:\"degrees\",requires:[\"text-field\",{\"symbol-placement\":[\"line\",\"line-center\"]}],expression:{interpolated:!0,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"text-writing-mode\":{type:\"array\",value:\"enum\",values:{horizontal:{},vertical:{}},requires:[\"text-field\",{\"symbol-placement\":[\"point\"]}],expression:{interpolated:!1,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"text-rotate\":{type:\"number\",default:0,period:360,units:\"degrees\",requires:[\"text-field\"],expression:{interpolated:!0,parameters:[\"zoom\",\"feature\"]},\"property-type\":\"data-driven\"},\"text-padding\":{type:\"number\",default:2,minimum:0,units:\"pixels\",requires:[\"text-field\"],expression:{interpolated:!0,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"text-keep-upright\":{type:\"boolean\",default:!0,requires:[\"text-field\",{\"text-rotation-alignment\":\"map\"},{\"symbol-placement\":[\"line\",\"line-center\"]}],expression:{interpolated:!1,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"text-transform\":{type:\"enum\",values:{none:{},uppercase:{},lowercase:{}},default:\"none\",requires:[\"text-field\"],expression:{interpolated:!1,parameters:[\"zoom\",\"feature\"]},\"property-type\":\"data-driven\"},\"text-offset\":{type:\"array\",value:\"number\",units:\"ems\",length:2,default:[0,0],requires:[\"text-field\",{\"!\":\"text-radial-offset\"}],expression:{interpolated:!0,parameters:[\"zoom\",\"feature\"]},\"property-type\":\"data-driven\"},\"text-allow-overlap\":{type:\"boolean\",default:!1,requires:[\"text-field\",{\"!\":\"text-overlap\"}],expression:{interpolated:!1,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"text-overlap\":{type:\"enum\",values:{never:{},always:{},cooperative:{}},requires:[\"text-field\"],expression:{interpolated:!1,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"text-ignore-placement\":{type:\"boolean\",default:!1,requires:[\"text-field\"],expression:{interpolated:!1,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"text-optional\":{type:\"boolean\",default:!1,requires:[\"text-field\",\"icon-image\"],expression:{interpolated:!1,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},visibility:{type:\"enum\",values:{visible:{},none:{}},default:\"visible\",expression:{interpolated:!1,parameters:[\"global-state\"]},\"property-type\":\"data-constant\"}},layout_raster:{visibility:{type:\"enum\",values:{visible:{},none:{}},default:\"visible\",expression:{interpolated:!1,parameters:[\"global-state\"]},\"property-type\":\"data-constant\"}},layout_hillshade:{visibility:{type:\"enum\",values:{visible:{},none:{}},default:\"visible\",expression:{interpolated:!1,parameters:[\"global-state\"]},\"property-type\":\"data-constant\"}},\"layout_color-relief\":{visibility:{type:\"enum\",values:{visible:{},none:{}},default:\"visible\",expression:{interpolated:!1,parameters:[\"global-state\"]},\"property-type\":\"data-constant\"}},filter:{type:\"boolean\",expression:{interpolated:!1,parameters:[\"zoom\",\"feature\"]},\"property-type\":\"data-driven\"},filter_operator:{type:\"enum\",values:{\"==\":{},\"!=\":{},\">\":{},\">=\":{},\"<\":{},\"<=\":{},in:{},\"!in\":{},all:{},any:{},none:{},has:{},\"!has\":{}}},geometry_type:{type:\"enum\",values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:\"expression\"},stops:{type:\"array\",value:\"function_stop\"},base:{type:\"number\",default:1,minimum:0},property:{type:\"string\",default:\"$zoom\"},type:{type:\"enum\",values:{identity:{},exponential:{},interval:{},categorical:{}},default:\"exponential\"},colorSpace:{type:\"enum\",values:{rgb:{},lab:{},hcl:{}},default:\"rgb\"},default:{type:\"*\",required:!1}},function_stop:{type:\"array\",minimum:0,maximum:24,value:[\"number\",\"color\"],length:2},expression:{type:\"array\",value:\"expression_name\",minimum:1},light:{anchor:{type:\"enum\",default:\"viewport\",values:{map:{},viewport:{}},\"property-type\":\"data-constant\",transition:!1,expression:{interpolated:!1,parameters:[\"zoom\"]}},position:{type:\"array\",default:[1.15,210,30],length:3,value:\"number\",\"property-type\":\"data-constant\",transition:!0,expression:{interpolated:!0,parameters:[\"zoom\"]}},color:{type:\"color\",\"property-type\":\"data-constant\",default:\"#ffffff\",expression:{interpolated:!0,parameters:[\"zoom\"]},transition:!0},intensity:{type:\"number\",\"property-type\":\"data-constant\",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:[\"zoom\"]},transition:!0}},sky:{\"sky-color\":{type:\"color\",\"property-type\":\"data-constant\",default:\"#88C6FC\",expression:{interpolated:!0,parameters:[\"zoom\"]},transition:!0},\"horizon-color\":{type:\"color\",\"property-type\":\"data-constant\",default:\"#ffffff\",expression:{interpolated:!0,parameters:[\"zoom\"]},transition:!0},\"fog-color\":{type:\"color\",\"property-type\":\"data-constant\",default:\"#ffffff\",expression:{interpolated:!0,parameters:[\"zoom\"]},transition:!0},\"fog-ground-blend\":{type:\"number\",\"property-type\":\"data-constant\",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:[\"zoom\"]},transition:!0},\"horizon-fog-blend\":{type:\"number\",\"property-type\":\"data-constant\",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:[\"zoom\"]},transition:!0},\"sky-horizon-blend\":{type:\"number\",\"property-type\":\"data-constant\",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:[\"zoom\"]},transition:!0},\"atmosphere-blend\":{type:\"number\",\"property-type\":\"data-constant\",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:[\"zoom\"]},transition:!0}},terrain:{source:{type:\"string\",required:!0},exaggeration:{type:\"number\",minimum:0,default:1}},projection:{type:{type:\"projectionDefinition\",default:\"mercator\",\"property-type\":\"data-constant\",transition:!1,expression:{interpolated:!0,parameters:[\"zoom\"]}}},paint:[\"paint_fill\",\"paint_line\",\"paint_circle\",\"paint_heatmap\",\"paint_fill-extrusion\",\"paint_symbol\",\"paint_raster\",\"paint_hillshade\",\"paint_color-relief\",\"paint_background\"],paint_fill:{\"fill-antialias\":{type:\"boolean\",default:!0,expression:{interpolated:!1,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"fill-opacity\":{type:\"number\",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[\"zoom\",\"feature\",\"feature-state\"]},\"property-type\":\"data-driven\"},\"fill-color\":{type:\"color\",default:\"#000000\",transition:!0,requires:[{\"!\":\"fill-pattern\"}],expression:{interpolated:!0,parameters:[\"zoom\",\"feature\",\"feature-state\"]},\"property-type\":\"data-driven\"},\"fill-outline-color\":{type:\"color\",transition:!0,requires:[{\"!\":\"fill-pattern\"},{\"fill-antialias\":!0}],expression:{interpolated:!0,parameters:[\"zoom\",\"feature\",\"feature-state\"]},\"property-type\":\"data-driven\"},\"fill-translate\":{type:\"array\",value:\"number\",length:2,default:[0,0],transition:!0,units:\"pixels\",expression:{interpolated:!0,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"fill-translate-anchor\":{type:\"enum\",values:{map:{},viewport:{}},default:\"map\",requires:[\"fill-translate\"],expression:{interpolated:!1,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"fill-pattern\":{type:\"resolvedImage\",transition:!0,expression:{interpolated:!1,parameters:[\"zoom\",\"feature\"]},\"property-type\":\"cross-faded-data-driven\"}},\"paint_fill-extrusion\":{\"fill-extrusion-opacity\":{type:\"number\",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"fill-extrusion-color\":{type:\"color\",default:\"#000000\",transition:!0,requires:[{\"!\":\"fill-extrusion-pattern\"}],expression:{interpolated:!0,parameters:[\"zoom\",\"feature\",\"feature-state\"]},\"property-type\":\"data-driven\"},\"fill-extrusion-translate\":{type:\"array\",value:\"number\",length:2,default:[0,0],transition:!0,units:\"pixels\",expression:{interpolated:!0,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"fill-extrusion-translate-anchor\":{type:\"enum\",values:{map:{},viewport:{}},default:\"map\",requires:[\"fill-extrusion-translate\"],expression:{interpolated:!1,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"fill-extrusion-pattern\":{type:\"resolvedImage\",transition:!0,expression:{interpolated:!1,parameters:[\"zoom\",\"feature\"]},\"property-type\":\"cross-faded-data-driven\"},\"fill-extrusion-height\":{type:\"number\",default:0,minimum:0,units:\"meters\",transition:!0,expression:{interpolated:!0,parameters:[\"zoom\",\"feature\",\"feature-state\"]},\"property-type\":\"data-driven\"},\"fill-extrusion-base\":{type:\"number\",default:0,minimum:0,units:\"meters\",transition:!0,requires:[\"fill-extrusion-height\"],expression:{interpolated:!0,parameters:[\"zoom\",\"feature\",\"feature-state\"]},\"property-type\":\"data-driven\"},\"fill-extrusion-vertical-gradient\":{type:\"boolean\",default:!0,transition:!1,expression:{interpolated:!1,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"}},paint_line:{\"line-opacity\":{type:\"number\",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[\"zoom\",\"feature\",\"feature-state\"]},\"property-type\":\"data-driven\"},\"line-color\":{type:\"color\",default:\"#000000\",transition:!0,requires:[{\"!\":\"line-pattern\"}],expression:{interpolated:!0,parameters:[\"zoom\",\"feature\",\"feature-state\"]},\"property-type\":\"data-driven\"},\"line-translate\":{type:\"array\",value:\"number\",length:2,default:[0,0],transition:!0,units:\"pixels\",expression:{interpolated:!0,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"line-translate-anchor\":{type:\"enum\",values:{map:{},viewport:{}},default:\"map\",requires:[\"line-translate\"],expression:{interpolated:!1,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"line-width\":{type:\"number\",default:1,minimum:0,transition:!0,units:\"pixels\",expression:{interpolated:!0,parameters:[\"zoom\",\"feature\",\"feature-state\"]},\"property-type\":\"data-driven\"},\"line-gap-width\":{type:\"number\",default:0,minimum:0,transition:!0,units:\"pixels\",expression:{interpolated:!0,parameters:[\"zoom\",\"feature\",\"feature-state\"]},\"property-type\":\"data-driven\"},\"line-offset\":{type:\"number\",default:0,transition:!0,units:\"pixels\",expression:{interpolated:!0,parameters:[\"zoom\",\"feature\",\"feature-state\"]},\"property-type\":\"data-driven\"},\"line-blur\":{type:\"number\",default:0,minimum:0,transition:!0,units:\"pixels\",expression:{interpolated:!0,parameters:[\"zoom\",\"feature\",\"feature-state\"]},\"property-type\":\"data-driven\"},\"line-dasharray\":{type:\"array\",value:\"number\",minimum:0,transition:!0,units:\"line widths\",requires:[{\"!\":\"line-pattern\"}],expression:{interpolated:!1,parameters:[\"zoom\",\"feature\"]},\"property-type\":\"cross-faded-data-driven\"},\"line-pattern\":{type:\"resolvedImage\",transition:!0,expression:{interpolated:!1,parameters:[\"zoom\",\"feature\"]},\"property-type\":\"cross-faded-data-driven\"},\"line-gradient\":{type:\"color\",transition:!1,requires:[{\"!\":\"line-dasharray\"},{\"!\":\"line-pattern\"},{source:\"geojson\",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:[\"line-progress\"]},\"property-type\":\"color-ramp\"}},paint_circle:{\"circle-radius\":{type:\"number\",default:5,minimum:0,transition:!0,units:\"pixels\",expression:{interpolated:!0,parameters:[\"zoom\",\"feature\",\"feature-state\"]},\"property-type\":\"data-driven\"},\"circle-color\":{type:\"color\",default:\"#000000\",transition:!0,expression:{interpolated:!0,parameters:[\"zoom\",\"feature\",\"feature-state\"]},\"property-type\":\"data-driven\"},\"circle-blur\":{type:\"number\",default:0,transition:!0,expression:{interpolated:!0,parameters:[\"zoom\",\"feature\",\"feature-state\"]},\"property-type\":\"data-driven\"},\"circle-opacity\":{type:\"number\",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[\"zoom\",\"feature\",\"feature-state\"]},\"property-type\":\"data-driven\"},\"circle-translate\":{type:\"array\",value:\"number\",length:2,default:[0,0],transition:!0,units:\"pixels\",expression:{interpolated:!0,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"circle-translate-anchor\":{type:\"enum\",values:{map:{},viewport:{}},default:\"map\",requires:[\"circle-translate\"],expression:{interpolated:!1,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"circle-pitch-scale\":{type:\"enum\",values:{map:{},viewport:{}},default:\"map\",expression:{interpolated:!1,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"circle-pitch-alignment\":{type:\"enum\",values:{map:{},viewport:{}},default:\"viewport\",expression:{interpolated:!1,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"circle-stroke-width\":{type:\"number\",default:0,minimum:0,transition:!0,units:\"pixels\",expression:{interpolated:!0,parameters:[\"zoom\",\"feature\",\"feature-state\"]},\"property-type\":\"data-driven\"},\"circle-stroke-color\":{type:\"color\",default:\"#000000\",transition:!0,expression:{interpolated:!0,parameters:[\"zoom\",\"feature\",\"feature-state\"]},\"property-type\":\"data-driven\"},\"circle-stroke-opacity\":{type:\"number\",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[\"zoom\",\"feature\",\"feature-state\"]},\"property-type\":\"data-driven\"}},paint_heatmap:{\"heatmap-radius\":{type:\"number\",default:30,minimum:1,transition:!0,units:\"pixels\",expression:{interpolated:!0,parameters:[\"zoom\",\"feature\",\"feature-state\"]},\"property-type\":\"data-driven\"},\"heatmap-weight\":{type:\"number\",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:[\"zoom\",\"feature\",\"feature-state\"]},\"property-type\":\"data-driven\"},\"heatmap-intensity\":{type:\"number\",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"heatmap-color\":{type:\"color\",default:[\"interpolate\",[\"linear\"],[\"heatmap-density\"],0,\"rgba(0, 0, 255, 0)\",.1,\"royalblue\",.3,\"cyan\",.5,\"lime\",.7,\"yellow\",1,\"red\"],transition:!1,expression:{interpolated:!0,parameters:[\"heatmap-density\"]},\"property-type\":\"color-ramp\"},\"heatmap-opacity\":{type:\"number\",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"}},paint_symbol:{\"icon-opacity\":{type:\"number\",default:1,minimum:0,maximum:1,transition:!0,requires:[\"icon-image\"],expression:{interpolated:!0,parameters:[\"zoom\",\"feature\",\"feature-state\"]},\"property-type\":\"data-driven\"},\"icon-color\":{type:\"color\",default:\"#000000\",transition:!0,requires:[\"icon-image\"],expression:{interpolated:!0,parameters:[\"zoom\",\"feature\",\"feature-state\"]},\"property-type\":\"data-driven\"},\"icon-halo-color\":{type:\"color\",default:\"rgba(0, 0, 0, 0)\",transition:!0,requires:[\"icon-image\"],expression:{interpolated:!0,parameters:[\"zoom\",\"feature\",\"feature-state\"]},\"property-type\":\"data-driven\"},\"icon-halo-width\":{type:\"number\",default:0,minimum:0,transition:!0,units:\"pixels\",requires:[\"icon-image\"],expression:{interpolated:!0,parameters:[\"zoom\",\"feature\",\"feature-state\"]},\"property-type\":\"data-driven\"},\"icon-halo-blur\":{type:\"number\",default:0,minimum:0,transition:!0,units:\"pixels\",requires:[\"icon-image\"],expression:{interpolated:!0,parameters:[\"zoom\",\"feature\",\"feature-state\"]},\"property-type\":\"data-driven\"},\"icon-translate\":{type:\"array\",value:\"number\",length:2,default:[0,0],transition:!0,units:\"pixels\",requires:[\"icon-image\"],expression:{interpolated:!0,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"icon-translate-anchor\":{type:\"enum\",values:{map:{},viewport:{}},default:\"map\",requires:[\"icon-image\",\"icon-translate\"],expression:{interpolated:!1,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"text-opacity\":{type:\"number\",default:1,minimum:0,maximum:1,transition:!0,requires:[\"text-field\"],expression:{interpolated:!0,parameters:[\"zoom\",\"feature\",\"feature-state\"]},\"property-type\":\"data-driven\"},\"text-color\":{type:\"color\",default:\"#000000\",transition:!0,overridable:!0,requires:[\"text-field\"],expression:{interpolated:!0,parameters:[\"zoom\",\"feature\",\"feature-state\"]},\"property-type\":\"data-driven\"},\"text-halo-color\":{type:\"color\",default:\"rgba(0, 0, 0, 0)\",transition:!0,requires:[\"text-field\"],expression:{interpolated:!0,parameters:[\"zoom\",\"feature\",\"feature-state\"]},\"property-type\":\"data-driven\"},\"text-halo-width\":{type:\"number\",default:0,minimum:0,transition:!0,units:\"pixels\",requires:[\"text-field\"],expression:{interpolated:!0,parameters:[\"zoom\",\"feature\",\"feature-state\"]},\"property-type\":\"data-driven\"},\"text-halo-blur\":{type:\"number\",default:0,minimum:0,transition:!0,units:\"pixels\",requires:[\"text-field\"],expression:{interpolated:!0,parameters:[\"zoom\",\"feature\",\"feature-state\"]},\"property-type\":\"data-driven\"},\"text-translate\":{type:\"array\",value:\"number\",length:2,default:[0,0],transition:!0,units:\"pixels\",requires:[\"text-field\"],expression:{interpolated:!0,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"text-translate-anchor\":{type:\"enum\",values:{map:{},viewport:{}},default:\"map\",requires:[\"text-field\",\"text-translate\"],expression:{interpolated:!1,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"}},paint_raster:{\"raster-opacity\":{type:\"number\",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"raster-hue-rotate\":{type:\"number\",default:0,period:360,transition:!0,units:\"degrees\",expression:{interpolated:!0,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"raster-brightness-min\":{type:\"number\",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"raster-brightness-max\":{type:\"number\",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"raster-saturation\":{type:\"number\",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"raster-contrast\":{type:\"number\",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},resampling:{type:\"enum\",values:{linear:{},nearest:{}},default:\"linear\",expression:{interpolated:!1,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"raster-resampling\":{type:\"enum\",values:{linear:{},nearest:{}},default:\"linear\",expression:{interpolated:!1,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"raster-fade-duration\":{type:\"number\",default:300,minimum:0,transition:!1,units:\"milliseconds\",expression:{interpolated:!0,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"}},paint_hillshade:{\"hillshade-illumination-direction\":{type:\"numberArray\",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"hillshade-illumination-altitude\":{type:\"numberArray\",default:45,minimum:0,maximum:90,transition:!1,expression:{interpolated:!0,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"hillshade-illumination-anchor\":{type:\"enum\",values:{map:{},viewport:{}},default:\"viewport\",expression:{interpolated:!1,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"hillshade-exaggeration\":{type:\"number\",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"hillshade-shadow-color\":{type:\"colorArray\",default:\"#000000\",transition:!0,expression:{interpolated:!0,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"hillshade-highlight-color\":{type:\"colorArray\",default:\"#FFFFFF\",transition:!0,expression:{interpolated:!0,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"hillshade-accent-color\":{type:\"color\",default:\"#000000\",transition:!0,expression:{interpolated:!0,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"hillshade-method\":{type:\"enum\",values:{standard:{},basic:{},combined:{},igor:{},multidirectional:{}},default:\"standard\",expression:{interpolated:!1,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},resampling:{type:\"enum\",values:{linear:{},nearest:{}},default:\"linear\",expression:{interpolated:!1,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"}},\"paint_color-relief\":{\"color-relief-opacity\":{type:\"number\",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"color-relief-color\":{type:\"color\",transition:!1,expression:{interpolated:!0,parameters:[\"elevation\"]},\"property-type\":\"color-ramp\"},resampling:{type:\"enum\",values:{linear:{},nearest:{}},default:\"linear\",expression:{interpolated:!1,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"}},paint_background:{\"background-color\":{type:\"color\",default:\"#000000\",transition:!0,requires:[{\"!\":\"background-pattern\"}],expression:{interpolated:!0,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"background-pattern\":{type:\"resolvedImage\",transition:!0,expression:{interpolated:!1,parameters:[\"zoom\"]},\"property-type\":\"cross-faded\"},\"background-opacity\":{type:\"number\",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"}},transition:{duration:{type:\"number\",default:300,minimum:0,units:\"milliseconds\"},delay:{type:\"number\",default:0,minimum:0,units:\"milliseconds\"}},\"property-type\":{\"data-driven\":{type:\"property-type\"},\"cross-faded\":{type:\"property-type\"},\"cross-faded-data-driven\":{type:\"property-type\"},\"color-ramp\":{type:\"property-type\"},\"data-constant\":{type:\"property-type\"},constant:{type:\"property-type\"}},promoteId:{\"*\":{type:\"string\"}},interpolation:{type:\"array\",value:\"interpolation_name\",minimum:1},interpolation_name:{type:\"enum\",values:{linear:{syntax:{overloads:[{parameters:[],\"output-type\":\"interpolation\"}],parameters:[]}},exponential:{syntax:{overloads:[{parameters:[\"base\"],\"output-type\":\"interpolation\"}],parameters:[{name:\"base\",type:\"number literal\"}]}},\"cubic-bezier\":{syntax:{overloads:[{parameters:[\"x1\",\"y1\",\"x2\",\"y2\"],\"output-type\":\"interpolation\"}],parameters:[{name:\"x1\",type:\"number literal\"},{name:\"y1\",type:\"number literal\"},{name:\"x2\",type:\"number literal\"},{name:\"y2\",type:\"number literal\"}]}}}}};let qs=[\"type\",\"source\",\"source-layer\",\"minzoom\",\"maxzoom\",\"filter\",\"layout\"];function Gs(r,e){let i={};for(let o in r)o!==\"ref\"&&(i[o]=r[o]);return qs.forEach((o=>{o in e&&(i[o]=e[o])})),i}function yt(r,e){if(Array.isArray(r)){if(!Array.isArray(e)||r.length!==e.length)return!1;for(let i=0;i`:r.itemType.kind===\"value\"?\"array\":`array<${e}>`}return r.kind}let Sa=[Hr,Ie,Ke,rt,Gi,wa,Io,zr,hi(Je),Ta,Ao,Gn,$n,zo];function Zn(r,e){if(e.kind===\"error\")return null;if(r.kind===\"array\"){if(e.kind===\"array\"&&(e.N===0&&e.itemType.kind===\"value\"||!Zn(r.itemType,e.itemType))&&(typeof r.N!=\"number\"||r.N===e.N))return null}else{if(r.kind===e.kind)return null;if(r.kind===\"value\"){for(let i of Sa)if(!Zn(i,e))return null}}return`Expected ${bt(r)} but found ${bt(e)} instead.`}function Do(r,e){return e.some((i=>i.kind===r.kind))}function mn(r,e){return e.some((i=>i===\"null\"?r===null:i===\"array\"?Array.isArray(r):i===\"object\"?r&&!Array.isArray(r)&&typeof r==\"object\":i===typeof r))}function pr(r,e){return r.kind===\"array\"&&e.kind===\"array\"?r.itemType.kind===e.itemType.kind&&typeof r.N==\"number\":r.kind===e.kind}let gc=.96422,gn=.82521,Ma=4/29,Vt=6/29,_c=3*Vt*Vt,yc=Vt*Vt*Vt,ko=Math.PI/180,vc=180/Math.PI;function xc(r){return(r%=360)<0&&(r+=360),r}function bc([r,e,i,o]){let a,l,u=Ws((.2225045*(r=Pa(r))+.7168786*(e=Pa(e))+.0606169*(i=Pa(i)))/1);r===e&&e===i?a=l=u:(a=Ws((.4360747*r+.3850649*e+.1430804*i)/gc),l=Ws((.0139322*r+.0971045*e+.7141733*i)/gn));let p=116*u-16;return[p<0?0:p,500*(a-u),200*(u-l),o]}function Pa(r){return r<=.04045?r/12.92:Math.pow((r+.055)/1.055,2.4)}function Ws(r){return r>yc?Math.pow(r,1/3):r/_c+Ma}function Hs([r,e,i,o]){let a=(r+16)/116,l=isNaN(e)?a:a+e/500,u=isNaN(i)?a:a-i/200;return a=1*Ys(a),l=gc*Ys(l),u=gn*Ys(u),[Xs(3.1338561*l-1.6168667*a-.4906146*u),Xs(-.9787684*l+1.9161415*a+.033454*u),Xs(.0719453*l-.2289914*a+1.4052427*u),o]}function Xs(r){return(r=r<=.00304?12.92*r:1.055*Math.pow(r,1/2.4)-.055)<0?0:r>1?1:r}function Ys(r){return r>Vt?r*r*r:_c*(r-Ma)}let Wu=Object.hasOwn||function(r,e){return Object.prototype.hasOwnProperty.call(r,e)};function Ro(r,e){return Wu(r,e)?r[e]:void 0}function Ca(r){return parseInt(r.padEnd(2,r),16)/255}function wc(r,e){return Wn(e?r/100:r,0,1)}function Wn(r,e,i){return Math.min(Math.max(e,r),i)}function Ks(r){return!r.some(Number.isNaN)}let Lo={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};function Xr(r,e,i){return r+i*(e-r)}function Hn(r,e,i){return r.map(((o,a)=>Xr(o,e[a],i)))}class tt{constructor(e,i,o,a=1,l=!0){this.r=e,this.g=i,this.b=o,this.a=a,l||(this.r*=a,this.g*=a,this.b*=a,a||this.overwriteGetter(\"rgb\",[e,i,o,a]))}static parse(e){if(e instanceof tt)return e;if(typeof e!=\"string\")return;let i=(function(o){if((o=o.toLowerCase().trim())===\"transparent\")return[0,0,0,0];let a=Ro(Lo,o);if(a){let[u,p,g]=a;return[u/255,p/255,g/255,1]}if(o.startsWith(\"#\")&&/^#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/.test(o)){let u=o.length<6?1:2,p=1;return[Ca(o.slice(p,p+=u)),Ca(o.slice(p,p+=u)),Ca(o.slice(p,p+=u)),Ca(o.slice(p,p+u)||\"ff\")]}if(o.startsWith(\"rgb\")){let u=o.match(/^rgba?\\(\\s*([\\de.+-]+)(%)?(?:\\s+|\\s*(,)\\s*)([\\de.+-]+)(%)?(?:\\s+|\\s*(,)\\s*)([\\de.+-]+)(%)?(?:\\s*([,\\/])\\s*([\\de.+-]+)(%)?)?\\s*\\)$/);if(u){let[p,g,m,v,_,T,b,P,C,A,z,L]=u,R=[v||\" \",b||\" \",A].join(\"\");if(R===\" \"||R===\" /\"||R===\",,\"||R===\",,,\"){let F=[m,T,C].join(\"\"),O=F===\"%%%\"?100:F===\"\"?255:0;if(O){let j=[Wn(+g/O,0,1),Wn(+_/O,0,1),Wn(+P/O,0,1),z?wc(+z,L):1];if(Ks(j))return j}}return}}let l=o.match(/^hsla?\\(\\s*([\\de.+-]+)(?:deg)?(?:\\s+|\\s*(,)\\s*)([\\de.+-]+)%(?:\\s+|\\s*(,)\\s*)([\\de.+-]+)%(?:\\s*([,\\/])\\s*([\\de.+-]+)(%)?)?\\s*\\)$/);if(l){let[u,p,g,m,v,_,T,b,P]=l,C=[g||\" \",v||\" \",T].join(\"\");if(C===\" \"||C===\" /\"||C===\",,\"||C===\",,,\"){let A=[+p,Wn(+m,0,100),Wn(+_,0,100),b?wc(+b,P):1];if(Ks(A))return(function([z,L,R,F]){function O(j){let Y=(j+z/30)%12,Q=L*Math.min(R,1-R);return R-Q*Math.max(-1,Math.min(Y-3,9-Y,1))}return z=xc(z),L/=100,R/=100,[O(0),O(8),O(4),F]})(A)}}})(e);return i?new tt(...i,!1):void 0}get rgb(){let{r:e,g:i,b:o,a}=this,l=a||1/0;return this.overwriteGetter(\"rgb\",[e/l,i/l,o/l,a])}get hcl(){return this.overwriteGetter(\"hcl\",(function(e){let[i,o,a,l]=bc(e),u=Math.sqrt(o*o+a*a);return[Math.round(1e4*u)?xc(Math.atan2(a,o)*vc):NaN,u,i,l]})(this.rgb))}get lab(){return this.overwriteGetter(\"lab\",bc(this.rgb))}overwriteGetter(e,i){return Object.defineProperty(this,e,{value:i}),i}toString(){let[e,i,o,a]=this.rgb;return`rgba(${[e,i,o].map((l=>Math.round(255*l))).join(\",\")},${a})`}static interpolate(e,i,o,a=\"rgb\"){switch(a){case\"rgb\":{let[l,u,p,g]=Hn(e.rgb,i.rgb,o);return new tt(l,u,p,g,!1)}case\"hcl\":{let[l,u,p,g]=e.hcl,[m,v,_,T]=i.hcl,b,P;if(isNaN(l)||isNaN(m))isNaN(l)?isNaN(m)?b=NaN:(b=m,p!==1&&p!==0||(P=v)):(b=l,_!==1&&_!==0||(P=u));else{let R=m-l;m>l&&R>180?R-=360:m180&&(R+=360),b=l+o*R}let[C,A,z,L]=(function([R,F,O,j]){return R=isNaN(R)?0:R*ko,Hs([O,Math.cos(R)*F,Math.sin(R)*F,j])})([b,P??Xr(u,v,o),Xr(p,_,o),Xr(g,T,o)]);return new tt(C,A,z,L,!1)}case\"lab\":{let[l,u,p,g]=Hs(Hn(e.lab,i.lab,o));return new tt(l,u,p,g,!1)}}}}tt.black=new tt(0,0,0,1),tt.white=new tt(1,1,1,1),tt.transparent=new tt(0,0,0,0),tt.red=new tt(1,0,0,1);class Js{constructor(e,i,o){this.sensitivity=e?i?\"variant\":\"case\":i?\"accent\":\"base\",this.locale=o,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:\"search\"})}compare(e,i){return this.collator.compare(e,i)}resolvedLocale(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale}}let Hu=[\"bottom\",\"center\",\"top\"];class Qs{constructor(e,i,o,a,l,u){this.text=e,this.image=i,this.scale=o,this.fontStack=a,this.textColor=l,this.verticalAlign=u}}class Vi{constructor(e){this.sections=e}static fromString(e){return new Vi([new Qs(e,null,null,null,null,null)])}isEmpty(){return this.sections.length===0||!this.sections.some((e=>e.text.length!==0||e.image&&e.image.name.length!==0))}static factory(e){return e instanceof Vi?e:Vi.fromString(e)}toString(){return this.sections.length===0?\"\":this.sections.map((e=>e.text)).join(\"\")}}class mi{constructor(e){this.values=e.slice()}static parse(e){if(e instanceof mi)return e;if(typeof e==\"number\")return new mi([e,e,e,e]);if(Array.isArray(e)&&!(e.length<1||e.length>4)){for(let i of e)if(typeof i!=\"number\")return;switch(e.length){case 1:e=[e[0],e[0],e[0],e[0]];break;case 2:e=[e[0],e[1],e[0],e[1]];break;case 3:e=[e[0],e[1],e[2],e[1]]}return new mi(e)}}toString(){return JSON.stringify(this.values)}static interpolate(e,i,o){return new mi(Hn(e.values,i.values,o))}}class Rt{constructor(e){this.values=e.slice()}static parse(e){if(e instanceof Rt)return e;if(typeof e==\"number\")return new Rt([e]);if(Array.isArray(e)){for(let i of e)if(typeof i!=\"number\")return;return new Rt(e)}}toString(){return JSON.stringify(this.values)}static interpolate(e,i,o){return new Rt(Hn(e.values,i.values,o))}}class We{constructor(e){this.values=e.slice()}static parse(e){if(e instanceof We)return e;if(typeof e==\"string\"){let o=tt.parse(e);return o?new We([o]):void 0}if(!Array.isArray(e))return;let i=[];for(let o of e){if(typeof o!=\"string\")return;let a=tt.parse(o);if(!a)return;i.push(a)}return new We(i)}toString(){return JSON.stringify(this.values)}static interpolate(e,i,o,a=\"rgb\"){let l=[];if(e.values.length!=i.values.length)throw new Error(`colorArray: Arrays have mismatched length (${e.values.length} vs. ${i.values.length}), cannot interpolate.`);for(let u=0;u=0&&r<=255&&typeof e==\"number\"&&e>=0&&e<=255&&typeof i==\"number\"&&i>=0&&i<=255?o===void 0||typeof o==\"number\"&&o>=0&&o<=1?null:`Invalid rgba value [${[r,e,i,o].join(\", \")}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${(typeof o==\"number\"?[r,e,i,o]:[r,e,i]).join(\", \")}]: 'r', 'g', and 'b' must be between 0 and 255.`}function Kr(r){if(r===null||typeof r==\"string\"||typeof r==\"boolean\"||typeof r==\"number\"||r instanceof Ei||r instanceof tt||r instanceof Js||r instanceof Vi||r instanceof mi||r instanceof Rt||r instanceof We||r instanceof Ci||r instanceof $i)return!0;if(Array.isArray(r)){for(let e of r)if(!Kr(e))return!1;return!0}if(typeof r==\"object\"){for(let e in r)if(!Kr(r[e]))return!1;return!0}return!1}function qt(r){if(r===null)return Hr;if(typeof r==\"string\")return Ke;if(typeof r==\"boolean\")return rt;if(typeof r==\"number\")return Ie;if(r instanceof tt)return Gi;if(r instanceof Ei)return wa;if(r instanceof Js)return Eo;if(r instanceof Vi)return Io;if(r instanceof mi)return Ta;if(r instanceof Rt)return Ao;if(r instanceof We)return Gn;if(r instanceof Ci)return zo;if(r instanceof $i)return $n;if(Array.isArray(r)){let e=r.length,i;for(let o of r){let a=qt(o);if(i){if(i===a)continue;i=Je;break}i=a}return hi(i||Je,e)}return zr}function _n(r){let e=typeof r;return r===null?\"\":e===\"string\"||e===\"number\"||e===\"boolean\"?String(r):r instanceof tt||r instanceof Ei||r instanceof Vi||r instanceof mi||r instanceof Rt||r instanceof We||r instanceof Ci||r instanceof $i?r.toString():JSON.stringify(r)}class br{constructor(e,i){this.type=e,this.value=i}static parse(e,i){if(e.length!==2)return i.error(`'literal' expression requires exactly one argument, but found ${e.length-1} instead.`);if(!Kr(e[1]))return i.error(\"invalid value\");let o=e[1],a=qt(o),l=i.expectedType;return a.kind!==\"array\"||a.N!==0||!l||l.kind!==\"array\"||typeof l.N==\"number\"&&l.N!==0||(a=l),new br(a,o)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}}let Ea={string:Ke,number:Ie,boolean:rt,object:zr};class ji{constructor(e,i){this.type=e,this.args=i}static parse(e,i){if(e.length<2)return i.error(\"Expected at least one argument.\");let o,a=1,l=e[0];if(l===\"array\"){let p,g;if(e.length>2){let m=e[1];if(typeof m!=\"string\"||!(m in Ea)||m===\"object\")return i.error('The item type argument of \"array\" must be one of string, number, boolean',1);p=Ea[m],a++}else p=Je;if(e.length>3){if(e[2]!==null&&(typeof e[2]!=\"number\"||e[2]<0||e[2]!==Math.floor(e[2])))return i.error('The length argument to \"array\" must be a positive integer literal',2);g=e[2],a++}o=hi(p,g)}else{if(!Ea[l])throw new Error(`Types doesn't contain name = ${l}`);o=Ea[l]}let u=[];for(;ae.outputDefined()))}}let yn={\"to-boolean\":rt,\"to-color\":Gi,\"to-number\":Ie,\"to-string\":Ke};class Dr{constructor(e,i){this.type=e,this.args=i}static parse(e,i){if(e.length<2)return i.error(\"Expected at least one argument.\");let o=e[0];if(!yn[o])throw new Error(`Can't parse ${o} as it is not part of the known types`);if((o===\"to-boolean\"||o===\"to-string\")&&e.length!==2)return i.error(\"Expected one argument.\");let a=yn[o],l=[];for(let u=1;u4?`Invalid rgba value ${JSON.stringify(i)}: expected an array containing either three or four numeric values.`:Xn(i[0],i[1],i[2],i[3]),!o))return new tt(i[0]/255,i[1]/255,i[2]/255,i[3])}throw new Pt(o||`Could not parse color from value '${typeof i==\"string\"?i:JSON.stringify(i)}'`)}case\"padding\":{let i;for(let o of this.args){i=o.evaluate(e);let a=mi.parse(i);if(a)return a}throw new Pt(`Could not parse padding from value '${typeof i==\"string\"?i:JSON.stringify(i)}'`)}case\"numberArray\":{let i;for(let o of this.args){i=o.evaluate(e);let a=Rt.parse(i);if(a)return a}throw new Pt(`Could not parse numberArray from value '${typeof i==\"string\"?i:JSON.stringify(i)}'`)}case\"colorArray\":{let i;for(let o of this.args){i=o.evaluate(e);let a=We.parse(i);if(a)return a}throw new Pt(`Could not parse colorArray from value '${typeof i==\"string\"?i:JSON.stringify(i)}'`)}case\"variableAnchorOffsetCollection\":{let i;for(let o of this.args){i=o.evaluate(e);let a=Ci.parse(i);if(a)return a}throw new Pt(`Could not parse variableAnchorOffsetCollection from value '${typeof i==\"string\"?i:JSON.stringify(i)}'`)}case\"number\":{let i=null;for(let o of this.args){if(i=o.evaluate(e),i===null)return 0;let a=Number(i);if(!isNaN(a))return a}throw new Pt(`Could not convert ${JSON.stringify(i)} to number.`)}case\"formatted\":return Vi.fromString(_n(this.args[0].evaluate(e)));case\"resolvedImage\":return $i.fromString(_n(this.args[0].evaluate(e)));case\"projectionDefinition\":return this.args[0].evaluate(e);default:return _n(this.args[0].evaluate(e))}}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every((e=>e.outputDefined()))}}let Tc=[\"Unknown\",\"Point\",\"LineString\",\"Polygon\"];class el{constructor(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache=new Map,this.availableImages=null,this.canonical=null}id(){return this.feature&&\"id\"in this.feature?this.feature.id:null}geometryType(){return this.feature?typeof this.feature.type==\"number\"?Tc[this.feature.type]:this.feature.type:null}geometry(){return this.feature&&\"geometry\"in this.feature?this.feature.geometry:null}canonicalID(){return this.canonical}properties(){return this.feature&&this.feature.properties||{}}parseColor(e){let i=this._parseColorCache.get(e);return i||(i=tt.parse(e),this._parseColorCache.set(e,i)),i}}class vn{constructor(e,i,o=[],a,l=new Zs,u=[]){this.registry=e,this.path=o,this.key=o.map((p=>`[${p}]`)).join(\"\"),this.scope=l,this.errors=u,this.expectedType=a,this._isConstant=i}parse(e,i,o,a,l={}){return i?this.concat(i,o,a)._parse(e,l):this._parse(e,l)}_parse(e,i){function o(a,l,u){return u===\"assert\"?new ji(l,[a]):u===\"coerce\"?new Dr(l,[a]):a}if(e!==null&&typeof e!=\"string\"&&typeof e!=\"boolean\"&&typeof e!=\"number\"||(e=[\"literal\",e]),Array.isArray(e)){if(e.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use [\"literal\", []].');let a=e[0];if(typeof a!=\"string\")return this.error(`Expression name must be a string, but found ${typeof a} instead. If you wanted a literal array, use [\"literal\", [...]].`,0),null;let l=this.registry[a];if(l){let u=l.parse(e,this);if(!u)return null;if(this.expectedType){let p=this.expectedType,g=u.type;if(p.kind!==\"string\"&&p.kind!==\"number\"&&p.kind!==\"boolean\"&&p.kind!==\"object\"&&p.kind!==\"array\"||g.kind!==\"value\"){if(p.kind===\"projectionDefinition\"&&[\"string\",\"array\"].includes(g.kind)||[\"color\",\"formatted\",\"resolvedImage\"].includes(p.kind)&&[\"value\",\"string\"].includes(g.kind)||[\"padding\",\"numberArray\"].includes(p.kind)&&[\"value\",\"number\",\"array\"].includes(g.kind)||p.kind===\"colorArray\"&&[\"value\",\"string\",\"array\"].includes(g.kind)||p.kind===\"variableAnchorOffsetCollection\"&&[\"value\",\"array\"].includes(g.kind))u=o(u,p,i.typeAnnotation||\"coerce\");else if(this.checkSubtype(p,g))return null}else u=o(u,p,i.typeAnnotation||\"assert\")}if(!(u instanceof br)&&u.type.kind!==\"resolvedImage\"&&this._isConstant(u)){let p=new el;try{u=new br(u.type,u.evaluate(p))}catch(g){return this.error(g.message),null}}return u}return this.error(`Unknown expression \"${a}\". If you wanted a literal array, use [\"literal\", [...]].`,0)}return this.error(e===void 0?\"'undefined' value invalid. Use null instead.\":typeof e==\"object\"?'Bare objects invalid. Use [\"literal\", {...}] instead.':`Expected an array, but found ${typeof e} instead.`)}concat(e,i,o){let a=typeof e==\"number\"?this.path.concat(e):this.path,l=o?this.scope.concat(o):this.scope;return new vn(this.registry,this._isConstant,a,i||null,l,this.errors)}error(e,...i){let o=`${this.key}${i.map((a=>`[${a}]`)).join(\"\")}`;this.errors.push(new ui(o,e))}checkSubtype(e,i){let o=Zn(e,i);return o&&this.error(o),o}}class Ct{constructor(e,i){this.type=i.type,this.bindings=[].concat(e),this.result=i}evaluate(e){return this.result.evaluate(e)}eachChild(e){for(let i of this.bindings)e(i[1]);e(this.result)}static parse(e,i){if(e.length<4)return i.error(`Expected at least 3 arguments, but found ${e.length-1} instead.`);let o=[];for(let l=1;l=o.length)throw new Pt(`Array index out of bounds: ${i} > ${o.length-1}.`);if(i!==Math.floor(i))throw new Pt(`Array index must be an integer, but found ${i} instead.`);return o[i]}eachChild(e){e(this.index),e(this.input)}outputDefined(){return!1}}class Qe{constructor(e,i){this.type=rt,this.needle=e,this.haystack=i}static parse(e,i){if(e.length!==3)return i.error(`Expected 2 arguments, but found ${e.length-1} instead.`);let o=i.parse(e[1],1,Je),a=i.parse(e[2],2,Je);return o&&a?Do(o.type,[rt,Ke,Ie,Hr,Je])?new Qe(o,a):i.error(`Expected first argument to be of type boolean, string, number or null, but found ${bt(o.type)} instead`):null}evaluate(e){let i=this.needle.evaluate(e),o=this.haystack.evaluate(e);if(!o)return!1;if(!mn(i,[\"boolean\",\"string\",\"number\",\"null\"]))throw new Pt(`Expected first argument to be of type boolean, string, number or null, but found ${bt(qt(i))} instead.`);if(!mn(o,[\"string\",\"array\"]))throw new Pt(`Expected second argument to be of type array or string, but found ${bt(qt(o))} instead.`);return o.indexOf(i)>=0}eachChild(e){e(this.needle),e(this.haystack)}outputDefined(){return!0}}class Kn{constructor(e,i,o){this.type=Ie,this.needle=e,this.haystack=i,this.fromIndex=o}static parse(e,i){if(e.length<=2||e.length>=5)return i.error(`Expected 2 or 3 arguments, but found ${e.length-1} instead.`);let o=i.parse(e[1],1,Je),a=i.parse(e[2],2,Je);if(!o||!a)return null;if(!Do(o.type,[rt,Ke,Ie,Hr,Je]))return i.error(`Expected first argument to be of type boolean, string, number or null, but found ${bt(o.type)} instead`);if(e.length===4){let l=i.parse(e[3],3,Ie);return l?new Kn(o,a,l):null}return new Kn(o,a)}evaluate(e){let i=this.needle.evaluate(e),o=this.haystack.evaluate(e);if(!mn(i,[\"boolean\",\"string\",\"number\",\"null\"]))throw new Pt(`Expected first argument to be of type boolean, string, number or null, but found ${bt(qt(i))} instead.`);let a;if(this.fromIndex&&(a=this.fromIndex.evaluate(e)),mn(o,[\"string\"])){let l=o.indexOf(i,a);return l===-1?-1:[...o.slice(0,l)].length}if(mn(o,[\"array\"]))return o.indexOf(i,a);throw new Pt(`Expected second argument to be of type array or string, but found ${bt(qt(o))} instead.`)}eachChild(e){e(this.needle),e(this.haystack),this.fromIndex&&e(this.fromIndex)}outputDefined(){return!1}}class ct{constructor(e,i,o,a,l,u){this.inputType=e,this.type=i,this.input=o,this.cases=a,this.outputs=l,this.otherwise=u}static parse(e,i){if(e.length<5)return i.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if(e.length%2!=1)return i.error(\"Expected an even number of arguments.\");let o,a;i.expectedType&&i.expectedType.kind!==\"value\"&&(a=i.expectedType);let l={},u=[];for(let m=2;mNumber.MAX_SAFE_INTEGER)return T.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);if(typeof P==\"number\"&&Math.floor(P)!==P)return T.error(\"Numeric branch labels must be integer values.\");if(o){if(T.checkSubtype(o,qt(P)))return null}else o=qt(P);if(l[String(P)]!==void 0)return T.error(\"Branch labels must be unique.\");l[String(P)]=u.length}let b=i.parse(_,m,a);if(!b)return null;a=a||b.type,u.push(b)}let p=i.parse(e[1],1,Je);if(!p)return null;let g=i.parse(e[e.length-1],e.length-1,a);return g?p.type.kind!==\"value\"&&i.concat(1).checkSubtype(o,p.type)?null:new ct(o,a,p,l,u,g):null}evaluate(e){let i=this.input.evaluate(e);return(qt(i)===this.inputType&&this.outputs[this.cases[i]]||this.otherwise).evaluate(e)}eachChild(e){e(this.input),this.outputs.forEach(e),e(this.otherwise)}outputDefined(){return this.outputs.every((e=>e.outputDefined()))&&this.otherwise.outputDefined()}}class fr{constructor(e,i,o){this.type=e,this.branches=i,this.otherwise=o}static parse(e,i){if(e.length<4)return i.error(`Expected at least 3 arguments, but found only ${e.length-1}.`);if(e.length%2!=0)return i.error(\"Expected an odd number of arguments.\");let o;i.expectedType&&i.expectedType.kind!==\"value\"&&(o=i.expectedType);let a=[];for(let u=1;ui.outputDefined()))&&this.otherwise.outputDefined()}}class Jn{constructor(e,i,o,a){this.type=e,this.input=i,this.beginIndex=o,this.endIndex=a}static parse(e,i){if(e.length<=2||e.length>=5)return i.error(`Expected 2 or 3 arguments, but found ${e.length-1} instead.`);let o=i.parse(e[1],1,Je),a=i.parse(e[2],2,Ie);if(!o||!a)return null;if(!Do(o.type,[hi(Je),Ke,Je]))return i.error(`Expected first argument to be of type array or string, but found ${bt(o.type)} instead`);if(e.length===4){let l=i.parse(e[3],3,Ie);return l?new Jn(o.type,o,a,l):null}return new Jn(o.type,o,a)}evaluate(e){let i=this.input.evaluate(e),o=this.beginIndex.evaluate(e),a;if(this.endIndex&&(a=this.endIndex.evaluate(e)),mn(i,[\"string\"]))return[...i].slice(o,a).join(\"\");if(mn(i,[\"array\"]))return i.slice(o,a);throw new Pt(`Expected first argument to be of type array or string, but found ${bt(qt(i))} instead.`)}eachChild(e){e(this.input),e(this.beginIndex),this.endIndex&&e(this.endIndex)}outputDefined(){return!1}}function xn(r,e){let i=r.length-1,o,a,l=0,u=i,p=0;for(;l<=u;)if(p=Math.floor((l+u)/2),o=r[p],a=r[p+1],o<=e){if(p===i||ee))throw new Pt(\"Input is not a number.\");u=p-1}return 0}class Qn{constructor(e,i,o){this.type=e,this.input=i,this.labels=[],this.outputs=[];for(let[a,l]of o)this.labels.push(a),this.outputs.push(l)}static parse(e,i){if(e.length-1<4)return i.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if((e.length-1)%2!=0)return i.error(\"Expected an even number of arguments.\");let o=i.parse(e[1],1,Ie);if(!o)return null;let a=[],l=null;i.expectedType&&i.expectedType.kind!==\"value\"&&(l=i.expectedType);for(let u=1;u=p)return i.error('Input/output pairs for \"step\" expressions must be arranged with input values in strictly ascending order.',m);let _=i.parse(g,v,l);if(!_)return null;l=l||_.type,a.push([p,_])}return new Qn(l,o,a)}evaluate(e){let i=this.labels,o=this.outputs;if(i.length===1)return o[0].evaluate(e);let a=this.input.evaluate(e);if(a<=i[0])return o[0].evaluate(e);let l=i.length;return a>=i[l-1]?o[l-1].evaluate(e):o[xn(i,a)].evaluate(e)}eachChild(e){e(this.input);for(let i of this.outputs)e(i)}outputDefined(){return this.outputs.every((e=>e.outputDefined()))}}function tl(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,\"default\")?r.default:r}var Ia,Sc,Mc=(function(){if(Sc)return Ia;function r(e,i,o,a){this.cx=3*e,this.bx=3*(o-e)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*i,this.by=3*(a-i)-this.cy,this.ay=1-this.cy-this.by,this.p1x=e,this.p1y=i,this.p2x=o,this.p2y=a}return Sc=1,Ia=r,r.prototype={sampleCurveX:function(e){return((this.ax*e+this.bx)*e+this.cx)*e},sampleCurveY:function(e){return((this.ay*e+this.by)*e+this.cy)*e},sampleCurveDerivativeX:function(e){return(3*this.ax*e+2*this.bx)*e+this.cx},solveCurveX:function(e,i){if(i===void 0&&(i=1e-6),e<0)return 0;if(e>1)return 1;for(var o=e,a=0;a<8;a++){var l=this.sampleCurveX(o)-e;if(Math.abs(l)l?p=o:g=o,o=.5*(g-p)+p;return o},solve:function(e,i){return this.sampleCurveY(this.solveCurveX(e,i))}},Ia})(),Pc=tl(Mc);class Zt{constructor(e,i,o,a,l){this.type=e,this.operator=i,this.interpolation=o,this.input=a,this.labels=[],this.outputs=[];for(let[u,p]of l)this.labels.push(u),this.outputs.push(p)}static interpolationFactor(e,i,o,a){let l=0;if(e.name===\"exponential\")l=ii(i,e.base,o,a);else if(e.name===\"linear\")l=ii(i,1,o,a);else if(e.name===\"cubic-bezier\"){let u=e.controlPoints;l=new Pc(u[0],u[1],u[2],u[3]).solve(ii(i,1,o,a))}return l}static parse(e,i){let[o,a,l,...u]=e;if(!Array.isArray(a)||a.length===0)return i.error(\"Expected an interpolation type expression.\",1);if(a[0]===\"linear\")a={name:\"linear\"};else if(a[0]===\"exponential\"){let m=a[1];if(typeof m!=\"number\")return i.error(\"Exponential interpolation requires a numeric base.\",1,1);a={name:\"exponential\",base:m}}else{if(a[0]!==\"cubic-bezier\")return i.error(`Unknown interpolation type ${String(a[0])}`,1,0);{let m=a.slice(1);if(m.length!==4||m.some((v=>typeof v!=\"number\"||v<0||v>1)))return i.error(\"Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.\",1);a={name:\"cubic-bezier\",controlPoints:m}}}if(e.length-1<4)return i.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if((e.length-1)%2!=0)return i.error(\"Expected an even number of arguments.\");if(l=i.parse(l,2,Ie),!l)return null;let p=[],g=null;o!==\"interpolate-hcl\"&&o!==\"interpolate-lab\"||i.expectedType==Gn?i.expectedType&&i.expectedType.kind!==\"value\"&&(g=i.expectedType):g=Gi;for(let m=0;m=v)return i.error('Input/output pairs for \"interpolate\" expressions must be arranged with input values in strictly ascending order.',T);let P=i.parse(_,b,g);if(!P)return null;g=g||P.type,p.push([v,P])}return pr(g,Ie)||pr(g,wa)||pr(g,Gi)||pr(g,Ta)||pr(g,Ao)||pr(g,Gn)||pr(g,zo)||pr(g,hi(Ie))?new Zt(g,o,a,l,p):i.error(`Type ${bt(g)} is not interpolatable.`)}evaluate(e){let i=this.labels,o=this.outputs;if(i.length===1)return o[0].evaluate(e);let a=this.input.evaluate(e);if(a<=i[0])return o[0].evaluate(e);let l=i.length;if(a>=i[l-1])return o[l-1].evaluate(e);let u=xn(i,a),p=Zt.interpolationFactor(this.interpolation,a,i[u],i[u+1]),g=o[u].evaluate(e),m=o[u+1].evaluate(e);switch(this.operator){case\"interpolate\":switch(this.type.kind){case\"number\":return Xr(g,m,p);case\"color\":return tt.interpolate(g,m,p);case\"padding\":return mi.interpolate(g,m,p);case\"colorArray\":return We.interpolate(g,m,p);case\"numberArray\":return Rt.interpolate(g,m,p);case\"variableAnchorOffsetCollection\":return Ci.interpolate(g,m,p);case\"array\":return Hn(g,m,p);case\"projectionDefinition\":return Ei.interpolate(g,m,p)}case\"interpolate-hcl\":switch(this.type.kind){case\"color\":return tt.interpolate(g,m,p,\"hcl\");case\"colorArray\":return We.interpolate(g,m,p,\"hcl\")}case\"interpolate-lab\":switch(this.type.kind){case\"color\":return tt.interpolate(g,m,p,\"lab\");case\"colorArray\":return We.interpolate(g,m,p,\"lab\")}}}eachChild(e){e(this.input);for(let i of this.outputs)e(i)}outputDefined(){return this.outputs.every((e=>e.outputDefined()))}}function ii(r,e,i,o){let a=o-i,l=r-i;return a===0?0:e===1?l/a:(Math.pow(e,l)-1)/(Math.pow(e,a)-1)}let Zi={color:tt.interpolate,number:Xr,padding:mi.interpolate,numberArray:Rt.interpolate,colorArray:We.interpolate,variableAnchorOffsetCollection:Ci.interpolate,array:Hn};class Fo{constructor(e,i){this.type=e,this.args=i}static parse(e,i){if(e.length<2)return i.error(\"Expected at least one argument.\");let o=null,a=i.expectedType;a&&a.kind!==\"value\"&&(o=a);let l=[];for(let p of e.slice(1)){let g=i.parse(p,1+l.length,o,void 0,{typeAnnotation:\"omit\"});if(!g)return null;o=o||g.type,l.push(g)}if(!o)throw new Error(\"No output type\");let u=a&&l.some((p=>Zn(a,p.type)));return new Fo(u?Je:o,l)}evaluate(e){let i,o=null,a=0;for(let l of this.args)if(a++,o=l.evaluate(e),o&&o instanceof $i&&!o.available&&(i||(i=o.name),o=null,a===this.args.length&&(o=i)),o!==null)break;return o}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every((e=>e.outputDefined()))}}function Bo(r,e){return r===\"==\"||r===\"!=\"?e.kind===\"boolean\"||e.kind===\"string\"||e.kind===\"number\"||e.kind===\"null\"||e.kind===\"value\":e.kind===\"string\"||e.kind===\"number\"||e.kind===\"value\"}function Jt(r,e,i,o){return o.compare(e,i)===0}function bn(r,e,i){let o=r!==\"==\"&&r!==\"!=\";return class cm{constructor(l,u,p){this.type=rt,this.lhs=l,this.rhs=u,this.collator=p,this.hasUntypedArgument=l.type.kind===\"value\"||u.type.kind===\"value\"}static parse(l,u){if(l.length!==3&&l.length!==4)return u.error(\"Expected two or three arguments.\");let p=l[0],g=u.parse(l[1],1,Je);if(!g)return null;if(!Bo(p,g.type))return u.concat(1).error(`\"${p}\" comparisons are not supported for type '${bt(g.type)}'.`);let m=u.parse(l[2],2,Je);if(!m)return null;if(!Bo(p,m.type))return u.concat(2).error(`\"${p}\" comparisons are not supported for type '${bt(m.type)}'.`);if(g.type.kind!==m.type.kind&&g.type.kind!==\"value\"&&m.type.kind!==\"value\")return u.error(`Cannot compare types '${bt(g.type)}' and '${bt(m.type)}'.`);o&&(g.type.kind===\"value\"&&m.type.kind!==\"value\"?g=new ji(m.type,[g]):g.type.kind!==\"value\"&&m.type.kind===\"value\"&&(m=new ji(g.type,[m])));let v=null;if(l.length===4){if(g.type.kind!==\"string\"&&m.type.kind!==\"string\"&&g.type.kind!==\"value\"&&m.type.kind!==\"value\")return u.error(\"Cannot use collator to compare non-string types.\");if(v=u.parse(l[3],3,Eo),!v)return null}return new cm(g,m,v)}evaluate(l){let u=this.lhs.evaluate(l),p=this.rhs.evaluate(l);if(o&&this.hasUntypedArgument){let g=qt(u),m=qt(p);if(g.kind!==m.kind||g.kind!==\"string\"&&g.kind!==\"number\")throw new Pt(`Expected arguments for \"${r}\" to be (string, string) or (number, number), but found (${g.kind}, ${m.kind}) instead.`)}if(this.collator&&!o&&this.hasUntypedArgument){let g=qt(u),m=qt(p);if(g.kind!==\"string\"||m.kind!==\"string\")return e(l,u,p)}return this.collator?i(l,u,p,this.collator.evaluate(l)):e(l,u,p)}eachChild(l){l(this.lhs),l(this.rhs),this.collator&&l(this.collator)}outputDefined(){return!0}}}let il=bn(\"==\",(function(r,e,i){return e===i}),Jt),Cc=bn(\"!=\",(function(r,e,i){return e!==i}),(function(r,e,i,o){return!Jt(0,e,i,o)})),Xu=bn(\"<\",(function(r,e,i){return e\",(function(r,e,i){return e>i}),(function(r,e,i,o){return o.compare(e,i)>0})),Aa=bn(\"<=\",(function(r,e,i){return e<=i}),(function(r,e,i,o){return o.compare(e,i)<=0})),rl=bn(\">=\",(function(r,e,i){return e>=i}),(function(r,e,i,o){return o.compare(e,i)>=0}));class za{constructor(e,i,o){this.type=Eo,this.locale=o,this.caseSensitive=e,this.diacriticSensitive=i}static parse(e,i){if(e.length!==2)return i.error(\"Expected one argument.\");let o=e[1];if(typeof o!=\"object\"||Array.isArray(o))return i.error(\"Collator options argument must be an object.\");let a=i.parse(o[\"case-sensitive\"]!==void 0&&o[\"case-sensitive\"],1,rt);if(!a)return null;let l=i.parse(o[\"diacritic-sensitive\"]!==void 0&&o[\"diacritic-sensitive\"],1,rt);if(!l)return null;let u=null;return o.locale&&(u=i.parse(o.locale,1,Ke),!u)?null:new za(a,l,u)}evaluate(e){return new Js(this.caseSensitive.evaluate(e),this.diacriticSensitive.evaluate(e),this.locale?this.locale.evaluate(e):null)}eachChild(e){e(this.caseSensitive),e(this.diacriticSensitive),this.locale&&e(this.locale)}outputDefined(){return!1}}class Da{constructor(e,i,o,a,l,u){this.type=Ke,this.number=e,this.locale=i,this.currency=o,this.unit=a,this.minFractionDigits=l,this.maxFractionDigits=u}static parse(e,i){if(e.length!==3)return i.error(\"Expected two arguments.\");let o=i.parse(e[1],1,Ie);if(!o)return null;let a=e[2];if(typeof a!=\"object\"||Array.isArray(a))return i.error(\"NumberFormat options argument must be an object.\");let l=null;if(a.locale&&(l=i.parse(a.locale,1,Ke),!l))return null;let u=null;if(a.currency&&(u=i.parse(a.currency,1,Ke),!u))return null;let p=null;if(a.unit&&(p=i.parse(a.unit,1,Ke),!p))return null;if(u&&p)return i.error(\"NumberFormat options `currency` and `unit` are mutually exclusive\");let g=null;if(a[\"min-fraction-digits\"]&&(g=i.parse(a[\"min-fraction-digits\"],1,Ie),!g))return null;let m=null;return a[\"max-fraction-digits\"]&&(m=i.parse(a[\"max-fraction-digits\"],1,Ie),!m)?null:new Da(o,l,u,p,g,m)}evaluate(e){return new Intl.NumberFormat(this.locale?this.locale.evaluate(e):[],{style:this.currency?\"currency\":this.unit?\"unit\":\"decimal\",currency:this.currency?this.currency.evaluate(e):void 0,unit:this.unit?this.unit.evaluate(e):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(e):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(e):void 0}).format(this.number.evaluate(e))}eachChild(e){e(this.number),this.locale&&e(this.locale),this.currency&&e(this.currency),this.unit&&e(this.unit),this.minFractionDigits&&e(this.minFractionDigits),this.maxFractionDigits&&e(this.maxFractionDigits)}outputDefined(){return!1}}class wn{constructor(e){this.type=Io,this.sections=e}static parse(e,i){if(e.length<2)return i.error(\"Expected at least one argument.\");let o=e[1];if(!Array.isArray(o)&&typeof o==\"object\")return i.error(\"First argument must be an image or text section.\");let a=[],l=!1;for(let u=1;u<=e.length-1;++u){let p=e[u];if(l&&typeof p==\"object\"&&!Array.isArray(p)){l=!1;let g=null;if(p[\"font-scale\"]&&(g=i.parse(p[\"font-scale\"],1,Ie),!g))return null;let m=null;if(p[\"text-font\"]&&(m=i.parse(p[\"text-font\"],1,hi(Ke)),!m))return null;let v=null;if(p[\"text-color\"]&&(v=i.parse(p[\"text-color\"],1,Gi),!v))return null;let _=null;if(p[\"vertical-align\"]){if(typeof p[\"vertical-align\"]==\"string\"&&!Hu.includes(p[\"vertical-align\"]))return i.error(`'vertical-align' must be one of: 'bottom', 'center', 'top' but found '${p[\"vertical-align\"]}' instead.`);if(_=i.parse(p[\"vertical-align\"],1,Ke),!_)return null}let T=a[a.length-1];T.scale=g,T.font=m,T.textColor=v,T.verticalAlign=_}else{let g=i.parse(e[u],1,Je);if(!g)return null;let m=g.type.kind;if(m!==\"string\"&&m!==\"value\"&&m!==\"null\"&&m!==\"resolvedImage\")return i.error(\"Formatted text type must be 'string', 'value', 'image' or 'null'.\");l=!0,a.push({content:g,scale:null,font:null,textColor:null,verticalAlign:null})}}return new wn(a)}evaluate(e){return new Vi(this.sections.map((i=>{let o=i.content.evaluate(e);return qt(o)===$n?new Qs(\"\",o,null,null,null,i.verticalAlign?i.verticalAlign.evaluate(e):null):new Qs(_n(o),null,i.scale?i.scale.evaluate(e):null,i.font?i.font.evaluate(e).join(\",\"):null,i.textColor?i.textColor.evaluate(e):null,i.verticalAlign?i.verticalAlign.evaluate(e):null)})))}eachChild(e){for(let i of this.sections)e(i.content),i.scale&&e(i.scale),i.font&&e(i.font),i.textColor&&e(i.textColor),i.verticalAlign&&e(i.verticalAlign)}outputDefined(){return!1}}class to{constructor(e){this.type=$n,this.input=e}static parse(e,i){if(e.length!==2)return i.error(\"Expected two arguments.\");let o=i.parse(e[1],1,Ke);return o?new to(o):i.error(\"No image name provided.\")}evaluate(e){let i=this.input.evaluate(e),o=$i.fromString(i);return o&&e.availableImages&&(o.available=e.availableImages.indexOf(i)>-1),o}eachChild(e){e(this.input)}outputDefined(){return!1}}class Wi{constructor(e){this.type=Ie,this.input=e}static parse(e,i){if(e.length!==2)return i.error(`Expected 1 argument, but found ${e.length-1} instead.`);let o=i.parse(e[1],1);return o?o.type.kind!==\"array\"&&o.type.kind!==\"string\"&&o.type.kind!==\"value\"?i.error(`Expected argument of type string or array, but found ${bt(o.type)} instead.`):new Wi(o):null}evaluate(e){let i=this.input.evaluate(e);if(typeof i==\"string\")return[...i].length;if(Array.isArray(i))return i.length;throw new Pt(`Expected value to be of type string or array, but found ${bt(qt(i))} instead.`)}eachChild(e){e(this.input)}outputDefined(){return!1}}let mr=8192;function ka(r,e){let i=(180+r[0])/360,o=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+r[1]*Math.PI/360)))/360,a=Math.pow(2,e.z);return[Math.round(i*a*mr),Math.round(o*a*mr)]}function nl(r,e){let i=Math.pow(2,e.z);return[(a=(r[0]/mr+e.x)/i,360*a-180),(o=(r[1]/mr+e.y)/i,360/Math.PI*Math.atan(Math.exp((180-360*o)*Math.PI/180))-90)];var o,a}function Tn(r,e){r[0]=Math.min(r[0],e[0]),r[1]=Math.min(r[1],e[1]),r[2]=Math.max(r[2],e[0]),r[3]=Math.max(r[3],e[1])}function Oo(r,e){return!(r[0]<=e[0]||r[2]>=e[2]||r[1]<=e[1]||r[3]>=e[3])}function Yu(r,e,i){let o=r[0]-e[0],a=r[1]-e[1],l=r[0]-i[0],u=r[1]-i[1];return o*u-l*a==0&&o*l<=0&&a*u<=0}function Ra(r,e,i,o){return(a=[o[0]-i[0],o[1]-i[1]])[0]*(l=[e[0]-r[0],e[1]-r[1]])[1]-a[1]*l[0]!=0&&!(!Ic(r,e,i,o)||!Ic(i,o,r,e));var a,l}function Ku(r,e,i){for(let o of i)for(let a=0;a(a=r)[1]!=(u=p[g+1])[1]>a[1]&&a[0]<(u[0]-l[0])*(a[1]-l[1])/(u[1]-l[1])+l[0]&&(o=!o)}var a,l,u;return o}function Ju(r,e){for(let i of e)if(kr(r,i))return!0;return!1}function ol(r,e){for(let i of r)if(!kr(i,e))return!1;for(let i=0;i0&&p<0||u<0&&p>0}function La(r,e,i){let o=[];for(let a=0;ai[2]){let a=.5*o,l=r[0]-i[0]>a?-o:i[0]-r[0]>a?o:0;l===0&&(l=r[0]-i[2]>a?-o:i[2]-r[0]>a?o:0),r[0]+=l}Tn(e,r)}function Dc(r,e,i,o){let a=Math.pow(2,o.z)*mr,l=[o.x*mr,o.y*mr],u=[];for(let p of r)for(let g of p){let m=[g.x+l[0],g.y+l[1]];zc(m,e,i,a),u.push(m)}return u}function kc(r,e,i,o){let a=Math.pow(2,o.z)*mr,l=[o.x*mr,o.y*mr],u=[];for(let g of r){let m=[];for(let v of g){let _=[v.x+l[0],v.y+l[1]];Tn(e,_),m.push(_)}u.push(m)}if(e[2]-e[0]<=a/2){(p=e)[0]=p[1]=1/0,p[2]=p[3]=-1/0;for(let g of u)for(let m of g)zc(m,e,i,a)}var p;return u}class Sn{constructor(e,i){this.type=rt,this.geojson=e,this.geometries=i}static parse(e,i){if(e.length!==2)return i.error(`'within' expression requires exactly one argument, but found ${e.length-1} instead.`);if(Kr(e[1])){let o=e[1];if(o.type===\"FeatureCollection\"){let a=[];for(let l of o.features){let{type:u,coordinates:p}=l.geometry;u===\"Polygon\"&&a.push(p),u===\"MultiPolygon\"&&a.push(...p)}if(a.length)return new Sn(o,{type:\"MultiPolygon\",coordinates:a})}else if(o.type===\"Feature\"){let a=o.geometry.type;if(a===\"Polygon\"||a===\"MultiPolygon\")return new Sn(o,o.geometry)}else if(o.type===\"Polygon\"||o.type===\"MultiPolygon\")return new Sn(o,o)}return i.error(\"'within' expression requires valid geojson object that contains polygon geometry type.\")}evaluate(e){if(e.geometry()!=null&&e.canonicalID()!=null){if(e.geometryType()===\"Point\")return(function(i,o){let a=[1/0,1/0,-1/0,-1/0],l=[1/0,1/0,-1/0,-1/0],u=i.canonicalID();if(o.type===\"Polygon\"){let p=La(o.coordinates,l,u),g=Dc(i.geometry(),a,l,u);if(!Oo(a,l))return!1;for(let m of g)if(!kr(m,p))return!1}if(o.type===\"MultiPolygon\"){let p=Ac(o.coordinates,l,u),g=Dc(i.geometry(),a,l,u);if(!Oo(a,l))return!1;for(let m of g)if(!Ju(m,p))return!1}return!0})(e,this.geometries);if(e.geometryType()===\"LineString\")return(function(i,o){let a=[1/0,1/0,-1/0,-1/0],l=[1/0,1/0,-1/0,-1/0],u=i.canonicalID();if(o.type===\"Polygon\"){let p=La(o.coordinates,l,u),g=kc(i.geometry(),a,l,u);if(!Oo(a,l))return!1;for(let m of g)if(!ol(m,p))return!1}if(o.type===\"MultiPolygon\"){let p=Ac(o.coordinates,l,u),g=kc(i.geometry(),a,l,u);if(!Oo(a,l))return!1;for(let m of g)if(!Ec(m,p))return!1}return!0})(e,this.geometries)}return!1}eachChild(){}outputDefined(){return!0}}let al=class{constructor(r=[],e=(i,o)=>io?1:0){if(this.data=r,this.length=this.data.length,this.compare=e,this.length>0)for(let i=(this.length>>1)-1;i>=0;i--)this._down(i)}push(r){this.data.push(r),this._up(this.length++)}pop(){if(this.length===0)return;let r=this.data[0],e=this.data.pop();return--this.length>0&&(this.data[0]=e,this._down(0)),r}peek(){return this.data[0]}_up(r){let{data:e,compare:i}=this,o=e[r];for(;r>0;){let a=r-1>>1,l=e[a];if(i(o,l)>=0)break;e[r]=l,r=a}e[r]=o}_down(r){let{data:e,compare:i}=this,o=this.length>>1,a=e[r];for(;r=0)break;e[r]=e[l],r=l}e[r]=a}};function sl(r,e,i=0,o=r.length-1,a=Qu){for(;o>i;){if(o-i>600){let g=o-i+1,m=e-i+1,v=Math.log(g),_=.5*Math.exp(2*v/3),T=.5*Math.sqrt(v*_*(g-_)/g)*(m-g/2<0?-1:1);sl(r,e,Math.max(i,Math.floor(e-m*_/g+T)),Math.min(o,Math.floor(e+(g-m)*_/g+T)),a)}let l=r[e],u=i,p=o;for(io(r,i,e),a(r[o],l)>0&&io(r,i,o);u0;)p--}a(r[i],l)===0?io(r,i,p):(p++,io(r,p,o)),p<=e&&(i=p+1),e<=p&&(o=p-1)}}function io(r,e,i){let o=r[e];r[e]=r[i],r[i]=o}function Qu(r,e){return re?1:0}function Fa(r,e){if(r.length<=1)return[r];let i=[],o,a;for(let l of r){let u=th(l);u!==0&&(l.area=Math.abs(u),a===void 0&&(a=u<0),a===u<0?(o&&i.push(o),o=[l]):o.push(l))}if(o&&i.push(o),e>1)for(let l=0;l1?(m=e[g+1][0],v=e[g+1][1]):b>0&&(m+=_/this.kx*b,v+=T/this.ky*b)),_=this.wrap(i[0]-m)*this.kx,T=(i[1]-v)*this.ky;let P=_*_+T*T;P180;)e-=360;return e}}function Fc(r,e){return e[0]-r[0]}function ro(r){return r[1]-r[0]+1}function wr(r,e){return r[1]>=r[0]&&r[1]r[1])return[null,null];let i=ro(r);if(e){if(i===2)return[r,null];let a=Math.floor(i/2);return[[r[0],r[0]+a],[r[0]+a,r[1]]]}if(i===1)return[r,null];let o=Math.floor(i/2)-1;return[[r[0],r[0]+o],[r[0]+o+1,r[1]]]}function ul(r,e){if(!wr(e,r.length))return[1/0,1/0,-1/0,-1/0];let i=[1/0,1/0,-1/0,-1/0];for(let o=e[0];o<=e[1];++o)Tn(i,r[o]);return i}function Ba(r){let e=[1/0,1/0,-1/0,-1/0];for(let i of r)for(let o of i)Tn(e,o);return e}function hl(r){return r[0]!==-1/0&&r[1]!==-1/0&&r[2]!==1/0&&r[3]!==1/0}function dl(r,e,i){if(!hl(r)||!hl(e))return NaN;let o=0,a=0;return r[2]e[2]&&(o=r[0]-e[2]),r[1]>e[3]&&(a=r[1]-e[3]),r[3]=o)return o;if(Oo(a,l)){if(Oc(r,e))return 0}else if(Oc(e,r))return 0;let u=1/0;for(let p of r)for(let g=0,m=p.length,v=m-1;g0;){let g=u.pop();if(g[0]>=l)continue;let m=g[1],v=e?50:100;if(ro(m)<=v){if(!wr(m,r.length))return NaN;if(e){let _=nh(r,m,i,o);if(isNaN(_)||_===0)return _;l=Math.min(l,_)}else for(let _=m[0];_<=m[1];++_){let T=rh(r[_],i,o);if(l=Math.min(l,T),l===0)return 0}}else{let _=cl(m,e);Vc(u,l,o,r,p,_[0]),Vc(u,l,o,r,p,_[1])}}return l}function ja(r,e,i,o,a,l=1/0){let u=Math.min(l,a.distance(r[0],i[0]));if(u===0)return u;let p=new al([[0,[0,r.length-1],[0,i.length-1]]],Fc);for(;p.length>0;){let g=p.pop();if(g[0]>=u)continue;let m=g[1],v=g[2],_=e?50:100,T=o?50:100;if(ro(m)<=_&&ro(v)<=T){if(!wr(m,r.length)&&wr(v,i.length))return NaN;let b;if(e&&o)b=Bc(r,m,i,v,a),u=Math.min(u,b);else if(e&&!o){let P=r.slice(m[0],m[1]+1);for(let C=v[0];C<=v[1];++C)if(b=Mn(i[C],P,a),u=Math.min(u,b),u===0)return u}else if(!e&&o){let P=i.slice(v[0],v[1]+1);for(let C=m[0];C<=m[1];++C)if(b=Mn(r[C],P,a),u=Math.min(u,b),u===0)return u}else b=ih(r,m,i,v,a),u=Math.min(u,b)}else{let b=cl(m,e),P=cl(v,o);Oa(p,u,a,r,i,b[0],P[0]),Oa(p,u,a,r,i,b[0],P[1]),Oa(p,u,a,r,i,b[1],P[0]),Oa(p,u,a,r,i,b[1],P[1])}}return u}function fl(r){return r.type===\"MultiPolygon\"?r.coordinates.map((e=>({type:\"Polygon\",coordinates:e}))):r.type===\"MultiLineString\"?r.coordinates.map((e=>({type:\"LineString\",coordinates:e}))):r.type===\"MultiPoint\"?r.coordinates.map((e=>({type:\"Point\",coordinates:e}))):[r]}class Pn{constructor(e,i){this.type=Ie,this.geojson=e,this.geometries=i}static parse(e,i){if(e.length!==2)return i.error(`'distance' expression requires exactly one argument, but found ${e.length-1} instead.`);if(Kr(e[1])){let o=e[1];if(o.type===\"FeatureCollection\")return new Pn(o,o.features.map((a=>fl(a.geometry))).flat());if(o.type===\"Feature\")return new Pn(o,fl(o.geometry));if(\"type\"in o&&\"coordinates\"in o)return new Pn(o,fl(o))}return i.error(\"'distance' expression requires valid geojson object that contains polygon geometry type.\")}evaluate(e){if(e.geometry()!=null&&e.canonicalID()!=null){if(e.geometryType()===\"Point\")return(function(i,o){let a=i.geometry(),l=a.flat().map((g=>nl([g.x,g.y],i.canonical)));if(a.length===0)return NaN;let u=new ll(l[0][1]),p=1/0;for(let g of o){switch(g.type){case\"Point\":p=Math.min(p,ja(l,!1,[g.coordinates],!1,u,p));break;case\"LineString\":p=Math.min(p,ja(l,!1,g.coordinates,!0,u,p));break;case\"Polygon\":p=Math.min(p,Va(l,!1,g.coordinates,u,p))}if(p===0)return p}return p})(e,this.geometries);if(e.geometryType()===\"LineString\")return(function(i,o){let a=i.geometry(),l=a.flat().map((g=>nl([g.x,g.y],i.canonical)));if(a.length===0)return NaN;let u=new ll(l[0][1]),p=1/0;for(let g of o){switch(g.type){case\"Point\":p=Math.min(p,ja(l,!0,[g.coordinates],!1,u,p));break;case\"LineString\":p=Math.min(p,ja(l,!0,g.coordinates,!0,u,p));break;case\"Polygon\":p=Math.min(p,Va(l,!0,g.coordinates,u,p))}if(p===0)return p}return p})(e,this.geometries);if(e.geometryType()===\"Polygon\")return(function(i,o){let a=i.geometry();if(a.length===0||a[0].length===0)return NaN;let l=Fa(a,0).map((g=>g.map((m=>m.map((v=>nl([v.x,v.y],i.canonical))))))),u=new ll(l[0][0][0][1]),p=1/0;for(let g of o)for(let m of l){switch(g.type){case\"Point\":p=Math.min(p,Va([g.coordinates],!1,m,u,p));break;case\"LineString\":p=Math.min(p,Va(g.coordinates,!0,m,u,p));break;case\"Polygon\":p=Math.min(p,gt(m,g.coordinates,u,p))}if(p===0)return p}return p})(e,this.geometries)}return NaN}eachChild(){}outputDefined(){return!0}}class jo{constructor(e){this.type=Je,this.key=e}static parse(e,i){if(e.length!==2)return i.error(`Expected 1 argument, but found ${e.length-1} instead.`);let o=e[1];return o==null?i.error(\"Global state property must be defined.\"):typeof o!=\"string\"?i.error(`Global state property must be string, but found ${typeof e[1]} instead.`):new jo(o)}evaluate(e){var i;let o=(i=e.globals)===null||i===void 0?void 0:i.globalState;return o&&Object.keys(o).length!==0?Ro(o,this.key):null}eachChild(){}outputDefined(){return!1}}let no={\"==\":il,\"!=\":Cc,\">\":eo,\"<\":Xu,\">=\":rl,\"<=\":Aa,array:ji,at:lt,boolean:ji,case:fr,coalesce:Fo,collator:za,format:wn,image:to,in:Qe,\"index-of\":Kn,interpolate:Zt,\"interpolate-hcl\":Zt,\"interpolate-lab\":Zt,length:Wi,let:Ct,literal:br,match:ct,number:ji,\"number-format\":Da,object:ji,slice:Jn,step:Qn,string:ji,\"to-boolean\":Dr,\"to-color\":Dr,\"to-number\":Dr,\"to-string\":Dr,var:Yn,within:Sn,distance:Pn,\"global-state\":jo};class ir{constructor(e,i,o,a){this.name=e,this.type=i,this._evaluate=o,this.args=a}evaluate(e){return this._evaluate(e,this.args)}eachChild(e){this.args.forEach(e)}outputDefined(){return!1}static parse(e,i){let o=e[0],a=ir.definitions[o];if(!a)return i.error(`Unknown expression \"${o}\". If you wanted a literal array, use [\"literal\", [...]].`,0);let l=Array.isArray(a)?a[0]:a.type,u=Array.isArray(a)?[[a[1],a[2]]]:a.overloads,p=u.filter((([m])=>!Array.isArray(m)||m.length===e.length-1)),g=null;for(let[m,v]of p){g=new vn(i.registry,Na,i.path,null,i.scope);let _=[],T=!1;for(let b=1;b{return T=_,Array.isArray(T)?`(${T.map(bt).join(\", \")})`:`(${bt(T.type)}...)`;var T})).join(\" | \"),v=[];for(let _=1;_{i=e?i&&Na(o):i&&o instanceof br})),!!i&&Ua(r)&&qa(r,[\"zoom\",\"heatmap-density\",\"elevation\",\"line-progress\",\"accumulated\",\"is-supported-script\"])}function Ua(r){if(r instanceof ir&&(r.name===\"get\"&&r.args.length===1||r.name===\"feature-state\"||r.name===\"has\"&&r.args.length===1||r.name===\"properties\"||r.name===\"geometry-type\"||r.name===\"id\"||/^filter-/.test(r.name))||r instanceof Sn||r instanceof Pn)return!1;let e=!0;return r.eachChild((i=>{e&&!Ua(i)&&(e=!1)})),e}function No(r){if(r instanceof ir&&r.name===\"feature-state\")return!1;let e=!0;return r.eachChild((i=>{e&&!No(i)&&(e=!1)})),e}function qa(r,e){if(r instanceof ir&&e.indexOf(r.name)>=0)return!1;let i=!0;return r.eachChild((o=>{i&&!qa(o,e)&&(i=!1)})),i}function Uc(r){return{result:\"success\",value:r}}function oo(r){return{result:\"error\",value:r}}function ao(r){return r[\"property-type\"]===\"data-driven\"||r[\"property-type\"]===\"cross-faded-data-driven\"}function qc(r){return!!r.expression&&r.expression.parameters.indexOf(\"zoom\")>-1}function gl(r){return!!r.expression&&r.expression.interpolated}function nt(r){return r instanceof Number?\"number\":r instanceof String?\"string\":r instanceof Boolean?\"boolean\":Array.isArray(r)?\"array\":r===null?\"null\":typeof r}function Ga(r){return typeof r==\"object\"&&r!==null&&!Array.isArray(r)&&qt(r)===zr}function oh(r){return r}function Gc(r,e){let i=r.stops&&typeof r.stops[0][0]==\"object\",o=i||!(i||r.property!==void 0),a=r.type||(gl(e)?\"exponential\":\"interval\"),l=(function(v){switch(v.type){case\"color\":return tt.parse;case\"padding\":return mi.parse;case\"numberArray\":return Rt.parse;case\"colorArray\":return We.parse;default:return null}})(e);if(l&&((r=fn({},r)).stops&&(r.stops=r.stops.map((v=>[v[0],l(v[1])]))),r.default=l(r.default?r.default:e.default)),r.colorSpace&&(u=r.colorSpace)!==\"rgb\"&&u!==\"hcl\"&&u!==\"lab\")throw new Error(`Unknown color space: \"${r.colorSpace}\"`);var u;let p=(function(v){switch(v){case\"exponential\":return $c;case\"interval\":return sh;case\"categorical\":return ah;case\"identity\":return lh;default:throw new Error(`Unknown function type \"${v}\"`)}})(a),g,m;if(a===\"categorical\"){g=Object.create(null);for(let v of r.stops)g[v[0]]=v[1];m=typeof r.stops[0][0]}if(i){let v={},_=[];for(let P=0;PP[0])),evaluate:({zoom:P},C)=>$c({stops:T,base:r.base},e,P).evaluate(P,C)}}if(o){let v=a===\"exponential\"?{name:\"exponential\",base:r.base!==void 0?r.base:1}:null;return{kind:\"camera\",interpolationType:v,interpolationFactor:Zt.interpolationFactor.bind(void 0,v),zoomStops:r.stops.map((_=>_[0])),evaluate:({zoom:_})=>p(r,e,_,g,m)}}return{kind:\"source\",evaluate(v,_){let T=_&&_.properties?_.properties[r.property]:void 0;return T===void 0?Uo(r.default,e.default):p(r,e,T,g,m)}}}function Uo(r,e,i){return r!==void 0?r:e!==void 0?e:i!==void 0?i:void 0}function ah(r,e,i,o,a){return Uo(typeof i===a?o[i]:void 0,r.default,e.default)}function sh(r,e,i){if(nt(i)!==\"number\")return Uo(r.default,e.default);let o=r.stops.length;if(o===1||i<=r.stops[0][0])return r.stops[0][1];if(i>=r.stops[o-1][0])return r.stops[o-1][1];let a=xn(r.stops.map((l=>l[0])),i);return r.stops[a][1]}function $c(r,e,i){let o=r.base!==void 0?r.base:1;if(nt(i)!==\"number\")return Uo(r.default,e.default);let a=r.stops.length;if(a===1||i<=r.stops[0][0])return r.stops[0][1];if(i>=r.stops[a-1][0])return r.stops[a-1][1];let l=xn(r.stops.map((v=>v[0])),i),u=(function(v,_,T,b){let P=b-T,C=v-T;return P===0?0:_===1?C/P:(Math.pow(_,C)-1)/(Math.pow(_,P)-1)})(i,o,r.stops[l][0],r.stops[l+1][0]),p=r.stops[l][1],g=r.stops[l+1][1],m=Zi[e.type]||oh;return typeof p.evaluate==\"function\"?{evaluate(...v){let _=p.evaluate.apply(void 0,v),T=g.evaluate.apply(void 0,v);if(_!==void 0&&T!==void 0)return m(_,T,u,r.colorSpace)}}:m(p,g,u,r.colorSpace)}function lh(r,e,i){switch(e.type){case\"color\":i=tt.parse(i);break;case\"formatted\":i=Vi.fromString(i.toString());break;case\"resolvedImage\":i=$i.fromString(i.toString());break;case\"padding\":i=mi.parse(i);break;case\"colorArray\":i=We.parse(i);break;case\"numberArray\":i=Rt.parse(i);break;default:nt(i)===e.type||e.type===\"enum\"&&e.values[i]||(i=void 0)}return Uo(i,r.default,e.default)}ir.register(no,{error:[{kind:\"error\"},[Ke],(r,[e])=>{throw new Pt(e.evaluate(r))}],typeof:[Ke,[Je],(r,[e])=>bt(qt(e.evaluate(r)))],\"to-rgba\":[hi(Ie,4),[Gi],(r,[e])=>{let[i,o,a,l]=e.evaluate(r).rgb;return[255*i,255*o,255*a,l]}],rgb:[Gi,[Ie,Ie,Ie],jc],rgba:[Gi,[Ie,Ie,Ie,Ie],jc],has:{type:rt,overloads:[[[Ke],(r,[e])=>Nc(e.evaluate(r),r.properties())],[[Ke,zr],(r,[e,i])=>Nc(e.evaluate(r),i.evaluate(r))]]},get:{type:Je,overloads:[[[Ke],(r,[e])=>ml(e.evaluate(r),r.properties())],[[Ke,zr],(r,[e,i])=>ml(e.evaluate(r),i.evaluate(r))]]},\"feature-state\":[Je,[Ke],(r,[e])=>ml(e.evaluate(r),r.featureState||{})],properties:[zr,[],r=>r.properties()],\"geometry-type\":[Ke,[],r=>r.geometryType()],id:[Je,[],r=>r.id()],zoom:[Ie,[],r=>r.globals.zoom],\"heatmap-density\":[Ie,[],r=>r.globals.heatmapDensity||0],elevation:[Ie,[],r=>r.globals.elevation||0],\"line-progress\":[Ie,[],r=>r.globals.lineProgress||0],accumulated:[Je,[],r=>r.globals.accumulated===void 0?null:r.globals.accumulated],\"+\":[Ie,Cn(Ie),(r,e)=>{let i=0;for(let o of e)i+=o.evaluate(r);return i}],\"*\":[Ie,Cn(Ie),(r,e)=>{let i=1;for(let o of e)i*=o.evaluate(r);return i}],\"-\":{type:Ie,overloads:[[[Ie,Ie],(r,[e,i])=>e.evaluate(r)-i.evaluate(r)],[[Ie],(r,[e])=>-e.evaluate(r)]]},\"/\":[Ie,[Ie,Ie],(r,[e,i])=>e.evaluate(r)/i.evaluate(r)],\"%\":[Ie,[Ie,Ie],(r,[e,i])=>e.evaluate(r)%i.evaluate(r)],ln2:[Ie,[],()=>Math.LN2],pi:[Ie,[],()=>Math.PI],e:[Ie,[],()=>Math.E],\"^\":[Ie,[Ie,Ie],(r,[e,i])=>Math.pow(e.evaluate(r),i.evaluate(r))],sqrt:[Ie,[Ie],(r,[e])=>Math.sqrt(e.evaluate(r))],log10:[Ie,[Ie],(r,[e])=>Math.log(e.evaluate(r))/Math.LN10],ln:[Ie,[Ie],(r,[e])=>Math.log(e.evaluate(r))],log2:[Ie,[Ie],(r,[e])=>Math.log(e.evaluate(r))/Math.LN2],sin:[Ie,[Ie],(r,[e])=>Math.sin(e.evaluate(r))],cos:[Ie,[Ie],(r,[e])=>Math.cos(e.evaluate(r))],tan:[Ie,[Ie],(r,[e])=>Math.tan(e.evaluate(r))],asin:[Ie,[Ie],(r,[e])=>Math.asin(e.evaluate(r))],acos:[Ie,[Ie],(r,[e])=>Math.acos(e.evaluate(r))],atan:[Ie,[Ie],(r,[e])=>Math.atan(e.evaluate(r))],min:[Ie,Cn(Ie),(r,e)=>Math.min(...e.map((i=>i.evaluate(r))))],max:[Ie,Cn(Ie),(r,e)=>Math.max(...e.map((i=>i.evaluate(r))))],abs:[Ie,[Ie],(r,[e])=>Math.abs(e.evaluate(r))],round:[Ie,[Ie],(r,[e])=>{let i=e.evaluate(r);return i<0?-Math.round(-i):Math.round(i)}],floor:[Ie,[Ie],(r,[e])=>Math.floor(e.evaluate(r))],ceil:[Ie,[Ie],(r,[e])=>Math.ceil(e.evaluate(r))],\"filter-==\":[rt,[Ke,Je],(r,[e,i])=>r.properties()[e.value]===i.value],\"filter-id-==\":[rt,[Je],(r,[e])=>r.id()===e.value],\"filter-type-==\":[rt,[Ke],(r,[e])=>r.geometryType()===e.value],\"filter-<\":[rt,[Ke,Je],(r,[e,i])=>{let o=r.properties()[e.value],a=i.value;return typeof o==typeof a&&o{let i=r.id(),o=e.value;return typeof i==typeof o&&i\":[rt,[Ke,Je],(r,[e,i])=>{let o=r.properties()[e.value],a=i.value;return typeof o==typeof a&&o>a}],\"filter-id->\":[rt,[Je],(r,[e])=>{let i=r.id(),o=e.value;return typeof i==typeof o&&i>o}],\"filter-<=\":[rt,[Ke,Je],(r,[e,i])=>{let o=r.properties()[e.value],a=i.value;return typeof o==typeof a&&o<=a}],\"filter-id-<=\":[rt,[Je],(r,[e])=>{let i=r.id(),o=e.value;return typeof i==typeof o&&i<=o}],\"filter->=\":[rt,[Ke,Je],(r,[e,i])=>{let o=r.properties()[e.value],a=i.value;return typeof o==typeof a&&o>=a}],\"filter-id->=\":[rt,[Je],(r,[e])=>{let i=r.id(),o=e.value;return typeof i==typeof o&&i>=o}],\"filter-has\":[rt,[Je],(r,[e])=>e.value in r.properties()],\"filter-has-id\":[rt,[],r=>r.id()!==null&&r.id()!==void 0],\"filter-type-in\":[rt,[hi(Ke)],(r,[e])=>e.value.indexOf(r.geometryType())>=0],\"filter-id-in\":[rt,[hi(Je)],(r,[e])=>e.value.indexOf(r.id())>=0],\"filter-in-small\":[rt,[Ke,hi(Je)],(r,[e,i])=>i.value.indexOf(r.properties()[e.value])>=0],\"filter-in-large\":[rt,[Ke,hi(Je)],(r,[e,i])=>(function(o,a,l,u){for(;l<=u;){let p=l+u>>1;if(a[p]===o)return!0;a[p]>o?u=p-1:l=p+1}return!1})(r.properties()[e.value],i.value,0,i.value.length-1)],all:{type:rt,overloads:[[[rt,rt],(r,[e,i])=>e.evaluate(r)&&i.evaluate(r)],[Cn(rt),(r,e)=>{for(let i of e)if(!i.evaluate(r))return!1;return!0}]]},any:{type:rt,overloads:[[[rt,rt],(r,[e,i])=>e.evaluate(r)||i.evaluate(r)],[Cn(rt),(r,e)=>{for(let i of e)if(i.evaluate(r))return!0;return!1}]]},\"!\":[rt,[rt],(r,[e])=>!e.evaluate(r)],\"is-supported-script\":[rt,[Ke],(r,[e])=>{let i=r.globals&&r.globals.isSupportedScript;return!i||i(e.evaluate(r))}],upcase:[Ke,[Ke],(r,[e])=>e.evaluate(r).toUpperCase()],downcase:[Ke,[Ke],(r,[e])=>e.evaluate(r).toLowerCase()],concat:[Ke,Cn(Je),(r,e)=>e.map((i=>_n(i.evaluate(r)))).join(\"\")],split:[hi(Ke),[Ke,Ke],(r,[e,i])=>e.evaluate(r).split(i.evaluate(r))],join:[Ke,[hi(Ke),Ke],(r,[e,i])=>e.evaluate(r).join(i.evaluate(r))],\"resolved-locale\":[Ke,[Eo],(r,[e])=>e.evaluate(r).resolvedLocale()]});class qo{constructor(e,i,o){this.expression=e,this._warningHistory={},this._evaluator=new el,this._defaultValue=i?(function(a){if(a.type===\"color\"&&Ga(a.default))return new tt(0,0,0,0);switch(a.type){case\"color\":return tt.parse(a.default)||null;case\"padding\":return mi.parse(a.default)||null;case\"numberArray\":return Rt.parse(a.default)||null;case\"colorArray\":return We.parse(a.default)||null;case\"variableAnchorOffsetCollection\":return Ci.parse(a.default)||null;case\"projectionDefinition\":return Ei.parse(a.default)||null;default:return a.default===void 0?null:a.default}})(i):null,this._enumValues=i&&i.type===\"enum\"?i.values:null,this._globalState=o}evaluateWithoutErrorHandling(e,i,o,a,l,u){return this._globalState&&(e=lo(e,this._globalState)),this._evaluator.globals=e,this._evaluator.feature=i,this._evaluator.featureState=o,this._evaluator.canonical=a,this._evaluator.availableImages=l||null,this._evaluator.formattedSection=u,this.expression.evaluate(this._evaluator)}evaluate(e,i,o,a,l,u){this._globalState&&(e=lo(e,this._globalState)),this._evaluator.globals=e,this._evaluator.feature=i||null,this._evaluator.featureState=o||null,this._evaluator.canonical=a,this._evaluator.availableImages=l||null,this._evaluator.formattedSection=u||null;try{let p=this.expression.evaluate(this._evaluator);if(p==null||typeof p==\"number\"&&p!=p)return this._defaultValue;if(this._enumValues&&!(p in this._enumValues))throw new Pt(`Expected value to be one of ${Object.keys(this._enumValues).map((g=>JSON.stringify(g))).join(\", \")}, but found ${JSON.stringify(p)} instead.`);return p}catch(p){return this._warningHistory[p.message]||(this._warningHistory[p.message]=!0,typeof console<\"u\"&&console.warn(p.message)),this._defaultValue}}}function $a(r){return Array.isArray(r)&&r.length>0&&typeof r[0]==\"string\"&&r[0]in no}function Go(r,e,i){let o=new vn(no,Na,[],e?(function(l){let u={color:Gi,string:Ke,number:Ie,enum:Ke,boolean:rt,formatted:Io,padding:Ta,numberArray:Ao,colorArray:Gn,projectionDefinition:wa,resolvedImage:$n,variableAnchorOffsetCollection:zo};return l.type===\"array\"?hi(u[l.value]||Je,l.length):u[l.type]})(e):void 0),a=o.parse(r,void 0,void 0,void 0,e&&e.type===\"string\"?{typeAnnotation:\"coerce\"}:void 0);return a?Uc(new qo(a,e,i)):oo(o.errors)}class Za{constructor(e,i,o){this.kind=e,this._styleExpression=i,this.isStateDependent=e!==\"constant\"&&!No(i.expression),this.globalStateRefs=so(i.expression),this._globalState=o}evaluateWithoutErrorHandling(e,i,o,a,l,u){return this._globalState&&(e=lo(e,this._globalState)),this._styleExpression.evaluateWithoutErrorHandling(e,i,o,a,l,u)}evaluate(e,i,o,a,l,u){return this._globalState&&(e=lo(e,this._globalState)),this._styleExpression.evaluate(e,i,o,a,l,u)}}class Wa{constructor(e,i,o,a,l){this.kind=e,this.zoomStops=o,this._styleExpression=i,this.isStateDependent=e!==\"camera\"&&!No(i.expression),this.globalStateRefs=so(i.expression),this.interpolationType=a,this._globalState=l}evaluateWithoutErrorHandling(e,i,o,a,l,u){return this._globalState&&(e=lo(e,this._globalState)),this._styleExpression.evaluateWithoutErrorHandling(e,i,o,a,l,u)}evaluate(e,i,o,a,l,u){return this._globalState&&(e=lo(e,this._globalState)),this._styleExpression.evaluate(e,i,o,a,l,u)}interpolationFactor(e,i,o){return this.interpolationType?Zt.interpolationFactor(this.interpolationType,e,i,o):0}}function Zc(r,e,i){let o=Go(r,e,i);if(o.result===\"error\")return o;let a=o.value.expression,l=Ua(a);if(!l&&!ao(e))return oo([new ui(\"\",\"data expressions not supported\")]);let u=qa(a,[\"zoom\"]);if(!u&&!qc(e))return oo([new ui(\"\",\"zoom expressions not supported\")]);let p=En(a);return p||u?p instanceof ui?oo([p]):p instanceof Zt&&!gl(e)?oo([new ui(\"\",'\"interpolate\" expressions cannot be used with this property')]):Uc(p?new Wa(l?\"camera\":\"composite\",o.value,p.labels,p instanceof Zt?p.interpolation:void 0,i):new Za(l?\"constant\":\"source\",o.value,i)):oo([new ui(\"\",'\"zoom\" expression may only be used as input to a top-level \"step\" or \"interpolate\" expression.')])}class Ha{constructor(e,i){this._parameters=e,this._specification=i,fn(this,Gc(this._parameters,this._specification))}static deserialize(e){return new Ha(e._parameters,e._specification)}static serialize(e){return{_parameters:e._parameters,_specification:e._specification}}}function En(r){let e=null;if(r instanceof Ct)e=En(r.result);else if(r instanceof Fo){for(let i of r.args)if(e=En(i),e)break}else(r instanceof Qn||r instanceof Zt)&&r.input instanceof ir&&r.input.name===\"zoom\"&&(e=r);return e instanceof ui||r.eachChild((i=>{let o=En(i);o instanceof ui?e=o:!e&&o?e=new ui(\"\",'\"zoom\" expression may only be used as input to a top-level \"step\" or \"interpolate\" expression.'):e&&o&&e!==o&&(e=new ui(\"\",'Only one zoom-based \"step\" or \"interpolate\" subexpression may be used in an expression.'))})),e}function so(r,e=new Set){return r instanceof jo&&e.add(r.key),r.eachChild((i=>{so(i,e)})),e}function lo(r,e){let{zoom:i,heatmapDensity:o,elevation:a,lineProgress:l,isSupportedScript:u,accumulated:p}=r??{};return{zoom:i,heatmapDensity:o,elevation:a,lineProgress:l,isSupportedScript:u,accumulated:p,globalState:e}}function _l(r){if(r===!0||r===!1)return!0;if(!Array.isArray(r)||r.length===0)return!1;switch(r[0]){case\"has\":return r.length>=2&&r[1]!==\"$id\"&&r[1]!==\"$type\";case\"in\":return r.length>=3&&(typeof r[1]!=\"string\"||Array.isArray(r[2]));case\"!in\":case\"!has\":case\"none\":return!1;case\"==\":case\"!=\":case\">\":case\">=\":case\"<\":case\"<=\":return r.length!==3||Array.isArray(r[1])||Array.isArray(r[2]);case\"any\":case\"all\":for(let e of r.slice(1))if(!_l(e)&&typeof e!=\"boolean\")return!1;return!0;default:return!0}}let ch={type:\"boolean\",default:!1,transition:!1,\"property-type\":\"data-driven\",expression:{interpolated:!1,parameters:[\"zoom\",\"feature\"]}};function $o(r,e){if(r==null)return{filter:()=>!0,needGeometry:!1,getGlobalStateRefs:()=>new Set};_l(r)||(r=Zo(r));let i=Go(r,ch,e);if(i.result===\"error\")throw new Error(i.value.map((o=>`${o.key}: ${o.message}`)).join(\", \"));return{filter:(o,a,l)=>i.value.evaluate(o,a,{},l),needGeometry:yl(r),getGlobalStateRefs:()=>so(i.value.expression)}}function uh(r,e){return re?1:0}function yl(r){if(!Array.isArray(r))return!1;if(r[0]===\"within\"||r[0]===\"distance\")return!0;for(let e=1;e\"||e===\"<=\"||e===\">=\"?vl(r[1],r[2],e):e===\"any\"?(i=r.slice(1),[\"any\"].concat(i.map(Zo))):e===\"all\"?[\"all\"].concat(r.slice(1).map(Zo)):e===\"none\"?[\"all\"].concat(r.slice(1).map(Zo).map(Wo)):e===\"in\"?Wc(r[1],r.slice(2)):e===\"!in\"?Wo(Wc(r[1],r.slice(2))):e===\"has\"?xl(r[1]):e!==\"!has\"||Wo(xl(r[1]));var i}function vl(r,e,i){switch(r){case\"$type\":return[`filter-type-${i}`,e];case\"$id\":return[`filter-id-${i}`,e];default:return[`filter-${i}`,r,e]}}function Wc(r,e){if(e.length===0)return!1;switch(r){case\"$type\":return[\"filter-type-in\",[\"literal\",e]];case\"$id\":return[\"filter-id-in\",[\"literal\",e]];default:return e.length>200&&!e.some((i=>typeof i!=typeof e[0]))?[\"filter-in-large\",r,[\"literal\",e.sort(uh)]]:[\"filter-in-small\",r,[\"literal\",e]]}}function xl(r){switch(r){case\"$type\":return!0;case\"$id\":return[\"filter-has-id\"];default:return[\"filter-has\",r]}}function Wo(r){return[\"!\",r]}function Xa(r){let e=typeof r;if(e===\"number\"||e===\"boolean\"||e===\"string\"||r==null)return JSON.stringify(r);if(Array.isArray(r)){let a=\"[\";for(let l of r)a+=`${Xa(l)},`;return`${a}]`}let i=Object.keys(r).sort(),o=\"{\";for(let a=0;ao.maximum?[new Se(e,i,`${i} is greater than the maximum value ${o.maximum}`)]:[]}function Ka(r){let e=r.valueSpec,i=Gt(r.value.type),o,a,l,u={},p=i!==\"categorical\"&&r.value.property===void 0,g=!p,m=nt(r.value.stops)===\"array\"&&nt(r.value.stops[0])===\"array\"&&nt(r.value.stops[0][0])===\"object\",v=Ni({key:r.key,value:r.value,valueSpec:r.styleSpec.function,validateSpec:r.validateSpec,style:r.style,styleSpec:r.styleSpec,objectElementValidators:{stops:function(b){if(i===\"identity\")return[new Se(b.key,b.value,'identity function may not have a \"stops\" property')];let P=[],C=b.value;return P=P.concat(Ya({key:b.key,value:C,valueSpec:b.valueSpec,validateSpec:b.validateSpec,style:b.style,styleSpec:b.styleSpec,arrayElementValidator:_})),nt(C)===\"array\"&&C.length===0&&P.push(new Se(b.key,C,\"array must have at least one stop\")),P},default:function(b){return b.validateSpec({key:b.key,value:b.value,valueSpec:e,validateSpec:b.validateSpec,style:b.style,styleSpec:b.styleSpec})}}});return i===\"identity\"&&p&&v.push(new Se(r.key,r.value,'missing required property \"property\"')),i===\"identity\"||r.value.stops||v.push(new Se(r.key,r.value,'missing required property \"stops\"')),i===\"exponential\"&&r.valueSpec.expression&&!gl(r.valueSpec)&&v.push(new Se(r.key,r.value,\"exponential functions not supported\")),r.styleSpec.$version>=8&&(g&&!ao(r.valueSpec)?v.push(new Se(r.key,r.value,\"property functions not supported\")):p&&!qc(r.valueSpec)&&v.push(new Se(r.key,r.value,\"zoom functions not supported\"))),i!==\"categorical\"&&!m||r.value.property!==void 0||v.push(new Se(r.key,r.value,'\"property\" property is required')),v;function _(b){let P=[],C=b.value,A=b.key;if(nt(C)!==\"array\")return[new Se(A,C,`array expected, ${nt(C)} found`)];if(C.length!==2)return[new Se(A,C,`array length 2 expected, length ${C.length} found`)];if(m){if(nt(C[0])!==\"object\")return[new Se(A,C,`object expected, ${nt(C[0])} found`)];if(C[0].zoom===void 0)return[new Se(A,C,\"object stop key must have zoom\")];if(C[0].value===void 0)return[new Se(A,C,\"object stop key must have value\")];if(l&&l>Gt(C[0].zoom))return[new Se(A,C[0].zoom,\"stop zoom values must appear in ascending order\")];Gt(C[0].zoom)!==l&&(l=Gt(C[0].zoom),a=void 0,u={}),P=P.concat(Ni({key:`${A}[0]`,value:C[0],valueSpec:{zoom:{}},validateSpec:b.validateSpec,style:b.style,styleSpec:b.styleSpec,objectElementValidators:{zoom:co,value:T}}))}else P=P.concat(T({key:`${A}[0]`,value:C[0],validateSpec:b.validateSpec,style:b.style,styleSpec:b.styleSpec},C));return $a(In(C[1]))?P.concat([new Se(`${A}[1]`,C[1],\"expressions are not allowed in function stops.\")]):P.concat(b.validateSpec({key:`${A}[1]`,value:C[1],valueSpec:e,validateSpec:b.validateSpec,style:b.style,styleSpec:b.styleSpec}))}function T(b,P){let C=nt(b.value),A=Gt(b.value),z=b.value!==null?b.value:P;if(o){if(C!==o)return[new Se(b.key,z,`${C} stop domain type must match previous stop domain type ${o}`)]}else o=C;if(C!==\"number\"&&C!==\"string\"&&C!==\"boolean\")return[new Se(b.key,z,\"stop domain value must be a number, string, or boolean\")];if(C!==\"number\"&&i!==\"categorical\"){let L=`number expected, ${C} found`;return ao(e)&&i===void 0&&(L+='\\nIf you intended to use a categorical function, specify `\"type\": \"categorical\"`.'),[new Se(b.key,z,L)]}return i!==\"categorical\"||C!==\"number\"||isFinite(A)&&Math.floor(A)===A?i!==\"categorical\"&&C===\"number\"&&a!==void 0&&Anew Se(`${r.key}${o.key}`,r.value,o.message)));let i=e.value.expression||e.value._styleExpression.expression;if(r.expressionContext===\"property\"&&r.propertyKey===\"text-font\"&&!i.outputDefined())return[new Se(r.key,r.value,`Invalid data expression for \"${r.propertyKey}\". Output values must be contained as literals within the expression.`)];if(r.expressionContext===\"property\"&&r.propertyType===\"layout\"&&!No(i))return[new Se(r.key,r.value,'\"feature-state\" data expressions are not supported with layout properties.')];if(r.expressionContext===\"filter\"&&!No(i))return[new Se(r.key,r.value,'\"feature-state\" data expressions are not supported with filters.')];if(r.expressionContext&&r.expressionContext.indexOf(\"cluster\")===0){if(!qa(i,[\"zoom\",\"feature-state\"]))return[new Se(r.key,r.value,'\"zoom\" and \"feature-state\" expressions are not supported with cluster properties.')];if(r.expressionContext===\"cluster-initial\"&&!Ua(i))return[new Se(r.key,r.value,\"Feature data expressions are not supported with initial expression part of cluster properties.\")]}return[]}function Ho(r){let e=r.key,i=r.value,o=nt(i);return o!==\"string\"?[new Se(e,i,`color expected, ${o} found`)]:tt.parse(String(i))?[]:[new Se(e,i,`color expected, \"${i}\" found`)]}function An(r){let e=r.key,i=r.value,o=r.valueSpec,a=[];return Array.isArray(o.values)?o.values.indexOf(Gt(i))===-1&&a.push(new Se(e,i,`expected one of [${o.values.join(\", \")}], ${JSON.stringify(i)} found`)):Object.keys(o.values).indexOf(Gt(i))===-1&&a.push(new Se(e,i,`expected one of [${Object.keys(o.values).join(\", \")}], ${JSON.stringify(i)} found`)),a}function uo(r){return _l(In(r.value))?Jr(fn({},r,{expressionContext:\"filter\",valueSpec:{value:\"boolean\"}})):Xc(r)}function Xc(r){let e=r.value,i=r.key;if(nt(e)!==\"array\")return[new Se(i,e,`array expected, ${nt(e)} found`)];let o=r.styleSpec,a,l=[];if(e.length<1)return[new Se(i,e,\"filter array must have at least 1 element\")];switch(l=l.concat(An({key:`${i}[0]`,value:e[0],valueSpec:o.filter_operator,style:r.style,styleSpec:r.styleSpec})),Gt(e[0])){case\"<\":case\"<=\":case\">\":case\">=\":e.length>=2&&Gt(e[1])===\"$type\"&&l.push(new Se(i,e,`\"$type\" cannot be use with operator \"${e[0]}\"`));case\"==\":case\"!=\":e.length!==3&&l.push(new Se(i,e,`filter array for operator \"${e[0]}\" must have 3 elements`));case\"in\":case\"!in\":e.length>=2&&(a=nt(e[1]),a!==\"string\"&&l.push(new Se(`${i}[1]`,e[1],`string expected, ${a} found`)));for(let u=2;u{_ in a&&o.push(new Se(l,a[_],`\"${_}\" is prohibited for ref layers`))})),u.layers.forEach((_=>{Gt(_.id)===m&&(v=_)})),v?v.ref?o.push(new Se(l,a.ref,\"ref cannot reference another ref layer\")):g=Gt(v.type):o.push(new Se(l,a.ref,`ref layer \"${m}\" not found`))}else if(g!==\"background\")if(a.source){let v=u.sources&&u.sources[a.source],_=v&&Gt(v.type);v?_===\"vector\"&&g===\"raster\"?o.push(new Se(l,a.source,`layer \"${a.id}\" requires a raster source`)):_!==\"raster-dem\"&&g===\"hillshade\"||_!==\"raster-dem\"&&g===\"color-relief\"?o.push(new Se(l,a.source,`layer \"${a.id}\" requires a raster-dem source`)):_===\"raster\"&&g!==\"raster\"?o.push(new Se(l,a.source,`layer \"${a.id}\" requires a vector source`)):_!==\"vector\"||a[\"source-layer\"]?_===\"raster-dem\"&&g!==\"hillshade\"&&g!==\"color-relief\"?o.push(new Se(l,a.source,\"raster-dem source can only be used with layer type 'hillshade' or 'color-relief'.\")):g!==\"line\"||!a.paint||!a.paint[\"line-gradient\"]||_===\"geojson\"&&v.lineMetrics||o.push(new Se(l,a,`layer \"${a.id}\" specifies a line-gradient, which requires a GeoJSON source with \\`lineMetrics\\` enabled.`)):o.push(new Se(l,a,`layer \"${a.id}\" must specify a \"source-layer\"`)):o.push(new Se(l,a.source,`source \"${a.source}\" not found`))}else o.push(new Se(l,a,'missing required property \"source\"'));return g===\"raster\"&&(!((e=a.paint)===null||e===void 0)&&e.resampling)&&(!((i=a.paint)===null||i===void 0)&&i[\"raster-resampling\"])&&o.push(new Se(l,a.paint,`layer \"${a.id}\" redundantly specifies \"resampling\" and \"raster-resampling\" paint properties, but only one is allowed. It is advised to use \"resampling\".`)),o=o.concat(Ni({key:l,value:a,valueSpec:p.layer,style:r.style,styleSpec:r.styleSpec,validateSpec:r.validateSpec,objectElementValidators:{\"*\":()=>[],type:()=>r.validateSpec({key:`${l}.type`,value:a.type,valueSpec:p.layer.type,style:r.style,styleSpec:r.styleSpec,validateSpec:r.validateSpec,object:a,objectKey:\"type\"}),filter:uo,layout:v=>Ni({layer:a,key:v.key,value:v.value,style:v.style,styleSpec:v.styleSpec,validateSpec:v.validateSpec,objectElementValidators:{\"*\":_=>Jc(fn({layerType:g},_))}}),paint:v=>Ni({layer:a,key:v.key,value:v.value,style:v.style,styleSpec:v.styleSpec,validateSpec:v.validateSpec,objectElementValidators:{\"*\":_=>Kc(fn({layerType:g},_))}})}})),o}function Qr(r){let e=r.value,i=r.key,o=nt(e);return o!==\"string\"?[new Se(i,e,`string expected, ${o} found`)]:[]}let bl={promoteId:function({key:r,value:e}){if(nt(e)===\"string\")return Qr({key:r,value:e});{let i=[];for(let o in e)i.push(...Qr({key:`${r}.${o}`,value:e[o]}));return i}}};function wl(r){let e=r.value,i=r.key,o=r.styleSpec,a=r.style,l=r.validateSpec;if(!e.type)return[new Se(i,e,'\"type\" is required')];let u=Gt(e.type),p;switch(u){case\"vector\":case\"raster\":return p=Ni({key:i,value:e,valueSpec:o[`source_${u.replace(\"-\",\"_\")}`],style:r.style,styleSpec:o,objectElementValidators:bl,validateSpec:l}),p;case\"raster-dem\":return p=(function(g){var m;let v=(m=g.sourceName)!==null&&m!==void 0?m:\"\",_=g.value,T=g.styleSpec,b=T.source_raster_dem,P=g.style,C=[],A=nt(_);if(_===void 0)return C;if(A!==\"object\")return C.push(new Se(\"source_raster_dem\",_,`object expected, ${A} found`)),C;let z=Gt(_.encoding)===\"custom\",L=[\"redFactor\",\"greenFactor\",\"blueFactor\",\"baseShift\"],R=g.value.encoding?`\"${g.value.encoding}\"`:\"Default\";for(let F in _)!z&&L.includes(F)?C.push(new Se(F,_[F],`In \"${v}\": \"${F}\" is only valid when \"encoding\" is set to \"custom\". ${R} encoding found`)):b[F]?C=C.concat(g.validateSpec({key:F,value:_[F],valueSpec:b[F],validateSpec:g.validateSpec,style:P,styleSpec:T})):C.push(new Se(F,_[F],`unknown property \"${F}\"`));return C})({sourceName:i,value:e,style:r.style,styleSpec:o,validateSpec:l}),p;case\"geojson\":if(p=Ni({key:i,value:e,valueSpec:o.source_geojson,style:a,styleSpec:o,validateSpec:l,objectElementValidators:bl}),e.cluster)for(let g in e.clusterProperties){let[m,v]=e.clusterProperties[g],_=typeof m==\"string\"?[m,[\"accumulated\"],[\"get\",g]]:m;p.push(...Jr({key:`${i}.${g}.map`,value:v,expressionContext:\"cluster-map\"})),p.push(...Jr({key:`${i}.${g}.reduce`,value:_,expressionContext:\"cluster-reduce\"}))}return p;case\"video\":return Ni({key:i,value:e,valueSpec:o.source_video,style:a,validateSpec:l,styleSpec:o});case\"image\":return Ni({key:i,value:e,valueSpec:o.source_image,style:a,validateSpec:l,styleSpec:o});case\"canvas\":return[new Se(i,null,\"Please use runtime APIs to add canvas sources, rather than including them in stylesheets.\",\"source.canvas\")];default:return An({key:`${i}.type`,value:e.type,valueSpec:{values:[\"vector\",\"raster\",\"raster-dem\",\"geojson\",\"video\",\"image\"]}})}}function Xo(r){let e=r.value,i=r.styleSpec,o=i.light,a=r.style,l=[],u=nt(e);if(e===void 0)return l;if(u!==\"object\")return l=l.concat([new Se(\"light\",e,`object expected, ${u} found`)]),l;for(let p in e){let g=p.match(/^(.*)-transition$/);l=l.concat(g&&o[g[1]]&&o[g[1]].transition?r.validateSpec({key:p,value:e[p],valueSpec:i.transition,validateSpec:r.validateSpec,style:a,styleSpec:i}):o[p]?r.validateSpec({key:p,value:e[p],valueSpec:o[p],validateSpec:r.validateSpec,style:a,styleSpec:i}):[new Se(p,e[p],`unknown property \"${p}\"`)])}return l}function eu(r){let e=r.value,i=r.styleSpec,o=i.sky,a=r.style,l=nt(e);if(e===void 0)return[];if(l!==\"object\")return[new Se(\"sky\",e,`object expected, ${l} found`)];let u=[];for(let p in e)u=u.concat(o[p]?r.validateSpec({key:p,value:e[p],valueSpec:o[p],style:a,styleSpec:i}):[new Se(p,e[p],`unknown property \"${p}\"`)]);return u}function Tl(r){let e=r.value,i=r.styleSpec,o=i.terrain,a=r.style,l=[],u=nt(e);if(e===void 0)return l;if(u!==\"object\")return l=l.concat([new Se(\"terrain\",e,`object expected, ${u} found`)]),l;for(let p in e)l=l.concat(o[p]?r.validateSpec({key:p,value:e[p],valueSpec:o[p],validateSpec:r.validateSpec,style:a,styleSpec:i}):[new Se(p,e[p],`unknown property \"${p}\"`)]);return l}function Sl(r){let e=[],i=r.value,o=r.key;if(Array.isArray(i)){let a=[],l=[];for(let u in i)i[u].id&&a.includes(i[u].id)&&e.push(new Se(o,i,`all the sprites' ids must be unique, but ${i[u].id} is duplicated`)),a.push(i[u].id),i[u].url&&l.includes(i[u].url)&&e.push(new Se(o,i,`all the sprites' URLs must be unique, but ${i[u].url} is duplicated`)),l.push(i[u].url),e=e.concat(Ni({key:`${o}[${u}]`,value:i[u],valueSpec:{id:{type:\"string\",required:!0},url:{type:\"string\",required:!0}},validateSpec:r.validateSpec}));return e}return Qr({key:o,value:i})}function tu(r){return!!r&&r.constructor===Object}function Yo(r){return tu(r.value)?[]:[new Se(r.key,r.value,`object expected, ${nt(r.value)} found`)]}let Ml={\"*\":()=>[],array:Ya,boolean:function(r){let e=r.value,i=r.key,o=nt(e);return o!==\"boolean\"?[new Se(i,e,`boolean expected, ${o} found`)]:[]},number:co,color:Ho,constants:Hc,enum:An,filter:uo,function:Ka,layer:Qc,object:Ni,source:wl,light:Xo,sky:eu,terrain:Tl,projection:function(r){let e=r.value,i=r.styleSpec,o=i.projection,a=r.style,l=nt(e);if(e===void 0)return[];if(l!==\"object\")return[new Se(\"projection\",e,`object expected, ${l} found`)];let u=[];for(let p in e)u=u.concat(o[p]?r.validateSpec({key:p,value:e[p],valueSpec:o[p],style:a,styleSpec:i}):[new Se(p,e[p],`unknown property \"${p}\"`)]);return u},projectionDefinition:function(r){let e=r.key,i=r.value;i=i instanceof String?i.valueOf():i;let o=nt(i);return o!==\"array\"||(function(a){return Array.isArray(a)&&a.length===3&&typeof a[0]==\"string\"&&typeof a[1]==\"string\"&&typeof a[2]==\"number\"})(i)||(function(a){return!![\"interpolate\",\"step\",\"literal\"].includes(a[0])})(i)?[\"array\",\"string\"].includes(o)?[]:[new Se(e,i,`projection expected, invalid type \"${o}\" found`)]:[new Se(e,i,`projection expected, invalid array ${JSON.stringify(i)} found`)]},string:Qr,formatted:function(r){return Qr(r).length===0?[]:Jr(r)},resolvedImage:function(r){return Qr(r).length===0?[]:Jr(r)},padding:function(r){let e=r.key,i=r.value;if(nt(i)===\"array\"){if(i.length<1||i.length>4)return[new Se(e,i,`padding requires 1 to 4 values; ${i.length} values found`)];let o={type:\"number\"},a=[];for(let l=0;l[]}})),r.constants&&(i=i.concat(Hc({key:\"constants\",value:r.constants}))),iu(i)}function gr(r){return function(e){return r(Object.assign({},e,{validateSpec:Ko}))}}function iu(r){return[].concat(r).sort(((e,i)=>e.line-i.line))}function _r(r){return function(...e){return iu(r.apply(this,e))}}rr.source=_r(gr(wl)),rr.sprite=_r(gr(Sl)),rr.glyphs=_r(gr(ho)),rr.light=_r(gr(Xo)),rr.sky=_r(gr(eu)),rr.terrain=_r(gr(Tl)),rr.state=_r(gr(Yo)),rr.layer=_r(gr(Qc)),rr.filter=_r(gr(uo)),rr.paintProperty=_r(gr(Kc)),rr.layoutProperty=_r(gr(Jc));let dh={type:\"enum\",\"property-type\":\"data-constant\",expression:{interpolated:!1,parameters:[\"global-state\"]},values:{visible:{},none:{}},transition:!1,default:\"visible\"};class ph{constructor(e,i){this._globalState=i,this.setValue(e)}evaluate(){var e;return(e=this._literalValue)!==null&&e!==void 0?e:this._compiledValue.evaluate({})}setValue(e){if(e==null||e===\"visible\"||e===\"none\")return this._literalValue=e===\"none\"?\"none\":\"visible\",this._compiledValue=void 0,void(this._globalStateRefs=new Set);let i=Go(e,dh,this._globalState);if(i.result===\"error\")throw this._literalValue=\"visible\",this._compiledValue=void 0,new Error(i.value.map((o=>`${o.key}: ${o.message}`)).join(\", \"));this._literalValue=void 0,this._compiledValue=i.value,this._globalStateRefs=so(i.value.expression)}getGlobalStateRefs(){return this._globalStateRefs}}let Jo=de,Tr=rr,Hi=Tr.light,Qo=Tr.sky,ru=Tr.paintProperty,fh=Tr.layoutProperty;function nu(r,e){let i=!1;if(e?.length)for(let o of e)r.fire(new qn(new Error(o.message))),i=!0;return i}class Rr{constructor(e,i,o){let a=this.cells=[];if(e instanceof ArrayBuffer){this.arrayBuffer=e;let u=new Int32Array(this.arrayBuffer);e=u[0],this.d=(i=u[1])+2*(o=u[2]);for(let g=0;g=_[b+0]&&a>=_[b+1])?(p[T]=!0,u.push(v[T])):p[T]=!1}}}_forEachCell(e,i,o,a,l,u,p,g){let m=this._convertToCellCoord(e),v=this._convertToCellCoord(i),_=this._convertToCellCoord(o),T=this._convertToCellCoord(a);for(let b=m;b<=_;b++)for(let P=v;P<=T;P++){let C=this.d*P+b;if((!g||g(this._convertFromCellCoord(b),this._convertFromCellCoord(P),this._convertFromCellCoord(b+1),this._convertFromCellCoord(P+1)))&&l.call(this,e,i,o,a,C,u,p,g))return}}_convertFromCellCoord(e){return(e-this.padding)/this.scale}_convertToCellCoord(e){return Math.max(0,Math.min(this.d-1,Math.floor(e*this.scale)+this.padding))}toArrayBuffer(){if(this.arrayBuffer)return this.arrayBuffer;let e=this.cells,i=3+this.cells.length+1+1,o=0;for(let u of this.cells)o+=u.length;let a=new Int32Array(i+o+this.keys.length+this.bboxes.length);a[0]=this.extent,a[1]=this.n,a[2]=this.padding;let l=i;for(let u=0;uo?(this.lastIntegerZoom=o+1,this.lastIntegerZoomTime=i):this.lastFloorZoom{try{return new RegExp(`\\\\p{sc=${i}}`,\"u\").source}catch{return null}})).filter((i=>i));return new RegExp(e.join(\"|\"),\"u\")}let El=lu([\"Arab\",\"Dupl\",\"Mong\",\"Ougr\",\"Syrc\"]);function Qa(r){return!El.test(String.fromCodePoint(r))}function Il(r){return!(zn(r)||(e=r,/[\\xA7\\xA9\\xAE\\xB1\\xBC-\\xBE\\xD7\\xF7\\u2016\\u2020\\u2021\\u2030\\u2031\\u203B\\u203C\\u2042\\u2047-\\u2049\\u2051\\u2100-\\u218F\\u221E\\u2234\\u2235\\u2300-\\u2307\\u230C-\\u231F\\u2324-\\u2328\\u232B\\u237D-\\u239A\\u23BE-\\u23CD\\u23CF\\u23D1-\\u23DB\\u23E2-\\u2422\\u2424-\\u24FF\\u25A0-\\u2619\\u2620-\\u2767\\u2776-\\u2793\\u2B12-\\u2B2F\\u2B50-\\u2B59\\u2BB8-\\u2BEB\\u3000-\\u303F\\u30A0-\\u30FF\\uE000-\\uF8FF\\uFE30-\\uFE6F\\uFF00-\\uFFEF\\uFFFC\\uFFFD]|[\\uDB80-\\uDBFF][\\uDC00-\\uDFFF]/gim.test(String.fromCodePoint(e))));var e}let cu=lu([\"Adlm\",\"Arab\",\"Armi\",\"Avst\",\"Chrs\",\"Cprt\",\"Egyp\",\"Elym\",\"Gara\",\"Hatr\",\"Hebr\",\"Hung\",\"Khar\",\"Lydi\",\"Mand\",\"Mani\",\"Mend\",\"Merc\",\"Mero\",\"Narb\",\"Nbat\",\"Nkoo\",\"Orkh\",\"Palm\",\"Phli\",\"Phlp\",\"Phnx\",\"Prti\",\"Rohg\",\"Samr\",\"Sarb\",\"Sogo\",\"Syrc\",\"Thaa\",\"Todr\",\"Yezi\"]);function Al(r){return cu.test(String.fromCodePoint(r))}function uu(r,e){return!(!e&&Al(r)||/[\\u0900-\\u0DFF\\u0F00-\\u109F\\u1780-\\u17FF]/gim.test(String.fromCodePoint(r)))}function zl(r){for(let e of r)if(Al(e.codePointAt(0)))return!0;return!1}let Fr=new class{constructor(){this.TIMEOUT=5e3,this.applyArabicShaping=null,this.processBidirectionalText=null,this.processStyledBidirectionalText=null,this.pluginStatus=\"unavailable\",this.pluginURL=null,this.loadScriptResolve=()=>{}}setState(r){this.pluginStatus=r.pluginStatus,this.pluginURL=r.pluginURL}getState(){return{pluginStatus:this.pluginStatus,pluginURL:this.pluginURL}}setMethods(r){if(Fr.isParsed())throw new Error(\"RTL text plugin already registered.\");this.applyArabicShaping=r.applyArabicShaping,this.processBidirectionalText=r.processBidirectionalText,this.processStyledBidirectionalText=r.processStyledBidirectionalText,this.loadScriptResolve()}isParsed(){return this.applyArabicShaping!=null&&this.processBidirectionalText!=null&&this.processStyledBidirectionalText!=null}getRTLTextPluginStatus(){return this.pluginStatus}syncState(r,e){return h(this,void 0,void 0,(function*(){if(this.isParsed())return this.getState();if(r.pluginStatus!==\"loading\")return this.setState(r),r;let i=r.pluginURL,o=new Promise((l=>{this.loadScriptResolve=l}));e(i);let a=new Promise((l=>setTimeout((()=>l()),this.TIMEOUT)));if(yield Promise.race([o,a]),this.isParsed()){let l={pluginStatus:\"loaded\",pluginURL:i};return this.setState(l),l}throw this.setState({pluginStatus:\"error\",pluginURL:\"\"}),new Error(`RTL Text Plugin failed to import scripts from ${i}`)}))}};class Et{constructor(e,i){this.isSupportedScript=hu,this.zoom=e,i?(this.now=i.now||0,this.fadeDuration=i.fadeDuration||0,this.zoomHistory=i.zoomHistory||new Pl,this.transition=i.transition||{}):(this.now=0,this.fadeDuration=0,this.zoomHistory=new Pl,this.transition={})}crossFadingFactor(){return this.fadeDuration===0?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)}getCrossfadeParameters(){let e=this.zoom,i=e-Math.floor(e),o=this.crossFadingFactor();return e>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:i+(1-i)*o}:{fromScale:.5,toScale:1,t:1-(1-o)*i}}}function hu(r){return(function(e,i){for(let o of e)if(!uu(o.codePointAt(0),i))return!1;return!0})(r,Fr.getRTLTextPluginStatus()===\"loaded\")}let es=\"-transition\";class ia{constructor(e,i,o){this.property=e,this.value=i,this.expression=(function(a,l,u){if(Ga(a))return new Ha(a,l);if($a(a)){let p=Zc(a,l,u);if(p.result===\"error\")throw new Error(p.value.map((g=>`${g.key}: ${g.message}`)).join(\", \"));return p.value}{let p=a;return l.type===\"color\"&&typeof a==\"string\"?p=tt.parse(a):l.type!==\"padding\"||typeof a!=\"number\"&&!Array.isArray(a)?l.type!==\"numberArray\"||typeof a!=\"number\"&&!Array.isArray(a)?l.type!==\"colorArray\"||typeof a!=\"string\"&&!Array.isArray(a)?l.type===\"variableAnchorOffsetCollection\"&&Array.isArray(a)?p=Ci.parse(a):l.type===\"projectionDefinition\"&&typeof a==\"string\"&&(p=Ei.parse(a)):p=We.parse(a):p=Rt.parse(a):p=mi.parse(a),{globalStateRefs:new Set,_globalState:null,kind:\"constant\",evaluate:()=>p}}})(i===void 0?e.specification.default:i,e.specification,o)}isDataDriven(){return this.expression.kind===\"source\"||this.expression.kind===\"composite\"}getGlobalStateRefs(){return this.expression.globalStateRefs||new Set}possiblyEvaluate(e,i,o){return this.property.possiblyEvaluate(this,e,i,o)}}class Dl{constructor(e,i){this.property=e,this.value=new ia(e,void 0,i)}transitioned(e,i){return new Rl(this.property,this.value,i,Mi({},e.transition,this.transition),e.now)}untransitioned(){return new Rl(this.property,this.value,null,{},0)}}class kl{constructor(e,i){this._properties=e,this._values=Object.create(e.defaultTransitionablePropertyValues),this._globalState=i}hasProperty(e){return e in this._properties.defaultTransitionablePropertyValues}getValue(e){return De(this._values[e].value.value)}setValue(e,i){Object.hasOwn(this._values,e)||(this._values[e]=new Dl(this._values[e].property,this._globalState)),this._values[e].value=new ia(this._values[e].property,i===null?void 0:De(i),this._globalState)}getTransition(e){return De(this._values[e].transition)}setTransition(e,i){Object.hasOwn(this._values,e)||(this._values[e]=new Dl(this._values[e].property,this._globalState)),this._values[e].transition=De(i)||void 0}serialize(){let e={};for(let i of Object.keys(this._values)){let o=this.getValue(i);o!==void 0&&(e[i]=o);let a=this.getTransition(i);a!==void 0&&(e[`${i}${es}`]=a)}return e}transitioned(e,i){let o=new du(this._properties);for(let a of Object.keys(this._values))o._values[a]=this._values[a].transitioned(e,i._values[a]);return o}untransitioned(){let e=new du(this._properties);for(let i of Object.keys(this._values))e._values[i]=this._values[i].untransitioned();return e}}class Rl{constructor(e,i,o,a,l){this.property=e,this.value=i,this.begin=l+a.delay||0,this.end=this.begin+a.duration||0,e.specification.transition&&(a.delay||a.duration)&&(this.prior=o)}possiblyEvaluate(e,i,o){let a=e.now||0,l=this.value.possiblyEvaluate(e,i,o),u=this.prior;if(u){if(a>this.end)return this.prior=null,l;if(this.value.isDataDriven())return this.prior=null,l;if(aa.zoomHistory.lastIntegerZoom?{from:e,to:i}:{from:o,to:i}}interpolate(e){return e}}class pu{constructor(e){this.specification=e}possiblyEvaluate(e,i,o,a){if(e.value!==void 0){if(e.expression.kind===\"constant\"){let l=e.expression.evaluate(i,null,{},o,a);return this._calculate(l,l,l,i)}return this._calculate(e.expression.evaluate(new Et(Math.floor(i.zoom-1),i)),e.expression.evaluate(new Et(Math.floor(i.zoom),i)),e.expression.evaluate(new Et(Math.floor(i.zoom+1),i)),i)}}_calculate(e,i,o,a){return a.zoom>a.zoomHistory.lastIntegerZoom?{from:e,to:i}:{from:o,to:i}}interpolate(e){return e}}class po{constructor(e){this.specification=e}possiblyEvaluate(e,i,o,a){return!!e.expression.evaluate(i,null,{},o,a)}interpolate(){return!1}}class Ii{constructor(e){this.properties=e,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];for(let i in e){let o=e[i];o.specification.overridable&&this.overridableProperties.push(i);let a=this.defaultPropertyValues[i]=new ia(o,void 0,void 0),l=this.defaultTransitionablePropertyValues[i]=new Dl(o,void 0);this.defaultTransitioningPropertyValues[i]=l.untransitioned(),this.defaultPossiblyEvaluatedValues[i]=a.possiblyEvaluate({})}}}ze(\"DataDrivenProperty\",Ue),ze(\"DataConstantProperty\",Le),ze(\"CrossFadedDataDrivenProperty\",en),ze(\"CrossFadedProperty\",pu),ze(\"ColorRampProperty\",po);let fu=\" is a PAINT property not a LAYOUT property. Use get/setPaintProperty instead?\",ts=\" is a LAYOUT property not a PAINT property. Use get/setLayoutProperty instead?\";class nr extends xa{constructor(e,i,o){if(super(),this.id=e.id,this.type=e.type,this._globalState=o,this._featureFilter={filter:()=>!0,needGeometry:!1,getGlobalStateRefs:()=>new Set},this._visibilityExpression=(function(a,l){return new ph(a,l)})(this.visibility,o),e.type!==\"custom\"&&(this.metadata=e.metadata,this.minzoom=e.minzoom,this.maxzoom=e.maxzoom,e.type!==\"background\"&&(this.source=e.source,this.sourceLayer=e[\"source-layer\"],this.filter=e.filter,this._featureFilter=$o(e.filter,o)),i.layout&&(this._unevaluatedLayout=new gh(i.layout,o)),i.paint)){this._transitionablePaint=new kl(i.paint,o);for(let a in e.paint)this.setPaintProperty(a,e.paint[a],{validate:!1});for(let a in e.layout)this.setLayoutProperty(a,e.layout[a],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new ra(i.paint)}}setFilter(e){this.filter=e,this._featureFilter=$o(e,this._globalState)}getCrossfadeParameters(){return this._crossfadeParameters}getLayoutProperty(e){var i;if(e===\"visibility\")return this.visibility;if(!((i=this._transitionablePaint)===null||i===void 0)&&i.hasProperty(e))throw new Error(e+fu);if(!this._unevaluatedLayout)throw new Error(`Cannot get layout property \"${e}\" on layer type \"${this.type}\" which has no layout properties.`);return this._unevaluatedLayout.getValue(e)}getLayoutAffectingGlobalStateRefs(){let e=new Set;for(let i of this._visibilityExpression.getGlobalStateRefs())e.add(i);if(this._unevaluatedLayout)for(let i in this._unevaluatedLayout._values){let o=this._unevaluatedLayout._values[i];for(let a of o.getGlobalStateRefs())e.add(a)}for(let i of this._featureFilter.getGlobalStateRefs())e.add(i);return e}getPaintAffectingGlobalStateRefs(){var e;let i=new globalThis.Map;if(this._transitionablePaint)for(let o in this._transitionablePaint._values){let a=this._transitionablePaint._values[o].value;for(let l of a.getGlobalStateRefs()){let u=(e=i.get(l))!==null&&e!==void 0?e:[];u.push({name:o,value:a.value}),i.set(l,u)}}return i}getVisibilityAffectingGlobalStateRefs(){return this._visibilityExpression.getGlobalStateRefs()}setLayoutProperty(e,i,o={}){var a;if(e===\"visibility\")return this.visibility=i,this._visibilityExpression.setValue(i),void this.recalculateVisibility();!((a=this._transitionablePaint)===null||a===void 0)&&a.hasProperty(e)?this.fire(new qn(new Error(e+fu))):i!=null&&this._validate(fh,`layers.${this.id}.layout.${e}`,e,i,o)||this._unevaluatedLayout.setValue(e,i)}getPaintProperty(e){var i,o;if(e.endsWith(es)){let a=e.slice(0,-11);if(a===\"visibility\"||!((i=this._unevaluatedLayout)===null||i===void 0)&&i.hasProperty(a))throw new Error(e+ts);return this._transitionablePaint.getTransition(a)}if(e===\"visibility\"||!((o=this._unevaluatedLayout)===null||o===void 0)&&o.hasProperty(e))throw new Error(e+ts);return this._transitionablePaint.getValue(e)}setPaintProperty(e,i,o={}){var a;if(e===\"visibility\"||!((a=this._unevaluatedLayout)===null||a===void 0)&&a.hasProperty(e))return this.fire(new qn(new Error(e+ts))),!1;if(i!=null&&this._validate(ru,`layers.${this.id}.paint.${e}`,e,i,o))return!1;if(e.endsWith(es))return this._transitionablePaint.setTransition(e.slice(0,-11),i||void 0),!1;{let l=this._transitionablePaint._values[e],u=l.property.specification[\"property-type\"]===\"cross-faded-data-driven\",p=l.value.isDataDriven(),g=l.value;this._transitionablePaint.setValue(e,i),this._handleSpecialPaintPropertyUpdate(e);let m=this._transitionablePaint._values[e].value;return m.isDataDriven()||p||u||this._handleOverridablePaintPropertyUpdate(e,g,m)}}_handleSpecialPaintPropertyUpdate(e){}_handleOverridablePaintPropertyUpdate(e,i,o){return!1}isHidden(e=this.minzoom,i=!1){return!!(this.minzoom&&e<(i?Math.floor(this.minzoom):this.minzoom))||!!(this.maxzoom&&e>=this.maxzoom)||this._evaluatedVisibility===\"none\"}updateTransitions(e){this._transitioningPaint=this._transitionablePaint.transitioned(e,this._transitioningPaint)}hasTransition(){return this._transitioningPaint.hasTransition()}recalculateVisibility(){this._evaluatedVisibility=this._visibilityExpression.evaluate()}recalculate(e,i){e.getCrossfadeParameters&&(this._crossfadeParameters=e.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(e,void 0,i)),this.paint=this._transitioningPaint.possiblyEvaluate(e,void 0,i)}serialize(){var e,i;let o={id:this.id,type:this.type,source:this.source,\"source-layer\":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:(e=this._unevaluatedLayout)===null||e===void 0?void 0:e.serialize(),paint:(i=this._transitionablePaint)===null||i===void 0?void 0:i.serialize()};return this.visibility&&(o.layout||(o.layout={}),o.layout.visibility=this.visibility),Ne(o,((a,l)=>!(a===void 0||l===\"layout\"&&!Object.keys(a).length||l===\"paint\"&&!Object.keys(a).length)))}_validate(e,i,o,a,l={}){return l?.validate!==!1&&nu(this,e.call(Tr,{key:i,layerType:this.type,objectKey:o,value:a,styleSpec:de,style:{glyphs:!0,sprite:!0}}))}is3D(){return!1}isTileClipped(){return!1}hasOffscreenPass(){return!1}resize(){}isStateDependent(){for(let e in this.paint._values){let i=this.paint.get(e);if(i instanceof yr&&ao(i.property.specification)&&(i.value.kind===\"source\"||i.value.kind===\"composite\")&&i.value.isStateDependent)return!0}return!1}}let Ll;var _h={get paint(){return Ll=Ll||new Ii({\"raster-opacity\":new Le(de.paint_raster[\"raster-opacity\"]),\"raster-hue-rotate\":new Le(de.paint_raster[\"raster-hue-rotate\"]),\"raster-brightness-min\":new Le(de.paint_raster[\"raster-brightness-min\"]),\"raster-brightness-max\":new Le(de.paint_raster[\"raster-brightness-max\"]),\"raster-saturation\":new Le(de.paint_raster[\"raster-saturation\"]),\"raster-contrast\":new Le(de.paint_raster[\"raster-contrast\"]),resampling:new Le(de.paint_raster.resampling),\"raster-resampling\":new Le(de.paint_raster[\"raster-resampling\"]),\"raster-fade-duration\":new Le(de.paint_raster[\"raster-fade-duration\"])})}};class yh extends nr{constructor(e,i){super(e,_h,i)}}let vh={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array};class na{constructor(e,i){this._structArray=e,this._pos1=i*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8}}class Lt{constructor(){this.isTransferred=!1,this.capacity=-1,this.resize(0)}static serialize(e,i){return e._trim(),i&&(e.isTransferred=!0,i.push(e.arrayBuffer)),{length:e.length,arrayBuffer:e.arrayBuffer}}static deserialize(e){let i=Object.create(this.prototype);return i.arrayBuffer=e.arrayBuffer,i.length=e.length,i.capacity=e.arrayBuffer.byteLength/i.bytesPerElement,i._refreshViews(),i}_trim(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())}clear(){this.length=0}resize(e){this.reserve(e),this.length=e}reserve(e){if(e>this.capacity){this.capacity=Math.max(e,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);let i=this.uint8;this._refreshViews(),i&&this.uint8.set(i)}}_refreshViews(){throw new Error(\"_refreshViews() must be implemented by each concrete StructArray layout\")}freeBufferAfterUpload(){this.arrayBuffer=new ArrayBuffer(0),this._refreshViews()}}function It(r,e=1){let i=0,o=0;return{members:r.map((a=>{let l=vh[a.type].BYTES_PER_ELEMENT,u=i=mu(i,Math.max(e,l)),p=a.components||1;return o=Math.max(o,l),i+=l*p,{name:a.name,type:a.type,components:p,offset:u}})),size:mu(i,Math.max(o,e)),alignment:e}}function mu(r,e){return Math.ceil(r/e)*e}class oa extends Lt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,i){let o=this.length;return this.resize(o+1),this.emplace(o,e,i)}emplace(e,i,o){let a=2*e;return this.int16[a+0]=i,this.int16[a+1]=o,e}}oa.prototype.bytesPerElement=4,ze(\"StructArrayLayout2i4\",oa);class is extends Lt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,i,o){let a=this.length;return this.resize(a+1),this.emplace(a,e,i,o)}emplace(e,i,o,a){let l=3*e;return this.int16[l+0]=i,this.int16[l+1]=o,this.int16[l+2]=a,e}}is.prototype.bytesPerElement=6,ze(\"StructArrayLayout3i6\",is);class rs extends Lt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,i,o,a){let l=this.length;return this.resize(l+1),this.emplace(l,e,i,o,a)}emplace(e,i,o,a,l){let u=4*e;return this.int16[u+0]=i,this.int16[u+1]=o,this.int16[u+2]=a,this.int16[u+3]=l,e}}rs.prototype.bytesPerElement=8,ze(\"StructArrayLayout4i8\",rs);class ns extends Lt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,i,o,a,l,u){let p=this.length;return this.resize(p+1),this.emplace(p,e,i,o,a,l,u)}emplace(e,i,o,a,l,u,p){let g=6*e;return this.int16[g+0]=i,this.int16[g+1]=o,this.int16[g+2]=a,this.int16[g+3]=l,this.int16[g+4]=u,this.int16[g+5]=p,e}}ns.prototype.bytesPerElement=12,ze(\"StructArrayLayout2i4i12\",ns);class Fl extends Lt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,i,o,a,l,u){let p=this.length;return this.resize(p+1),this.emplace(p,e,i,o,a,l,u)}emplace(e,i,o,a,l,u,p){let g=4*e,m=8*e;return this.int16[g+0]=i,this.int16[g+1]=o,this.uint8[m+4]=a,this.uint8[m+5]=l,this.uint8[m+6]=u,this.uint8[m+7]=p,e}}Fl.prototype.bytesPerElement=8,ze(\"StructArrayLayout2i4ub8\",Fl);class aa extends Lt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,i){let o=this.length;return this.resize(o+1),this.emplace(o,e,i)}emplace(e,i,o){let a=2*e;return this.float32[a+0]=i,this.float32[a+1]=o,e}}aa.prototype.bytesPerElement=8,ze(\"StructArrayLayout2f8\",aa);class Br extends Lt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,i,o,a,l,u,p,g,m,v){let _=this.length;return this.resize(_+1),this.emplace(_,e,i,o,a,l,u,p,g,m,v)}emplace(e,i,o,a,l,u,p,g,m,v,_){let T=10*e;return this.uint16[T+0]=i,this.uint16[T+1]=o,this.uint16[T+2]=a,this.uint16[T+3]=l,this.uint16[T+4]=u,this.uint16[T+5]=p,this.uint16[T+6]=g,this.uint16[T+7]=m,this.uint16[T+8]=v,this.uint16[T+9]=_,e}}Br.prototype.bytesPerElement=20,ze(\"StructArrayLayout10ui20\",Br);class os extends Lt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,i,o,a,l,u,p,g){let m=this.length;return this.resize(m+1),this.emplace(m,e,i,o,a,l,u,p,g)}emplace(e,i,o,a,l,u,p,g,m){let v=8*e;return this.uint16[v+0]=i,this.uint16[v+1]=o,this.uint16[v+2]=a,this.uint16[v+3]=l,this.uint16[v+4]=u,this.uint16[v+5]=p,this.uint16[v+6]=g,this.uint16[v+7]=m,e}}os.prototype.bytesPerElement=16,ze(\"StructArrayLayout8ui16\",os);class sa extends Lt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,i,o,a,l,u,p,g,m,v,_,T){let b=this.length;return this.resize(b+1),this.emplace(b,e,i,o,a,l,u,p,g,m,v,_,T)}emplace(e,i,o,a,l,u,p,g,m,v,_,T,b){let P=12*e;return this.int16[P+0]=i,this.int16[P+1]=o,this.int16[P+2]=a,this.int16[P+3]=l,this.uint16[P+4]=u,this.uint16[P+5]=p,this.uint16[P+6]=g,this.uint16[P+7]=m,this.int16[P+8]=v,this.int16[P+9]=_,this.int16[P+10]=T,this.int16[P+11]=b,e}}sa.prototype.bytesPerElement=24,ze(\"StructArrayLayout4i4ui4i24\",sa);class as extends Lt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,i,o){let a=this.length;return this.resize(a+1),this.emplace(a,e,i,o)}emplace(e,i,o,a){let l=3*e;return this.float32[l+0]=i,this.float32[l+1]=o,this.float32[l+2]=a,e}}as.prototype.bytesPerElement=12,ze(\"StructArrayLayout3f12\",as);class la extends Lt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(e){let i=this.length;return this.resize(i+1),this.emplace(i,e)}emplace(e,i){return this.uint32[1*e+0]=i,e}}la.prototype.bytesPerElement=4,ze(\"StructArrayLayout1ul4\",la);class Bl extends Lt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,i,o,a,l,u,p,g,m){let v=this.length;return this.resize(v+1),this.emplace(v,e,i,o,a,l,u,p,g,m)}emplace(e,i,o,a,l,u,p,g,m,v){let _=10*e,T=5*e;return this.int16[_+0]=i,this.int16[_+1]=o,this.int16[_+2]=a,this.int16[_+3]=l,this.int16[_+4]=u,this.int16[_+5]=p,this.uint32[T+3]=g,this.uint16[_+8]=m,this.uint16[_+9]=v,e}}Bl.prototype.bytesPerElement=20,ze(\"StructArrayLayout6i1ul2ui20\",Bl);class fo extends Lt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,i,o,a,l,u){let p=this.length;return this.resize(p+1),this.emplace(p,e,i,o,a,l,u)}emplace(e,i,o,a,l,u,p){let g=6*e;return this.int16[g+0]=i,this.int16[g+1]=o,this.int16[g+2]=a,this.int16[g+3]=l,this.int16[g+4]=u,this.int16[g+5]=p,e}}fo.prototype.bytesPerElement=12,ze(\"StructArrayLayout2i2i2i12\",fo);class Dn extends Lt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,i,o,a,l){let u=this.length;return this.resize(u+1),this.emplace(u,e,i,o,a,l)}emplace(e,i,o,a,l,u){let p=4*e,g=8*e;return this.float32[p+0]=i,this.float32[p+1]=o,this.float32[p+2]=a,this.int16[g+6]=l,this.int16[g+7]=u,e}}Dn.prototype.bytesPerElement=16,ze(\"StructArrayLayout2f1f2i16\",Dn);class Ol extends Lt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,i,o,a,l,u){let p=this.length;return this.resize(p+1),this.emplace(p,e,i,o,a,l,u)}emplace(e,i,o,a,l,u,p){let g=16*e,m=4*e,v=8*e;return this.uint8[g+0]=i,this.uint8[g+1]=o,this.float32[m+1]=a,this.float32[m+2]=l,this.int16[v+6]=u,this.int16[v+7]=p,e}}Ol.prototype.bytesPerElement=16,ze(\"StructArrayLayout2ub2f2i16\",Ol);class ca extends Lt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,i,o){let a=this.length;return this.resize(a+1),this.emplace(a,e,i,o)}emplace(e,i,o,a){let l=3*e;return this.uint16[l+0]=i,this.uint16[l+1]=o,this.uint16[l+2]=a,e}}ca.prototype.bytesPerElement=6,ze(\"StructArrayLayout3ui6\",ca);class kn extends Lt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,i,o,a,l,u,p,g,m,v,_,T,b,P,C,A,z){let L=this.length;return this.resize(L+1),this.emplace(L,e,i,o,a,l,u,p,g,m,v,_,T,b,P,C,A,z)}emplace(e,i,o,a,l,u,p,g,m,v,_,T,b,P,C,A,z,L){let R=24*e,F=12*e,O=48*e;return this.int16[R+0]=i,this.int16[R+1]=o,this.uint16[R+2]=a,this.uint16[R+3]=l,this.uint32[F+2]=u,this.uint32[F+3]=p,this.uint32[F+4]=g,this.uint16[R+10]=m,this.uint16[R+11]=v,this.uint16[R+12]=_,this.float32[F+7]=T,this.float32[F+8]=b,this.uint8[O+36]=P,this.uint8[O+37]=C,this.uint8[O+38]=A,this.uint32[F+10]=z,this.int16[R+22]=L,e}}kn.prototype.bytesPerElement=48,ze(\"StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48\",kn);class Vl extends Lt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,i,o,a,l,u,p,g,m,v,_,T,b,P,C,A,z,L,R,F,O,j,Y,Q,oe,ie,ue,he){let ae=this.length;return this.resize(ae+1),this.emplace(ae,e,i,o,a,l,u,p,g,m,v,_,T,b,P,C,A,z,L,R,F,O,j,Y,Q,oe,ie,ue,he)}emplace(e,i,o,a,l,u,p,g,m,v,_,T,b,P,C,A,z,L,R,F,O,j,Y,Q,oe,ie,ue,he,ae){let ne=32*e,be=16*e;return this.int16[ne+0]=i,this.int16[ne+1]=o,this.int16[ne+2]=a,this.int16[ne+3]=l,this.int16[ne+4]=u,this.int16[ne+5]=p,this.int16[ne+6]=g,this.int16[ne+7]=m,this.uint16[ne+8]=v,this.uint16[ne+9]=_,this.uint16[ne+10]=T,this.uint16[ne+11]=b,this.uint16[ne+12]=P,this.uint16[ne+13]=C,this.uint16[ne+14]=A,this.uint16[ne+15]=z,this.uint16[ne+16]=L,this.uint16[ne+17]=R,this.uint16[ne+18]=F,this.uint16[ne+19]=O,this.uint16[ne+20]=j,this.uint16[ne+21]=Y,this.uint16[ne+22]=Q,this.uint32[be+12]=oe,this.float32[be+13]=ie,this.float32[be+14]=ue,this.uint16[ne+30]=he,this.uint16[ne+31]=ae,e}}Vl.prototype.bytesPerElement=64,ze(\"StructArrayLayout8i15ui1ul2f2ui64\",Vl);class ss extends Lt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e){let i=this.length;return this.resize(i+1),this.emplace(i,e)}emplace(e,i){return this.float32[1*e+0]=i,e}}ss.prototype.bytesPerElement=4,ze(\"StructArrayLayout1f4\",ss);class ls extends Lt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,i,o){let a=this.length;return this.resize(a+1),this.emplace(a,e,i,o)}emplace(e,i,o,a){let l=3*e;return this.uint16[6*e+0]=i,this.float32[l+1]=o,this.float32[l+2]=a,e}}ls.prototype.bytesPerElement=12,ze(\"StructArrayLayout1ui2f12\",ls);class jl extends Lt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,i,o){let a=this.length;return this.resize(a+1),this.emplace(a,e,i,o)}emplace(e,i,o,a){let l=4*e;return this.uint32[2*e+0]=i,this.uint16[l+2]=o,this.uint16[l+3]=a,e}}jl.prototype.bytesPerElement=8,ze(\"StructArrayLayout1ul2ui8\",jl);class d extends Lt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,i){let o=this.length;return this.resize(o+1),this.emplace(o,e,i)}emplace(e,i,o){let a=2*e;return this.uint16[a+0]=i,this.uint16[a+1]=o,e}}d.prototype.bytesPerElement=4,ze(\"StructArrayLayout2ui4\",d);class t extends Lt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e){let i=this.length;return this.resize(i+1),this.emplace(i,e)}emplace(e,i){return this.uint16[1*e+0]=i,e}}t.prototype.bytesPerElement=2,ze(\"StructArrayLayout1ui2\",t);class n extends Lt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,i,o,a){let l=this.length;return this.resize(l+1),this.emplace(l,e,i,o,a)}emplace(e,i,o,a,l){let u=4*e;return this.float32[u+0]=i,this.float32[u+1]=o,this.float32[u+2]=a,this.float32[u+3]=l,e}}n.prototype.bytesPerElement=16,ze(\"StructArrayLayout4f16\",n);class s extends na{get anchorPointX(){return this._structArray.int16[this._pos2+0]}get anchorPointY(){return this._structArray.int16[this._pos2+1]}get x1(){return this._structArray.int16[this._pos2+2]}get y1(){return this._structArray.int16[this._pos2+3]}get x2(){return this._structArray.int16[this._pos2+4]}get y2(){return this._structArray.int16[this._pos2+5]}get featureIndex(){return this._structArray.uint32[this._pos4+3]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+8]}get bucketIndex(){return this._structArray.uint16[this._pos2+9]}get anchorPoint(){return new pe(this.anchorPointX,this.anchorPointY)}}s.prototype.size=20;class c extends Bl{get(e){return new s(this,e)}}ze(\"CollisionBoxArray\",c);class f extends na{get anchorX(){return this._structArray.int16[this._pos2+0]}get anchorY(){return this._structArray.int16[this._pos2+1]}get glyphStartIndex(){return this._structArray.uint16[this._pos2+2]}get numGlyphs(){return this._structArray.uint16[this._pos2+3]}get vertexStartIndex(){return this._structArray.uint32[this._pos4+2]}get lineStartIndex(){return this._structArray.uint32[this._pos4+3]}get lineLength(){return this._structArray.uint32[this._pos4+4]}get segment(){return this._structArray.uint16[this._pos2+10]}get lowerSize(){return this._structArray.uint16[this._pos2+11]}get upperSize(){return this._structArray.uint16[this._pos2+12]}get lineOffsetX(){return this._structArray.float32[this._pos4+7]}get lineOffsetY(){return this._structArray.float32[this._pos4+8]}get writingMode(){return this._structArray.uint8[this._pos1+36]}get placedOrientation(){return this._structArray.uint8[this._pos1+37]}set placedOrientation(e){this._structArray.uint8[this._pos1+37]=e}get hidden(){return this._structArray.uint8[this._pos1+38]}set hidden(e){this._structArray.uint8[this._pos1+38]=e}get crossTileID(){return this._structArray.uint32[this._pos4+10]}set crossTileID(e){this._structArray.uint32[this._pos4+10]=e}get associatedIconIndex(){return this._structArray.int16[this._pos2+22]}}f.prototype.size=48;class y extends kn{get(e){return new f(this,e)}}ze(\"PlacedSymbolArray\",y);class x extends na{get anchorX(){return this._structArray.int16[this._pos2+0]}get anchorY(){return this._structArray.int16[this._pos2+1]}get rightJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+2]}get centerJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+3]}get leftJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+4]}get verticalPlacedTextSymbolIndex(){return this._structArray.int16[this._pos2+5]}get placedIconSymbolIndex(){return this._structArray.int16[this._pos2+6]}get verticalPlacedIconSymbolIndex(){return this._structArray.int16[this._pos2+7]}get key(){return this._structArray.uint16[this._pos2+8]}get textBoxStartIndex(){return this._structArray.uint16[this._pos2+9]}get textBoxEndIndex(){return this._structArray.uint16[this._pos2+10]}get verticalTextBoxStartIndex(){return this._structArray.uint16[this._pos2+11]}get verticalTextBoxEndIndex(){return this._structArray.uint16[this._pos2+12]}get iconBoxStartIndex(){return this._structArray.uint16[this._pos2+13]}get iconBoxEndIndex(){return this._structArray.uint16[this._pos2+14]}get verticalIconBoxStartIndex(){return this._structArray.uint16[this._pos2+15]}get verticalIconBoxEndIndex(){return this._structArray.uint16[this._pos2+16]}get featureIndex(){return this._structArray.uint16[this._pos2+17]}get numHorizontalGlyphVertices(){return this._structArray.uint16[this._pos2+18]}get numVerticalGlyphVertices(){return this._structArray.uint16[this._pos2+19]}get numIconVertices(){return this._structArray.uint16[this._pos2+20]}get numVerticalIconVertices(){return this._structArray.uint16[this._pos2+21]}get useRuntimeCollisionCircles(){return this._structArray.uint16[this._pos2+22]}get crossTileID(){return this._structArray.uint32[this._pos4+12]}set crossTileID(e){this._structArray.uint32[this._pos4+12]=e}get textBoxScale(){return this._structArray.float32[this._pos4+13]}get collisionCircleDiameter(){return this._structArray.float32[this._pos4+14]}get textAnchorOffsetStartIndex(){return this._structArray.uint16[this._pos2+30]}get textAnchorOffsetEndIndex(){return this._structArray.uint16[this._pos2+31]}}x.prototype.size=64;class w extends Vl{get(e){return new x(this,e)}}ze(\"SymbolInstanceArray\",w);class S extends ss{getoffsetX(e){return this.float32[1*e+0]}}ze(\"GlyphOffsetArray\",S);class M extends is{getx(e){return this.int16[3*e+0]}gety(e){return this.int16[3*e+1]}gettileUnitDistanceFromAnchor(e){return this.int16[3*e+2]}}ze(\"SymbolLineVertexArray\",M);class E extends na{get textAnchor(){return this._structArray.uint16[this._pos2+0]}get textOffset0(){return this._structArray.float32[this._pos4+1]}get textOffset1(){return this._structArray.float32[this._pos4+2]}}E.prototype.size=12;class I extends ls{get(e){return new E(this,e)}}ze(\"TextAnchorOffsetArray\",I);class D extends na{get featureIndex(){return this._structArray.uint32[this._pos4+0]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+2]}get bucketIndex(){return this._structArray.uint16[this._pos2+3]}}D.prototype.size=8;class B extends jl{get(e){return new D(this,e)}}ze(\"FeatureIndexArray\",B);class V extends oa{}class q extends oa{}class N extends oa{}class G extends ns{}class X extends Fl{}class $ extends aa{}class U extends Br{}class H extends os{}class Z extends sa{}class te extends as{}class se extends la{}class ce extends fo{}class _e extends Ol{}class ge extends ca{}class Re extends d{}let Ce=It([{name:\"a_pos\",components:2,type:\"Int16\"}],4),{members:me}=Ce;class Ae{constructor(e=[]){this._forceNewSegmentOnNextPrepare=!1,this.segments=e}prepareSegment(e,i,o,a){let l=this.segments[this.segments.length-1];return e>Ae.MAX_VERTEX_ARRAY_LENGTH&&xt(`Max vertices per segment is ${Ae.MAX_VERTEX_ARRAY_LENGTH}: bucket requested ${e}. Consider using the \\`fillLargeMeshArrays\\` function if you require meshes with more than ${Ae.MAX_VERTEX_ARRAY_LENGTH} vertices.`),this._forceNewSegmentOnNextPrepare||!l||l.vertexLength+e>Ae.MAX_VERTEX_ARRAY_LENGTH||l.sortKey!==a?this.createNewSegment(i,o,a):l}createNewSegment(e,i,o){let a={vertexOffset:e.length,primitiveOffset:i.length,vertexLength:0,primitiveLength:0,vaos:{}};return o!==void 0&&(a.sortKey=o),this._forceNewSegmentOnNextPrepare=!1,this.segments.push(a),a}getOrCreateLatestSegment(e,i,o){return this.prepareSegment(0,e,i,o)}forceNewSegmentOnNextPrepare(){this._forceNewSegmentOnNextPrepare=!0}get(){return this.segments}destroy(){for(let e of this.segments)for(let i in e.vaos)e.vaos[i].destroy()}static simpleSegment(e,i,o,a){return new Ae([{vertexOffset:e,primitiveOffset:i,vertexLength:o,primitiveLength:a,vaos:{},sortKey:0}])}}function Be(r,e){return 256*(r=ti(Math.floor(r),0,255))+ti(Math.floor(e),0,255)}Ae.MAX_VERTEX_ARRAY_LENGTH=Math.pow(2,16)-1,ze(\"SegmentVector\",Ae);let _t=It([{name:\"a_pattern_from\",components:4,type:\"Uint16\"},{name:\"a_pattern_to\",components:4,type:\"Uint16\"},{name:\"a_pixel_ratio_from\",components:1,type:\"Uint16\"},{name:\"a_pixel_ratio_to\",components:1,type:\"Uint16\"}]),$t=It([{name:\"a_dasharray_from\",components:4,type:\"Uint16\"},{name:\"a_dasharray_to\",components:4,type:\"Uint16\"}]);var St,Wt,Xt,gi={exports:{}},jt={exports:{}},Ai={exports:{}},di=(function(){if(Xt)return gi.exports;Xt=1;var r=(St||(St=1,jt.exports=function(i,o){var a,l,u,p,g,m,v,_;for(l=i.length-(a=3&i.length),u=o,g=3432918353,m=461845907,_=0;_>>16)*g&65535)<<16)&4294967295)<<15|v>>>17))*m+(((v>>>16)*m&65535)<<16)&4294967295)<<13|u>>>19))+((5*(u>>>16)&65535)<<16)&4294967295))+((58964+(p>>>16)&65535)<<16);switch(v=0,a){case 3:v^=(255&i.charCodeAt(_+2))<<16;case 2:v^=(255&i.charCodeAt(_+1))<<8;case 1:u^=v=(65535&(v=(v=(65535&(v^=255&i.charCodeAt(_)))*g+(((v>>>16)*g&65535)<<16)&4294967295)<<15|v>>>17))*m+(((v>>>16)*m&65535)<<16)&4294967295}return u^=i.length,u=2246822507*(65535&(u^=u>>>16))+((2246822507*(u>>>16)&65535)<<16)&4294967295,u=3266489909*(65535&(u^=u>>>13))+((3266489909*(u>>>16)&65535)<<16)&4294967295,(u^=u>>>16)>>>0}),jt.exports),e=(Wt||(Wt=1,Ai.exports=function(i,o){for(var a,l=i.length,u=o^l,p=0;l>=4;)a=1540483477*(65535&(a=255&i.charCodeAt(p)|(255&i.charCodeAt(++p))<<8|(255&i.charCodeAt(++p))<<16|(255&i.charCodeAt(++p))<<24))+((1540483477*(a>>>16)&65535)<<16),u=1540483477*(65535&u)+((1540483477*(u>>>16)&65535)<<16)^(a=1540483477*(65535&(a^=a>>>24))+((1540483477*(a>>>16)&65535)<<16)),l-=4,++p;switch(l){case 3:u^=(255&i.charCodeAt(p+2))<<16;case 2:u^=(255&i.charCodeAt(p+1))<<8;case 1:u=1540483477*(65535&(u^=255&i.charCodeAt(p)))+((1540483477*(u>>>16)&65535)<<16)}return u=1540483477*(65535&(u^=u>>>13))+((1540483477*(u>>>16)&65535)<<16),(u^=u>>>15)>>>0}),Ai.exports);return gi.exports=r,gi.exports.murmur3=r,gi.exports.murmur2=e,gi.exports})(),ri=Ve(di);class _i{constructor(){this.ids=[],this.positions=[],this.indexed=!1}add(e,i,o,a){this.ids.push(tn(e)),this.positions.push(i,o,a)}getPositions(e){if(!this.indexed)throw new Error(\"Trying to get index, but feature positions are not indexed\");let i=tn(e),o=0,a=this.ids.length-1;for(;o>1;this.ids[u]>=i?a=u:o=u+1}let l=[];for(;this.ids[o]===i;)l.push({index:this.positions[3*o],start:this.positions[3*o+1],end:this.positions[3*o+2]}),o++;return l}static serialize(e,i){let o=new Float64Array(e.ids),a=new Uint32Array(e.positions);return rn(o,a,0,o.length-1),i&&i.push(o.buffer,a.buffer),{ids:o,positions:a}}static deserialize(e){let i=new _i;return i.ids=e.ids,i.positions=e.positions,i.indexed=!0,i}}function tn(r){let e=+r;return!isNaN(e)&&e<=Number.MAX_SAFE_INTEGER?e:ri(String(r))}function rn(r,e,i,o){for(;i>1],l=i-1,u=o+1;for(;;){do l++;while(r[l]a);if(l>=u)break;nn(r,l,u),nn(e,3*l,3*u),nn(e,3*l+1,3*u+1),nn(e,3*l+2,3*u+2)}u-i`u_${a}`)),this.type=o}setUniform(e,i,o){e.set(o.constantOr(this.value))}getBinding(e,i,o){return this.type===\"color\"?new cs(e,i):new Or(e,i)}}class or{constructor(e,i){this.uniformNames=i.map((o=>`u_${o}`)),this.patternFrom=null,this.patternTo=null,this.pixelRatioFrom=1,this.pixelRatioTo=1}setConstantPatternPositions(e,i){this.pixelRatioFrom=i.pixelRatio,this.pixelRatioTo=e.pixelRatio,this.patternFrom=i.tlbr,this.patternTo=e.tlbr}setConstantDashPositions(e,i){this.dashTo=[0,e.y,e.height,e.width],this.dashFrom=[0,i.y,i.height,i.width]}setUniform(e,i,o,a){let l=null;a===\"u_pattern_to\"?l=this.patternTo:a===\"u_pattern_from\"?l=this.patternFrom:a===\"u_dasharray_to\"?l=this.dashTo:a===\"u_dasharray_from\"?l=this.dashFrom:a===\"u_pixel_ratio_to\"?l=this.pixelRatioTo:a===\"u_pixel_ratio_from\"&&(l=this.pixelRatioFrom),l!==null&&e.set(l)}getBinding(e,i,o){return o.startsWith(\"u_pattern\")||o.startsWith(\"u_dasharray_\")?new on(e,i):new Or(e,i)}}class Ft{constructor(e,i,o,a){this.expression=e,this.type=o,this.maxValue=0,this.paintVertexAttributes=i.map((l=>({name:`a_${l}`,type:\"Float32\",components:o===\"color\"?2:1,offset:0}))),this.paintVertexArray=new a}populatePaintArray(e,i,o){let a=this.paintVertexArray.length,l=this.expression.evaluate(new Et(0,o),i,{},o.canonical,[],o.formattedSection);this.paintVertexArray.resize(e),this._setPaintValue(a,e,l)}updatePaintArray(e,i,o,a,l){let u=this.expression.evaluate(new Et(0,l),o,a);this._setPaintValue(e,i,u)}_setPaintValue(e,i,o){if(this.type===\"color\"){let a=Pr(o);for(let l=e;l`u_${p}_t`)),this.type=o,this.useIntegerZoom=a,this.zoom=l,this.maxValue=0,this.paintVertexAttributes=i.map((p=>({name:`a_${p}`,type:\"Float32\",components:o===\"color\"?4:2,offset:0}))),this.paintVertexArray=new u}populatePaintArray(e,i,o){let a=this.expression.evaluate(new Et(this.zoom,o),i,{},o.canonical,[],o.formattedSection),l=this.expression.evaluate(new Et(this.zoom+1,o),i,{},o.canonical,[],o.formattedSection),u=this.paintVertexArray.length;this.paintVertexArray.resize(e),this._setPaintValue(u,e,a,l)}updatePaintArray(e,i,o,a,l){let u=this.expression.evaluate(new Et(this.zoom,l),o,a),p=this.expression.evaluate(new Et(this.zoom+1,l),o,a);this._setPaintValue(e,i,u,p)}_setPaintValue(e,i,o,a){if(this.type===\"color\"){let l=Pr(o),u=Pr(a);for(let p=e;p`#define HAS_UNIFORM_${a}`)))}return e}getBinderAttributes(){let e=[];for(let i in this.binders){let o=this.binders[i];if(o instanceof Ft||o instanceof At)for(let a of o.paintVertexAttributes)e.push(a.name);else if(o instanceof Yt){let a=o.getVertexAttributes();for(let l of a)e.push(l.name)}}return e}getBinderUniforms(){let e=[];for(let i in this.binders){let o=this.binders[i];if(o instanceof Xi||o instanceof or||o instanceof At)for(let a of o.uniformNames)e.push(a)}return e}getPaintVertexBuffers(){return this._buffers}getUniforms(e,i){let o=[];for(let a in this.binders){let l=this.binders[a];if(l instanceof Xi||l instanceof or||l instanceof At){for(let u of l.uniformNames)if(i[u]){let p=l.getBinding(e,i[u],u);o.push({name:u,property:a,binding:p})}}}return o}setUniforms(e,i,o,a){for(let{name:l,property:u,binding:p}of i)this.binders[u].setUniform(p,a,o.get(u),l)}updatePaintBuffers(e){this._buffers=[];for(let i in this.binders){let o=this.binders[i];if(e&&o instanceof Yt){let a=e.fromScale===2?o.zoomInPaintVertexBuffer:o.zoomOutPaintVertexBuffer;a&&this._buffers.push(a)}else(o instanceof Ft||o instanceof At)&&o.paintVertexBuffer&&this._buffers.push(o.paintVertexBuffer)}}upload(e){for(let i in this.binders){let o=this.binders[i];(o instanceof Ft||o instanceof At||o instanceof Yt)&&o.upload(e)}this.updatePaintBuffers()}destroy(){for(let e in this.binders){let i=this.binders[e];(i instanceof Ft||i instanceof At||i instanceof Yt)&&i.destroy()}}}class Vr{constructor(e,i,o=()=>!0){this.programConfigurations={};for(let a of e)this.programConfigurations[a.id]=new us(a,i,o);this.needsUpload=!1,this._featureMap=new _i,this._bufferOffset=0}populatePaintArrays(e,i,o,a){for(let l in this.programConfigurations)this.programConfigurations[l].populatePaintArrays(e,i,a);i.id!==void 0&&this._featureMap.add(i.id,o,this._bufferOffset,e),this._bufferOffset=e,this.needsUpload=!0}updatePaintArrays(e,i,o,a){for(let l of o)this.needsUpload=this.programConfigurations[l.id].updatePaintArrays(e,this._featureMap,i,l,a)||this.needsUpload}get(e){return this.programConfigurations[e]}upload(e){if(this.needsUpload){for(let i in this.programConfigurations)this.programConfigurations[i].upload(e);this.needsUpload=!1}}destroy(){for(let e in this.programConfigurations)this.programConfigurations[e].destroy()}}function Nl(r,e){return{\"text-opacity\":[\"opacity\"],\"icon-opacity\":[\"opacity\"],\"text-color\":[\"fill_color\"],\"icon-color\":[\"fill_color\"],\"text-halo-color\":[\"halo_color\"],\"icon-halo-color\":[\"halo_color\"],\"text-halo-blur\":[\"halo_blur\"],\"icon-halo-blur\":[\"halo_blur\"],\"text-halo-width\":[\"halo_width\"],\"icon-halo-width\":[\"halo_width\"],\"line-gap-width\":[\"gapwidth\"],\"line-dasharray\":[\"dasharray_to\",\"dasharray_from\"],\"line-pattern\":[\"pattern_to\",\"pattern_from\",\"pixel_ratio_to\",\"pixel_ratio_from\"],\"fill-pattern\":[\"pattern_to\",\"pattern_from\",\"pixel_ratio_to\",\"pixel_ratio_from\"],\"fill-extrusion-pattern\":[\"pattern_to\",\"pattern_from\",\"pixel_ratio_to\",\"pixel_ratio_from\"]}[r]||[r.replace(`${e}-`,\"\").replace(/-/g,\"_\")]}function gu(r,e,i){let o={color:{source:aa,composite:n},number:{source:ss,composite:aa}},a=(function(l){return{\"line-pattern\":{source:U,composite:U},\"fill-pattern\":{source:U,composite:U},\"fill-extrusion-pattern\":{source:U,composite:U},\"line-dasharray\":{source:H,composite:H}}[l]})(r);return a?.[i]||o[e][i]}ze(\"ConstantBinder\",Xi),ze(\"CrossFadedConstantBinder\",or),ze(\"SourceExpressionBinder\",Ft),ze(\"CrossFadedPatternBinder\",Bt),ze(\"CrossFadedDasharrayBinder\",Rn),ze(\"CompositeExpressionBinder\",At),ze(\"ProgramConfiguration\",us,{omit:[\"_buffers\"]}),ze(\"ProgramConfigurationSet\",Vr);let Ul=Math.pow(2,14)-1,an=-Ul-1;function sn(r){let e=qe/r.extent,i=r.loadGeometry();for(let o of i)for(let a of o){let l=Math.round(a.x*e),u=Math.round(a.y*e);a.x=ti(l,an,Ul),a.y=ti(u,an,Ul),(la.x+1||ua.y+1)&&xt(\"Geometry exceeds allowed extent, reduce your vector tile buffer size\")}return i}function ln(r,e){return{type:r.type,id:r.id,properties:r.properties,geometry:e?sn(r):[]}}let ql=-32768;function Gl(r,e,i,o,a){r.emplaceBack(ql+8*e+o,ql+8*i+a)}class hs{constructor(e){this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map((i=>i.id)),this.index=e.index,this.hasDependencies=!1,this.layoutVertexArray=new q,this.indexArray=new ge,this.segments=new Ae,this.programConfigurations=new Vr(e.layers,e.zoom),this.stateDependentLayerIds=this.layers.filter((i=>i.isStateDependent())).map((i=>i.id))}populate(e,i,o){let a=this.layers[0],l=[],u=null,p=!1,g=a.type===\"heatmap\";if(a.type===\"circle\"){let v=a;u=v.layout.get(\"circle-sort-key\"),p=!u.isConstant(),g||(g=v.paint.get(\"circle-pitch-alignment\")===\"map\")}let m=g?i.subdivisionGranularity.circle:1;for(let{feature:v,id:_,index:T,sourceLayerIndex:b}of e){let P=this.layers[0]._featureFilter.needGeometry,C=ln(v,P);if(!this.layers[0]._featureFilter.filter(new Et(this.zoom),C,o))continue;let A=p?u.evaluate(C,{},o):void 0,z={id:_,properties:v.properties,type:v.type,sourceLayerIndex:b,index:T,geometry:P?C.geometry:sn(v),patterns:{},sortKey:A};l.push(z)}p&&l.sort(((v,_)=>v.sortKey-_.sortKey));for(let v of l){let{geometry:_,index:T,sourceLayerIndex:b}=v,P=e[T].feature;this.addFeature(v,_,T,o,m),i.featureIndex.insert(P,_,T,b,this.index)}}update(e,i,o){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,i,this.stateDependentLayers,{imagePositions:o})}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,me),this.indexBuffer=e.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}addFeature(e,i,o,a,l=1){let u;switch(l){case 1:u=[0,7];break;case 3:u=[0,2,5,7];break;case 5:u=[0,1,3,4,6,7];break;case 7:u=[0,1,2,3,4,5,6,7];break;default:throw new Error(`Invalid circle bucket granularity: ${l}; valid values are 1, 3, 5, 7.`)}let p=u.length;for(let g of i)for(let m of g){let v=m.x,_=m.y;if(v<0||v>=qe||_<0||_>=qe)continue;let T=this.segments.prepareSegment(p*p,this.layoutVertexArray,this.indexArray,e.sortKey),b=T.vertexLength;for(let P=0;P1){if(xh(r,e))return!0;for(let o of e)if(bh(o,r,i))return!0}for(let o of r)if(bh(o,e,i))return!0;return!1}function xh(r,e){if(r.length===0||e.length===0)return!1;for(let i=0;i1?i:i.sub(e)._mult(a)._add(e))}function Nd(r,e){let i,o,a,l=!1;for(let u of r){i=u;for(let p=0,g=i.length-1;pe.y!=a.y>e.y&&e.x<(a.x-o.x)*(e.y-o.y)/(a.y-o.y)+o.x&&(l=!l)}return l}function ps(r,e){let i=!1;for(let o=0,a=r.length-1;oe.y!=u.y>e.y&&e.x<(u.x-l.x)*(e.y-l.y)/(u.y-l.y)+l.x&&(i=!i)}return i}function Dm(r,e,i){let o=i[0],a=i[2];if(r.xa.x&&e.x>a.x||r.ya.y&&e.y>a.y)return!1;let l=ht(r,e,i[0]);return l!==ht(r,e,i[1])||l!==ht(r,e,i[2])||l!==ht(r,e,i[3])}function fs(r,e,i){let o=e.paint.get(r).value;return o.kind===\"constant\"?o.value:i.programConfigurations.get(e.id).getMaxValue(r)}function yu(r){return Math.sqrt(r[0]*r[0]+r[1]*r[1])}function vu(r,e,i,o,a){if(!e[0]&&!e[1])return r;let l=pe.convert(e)._mult(a);i===\"viewport\"&&l._rotate(-o);let u=[];for(let p of r)u.push(p.sub(l));return u}function km(r){let e=[];for(let i=0;iwh(R,A,z,L)))})(m,l,p,g),P=v),Ud({queryGeometry:b,size:P,transform:l,unwrappedTileID:p,getElevation:g,pitchAlignment:T,pitchScale:_},a)}}class $d extends hs{}let Zd;ze(\"HeatmapBucket\",$d,{omit:[\"layers\"]});var jm={get paint(){return Zd=Zd||new Ii({\"heatmap-radius\":new Ue(de.paint_heatmap[\"heatmap-radius\"]),\"heatmap-weight\":new Ue(de.paint_heatmap[\"heatmap-weight\"]),\"heatmap-intensity\":new Le(de.paint_heatmap[\"heatmap-intensity\"]),\"heatmap-color\":new po(de.paint_heatmap[\"heatmap-color\"]),\"heatmap-opacity\":new Le(de.paint_heatmap[\"heatmap-opacity\"])})}};function Th(r,{width:e,height:i},o,a){if(a){if(a instanceof Uint8ClampedArray)a=new Uint8Array(a.buffer);else if(a.length!==e*i*o)throw new RangeError(`mismatched image size. expected: ${a.length} but got: ${e*i*o}`)}else a=new Uint8Array(e*i*o);return r.width=e,r.height=i,r.data=a,r}function Wd(r,{width:e,height:i},o){if(e===r.width&&i===r.height)return;let a=Th({},{width:e,height:i},o);Sh(r,a,{x:0,y:0},{x:0,y:0},{width:Math.min(r.width,e),height:Math.min(r.height,i)},o),r.width=e,r.height=i,r.data=a.data}function Sh(r,e,i,o,a,l){if(a.width===0||a.height===0)return e;if(a.width>r.width||a.height>r.height||i.x>r.width-a.width||i.y>r.height-a.height)throw new RangeError(\"out of range source coordinates for image copy\");if(a.width>e.width||a.height>e.height||o.x>e.width-a.width||o.y>e.height-a.height)throw new RangeError(\"out of range destination coordinates for image copy\");let u=r.data,p=e.data;if(u===p)throw new Error(\"srcData equals dstData, so image is already copied\");for(let g=0;g{e[r.evaluationKey]=g;let m=r.expression.evaluate(e);a.setPixel(u/4/i,p/4,m)};if(r.clips)for(let u=0,p=0;uthis.max&&(this.max=_),_=this.dim+1||i<-1||i>=this.dim+1)throw new RangeError(`Out of range source coordinates for DEM data. x: ${e}, y: ${i}, dim: ${this.dim}`);return(i+1)*this.stride+(e+1)}unpack(e,i,o){return e*this.redFactor+i*this.greenFactor+o*this.blueFactor-this.baseShift}pack(e){return ep(e,this.getUnpackVector())}getPixels(){return new Yi({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))}backfillBorder(e,i,o){if(this.dim!==e.dim)throw new Error(\"dem dimension mismatch\");let a=i*this.dim,l=i*this.dim+this.dim,u=o*this.dim,p=o*this.dim+this.dim;switch(i){case-1:a=l-1;break;case 1:l=a+1}switch(o){case-1:u=p-1;break;case 1:p=u+1}let g=-i*this.dim,m=-o*this.dim;for(let v=u;v0)for(let u=e;u=e;u-=o)l=op(u/o|0,r[u],r[u+1],l);return l&&ms(l,l.next)&&(Xl(l),l=l.next),l}function ua(r,e){if(!r)return r;e||(e=r);let i,o=r;do if(i=!1,o.steiner||!ms(o,o.next)&&Ht(o.prev,o,o.next)!==0)o=o.next;else{if(Xl(o),o=e=o.prev,o===o.next)break;i=!0}while(i||o!==e);return e}function Zl(r,e,i,o,a,l,u){if(!r)return;!u&&l&&(function(g,m,v,_){let T=g;do T.z===0&&(T.z=Eh(T.x,T.y,m,v,_)),T.prevZ=T.prev,T.nextZ=T.next,T=T.next;while(T!==g);T.prevZ.nextZ=null,T.prevZ=null,(function(b){let P,C=1;do{let A,z=b;b=null;let L=null;for(P=0;z;){P++;let R=z,F=0;for(let j=0;j0||O>0&&R;)F!==0&&(O===0||!R||z.z<=R.z)?(A=z,z=z.nextZ,F--):(A=R,R=R.nextZ,O--),L?L.nextZ=A:b=A,A.prevZ=L,L=A;z=R}L.nextZ=null,C*=2}while(P>1)})(T)})(r,o,a,l);let p=r;for(;r.prev!==r.next;){let g=r.prev,m=r.next;if(l?Xm(r,o,a,l):Hm(r))e.push(g.i,r.i,m.i),Xl(r),r=m.next,p=m.next;else if((r=m)===p){u?u===1?Zl(r=Ym(ua(r),e),e,i,o,a,l,2):u===2&&Km(r,e,i,o,a,l):Zl(ua(r),e,i,o,a,l,1);break}}}function Hm(r){let e=r.prev,i=r,o=r.next;if(Ht(e,i,o)>=0)return!1;let a=e.x,l=i.x,u=o.x,p=e.y,g=i.y,m=o.y,v=Math.min(a,l,u),_=Math.min(p,g,m),T=Math.max(a,l,u),b=Math.max(p,g,m),P=o.next;for(;P!==e;){if(P.x>=v&&P.x<=T&&P.y>=_&&P.y<=b&&Wl(a,p,l,g,u,m,P.x,P.y)&&Ht(P.prev,P,P.next)>=0)return!1;P=P.next}return!0}function Xm(r,e,i,o){let a=r.prev,l=r,u=r.next;if(Ht(a,l,u)>=0)return!1;let p=a.x,g=l.x,m=u.x,v=a.y,_=l.y,T=u.y,b=Math.min(p,g,m),P=Math.min(v,_,T),C=Math.max(p,g,m),A=Math.max(v,_,T),z=Eh(b,P,e,i,o),L=Eh(C,A,e,i,o),R=r.prevZ,F=r.nextZ;for(;R&&R.z>=z&&F&&F.z<=L;){if(R.x>=b&&R.x<=C&&R.y>=P&&R.y<=A&&R!==a&&R!==u&&Wl(p,v,g,_,m,T,R.x,R.y)&&Ht(R.prev,R,R.next)>=0||(R=R.prevZ,F.x>=b&&F.x<=C&&F.y>=P&&F.y<=A&&F!==a&&F!==u&&Wl(p,v,g,_,m,T,F.x,F.y)&&Ht(F.prev,F,F.next)>=0))return!1;F=F.nextZ}for(;R&&R.z>=z;){if(R.x>=b&&R.x<=C&&R.y>=P&&R.y<=A&&R!==a&&R!==u&&Wl(p,v,g,_,m,T,R.x,R.y)&&Ht(R.prev,R,R.next)>=0)return!1;R=R.prevZ}for(;F&&F.z<=L;){if(F.x>=b&&F.x<=C&&F.y>=P&&F.y<=A&&F!==a&&F!==u&&Wl(p,v,g,_,m,T,F.x,F.y)&&Ht(F.prev,F,F.next)>=0)return!1;F=F.nextZ}return!0}function Ym(r,e){let i=r;do{let o=i.prev,a=i.next.next;!ms(o,a)&&rp(o,i,i.next,a)&&Hl(o,a)&&Hl(a,o)&&(e.push(o.i,i.i,a.i),Xl(i),Xl(i.next),i=r=a),i=i.next}while(i!==r);return ua(i)}function Km(r,e,i,o,a,l){let u=r;do{let p=u.next.next;for(;p!==u.prev;){if(u.i!==p.i&&ig(u,p)){let g=np(u,p);return u=ua(u,u.next),g=ua(g,g.next),Zl(u,e,i,o,a,l,0),void Zl(g,e,i,o,a,l,0)}p=p.next}u=u.next}while(u!==r)}function Jm(r,e){let i=r.x-e.x;return i===0&&(i=r.y-e.y,i===0)&&(i=(r.next.y-r.y)/(r.next.x-r.x)-(e.next.y-e.y)/(e.next.x-e.x)),i}function Qm(r,e){let i=(function(a,l){let u=l,p=a.x,g=a.y,m,v=-1/0;if(ms(a,u))return u;do{if(ms(a,u.next))return u.next;if(g<=u.y&&g>=u.next.y&&u.next.y!==u.y){let C=u.x+(g-u.y)*(u.next.x-u.x)/(u.next.y-u.y);if(C<=p&&C>v&&(v=C,m=u.x=u.x&&u.x>=T&&p!==u.x&&ip(gm.x||u.x===m.x&&eg(m,u)))&&(m=u,P=C)}u=u.next}while(u!==_);return m})(r,e);if(!i)return e;let o=np(i,r);return ua(o,o.next),ua(i,i.next)}function eg(r,e){return Ht(r.prev,r,e.prev)<0&&Ht(e.next,r,r.next)<0}function Eh(r,e,i,o,a){return(r=1431655765&((r=858993459&((r=252645135&((r=16711935&((r=(r-i)*a|0)|r<<8))|r<<4))|r<<2))|r<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=(e-o)*a|0)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function tg(r){let e=r,i=r;do(e.x=(r-u)*(l-p)&&(r-u)*(o-p)>=(i-u)*(e-p)&&(i-u)*(l-p)>=(a-u)*(o-p)}function Wl(r,e,i,o,a,l,u,p){return!(r===u&&e===p)&&ip(r,e,i,o,a,l,u,p)}function ig(r,e){return r.next.i!==e.i&&r.prev.i!==e.i&&!(function(i,o){let a=i;do{if(a.i!==i.i&&a.next.i!==i.i&&a.i!==o.i&&a.next.i!==o.i&&rp(a,a.next,i,o))return!0;a=a.next}while(a!==i);return!1})(r,e)&&(Hl(r,e)&&Hl(e,r)&&(function(i,o){let a=i,l=!1,u=(i.x+o.x)/2,p=(i.y+o.y)/2;do a.y>p!=a.next.y>p&&a.next.y!==a.y&&u<(a.next.x-a.x)*(p-a.y)/(a.next.y-a.y)+a.x&&(l=!l),a=a.next;while(a!==i);return l})(r,e)&&(Ht(r.prev,r,e.prev)||Ht(r,e.prev,e))||ms(r,e)&&Ht(r.prev,r,r.next)>0&&Ht(e.prev,e,e.next)>0)}function Ht(r,e,i){return(e.y-r.y)*(i.x-e.x)-(e.x-r.x)*(i.y-e.y)}function ms(r,e){return r.x===e.x&&r.y===e.y}function rp(r,e,i,o){let a=wu(Ht(r,e,i)),l=wu(Ht(r,e,o)),u=wu(Ht(i,o,r)),p=wu(Ht(i,o,e));return a!==l&&u!==p||!(a!==0||!bu(r,i,e))||!(l!==0||!bu(r,o,e))||!(u!==0||!bu(i,r,o))||!(p!==0||!bu(i,e,o))}function bu(r,e,i){return e.x<=Math.max(r.x,i.x)&&e.x>=Math.min(r.x,i.x)&&e.y<=Math.max(r.y,i.y)&&e.y>=Math.min(r.y,i.y)}function wu(r){return r>0?1:r<0?-1:0}function Hl(r,e){return Ht(r.prev,r,r.next)<0?Ht(r,e,r.next)>=0&&Ht(r,r.prev,e)>=0:Ht(r,e,r.prev)<0||Ht(r,r.next,e)<0}function np(r,e){let i=Ih(r.i,r.x,r.y),o=Ih(e.i,e.x,e.y),a=r.next,l=e.prev;return r.next=e,e.prev=r,i.next=a,a.prev=i,o.next=i,i.prev=o,l.next=o,o.prev=l,o}function op(r,e,i,o){let a=Ih(r,e,i);return o?(a.next=o.next,a.prev=o,o.next.prev=a,o.next=a):(a.prev=a,a.next=a),a}function Xl(r){r.next.prev=r.prev,r.prev.next=r.next,r.prevZ&&(r.prevZ.nextZ=r.nextZ),r.nextZ&&(r.nextZ.prevZ=r.prevZ)}function Ih(r,e,i){return{i:r,x:e,y:i,prev:null,next:null,z:0,prevZ:null,nextZ:null,steiner:!1}}class gs{constructor(e,i){if(i>e)throw new Error(\"Min granularity must not be greater than base granularity.\");this._baseZoomGranularity=e,this._minGranularity=i}getGranularityForZoomLevel(e){return Math.max(Math.floor(this._baseZoomGranularity/(1<32767||i>32767)throw new Error(\"Vertex coordinates are out of signed 16 bit integer range.\");let o=0|Math.round(e),a=0|Math.round(i),l=this._getKey(o,a);if(this._vertexDictionary.has(l))return this._vertexDictionary.get(l);let u=this._vertexBuffer.length/2;return this._vertexDictionary.set(l,u),this._vertexBuffer.push(o,a),u}_subdivideTrianglesScanline(e){if(this._granularity<2)return(function(a,l){let u=[];for(let p=0;p0?(u.push(g),u.push(v),u.push(m)):(u.push(g),u.push(m),u.push(v))}return u})(this._vertexBuffer,e);let i=[],o=e.length;for(let a=0;a=1||O<=0)||z&&(ml)){_>=a&&_<=l&&u.push(o[(p+1)%3]);continue}!z&&F>0&&u.push(this._vertexToIndex(g+P*F,m+C*F));let j=g+P*Math.max(F,0),Y=g+P*Math.min(O,1);A||this._generateIntraEdgeVertices(u,g,m,v,_,j,Y),!z&&O<1&&u.push(this._vertexToIndex(g+P*O,m+C*O)),(z||_>=a&&_<=l)&&u.push(o[(p+1)%3]),!z&&(_<=a||_>=l)&&this._generateInterEdgeVertices(u,g,m,v,_,T,b,Y,a,l)}return u}_generateIntraEdgeVertices(e,i,o,a,l,u,p){let g=a-i,m=l-o,v=m===0,_=v?Math.min(i,a):Math.min(u,p),T=v?Math.max(i,a):Math.max(u,p),b=Math.floor(_/this._granularityCellSize)+1,P=Math.ceil(T/this._granularityCellSize)-1;if(v?i=b;C--){let A=C*this._granularityCellSize;e.push(this._vertexToIndex(A,o+m*(A-i)/g))}}_generateInterEdgeVertices(e,i,o,a,l,u,p,g,m,v){let _=l-o,T=u-a,b=p-l,P=(m-l)/b,C=(v-l)/b,A=Math.min(P,C),z=Math.max(P,C),L=a+T*A,R=Math.floor(Math.min(L,g)/this._granularityCellSize)+1,F=Math.ceil(Math.max(L,g)/this._granularityCellSize)-1,O=g=1||z<=0){let Q=o-p,oe=u+(i-u)*Math.min((m-p)/Q,(v-p)/Q);R=Math.floor(Math.min(oe,g)/this._granularityCellSize)+1,F=Math.ceil(Math.max(oe,g)/this._granularityCellSize)-1,O=g0?v:m;if(O)for(let Q=R;Q<=F;Q++)e.push(this._vertexToIndex(Q*this._granularityCellSize,Y));else for(let Q=F;Q>=R;Q--)e.push(this._vertexToIndex(Q*this._granularityCellSize,Y))}_generateOutline(e){let i=[];for(let o of e){let a=ha(o,this._granularity,!0),l=this._pointArrayToIndices(a),u=[];for(let p=1;pl!=(u===_s)?(e.push(i),e.push(o),e.push(this._vertexToIndex(a,u)),e.push(o),e.push(this._vertexToIndex(l,u)),e.push(this._vertexToIndex(a,u))):(e.push(o),e.push(i),e.push(this._vertexToIndex(a,u)),e.push(this._vertexToIndex(l,u)),e.push(o),e.push(this._vertexToIndex(a,u)))}_fillPoles(e,i,o){let a=this._vertexBuffer,l=qe,u=e.length;for(let p=2;p80*_){A=m[0],z=m[1];let R=A,F=z;for(let O=_;OR&&(R=j),Y>F&&(F=Y)}L=Math.max(R-A,F-z),L=L!==0?32767/L:0}return Zl(P,C,_,A,z,L,0),C})(o,a),g=this._convertIndices(o,p);l=this._subdivideTrianglesScanline(g)}catch(p){console.error(p)}let u=[];return i&&(u=this._generateOutline(e)),this._ensureNoPoleVertices(),this._handlePoles(l),{verticesFlattened:this._vertexBuffer,indicesTriangles:l,indicesLineList:u}}_convertIndices(e,i){let o=[];for(let a of i)o.push(this._vertexToIndex(e[2*a],e[2*a+1]));return o}_pointArrayToIndices(e){let i=[];for(let o of e)i.push(this._vertexToIndex(o.x,o.y));return i}}function ap(r,e,i,o=!0){return new rg(i,e).subdividePolygonInternal(r,o)}function ha(r,e,i=!1){if(!r||r.length<1)return[];if(r.length<2)return[];let o=r[0],a=r[r.length-1],l=i&&(o.x!==a.x||o.y!==a.y);if(e<2)return l?[...r,r[0]]:[...r];let u=Math.floor(qe/e),p=[];p.push(new pe(r[0].x,r[0].y));let g=r.length,m=l?g:g-1;for(let v=0;v0?(Math.floor(Y/u)+1)*u:(Math.ceil(Y/u)-1)*u,ue=F>0?(Math.floor(Q/u)+1)*u:(Math.ceil(Q/u)-1)*u,he=Math.abs(Y-ie),ae=Math.abs(Q-ue),ne=Math.abs(Y-C),be=Math.abs(Q-A),Ee=z?he/O:Number.POSITIVE_INFINITY,Pe=L?ae/j:Number.POSITIVE_INFINITY;if((ne<=he||!z)&&(be<=ae||!L))break;if(Ee=0?u-1:l-1,m=(p+1)%l,v=r[2*e[g]],_=r[2*e[m]],T=r[2*e[u]],b=r[2*e[u]+1],P=r[2*e[p]+1],C=!1;if(v<_)C=!0;else if(v>_)C=!1;else{let A=P-b,z=-(r[2*e[p]]-T),L=b((_-T)*A+(r[2*e[m]+1]-b)*z)*L&&(C=!0)}if(C){let A=e[g],z=e[u],L=e[p];A!==z&&A!==L&&z!==L&&i.push(L,z,A),u--,u<0&&(u=l-1)}else{let A=e[m],z=e[u],L=e[p];A!==z&&A!==L&&z!==L&&i.push(L,z,A),p++,p>=l&&(p=0)}if(g===m)break}}function sp(r,e,i,o,a,l,u,p,g){let m=a.length/2,v=u&&p&&g;if(mAe.MAX_VERTEX_ARRAY_LENGTH&&(F=_.createNewSegment(T,b),R=L.count,ie=!0,ue=!0,he=!0,O=0);let ae=Kl(z,P,A,L,Y,ie,F),ne=Kl(z,P,A,L,Q,ue,F),be=Kl(z,P,A,L,oe,he,F);b.emplaceBack(O+ae-R,O+ne-R,O+be-R),F.primitiveLength++}})(e,i,o,a,l,r),v&&(function(_,T,b,P,C,A){let z=[];for(let j=0;jAe.MAX_VERTEX_ARRAY_LENGTH&&(F=_.createNewSegment(T,b),R=L.count,ie=!0,ue=!0,O=0);let he=Kl(z,P,A,L,Q,ie,F),ae=Kl(z,P,A,L,oe,ue,F);b.emplaceBack(O+he-R,O+ae-R),F.primitiveLength++}})(u,i,p,a,g,r),e.forceNewSegmentOnNextPrepare(),u?.forceNewSegmentOnNextPrepare()}function Kl(r,e,i,o,a,l,u){if(l){let p=o.count;return i(e[2*a],e[2*a+1]),r[a]=o.count,o.count++,u.vertexLength++,p}return r[a]}class Ah{constructor(e){this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map((i=>i.id)),this.index=e.index,this.hasDependencies=!1,this.patternFeatures=[],this.layoutVertexArray=new N,this.indexArray=new ge,this.indexArray2=new Re,this.programConfigurations=new Vr(e.layers,e.zoom),this.segments=new Ae,this.segments2=new Ae,this.stateDependentLayerIds=this.layers.filter((i=>i.isStateDependent())).map((i=>i.id))}populate(e,i,o){this.hasDependencies=xu(\"fill\",this.layers,i);let a=this.layers[0].layout.get(\"fill-sort-key\"),l=!a.isConstant(),u=[];for(let{feature:p,id:g,index:m,sourceLayerIndex:v}of e){let _=this.layers[0]._featureFilter.needGeometry,T=ln(p,_);if(!this.layers[0]._featureFilter.filter(new Et(this.zoom),T,o))continue;let b=l?a.evaluate(T,{},o,i.availableImages):void 0,P={id:g,properties:p.properties,type:p.type,sourceLayerIndex:v,index:m,geometry:_?T.geometry:sn(p),patterns:{},sortKey:b};u.push(P)}l&&u.sort(((p,g)=>p.sortKey-g.sortKey));for(let p of u){let{geometry:g,index:m,sourceLayerIndex:v}=p;if(this.hasDependencies){let _=Ch(\"fill\",this.layers,p,{zoom:this.zoom},i);this.patternFeatures.push(_)}else this.addFeature(p,g,m,o,{},i.subdivisionGranularity);i.featureIndex.insert(e[m].feature,g,m,v,this.index)}}update(e,i,o){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,i,this.stateDependentLayers,{imagePositions:o})}addFeatures(e,i,o){for(let a of this.patternFeatures)this.addFeature(a,a.geometry,a.index,i,o,e.subdivisionGranularity)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,Wm),this.indexBuffer=e.createIndexBuffer(this.indexArray),this.indexBuffer2=e.createIndexBuffer(this.indexArray2)),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.indexBuffer2.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.segments2.destroy())}addFeature(e,i,o,a,l,u){for(let p of Fa(i,500)){let g=ap(p,a,u.fill.getGranularityForZoomLevel(a.z)),m=this.layoutVertexArray;sp(((v,_)=>{m.emplaceBack(v,_)}),this.segments,this.layoutVertexArray,this.indexArray,g.verticesFlattened,g.indicesTriangles,this.segments2,this.indexArray2,g.indicesLineList)}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,o,{imagePositions:l,canonical:a})}}let lp,cp;ze(\"FillBucket\",Ah,{omit:[\"layers\",\"patternFeatures\"]});var og={get paint(){return cp=cp||new Ii({\"fill-antialias\":new Le(de.paint_fill[\"fill-antialias\"]),\"fill-opacity\":new Ue(de.paint_fill[\"fill-opacity\"]),\"fill-color\":new Ue(de.paint_fill[\"fill-color\"]),\"fill-outline-color\":new Ue(de.paint_fill[\"fill-outline-color\"]),\"fill-translate\":new Le(de.paint_fill[\"fill-translate\"]),\"fill-translate-anchor\":new Le(de.paint_fill[\"fill-translate-anchor\"]),\"fill-pattern\":new en(de.paint_fill[\"fill-pattern\"])})},get layout(){return lp=lp||new Ii({\"fill-sort-key\":new Ue(de.layout_fill[\"fill-sort-key\"])})}};class ag extends nr{constructor(e,i){super(e,og,i)}recalculate(e,i){super.recalculate(e,i);let o=this.paint._values[\"fill-outline-color\"];o.value.kind===\"constant\"&&o.value.value===void 0&&(this.paint._values[\"fill-outline-color\"]=this.paint._values[\"fill-color\"])}createBucket(e){return new Ah(e)}queryRadius(){return yu(this.paint.get(\"fill-translate\"))}queryIntersectsFeature({queryGeometry:e,geometry:i,transform:o,pixelsToTileUnits:a}){return Vd(vu(e,this.paint.get(\"fill-translate\"),this.paint.get(\"fill-translate-anchor\"),-o.bearingInRadians,a),i)}isTileClipped(){return!0}}let sg=It([{name:\"a_pos\",components:2,type:\"Int16\"},{name:\"a_normal_ed\",components:4,type:\"Int16\"}],4),lg=It([{name:\"a_centroid\",components:2,type:\"Int16\"}],4),{members:cg}=sg;class Jl{constructor(e,i,o,a,l){this.properties={},this.extent=o,this.type=0,this.id=void 0,this._pbf=e,this._geometry=-1,this._keys=a,this._values=l,e.readFields(ug,this,i)}loadGeometry(){let e=this._pbf;e.pos=this._geometry;let i=e.readVarint()+e.pos,o=[],a,l=1,u=0,p=0,g=0;for(;e.pos>3}if(u--,l===1||l===2)p+=e.readSVarint(),g+=e.readSVarint(),l===1&&(a&&o.push(a),a=[]),a&&a.push(new pe(p,g));else{if(l!==7)throw new Error(`unknown command ${l}`);a&&a.push(a[0].clone())}}return a&&o.push(a),o}bbox(){let e=this._pbf;e.pos=this._geometry;let i=e.readVarint()+e.pos,o=1,a=0,l=0,u=0,p=1/0,g=-1/0,m=1/0,v=-1/0;for(;e.pos>3}if(a--,o===1||o===2)l+=e.readSVarint(),u+=e.readSVarint(),lg&&(g=l),uv&&(v=u);else if(o!==7)throw new Error(`unknown command ${o}`)}return[p,m,g,v]}toGeoJSON(e,i,o){let a=this.extent*Math.pow(2,o),l=this.extent*e,u=this.extent*i,p=this.loadGeometry();function g(T){return[360*(T.x+l)/a-180,360/Math.PI*Math.atan(Math.exp((1-2*(T.y+u)/a)*Math.PI))-90]}function m(T){return T.map(g)}let v;if(this.type===1){let T=[];for(let P of p)T.push(P[0]);let b=m(T);v=T.length===1?{type:\"Point\",coordinates:b[0]}:{type:\"MultiPoint\",coordinates:b}}else if(this.type===2){let T=p.map(m);v=T.length===1?{type:\"LineString\",coordinates:T[0]}:{type:\"MultiLineString\",coordinates:T}}else{if(this.type!==3)throw new Error(\"unknown feature type\");{let T=up(p),b=[];for(let P of T)b.push(P.map(m));v=b.length===1?{type:\"Polygon\",coordinates:b[0]}:{type:\"MultiPolygon\",coordinates:b}}}let _={type:\"Feature\",geometry:v,properties:this.properties};return this.id!=null&&(_.id=this.id),_}}function ug(r,e,i){r===1?e.id=i.readVarint():r===2?(function(o,a){let l=o.readVarint()+o.pos;for(;o.pos=this._features.length)throw new Error(\"feature index out of bounds\");this._pbf.pos=this._features[e];let i=this._pbf.readVarint()+this._pbf.pos;return new Jl(this._pbf,i,this.extent,this._keys,this._values)}}function pg(r,e,i){r===15?e.version=i.readVarint():r===1?e.name=i.readString():r===5?e.extent=i.readVarint():r===2?e._features.push(i.pos):r===3?e._keys.push(i.readString()):r===4&&e._values.push((function(o){let a=null,l=o.readVarint()+o.pos;for(;o.pos>3;a=u===1?o.readString():u===2?o.readFloat():u===3?o.readDouble():u===4?o.readVarint64():u===5?o.readVarint():u===6?o.readSVarint():u===7?o.readBoolean():null}if(a==null)throw new Error(\"unknown feature value\");return a})(i))}class hp{constructor(e,i){this.layers=e.readFields(fg,{},i)}}function fg(r,e,i){if(r===3){let o=new dg(i,i.readVarint()+i.pos);o.length&&(e[o.name]=o)}}let zh=Math.pow(2,13);function Ql(r,e,i,o,a,l,u,p){r.emplaceBack(e,i,2*Math.floor(o*zh)+u,a*zh*2,l*zh*2,Math.round(p))}class Dh{constructor(e){this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map((i=>i.id)),this.index=e.index,this.hasDependencies=!1,this.layoutVertexArray=new G,this.centroidVertexArray=new V,this.indexArray=new ge,this.programConfigurations=new Vr(e.layers,e.zoom),this.segments=new Ae,this.stateDependentLayerIds=this.layers.filter((i=>i.isStateDependent())).map((i=>i.id))}populate(e,i,o){this.features=[],this.hasDependencies=xu(\"fill-extrusion\",this.layers,i);for(let{feature:a,id:l,index:u,sourceLayerIndex:p}of e){let g=this.layers[0]._featureFilter.needGeometry,m=ln(a,g);if(!this.layers[0]._featureFilter.filter(new Et(this.zoom),m,o))continue;let v={id:l,sourceLayerIndex:p,index:u,geometry:g?m.geometry:sn(a),properties:a.properties,type:a.type,patterns:{}};this.hasDependencies?this.features.push(Ch(\"fill-extrusion\",this.layers,v,{zoom:this.zoom},i)):this.addFeature(v,v.geometry,u,o,{},i.subdivisionGranularity),i.featureIndex.insert(a,v.geometry,u,p,this.index,!0)}}addFeatures(e,i,o){for(let a of this.features){let{geometry:l}=a;this.addFeature(a,l,a.index,i,o,e.subdivisionGranularity)}}update(e,i,o){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,i,this.stateDependentLayers,{imagePositions:o})}isEmpty(){return this.layoutVertexArray.length===0&&this.centroidVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,cg),this.centroidVertexBuffer=e.createVertexBuffer(this.centroidVertexArray,lg.members,!0),this.indexBuffer=e.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.centroidVertexBuffer.destroy())}addFeature(e,i,o,a,l,u){for(let p of Fa(i,500)){let g={x:0,y:0,sampleCount:0},m=this.layoutVertexArray.length;this.processPolygon(g,a,e,p,u);let v=this.layoutVertexArray.length-m,_=Math.floor(g.x/g.sampleCount),T=Math.floor(g.y/g.sampleCount);for(let b=0;b{Ql(v,_,T,0,0,1,1,0)}),this.segments,this.layoutVertexArray,this.indexArray,m.verticesFlattened,m.indicesTriangles)}_generateSideFaces(e,i){let o=0;for(let a=1;aAe.MAX_VERTEX_ARRAY_LENGTH&&(i.segment=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));let p=l.sub(u)._perp()._unit(),g=u.dist(l);o+g>32768&&(o=0),Ql(this.layoutVertexArray,l.x,l.y,p.x,p.y,0,0,o),Ql(this.layoutVertexArray,l.x,l.y,p.x,p.y,0,1,o),o+=g,Ql(this.layoutVertexArray,u.x,u.y,p.x,p.y,0,0,o),Ql(this.layoutVertexArray,u.x,u.y,p.x,p.y,0,1,o);let m=i.segment.vertexLength;this.indexArray.emplaceBack(m,m+2,m+1),this.indexArray.emplaceBack(m+1,m+2,m+3),i.segment.vertexLength+=4,i.segment.primitiveLength+=2}}}function mg(r,e){for(let i=0;iqe)||r.y===e.y&&(r.y<0||r.y>qe)}function dp(r){return r.every((e=>e.x<0))||r.every((e=>e.x>qe))||r.every((e=>e.y<0))||r.every((e=>e.y>qe))}let pp;ze(\"FillExtrusionBucket\",Dh,{omit:[\"layers\",\"features\"]});var _g={get paint(){return pp=pp||new Ii({\"fill-extrusion-opacity\":new Le(de[\"paint_fill-extrusion\"][\"fill-extrusion-opacity\"]),\"fill-extrusion-color\":new Ue(de[\"paint_fill-extrusion\"][\"fill-extrusion-color\"]),\"fill-extrusion-translate\":new Le(de[\"paint_fill-extrusion\"][\"fill-extrusion-translate\"]),\"fill-extrusion-translate-anchor\":new Le(de[\"paint_fill-extrusion\"][\"fill-extrusion-translate-anchor\"]),\"fill-extrusion-pattern\":new en(de[\"paint_fill-extrusion\"][\"fill-extrusion-pattern\"]),\"fill-extrusion-height\":new Ue(de[\"paint_fill-extrusion\"][\"fill-extrusion-height\"]),\"fill-extrusion-base\":new Ue(de[\"paint_fill-extrusion\"][\"fill-extrusion-base\"]),\"fill-extrusion-vertical-gradient\":new Le(de[\"paint_fill-extrusion\"][\"fill-extrusion-vertical-gradient\"])})}};class yg extends nr{constructor(e,i){super(e,_g,i)}createBucket(e){return new Dh(e)}queryRadius(){return yu(this.paint.get(\"fill-extrusion-translate\"))}is3D(){return!0}queryIntersectsFeature({queryGeometry:e,feature:i,featureState:o,geometry:a,transform:l,pixelsToTileUnits:u,pixelPosMatrix:p}){let g=vu(e,this.paint.get(\"fill-extrusion-translate\"),this.paint.get(\"fill-extrusion-translate-anchor\"),-l.bearingInRadians,u),m=this.paint.get(\"fill-extrusion-height\").evaluate(i,o),v=this.paint.get(\"fill-extrusion-base\").evaluate(i,o),_=(function(b,P){let C=[];for(let A of b){let z=[A.x,A.y,0,1];je(z,z,P),C.push(new pe(z[0]/z[3],z[1]/z[3]))}return C})(g,p),T=(function(b,P,C,A){let z=[],L=[],R=A[8]*P,F=A[9]*P,O=A[10]*P,j=A[11]*P,Y=A[8]*C,Q=A[9]*C,oe=A[10]*C,ie=A[11]*C;for(let ue of b){let he=[],ae=[];for(let ne of ue){let be=ne.x,Ee=ne.y,Pe=A[0]*be+A[4]*Ee+A[12],Te=A[1]*be+A[5]*Ee+A[13],Ze=A[2]*be+A[6]*Ee+A[14],dt=A[3]*be+A[7]*Ee+A[15],ft=Ze+O,wt=dt+j,bi=Pe+Y,Nt=Te+Q,Qt=Ze+oe,ai=dt+ie,kt=new pe((Pe+R)/wt,(Te+F)/wt);kt.z=ft/wt,he.push(kt);let fi=new pe(bi/ai,Nt/ai);fi.z=Qt/ai,ae.push(fi)}z.push(he),L.push(ae)}return[z,L]})(a,v,m,p);return(function(b,P,C){let A=1/0;Vd(C,P)&&(A=fp(C,P[0]));for(let z=0;z>4;if(a!==1)throw new Error(`Got v${a} data when expected v1.`);let l=mp[15&o];if(!l)throw new Error(\"Unrecognized array type.\");let[u]=new Uint16Array(e,2,1),[p]=new Uint32Array(e,4,1);return new Su(p,u,l,e)}constructor(e,i=64,o=Float64Array,a){if(isNaN(e)||e<0)throw new Error(`Unpexpected numItems value: ${e}.`);this.numItems=+e,this.nodeSize=Math.min(Math.max(+i,2),65535),this.ArrayType=o,this.IndexArrayType=e<65536?Uint16Array:Uint32Array;let l=mp.indexOf(this.ArrayType),u=2*e*this.ArrayType.BYTES_PER_ELEMENT,p=e*this.IndexArrayType.BYTES_PER_ELEMENT,g=(8-p%8)%8;if(l<0)throw new Error(`Unexpected typed array class: ${o}.`);a&&a instanceof ArrayBuffer?(this.data=a,this.ids=new this.IndexArrayType(this.data,8,e),this.coords=new this.ArrayType(this.data,8+p+g,2*e),this._pos=2*e,this._finished=!0):(this.data=new ArrayBuffer(8+u+p+g),this.ids=new this.IndexArrayType(this.data,8,e),this.coords=new this.ArrayType(this.data,8+p+g,2*e),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,16+l]),new Uint16Array(this.data,2,1)[0]=i,new Uint32Array(this.data,4,1)[0]=e)}add(e,i){let o=this._pos>>1;return this.ids[o]=o,this.coords[this._pos++]=e,this.coords[this._pos++]=i,o}finish(){let e=this._pos>>1;if(e!==this.numItems)throw new Error(`Added ${e} items when expected ${this.numItems}.`);return kh(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(e,i,o,a){if(!this._finished)throw new Error(\"Data not yet indexed - call index.finish().\");let{ids:l,coords:u,nodeSize:p}=this,g=[0,l.length-1,0],m=[];for(;g.length;){let v=g.pop()||0,_=g.pop()||0,T=g.pop()||0;if(_-T<=p){for(let A=T;A<=_;A++){let z=u[2*A],L=u[2*A+1];z>=e&&z<=o&&L>=i&&L<=a&&m.push(l[A])}continue}let b=T+_>>1,P=u[2*b],C=u[2*b+1];P>=e&&P<=o&&C>=i&&C<=a&&m.push(l[b]),(v===0?e<=P:i<=C)&&(g.push(T),g.push(b-1),g.push(1-v)),(v===0?o>=P:a>=C)&&(g.push(b+1),g.push(_),g.push(1-v))}return m}within(e,i,o){if(!this._finished)throw new Error(\"Data not yet indexed - call index.finish().\");let{ids:a,coords:l,nodeSize:u}=this,p=[0,a.length-1,0],g=[],m=o*o;for(;p.length;){let v=p.pop()||0,_=p.pop()||0,T=p.pop()||0;if(_-T<=u){for(let A=T;A<=_;A++)_p(l[2*A],l[2*A+1],e,i)<=m&&g.push(a[A]);continue}let b=T+_>>1,P=l[2*b],C=l[2*b+1];_p(P,C,e,i)<=m&&g.push(a[b]),(v===0?e-o<=P:i-o<=C)&&(p.push(T),p.push(b-1),p.push(1-v)),(v===0?e+o>=P:i+o>=C)&&(p.push(b+1),p.push(_),p.push(1-v))}return g}}function kh(r,e,i,o,a,l){if(a-o<=i)return;let u=o+a>>1;gp(r,e,u,o,a,l),kh(r,e,i,o,u-1,1-l),kh(r,e,i,u+1,a,1-l)}function gp(r,e,i,o,a,l){for(;a>o;){if(a-o>600){let m=a-o+1,v=i-o+1,_=Math.log(m),T=.5*Math.exp(2*_/3),b=.5*Math.sqrt(_*T*(m-T)/m)*(v-m/2<0?-1:1);gp(r,e,i,Math.max(o,Math.floor(i-v*T/m+b)),Math.min(a,Math.floor(i+(m-v)*T/m+b)),l)}let u=e[2*i+l],p=o,g=a;for(tc(r,e,o,i),e[2*a+l]>u&&tc(r,e,o,a);pu;)g--}e[2*o+l]===u?tc(r,e,o,g):(g++,tc(r,e,g,a)),g<=i&&(o=g+1),i<=g&&(a=g-1)}}function tc(r,e,i,o){Rh(r,i,o),Rh(e,2*i,2*o),Rh(e,2*i+1,2*o+1)}function Rh(r,e,i){let o=r[e];r[e]=r[i],r[i]=o}function _p(r,e,i,o){let a=r-i,l=e-o;return a*a+l*l}function Lh(r,e,i,o){let a=o,l=e+(i-e>>1),u,p=i-e,g=r[e],m=r[e+1],v=r[i],_=r[i+1];for(let T=e+3;Ta)u=T,a=b;else if(b===a){let P=Math.abs(T-l);Po&&(u-e>3&&Lh(r,e,u,o),r[u+2]=a,i-u>3&&Lh(r,u,i,o))}function vg(r,e,i,o,a,l){let u=a-i,p=l-o;if(u!==0||p!==0){let g=((r-i)*u+(e-o)*p)/(u*u+p*p);g>1?(i=a,o=l):g>0&&(i+=u*g,o+=p*g)}return u=r-i,p=e-o,u*u+p*p}function pi(r,e,i,o){let a={type:e,geom:i},l={id:r??null,type:a.type,geometry:a.geom,tags:o,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};switch(a.type){case\"Point\":case\"MultiPoint\":ic(l,a.geom);break;case\"LineString\":ic(l,a.geom.points);break;case\"Polygon\":ic(l,a.geom[0].points);break;case\"MultiLineString\":for(let u of a.geom)ic(l,u.points);break;case\"MultiPolygon\":for(let u of a.geom)ic(l,u[0].points)}return l}function Fh(r){r.points.length>64&&(r.points=new Float64Array(r.points))}function ic(r,e){for(let i=0;i0&&(u+=o?(a*v-m*l)/2:Math.sqrt(Math.pow(m-a,2)+Math.pow(v-l,2))),a=m,l=v}let p=e.points.length-3;e.points[2]=1,i>0&&Lh(e.points,0,p,i),e.points[p+2]=1,Fh(e),e.size=Math.abs(u),e.start=0,e.end=e.size}function Vh(r,e,i,o){for(let a=0;a1?1:i}function Pu(r){let e={type:\"Feature\",geometry:xg(r),properties:r.tags};return r.id!=null&&(e.id=r.id),e}function xg(r){let{type:e,geometry:i}=r;switch(e){case\"Point\":return{type:e,coordinates:yp(i[0],i[1])};case\"MultiPoint\":return{type:e,coordinates:Cu(i)};case\"LineString\":return{type:e,coordinates:Cu(i.points)};case\"MultiLineString\":case\"Polygon\":return{type:e,coordinates:i.map((o=>Cu(o.points)))};case\"MultiPolygon\":return{type:e,coordinates:i.map((o=>o.map((a=>Cu(a.points)))))}}}function Cu(r){let e=[];for(let i=0;i=(i/=e)&&u=o)return null;let g=[];for(let m of r){let v=a===zi.X?m.minX:m.minY,_=a===zi.X?m.maxX:m.maxY;if(v>=i&&_=o))switch(m.type){case\"Point\":case\"MultiPoint\":bg(m,g,i,o,a);continue;case\"LineString\":wg(m,g,i,o,a,p);continue;case\"MultiLineString\":Tg(m,g,i,o,a);continue;case\"Polygon\":Sg(m,g,i,o,a);continue;case\"MultiPolygon\":Mg(m,g,i,o,a);continue}}return g.length?g:null}function bg(r,e,i,o,a){let l=[];(function(u,p,g,m,v){for(let _=0;_=g&&T<=m&&xs(p,u[_],u[_+1],u[_+2])}})(r.geometry,l,i,o,a),l.length&&e.push(pi(r.id,l.length===3?\"Point\":\"MultiPoint\",l,r.tags))}function wg(r,e,i,o,a,l){let u=[];if(bp(r.geometry,u,i,o,a,!1,l.lineMetrics),u.length)if(l.lineMetrics)for(let p of u)e.push(pi(r.id,\"LineString\",p,r.tags));else e.push(u.length>1?pi(r.id,\"MultiLineString\",u,r.tags):pi(r.id,\"LineString\",u[0],r.tags))}function Tg(r,e,i,o,a){let l=[];jh(r.geometry,l,i,o,a,!1),l.length&&e.push(l.length!==1?pi(r.id,\"MultiLineString\",l,r.tags):pi(r.id,\"LineString\",l[0],r.tags))}function Sg(r,e,i,o,a){let l=[];jh(r.geometry,l,i,o,a,!0),l.length&&e.push(pi(r.id,\"Polygon\",l,r.tags))}function Mg(r,e,i,o,a){let l=[];for(let u of r.geometry){let p=[];jh(u,p,i,o,a,!0),p.length&&l.push(p)}l.length&&e.push(pi(r.id,\"MultiPolygon\",l,r.tags))}function bp(r,e,i,o,a,l,u){let p=wp(r),g=a===zi.X?Pg:Cg,m,v,_=r.start;for(let A=0;Ai&&(v=g(p,z,L,F,O,i),u&&(p.start=_+m*v)):j>o?Y=i&&(v=g(p,z,L,F,O,i),Q=!0),Y>o&&j<=o&&(v=g(p,z,L,F,O,o),Q=!0),!l&&Q&&(u&&(p.end=_+m*v),e.push(p),p=wp(r)),u&&(_+=m)}let T=r.points.length-3,b=r.points[T],P=r.points[T+1],C=a===zi.X?b:P;C>=i&&C<=o&&xs(p.points,b,P,r.points[T+2]),T=p.points.length-3,l&&T>=3&&(p.points[T]!==p.points[0]||p.points[T+1]!==p.points[1])&&xs(p.points,p.points[0],p.points[1],p.points[2]),p.points.length&&(Fh(p),e.push(p))}function wp(r){return{points:[],size:r.size,start:r.start,end:r.end}}function jh(r,e,i,o,a,l){for(let u of r)bp(u,e,i,o,a,l,!1)}function xs(r,e,i,o){r.push(e,i,o)}function Pg(r,e,i,o,a,l){let u=(l-e)/(o-e);return xs(r.points,l,i+(a-i)*u,1),u}function Cg(r,e,i,o,a,l){let u=(l-i)/(a-i);return xs(r.points,e+(o-e)*u,l,1),u}function Nh(r,e){let i=e.buffer/e.extent,o=r,a=Ln(r,1,-1-i,i,zi.X,-1,2,e),l=Ln(r,1,1-i,2+i,zi.X,-1,2,e);return(a||l)&&(o=Ln(r,1,-i,1+i,zi.X,-1,2,e)||[],a&&(o=Tp(a,1).concat(o)),l&&(o=o.concat(Tp(l,-1)))),o}function Tp(r,e){let i=[];for(let o of r)switch(o.type){case\"Point\":case\"MultiPoint\":{let a=Eg(o.geometry,e);i.push(pi(o.id,o.type,a,o.tags));continue}case\"LineString\":{let a=Uh(o.geometry,e);i.push(pi(o.id,o.type,a,o.tags));continue}case\"MultiLineString\":case\"Polygon\":{let a=[];for(let l of o.geometry)a.push(Uh(l,e));i.push(pi(o.id,o.type,a,o.tags));continue}case\"MultiPolygon\":{let a=[];for(let l of o.geometry){let u=[];for(let p of l)u.push(Uh(p,e));a.push(u)}i.push(pi(o.id,o.type,a,o.tags));continue}}return i}function Eg(r,e){let i=[];for(let o=0;o0||e.addOrUpdateProperties?.length>0;if(o){let l=r[0],u=Bh({type:\"FeatureCollection\",features:[{type:\"Feature\",id:l.id,geometry:e.newGeometry,properties:a?Sp(l.tags,e):l.tags}]},i);return u=Nh(u,i),u}if(a){let l=[];for(let u of r){let p={...u};p.tags=Sp(p.tags,e),l.push(p)}return l}return r}function Sp(r,e){if(e.removeAllProperties)return{};let i={...r||{}};if(e.removeProperties)for(let o of e.removeProperties)delete i[o];if(e.addOrUpdateProperties)for(let{key:o,value:a}of e.addOrUpdateProperties)i[o]=a;return i}(function(r){r[r.X=0]=\"X\",r[r.Y=1]=\"Y\"})(zi||(zi={}));let qh={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:r=>r};class Ag{constructor(e){this.options=Object.assign(Object.create(qh),e),this.trees=new Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[],this.points=[]}load(e){let i=[];for(let o of e){if(!o.geometry)continue;let[a,l]=o.geometry.coordinates,[u,p]=[ys(a),vs(l)];i.push({id:o.id,type:\"Point\",geometry:[u,p],tags:o.properties})}this.createIndex(i)}initialize(e){let i=[];for(let o of e)o.type===\"Point\"&&i.push(o);this.createIndex(i)}updateIndex(e,i,o){this.options=Object.assign(Object.create(qh),o.clusterOptions),this.initialize(e)}createIndex(e){let{log:i,minZoom:o,maxZoom:a}=this.options;i&&console.time(\"total time\");let l=`prepare ${e.length} points`;i&&console.time(l),this.points=e;let u=[];for(let g=0;g=o;g--){let m=Date.now();p=this.trees[g]=this.createTree(this.cluster(p,g)),i&&console.log(\"z%d: %d clusters in %dms\",g,p.numItems,Date.now()-m)}i&&console.timeEnd(\"total time\")}getClusters(e,i){return this.getClustersInternal(e,i).map((o=>Pu(o)))}getClustersInternal(e,i){let o=((e[0]+180)%360+360)%360-180,a=Math.max(-90,Math.min(90,e[1])),l=e[2]===180?180:((e[2]+180)%360+360)%360-180,u=Math.max(-90,Math.min(90,e[3]));if(e[2]-e[0]>=360)o=-180,l=180;else if(o>l){let _=this.getClustersInternal([o,a,180,u],i),T=this.getClustersInternal([-180,a,l,u],i);return _.concat(T)}let p=this.trees[this.limitZoom(i)],g=p.range(ys(o),vs(u),ys(l),vs(a)),m=p.flatData,v=[];for(let _ of g){let T=this.stride*_;v.push(m[T+5]>1?zg(m,T,this.clusterProps):this.points[m[T+3]])}return v}getChildren(e){let i=this.getOriginId(e),o=this.getOriginZoom(e),a=new Error(\"No cluster with the specified id: \"+e),l=this.trees[o];if(!l)throw a;let u=l.flatData;if(i*this.stride>=u.length)throw a;let p=this.options.radius/(this.options.extent*Math.pow(2,o-1)),g=l.within(u[i*this.stride],u[i*this.stride+1],p),m=[];for(let v of g){let _=v*this.stride;u[_+4]===e&&m.push(u[_+5]>1?Dg(u,_,this.clusterProps):Pu(this.points[u[_+3]]))}if(m.length===0)throw a;return m}getLeaves(e,i,o){let a=[];return this.appendLeaves(a,e,i=i||10,o=o||0,0),a}getTile(e,i,o){let a=this.trees[this.limitZoom(e)];if(!a)return null;let l=Math.pow(2,e),{extent:u,radius:p}=this.options,g=p/u,m=(o-g)/l,v=(o+1+g)/l,_={transformed:!0,features:[],source:null,x:i,y:o,z:e};return this.addTileFeatures(a.range((i-g)/l,m,(i+1+g)/l,v),a.flatData,i,o,l,_),i===0&&this.addTileFeatures(a.range(1-g/l,m,1,v),a.flatData,l,o,l,_),i===l-1&&this.addTileFeatures(a.range(0,m,g/l,v),a.flatData,-1,o,l,_),_}getClusterExpansionZoom(e){return this.getOriginZoom(e)}appendLeaves(e,i,o,a,l){let u=this.getChildren(i);for(let p of u){let g=p.properties;if(g?.cluster?l+g.point_count<=a?l+=g.point_count:l=this.appendLeaves(e,g.cluster_id,o,a,l):l1,v,_,T;if(m)v=Gh(i,g,this.clusterProps),_=i[g],T=i[g+1];else{let C=this.points[i[g+3]];v=C.tags,[_,T]=C.geometry}let b={type:1,geometry:[[Math.round(this.options.extent*(_*l-o)),Math.round(this.options.extent*(T*l-a))]],tags:v},P;P=m||this.options.generateId?i[g+3]:this.points[i[g+3]].id,P!==void 0&&(b.id=P),u.features.push(b)}}limitZoom(e){return Math.max(this.options.minZoom,Math.min(Math.floor(+e),this.options.maxZoom+1))}cluster(e,i){let{radius:o,extent:a,reduce:l,minPoints:u}=this.options,p=o/(a*Math.pow(2,i)),g=e.flatData,m=[],v=this.stride;for(let _=0;_i&&(A+=g[L+5])}if(A>C&&A>=u){let z,L=T*C,R=b*C,F=-1,O=(_/v<<5)+(i+1)+this.points.length;for(let j of P){let Y=j*v;if(g[Y+2]<=i)continue;g[Y+2]=i;let Q=g[Y+5];L+=g[Y]*Q,R+=g[Y+1]*Q,g[Y+4]=O,l&&(z||(z=this.map(g,_,!0),F=this.clusterProps.length,this.clusterProps.push(z)),l(z,this.map(g,Y)))}g[_+4]=O,m.push(L/A,R/A,1/0,O,-1,A),l&&m.push(F)}else{for(let z=0;z1)for(let z of P){let L=z*v;if(!(g[L+2]<=i)){g[L+2]=i;for(let R=0;R>5}getOriginZoom(e){return(e-this.points.length)%32}map(e,i,o){if(e[i+5]>1){let u=this.clusterProps[e[i+6]];return o?Object.assign({},u):u}let a=this.points[e[i+3]].tags,l=this.options.map(a);return o&&l===a?Object.assign({},l):l}}function zg(r,e,i){return{id:r[e+3],type:\"Point\",tags:Gh(r,e,i),geometry:[r[e],r[e+1]]}}function Dg(r,e,i){return{type:\"Feature\",id:r[e+3],properties:Gh(r,e,i),geometry:{type:\"Point\",coordinates:[vp(r[e]),xp(r[e+1])]}}}function Gh(r,e,i){let o=r[e+5],a=o>=1e4?`${Math.round(o/1e3)}k`:o>=1e3?Math.round(o/100)/10+\"k\":o,l=r[e+6],u=l===-1?{}:Object.assign({},i[l]);return Object.assign(u,{cluster:!0,cluster_id:r[e+3],point_count:o,point_count_abbreviated:a})}let $h=\"geojsonvt_clip_start\",Zh=\"geojsonvt_clip_end\";function Mp(r,e,i,o,a){let l=e===a.maxZoom?0:a.tolerance/((1<0&&e.size<(a?u:o))return void(i.numPoints+=e.points.length/3);let p=[];for(let g=0;gu)&&(i.numSimplified++,p.push(e.points[g],e.points[g+1])),i.numPoints++;a&&(function(g,m){let v=0;for(let _=0,T=g.length,b=T-2;_0===m)for(let _=0,T=g.length;_1&&(console.log(\"invalidating tiles\"),console.time(\"invalidating\")),this.invalidateTiles(i),o.debug>1&&console.timeEnd(\"invalidating\");let[a,l,u]=[0,0,0],p=Mp(e,a,l,u,o);p.source=e;let g=Eu(a,l,u);if(this.tiles[g]=p,this.tileCoords.push({z:a,x:l,y:u,id:g}),o.debug){let m=`z${a}`;this.stats[m]=(this.stats[m]||0)+1,this.total++}}getClusterExpansionZoom(e){return null}getChildren(e){return null}getLeaves(e,i,o){return null}getTile(e,i,o){let{extent:a,debug:l}=this.options,u=1<1&&console.log(\"drilling down to z%d-%d-%d\",e,i,o);let g,m=e,v=i,_=o;for(;!g&&m>0;)m--,v>>=1,_>>=1,g=this.tiles[Eu(m,v,_)];return g?.source?(l>1&&(console.log(\"found parent tile z%d-%d-%d\",m,v,_),console.time(\"drilling down\")),this.splitTile(g.source,m,v,_,e,i,o),l>1&&console.timeEnd(\"drilling down\"),this.tiles[p]?Pp(this.tiles[p],a):null):null}splitTile(e,i,o,a,l,u,p){let g=[e,i,o,a],m=this.options,v=m.debug;for(;g.length;){a=g.pop(),o=g.pop(),i=g.pop(),e=g.pop();let _=1<1&&console.time(\"creation\"),b=this.tiles[T]=Mp(e,i,o,a,m),this.tileCoords.push({z:i,x:o,y:a,id:T}),v)){v>1&&(console.log(\"tile z%d-%d-%d (features: %d, points: %d, simplified: %d)\",i,o,a,b.numFeatures,b.numPoints,b.numSimplified),console.timeEnd(\"creation\"));let Q=`z${i}`;this.stats[Q]=(this.stats[Q]||0)+1,this.total++}if(b.source=e,l==null){if(i===m.indexMaxZoom||b.numPoints<=m.indexMaxPoints)continue}else{if(i===m.maxZoom||i===l)continue;if(l!=null){let Q=l-i;if(o!==u>>Q||a!==p>>Q)continue}}if(b.source=null,!e.length)continue;v>1&&console.time(\"clipping\");let P=.5*m.buffer/m.extent,C=.5-P,A=.5+P,z=1+P,L=null,R=null,F=null,O=null,j=Ln(e,_,o-P,o+A,zi.X,b.minX,b.maxX,m),Y=Ln(e,_,o+C,o+z,zi.X,b.minX,b.maxX,m);j&&(L=Ln(j,_,a-P,a+A,zi.Y,b.minY,b.maxY,m),R=Ln(j,_,a+C,a+z,zi.Y,b.minY,b.maxY,m)),Y&&(F=Ln(Y,_,a-P,a+A,zi.Y,b.minY,b.maxY,m),O=Ln(Y,_,a+C,a+z,zi.Y,b.minY,b.maxY,m)),v>1&&console.timeEnd(\"clipping\"),g.push(L||[],i+1,2*o,2*a),g.push(R||[],i+1,2*o,2*a+1),g.push(F||[],i+1,2*o+1,2*a),g.push(O||[],i+1,2*o+1,2*a+1)}}invalidateTiles(e){if(!e.length)return;let i=this.options,{debug:o}=i,a=1/0,l=-1/0,u=1/0,p=-1/0;for(let v of e)a=Math.min(a,v.minX),l=Math.max(l,v.maxX),u=Math.min(u,v.minY),p=Math.max(p,v.maxY);let g=i.buffer/i.extent,m=new Set;for(let v in this.tiles){let _=this.tiles[v],T=1<<_.z,b=(_.x-g)/T,P=(_.x+1+g)/T,C=(_.y-g)/T,A=(_.y+1+g)/T;if(l=P||p=A)continue;let z=!1;for(let L of e)if(L.maxX>=b&&L.minX=C&&L.minY1&&console.log(\"invalidate tile z%d-%d-%d (features: %d, points: %d, simplified: %d)\",_.z,_.x,_.y,_.numFeatures,_.numPoints,_.numSimplified);let L=`z${_.z}`;this.stats[L]=(this.stats[L]||0)-1,this.total--}delete this.tiles[v],m.add(v)}}m.size&&(this.tileCoords=this.tileCoords.filter((v=>!m.has(v.id))))}}function Eu(r,e,i){return 32*((1<i.id)),this.index=e.index,this.hasDependencies=!1,this.patternFeatures=[],this.lineClipsArray=[],this.gradients={};for(let i of this.layers)this.gradients[i.id]={};this.layoutVertexArray=new X,this.layoutVertexArray2=new $,this.indexArray=new ge,this.programConfigurations=new Vr(e.layers,e.zoom),this.segments=new Ae,this.maxLineLength=0,this.stateDependentLayerIds=this.layers.filter((i=>i.isStateDependent())).map((i=>i.id))}populate(e,i,o){this.hasDependencies=xu(\"line\",this.layers,i)||this.hasLineDasharray(this.layers);let a=this.layers[0].layout.get(\"line-sort-key\"),l=!a.isConstant(),u=[];for(let{feature:p,id:g,index:m,sourceLayerIndex:v}of e){let _=this.layers[0]._featureFilter.needGeometry,T=ln(p,_);if(!this.layers[0]._featureFilter.filter(new Et(this.zoom),T,o))continue;let b=l?a.evaluate(T,{},o):void 0,P={id:g,properties:p.properties,type:p.type,sourceLayerIndex:v,index:m,geometry:_?T.geometry:sn(p),patterns:{},dashes:{},sortKey:b};u.push(P)}l&&u.sort(((p,g)=>p.sortKey-g.sortKey));for(let p of u){let{geometry:g,index:m,sourceLayerIndex:v}=p;this.hasDependencies?(xu(\"line\",this.layers,i)?Ch(\"line\",this.layers,p,{zoom:this.zoom},i):this.hasLineDasharray(this.layers)&&this.addLineDashDependencies(this.layers,p,this.zoom,i),this.patternFeatures.push(p)):this.addFeature(p,g,m,o,{},{},i.subdivisionGranularity),i.featureIndex.insert(e[m].feature,g,m,v,this.index)}}update(e,i,o,a){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,i,this.stateDependentLayers,{imagePositions:o,dashPositions:a})}addFeatures(e,i,o,a){for(let l of this.patternFeatures)this.addFeature(l,l.geometry,l.index,i,o,a,e.subdivisionGranularity)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(this.layoutVertexArray2.length!==0&&(this.layoutVertexBuffer2=e.createVertexBuffer(this.layoutVertexArray2,Ng)),this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,Vg),this.indexBuffer=e.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}lineFeatureClips(e){if(e.properties&&Object.hasOwn(e.properties,$h)&&Object.hasOwn(e.properties,Zh))return{start:+e.properties[$h],end:+e.properties[Zh]}}addFeature(e,i,o,a,l,u,p){let g=this.layers[0].layout,m=g.get(\"line-join\").evaluate(e,{}),v=g.get(\"line-cap\").evaluate(e,{}),_=g.get(\"line-miter-limit\").evaluate(e,{}),T=g.get(\"line-round-limit\").evaluate(e,{});this.lineClips=this.lineFeatureClips(e);for(let b of i)this.addLine(b,e,m,v,_,T,a,p);this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,o,{imagePositions:l,dashPositions:u,canonical:a})}addLine(e,i,o,a,l,u,p,g){if(this.distance=0,this.scaledDistance=0,this.totalDistance=0,e=ha(e,p?g.line.getGranularityForZoomLevel(p.z):1),this.lineClips){this.lineClipsArray.push(this.lineClips);for(let R=0;R=2&&e[v-1].equals(e[v-2]);)v--;let _=0;for(;_0;if(oe&&R>_){let ae=P.dist(C);if(ae>2*T){let ne=P.sub(P.sub(C)._mult(T/ae)._round());this.updateDistance(C,ne),this.addCurrentVertex(ne,z,0,0,b),C=ne}}let ue=C&&A,he=ue?o:m?\"butt\":a;if(ue&&he===\"round\"&&(Yl&&(he=\"bevel\"),he===\"bevel\"&&(Y>2&&(he=\"flipbevel\"),Y100)F=L.mult(-1);else{let ae=Y*z.add(L).mag()/z.sub(L).mag();F._perp()._mult(ae*(ie?-1:1))}this.addCurrentVertex(P,F,0,0,b),this.addCurrentVertex(P,F.mult(-1),0,0,b)}else if(he===\"bevel\"||he===\"fakeround\"){let ae=-Math.sqrt(Y*Y-1),ne=ie?ae:0,be=ie?0:ae;if(C&&this.addCurrentVertex(P,z,ne,be,b),he===\"fakeround\"){let Ee=Math.round(180*Q/Math.PI/20);for(let Pe=1;Pe2*T){let ne=P.add(A.sub(P)._mult(T/ae)._round());this.updateDistance(P,ne),this.addCurrentVertex(ne,L,0,0,b),P=ne}}}}addCurrentVertex(e,i,o,a,l,u=!1){let p=i.y*a-i.x,g=-i.y-i.x*a;this.addHalfVertex(e,i.x+i.y*o,i.y-i.x*o,u,!1,o,l),this.addHalfVertex(e,p,g,u,!0,-a,l),this.distance>Ep/2&&this.totalDistance===0&&(this.distance=0,this.updateScaledDistance(),this.addCurrentVertex(e,i,o,a,l,u))}addHalfVertex({x:e,y:i},o,a,l,u,p,g){let m=.5*(this.lineClips?this.scaledDistance*(Ep-1):this.scaledDistance);this.layoutVertexArray.emplaceBack((e<<1)+(l?1:0),(i<<1)+(u?1:0),Math.round(63*o)+128,Math.round(63*a)+128,1+(p===0?0:p<0?-1:1)|(63&m)<<2,m>>6),this.lineClips&&this.layoutVertexArray2.emplaceBack((this.scaledDistance-this.lineClips.start)/(this.lineClips.end-this.lineClips.start),this.lineClipsArray.length);let v=g.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,v,this.e2),g.primitiveLength++),u?this.e2=v:this.e1=v}updateScaledDistance(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance}updateDistance(e,i){this.distance+=e.dist(i),this.updateScaledDistance()}hasLineDasharray(e){for(let i of e){let o=i.paint.get(\"line-dasharray\");if(o&&!o.isConstant())return!0}return!1}addLineDashDependencies(e,i,o,a){for(let l of e){let u=l.paint.get(\"line-dasharray\");if(!u||u.value.kind===\"constant\")continue;let p=l.layout.get(\"line-cap\").evaluate(i,{})===\"round\",g={dasharray:u.value.evaluate({zoom:o-1},i,{}),round:p},m={dasharray:u.value.evaluate({zoom:o},i,{}),round:p},v={dasharray:u.value.evaluate({zoom:o+1},i,{}),round:p},_=`${g.dasharray.join(\",\")},${g.round}`,T=`${m.dasharray.join(\",\")},${m.round}`,b=`${v.dasharray.join(\",\")},${v.round}`;a.dashDependencies[_]=g,a.dashDependencies[T]=m,a.dashDependencies[b]=v,i.dashes[l.id]={min:_,mid:T,max:b}}}}let Ip,Ap;ze(\"LineBucket\",Hh,{omit:[\"layers\",\"patternFeatures\"]});var zp={get paint(){return Ap=Ap||new Ii({\"line-opacity\":new Ue(de.paint_line[\"line-opacity\"]),\"line-color\":new Ue(de.paint_line[\"line-color\"]),\"line-translate\":new Le(de.paint_line[\"line-translate\"]),\"line-translate-anchor\":new Le(de.paint_line[\"line-translate-anchor\"]),\"line-width\":new Ue(de.paint_line[\"line-width\"]),\"line-gap-width\":new Ue(de.paint_line[\"line-gap-width\"]),\"line-offset\":new Ue(de.paint_line[\"line-offset\"]),\"line-blur\":new Ue(de.paint_line[\"line-blur\"]),\"line-dasharray\":new en(de.paint_line[\"line-dasharray\"]),\"line-pattern\":new en(de.paint_line[\"line-pattern\"]),\"line-gradient\":new po(de.paint_line[\"line-gradient\"])})},get layout(){return Ip=Ip||new Ii({\"line-cap\":new Ue(de.layout_line[\"line-cap\"]),\"line-join\":new Ue(de.layout_line[\"line-join\"]),\"line-miter-limit\":new Ue(de.layout_line[\"line-miter-limit\"]),\"line-round-limit\":new Ue(de.layout_line[\"line-round-limit\"]),\"line-sort-key\":new Ue(de.layout_line[\"line-sort-key\"])})}};class qg extends Ue{possiblyEvaluate(e,i){return i=new Et(Math.floor(i.zoom),{now:i.now,fadeDuration:i.fadeDuration,zoomHistory:i.zoomHistory,transition:i.transition}),super.possiblyEvaluate(e,i)}evaluate(e,i,o,a){return i=Mi({},i,{zoom:Math.floor(i.zoom)}),super.evaluate(e,i,o,a)}}let Iu;class Gg extends nr{constructor(e,i){super(e,zp,i),this.gradientVersion=0,Iu||(Iu=new qg(zp.paint.properties[\"line-width\"].specification),Iu.useIntegerZoom=!0)}_handleSpecialPaintPropertyUpdate(e){if(e===\"line-gradient\"){let i=this.gradientExpression();this.stepInterpolant=!!(function(o){return o._styleExpression!==void 0})(i)&&i._styleExpression.expression instanceof Qn,this.gradientVersion=(this.gradientVersion+1)%Number.MAX_SAFE_INTEGER}}gradientExpression(){return this._transitionablePaint._values[\"line-gradient\"].value.expression}recalculate(e,i){super.recalculate(e,i),this.paint._values[\"line-floorwidth\"]=Iu.possiblyEvaluate(this._transitioningPaint._values[\"line-width\"].value,e)}createBucket(e){return new Hh(e)}queryRadius(e){let i=e,o=Dp(fs(\"line-width\",this,i),fs(\"line-gap-width\",this,i)),a=fs(\"line-offset\",this,i);return o/2+Math.abs(a)+yu(this.paint.get(\"line-translate\"))}queryIntersectsFeature({queryGeometry:e,feature:i,featureState:o,geometry:a,transform:l,pixelsToTileUnits:u}){let p=vu(e,this.paint.get(\"line-translate\"),this.paint.get(\"line-translate-anchor\"),-l.bearingInRadians,u),g=u/2*Dp(this.paint.get(\"line-width\").evaluate(i,o),this.paint.get(\"line-gap-width\").evaluate(i,o)),m=this.paint.get(\"line-offset\").evaluate(i,o);return m&&(a=(function(v,_){let T=[];for(let b of v){let P=km(b),C=[];for(let A=0;A=3){for(let P of b)if(ps(v,P))return!0}if(Am(v,b,T))return!0}return!1})(p,a,g)}isTileClipped(){return!0}}function Dp(r,e){return e>0?e+2*r:r}let $g=It([{name:\"a_pos_offset\",components:4,type:\"Int16\"},{name:\"a_data\",components:4,type:\"Uint16\"},{name:\"a_pixeloffset\",components:4,type:\"Int16\"}],4),Zg=It([{name:\"a_projected_pos\",components:3,type:\"Float32\"}],4);It([{name:\"a_fade_opacity\",components:1,type:\"Uint32\"}],4);let Wg=It([{name:\"a_placed\",components:2,type:\"Uint8\"},{name:\"a_shift\",components:2,type:\"Float32\"},{name:\"a_box_real\",components:2,type:\"Int16\"}]);It([{type:\"Int16\",name:\"anchorPointX\"},{type:\"Int16\",name:\"anchorPointY\"},{type:\"Int16\",name:\"x1\"},{type:\"Int16\",name:\"y1\"},{type:\"Int16\",name:\"x2\"},{type:\"Int16\",name:\"y2\"},{type:\"Uint32\",name:\"featureIndex\"},{type:\"Uint16\",name:\"sourceLayerIndex\"},{type:\"Uint16\",name:\"bucketIndex\"}]);let kp=It([{name:\"a_pos\",components:2,type:\"Int16\"},{name:\"a_anchor_pos\",components:2,type:\"Int16\"},{name:\"a_extrude\",components:2,type:\"Int16\"}],4),Hg=It([{name:\"a_pos\",components:2,type:\"Float32\"},{name:\"a_radius\",components:1,type:\"Float32\"},{name:\"a_flags\",components:2,type:\"Int16\"}],4);function Xg(r,e,i){let o=e.layout.get(\"text-transform\").evaluate(i,{});return o===\"uppercase\"?r=r.toLocaleUpperCase():o===\"lowercase\"&&(r=r.toLocaleLowerCase()),Fr.applyArabicShaping&&(r=Fr.applyArabicShaping(r)),r}function Yg(r,e,i){for(let o of r.sections)o.text=Xg(o.text,e,i);return r}It([{name:\"triangle\",components:3,type:\"Uint16\"}]),It([{type:\"Int16\",name:\"anchorX\"},{type:\"Int16\",name:\"anchorY\"},{type:\"Uint16\",name:\"glyphStartIndex\"},{type:\"Uint16\",name:\"numGlyphs\"},{type:\"Uint32\",name:\"vertexStartIndex\"},{type:\"Uint32\",name:\"lineStartIndex\"},{type:\"Uint32\",name:\"lineLength\"},{type:\"Uint16\",name:\"segment\"},{type:\"Uint16\",name:\"lowerSize\"},{type:\"Uint16\",name:\"upperSize\"},{type:\"Float32\",name:\"lineOffsetX\"},{type:\"Float32\",name:\"lineOffsetY\"},{type:\"Uint8\",name:\"writingMode\"},{type:\"Uint8\",name:\"placedOrientation\"},{type:\"Uint8\",name:\"hidden\"},{type:\"Uint32\",name:\"crossTileID\"},{type:\"Int16\",name:\"associatedIconIndex\"}]),It([{type:\"Int16\",name:\"anchorX\"},{type:\"Int16\",name:\"anchorY\"},{type:\"Int16\",name:\"rightJustifiedTextSymbolIndex\"},{type:\"Int16\",name:\"centerJustifiedTextSymbolIndex\"},{type:\"Int16\",name:\"leftJustifiedTextSymbolIndex\"},{type:\"Int16\",name:\"verticalPlacedTextSymbolIndex\"},{type:\"Int16\",name:\"placedIconSymbolIndex\"},{type:\"Int16\",name:\"verticalPlacedIconSymbolIndex\"},{type:\"Uint16\",name:\"key\"},{type:\"Uint16\",name:\"textBoxStartIndex\"},{type:\"Uint16\",name:\"textBoxEndIndex\"},{type:\"Uint16\",name:\"verticalTextBoxStartIndex\"},{type:\"Uint16\",name:\"verticalTextBoxEndIndex\"},{type:\"Uint16\",name:\"iconBoxStartIndex\"},{type:\"Uint16\",name:\"iconBoxEndIndex\"},{type:\"Uint16\",name:\"verticalIconBoxStartIndex\"},{type:\"Uint16\",name:\"verticalIconBoxEndIndex\"},{type:\"Uint16\",name:\"featureIndex\"},{type:\"Uint16\",name:\"numHorizontalGlyphVertices\"},{type:\"Uint16\",name:\"numVerticalGlyphVertices\"},{type:\"Uint16\",name:\"numIconVertices\"},{type:\"Uint16\",name:\"numVerticalIconVertices\"},{type:\"Uint16\",name:\"useRuntimeCollisionCircles\"},{type:\"Uint32\",name:\"crossTileID\"},{type:\"Float32\",name:\"textBoxScale\"},{type:\"Float32\",name:\"collisionCircleDiameter\"},{type:\"Uint16\",name:\"textAnchorOffsetStartIndex\"},{type:\"Uint16\",name:\"textAnchorOffsetEndIndex\"}]),It([{type:\"Float32\",name:\"offsetX\"}]),It([{type:\"Int16\",name:\"x\"},{type:\"Int16\",name:\"y\"},{type:\"Int16\",name:\"tileUnitDistanceFromAnchor\"}]),It([{type:\"Uint16\",name:\"textAnchor\"},{type:\"Float32\",components:2,name:\"textOffset\"}]);var ni=24;let rc={\"!\":\"\\uFE15\",\"#\":\"\\uFF03\",$:\"\\uFF04\",\"%\":\"\\uFF05\",\"&\":\"\\uFF06\",\"(\":\"\\uFE35\",\")\":\"\\uFE36\",\"*\":\"\\uFF0A\",\"+\":\"\\uFF0B\",\",\":\"\\uFE10\",\"-\":\"\\uFE32\",\".\":\"\\u30FB\",\"/\":\"\\uFF0F\",\":\":\"\\uFE13\",\";\":\"\\uFE14\",\"<\":\"\\uFE3F\",\"=\":\"\\uFF1D\",\">\":\"\\uFE40\",\"?\":\"\\uFE16\",\"@\":\"\\uFF20\",\"[\":\"\\uFE47\",\"\\\\\":\"\\uFF3C\",\"]\":\"\\uFE48\",\"^\":\"\\uFF3E\",_:\"\\uFE33\",\"`\":\"\\uFF40\",\"{\":\"\\uFE37\",\"|\":\"\\u2015\",\"}\":\"\\uFE38\",\"~\":\"\\uFF5E\",\"\\xA2\":\"\\uFFE0\",\"\\xA3\":\"\\uFFE1\",\"\\xA5\":\"\\uFFE5\",\"\\xA6\":\"\\uFFE4\",\"\\xAC\":\"\\uFFE2\",\"\\xAF\":\"\\uFFE3\",\"\\u2013\":\"\\uFE32\",\"\\u2014\":\"\\uFE31\",\"\\u2018\":\"\\uFE43\",\"\\u2019\":\"\\uFE44\",\"\\u201C\":\"\\uFE41\",\"\\u201D\":\"\\uFE42\",\"\\u2026\":\"\\uFE19\",\"\\u22EF\":\"\\uFE19\",\"\\u2027\":\"\\u30FB\",\"\\u20A9\":\"\\uFFE6\",\"\\u3001\":\"\\uFE11\",\"\\u3002\":\"\\uFE12\",\"\\u3008\":\"\\uFE3F\",\"\\u3009\":\"\\uFE40\",\"\\u300A\":\"\\uFE3D\",\"\\u300B\":\"\\uFE3E\",\"\\u300C\":\"\\uFE41\",\"\\u300D\":\"\\uFE42\",\"\\u300E\":\"\\uFE43\",\"\\u300F\":\"\\uFE44\",\"\\u3010\":\"\\uFE3B\",\"\\u3011\":\"\\uFE3C\",\"\\u3014\":\"\\uFE39\",\"\\u3015\":\"\\uFE3A\",\"\\u3016\":\"\\uFE17\",\"\\u3017\":\"\\uFE18\",\"\\uFF01\":\"\\uFE15\",\"\\uFF08\":\"\\uFE35\",\"\\uFF09\":\"\\uFE36\",\"\\uFF0C\":\"\\uFE10\",\"\\uFF0D\":\"\\uFE32\",\"\\uFF0E\":\"\\u30FB\",\"\\uFF1A\":\"\\uFE13\",\"\\uFF1B\":\"\\uFE14\",\"\\uFF1C\":\"\\uFE3F\",\"\\uFF1E\":\"\\uFE40\",\"\\uFF1F\":\"\\uFE16\",\"\\uFF3B\":\"\\uFE47\",\"\\uFF3D\":\"\\uFE48\",\"\\uFF3F\":\"\\uFE33\",\"\\uFF5B\":\"\\uFE37\",\"\\uFF5C\":\"\\u2015\",\"\\uFF5D\":\"\\uFE38\",\"\\uFF5F\":\"\\uFE35\",\"\\uFF60\":\"\\uFE36\",\"\\uFF61\":\"\\uFE12\",\"\\uFF62\":\"\\uFE41\",\"\\uFF63\":\"\\uFE42\"},Kg={10:!0,32:!0,38:!0,41:!0,43:!0,45:!0,47:!0,173:!0,183:!0,8203:!0,8208:!0,8211:!0,8231:!0},Jg={40:!0};function Rp(r,e,i,o,a,l){if(\"fontStack\"in e){let u=i[e.fontStack],p=u?.[r];return p?p.metrics.advance*e.scale+a:0}{let u=o[e.imageName];return u?u.displaySize[0]*e.scale*ni/l+a:0}}function Lp(r,e,i,o){let a=Math.pow(r-e,2);return o?rMath.max(e,this.sections[i].scale)),0)}getMaxImageSize(e){let i=0,o=0;for(let a=0;ao)))}addImageSection(e){let i=e.image?e.image.name:\"\";if(i.length===0)return void xt(\"Can't add FormattedSection with an empty image.\");let o=this.getNextImageSectionCharCode();o?(this.text+=String.fromCharCode(o),this.sections.push({scale:1,verticalAlign:e.verticalAlign||\"bottom\",imageName:i}),this.sectionIndex.push(this.sections.length-1)):xt(\"Reached maximum number of images 6401\")}getNextImageSectionCharCode(){return this.imageSectionID?this.imageSectionID>=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)}determineLineBreaks(e,i,o,a,l){let u=[],p=this.determineAverageLineWidth(e,i,o,a,l),g=this.hasZeroWidthSpaces(),m=0,v=0,_=this.text[Symbol.iterator](),T=_.next(),b=this.text[Symbol.iterator]();b.next();let P=b.next(),C=this.text[Symbol.iterator]();C.next(),C.next();let A=C.next();for(;!T.done;){let z=this.getSection(v),L=T.value.codePointAt(0);if(su(L)||(m+=Rp(L,z,o,a,e,l)),!P.done){let R=mh(L),F=P.value.codePointAt(0);(Kg[L]||R||\"imageName\"in z||!A.done&&Jg[F])&&u.push(Fp(v+1,m,p,u,Qg(L,F,R&&g),!1))}v++,T=_.next(),P=b.next(),A=C.next()}return Bp(Fp(this.length(),m,p,u,0,!0))}determineAverageLineWidth(e,i,o,a,l){let u=0,p=0;for(let g of this.text){let m=this.getSection(p);u+=Rp(g.codePointAt(0),m,o,a,e,l),p++}return u/Math.max(1,Math.ceil(u/i))}}let Xh=4294967296,Op=1/Xh,Vp=typeof TextDecoder>\"u\"?null:new TextDecoder(\"utf-8\");class Au{constructor(e=new Uint8Array(16)){this.buf=ArrayBuffer.isView(e)?e:new Uint8Array(e),this.dataView=new DataView(this.buf.buffer),this.pos=0,this.type=0,this.length=this.buf.length}readFields(e,i,o=this.length){for(;this.pos>3,u=this.pos;this.type=7&a,e(l,i,this),this.pos===u&&this.skip(a)}return i}readMessage(e,i){return this.readFields(e,i,this.readVarint()+this.pos)}readFixed32(){let e=this.dataView.getUint32(this.pos,!0);return this.pos+=4,e}readSFixed32(){let e=this.dataView.getInt32(this.pos,!0);return this.pos+=4,e}readFixed64(){let e=this.dataView.getUint32(this.pos,!0)+this.dataView.getUint32(this.pos+4,!0)*Xh;return this.pos+=8,e}readSFixed64(){let e=this.dataView.getUint32(this.pos,!0)+this.dataView.getInt32(this.pos+4,!0)*Xh;return this.pos+=8,e}readFloat(){let e=this.dataView.getFloat32(this.pos,!0);return this.pos+=4,e}readDouble(){let e=this.dataView.getFloat64(this.pos,!0);return this.pos+=8,e}readVarint(e){let i=this.buf,o,a;return a=i[this.pos++],o=127&a,a<128?o:(a=i[this.pos++],o|=(127&a)<<7,a<128?o:(a=i[this.pos++],o|=(127&a)<<14,a<128?o:(a=i[this.pos++],o|=(127&a)<<21,a<128?o:(a=i[this.pos],o|=(15&a)<<28,(function(l,u,p){let g=p.buf,m,v;if(v=g[p.pos++],m=(112&v)>>4,v<128||(v=g[p.pos++],m|=(127&v)<<3,v<128)||(v=g[p.pos++],m|=(127&v)<<10,v<128)||(v=g[p.pos++],m|=(127&v)<<17,v<128)||(v=g[p.pos++],m|=(127&v)<<24,v<128)||(v=g[p.pos++],m|=(1&v)<<31,v<128))return ws(l,m,u);throw new Error(\"Expected varint not more than 10 bytes\")})(o,e,this)))))}readVarint64(){return this.readVarint(!0)}readSVarint(){let e=this.readVarint();return e%2==1?(e+1)/-2:e/2}readBoolean(){return!!this.readVarint()}readString(){let e=this.readVarint()+this.pos,i=this.pos;return this.pos=e,e-i>=12&&Vp?Vp.decode(this.buf.subarray(i,e)):(function(o,a,l){let u=\"\",p=a;for(;p239?4:g>223?3:g>191?2:1;if(p+b>l)break;b===1?g<128&&(T=g):b===2?(m=o[p+1],(192&m)==128&&(T=(31&g)<<6|63&m,T<=127&&(T=null))):b===3?(m=o[p+1],v=o[p+2],(192&m)==128&&(192&v)==128&&(T=(15&g)<<12|(63&m)<<6|63&v,(T<=2047||T>=55296&&T<=57343)&&(T=null))):b===4&&(m=o[p+1],v=o[p+2],_=o[p+3],(192&m)==128&&(192&v)==128&&(192&_)==128&&(T=(15&g)<<18|(63&m)<<12|(63&v)<<6|63&_,(T<=65535||T>=1114112)&&(T=null))),T===null?(T=65533,b=1):T>65535&&(T-=65536,u+=String.fromCharCode(T>>>10&1023|55296),T=56320|1023&T),u+=String.fromCharCode(T),p+=b}return u})(this.buf,i,e)}readBytes(){let e=this.readVarint()+this.pos,i=this.buf.subarray(this.pos,e);return this.pos=e,i}readPackedVarint(e=[],i){let o=this.readPackedEnd();for(;this.pos127;);else if(i===2)this.pos=this.readVarint()+this.pos;else if(i===5)this.pos+=4;else{if(i!==1)throw new Error(`Unimplemented type: ${i}`);this.pos+=8}}writeTag(e,i){this.writeVarint(e<<3|i)}realloc(e){let i=this.length||16;for(;i268435455||e<0?(function(i,o){let a,l;if(i>=0?(a=i%4294967296|0,l=i/4294967296|0):(a=~(-i%4294967296),l=~(-i/4294967296),4294967295^a?a=a+1|0:(a=0,l=l+1|0)),i>=18446744073709552e3||i<-18446744073709552e3)throw new Error(\"Given varint doesn't fit into 10 bytes\");o.realloc(10),(function(u,p,g){g.buf[g.pos++]=127&u|128,u>>>=7,g.buf[g.pos++]=127&u|128,u>>>=7,g.buf[g.pos++]=127&u|128,u>>>=7,g.buf[g.pos++]=127&u|128,g.buf[g.pos]=127&(u>>>=7)})(a,0,o),(function(u,p){let g=(7&u)<<4;p.buf[p.pos++]|=g|((u>>>=3)?128:0),u&&(p.buf[p.pos++]=127&u|((u>>>=7)?128:0),u&&(p.buf[p.pos++]=127&u|((u>>>=7)?128:0),u&&(p.buf[p.pos++]=127&u|((u>>>=7)?128:0),u&&(p.buf[p.pos++]=127&u|((u>>>=7)?128:0),u&&(p.buf[p.pos++]=127&u)))))})(l,o)})(e,this):(this.realloc(4),this.buf[this.pos++]=127&e|(e>127?128:0),e<=127||(this.buf[this.pos++]=127&(e>>>=7)|(e>127?128:0),e<=127||(this.buf[this.pos++]=127&(e>>>=7)|(e>127?128:0),e<=127||(this.buf[this.pos++]=e>>>7&127))))}writeSVarint(e){this.writeVarint(e<0?2*-e-1:2*e)}writeBoolean(e){this.writeVarint(+e)}writeString(e){e=String(e),this.realloc(4*e.length),this.pos++;let i=this.pos;this.pos=(function(a,l,u){for(let p,g,m=0;m55295&&p<57344){if(!g){p>56319||m+1===l.length?(a[u++]=239,a[u++]=191,a[u++]=189):g=p;continue}if(p<56320){a[u++]=239,a[u++]=191,a[u++]=189,g=p;continue}p=g-55296<<10|p-56320|65536,g=null}else g&&(a[u++]=239,a[u++]=191,a[u++]=189,g=null);p<128?a[u++]=p:(p<2048?a[u++]=p>>6|192:(p<65536?a[u++]=p>>12|224:(a[u++]=p>>18|240,a[u++]=p>>12&63|128),a[u++]=p>>6&63|128),a[u++]=63&p|128)}return u})(this.buf,e,this.pos);let o=this.pos-i;o>=128&&jp(i,o,this),this.pos=i-1,this.writeVarint(o),this.pos+=o}writeFloat(e){this.realloc(4),this.dataView.setFloat32(this.pos,e,!0),this.pos+=4}writeDouble(e){this.realloc(8),this.dataView.setFloat64(this.pos,e,!0),this.pos+=8}writeBytes(e){let i=e.length;this.writeVarint(i),this.realloc(i);for(let o=0;o=128&&jp(o,a,this),this.pos=o-1,this.writeVarint(a),this.pos+=a}writeMessage(e,i,o){this.writeTag(e,2),this.writeRawMessage(i,o)}writePackedVarint(e,i){i.length&&this.writeMessage(e,e0,i)}writePackedSVarint(e,i){i.length&&this.writeMessage(e,t0,i)}writePackedBoolean(e,i){i.length&&this.writeMessage(e,n0,i)}writePackedFloat(e,i){i.length&&this.writeMessage(e,i0,i)}writePackedDouble(e,i){i.length&&this.writeMessage(e,r0,i)}writePackedFixed32(e,i){i.length&&this.writeMessage(e,o0,i)}writePackedSFixed32(e,i){i.length&&this.writeMessage(e,a0,i)}writePackedFixed64(e,i){i.length&&this.writeMessage(e,s0,i)}writePackedSFixed64(e,i){i.length&&this.writeMessage(e,l0,i)}writeBytesField(e,i){this.writeTag(e,2),this.writeBytes(i)}writeFixed32Field(e,i){this.writeTag(e,5),this.writeFixed32(i)}writeSFixed32Field(e,i){this.writeTag(e,5),this.writeSFixed32(i)}writeFixed64Field(e,i){this.writeTag(e,1),this.writeFixed64(i)}writeSFixed64Field(e,i){this.writeTag(e,1),this.writeSFixed64(i)}writeVarintField(e,i){this.writeTag(e,0),this.writeVarint(i)}writeSVarintField(e,i){this.writeTag(e,0),this.writeSVarint(i)}writeStringField(e,i){this.writeTag(e,2),this.writeString(i)}writeFloatField(e,i){this.writeTag(e,5),this.writeFloat(i)}writeDoubleField(e,i){this.writeTag(e,1),this.writeDouble(i)}writeBooleanField(e,i){this.writeVarintField(e,+i)}}function ws(r,e,i){return i?4294967296*e+(r>>>0):4294967296*(e>>>0)+(r>>>0)}function jp(r,e,i){let o=e<=16383?1:e<=2097151?2:e<=268435455?3:Math.floor(Math.log(e)/(7*Math.LN2));i.realloc(o);for(let a=i.pos-1;a>=r;a--)i.buf[a+o]=i.buf[a]}function e0(r,e){for(let i=0;ip.h-u.h));let o=[{x:0,y:0,w:Math.max(Math.ceil(Math.sqrt(e/.95)),i),h:1/0}],a=0,l=0;for(let u of r)for(let p=o.length-1;p>=0;p--){let g=o[p];if(!(u.w>g.w||u.h>g.h)){if(u.x=g.x,u.y=g.y,l=Math.max(l,u.y+u.h),a=Math.max(a,u.x+u.w),u.w===g.w&&u.h===g.h){let m=o.pop();m&&pC.toCodeUnitIndex(Y)));let j=L(C.toString(),z);for(let Y of j){let Q=[...Y].map((()=>0));A.push(new bs(Y,C.sections,Q))}}else if(R){A=[],z=z.map((oe=>C.toCodeUnitIndex(oe)));let j=0,Y=[];for(let oe of C.text)Y.push(...Array(oe.length).fill(C.sectionIndex[j])),j++;let Q=R(C.text,Y,z);for(let oe of Q){let ie=[],ue=\"\";for(let he of oe[0])ie.push(oe[1][ue.length]),ue+=he;A.push(new bs(oe[0],C.sections,ie))}}else A=(function(j,Y){let Q=[],oe=0;for(let ie of Y)Q.push(j.substring(oe,ie)),oe=ie;return oem){let v=Math.ceil(l/m);a*=v/u,u=v}return{x1:o,y1:a,x2:o+l,y2:a+u}}function $p(r,e,i,o,a,l){let u=r.image,p;if(u.content){let A=u.content,z=u.pixelRatio||1;p=[A[0]/z,A[1]/z,u.displaySize[0]-A[2]/z,u.displaySize[1]-A[3]/z]}let g=e.left*l,m=e.right*l,v,_,T,b;i===\"width\"||i===\"both\"?(b=a[0]+g-o[3],_=a[0]+m+o[1]):(b=a[0]+(g+m-u.displaySize[0])/2,_=b+u.displaySize[0]);let P=e.top*l,C=e.bottom*l;return i===\"height\"||i===\"both\"?(v=a[1]+P-o[0],T=a[1]+C+o[2]):(v=a[1]+(P+C-u.displaySize[1])/2,T=v+u.displaySize[1]),{image:u,top:v,right:_,bottom:T,left:b,collisionPadding:p}}ze(\"ImagePosition\",Yh),ze(\"ImageAtlas\",Up),k.ax=void 0,(mo=k.ax||(k.ax={}))[mo.none=0]=\"none\",mo[mo.horizontal=1]=\"horizontal\",mo[mo.vertical=2]=\"vertical\",mo[mo.horizontalOnly=3]=\"horizontalOnly\";let Fn=128,go=32640;function Zp(r,e){let{expression:i}=e;if(i.kind===\"constant\")return{kind:\"constant\",layoutSize:i.evaluate(new Et(r+1))};if(i.kind===\"source\")return{kind:\"source\"};{let{zoomStops:o,interpolationType:a}=i,l=0;for(;lu.id)),this.index=e.index,this.pixelRatio=e.pixelRatio,this.sourceLayerIndex=e.sourceLayerIndex,this.hasDependencies=!1,this.hasRTLText=!1,this.sortKeyRanges=[],this.collisionCircleArray=[];let i=this.layers[0]._unevaluatedLayout._values;this.textSizeData=Zp(this.zoom,i[\"text-size\"]),this.iconSizeData=Zp(this.zoom,i[\"icon-size\"]);let o=this.layers[0].layout,a=o.get(\"symbol-sort-key\"),l=o.get(\"symbol-z-order\");this.canOverlap=Jh(o,\"text-overlap\",\"text-allow-overlap\")!==\"never\"||Jh(o,\"icon-overlap\",\"icon-allow-overlap\")!==\"never\"||o.get(\"text-ignore-placement\")||o.get(\"icon-ignore-placement\"),this.sortFeaturesByKey=l!==\"viewport-y\"&&!a.isConstant(),this.sortFeaturesByY=(l===\"viewport-y\"||l===\"auto\"&&!this.sortFeaturesByKey)&&this.canOverlap,o.get(\"symbol-placement\")===\"point\"&&(this.writingModes=o.get(\"text-writing-mode\").map((u=>k.ax[u]))),this.stateDependentLayerIds=this.layers.filter((u=>u.isStateDependent())).map((u=>u.id)),this.sourceID=e.sourceID}createArrays(){this.text=new ed(new Vr(this.layers,this.zoom,(e=>e.startsWith(\"text\")))),this.icon=new ed(new Vr(this.layers,this.zoom,(e=>e.startsWith(\"icon\")))),this.glyphOffsetArray=new S,this.lineVertexArray=new M,this.symbolInstances=new w,this.textAnchorOffsets=new I}calculateGlyphDependencies(e,i,o,a,l){for(let u of e)if(i[u.codePointAt(0)]=!0,(o||a)&&l){let p=rc[u];p&&(i[p.codePointAt(0)]=!0)}}populate(e,i,o){var a;let l=this.layers[0],u=l.layout,p=u.get(\"text-font\"),g=u.get(\"text-field\"),m=u.get(\"icon-image\"),v=(g.value.kind!==\"constant\"||g.value.value instanceof Vi&&!g.value.value.isEmpty()||g.value.value.toString().length>0)&&(p.value.kind!==\"constant\"||p.value.value.length>0),_=m.value.kind!==\"constant\"||!!m.value.value||Object.keys(m.parameters).length>0,T=u.get(\"symbol-sort-key\");if(this.features=[],!v&&!_)return;let b=i.iconDependencies,P=i.glyphDependencies,C=i.availableImages,A=new Et(this.zoom);for(let{feature:z,id:L,index:R,sourceLayerIndex:F}of e){let O=l._featureFilter.needGeometry,j=ln(z,O);if(!l._featureFilter.filter(A,j,o))continue;let Y,Q;if(O||(j.geometry=sn(z)),v){let ie=l.getValueAndResolveTokens(\"text-field\",j,o,C),ue=Vi.factory(ie);this.hasRTLText||(this.hasRTLText=v0(ue)),(!this.hasRTLText||Fr.getRTLTextPluginStatus()===\"unavailable\"||this.hasRTLText&&Fr.isParsed())&&(Y=Yg(ue,l,j))}if(_){let ie=l.getValueAndResolveTokens(\"icon-image\",j,o,C);Q=ie instanceof $i?ie:$i.fromString(ie)}if(!Y&&!Q)continue;let oe=this.sortFeaturesByKey?T.evaluate(j,{},o):void 0;if(this.features.push({id:L,text:Y,icon:Q,index:R,sourceLayerIndex:F,geometry:j.geometry,properties:z.properties,type:Jl.types[z.type],sortKey:oe}),Q&&(b[Q.name]=!0),Y){let ie=p.evaluate(j,{},o).join(\",\"),ue=u.get(\"text-rotation-alignment\")!==\"viewport\"&&u.get(\"symbol-placement\")!==\"point\";this.allowVerticalPlacement=(a=this.writingModes)===null||a===void 0?void 0:a.includes(k.ax.vertical);for(let he of Y.sections)if(he.image)b[he.image.name]=!0;else{let ae=Cl(Y.toString()),ne=he.fontStack||ie;P[ne]||(P[ne]={}),this.calculateGlyphDependencies(he.text,P[ne],ue,this.allowVerticalPlacement,ae)}}}u.get(\"symbol-placement\")===\"line\"&&(this.features=(function(z){let L={},R={},F=[],O=0;function j(ie){F.push(z[ie]),O++}function Y(ie,ue,he){let ae=R[ie];return delete R[ie],R[ue]=ae,F[ae].geometry[0].pop(),F[ae].geometry[0]=F[ae].geometry[0].concat(he[0]),ae}function Q(ie,ue,he){let ae=L[ue];return delete L[ue],L[ie]=ae,F[ae].geometry[0].shift(),F[ae].geometry[0]=he[0].concat(F[ae].geometry[0]),ae}function oe(ie,ue,he){let ae=he?ue[0][ue[0].length-1]:ue[0][0];return`${ie}:${ae.x}:${ae.y}`}for(let ie=0;ieie.geometry))})(this.features)),this.sortFeaturesByKey&&this.features.sort(((z,L)=>z.sortKey-L.sortKey))}update(e,i,o){this.stateDependentLayers.length&&(this.text.programConfigurations.updatePaintArrays(e,i,this.layers,{imagePositions:o}),this.icon.programConfigurations.updatePaintArrays(e,i,this.layers,{imagePositions:o}))}isEmpty(){return this.symbolInstances.length===0&&!this.hasRTLText}uploadPending(){return!this.uploaded||this.text.programConfigurations.needsUpload||this.icon.programConfigurations.needsUpload}upload(e){!this.uploaded&&this.hasDebugData()&&(this.textCollisionBox.upload(e),this.iconCollisionBox.upload(e)),this.text.upload(e,this.sortFeaturesByY,!this.uploaded,this.text.programConfigurations.needsUpload),this.icon.upload(e,this.sortFeaturesByY,!this.uploaded,this.icon.programConfigurations.needsUpload),this.uploaded=!0}destroyDebugData(){this.textCollisionBox.destroy(),this.iconCollisionBox.destroy()}destroy(){this.text.destroy(),this.icon.destroy(),this.hasDebugData()&&this.destroyDebugData()}addToLineVertexArray(e,i){let o=this.lineVertexArray.length;if(e.segment!==void 0){let a=e.dist(i[e.segment+1]),l=e.dist(i[e.segment]),u={};for(let p=e.segment+1;p=0;p--)u[p]={x:i[p].x,y:i[p].y,tileUnitDistanceFromAnchor:l},p>0&&(l+=i[p-1].dist(i[p]));for(let p=0;p0}hasIconData(){return this.icon.segments.get().length>0}hasDebugData(){return this.textCollisionBox&&this.iconCollisionBox}hasTextCollisionBoxData(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0}hasIconCollisionBoxData(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0}addIndicesForPlacedSymbol(e,i){let o=e.placedSymbolArray.get(i),a=o.vertexStartIndex+4*o.numGlyphs;for(let l=o.vertexStartIndex;la[p]-a[g]||l[g]-l[p])),u}addToSortKeyRanges(e,i){let o=this.sortKeyRanges[this.sortKeyRanges.length-1];o?.sortKey===i?o.symbolInstanceEnd=e+1:this.sortKeyRanges.push({sortKey:i,symbolInstanceStart:e,symbolInstanceEnd:e+1})}sortFeatures(e){if(this.sortFeaturesByY&&this.sortedAngle!==e&&!(this.text.segments.get().length>1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(e),this.sortedAngle=e,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(let i of this.symbolInstanceIndexes){let o=this.symbolInstances.get(i);this.featureSortOrder.push(o.featureIndex);let a=[o.rightJustifiedTextSymbolIndex,o.centerJustifiedTextSymbolIndex,o.leftJustifiedTextSymbolIndex];for(let l=0;l=0&&a.indexOf(u)===l&&this.addIndicesForPlacedSymbol(this.text,u)}o.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,o.verticalPlacedTextSymbolIndex),o.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,o.placedIconSymbolIndex),o.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,o.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}}}let Wp,Hp;ze(\"SymbolBucket\",Ts,{omit:[\"layers\",\"collisionBoxArray\",\"features\",\"compareText\"]}),Ts.MAX_GLYPHS=65535,Ts.addDynamicAttributes=Qh;var id={get paint(){return Hp=Hp||new Ii({\"icon-opacity\":new Ue(de.paint_symbol[\"icon-opacity\"]),\"icon-color\":new Ue(de.paint_symbol[\"icon-color\"]),\"icon-halo-color\":new Ue(de.paint_symbol[\"icon-halo-color\"]),\"icon-halo-width\":new Ue(de.paint_symbol[\"icon-halo-width\"]),\"icon-halo-blur\":new Ue(de.paint_symbol[\"icon-halo-blur\"]),\"icon-translate\":new Le(de.paint_symbol[\"icon-translate\"]),\"icon-translate-anchor\":new Le(de.paint_symbol[\"icon-translate-anchor\"]),\"text-opacity\":new Ue(de.paint_symbol[\"text-opacity\"]),\"text-color\":new Ue(de.paint_symbol[\"text-color\"],{runtimeType:Gi,getOverride:r=>r.textColor,hasOverride:r=>!!r.textColor}),\"text-halo-color\":new Ue(de.paint_symbol[\"text-halo-color\"]),\"text-halo-width\":new Ue(de.paint_symbol[\"text-halo-width\"]),\"text-halo-blur\":new Ue(de.paint_symbol[\"text-halo-blur\"]),\"text-translate\":new Le(de.paint_symbol[\"text-translate\"]),\"text-translate-anchor\":new Le(de.paint_symbol[\"text-translate-anchor\"])})},get layout(){return Wp=Wp||new Ii({\"symbol-placement\":new Le(de.layout_symbol[\"symbol-placement\"]),\"symbol-spacing\":new Le(de.layout_symbol[\"symbol-spacing\"]),\"symbol-avoid-edges\":new Le(de.layout_symbol[\"symbol-avoid-edges\"]),\"symbol-sort-key\":new Ue(de.layout_symbol[\"symbol-sort-key\"]),\"symbol-z-order\":new Le(de.layout_symbol[\"symbol-z-order\"]),\"icon-allow-overlap\":new Le(de.layout_symbol[\"icon-allow-overlap\"]),\"icon-overlap\":new Le(de.layout_symbol[\"icon-overlap\"]),\"icon-ignore-placement\":new Le(de.layout_symbol[\"icon-ignore-placement\"]),\"icon-optional\":new Le(de.layout_symbol[\"icon-optional\"]),\"icon-rotation-alignment\":new Le(de.layout_symbol[\"icon-rotation-alignment\"]),\"icon-size\":new Ue(de.layout_symbol[\"icon-size\"]),\"icon-text-fit\":new Le(de.layout_symbol[\"icon-text-fit\"]),\"icon-text-fit-padding\":new Le(de.layout_symbol[\"icon-text-fit-padding\"]),\"icon-image\":new Ue(de.layout_symbol[\"icon-image\"]),\"icon-rotate\":new Ue(de.layout_symbol[\"icon-rotate\"]),\"icon-padding\":new Ue(de.layout_symbol[\"icon-padding\"]),\"icon-keep-upright\":new Le(de.layout_symbol[\"icon-keep-upright\"]),\"icon-offset\":new Ue(de.layout_symbol[\"icon-offset\"]),\"icon-anchor\":new Ue(de.layout_symbol[\"icon-anchor\"]),\"icon-pitch-alignment\":new Le(de.layout_symbol[\"icon-pitch-alignment\"]),\"text-pitch-alignment\":new Le(de.layout_symbol[\"text-pitch-alignment\"]),\"text-rotation-alignment\":new Le(de.layout_symbol[\"text-rotation-alignment\"]),\"text-field\":new Ue(de.layout_symbol[\"text-field\"]),\"text-font\":new Ue(de.layout_symbol[\"text-font\"]),\"text-size\":new Ue(de.layout_symbol[\"text-size\"]),\"text-max-width\":new Ue(de.layout_symbol[\"text-max-width\"]),\"text-line-height\":new Le(de.layout_symbol[\"text-line-height\"]),\"text-letter-spacing\":new Ue(de.layout_symbol[\"text-letter-spacing\"]),\"text-justify\":new Ue(de.layout_symbol[\"text-justify\"]),\"text-radial-offset\":new Ue(de.layout_symbol[\"text-radial-offset\"]),\"text-variable-anchor\":new Le(de.layout_symbol[\"text-variable-anchor\"]),\"text-variable-anchor-offset\":new Ue(de.layout_symbol[\"text-variable-anchor-offset\"]),\"text-anchor\":new Ue(de.layout_symbol[\"text-anchor\"]),\"text-max-angle\":new Le(de.layout_symbol[\"text-max-angle\"]),\"text-writing-mode\":new Le(de.layout_symbol[\"text-writing-mode\"]),\"text-rotate\":new Ue(de.layout_symbol[\"text-rotate\"]),\"text-padding\":new Le(de.layout_symbol[\"text-padding\"]),\"text-keep-upright\":new Le(de.layout_symbol[\"text-keep-upright\"]),\"text-transform\":new Ue(de.layout_symbol[\"text-transform\"]),\"text-offset\":new Ue(de.layout_symbol[\"text-offset\"]),\"text-allow-overlap\":new Le(de.layout_symbol[\"text-allow-overlap\"]),\"text-overlap\":new Le(de.layout_symbol[\"text-overlap\"]),\"text-ignore-placement\":new Le(de.layout_symbol[\"text-ignore-placement\"]),\"text-optional\":new Le(de.layout_symbol[\"text-optional\"])})}};class Xp{constructor(e){if(e.property.overrides===void 0)throw new Error(\"overrides must be provided to instantiate FormatSectionOverride class\");this.type=e.property.overrides?e.property.overrides.runtimeType:Hr,this.defaultValue=e}evaluate(e){if(e.formattedSection){let i=this.defaultValue.property.overrides;if(i?.hasOverride(e.formattedSection))return i.getOverride(e.formattedSection)}return e.feature&&e.featureState?this.defaultValue.evaluate(e.feature,e.featureState):this.defaultValue.property.specification.default}eachChild(e){this.defaultValue.isConstant()||e(this.defaultValue.value._styleExpression.expression)}outputDefined(){return!1}serialize(){return null}}ze(\"FormatSectionOverride\",Xp,{omit:[\"defaultValue\"]});class ku extends nr{constructor(e,i){super(e,id,i)}recalculate(e,i){if(super.recalculate(e,i),this.layout.get(\"icon-rotation-alignment\")===\"auto\"&&(this.layout._values[\"icon-rotation-alignment\"]=this.layout.get(\"symbol-placement\")!==\"point\"?\"map\":\"viewport\"),this.layout.get(\"text-rotation-alignment\")===\"auto\"&&(this.layout._values[\"text-rotation-alignment\"]=this.layout.get(\"symbol-placement\")!==\"point\"?\"map\":\"viewport\"),this.layout.get(\"text-pitch-alignment\")===\"auto\"&&(this.layout._values[\"text-pitch-alignment\"]=this.layout.get(\"text-rotation-alignment\")===\"map\"?\"map\":\"viewport\"),this.layout.get(\"icon-pitch-alignment\")===\"auto\"&&(this.layout._values[\"icon-pitch-alignment\"]=this.layout.get(\"icon-rotation-alignment\")),this.layout.get(\"symbol-placement\")===\"point\"){let o=this.layout.get(\"text-writing-mode\");if(o){let a=[];for(let l of o)a.includes(l)||a.push(l);this.layout._values[\"text-writing-mode\"]=a}else this.layout._values[\"text-writing-mode\"]=[\"horizontal\"]}this._setPaintOverrides()}getValueAndResolveTokens(e,i,o,a){let l=this.layout.get(e).evaluate(i,{},o,a),u=this._unevaluatedLayout._values[e];return u.isDataDriven()||$a(u.value)||!l?l:(function(p,g){return g.replace(/{([^{}]+)}/g,((m,v)=>p&&v in p?String(p[v]):\"\"))})(i.properties,l)}createBucket(e){return new Ts(e)}queryRadius(){return 0}queryIntersectsFeature(){throw new Error(\"Should take a different path in FeatureIndex\")}_setPaintOverrides(){for(let e of id.paint.overridableProperties){if(!ku.hasPaintOverride(this.layout,e))continue;let i=this.paint.get(e),o=new Xp(i),a=new qo(o,i.property.specification),l=null;l=i.value.kind===\"constant\"||i.value.kind===\"source\"?new Za(\"source\",a):new Wa(\"composite\",a,i.value.zoomStops),this.paint._values[e]=new yr(i.property,l,i.parameters)}}_handleOverridablePaintPropertyUpdate(e,i,o){return!(!this.layout||i.isDataDriven()||o.isDataDriven())&&ku.hasPaintOverride(this.layout,e)}static hasPaintOverride(e,i){let o=e.get(\"text-field\"),a=id.paint.properties[i],l=!1,u=p=>{var g;for(let m of p)if(!((g=a.overrides)===null||g===void 0)&&g.hasOverride(m))return void(l=!0)};if(o.value.kind===\"constant\"&&o.value.value instanceof Vi)u(o.value.value.sections);else if(o.value.kind===\"source\"||o.value.kind===\"composite\"){let p=m=>{l||(m instanceof br&&qt(m.value)===Io?u(m.value.sections):m instanceof wn?u(m.sections):m.eachChild(p))},g=o.value;g._styleExpression&&p(g._styleExpression.expression)}return l}}let Yp;var x0={get paint(){return Yp=Yp||new Ii({\"background-color\":new Le(de.paint_background[\"background-color\"]),\"background-pattern\":new pu(de.paint_background[\"background-pattern\"]),\"background-opacity\":new Le(de.paint_background[\"background-opacity\"])})}};class b0 extends nr{constructor(e,i){super(e,x0,i)}}class w0 extends nr{constructor(e,i){super(e,{},i),this.onAdd=o=>{this.implementation.onAdd&&this.implementation.onAdd(o,o.painter.context.gl)},this.onRemove=o=>{this.implementation.onRemove&&this.implementation.onRemove(o,o.painter.context.gl)},this.implementation=e}is3D(){return this.implementation.renderingMode===\"3d\"}hasOffscreenPass(){return this.implementation.prerender!==void 0}recalculate(){}updateTransitions(){}hasTransition(){return!1}serialize(){throw new Error(\"Custom layers cannot be serialized\")}}class T0{constructor(e){this._methodToThrottle=e,this._triggered=!1,this._channel=new MessageChannel,this._channel.port2.onmessage=()=>{this._triggered=!1,this._methodToThrottle()}}trigger(){var e;this._triggered||(this._triggered=!0,(e=this._channel)===null||e===void 0||e.port1.postMessage(!0))}remove(){delete this._channel,this._methodToThrottle=()=>{}}}let S0={once:!0},rd=63710088e-1;class _o{constructor(e,i){if(isNaN(e)||isNaN(i))throw new Error(`Invalid LngLat object: (${e}, ${i})`);if(this.lng=+e,this.lat=+i,this.lat>90||this.lat<-90)throw new Error(\"Invalid LngLat latitude value: must be between -90 and 90\")}wrap(){return new _o($r(this.lng,-180,180),this.lat)}toArray(){return[this.lng,this.lat]}toString(){return`LngLat(${this.lng}, ${this.lat})`}distanceTo(e){let i=Math.PI/180,o=this.lat*i,a=e.lat*i,l=Math.sin(o)*Math.sin(a)+Math.cos(o)*Math.cos(a)*Math.cos((e.lng-this.lng)*i);return rd*Math.acos(Math.min(l,1))}static convert(e){if(e instanceof _o)return e;if(Array.isArray(e)&&(e.length===2||e.length===3))return new _o(Number(e[0]),Number(e[1]));if(!Array.isArray(e)&&typeof e==\"object\"&&e!==null)return new _o(Number(\"lng\"in e?e.lng:e.lon),Number(e.lat));throw new Error(\"`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]\")}}let Kp=2*Math.PI*rd;function Jp(r){return Kp*Math.cos(r*Math.PI/180)}function Qp(r){return(180+r)/360}function ef(r){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+r*Math.PI/360)))/360}function tf(r,e){return r/Jp(e)}function rf(r){return 360*r-180}function Ru(r){return 360/Math.PI*Math.atan(Math.exp((180-360*r)*Math.PI/180))-90}function nf(r,e){return r*Jp(Ru(e))}class nc{constructor(e,i,o=0){this.x=+e,this.y=+i,this.z=+o}static fromLngLat(e,i=0){let o=_o.convert(e);return new nc(Qp(o.lng),ef(o.lat),tf(i,o.lat))}toLngLat(){return new _o(rf(this.x),Ru(this.y))}toAltitude(){return nf(this.z,this.y)}meterInMercatorCoordinateUnits(){return 1/Kp*(e=Ru(this.y),1/Math.cos(e*Math.PI/180));var e}}function of(r,e,i){var o=2*Math.PI*6378137/256/Math.pow(2,i);return[r*o-2*Math.PI*6378137/2,e*o-2*Math.PI*6378137/2]}class nd{constructor(e,i,o){if(!(function(a,l,u){return!(a<0||a>25||u<0||u>=Math.pow(2,a)||l<0||l>=Math.pow(2,a))})(e,i,o))throw new Error(`x=${i}, y=${o}, z=${e} outside of bounds. 0<=x<${Math.pow(2,e)}, 0<=y<${Math.pow(2,e)} 0<=z<=25 `);this.z=e,this.x=i,this.y=o,this.key=Ss(0,e,e,i,o)}equals(e){return this.z===e.z&&this.x===e.x&&this.y===e.y}url(e,i,o){let a=(u=this.y,p=this.z,g=of(256*(l=this.x),256*(u=Math.pow(2,p)-u-1),p),m=of(256*(l+1),256*(u+1),p),g[0]+\",\"+g[1]+\",\"+m[0]+\",\"+m[1]);var l,u,p,g,m;let v=(function(_,T,b){let P=\"\";for(let C=_;C>0;C--){let A=1<1?\"@2x\":\"\").replace(/{quadkey}/g,v).replace(/{bbox-epsg-3857}/g,a)}isChildOf(e){let i=this.z-e.z;return i>0&&e.x===this.x>>i&&e.y===this.y>>i}getTilePoint(e){let i=Math.pow(2,this.z);return new pe((e.x*i-this.x)*qe,(e.y*i-this.y)*qe)}toString(){return`${this.z}/${this.x}/${this.y}`}}class af{constructor(e,i){this.wrap=e,this.canonical=i,this.key=Ss(e,i.z,i.z,i.x,i.y)}}class ar{constructor(e,i,o,a,l){if(this.terrainRttPosMatrix32f=null,e= z; overscaledZ = ${e}; z = ${o}`);this.overscaledZ=e,this.wrap=i,this.canonical=new nd(o,+a,+l),this.key=Ss(i,e,o,a,l)}clone(){return new ar(this.overscaledZ,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)}equals(e){return this.overscaledZ===e.overscaledZ&&this.wrap===e.wrap&&this.canonical.equals(e.canonical)}scaledTo(e){if(e>this.overscaledZ)throw new Error(`targetZ > this.overscaledZ; targetZ = ${e}; overscaledZ = ${this.overscaledZ}`);let i=this.canonical.z-e;return e>this.canonical.z?new ar(e,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new ar(e,this.wrap,e,this.canonical.x>>i,this.canonical.y>>i)}isOverscaled(){return this.overscaledZ>this.canonical.z}calculateScaledKey(e,i){if(e>this.overscaledZ)throw new Error(`targetZ > this.overscaledZ; targetZ = ${e}; overscaledZ = ${this.overscaledZ}`);let o=this.canonical.z-e;return e>this.canonical.z?Ss(this.wrap*+i,e,this.canonical.z,this.canonical.x,this.canonical.y):Ss(this.wrap*+i,e,e,this.canonical.x>>o,this.canonical.y>>o)}isChildOf(e){if(e.wrap!==this.wrap||this.overscaledZ-e.overscaledZ<=0)return!1;if(e.overscaledZ===0)return this.overscaledZ>0;let i=this.canonical.z-e.canonical.z;return!(i<0)&&e.canonical.x===this.canonical.x>>i&&e.canonical.y===this.canonical.y>>i}children(e){if(this.overscaledZ>=e)return[new ar(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];let i=this.canonical.z+1,o=2*this.canonical.x,a=2*this.canonical.y;return[new ar(i,this.wrap,i,o,a),new ar(i,this.wrap,i,o+1,a),new ar(i,this.wrap,i,o,a+1),new ar(i,this.wrap,i,o+1,a+1)]}isLessThan(e){return this.wrape.wrap)&&(this.overscaledZe.overscaledZ)&&(this.canonical.xe.canonical.x)&&this.canonical.y=0&&e=0&&i=m)return null;let _=this.canonical.x+a,T=this.wrap;return _<0?(T-=Math.ceil(-_/m),_=(_%m+m)%m):_>=m&&(T+=Math.floor(_/m),_%=m),{tileID:new ar(this.overscaledZ,T,g,_,v),x:u,y:p}}}function Ss(r,e,i,o,a){(r*=2)<0&&(r=-1*r-1);let l=1<this.maxX||this.minY>this.maxY)&&(this.minX=1/0,this.maxX=-1/0,this.minY=1/0,this.maxY=-1/0),this}shrinkBy(e){return this.expandBy(-e)}map(e){let i=new da;return i.extend(e(new pe(this.minX,this.minY))),i.extend(e(new pe(this.maxX,this.minY))),i.extend(e(new pe(this.minX,this.maxY))),i.extend(e(new pe(this.maxX,this.maxY))),i}static fromPoints(e){let i=new da;for(let o of e)i.extend(o);return i}contains(e){return e.x>=this.minX&&e.x<=this.maxX&&e.y>=this.minY&&e.y<=this.maxY}empty(){return this.minX>this.maxX}width(){return this.maxX-this.minX}height(){return this.maxY-this.minY}covers(e){return!this.empty()&&!e.empty()&&e.minX>=this.minX&&e.maxX<=this.maxX&&e.minY>=this.minY&&e.maxY<=this.maxY}intersects(e){return!this.empty()&&!e.empty()&&e.minX<=this.maxX&&e.maxX>=this.minX&&e.minY<=this.maxY&&e.maxY>=this.minY}}class sf{constructor(e){this._stringToNumber={},this._numberToString=[];for(let i=0;i=this._numberToString.length)throw new Error(`Out of bounds. Index requested n=${e} can't be >= this._numberToString.length ${this._numberToString.length}`);return this._numberToString[e]}}class lf{constructor(e,i,o,a,l){this.type=\"Feature\",this._vectorTileFeature=e,this._x=o,this._y=a,this._z=i,this.properties=e.properties,this.id=l}projectPoint(e,i,o,a){return[360*(e.x+i)/a-180,360/Math.PI*Math.atan(Math.exp((1-2*(e.y+o)/a)*Math.PI))-90]}projectLine(e,i,o,a){return e.map((l=>this.projectPoint(l,i,o,a)))}get geometry(){if(this._geometry)return this._geometry;let e=this._vectorTileFeature,i=e.extent*Math.pow(2,this._z),o=e.extent*this._x,a=e.extent*this._y,l=e.loadGeometry();switch(e.type){case 1:{let u=[];for(let g of l)u.push(g[0]);let p=this.projectLine(u,o,a,i);this._geometry=u.length===1?{type:\"Point\",coordinates:p[0]}:{type:\"MultiPoint\",coordinates:p};break}case 2:{let u=l.map((p=>this.projectLine(p,o,a,i)));this._geometry=u.length===1?{type:\"LineString\",coordinates:u[0]}:{type:\"MultiLineString\",coordinates:u};break}case 3:{let u=up(l),p=[];for(let g of u)p.push(g.map((m=>this.projectLine(m,o,a,i))));this._geometry=p.length===1?{type:\"Polygon\",coordinates:p[0]}:{type:\"MultiPolygon\",coordinates:p};break}default:throw new Error(`unknown feature type: ${e.type}`)}return this._geometry}set geometry(e){this._geometry=e}toJSON(){let e={geometry:this.geometry};for(let i in this)i!==\"_geometry\"&&i!==\"_vectorTileFeature\"&&i!==\"_x\"&&i!==\"_y\"&&i!==\"_z\"&&(e[i]=this[i]);return e}}class Ms{constructor(e,i,o){this._name=e,this.dataBuffer=i,typeof o==\"number\"?this._size=o:(this.nullabilityBuffer=o,this._size=o.size())}getValue(e){return this.nullabilityBuffer&&!this.nullabilityBuffer.get(e)?null:this.getValueFromBuffer(e)}has(e){return this.nullabilityBuffer?.get(e)||!this.nullabilityBuffer}get name(){return this._name}get size(){return this._size}}class Lu extends Ms{}class od extends Lu{getValueFromBuffer(e){return this.dataBuffer[e]}}class ad extends Lu{getValueFromBuffer(e){return this.dataBuffer[e]}}class cf extends Ms{constructor(e,i,o,a){super(e,i,a),this.delta=o}}class sd extends cf{constructor(e,i,o,a){super(e,Int32Array.of(i),o,a)}getValueFromBuffer(e){return this.dataBuffer[0]+e*this.delta}}class ld extends Ms{constructor(e,i,o,a){super(e,a?Int32Array.of(i):Uint32Array.of(i),o)}getValueFromBuffer(e){return this.dataBuffer[0]}}class M0{constructor(e,i,o,a,l=4096){this._name=e,this._geometryVector=i,this._idVector=o,this._propertyVectors=a,this._extent=l}get name(){return this._name}get idVector(){return this._idVector}get geometryVector(){return this._geometryVector}get propertyVectors(){return this._propertyVectors}getPropertyVector(e){return this.propertyVectorsMap||(this.propertyVectorsMap=new Map(this._propertyVectors.map((i=>[i.name,i])))),this.propertyVectorsMap.get(e)}get numFeatures(){return this.geometryVector.numGeometries}get extent(){return this._extent}getFeatures(){let e=[],i=this.geometryVector.getGeometries();for(let o=0;o>>32-r;let ud=cd,Bn=256;function hd(r,e){return r-r%e}function P0(r){let e=r>>>0;return((255&e)<<24|(65280&e)<<8|e>>>8&65280|e>>>24&255)>>>0}let dd=(function(){if(!Number.isFinite(65536))return 65536;let r=hd(Math.floor(65536),Bn);return r===0?Bn:r})(),C0=3*dd/Bn+dd|0;function hf(){let r=new Uint8Array(C0);return{dataToBePacked:new Array(33),dataPointers:new Int32Array(33),byteContainer:r,byteContainerI32:new Int32Array(r.buffer,r.byteOffset,r.byteLength>>>2),exceptionSizes:new Int32Array(33)}}function E0(r,e,i,o,a){switch(a){case 1:(function(l,u,p,g){let m=g,v=u;for(let _=0;_<8;_++){let T=l[v++]>>>0;p[m++]=T>>>0&1,p[m++]=T>>>1&1,p[m++]=T>>>2&1,p[m++]=T>>>3&1,p[m++]=T>>>4&1,p[m++]=T>>>5&1,p[m++]=T>>>6&1,p[m++]=T>>>7&1,p[m++]=T>>>8&1,p[m++]=T>>>9&1,p[m++]=T>>>10&1,p[m++]=T>>>11&1,p[m++]=T>>>12&1,p[m++]=T>>>13&1,p[m++]=T>>>14&1,p[m++]=T>>>15&1,p[m++]=T>>>16&1,p[m++]=T>>>17&1,p[m++]=T>>>18&1,p[m++]=T>>>19&1,p[m++]=T>>>20&1,p[m++]=T>>>21&1,p[m++]=T>>>22&1,p[m++]=T>>>23&1,p[m++]=T>>>24&1,p[m++]=T>>>25&1,p[m++]=T>>>26&1,p[m++]=T>>>27&1,p[m++]=T>>>28&1,p[m++]=T>>>29&1,p[m++]=T>>>30&1,p[m++]=T>>>31&1}})(r,e,i,o);break;case 2:(function(l,u,p,g){let m=g,v=u;for(let _=0;_<8;_++){let T=l[v++]>>>0,b=l[v++]>>>0;p[m++]=T>>>0&3,p[m++]=T>>>2&3,p[m++]=T>>>4&3,p[m++]=T>>>6&3,p[m++]=T>>>8&3,p[m++]=T>>>10&3,p[m++]=T>>>12&3,p[m++]=T>>>14&3,p[m++]=T>>>16&3,p[m++]=T>>>18&3,p[m++]=T>>>20&3,p[m++]=T>>>22&3,p[m++]=T>>>24&3,p[m++]=T>>>26&3,p[m++]=T>>>28&3,p[m++]=T>>>30&3,p[m++]=b>>>0&3,p[m++]=b>>>2&3,p[m++]=b>>>4&3,p[m++]=b>>>6&3,p[m++]=b>>>8&3,p[m++]=b>>>10&3,p[m++]=b>>>12&3,p[m++]=b>>>14&3,p[m++]=b>>>16&3,p[m++]=b>>>18&3,p[m++]=b>>>20&3,p[m++]=b>>>22&3,p[m++]=b>>>24&3,p[m++]=b>>>26&3,p[m++]=b>>>28&3,p[m++]=b>>>30&3}})(r,e,i,o);break;case 3:(function(l,u,p,g){let m=g,v=u;for(let _=0;_<8;_++){let T=l[v++]>>>0,b=l[v++]>>>0,P=l[v++]>>>0;p[m++]=T>>>0&7,p[m++]=T>>>3&7,p[m++]=T>>>6&7,p[m++]=T>>>9&7,p[m++]=T>>>12&7,p[m++]=T>>>15&7,p[m++]=T>>>18&7,p[m++]=T>>>21&7,p[m++]=T>>>24&7,p[m++]=T>>>27&7,p[m++]=7&(T>>>30|(1&b)<<2),p[m++]=b>>>1&7,p[m++]=b>>>4&7,p[m++]=b>>>7&7,p[m++]=b>>>10&7,p[m++]=b>>>13&7,p[m++]=b>>>16&7,p[m++]=b>>>19&7,p[m++]=b>>>22&7,p[m++]=b>>>25&7,p[m++]=b>>>28&7,p[m++]=7&(b>>>31|(3&P)<<1),p[m++]=P>>>2&7,p[m++]=P>>>5&7,p[m++]=P>>>8&7,p[m++]=P>>>11&7,p[m++]=P>>>14&7,p[m++]=P>>>17&7,p[m++]=P>>>20&7,p[m++]=P>>>23&7,p[m++]=P>>>26&7,p[m++]=P>>>29&7}})(r,e,i,o);break;case 4:(function(l,u,p,g){let m=g,v=u;for(let _=0;_<8;_++){let T=l[v++]>>>0,b=l[v++]>>>0,P=l[v++]>>>0,C=l[v++]>>>0;p[m++]=T>>>0&15,p[m++]=T>>>4&15,p[m++]=T>>>8&15,p[m++]=T>>>12&15,p[m++]=T>>>16&15,p[m++]=T>>>20&15,p[m++]=T>>>24&15,p[m++]=T>>>28&15,p[m++]=b>>>0&15,p[m++]=b>>>4&15,p[m++]=b>>>8&15,p[m++]=b>>>12&15,p[m++]=b>>>16&15,p[m++]=b>>>20&15,p[m++]=b>>>24&15,p[m++]=b>>>28&15,p[m++]=P>>>0&15,p[m++]=P>>>4&15,p[m++]=P>>>8&15,p[m++]=P>>>12&15,p[m++]=P>>>16&15,p[m++]=P>>>20&15,p[m++]=P>>>24&15,p[m++]=P>>>28&15,p[m++]=C>>>0&15,p[m++]=C>>>4&15,p[m++]=C>>>8&15,p[m++]=C>>>12&15,p[m++]=C>>>16&15,p[m++]=C>>>20&15,p[m++]=C>>>24&15,p[m++]=C>>>28&15}})(r,e,i,o);break;case 5:(function(l,u,p,g){let m=g,v=u;for(let _=0;_<8;_++){let T=l[v++]>>>0,b=l[v++]>>>0,P=l[v++]>>>0,C=l[v++]>>>0,A=l[v++]>>>0;p[m++]=T>>>0&31,p[m++]=T>>>5&31,p[m++]=T>>>10&31,p[m++]=T>>>15&31,p[m++]=T>>>20&31,p[m++]=T>>>25&31,p[m++]=31&(T>>>30|(7&b)<<2),p[m++]=b>>>3&31,p[m++]=b>>>8&31,p[m++]=b>>>13&31,p[m++]=b>>>18&31,p[m++]=b>>>23&31,p[m++]=31&(b>>>28|(1&P)<<4),p[m++]=P>>>1&31,p[m++]=P>>>6&31,p[m++]=P>>>11&31,p[m++]=P>>>16&31,p[m++]=P>>>21&31,p[m++]=P>>>26&31,p[m++]=31&(P>>>31|(15&C)<<1),p[m++]=C>>>4&31,p[m++]=C>>>9&31,p[m++]=C>>>14&31,p[m++]=C>>>19&31,p[m++]=C>>>24&31,p[m++]=31&(C>>>29|(3&A)<<3),p[m++]=A>>>2&31,p[m++]=A>>>7&31,p[m++]=A>>>12&31,p[m++]=A>>>17&31,p[m++]=A>>>22&31,p[m++]=A>>>27&31}})(r,e,i,o);break;case 6:(function(l,u,p,g){let m=g,v=u;for(let _=0;_<8;_++){let T=l[v++]>>>0,b=l[v++]>>>0,P=l[v++]>>>0,C=l[v++]>>>0,A=l[v++]>>>0,z=l[v++]>>>0;p[m++]=T>>>0&63,p[m++]=T>>>6&63,p[m++]=T>>>12&63,p[m++]=T>>>18&63,p[m++]=T>>>24&63,p[m++]=63&(T>>>30|(15&b)<<2),p[m++]=b>>>4&63,p[m++]=b>>>10&63,p[m++]=b>>>16&63,p[m++]=b>>>22&63,p[m++]=63&(b>>>28|(3&P)<<4),p[m++]=P>>>2&63,p[m++]=P>>>8&63,p[m++]=P>>>14&63,p[m++]=P>>>20&63,p[m++]=P>>>26&63,p[m++]=C>>>0&63,p[m++]=C>>>6&63,p[m++]=C>>>12&63,p[m++]=C>>>18&63,p[m++]=C>>>24&63,p[m++]=63&(C>>>30|(15&A)<<2),p[m++]=A>>>4&63,p[m++]=A>>>10&63,p[m++]=A>>>16&63,p[m++]=A>>>22&63,p[m++]=63&(A>>>28|(3&z)<<4),p[m++]=z>>>2&63,p[m++]=z>>>8&63,p[m++]=z>>>14&63,p[m++]=z>>>20&63,p[m++]=z>>>26&63}})(r,e,i,o);break;case 7:(function(l,u,p,g){let m=g,v=u;for(let _=0;_<8;_++){let T=l[v++]>>>0,b=l[v++]>>>0,P=l[v++]>>>0,C=l[v++]>>>0,A=l[v++]>>>0,z=l[v++]>>>0,L=l[v++]>>>0;p[m++]=T>>>0&127,p[m++]=T>>>7&127,p[m++]=T>>>14&127,p[m++]=T>>>21&127,p[m++]=127&(T>>>28|(7&b)<<4),p[m++]=b>>>3&127,p[m++]=b>>>10&127,p[m++]=b>>>17&127,p[m++]=b>>>24&127,p[m++]=127&(b>>>31|(63&P)<<1),p[m++]=P>>>6&127,p[m++]=P>>>13&127,p[m++]=P>>>20&127,p[m++]=127&(P>>>27|(3&C)<<5),p[m++]=C>>>2&127,p[m++]=C>>>9&127,p[m++]=C>>>16&127,p[m++]=C>>>23&127,p[m++]=127&(C>>>30|(31&A)<<2),p[m++]=A>>>5&127,p[m++]=A>>>12&127,p[m++]=A>>>19&127,p[m++]=127&(A>>>26|(1&z)<<6),p[m++]=z>>>1&127,p[m++]=z>>>8&127,p[m++]=z>>>15&127,p[m++]=z>>>22&127,p[m++]=127&(z>>>29|(15&L)<<3),p[m++]=L>>>4&127,p[m++]=L>>>11&127,p[m++]=L>>>18&127,p[m++]=L>>>25&127}})(r,e,i,o);break;case 8:(function(l,u,p,g){let m=g,v=u;for(let _=0;_<8;_++){let T=l[v++]>>>0,b=l[v++]>>>0,P=l[v++]>>>0,C=l[v++]>>>0,A=l[v++]>>>0,z=l[v++]>>>0,L=l[v++]>>>0,R=l[v++]>>>0;p[m++]=T>>>0&255,p[m++]=T>>>8&255,p[m++]=T>>>16&255,p[m++]=T>>>24&255,p[m++]=b>>>0&255,p[m++]=b>>>8&255,p[m++]=b>>>16&255,p[m++]=b>>>24&255,p[m++]=P>>>0&255,p[m++]=P>>>8&255,p[m++]=P>>>16&255,p[m++]=P>>>24&255,p[m++]=C>>>0&255,p[m++]=C>>>8&255,p[m++]=C>>>16&255,p[m++]=C>>>24&255,p[m++]=A>>>0&255,p[m++]=A>>>8&255,p[m++]=A>>>16&255,p[m++]=A>>>24&255,p[m++]=z>>>0&255,p[m++]=z>>>8&255,p[m++]=z>>>16&255,p[m++]=z>>>24&255,p[m++]=L>>>0&255,p[m++]=L>>>8&255,p[m++]=L>>>16&255,p[m++]=L>>>24&255,p[m++]=R>>>0&255,p[m++]=R>>>8&255,p[m++]=R>>>16&255,p[m++]=R>>>24&255}})(r,e,i,o);break;case 16:(function(l,u,p,g){let m=g,v=u;for(let _=0;_<128;_++){let T=l[v++]>>>0;p[m++]=65535&T,p[m++]=T>>>16&65535}})(r,e,i,o);break;default:(function(l,u,p,g,m){let v=ud[m]>>>0,_=u,T=0,b=l[_]>>>0,P=g;for(let C=0;C<8;C++){for(let A=0;A<32;A++)if(T+m<=32)p[P+A]=b>>>T&v,T+=m,T===32&&(T=0,_++,A!==31&&(b=l[_]>>>0));else{let z=32-T,L=b>>>T;_++,b=l[_]>>>0;let R=m-z;p[P+A]=(L|(b&-1>>>32-R>>>0)<>>0)}})(r,e,i,o,a)}return e+(a<<3)|0}function I0(r,e,i,o){if(i+2>e)throw new Error(`FastPFOR decode: byteContainer underflow at block=${o} (need 2 bytes for [bitWidth, exceptionCount], bytePos=${i}, byteSize=${e})`);let a=r[i++],l=r[i++];if(a>32)throw new Error(`FastPFOR decode: invalid bitWidth=${a} at block=${o} (expected 0..32). This likely indicates corrupted or truncated input.`);return{bitWidth:a,exceptionCount:l,bytePosIn:i}}function A0(r,e,i,o,a,l,u,p,g){let{maxBits:m,exceptionBitWidth:v,bytePosIn:_}=(function(A,z,L,R,F,O){if(L+1>z)throw new Error(`FastPFOR decode: exception header underflow at block=${O} (need 1 byte for maxBits, bytePos=${L}, byteSize=${z})`);let j=A[L++];if(j32)throw new Error(`FastPFOR decode: invalid maxBits=${j} at block=${O} (bitWidth=${R}, expected ${R}..32)`);let Y=j-R|0;if(Y<1||Y>32)throw new Error(`FastPFOR decode: invalid exceptionBitWidth=${Y} at block=${O} (bitWidth=${R}, maxBits=${j})`);if(L+F>z)throw new Error(`FastPFOR decode: exception positions underflow at block=${O} (need=${F}, have=${z-L})`);return{maxBits:j,exceptionBitWidth:Y,bytePosIn:L}})(a,l,u,i,o,g);if(u=_,v===1){let A=1<C)throw new Error(`FastPFOR decode: exception stream overflow for exceptionBitWidth=${v} (ptr=${P}, need ${o}, size=${C}) at block ${g}`);for(let A=0;Ar.length-1)throw new Error(`FastPFOR decode: invalid whereMeta=${p} at pageStart=${u} (expected > 0 and pageStart+whereMeta < encoded.length=${r.length})`);let g=u+1|0,m=u+p|0,v=r[m]>>>0,_=v+3>>>2,T=m+1,b=T+_;if(b>=r.length)throw new Error(`FastPFOR decode: invalid byteSize=${v} (metaInts=${_}, pageStart=${u}, packedEnd=${m}, byteContainerStart=${T}) causes bitmapPos=${b} out of bounds (encoded.length=${r.length})`);let P=(function(z,L,R,F){F.byteContainer.length>>2;if(3&O.byteOffset)for(let Q=0;Q>>8&255,O[ie+2|0]=oe>>>16&255,O[ie+3|0]=oe>>>24&255}else{let Q=F.byteContainerI32;(!Q||Q.buffer!==O.buffer||Q.byteOffset!==O.byteOffset||Q.length>>2)),Q.set(z.subarray(L,L+j))}let Y=3&R;if(Y>0){let Q=0|z[L+j|0],oe=j<<2;for(let ie=0;ie>>(ie<<3)&255}return O})(r,T,v,l),C=v,A=(function(z,L,R){let F=0|z[L++],O=R.dataToBePacked;for(let j=2;j<=32;j=j+1|0){if(!(F>>>j-1&1))continue;if(L>=z.length)throw new Error(`FastPFOR decode: truncated exception stream header (bitWidth=${j}, streamWordIndex=${L}, needWords=1, availableWords=${z.length-L}, encodedWords=${z.length})`);let Y=z[L++]>>>0,Q=hd(Y+31,32),oe=Y*j+31>>>5;if(L+oe>z.length)throw new Error(`FastPFOR decode: truncated exception stream (bitWidth=${j}, size=${Y}, streamWordIndex=${L}, needWords=${oe}, availableWords=${z.length-L}, encodedWords=${z.length})`);let ie=O[j];(!ie||ie.length>>5)|0,R.exceptionSizes[j]=Y}return L})(r,b,l);return l.dataPointers.fill(0),(function(z,L,R,F,O,j,Y,Q,oe,ie){let ue=0|R,he=0;for(let ae=0;ae0&&(he=A0(O,Pe,be,Ee,Q,oe,he,ie,ae))}if(ue!==F)throw new Error(`FastPFOR decode: packed region mismatch (pageStart=${L}, packedStart=${R}, consumedPackedEnd=${ue}, expectedPackedEnd=${F}, packedWords=${F-R}, encoded.length=${z.length})`)})(r,u,g,m,e,0|o,a/Bn|0,P,C,l),A}function D0(r,e,i,o,a){switch(a){case 2:return void(function(m,v,_,T){let b=T,P=m[v]>>>0,C=m[v+1]>>>0;_[b++]=P>>>0&3,_[b++]=P>>>2&3,_[b++]=P>>>4&3,_[b++]=P>>>6&3,_[b++]=P>>>8&3,_[b++]=P>>>10&3,_[b++]=P>>>12&3,_[b++]=P>>>14&3,_[b++]=P>>>16&3,_[b++]=P>>>18&3,_[b++]=P>>>20&3,_[b++]=P>>>22&3,_[b++]=P>>>24&3,_[b++]=P>>>26&3,_[b++]=P>>>28&3,_[b++]=P>>>30&3,_[b++]=C>>>0&3,_[b++]=C>>>2&3,_[b++]=C>>>4&3,_[b++]=C>>>6&3,_[b++]=C>>>8&3,_[b++]=C>>>10&3,_[b++]=C>>>12&3,_[b++]=C>>>14&3,_[b++]=C>>>16&3,_[b++]=C>>>18&3,_[b++]=C>>>20&3,_[b++]=C>>>22&3,_[b++]=C>>>24&3,_[b++]=C>>>26&3,_[b++]=C>>>28&3,_[b]=C>>>30&3})(r,e,i,o);case 3:return void(function(m,v,_,T){let b=T,P=m[v]>>>0,C=m[v+1]>>>0,A=m[v+2]>>>0;_[b++]=P>>>0&7,_[b++]=P>>>3&7,_[b++]=P>>>6&7,_[b++]=P>>>9&7,_[b++]=P>>>12&7,_[b++]=P>>>15&7,_[b++]=P>>>18&7,_[b++]=P>>>21&7,_[b++]=P>>>24&7,_[b++]=P>>>27&7,_[b++]=7&(P>>>30|(1&C)<<2),_[b++]=C>>>1&7,_[b++]=C>>>4&7,_[b++]=C>>>7&7,_[b++]=C>>>10&7,_[b++]=C>>>13&7,_[b++]=C>>>16&7,_[b++]=C>>>19&7,_[b++]=C>>>22&7,_[b++]=C>>>25&7,_[b++]=C>>>28&7,_[b++]=7&(C>>>31|(3&A)<<1),_[b++]=A>>>2&7,_[b++]=A>>>5&7,_[b++]=A>>>8&7,_[b++]=A>>>11&7,_[b++]=A>>>14&7,_[b++]=A>>>17&7,_[b++]=A>>>20&7,_[b++]=A>>>23&7,_[b++]=A>>>26&7,_[b]=A>>>29&7})(r,e,i,o);case 4:return void(function(m,v,_,T){let b=T,P=m[v]>>>0,C=m[v+1]>>>0,A=m[v+2]>>>0,z=m[v+3]>>>0;_[b++]=P>>>0&15,_[b++]=P>>>4&15,_[b++]=P>>>8&15,_[b++]=P>>>12&15,_[b++]=P>>>16&15,_[b++]=P>>>20&15,_[b++]=P>>>24&15,_[b++]=P>>>28&15,_[b++]=C>>>0&15,_[b++]=C>>>4&15,_[b++]=C>>>8&15,_[b++]=C>>>12&15,_[b++]=C>>>16&15,_[b++]=C>>>20&15,_[b++]=C>>>24&15,_[b++]=C>>>28&15,_[b++]=A>>>0&15,_[b++]=A>>>4&15,_[b++]=A>>>8&15,_[b++]=A>>>12&15,_[b++]=A>>>16&15,_[b++]=A>>>20&15,_[b++]=A>>>24&15,_[b++]=A>>>28&15,_[b++]=z>>>0&15,_[b++]=z>>>4&15,_[b++]=z>>>8&15,_[b++]=z>>>12&15,_[b++]=z>>>16&15,_[b++]=z>>>20&15,_[b++]=z>>>24&15,_[b]=z>>>28&15})(r,e,i,o);case 5:return void(function(m,v,_,T){let b=T,P=m[v]>>>0,C=m[v+1]>>>0,A=m[v+2]>>>0,z=m[v+3]>>>0,L=m[v+4]>>>0;_[b++]=P>>>0&31,_[b++]=P>>>5&31,_[b++]=P>>>10&31,_[b++]=P>>>15&31,_[b++]=P>>>20&31,_[b++]=P>>>25&31,_[b++]=31&(P>>>30|(7&C)<<2),_[b++]=C>>>3&31,_[b++]=C>>>8&31,_[b++]=C>>>13&31,_[b++]=C>>>18&31,_[b++]=C>>>23&31,_[b++]=31&(C>>>28|(1&A)<<4),_[b++]=A>>>1&31,_[b++]=A>>>6&31,_[b++]=A>>>11&31,_[b++]=A>>>16&31,_[b++]=A>>>21&31,_[b++]=A>>>26&31,_[b++]=31&(A>>>31|(15&z)<<1),_[b++]=z>>>4&31,_[b++]=z>>>9&31,_[b++]=z>>>14&31,_[b++]=z>>>19&31,_[b++]=z>>>24&31,_[b++]=31&(z>>>29|(3&L)<<3),_[b++]=L>>>2&31,_[b++]=L>>>7&31,_[b++]=L>>>12&31,_[b++]=L>>>17&31,_[b++]=L>>>22&31,_[b]=L>>>27&31})(r,e,i,o);case 6:return void(function(m,v,_,T){let b=T,P=m[v]>>>0,C=m[v+1]>>>0,A=m[v+2]>>>0,z=m[v+3]>>>0,L=m[v+4]>>>0,R=m[v+5]>>>0;_[b++]=P>>>0&63,_[b++]=P>>>6&63,_[b++]=P>>>12&63,_[b++]=P>>>18&63,_[b++]=P>>>24&63,_[b++]=63&(P>>>30|(15&C)<<2),_[b++]=C>>>4&63,_[b++]=C>>>10&63,_[b++]=C>>>16&63,_[b++]=C>>>22&63,_[b++]=63&(C>>>28|(3&A)<<4),_[b++]=A>>>2&63,_[b++]=A>>>8&63,_[b++]=A>>>14&63,_[b++]=A>>>20&63,_[b++]=A>>>26&63,_[b++]=z>>>0&63,_[b++]=z>>>6&63,_[b++]=z>>>12&63,_[b++]=z>>>18&63,_[b++]=z>>>24&63,_[b++]=63&(z>>>30|(15&L)<<2),_[b++]=L>>>4&63,_[b++]=L>>>10&63,_[b++]=L>>>16&63,_[b++]=L>>>22&63,_[b++]=63&(L>>>28|(3&R)<<4),_[b++]=R>>>2&63,_[b++]=R>>>8&63,_[b++]=R>>>14&63,_[b++]=R>>>20&63,_[b]=R>>>26&63})(r,e,i,o);case 7:return void(function(m,v,_,T){let b=T,P=m[v]>>>0,C=m[v+1]>>>0,A=m[v+2]>>>0,z=m[v+3]>>>0,L=m[v+4]>>>0,R=m[v+5]>>>0,F=m[v+6]>>>0;_[b++]=P>>>0&127,_[b++]=P>>>7&127,_[b++]=P>>>14&127,_[b++]=P>>>21&127,_[b++]=127&(P>>>28|(7&C)<<4),_[b++]=C>>>3&127,_[b++]=C>>>10&127,_[b++]=C>>>17&127,_[b++]=C>>>24&127,_[b++]=127&(C>>>31|(63&A)<<1),_[b++]=A>>>6&127,_[b++]=A>>>13&127,_[b++]=A>>>20&127,_[b++]=127&(A>>>27|(3&z)<<5),_[b++]=z>>>2&127,_[b++]=z>>>9&127,_[b++]=z>>>16&127,_[b++]=z>>>23&127,_[b++]=127&(z>>>30|(31&L)<<2),_[b++]=L>>>5&127,_[b++]=L>>>12&127,_[b++]=L>>>19&127,_[b++]=127&(L>>>26|(1&R)<<6),_[b++]=R>>>1&127,_[b++]=R>>>8&127,_[b++]=R>>>15&127,_[b++]=R>>>22&127,_[b++]=127&(R>>>29|(15&F)<<3),_[b++]=F>>>4&127,_[b++]=F>>>11&127,_[b++]=F>>>18&127,_[b]=F>>>25&127})(r,e,i,o);case 8:return void(function(m,v,_,T){let b=T,P=m[v]>>>0,C=m[v+1]>>>0,A=m[v+2]>>>0,z=m[v+3]>>>0,L=m[v+4]>>>0,R=m[v+5]>>>0,F=m[v+6]>>>0,O=m[v+7]>>>0;_[b++]=P>>>0&255,_[b++]=P>>>8&255,_[b++]=P>>>16&255,_[b++]=P>>>24&255,_[b++]=C>>>0&255,_[b++]=C>>>8&255,_[b++]=C>>>16&255,_[b++]=C>>>24&255,_[b++]=A>>>0&255,_[b++]=A>>>8&255,_[b++]=A>>>16&255,_[b++]=A>>>24&255,_[b++]=z>>>0&255,_[b++]=z>>>8&255,_[b++]=z>>>16&255,_[b++]=z>>>24&255,_[b++]=L>>>0&255,_[b++]=L>>>8&255,_[b++]=L>>>16&255,_[b++]=L>>>24&255,_[b++]=R>>>0&255,_[b++]=R>>>8&255,_[b++]=R>>>16&255,_[b++]=R>>>24&255,_[b++]=F>>>0&255,_[b++]=F>>>8&255,_[b++]=F>>>16&255,_[b++]=F>>>24&255,_[b++]=O>>>0&255,_[b++]=O>>>8&255,_[b++]=O>>>16&255,_[b]=O>>>24&255})(r,e,i,o);case 9:return void(function(m,v,_,T){let b=T,P=m[v]>>>0,C=m[v+1]>>>0,A=m[v+2]>>>0,z=m[v+3]>>>0,L=m[v+4]>>>0,R=m[v+5]>>>0,F=m[v+6]>>>0,O=m[v+7]>>>0,j=m[v+8]>>>0;_[b++]=P>>>0&511,_[b++]=P>>>9&511,_[b++]=P>>>18&511,_[b++]=511&(P>>>27|(15&C)<<5),_[b++]=C>>>4&511,_[b++]=C>>>13&511,_[b++]=C>>>22&511,_[b++]=511&(C>>>31|(255&A)<<1),_[b++]=A>>>8&511,_[b++]=A>>>17&511,_[b++]=511&(A>>>26|(7&z)<<6),_[b++]=z>>>3&511,_[b++]=z>>>12&511,_[b++]=z>>>21&511,_[b++]=511&(z>>>30|(127&L)<<2),_[b++]=L>>>7&511,_[b++]=L>>>16&511,_[b++]=511&(L>>>25|(3&R)<<7),_[b++]=R>>>2&511,_[b++]=R>>>11&511,_[b++]=R>>>20&511,_[b++]=511&(R>>>29|(63&F)<<3),_[b++]=F>>>6&511,_[b++]=F>>>15&511,_[b++]=511&(F>>>24|(1&O)<<8),_[b++]=O>>>1&511,_[b++]=O>>>10&511,_[b++]=O>>>19&511,_[b++]=511&(O>>>28|(31&j)<<4),_[b++]=j>>>5&511,_[b++]=j>>>14&511,_[b]=j>>>23&511})(r,e,i,o);case 10:return void(function(m,v,_,T){let b=T,P=m[v]>>>0,C=m[v+1]>>>0,A=m[v+2]>>>0,z=m[v+3]>>>0,L=m[v+4]>>>0,R=m[v+5]>>>0,F=m[v+6]>>>0,O=m[v+7]>>>0,j=m[v+8]>>>0,Y=m[v+9]>>>0;_[b++]=P>>>0&1023,_[b++]=P>>>10&1023,_[b++]=P>>>20&1023,_[b++]=1023&(P>>>30|(255&C)<<2),_[b++]=C>>>8&1023,_[b++]=C>>>18&1023,_[b++]=1023&(C>>>28|(63&A)<<4),_[b++]=A>>>6&1023,_[b++]=A>>>16&1023,_[b++]=1023&(A>>>26|(15&z)<<6),_[b++]=z>>>4&1023,_[b++]=z>>>14&1023,_[b++]=1023&(z>>>24|(3&L)<<8),_[b++]=L>>>2&1023,_[b++]=L>>>12&1023,_[b++]=L>>>22&1023,_[b++]=R>>>0&1023,_[b++]=R>>>10&1023,_[b++]=R>>>20&1023,_[b++]=1023&(R>>>30|(255&F)<<2),_[b++]=F>>>8&1023,_[b++]=F>>>18&1023,_[b++]=1023&(F>>>28|(63&O)<<4),_[b++]=O>>>6&1023,_[b++]=O>>>16&1023,_[b++]=1023&(O>>>26|(15&j)<<6),_[b++]=j>>>4&1023,_[b++]=j>>>14&1023,_[b++]=1023&(j>>>24|(3&Y)<<8),_[b++]=Y>>>2&1023,_[b++]=Y>>>12&1023,_[b]=Y>>>22&1023})(r,e,i,o);case 11:return void(function(m,v,_,T){let b=T,P=m[v]>>>0,C=m[v+1]>>>0,A=m[v+2]>>>0,z=m[v+3]>>>0,L=m[v+4]>>>0,R=m[v+5]>>>0,F=m[v+6]>>>0,O=m[v+7]>>>0,j=m[v+8]>>>0,Y=m[v+9]>>>0,Q=m[v+10]>>>0;_[b++]=P>>>0&2047,_[b++]=P>>>11&2047,_[b++]=2047&(P>>>22|(1&C)<<10),_[b++]=C>>>1&2047,_[b++]=C>>>12&2047,_[b++]=2047&(C>>>23|(3&A)<<9),_[b++]=A>>>2&2047,_[b++]=A>>>13&2047,_[b++]=2047&(A>>>24|(7&z)<<8),_[b++]=z>>>3&2047,_[b++]=z>>>14&2047,_[b++]=2047&(z>>>25|(15&L)<<7),_[b++]=L>>>4&2047,_[b++]=L>>>15&2047,_[b++]=2047&(L>>>26|(31&R)<<6),_[b++]=R>>>5&2047,_[b++]=R>>>16&2047,_[b++]=2047&(R>>>27|(63&F)<<5),_[b++]=F>>>6&2047,_[b++]=F>>>17&2047,_[b++]=2047&(F>>>28|(127&O)<<4),_[b++]=O>>>7&2047,_[b++]=O>>>18&2047,_[b++]=2047&(O>>>29|(255&j)<<3),_[b++]=j>>>8&2047,_[b++]=j>>>19&2047,_[b++]=2047&(j>>>30|(511&Y)<<2),_[b++]=Y>>>9&2047,_[b++]=Y>>>20&2047,_[b++]=2047&(Y>>>31|(1023&Q)<<1),_[b++]=Q>>>10&2047,_[b]=Q>>>21&2047})(r,e,i,o);case 12:return void(function(m,v,_,T){let b=T,P=m[v]>>>0,C=m[v+1]>>>0,A=m[v+2]>>>0,z=m[v+3]>>>0,L=m[v+4]>>>0,R=m[v+5]>>>0,F=m[v+6]>>>0,O=m[v+7]>>>0,j=m[v+8]>>>0,Y=m[v+9]>>>0,Q=m[v+10]>>>0,oe=m[v+11]>>>0;_[b++]=P>>>0&4095,_[b++]=P>>>12&4095,_[b++]=4095&(P>>>24|(15&C)<<8),_[b++]=C>>>4&4095,_[b++]=C>>>16&4095,_[b++]=4095&(C>>>28|(255&A)<<4),_[b++]=A>>>8&4095,_[b++]=A>>>20&4095,_[b++]=z>>>0&4095,_[b++]=z>>>12&4095,_[b++]=4095&(z>>>24|(15&L)<<8),_[b++]=L>>>4&4095,_[b++]=L>>>16&4095,_[b++]=4095&(L>>>28|(255&R)<<4),_[b++]=R>>>8&4095,_[b++]=R>>>20&4095,_[b++]=F>>>0&4095,_[b++]=F>>>12&4095,_[b++]=4095&(F>>>24|(15&O)<<8),_[b++]=O>>>4&4095,_[b++]=O>>>16&4095,_[b++]=4095&(O>>>28|(255&j)<<4),_[b++]=j>>>8&4095,_[b++]=j>>>20&4095,_[b++]=Y>>>0&4095,_[b++]=Y>>>12&4095,_[b++]=4095&(Y>>>24|(15&Q)<<8),_[b++]=Q>>>4&4095,_[b++]=Q>>>16&4095,_[b++]=4095&(Q>>>28|(255&oe)<<4),_[b++]=oe>>>8&4095,_[b]=oe>>>20&4095})(r,e,i,o);case 16:return void(function(m,v,_,T){let b=T,P=m[v]>>>0,C=m[v+1]>>>0,A=m[v+2]>>>0,z=m[v+3]>>>0,L=m[v+4]>>>0,R=m[v+5]>>>0,F=m[v+6]>>>0,O=m[v+7]>>>0,j=m[v+8]>>>0,Y=m[v+9]>>>0,Q=m[v+10]>>>0,oe=m[v+11]>>>0,ie=m[v+12]>>>0,ue=m[v+13]>>>0,he=m[v+14]>>>0,ae=m[v+15]>>>0;_[b++]=P>>>0&65535,_[b++]=P>>>16&65535,_[b++]=C>>>0&65535,_[b++]=C>>>16&65535,_[b++]=A>>>0&65535,_[b++]=A>>>16&65535,_[b++]=z>>>0&65535,_[b++]=z>>>16&65535,_[b++]=L>>>0&65535,_[b++]=L>>>16&65535,_[b++]=R>>>0&65535,_[b++]=R>>>16&65535,_[b++]=F>>>0&65535,_[b++]=F>>>16&65535,_[b++]=O>>>0&65535,_[b++]=O>>>16&65535,_[b++]=j>>>0&65535,_[b++]=j>>>16&65535,_[b++]=Y>>>0&65535,_[b++]=Y>>>16&65535,_[b++]=Q>>>0&65535,_[b++]=Q>>>16&65535,_[b++]=oe>>>0&65535,_[b++]=oe>>>16&65535,_[b++]=ie>>>0&65535,_[b++]=ie>>>16&65535,_[b++]=ue>>>0&65535,_[b++]=ue>>>16&65535,_[b++]=he>>>0&65535,_[b++]=he>>>16&65535,_[b++]=ae>>>0&65535,_[b]=ae>>>16&65535})(r,e,i,o);case 32:for(let m=0;m<32;m=m+1|0)i[o+m|0]=0|r[e+m|0];return}let l=ud[a]>>>0,u=e,p=0,g=r[u]>>>0;for(let m=0;m<32;m++)if(p+a<=32)i[o+m]=g>>>p&l,p+=a,p===32&&(p=0,u++,m!==31&&(g=r[u]>>>0));else{let v=32-p,_=g>>>p;u++,g=r[u]>>>0,i[o+m]=(_|(g&ud[a-v]>>>0)<=64)throw new Error(\"Varint too long\")}return e.set(a),i}function R0(r,e){let i,o;return o=r[e.get()],e.increment(),i=127&o,o<128?i:(o=r[e.get()],e.increment(),i|=(127&o)<<7,o<128?i:(o=r[e.get()],e.increment(),i|=(127&o)<<14,o<128?i:(o=r[e.get()],e.increment(),i|=(127&o)<<21,o<128?i:(o=r[e.get()],i|=(15&o)<<28,(function(a,l,u){let p,g;if(g=l[u.get()],u.increment(),p=(112&g)>>4,g<128||(g=l[u.get()],u.increment(),p|=(127&g)<<3,g<128)||(g=l[u.get()],u.increment(),p|=(127&g)<<10,g<128)||(g=l[u.get()],u.increment(),p|=(127&g)<<17,g<128)||(g=l[u.get()],u.increment(),p|=(127&g)<<24,g<128)||(g=l[u.get()],u.increment(),p|=(1&g)<<31,g<128))return 4294967296*p+(a>>>0);throw new Error(\"Expected varint not more than 10 bytes\")})(i,r,e)))))}function Mt(r){return r>>>1^-(1&r)}function Ui(r){return r>>1n^-(1n&r)}function Cs(r){return r%2==1?(r+1)/-2:r/2}function pd(r,e,i){if(i===void 0){i=0;for(let l=0;l=4)for(;o=4)for(;o=4)for(let o=r[0];i>4],p=null;switch(u){case vi.DATA:p={dictionaryType:Object.values(jr)[15&l]};break;case vi.OFFSET:p={offsetType:Object.values(pa)[15&l]};break;case vi.LENGTH:p={lengthType:Object.values(sr)[15&l]}}a.increment();let g=o[a.get()],m=Object.values(at)[g>>5],v=Object.values(at)[g>>2&7],_=Object.values(yo)[3&g];a.increment();let T=Di(o,a,2),b=T[0];return{physicalStreamType:u,logicalStreamType:p,logicalLevelTechnique1:m,logicalLevelTechnique2:v,physicalLevelTechnique:_,numValues:b,byteLength:T[1],decompressedCount:b}})(r,e);return i.logicalLevelTechnique1===at.MORTON?(function(o,a,l){let u=Di(a,l,2);return{physicalStreamType:o.physicalStreamType,logicalStreamType:o.logicalStreamType,logicalLevelTechnique1:o.logicalLevelTechnique1,logicalLevelTechnique2:o.logicalLevelTechnique2,physicalLevelTechnique:o.physicalLevelTechnique,numValues:o.numValues,byteLength:o.byteLength,decompressedCount:o.decompressedCount,numBits:u[0],coordinateShift:u[1]}})(i,r,e):at.RLE!==i.logicalLevelTechnique1&&at.RLE!==i.logicalLevelTechnique2||yo.NONE===i.physicalLevelTechnique?i:(function(o,a,l){let u=Di(a,l,2);return{physicalStreamType:o.physicalStreamType,logicalStreamType:o.logicalStreamType,logicalLevelTechnique1:o.logicalLevelTechnique1,logicalLevelTechnique2:o.logicalLevelTechnique2,physicalLevelTechnique:o.physicalLevelTechnique,numValues:o.numValues,byteLength:o.byteLength,decompressedCount:u[1],runs:u[0],numRleValues:u[1]}})(i,r,e)}(function(r){r.PRESENT=\"PRESENT\",r.DATA=\"DATA\",r.OFFSET=\"OFFSET\",r.LENGTH=\"LENGTH\"})(vi||(vi={})),(function(r){r.NONE=\"NONE\",r.SINGLE=\"SINGLE\",r.SHARED=\"SHARED\",r.VERTEX=\"VERTEX\",r.MORTON=\"MORTON\",r.FSST=\"FSST\"})(jr||(jr={})),(function(r){r.VERTEX=\"VERTEX\",r.INDEX=\"INDEX\",r.STRING=\"STRING\",r.KEY=\"KEY\"})(pa||(pa={})),(function(r){r.VAR_BINARY=\"VAR_BINARY\",r.GEOMETRIES=\"GEOMETRIES\",r.PARTS=\"PARTS\",r.RINGS=\"RINGS\",r.TRIANGLES=\"TRIANGLES\",r.SYMBOL=\"SYMBOL\",r.DICTIONARY=\"DICTIONARY\"})(sr||(sr={})),(function(r){r[r.FLAT=0]=\"FLAT\",r[r.CONST=1]=\"CONST\",r[r.SEQUENCE=2]=\"SEQUENCE\",r[r.DICTIONARY=3]=\"DICTIONARY\",r[r.FSST_DICTIONARY=4]=\"FSST_DICTIONARY\"})(Dt||(Dt={}));class Nr{constructor(e,i){this.values=e,this._size=i}get(e){let i=Math.floor(e/8);return(this.values[i]>>e%8&1)==1}set(e,i){let o=Math.floor(e/8);this.values[o]=this.values[o]|(i?1:0)<>e%8&1}size(){return this._size}getBuffer(){return this.values}}function Es(r,e,i){if(!e)return r;let o=e.size(),a=new r.constructor(o),l=0;for(let u=0;u=4)for(;b>>0;for(let T=1;T>>0;return _})(u.logicalLevelTechnique2===at.RLE?pd(l,u.runs,u.numRleValues):l);break;case at.RLE:m=pd(l,u.runs,u.numRleValues);break;case at.MORTON:md(l),m=l;break;case at.COMPONENTWISE_DELTA:m=(function(v){if(v.length<2)return new Uint32Array(v);let _=new Uint32Array(v.length);_[0]=Mt(v[0])>>>0,_[1]=Mt(v[1])>>>0;for(let T=2;T>>0,_[T+1]=_[T-1]+Mt(v[T+1])>>>0;return _})(l);break;case at.NONE:m=l;break;default:throw new Error(`The specified Logical level technique is not supported: ${u.logicalLevelTechnique1}`)}return g?Es(m,g,0):m})(Is(r,e,i),i,0,a)}function xo(r,e,i){return(function(o,a){if(a.logicalLevelTechnique1===at.DELTA&&a.logicalLevelTechnique2===at.NONE)return(function(l){let u=new Int32Array(l.length+1);u[0]=0,u[1]=Mt(l[0]);let p=u[1];for(let g=2;g!==u.length;++g)p+=Mt(l[g-1]),u[g]=u[g-1]+p;return new Uint32Array(u)})(o);if(a.logicalLevelTechnique1===at.RLE&&a.logicalLevelTechnique2===at.NONE)return(function(l,u,p){let g=new Uint32Array(p+1);g[0]=0;let m=1,v=g[0];for(let _=0;_>>2,C=(function(z,L){if(L<=z.encodedWords.length)return z.encodedWords;let R=new Uint32Array(Math.max(16,2*L));return z.encodedWords=R,R})(T,P);(function(z,L,R,F){if(L<0||R<0||L+R>z.length)throw new RangeError(`decodeBigEndianInt32sInto: out of bounds (offset=${L}, byteLength=${R}, bytes.length=${z.length})`);let O=Math.floor(R/4),j=R%4!=0,Y=j?O+1:O;if(F.length0){let Q=z.byteOffset+L;if(3&Q)for(let oe=0;oe0){let Q=0|z[F];if(F=F+1|0,255&Q)throw new Error(`FastPFOR decode: invalid alignedLength=${Q} (expected multiple of 256)`);if(O+Q>j.length)throw new Error(`FastPFOR decode: output buffer too small (outPos=${O}, alignedLength=${Q}, out.length=${j.length})`);F=(function(oe,ie,ue,he,ae,ne){let be=he+hd(ae,Bn),Ee=he,Pe=ue;for(;Ee!==be;){let Te=Math.min(dd,be-Ee);Pe=z0(oe,ie,Pe,Ee,Te,ne),Ee=Ee+Te|0}return Pe})(z,j,F,O,Q,Y),O=O+Q|0}return(function(Q,oe,ie,ue,he,ae){if(ae===0)return oe;let ne=0,be=oe,Ee=oe+ie,Pe=he,Te=he,Ze=he+ae,dt=0,ft=0;for(;be>>ne&255;if(ne+=8,be+=ne>>>5,ne&=31,dt|=(127&wt)<28)throw new Error(`FastPFOR VByte: unterminated value (expected MSB=1 terminator within 5 bytes; shift=${ft}, partial=${dt}, decoded=${Te-Pe}/${ae}, inPos=${be}, inEnd=${Ee})`)}if(Te!==Ze)throw new Error(`FastPFOR VByte: truncated stream (decoded=${Te-Pe}, expected=${ae}, consumedWords=${be-oe}/${ie}, vbyteStart=${oe}, vbyteEnd=${Ee})`)})(z,F,z.length-F|0,j,O,L-O|0),j})(C.subarray(0,P),m,T.decoderWorkspace);return _.add(v),A})(a,l,u,p,(function(g=16){if(g<0)throw new RangeError(`initialEncodedWordCapacity must be >= 0, got ${g}`);let m=Math.max(16,0|g);return{encodedWords:new Uint32Array(m),decoderWorkspace:hf()}})(u>>>2))})(r,i.numValues,i.byteLength,e);case yo.VARINT:return Di(r,e,i.numValues);case yo.NONE:{let a=e.get();e.add(i.byteLength);let l=r.subarray(a,e.get());return new Uint32Array(l)}default:throw new Error(`Specified physicalLevelTechnique ${o} is not supported (yet).`)}}function _d(r,e,i){let o=Is(r,e,i);return o.length===1?o[0]:(function(a){return a[1]})(o)}function gf(r,e,i){return(function(o){if(o.length===2){let a=Mt(o[1]);return[a,a]}return[Mt(o[2]),Mt(o[3])]})(Is(r,e,i))}function _f(r,e,i){return(function(o){if(o.length===2){let a=Ui(o[1]);return[a,a]}return[Ui(o[2]),Ui(o[3])]})(Ps(r,e,i.numValues))}function yf(r,e,i,o){return(function(a,l,u){let p;switch(l.logicalLevelTechnique1){case at.DELTA:p=(function(g){let m=new BigUint64Array(g.length);m[0]=BigInt.asUintN(64,Ui(g[0]));for(let v=1;v>1,e)-i}}function wf(r,e){let i=0;for(let o=0;o>o;return i}function As(r,e,i,o,a,l,u){return r===vo.MORTON?(function(p,g,m,v,_,T){let b=new Array(_?v+1:v);for(let P=0;P[O])),o+=R,a+=R}break;case oi.LINESTRING:{let R,F;A?(R=b[a]-b[a-1],a++):R=T[o]-T[o-1],o++,C?(F=zs(z,p,R,!1),p+=2*R):(F=As(e.vertexBufferType,z,P,g,R,!1,m),g+=R),i[u++]=[F],_&&l++}break;case oi.POLYGON:{let R=T[o]-T[o-1];o++;let F=new Array(R-1),O,j=b[a]-b[a-1];if(a++,C){O=zs(z,p,j,!0),p+=2*j;for(let Y=0;Y0&&C.push(C[0]),T.push(C)}e[v]=T,l&&m++}break;case oi.MULTIPOLYGON:{let _=l[m]-l[m-1];m++;let T=[];for(let b=0;b<_;b++){let P=o[p]-o[p-1];p++;for(let C=0;C0&&z.push(z[0]),T.push(z)}}e[v]=T}}return e}[Symbol.iterator](){return null}}function Cf(r,e,i,o,a,l){return new L0(r,e,i,o,a,l)}class L0 extends Pf{constructor(e,i,o,a,l,u){super(o,a,l,u),this._numGeometries=e,this._geometryType=i}geometryType(e){return this._geometryType}get numGeometries(){return this._numGeometries}containsSingleGeometryType(){return!0}}function Ef(r,e,i,o,a){return new F0(r,e,i,o,a)}class F0 extends Pf{constructor(e,i,o,a,l){super(i,o,a,l),this._geometryTypes=e}geometryType(e){return this._geometryTypes[e]}get numGeometries(){return this._geometryTypes.length}containsSingleGeometryType(){return!1}}function B0(r,e,i,o,a){let l=qi(r,i),u,p,g,m;if(Fu(l,o,r,i)===Dt.CONST){let L=_d(r,i,l),R,F,O,j;for(let Y=0;Yi?e[l++]:1);return o}function If(r,e,i,o){let a=new Uint32Array(e[e.length-1]+1),l=0;a[0]=l;let u=1,p=0;for(let g=0;g=T);){let b=u[m.increment()];if(b<=127){let P=b+3,C=u[m.increment()],A=Math.min(_+P,p);v.fill(C,_,A),_=A}else{let P=256-b;for(let C=0;C=12?j0.decode(r.subarray(e,i)):(function(o,a,l){let u=\"\",p=a;for(;p239?4:g>223?3:g>191?2:1;if(p+b>l)break;b===1?g<128&&(T=g):b===2?(m=o[p+1],(192&m)==128&&(T=(31&g)<<6|63&m,T<=127&&(T=null))):b===3?(m=o[p+1],v=o[p+2],(192&m)==128&&(192&v)==128&&(T=(15&g)<<12|(63&m)<<6|63&v,(T<=2047||T>=55296&&T<=57343)&&(T=null))):b===4&&(m=o[p+1],v=o[p+2],_=o[p+3],(192&m)==128&&(192&v)==128&&(192&_)==128&&(T=(15&g)<<18|(63&m)<<12|(63&v)<<6|63&_,(T<=65535||T>=1114112)&&(T=null))),T===null?(T=65533,b=1):T>65535&&(T-=65536,u+=String.fromCharCode(T>>>10&1023|55296),T=56320|1023&T),u+=String.fromCharCode(T),p+=b}return u})(r,e,i)}class bd extends Ms{constructor(e,i,o,a){super(e,o,a),this.offsetBuffer=i}}class zf extends bd{constructor(e,i,o,a){super(e,i,o,a??i.length-1)}getValueFromBuffer(e){return xd(this.dataBuffer,this.offsetBuffer[e],this.offsetBuffer[e+1])}}class Ds extends bd{constructor(e,i,o,a,l){super(e,o,a,l??i.length),this.indexBuffer=i,this.indexBuffer=i}getValueFromBuffer(e){let i=this.indexBuffer[e];return xd(this.dataBuffer,this.offsetBuffer[i],this.offsetBuffer[i+1])}}class Df extends bd{constructor(e,i,o,a,l,u,p){super(e,o,a,p),this.indexBuffer=i,this.symbolOffsetBuffer=l,this.symbolTableBuffer=u}getValueFromBuffer(e){this.decodedDictionary==null&&(this.symbolLengthBuffer==null&&(this.symbolLengthBuffer=this.offsetToLengthBuffer(this.symbolOffsetBuffer)),this.decodedDictionary=(function(o,a,l){let u=[],p=new Array(a.length).fill(0);for(let g=1;g=10}function Lf(r){return r===30}function U0(r){if(r.type===\"scalarType\"){let e=r.scalarType;if(e.type===\"physicalType\")switch(e.physicalType){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:default:return!1;case 9:return!0}if(e.type===\"logicalType\")return!1}else if(r.type===\"complexType\"){let e=r.complexType;if(e.type===\"physicalType\")switch(e.physicalType){case 0:case 1:return!0;default:return!1}}return console.warn(\"Unexpected column type in hasStreamCount\",r),!1}function q0(r){return r.type===\"complexType\"&&r.complexType?.type===\"physicalType\"&&r.complexType.physicalType===0}let G0=new TextDecoder;function wd(r,e){let i=Di(r,e,1)[0];if(i===0)return\"\";let o=e.get(),a=r.subarray(o,o+i);return e.add(i),G0.decode(a)}function Ff(r,e){let i=Di(r,e,1)[0]>>>0;if(i<10||i>30)throw new Error(`Unsupported field type code ${i}. Supported: 10-29(scalars), 30(STRUCT)`);let o=kf(i);if(Rf(i)&&(o.name=wd(r,e)),Lf(i)){let a=Di(r,e,1)[0]>>>0;o.complexType.children=new Array(a);for(let l=0;l>>0,o=kf(i);if(!o)throw new Error(`Unsupported column type code ${i}. Supported: 0-3(ID), 4(GEOMETRY), 10-29(scalars), 30(STRUCT)`);if(Rf(i)?o.name=wd(r,e):i>=0&&i<=3?o.name=\"id\":i===4&&(o.name=\"geometry\"),Lf(i)){let a=Di(r,e,1)[0]>>>0,l=o.complexType;l.children=new Array(a);for(let u=0;u>>0,l=Di(r,e,1)[0]>>>0;o.columns=new Array(l);for(let u=0;u=4)for(;O>>0,v=u.get()+m;if(v>o.length)throw new Error(`Block overruns tile: ${v} > ${o.length}`);if(Di(o,u,1)[0]>>>0!=1){u.set(v);continue}let[_,T]=Z0(o,u),b=_.featureTables[0],P=null,C=null,A=[],z=0;for(let R of b.columns){let F=R.name;if((g=R).type===\"scalarType\"&&g.scalarType?.type===\"logicalType\"&&g.scalarType.logicalType===0){let O=null;if(R.nullable){let Y=qi(o,u),Q=u.get(),oe=oc(o,Y.numValues,Y.byteLength,u);u.set(Q+Y.byteLength),O=new Nr(oe,Y.numValues)}let j=qi(o,u);z=O?O.size():j.decompressedCount,P=W0(o,R,u,F,j,O??z,l)}else if(q0(R)){let O=Di(o,u,1)[0];if(z===0){let j=u.get();z=qi(o,u).decompressedCount,u.set(j)}C=B0(o,O,u,z)}else{let O=U0(R)?Di(o,u,1)[0]:1;if(O===0)continue;let j=N0(o,u,R,O,z);if(j)if(Array.isArray(j))for(let Y of j)A.push(Y);else A.push(j)}}let L=new M0(b.name,C,P,A,T);p.push(L),u.set(v)}var g;return p})(new Uint8Array(e));this.layers=i.reduce(((o,a)=>Object.assign(Object.assign({},o),{[a.name]:new X0(a)})),{})}}class Y0{constructor(e,i){this.feature=e,this.type=e.type,this.properties=e.tags?e.tags:{},this.extent=i,\"id\"in e&&(typeof e.id==\"string\"?this.id=parseInt(e.id,10):typeof e.id!=\"number\"||isNaN(e.id)||(this.id=e.id))}loadGeometry(){let e=[],i=this.feature.type===1?[this.feature.geometry]:this.feature.geometry;for(let o of i){let a=[];for(let l of o)a.push(new pe(l[0],l[1]));e.push(a)}return e}}let sc=\"_geojsonTileLayer\";function K0(r,e,i=\"\"){e.writeVarintField(15,r.version||1),e.writeStringField(1,r.name||\"\"),e.writeVarintField(5,r.extent||4096);let o={jsonPrefix:i,keys:[],values:[],keycache:{},valuecache:{}};for(let u=0;u>31}function e1(r,e){let i=r.loadGeometry(),o=r.type,a=0,l=0;for(let u of i){let p=1;o===1&&(p=u.length),e.writeVarint(Td(1,p));let g=o===3?u.length-1:u.length;for(let m=0;m=0&&v[3]>=0&&g.insert(p,v[0],v[1],v[2],v[3])}}loadVTLayers(){return this.vtLayers||(this.vtLayers=this.encoding!==\"mlt\"?new hp(new Au(this.rawTileData)).layers:new Bf(this.rawTileData).layers,this.sourceLayerCoder=new sf(this.vtLayers?Object.keys(this.vtLayers).sort():[sc])),this.vtLayers}query(e,i,o,a){this.loadVTLayers();let l=e.params,u=qe/e.tileSize/e.scale,p=$o(l.filter,l.globalState),g=e.queryGeometry,m=e.queryPadding*u,v=da.fromPoints(g),_=this.grid.query(v.minX-m,v.minY-m,v.maxX+m,v.maxY+m),T=da.fromPoints(e.cameraQueryGeometry).expandBy(m),b=this.grid3D.query(T.minX,T.minY,T.maxX,T.maxY,((A,z,L,R)=>(function(F,O,j,Y,Q){for(let ie of F)if(O<=ie.x&&j<=ie.y&&Y>=ie.x&&Q>=ie.y)return!0;let oe=[new pe(O,j),new pe(O,Q),new pe(Y,Q),new pe(Y,j)];if(F.length>2){for(let ie of oe)if(ps(F,ie))return!0}for(let ie=0;ie(L||(L=sn(R)),F.queryIntersectsFeature({queryGeometry:g,feature:R,featureState:O,geometry:L,zoom:this.z,transform:e.transform,pixelsToTileUnits:u,pixelPosMatrix:e.pixelPosMatrix,unwrappedTileID:this.tileID.toUnwrapped(),getElevation:e.getElevation}))))}return P}loadMatchingFeature(e,i,o,a,l,u,p,g,m,v,_){let T=this.bucketLayerIDs[i];if(u&&!T.some((A=>u.has(A))))return;let b=this.sourceLayerCoder.decode(o),P=this.vtLayers[b].feature(a);if(l.needGeometry){let A=ln(P,!0);if(!l.filter(new Et(this.tileID.overscaledZ),A,this.tileID.canonical))return}else if(!l.filter(new Et(this.tileID.overscaledZ),P))return;let C=this.getId(P,b);for(let A of T){if(u&&!u.has(A))continue;let z=g[A];if(!z)continue;let L={};C&&v&&(L=v.getState(z.sourceLayer||sc,C));let R=Mi({},m[A]);R.paint=jf(R.paint,z.paint,P,L,p),R.layout=jf(R.layout,z.layout,P,L,p);let F=!_||_(P,z,L);if(!F)continue;let O=new lf(P,this.z,this.x,this.y,C);O.layer=R;let j=e[A];j===void 0&&(j=e[A]=[]),j.push({featureIndex:a,feature:O,intersectionZ:F})}}lookupSymbolFeatures(e,i,o,a,l,u,p,g){let m={};this.loadVTLayers();let v=$o(l.filterSpec,l.globalState);for(let _ of e)this.loadMatchingFeature(m,o,a,_,v,u,p,g,i);return m}hasLayer(e){for(let i of this.bucketLayerIDs)for(let o of i)if(e===o)return!0;return!1}getId(e,i){var o;let a=e.id;return this.promoteId&&(a=e.properties[typeof this.promoteId==\"string\"?this.promoteId:this.promoteId[i]],typeof a==\"boolean\"&&(a=Number(a)),a===void 0&&(!((o=e.properties)===null||o===void 0)&&o.cluster)&&this.promoteId&&(a=Number(e.properties.cluster_id))),a}}function jf(r,e,i,o,a){return ke(r,((l,u)=>{let p=e instanceof ra?e.get(u):null;return p?.evaluate?p.evaluate(i,o,a):p}))}function i1(r,e){return e-r}function Nf(r,e,i,o,a){let l=[];for(let u of r){let p;for(let g=0;g=o&&v.x>=o||(m.x>=o?m=new pe(o,m.y+(o-m.x)/(v.x-m.x)*(v.y-m.y))._round():v.x>=o&&(v=new pe(o,m.y+(o-m.x)/(v.x-m.x)*(v.y-m.y))._round()),m.y>=a&&v.y>=a||(m.y>=a?m=new pe(m.x+(a-m.y)/(v.y-m.y)*(v.x-m.x),a)._round():v.y>=a&&(v=new pe(m.x+(a-m.y)/(v.y-m.y)*(v.x-m.x),a)._round()),p&&m.equals(p[p.length-1])||(p=[m],l.push(p)),p.push(v)))))}}return l}function Uf(r,e,i,o,a){switch(e){case 1:return(function(l,u,p,g){let m=[];for(let v of l)for(let _ of v){let T=g===0?_.x:_.y;T>=u&&T<=p&&m.push([_])}return m})(r,i,o,a);case 2:return qf(r,i,o,a,!1);case 3:return qf(r,i,o,a,!0)}return[]}function r1(r,e,i,o,a){let l=o===0?n1:o1,u=[],p=[];for(let v=0;ve&&u.push(l(_,T,e)):b>i?P=e&&(u.push(l(_,T,e)),C=!0),P>i&&b<=i&&(u.push(l(_,T,i)),C=!0),!a&&C&&(p.push(u),u=[])}let g=r.length-1,m=o===0?r[g].x:r[g].y;return m>=e&&m<=i&&u.push(r[g]),a&&u.length>0&&!u[0].equals(u[u.length-1])&&u.push(new pe(u[0].x,u[0].y)),u.length>0&&p.push(u),p}function qf(r,e,i,o,a){let l=[];for(let u of r){let p=r1(u,e,i,o,a);p.length>0&&l.push(...p)}return l}function n1(r,e,i){return new pe(i,r.y+(i-r.x)/(e.x-r.x)*(e.y-r.y))}function o1(r,e,i){return new pe(r.x+(i-r.y)/(e.y-r.y)*(e.x-r.x),i)}ze(\"FeatureIndex\",Vf,{omit:[\"rawTileData\",\"sourceLayerCoder\"]});class bo extends pe{constructor(e,i,o,a){super(e,i),this.angle=o,a!==void 0&&(this.segment=a)}clone(){return new bo(this.x,this.y,this.angle,this.segment)}}function Gf(r,e,i,o,a){if(e.segment===void 0||i===0)return!0;let l=e,u=e.segment+1,p=0;for(;p>-i/2;){if(u--,u<0)return!1;p-=r[u].dist(l),l=r[u]}p+=r[u].dist(r[u+1]),u++;let g=[],m=0;for(;po;)m-=g.shift().angleDelta;if(m>a)return!1;u++,p+=v.dist(_)}return!0}function $f(r){let e=0;for(let i=0;im){let P=(m-g)/b,C=Zi.number(_.x,T.x,P),A=Zi.number(_.y,T.y,P),z=new bo(C,A,T.angleTo(_),v);return z._round(),!u||Gf(r,z,p,u,e)?z:void 0}g+=b}}function s1(r,e,i,o,a,l,u,p,g){let m=Zf(o,l,u),v=Wf(o,a),_=v*u,T=r[0].x===0||r[0].x===g||r[0].y===0||r[0].y===g;return e-_=0&&F=0&&O=0&&T+m<=v){let j=new bo(F,O,L,P);j._round(),o&&!Gf(r,j,l,o,a)||b.push(j)}}_+=z}return p||b.length||u||(b=Hf(r,_/2,i,o,a,l,u,!0,g)),b}function Xf(r,e,i,o){let a=[],l=r.image,u=l.pixelRatio,p=l.paddedRect.w-2,g=l.paddedRect.h-2,m={x1:r.left,y1:r.top,x2:r.right,y2:r.bottom},v=l.stretchX||[[0,p]],_=l.stretchY||[[0,g]],T=(ne,be)=>ne+be[1]-be[0],b=v.reduce(T,0),P=_.reduce(T,0),C=p-b,A=g-P,z=0,L=b,R=0,F=P,O=0,j=C,Y=0,Q=A;if(l.content&&o){let ne=l.content,be=ne[2]-ne[0],Ee=ne[3]-ne[1];(l.textFitWidth||l.textFitHeight)&&(m=Gp(r)),z=Bu(v,0,ne[0]),R=Bu(_,0,ne[1]),L=Bu(v,ne[0],ne[2]),F=Bu(_,ne[1],ne[3]),O=ne[0]-z,Y=ne[1]-R,j=be-L,Q=Ee-F}let oe=m.x1,ie=m.y1,ue=m.x2-oe,he=m.y2-ie,ae=(ne,be,Ee,Pe)=>{let Te=Ou(ne.stretch-z,L,ue,oe),Ze=Vu(ne.fixed-O,j,ne.stretch,b),dt=Ou(be.stretch-R,F,he,ie),ft=Vu(be.fixed-Y,Q,be.stretch,P),wt=Ou(Ee.stretch-z,L,ue,oe),bi=Vu(Ee.fixed-O,j,Ee.stretch,b),Nt=Ou(Pe.stretch-R,F,he,ie),Qt=Vu(Pe.fixed-Y,Q,Pe.stretch,P),ai=new pe(Te,dt),kt=new pe(wt,dt),fi=new pe(wt,Nt),ki=new pe(Te,Nt),Ri=new pe(Ze/u,ft/u),Ki=new pe(bi/u,Qt/u),wi=e*Math.PI/180;if(wi){let si=Math.sin(wi),Ot=Math.cos(wi),Kt=[Ot,-si,si,Ot];ai._matMult(Kt),kt._matMult(Kt),ki._matMult(Kt),fi._matMult(Kt)}let Ji=ne.stretch+ne.fixed,Cr=be.stretch+be.fixed;return{tl:ai,tr:kt,bl:ki,br:fi,tex:{x:l.paddedRect.x+1+Ji,y:l.paddedRect.y+1+Cr,w:Ee.stretch+Ee.fixed-Ji,h:Pe.stretch+Pe.fixed-Cr},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:Ri,pixelOffsetBR:Ki,minFontScaleX:j/u/ue,minFontScaleY:Q/u/he,isSDF:i}};if(o&&(l.stretchX||l.stretchY)){let ne=Yf(v,C,b),be=Yf(_,A,P);for(let Ee=0;Ee0&&(C=Math.max(10,C),this.circleDiameter=C)}else{let T=!((_=u.image)===null||_===void 0)&&_.content&&(u.image.textFitWidth||u.image.textFitHeight)?Gp(u):{x1:u.left,y1:u.top,x2:u.right,y2:u.bottom};T.y1=T.y1*p-g[0],T.y2=T.y2*p+g[2],T.x1=T.x1*p-g[3],T.x2=T.x2*p+g[1];let b=u.collisionPadding;if(b&&(T.x1-=b[0]*p,T.y1-=b[1]*p,T.x2+=b[2]*p,T.y2+=b[3]*p),v){let P=new pe(T.x1,T.y1),C=new pe(T.x2,T.y1),A=new pe(T.x1,T.y2),z=new pe(T.x2,T.y2),L=v*Math.PI/180;P._rotate(L),C._rotate(L),A._rotate(L),z._rotate(L),T.x1=Math.min(P.x,C.x,A.x,z.x),T.x2=Math.max(P.x,C.x,A.x,z.x),T.y1=Math.min(P.y,C.y,A.y,z.y),T.y2=Math.max(P.y,C.y,A.y,z.y)}e.emplaceBack(i.x,i.y,T.x1,T.y1,T.x2,T.y2,o,a,l)}this.boxEndIndex=e.length}}class l1{constructor(e=[],i=(o,a)=>oa?1:0){if(this.data=e,this.length=this.data.length,this.compare=i,this.length>0)for(let o=(this.length>>1)-1;o>=0;o--)this._down(o)}push(e){this.data.push(e),this._up(this.length++)}pop(){if(this.length===0)return;let e=this.data[0],i=this.data.pop();return--this.length>0&&(this.data[0]=i,this._down(0)),e}peek(){return this.data[0]}_up(e){let{data:i,compare:o}=this,a=i[e];for(;e>0;){let l=e-1>>1,u=i[l];if(o(a,u)>=0)break;i[e]=u,e=l}i[e]=a}_down(e){let{data:i,compare:o}=this,a=this.length>>1,l=i[e];for(;e=0)break;i[e]=i[u],e=u}i[e]=l}}function c1(r,e=1){let i=da.fromPoints(r[0]),o=Math.min(i.width(),i.height()),a=o/2,l=new l1([],u1),{minX:u,minY:p,maxX:g,maxY:m}=i;if(o===0)return new pe(u,p);for(let T=u;T_.d||!_.d)&&(_=T),T.max-_.d<=e||(a=T.h/2,l.push(new ks(T.p.x-a,T.p.y-a,a,r)),l.push(new ks(T.p.x+a,T.p.y-a,a,r)),l.push(new ks(T.p.x-a,T.p.y+a,a,r)),l.push(new ks(T.p.x+a,T.p.y+a,a,r)))}return v.d>0&&_.d-v.d<=e?v.p:_.p}function u1(r,e){return e.max-r.max}class ks{constructor(e,i,o,a){this.p=new pe(e,i),this.h=o,this.d=(function(l,u){let p=!1,g=1/0;for(let m of u)for(let v=0,_=m.length,T=_-1;v<_;T=v++){let b=m[v],P=m[T];b.y>l.y!=P.y>l.y&&l.x<(P.x-b.x)*(l.y-b.y)/(P.y-b.y)+b.x&&(p=!p),g=Math.min(g,jd(l,b,P))}return(p?1:-1)*Math.sqrt(g)})(this.p,a),this.max=this.d+this.h*Math.SQRT2}}var xi;k.aM=void 0,(xi=k.aM||(k.aM={}))[xi.center=1]=\"center\",xi[xi.left=2]=\"left\",xi[xi.right=3]=\"right\",xi[xi.top=4]=\"top\",xi[xi.bottom=5]=\"bottom\",xi[xi[\"top-left\"]=6]=\"top-left\",xi[xi[\"top-right\"]=7]=\"top-right\",xi[xi[\"bottom-left\"]=8]=\"bottom-left\",xi[xi[\"bottom-right\"]=9]=\"bottom-right\";let Sd=Number.POSITIVE_INFINITY;function Kf(r,e){return e[1]!==Sd?(function(i,o,a){let l=0,u=0;switch(o=Math.abs(o),a=Math.abs(a),i){case\"top-right\":case\"top-left\":case\"top\":u=a-7;break;case\"bottom-right\":case\"bottom-left\":case\"bottom\":u=7-a}switch(i){case\"top-right\":case\"bottom-right\":case\"right\":l=-o;break;case\"top-left\":case\"bottom-left\":case\"left\":l=o}return[l,u]})(r,e[0],e[1]):(function(i,o){let a=0,l=0;o<0&&(o=0);let u=o/Math.SQRT2;switch(i){case\"top-right\":case\"top-left\":l=u-7;break;case\"bottom-right\":case\"bottom-left\":l=7-u;break;case\"bottom\":l=7-o;break;case\"top\":l=o-7}switch(i){case\"top-right\":case\"bottom-right\":a=-u;break;case\"top-left\":case\"bottom-left\":a=u;break;case\"left\":a=o;break;case\"right\":a=-o}return[a,l]})(r,e[0])}function Jf(r,e,i){var o;let a=r.layout,l=(o=a.get(\"text-variable-anchor-offset\"))===null||o===void 0?void 0:o.evaluate(e,{},i);if(l){let p=l.values,g=[];for(let m=0;mT*ni));v.startsWith(\"top\")?_[1]-=7:v.startsWith(\"bottom\")&&(_[1]+=7),g[m+1]=_}return new Ci(g)}let u=a.get(\"text-variable-anchor\");if(u){let p;p=r._unevaluatedLayout.getValue(\"text-radial-offset\")!==void 0?[a.get(\"text-radial-offset\").evaluate(e,{},i)*ni,Sd]:a.get(\"text-offset\").evaluate(e,{},i).map((m=>m*ni));let g=[];for(let m of u)g.push(m,Kf(m,p));return new Ci(g)}return null}function Md(r){switch(r){case\"right\":case\"top-right\":case\"bottom-right\":return\"right\";case\"left\":case\"top-left\":case\"bottom-left\":return\"left\"}return\"center\"}function h1(r,e,i,o,a,l,u,p,g,m,v,_){let T=l.textMaxSize.evaluate(e,{});T===void 0&&(T=u);let b=r.layers[0].layout,P=b.get(\"icon-offset\").evaluate(e,{},v),C=em(i.horizontal),A=u/24,z=r.tilePixelRatio*A,L=r.tilePixelRatio*T/24,R=r.tilePixelRatio*p,F=r.tilePixelRatio*b.get(\"symbol-spacing\"),O=b.get(\"text-padding\")*r.tilePixelRatio,j=(function(Ee,Pe,Te,Ze=1){let dt=Ee.get(\"icon-padding\").evaluate(Pe,{},Te),ft=dt?.values;return[ft[0]*Ze,ft[1]*Ze,ft[2]*Ze,ft[3]*Ze]})(b,e,v,r.tilePixelRatio),Y=b.get(\"text-max-angle\")/180*Math.PI,Q=b.get(\"text-rotation-alignment\")!==\"viewport\"&&b.get(\"symbol-placement\")!==\"point\",oe=b.get(\"icon-rotation-alignment\")===\"map\"&&b.get(\"symbol-placement\")!==\"point\",ie=b.get(\"symbol-placement\"),ue=F/2,he=b.get(\"icon-text-fit\"),ae;o&&he!==\"none\"&&(r.allowVerticalPlacement&&i.vertical&&(ae=$p(o,i.vertical,he,b.get(\"icon-text-fit-padding\"),P,A)),C&&(o=$p(o,C,he,b.get(\"icon-text-fit-padding\"),P,A)));let ne=v?_.line.getGranularityForZoomLevel(v.z):1,be=(Ee,Pe)=>{Pe.x<0||Pe.x>=qe||Pe.y<0||Pe.y>=qe||(function(Te,Ze,dt,ft,wt,bi,Nt,Qt,ai,kt,fi,ki,Ri,Ki,wi,Ji,Cr,si,Ot,Kt,Ut,li,On,Ur,lc){let wo=Te.addToLineVertexArray(Ze,dt),fa,Rs,Ls,Fs,tm=0,im=0,rm=0,nm=0,Pd=-1,Cd=-1,Vn={},om=ri(\"\");if(Te.allowVerticalPlacement&&ft.vertical){let Li=Qt.layout.get(\"text-rotate\").evaluate(Ut,{},Ur)+90;Ls=new ju(ai,Ze,kt,fi,ki,ft.vertical,Ri,Ki,wi,Li),Nt&&(Fs=new ju(ai,Ze,kt,fi,ki,Nt,Cr,si,wi,Li))}if(wt){let Li=Qt.layout.get(\"icon-rotate\").evaluate(Ut,{}),vr=Qt.layout.get(\"icon-text-fit\")!==\"none\",ma=Xf(wt,Li,On,vr),Gr=Nt?Xf(Nt,Li,On,vr):void 0;Rs=new ju(ai,Ze,kt,fi,ki,wt,Cr,si,!1,Li),tm=4*ma.length;let ga=Te.iconSizeData,cn=null;ga.kind===\"source\"?(cn=[Fn*Qt.layout.get(\"icon-size\").evaluate(Ut,{})],cn[0]>go&&xt(`${Te.layerIds[0]}: Value for \"icon-size\" is >= 255. Reduce your \"icon-size\".`)):ga.kind===\"composite\"&&(cn=[Fn*li.compositeIconSizes[0].evaluate(Ut,{},Ur),Fn*li.compositeIconSizes[1].evaluate(Ut,{},Ur)],(cn[0]>go||cn[1]>go)&&xt(`${Te.layerIds[0]}: Value for \"icon-size\" is >= 255. Reduce your \"icon-size\".`)),Te.addSymbols(Te.icon,ma,cn,Kt,Ot,Ut,k.ax.none,Ze,wo.lineStartIndex,wo.lineLength,-1,Ur),Pd=Te.icon.placedSymbolArray.length-1,Gr&&(im=4*Gr.length,Te.addSymbols(Te.icon,Gr,cn,Kt,Ot,Ut,k.ax.vertical,Ze,wo.lineStartIndex,wo.lineLength,-1,Ur),Cd=Te.icon.placedSymbolArray.length-1)}let am=Object.keys(ft.horizontal);for(let Li of am){let vr=ft.horizontal[Li];if(!fa){om=ri(vr.text);let Gr=Qt.layout.get(\"text-rotate\").evaluate(Ut,{},Ur);fa=new ju(ai,Ze,kt,fi,ki,vr,Ri,Ki,wi,Gr)}let ma=vr.positionedLines.length===1;if(rm+=Qf(Te,Ze,vr,bi,Qt,wi,Ut,Ji,wo,ft.vertical?k.ax.horizontal:k.ax.horizontalOnly,ma?am:[Li],Vn,Pd,li,Ur),ma)break}ft.vertical&&(nm+=Qf(Te,Ze,ft.vertical,bi,Qt,wi,Ut,Ji,wo,k.ax.vertical,[\"vertical\"],Vn,Cd,li,Ur));let p1=fa?fa.boxStartIndex:Te.collisionBoxArray.length,f1=fa?fa.boxEndIndex:Te.collisionBoxArray.length,m1=Ls?Ls.boxStartIndex:Te.collisionBoxArray.length,g1=Ls?Ls.boxEndIndex:Te.collisionBoxArray.length,_1=Rs?Rs.boxStartIndex:Te.collisionBoxArray.length,y1=Rs?Rs.boxEndIndex:Te.collisionBoxArray.length,v1=Fs?Fs.boxStartIndex:Te.collisionBoxArray.length,x1=Fs?Fs.boxEndIndex:Te.collisionBoxArray.length,qr=-1,Nu=(Li,vr)=>Li?.circleDiameter?Math.max(Li.circleDiameter,vr):vr;qr=Nu(fa,qr),qr=Nu(Ls,qr),qr=Nu(Rs,qr),qr=Nu(Fs,qr);let sm=qr>-1?1:0;sm&&(qr*=lc/ni),Te.glyphOffsetArray.length>=Ts.MAX_GLYPHS&&xt(\"Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907\"),Ut.sortKey!==void 0&&Te.addToSortKeyRanges(Te.symbolInstances.length,Ut.sortKey);let b1=Jf(Qt,Ut,Ur),[w1,T1]=(function(Li,vr){let ma=Li.length,Gr=vr?.values;if(Gr?.length>0)for(let ga=0;ga=0?Vn.right:-1,Vn.center>=0?Vn.center:-1,Vn.left>=0?Vn.left:-1,Vn.vertical||-1,Pd,Cd,om,p1,f1,m1,g1,_1,y1,v1,x1,kt,rm,nm,tm,im,sm,0,Ri,qr,w1,T1)})(r,Pe,Ee,i,o,a,ae,r.layers[0],r.collisionBoxArray,e.index,e.sourceLayerIndex,r.index,z,[O,O,O,O],Q,g,R,j,oe,P,e,l,m,v,u)};if(ie===\"line\")for(let Ee of Nf(e.geometry,0,0,qe,qe)){let Pe=ha(Ee,ne),Te=s1(Pe,F,Y,i.vertical||C,o,24,L,r.overscaling,qe);for(let Ze of Te)C&&d1(r,C.text,ue,Ze)||be(Pe,Ze)}else if(ie===\"line-center\"){for(let Ee of e.geometry)if(Ee.length>1){let Pe=ha(Ee,ne),Te=a1(Pe,Y,i.vertical||C,o,24,L);Te&&be(Pe,Te)}}else if(e.type===\"Polygon\")for(let Ee of Fa(e.geometry,0)){let Pe=c1(Ee,16);be(ha(Ee[0],ne,!0),new bo(Pe.x,Pe.y,0))}else if(e.type===\"LineString\")for(let Ee of e.geometry){let Pe=ha(Ee,ne);be(Pe,new bo(Pe[0].x,Pe[0].y,0))}else if(e.type===\"Point\")for(let Ee of e.geometry)for(let Pe of Ee)be([Pe],new bo(Pe.x,Pe.y,0))}function Qf(r,e,i,o,a,l,u,p,g,m,v,_,T,b,P){let C=(function(L,R,F,O,j,Y,Q,oe){let ie=O.layout.get(\"text-rotate\").evaluate(Y,{})*Math.PI/180,ue=[];for(let he of R.positionedLines)for(let ae of he.positionedGlyphs){if(!ae.rect)continue;let ne=ae.rect||{},be=4,Ee=!0,Pe=1,Te=0,Ze=(j||oe)&&ae.vertical,dt=ae.metrics.advance*ae.scale/2;if(oe&&R.verticalizable&&(Te=he.lineOffset/2-(ae.imageName?-(ni-ae.metrics.width*ae.scale)/2:(ae.scale-1)*ni)),ae.imageName){let si=Q[ae.imageName];Ee=si.sdf,Pe=si.pixelRatio,be=1/Pe}let ft=j?[ae.x+dt,ae.y]:[0,0],wt=j?[0,0]:[ae.x+dt+F[0],ae.y+F[1]-Te],bi=[0,0];Ze&&(bi=wt,wt=[0,0]);let Nt=ae.metrics.isDoubleResolution?2:1,Qt=(ae.metrics.left-be)*ae.scale-dt+wt[0],ai=(-ae.metrics.top-be)*ae.scale+wt[1],kt=Qt+ne.w/Nt*ae.scale/Pe,fi=ai+ne.h/Nt*ae.scale/Pe,ki=new pe(Qt,ai),Ri=new pe(kt,ai),Ki=new pe(Qt,fi),wi=new pe(kt,fi);if(Ze){let si=new pe(-dt,dt- -17),Ot=-Math.PI/2,Kt=12-dt,Ut=new pe(22-Kt,-(ae.imageName?Kt:0)),li=new pe(...bi);ki._rotateAround(Ot,si)._add(Ut)._add(li),Ri._rotateAround(Ot,si)._add(Ut)._add(li),Ki._rotateAround(Ot,si)._add(Ut)._add(li),wi._rotateAround(Ot,si)._add(Ut)._add(li)}if(ie){let si=Math.sin(ie),Ot=Math.cos(ie),Kt=[Ot,-si,si,Ot];ki._matMult(Kt),Ri._matMult(Kt),Ki._matMult(Kt),wi._matMult(Kt)}let Ji=new pe(0,0),Cr=new pe(0,0);ue.push({tl:ki,tr:Ri,bl:Ki,br:wi,tex:ne,writingMode:R.writingMode,glyphOffset:ft,sectionIndex:ae.sectionIndex,isSDF:Ee,pixelOffsetTL:Ji,pixelOffsetBR:Cr,minFontScaleX:0,minFontScaleY:0})}return ue})(0,i,p,a,l,u,o,r.allowVerticalPlacement),A=r.textSizeData,z=null;A.kind===\"source\"?(z=[Fn*a.layout.get(\"text-size\").evaluate(u,{})],z[0]>go&&xt(`${r.layerIds[0]}: Value for \"text-size\" is >= 255. Reduce your \"text-size\".`)):A.kind===\"composite\"&&(z=[Fn*b.compositeTextSizes[0].evaluate(u,{},P),Fn*b.compositeTextSizes[1].evaluate(u,{},P)],(z[0]>go||z[1]>go)&&xt(`${r.layerIds[0]}: Value for \"text-size\" is >= 255. Reduce your \"text-size\".`)),r.addSymbols(r.text,C,z,p,l,u,m,e,g.lineStartIndex,g.lineLength,T,P);for(let L of v)_[L]=r.text.placedSymbolArray.length-1;return 4*C.length}function em(r){for(let e in r)return r[e];return null}function d1(r,e,i,o){let a=r.compareText;if(e in a){let l=a[e];for(let u=l.length-1;u>=0;u--)if(o.dist(l[u])this.process())),this.subscription=Zr(this.target,\"message\",(i=>this.receive(i)),!1),this.globalScope=zt(self)?r:window}registerMessageHandler(r,e){this.messageHandlers[r]=e}unregisterMessageHandler(r){delete this.messageHandlers[r]}sendAsync(r,e){return new Promise(((i,o)=>{let a=Math.round(1e18*Math.random()).toString(36).substring(0,10),l=e?Zr(e.signal,\"abort\",(()=>{l?.unsubscribe(),delete this.resolveRejects[a];let g={id:a,type:\"\",origin:location.origin,targetMapId:r.targetMapId,sourceMapId:this.mapId};this.target.postMessage(g)}),S0):null;this.resolveRejects[a]={resolve:g=>{l?.unsubscribe(),i(g)},reject:g=>{l?.unsubscribe(),o(g)}};let u=[],p=Object.assign(Object.assign({},r),{id:a,sourceMapId:this.mapId,origin:location.origin,data:Lr(r.data,u)});this.target.postMessage(p,{transfer:u})}))}receive(r){let e=r.data,i=e.id,o=[\"file://\",\"resource://android\",\"null\"],a=[e.origin,location.origin],l=e.origin===location.origin,u=a.some((p=>o.includes(p)));if((l||u)&&(!e.targetMapId||this.mapId===e.targetMapId)){if(e.type===\"\"){delete this.tasks[i];let p=this.abortControllers[i];return delete this.abortControllers[i],void(p&&p.abort())}if(zt(self)||e.mustQueue)return this.tasks[i]=e,this.taskQueue.push(i),void this.invoker.trigger();this.processTask(i,e)}}process(){if(this.taskQueue.length===0)return;let r=this.taskQueue.shift(),e=this.tasks[r];delete this.tasks[r],this.taskQueue.length>0&&this.invoker.trigger(),e&&this.processTask(r,e)}processTask(r,e){return h(this,void 0,void 0,(function*(){if(e.type===\"\"){let a=this.resolveRejects[r];return delete this.resolveRejects[r],a?void(e.error?a.reject(mt(ta(e.error))):a.resolve(ta(e.data))):void 0}if(!this.messageHandlers[e.type])return void this.completeTask(r,new Error(`Could not find a registered handler for ${e.type}, map ID: ${this.mapId}, available handlers: ${Object.keys(this.messageHandlers).join(\", \")}`));let i=ta(e.data),o=new AbortController;this.abortControllers[r]=o;try{let a=yield this.messageHandlers[e.type](e.sourceMapId,i,o);this.completeTask(r,null,a)}catch(a){this.completeTask(r,mt(a))}}))}completeTask(r,e,i){let o=[];delete this.abortControllers[r];let a={id:r,type:\"\",sourceMapId:this.mapId,origin:location.origin,error:e?Lr(e):null,data:Lr(i,o)};this.target.postMessage(a,{transfer:o})}remove(){this.invoker.remove(),this.subscription.unsubscribe()}},k.O=function(){var r=new ut(16);return ut!=Float32Array&&(r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[6]=0,r[7]=0,r[8]=0,r[9]=0,r[11]=0,r[12]=0,r[13]=0,r[14]=0),r[0]=1,r[5]=1,r[10]=1,r[15]=1,r},k.P=pe,k.Q=function(r,e,i){var o,a,l,u,p,g,m,v,_,T,b,P,C=i[0],A=i[1],z=i[2];return e===r?(r[12]=e[0]*C+e[4]*A+e[8]*z+e[12],r[13]=e[1]*C+e[5]*A+e[9]*z+e[13],r[14]=e[2]*C+e[6]*A+e[10]*z+e[14],r[15]=e[3]*C+e[7]*A+e[11]*z+e[15]):(a=e[1],l=e[2],u=e[3],p=e[4],g=e[5],m=e[6],v=e[7],_=e[8],T=e[9],b=e[10],P=e[11],r[0]=o=e[0],r[1]=a,r[2]=l,r[3]=u,r[4]=p,r[5]=g,r[6]=m,r[7]=v,r[8]=_,r[9]=T,r[10]=b,r[11]=P,r[12]=o*C+p*A+_*z+e[12],r[13]=a*C+g*A+T*z+e[13],r[14]=l*C+m*A+b*z+e[14],r[15]=u*C+v*A+P*z+e[15]),r},k.R=Yi,k.S=function(r,e,i){var o=i[0],a=i[1],l=i[2];return r[0]=e[0]*o,r[1]=e[1]*o,r[2]=e[2]*o,r[3]=e[3]*o,r[4]=e[4]*a,r[5]=e[5]*a,r[6]=e[6]*a,r[7]=e[7]*a,r[8]=e[8]*l,r[9]=e[9]*l,r[10]=e[10]*l,r[11]=e[11]*l,r[12]=e[12],r[13]=e[13],r[14]=e[14],r[15]=e[15],r},k.T=Ph,k.U=function(r,e,i){var o=e[0],a=e[1],l=e[2],u=e[3],p=e[4],g=e[5],m=e[6],v=e[7],_=e[8],T=e[9],b=e[10],P=e[11],C=e[12],A=e[13],z=e[14],L=e[15],R=i[0],F=i[1],O=i[2],j=i[3];return r[0]=R*o+F*p+O*_+j*C,r[1]=R*a+F*g+O*T+j*A,r[2]=R*l+F*m+O*b+j*z,r[3]=R*u+F*v+O*P+j*L,r[4]=(R=i[4])*o+(F=i[5])*p+(O=i[6])*_+(j=i[7])*C,r[5]=R*a+F*g+O*T+j*A,r[6]=R*l+F*m+O*b+j*z,r[7]=R*u+F*v+O*P+j*L,r[8]=(R=i[8])*o+(F=i[9])*p+(O=i[10])*_+(j=i[11])*C,r[9]=R*a+F*g+O*T+j*A,r[10]=R*l+F*m+O*b+j*z,r[11]=R*u+F*v+O*P+j*L,r[12]=(R=i[12])*o+(F=i[13])*p+(O=i[14])*_+(j=i[15])*C,r[13]=R*a+F*g+O*T+j*A,r[14]=R*l+F*m+O*b+j*z,r[15]=R*u+F*v+O*P+j*L,r},k.V=function(r,e){let i={};for(let o of e)o in r&&(i[o]=r[o]);return i},k.W=_o,k.X=$r,k.Y=ef,k.Z=Qp,k._=h,k.a=Po,k.a$=function(r){var e=new ut(3);return e[0]=r[0],e[1]=r[1],e[2]=r[2],e},k.a0=He,k.a1=st,k.a2=Mo,k.a3=ar,k.a4=rf,k.a5=Ru,k.a6=qe,k.a7=nc,k.a8=da,k.a9=25,k.aA=function(r){var e=r[0],i=r[1];return Math.sqrt(e*e+i*i)},k.aB=function(r){return r[0]=0,r[1]=0,r},k.aC=function(r,e,i){return r[0]=e[0]*i,r[1]=e[1]*i,r},k.aD=Qh,k.aE=je,k.aF=function(r,e,i,o){let a=e.y-r.y,l=e.x-r.x,u=o.y-i.y,p=o.x-i.x,g=u*l-p*a;if(g===0)return null;let m=(p*(r.y-i.y)-u*(r.x-i.x))/g;return new pe(r.x+m*l,r.y+m*a)},k.aG=Nf,k.aH=ds,k.aI=function(r){let e=1/0,i=1/0,o=-1/0,a=-1/0;for(let l of r)e=Math.min(e,l.x),i=Math.min(i,l.y),o=Math.max(o,l.x),a=Math.max(a,l.y);return[e,i,o,a]},k.aJ=ni,k.aK=vt,k.aL=function(r,e,i,o,a=!1){if(!i[0]&&!i[1])return[0,0];let l=a?o===\"map\"?-r.bearingInRadians:0:o===\"viewport\"?r.bearingInRadians:0;if(l){let u=Math.sin(l),p=Math.cos(l);i=[i[0]*p-i[1]*u,i[0]*u+i[1]*p]}return[a?i[0]:vt(e,i[0],r.zoom),a?i[1]:vt(e,i[1],r.zoom)]},k.aN=Jh,k.aO=Md,k.aP=Kh,k.aQ=r=>r.type===\"symbol\",k.aR=Su,k.aS=It,k.aT=Tu,k.aU=V,k.aV=Ae,k.aW=ge,k.aX=hr,k.aY=nf,k.aZ=K,k.a_=W,k.aa=nd,k.ab=r=>{let e=window.document.createElement(\"video\");return e.muted=!0,new Promise((i=>{e.onloadstart=()=>{i(e)};for(let o of r){let a=window.document.createElement(\"source\");dr(o)||(e.crossOrigin=\"Anonymous\"),a.src=o,e.appendChild(a)}}))},k.ac=Se,k.ad=function(){return fe++},k.ae=c,k.af=Ts,k.ag=sc,k.ah=$o,k.ai=ln,k.aj=lf,k.ak=function(r){let e={};if(r.replace(/(?:^|(?:\\s*\\,\\s*))([^\\x00-\\x20\\(\\)<>@\\,;\\:\\\\\"\\/\\[\\]\\?\\=\\{\\}\\x7F]+)(?:\\=(?:([^\\x00-\\x20\\(\\)<>@\\,;\\:\\\\\"\\/\\[\\]\\?\\=\\{\\}\\x7F]+)|(?:\\\"((?:[^\"\\\\]|\\\\.)*)\\\")))?/g,((i,o,a,l)=>{let u=a||l;return e[o]=!u||u.toLowerCase(),\"\"})),e[\"max-age\"]){let i=parseInt(e[\"max-age\"],10);isNaN(i)?delete e[\"max-age\"]:e[\"max-age\"]=i}return e},k.al=ti,k.am=85.051129,k.an=Pi,k.ao=function(r){return Math.pow(2,r)},k.ap=Qi,k.aq=tf,k.ar=function(r){return Math.log(r)/Math.LN2},k.as=function(r){var e=r[0],i=r[1];return e*e+i*i},k.at=function(r){if(!r.length)return new Set;let e=Math.max(...r.map((g=>g.canonical.z))),i=1/0,o=-1/0,a=1/0,l=-1/0,u=[];for(let g of r){let{x:m,y:v,z:_}=g.canonical,T=Math.pow(2,e-_),b=m*T,P=v*T;u.push({id:g,x:b,y:P}),bo&&(o=b),Pl&&(l=P)}let p=new Set;for(let g of u)g.x!==i&&g.x!==o&&g.y!==a&&g.y!==l||p.add(g.id);return p},k.au=function(r,e){let i=Math.abs(2*r.wrap)-+(r.wrap<0),o=Math.abs(2*e.wrap)-+(e.wrap<0);return r.overscaledZ-e.overscaledZ||o-i||e.canonical.y-r.canonical.y||e.canonical.x-r.canonical.x},k.av=class{constructor(r,e){this.max=r,this.onRemove=e,this.reset()}reset(){for(let r in this.data)for(let e of this.data[r])e.timeout&&clearTimeout(e.timeout),this.onRemove(e.value);return this.data={},this.order=[],this}add(r,e,i){let o=r.wrapped().key;this.data[o]===void 0&&(this.data[o]=[]);let a={value:e,timeout:void 0};if(i!==void 0&&(a.timeout=setTimeout((()=>{this.remove(r,a)}),i)),this.data[o].push(a),this.order.push(o),this.order.length>this.max){let l=this._getAndRemoveByKey(this.order[0]);l&&this.onRemove(l)}return this}has(r){return r.wrapped().key in this.data}getAndRemove(r){return this.has(r)?this._getAndRemoveByKey(r.wrapped().key):null}_getAndRemoveByKey(r){let e=this.data[r].shift();return e.timeout&&clearTimeout(e.timeout),this.data[r].length===0&&delete this.data[r],this.order.splice(this.order.indexOf(r),1),e.value}getByKey(r){let e=this.data[r];return e?e[0].value:null}get(r){return this.has(r)?this.data[r.wrapped().key][0].value:null}remove(r,e){if(!this.has(r))return this;let i=r.wrapped().key,o=e===void 0?0:this.data[i].indexOf(e),a=this.data[i][o];return this.data[i].splice(o,1),a.timeout&&clearTimeout(a.timeout),this.data[i].length===0&&delete this.data[i],this.onRemove(a.value),this.order.splice(this.order.indexOf(i),1),this}setMaxSize(r){for(this.max=r;this.order.length>this.max;){let e=this._getAndRemoveByKey(this.order[0]);e&&this.onRemove(e)}return this}filter(r){let e=[];for(let i in this.data)for(let o of this.data[i])r(o.value)||e.push(o);for(let i of e)this.remove(i.value.tileID,i)}},k.aw=function(r,e){let i=0,o=0;if(r.kind===\"constant\")o=r.layoutSize;else if(r.kind!==\"source\"){let{interpolationType:a,minZoom:l,maxZoom:u}=r,p=a?ti(Zt.interpolationFactor(a,e,l,u),0,1):0;r.kind===\"camera\"?o=Zi.number(r.minSize,r.maxSize,p):i=p}return{uSizeT:i,uSize:o}},k.ay=function(r,{uSize:e,uSizeT:i},{lowerSize:o,upperSize:a}){return r.kind===\"source\"?o/Fn:r.kind===\"composite\"?Zi.number(o/Fn,a/Fn,i):e},k.az=Xe,k.b=xr,k.b$=cs,k.b0=function(r,e,i){return r[0]=e[0]-i[0],r[1]=e[1]-i[1],r[2]=e[2]-i[2],r},k.b1=function(r,e){var i=e[0],o=e[1],a=e[2],l=i*i+o*o+a*a;return l>0&&(l=1/Math.sqrt(l)),r[0]=e[0]*l,r[1]=e[1]*l,r[2]=e[2]*l,r},k.b2=ee,k.b3=function(r,e){return r[0]*e[0]+r[1]*e[1]+r[2]*e[2]},k.b4=function(r,e,i){return r[0]=e[0]*i[0],r[1]=e[1]*i[1],r[2]=e[2]*i[2],r[3]=e[3]*i[3],r},k.b5=Fi,k.b6=function(r,e,i){let o=e[0]*i[0]+e[1]*i[1]+e[2]*i[2];return o===0?null:(-(r[0]*i[0]+r[1]*i[1]+r[2]*i[2])-i[3])/o},k.b7=Me,k.b8=function(r,e,i){return r[0]=e[0]*i,r[1]=e[1]*i,r[2]=e[2]*i,r[3]=e[3]*i,r},k.b9=function(r,e){return r[0]*e[0]+r[1]*e[1]+r[2]*e[2]+r[3]},k.bA=$e,k.bB=function(r,e,i){var o=i[0],a=i[1],l=i[2],u=i[3],p=e[0],g=e[1],m=e[2],v=a*m-l*g,_=l*p-o*m,T=o*g-a*p;return r[0]=p+u*(v+=v)+a*(T+=T)-l*(_+=_),r[1]=g+u*_+l*v-o*T,r[2]=m+u*T+o*_-a*v,r},k.bC=function(r,e,i){let o=(a=[r[0],r[1],r[2],e[0],e[1],e[2],i[0],i[1],i[2]])[0]*((v=a[8])*(u=a[4])-(p=a[5])*(m=a[7]))+a[1]*(-v*(l=a[3])+p*(g=a[6]))+a[2]*(m*l-u*g);var a,l,u,p,g,m,v;if(o===0)return null;let _=ee([],[e[0],e[1],e[2]],[i[0],i[1],i[2]]),T=ee([],[i[0],i[1],i[2]],[r[0],r[1],r[2]]),b=ee([],[r[0],r[1],r[2]],[e[0],e[1],e[2]]),P=K([],_,-r[3]);return W(P,P,K([],T,-e[3])),W(P,P,K([],b,-i[3])),K(P,P,1/o),P},k.bD=rd,k.bE=function(){return new Float64Array(4)},k.bF=function(r,e,i,o){var a=[],l=[];return a[0]=e[0]-i[0],a[1]=e[1]-i[1],a[2]=e[2]-i[2],l[0]=a[0]*Math.cos(o)-a[1]*Math.sin(o),l[1]=a[0]*Math.sin(o)+a[1]*Math.cos(o),l[2]=a[2],r[0]=l[0]+i[0],r[1]=l[1]+i[1],r[2]=l[2]+i[2],r},k.bG=function(r,e,i,o){var a=[],l=[];return a[0]=e[0]-i[0],a[1]=e[1]-i[1],a[2]=e[2]-i[2],l[0]=a[0],l[1]=a[1]*Math.cos(o)-a[2]*Math.sin(o),l[2]=a[1]*Math.sin(o)+a[2]*Math.cos(o),r[0]=l[0]+i[0],r[1]=l[1]+i[1],r[2]=l[2]+i[2],r},k.bH=function(r,e,i,o){var a=[],l=[];return a[0]=e[0]-i[0],a[1]=e[1]-i[1],a[2]=e[2]-i[2],l[0]=a[2]*Math.sin(o)+a[0]*Math.cos(o),l[1]=a[1],l[2]=a[2]*Math.cos(o)-a[0]*Math.sin(o),r[0]=l[0]+i[0],r[1]=l[1]+i[1],r[2]=l[2]+i[2],r},k.bI=function(r,e,i){var o=Math.sin(i),a=Math.cos(i),l=e[0],u=e[1],p=e[2],g=e[3],m=e[8],v=e[9],_=e[10],T=e[11];return e!==r&&(r[4]=e[4],r[5]=e[5],r[6]=e[6],r[7]=e[7],r[12]=e[12],r[13]=e[13],r[14]=e[14],r[15]=e[15]),r[0]=l*a-m*o,r[1]=u*a-v*o,r[2]=p*a-_*o,r[3]=g*a-T*o,r[8]=l*o+m*a,r[9]=u*o+v*a,r[10]=p*o+_*a,r[11]=g*o+T*a,r},k.bJ=function(r,e){let i=Si(r,360),o=Si(e,360),a=o-i,l=o>i?a-360:a+360;return Math.abs(a)0?u:-u},k.bM=function(r,e){let i=Si(r,2*Math.PI),o=Si(e,2*Math.PI);return Math.min(Math.abs(i-o),Math.abs(i-o+2*Math.PI),Math.abs(i-o-2*Math.PI))},k.bN=function(){let r={},e=de.$version;for(let i in de.$root){let o=de.$root[i];if(o.required){let a=null;a=i===\"version\"?e:o.type===\"array\"?[]:{},a!=null&&(r[i]=a)}}return r},k.bO=Us,k.bP=Pl,k.bQ=function r(e,i){if(Array.isArray(e)){if(!Array.isArray(i)||e.length!==i.length)return!1;for(let o=0;or.type===\"raster\",k.bV=De,k.bW=function(r,e){if(!r)return[{command:\"setStyle\",args:[e]}];let i=[];try{if(!yt(r.version,e.version))return[{command:\"setStyle\",args:[e]}];yt(r.center,e.center)||i.push({command:\"setCenter\",args:[e.center]}),yt(r.state,e.state)||i.push({command:\"setGlobalState\",args:[e.state]}),yt(r.centerAltitude,e.centerAltitude)||i.push({command:\"setCenterAltitude\",args:[e.centerAltitude]}),yt(r.zoom,e.zoom)||i.push({command:\"setZoom\",args:[e.zoom]}),yt(r.bearing,e.bearing)||i.push({command:\"setBearing\",args:[e.bearing]}),yt(r.pitch,e.pitch)||i.push({command:\"setPitch\",args:[e.pitch]}),yt(r.roll,e.roll)||i.push({command:\"setRoll\",args:[e.roll]}),yt(r.sprite,e.sprite)||i.push({command:\"setSprite\",args:[e.sprite]}),yt(r.glyphs,e.glyphs)||i.push({command:\"setGlyphs\",args:[e.glyphs]}),yt(r.transition,e.transition)||i.push({command:\"setTransition\",args:[e.transition]}),yt(r.light,e.light)||i.push({command:\"setLight\",args:[e.light]}),yt(r.terrain,e.terrain)||i.push({command:\"setTerrain\",args:[e.terrain]}),yt(r.sky,e.sky)||i.push({command:\"setSky\",args:[e.sky]}),yt(r.projection,e.projection)||i.push({command:\"setProjection\",args:[e.projection]});let o={},a=[];(function(u,p,g,m){let v;for(v in p=p||{},u=u||{})Object.prototype.hasOwnProperty.call(u,v)&&(Object.prototype.hasOwnProperty.call(p,v)||pc(v,g,m));for(v in p)Object.prototype.hasOwnProperty.call(p,v)&&(Object.prototype.hasOwnProperty.call(u,v)?yt(u[v],p[v])||(u[v].type===\"geojson\"&&p[v].type===\"geojson\"&&Zu(u,p,v)?Oi(g,{command:\"setGeoJSONSourceData\",args:[v,p[v].data]}):fc(v,p,g,m)):pn(v,p,g))})(r.sources,e.sources,a,o);let l=[];r.layers&&r.layers.forEach((u=>{\"source\"in u&&o[u.source]?i.push({command:\"removeLayer\",args:[u.id]}):l.push(u)})),i=i.concat(a),(function(u,p,g){p=p||[];let m=(u=u||[]).map($s),v=p.map($s),_=u.reduce(mc,{}),T=p.reduce(mc,{}),b=m.slice(),P=Object.create(null),C,A,z,L,R;for(let F=0,O=0;Fle?(a=Math.acos(l),u=Math.sin(a),p=Math.sin((1-o)*a)/u,g=Math.sin(o*a)/u):(p=1-o,g=o),r[0]=p*m+g*b,r[1]=p*v+g*P,r[2]=p*_+g*C,r[3]=p*T+g*A,r},k.bm=function(r){let e=new Float64Array(9);var i,o,a,l,u,p,g,m,v,_,T,b,P,C,A,z,L,R;_=(a=(o=r)[0])*(g=a+a),T=(l=o[1])*g,P=(u=o[2])*g,C=u*(m=l+l),z=(p=o[3])*g,L=p*m,R=p*(v=u+u),(i=e)[0]=1-(b=l*m)-(A=u*v),i[3]=T-R,i[6]=P+L,i[1]=T+R,i[4]=1-_-A,i[7]=C-z,i[2]=P-L,i[5]=C+z,i[8]=1-_-b;let F=hr(-Math.asin(ti(e[2],-1,1))),O,j;return Math.hypot(e[5],e[8])<.001?(O=0,j=-hr(Math.atan2(e[3],e[4]))):(O=hr(e[5]===0&&e[8]===0?0:Math.atan2(e[5],e[8])),j=hr(e[1]===0&&e[0]===0?0:Math.atan2(e[1],e[0]))),{roll:O,pitch:F+90,bearing:j}},k.bn=function(r,e){return r.roll==e.roll&&r.pitch==e.pitch&&r.bearing==e.bearing},k.bo=tt,k.bp=Or,k.bq=_s,k.br=Yl,k.bs=gs,k.bt=Bi,k.bu=cr,k.bv=Ei,k.bw=function(r,e,i,o,a){return Bi(o,a,ti((r-e)/(i-e),0,1))},k.bx=function(r,e,i,o){return r[0]=e[0]+i[0]*o,r[1]=e[1]+i[1]*o,r[2]=e[2]+i[2]*o,r},k.by=Si,k.bz=function(){return new Float64Array(3)},k.c=Wr,k.c$=Go,k.c0=class extends yi{constructor(r,e){super(r,e),this.current=Mr}set(r){if(r[12]!==this.current[12]||r[0]!==this.current[0])return this.current=r,void this.gl.uniformMatrix4fv(this.location,!1,r);for(let e=1;e<16;e++)if(r[e]!==this.current[e]){this.current=r,this.gl.uniformMatrix4fv(this.location,!1,r);break}}},k.c1=on,k.c2=class extends yi{constructor(r,e){super(r,e),this.current=[0,0,0]}set(r){r[0]===this.current[0]&&r[1]===this.current[1]&&r[2]===this.current[2]||(this.current=r,this.gl.uniform3f(this.location,r[0],r[1],r[2]))}},k.c3=class extends yi{constructor(r,e){super(r,e),this.current=[0,0]}set(r){r[0]===this.current[0]&&r[1]===this.current[1]||(this.current=r,this.gl.uniform2f(this.location,r[0],r[1]))}},k.c4=ei,k.c5=function(r,e){var i=Math.sin(e),o=Math.cos(e);return r[0]=o,r[1]=i,r[2]=0,r[3]=-i,r[4]=o,r[5]=0,r[6]=0,r[7]=0,r[8]=1,r},k.c6=function(r,e,i){var o=e[0],a=e[1],l=e[2];return r[0]=o*i[0]+a*i[3]+l*i[6],r[1]=o*i[1]+a*i[4]+l*i[7],r[2]=o*i[2]+a*i[5]+l*i[8],r},k.c7=function(r,e,i,o,a,l,u){var p=1/(e-i),g=1/(o-a),m=1/(l-u);return r[0]=-2*p,r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[5]=-2*g,r[6]=0,r[7]=0,r[8]=0,r[9]=0,r[10]=2*m,r[11]=0,r[12]=(e+i)*p,r[13]=(a+o)*g,r[14]=(u+l)*m,r[15]=1,r},k.c8=class extends yi{constructor(r,e){super(r,e),this.current=new Array}set(r){if(r!=this.current){this.current=r;let e=new Float32Array(4*r.length);for(let i=0;i25||o<0||o>=1||i<0||i>=1)},k.cE=function(r,e){return r[0]=e[0],r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[5]=e[1],r[6]=0,r[7]=0,r[8]=0,r[9]=0,r[10]=e[2],r[11]=0,r[12]=0,r[13]=0,r[14]=0,r[15]=1,r},k.cF=class extends is{},k.cG=Nn,k.cH=function(r,e){Wr.REGISTERED_PROTOCOLS[r]=e},k.cI=function(r){delete Wr.REGISTERED_PROTOCOLS[r]},k.cJ=function(r,e){let i={};for(let a=0;abe*ni))}let ue=g?\"center\":a.get(\"text-justify\").evaluate(_,{},r.canonical),he=a.get(\"symbol-placement\")===\"point\"?a.get(\"text-max-width\").evaluate(_,{},r.canonical)*ni:1/0,ae=()=>{r.bucket.allowVerticalPlacement&&Cl(j)&&(A.vertical=zu(z,r.glyphMap,r.glyphPositions,r.imagePositions,T,he,p,oe,\"left\",Q,R,k.ax.vertical,!0,P,b))};if(!g&&ie){let ne=new Set;if(ue===\"auto\")for(let Ee=0;EeK0(p,g,l)),o.layers[u])})(r,i,e),i.finish()},k.cT=function(r,e,i,o,a,l){let u=Uf(r,e,i,a,0);return u=Uf(u,e,o,l,1),u},k.cU=class{constructor(r){this.maxEntries=r,this.map=new Map}get(r){let e=this.map.get(r);return e!==void 0&&(this.map.delete(r),this.map.set(r,e)),e}set(r,e){if(this.map.has(r))this.map.delete(r);else if(this.map.size>=this.maxEntries){let i=this.map.keys().next().value;this.map.delete(i)}this.map.set(r,e)}clear(){this.map.clear()}},k.cV=hp,k.cW=Au,k.cX=Bf,k.cY=function(r,e,i,o,a){return h(this,void 0,void 0,(function*(){if(st())try{return yield Mo(r,e,i,o,a)}catch{}return(function(l,u,p,g,m){let v=l.width,_=l.height;er&&Ir||(er=new OffscreenCanvas(v,_),Ir=er.getContext(\"2d\",{willReadFrequently:!0})),er.width=v,er.height=_,Ir.drawImage(l,0,0,v,_);let T=Ir.getImageData(u,p,g,m);return Ir.clearRect(0,0,v,_),T.data})(r,e,i,o,a)}))},k.cZ=Qd,k.c_=class{constructor(r,e){this.layers={[sc]:this},this.name=sc,this.version=e?e.version:1,this.extent=e?e.extent:4096,this.length=r.length,this.features=r}feature(r){return new Y0(this.features[r],this.extent)}},k.ca=class extends Dn{},k.cb=Hg,k.cc=class extends ca{},k.cd=Mh,k.ce=function(r){return r<=1?1:Math.pow(2,Math.ceil(Math.log(r)/Math.LN2))},k.cf=Xd,k.cg=function(r,e,i){var o=e[0],a=e[1],l=e[2],u=i[3]*o+i[7]*a+i[11]*l+i[15];return r[0]=(i[0]*o+i[4]*a+i[8]*l+i[12])/(u=u||1),r[1]=(i[1]*o+i[5]*a+i[9]*l+i[13])/u,r[2]=(i[2]*o+i[6]*a+i[10]*l+i[14])/u,r},k.ch=class extends rs{},k.ci=class extends t{},k.cj=function(r,e){return r[0]===e[0]&&r[1]===e[1]&&r[2]===e[2]&&r[3]===e[3]&&r[4]===e[4]&&r[5]===e[5]&&r[6]===e[6]&&r[7]===e[7]&&r[8]===e[8]&&r[9]===e[9]&&r[10]===e[10]&&r[11]===e[11]&&r[12]===e[12]&&r[13]===e[13]&&r[14]===e[14]&&r[15]===e[15]},k.ck=function(r,e){var i=r[0],o=r[1],a=r[2],l=r[3],u=r[4],p=r[5],g=r[6],m=r[7],v=r[8],_=r[9],T=r[10],b=r[11],P=r[12],C=r[13],A=r[14],z=r[15],L=e[0],R=e[1],F=e[2],O=e[3],j=e[4],Y=e[5],Q=e[6],oe=e[7],ie=e[8],ue=e[9],he=e[10],ae=e[11],ne=e[12],be=e[13],Ee=e[14],Pe=e[15];return Math.abs(i-L)<=le*Math.max(1,Math.abs(i),Math.abs(L))&&Math.abs(o-R)<=le*Math.max(1,Math.abs(o),Math.abs(R))&&Math.abs(a-F)<=le*Math.max(1,Math.abs(a),Math.abs(F))&&Math.abs(l-O)<=le*Math.max(1,Math.abs(l),Math.abs(O))&&Math.abs(u-j)<=le*Math.max(1,Math.abs(u),Math.abs(j))&&Math.abs(p-Y)<=le*Math.max(1,Math.abs(p),Math.abs(Y))&&Math.abs(g-Q)<=le*Math.max(1,Math.abs(g),Math.abs(Q))&&Math.abs(m-oe)<=le*Math.max(1,Math.abs(m),Math.abs(oe))&&Math.abs(v-ie)<=le*Math.max(1,Math.abs(v),Math.abs(ie))&&Math.abs(_-ue)<=le*Math.max(1,Math.abs(_),Math.abs(ue))&&Math.abs(T-he)<=le*Math.max(1,Math.abs(T),Math.abs(he))&&Math.abs(b-ae)<=le*Math.max(1,Math.abs(b),Math.abs(ae))&&Math.abs(P-ne)<=le*Math.max(1,Math.abs(P),Math.abs(ne))&&Math.abs(C-be)<=le*Math.max(1,Math.abs(C),Math.abs(be))&&Math.abs(A-Ee)<=le*Math.max(1,Math.abs(A),Math.abs(Ee))&&Math.abs(z-Pe)<=le*Math.max(1,Math.abs(z),Math.abs(Pe))},k.cl=function(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r[6]=e[6],r[7]=e[7],r[8]=e[8],r[9]=e[9],r[10]=e[10],r[11]=e[11],r[12]=e[12],r[13]=e[13],r[14]=e[14],r[15]=e[15],r},k.cm=r=>r.type===\"circle\",k.cn=r=>r.type===\"heatmap\",k.co=r=>r.type===\"line\",k.cp=r=>r.type===\"fill\",k.cq=r=>r.type===\"fill-extrusion\",k.cr=r=>r.type===\"hillshade\",k.cs=r=>r.type===\"color-relief\",k.ct=r=>r.type===\"background\",k.cu=r=>r.type===\"custom\",k.cv=ur,k.cw=function(r,e,i){if(e<=0)return r;let o=1/e;return i===void 0||Math.abs(i)<1e-10?Math.round(r*o)/o:(i>0?Math.ceil(r*o-1e-9):Math.floor(r*o+1e-10))/o},k.cx=function(r,e,i){let o=ot(e.x-i.x,e.y-i.y),a=ot(r.x-i.x,r.y-i.y);var l,u;return hr(Math.atan2(o[0]*a[1]-o[1]*a[0],(l=o)[0]*(u=a)[0]+l[1]*u[1]))},k.cy=un,k.cz=function(r,e){var i;if(!Ns[e])return!1;let o=r?.target,a=((i=o?.ownerDocument)===null||i===void 0?void 0:i.defaultView)||window;return r instanceof a.MouseEvent||r instanceof a.WheelEvent},k.d=mt,k.d0=class{constructor(r,e){let i=(e=this.options=Object.assign({},Bg,e)).debug;if(i&&console.time(\"preprocess data\"),e.maxZoom<0||e.maxZoom>24)throw new Error(\"maxZoom should be in the 0-24 range\");if(e.promoteId&&e.generateId)throw new Error(\"promoteId and generateId cannot be used together.\");let o=Bh(r,e);i&&(console.timeEnd(\"preprocess data\"),console.log(\"index: maxZoom: %d, maxPoints: %d\",e.indexMaxZoom,e.indexMaxPoints),console.time(\"generate tiles\")),o=Nh(o,e),e.updateable&&(this.source=o),this.initializeIndex(o,e)}initializeIndex(r,e){this.tileIndex=e.cluster?new Ag(e.clusterOptions):new Fg(e),r.length&&this.tileIndex.initialize(r)}getTile(r,e,i){return e=+e,i=+i,(r=+r)<0||r>24?null:this.tileIndex.getTile(r,e,i)}updateData(r,e){let i=this.options;if(!i.updateable)throw new Error(\"to update tile geojson `updateable` option must be set to true\");let{affected:o,source:a}=(function(l,u,p){let g=(function(v,_){return v?{removeAll:v.removeAll,remove:new Set(v.remove||[]),add:new Map(v.add?.map((T=>[_.promoteId?T.properties[_.promoteId]:T.id,T]))),update:new Map(v.update?.map((T=>[T.id,T])))}:{remove:new Set,add:new Map,update:new Map}})(u,p),m=[];if(g.removeAll&&(m=l,l=[]),g.remove.size||g.add.size){let v=[];for(let _ of l)(g.remove.has(_.id)||g.add.has(_.id))&&v.push(_);if(v.length){m.push(...v);let _=new Set(v.map((T=>T.id)));l=l.filter((T=>!_.has(T.id)))}if(g.add.size){let _=Bh({type:\"FeatureCollection\",features:Array.from(g.add.values())},p);_=Nh(_,p),m.push(..._),l.push(..._)}}if(g.update.size){let v=new Map,_=[];for(let T of l)g.update.has(T.id)?v.set(T.id,[...v.get(T.id)||[],T]):_.push(T);for(let[T,b]of g.update){let P=v.get(T);if(!P||P.length===0)continue;let C=Ig(P,b,p);m.push(...P,...C),_.push(...C)}l=_}return{affected:m,source:l}})(this.source,r,i);e&&({affected:o,source:a}=this.filterUpdate(a,o,e)),o.length&&(this.source=a,this.tileIndex.updateIndex(a,o,i))}filterUpdate(r,e,i){let o=new Set;for(let a of r)a.id!=null&&(i(Pu(a))||(e.push(a),o.add(a.id)));return{affected:e,source:r=r.filter((a=>!o.has(a.id)))}}getData(){if(!this.options.updateable)throw new Error(\"to retrieve data the `updateable` option must be set to true\");return{type:\"FeatureCollection\",features:this.source.map((r=>Pu(r)))}}updateClusterOptions(r,e){let i=this.options.cluster;this.options.cluster=r,this.options.clusterOptions=e,i!=r?this.initializeIndex(this.source,this.options):this.tileIndex.updateIndex(this.source,[],this.options)}getClusterExpansionZoom(r){return this.tileIndex.getClusterExpansionZoom(r)}getClusterChildren(r){return this.tileIndex.getChildren(r)}getClusterLeaves(r,e,i){return this.tileIndex.getLeaves(r,e,i)}},k.d1=Fr,k.e=Mi,k.f=dr,k.g=Ar,k.h=r=>h(void 0,void 0,void 0,(function*(){if(r.byteLength===0)return createImageBitmap(new ImageData(1,1));let e=new Blob([new Uint8Array(r)],{type:\"image/png\"});try{return createImageBitmap(e)}catch(i){throw new Error(`Could not load image because of ${mt(i).message}. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.`)}})),k.i=zt,k.j=r=>new Promise(((e,i)=>{let o=new Image;o.onload=()=>{e(o),URL.revokeObjectURL(o.src),o.onload=null,window.requestAnimationFrame((()=>o.src=So))},o.onerror=()=>i(new Error(\"Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.\"));let a=new Blob([new Uint8Array(r)],{type:\"image/png\"});o.src=r.byteLength?URL.createObjectURL(a):So})),k.k=(r,e)=>hn(Mi(r,{type:\"json\"}),e),k.l=qn,k.m=hn,k.n=Co,k.o=(r,e)=>hn(Mi(r,{type:\"arrayBuffer\"}),e),k.p=Np,k.q=function(r){return new Au(r).readFields(c0,[])},k.r=function(r){return/[\\u02EA\\u02EB\\u1100-\\u11FF\\u2E80-\\u2FDF\\u3000-\\u30FF\\u3105-\\u312F\\u3131-\\u318E\\u31A0-\\u4DBF\\u4E00-\\uA48C\\uA490-\\uA4C6\\uA960-\\uA97C\\uAC00-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFE10-\\uFE1F\\uFE30-\\uFE4F\\uFF00-\\uFFEF]|\\uD81B[\\uDFE0-\\uDFFF]|[\\uD81C-\\uD822\\uD840-\\uD868\\uD86A-\\uD86D\\uD86F-\\uD872\\uD874-\\uD879\\uD880-\\uD883\\uD885-\\uD88C][\\uDC00-\\uDFFF]|\\uD823[\\uDC00-\\uDCD5\\uDCFF-\\uDD1E\\uDD80-\\uDDF2]|\\uD82B[\\uDFF0-\\uDFFF]|\\uD82C[\\uDC00-\\uDEFB]|\\uD83C[\\uDE00-\\uDEFF]|\\uD869[\\uDC00-\\uDEDF\\uDF00-\\uDFFF]|\\uD86E[\\uDC00-\\uDC1D\\uDC20-\\uDFFF]|\\uD873[\\uDC00-\\uDEAD\\uDEB0-\\uDFFF]|\\uD87A[\\uDC00-\\uDFE0\\uDFF0-\\uDFFF]|\\uD87B[\\uDC00-\\uDE5D]|\\uD87E[\\uDC00-\\uDE1D]|\\uD884[\\uDC00-\\uDF4A\\uDF50-\\uDFFF]|\\uD88D[\\uDC00-\\uDC79]/gim.test(String.fromCodePoint(r))},k.s=Zr,k.t=$l,k.u=Ii,k.v=Jo,k.w=xt,k.x=de,k.y=kl,k.z=Hi})),ye(\"worker\",[\"./shared\"],(function(k){\"use strict\";class h{constructor(W,K){this.keyCache={},W&&this.replace(W,K)}replace(W,K){this._layerConfigs={},this._layers={},this.update(W,[],K)}update(W,K,ee){for(let Me of W){this._layerConfigs[Me.id]=Me;let je=this._layers[Me.id]=k.bT(Me,ee);je._featureFilter=k.ah(je.filter,ee),this.keyCache[Me.id]&&delete this.keyCache[Me.id]}for(let Me of K)delete this.keyCache[Me],delete this._layerConfigs[Me],delete this._layers[Me];this.familiesBySource={};let ve=k.cJ(Object.values(this._layerConfigs),this.keyCache);for(let Me of ve){let je=Me.map((vt=>this._layers[vt.id])),Oe=je[0];if(Oe.isHidden())continue;let $e=Oe.source||\"\",Xe=this.familiesBySource[$e];Xe||(Xe=this.familiesBySource[$e]={});let ot=Oe.sourceLayer||k.ag,qe=Xe[ot];qe||(qe=Xe[ot]=[]),qe.push(je)}}}class pe{constructor(W){let K={},ee=[];for(let Oe in W){let $e=W[Oe],Xe=K[Oe]={};for(let ot in $e){let qe=$e[+ot];if(!qe||qe.bitmap.width===0||qe.bitmap.height===0)continue;let vt={x:0,y:0,w:qe.bitmap.width+2,h:qe.bitmap.height+2};ee.push(vt),Xe[ot]={rect:vt,metrics:qe.metrics}}}let{w:ve,h:Me}=k.p(ee),je=new k.t({width:ve||1,height:Me||1});for(let Oe in W){let $e=W[Oe];for(let Xe in $e){let ot=$e[+Xe];if(!ot||ot.bitmap.width===0||ot.bitmap.height===0)continue;let qe=K[Oe][Xe].rect;k.t.copy(ot.bitmap,je,{x:0,y:0},{x:qe.x+1,y:qe.y+1},ot.bitmap)}}this.image=je,this.positions=K}}k.cK(\"GlyphAtlas\",pe);class Ve{constructor(W){this.tileID=new k.a3(W.tileID.overscaledZ,W.tileID.wrap,W.tileID.canonical.z,W.tileID.canonical.x,W.tileID.canonical.y),this.uid=W.uid,this.zoom=W.zoom,this.pixelRatio=W.pixelRatio,this.tileSize=W.tileSize,this.source=W.source,this.overscaling=this.tileID.overscaleFactor(),this.showCollisionBoxes=W.showCollisionBoxes,this.collectResourceTiming=!!W.collectResourceTiming,this.returnDependencies=!!W.returnDependencies,this.promoteId=W.promoteId,this.inFlightDependencies=[]}parse(W,K,ee,ve,Me){return k._(this,void 0,void 0,(function*(){this.status=\"parsing\",this.data=W,this.collisionBoxArray=new k.ae;let je=new k.cL(Object.keys(W.layers).sort()),Oe=new k.cM(this.tileID,this.promoteId);Oe.bucketLayerIDs=[];let $e={},Xe={featureIndex:Oe,iconDependencies:{},patternDependencies:{},glyphDependencies:{},dashDependencies:{},availableImages:ee,subdivisionGranularity:Me},ot=K.familiesBySource[this.source];for(let De in ot){let Tt=W.layers[De];if(!Tt)continue;Tt.version===1&&k.w(`Vector tile source \"${this.source}\" layer \"${De}\" does not use vector tile spec v2 and therefore may have some rendering errors.`);let xt=je.encode(De),ht=[];for(let zt=0;ztxr.id))))}}let qe=k.bY(Xe.glyphDependencies,(De=>Object.keys(De).map(Number)));for(let De of this.inFlightDependencies)De?.abort();this.inFlightDependencies=[];let vt=Promise.resolve({});if(Object.keys(qe).length){let De=new AbortController;this.inFlightDependencies.push(De),vt=ve.sendAsync({type:\"GG\",data:{stacks:qe,source:this.source,tileID:this.tileID,type:\"glyphs\"}},De)}let mt=Object.keys(Xe.iconDependencies),Si=Promise.resolve({});if(mt.length){let De=new AbortController;this.inFlightDependencies.push(De),Si=ve.sendAsync({type:\"GI\",data:{icons:mt,source:this.source,tileID:this.tileID,type:\"icons\"}},De)}let Bi=Object.keys(Xe.patternDependencies),cr=Promise.resolve({});if(Bi.length){let De=new AbortController;this.inFlightDependencies.push(De),cr=ve.sendAsync({type:\"GI\",data:{icons:Bi,source:this.source,tileID:this.tileID,type:\"patterns\"}},De)}let ur=Xe.dashDependencies,un=Promise.resolve({});if(Object.keys(ur).length){let De=new AbortController;this.inFlightDependencies.push(De),un=ve.sendAsync({type:\"GDA\",data:{dashes:ur}},De)}let[ti,$r,Mi,fe]=yield Promise.all([vt,Si,cr,un]),ke=new pe(ti),Ne=new k.cN($r,Mi);for(let De in $e){let Tt=$e[De];Tt instanceof k.af?(xe(Tt.layers,this.zoom,ee),k.cO({bucket:Tt,glyphMap:ti,glyphPositions:ke.positions,imageMap:$r,imagePositions:Ne.iconPositions,showCollisionBoxes:this.showCollisionBoxes,canonical:this.tileID.canonical,subdivisionGranularity:Xe.subdivisionGranularity})):Tt.hasDependencies&&(Tt instanceof k.cP||Tt instanceof k.cQ||Tt instanceof k.cR)&&(xe(Tt.layers,this.zoom,ee),Tt.addFeatures(Xe,this.tileID.canonical,Ne.patternPositions,fe))}return this.status=\"done\",{buckets:Object.values($e).filter((De=>!De.isEmpty())),featureIndex:Oe,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:ke.image,imageAtlas:Ne,dashPositions:fe,glyphMap:this.returnDependencies?ti:null,iconMap:this.returnDependencies?$r:null,glyphPositions:this.returnDependencies?ke.positions:null}}))}}function xe(it,W,K){let ee=new k.J(W);for(let ve of it)ve.recalculate(ee,K)}class et{constructor(){this.loading={},this.loaded={},this.parsing={}}startLoading(W,K){this.loading[W]=K}finishLoading(W){delete this.loading[W]}abort(W){let K=this.loading[W];K?.abort&&(K.abort.abort(),delete this.loading[W])}setParsing(W,K){this.parsing[W]=K}consumeParsing(W){let K=this.parsing[W];if(K)return delete this.parsing[W],K}clearParsing(W){delete this.parsing[W]}markLoaded(W,K){this.loaded[W]=K}getLoaded(W){let K=this.loaded[W];if(K)return K}removeLoaded(W){delete this.loaded[W]}clearLoaded(){this.loaded={}}}class pt{constructor(W){this.start=`${W}#start`,this.end=`${W}#end`,this.measure=W,performance.mark(this.start)}finish(){performance.mark(this.end);let W=performance.getEntriesByName(this.measure);return W.length===0&&(performance.measure(this.measure,this.start,this.end),W=performance.getEntriesByName(this.measure),performance.clearMarks(this.start),performance.clearMarks(this.end),performance.clearMeasures(this.measure)),W}}class Ge{constructor(W,K,ee,ve,Me){this.type=W,this.properties=ee||{},this.extent=Me,this.pointsArray=K,this.id=ve}loadGeometry(){return this.pointsArray.map((W=>W.map((K=>new k.P(K.x,K.y)))))}}class Ye{constructor(W,K,ee){this.version=2,this._myFeatures=W,this.name=K,this.length=W.length,this.extent=ee}feature(W){return this._myFeatures[W]}}class Fe{constructor(){this.layers={}}addLayer(W){this.layers[W.name]=W}}function He(it){let W=k.cS(it);return W.byteOffset===0&&W.byteLength===W.buffer.byteLength||(W=new Uint8Array(W)),{vectorTile:it,rawData:W.buffer}}function st(it,W,K){let{extent:ee}=it,ve=Math.pow(2,K.z-W.z),Me=(K.x-W.x*ve)*ee,je=(K.y-W.y*ve)*ee,Oe=[];for(let $e=0;$e0&&ot.addLayer(Bi)}let vt=He(ot);return this.overzoomedTileResultCache.set($e,vt),vt}reloadTile(W){return k._(this,void 0,void 0,(function*(){let K=W.uid,ee=this.tileState.getLoaded(K);if(!ee)throw new Error(\"Should not be trying to reload a tile that was never loaded or has been removed\");if(ee.showCollisionBoxes=W.showCollisionBoxes,ee.status===\"parsing\"){let ve=this.tileState.consumeParsing(K);return yield this._parseWorkerTile(ee,W,ve)}if(ee.status===\"done\"&&ee.vectorTile)return yield this._parseWorkerTile(ee,W)}))}abortTile(W){return k._(this,void 0,void 0,(function*(){this.tileState.abort(W.uid)}))}removeTile(W){return k._(this,void 0,void 0,(function*(){this.tileState.removeLoaded(W.uid)}))}}class ut{constructor(){this.loaded={}}loadTile(W){return k._(this,void 0,void 0,(function*(){let{uid:K,encoding:ee,rawImageData:ve,redFactor:Me,greenFactor:je,blueFactor:Oe,baseShift:$e}=W,Xe=ve.width+2,ot=ve.height+2,qe=k.b(ve)?new k.R({width:Xe,height:ot},yield k.cY(ve,-1,-1,Xe,ot)):ve,vt=new k.cZ(K,qe,ee,Me,je,Oe,$e);return this.loaded||(this.loaded={}),this.loaded[K]=vt,vt}))}removeTile(W){let K=this.loaded,ee=W.uid;K?.[ee]&&delete K[ee]}}class ei{constructor(W,K,ee,ve=Qi){this.actor=W,this.layerIndex=K,this.availableImages=ee,this.tileState=new et,this._createGeoJSONIndex=ve}loadVectorTile(W){if(!this._geoJSONIndex)throw new Error(\"Unable to parse the data into a cluster or geojson\");let{z:K,x:ee,y:ve}=W.tileID.canonical,Me=this._geoJSONIndex.getTile(K,ee,ve);return Me?He(new k.c_(Me.features,{version:2,extent:k.a6})):null}loadTile(W){return k._(this,void 0,void 0,(function*(){let{uid:K}=W,ee=new Ve(W);ee.abort=new AbortController;try{let ve=this.loadVectorTile(W);if(!ve)return null;let{vectorTile:Me,rawData:je}=ve;ee.vectorTile=Me,this.tileState.markLoaded(K,ee);let Oe={rawData:je};this.tileState.setParsing(K,Oe);try{return yield this._parseWorkerTile(ee,W,Oe)}finally{this.tileState.clearParsing(K)}}catch(ve){throw ee.status=\"done\",this.tileState.markLoaded(K,ee),ve}}))}_reloadLoadedTile(W){return k._(this,void 0,void 0,(function*(){let K=W.uid,ee=this.tileState.getLoaded(K);if(!ee)throw new Error(\"Should not be trying to reload a tile that was never loaded or has been removed\");if(ee.showCollisionBoxes=W.showCollisionBoxes,ee.status===\"parsing\"){let ve=this.tileState.consumeParsing(K);return yield this._parseWorkerTile(ee,W,ve)}if(ee.status===\"done\"&&ee.vectorTile)return yield this._parseWorkerTile(ee,W)}))}_parseWorkerTile(W,K,ee){return k._(this,void 0,void 0,(function*(){let ve=yield W.parse(W.vectorTile,this.layerIndex,this.availableImages,this.actor,K.subdivisionGranularity);if(ee){let{rawData:Me}=ee;ve=k.e({rawTileData:Me.slice(0),encoding:\"mvt\"},ve)}return ve}))}abortTile(W){return k._(this,void 0,void 0,(function*(){this.tileState.abort(W.uid)}))}removeTile(W){return k._(this,void 0,void 0,(function*(){this.tileState.removeLoaded(W.uid)}))}loadData(W){return k._(this,void 0,void 0,(function*(){var K;(K=this._pendingRequest)===null||K===void 0||K.abort();let ee=this._startRequestTiming(W);this._pendingRequest=new AbortController;try{yield this.loadAndProcessGeoJSON(W,this._pendingRequest),delete this._pendingRequest,this.tileState.clearLoaded();let ve={};return W.request&&(ve.data=W.data),this._finishRequestTiming(ee,W,ve),ve}catch(ve){if(delete this._pendingRequest,!k.$(ve))throw ve;return{abandoned:!0}}}))}_startRequestTiming(W){var K;if(!((K=W.request)===null||K===void 0)&&K.collectResourceTiming)return new pt(W.request.url)}_finishRequestTiming(W,K,ee){let ve=W?.finish();ve&&(ee.resourceTiming={[K.source]:JSON.parse(JSON.stringify(ve))})}reloadTile(W){return this.tileState.getLoaded(W.uid)?this._reloadLoadedTile(W):this.loadTile(W)}loadAndProcessGeoJSON(W,K){return k._(this,void 0,void 0,(function*(){var ee;if(W.request&&(W.data=(yield k.k(W.request,K)).data),W.data)return W.data=this._filterGeoJSON(W.data,W.filter),void(this._geoJSONIndex=this._createGeoJSONIndex(W.data,W));if(W.dataDiff)return(ee=this._geoJSONIndex)!==null&&ee!==void 0||(this._geoJSONIndex=this._createGeoJSONIndex({type:\"FeatureCollection\",features:[]},W)),void this._geoJSONIndex.updateData(W.dataDiff,this._getFilterPredicate(W.filter));if(W.updateCluster&&this._geoJSONIndex.updateClusterOptions(W.geojsonVtOptions.cluster,Ti(W)),this._geoJSONIndex==null)throw new Error(`Input data given to '${W.source}' is not a valid GeoJSON object.`)}))}_filterGeoJSON(W,K){if(W.type!==\"FeatureCollection\")return W;let ee=this._getFilterPredicate(K);return ee?{type:\"FeatureCollection\",features:W.features.filter((ve=>ee(ve)))}:W}_getFilterPredicate(W){if(typeof W!=\"boolean\"&&!W?.length)return;let K=k.c$(W,{type:\"boolean\",\"property-type\":\"data-driven\",overridable:!1,transition:!1});if(K.result===\"error\")throw new Error(K.value.map((ee=>`${ee.key}: ${ee.message}`)).join(\", \"));return ee=>K.value.evaluate({zoom:0},ee)}removeSource(W){return k._(this,void 0,void 0,(function*(){var K;(K=this._pendingRequest)===null||K===void 0||K.abort()}))}getClusterExpansionZoom(W){return this._geoJSONIndex.getClusterExpansionZoom(W.clusterId)}getClusterChildren(W){return this._geoJSONIndex.getClusterChildren(W.clusterId)}getClusterLeaves(W){return this._geoJSONIndex.getClusterLeaves(W.clusterId,W.limit,W.offset)}}function Qi(it,W){let K=k.e(W.geojsonVtOptions||{},{updateable:!0,clusterOptions:Ti(W)});return new k.d0(it,K)}function Ti({geojsonVtOptions:it,clusterProperties:W}){if(!W||!it.clusterOptions)return it.clusterOptions;let K={},ee={},ve={accumulated:null,zoom:0},Me={properties:null},je=Object.keys(W);for(let Oe of je){let[$e,Xe]=W[Oe],ot=k.c$(Xe),qe=k.c$(typeof $e==\"string\"?[$e,[\"accumulated\"],[\"get\",Oe]]:$e);K[Oe]=ot.value,ee[Oe]=qe.value}return it.clusterOptions.map=Oe=>{Me.properties=Oe;let $e={};for(let Xe of je)$e[Xe]=K[Xe].evaluate(ve,Me);return $e},it.clusterOptions.reduce=(Oe,$e)=>{Me.properties=$e;for(let Xe of je)ve.accumulated=Oe[Xe],Oe[Xe]=ee[Xe].evaluate(ve,Me)},it.clusterOptions}class Fi{constructor(W){this.self=W,this.actor=new k.N(W),this.layerIndexes={},this.availableImages={},this.workerSources={},this.demWorkerSources={},this.externalWorkerSourceTypes={},this.globalStates=new Map,this.self.registerWorkerSource=(K,ee)=>{if(this.externalWorkerSourceTypes[K])throw new Error(`Worker source with name \"${K}\" already registered.`);this.externalWorkerSourceTypes[K]=ee},this.self.addProtocol=k.cH,this.self.removeProtocol=k.cI,this.self.registerRTLTextPlugin=K=>{k.d1.setMethods(K)},this.self.makeRequest=k.m,this.actor.registerMessageHandler(\"LDT\",((K,ee)=>this._getDEMWorkerSource(K,ee.source).loadTile(ee))),this.actor.registerMessageHandler(\"RDT\",((K,ee)=>k._(this,void 0,void 0,(function*(){this._getDEMWorkerSource(K,ee.source).removeTile(ee)})))),this.actor.registerMessageHandler(\"GCEZ\",((K,ee)=>k._(this,void 0,void 0,(function*(){return this._getWorkerSource(K,ee.type,ee.source).getClusterExpansionZoom(ee)})))),this.actor.registerMessageHandler(\"GCC\",((K,ee)=>k._(this,void 0,void 0,(function*(){return this._getWorkerSource(K,ee.type,ee.source).getClusterChildren(ee)})))),this.actor.registerMessageHandler(\"GCL\",((K,ee)=>k._(this,void 0,void 0,(function*(){return this._getWorkerSource(K,ee.type,ee.source).getClusterLeaves(ee)})))),this.actor.registerMessageHandler(\"LD\",((K,ee)=>this._getWorkerSource(K,ee.type,ee.source).loadData(ee))),this.actor.registerMessageHandler(\"LT\",((K,ee)=>this._getWorkerSource(K,ee.type,ee.source).loadTile(ee))),this.actor.registerMessageHandler(\"RT\",((K,ee)=>this._getWorkerSource(K,ee.type,ee.source).reloadTile(ee))),this.actor.registerMessageHandler(\"AT\",((K,ee)=>this._getWorkerSource(K,ee.type,ee.source).abortTile(ee))),this.actor.registerMessageHandler(\"RMT\",((K,ee)=>this._getWorkerSource(K,ee.type,ee.source).removeTile(ee))),this.actor.registerMessageHandler(\"RS\",((K,ee)=>k._(this,void 0,void 0,(function*(){var ve,Me;if(!(!((Me=(ve=this.workerSources[K])===null||ve===void 0?void 0:ve[ee.type])===null||Me===void 0)&&Me[ee.source]))return;let je=this.workerSources[K][ee.type][ee.source];delete this.workerSources[K][ee.type][ee.source],je.removeSource!==void 0&&je.removeSource(ee)})))),this.actor.registerMessageHandler(\"RM\",(K=>k._(this,void 0,void 0,(function*(){delete this.layerIndexes[K],delete this.availableImages[K],delete this.workerSources[K],delete this.demWorkerSources[K],this.globalStates.delete(K)})))),this.actor.registerMessageHandler(\"SR\",((K,ee)=>k._(this,void 0,void 0,(function*(){this.referrer=ee})))),this.actor.registerMessageHandler(\"SRPS\",((K,ee)=>this._syncRTLPluginState(K,ee))),this.actor.registerMessageHandler(\"IS\",((K,ee)=>k._(this,void 0,void 0,(function*(){this.self.importScripts(ee)})))),this.actor.registerMessageHandler(\"SI\",((K,ee)=>this._setImages(K,ee))),this.actor.registerMessageHandler(\"UL\",((K,ee)=>k._(this,void 0,void 0,(function*(){this._getLayerIndex(K).update(ee.layers,ee.removedIds,this._getGlobalState(K))})))),this.actor.registerMessageHandler(\"UGS\",((K,ee)=>k._(this,void 0,void 0,(function*(){let ve=this._getGlobalState(K);for(let Me in ee)ve[Me]=ee[Me]})))),this.actor.registerMessageHandler(\"SL\",((K,ee)=>k._(this,void 0,void 0,(function*(){this._getLayerIndex(K).replace(ee,this._getGlobalState(K))}))))}_getGlobalState(W){let K=this.globalStates.get(W);return K||(K={},this.globalStates.set(W,K)),K}_setImages(W,K){return k._(this,void 0,void 0,(function*(){this.availableImages[W]=K;for(let ee in this.workerSources[W]){let ve=this.workerSources[W][ee];for(let Me in ve)ve[Me].availableImages=K}}))}_syncRTLPluginState(W,K){return k._(this,void 0,void 0,(function*(){return yield k.d1.syncState(K,this.self.importScripts)}))}_getAvailableImages(W){let K=this.availableImages[W];return K||(K=[]),K}_getLayerIndex(W){let K=this.layerIndexes[W];return K||(K=this.layerIndexes[W]=new h),K}_getWorkerSource(W,K,ee){var ve,Me;if((ve=this.workerSources)[W]||(ve[W]={}),(Me=this.workerSources[W])[K]||(Me[K]={}),!this.workerSources[W][K][ee]){let je={sendAsync:(Oe,$e)=>(Oe.targetMapId=W,this.actor.sendAsync(Oe,$e))};switch(K){case\"vector\":this.workerSources[W][K][ee]=new le(je,this._getLayerIndex(W),this._getAvailableImages(W));break;case\"geojson\":this.workerSources[W][K][ee]=new ei(je,this._getLayerIndex(W),this._getAvailableImages(W));break;default:this.workerSources[W][K][ee]=new this.externalWorkerSourceTypes[K](je,this._getLayerIndex(W),this._getAvailableImages(W))}}return this.workerSources[W][K][ee]}_getDEMWorkerSource(W,K){var ee,ve;return(ee=this.demWorkerSources)[W]||(ee[W]={}),(ve=this.demWorkerSources[W])[K]||(ve[K]=new ut),this.demWorkerSources[W][K]}}return k.i(self)&&(self.worker=new Fi(self)),Fi})),ye(\"index\",[\"exports\",\"./shared\"],(function(k,h){\"use strict\";var pe=\"5.24.0\";function Ve(){var d=new h.A(4);return h.A!=Float32Array&&(d[1]=0,d[2]=0),d[0]=1,d[3]=1,d}let xe,et,pt,Ge={frame(d,t,n,s){let c=s||window,f=c.requestAnimationFrame((x=>{y(),t(x)})),{unsubscribe:y}=h.s(d.signal,\"abort\",(()=>{y(),c.cancelAnimationFrame(f),n(new h.a(d.signal.reason))}),!1)},frameAsync(d,t){return new Promise(((n,s)=>{this.frame(d,n,s,t)}))},getImageData(d,t=0){return this.getImageCanvasContext(d).getImageData(-t,-t,d.width+2*t,d.height+2*t)},getImageCanvasContext(d){let t=window.document.createElement(\"canvas\"),n=t.getContext(\"2d\",{willReadFrequently:!0});if(!n)throw new Error(\"failed to create canvas 2d context\");return t.width=d.width,t.height=d.height,n.drawImage(d,0,0,d.width,d.height),n},resolveURL:d=>(xe||(xe=document.createElement(\"a\")),xe.href=d,xe.href),hardwareConcurrency:typeof navigator<\"u\"&&navigator.hardwareConcurrency||4,get prefersReducedMotion(){return pt!==void 0?pt:!!matchMedia&&(et!=null||(et=matchMedia(\"(prefers-reduced-motion: reduce)\")),et.matches)},set prefersReducedMotion(d){pt=d}},Ye=new class{constructor(){this._frozenAt=null}getCurrentTime(){return this._frozenAt!==null?this._frozenAt:performance.now()}setNow(d){this._frozenAt=d}restoreNow(){this._frozenAt=null}isFrozen(){return this._frozenAt!==null}};function Fe(){return Ye.getCurrentTime()}var He,st;class le{static create(t,n,s){let c=window.document.createElement(t);return n!==void 0&&(c.className=n),s&&s.appendChild(c),c}static createNS(t,n){return window.document.createElementNS(t,n)}static disableDrag(){le.docStyle&&le.selectProp&&(le.userSelect=le.docStyle[le.selectProp],le.docStyle[le.selectProp]=\"none\")}static enableDrag(){le.docStyle&&le.selectProp&&(le.docStyle[le.selectProp]=le.userSelect)}static suppressClickInternal(t){t.preventDefault(),t.stopPropagation(),window.removeEventListener(\"click\",le.suppressClickInternal,!0)}static suppressClick(){window.addEventListener(\"click\",le.suppressClickInternal,!0),window.setTimeout((()=>{window.removeEventListener(\"click\",le.suppressClickInternal,!0)}),0)}static getScale(t){let n=t.getBoundingClientRect();return{x:n.width/t.offsetWidth||1,y:n.height/t.offsetHeight||1,boundingClientRect:n}}static getPoint(t,n,s){let c=n.boundingClientRect;return new h.P((s.clientX-c.left)/n.x-t.clientLeft,(s.clientY-c.top)/n.y-t.clientTop)}static mousePos(t,n){let s=le.getScale(t);return le.getPoint(t,s,n)}static touchPos(t,n){let s=[],c=le.getScale(t);for(let f of n)s.push(le.getPoint(t,c,f));return s}static sanitize(t){let n=new DOMParser().parseFromString(t,\"text/html\").body||document.createElement(\"body\"),s=n.querySelectorAll(\"script\");for(let c of s)c.remove();return le.clean(n),n.innerHTML}static isPossiblyDangerous(t,n){let s=n.replace(/\\s+/g,\"\").toLowerCase();return!(![\"src\",\"href\",\"xlink:href\"].includes(t)||!s.includes(\"javascript:\")&&!s.includes(\"data:\"))||!!t.startsWith(\"on\")||void 0}static clean(t){let n=t.children;for(let s of n)le.removeAttributes(s),le.clean(s)}static removeAttributes(t){for(let{name:n,value:s}of t.attributes)le.isPossiblyDangerous(n,s)&&t.removeAttribute(n)}}le.docStyle=typeof window<\"u\"&&((He=window.document)===null||He===void 0?void 0:He.documentElement.style),le.selectProp=!le.docStyle||\"userSelect\"in le.docStyle?\"userSelect\":\"webkitUserSelect\",(function(d){let t,n,s,c;d.resetRequestQueue=()=>{t=[],n=0,s=0,c={}},d.addThrottleControl=w=>{let S=s++;return c[S]=w,S},d.removeThrottleControl=w=>{delete c[w],y()},d.getImage=(w,S,M=!0)=>new Promise(((E,I)=>{w.headers||(w.headers={}),w.headers.accept=\"image/webp,*/*\",h.e(w,{type:\"image\"}),t.push({abortController:S,requestParameters:w,supportImageRefresh:M,state:\"queued\",onError:D=>{I(D)},onSuccess:D=>{E(D)}}),y()}));let f=w=>h._(this,void 0,void 0,(function*(){w.state=\"running\";let{requestParameters:S,supportImageRefresh:M,onError:E,onSuccess:I,abortController:D}=w,B=M===!1&&!h.i(self)&&!h.g(S.url)&&(!S.headers||Object.keys(S.headers).reduce(((N,G)=>N&&G===\"accept\"),!0));n++;let V=B?x(S,D):h.m(S,D);try{let N=yield V;delete w.abortController,w.state=\"completed\",N.data instanceof HTMLImageElement||h.b(N.data)?I(N):N.data&&I({data:yield(q=N.data,typeof createImageBitmap==\"function\"?h.h(q):h.j(q)),cacheControl:N.cacheControl,expires:N.expires})}catch(N){delete w.abortController,E(h.d(N))}finally{n--,y()}var q})),y=()=>{let w=(()=>{for(let S of Object.keys(c))if(c[S]())return!0;return!1})()?h.c.MAX_PARALLEL_IMAGE_REQUESTS_PER_FRAME:h.c.MAX_PARALLEL_IMAGE_REQUESTS;for(let S=n;S0;S++){let M=t.shift();M.abortController.signal.aborted?S--:f(M)}},x=(w,S)=>new Promise(((M,E)=>{let I=new Image,D=w.url,B=w.credentials;B&&B===\"include\"?I.crossOrigin=\"use-credentials\":(B&&B===\"same-origin\"||!h.f(D))&&(I.crossOrigin=\"anonymous\"),S.signal.addEventListener(\"abort\",(()=>{I.src=\"\",E(new h.a(S.signal.reason))})),I.fetchPriority=\"high\",I.onload=()=>{I.onerror=I.onload=null,M({data:I})},I.onerror=()=>{I.onerror=I.onload=null,S.signal.aborted||E(new Error(\"Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.\"))},I.src=D}))})(st||(st={})),st.resetRequestQueue();class ut{constructor(t){this._transformRequestFn=t??null}transformRequest(t,n){return this._transformRequestFn&&this._transformRequestFn(t,n)||{url:t}}setTransformRequest(t){this._transformRequestFn=t}}function ei(d){let t=[];if(typeof d==\"string\")t.push({id:\"default\",url:d});else if(d&&d.length>0){let n=[];for(let{id:s,url:c}of d){let f=`${s}${c}`;n.includes(f)||(n.push(f),t.push({id:s,url:c}))}}return t}function Qi(d,t,n){try{let s=new URL(d);return s.pathname+=`${t}${n}`,s.toString()}catch{throw new Error(`Invalid sprite URL \"${d}\", must be absolute. Modify style specification directly or use TransformStyleFunction to correct the issue dynamically`)}}function Ti(d){let{userImage:t}=d;return!(!t?.render||!t.render()||(d.data.replace(new Uint8Array(t.data.buffer)),0))}class Fi extends h.E{constructor(){super(),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new h.R({width:1,height:1}),this.dirty=!0}destroy(){this.atlasTexture&&(this.atlasTexture.destroy(),this.atlasTexture=null);for(let t of Object.keys(this.images))this.removeImage(t);this.patterns={},this.atlasImage=new h.R({width:1,height:1}),this.dirty=!0}isLoaded(){return this.loaded}setLoaded(t){if(this.loaded!==t&&(this.loaded=t,t)){for(let{ids:n,promiseResolve:s}of this.requestors)s(this._getImagesForIds(n));this.requestors=[]}}getImage(t){let n=this.images[t];if(n&&!n.data&&n.spriteData){let s=n.spriteData;n.data=new h.R({width:s.width,height:s.height},s.context.getImageData(s.x,s.y,s.width,s.height).data),n.spriteData=null}return n}addImage(t,n){if(this.images[t])throw new Error(`Image id ${t} already exist, use updateImage instead`);this._validate(t,n)&&(this.images[t]=n)}_validate(t,n){let s=!0,c=n.data||n.spriteData;return this._validateStretch(n.stretchX,c?.width)||(this.fire(new h.l(new Error(`Image \"${t}\" has invalid \"stretchX\" value`))),s=!1),this._validateStretch(n.stretchY,c?.height)||(this.fire(new h.l(new Error(`Image \"${t}\" has invalid \"stretchY\" value`))),s=!1),this._validateContent(n.content,n)||(this.fire(new h.l(new Error(`Image \"${t}\" has invalid \"content\" value`))),s=!1),s}_validateStretch(t,n){if(!t)return!0;let s=0;for(let c of t){if(c[0]=t[1]))}updateImage(t,n,s=!0){let c=this.getImage(t);if(s&&(c.data.width!==n.data.width||c.data.height!==n.data.height))throw new Error(`size mismatch between old image (${c.data.width}x${c.data.height}) and new image (${n.data.width}x${n.data.height}).`);n.version=c.version+1,this.images[t]=n,this.updatedImages[t]=!0}removeImage(t){var n;let s=this.images[t];delete this.images[t],delete this.patterns[t],!((n=s.userImage)===null||n===void 0)&&n.onRemove&&s.userImage.onRemove()}listImages(){return Object.keys(this.images)}getImages(t){return new Promise(((n,s)=>{let c=!0;if(!this.isLoaded())for(let f of t)this.images[f]||(c=!1);this.isLoaded()||c?n(this._getImagesForIds(t)):this.requestors.push({ids:t,promiseResolve:n})}))}_getImagesForIds(t){var n;let s={};for(let c of t){let f=this.getImage(c);f||(this.fire(new h.n(\"styleimagemissing\",{id:c})),f=this.getImage(c)),f?s[c]={data:f.data.clone(),pixelRatio:f.pixelRatio,sdf:f.sdf,version:f.version,stretchX:f.stretchX,stretchY:f.stretchY,content:f.content,textFitWidth:f.textFitWidth,textFitHeight:f.textFitHeight,hasRenderCallback:!!(!((n=f.userImage)===null||n===void 0)&&n.render)}:h.w(`Image \"${c}\" could not be loaded. Please make sure you have added the image with map.addImage() or a \"sprite\" property in your style. You can provide missing images by listening for the \"styleimagemissing\" map event.`)}return s}getPixelSize(){let{width:t,height:n}=this.atlasImage;return{width:t,height:n}}getPattern(t){let n=this.patterns[t],s=this.getImage(t);if(!s)return null;if(n&&n.position.version===s.version)return n.position;if(n)n.position.version=s.version;else{let c={w:s.data.width+2,h:s.data.height+2,x:0,y:0},f=new h.I(c,s);this.patterns[t]={bin:c,position:f}}return this._updatePatternAtlas(),this.patterns[t].position}bind(t){let n=t.gl;this.atlasTexture?this.dirty&&(this.atlasTexture.update(this.atlasImage),this.dirty=!1):this.atlasTexture=new h.T(t,this.atlasImage,n.RGBA),this.atlasTexture.bind(n.LINEAR,n.CLAMP_TO_EDGE)}_updatePatternAtlas(){let t=[];for(let f in this.patterns)t.push(this.patterns[f].bin);let{w:n,h:s}=h.p(t),c=this.atlasImage;c.resize({width:n||1,height:s||1});for(let f in this.patterns){let{bin:y}=this.patterns[f],x=y.x+1,w=y.y+1,S=this.getImage(f).data,M=S.width,E=S.height;h.R.copy(S,c,{x:0,y:0},{x,y:w},{width:M,height:E}),h.R.copy(S,c,{x:0,y:E-1},{x,y:w-1},{width:M,height:1}),h.R.copy(S,c,{x:0,y:0},{x,y:w+E},{width:M,height:1}),h.R.copy(S,c,{x:M-1,y:0},{x:x-1,y:w},{width:1,height:E}),h.R.copy(S,c,{x:0,y:0},{x:x+M,y:w},{width:1,height:E})}this.dirty=!0}beginFrame(){this.callbackDispatchedThisFrame={}}dispatchRenderCallbacks(t){for(let n of t){if(this.callbackDispatchedThisFrame[n])continue;this.callbackDispatchedThisFrame[n]=!0;let s=this.getImage(n);s||h.w(`Image with ID: \"${n}\" was not found`),Ti(s)&&this.updateImage(n,s)}}cloneImages(){let t={};for(let n in this.images){let s=this.images[n];t[n]=Object.assign(Object.assign({},s),{data:s.data?s.data.clone():null})}return t}}let it=1e20,W=new Float64Array(256);for(let d=0;d<256;d++){let t=.5-Math.pow(d/255,.45454545454545453);W[d]=t*Math.abs(t)}function K(d,t,n,s,c,f,y,x,w){for(let S=t;S-1);w++,f[w]=x,y[w]=S,y[w+1]=it}for(let x=0,w=0;x/[-\\w]+/.test(c)?c:`'${CSS.escape(c)}'`)).join(\",\");return new Me.TinySDF({fontSize:48,buffer:6,radius:16,cutoff:.25,fontFamily:s,fontWeight:this._fontWeight(n[0]),fontStyle:this._fontStyle(n[0]),lang:this.lang})}_fontStyle(t){return/italic/i.test(t)?\"italic\":/oblique/i.test(t)?\"oblique\":\"normal\"}_fontWeight(t){let n={thin:100,hairline:100,\"extra light\":200,\"ultra light\":200,light:300,normal:400,regular:400,medium:500,semibold:600,demibold:600,bold:700,\"extra bold\":800,\"ultra bold\":800,black:900,heavy:900,\"extra black\":950,\"ultra black\":950},s;for(let[c,f]of Object.entries(n))new RegExp(`\\\\b${c}\\\\b`,\"i\").test(t)&&(s=`${f}`);return s}destroy(){for(let t in this.entries){let n=this.entries[t];n.tinySDF=null,n.ideographTinySDF=null,n.glyphs={},n.requests={},n.ranges={}}this.entries={}}}Me.loadGlyphRange=function(d,t,n,s){return h._(this,void 0,void 0,(function*(){let c=256*t,f=c+255,y=yield s.transformRequest(n.replace(\"{fontstack}\",d).replace(\"{range}\",`${c}-${f}`),\"Glyphs\"),x=yield h.o(y,new AbortController);if(!x?.data)throw new Error(`Could not load glyph range. range: ${t}, ${c}-${f}`);let w={};for(let S of h.q(x.data))w[S.id]=S;return w}))},Me.TinySDF=class{constructor({fontSize:d=24,buffer:t=3,radius:n=8,cutoff:s=.25,fontFamily:c=\"sans-serif\",fontWeight:f=\"normal\",fontStyle:y=\"normal\",lang:x=null}={}){this.buffer=t,this.radius=n,this.cutoff=s,this.lang=x;let w=this.size=d+4*t,S=this._createCanvas(w),M=this.ctx=S.getContext(\"2d\",{willReadFrequently:!0});M.font=`${y} ${f} ${d}px ${c}`,M.textBaseline=\"alphabetic\",M.textAlign=\"left\",M.fillStyle=\"black\",this.gridOuter=new Float64Array(w*w),this.gridInner=new Float64Array(w*w),this.f=new Float64Array(w),this.z=new Float64Array(w+1),this.v=new Uint16Array(w)}_createCanvas(d){if(typeof OffscreenCanvas<\"u\")return new OffscreenCanvas(d,d);let t=document.createElement(\"canvas\");return t.width=t.height=d,t}draw(d){let{width:t,actualBoundingBoxAscent:n,actualBoundingBoxDescent:s,actualBoundingBoxLeft:c,actualBoundingBoxRight:f}=this.ctx.measureText(d),y=Math.ceil(n),x=Math.floor(c),w=Math.max(0,Math.min(this.size-this.buffer,Math.ceil(f)-x)),S=Math.max(0,Math.min(this.size-this.buffer,y+Math.ceil(s))),M=w+2*this.buffer,E=S+2*this.buffer,I=Math.max(M*E,0),D=new Uint8ClampedArray(I),B={data:D,width:M,height:E,glyphWidth:w,glyphHeight:S,glyphTop:y,glyphLeft:x,glyphAdvance:t};if(w===0||S===0)return B;let{ctx:V,buffer:q,gridInner:N,gridOuter:G}=this;this.lang&&(V.lang=this.lang),V.clearRect(q,q,w,S),V.fillText(d,q-x,q+y);let X=V.getImageData(q,q,w,S);G.fill(it,0,I),N.fill(0,0,I);let $=3;for(let Z=0;Z1&&(w=t[++x]);let M=Math.abs(S-w.left),E=Math.abs(S-w.right),I=Math.min(M,E),D,B=f/s*(c+1);if(w.isDash){let V=c-Math.abs(B);D=Math.sqrt(I*I+V*V)}else D=c-Math.sqrt(I*I+B*B);this.data[y+S]=Math.max(0,Math.min(255,D+128))}}}addRegularDash(t){for(let x=t.length-1;x>=0;--x){let w=t[x],S=t[x+1];w.zeroLength?t.splice(x,1):S&&S.isDash===w.isDash&&(S.left=w.left,t.splice(x,1))}let n=t[0],s=t[t.length-1];n.isDash===s.isDash&&(n.left=s.left-this.width,s.right=n.right+this.width);let c=this.width*this.nextRow,f=0,y=t[f];for(let x=0;x1&&(y=t[++f]);let w=Math.abs(x-y.left),S=Math.abs(x-y.right),M=Math.min(w,S);this.data[c+x]=Math.max(0,Math.min(255,(y.isDash?M:-M)+128))}}addDash(t,n){let s=n?7:0,c=2*s+1;if(this.nextRow+c>this.height)return h.w(\"LineAtlas out of space\"),null;let f=0;for(let x of t)f+=x;if(f!==0){let x=this.width/f,w=this.getDashRanges(t,this.width,x);n?this.addRoundDash(w,x,s):this.addRegularDash(w)}let y={y:this.nextRow+s,height:2*s,width:f};return this.nextRow+=c,this.dirty=!0,y}bind(t){let n=t.gl;this.texture?(n.bindTexture(n.TEXTURE_2D,this.texture),this.dirty&&(this.dirty=!1,n.texSubImage2D(n.TEXTURE_2D,0,0,0,this.width,this.height,n.ALPHA,n.UNSIGNED_BYTE,this.data))):(this.texture=n.createTexture(),n.bindTexture(n.TEXTURE_2D,this.texture),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,n.REPEAT),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,n.REPEAT),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,n.LINEAR),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MAG_FILTER,n.LINEAR),n.texImage2D(n.TEXTURE_2D,0,n.ALPHA,this.width,this.height,0,n.ALPHA,n.UNSIGNED_BYTE,this.data))}}let vt=\"maplibre_preloaded_worker_pool\";class mt{constructor(){this.active={}}acquire(t){if(!this.workers)for(this.workers=[];this.workers.lengthh.m(t,n)))),cr}function $r(d,t){let n=h.O();return h.Q(n,n,[1,1,0]),h.S(n,n,[.5*d.width,.5*d.height,1]),d.calculatePosMatrix?h.U(n,n,d.calculatePosMatrix(t.toUnwrapped())):n}function Mi(d,t,n,s,c,f,y){var x;let w=(function(I,D,B){if(I)for(let V of I){let q=D[V];if(q?.source===B&&q.type===\"fill-extrusion\")return!0}else for(let V in D){let q=D[V];if(q.source===B&&q.type===\"fill-extrusion\")return!0}return!1})((x=c?.layers)!==null&&x!==void 0?x:null,t,d.id),S=f.maxPitchScaleFactor(),M=d.tilesIn(s,S,w);M.sort(fe);let E=[];for(let I of M)E.push({wrappedTileID:I.tileID.wrapped().key,queryResults:I.tile.queryRenderedFeatures(t,n,d.getState(),I.queryGeometry,I.cameraQueryGeometry,I.scale,c,f,S,$r(f,I.tileID),y?(D,B)=>y(I.tileID,D,B):void 0)});return(function(I,D){for(let B in I)for(let V of I[B])ke(V,D);return I})((function(I){let D={},B={};for(let{queryResults:V,wrappedTileID:q}of I){B[q]||(B[q]={});let N=B[q];for(let G in V){let X=V[G];N[G]||(N[G]={});let $=N[G];D[G]||(D[G]=[]);for(let U of X)$[U.featureIndex]||($[U.featureIndex]=!0,D[G].push(U))}}return D})(E),d)}function fe(d,t){let n=d.tileID,s=t.tileID;return n.overscaledZ-s.overscaledZ||n.canonical.y-s.canonical.y||n.wrap-s.wrap||n.canonical.x-s.canonical.x}function ke(d,t){let n=d.feature,s=t.getFeatureState(n.layer[\"source-layer\"],n.id);n.source=n.layer.source,n.layer[\"source-layer\"]&&(n.sourceLayer=n.layer[\"source-layer\"]),n.state=s}function Ne(d,t,n,s){return h._(this,void 0,void 0,(function*(){let c=d;if(d.url?c=(yield h.k(yield t.transformRequest(d.url,\"Source\"),n)).data:yield Ge.frameAsync(n,s),!c)return null;let f=h.V(h.e(c,d),[\"tiles\",\"minzoom\",\"maxzoom\",\"attribution\",\"bounds\",\"scheme\",\"tileSize\",\"encoding\"]);return\"vector_layers\"in c&&c.vector_layers&&(f.vectorLayerIds=c.vector_layers.map((y=>y.id))),f}))}class De{constructor(t,n){t&&(n?this.setSouthWest(t).setNorthEast(n):Array.isArray(t)&&(t.length===4?this.setSouthWest([t[0],t[1]]).setNorthEast([t[2],t[3]]):this.setSouthWest(t[0]).setNorthEast(t[1])))}setNorthEast(t){return this._ne=t instanceof h.W?new h.W(t.lng,t.lat):h.W.convert(t),this}setSouthWest(t){return this._sw=t instanceof h.W?new h.W(t.lng,t.lat):h.W.convert(t),this}extend(t){let n=this._sw,s=this._ne,c,f;if(t instanceof h.W)c=t,f=t;else{if(!(t instanceof De))return Array.isArray(t)?t.length===4||t.every(Array.isArray)?this.extend(De.convert(t)):this.extend(h.W.convert(t)):t&&(\"lng\"in t||\"lon\"in t)&&\"lat\"in t?this.extend(h.W.convert(t)):this;if(c=t._sw,f=t._ne,!c||!f)return this}return n||s?(n.lng=Math.min(c.lng,n.lng),n.lat=Math.min(c.lat,n.lat),s.lng=Math.max(f.lng,s.lng),s.lat=Math.max(f.lat,s.lat)):(this._sw=new h.W(c.lng,c.lat),this._ne=new h.W(f.lng,f.lat)),this}getCenter(){return new h.W((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)}getSouthWest(){return this._sw}getNorthEast(){return this._ne}getNorthWest(){return new h.W(this.getWest(),this.getNorth())}getSouthEast(){return new h.W(this.getEast(),this.getSouth())}getWest(){return this._sw.lng}getSouth(){return this._sw.lat}getEast(){return this._ne.lng}getNorth(){return this._ne.lat}toArray(){return[this._sw.toArray(),this._ne.toArray()]}toString(){return`LngLatBounds(${this._sw.toString()}, ${this._ne.toString()})`}isEmpty(){return!(this._sw&&this._ne)}contains(t){let{lng:n,lat:s}=h.W.convert(t),c=this._sw.lng<=n&&n<=this._ne.lng;return this._sw.lng>this._ne.lng&&(c=this._sw.lng>=n&&n>=this._ne.lng),this._sw.lat<=s&&s<=this._ne.lat&&c}intersects(t){if(!((t=De.convert(t)).getNorth()>=this.getSouth()&&t.getSouth()<=this.getNorth()))return!1;let n=Math.abs(this.getEast()-this.getWest()),s=Math.abs(t.getEast()-t.getWest());if(n>=360||s>=360)return!0;let c=h.X(this.getWest(),-180,180),f=h.X(this.getEast(),-180,180),y=h.X(t.getWest(),-180,180),x=h.X(t.getEast(),-180,180),w=c>f,S=y>x;return!(!w||!S)||(w?x>=c||y<=f:S?f>=y||c<=x:y<=f&&x>=c)}static convert(t){return t instanceof De?t:t&&new De(t)}static fromLngLat(t,n=0){let s=360*n/40075017,c=s/Math.cos(Math.PI/180*t.lat);return new De(new h.W(t.lng-c,t.lat-s),new h.W(t.lng+c,t.lat+s))}adjustAntiMeridian(){let t=new h.W(this._sw.lng,this._sw.lat),n=new h.W(this._ne.lng,this._ne.lat);return new De(t,t.lng>n.lng?new h.W(n.lng+360,n.lat):n)}}class Tt{constructor(t,n,s){this.bounds=De.convert(this.validateBounds(t)),this.minzoom=n||0,this.maxzoom=s||24}validateBounds(t){return Array.isArray(t)&&t.length===4?[Math.max(-180,t[0]),Math.max(-90,t[1]),Math.min(180,t[2]),Math.min(90,t[3])]:[-180,-90,180,90]}contains(t){let n=Math.pow(2,t.z),s=Math.floor(h.Z(this.bounds.getWest())*n),c=Math.floor(h.Y(this.bounds.getNorth())*n),f=Math.ceil(h.Z(this.bounds.getEast())*n),y=Math.ceil(h.Y(this.bounds.getSouth())*n);return t.x>=s&&t.x=c&&t.y{this._options.tiles=t})),this}setUrl(t){return this.setSourceProperty((()=>{this.url=t,this._options.url=t})),this}onRemove(){this._tileJSONRequest&&(this._tileJSONRequest.abort(),this._tileJSONRequest=null)}serialize(){return h.e({},this._options)}loadTile(t){return h._(this,void 0,void 0,(function*(){let n=t.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme),s={request:yield this.map._requestManager.transformRequest(n,\"Tile\"),uid:t.uid,tileID:t.tileID,zoom:t.tileID.overscaledZ,tileSize:this.tileSize*t.tileID.overscaleFactor(),type:this.type,source:this.id,pixelRatio:this.map.getPixelRatio(),showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId,subdivisionGranularity:this.map.style.projection.subdivisionGranularity,encoding:this.encoding,overzoomParameters:yield this._getOverzoomParameters(t),etag:t.etag};s.request.collectResourceTiming=this._collectResourceTiming;let c=\"RT\";if(t.actor&&t.state!==\"expired\"){if(t.state===\"loading\")return new Promise(((f,y)=>{t.reloadPromise={resolve:f,reject:y}}))}else t.actor=this.dispatcher.getActor(),c=\"LT\";t.abortController=new AbortController;try{let f=yield t.actor.sendAsync({type:c,data:s},t.abortController);if(delete t.abortController,t.aborted)return;this._afterTileLoadWorkerResponse(t,f);let y={};return f?.etagUnmodified&&(y.unmodified=!0),y}catch(f){if(delete t.abortController,t.aborted)return;if(f&&f.status!==404)throw f;this._afterTileLoadWorkerResponse(t,null)}}))}_getOverzoomParameters(t){return h._(this,void 0,void 0,(function*(){if(t.tileID.canonical.z<=this.maxzoom||this.map._zoomLevelsToOverscale===void 0)return;let n=t.tileID.scaledTo(this.maxzoom).canonical,s=n.url(this.tiles,this.map.getPixelRatio(),this.scheme);return{maxZoomTileID:n,overzoomRequest:yield this.map._requestManager.transformRequest(s,\"Tile\")}}))}_afterTileLoadWorkerResponse(t,n){if(n?.resourceTiming&&(t.resourceTiming=n.resourceTiming),n&&this.map._refreshExpiredTiles&&t.setExpiryData(n),t.etag=n?.etag,t.loadVectorData(n,this.map.painter),t.reloadPromise){let s=t.reloadPromise;t.reloadPromise=null,this.loadTile(t).then(s.resolve).catch(s.reject)}}abortTile(t){return h._(this,void 0,void 0,(function*(){t.abortController&&(t.abortController.abort(),delete t.abortController),t.actor&&(yield t.actor.sendAsync({type:\"AT\",data:{uid:t.uid,type:this.type,source:this.id}}))}))}unloadTile(t){return h._(this,void 0,void 0,(function*(){t.unloadVectorData(),t.actor&&(yield t.actor.sendAsync({type:\"RMT\",data:{uid:t.uid,type:this.type,source:this.id}}))}))}hasTransition(){return!1}}class ht extends h.E{constructor(t,n,s,c){super(),this.id=t,this.dispatcher=s,this.setEventedParent(c),this.type=\"raster\",this.minzoom=0,this.maxzoom=22,this.roundZoom=!0,this.scheme=\"xyz\",this.tileSize=512,this._loaded=!1,this._options=h.e({type:\"raster\"},n),h.e(this,h.V(n,[\"url\",\"scheme\",\"tileSize\"]))}load(){return h._(this,arguments,void 0,(function*(t=!1){this._loaded=!1,this.fire(new h.n(\"dataloading\",{dataType:\"source\"})),this._tileJSONRequest=new AbortController;try{let n=yield Ne(this._options,this.map._requestManager,this._tileJSONRequest,this.map._ownerWindow);this._tileJSONRequest=null,this._loaded=!0,n&&(h.e(this,n),n.bounds&&(this.tileBounds=new Tt(n.bounds,this.minzoom,this.maxzoom)),this.fire(new h.n(\"data\",{dataType:\"source\",sourceDataType:\"metadata\"})),this.fire(new h.n(\"data\",{dataType:\"source\",sourceDataType:\"content\",sourceDataChanged:t})))}catch(n){this._tileJSONRequest=null,this._loaded=!0,h.$(n)||this.fire(new h.l(h.d(n)))}}))}loaded(){return this._loaded}onAdd(t){this.map=t,this.load()}onRemove(){this._tileJSONRequest&&(this._tileJSONRequest.abort(),this._tileJSONRequest=null)}setSourceProperty(t){this._tileJSONRequest&&(this._tileJSONRequest.abort(),this._tileJSONRequest=null),t(),this.load(!0)}setTiles(t){return this.setSourceProperty((()=>{this._options.tiles=t})),this}setUrl(t){return this.setSourceProperty((()=>{this.url=t,this._options.url=t})),this}serialize(){return h.e({},this._options)}hasTile(t){return!this.tileBounds||this.tileBounds.contains(t.canonical)}loadTile(t){return h._(this,void 0,void 0,(function*(){let n=t.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme);t.abortController=new AbortController;try{let s=yield st.getImage(yield this.map._requestManager.transformRequest(n,\"Tile\"),t.abortController,this.map._refreshExpiredTiles);if(delete t.abortController,t.aborted)return void(t.state=\"unloaded\");if(s?.data){this.map._refreshExpiredTiles&&(s.cacheControl||s.expires)&&t.setExpiryData({cacheControl:s.cacheControl,expires:s.expires});let c=this.map.painter.context,f=c.gl,y=s.data;t.texture=this.map.painter.getTileTexture(y.width),t.texture?t.texture.update(y,{useMipmap:!0}):(t.texture=new h.T(c,y,f.RGBA,{useMipmap:!0}),t.texture.bind(f.LINEAR,f.CLAMP_TO_EDGE,f.LINEAR_MIPMAP_NEAREST)),t.state=\"loaded\"}}catch(s){if(delete t.abortController,t.aborted)t.state=\"unloaded\";else if(s)throw t.state=\"errored\",s}}))}abortTile(t){return h._(this,void 0,void 0,(function*(){t.abortController&&(t.abortController.abort(),delete t.abortController)}))}unloadTile(t){return h._(this,void 0,void 0,(function*(){t.texture&&this.map.painter.saveTileTexture(t.texture)}))}hasTransition(){return!1}}class zt extends ht{constructor(t,n,s,c){super(t,n,s,c),this.type=\"raster-dem\",this.maxzoom=22,this._options=h.e({type:\"raster-dem\"},n),this.encoding=n.encoding||\"mapbox\",this.redFactor=n.redFactor,this.greenFactor=n.greenFactor,this.blueFactor=n.blueFactor,this.baseShift=n.baseShift}loadTile(t){return h._(this,void 0,void 0,(function*(){let n=t.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme),s=yield this.map._requestManager.transformRequest(n,\"Tile\");t.neighboringTiles=this._getNeighboringTiles(t.tileID),t.abortController=new AbortController;try{let c=yield st.getImage(s,t.abortController,this.map._refreshExpiredTiles);if(delete t.abortController,t.aborted)return void(t.state=\"unloaded\");if(c?.data){let f=c.data;this.map._refreshExpiredTiles&&(c.cacheControl||c.expires)&&t.setExpiryData({cacheControl:c.cacheControl,expires:c.expires});let y=h.b(f)&&h.a0()?f:yield this.readImageNow(f),x={type:this.type,uid:t.uid,source:this.id,rawImageData:y,encoding:this.encoding,redFactor:this.redFactor,greenFactor:this.greenFactor,blueFactor:this.blueFactor,baseShift:this.baseShift};if(t.actor&&t.state!==\"expired\"&&t.state!==\"reloading\")return;t.actor&&t.state!==\"expired\"||(t.actor=this.dispatcher.getActor()),t.dem=yield t.actor.sendAsync({type:\"LDT\",data:x}),t.needsHillshadePrepare=!0,t.needsTerrainPrepare=!0,t.state=\"loaded\"}}catch(c){if(delete t.abortController,t.aborted)t.state=\"unloaded\";else if(c)throw t.state=\"errored\",c}}))}readImageNow(t){return h._(this,void 0,void 0,(function*(){if(typeof VideoFrame<\"u\"&&h.a1()){let n=t.width+2,s=t.height+2;try{return new h.R({width:n,height:s},yield h.a2(t,-1,-1,n,s))}catch{}}return Ge.getImageData(t,1)}))}_getNeighboringTiles(t){let n=t.canonical,s=Math.pow(2,n.z),c=(n.x-1+s)%s,f=n.x===0?t.wrap-1:t.wrap,y=(n.x+1+s)%s,x=n.x+1===s?t.wrap+1:t.wrap,w={};return w[new h.a3(t.overscaledZ,f,n.z,c,n.y).key]={backfilled:!1},w[new h.a3(t.overscaledZ,x,n.z,y,n.y).key]={backfilled:!1},n.y>0&&(w[new h.a3(t.overscaledZ,f,n.z,c,n.y-1).key]={backfilled:!1},w[new h.a3(t.overscaledZ,t.wrap,n.z,n.x,n.y-1).key]={backfilled:!1},w[new h.a3(t.overscaledZ,x,n.z,y,n.y-1).key]={backfilled:!1}),n.y+1f.key===s));c>-1&&d.addOrUpdateProperties.splice(c,1)}return(d.removeAllProperties||t.removeAllProperties)&&(n.removeAllProperties=!0),(d.removeProperties||t.removeProperties)&&(n.removeProperties=[...d.removeProperties||[],...t.removeProperties||[]]),(d.addOrUpdateProperties||t.addOrUpdateProperties)&&(n.addOrUpdateProperties=[...d.addOrUpdateProperties||[],...t.addOrUpdateProperties||[]]),(d.newGeometry||t.newGeometry)&&(n.newGeometry=t.newGeometry||d.newGeometry),n}function So(d){var t,n;if(!d)return{};let s={};return s.removeAll=d.removeAll,s.remove=new Set(d.remove||[]),s.add=new Map((t=d.add)===null||t===void 0?void 0:t.map((c=>[c.id,c]))),s.update=new Map((n=d.update)===null||n===void 0?void 0:n.map((c=>[c.id,c]))),s}function Mo(d){return d&&d.length!==0?typeof d[0]==\"number\"?[d]:d.flatMap((t=>Mo(t))):[]}function er(d){return d.type===\"GeometryCollection\"?d.geometries.flatMap((t=>er(t))):Mo(d.coordinates)}function Ir(d){let t=new De,n;switch(d.type){case\"FeatureCollection\":n=d.features.flatMap((s=>er(s.geometry)));break;case\"Feature\":n=er(d.geometry);break;default:n=er(d)}if(n.length===0)return t;for(let s of n){let[c,f]=s;t.extend([c,f])}return t}class Zr extends h.E{constructor(t,n,s,c){super(),this.id=t,this.type=\"geojson\",this.minzoom=0,this.maxzoom=18,this.tileSize=512,this.isTileClipped=!0,this.reparseOverscaled=!0,this._removed=!1,this._isUpdatingWorker=!1,this._pendingWorkerUpdate={data:n.data},this.actor=s.getActor(),this.setEventedParent(c),this._data=typeof n.data==\"string\"?{url:n.data}:{geojson:n.data},this._options=h.e({},n),this._collectResourceTiming=n.collectResourceTiming,n.maxzoom!==void 0&&(this.maxzoom=n.maxzoom),n.type&&(this.type=n.type),n.attribution&&(this.attribution=n.attribution),this.promoteId=n.promoteId,n.clusterMaxZoom!==void 0&&this.maxzoom<=n.clusterMaxZoom&&h.w(`The maxzoom value \"${this.maxzoom}\" is expected to be greater than the clusterMaxZoom value \"${n.clusterMaxZoom}\".`),this.workerOptions=h.e({source:this.id,geojsonVtOptions:{buffer:this._pixelsToTileUnits(n.buffer!==void 0?n.buffer:128),tolerance:this._pixelsToTileUnits(n.tolerance!==void 0?n.tolerance:.375),extent:h.a6,maxZoom:this.maxzoom,lineMetrics:n.lineMetrics||!1,generateId:n.generateId||!1,promoteId:typeof n.promoteId==\"string\"?n.promoteId:void 0,cluster:n.cluster||!1,clusterOptions:{maxZoom:this._getClusterMaxZoom(n.clusterMaxZoom),minPoints:Math.max(2,n.clusterMinPoints||2),extent:h.a6,radius:this._pixelsToTileUnits(n.clusterRadius||50),log:!1,generateId:n.generateId||!1}},clusterProperties:n.clusterProperties,filter:n.filter},n.workerOptions)}_hasPendingWorkerUpdate(){return this._pendingWorkerUpdate.data!==void 0||this._pendingWorkerUpdate.diff!==void 0||this._pendingWorkerUpdate.updateCluster}_pixelsToTileUnits(t){return t*(h.a6/this.tileSize)}_getClusterMaxZoom(t){let n=t?Math.round(t):this.maxzoom-1;return Number.isInteger(t)||t===void 0||h.w(`Integer expected for option 'clusterMaxZoom': provided value \"${t}\" rounded to \"${n}\"`),n}load(){return h._(this,void 0,void 0,(function*(){yield this._updateWorkerData()}))}onAdd(t){this.map=t,this.load()}setData(t,n){this._data=typeof t==\"string\"?{url:t}:{geojson:t},this._pendingWorkerUpdate={data:t};let s=this._updateWorkerData();return n?s:this}updateData(t,n){this._pendingWorkerUpdate.diff=(function(c,f){if(!c)return f||{};if(!f)return c||{};let y=So(c),x=So(f);(function(S,M){M.removeAll&&(S.add.clear(),S.update.clear(),S.remove.clear(),M.remove.clear());for(let E of M.remove)S.add.delete(E),S.update.delete(E);for(let[E,I]of M.update){let D=S.update.get(E);D&&(M.update.set(E,xr(D,I)),S.update.delete(E))}})(y,x);let w={};if((y.removeAll||x.removeAll)&&(w.removeAll=!0),w.remove=new Set([...y.remove,...x.remove]),w.add=new Map([...y.add,...x.add]),w.update=new Map([...y.update,...x.update]),w.remove.size&&w.add.size)for(let S of w.add.keys())w.remove.delete(S);return(function(S){let M={};return S.removeAll&&(M.removeAll=S.removeAll),S.remove&&(M.remove=Array.from(S.remove)),S.add&&(M.add=Array.from(S.add.values())),S.update&&(M.update=Array.from(S.update.values())),M})(w)})(this._pendingWorkerUpdate.diff,t);let s=this._updateWorkerData();return n?s:this}getData(){return h._(this,void 0,void 0,(function*(){return this._data.url&&(yield this.once(\"data\")),this._data.geojson?this._data.geojson:{type:\"FeatureCollection\",features:Array.from(this._data.updateable.values())}}))}getBounds(){return h._(this,void 0,void 0,(function*(){return Ir(yield this.getData())}))}setClusterOptions(t){return this.workerOptions.geojsonVtOptions.cluster=t.cluster,t.clusterRadius!==void 0&&(this.workerOptions.geojsonVtOptions.clusterOptions.radius=this._pixelsToTileUnits(t.clusterRadius)),t.clusterMaxZoom!==void 0&&(this.workerOptions.geojsonVtOptions.clusterOptions.maxZoom=this._getClusterMaxZoom(t.clusterMaxZoom)),this._pendingWorkerUpdate.updateCluster=!0,this._updateWorkerData(),this}getClusterExpansionZoom(t){return this.actor.sendAsync({type:\"GCEZ\",data:{type:this.type,clusterId:t,source:this.id}})}getClusterChildren(t){return this.actor.sendAsync({type:\"GCC\",data:{type:this.type,clusterId:t,source:this.id}})}getClusterLeaves(t,n,s){return this.actor.sendAsync({type:\"GCL\",data:{type:this.type,source:this.id,clusterId:t,limit:n,offset:s}})}_updateWorkerData(){return h._(this,void 0,void 0,(function*(){if(this._isUpdatingWorker)return;if(!this._hasPendingWorkerUpdate())return void h.w(`No pending worker updates for GeoJSONSource ${this.id}.`);let{data:t,diff:n,updateCluster:s}=this._pendingWorkerUpdate,c=this._getLoadGeoJSONParameters(t,n,s);t!==void 0?this._pendingWorkerUpdate.data=void 0:n?this._pendingWorkerUpdate.diff=void 0:s&&(this._pendingWorkerUpdate.updateCluster=void 0),yield this._dispatchWorkerUpdate(c)}))}_getLoadGeoJSONParameters(t,n,s){return h._(this,void 0,void 0,(function*(){let c=h.e({type:this.type},this.workerOptions);return typeof t==\"string\"?(c.request=yield this.map._requestManager.transformRequest(Ge.resolveURL(t),\"Source\"),c.request.collectResourceTiming=this._collectResourceTiming,c):t!==void 0?(c.data=t,c):n?(c.dataDiff=n,c):s?(c.updateCluster=!0,c):void 0}))}_dispatchWorkerUpdate(t){return h._(this,void 0,void 0,(function*(){this._isUpdatingWorker=!0,this.fire(new h.n(\"dataloading\",{dataType:\"source\"}));try{let n=yield t,s=yield this.actor.sendAsync({type:\"LD\",data:n});if(this._isUpdatingWorker=!1,this._removed||s.abandoned)return void this.fire(new h.n(\"dataabort\",{dataType:\"source\"}));s.data&&(this._data={geojson:s.data});let c=this._applyDiffToSource(n.dataDiff),f=this._getShouldReloadTileOptions(c),y={dataType:\"source\"};this._applyResourceTiming(y,s),this.fire(new h.n(\"data\",Object.assign(Object.assign({},y),{sourceDataType:\"metadata\"}))),this.fire(new h.n(\"data\",Object.assign(Object.assign({},y),{sourceDataType:\"content\",shouldReloadTileOptions:f})))}catch(n){if(this._isUpdatingWorker=!1,this._removed)return void this.fire(new h.n(\"dataabort\",{dataType:\"source\"}));this.fire(new h.l(h.d(n)))}finally{this._hasPendingWorkerUpdate()&&this._updateWorkerData()}}))}_applyResourceTiming(t,n){var s;if(!this._collectResourceTiming)return;let c=(s=n.resourceTiming)===null||s===void 0?void 0:s[this.id];if(!c)return;let f=c.slice(0);f?.length&&h.e(t,{resourceTiming:f})}_applyDiffToSource(t){if(!t)return;let n=typeof this.promoteId==\"string\"?this.promoteId:void 0;if(!this._data.url&&!this._data.updateable){let c=(function(f,y){let x=new Map;if(f==null||f.type==null)return x;if(f.type===\"Feature\"){let w=ci(f,y);return w==null?void 0:(x.set(w,f),x)}if(f.type===\"FeatureCollection\"){let w=new Set;for(let S of f.features){let M=ci(S,y);if(M==null||w.has(M))return;w.add(M),x.set(M,S)}return x}})(this._data.geojson,n);if(!c)throw new Error(`GeoJSONSource \"${this.id}\": GeoJSON data is not compatible with updateData`);this._data={updateable:c}}if(!this._data.updateable)return;let s=(function(c,f,y){var x,w;let S=[];if(f.removeAll)c.clear();else if(f.remove)for(let M of f.remove){let E=c.get(M);E&&(S.push(E.geometry),c.delete(M))}if(f.add)for(let M of f.add){let E=ci(M,y);if(E==null)continue;let I=c.get(E);I&&S.push(I.geometry),S.push(M.geometry),c.set(E,M)}if(f.update)for(let M of f.update){let E=c.get(M.id);if(!E)continue;let I=!!M.newGeometry,D=M.removeAllProperties||((x=M.removeProperties)===null||x===void 0?void 0:x.length)>0||((w=M.addOrUpdateProperties)===null||w===void 0?void 0:w.length)>0;if(!I&&!D)continue;S.push(E.geometry);let B=Object.assign({},E);if(c.set(M.id,B),I&&(S.push(M.newGeometry),B.geometry=M.newGeometry),D){if(B.properties=M.removeAllProperties?{}:Object.assign({},B.properties||{}),M.removeProperties)for(let V of M.removeProperties)delete B.properties[V];if(M.addOrUpdateProperties)for(let{key:V,value:q}of M.addOrUpdateProperties)B.properties[V]=q}}return S})(this._data.updateable,t,n);return t.removeAll||this._options.cluster?void 0:s}_getShouldReloadTileOptions(t){if(t)return{affectedBounds:t.filter(Boolean).map((n=>Ir(n)))}}shouldReloadTile(t,{affectedBounds:n}){if(t.state===\"loading\")return!0;if(t.state===\"unloaded\")return!1;let{buffer:s,extent:c}=this.workerOptions.geojsonVtOptions,f=(function({x:y,y:x,z:w},S=0){let M=h.a4((y-S)/Math.pow(2,w)),E=h.a5((x+1+S)/Math.pow(2,w)),I=h.a4((y+1+S)/Math.pow(2,w)),D=h.a5((x-S)/Math.pow(2,w));return new De([M,E],[I,D])})(t.tileID.canonical,s/c);for(let y of n)if(f.intersects(y))return!0;return!1}loaded(){return!this._isUpdatingWorker&&!this._hasPendingWorkerUpdate()}loadTile(t){return h._(this,void 0,void 0,(function*(){let n=t.actor?\"RT\":\"LT\";t.actor=this.actor;let s={type:this.type,uid:t.uid,tileID:t.tileID,zoom:t.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:this.map.getPixelRatio(),showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId,subdivisionGranularity:this.map.style.projection.subdivisionGranularity};t.abortController=new AbortController;let c=yield this.actor.sendAsync({type:n,data:s},t.abortController);delete t.abortController,t.unloadVectorData(),t.aborted||t.loadVectorData(c,this.map.painter,n===\"RT\")}))}abortTile(t){return h._(this,void 0,void 0,(function*(){t.abortController&&(t.abortController.abort(),delete t.abortController),t.aborted=!0}))}unloadTile(t){return h._(this,void 0,void 0,(function*(){t.unloadVectorData(),yield this.actor.sendAsync({type:\"RMT\",data:{uid:t.uid,type:this.type,source:this.id}})}))}onRemove(){this._removed=!0,this.actor.sendAsync({type:\"RS\",data:{type:this.type,source:this.id}})}serialize(){return h.e({},this._options,{type:this.type,data:this._data.updateable?{type:\"FeatureCollection\",features:Array.from(this._data.updateable.values())}:this._data.url||this._data.geojson})}hasTransition(){return!1}}class Pi extends h.E{constructor(t,n,s,c){super(),this.flippedWindingOrder=!1,this.id=t,this.dispatcher=s,this.coordinates=n.coordinates,this.type=\"image\",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(c),this.options=n}load(t){return h._(this,void 0,void 0,(function*(){this._loaded=!1,this.fire(new h.n(\"dataloading\",{dataType:\"source\"})),this.url=this.options.url,this._request=new AbortController;try{let n=yield st.getImage(yield this.map._requestManager.transformRequest(this.url,\"Image\"),this._request);this._request=null,this._loaded=!0,n?.data&&(this.image=n.data,t&&(this.coordinates=t),this._finishLoading())}catch(n){this._request=null,this._loaded=!0,h.$(n)||this.fire(new h.l(h.d(n)))}}))}loaded(){return this._loaded}updateImage(t){return t.url?(this._request&&(this._request.abort(),this._request=null),this.options.url=t.url,this.load(t.coordinates).finally((()=>this.texture=null)),this):this}_finishLoading(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new h.n(\"data\",{dataType:\"source\",sourceDataType:\"metadata\"})))}onAdd(t){this.map=t,this.load()}onRemove(){this._request&&(this._request.abort(),this._request=null)}setCoordinates(t){this.coordinates=t;let n=t.map(h.a7.fromLngLat);var s;return this.tileID=(function(c){let f=h.a8.fromPoints(c),y=f.width(),x=f.height(),w=Math.max(y,x),S=Math.max(0,Math.floor(-Math.log(w)/Math.LN2)),M=Math.pow(2,S);return new h.aa(S,Math.floor((f.minX+f.maxX)/2*M),Math.floor((f.minY+f.maxY)/2*M))})(n),this.terrainTileRanges=this._getOverlappingTileRanges(n),this.minzoom=this.maxzoom=this.tileID.z,this.tileCoords=n.map((c=>this.tileID.getTilePoint(c)._round())),this.flippedWindingOrder=((s=this.tileCoords)[1].x-s[0].x)*(s[2].y-s[0].y)-(s[1].y-s[0].y)*(s[2].x-s[0].x)<0,this.fire(new h.n(\"data\",{dataType:\"source\",sourceDataType:\"content\"})),this}prepare(){if(Object.keys(this.tiles).length===0||!this.image)return;let t=this.map.painter.context,n=t.gl;this.texture||(this.texture=new h.T(t,this.image,n.RGBA),this.texture.bind(n.LINEAR,n.CLAMP_TO_EDGE));let s=!1;for(let c in this.tiles){let f=this.tiles[c];f.state!==\"loaded\"&&(f.state=\"loaded\",f.texture=this.texture,s=!0)}s&&this.fire(new h.n(\"data\",{dataType:\"source\",sourceDataType:\"idle\",sourceId:this.id}))}loadTile(t){return h._(this,void 0,void 0,(function*(){var n;!((n=this.tileID)===null||n===void 0)&&n.equals(t.tileID.canonical)?(this.tiles[String(t.tileID.wrap)]=t,t.buckets={}):t.state=\"errored\"}))}serialize(){return{type:\"image\",url:this.options.url,coordinates:this.coordinates}}hasTransition(){return!1}_getOverlappingTileRanges(t){let{minX:n,minY:s,maxX:c,maxY:f}=h.a8.fromPoints(t),y={};for(let x=0;x<=h.a9;x++){let w=Math.pow(2,x),S=Math.floor(n*w),M=Math.floor(s*w),E=Math.floor(c*w),I=Math.floor(f*w),D=(S%w+w)%w,B=E%w,V=Math.floor(S/w),q=Math.floor(E/w);y[x]={minWrap:V,maxWrap:q,minTileXWrapped:D,maxTileXWrapped:B,minTileY:M,maxTileY:I}}return y}}class hr extends Pi{constructor(t,n,s,c){super(t,n,s,c),this._onPlayingHandler=()=>{var f;(f=this.map)===null||f===void 0||f.triggerRepaint()},this.roundZoom=!0,this.type=\"video\",this.options=n}load(){return h._(this,void 0,void 0,(function*(){this._loaded=!1;let t=this.options;this.urls=[];for(let n of t.urls)this.urls.push((yield this.map._requestManager.transformRequest(n,\"Source\")).url);try{let n=yield h.ab(this.urls);if(this._loaded=!0,!n)return;this.video=n,this.video.loop=!0,this.video.addEventListener(\"playing\",this._onPlayingHandler),this.map&&this.video.play(),this._finishLoading()}catch(n){this.fire(new h.l(h.d(n)))}}))}pause(){this.video&&this.video.pause()}play(){this.video&&this.video.play()}seek(t){if(this.video){let n=this.video.seekable;tn.end(0)?this.fire(new h.l(new h.ac(`sources.${this.id}`,null,`Playback for this video can be set only between the ${n.start(0)} and ${n.end(0)}-second mark.`))):this.video.currentTime=t}}getVideo(){return this.video}onAdd(t){this.map||(this.map=t,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))}onRemove(){super.onRemove(),this.video&&(this.video.removeEventListener(\"playing\",this._onPlayingHandler),this.video.pause())}prepare(){if(Object.keys(this.tiles).length===0||this.video.readyState<2)return;let t=this.map.painter.context,n=t.gl;this.texture?this.video.paused||(this.texture.bind(n.LINEAR,n.CLAMP_TO_EDGE),n.texSubImage2D(n.TEXTURE_2D,0,0,0,n.RGBA,n.UNSIGNED_BYTE,this.video)):(this.texture=new h.T(t,this.video,n.RGBA),this.texture.bind(n.LINEAR,n.CLAMP_TO_EDGE));let s=!1;for(let c in this.tiles){let f=this.tiles[c];f.state!==\"loaded\"&&(f.state=\"loaded\",f.texture=this.texture,s=!0)}s&&this.fire(new h.n(\"data\",{dataType:\"source\",sourceDataType:\"idle\",sourceId:this.id}))}serialize(){return{type:\"video\",urls:this.urls,coordinates:this.coordinates}}hasTransition(){return this.video&&!this.video.paused}}class js extends Pi{constructor(t,n,s,c){super(t,n,s,c),n.coordinates?Array.isArray(n.coordinates)&&n.coordinates.length===4&&!n.coordinates.some((f=>!Array.isArray(f)||f.length!==2||f.some((y=>typeof y!=\"number\"))))||this.fire(new h.l(new h.ac(`sources.${t}`,null,'\"coordinates\" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new h.l(new h.ac(`sources.${t}`,null,'missing required property \"coordinates\"'))),n.animate&&typeof n.animate!=\"boolean\"&&this.fire(new h.l(new h.ac(`sources.${t}`,null,'optional \"animate\" property must be a boolean value'))),n.canvas?typeof n.canvas==\"string\"||n.canvas instanceof HTMLCanvasElement||this.fire(new h.l(new h.ac(`sources.${t}`,null,'\"canvas\" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new h.l(new h.ac(`sources.${t}`,null,'missing required property \"canvas\"'))),this.options=n,this.animate=n.animate===void 0||n.animate}load(){return h._(this,void 0,void 0,(function*(){this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof HTMLCanvasElement?this.options.canvas:document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new h.l(new Error(\"Canvas dimensions cannot be less than or equal to zero.\"))):(this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading())}))}getCanvas(){return this.canvas}onAdd(t){this.map=t,this.load(),this.canvas&&this.animate&&this.play()}onRemove(){this.pause()}prepare(){let t=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,t=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,t=!0),this._hasInvalidDimensions()||Object.keys(this.tiles).length===0)return;let n=this.map.painter.context,s=n.gl;this.texture?(t||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):(this.texture=new h.T(n,this.canvas,s.RGBA,{premultiply:!0}),this.texture.bind(s.LINEAR,s.CLAMP_TO_EDGE));let c=!1;for(let f in this.tiles){let y=this.tiles[f];y.state!==\"loaded\"&&(y.state=\"loaded\",y.texture=this.texture,c=!0)}c&&this.fire(new h.n(\"data\",{dataType:\"source\",sourceDataType:\"idle\",sourceId:this.id}))}serialize(){return{type:\"canvas\",animate:this.animate,canvas:this.options.canvas,coordinates:this.coordinates}}hasTransition(){return this._playing}_hasInvalidDimensions(){for(let t of[this.canvas.width,this.canvas.height])if(isNaN(t)||t<=0)return!0;return!1}}let Ns={},ya=d=>{switch(d){case\"geojson\":return Zr;case\"image\":return Pi;case\"raster\":return ht;case\"raster-dem\":return zt;case\"vector\":return xt;case\"video\":return hr;case\"canvas\":return js}return Ns[d]},Po=\"RTLPluginLoaded\";class dc extends h.E{constructor(){super(...arguments),this.status=\"unavailable\",this.url=null,this.dispatcher=ti()}_syncState(t){return this.status=t,this.dispatcher.broadcast(\"SRPS\",{pluginStatus:t,pluginURL:this.url}).catch((n=>{throw this.status=\"error\",n}))}getRTLTextPluginStatus(){return this.status}clearRTLTextPlugin(){this.status=\"unavailable\",this.url=null}setRTLTextPlugin(t){return h._(this,arguments,void 0,(function*(n,s=!1){if(this.url)throw new Error(\"setRTLTextPlugin cannot be called multiple times.\");if(this.url=Ge.resolveURL(n),!this.url)throw new Error(`requested url ${n} is invalid`);if(this.status===\"unavailable\"){if(!s)return this._requestImport();this.status=\"deferred\",this._syncState(this.status)}else if(this.status===\"requested\")return this._requestImport()}))}_requestImport(){return h._(this,void 0,void 0,(function*(){yield this._syncState(\"loading\"),this.status=\"loaded\",this.fire(new h.n(Po))}))}lazyLoad(){this.status===\"unavailable\"?this.status=\"requested\":this.status===\"deferred\"&&this._requestImport()}}let va=null;function Wr(){return va||(va=new dc),va}var Ar,tr;(function(d){d[d.Base=0]=\"Base\",d[d.Parent=1]=\"Parent\"})(Ar||(Ar={})),(function(d){d[d.Departing=0]=\"Departing\",d[d.Incoming=1]=\"Incoming\"})(tr||(tr={}));class Nn{constructor(t,n){this.timeAdded=0,this.fadeEndTime=0,this.fadeOpacity=1,this.tileID=t,this.uid=h.ad(),this.uses=0,this.tileSize=n,this.buckets={},this.expirationTime=null,this.queryPadding=0,this.hasSymbolBuckets=!1,this.hasRTLText=!1,this.dependencies={},this.rtt=[],this.rttFingerprint={},this.expiredRequestCount=0,this.state=\"loading\"}isRenderable(t){return this.hasData()&&(!this.fadeEndTime||this.fadeOpacity>0)&&(t||!this.holdingForSymbolFade())}setCrossFadeLogic({fadingRole:t,fadingDirection:n,fadingParentID:s,fadeEndTime:c}){this.resetFadeLogic(),this.fadingRole=t,this.fadingDirection=n,this.fadingParentID=s,this.fadeEndTime=c}setSelfFadeLogic(t){this.resetFadeLogic(),this.selfFading=!0,this.fadeEndTime=t}resetFadeLogic(){this.fadingRole=null,this.fadingDirection=null,this.fadingParentID=null,this.selfFading=!1,this.timeAdded=Fe(),this.fadeEndTime=0,this.fadeOpacity=1}wasRequested(){return this.state===\"errored\"||this.state===\"loaded\"||this.state===\"reloading\"}clearTextures(t){this.demTexture&&t.saveTileTexture(this.demTexture),this.demTexture=null}loadVectorData(t,n,s){if(t?.etagUnmodified!==!0)if(this.hasData()&&this.unloadVectorData(),this.state=\"loaded\",t){t.featureIndex&&(this.latestFeatureIndex=t.featureIndex,t.rawTileData?(this.latestRawTileData=t.rawTileData,this.latestEncoding=t.encoding,this.latestFeatureIndex.rawTileData=t.rawTileData,this.latestFeatureIndex.encoding=t.encoding):this.latestRawTileData&&(this.latestFeatureIndex.rawTileData=this.latestRawTileData,this.latestFeatureIndex.encoding=this.latestEncoding)),this.collisionBoxArray=t.collisionBoxArray,this.buckets=(function(c,f){let y={};if(!f)return y;for(let x of c){let w=x.layerIds.map((S=>f.getLayer(S))).filter(Boolean);if(w.length!==0){x.layers=w,x.stateDependentLayerIds&&(x.stateDependentLayers=x.stateDependentLayerIds.map((S=>w.filter((M=>M.id===S))[0])));for(let S of w)y[S.id]=x}}return y})(t.buckets,n?.style),this.hasSymbolBuckets=!1;for(let c in this.buckets){let f=this.buckets[c];if(f instanceof h.af){if(this.hasSymbolBuckets=!0,!s)break;f.justReloaded=!0}}if(this.hasRTLText=!1,this.hasSymbolBuckets)for(let c in this.buckets){let f=this.buckets[c];if(f instanceof h.af&&f.hasRTLText){this.hasRTLText=!0,Wr().lazyLoad();break}}this.queryPadding=0;for(let c in this.buckets){let f=this.buckets[c];this.queryPadding=Math.max(this.queryPadding,n.style.getLayer(c).queryRadius(f))}t.imageAtlas&&(this.imageAtlas=t.imageAtlas),t.glyphAtlasImage&&(this.glyphAtlasImage=t.glyphAtlasImage),this.dashPositions=t.dashPositions}else this.collisionBoxArray=new h.ae;else this.state=\"loaded\"}unloadVectorData(){for(let t in this.buckets)this.buckets[t].destroy();this.buckets={},this.imageAtlasTexture&&this.imageAtlasTexture.destroy(),this.glyphAtlasTexture&&this.glyphAtlasTexture.destroy(),this.imageAtlas=null,this.dashPositions=null,this.latestFeatureIndex=null,this.state=\"unloaded\"}getBucket(t){return this.buckets[t.id]}upload(t){for(let s in this.buckets){let c=this.buckets[s];c.uploadPending()&&c.upload(t)}let n=t.gl;this.imageAtlas&&!this.imageAtlas.uploaded&&(this.imageAtlasTexture=new h.T(t,this.imageAtlas.image,n.RGBA),this.imageAtlas.uploaded=!0),this.glyphAtlasImage&&(this.glyphAtlasTexture=new h.T(t,this.glyphAtlasImage,n.ALPHA),this.glyphAtlasImage=null)}prepare(t){this.imageAtlas&&this.imageAtlas.patchUpdatedImages(t,this.imageAtlasTexture)}queryRenderedFeatures(t,n,s,c,f,y,x,w,S,M,E){var I;return!((I=this.latestFeatureIndex)===null||I===void 0)&&I.rawTileData?this.latestFeatureIndex.query({queryGeometry:c,cameraQueryGeometry:f,scale:y,tileSize:this.tileSize,pixelPosMatrix:M,transform:w,params:x,queryPadding:this.queryPadding*S,getElevation:E},t,n,s):{}}querySourceFeatures(t,n){let s=this.latestFeatureIndex;if(!s?.rawTileData)return;let c=s.loadVTLayers(),f=n?.sourceLayer?n.sourceLayer:\"\",y=c[h.ag]||c[f];if(!y)return;let x=h.ah(n?.filter,n?.globalState),{z:w,x:S,y:M}=this.tileID.canonical,E={z:w,x:S,y:M};for(let I=0;Is)c=!1;else if(n)if(this.expirationTime({zoom:0,x:0,y:0,wrap:U,fullyVisible:!1}),X=[],$=[];if(d.renderWorldCopies&&y.allowWorldCopies())for(let U=1;U<=3;U++)X.push(G(-U)),X.push(G(U));for(X.push(G(0));X.length>0;){let U=X.pop(),H=U.x,Z=U.y,te=U.fullyVisible,se={x:H,y:Z,z:U.zoom},ce=y.getTileBoundingVolume(se,U.wrap,d.elevation,t);if(!te){let Ce=de(n,ce,s);if(Ce===0)continue;te=Ce===2}let _e=y.distanceToTile2d(c.x,c.y,se,ce),ge=w;x&&(ge=(t.calculateTileZoom||yt)(d.zoom+h.ar(d.tileSize/t.tileSize),_e,q,N,d.fov)),ge=(t.roundZoom?Math.round:Math.floor)(ge),ge=Math.max(0,ge);let Re=Math.min(ge,M);if(U.wrap=y.getWrap(f,se,U.wrap),U.zoom>=Re){if(U.zoom>1),wrap:U.wrap,fullyVisible:te})}return $.sort(((U,H)=>U.distanceSq-H.distanceSq)).map((U=>U.tileID))}let pc=h.a8.fromPoints([new h.P(0,0),new h.P(h.a6,h.a6)]);function fc(d){return d===\"raster\"||d===\"image\"||d===\"video\"}function Zu(d,t,n,s,c,f,y){if(!t.hasData())return!1;let{tileID:x,fadingRole:w,fadingDirection:S,fadingParentID:M}=t;if(w===Ar.Base&&S===tr.Incoming&&M)return n[M.key]=M,!0;let E=Math.max(x.overscaledZ-c,f);for(let I=x.overscaledZ-1;I>=E;I--){let D=x.scaledTo(I),B=d.getLoadedTile(D);if(B)return t.setCrossFadeLogic({fadingRole:Ar.Base,fadingDirection:tr.Incoming,fadingParentID:B.tileID,fadeEndTime:s+y}),B.setCrossFadeLogic({fadingRole:Ar.Parent,fadingDirection:tr.Departing,fadeEndTime:s+y}),n[D.key]=D,!0}return!1}function ba(d,t,n,s,c,f){if(!t.hasData())return!1;let y=t.tileID.children(c),x=$s(d,t,y,n,s,c,f);if(x)return!0;for(let w of y)$s(d,t,w.children(c),n,s,c,f)&&(x=!0);return x}function $s(d,t,n,s,c,f,y){if(n[0].overscaledZ>=f)return!1;let x=!1;for(let w of n){let S=d.getLoadedTile(w);if(!S)continue;let{fadingRole:M,fadingDirection:E,fadingParentID:I}=S;M===Ar.Base&&E===tr.Departing&&I||(S.setCrossFadeLogic({fadingRole:Ar.Base,fadingDirection:tr.Departing,fadingParentID:t.tileID,fadeEndTime:c+y}),t.setCrossFadeLogic({fadingRole:Ar.Parent,fadingDirection:tr.Incoming,fadeEndTime:c+y})),s[w.key]=w,x=!0}return x}function mc(d,t,n,s){let c=d.tileID;return!!d.selfFading||!d.hasData()&&!!t.has(c)&&(d.setSelfFadeLogic(n+s),!0)}function Se(d,t){var n;d.needsHillshadePrepare=!0,d.needsTerrainPrepare=!0;let s=t.tileID.canonical.x-d.tileID.canonical.x,c=t.tileID.canonical.y-d.tileID.canonical.y,f=Math.pow(2,d.tileID.canonical.z),y=t.tileID.key;s===0&&c===0||Math.abs(c)>1||(Math.abs(s)>1&&(Math.abs(s+f)===1?s+=f:Math.abs(s-f)===1&&(s-=f)),t.dem&&d.dem&&(d.dem.backfillBorder(t.dem,s,c),!((n=d.neighboringTiles)===null||n===void 0)&&n[y]&&(d.neighboringTiles[y].backfilled=!0)))}class fn{constructor(){this._tiles={}}handleWrapJump(t){let n={};for(let s in this._tiles){let c=this._tiles[s];c.tileID=c.tileID.unwrapTo(c.tileID.wrap+t),n[c.tileID.key]=c}this._tiles=n}setFeatureState(t,n){for(let s in this._tiles)this._tiles[s].setFeatureState(t,n)}getAllTiles(){return Object.values(this._tiles)}getAllIds(t=!1){return t?Object.values(this._tiles).map((n=>n.tileID)).sort(h.au).map((n=>n.key)):Object.keys(this._tiles)}getTileById(t){return this._tiles[t]}setTile(t,n){this._tiles[t]=n}deleteTileById(t){delete this._tiles[t]}getLoadedTile(t){let n=this.getTileById(t.key);return n?.hasData()?n:null}isIdRenderable(t,n=!1){var s;return(s=this.getTileById(t))===null||s===void 0?void 0:s.isRenderable(n)}getRenderableIds(t=0,n){let s=[];for(let c of this.getAllIds())this.isIdRenderable(c,n)&&s.push(this.getTileById(c));return n?s.sort(((c,f)=>{let y=c.tileID,x=f.tileID,w=new h.P(y.canonical.x,y.canonical.y)._rotate(-t),S=new h.P(x.canonical.x,x.canonical.y)._rotate(-t);return y.overscaledZ-x.overscaledZ||S.y-w.y||S.x-w.x})).map((c=>c.tileID.key)):s.map((c=>c.tileID)).sort(h.au).map((c=>c.key))}}class ui extends h.E{constructor(t,n,s){super(),this.id=t,this.dispatcher=s,this.on(\"data\",(c=>{this._dataHandler(c)})),this.on(\"dataloading\",(()=>{this._sourceErrored=!1})),this.on(\"error\",(()=>{this._sourceErrored=this._source.loaded()})),this._source=((c,f,y,x)=>{let w=new(ya(f.type))(c,f,y,x);if(w.id!==c)throw new Error(`Expected Source id to be ${c} instead of ${w.id}`);return w})(t,n,s,this),this._inViewTiles=new fn,this._outOfViewCache=new h.av(0,(c=>this._unloadTile(c))),this._timers={},this._maxTileCacheSize=null,this._maxTileCacheZoomLevels=null,this._rasterFadeDuration=0,this._maxFadingAncestorLevels=5,this._state=new Us,this._didEmitContent=!1,this._updated=!1}onAdd(t){var n;this.map=t,this._maxTileCacheSize=t?t._maxTileCacheSize:null,this._maxTileCacheZoomLevels=t?t._maxTileCacheZoomLevels:null,!((n=this._source)===null||n===void 0)&&n.onAdd&&this._source.onAdd(t)}onRemove(t){var n;for(let s of this._inViewTiles.getAllTiles())s.unloadVectorData();this.clearTiles(),!((n=this._source)===null||n===void 0)&&n.onRemove&&this._source.onRemove(t),this._inViewTiles=new fn}loaded(){if(this._sourceErrored)return!0;if(!this._sourceLoaded||!this._source.loaded())return!1;if(!(this.used===void 0&&this.usedForTerrain===void 0||this.used||this.usedForTerrain))return!0;if(!this._updated)return!1;for(let t of this._inViewTiles.getAllTiles())if(t.state!==\"loaded\"&&t.state!==\"errored\")return!1;return!0}getSource(){return this._source}getState(){return this._state}pause(){this._paused=!0}resume(){if(!this._paused)return;let t=this._shouldReloadOnResume;this._paused=!1,this._shouldReloadOnResume=!1,t&&this.reload(),this.transform&&this.update(this.transform,this.terrain)}_loadTile(t,n,s){return h._(this,void 0,void 0,(function*(){try{let c=yield this._source.loadTile(t);this._tileLoaded(t,n,s,c)}catch(c){t.state=\"errored\",c.status!==404?this._source.fire(new h.l(h.d(c),{tile:t})):this.update(this.transform,this.terrain)}}))}_unloadTile(t){this._source.unloadTile&&this._source.unloadTile(t)}_abortTile(t){this._source.abortTile&&this._source.abortTile(t),this._source.fire(new h.n(\"dataabort\",{tile:t,coord:t.tileID,dataType:\"source\"}))}serialize(){return this._source.serialize()}prepare(t){this._source.prepare&&this._source.prepare(),this._state.coalesceChanges(this._inViewTiles,this.map?this.map.painter:null);for(let n of this._inViewTiles.getAllTiles())n.upload(t),n.prepare(this.map.style.imageManager)}getIds(){return this._inViewTiles.getAllIds(!0)}getRenderableIds(t){var n;return this._inViewTiles.getRenderableIds((n=this.transform)===null||n===void 0?void 0:n.bearingInRadians,t)}hasRenderableParent(t){let n=t.overscaledZ-1;if(n>=this._source.minzoom){let s=this.getLoadedTile(t.scaledTo(n));if(s)return this._inViewTiles.isIdRenderable(s.tileID.key)}return!1}reload(t,n=void 0){if(this._paused)this._shouldReloadOnResume=!0;else{this._outOfViewCache.reset();for(let s of this._inViewTiles.getAllIds()){let c=this._inViewTiles.getTileById(s);n&&!this._source.shouldReloadTile(c,n)||(t?this._reloadTile(s,\"expired\"):c.state!==\"errored\"&&this._reloadTile(s,\"reloading\"))}}}_reloadTile(t,n){return h._(this,void 0,void 0,(function*(){let s=this._inViewTiles.getTileById(t);s&&(s.state!==\"loading\"&&(s.state=n),yield this._loadTile(s,t,n))}))}_tileLoaded(t,n,s,c){t.timeAdded=Fe(),t.selfFading&&(t.fadeEndTime=t.timeAdded+this._rasterFadeDuration),s===\"expired\"&&(t.refreshedUponExpiration=!0),this._setTileReloadTimer(n,t),c?.unmodified||(this.getSource().type===\"raster-dem\"&&t.dem&&(function(f,y){var x,w,S;let M=y.getRenderableIds();for(let E of M){if(!(!((x=f.neighboringTiles)===null||x===void 0)&&x[E]))continue;let I=y.getTileById(E);f.neighboringTiles[E].backfilled||Se(f,I),!((S=(w=I.neighboringTiles)===null||w===void 0?void 0:w[f.tileID.key])===null||S===void 0)&&S.backfilled||Se(I,f)}})(t,this._inViewTiles),this._state.initializeTileState(t,this.map?this.map.painter:null),t.aborted||this._source.fire(new h.n(\"data\",{dataType:\"source\",tile:t,coord:t.tileID})))}getTile(t){return this.getTileByID(t.key)}getTileByID(t){return this._inViewTiles.getTileById(t)}_retainLoadedChildren(t,n){let s=this._getLoadedDescendents(n),c=new Set;for(let f of n){let y=s[f.key];if(!y?.length){c.add(f);continue}let x=f.overscaledZ+ui.maxOverzooming,w=y.filter((E=>E.tileID.overscaledZ<=x));if(!w.length){c.add(f);continue}let S=Math.min(...w.map((E=>E.tileID.overscaledZ))),M=w.filter((E=>E.tileID.overscaledZ===S)).map((E=>E.tileID));for(let E of M)t[E.key]=E;this._areDescendentsComplete(M,S,f.overscaledZ)||c.add(f)}return c}_getLoadedDescendents(t){var n;let s={};for(let c of this._inViewTiles.getAllTiles().filter((f=>f.hasData())))for(let f of t)c.tileID.isChildOf(f)&&(s[n=f.key]||(s[n]=[]),s[f.key].push(c));return s}_areDescendentsComplete(t,n,s){return t.length===1&&t[0].isOverscaled()?t[0].overscaledZ===n:Math.pow(4,n-s)===t.length}getLoadedTile(t){return this._inViewTiles.getLoadedTile(t)}updateCacheSize(t){let n=Math.ceil(t.width/this._source.tileSize)+1,s=Math.ceil(t.height/this._source.tileSize)+1,c=Math.floor(n*s*(this._maxTileCacheZoomLevels===null?h.c.MAX_TILE_CACHE_ZOOM_LEVELS:this._maxTileCacheZoomLevels)),f=typeof this._maxTileCacheSize==\"number\"?Math.min(this._maxTileCacheSize,c):c;this._outOfViewCache.setMaxSize(f)}handleWrapJump(t){let n=Math.round((t-(this._prevLng===void 0?t:this._prevLng))/360);this._prevLng=t,n&&(this._inViewTiles.handleWrapJump(n),this._resetTileReloadTimers())}update(t,n){if(!this._sourceLoaded||this._paused)return;let s;this.transform=t,this.terrain=n,this.updateCacheSize(t),this.handleWrapJump(this.transform.center.lng),this.used||this.usedForTerrain?this._source.tileID?s=t.getVisibleUnwrappedCoordinates(this._source.tileID).map((w=>new h.a3(w.canonical.z,w.wrap,w.canonical.z,w.canonical.x,w.canonical.y))):(s=pn(t,{tileSize:this.usedForTerrain?this.tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.type===\"vector\"&&this.map._zoomLevelsToOverscale!==void 0?t.maxZoom-this.map._zoomLevelsToOverscale:this._source.maxzoom,roundZoom:!this.usedForTerrain&&this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled,terrain:n,calculateTileZoom:this._source.calculateTileZoom}),this._source.hasTile&&(s=s.filter((w=>this._source.hasTile(w))))):s=[],this.usedForTerrain&&(s=this._addTerrainIdealTiles(s));let c=s.length===0&&!this._updated&&this._didEmitContent;this._updated=!0,c&&this.fire(new h.n(\"data\",{sourceDataType:\"idle\",dataType:\"source\",sourceId:this.id}));let f=Oi(t,this._source),y=this._updateRetainedTiles(s,f),x=fc(this._source.type);x&&this._rasterFadeDuration>0&&!n&&(function(w,S,M,E,I,D,B){let V=Fe(),q=h.at(S);for(let N of S){let G=w.getTileById(N.key);G.fadingDirection!==tr.Departing&&G.fadeOpacity!==0||G.resetFadeLogic(),Zu(w,G,M,V,E,I,B)||ba(w,G,M,V,D,B)||mc(G,q,V,B)||G.resetFadeLogic()}})(this._inViewTiles,s,y,this._maxFadingAncestorLevels,this._source.minzoom,this._source.maxzoom,this._rasterFadeDuration),x?this._cleanUpRasterTiles(y):this._cleanUpVectorTiles(y)}_cleanUpRasterTiles(t){for(let n of this._inViewTiles.getAllIds())t[n]||this._removeTile(n)}_cleanUpVectorTiles(t){for(let n of this._inViewTiles.getAllIds()){let s=this._inViewTiles.getTileById(n);t[n]?s.clearSymbolFadeHold():s.hasSymbolBuckets?s.holdingForSymbolFade()?s.symbolFadeFinished()&&this._removeTile(n):s.setSymbolHoldDuration(this.map._fadeDuration):this._removeTile(n)}}_addTerrainIdealTiles(t){let n=[];for(let s of t)if(s.canonical.z>this._source.minzoom){let c=s.scaledTo(s.canonical.z-1);n.push(c);let f=s.scaledTo(Math.max(this._source.minzoom,Math.min(s.canonical.z,5)));n.push(f)}return t.concat(n)}releaseSymbolFadeTiles(){for(let t of this._inViewTiles.getAllIds())this._inViewTiles.getTileById(t).holdingForSymbolFade()&&this._removeTile(t)}_updateRetainedTiles(t,n){var s;let c=new Set;for(let S of t)this._addTile(S).hasData()||c.add(S);let f=t.reduce(((S,M)=>(S[M.key]=M,S)),{}),y=this._retainLoadedChildren(f,c),x={},w=Math.max(n-ui.maxUnderzooming,this._source.minzoom);for(let S of y){let M=this._inViewTiles.getTileById(S.key),E=M?.wasRequested();for(let I=S.overscaledZ-1;I>=w;--I){let D=S.scaledTo(I);if(x[D.key])break;if(x[D.key]=!0,M=this.getTile(D),!M&&E&&(M=this._addTile(D)),M){let B=M.hasData();if((B||!(!((s=this.map)===null||s===void 0)&&s.cancelPendingTileRequestsWhileZooming)||E)&&(f[D.key]=D),E=M.wasRequested(),B)break}}}return f}_addTile(t){let n=this._inViewTiles.getTileById(t.key);if(n)return n;n=this._outOfViewCache.getAndRemove(t),n&&(n.resetFadeLogic(),this._setTileReloadTimer(t.key,n),n.tileID=t,this._state.initializeTileState(n,this.map?this.map.painter:null));let s=n;return n||(n=new Nn(t,this._source.tileSize*t.overscaleFactor()),this._loadTile(n,t.key,n.state)),n.uses++,this._inViewTiles.setTile(t.key,n),s||this._source.fire(new h.n(\"dataloading\",{tile:n,coord:n.tileID,dataType:\"source\"})),n}_setTileReloadTimer(t,n){this._clearTileReloadTimer(t);let s=n.getExpiryTimeout();s&&(this._timers[t]=setTimeout((()=>{this._reloadTile(t,\"expired\"),delete this._timers[t]}),s))}_clearTileReloadTimer(t){let n=this._timers[t];n&&(clearTimeout(n),delete this._timers[t])}_resetTileReloadTimers(){for(let t in this._timers)clearTimeout(this._timers[t]),delete this._timers[t];for(let t of this._inViewTiles.getAllIds()){let n=this._inViewTiles.getTileById(t);this._setTileReloadTimer(t,n)}}refreshTiles(t){for(let n of this._inViewTiles.getAllIds()){let s=this._inViewTiles.getTileById(n);(this._inViewTiles.isIdRenderable(n)||s.state==\"errored\")&&t.some((c=>c.equals(s.tileID.canonical)))&&this._reloadTile(n,\"expired\")}}_removeTile(t){let n=this._inViewTiles.getTileById(t);n&&(n.uses--,this._inViewTiles.deleteTileById(t),this._clearTileReloadTimer(t),n.uses>0||(n.hasData()&&n.state!==\"reloading\"?this._outOfViewCache.add(n.tileID,n,n.getExpiryTimeout()):(n.aborted=!0,this._abortTile(n),this._unloadTile(n))))}_dataHandler(t){t.dataType===\"source\"&&(t.sourceDataType!==\"metadata\"?t.sourceDataType===\"content\"&&this._sourceLoaded&&!this._paused&&(this.reload(t.sourceDataChanged,t.shouldReloadTileOptions),this.transform&&this.update(this.transform,this.terrain),this._didEmitContent=!0):this._sourceLoaded=!0)}clearTiles(){this._shouldReloadOnResume=!1,this._paused=!1;for(let t of this._inViewTiles.getAllIds())this._removeTile(t);this._outOfViewCache.reset()}tilesIn(t,n,s){let c=[],f=this.transform;if(!f)return c;let y=f.getCoveringTilesDetailsProvider().allowWorldCopies(),x=s?f.getCameraQueryGeometry(t):t,w=D=>f.screenPointToMercatorCoordinate(D,this.terrain),S=this.transformBbox(t,w,!y),M=this.transformBbox(x,w,!y),E=this.getIds(),I=h.a8.fromPoints(M);for(let D of E){let B=this._inViewTiles.getTileById(D);if(B.holdingForSymbolFade())continue;let V=y?[B.tileID]:[B.tileID.unwrapTo(-1),B.tileID.unwrapTo(0)],q=Math.pow(2,f.zoom-B.tileID.overscaledZ),N=n*B.queryPadding*h.a6/B.tileSize/q;for(let G of V){let X=I.map(($=>G.getTilePoint(new h.a7($.x,$.y))));if(X.expandBy(N),X.intersects(pc)){let $=S.map((H=>G.getTilePoint(H))),U=M.map((H=>G.getTilePoint(H)));c.push({tile:B,tileID:y?G:G.unwrapTo(0),queryGeometry:$,cameraQueryGeometry:U,scale:q})}}}return c}transformBbox(t,n,s){let c=t.map(n);if(s){let f=h.a8.fromPoints(t);f.shrinkBy(.001*Math.min(f.width(),f.height()));let y=f.map(n);h.a8.fromPoints(c).covers(y)||(c=c.map((x=>x.x>.5?new h.a7(x.x-1,x.y,x.z):x)))}return c}getVisibleCoordinates(t){let n=this.getRenderableIds(t).map((s=>this._inViewTiles.getTileById(s).tileID));return this.transform&&this.transform.populateCache(n),n}hasTransition(){return!!this._source.hasTransition()||fc(this._source.type)&&(function(t,n){if(n<=0)return!1;let s=Fe();for(let c of t.getAllTiles())if(c.fadeEndTime>=s)return!0;return!1})(this._inViewTiles,this._rasterFadeDuration)}setRasterFadeDuration(t){this._rasterFadeDuration=t}setFeatureState(t,n,s){t||(t=h.ag),this._state.updateState(t,n,s)}removeFeatureState(t,n,s){t||(t=h.ag),this._state.removeFeatureState(t,n,s)}getFeatureState(t,n){return t||(t=h.ag),this._state.getState(t,n)}setDependencies(t,n,s){let c=this._inViewTiles.getTileById(t);c&&c.setDependencies(n,s)}reloadTilesForDependencies(t,n){for(let s of this._inViewTiles.getAllIds())this._inViewTiles.getTileById(s).hasDependency(t,n)&&this._reloadTile(s,\"reloading\");this._outOfViewCache.filter((s=>!s.hasDependency(t,n)))}areTilesLoaded(){for(let t of this._inViewTiles.getAllTiles())if(t.state!==\"loaded\"&&t.state!==\"errored\")return!1;return!0}}ui.maxUnderzooming=10,ui.maxOverzooming=3;class Zs{constructor(t,n){this.reset(t,n)}reset(t,n){this.points=t||[],this._distances=[0];for(let s=1;s0?(c-y)/x:0;return this.points[f].mult(1-w).add(this.points[n].mult(w))}}function Hr(d,t){let n=!0;return d===\"always\"||d!==\"never\"&&t!==\"never\"||(n=!1),n}class Ie{constructor(t,n,s){let c=this.boxCells=[],f=this.circleCells=[];this.xCellCount=Math.ceil(t/s),this.yCellCount=Math.ceil(n/s);for(let y=0;ythis.width||c<0||n>this.height)return[];let w=[];if(t<=0&&n<=0&&this.width<=s&&this.height<=c){if(f)return[{key:null,x1:t,y1:n,x2:s,y2:c}];for(let S=0;S0}hitTestCircle(t,n,s,c,f){let y=t-s,x=t+s,w=n-s,S=n+s;if(x<0||y>this.width||S<0||w>this.height)return!1;let M=[];return this._forEachCell(y,w,x,S,this._queryCellCircle,M,{hitTest:!0,overlapMode:c,circle:{x:t,y:n,radius:s},seenUids:{box:{},circle:{}}},f),M.length>0}_queryCell(t,n,s,c,f,y,x,w){let{seenUids:S,hitTest:M,overlapMode:E}=x,I=this.boxCells[f],D=1e-6;if(I!==null){let V=this.bboxes;for(let q of I)if(!S.box[q]){S.box[q]=!0;let N=4*q,G=this.boxKeys[q];if(t<=V[N+2]+D&&n<=V[N+3]+D&&s>=V[N+0]-D&&c>=V[N+1]-D&&(!w||w(G))&&(!M||!Hr(E,G.overlapMode))&&(y.push({key:G,x1:V[N],y1:V[N+1],x2:V[N+2],y2:V[N+3]}),M))return!0}}let B=this.circleCells[f];if(B!==null){let V=this.circles;for(let q of B)if(!S.circle[q]){S.circle[q]=!0;let N=3*q,G=this.circleKeys[q];if(this._circleAndRectCollide(V[N],V[N+1],V[N+2],t,n,s,c)&&(!w||w(G))&&(!M||!Hr(E,G.overlapMode))){let X=V[N],$=V[N+1],U=V[N+2];if(y.push({key:G,x1:X-U,y1:$-U,x2:X+U,y2:$+U}),M)return!0}}}return!1}_queryCellCircle(t,n,s,c,f,y,x,w){let{circle:S,seenUids:M,overlapMode:E}=x,I=this.boxCells[f];if(I!==null){let B=this.bboxes;for(let V of I)if(!M.box[V]){M.box[V]=!0;let q=4*V,N=this.boxKeys[V];if(this._circleAndRectCollide(S.x,S.y,S.radius,B[q+0],B[q+1],B[q+2],B[q+3])&&(!w||w(N))&&!Hr(E,N.overlapMode))return y.push(!0),!0}}let D=this.circleCells[f];if(D!==null){let B=this.circles;for(let V of D)if(!M.circle[V]){M.circle[V]=!0;let q=3*V,N=this.circleKeys[V];if(this._circlesCollide(B[q],B[q+1],B[q+2],S.x,S.y,S.radius)&&(!w||w(N))&&!Hr(E,N.overlapMode))return y.push(!0),!0}}}_forEachCell(t,n,s,c,f,y,x,w){let S=this._convertToXCellCoord(t),M=this._convertToYCellCoord(n),E=this._convertToXCellCoord(s),I=this._convertToYCellCoord(c);for(let D=S;D<=E;D++)for(let B=M;B<=I;B++)if(f.call(this,t,n,s,c,this.xCellCount*B+D,y,x,w))return}_convertToXCellCoord(t){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(t*this.xScale)))}_convertToYCellCoord(t){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(t*this.yScale)))}_circlesCollide(t,n,s,c,f,y){let x=c-t,w=f-n,S=s+y;return S*S>x*x+w*w}_circleAndRectCollide(t,n,s,c,f,y,x){let w=(y-c)/2,S=Math.abs(t-(c+w));if(S>w+s)return!1;let M=(x-f)/2,E=Math.abs(n-(f+M));if(E>M+s)return!1;if(S<=w||E<=M)return!0;let I=S-w,D=E-M;return I*I+D*D<=s*s}}function Ke(d,t){let n=1/(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]),s=1/(t[8]*t[8]+t[9]*t[9]+t[10]*t[10]),c=t[0]*n,f=t[4]*n,y=t[8]*s,x=t[1]*n,w=t[5]*n,S=t[9]*s,M=t[2]*n,E=t[6]*n,I=t[10]*s;d[0]=c,d[1]=f,d[2]=y,d[4]=x,d[5]=w,d[6]=S,d[8]=M,d[9]=E,d[10]=I;let D=t[12],B=t[13],V=t[14];return d[12]=-c*D-x*B-M*V,d[13]=-f*D-w*B-E*V,d[14]=-y*D-S*B-I*V,d[3]=0,d[7]=0,d[11]=0,d[15]=1,d}let rt=h.O();function Gi(d,t,n){let s=h.O();if(!d){let{vecSouth:E,vecEast:I}=zr(t),D=Ve();D[0]=I[0],D[1]=I[1],D[2]=E[0],D[3]=E[1],c=D,(M=(y=(f=D)[0])*(S=f[3])-(w=f[2])*(x=f[1]))&&(c[0]=S*(M=1/M),c[1]=-x*M,c[2]=-w*M,c[3]=y*M),s[0]=D[0],s[1]=D[1],s[4]=D[2],s[5]=D[3]}var c,f,y,x,w,S,M;return h.S(s,s,[1/n,1/n,1]),s}function wa(d,t,n,s){if(d){let c=h.O();if(!t){let{vecSouth:f,vecEast:y}=zr(n);c[0]=y[0],c[1]=y[1],c[4]=f[0],c[5]=f[1]}return h.S(c,c,[s,s,1]),c}return n.pixelsToClipSpaceMatrix}function zr(d){let t=Math.cos(d.rollInRadians),n=Math.sin(d.rollInRadians),s=Math.cos(d.pitchInRadians),c=Math.cos(d.bearingInRadians),f=Math.sin(d.bearingInRadians),y=h.az();y[0]=-c*s*n-f*t,y[1]=-f*s*n+c*t;let x=h.aA(y);x<1e-9?h.aB(y):h.aC(y,y,1/x);let w=h.az();w[0]=c*s*t-f*n,w[1]=f*s*t+c*n;let S=h.aA(w);return S<1e-9?h.aB(w):h.aC(w,w,1/S),{vecEast:w,vecSouth:y}}function Je(d,t,n,s){let c;s?(c=[d,t,s(d,t),1],h.aE(c,c,n)):(c=[d,t,0,1],Ma(c,c,n));let f=c[3];return{point:new h.P(c[0]/f,c[1]/f),signedDistanceFromCamera:f,isOccluded:!1}}function Eo(d,t){return .5+d/t*.5}function Io(d,t){return d.x>=-t[0]&&d.x<=t[0]&&d.y>=-t[1]&&d.y<=t[1]}function Ta(d,t,n,s,c,f,y,x,w,S,M,E,I){let D=n?d.textSizeData:d.iconSizeData,B=h.aw(D,t.transform.zoom),V=[256/t.width*2+1,256/t.height*2+1],q=n?d.text.dynamicLayoutVertexArray:d.icon.dynamicLayoutVertexArray;q.clear();let N=d.lineVertexArray,G=n?d.text.placedSymbolArray:d.icon.placedSymbolArray,X=t.transform.width/t.transform.height,$=!1;for(let U=0;UMath.abs(n.x-t.x)*s?{useVertical:!0}:(d===h.ax.vertical?t.yn.x)?{needsFlipping:!0}:null}function $n(d){let{projectionContext:t,pitchedLabelPlaneMatrixInverse:n,symbol:s,fontSize:c,flip:f,keepUpright:y,glyphOffsetArray:x,dynamicLayoutVertexArray:w,aspectRatio:S,rotateToLine:M}=d,E=c/24,I=s.lineOffsetX*E,D=s.lineOffsetY*E,B;if(s.numGlyphs>1){let V=s.glyphStartIndex+s.numGlyphs,q=s.lineStartIndex,N=s.lineStartIndex+s.lineLength,G=Gn(E,x,I,D,f,s,M,t);if(!G)return{notEnoughRoom:!0};let X=Sa(G.first.point.x,G.first.point.y,t,n),$=Sa(G.last.point.x,G.last.point.y,t,n);if(y&&!f){let U=Ao(s.writingMode,X,$,S);if(U)return U}B=[G.first];for(let U=s.glyphStartIndex+1;U0?X.point:zo(t.tileAnchorPoint,G,q,1,t),U=Sa(q.x,q.y,t,n),H=Sa($.x,$.y,t,n),Z=Ao(s.writingMode,U,H,S);if(Z)return Z}let V=pr(E*x.getoffsetX(s.glyphStartIndex),I,D,f,s.segment,s.lineStartIndex,s.lineStartIndex+s.lineLength,t,M);if(!V||t.projectionCache.anyProjectionOccluded)return{notEnoughRoom:!0};B=[V]}for(let V of B)h.aD(w,V.point,V.angle);return{}}function zo(d,t,n,s,c){let f=d.add(d.sub(t)._unit()),y=bt(f.x,f.y,c).point,x=n.sub(y);return n.add(x._mult(s/x.mag()))}function hi(d,t,n){let s=t.projectionCache;if(s.projections[d])return s.projections[d];let c=new h.P(t.lineVertexArray.getx(d),t.lineVertexArray.gety(d)),f=bt(c.x,c.y,t);if(f.signedDistanceFromCamera>0)return s.projections[d]=f.point,s.anyProjectionOccluded||(s.anyProjectionOccluded=f.isOccluded),f.point;let y=d-n.direction;return zo(n.distanceFromAnchor===0?t.tileAnchorPoint:new h.P(t.lineVertexArray.getx(y),t.lineVertexArray.gety(y)),c,n.previousVertex,n.absOffsetX-n.distanceFromAnchor+1,t)}function bt(d,t,n){let s=d+n.translation[0],c=t+n.translation[1],f;return n.pitchWithMap?(f=Je(s,c,n.pitchedLabelPlaneMatrix,n.getElevation),f.isOccluded=!1):(f=n.transform.projectTileCoordinates(s,c,n.unwrappedTileID,n.getElevation),f.point.x=(.5*f.point.x+.5)*n.width,f.point.y=(.5*-f.point.y+.5)*n.height),f}function Sa(d,t,n,s){if(n.pitchWithMap){let c=[d,t,0,1];return h.aE(c,c,s),n.transform.projectTileCoordinates(c[0]/c[3],c[1]/c[3],n.unwrappedTileID,n.getElevation).point}return{x:d/n.width*2-1,y:1-t/n.height*2}}function Zn(d,t,n){return n.transform.projectTileCoordinates(d,t,n.unwrappedTileID,n.getElevation)}function Do(d,t,n){return d._unit()._perp()._mult(t*n)}function mn(d,t,n,s,c,f,y,x,w){if(x.projectionCache.offsets[d])return x.projectionCache.offsets[d];let S=n.add(t);if(d+w.direction=c)return x.projectionCache.offsets[d]=S,S;let M=hi(d+w.direction,x,w),E=Do(M.sub(n),y,w.direction),I=n.add(E),D=M.add(E);return x.projectionCache.offsets[d]=h.aF(f,S,I,D)||S,x.projectionCache.offsets[d]}function pr(d,t,n,s,c,f,y,x,w){let S=s?d-t:d+t,M=S>0?1:-1,E=0;s&&(M*=-1,E=Math.PI),M<0&&(E+=Math.PI);let I,D=M>0?f+c:f+c+1;x.projectionCache.cachedAnchorPoint?I=x.projectionCache.cachedAnchorPoint:(I=bt(x.tileAnchorPoint.x,x.tileAnchorPoint.y,x).point,x.projectionCache.cachedAnchorPoint=I);let B,V,q=I,N=I,G=0,X=0,$=Math.abs(S),U=[],H;for(;G+X<=$;){if(D+=M,D=y)return null;G+=X,N=q,V=B;let se={absOffsetX:$,direction:M,distanceFromAnchor:G,previousVertex:N};if(q=hi(D,x,se),n===0)U.push(N),H=q.sub(N);else{let ce,_e=q.sub(N);ce=_e.mag()===0?Do(hi(D+M,x,se).sub(q),n,M):Do(_e,n,M),V||(V=N.add(ce)),B=mn(D,ce,q,f,y,V,n,x,se),U.push(V),H=B.sub(V)}X=H.mag()}let Z=H._mult(($-G)/X)._add(V||N),te=E+Math.atan2(q.y-N.y,q.x-N.x);return U.push(Z),{point:Z,angle:w?te:0,path:U}}let gc=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function gn(d,t){for(let n=0;n=1;Be--)Ce.push(ge.path[Be]);for(let Be=1;Be_t.signedDistanceFromCamera<=0))?[]:Be.map((_t=>_t.point))}let Ae=[];if(Ce.length>0){let Be=Ce[0].clone(),_t=Ce[0].clone();for(let $t=1;$t=se.x&&_t.x<=ce.x&&Be.y>=se.y&&_t.y<=ce.y?[Ce]:_t.xce.x||_t.yce.y?[]:h.aG([Ce],se.x,se.y,ce.x,ce.y)}for(let Be of Ae){_e.reset(Be,.25*te);let _t=0;_t=_e.length<=.5*te?1:Math.ceil(_e.paddedLength/me)+1;for(let $t=0;$t<_t;$t++){let St=$t/Math.max(_t-1,1),Wt=_e.lerp(St),Xt=Wt.x+Vt,gi=Wt.y+Vt;V.push(Xt,gi,te,0);let jt=Xt-te,Ai=gi-te,di=Xt+te,ri=gi+te;if(Z&&(Z=this.isOffscreen(jt,Ai,di,ri)),H||(H=this.isInsideGrid(jt,Ai,di,ri)),t!==\"always\"&&this.grid.hitTestCircle(Xt,gi,te,t,M)&&(U=!0,!w))return{circles:[],offscreen:!1,collisionDetected:U}}}}return{circles:!w&&U||!H||N{let w=Je(x.x,x.y,y,f.getElevation),S=f.transform.projectTileCoordinates(w.point.x,w.point.y,f.unwrappedTileID,f.getElevation);return S.point.x=(.5*S.point.x+.5)*f.width,S.point.y=(.5*-S.point.y+.5)*f.height,S}))})(t,n);return(function(c){let f=0,y=0,x=0,w=0;for(let S=0;Sy&&(y=w,f=x));return c.slice(f,f+y)})(s)}queryRenderedSymbols(t){if(t.length===0||this.grid.keysLength()===0&&this.ignoredGrid.keysLength()===0)return{};let n=[],s=new h.a8;for(let E of t){let I=new h.P(E.x+Vt,E.y+Vt);s.extend(I),n.push(I)}let{minX:c,minY:f,maxX:y,maxY:x}=s,w=this.grid.query(c,f,y,x).concat(this.ignoredGrid.query(c,f,y,x)),S={},M={};for(let E of w){let I=E.key;if(S[I.bucketInstanceId]===void 0&&(S[I.bucketInstanceId]={}),S[I.bucketInstanceId][I.featureIndex])continue;let D=[new h.P(E.x1,E.y1),new h.P(E.x2,E.y1),new h.P(E.x2,E.y2),new h.P(E.x1,E.y2)];h.aH(n,D)&&(S[I.bucketInstanceId][I.featureIndex]=!0,M[I.bucketInstanceId]===void 0&&(M[I.bucketInstanceId]=[]),M[I.bucketInstanceId].push(I.featureIndex))}return M}insertCollisionBox(t,n,s,c,f,y){(s?this.ignoredGrid:this.grid).insert({bucketInstanceId:c,featureIndex:f,collisionGroupID:y,overlapMode:n},t[0],t[1],t[2],t[3])}insertCollisionCircles(t,n,s,c,f,y){let x=s?this.ignoredGrid:this.grid,w={bucketInstanceId:c,featureIndex:f,collisionGroupID:y,overlapMode:n};for(let S=0;S=this.screenRightBoundary||cthis.screenBottomBoundary}isInsideGrid(t,n,s,c){return s>=0&&t=0&&nthis.projectAndGetPerspectiveRatio(me.x,me.y,c,S,E)));Re=Ce.some((me=>!me.isOccluded)),ge=Ce.map((me=>new h.P(me.x,me.y)))}else Re=!0;return{box:h.aI(ge),allPointsOccluded:!Re}}}class yc{constructor(t,n,s,c){this.opacity=t?Math.max(0,Math.min(1,t.opacity+(t.placed?n:-n))):c&&s?1:0,this.placed=s}isHidden(){return this.opacity===0&&!this.placed}}class ko{constructor(t,n,s,c,f){this.text=new yc(t?t.text:null,n,s,f),this.icon=new yc(t?t.icon:null,n,c,f)}isHidden(){return this.text.isHidden()&&this.icon.isHidden()}}class vc{constructor(t,n,s){this.text=t,this.icon=n,this.skipFade=s}}class xc{constructor(t,n,s,c,f){this.bucketInstanceId=t,this.featureIndex=n,this.sourceLayerIndex=s,this.bucketIndex=c,this.tileID=f}}class bc{constructor(t){this.crossSourceCollisions=t,this.maxGroupID=0,this.collisionGroups={}}get(t){if(this.crossSourceCollisions)return{ID:0,predicate:null};if(!this.collisionGroups[t]){let n=++this.maxGroupID;this.collisionGroups[t]={ID:n,predicate:s=>s.collisionGroupID===n}}return this.collisionGroups[t]}}function Pa(d,t,n,s,c){let{horizontalAlign:f,verticalAlign:y}=h.aP(d);return new h.P(-(f-.5)*t+s[0]*c,-(y-.5)*n+s[1]*c)}class Ws{constructor(t,n,s,c,f){this.transform=t.clone(),this.terrain=n,this.collisionIndex=new _c(this.transform),this.placements={},this.opacities={},this.variableOffsets={},this.stale=!1,this.commitTime=0,this.fadeDuration=s,this.retainedQueryData={},this.collisionGroups=new bc(c),this.collisionCircleArrays={},this.collisionBoxArrays=new Map,this.prevPlacement=f,f&&(f.prevPlacement=void 0),this.placedOrientations={}}_getTerrainElevationFunc(t){let n=this.terrain;return n?(s,c)=>n.getElevation(t,s,c):null}getBucketParts(t,n,s,c){let f=s.getBucket(n),y=s.latestFeatureIndex;if(!f||!y||n.id!==f.layerIds[0])return;let x=s.collisionBoxArray,w=f.layers[0].layout,S=f.layers[0].paint,M=Math.pow(2,this.transform.zoom-s.tileID.overscaledZ),E=s.tileSize/h.a6,I=s.tileID.toUnwrapped(),D=w.get(\"text-rotation-alignment\")===\"map\",B=h.aK(s,1,this.transform.zoom),V=h.aL(this.collisionIndex.transform,s,S.get(\"text-translate\"),S.get(\"text-translate-anchor\")),q=h.aL(this.collisionIndex.transform,s,S.get(\"icon-translate\"),S.get(\"icon-translate-anchor\")),N=Gi(D,this.transform,B);this.retainedQueryData[f.bucketInstanceId]=new xc(f.bucketInstanceId,y,f.sourceLayerIndex,f.index,s.tileID);let G={bucket:f,layout:w,translationText:V,translationIcon:q,unwrappedTileID:I,pitchedLabelPlaneMatrix:N,scale:M,textPixelRatio:E,holdingForFade:s.holdingForSymbolFade(),collisionBoxArray:x,partiallyEvaluatedTextSize:h.aw(f.textSizeData,this.transform.zoom),collisionGroup:this.collisionGroups.get(f.sourceID)};if(c)for(let X of f.sortKeyRanges){let{sortKey:$,symbolInstanceStart:U,symbolInstanceEnd:H}=X;t.push({sortKey:$,symbolInstanceStart:U,symbolInstanceEnd:H,parameters:G})}else t.push({symbolInstanceStart:0,symbolInstanceEnd:f.symbolInstances.length,parameters:G})}attemptAnchorPlacement(t,n,s,c,f,y,x,w,S,M,E,I,D,B,V,q,N,G,X,$){var U,H,Z;let te=h.aM[t.textAnchor],se=[t.textOffset0,t.textOffset1],ce=Pa(te,s,c,se,f),_e=this.collisionIndex.placeCollisionBox(n,I,w,S,M,x,y,q,E.predicate,X,ce,$);if((!G||this.collisionIndex.placeCollisionBox(G,I,w,S,M,x,y,N,E.predicate,X,ce,$).placeable)&&_e.placeable){let ge;if(!((U=this.prevPlacement)===null||U===void 0)&&U.variableOffsets[D.crossTileID]&&(!((Z=(H=this.prevPlacement)===null||H===void 0?void 0:H.placements[D.crossTileID])===null||Z===void 0)&&Z.text)&&(ge=this.prevPlacement.variableOffsets[D.crossTileID].anchor),D.crossTileID===0)throw new Error(\"symbolInstance.crossTileID can't be 0\");return this.variableOffsets[D.crossTileID]={textOffset:se,width:s,height:c,anchor:te,textBoxScale:f,prevAnchor:ge},this.markUsedJustification(B,te,D,V),B.allowVerticalPlacement&&(this.markUsedOrientation(B,V,D),this.placedOrientations[D.crossTileID]=V),{shift:ce,placedGlyphBoxes:_e}}}placeLayerBucketPart(t,n,s){let{bucket:c,layout:f,translationText:y,translationIcon:x,unwrappedTileID:w,pitchedLabelPlaneMatrix:S,textPixelRatio:M,holdingForFade:E,collisionBoxArray:I,partiallyEvaluatedTextSize:D,collisionGroup:B}=t.parameters,V=f.get(\"text-optional\"),q=f.get(\"icon-optional\"),N=h.aN(f,\"text-overlap\",\"text-allow-overlap\"),G=N===\"always\",X=h.aN(f,\"icon-overlap\",\"icon-allow-overlap\"),$=X===\"always\",U=f.get(\"text-rotation-alignment\")===\"map\",H=f.get(\"text-pitch-alignment\")===\"map\",Z=f.get(\"icon-text-fit\")!==\"none\",te=f.get(\"symbol-z-order\")===\"viewport-y\",se=G&&($||!c.hasIconData()||q),ce=$&&(G||!c.hasTextData()||V);!c.collisionArrays&&I&&c.deserializeCollisionBoxes(I);let _e=this.retainedQueryData[c.bucketInstanceId].tileID,ge=this._getTerrainElevationFunc(_e),Re=this.transform.getFastPathSimpleProjectionMatrix(_e),Ce=(me,Ae,Be)=>{var _t,$t;if(n[me.crossTileID])return;if(E)return void(this.placements[me.crossTileID]=new vc(!1,!1,!1));let St=!1,Wt=!1,Xt=!0,gi=null,jt={box:null,placeable:!1,offscreen:null,occluded:!1},Ai={placeable:!1},di=null,ri=null,_i=null,tn=0,rn=0,nn=0;Ae.textFeatureIndex?tn=Ae.textFeatureIndex:me.useRuntimeCollisionCircles&&(tn=me.featureIndex),Ae.verticalTextFeatureIndex&&(rn=Ae.verticalTextFeatureIndex);let yi=Ae.textBox;if(yi){let Mr=Ft=>{let At=h.ax.horizontal;if(c.allowVerticalPlacement&&!Ft&&this.prevPlacement){let Yt=this.prevPlacement.placedOrientations[me.crossTileID];Yt&&(this.placedOrientations[me.crossTileID]=Yt,At=Yt,this.markUsedOrientation(c,At,me))}return At},Pr=(Ft,At)=>{if(c.allowVerticalPlacement&&me.numVerticalGlyphVertices>0&&Ae.verticalTextBox){for(let Yt of c.writingModes)if(Yt===h.ax.vertical?(jt=At(),Ai=jt):jt=Ft(),jt?.placeable)break}else jt=Ft()},Xi=me.textAnchorOffsetStartIndex,or=me.textAnchorOffsetEndIndex;if(or===Xi){let Ft=(At,Yt)=>{let Bt=this.collisionIndex.placeCollisionBox(At,N,M,_e,w,H,U,y,B.predicate,ge,void 0,Re);return Bt?.placeable&&(this.markUsedOrientation(c,Yt,me),this.placedOrientations[me.crossTileID]=Yt),Bt};Pr((()=>Ft(yi,h.ax.horizontal)),(()=>{let At=Ae.verticalTextBox;return c.allowVerticalPlacement&&me.numVerticalGlyphVertices>0&&At?Ft(At,h.ax.vertical):{box:null,offscreen:null}})),Mr(jt?.placeable)}else{let Ft=h.aM[($t=(_t=this.prevPlacement)===null||_t===void 0?void 0:_t.variableOffsets[me.crossTileID])===null||$t===void 0?void 0:$t.anchor],At=(Bt,Rn,us)=>{let Vr=Bt.x2-Bt.x1,Nl=Bt.y2-Bt.y1,gu=me.textBoxScale,Ul=Z&&X===\"never\"?Rn:null,an=null,sn=N===\"never\"?1:2,ln=\"never\";Ft&&sn++;for(let ql=0;qlAt(yi,Ae.iconBox,h.ax.horizontal)),(()=>{let Bt=Ae.verticalTextBox;return c.allowVerticalPlacement&&!jt?.placeable&&me.numVerticalGlyphVertices>0&&Bt?At(Bt,Ae.verticalIconBox,h.ax.vertical):{box:null,occluded:!0,offscreen:null}})),jt&&(St=jt.placeable,Xt=jt.offscreen);let Yt=Mr(jt?.placeable);if(!St&&this.prevPlacement){let Bt=this.prevPlacement.variableOffsets[me.crossTileID];Bt&&(this.variableOffsets[me.crossTileID]=Bt,this.markUsedJustification(c,Bt.anchor,me,Yt))}}}if(di=jt,St=di?.placeable,Xt=di?.offscreen,me.useRuntimeCollisionCircles&&me.centerJustifiedTextSymbolIndex>=0){let Mr=c.text.placedSymbolArray.get(me.centerJustifiedTextSymbolIndex),Pr=h.ay(c.textSizeData,D,Mr),Xi=f.get(\"text-padding\");ri=this.collisionIndex.placeCollisionCircles(N,Mr,c.lineVertexArray,c.glyphOffsetArray,Pr,w,S,s,H,B.predicate,me.collisionCircleDiameter,Xi,y,ge),ri.circles.length&&ri.collisionDetected&&!s&&h.w(\"Collisions detected, but collision boxes are not shown\"),St=G||ri.circles.length>0&&!ri.collisionDetected,Xt&&(Xt=ri.offscreen)}if(Ae.iconFeatureIndex&&(nn=Ae.iconFeatureIndex),Ae.iconBox){let Mr=Pr=>this.collisionIndex.placeCollisionBox(Pr,X,M,_e,w,H,U,x,B.predicate,ge,Z&&gi?gi:void 0,Re);Ai&&Ai.placeable&&Ae.verticalIconBox?(_i=Mr(Ae.verticalIconBox),Wt=_i.placeable):(_i=Mr(Ae.iconBox),Wt=_i.placeable),Xt&&(Xt=_i.offscreen)}let Or=V||me.numHorizontalGlyphVertices===0&&me.numVerticalGlyphVertices===0,on=q||me.numIconVertices===0;Or||on?on?Or||Wt&&(Wt=St):St=Wt&&St:Wt=St=Wt&&St;let cs=Wt&&_i.placeable;if(St&&di.placeable&&this.collisionIndex.insertCollisionBox(di.box,N,f.get(\"text-ignore-placement\"),c.bucketInstanceId,Ai&&Ai.placeable&&rn?rn:tn,B.ID),cs&&this.collisionIndex.insertCollisionBox(_i.box,X,f.get(\"icon-ignore-placement\"),c.bucketInstanceId,nn,B.ID),ri&&St&&this.collisionIndex.insertCollisionCircles(ri.circles,N,f.get(\"text-ignore-placement\"),c.bucketInstanceId,tn,B.ID),s&&this.storeCollisionData(c.bucketInstanceId,Be,Ae,di,_i,ri),me.crossTileID===0)throw new Error(\"symbolInstance.crossTileID can't be 0\");if(c.bucketInstanceId===0)throw new Error(\"bucket.bucketInstanceId can't be 0\");this.placements[me.crossTileID]=new vc((St||se)&&!di?.occluded,(Wt||ce)&&!_i?.occluded,Xt||c.justReloaded),n[me.crossTileID]=!0};if(te){if(t.symbolInstanceStart!==0)throw new Error(\"bucket.bucketInstanceId should be 0\");let me=c.getSortedSymbolIndexes(-this.transform.bearingInRadians);for(let Ae=me.length-1;Ae>=0;--Ae){let Be=me[Ae];Ce(c.symbolInstances.get(Be),c.collisionArrays[Be],Be)}}else for(let me=t.symbolInstanceStart;me=0&&(t.text.placedSymbolArray.get(x).crossTileID=f>=0&&x!==f?0:s.crossTileID)}markUsedOrientation(t,n,s){let c=n===h.ax.horizontal||n===h.ax.horizontalOnly?n:0,f=n===h.ax.vertical?n:0,y=[s.leftJustifiedTextSymbolIndex,s.centerJustifiedTextSymbolIndex,s.rightJustifiedTextSymbolIndex];for(let x of y)t.text.placedSymbolArray.get(x).placedOrientation=c;s.verticalPlacedTextSymbolIndex&&(t.text.placedSymbolArray.get(s.verticalPlacedTextSymbolIndex).placedOrientation=f)}commit(t){this.commitTime=t,this.zoomAtLastRecencyCheck=this.transform.zoom;let n=this.prevPlacement,s=!1;this.prevZoomAdjustment=n?n.zoomAdjustment(this.transform.zoom):0;let c=n?n.symbolFadeChange(t):1,f=n?n.opacities:{},y=n?n.variableOffsets:{},x=n?n.placedOrientations:{};for(let w in this.placements){let S=this.placements[w],M=f[w];M?(this.opacities[w]=new ko(M,c,S.text,S.icon),s||(s=S.text!==M.text.placed),s||(s=S.icon!==M.icon.placed)):(this.opacities[w]=new ko(null,c,S.text,S.icon,S.skipFade),s||(s=S.text||S.icon))}for(let w in f){let S=f[w];if(!this.opacities[w]){let M=new ko(S,c,!1,!1);M.isHidden()||(this.opacities[w]=M,s||(s=S.text.placed),s||(s=S.icon.placed))}}for(let w in y)this.variableOffsets[w]||!this.opacities[w]||this.opacities[w].isHidden()||(this.variableOffsets[w]=y[w]);for(let w in x)this.placedOrientations[w]||!this.opacities[w]||this.opacities[w].isHidden()||(this.placedOrientations[w]=x[w]);if(n&&n.lastPlacementChangeTime===void 0)throw new Error(\"Last placement time for previous placement is not defined\");s?this.lastPlacementChangeTime=t:typeof this.lastPlacementChangeTime!=\"number\"&&(this.lastPlacementChangeTime=n?n.lastPlacementChangeTime:t)}updateLayerOpacities(t,n){let s={};for(let c of n){let f=c.getBucket(t);f&&c.latestFeatureIndex&&t.id===f.layerIds[0]&&this.updateBucketOpacities(f,c.tileID,s,c.collisionBoxArray)}}updateBucketOpacities(t,n,s,c){t.hasTextData()&&(t.text.opacityVertexArray.clear(),t.text.hasVisibleVertices=!1),t.hasIconData()&&(t.icon.opacityVertexArray.clear(),t.icon.hasVisibleVertices=!1),t.hasIconCollisionBoxData()&&t.iconCollisionBox.collisionVertexArray.clear(),t.hasTextCollisionBoxData()&&t.textCollisionBox.collisionVertexArray.clear();let f=t.layers[0],y=f.layout,x=new ko(null,0,!1,!1,!0),w=y.get(\"text-allow-overlap\"),S=y.get(\"icon-allow-overlap\"),M=f._unevaluatedLayout.hasValue(\"text-variable-anchor\")||f._unevaluatedLayout.hasValue(\"text-variable-anchor-offset\"),E=y.get(\"text-rotation-alignment\")===\"map\",I=y.get(\"text-pitch-alignment\")===\"map\",D=y.get(\"icon-text-fit\")!==\"none\",B=new ko(null,0,w&&(S||!t.hasIconData()||y.get(\"icon-optional\")),S&&(w||!t.hasTextData()||y.get(\"text-optional\")),!0);!t.collisionArrays&&c&&(t.hasIconCollisionBoxData()||t.hasTextCollisionBoxData())&&t.deserializeCollisionBoxes(c);let V=(N,G,X)=>{for(let $=0;$0,te=this.placedOrientations[G.crossTileID],se=te===h.ax.vertical,ce=te===h.ax.horizontal||te===h.ax.horizontalOnly;if(X>0||$>0){let ge=Ks(H.text);V(t.text,X,se?Lo:ge),V(t.text,$,ce?Lo:ge);let Re=H.text.isHidden(),Ce=[G.rightJustifiedTextSymbolIndex,G.centerJustifiedTextSymbolIndex,G.leftJustifiedTextSymbolIndex];for(let Be of Ce)Be>=0&&(t.text.placedSymbolArray.get(Be).hidden=Re||se?1:0);G.verticalPlacedTextSymbolIndex>=0&&(t.text.placedSymbolArray.get(G.verticalPlacedTextSymbolIndex).hidden=Re||ce?1:0);let me=this.variableOffsets[G.crossTileID];me&&this.markUsedJustification(t,me.anchor,G,te);let Ae=this.placedOrientations[G.crossTileID];Ae&&(this.markUsedJustification(t,\"left\",G,Ae),this.markUsedOrientation(t,Ae,G))}if(Z){let ge=Ks(H.icon),Re=!(D&&G.verticalPlacedIconSymbolIndex&&se);G.placedIconSymbolIndex>=0&&(V(t.icon,G.numIconVertices,Re?ge:Lo),t.icon.placedSymbolArray.get(G.placedIconSymbolIndex).hidden=H.icon.isHidden()),G.verticalPlacedIconSymbolIndex>=0&&(V(t.icon,G.numVerticalIconVertices,Re?Lo:ge),t.icon.placedSymbolArray.get(G.verticalPlacedIconSymbolIndex).hidden=H.icon.isHidden())}let _e=q?.has(N)?q.get(N):{text:null,icon:null};if(t.hasIconCollisionBoxData()||t.hasTextCollisionBoxData()){let ge=t.collisionArrays[N];if(ge){let Re=new h.P(0,0);if(ge.textBox||ge.verticalTextBox){let Ce=!0;if(M){let me=this.variableOffsets[U];me?(Re=Pa(me.anchor,me.width,me.height,me.textOffset,me.textBoxScale),E&&Re._rotate(I?-this.transform.bearingInRadians:this.transform.bearingInRadians)):Ce=!1}if(ge.textBox||ge.verticalTextBox){let me;ge.textBox&&(me=se),ge.verticalTextBox&&(me=ce),Hs(t.textCollisionBox.collisionVertexArray,H.text.placed,!Ce||me,_e.text,Re.x,Re.y)}}if(ge.iconBox||ge.verticalIconBox){let Ce=!!(!ce&&ge.verticalIconBox),me;ge.iconBox&&(me=Ce),ge.verticalIconBox&&(me=!Ce),Hs(t.iconCollisionBox.collisionVertexArray,H.icon.placed,me,_e.icon,D?Re.x:0,D?Re.y:0)}}}}if(t.sortFeatures(-this.transform.bearingInRadians),this.retainedQueryData[t.bucketInstanceId]&&(this.retainedQueryData[t.bucketInstanceId].featureSortOrder=t.featureSortOrder),t.hasTextData()&&t.text.opacityVertexBuffer&&t.text.opacityVertexBuffer.updateData(t.text.opacityVertexArray),t.hasIconData()&&t.icon.opacityVertexBuffer&&t.icon.opacityVertexBuffer.updateData(t.icon.opacityVertexArray),t.hasIconCollisionBoxData()&&t.iconCollisionBox.collisionVertexBuffer&&t.iconCollisionBox.collisionVertexBuffer.updateData(t.iconCollisionBox.collisionVertexArray),t.hasTextCollisionBoxData()&&t.textCollisionBox.collisionVertexBuffer&&t.textCollisionBox.collisionVertexBuffer.updateData(t.textCollisionBox.collisionVertexArray),t.text.opacityVertexArray.length!==t.text.layoutVertexArray.length/4)throw new Error(`bucket.text.opacityVertexArray.length (= ${t.text.opacityVertexArray.length}) !== bucket.text.layoutVertexArray.length (= ${t.text.layoutVertexArray.length}) / 4`);if(t.icon.opacityVertexArray.length!==t.icon.layoutVertexArray.length/4)throw new Error(`bucket.icon.opacityVertexArray.length (= ${t.icon.opacityVertexArray.length}) !== bucket.icon.layoutVertexArray.length (= ${t.icon.layoutVertexArray.length}) / 4`);t.bucketInstanceId in this.collisionCircleArrays&&(t.collisionCircleArray=this.collisionCircleArrays[t.bucketInstanceId],delete this.collisionCircleArrays[t.bucketInstanceId])}symbolFadeChange(t){return this.fadeDuration===0?1:(t-this.commitTime)/this.fadeDuration+this.prevZoomAdjustment}zoomAdjustment(t){return Math.max(0,(this.transform.zoom-t)/1.5)}hasTransitions(t){return this.stale||t-this.lastPlacementChangeTimet}setStale(){this.stale=!0}}function Hs(d,t,n,s,c,f){s&&s.length!==0||(s=[0,0,0,0]);let y=s[0]-Vt,x=s[1]-Vt,w=s[2]-Vt,S=s[3]-Vt;d.emplaceBack(t?1:0,n?1:0,c||0,f||0,y,x),d.emplaceBack(t?1:0,n?1:0,c||0,f||0,w,x),d.emplaceBack(t?1:0,n?1:0,c||0,f||0,w,S),d.emplaceBack(t?1:0,n?1:0,c||0,f||0,y,S)}let Xs=Math.pow(2,25),Ys=Math.pow(2,24),Wu=Math.pow(2,17),Ro=Math.pow(2,16),Ca=Math.pow(2,9),wc=Math.pow(2,8),Wn=Math.pow(2,1);function Ks(d){if(d.opacity===0&&!d.placed)return 0;if(d.opacity===1&&d.placed)return 4294967295;let t=d.placed?1:0,n=Math.floor(127*d.opacity);return n*Xs+t*Ys+n*Wu+t*Ro+n*Ca+t*wc+n*Wn+t}let Lo=0;class Xr{constructor(t){this._sortAcrossTiles=t.layout.get(\"symbol-z-order\")!==\"viewport-y\"&&!t.layout.get(\"symbol-sort-key\").isConstant(),this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]}continuePlacement(t,n,s,c,f){let y=this._bucketParts;for(;this._currentTileIndexx.sortKey-w.sortKey)));this._currentPartIndex!this._forceFullPlacement&&Fe()-c>2;for(;this._currentPlacementIndex>=0;){let y=n[t[this._currentPlacementIndex]],x=this.placement.collisionIndex.transform.zoom;if(h.aQ(y)&&y.layout&&(!y.minzoom||y.minzoom<=x)&&(!y.maxzoom||y.maxzoom>x)){if(this._inProgressLayer||(this._inProgressLayer=new Xr(y)),this._inProgressLayer.continuePlacement(s[y.source],this.placement,this._showCollisionBoxes,y,f))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0}commit(t){return this.placement.commit(t),this.placement}}let tt=512/h.a6/2;class Js{constructor(t,n,s){this.tileID=t,this.bucketInstanceId=s,this._symbolsByKey={};let c=new Map;for(let f=0;f({x:Math.floor(w.anchorX*tt),y:Math.floor(w.anchorY*tt)}))),crossTileIDs:y.map((w=>w.crossTileID))};if(x.positions.length>128){let w=new h.aR(x.positions.length,16,Uint16Array);for(let{x:S,y:M}of x.positions)w.add(S,M);w.finish(),delete x.positions,x.index=w}this._symbolsByKey[f]=x}}getScaledCoordinates(t,n){let{x:s,y:c,z:f}=this.tileID.canonical,{x:y,y:x,z:w}=n.canonical,S=tt/Math.pow(2,w-f),M=(x*h.a6+t.anchorY)*S,E=c*h.a6*tt;return{x:Math.floor((y*h.a6+t.anchorX)*S-s*h.a6*tt),y:Math.floor(M-E)}}findMatches(t,n,s){let c=this.tileID.canonical.zt))}}class Hu{constructor(){this.maxCrossTileID=0}generate(){return++this.maxCrossTileID}}class Qs{constructor(){this.indexes={},this.usedCrossTileIDs={},this.lng=0}handleWrapJump(t){let n=Math.round((t-this.lng)/360);if(n!==0)for(let s in this.indexes){let c=this.indexes[s],f={};for(let y in c){let x=c[y];x.tileID=x.tileID.unwrapTo(x.tileID.wrap+n),f[x.tileID.key]=x}this.indexes[s]=f}this.lng=t}addBucket(t,n,s){var c,f,y;if(!((c=this.indexes[t.overscaledZ])===null||c===void 0)&&c[t.key]){if(this.indexes[t.overscaledZ][t.key].bucketInstanceId===n.bucketInstanceId)return!1;this.removeBucketCrossTileIDs(t.overscaledZ,this.indexes[t.overscaledZ][t.key])}for(let w=0;wt.overscaledZ)for(let M in S){let E=S[M];E.tileID.isChildOf(t)&&E.findMatches(n.symbolInstances,t,x)}else{let M=S[t.scaledTo(Number(w)).key];M&&M.findMatches(n.symbolInstances,t,x)}}for(let w=0;w 0.95) return 1.0;return (d+depthOpacity(frag+vec3(0.0,0.01,0.0)))/2.0;\n#else\nreturn 1.0;\n#endif\n}float ele(vec2 pos) {\n#ifdef TERRAIN3D\nvec4 rgb=(texture(u_terrain,pos)*255.0)*u_terrain_unpack;return rgb.r+rgb.g+rgb.b-u_terrain_unpack.a;\n#else\nreturn 0.0;\n#endif\n}float get_elevation(vec2 pos) {\n#ifdef TERRAIN3D\n#ifdef GLOBE\nif ((pos.y <-32767.5) || (pos.y > 32766.5)) {return 0.0;}\n#endif\nvec2 coord=(u_terrain_matrix*vec4(pos,0.0,1.0)).xy*u_terrain_dim+1.0;vec2 f=fract(coord);vec2 c=(floor(coord)+0.5)/(u_terrain_dim+2.0);float d=1.0/(u_terrain_dim+2.0);float tl=ele(c);float tr=ele(c+vec2(d,0.0));float bl=ele(c+vec2(0.0,d));float br=ele(c+vec2(d,d));float elevation=mix(mix(tl,tr,f.x),mix(bl,br,f.x),f.y);return elevation*u_terrain_exaggeration;\n#else\nreturn 0.0;\n#endif\n}const float PI=3.141592653589793;uniform mat4 u_projection_matrix;`),projectionMercator:We(\"\",\"float projectLineThickness(float tileY) {return 1.0;}float projectCircleRadius(float tileY) {return 1.0;}vec4 projectTile(vec2 p) {vec4 result=u_projection_matrix*vec4(p,0.0,1.0);return result;}vec4 projectTile(vec2 p,vec2 rawPos) {vec4 result=u_projection_matrix*vec4(p,0.0,1.0);if (rawPos.y <-32767.5 || rawPos.y > 32766.5) {result.z=-10000000.0;}return result;}vec4 projectTileWithElevation(vec2 posInTile,float elevation) {return u_projection_matrix*vec4(posInTile,elevation,1.0);}vec4 projectTileFor3D(vec2 posInTile,float elevation) {return projectTileWithElevation(posInTile,elevation);}\"),projectionGlobe:We(\"\",`#define GLOBE_RADIUS 6371008.8\nuniform highp vec4 u_projection_tile_mercator_coords;uniform highp vec4 u_projection_clipping_plane;uniform highp float u_projection_transition;uniform mat4 u_projection_fallback_matrix;vec3 globeRotateVector(vec3 vec,vec2 angles) {vec3 axisRight=vec3(vec.z,0.0,-vec.x);vec3 axisUp=cross(axisRight,vec);axisRight=normalize(axisRight);axisUp=normalize(axisUp);vec2 t=tan(angles);return normalize(vec+axisRight*t.x+axisUp*t.y);}mat3 globeGetRotationMatrix(vec3 spherePos) {vec3 axisRight=vec3(spherePos.z,0.0,-spherePos.x);vec3 axisDown=cross(axisRight,spherePos);axisRight=normalize(axisRight);axisDown=normalize(axisDown);return mat3(axisRight,axisDown,spherePos\n);}float circumferenceRatioAtTileY(float tileY) {float mercator_pos_y=u_projection_tile_mercator_coords.y+u_projection_tile_mercator_coords.w*tileY;float spherical_y=2.0*atan(exp(PI-(mercator_pos_y*PI*2.0)))-PI*0.5;return cos(spherical_y);}float projectLineThickness(float tileY) {float thickness=1.0/circumferenceRatioAtTileY(tileY); \nif (u_projection_transition < 0.999) {return mix(1.0,thickness,u_projection_transition);} else {return thickness;}}vec3 projectToSphere(vec2 translatedPos,vec2 rawPos) {vec2 mercator_pos=u_projection_tile_mercator_coords.xy+u_projection_tile_mercator_coords.zw*translatedPos;vec2 spherical;spherical.x=mercator_pos.x*PI*2.0+PI;spherical.y=2.0*atan(exp(PI-(mercator_pos.y*PI*2.0)))-PI*0.5;float len=cos(spherical.y);vec3 pos=vec3(sin(spherical.x)*len,sin(spherical.y),cos(spherical.x)*len\n);if (rawPos.y <-32767.5) {pos=vec3(0.0,1.0,0.0);}if (rawPos.y > 32766.5) {pos=vec3(0.0,-1.0,0.0);}return pos;}vec3 projectToSphere(vec2 posInTile) {return projectToSphere(posInTile,vec2(0.0,0.0));}float globeComputeClippingZ(vec3 spherePos) {return (1.0-(dot(spherePos,u_projection_clipping_plane.xyz)+u_projection_clipping_plane.w));}vec4 interpolateProjection(vec2 posInTile,vec3 spherePos,float elevation) {vec3 elevatedPos=spherePos*(1.0+elevation/GLOBE_RADIUS);vec4 globePosition=u_projection_matrix*vec4(elevatedPos,1.0);globePosition.z=globeComputeClippingZ(elevatedPos)*globePosition.w;if (u_projection_transition > 0.999) {return globePosition;}vec4 flatPosition=u_projection_fallback_matrix*vec4(posInTile,elevation,1.0);const float z_globeness_threshold=0.2;vec4 result=globePosition;result.z=mix(0.0,globePosition.z,clamp((u_projection_transition-z_globeness_threshold)/(1.0-z_globeness_threshold),0.0,1.0));result.xyw=mix(flatPosition.xyw,globePosition.xyw,u_projection_transition);if ((posInTile.y <-32767.5) || (posInTile.y > 32766.5)) {result=globePosition;const float poles_hidden_anim_percentage=0.02;result.z=mix(globePosition.z,100.0,pow(max((1.0-u_projection_transition)/poles_hidden_anim_percentage,0.0),8.0));}return result;}vec4 interpolateProjectionFor3D(vec2 posInTile,vec3 spherePos,float elevation) {vec3 elevatedPos=spherePos*(1.0+elevation/GLOBE_RADIUS);vec4 globePosition=u_projection_matrix*vec4(elevatedPos,1.0);if (u_projection_transition > 0.999) {return globePosition;}vec4 fallbackPosition=u_projection_fallback_matrix*vec4(posInTile,elevation,1.0);return mix(fallbackPosition,globePosition,u_projection_transition);}vec4 projectTile(vec2 posInTile) {return interpolateProjection(posInTile,projectToSphere(posInTile),0.0);}vec4 projectTile(vec2 posInTile,vec2 rawPos) {return interpolateProjection(posInTile,projectToSphere(posInTile,rawPos),0.0);}vec4 projectTileWithElevation(vec2 posInTile,float elevation) {return interpolateProjection(posInTile,projectToSphere(posInTile),elevation);}vec4 projectTileFor3D(vec2 posInTile,float elevation) {vec3 spherePos=projectToSphere(posInTile,posInTile);return interpolateProjectionFor3D(posInTile,spherePos,elevation);}`),background:We(`uniform vec4 u_color;uniform float u_opacity;void main() {fragColor=u_color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\nfragColor=vec4(1.0);\n#endif\n}`,\"in vec2 a_pos;void main() {gl_Position=projectTile(a_pos);}\"),backgroundPattern:We(`uniform vec2 u_pattern_tl_a;uniform vec2 u_pattern_br_a;uniform vec2 u_pattern_tl_b;uniform vec2 u_pattern_br_b;uniform vec2 u_texsize;uniform float u_mix;uniform float u_opacity;uniform sampler2D u_image;in vec2 v_pos_a;in vec2 v_pos_b;void main() {vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(u_pattern_tl_a/u_texsize,u_pattern_br_a/u_texsize,imagecoord);vec4 color1=texture(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(u_pattern_tl_b/u_texsize,u_pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture(u_image,pos2);fragColor=mix(color1,color2,u_mix)*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\nfragColor=vec4(1.0);\n#endif\n}`,\"uniform vec2 u_pattern_size_a;uniform vec2 u_pattern_size_b;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_scale_a;uniform float u_scale_b;uniform float u_tile_units_to_pixels;in vec2 a_pos;out vec2 v_pos_a;out vec2 v_pos_b;void main() {gl_Position=projectTile(a_pos);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_a*u_pattern_size_a,u_tile_units_to_pixels,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_b*u_pattern_size_b,u_tile_units_to_pixels,a_pos);}\"),circle:We(`in vec3 v_data;in float v_visibility;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define mediump float radius\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define highp vec4 stroke_color\n#pragma mapbox: define mediump float stroke_width\n#pragma mapbox: define lowp float stroke_opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize mediump float radius\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize highp vec4 stroke_color\n#pragma mapbox: initialize mediump float stroke_width\n#pragma mapbox: initialize lowp float stroke_opacity\nvec2 extrude=v_data.xy;float extrude_length=length(extrude);float antialiased_blur=v_data.z;float opacity_t=smoothstep(0.0,antialiased_blur,extrude_length-1.0);float color_t=stroke_width < 0.01 ? 0.0 : smoothstep(antialiased_blur,0.0,extrude_length-radius/(radius+stroke_width));fragColor=v_visibility*opacity_t*mix(color*opacity,stroke_color*stroke_opacity,color_t);const float epsilon=0.5/255.0;if (fragColor.r < epsilon && fragColor.g < epsilon && fragColor.b < epsilon && fragColor.a < epsilon) {discard;}\n#ifdef OVERDRAW_INSPECTOR\nfragColor=vec4(1.0);\n#endif\n}`,`uniform bool u_scale_with_map;uniform bool u_pitch_with_map;uniform vec2 u_extrude_scale;uniform highp float u_globe_extrude_scale;uniform lowp float u_device_pixel_ratio;uniform highp float u_camera_to_center_distance;uniform vec2 u_translate;in vec2 a_pos;out vec3 v_data;out float v_visibility;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define mediump float radius\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define highp vec4 stroke_color\n#pragma mapbox: define mediump float stroke_width\n#pragma mapbox: define lowp float stroke_opacity\nvoid main(void) {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize mediump float radius\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize highp vec4 stroke_color\n#pragma mapbox: initialize mediump float stroke_width\n#pragma mapbox: initialize lowp float stroke_opacity\nvec2 pos_raw=a_pos+32768.0;vec2 extrude=vec2(mod(pos_raw,8.0)/7.0*2.0-1.0);vec2 circle_center=floor(pos_raw/8.0)+u_translate;float ele=get_elevation(circle_center);v_visibility=calculate_visibility(projectTileWithElevation(circle_center,ele));if (u_pitch_with_map) {\n#ifdef GLOBE\nvec3 center_vector=projectToSphere(circle_center);\n#endif\nfloat angle_scale=u_globe_extrude_scale;vec2 corner_position=circle_center;if (u_scale_with_map) {angle_scale*=(radius+stroke_width);corner_position+=extrude*u_extrude_scale*(radius+stroke_width);} else {\n#ifdef GLOBE\nvec4 projected_center=interpolateProjection(circle_center,center_vector,ele);\n#else\nvec4 projected_center=projectTileWithElevation(circle_center,ele);\n#endif\ncorner_position+=extrude*u_extrude_scale*(radius+stroke_width)*(projected_center.w/u_camera_to_center_distance);angle_scale*=(radius+stroke_width)*(projected_center.w/u_camera_to_center_distance);}\n#ifdef GLOBE\nvec2 angles=extrude*angle_scale;vec3 corner_vector=globeRotateVector(center_vector,angles);gl_Position=interpolateProjection(corner_position,corner_vector,ele);\n#else\ngl_Position=projectTileWithElevation(corner_position,ele);\n#endif\n} else {gl_Position=projectTileWithElevation(circle_center,ele);if (gl_Position.z/gl_Position.w > 1.0) {gl_Position.xy=vec2(10000.0);}if (u_scale_with_map) {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*u_camera_to_center_distance;} else {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*gl_Position.w;}}float antialiasblur=-max(1.0/u_device_pixel_ratio/(radius+stroke_width),blur);v_data=vec3(extrude.x,extrude.y,antialiasblur);}`),clippingMask:We(mi,\"in vec2 a_pos;void main() {gl_Position=projectTile(a_pos);}\"),heatmap:We(`uniform highp float u_intensity;in vec2 v_extrude;\n#pragma mapbox: define highp float weight\n#define GAUSS_COEF 0.3989422804014327\nvoid main() {\n#pragma mapbox: initialize highp float weight\nfloat d=-0.5*3.0*3.0*dot(v_extrude,v_extrude);float val=weight*u_intensity*GAUSS_COEF*exp(d);fragColor=vec4(val,1.0,1.0,1.0);\n#ifdef OVERDRAW_INSPECTOR\nfragColor=vec4(1.0);\n#endif\n}`,`uniform float u_extrude_scale;uniform float u_opacity;uniform float u_intensity;uniform highp float u_globe_extrude_scale;in vec2 a_pos;out vec2 v_extrude;\n#pragma mapbox: define highp float weight\n#pragma mapbox: define mediump float radius\nconst highp float ZERO=1.0/255.0/16.0;\n#define GAUSS_COEF 0.3989422804014327\nvoid main(void) {\n#pragma mapbox: initialize highp float weight\n#pragma mapbox: initialize mediump float radius\nvec2 pos_raw=a_pos+32768.0;vec2 unscaled_extrude=vec2(mod(pos_raw,8.0)/7.0*2.0-1.0);float S=sqrt(-2.0*log(ZERO/weight/u_intensity/GAUSS_COEF))/3.0;v_extrude=S*unscaled_extrude;vec2 extrude=v_extrude*radius*u_extrude_scale;vec2 circle_center=floor(pos_raw/8.0);\n#ifdef GLOBE\nvec2 angles=v_extrude*radius*u_globe_extrude_scale;vec3 center_vector=projectToSphere(circle_center);vec3 corner_vector=globeRotateVector(center_vector,angles);gl_Position=interpolateProjection(circle_center+extrude,corner_vector,0.0);\n#else\ngl_Position=projectTileFor3D(circle_center+extrude,get_elevation(circle_center));\n#endif\n}`),heatmapTexture:We(`uniform sampler2D u_image;uniform sampler2D u_color_ramp;uniform float u_opacity;in vec2 v_pos;void main() {float t=texture(u_image,v_pos).r;vec4 color=texture(u_color_ramp,vec2(t,0.5));fragColor=color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\nfragColor=vec4(0.0);\n#endif\n}`,\"uniform mat4 u_matrix;uniform vec2 u_world;in vec2 a_pos;out vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos*u_world,0,1);v_pos.x=a_pos.x;v_pos.y=1.0-a_pos.y;}\"),collisionBox:We(\"in float v_placed;in float v_notUsed;void main() {float alpha=0.5;fragColor=vec4(1.0,0.0,0.0,1.0)*alpha;if (v_placed > 0.5) {fragColor=vec4(0.0,0.0,1.0,0.5)*alpha;}if (v_notUsed > 0.5) {fragColor*=.1;}}\",\"in vec2 a_anchor_pos;in vec2 a_placed;in vec2 a_box_real;uniform vec2 u_pixel_extrude_scale;out float v_placed;out float v_notUsed;void main() {gl_Position=projectTileWithElevation(a_anchor_pos,get_elevation(a_anchor_pos));gl_Position.xy=((a_box_real+0.5)*u_pixel_extrude_scale*2.0-1.0)*vec2(1.0,-1.0)*gl_Position.w;if (gl_Position.z/gl_Position.w < 1.1) {gl_Position.z=0.5;}v_placed=a_placed.x;v_notUsed=a_placed.y;}\"),collisionCircle:We(\"in float v_radius;in vec2 v_extrude;in float v_collision;void main() {float alpha=0.5;float stroke_radius=0.9;float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);fragColor=color*alpha*opacity_t;}\",\"in vec2 a_pos;in float a_radius;in vec2 a_flags;uniform vec2 u_viewport_size;out float v_radius;out vec2 v_extrude;out float v_collision;void main() {float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(mix(-1.0,1.0,float(vertexIdx >=2.0)),mix(-1.0,1.0,float(vertexIdx >=1.0 && vertexIdx <=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_collision=collision;gl_Position=vec4((a_pos/u_viewport_size*2.0-1.0)*vec2(1.0,-1.0),0.0,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}\"),colorRelief:We(`#ifdef GL_ES\nprecision highp float;\n#endif\nuniform sampler2D u_image;uniform vec4 u_unpack;uniform sampler2D u_elevation_stops;uniform sampler2D u_color_stops;uniform int u_color_ramp_size;uniform float u_opacity;in vec2 v_pos;float getElevation(vec2 coord) {vec4 data=texture(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack);}float getElevationStop(int stop) {float x=(float(stop)+0.5)/float(u_color_ramp_size);vec4 data=texture(u_elevation_stops,vec2(x,0))*255.0;data.a=-1.0;return dot(data,u_unpack);}void main() {float el=getElevation(v_pos);int r=(u_color_ramp_size-1);int l=0;float el_l=getElevationStop(l);float el_r=getElevationStop(r);while(r-l > 1){int m=(r+l)/2;float el_m=getElevationStop(m);if(el < el_m){r=m;el_r=el_m;}else\n{l=m;el_l=el_m;}}float x=(float(l)+(el-el_l)/(el_r-el_l)+0.5)/float(u_color_ramp_size);fragColor=u_opacity*texture(u_color_stops,vec2(x,0));\n#ifdef OVERDRAW_INSPECTOR\nfragColor=vec4(1.0);\n#endif\n}`,\"uniform vec2 u_dimension;in vec2 a_pos;out vec2 v_pos;void main() {gl_Position=projectTile(a_pos,a_pos);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_pos/8192.0)*scale+epsilon;if (a_pos.y <-32767.5) {v_pos.y=0.0;}if (a_pos.y > 32766.5) {v_pos.y=1.0;}}\"),debug:We(\"uniform highp vec4 u_color;uniform sampler2D u_overlay;in vec2 v_uv;void main() {vec4 overlay_color=texture(u_overlay,v_uv);fragColor=mix(u_color,overlay_color,overlay_color.a);}\",\"in vec2 a_pos;out vec2 v_uv;uniform float u_overlay_scale;void main() {v_uv=a_pos/8192.0;gl_Position=projectTileWithElevation(a_pos*u_overlay_scale,get_elevation(a_pos));}\"),depth:We(mi,`in vec2 a_pos;void main() {\n#ifdef GLOBE\ngl_Position=projectTileFor3D(a_pos,0.0);\n#else\ngl_Position=u_projection_matrix*vec4(a_pos,0.0,1.0);\n#endif\n}`),fill:We(`#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\nfragColor=color*opacity;\n#ifdef OVERDRAW_INSPECTOR\nfragColor=vec4(1.0);\n#endif\n}`,`uniform vec2 u_fill_translate;in vec2 a_pos;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=projectTile(a_pos+u_fill_translate,a_pos);}`),fillOutline:We(`in vec2 v_pos;\n#ifdef GLOBE\nin float v_depth;\n#endif\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);fragColor=outline_color*(alpha*opacity);\n#ifdef GLOBE\nif (v_depth > 1.0) {discard;}\n#endif\n#ifdef OVERDRAW_INSPECTOR\nfragColor=vec4(1.0);\n#endif\n}`,`uniform vec2 u_world;uniform vec2 u_fill_translate;in vec2 a_pos;out vec2 v_pos;\n#ifdef GLOBE\nout float v_depth;\n#endif\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=projectTile(a_pos+u_fill_translate,a_pos);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;\n#ifdef GLOBE\nv_depth=gl_Position.z/gl_Position.w;\n#endif\n}`),fillOutlinePattern:We(`uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_fade;in vec2 v_pos_a;in vec2 v_pos_b;in vec2 v_pos;\n#ifdef GLOBE\nin float v_depth;\n#endif\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture(u_image,pos2);float dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);fragColor=mix(color1,color2,u_fade)*alpha*opacity;\n#ifdef GLOBE\nif (v_depth > 1.0) {discard;}\n#endif\n#ifdef OVERDRAW_INSPECTOR\nfragColor=vec4(1.0);\n#endif\n}`,`uniform vec2 u_world;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;uniform vec2 u_fill_translate;in vec2 a_pos;out vec2 v_pos_a;out vec2 v_pos_b;out vec2 v_pos;\n#ifdef GLOBE\nout float v_depth;\n#endif\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;gl_Position=projectTile(a_pos+u_fill_translate,a_pos);vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,a_pos);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;\n#ifdef GLOBE\nv_depth=gl_Position.z/gl_Position.w;\n#endif\n}`),fillPattern:We(`#ifdef GL_ES\nprecision highp float;\n#endif\nuniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;in vec2 v_pos_a;in vec2 v_pos_b;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture(u_image,pos2);fragColor=mix(color1,color2,u_fade)*opacity;\n#ifdef OVERDRAW_INSPECTOR\nfragColor=vec4(1.0);\n#endif\n}`,`uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;uniform vec2 u_fill_translate;in vec2 a_pos;out vec2 v_pos_a;out vec2 v_pos_b;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;gl_Position=projectTile(a_pos+u_fill_translate,a_pos);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileZoomRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileZoomRatio,a_pos);}`),fillExtrusion:We(`in vec4 v_color;void main() {fragColor=v_color;\n#ifdef OVERDRAW_INSPECTOR\nfragColor=vec4(1.0);\n#endif\n}`,`uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp vec3 u_lightpos_globe;uniform lowp float u_lightintensity;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform vec2 u_fill_translate;in vec2 a_pos;in vec4 a_normal_ed;\n#ifdef TERRAIN3D\nin vec2 a_centroid;\n#endif\nout vec4 v_color;\n#pragma mapbox: define highp float base\n#pragma mapbox: define highp float height\n#pragma mapbox: define highp vec4 color\nvoid main() {\n#pragma mapbox: initialize highp float base\n#pragma mapbox: initialize highp float height\n#pragma mapbox: initialize highp vec4 color\nvec3 normal=a_normal_ed.xyz;\n#ifdef TERRAIN3D\nfloat height_terrain3d_offset=get_elevation(a_centroid);float base_terrain3d_offset=height_terrain3d_offset-(base > 0.0 ? 0.0 : 10.0);\n#else\nfloat height_terrain3d_offset=0.0;float base_terrain3d_offset=0.0;\n#endif\nbase=max(0.0,base)+base_terrain3d_offset;height=max(0.0,height)+height_terrain3d_offset;float t=mod(normal.x,2.0);float elevation=t > 0.0 ? height : base;vec2 posInTile=a_pos+u_fill_translate;\n#ifdef GLOBE\nvec3 spherePos=projectToSphere(posInTile,a_pos);gl_Position=interpolateProjectionFor3D(posInTile,spherePos,elevation);\n#else\ngl_Position=u_projection_matrix*vec4(posInTile,elevation,1.0);\n#endif\nfloat colorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;v_color=vec4(0.0,0.0,0.0,1.0);vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;vec3 normalForLighting=normal/16384.0;float directional=clamp(dot(normalForLighting,u_lightpos),0.0,1.0);\n#ifdef GLOBE\nmat3 rotMatrix=globeGetRotationMatrix(spherePos);normalForLighting=rotMatrix*normalForLighting;directional=mix(directional,clamp(dot(normalForLighting,u_lightpos_globe),0.0,1.0),u_projection_transition);\n#endif\ndirectional=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_color.r+=clamp(color.r*directional*u_lightcolor.r,mix(0.0,0.3,1.0-u_lightcolor.r),1.0);v_color.g+=clamp(color.g*directional*u_lightcolor.g,mix(0.0,0.3,1.0-u_lightcolor.g),1.0);v_color.b+=clamp(color.b*directional*u_lightcolor.b,mix(0.0,0.3,1.0-u_lightcolor.b),1.0);v_color*=u_opacity;}`),fillExtrusionPattern:We(`uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;in vec2 v_pos_a;in vec2 v_pos_b;in vec4 v_lighting;\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture(u_image,pos2);vec4 mixedColor=mix(color1,color2,u_fade);fragColor=mixedColor*v_lighting;\n#ifdef OVERDRAW_INSPECTOR\nfragColor=vec4(1.0);\n#endif\n}`,`uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_height_factor;uniform vec3 u_scale;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform vec2 u_fill_translate;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp vec3 u_lightpos_globe;uniform lowp float u_lightintensity;in vec2 a_pos;in vec4 a_normal_ed;\n#ifdef TERRAIN3D\nin vec2 a_centroid;\n#endif\n#ifdef GLOBE\nout vec3 v_sphere_pos;\n#endif\nout vec2 v_pos_a;out vec2 v_pos_b;out vec4 v_lighting;\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec3 normal=a_normal_ed.xyz;float edgedistance=a_normal_ed.w;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;\n#ifdef TERRAIN3D\nfloat height_terrain3d_offset=get_elevation(a_centroid);float base_terrain3d_offset=height_terrain3d_offset-(base > 0.0 ? 0.0 : 10.0);\n#else\nfloat height_terrain3d_offset=0.0;float base_terrain3d_offset=0.0;\n#endif\nbase=max(0.0,base)+base_terrain3d_offset;height=max(0.0,height)+height_terrain3d_offset;float t=mod(normal.x,2.0);float elevation=t > 0.0 ? height : base;vec2 posInTile=a_pos+u_fill_translate;\n#ifdef GLOBE\nvec3 spherePos=projectToSphere(posInTile,a_pos);vec3 elevatedPos=spherePos*(1.0+elevation/GLOBE_RADIUS);v_sphere_pos=elevatedPos;gl_Position=interpolateProjectionFor3D(posInTile,spherePos,elevation);\n#else\ngl_Position=u_projection_matrix*vec4(posInTile,elevation,1.0);\n#endif\nvec2 pos=normal.x==1.0 && normal.y==0.0 && normal.z==16384.0\n? a_pos\n: vec2(edgedistance,elevation*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal/16383.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;}`),hillshadePrepare:We(`#ifdef GL_ES\nprecision highp float;\n#endif\nuniform sampler2D u_image;in vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;uniform vec4 u_unpack;float getElevation(vec2 coord,float bias) {vec4 data=texture(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack);}void main() {vec2 epsilon=1.0/u_dimension;float tileSize=u_dimension.x-2.0;float a=getElevation(v_pos+vec2(-epsilon.x,-epsilon.y),0.0);float b=getElevation(v_pos+vec2(0,-epsilon.y),0.0);float c=getElevation(v_pos+vec2(epsilon.x,-epsilon.y),0.0);float d=getElevation(v_pos+vec2(-epsilon.x,0),0.0);float e=getElevation(v_pos,0.0);float f=getElevation(v_pos+vec2(epsilon.x,0),0.0);float g=getElevation(v_pos+vec2(-epsilon.x,epsilon.y),0.0);float h=getElevation(v_pos+vec2(0,epsilon.y),0.0);float i=getElevation(v_pos+vec2(epsilon.x,epsilon.y),0.0);float exaggerationFactor=u_zoom < 2.0 ? 0.4 : u_zoom < 4.5 ? 0.35 : 0.3;float exaggeration=u_zoom < 15.0 ? (u_zoom-15.0)*exaggerationFactor : 0.0;vec2 deriv=vec2((c+f+f+i)-(a+d+d+g),(g+h+h+i)-(a+b+b+c))*tileSize/pow(2.0,exaggeration+(28.2562-u_zoom));fragColor=clamp(vec4(deriv.x/8.0+0.5,deriv.y/8.0+0.5,1.0,1.0),0.0,1.0);\n#ifdef OVERDRAW_INSPECTOR\nfragColor=vec4(1.0);\n#endif\n}`,\"uniform mat4 u_matrix;uniform vec2 u_dimension;in vec2 a_pos;in vec2 a_texture_pos;out vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}\"),hillshade:We(`uniform sampler2D u_image;in vec2 v_pos;uniform vec2 u_latrange;uniform float u_exaggeration;uniform vec4 u_accent;uniform int u_method;uniform float u_altitudes[NUM_ILLUMINATION_SOURCES];uniform float u_azimuths[NUM_ILLUMINATION_SOURCES];uniform vec4 u_shadows[NUM_ILLUMINATION_SOURCES];uniform vec4 u_highlights[NUM_ILLUMINATION_SOURCES];\n#define PI 3.141592653589793\n#define STANDARD 0\n#define COMBINED 1\n#define IGOR 2\n#define MULTIDIRECTIONAL 3\n#define BASIC 4\nfloat get_aspect(vec2 deriv){return deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/2.0*(deriv.y > 0.0 ? 1.0 :-1.0);}void igor_hillshade(vec2 deriv){deriv=deriv*u_exaggeration*2.0;float aspect=get_aspect(deriv);float azimuth=u_azimuths[0]+PI;float slope_stength=atan(length(deriv))*2.0/PI;float aspect_strength=1.0-abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);float shadow_strength=slope_stength*aspect_strength;float highlight_strength=slope_stength*(1.0-aspect_strength);fragColor=u_shadows[0]*shadow_strength+u_highlights[0]*highlight_strength;}void standard_hillshade(vec2 deriv){float azimuth=u_azimuths[0]+PI;float slope=atan(0.625*length(deriv));float aspect=get_aspect(deriv);float intensity=u_exaggeration;float base=1.875-intensity*1.75;float maxValue=0.5*PI;float scaledSlope=intensity !=0.5 ? ((pow(base,slope)-1.0)/(pow(base,maxValue)-1.0))*maxValue : slope;float accent=cos(scaledSlope);vec4 accent_color=(1.0-accent)*u_accent*clamp(intensity*2.0,0.0,1.0);float shade=abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);vec4 shade_color=mix(u_shadows[0],u_highlights[0],shade)*sin(scaledSlope)*clamp(intensity*2.0,0.0,1.0);fragColor=accent_color*(1.0-shade_color.a)+shade_color;}void basic_hillshade(vec2 deriv){deriv=deriv*u_exaggeration*2.0;float azimuth=u_azimuths[0]+PI;float cos_az=cos(azimuth);float sin_az=sin(azimuth);float cos_alt=cos(u_altitudes[0]);float sin_alt=sin(u_altitudes[0]);float cang=(sin_alt-(deriv.y*cos_az*cos_alt-deriv.x*sin_az*cos_alt))/sqrt(1.0+dot(deriv,deriv));float shade=clamp(cang,0.0,1.0);if(shade > 0.5){fragColor=u_highlights[0]*(2.0*shade-1.0);}else\n{fragColor=u_shadows[0]*(1.0-2.0*shade);}}void multidirectional_hillshade(vec2 deriv){deriv=deriv*u_exaggeration*2.0;fragColor=vec4(0,0,0,0);for(int i=0; i < NUM_ILLUMINATION_SOURCES; i++){float cos_alt=cos(u_altitudes[i]);float sin_alt=sin(u_altitudes[i]);float cos_az=-cos(u_azimuths[i]);float sin_az=-sin(u_azimuths[i]);float cang=(sin_alt-(deriv.y*cos_az*cos_alt-deriv.x*sin_az*cos_alt))/sqrt(1.0+dot(deriv,deriv));float shade=clamp(cang,0.0,1.0);if(shade > 0.5){fragColor+=u_highlights[i]*(2.0*shade-1.0)/float(NUM_ILLUMINATION_SOURCES);}else\n{fragColor+=u_shadows[i]*(1.0-2.0*shade)/float(NUM_ILLUMINATION_SOURCES);}}}void combined_hillshade(vec2 deriv){deriv=deriv*u_exaggeration*2.0;float azimuth=u_azimuths[0]+PI;float cos_az=cos(azimuth);float sin_az=sin(azimuth);float cos_alt=cos(u_altitudes[0]);float sin_alt=sin(u_altitudes[0]);float cang=acos((sin_alt-(deriv.y*cos_az*cos_alt-deriv.x*sin_az*cos_alt))/sqrt(1.0+dot(deriv,deriv)));cang=clamp(cang,0.0,PI/2.0);float shade=cang*atan(length(deriv))*4.0/PI/PI;float highlight=(PI/2.0-cang)*atan(length(deriv))*4.0/PI/PI;fragColor=u_shadows[0]*shade+u_highlights[0]*highlight;}void main() {vec4 pixel=texture(u_image,v_pos);float scaleFactor=cos(radians((u_latrange[0]-u_latrange[1])*(1.0-v_pos.y)+u_latrange[1]));vec2 deriv=((pixel.rg*8.0)-4.0)/scaleFactor;if (u_method==BASIC) {basic_hillshade(deriv);} else if (u_method==COMBINED) {combined_hillshade(deriv);} else if (u_method==IGOR) {igor_hillshade(deriv);} else if (u_method==MULTIDIRECTIONAL) {multidirectional_hillshade(deriv);} else if (u_method==STANDARD) {standard_hillshade(deriv);} else {standard_hillshade(deriv);}\n#ifdef OVERDRAW_INSPECTOR\nfragColor=vec4(1.0);\n#endif\n}`,\"uniform mat4 u_matrix;in vec2 a_pos;out vec2 v_pos;void main() {gl_Position=projectTile(a_pos,a_pos);v_pos=a_pos/8192.0;if (a_pos.y <-32767.5) {v_pos.y=0.0;}if (a_pos.y > 32766.5) {v_pos.y=1.0;}}\"),line:We(`uniform lowp float u_device_pixel_ratio;in vec2 v_width2;in vec2 v_normal;in float v_gamma_scale;\n#ifdef GLOBE\nin float v_depth;\n#endif\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);fragColor=color*(alpha*opacity);\n#ifdef GLOBE\nif (v_depth > 1.0) {discard;}\n#endif\n#ifdef OVERDRAW_INSPECTOR\nfragColor=vec4(1.0);\n#endif\n}`,`\n#define scale 0.015873016\nin vec2 a_pos_normal;in vec4 a_data;uniform vec2 u_translation;uniform mediump float u_ratio;uniform vec2 u_units_to_pixels;uniform lowp float u_device_pixel_ratio;out vec2 v_normal;out vec2 v_width2;out float v_gamma_scale;out highp float v_linesofar;\n#ifdef GLOBE\nout float v_depth;\n#endif\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;v_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);float adjustedThickness=projectLineThickness(pos.y);vec4 projected_no_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation);vec4 projected_with_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation+dist/u_ratio*adjustedThickness);gl_Position=projected_with_extrude;\n#ifdef GLOBE\nv_depth=gl_Position.z/gl_Position.w;\n#endif\n#ifdef TERRAIN3D\nv_gamma_scale=1.0;\n#else\nfloat extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length((projected_with_extrude.xy-projected_no_extrude.xy)/projected_with_extrude.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;\n#endif\nv_width2=vec2(outset,inset);}`),lineGradient:We(`uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;in vec2 v_width2;in vec2 v_normal;in float v_gamma_scale;in highp vec2 v_uv;\n#ifdef GLOBE\nin float v_depth;\n#endif\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);vec4 color=texture(u_image,v_uv);fragColor=color*(alpha*opacity);\n#ifdef GLOBE\nif (v_depth > 1.0) {discard;}\n#endif\n#ifdef OVERDRAW_INSPECTOR\nfragColor=vec4(1.0);\n#endif\n}`,`\n#define scale 0.015873016\nin vec2 a_pos_normal;in vec4 a_data;in float a_uv_x;in float a_split_index;uniform vec2 u_translation;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_units_to_pixels;uniform float u_image_height;out vec2 v_normal;out vec2 v_width2;out float v_gamma_scale;out highp vec2 v_uv;\n#ifdef GLOBE\nout float v_depth;\n#endif\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;highp float texel_height=1.0/u_image_height;highp float half_texel_height=0.5*texel_height;v_uv=vec2(a_uv_x,a_split_index*texel_height-half_texel_height);vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);float adjustedThickness=projectLineThickness(pos.y);vec4 projected_no_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation);vec4 projected_with_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation+dist/u_ratio*adjustedThickness);gl_Position=projected_with_extrude;\n#ifdef GLOBE\nv_depth=gl_Position.z/gl_Position.w;\n#endif\n#ifdef TERRAIN3D\nv_gamma_scale=1.0;\n#else\nfloat extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length((projected_with_extrude.xy-projected_no_extrude.xy)/projected_with_extrude.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;\n#endif\nv_width2=vec2(outset,inset);}`),linePattern:We(`#ifdef GL_ES\nprecision highp float;\n#endif\nuniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_fade;uniform mediump vec3 u_scale;uniform sampler2D u_image;in vec2 v_normal;in vec2 v_width2;in float v_linesofar;in float v_gamma_scale;in float v_width;\n#ifdef GLOBE\nin float v_depth;\n#endif\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;vec2 pattern_size_a=vec2(display_size_a.x*fromScale/tileZoomRatio,display_size_a.y);vec2 pattern_size_b=vec2(display_size_b.x*toScale/tileZoomRatio,display_size_b.y);float aspect_a=display_size_a.y/v_width;float aspect_b=display_size_b.y/v_width;float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float x_a=mod(v_linesofar/pattern_size_a.x*aspect_a,1.0);float x_b=mod(v_linesofar/pattern_size_b.x*aspect_b,1.0);float y=0.5*v_normal.y+0.5;vec2 texel_size=1.0/u_texsize;vec2 pos_a=mix(pattern_tl_a*texel_size-texel_size,pattern_br_a*texel_size+texel_size,vec2(x_a,y));vec2 pos_b=mix(pattern_tl_b*texel_size-texel_size,pattern_br_b*texel_size+texel_size,vec2(x_b,y));vec4 color=mix(texture(u_image,pos_a),texture(u_image,pos_b),u_fade);fragColor=color*alpha*opacity;\n#ifdef GLOBE\nif (v_depth > 1.0) {discard;}\n#endif\n#ifdef OVERDRAW_INSPECTOR\nfragColor=vec4(1.0);\n#endif\n}`,`\n#define scale 0.015873016\n#define LINE_DISTANCE_SCALE 2.0\nin vec2 a_pos_normal;in vec4 a_data;uniform vec2 u_translation;uniform vec2 u_units_to_pixels;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;out vec2 v_normal;out vec2 v_width2;out float v_linesofar;out float v_gamma_scale;out float v_width;\n#ifdef GLOBE\nout float v_depth;\n#endif\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);float adjustedThickness=projectLineThickness(pos.y);vec4 projected_no_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation);vec4 projected_with_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation+dist/u_ratio*adjustedThickness);gl_Position=projected_with_extrude;\n#ifdef GLOBE\nv_depth=gl_Position.z/gl_Position.w;\n#endif\n#ifdef TERRAIN3D\nv_gamma_scale=1.0;\n#else\nfloat extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length((projected_with_extrude.xy-projected_no_extrude.xy)/projected_with_extrude.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;\n#endif\nv_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;}`),lineSDF:We(`uniform lowp float u_device_pixel_ratio;uniform lowp float u_lineatlas_width;uniform sampler2D u_image;uniform float u_mix;in vec2 v_normal;in vec2 v_width2;in vec2 v_tex_a;in vec2 v_tex_b;in float v_gamma_scale;\n#ifdef GLOBE\nin float v_depth;\n#endif\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\n#pragma mapbox: define mediump vec4 dasharray_from\n#pragma mapbox: define mediump vec4 dasharray_to\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\n#pragma mapbox: initialize mediump vec4 dasharray_from\n#pragma mapbox: initialize mediump vec4 dasharray_to\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float sdfdist_a=texture(u_image,v_tex_a).a;float sdfdist_b=texture(u_image,v_tex_b).a;float sdfdist=mix(sdfdist_a,sdfdist_b,u_mix);float sdfgamma=(u_lineatlas_width/256.0/u_device_pixel_ratio)/min(dasharray_from.w,dasharray_to.w);alpha*=smoothstep(0.5-sdfgamma/floorwidth,0.5+sdfgamma/floorwidth,sdfdist);fragColor=color*(alpha*opacity);\n#ifdef GLOBE\nif (v_depth > 1.0) {discard;}\n#endif\n#ifdef OVERDRAW_INSPECTOR\nfragColor=vec4(1.0);\n#endif\n}`,`\n#define scale 0.015873016\n#define LINE_DISTANCE_SCALE 2.0\nin vec2 a_pos_normal;in vec4 a_data;uniform vec2 u_translation;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_units_to_pixels;uniform float u_tileratio;uniform float u_crossfade_from;uniform float u_crossfade_to;uniform float u_lineatlas_height;out vec2 v_normal;out vec2 v_width2;out vec2 v_tex_a;out vec2 v_tex_b;out float v_gamma_scale;\n#ifdef GLOBE\nout float v_depth;\n#endif\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\n#pragma mapbox: define mediump vec4 dasharray_from\n#pragma mapbox: define mediump vec4 dasharray_to\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\n#pragma mapbox: initialize mediump vec4 dasharray_from\n#pragma mapbox: initialize mediump vec4 dasharray_to\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);float adjustedThickness=projectLineThickness(pos.y);vec4 projected_no_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation);vec4 projected_with_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation+dist/u_ratio*adjustedThickness);gl_Position=projected_with_extrude;\n#ifdef GLOBE\nv_depth=gl_Position.z/gl_Position.w;\n#endif\n#ifdef TERRAIN3D\nv_gamma_scale=1.0;\n#else\nfloat extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length((projected_with_extrude.xy-projected_no_extrude.xy)/projected_with_extrude.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;\n#endif\nfloat u_patternscale_a_x=u_tileratio/dasharray_from.w/u_crossfade_from;float u_patternscale_a_y=-dasharray_from.z/2.0/u_lineatlas_height;float u_patternscale_b_x=u_tileratio/dasharray_to.w/u_crossfade_to;float u_patternscale_b_y=-dasharray_to.z/2.0/u_lineatlas_height;v_tex_a=vec2(a_linesofar*u_patternscale_a_x/floorwidth,normal.y*u_patternscale_a_y+(float(dasharray_from.y)+0.5)/u_lineatlas_height);v_tex_b=vec2(a_linesofar*u_patternscale_b_x/floorwidth,normal.y*u_patternscale_b_y+(float(dasharray_to.y)+0.5)/u_lineatlas_height);v_width2=vec2(outset,inset);}`),lineGradientSDF:We(`uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;uniform sampler2D u_image_dash;uniform float u_mix;uniform lowp float u_lineatlas_width;in vec2 v_normal;in vec2 v_width2;in vec2 v_tex_a;in vec2 v_tex_b;in float v_gamma_scale;in highp vec2 v_uv;\n#ifdef GLOBE\nin float v_depth;\n#endif\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\n#pragma mapbox: define mediump vec4 dasharray_from\n#pragma mapbox: define mediump vec4 dasharray_to\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\n#pragma mapbox: initialize mediump vec4 dasharray_from\n#pragma mapbox: initialize mediump vec4 dasharray_to\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);vec4 color=texture(u_image,v_uv);float sdfdist_a=texture(u_image_dash,v_tex_a).a;float sdfdist_b=texture(u_image_dash,v_tex_b).a;float sdfdist=mix(sdfdist_a,sdfdist_b,u_mix);float sdfgamma=(u_lineatlas_width/256.0)/min(dasharray_from.w,dasharray_to.w);float dash_alpha=smoothstep(0.5-sdfgamma/floorwidth,0.5+sdfgamma/floorwidth,sdfdist);fragColor=color*(alpha*dash_alpha*opacity);\n#ifdef GLOBE\nif (v_depth > 1.0) {discard;}\n#endif\n#ifdef OVERDRAW_INSPECTOR\nfragColor=vec4(1.0);\n#endif\n}`,`\n#define scale 0.015873016\n#define LINE_DISTANCE_SCALE 2.0\nin vec2 a_pos_normal;in vec4 a_data;in float a_uv_x;in float a_split_index;uniform vec2 u_translation;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_units_to_pixels;uniform float u_image_height;uniform float u_tileratio;uniform float u_crossfade_from;uniform float u_crossfade_to;uniform float u_lineatlas_height;out vec2 v_normal;out vec2 v_width2;out float v_gamma_scale;out highp vec2 v_uv;out vec2 v_tex_a;out vec2 v_tex_b;\n#ifdef GLOBE\nout float v_depth;\n#endif\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\n#pragma mapbox: define mediump vec4 dasharray_from\n#pragma mapbox: define mediump vec4 dasharray_to\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\n#pragma mapbox: initialize mediump vec4 dasharray_from\n#pragma mapbox: initialize mediump vec4 dasharray_to\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;float texel_height=1.0/u_image_height;float half_texel_height=0.5*texel_height;v_uv=vec2(a_uv_x,a_split_index*texel_height-half_texel_height);vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);float adjustedThickness=projectLineThickness(pos.y);vec4 projected_no_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation);vec4 projected_with_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation+dist/u_ratio*adjustedThickness);gl_Position=projected_with_extrude;\n#ifdef GLOBE\nv_depth=gl_Position.z/gl_Position.w;\n#endif\n#ifdef TERRAIN3D\nv_gamma_scale=1.0;\n#else\nfloat extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length((projected_with_extrude.xy-projected_no_extrude.xy)/projected_with_extrude.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;\n#endif\nfloat u_patternscale_a_x=u_tileratio/dasharray_from.w/u_crossfade_from;float u_patternscale_a_y=-dasharray_from.z/2.0/u_lineatlas_height;float u_patternscale_b_x=u_tileratio/dasharray_to.w/u_crossfade_to;float u_patternscale_b_y=-dasharray_to.z/2.0/u_lineatlas_height;v_tex_a=vec2(a_linesofar*u_patternscale_a_x/floorwidth,normal.y*u_patternscale_a_y+(float(dasharray_from.y)+0.5)/u_lineatlas_height);v_tex_b=vec2(a_linesofar*u_patternscale_b_x/floorwidth,normal.y*u_patternscale_b_y+(float(dasharray_to.y)+0.5)/u_lineatlas_height);v_width2=vec2(outset,inset);}`),raster:We(`uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;in vec2 v_pos0;in vec2 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;void main() {vec4 color0=texture(u_image0,v_pos0);vec4 color1=texture(u_image1,v_pos1);if (color0.a > 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a > 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(dot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);fragColor=vec4(mix(u_high_vec,u_low_vec,rgb)*color.a,color.a);\n#ifdef OVERDRAW_INSPECTOR\nfragColor=vec4(1.0);\n#endif\n}`,`uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform float u_buffer_scale;uniform vec4 u_coords_top;uniform vec4 u_coords_bottom;in vec2 a_pos;out vec2 v_pos0;out vec2 v_pos1;void main() {vec2 fractionalPos=a_pos/8192.0;vec2 position=mix(mix(u_coords_top.xy,u_coords_top.zw,fractionalPos.x),mix(u_coords_bottom.xy,u_coords_bottom.zw,fractionalPos.x),fractionalPos.y);gl_Position=projectTile(position,position);v_pos0=((fractionalPos-0.5)/u_buffer_scale)+0.5;\n#ifdef GLOBE\nif (a_pos.y <-32767.5) {v_pos0.y=0.0;}if (a_pos.y > 32766.5) {v_pos0.y=1.0;}\n#endif\nv_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}`),symbolIcon:We(`uniform sampler2D u_texture;in vec2 v_tex;in float v_total_opacity;void main() {fragColor=texture(u_texture,v_tex)*v_total_opacity;\n#ifdef OVERDRAW_INSPECTOR\nfragColor=vec4(1.0);\n#endif\n}`,`in vec4 a_pos_offset;in vec4 a_data;in vec4 a_pixeloffset;in vec3 a_projected_pos;in float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform highp float u_camera_to_center_distance;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform float u_fade_change;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform vec2 u_texsize;uniform bool u_is_along_line;uniform bool u_is_variable_anchor;uniform vec2 u_translation;uniform float u_pitched_scale;out vec2 v_tex;out float v_total_opacity;\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;vec2 a_minFontScale=a_pixeloffset.zw/256.0;float ele=get_elevation(a_pos);highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 translated_a_pos=a_pos+u_translation;vec4 projectedPoint=projectTileWithElevation(translated_a_pos,ele);vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float visibility=calculate_visibility(projectedPoint);v_total_opacity=opacity*max(0.0,min(visibility,fade_opacity[0]+fade_change));if (v_total_opacity < 0.1){gl_Position=vec4(-2.,-2.,-2.,1.);return;}highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=projectTileWithElevation(translated_a_pos+vec2(1,0),ele);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos;if (u_is_along_line || u_is_variable_anchor) {projected_pos=vec4(a_projected_pos.xy,ele,1.0);} else if (u_pitch_with_map) {projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy+u_translation,ele,1.0);} else {projected_pos=u_label_plane_matrix*projectTileWithElevation(a_projected_pos.xy+u_translation,ele);}float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;float projectionScaling=1.0;\n#ifdef GLOBE\nif(u_pitch_with_map) {float anchor_pos_tile_y=(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w,z,1.0)).y;projectionScaling=mix(projectionScaling,1.0/circumferenceRatioAtTileY(anchor_pos_tile_y)*u_pitched_scale,u_projection_transition);}\n#endif\nvec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}gl_Position=finalPos;v_tex=a_tex/u_texsize;}`),symbolSDF:We(`#define SDF_PX 8.0\nuniform bool u_is_halo;uniform bool u_is_plain;uniform sampler2D u_texture;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;uniform bool u_is_text;in vec2 v_data0;in vec3 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat EDGE_GAMMA=0.105/u_device_pixel_ratio;vec2 tex=v_data0.xy;float gamma_scale=v_data1.x;float size=v_data1.y;float total_opacity=v_data1[2];float fontScale=u_is_text ? size/24.0 : size;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float inner_edge=(256.0-64.0)/256.0;lowp float dist=texture(u_texture,tex).a;lowp vec4 color_alpha_out_text,color_alpha_out_halo;if (u_is_plain){highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(inner_edge-gamma_scaled,inner_edge+gamma_scaled,dist);color_alpha_out_text=total_opacity*alpha*fill_color;}if (u_is_halo) {float gamma_halo=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);float inner_edge_halo=inner_edge+gamma_halo*gamma_scale;highp float gamma_scaled_halo=gamma_halo*gamma_scale;highp float alpha_halo=smoothstep(inner_edge_halo-gamma_scaled_halo,inner_edge_halo+gamma_scaled_halo,dist);highp float halo_edge=(6.0-halo_width/fontScale)/SDF_PX;alpha_halo= min(smoothstep(halo_edge-gamma_scaled_halo,halo_edge+gamma_scaled_halo,dist),1.0-alpha_halo);color_alpha_out_halo=total_opacity*alpha_halo*halo_color;}if (u_is_plain && u_is_halo) {fragColor=color_alpha_out_text+(1.-color_alpha_out_text.a)*color_alpha_out_halo;} else if (u_is_halo){fragColor=color_alpha_out_halo;} else {fragColor=color_alpha_out_text;}\n#ifdef OVERDRAW_INSPECTOR\nfragColor=vec4(1.0);\n#endif\n}`,`in vec4 a_pos_offset;in vec4 a_data;in vec4 a_pixeloffset;in vec3 a_projected_pos;in float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform bool u_is_along_line;uniform bool u_is_variable_anchor;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec2 u_translation;uniform float u_pitched_scale;out vec2 v_data0;out vec3 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy/16.0;vec2 a_minFontScale=a_pixeloffset.zw/256.0;float ele=get_elevation(a_pos);highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 translated_a_pos=a_pos+u_translation;vec4 projectedPoint=projectTileWithElevation(translated_a_pos,ele);vec2 fade_opacity=unpack_opacity(a_fade_opacity);float visibility=calculate_visibility(projectedPoint);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));float total_opacity=opacity*interpolated_fade_opacity;if (total_opacity < 0.1){gl_Position=vec4(-2.,-2.,-2.,1.);return;}highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=projectTileWithElevation(translated_a_pos+vec2(1,0),ele);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos;if (u_is_along_line || u_is_variable_anchor) {projected_pos=vec4(a_projected_pos.xy,ele,1.0);} else if (u_pitch_with_map) {projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy+u_translation,ele,1.0);} else {projected_pos=u_label_plane_matrix*projectTileWithElevation(a_projected_pos.xy+u_translation,ele);}float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;float projectionScaling=1.0;\n#ifdef GLOBE\nif(u_pitch_with_map) {float anchor_pos_tile_y=(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w,z,1.0)).y;projectionScaling=mix(projectionScaling,1.0/circumferenceRatioAtTileY(anchor_pos_tile_y)*u_pitched_scale,u_projection_transition);}\n#endif\nvec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}float gamma_scale=finalPos.w;gl_Position=finalPos;v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,total_opacity);}`),symbolTextAndIcon:We(`#define SDF_PX 8.0\n#define SDF 1.0\n#define ICON 0.0\nuniform bool u_is_halo;uniform bool u_is_text;uniform sampler2D u_texture;uniform sampler2D u_texture_icon;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;in vec4 v_data0;in vec4 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat total_opacity=v_data1[2];if (v_data1.w==ICON) {vec2 tex_icon=v_data0.zw;fragColor=texture(u_texture_icon,tex_icon)*total_opacity;\n#ifdef OVERDRAW_INSPECTOR\nfragColor=vec4(1.0);\n#endif\nreturn;}vec2 tex=v_data0.xy;float EDGE_GAMMA=0.105/u_device_pixel_ratio;float gamma_scale=v_data1.x;float size=v_data1.y;float fontScale=size/24.0;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;lowp float dist=texture(u_texture,tex).a;lowp vec4 color_alpha_out,color_alpha_out_halo;if (u_is_text) {highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);color_alpha_out=fill_color*(alpha*total_opacity);}if (u_is_halo) {highp float gamma_halo=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);lowp float buff_halo=(6.0-halo_width/fontScale)/SDF_PX;highp float gamma_scaled_halo=gamma_halo*gamma_scale;highp float alpha_halo=smoothstep(buff_halo-gamma_scaled_halo,buff_halo+gamma_scaled_halo,dist);color_alpha_out_halo=halo_color*(alpha_halo*total_opacity);}if (u_is_text && u_is_halo) {fragColor=color_alpha_out+(1.-color_alpha_out.a)*color_alpha_out_halo;} else if (u_is_halo) {fragColor=color_alpha_out_halo;} else {fragColor=color_alpha_out;}\n#ifdef OVERDRAW_INSPECTOR\nfragColor=vec4(1.0);\n#endif\n}`,`in vec4 a_pos_offset;in vec4 a_data;in vec3 a_projected_pos;in float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec2 u_texsize_icon;uniform bool u_is_along_line;uniform bool u_is_variable_anchor;uniform vec2 u_translation;uniform float u_pitched_scale;out vec4 v_data0;out vec4 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;float ele=get_elevation(a_pos);highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 translated_a_pos=a_pos+u_translation;vec4 projectedPoint=projectTileWithElevation(translated_a_pos,ele);vec2 fade_opacity=unpack_opacity(a_fade_opacity);float visibility=calculate_visibility(projectedPoint);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));float total_opacity=opacity*interpolated_fade_opacity;if (total_opacity < 0.1){gl_Position=vec4(-2.,-2.,-2.,1.);return;}highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=projectTileWithElevation(translated_a_pos+vec2(1,0),ele);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos;if (u_is_along_line || u_is_variable_anchor) {projected_pos=vec4(a_projected_pos.xy,ele,1.0);} else if (u_pitch_with_map) {projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy+u_translation,ele,1.0);} else {projected_pos=u_label_plane_matrix*projectTileWithElevation(a_projected_pos.xy+u_translation,ele);}float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;float projectionScaling=1.0;\n#ifdef GLOBE\nif(u_pitch_with_map && !u_is_along_line) {float anchor_pos_tile_y=(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w,z,1.0)).y;projectionScaling=mix(projectionScaling,1.0/circumferenceRatioAtTileY(anchor_pos_tile_y)*u_pitched_scale,u_projection_transition);}\n#endif\nvec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}float gamma_scale=finalPos.w;gl_Position=finalPos;v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,total_opacity,is_sdf);}`),terrain:We(\"uniform sampler2D u_texture;uniform vec4 u_fog_color;uniform vec4 u_horizon_color;uniform float u_fog_ground_blend;uniform float u_fog_ground_blend_opacity;uniform float u_horizon_fog_blend;uniform bool u_is_globe_mode;in vec2 v_texture_pos;in float v_fog_depth;const float gamma=2.2;vec4 gammaToLinear(vec4 color) {return pow(color,vec4(gamma));}vec4 linearToGamma(vec4 color) {return pow(color,vec4(1.0/gamma));}void main() {vec4 surface_color=texture(u_texture,vec2(v_texture_pos.x,1.0-v_texture_pos.y));if (!u_is_globe_mode && u_fog_ground_blend_opacity > 0.0 && v_fog_depth > u_fog_ground_blend) {vec4 surface_color_linear=gammaToLinear(surface_color);float blend_color=smoothstep(0.0,1.0,max((v_fog_depth-u_horizon_fog_blend)/(1.0-u_horizon_fog_blend),0.0));vec4 fog_horizon_color_linear=mix(gammaToLinear(u_fog_color),gammaToLinear(u_horizon_color),blend_color);float factor_fog=max(v_fog_depth-u_fog_ground_blend,0.0)/(1.0-u_fog_ground_blend);fragColor=linearToGamma(mix(surface_color_linear,fog_horizon_color_linear,pow(factor_fog,2.0)*u_fog_ground_blend_opacity));} else {fragColor=surface_color;}}\",\"in vec3 a_pos3d;uniform mat4 u_fog_matrix;uniform float u_ele_delta;out vec2 v_texture_pos;out float v_fog_depth;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;v_texture_pos=a_pos3d.xy/8192.0;gl_Position=projectTileFor3D(a_pos3d.xy,ele-ele_delta);vec4 pos=u_fog_matrix*vec4(a_pos3d.xy,ele,1.0);v_fog_depth=pos.z/pos.w*0.5+0.5;}\"),terrainDepth:We(\"in float v_depth;const highp vec4 bitSh=vec4(256.*256.*256.,256.*256.,256.,1.);const highp vec4 bitMsk=vec4(0.,vec3(1./256.0));highp vec4 pack(highp float value) {highp vec4 comp=fract(value*bitSh);comp-=comp.xxyz*bitMsk;return comp;}void main() {fragColor=pack(v_depth);}\",\"in vec3 a_pos3d;uniform float u_ele_delta;out float v_depth;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;gl_Position=projectTileFor3D(a_pos3d.xy,ele-ele_delta);v_depth=gl_Position.z/gl_Position.w;}\"),terrainCoords:We(\"precision mediump float;uniform sampler2D u_texture;uniform float u_terrain_coords_id;in vec2 v_texture_pos;void main() {vec4 rgba=texture(u_texture,v_texture_pos);fragColor=vec4(rgba.r,rgba.g,rgba.b,u_terrain_coords_id);}\",\"in vec3 a_pos3d;uniform float u_ele_delta;out vec2 v_texture_pos;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;v_texture_pos=a_pos3d.xy/8192.0;gl_Position=projectTileFor3D(a_pos3d.xy,ele-ele_delta);}\"),projectionErrorMeasurement:We(\"in vec4 v_output_error_encoded;void main() {fragColor=v_output_error_encoded;}\",\"in vec2 a_pos;uniform highp float u_input;uniform highp float u_output_expected;out vec4 v_output_error_encoded;void main() {float real_output=2.0*atan(exp(PI-(u_input*PI*2.0)))-PI*0.5;float error=real_output-u_output_expected;float abs_error=abs(error)*128.0;v_output_error_encoded.x=min(floor(abs_error*256.0),255.0)/255.0;abs_error-=v_output_error_encoded.x;v_output_error_encoded.y=min(floor(abs_error*65536.0),255.0)/255.0;abs_error-=v_output_error_encoded.x/255.0;v_output_error_encoded.z=min(floor(abs_error*16777216.0),255.0)/255.0;v_output_error_encoded.w=error >=0.0 ? 1.0 : 0.0;gl_Position=vec4(a_pos,0.0,1.0);}\"),atmosphere:We(`#ifdef GL_ES\nprecision highp float;\n#endif\nin vec3 view_direction;uniform vec3 u_sun_pos;uniform vec3 u_globe_position;uniform float u_globe_radius;uniform float u_atmosphere_blend;/**Shader use from https:*Made some change to adapt to MapLibre Globe geometry*/const float PI=3.141592653589793;const int iSteps=5;const int jSteps=3;/*radius of the planet*/const float EARTH_RADIUS=6371e3;/*radius of the atmosphere*/const float ATMOS_RADIUS=6471e3;vec2 rsi(vec3 r0,vec3 rd,float sr) {float a=dot(rd,rd);float b=2.0*dot(rd,r0);float c=dot(r0,r0)-(sr*sr);float d=(b*b)-4.0*a*c;if (d < 0.0) return vec2(1e5,-1e5);return vec2((-b-sqrt(d))/(2.0*a),(-b+sqrt(d))/(2.0*a));}vec4 atmosphere(vec3 r,vec3 r0,vec3 pSun,float iSun,float rPlanet,float rAtmos,vec3 kRlh,float kMie,float shRlh,float shMie,float g) {pSun=normalize(pSun);r=normalize(r);vec2 p=rsi(r0,r,rAtmos);if (p.x > p.y) {return vec4(0.0,0.0,0.0,1.0);}if (p.x < 0.0) {p.x=0.0;}vec3 pos=r0+r*p.x;vec2 p2=rsi(r0,r,rPlanet);if (p2.x <=p2.y && p2.x > 0.0) {p.y=min(p.y,p2.x);}float iStepSize=(p.y-p.x)/float(iSteps);float iTime=p.x+iStepSize*0.5;vec3 totalRlh=vec3(0,0,0);vec3 totalMie=vec3(0,0,0);float iOdRlh=0.0;float iOdMie=0.0;float mu=dot(r,pSun);float mumu=mu*mu;float gg=g*g;float pRlh=3.0/(16.0*PI)*(1.0+mumu);float pMie=3.0/(8.0*PI)*((1.0-gg)*(mumu+1.0))/(pow(1.0+gg-2.0*mu*g,1.5)*(2.0+gg));for (int i=0; i < iSteps; i++) {vec3 iPos=r0+r*iTime;float iHeight=length(iPos)-rPlanet;float odStepRlh=exp(-iHeight/shRlh)*iStepSize;float odStepMie=exp(-iHeight/shMie)*iStepSize;iOdRlh+=odStepRlh;iOdMie+=odStepMie;float jStepSize=rsi(iPos,pSun,rAtmos).y/float(jSteps);float jTime=jStepSize*0.5;float jOdRlh=0.0;float jOdMie=0.0;for (int j=0; j < jSteps; j++) {vec3 jPos=iPos+pSun*jTime;float jHeight=length(jPos)-rPlanet;jOdRlh+=exp(-jHeight/shRlh)*jStepSize;jOdMie+=exp(-jHeight/shMie)*jStepSize;jTime+=jStepSize;}vec3 attn=exp(-(kMie*(iOdMie+jOdMie)+kRlh*(iOdRlh+jOdRlh)));totalRlh+=odStepRlh*attn;totalMie+=odStepMie*attn;iTime+=iStepSize;}float opacity=exp(-(length(kRlh)*length(totalRlh)+kMie*length(totalMie)));vec3 color=iSun*(pRlh*kRlh*totalRlh+pMie*kMie*totalMie);return vec4(color,opacity);}void main() {vec3 scale_camera_pos=-u_globe_position*EARTH_RADIUS/u_globe_radius;vec4 color=atmosphere(normalize(view_direction),scale_camera_pos,u_sun_pos,22.0,EARTH_RADIUS,ATMOS_RADIUS,vec3(5.5e-6,13.0e-6,22.4e-6),21e-6,8e3,1.2e3,0.758\n);color.rgb=1.0-exp(-1.0*color.rgb);color=pow(color,vec4(1.0/2.2));fragColor=vec4(color.rgb,1.0-color.a)*u_atmosphere_blend;}`,\"in vec2 a_pos;uniform mat4 u_inv_proj_matrix;out vec3 view_direction;void main() {view_direction=(u_inv_proj_matrix*vec4(a_pos,0.0,1.0)).xyz;gl_Position=vec4(a_pos,0.0,1.0);}\"),sky:We(\"uniform vec4 u_sky_color;uniform vec4 u_horizon_color;uniform vec2 u_horizon;uniform vec2 u_horizon_normal;uniform float u_sky_horizon_blend;uniform float u_sky_blend;void main() {float x=gl_FragCoord.x;float y=gl_FragCoord.y;float blend=(y-u_horizon.y)*u_horizon_normal.y+(x-u_horizon.x)*u_horizon_normal.x;if (blend > 0.0) {if (blend < u_sky_horizon_blend) {fragColor=mix(u_sky_color,u_horizon_color,pow(1.0-blend/u_sky_horizon_blend,2.0));} else {fragColor=u_sky_color;}}fragColor=mix(fragColor,vec4(vec3(0.0),0.0),u_sky_blend);}\",\"in vec2 a_pos;void main() {gl_Position=vec4(a_pos,1.0,1.0);}\")};function We(d,t){let n=/#pragma mapbox: ([\\w]+) ([\\w]+) ([\\w]+) ([\\w]+)/g,s=t.match(/in ([\\w]+) ([\\w]+)/g),c=d.match(/uniform ([\\w]+) ([\\w]+)([\\s]*)([\\w]*)/g),f=t.match(/uniform ([\\w]+) ([\\w]+)([\\s]*)([\\w]*)/g),y=f?f.concat(c):c,x={};return{fragmentSource:d=d.replace(n,((w,S,M,E,I)=>(x[I]=!0,S===\"define\"?`\n#ifndef HAS_UNIFORM_u_${I}\nin ${M} ${E} ${I};\n#else\nuniform ${M} ${E} u_${I};\n#endif\n`:`\n#ifdef HAS_UNIFORM_u_${I}\n ${M} ${E} ${I} = u_${I};\n#endif\n`))),vertexSource:t=t.replace(n,((w,S,M,E,I)=>{let D=E===\"float\"?\"vec2\":\"vec4\",B=I.match(/color/)?\"color\":D;return x[I]?S===\"define\"?`\n#ifndef HAS_UNIFORM_u_${I}\nuniform lowp float u_${I}_t;\nin ${M} ${D} a_${I};\nout ${M} ${E} ${I};\n#else\nuniform ${M} ${E} u_${I};\n#endif\n`:B===\"vec4\"?`\n#ifndef HAS_UNIFORM_u_${I}\n ${I} = a_${I};\n#else\n ${M} ${E} ${I} = u_${I};\n#endif\n`:`\n#ifndef HAS_UNIFORM_u_${I}\n ${I} = unpack_mix_${B}(a_${I}, u_${I}_t);\n#else\n ${M} ${E} ${I} = u_${I};\n#endif\n`:S===\"define\"?`\n#ifndef HAS_UNIFORM_u_${I}\nuniform lowp float u_${I}_t;\nin ${M} ${D} a_${I};\n#else\nuniform ${M} ${E} u_${I};\n#endif\n`:B===\"vec4\"?`\n#ifndef HAS_UNIFORM_u_${I}\n ${M} ${E} ${I} = a_${I};\n#else\n ${M} ${E} ${I} = u_${I};\n#endif\n`:`\n#ifndef HAS_UNIFORM_u_${I}\n ${M} ${E} ${I} = unpack_mix_${B}(a_${I}, u_${I}_t);\n#else\n ${M} ${E} ${I} = u_${I};\n#endif\n`})),staticAttributes:s,staticUniforms:y}}class Pt{constructor(t,n,s){this.vertexBuffer=t,this.indexBuffer=n,this.segments=s}destroy(){this.vertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.vertexBuffer=null,this.indexBuffer=null,this.segments=null}}var Yr=h.aS([{name:\"a_pos\",type:\"Int16\",components:2}]);let Ci=\"#define PROJECTION_MERCATOR\",$i=\"mercator\";class Ei{constructor(){this._cachedMesh=null}get name(){return\"mercator\"}get useSubdivision(){return!1}get shaderVariantName(){return $i}get shaderDefine(){return Ci}get shaderPreludeCode(){return Rt.projectionMercator}get vertexShaderPreludeCode(){return Rt.projectionMercator.vertexSource}get subdivisionGranularity(){return h.aT.noSubdivision}get useGlobeControls(){return!1}get transitionState(){return 0}get latitudeErrorCorrectionRadians(){return 0}destroy(){}updateGPUdependent(t){}getMeshFromTileID(t,n,s,c,f){if(this._cachedMesh)return this._cachedMesh;let y=new h.aU;y.emplaceBack(0,0),y.emplaceBack(h.a6,0),y.emplaceBack(0,h.a6),y.emplaceBack(h.a6,h.a6);let x=t.createVertexBuffer(y,Yr.members),w=h.aV.simpleSegment(0,0,4,2),S=new h.aW;S.emplaceBack(1,0,2),S.emplaceBack(1,2,3);let M=t.createIndexBuffer(S);return this._cachedMesh=new Pt(x,M,w),this._cachedMesh}recalculate(){}hasTransition(){return!1}setErrorQueryLatitudeDegrees(t){}}class Xn{constructor(t=0,n=0,s=0,c=0){if(isNaN(t)||t<0||isNaN(n)||n<0||isNaN(s)||s<0||isNaN(c)||c<0)throw new Error(\"Invalid value for edge-insets, top, bottom, left and right must all be numbers\");this.top=t,this.bottom=n,this.left=s,this.right=c}interpolate(t,n,s){return n.top!=null&&t.top!=null&&(this.top=h.H.number(t.top,n.top,s)),n.bottom!=null&&t.bottom!=null&&(this.bottom=h.H.number(t.bottom,n.bottom,s)),n.left!=null&&t.left!=null&&(this.left=h.H.number(t.left,n.left,s)),n.right!=null&&t.right!=null&&(this.right=h.H.number(t.right,n.right,s)),this}getCenter(t,n){let s=h.al((this.left+t-this.right)/2,0,t),c=h.al((this.top+n-this.bottom)/2,0,n);return new h.P(s,c)}equals(t){return this.top===t.top&&this.bottom===t.bottom&&this.left===t.left&&this.right===t.right}clone(){return new Xn(this.top,this.bottom,this.left,this.right)}toJSON(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}}function Kr(d,t){if(!d.renderWorldCopies||d.lngRange)return;let n=t.lng-d.center.lng;t.lng+=n>180?-360:n<-180?360:0}function qt(d){return Math.max(0,Math.floor(d))}class _n{constructor(t,n){var s;this.applyConstrain=(c,f)=>this._constrainOverride!==null?this._constrainOverride(c,f):this._callbacks.defaultConstrain(c,f),this._callbacks=t,this._tileSize=512,this._renderWorldCopies=n?.renderWorldCopies===void 0||!!n?.renderWorldCopies,this._minZoom=n?.minZoom||0,this._maxZoom=n?.maxZoom||22,this._minPitch=n?.minPitch==null?0:n?.minPitch,this._maxPitch=n?.maxPitch==null?60:n?.maxPitch,this._constrainOverride=(s=n?.constrainOverride)!==null&&s!==void 0?s:null,this.setMaxBounds(),this._width=0,this._height=0,this._center=new h.W(0,0),this._elevation=0,this._zoom=0,this._tileZoom=qt(this._zoom),this._scale=h.ao(this._zoom),this._bearingInRadians=0,this._fovInRadians=.6435011087932844,this._pitchInRadians=0,this._rollInRadians=0,this._unmodified=!0,this._edgeInsets=new Xn,this._minElevationForCurrentTile=0,this._autoCalculateNearFarZ=!0}apply(t,n,s){this._constrainOverride=t.constrainOverride,this._latRange=t.latRange,this._lngRange=t.lngRange,this._width=t.width,this._height=t.height,this._center=t.center,this._elevation=t.elevation,this._minElevationForCurrentTile=t.minElevationForCurrentTile,this._zoom=t.zoom,this._tileZoom=qt(this._zoom),this._scale=h.ao(this._zoom),this._bearingInRadians=t.bearingInRadians,this._fovInRadians=t.fovInRadians,this._pitchInRadians=t.pitchInRadians,this._rollInRadians=t.rollInRadians,this._unmodified=t.unmodified,this._edgeInsets=new Xn(t.padding.top,t.padding.bottom,t.padding.left,t.padding.right),this._minZoom=t.minZoom,this._maxZoom=t.maxZoom,this._minPitch=t.minPitch,this._maxPitch=t.maxPitch,this._renderWorldCopies=t.renderWorldCopies,this._cameraToCenterDistance=t.cameraToCenterDistance,this._nearZ=t.nearZ,this._farZ=t.farZ,this._autoCalculateNearFarZ=!s&&t.autoCalculateNearFarZ,n&&this.constrainInternal(),this._calcMatrices()}get pixelsToClipSpaceMatrix(){return this._pixelsToClipSpaceMatrix}get clipSpaceToPixelsMatrix(){return this._clipSpaceToPixelsMatrix}get minElevationForCurrentTile(){return this._minElevationForCurrentTile}setMinElevationForCurrentTile(t){this._minElevationForCurrentTile=t}get tileSize(){return this._tileSize}get tileZoom(){return this._tileZoom}get scale(){return this._scale}get width(){return this._width}get height(){return this._height}get bearingInRadians(){return this._bearingInRadians}get lngRange(){return this._lngRange}get latRange(){return this._latRange}get pixelsToGLUnits(){return this._pixelsToGLUnits}get minZoom(){return this._minZoom}setMinZoom(t){this._minZoom!==t&&(this._minZoom=t,this.setZoom(this.applyConstrain(this._center,this.zoom).zoom))}get maxZoom(){return this._maxZoom}setMaxZoom(t){this._maxZoom!==t&&(this._maxZoom=t,this.setZoom(this.applyConstrain(this._center,this.zoom).zoom))}get minPitch(){return this._minPitch}setMinPitch(t){this._minPitch!==t&&(this._minPitch=t,this.setPitch(Math.max(this.pitch,t)))}get maxPitch(){return this._maxPitch}setMaxPitch(t){this._maxPitch!==t&&(this._maxPitch=t,this.setPitch(Math.min(this.pitch,t)))}get renderWorldCopies(){return this._renderWorldCopies}setRenderWorldCopies(t){t===void 0?t=!0:t===null&&(t=!1),this._renderWorldCopies=t}get constrainOverride(){return this._constrainOverride}setConstrainOverride(t){t===void 0&&(t=null),this._constrainOverride!==t&&(this._constrainOverride=t,this.constrainInternal(),this._calcMatrices())}get worldSize(){return this._tileSize*this._scale}get centerOffset(){return this.centerPoint._sub(this.size._div(2))}get size(){return new h.P(this._width,this._height)}get bearing(){return this._bearingInRadians/Math.PI*180}setBearing(t){let n=h.X(t,-180,180)*Math.PI/180;var s,c,f,y,x,w,S,M,E;this._bearingInRadians!==n&&(this._unmodified=!1,this._bearingInRadians=n,this._calcMatrices(),this._rotationMatrix=Ve(),s=this._rotationMatrix,f=-this._bearingInRadians,y=(c=this._rotationMatrix)[0],x=c[1],w=c[2],S=c[3],M=Math.sin(f),E=Math.cos(f),s[0]=y*E+w*M,s[1]=x*E+S*M,s[2]=y*-M+w*E,s[3]=x*-M+S*E)}get rotationMatrix(){return this._rotationMatrix}get pitchInRadians(){return this._pitchInRadians}get pitch(){return this._pitchInRadians/Math.PI*180}setPitch(t){let n=h.al(t,this.minPitch,this.maxPitch)/180*Math.PI;this._pitchInRadians!==n&&(this._unmodified=!1,this._pitchInRadians=n,this._calcMatrices())}get rollInRadians(){return this._rollInRadians}get roll(){return this._rollInRadians/Math.PI*180}setRoll(t){let n=t/180*Math.PI;this._rollInRadians!==n&&(this._unmodified=!1,this._rollInRadians=n,this._calcMatrices())}get fovInRadians(){return this._fovInRadians}get fov(){return h.aX(this._fovInRadians)}setFov(t){t=h.al(t,.1,150),this.fov!==t&&(this._unmodified=!1,this._fovInRadians=h.an(t),this._calcMatrices())}get zoom(){return this._zoom}setZoom(t){let n=this.applyConstrain(this._center,t).zoom;this._zoom!==n&&(this._unmodified=!1,this._zoom=n,this._tileZoom=Math.max(0,Math.floor(n)),this._scale=h.ao(n),this.constrainInternal(),this._calcMatrices())}get center(){return this._center}setCenter(t){t.lat===this._center.lat&&t.lng===this._center.lng||(this._unmodified=!1,this._center=t,this.constrainInternal(),this._calcMatrices())}get elevation(){return this._elevation}setElevation(t){t!==this._elevation&&(this._elevation=t,this.constrainInternal(),this._calcMatrices())}get padding(){return this._edgeInsets.toJSON()}setPadding(t){this._edgeInsets.equals(t)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,t,1),this._calcMatrices())}get centerPoint(){return this._edgeInsets.getCenter(this._width,this._height)}get pixelsPerMeter(){return this._pixelPerMeter}get unmodified(){return this._unmodified}get cameraToCenterDistance(){return this._cameraToCenterDistance}get nearZ(){return this._nearZ}get farZ(){return this._farZ}get autoCalculateNearFarZ(){return this._autoCalculateNearFarZ}overrideNearFarZ(t,n){this._autoCalculateNearFarZ=!1,this._nearZ=t,this._farZ=n,this._calcMatrices()}clearNearFarZOverride(){this._autoCalculateNearFarZ=!0,this._calcMatrices()}isPaddingEqual(t){return this._edgeInsets.equals(t)}interpolatePadding(t,n,s){this._unmodified=!1,this._edgeInsets.interpolate(t,n,s),this.constrainInternal(),this._calcMatrices()}resize(t,n,s=!0){this._width=t,this._height=n,s&&this.constrainInternal(),this._calcMatrices()}getMaxBounds(){var t,n;return((t=this._latRange)===null||t===void 0?void 0:t.length)!==2||((n=this._lngRange)===null||n===void 0?void 0:n.length)!==2?null:new De([this._lngRange[0],this._latRange[0]],[this._lngRange[1],this._latRange[1]])}setMaxBounds(t){t?(this._lngRange=[t.getWest(),t.getEast()],this._latRange=[t.getSouth(),t.getNorth()],this.constrainInternal()):(this._lngRange=null,this._latRange=[-h.am,h.am])}getCameraQueryGeometry(t,n){if(n.length===1)return[n[0],t];{let{minX:s,minY:c,maxX:f,maxY:y}=h.a8.fromPoints(n).extend(t);return[new h.P(s,c),new h.P(f,c),new h.P(f,y),new h.P(s,y),new h.P(s,c)]}}constrainInternal(){if(!this.center||!this._width||!this._height||this._constraining)return;this._constraining=!0;let t=this._unmodified,{center:n,zoom:s}=this.applyConstrain(this.center,this.zoom);this.setCenter(n),this.setZoom(s),this._unmodified=t,this._constraining=!1}_calcMatrices(){if(this._width&&this._height){this._pixelsToGLUnits=[2/this._width,-2/this._height];let t=h.ap(new Float64Array(16));h.S(t,t,[this._width/2,-this._height/2,1]),h.Q(t,t,[1,-1,0]),this._clipSpaceToPixelsMatrix=t,t=h.ap(new Float64Array(16)),h.S(t,t,[1,-1,1]),h.Q(t,t,[-1,-1,0]),h.S(t,t,[2/this._width,2/this._height,1]),this._pixelsToClipSpaceMatrix=t,this._cameraToCenterDistance=.5/Math.tan(this.fovInRadians/2)*this._height}this._callbacks.calcMatrices()}calculateCenterFromCameraLngLatAlt(t,n,s,c){let f=s!==void 0?s:this.bearing,y=c=c!==void 0?c:this.pitch,{distanceToCenter:x,clampedElevation:w}=this._distanceToCenterFromAltElevationPitch(n,this.elevation,y),{x:S,y:M}=xa(y,f),E=h.a7.fromLngLat(t,n),I,D,B=h.aY(1,E.y),V=0;do{if(V+=1,V>10)break;D=x/B,I=new h.a7(E.x+S*D,E.y+M*D),B=1/I.meterInMercatorCoordinateUnits()}while(Math.abs(x-D*B)>1e-12);return{center:I.toLngLat(),elevation:w,zoom:h.ar(this.height/2/Math.tan(this.fovInRadians/2)/D/this.tileSize)}}recalculateZoomAndCenter(t){if(this.elevation-t==0)return;let n=1/this.worldSize,s=h.aq(1,this.center.lat)*this.worldSize,c=h.a7.fromLngLat(this.center,this.elevation),f=c.x/n,y=c.y/n,x=c.z/n,w=this.pitch,S=this.bearing,{x:M,y:E,z:I}=xa(w,S),D=this.cameraToCenterDistance,B=f+D*-M,V=y+D*-E,q=x+D*I,{distanceToCenter:N,clampedElevation:G}=this._distanceToCenterFromAltElevationPitch(q/s,t,w),X=N*s,$=new h.a7((B+M*X)*n,(V+E*X)*n,0).toLngLat(),U=h.aq(1,$.lat),H=h.ar(this.height/2/Math.tan(this.fovInRadians/2)/N/U/this.tileSize);this._elevation=G,this._center=$,this.setZoom(H)}_distanceToCenterFromAltElevationPitch(t,n,s){let c=-Math.cos(h.an(s)),f=t-n,y,x=n;return c*f>=0||Math.abs(c)<.1?(y=1e4,x=t+y*c):y=-f/c,{distanceToCenter:y,clampedElevation:x}}getCameraPoint(){let t=Math.tan(this.pitchInRadians)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new h.P(t*Math.sin(this.rollInRadians),t*Math.cos(this.rollInRadians)))}getCameraAltitude(){return Math.cos(this.pitchInRadians)*this._cameraToCenterDistance/this._pixelPerMeter+this.elevation}getCameraLngLat(){let t=h.aq(1,this.center.lat)*this.worldSize;return qn(this.center,this.elevation,this.pitch,this.bearing,this.cameraToCenterDistance/t).toLngLat()}getMercatorTileCoordinates(t){if(!t)return[0,0,1,1];let n=t.canonical.z>=0?1<this.max[0]||t.aabb.min[1]>this.max[1]||t.aabb.min[2]>this.max[2]||t.aabb.max[0]0?(n+=t[c]*this.min[c],s+=t[c]*this.max[c]):(s+=t[c]*this.min[c],n+=t[c]*this.max[c]);return n>=0?2:s<0?0:1}}class Ea{distanceToTile2d(t,n,s,c){let f=c,y=f.distanceX([t,n]),x=f.distanceY([t,n]);return Math.hypot(y,x)}getWrap(t,n,s){return s}getTileBoundingVolume(t,n,s,c){var f,y;let x=0,w=0;if(c?.terrain){let M=new h.a3(t.z,n,t.z,t.x,t.y),E=c.terrain.getMinMaxElevation(M);x=(f=E.minElevation)!==null&&f!==void 0?f:Math.min(0,s),w=(y=E.maxElevation)!==null&&y!==void 0?y:Math.max(0,s)}let S=1<c}allowWorldCopies(){return!0}prepareNextFrame(){}}class ji{constructor(t,n,s){this.points=t,this.planes=n,this.aabb=s}static fromInvProjectionMatrix(t,n=1,s=0,c,f){let y=f?[[6,5,4],[0,1,2],[0,3,7],[2,1,5],[3,2,6],[0,4,5]]:[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]],x=Math.pow(2,s),w=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]].map((I=>(function(D,B,V,q){let N=h.aE([],D,B),G=1/N[3]/V*q;return h.b4(N,N,[G,G,1/N[3],G])})(I,t,n,x)));c&&(function(I,D,B,V){let q=V?4:0,N=V?0:4,G=0,X=[],$=[];for(let Z=0;Z<4;Z++){let te=h.b0([],I[Z+N],I[Z+q]),se=h.b5(te);h.aZ(te,te,1/se),X.push(se),$.push(te)}for(let Z=0;Z<4;Z++){let te=h.b6(I[Z+q],$[Z],B);G=te!==null&&te>=0?Math.max(G,te):Math.max(G,X[Z])}let U=(function(Z,te){let se=h.b0([],Z[te[0]],Z[te[1]]),ce=h.b0([],Z[te[2]],Z[te[1]]),_e=[0,0,0,0];return h.b1(_e,h.b2([],se,ce)),_e[3]=-h.b3(_e,Z[te[0]]),_e})(I,D),H=(function(Z,te){let se=h.b7(Z),ce=h.b8([],Z,1/se),_e=h.b0([],te,h.aZ([],ce,h.b3(te,ce))),ge=h.b7(_e);if(ge>0){let Re=Math.sqrt(1-ce[3]*ce[3]),Ce=h.aZ([],ce,-ce[3]),me=h.a_([],Ce,h.aZ([],_e,Re/ge));return h.b9(te,me)}return null})(B,U);if(H!==null){let Z=H/h.b3($[0],U);G=Math.min(G,Z)}for(let Z=0;Z<4;Z++){let te=Math.min(G,X[Z]);I[Z+N]=[I[Z+q][0]+$[Z][0]*te,I[Z+q][1]+$[Z][1]*te,I[Z+q][2]+$[Z][2]*te,1]}})(w,y[0],c,f);let S=y.map((I=>{let D=h.b0([],w[I[0]],w[I[1]]),B=h.b0([],w[I[2]],w[I[1]]),V=h.b1([],h.b2([],D,B)),q=-h.b3(V,w[I[1]]);return V.concat(q)})),M=[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY],E=[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY];for(let I of w)for(let D=0;D<3;D++)M[D]=Math.min(M[D],I[D]),E[D]=Math.max(E[D],I[D]);return new ji(w,S,new br(M,E))}}class yn{get pixelsToClipSpaceMatrix(){return this._helper.pixelsToClipSpaceMatrix}get clipSpaceToPixelsMatrix(){return this._helper.clipSpaceToPixelsMatrix}get pixelsToGLUnits(){return this._helper.pixelsToGLUnits}get centerOffset(){return this._helper.centerOffset}get size(){return this._helper.size}get rotationMatrix(){return this._helper.rotationMatrix}get centerPoint(){return this._helper.centerPoint}get pixelsPerMeter(){return this._helper.pixelsPerMeter}setMinZoom(t){this._helper.setMinZoom(t)}setMaxZoom(t){this._helper.setMaxZoom(t)}setMinPitch(t){this._helper.setMinPitch(t)}setMaxPitch(t){this._helper.setMaxPitch(t)}setRenderWorldCopies(t){this._helper.setRenderWorldCopies(t)}setBearing(t){this._helper.setBearing(t)}setPitch(t){this._helper.setPitch(t)}setRoll(t){this._helper.setRoll(t)}setFov(t){this._helper.setFov(t)}setZoom(t){this._helper.setZoom(t)}setCenter(t){this._helper.setCenter(t)}setElevation(t){this._helper.setElevation(t)}setMinElevationForCurrentTile(t){this._helper.setMinElevationForCurrentTile(t)}setPadding(t){this._helper.setPadding(t)}interpolatePadding(t,n,s){this._helper.interpolatePadding(t,n,s)}isPaddingEqual(t){return this._helper.isPaddingEqual(t)}resize(t,n,s=!0){this._helper.resize(t,n,s)}getMaxBounds(){return this._helper.getMaxBounds()}setMaxBounds(t){this._helper.setMaxBounds(t)}setConstrainOverride(t){this._helper.setConstrainOverride(t)}overrideNearFarZ(t,n){this._helper.overrideNearFarZ(t,n)}clearNearFarZOverride(){this._helper.clearNearFarZOverride()}getCameraQueryGeometry(t){return this._helper.getCameraQueryGeometry(this.getCameraPoint(),t)}get tileSize(){return this._helper.tileSize}get tileZoom(){return this._helper.tileZoom}get scale(){return this._helper.scale}get worldSize(){return this._helper.worldSize}get width(){return this._helper.width}get height(){return this._helper.height}get lngRange(){return this._helper.lngRange}get latRange(){return this._helper.latRange}get minZoom(){return this._helper.minZoom}get maxZoom(){return this._helper.maxZoom}get zoom(){return this._helper.zoom}get center(){return this._helper.center}get minPitch(){return this._helper.minPitch}get maxPitch(){return this._helper.maxPitch}get pitch(){return this._helper.pitch}get pitchInRadians(){return this._helper.pitchInRadians}get roll(){return this._helper.roll}get rollInRadians(){return this._helper.rollInRadians}get bearing(){return this._helper.bearing}get bearingInRadians(){return this._helper.bearingInRadians}get fov(){return this._helper.fov}get fovInRadians(){return this._helper.fovInRadians}get elevation(){return this._helper.elevation}get minElevationForCurrentTile(){return this._helper.minElevationForCurrentTile}get padding(){return this._helper.padding}get unmodified(){return this._helper.unmodified}get renderWorldCopies(){return this._helper.renderWorldCopies}get cameraToCenterDistance(){return this._helper.cameraToCenterDistance}get constrainOverride(){return this._helper.constrainOverride}get nearZ(){return this._helper.nearZ}get farZ(){return this._helper.farZ}get autoCalculateNearFarZ(){return this._helper.autoCalculateNearFarZ}setTransitionState(t,n){}constructor(t){this._posMatrixCache=new Map,this._alignedPosMatrixCache=new Map,this._fogMatrixCacheF32=new Map,this.defaultConstrain=(n,s)=>{s=h.al(+s,this.minZoom,this.maxZoom);let c={center:new h.W(n.lng,n.lat),zoom:s},f=this._helper._lngRange;if(!this._helper._renderWorldCopies&&f===null){let $=179.9999999999;f=[-$,$]}let y=this.tileSize*h.ao(c.zoom),x=0,w=y,S=0,M=y,E=0,I=0,{x:D,y:B}=this.size;if(this._helper._latRange){let $=this._helper._latRange;x=h.Y($[1])*y,w=h.Y($[0])*y,w-xw&&(G=w-$)}if(f){let $=(S+M)/2,U=V;this._helper._renderWorldCopies&&(U=h.X(V,$-y/2,$+y/2));let H=D/2;U-HM&&(N=M-H)}if(N!==void 0||G!==void 0){let $=new h.P(N??V,G??q);c.center=Un(y,$).wrap()}return c},this.applyConstrain=(n,s)=>this._helper.applyConstrain(n,s),this._helper=new _n({calcMatrices:()=>this._calcMatrices(),defaultConstrain:(n,s)=>this.defaultConstrain(n,s)},t),this._coveringTilesDetailsProvider=new Ea}clone(){let t=new yn;return t.apply(this,!1),t}apply(t,n,s){this._helper.apply(t,n,s)}get cameraPosition(){return this._cameraPosition}get projectionMatrix(){return this._projectionMatrix}get modelViewProjectionMatrix(){return this._viewProjMatrix}get inverseProjectionMatrix(){return this._invProjMatrix}get mercatorMatrix(){return this._mercatorMatrix}getVisibleUnwrappedCoordinates(t){let n=[new h.ba(0,t)];if(this._helper._renderWorldCopies){let s=this.screenPointToMercatorCoordinate(new h.P(0,0)),c=this.screenPointToMercatorCoordinate(new h.P(this._helper._width,0)),f=this.screenPointToMercatorCoordinate(new h.P(this._helper._width,this._helper._height)),y=this.screenPointToMercatorCoordinate(new h.P(0,this._helper._height)),x=Math.floor(Math.min(s.x,c.x,f.x,y.x)),w=Math.floor(Math.max(s.x,c.x,f.x,y.x)),S=1;for(let M=x-S;M<=w+S;M++)M!==0&&n.push(new h.ba(M,t))}return n}getCameraFrustum(){return ji.fromInvProjectionMatrix(this._invViewProjMatrix,this.worldSize)}getClippingPlane(){return null}getCoveringTilesDetailsProvider(){return this._coveringTilesDetailsProvider}recalculateZoomAndCenter(t){let n=this.screenPointToLocation(this.centerPoint,t),s=t?t.getElevationForLngLatZoom(n,this._helper._tileZoom):0;this._helper.recalculateZoomAndCenter(s)}setLocationAtPoint(t,n){let s=h.aq(this.elevation,this.center.lat),c=this.screenPointToMercatorCoordinateAtZ(n,s),f=this.screenPointToMercatorCoordinateAtZ(this.centerPoint,s),y=h.a7.fromLngLat(t),x=new h.a7(y.x-(c.x-f.x),y.y-(c.y-f.y));this.setCenter(x?.toLngLat()),this._helper._renderWorldCopies&&this.setCenter(this.center.wrap())}locationToScreenPoint(t,n){return n?this.coordinatePoint(h.a7.fromLngLat(t),n.getElevationForLngLat(t,this),this._pixelMatrix3D):this.coordinatePoint(h.a7.fromLngLat(t))}screenPointToLocation(t,n){var s;return(s=this.screenPointToMercatorCoordinate(t,n))===null||s===void 0?void 0:s.toLngLat()}screenPointToMercatorCoordinate(t,n){if(n){let s=n.pointCoordinate(t);if(s!=null)return s}return this.screenPointToMercatorCoordinateAtZ(t)}screenPointToMercatorCoordinateAtZ(t,n){let s=n||0,c=[t.x,t.y,0,1],f=[t.x,t.y,1,1];h.aE(c,c,this._pixelMatrixInverse),h.aE(f,f,this._pixelMatrixInverse);let y=c[3],x=f[3],w=c[1]/y,S=f[1]/x,M=c[2]/y,E=f[2]/x,I=M===E?0:(s-M)/(E-M);return new h.a7(h.H.number(c[0]/y,f[0]/x,I)/this.worldSize,h.H.number(w,S,I)/this.worldSize,s)}coordinatePoint(t,n=0,s=this._pixelMatrix){let c=[t.x*this.worldSize,t.y*this.worldSize,n,1];return h.aE(c,c,s),new h.P(c[0]/c[3],c[1]/c[3])}getBounds(){let t=Math.max(0,this._helper._height/2-dn(this));return new De().extend(this.screenPointToLocation(new h.P(0,t))).extend(this.screenPointToLocation(new h.P(this._helper._width,t))).extend(this.screenPointToLocation(new h.P(this._helper._width,this._helper._height))).extend(this.screenPointToLocation(new h.P(0,this._helper._height)))}isPointOnMapSurface(t,n){return n?n.pointCoordinate(t)!=null:t.y>this.height/2-dn(this)}calculatePosMatrix(t,n=!1,s){var c;let f=(c=t.key)!==null&&c!==void 0?c:h.bb(t.wrap,t.canonical.z,t.canonical.z,t.canonical.x,t.canonical.y),y=n?this._alignedPosMatrixCache:this._posMatrixCache;if(y.has(f)){let S=y.get(f);return s?S.f32:S.f64}let x=Co(t,this.worldSize);h.U(x,n?this._alignedProjMatrix:this._viewProjMatrix,x);let w={f64:x,f32:new Float32Array(x)};return y.set(f,w),s?w.f32:w.f64}calculateFogMatrix(t){let n=t.key,s=this._fogMatrixCacheF32;if(s.has(n))return s.get(n);let c=Co(t,this.worldSize);return h.U(c,this._fogMatrix,c),s.set(n,new Float32Array(c)),s.get(n)}calculateCenterFromCameraLngLatAlt(t,n,s,c){return this._helper.calculateCenterFromCameraLngLatAlt(t,n,s,c)}_calculateNearFarZIfNeeded(t,n,s){if(!this._helper.autoCalculateNearFarZ)return;let c=Math.min(this.elevation,this.minElevationForCurrentTile,this.getCameraAltitude()-100),f=t-c*this._helper._pixelPerMeter/Math.cos(n),y=c<0?f:t,x=Math.PI/2+this.pitchInRadians,w=h.an(this.fov)*(Math.abs(Math.cos(h.an(this.roll)))*this.height+Math.abs(Math.sin(h.an(this.roll)))*this.width)/this.height*(.5+s.y/this.height),S=Math.sin(w)*y/Math.sin(h.al(Math.PI-x-w,.01,Math.PI-.01)),M=dn(this),E=Math.atan(M/this._helper.cameraToCenterDistance),I=h.an(.75),D=E>I?2*E*(.5+s.y/(2*M)):I,B=Math.sin(D)*y/Math.sin(h.al(Math.PI-x-D,.01,Math.PI-.01)),V=Math.min(S,B);this._helper._farZ=1.01*(Math.cos(Math.PI/2-n)*V+y),this._helper._nearZ=this._helper._height/50}_calcMatrices(){if(!this._helper._height)return;let t=this.centerOffset,n=dr(this.worldSize,this.center),s=n.x,c=n.y;this._helper._pixelPerMeter=h.aq(1,this.center.lat)*this.worldSize;let f=h.an(Math.min(this.pitch,hn)),y=Math.max(this._helper.cameraToCenterDistance/2,this._helper.cameraToCenterDistance+this._helper._elevation*this._helper._pixelPerMeter/Math.cos(f)),x;var w,S;this._calculateNearFarZIfNeeded(y,f,t),x=new Float64Array(16),h.bc(x,this.fovInRadians,this._helper._width/this._helper._height,this._helper._nearZ,this._helper._farZ),this._invProjMatrix=new Float64Array(16),(w=this._invProjMatrix)[0]=1/(S=x)[0],w[1]=0,w[2]=0,w[3]=0,w[4]=0,w[5]=1/S[5],w[6]=0,w[7]=0,w[8]=0,w[9]=0,w[10]=0,w[11]=1/S[14],w[12]=0,w[13]=0,w[14]=-1,w[15]=S[10]/S[14],x[8]=2*-t.x/this._helper._width,x[9]=2*t.y/this._helper._height,this._projectionMatrix=h.bd(x),h.S(x,x,[1,-1,1]),h.Q(x,x,[0,0,-this._helper.cameraToCenterDistance]),h.be(x,x,-this.rollInRadians),h.bf(x,x,this.pitchInRadians),h.be(x,x,-this.bearingInRadians),h.Q(x,x,[-s,-c,0]),this._mercatorMatrix=h.S([],x,[this.worldSize,this.worldSize,this.worldSize]),h.S(x,x,[1,1,this._helper._pixelPerMeter]),this._pixelMatrix=h.U(new Float64Array(16),this.clipSpaceToPixelsMatrix,x),h.Q(x,x,[0,0,-this.elevation]),this._viewProjMatrix=x,this._invViewProjMatrix=h.bg([],x);let M=[0,0,-1,1];h.aE(M,M,this._invViewProjMatrix),this._cameraPosition=[M[0]/M[3],M[1]/M[3],M[2]/M[3]],this._fogMatrix=new Float64Array(16),h.bc(this._fogMatrix,this.fovInRadians,this.width/this.height,y,this._helper._farZ),this._fogMatrix[8]=2*-t.x/this.width,this._fogMatrix[9]=2*t.y/this.height,h.S(this._fogMatrix,this._fogMatrix,[1,-1,1]),h.Q(this._fogMatrix,this._fogMatrix,[0,0,-this.cameraToCenterDistance]),h.be(this._fogMatrix,this._fogMatrix,-this.rollInRadians),h.bf(this._fogMatrix,this._fogMatrix,this.pitchInRadians),h.be(this._fogMatrix,this._fogMatrix,-this.bearingInRadians),h.Q(this._fogMatrix,this._fogMatrix,[-s,-c,0]),h.S(this._fogMatrix,this._fogMatrix,[1,1,this._helper._pixelPerMeter]),h.Q(this._fogMatrix,this._fogMatrix,[0,0,-this.elevation]),this._pixelMatrix3D=h.U(new Float64Array(16),this.clipSpaceToPixelsMatrix,x);let E=this._helper._width%2/2,I=this._helper._height%2/2,D=Math.cos(this.bearingInRadians),B=Math.sin(-this.bearingInRadians),V=s-Math.round(s)+D*E+B*I,q=c-Math.round(c)+D*I+B*E,N=new Float64Array(x);if(h.Q(N,N,[V>.5?V-1:V,q>.5?q-1:q,0]),this._alignedProjMatrix=N,x=h.bg(new Float64Array(16),this._pixelMatrix),!x)throw new Error(\"failed to invert matrix\");this._pixelMatrixInverse=x,this._clearMatrixCaches()}_clearMatrixCaches(){this._posMatrixCache.clear(),this._alignedPosMatrixCache.clear(),this._fogMatrixCacheF32.clear()}maxPitchScaleFactor(){if(!this._pixelMatrixInverse)return 1;let t=this.screenPointToMercatorCoordinate(new h.P(0,0)),n=[t.x*this.worldSize,t.y*this.worldSize,0,1];return h.aE(n,n,this._pixelMatrix)[3]/this._helper.cameraToCenterDistance}getCameraPoint(){return this._helper.getCameraPoint()}getCameraAltitude(){return this._helper.getCameraAltitude()}getCameraLngLat(){let t=h.aq(1,this.center.lat)*this.worldSize;return qn(this.center,this.elevation,this.pitch,this.bearing,this._helper.cameraToCenterDistance/t).toLngLat()}lngLatToCameraDepth(t,n){let s=h.a7.fromLngLat(t),c=[s.x*this.worldSize,s.y*this.worldSize,n,1];return h.aE(c,c,this._viewProjMatrix),c[2]/c[3]}getProjectionData(t){let{overscaledTileID:n,aligned:s,applyTerrainMatrix:c}=t,f=this._helper.getMercatorTileCoordinates(n),y=n?this.calculatePosMatrix(n,s,!0):null,x;return x=n?.terrainRttPosMatrix32f&&c?n.terrainRttPosMatrix32f:y||h.bh(),{mainMatrix:x,tileMercatorCoords:f,clippingPlane:[0,0,0,0],projectionTransition:0,fallbackMatrix:x}}isLocationOccluded(t){return!1}getPixelScale(){return 1}getCircleRadiusCorrection(){return 1}getPitchedTextCorrection(t,n,s){return 1}transformLightDirection(t){return h.a$(t)}getRayDirectionFromPixel(t){throw new Error(\"Not implemented.\")}projectTileCoordinates(t,n,s,c){let f=this.calculatePosMatrix(s),y;c?(y=[t,n,c(t,n),1],h.aE(y,y,f)):(y=[t,n,0,1],Ma(y,y,f));let x=y[3];return{point:new h.P(y[0]/x,y[1]/x),signedDistanceFromCamera:x,isOccluded:!1}}populateCache(t){for(let n of t)this.calculatePosMatrix(n)}getMatrixForModel(t,n){let s=h.a7.fromLngLat(t,n),c=s.meterInMercatorCoordinateUnits(),f=h.bi();return h.Q(f,f,[s.x,s.y,s.z]),h.be(f,f,Math.PI),h.bf(f,f,Math.PI/2),h.S(f,f,[-c,c,c]),f}getProjectionDataForCustomLayer(t=!0){let n=new h.a3(0,0,0,0,0),s=this.getProjectionData({overscaledTileID:n,applyGlobeMatrix:t}),c=Co(n,this.worldSize);h.U(c,this._viewProjMatrix,c),s.tileMercatorCoords=[0,0,1,1];let f=[h.a6,h.a6,this.worldSize/this._helper.pixelsPerMeter],y=h.bj();return h.S(y,c,f),s.fallbackMatrix=y,s.mainMatrix=y,s}getFastPathSimpleProjectionMatrix(t){return this.calculatePosMatrix(t)}}function Dr(){h.w(\"Map cannot fit within canvas with the given bounds, padding, and/or offset.\")}function Tc(d){if(d.useSlerp)if(d.k<1){let t=h.bk(d.startEulerAngles.roll,d.startEulerAngles.pitch,d.startEulerAngles.bearing),n=h.bk(d.endEulerAngles.roll,d.endEulerAngles.pitch,d.endEulerAngles.bearing),s=new Float64Array(4);h.bl(s,t,n,d.k);let c=h.bm(s);d.tr.setRoll(c.roll),d.tr.setPitch(c.pitch),d.tr.setBearing(c.bearing)}else d.tr.setRoll(d.endEulerAngles.roll),d.tr.setPitch(d.endEulerAngles.pitch),d.tr.setBearing(d.endEulerAngles.bearing);else d.tr.setRoll(h.H.number(d.startEulerAngles.roll,d.endEulerAngles.roll,d.k)),d.tr.setPitch(h.H.number(d.startEulerAngles.pitch,d.endEulerAngles.pitch,d.k)),d.tr.setBearing(h.H.number(d.startEulerAngles.bearing,d.endEulerAngles.bearing,d.k))}function el(d,t,n,s,c){let f=c.padding,y=dr(c.worldSize,n.getNorthWest()),x=dr(c.worldSize,n.getNorthEast()),w=dr(c.worldSize,n.getSouthEast()),S=dr(c.worldSize,n.getSouthWest()),M=h.an(-s),E=y.rotate(M),I=x.rotate(M),D=w.rotate(M),B=S.rotate(M),V=new h.P(Math.max(E.x,I.x,B.x,D.x),Math.max(E.y,I.y,B.y,D.y)),q=new h.P(Math.min(E.x,I.x,B.x,D.x),Math.min(E.y,I.y,B.y,D.y)),N=V.sub(q),G=(c.width-(f.left+f.right+t.left+t.right))/N.x,X=(c.height-(f.top+f.bottom+t.top+t.bottom))/N.y;if(X<0||G<0)return void Dr();let $=Math.min(h.ar(c.scale*Math.min(G,X)),d.maxZoom),U=h.P.convert(d.offset),H=new h.P((t.left-t.right)/2,(t.top-t.bottom)/2).rotate(h.an(s)),Z=U.add(H).mult(c.scale/h.ao($));return{center:Un(c.worldSize,y.add(w).div(2).sub(Z)),zoom:$,bearing:s}}class vn{get useGlobeControls(){return!1}handlePanInertia(t,n){let s=t.mag(),c=Math.abs(dn(n));return{easingOffset:t.mult(Math.min(.75*c/s,1)),easingCenter:n.center}}handleMapControlsRollPitchBearingZoom(t,n){t.bearingDelta&&n.setBearing(n.bearing+t.bearingDelta),t.pitchDelta&&n.setPitch(n.pitch+t.pitchDelta),t.rollDelta&&n.setRoll(n.roll+t.rollDelta),t.zoomDelta&&n.setZoom(n.zoom+t.zoomDelta)}handleMapControlsPan(t,n,s){t.around.distSqr(n.centerPoint)<.01||n.setLocationAtPoint(s,t.around)}cameraForBoxAndBearing(t,n,s,c,f){return el(t,n,s,c,f)}handleJumpToCenterZoom(t,n){t.zoom!==(n.zoom!==void 0?+n.zoom:t.zoom)&&t.setZoom(+n.zoom),n.center!==void 0&&t.setCenter(h.W.convert(n.center))}handleEaseTo(t,n){let s=t.zoom,c=t.padding,f={roll:t.roll,pitch:t.pitch,bearing:t.bearing},y={roll:n.roll===void 0?t.roll:n.roll,pitch:n.pitch===void 0?t.pitch:n.pitch,bearing:n.bearing===void 0?t.bearing:n.bearing},x=n.zoom!==void 0,w=!t.isPaddingEqual(n.padding),S=!1,M=x?+n.zoom:t.zoom,E=t.centerPoint.add(n.offsetAsPoint),I=t.screenPointToLocation(E),{center:D,zoom:B}=t.applyConstrain(h.W.convert(n.center||I),M??s);Kr(t,D);let V=dr(t.worldSize,I),q=dr(t.worldSize,D).sub(V),N=h.ao(B-s);return S=B!==s,{easeFunc:G=>{if(S&&t.setZoom(h.H.number(s,B,G)),h.bn(f,y)||Tc({startEulerAngles:f,endEulerAngles:y,tr:t,k:G,useSlerp:f.roll!=y.roll}),w&&(t.interpolatePadding(c,n.padding,G),E=t.centerPoint.add(n.offsetAsPoint)),n.around)t.setLocationAtPoint(n.around,n.aroundPoint);else{let X=h.ao(t.zoom-s),$=B>s?Math.min(2,N):Math.max(.5,N),U=Math.pow($,1-G),H=Un(t.worldSize,V.add(q.mult(G*U)).mult(X));t.setLocationAtPoint(t.renderWorldCopies?H.wrap():H,E)}},isZooming:S,elevationCenter:D}}handleFlyTo(t,n){let s=n.zoom!==void 0,c=t.zoom,f=t.applyConstrain(h.W.convert(n.center||n.locationAtOffset),s?+n.zoom:c),y=f.center,x=f.zoom;Kr(t,y);let w=dr(t.worldSize,n.locationAtOffset),S=dr(t.worldSize,y).sub(w),M=S.mag(),E=h.ao(x-c),I;if(n.minZoom!==void 0){let D=Math.min(+n.minZoom,c,x),B=t.applyConstrain(y,D).zoom;I=h.ao(B-c)}return{easeFunc:(D,B,V,q)=>{t.setZoom(D===1?x:c+h.ar(B));let N=D===1?y:Un(t.worldSize,w.add(S.mult(V)).mult(B));t.setLocationAtPoint(t.renderWorldCopies?N.wrap():N,q)},scaleOfZoom:E,targetCenter:y,scaleOfMinZoom:I,pixelPathLength:M}}}class Ct{constructor(t,n,s){this.blendFunction=t,this.blendColor=n,this.mask=s}}Ct.Replace=[1,0],Ct.disabled=new Ct(Ct.Replace,h.bo.transparent,[!1,!1,!1,!1]),Ct.unblended=new Ct(Ct.Replace,h.bo.transparent,[!0,!0,!0,!0]),Ct.alphaBlended=new Ct([1,771],h.bo.transparent,[!0,!0,!0,!0]);let Yn=2305;class lt{constructor(t,n,s){this.enable=t,this.mode=n,this.frontFace=s}}lt.disabled=new lt(!1,1029,Yn),lt.backCCW=new lt(!0,1029,Yn),lt.frontCCW=new lt(!0,1028,Yn);class Qe{constructor(t,n,s){this.func=t,this.mask=n,this.range=s}}Qe.ReadOnly=!1,Qe.ReadWrite=!0,Qe.disabled=new Qe(519,Qe.ReadOnly,[0,1]);let Kn=7680;class ct{constructor(t,n,s,c,f,y){this.test=t,this.ref=n,this.mask=s,this.fail=c,this.depthFail=f,this.pass=y}}function fr(d){return typeof WebGL2RenderingContext<\"u\"&&d instanceof WebGL2RenderingContext}ct.disabled=new ct({func:519,mask:0},0,0,Kn,Kn,Kn);class Jn{get awaitingQuery(){return!!this._readbackQueue}constructor(t){this._readbackWaitFrames=4,this._measureWaitFrames=6,this._texWidth=1,this._texHeight=1,this._measuredError=0,this._updateCount=0,this._lastReadbackFrame=-1e3,this._readbackQueue=null,this._cachedRenderContext=t;let n=t.context,s=n.gl;this._texFormat=s.RGBA,this._texType=s.UNSIGNED_BYTE;let c=new h.aU;c.emplaceBack(-1,-1),c.emplaceBack(2,-1),c.emplaceBack(-1,2);let f=new h.aW;f.emplaceBack(0,1,2),this._fullscreenTriangle=new Pt(n.createVertexBuffer(c,Yr.members),n.createIndexBuffer(f),h.aV.simpleSegment(0,0,c.length,f.length)),this._resultBuffer=new Uint8Array(4),n.activeTexture.set(s.TEXTURE1);let y=s.createTexture();s.bindTexture(s.TEXTURE_2D,y),s.texParameteri(s.TEXTURE_2D,s.TEXTURE_WRAP_S,s.CLAMP_TO_EDGE),s.texParameteri(s.TEXTURE_2D,s.TEXTURE_WRAP_T,s.CLAMP_TO_EDGE),s.texParameteri(s.TEXTURE_2D,s.TEXTURE_MIN_FILTER,s.NEAREST),s.texParameteri(s.TEXTURE_2D,s.TEXTURE_MAG_FILTER,s.NEAREST),s.texImage2D(s.TEXTURE_2D,0,this._texFormat,this._texWidth,this._texHeight,0,this._texFormat,this._texType,null),this._fbo=n.createFramebuffer(this._texWidth,this._texHeight,!1,!1),this._fbo.colorAttachment.set(y),fr(s)&&(this._pbo=s.createBuffer(),s.bindBuffer(s.PIXEL_PACK_BUFFER,this._pbo),s.bufferData(s.PIXEL_PACK_BUFFER,4,s.STREAM_READ),s.bindBuffer(s.PIXEL_PACK_BUFFER,null))}destroy(){let t=this._cachedRenderContext.context.gl;this._fullscreenTriangle.destroy(),this._fbo.destroy(),t.deleteBuffer(this._pbo),this._fullscreenTriangle=null,this._fbo=null,this._pbo=null,this._resultBuffer=null}updateErrorLoop(t,n){let s=this._updateCount;return this._readbackQueue?s>=this._readbackQueue.frameNumberIssued+this._readbackWaitFrames&&this._tryReadback():s>=this._lastReadbackFrame+this._measureWaitFrames&&this._renderErrorTexture(t,n),this._updateCount++,this._measuredError}_bindFramebuffer(){let t=this._cachedRenderContext.context,n=t.gl;t.activeTexture.set(n.TEXTURE1),n.bindTexture(n.TEXTURE_2D,this._fbo.colorAttachment.get()),t.bindFramebuffer.set(this._fbo.framebuffer)}_renderErrorTexture(t,n){let s=this._cachedRenderContext.context,c=s.gl;if(this._bindFramebuffer(),s.viewport.set([0,0,this._texWidth,this._texHeight]),s.clear({color:h.bo.transparent}),this._cachedRenderContext.useProgram(\"projectionErrorMeasurement\").draw(s,c.TRIANGLES,Qe.disabled,ct.disabled,Ct.unblended,lt.disabled,((f,y)=>({u_input:f,u_output_expected:y}))(t,n),null,null,\"$clipping\",this._fullscreenTriangle.vertexBuffer,this._fullscreenTriangle.indexBuffer,this._fullscreenTriangle.segments),this._pbo&&fr(c)){c.bindBuffer(c.PIXEL_PACK_BUFFER,this._pbo),c.readBuffer(c.COLOR_ATTACHMENT0),c.readPixels(0,0,this._texWidth,this._texHeight,this._texFormat,this._texType,0),c.bindBuffer(c.PIXEL_PACK_BUFFER,null);let f=c.fenceSync(c.SYNC_GPU_COMMANDS_COMPLETE,0);c.flush(),this._readbackQueue={frameNumberIssued:this._updateCount,sync:f}}else this._readbackQueue={frameNumberIssued:this._updateCount,sync:null}}_tryReadback(){let t=this._cachedRenderContext.context.gl;if(this._pbo&&this._readbackQueue&&fr(t)){let n=t.clientWaitSync(this._readbackQueue.sync,0,0);if(n===t.WAIT_FAILED)return h.w(\"WebGL2 clientWaitSync failed.\"),this._readbackQueue=null,void(this._lastReadbackFrame=this._updateCount);if(n===t.TIMEOUT_EXPIRED)return;t.bindBuffer(t.PIXEL_PACK_BUFFER,this._pbo),t.getBufferSubData(t.PIXEL_PACK_BUFFER,0,this._resultBuffer,0,4),t.bindBuffer(t.PIXEL_PACK_BUFFER,null)}else this._bindFramebuffer(),t.readPixels(0,0,this._texWidth,this._texHeight,this._texFormat,this._texType,this._resultBuffer);this._readbackQueue=null,this._measuredError=Jn._parseRGBA8float(this._resultBuffer),this._lastReadbackFrame=this._updateCount}static _parseRGBA8float(t){let n=0;return n+=t[0]/256,n+=t[1]/65536,n+=t[2]/16777216,t[3]<127&&(n=-n),n/128}}let xn=h.a6/128;function Qn(d,t){let n=d.granularity!==void 0?Math.max(d.granularity,1):1,s=n+(d.generateBorders?2:0),c=n+(d.extendToNorthPole||d.generateBorders?1:0)+(d.extendToSouthPole||d.generateBorders?1:0),f=s+1,y=c+1,x=d.generateBorders?-1:0,w=d.generateBorders||d.extendToNorthPole?-1:0,S=n+(d.generateBorders?1:0),M=n+(d.generateBorders||d.extendToSouthPole?1:0),E=f*y,I=s*c*6,D=f*y>65536;if(D&&t===\"16bit\")throw new Error(\"Granularity is too large and meshes would not fit inside 16 bit vertex indices.\");let B=D||t===\"32bit\",V=new Int16Array(2*E),q=0;for(let X=w;X<=M;X++)for(let $=x;$<=S;$++){let U=$/n*h.a6;$===-1&&(U=-xn),$===n+1&&(U=h.a6+xn);let H=X/n*h.a6;X===-1&&(H=d.extendToNorthPole?h.bq:-xn),X===n+1&&(H=d.extendToSouthPole?h.br:h.a6+xn),V[q++]=U,V[q++]=H}let N=B?new Uint32Array(I):new Uint16Array(I),G=0;for(let X=0;X0}get latitudeErrorCorrectionRadians(){return this._verticalPerspectiveProjection.latitudeErrorCorrectionRadians}get currentProjection(){return this.useGlobeRendering?this._verticalPerspectiveProjection:this._mercatorProjection}get name(){return\"globe\"}get useSubdivision(){return this.currentProjection.useSubdivision}get shaderVariantName(){return this.currentProjection.shaderVariantName}get shaderDefine(){return this.currentProjection.shaderDefine}get shaderPreludeCode(){return this.currentProjection.shaderPreludeCode}get vertexShaderPreludeCode(){return this.currentProjection.vertexShaderPreludeCode}get subdivisionGranularity(){return this.currentProjection.subdivisionGranularity}get useGlobeControls(){return this.transitionState>0}destroy(){this._mercatorProjection.destroy(),this._verticalPerspectiveProjection.destroy()}updateGPUdependent(t){this._mercatorProjection.updateGPUdependent(t),this._verticalPerspectiveProjection.updateGPUdependent(t)}getMeshFromTileID(t,n,s,c,f){return this.currentProjection.getMeshFromTileID(t,n,s,c,f)}setProjection(t){this._transitionable.setValue(\"type\",t?.type||\"mercator\")}updateTransitions(t){this._transitioning=this._transitionable.transitioned(t,this._transitioning)}hasTransition(){return this._transitioning.hasTransition()||this.currentProjection.hasTransition()}recalculate(t){this.properties=this._transitioning.possiblyEvaluate(t)}setErrorQueryLatitudeDegrees(t){this._verticalPerspectiveProjection.setErrorQueryLatitudeDegrees(t),this._mercatorProjection.setErrorQueryLatitudeDegrees(t)}}function Pc(d){let t=Zi(d.worldSize,d.center.lat);return 2*Math.PI*t}function Zt(d,t,n,s,c){let f=1/(1<1e-6){let s=d[0]/n,c=Math.acos(d[2]/n),f=(s>0?c:-c)/Math.PI*180;return new h.W(h.X(f,-180,180),t)}return new h.W(0,t)}function Bo(d){return Math.cos(d*Math.PI/180)}function Jt(d,t){let n=Bo(d),s=Bo(t);return h.ar(s/n)}function bn(d,t){let n=d.rotate(t.bearingInRadians),s=t.zoom+Jt(t.center.lat,0),c=h.bt(1/Bo(t.center.lat),1/Bo(Math.min(Math.abs(t.center.lat),60)),h.bw(s,7,3,0,1)),f=360/Pc({worldSize:t.worldSize,center:{lat:t.center.lat}});return new h.W(t.center.lng-n.x*f*c,h.al(t.center.lat+n.y*f,-h.am,h.am))}function il(d){let t=.5*d,n=Math.sin(t),s=Math.cos(t);return Math.log(n+s)-Math.log(s-n)}function Cc(d,t,n,s){let c=d.lat+n*s;if(Math.abs(n)>1){let f=(Math.sign(d.lat+n)!==Math.sign(d.lat)?-Math.abs(d.lat):Math.abs(d.lat))*Math.PI/180,y=Math.abs(d.lat+n)*Math.PI/180,x=il(f+s*(y-f)),w=il(f),S=il(y);return new h.W(d.lng+t*((x-w)/(S-w)),c)}return new h.W(d.lng+t*s,c)}class Xu{constructor(t){this._cachePrevious=new Map,this._cache=new Map,this._hadAnyChanges=!1,this._boundingVolumeFactory=t}swapBuffers(){if(!this._hadAnyChanges)return;let t=this._cachePrevious;this._cachePrevious=this._cache,this._cache=t,this._cache.clear(),this._hadAnyChanges=!1}getTileBoundingVolume(t,n,s,c){let f=`${t.z}_${t.x}_${t.y}_${c?.terrain?\"t\":\"\"}`,y=this._cache.get(f);if(y)return y;let x=this._cachePrevious.get(f);if(x)return this._cache.set(f,x),x;let w=this._boundingVolumeFactory(t,n,s,c);return this._cache.set(f,w),this._hadAnyChanges=!0,w}}class eo{constructor(t,n,s,c){this.min=s,this.max=c,this.points=t,this.planes=n}static fromAabb(t,n){let s=[];for(let c=0;c<8;c++)s.push([1&~c?t[0]:n[0],(c>>1&1)==1?n[1]:t[1],(c>>2&1)==1?n[2]:t[2]]);return new eo(s,[[-1,0,0,n[0]],[1,0,0,-t[0]],[0,-1,0,n[1]],[0,1,0,-t[1]],[0,0,-1,n[2]],[0,0,1,-t[2]]],t,n)}static fromCenterSizeAngles(t,n,s){let c=h.bA([],s[0],s[1],s[2]),f=h.bB([],[n[0],0,0],c),y=h.bB([],[0,n[1],0],c),x=h.bB([],[0,0,n[2]],c),w=[...t],S=[...t];for(let E=0;E<8;E++)for(let I=0;I<3;I++){let D=t[I]+f[I]*(1&~E?-1:1)+y[I]*((E>>1&1)==1?1:-1)+x[I]*((E>>2&1)==1?1:-1);w[I]=Math.min(w[I],D),S[I]=Math.max(S[I],D)}let M=[];for(let E=0;E<8;E++){let I=[...t];h.a_(I,I,h.aZ([],f,1&~E?-1:1)),h.a_(I,I,h.aZ([],y,(E>>1&1)==1?1:-1)),h.a_(I,I,h.aZ([],x,(E>>2&1)==1?1:-1)),M.push(I)}return new eo(M,[[...f,-h.b3(f,M[0])],[...y,-h.b3(y,M[0])],[...x,-h.b3(x,M[0])],[-f[0],-f[1],-f[2],-h.b3(f,M[7])],[-y[0],-y[1],-y[2],-h.b3(y,M[7])],[-x[0],-x[1],-x[2],-h.b3(x,M[7])]],w,S)}intersectsFrustum(t){let n=!0,s=this.points.length,c=this.planes.length,f=t.planes.length,y=t.points.length;for(let x=0;x=0&&S++}if(S===0)return 0;S=0&&S++}if(S===0)return 0}return 1}intersectsPlane(t){let n=this.points.length,s=0;for(let c=0;c=0&&s++}return s===n?2:s===0?0:1}}function Aa(d,t,n){let s=d-t;return s<0?-s:Math.max(0,s-n)}function rl(d,t,n,s,c){let f=d-n,y;return y=f<0?Math.min(-f,1+f-c):f>c?Math.min(Math.max(f-c,0),1-f):0,Math.max(y,Aa(t,s,c))}class za{constructor(){this._boundingVolumeCache=new Xu(this._computeTileBoundingVolume)}prepareNextFrame(){this._boundingVolumeCache.swapBuffers()}distanceToTile2d(t,n,s,c){let f=1<4}allowWorldCopies(){return!1}getTileBoundingVolume(t,n,s,c){return this._boundingVolumeCache.getTileBoundingVolume(t,n,s,c)}_computeTileBoundingVolume(t,n,s,c){var f,y;let x=0,w=0;if(c?.terrain){let S=new h.a3(t.z,n,t.z,t.x,t.y),M=c.terrain.getMinMaxElevation(S);x=(f=M.minElevation)!==null&&f!==void 0?f:Math.min(0,s),w=(y=M.maxElevation)!==null&&y!==void 0?y:Math.max(0,s)}if(x/=h.bD,w/=h.bD,x+=1,w+=1,t.z<=0)return eo.fromAabb([-w,-w,-w],[w,w,w]);if(t.z===1)return eo.fromAabb([t.x===0?-w:0,t.y===0?0:-w,-w],[t.x===0?0:w,t.y===0?w:0,w]);{let S=[Zt(0,0,t.x,t.y,t.z),Zt(h.a6,0,t.x,t.y,t.z),Zt(h.a6,h.a6,t.x,t.y,t.z),Zt(0,h.a6,t.x,t.y,t.z)],M=[];for(let _e of S)M.push(h.aZ([],_e,w));if(w!==x)for(let _e of S)M.push(h.aZ([],_e,x));t.y===0&&M.push([0,1,0]),t.y===(1<=(1<{let c=h.al(n.lat,-h.am,h.am),f=h.al(+s,this.minZoom+Jt(0,c),this.maxZoom);return{center:new h.W(n.lng,c),zoom:f}},this.applyConstrain=(n,s)=>this._helper.applyConstrain(n,s),this._helper=new _n({calcMatrices:()=>this._calcMatrices(),defaultConstrain:(n,s)=>this.defaultConstrain(n,s)},t),this._coveringTilesDetailsProvider=new za}clone(){let t=new wn;return t.apply(this,!1),t}apply(t,n,s){this._globeLatitudeErrorCorrectionRadians=s||0,this._helper.apply(t,n)}get projectionMatrix(){return this._projectionMatrix}get modelViewProjectionMatrix(){return this._globeViewProjMatrixNoCorrection}get inverseProjectionMatrix(){return this._globeProjMatrixInverted}get cameraPosition(){let t=h.bz();return t[0]=this._cameraPosition[0],t[1]=this._cameraPosition[1],t[2]=this._cameraPosition[2],t}get cameraToCenterDistance(){return this._helper.cameraToCenterDistance}getProjectionData(t){let{overscaledTileID:n,applyGlobeMatrix:s}=t,c=this._helper.getMercatorTileCoordinates(n);return{mainMatrix:this._globeViewProjMatrix32f,tileMercatorCoords:c,clippingPlane:this._cachedClippingPlane,projectionTransition:s?1:0,fallbackMatrix:this._globeViewProjMatrix32f}}_computeClippingPlane(t){let n=this.pitchInRadians,s=this.cameraToCenterDistance/t,c=Math.sin(n)*s,f=Math.cos(n)*s+1,y=1/Math.sqrt(c*c+f*f)*1,x=-c,w=f,S=Math.sqrt(x*x+w*w);x/=S,w/=S;let M=[0,x,w];h.bF(M,M,[0,0,0],-this.bearingInRadians),h.bG(M,M,[0,0,0],-1*this.center.lat*Math.PI/180),h.bH(M,M,[0,0,0],this.center.lng*Math.PI/180);let E=1/h.b5(M);return h.aZ(M,M,E),[...M,-y*E]}isLocationOccluded(t){return!this.isSurfacePointVisible(ii(t))}transformLightDirection(t){let n=this._helper._center.lng*Math.PI/180,s=this._helper._center.lat*Math.PI/180,c=Math.cos(s),f=[Math.sin(n)*c,Math.sin(s),Math.cos(n)*c],y=[f[2],0,-f[0]],x=[0,0,0];h.b2(x,y,f),h.b1(y,y),h.b1(x,x);let w=[0,0,0];return h.b1(w,[y[0]*t[0]+x[0]*t[1]+f[0]*t[2],y[1]*t[0]+x[1]*t[1]+f[1]*t[2],y[2]*t[0]+x[2]*t[1]+f[2]*t[2]]),w}getPixelScale(){return 1/Math.cos(this._helper._center.lat*Math.PI/180)}getCircleRadiusCorrection(){return Math.cos(this._helper._center.lat*Math.PI/180)}getPitchedTextCorrection(t,n,s){let c=(function(x,w,S){let M=1/(1<f&&(f=I),Dx&&(x=D)}let M=[S.lng+y,S.lat+w,S.lng+f,S.lat+x];return this.isSurfacePointOnScreen([0,1,0])&&(M[3]=90,M[0]=-180,M[2]=180),this.isSurfacePointOnScreen([0,-1,0])&&(M[1]=-90,M[0]=-180,M[2]=180),new De(M)}calculateCenterFromCameraLngLatAlt(t,n,s,c){return this._helper.calculateCenterFromCameraLngLatAlt(t,n,s,c)}setLocationAtPoint(t,n){let s=ii(this.unprojectScreenPoint(n)),c=ii(t),f=h.bz();h.bK(f);let y=h.bz();h.bH(y,s,f,-this.center.lng*Math.PI/180),h.bG(y,y,f,this.center.lat*Math.PI/180);let x=c[0]*c[0]+c[2]*c[2],w=y[0]*y[0];if(x=-N&&B<=N,X=q>=-N&&q<=N,$,U;if(G&&X){let se=this.center.lng*Math.PI/180,ce=this.center.lat*Math.PI/180;h.bM(E,se)+h.bM(B,ce)=0}isSurfacePointOnScreen(t){if(!this.isSurfacePointVisible(t))return!1;let n=h.bE();return h.aE(n,[...t,1],this._globeViewProjMatrixNoCorrection),n[0]/=n[3],n[1]/=n[3],n[2]/=n[3],n[0]>-1&&n[0]<1&&n[1]>-1&&n[1]<1&&n[2]>-1&&n[2]<1}rayPlanetIntersection(t,n){let s=h.b3(t,n),c=h.bz(),f=h.bz();h.aZ(f,n,s),h.b0(c,t,f);let y=1-h.b3(c,c);if(y<0)return null;let x=h.b3(t,t)-1,w=-s+(s<0?1:-1)*Math.sqrt(y),S=x/w,M=w;return{tMin:Math.min(S,M),tMax:Math.max(S,M)}}unprojectScreenPoint(t){let n=this._cameraPosition,s=this.getRayDirectionFromPixel(t),c=this.rayPlanetIntersection(n,s);if(c){let M=h.bz();h.a_(M,n,[s[0]*c.tMin,s[1]*c.tMin,s[2]*c.tMin]);let E=h.bz();return h.b1(E,M),Fo(E)}let f=this._cachedClippingPlane,y=f[0]*s[0]+f[1]*s[1]+f[2]*s[2],x=-h.b9(f,n)/y,w=h.bz();if(x>0)h.a_(w,n,[s[0]*x,s[1]*x,s[2]*x]);else{let M=h.bz();h.a_(M,n,[2*s[0],2*s[1],2*s[2]]);let E=h.b9(this._cachedClippingPlane,M);h.b0(w,M,[this._cachedClippingPlane[0]*E,this._cachedClippingPlane[1]*E,this._cachedClippingPlane[2]*E])}let S=(function(M){let E=h.bz();return E[0]=M[0]*-M[3],E[1]=M[1]*-M[3],E[2]=M[2]*-M[3],{center:E,radius:Math.sqrt(1-M[3]*M[3])}})(f);return Fo((function(M,E,I){let D=h.bz();h.b0(D,I,M);let B=h.bz();return h.bx(B,M,D,E/h.b7(D)),B})(S.center,S.radius,w))}getMatrixForModel(t,n){let s=h.W.convert(t),c=1/h.bD,f=h.bi();return h.bI(f,f,s.lng/180*Math.PI),h.bf(f,f,-s.lat/180*Math.PI),h.Q(f,f,[0,0,1+n/h.bD]),h.bf(f,f,.5*Math.PI),h.S(f,f,[c,c,c]),f}getProjectionDataForCustomLayer(t=!0){let n=this.getProjectionData({overscaledTileID:new h.a3(0,0,0,0,0),applyGlobeMatrix:t});return n.tileMercatorCoords=[0,0,1,1],n}getFastPathSimpleProjectionMatrix(t){}}class to{get pixelsToClipSpaceMatrix(){return this._helper.pixelsToClipSpaceMatrix}get clipSpaceToPixelsMatrix(){return this._helper.clipSpaceToPixelsMatrix}get pixelsToGLUnits(){return this._helper.pixelsToGLUnits}get centerOffset(){return this._helper.centerOffset}get size(){return this._helper.size}get rotationMatrix(){return this._helper.rotationMatrix}get centerPoint(){return this._helper.centerPoint}get pixelsPerMeter(){return this._helper.pixelsPerMeter}setMinZoom(t){this._helper.setMinZoom(t)}setMaxZoom(t){this._helper.setMaxZoom(t)}setMinPitch(t){this._helper.setMinPitch(t)}setMaxPitch(t){this._helper.setMaxPitch(t)}setRenderWorldCopies(t){this._helper.setRenderWorldCopies(t)}setBearing(t){this._helper.setBearing(t)}setPitch(t){this._helper.setPitch(t)}setRoll(t){this._helper.setRoll(t)}setFov(t){this._helper.setFov(t)}setZoom(t){this._helper.setZoom(t)}setCenter(t){this._helper.setCenter(t)}setElevation(t){this._helper.setElevation(t)}setMinElevationForCurrentTile(t){this._helper.setMinElevationForCurrentTile(t)}setPadding(t){this._helper.setPadding(t)}interpolatePadding(t,n,s){this._helper.interpolatePadding(t,n,s)}isPaddingEqual(t){return this._helper.isPaddingEqual(t)}resize(t,n,s=!0){this._helper.resize(t,n,s)}getMaxBounds(){return this._helper.getMaxBounds()}setMaxBounds(t){this._helper.setMaxBounds(t)}setConstrainOverride(t){this._helper.setConstrainOverride(t)}overrideNearFarZ(t,n){this._helper.overrideNearFarZ(t,n)}clearNearFarZOverride(){this._helper.clearNearFarZOverride()}getCameraQueryGeometry(t){return this._helper.getCameraQueryGeometry(this.getCameraPoint(),t)}get tileSize(){return this._helper.tileSize}get tileZoom(){return this._helper.tileZoom}get scale(){return this._helper.scale}get worldSize(){return this._helper.worldSize}get width(){return this._helper.width}get height(){return this._helper.height}get lngRange(){return this._helper.lngRange}get latRange(){return this._helper.latRange}get minZoom(){return this._helper.minZoom}get maxZoom(){return this._helper.maxZoom}get zoom(){return this._helper.zoom}get center(){return this._helper.center}get minPitch(){return this._helper.minPitch}get maxPitch(){return this._helper.maxPitch}get pitch(){return this._helper.pitch}get pitchInRadians(){return this._helper.pitchInRadians}get roll(){return this._helper.roll}get rollInRadians(){return this._helper.rollInRadians}get bearing(){return this._helper.bearing}get bearingInRadians(){return this._helper.bearingInRadians}get fov(){return this._helper.fov}get fovInRadians(){return this._helper.fovInRadians}get elevation(){return this._helper.elevation}get minElevationForCurrentTile(){return this._helper.minElevationForCurrentTile}get padding(){return this._helper.padding}get unmodified(){return this._helper.unmodified}get renderWorldCopies(){return this._helper.renderWorldCopies}get cameraToCenterDistance(){return this._helper.cameraToCenterDistance}get constrainOverride(){return this._helper.constrainOverride}get nearZ(){return this._helper.nearZ}get farZ(){return this._helper.farZ}get autoCalculateNearFarZ(){return this._helper.autoCalculateNearFarZ}get isGlobeRendering(){return this._globeness>0}setTransitionState(t,n){this._globeness=t,this._globeLatitudeErrorCorrectionRadians=n,this._calcMatrices(),this._verticalPerspectiveTransform.getCoveringTilesDetailsProvider().prepareNextFrame(),this._mercatorTransform.getCoveringTilesDetailsProvider().prepareNextFrame()}get currentTransform(){return this.isGlobeRendering?this._verticalPerspectiveTransform:this._mercatorTransform}constructor(t){this._globeLatitudeErrorCorrectionRadians=0,this._globeness=1,this.defaultConstrain=(n,s)=>this.currentTransform.defaultConstrain(n,s),this.applyConstrain=(n,s)=>this._helper.applyConstrain(n,s),this._helper=new _n({calcMatrices:()=>this._calcMatrices(),defaultConstrain:(n,s)=>this.defaultConstrain(n,s)},t),this._globeness=1,this._mercatorTransform=new yn,this._verticalPerspectiveTransform=new wn}clone(){let t=new to;return t._globeness=this._globeness,t._globeLatitudeErrorCorrectionRadians=this._globeLatitudeErrorCorrectionRadians,t.apply(this,!1),t}apply(t,n){this._helper.apply(t,n),this._mercatorTransform.apply(this,!1),this._verticalPerspectiveTransform.apply(this,!1,this._globeLatitudeErrorCorrectionRadians)}get projectionMatrix(){return this.currentTransform.projectionMatrix}get modelViewProjectionMatrix(){return this.currentTransform.modelViewProjectionMatrix}get inverseProjectionMatrix(){return this.currentTransform.inverseProjectionMatrix}get cameraPosition(){return this.currentTransform.cameraPosition}getProjectionData(t){let n=this._mercatorTransform.getProjectionData(t),s=this._verticalPerspectiveTransform.getProjectionData(t);return{mainMatrix:this.isGlobeRendering?s.mainMatrix:n.mainMatrix,clippingPlane:s.clippingPlane,tileMercatorCoords:s.tileMercatorCoords,projectionTransition:t.applyGlobeMatrix?this._globeness:0,fallbackMatrix:n.fallbackMatrix}}isLocationOccluded(t){return this.currentTransform.isLocationOccluded(t)}transformLightDirection(t){return this.currentTransform.transformLightDirection(t)}getPixelScale(){return h.bt(this._mercatorTransform.getPixelScale(),this._verticalPerspectiveTransform.getPixelScale(),this._globeness)}getCircleRadiusCorrection(){return h.bt(this._mercatorTransform.getCircleRadiusCorrection(),this._verticalPerspectiveTransform.getCircleRadiusCorrection(),this._globeness)}getPitchedTextCorrection(t,n,s){let c=this._mercatorTransform.getPitchedTextCorrection(t,n,s),f=this._verticalPerspectiveTransform.getPitchedTextCorrection(t,n,s);return h.bt(c,f,this._globeness)}projectTileCoordinates(t,n,s,c){return this.currentTransform.projectTileCoordinates(t,n,s,c)}_calcMatrices(){this._helper._width&&this._helper._height&&(this._verticalPerspectiveTransform.apply(this,!1,this._globeLatitudeErrorCorrectionRadians),this._helper._nearZ=this._verticalPerspectiveTransform.nearZ,this._helper._farZ=this._verticalPerspectiveTransform.farZ,this._mercatorTransform.apply(this,!0,this.isGlobeRendering),this._helper._nearZ=this._mercatorTransform.nearZ,this._helper._farZ=this._mercatorTransform.farZ)}calculateFogMatrix(t){return this.currentTransform.calculateFogMatrix(t)}getVisibleUnwrappedCoordinates(t){return this.currentTransform.getVisibleUnwrappedCoordinates(t)}getCameraFrustum(){return this.currentTransform.getCameraFrustum()}getClippingPlane(){return this.currentTransform.getClippingPlane()}getCoveringTilesDetailsProvider(){return this.currentTransform.getCoveringTilesDetailsProvider()}recalculateZoomAndCenter(t){this._mercatorTransform.recalculateZoomAndCenter(t),this._verticalPerspectiveTransform.recalculateZoomAndCenter(t)}maxPitchScaleFactor(){return this._mercatorTransform.maxPitchScaleFactor()}getCameraPoint(){return this._helper.getCameraPoint()}getCameraAltitude(){return this._helper.getCameraAltitude()}getCameraLngLat(){return this._helper.getCameraLngLat()}lngLatToCameraDepth(t,n){return this.currentTransform.lngLatToCameraDepth(t,n)}populateCache(t){this._mercatorTransform.populateCache(t),this._verticalPerspectiveTransform.populateCache(t)}getBounds(){return this.currentTransform.getBounds()}calculateCenterFromCameraLngLatAlt(t,n,s,c){return this._helper.calculateCenterFromCameraLngLatAlt(t,n,s,c)}setLocationAtPoint(t,n){if(!this.isGlobeRendering)return this._mercatorTransform.setLocationAtPoint(t,n),void this.apply(this._mercatorTransform,!1);this._verticalPerspectiveTransform.setLocationAtPoint(t,n),this.apply(this._verticalPerspectiveTransform,!1)}locationToScreenPoint(t,n){return this.currentTransform.locationToScreenPoint(t,n)}screenPointToMercatorCoordinate(t,n){return this.currentTransform.screenPointToMercatorCoordinate(t,n)}screenPointToLocation(t,n){return this.currentTransform.screenPointToLocation(t,n)}isPointOnMapSurface(t,n){return this.currentTransform.isPointOnMapSurface(t,n)}getRayDirectionFromPixel(t){return this._verticalPerspectiveTransform.getRayDirectionFromPixel(t)}getMatrixForModel(t,n){return this.currentTransform.getMatrixForModel(t,n)}getProjectionDataForCustomLayer(t=!0){let n=this._mercatorTransform.getProjectionDataForCustomLayer(t);if(!this.isGlobeRendering)return n;let s=this._verticalPerspectiveTransform.getProjectionDataForCustomLayer(t);return s.fallbackMatrix=n.mainMatrix,s}getFastPathSimpleProjectionMatrix(t){return this.currentTransform.getFastPathSimpleProjectionMatrix(t)}}class Wi{get useGlobeControls(){return!0}handlePanInertia(t,n){let s=bn(t,n);return Math.abs(s.lng-n.center.lng)>180&&(s.lng=n.center.lng+179.5*Math.sign(s.lng-n.center.lng)),{easingCenter:s,easingOffset:new h.P(0,0)}}handleMapControlsRollPitchBearingZoom(t,n){let s=t.around,c=n.screenPointToLocation(s);t.bearingDelta&&n.setBearing(n.bearing+t.bearingDelta),t.pitchDelta&&n.setPitch(n.pitch+t.pitchDelta),t.rollDelta&&n.setRoll(n.roll+t.rollDelta);let f=n.zoom;t.zoomDelta&&n.setZoom(n.zoom+t.zoomDelta);let y=n.zoom-f;if(y===0)return;let x=h.bJ(n.center.lng,c.lng),w=x/(Math.abs(x/180)+1),S=h.bJ(n.center.lat,c.lat),M=n.getRayDirectionFromPixel(s),E=n.cameraPosition,I=-1*h.b3(E,M),D=h.bz();h.a_(D,E,[M[0]*I,M[1]*I,M[2]*I]);let B=h.b5(D)-1,V=Math.exp(.5*-Math.max(B-.3,0)),q=Zi(n.worldSize,n.center.lat)/Math.min(n.width,n.height),N=h.bw(q,.9,.5,1,.25),G=(1-h.ao(-y))*Math.min(V,N),X=n.center.lat,$=n.zoom,U=new h.W(n.center.lng+w*G,h.al(n.center.lat+S*G,-h.am,h.am));n.setLocationAtPoint(c,s);let H=n.center,Z=h.bw(Math.abs(x),45,85,0,1),te=h.bw(q,.75,.35,0,1),se=Math.pow(Math.max(Z,te),.25),ce=h.bJ(H.lng,U.lng),_e=h.bJ(H.lat,U.lat);n.setCenter(new h.W(H.lng+ce*se,H.lat+_e*se).wrap()),n.setZoom($+Jt(X,n.center.lat))}handleMapControlsPan(t,n,s){if(!t.panDelta)return;let c=n.center.lat,f=n.zoom;n.setCenter(bn(t.panDelta,n).wrap()),n.setZoom(f+Jt(c,n.center.lat))}cameraForBoxAndBearing(t,n,s,c,f){let y=el(t,n,s,c,f),x=n.left/f.width*2-1,w=(f.width-n.right)/f.width*2-1,S=n.top/f.height*-2+1,M=(f.height-n.bottom)/f.height*-2+1,E=h.bJ(s.getWest(),s.getEast())<0,I=E?s.getEast():s.getWest(),D=E?s.getWest():s.getEast(),B=Math.max(s.getNorth(),s.getSouth()),V=Math.min(s.getNorth(),s.getSouth()),q=I+.5*h.bJ(I,D),N=B+.5*h.bJ(B,V),G=f.clone();G.setCenter(y.center),G.setBearing(y.bearing),G.setPitch(0),G.setRoll(0),G.setZoom(y.zoom);let X=G.modelViewProjectionMatrix,$=[ii(s.getNorthWest()),ii(s.getNorthEast()),ii(s.getSouthWest()),ii(s.getSouthEast()),ii(new h.W(D,N)),ii(new h.W(I,N)),ii(new h.W(q,B)),ii(new h.W(q,V))],U=ii(y.center),H=Number.POSITIVE_INFINITY;for(let Z of $)x<0&&(H=Wi.getLesserNonNegativeNonNull(H,Wi.solveVectorScale(Z,U,X,\"x\",x))),w>0&&(H=Wi.getLesserNonNegativeNonNull(H,Wi.solveVectorScale(Z,U,X,\"x\",w))),S>0&&(H=Wi.getLesserNonNegativeNonNull(H,Wi.solveVectorScale(Z,U,X,\"y\",S))),M<0&&(H=Wi.getLesserNonNegativeNonNull(H,Wi.solveVectorScale(Z,U,X,\"y\",M)));if(Number.isFinite(H)&&H!==0)return y.zoom=Math.min(G.zoom+h.ar(H),t.maxZoom),y;Dr()}handleJumpToCenterZoom(t,n){let s=t.center.lat,c=t.applyConstrain(n.center?h.W.convert(n.center):t.center,t.zoom).center;t.setCenter(c.wrap());let f=n.zoom!==void 0?+n.zoom:t.zoom+Jt(s,c.lat);t.zoom!==f&&t.setZoom(f)}handleEaseTo(t,n){let s=t.zoom,c=t.center,f=t.padding,y={roll:t.roll,pitch:t.pitch,bearing:t.bearing},x={roll:n.roll===void 0?t.roll:n.roll,pitch:n.pitch===void 0?t.pitch:n.pitch,bearing:n.bearing===void 0?t.bearing:n.bearing},w=n.zoom!==void 0,S=!t.isPaddingEqual(n.padding),M=!1,E=n.center?h.W.convert(n.center):c,I=t.applyConstrain(E,s).center;Kr(t,I);let D=t.clone();D.setCenter(I),D.setZoom(w?+n.zoom:s+Jt(c.lat,E.lat)),D.setBearing(n.bearing);let B=new h.P(h.al(t.centerPoint.x+n.offsetAsPoint.x,0,t.width),h.al(t.centerPoint.y+n.offsetAsPoint.y,0,t.height));D.setLocationAtPoint(I,B);let V=(n.offset&&n.offsetAsPoint.mag())>0?D.center:I,q=w?+n.zoom:s+Jt(c.lat,V.lat),N=s+Jt(c.lat,0),G=q+Jt(V.lat,0),X=h.bJ(c.lng,V.lng),$=h.bJ(c.lat,V.lat),U=h.ao(G-N);return M=q!==s,{easeFunc:H=>{if(h.bn(y,x)||Tc({startEulerAngles:y,endEulerAngles:x,tr:t,k:H,useSlerp:y.roll!=x.roll}),S&&t.interpolatePadding(f,n.padding,H),n.around)h.w(\"Easing around a point is not supported under globe projection.\"),t.setLocationAtPoint(n.around,n.aroundPoint);else{let Z=G>N?Math.min(2,U):Math.max(.5,U),te=Math.pow(Z,1-H),se=Cc(c,X,$,H*te);t.setCenter(se.wrap())}if(M){let Z=h.H.number(N,G,H)+Jt(0,t.center.lat);t.setZoom(Z)}},isZooming:M,elevationCenter:V}}handleFlyTo(t,n){let s=n.zoom!==void 0,c=t.center,f=t.zoom,y=t.padding,x=!t.isPaddingEqual(n.padding),w=t.applyConstrain(h.W.convert(n.center||n.locationAtOffset),f).center,S=s?+n.zoom:t.zoom+Jt(t.center.lat,w.lat),M=t.clone();M.setCenter(w),M.setZoom(S),M.setBearing(n.bearing);let E=new h.P(h.al(t.centerPoint.x+n.offsetAsPoint.x,0,t.width),h.al(t.centerPoint.y+n.offsetAsPoint.y,0,t.height));M.setLocationAtPoint(w,E);let I=M.center;Kr(t,I);let D=(function($,U,H){let Z=ii(U),te=ii(H),se=h.b3(Z,te),ce=Math.acos(se),_e=Pc($);return ce/(2*Math.PI)*_e})(t,c,I),B=f+Jt(c.lat,0),V=S+Jt(I.lat,0),q=h.ao(V-B),N;if(typeof n.minZoom==\"number\"){let $=+n.minZoom+Jt(I.lat,0),U=Math.min($,B,V)+Jt(0,I.lat),H=t.applyConstrain(I,U).zoom+Jt(I.lat,0);N=h.ao(H-B)}let G=h.bJ(c.lng,I.lng),X=h.bJ(c.lat,I.lat);return{easeFunc:($,U,H,Z)=>{let te=Cc(c,G,X,H);x&&t.interpolatePadding(y,n.padding,$);let se=$===1?I:te;t.setCenter(se.wrap());let ce=B+h.ar(U);t.setZoom($===1?S:ce+Jt(0,se.lat))},scaleOfZoom:q,targetCenter:I,scaleOfMinZoom:N,pixelPathLength:D}}static solveVectorScale(t,n,s,c,f){let y=c===\"x\"?[s[0],s[4],s[8],s[12]]:[s[1],s[5],s[9],s[13]],x=[s[3],s[7],s[11],s[15]],w=t[0]*y[0]+t[1]*y[1]+t[2]*y[2],S=t[0]*x[0]+t[1]*x[1]+t[2]*x[2],M=n[0]*y[0]+n[1]*y[1]+n[2]*y[2],E=n[0]*x[0]+n[1]*x[1]+n[2]*x[2];return M+f*S===w+f*E||x[3]*(w-M)+y[3]*(E-S)+w*E==M*S?null:(M+y[3]-f*E-f*x[3])/(M-w-f*E+f*S)}static getLesserNonNegativeNonNull(t,n){return n!==null&&n>=0&&nh.C(d,t?.filter((n=>n.identifier!==\"source.canvas\"))),nl=h.bN();class Tn extends h.E{constructor(t,n={}){var s,c;super(),this._rtlPluginLoaded=()=>{for(let y in this.tileManagers){let x=this.tileManagers[y].getSource().type;x!==\"vector\"&&x!==\"geojson\"||this.tileManagers[y].reload()}},this.map=t,this.dispatcher=new un(ur(),t._getMapId()),this.dispatcher.registerMessageHandler(\"GG\",((y,x)=>this.getGlyphs(y,x))),this.dispatcher.registerMessageHandler(\"GI\",((y,x)=>this.getImages(y,x))),this.dispatcher.registerMessageHandler(\"GDA\",((y,x)=>this.getDashes(y,x))),this.imageManager=new Fi,this.imageManager.setEventedParent(this);let f=((s=t._container)===null||s===void 0?void 0:s.lang)||typeof document<\"u\"&&((c=document.documentElement)===null||c===void 0?void 0:c.lang)||void 0;this.glyphManager=new Me(t._requestManager,n.localIdeographFontFamily,f),this.lineAtlas=new qe(256,512),this.crossTileSymbolIndex=new Vi,this._setInitialValues(),this._resetUpdates(),this.dispatcher.broadcast(\"SR\",h.bO()),Wr().on(Po,this._rtlPluginLoaded),this.on(\"data\",(y=>{if(y.dataType!==\"source\"||y.sourceDataType!==\"metadata\")return;let x=this.tileManagers[y.sourceId];if(!x)return;let w=x.getSource();if(w?.vectorLayerIds)for(let S in this._layers){let M=this._layers[S];M.source===w.id&&this._validateLayer(M)}}))}_setInitialValues(){var t;this._spritesImagesIds={},this._layers={},this._order=[],this.tileManagers={},this.zoomHistory=new h.bP,this._availableImages=[],this._globalState={},this._serializedLayers={},this.stylesheet=null,this.light=null,this.sky=null,this.projection&&(this.projection.destroy(),delete this.projection),this._loaded=!1,this._changed=!1,this._updatedLayers={},this._updatedSources={},this._changedImages={},this._glyphsDidChange=!1,this._updatedPaintProps={},this._layerOrderChanged=!1,this.crossTileSymbolIndex=new(((t=this.crossTileSymbolIndex)===null||t===void 0?void 0:t.constructor)||Object),this.pauseablePlacement=void 0,this.placement=void 0,this.z=0}setGlobalStateProperty(t,n){var s,c,f;this._checkLoaded();let y=n===null?(f=(c=(s=this.stylesheet.state)===null||s===void 0?void 0:s[t])===null||c===void 0?void 0:c.default)!==null&&f!==void 0?f:null:n;if(h.bQ(y,this._globalState[t]))return this;this._globalState[t]=y,this._applyGlobalStateChanges([t])}getGlobalState(){return this._globalState}setGlobalState(t){this._checkLoaded();let n=[];for(let s in t)!h.bQ(this._globalState[s],t[s].default)&&(n.push(s),this._globalState[s]=t[s].default);this._applyGlobalStateChanges(n)}_applyGlobalStateChanges(t){if(t.length===0)return;let n=new Set,s={};for(let c of t){s[c]=this._globalState[c];for(let f in this._layers){let y=this._layers[f],x=y.getLayoutAffectingGlobalStateRefs(),w=y.getPaintAffectingGlobalStateRefs(),S=y.getVisibilityAffectingGlobalStateRefs();if(x.has(c)&&n.add(y.source),w.has(c))for(let{name:M,value:E}of w.get(c))this._updatePaintProperty(y,M,E);S?.has(c)&&(y.recalculateVisibility(),this._updateLayer(y))}}this.dispatcher.broadcast(\"UGS\",s);for(let c in this.tileManagers)n.has(c)&&(this._reloadSource(c),this._changed=!0)}loadURL(t){return h._(this,arguments,void 0,(function*(n,s={},c){this.fire(new h.n(\"dataloading\",{dataType:\"style\"})),s.validate=typeof s.validate!=\"boolean\"||s.validate,this._loadStyleRequest=new AbortController;let f=this._loadStyleRequest;try{let y=yield this.map._requestManager.transformRequest(n,\"Style\");h.bR(f.signal);let x=yield h.k(y,f);this._loadStyleRequest===f&&(this._loadStyleRequest=null),this._load(x.data,s,c)}catch(y){this._loadStyleRequest===f&&(this._loadStyleRequest=null),y&&!f.signal.aborted&&this.fire(new h.l(h.d(y)))}}))}loadJSON(t,n={},s){this.fire(new h.n(\"dataloading\",{dataType:\"style\"})),this._frameRequest=new AbortController,Ge.frameAsync(this._frameRequest,this.map._ownerWindow).then((()=>{this._frameRequest=null,n.validate=n.validate!==!1,this._load(t,n,s)})).catch((()=>{}))}loadEmpty(){this.fire(new h.n(\"dataloading\",{dataType:\"style\"})),this._load(nl,{validate:!1})}_load(t,n,s){var c,f;let y=n.transformStyle?n.transformStyle(s,t):t;if(!n.validate||!ka(this,h.F(y))){y=Object.assign({},y),this._loaded=!0,this.stylesheet=y;for(let x in y.sources)this.addSource(x,y.sources[x],{validate:!1});y.sprite?this._loadSprite(y.sprite):this.imageManager.setLoaded(!0),this.glyphManager.setURL(y.glyphs),this._createLayers(),this.light=new $e(this.stylesheet.light),this._setProjectionInternal(((c=this.stylesheet.projection)===null||c===void 0?void 0:c.type)||\"mercator\"),this.sky=new ot(this.stylesheet.sky),this.map.setTerrain((f=this.stylesheet.terrain)!==null&&f!==void 0?f:null),this.fire(new h.n(\"data\",{dataType:\"style\"})),this.fire(new h.n(\"style.load\"))}}_createLayers(){var t,n,s;let c=h.bS(this.stylesheet.layers);this.setGlobalState((t=this.stylesheet.state)!==null&&t!==void 0?t:null),this.dispatcher.broadcast(\"SL\",c),this._order=c.map((f=>f.id)),this._layers={},this._serializedLayers=null;for(let f of c){let y=h.bT(f,this._globalState);if(y.setEventedParent(this,{layer:{id:f.id}}),this._layers[f.id]=y,h.bU(y)&&this.tileManagers[y.source]){let x=(s=(n=f.paint)===null||n===void 0?void 0:n[\"raster-fade-duration\"])!==null&&s!==void 0?s:y.paint.get(\"raster-fade-duration\");this.tileManagers[y.source].setRasterFadeDuration(x)}}}_loadSprite(t,n=!1,s=void 0){this.imageManager.setLoaded(!1);let c=new AbortController,f;this._spriteRequest=c,(function(y,x,w,S){return h._(this,void 0,void 0,(function*(){let M=ei(y),E=w>1?\"@2x\":\"\",I={},D={};for(let{id:B,url:V}of M){let q=yield x.transformRequest(Qi(V,E,\".json\"),\"SpriteJSON\");I[B]=h.k(q,S);let N=yield x.transformRequest(Qi(V,E,\".png\"),\"SpriteImage\");D[B]=st.getImage(N,S)}return yield Promise.all([...Object.values(I),...Object.values(D)]),(function(B,V){return h._(this,void 0,void 0,(function*(){let q={};for(let N in B){q[N]={};let G=Ge.getImageCanvasContext((yield V[N]).data),X=(yield B[N]).data;for(let $ in X){let{width:U,height:H,x:Z,y:te,sdf:se,pixelRatio:ce,stretchX:_e,stretchY:ge,content:Re,textFitWidth:Ce,textFitHeight:me}=X[$];q[N][$]={data:null,pixelRatio:ce,sdf:se,stretchX:_e,stretchY:ge,content:Re,textFitWidth:Ce,textFitHeight:me,spriteData:{width:U,height:H,x:Z,y:te,context:G}}}}return q}))})(I,D)}))})(t,this.map._requestManager,this.map.getPixelRatio(),this._spriteRequest).then((y=>{if(this._spriteRequest=null,y)for(let x in y){this._spritesImagesIds[x]=[];let w=this._spritesImagesIds[x]?this._spritesImagesIds[x].filter((S=>!(S in y))):[];for(let S of w)this.imageManager.removeImage(S),this._changedImages[S]=!0;for(let S in y[x]){let M=x===\"default\"?S:`${x}:${S}`;this._spritesImagesIds[x].push(M),M in this.imageManager.images?this.imageManager.updateImage(M,y[x][S],!1):this.imageManager.addImage(M,y[x][S]),n&&(this._changedImages[M]=!0)}}})).catch((y=>{this._spriteRequest=null,f=y,c.signal.aborted||this.fire(new h.l(f))})).finally((()=>{this.imageManager.setLoaded(!0),this._availableImages=this.imageManager.listImages(),n&&(this._changed=!0),this.dispatcher.broadcast(\"SI\",this._availableImages),this.fire(new h.n(\"data\",{dataType:\"style\"})),s&&s(f)}))}_unloadSprite(){for(let t of Object.values(this._spritesImagesIds).flat())this.imageManager.removeImage(t),this._changedImages[t]=!0;this._spritesImagesIds={},this._availableImages=this.imageManager.listImages(),this._changed=!0,this.dispatcher.broadcast(\"SI\",this._availableImages),this.fire(new h.n(\"data\",{dataType:\"style\"}))}_validateLayer(t){let n=this.tileManagers[t.source];if(!n)return;let s=t.sourceLayer;if(!s)return;let c=n.getSource();(c.type===\"geojson\"||c.vectorLayerIds&&!c.vectorLayerIds.includes(s))&&this.fire(new h.l(new Error(`Source layer \"${s}\" does not exist on source \"${c.id}\" as specified by style layer \"${t.id}\".`)))}loaded(){if(!this._loaded||Object.keys(this._updatedSources).length)return!1;for(let t in this.tileManagers)if(!this.tileManagers[t].loaded())return!1;return this.imageManager.isLoaded()}_serializeByIds(t,n=!1){let s=this._serializedAllLayers();if(!t||t.length===0)return Object.values(n?h.bV(s):s);let c=[];for(let f of t)if(s[f]){let y=n?h.bV(s[f]):s[f];c.push(y)}return c}_serializedAllLayers(){let t=this._serializedLayers;if(t)return t;t=this._serializedLayers={};let n=Object.keys(this._layers);for(let s of n){let c=this._layers[s];c.type!==\"custom\"&&(t[s]=c.serialize())}return t}hasTransitions(){var t,n,s;if(!((t=this.light)===null||t===void 0)&&t.hasTransition()||!((n=this.sky)===null||n===void 0)&&n.hasTransition()||!((s=this.projection)===null||s===void 0)&&s.hasTransition())return!0;for(let c in this.tileManagers)if(this.tileManagers[c].hasTransition())return!0;for(let c in this._layers)if(this._layers[c].hasTransition())return!0;return!1}_checkLoaded(){if(!this._loaded)throw new Error(\"Style is not done loading.\")}update(t){if(!this._loaded)return;let n=this._changed;if(n){let c=Object.keys(this._updatedLayers),f=Object.keys(this._removedLayers);(c.length||f.length)&&this._updateWorkerLayers(c,f);for(let y in this._updatedSources){let x=this._updatedSources[y];if(x===\"reload\")this._reloadSource(y);else{if(x!==\"clear\")throw new Error(`Invalid action ${x}`);this._clearSource(y)}}this._updateTilesForChangedImages(),this._updateTilesForChangedGlyphs();for(let y in this._updatedPaintProps)this._layers[y].updateTransitions(t);this.light.updateTransitions(t),this.sky.updateTransitions(t),this._resetUpdates()}let s={};for(let c in this.tileManagers){let f=this.tileManagers[c];s[c]=f.used,f.used=!1}for(let c of this._order){let f=this._layers[c];f.recalculate(t,this._availableImages),!f.isHidden(t.zoom)&&f.source&&(this.tileManagers[f.source].used=!0)}for(let c in s){let f=this.tileManagers[c];!!s[c]!=!!f.used&&f.fire(new h.n(\"data\",{sourceDataType:\"visibility\",dataType:\"source\",sourceId:c}))}this.light.recalculate(t),this.sky.recalculate(t),this.projection.recalculate(t),this.z=t.zoom,n&&this.fire(new h.n(\"data\",{dataType:\"style\"}))}_updateTilesForChangedImages(){let t=Object.keys(this._changedImages);if(t.length){for(let n in this.tileManagers)this.tileManagers[n].reloadTilesForDependencies([\"icons\",\"patterns\"],t);this._changedImages={}}}_updateTilesForChangedGlyphs(){if(this._glyphsDidChange){for(let t in this.tileManagers)this.tileManagers[t].reloadTilesForDependencies([\"glyphs\"],[\"\"]);this._glyphsDidChange=!1}}_updateWorkerLayers(t,n){this.dispatcher.broadcast(\"UL\",{layers:this._serializeByIds(t,!1),removedIds:n})}_resetUpdates(){this._changed=!1,this._updatedLayers={},this._removedLayers={},this._updatedSources={},this._updatedPaintProps={},this._changedImages={},this._glyphsDidChange=!1}setState(t,n={}){var s;this._checkLoaded();let c=this.serialize();if(t=n.transformStyle?n.transformStyle(c,t):t,((s=n.validate)===null||s===void 0||s)&&ka(this,h.F(t)))return!1;(t=h.bV(t)).layers=h.bS(t.layers);let f=h.bW(c,t),y=this._getOperationsToPerform(f);if(y.unimplemented.length>0)throw new Error(`Unimplemented: ${y.unimplemented.join(\", \")}.`);if(y.operations.length===0)return!1;for(let x of y.operations)x();return this.stylesheet=t,this._serializedLayers=null,this.fire(new h.n(\"style.load\",{style:this})),!0}_getOperationsToPerform(t){let n=[],s=[];for(let c of t)switch(c.command){case\"setCenter\":case\"setZoom\":case\"setBearing\":case\"setPitch\":case\"setRoll\":continue;case\"addLayer\":n.push((()=>this.addLayer.apply(this,c.args)));break;case\"removeLayer\":n.push((()=>this.removeLayer.apply(this,c.args)));break;case\"setPaintProperty\":n.push((()=>this.setPaintProperty.apply(this,c.args)));break;case\"setLayoutProperty\":n.push((()=>this.setLayoutProperty.apply(this,c.args)));break;case\"setFilter\":n.push((()=>this.setFilter.apply(this,c.args)));break;case\"addSource\":n.push((()=>this.addSource.apply(this,c.args)));break;case\"removeSource\":n.push((()=>this.removeSource.apply(this,c.args)));break;case\"setLayerZoomRange\":n.push((()=>this.setLayerZoomRange.apply(this,c.args)));break;case\"setLight\":n.push((()=>this.setLight.apply(this,c.args)));break;case\"setGeoJSONSourceData\":n.push((()=>this.setGeoJSONSourceData.apply(this,c.args)));break;case\"setGlyphs\":n.push((()=>this.setGlyphs.apply(this,c.args)));break;case\"setSprite\":n.push((()=>this.setSprite.apply(this,c.args)));break;case\"setTerrain\":n.push((()=>this.map.setTerrain.apply(this,c.args)));break;case\"setSky\":n.push((()=>this.setSky.apply(this,c.args)));break;case\"setProjection\":this.setProjection.apply(this,c.args);break;case\"setGlobalState\":n.push((()=>this.setGlobalState.apply(this,c.args)));break;case\"setTransition\":n.push((()=>{}));break;default:s.push(c.command)}return{operations:n,unimplemented:s}}addImage(t,n){if(this.getImage(t))return this.fire(new h.l(new Error(`An image named \"${t}\" already exists.`)));this.imageManager.addImage(t,n),this._afterImageUpdated(t)}updateImage(t,n){this.imageManager.updateImage(t,n)}getImage(t){return this.imageManager.getImage(t)}removeImage(t){if(!this.getImage(t))return this.fire(new h.l(new Error(`An image named \"${t}\" does not exist.`)));this.imageManager.removeImage(t),this._afterImageUpdated(t)}_afterImageUpdated(t){this._availableImages=this.imageManager.listImages(),this._changedImages[t]=!0,this._changed=!0,this.dispatcher.broadcast(\"SI\",this._availableImages),this.fire(new h.n(\"data\",{dataType:\"style\"}))}listImages(){return this._checkLoaded(),this.imageManager.listImages()}addSource(t,n,s={}){var c;if(this._checkLoaded(),this.tileManagers[t]!==void 0)throw new Error(`Source \"${t}\" already exists.`);if(!n.type)throw new Error(`The type property must be defined, but only the following properties were given: ${Object.keys(n).join(\", \")}.`);if([\"vector\",\"raster\",\"geojson\",\"video\",\"image\"].includes(n.type)&&this._validate(h.F.source,`sources.${t}`,n,null,s))return;!((c=this.map)===null||c===void 0)&&c._collectResourceTiming&&(n.collectResourceTiming=!0);let f=this.tileManagers[t]=new ui(t,n,this.dispatcher);f.style=this,f.setEventedParent(this,(()=>({isSourceLoaded:f.loaded(),source:f.serialize(),sourceId:t}))),f.onAdd(this.map),this._changed=!0}removeSource(t){if(this._checkLoaded(),this.tileManagers[t]===void 0)throw new Error(`There is no source with this ID=${t}`);for(let s in this._layers)if(this._layers[s].source===t)return this.fire(new h.l(new Error(`Source \"${t}\" cannot be removed while layer \"${s}\" is using it.`)));let n=this.tileManagers[t];delete this.tileManagers[t],delete this._updatedSources[t],n.fire(new h.n(\"data\",{sourceDataType:\"metadata\",dataType:\"source\",sourceId:t})),n.setEventedParent(null),n.onRemove(this.map),this._changed=!0}setGeoJSONSourceData(t,n){if(this._checkLoaded(),this.tileManagers[t]===void 0)throw new Error(`There is no source with this ID=${t}`);let s=this.tileManagers[t].getSource();if(s.type!==\"geojson\")throw new Error(`geojsonSource.type is ${s.type}, which is !== 'geojson`);s.setData(n),this._changed=!0}getSource(t){var n;return(n=this.tileManagers[t])===null||n===void 0?void 0:n.getSource()}addLayer(t,n,s={}){this._checkLoaded();let c=t.id;if(this.getLayer(c))return void this.fire(new h.l(new Error(`Layer \"${c}\" already exists on this map.`)));let f;if(t.type===\"custom\"){if(ka(this,h.bX(t)))return;f=h.bT(t,this._globalState)}else{if(\"source\"in t&&typeof t.source==\"object\"&&(this.addSource(c,t.source),t=h.bV(t),t=h.e(t,{source:c})),this._validate(h.F.layer,`layers.${c}`,t,{arrayIndex:-1},s))return;f=h.bT(t,this._globalState),this._validateLayer(f),f.setEventedParent(this,{layer:{id:c}})}let y=n?this._order.indexOf(n):this._order.length;if(n&&y===-1)this.fire(new h.l(new Error(`Cannot add layer \"${c}\" before non-existing layer \"${n}\".`)));else{if(this._order.splice(y,0,c),this._layerOrderChanged=!0,this._layers[c]=f,this._removedLayers[c]&&f.source&&f.type!==\"custom\"){let x=this._removedLayers[c];delete this._removedLayers[c],x.type!==f.type?this._updatedSources[f.source]=\"clear\":(this._updatedSources[f.source]=\"reload\",this.tileManagers[f.source].pause())}this._updateLayer(f),f.onAdd&&f.onAdd(this.map)}}moveLayer(t,n){if(this._checkLoaded(),this._changed=!0,!this._layers[t])return void this.fire(new h.l(new Error(`The layer '${t}' does not exist in the map's style and cannot be moved.`)));if(t===n)return;let s=this._order.indexOf(t);this._order.splice(s,1);let c=n?this._order.indexOf(n):this._order.length;n&&c===-1?this.fire(new h.l(new Error(`Cannot move layer \"${t}\" before non-existing layer \"${n}\".`))):(this._order.splice(c,0,t),this._layerOrderChanged=!0)}removeLayer(t){this._checkLoaded();let n=this._layers[t];if(!n)return void this.fire(new h.l(new Error(`Cannot remove non-existing layer \"${t}\".`)));n.setEventedParent(null);let s=this._order.indexOf(t);this._order.splice(s,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[t]=n,delete this._layers[t],this._serializedLayers&&delete this._serializedLayers[t],delete this._updatedLayers[t],delete this._updatedPaintProps[t],n.onRemove&&n.onRemove(this.map)}getLayer(t){return this._layers[t]}getLayersOrder(){return[...this._order]}hasLayer(t){return t in this._layers}setLayerZoomRange(t,n,s){this._checkLoaded();let c=this.getLayer(t);c?c.minzoom===n&&c.maxzoom===s||(n!=null&&(c.minzoom=n),s!=null&&(c.maxzoom=s),this._updateLayer(c)):this.fire(new h.l(new Error(`Cannot set the zoom range of non-existing layer \"${t}\".`)))}setFilter(t,n,s={}){this._checkLoaded();let c=this.getLayer(t);if(c){if(!h.bQ(c.filter,n))return n==null?(c.setFilter(void 0),void this._updateLayer(c)):void(this._validate(h.F.filter,`layers.${c.id}.filter`,n,null,s)||(c.setFilter(h.bV(n)),this._updateLayer(c)))}else this.fire(new h.l(new Error(`Cannot filter non-existing layer \"${t}\".`)))}getFilter(t){return h.bV(this.getLayer(t).filter)}setLayoutProperty(t,n,s,c={}){this._checkLoaded();let f=this.getLayer(t);f?h.bQ(f.getLayoutProperty(n),s)||(f.setLayoutProperty(n,s,c),this._updateLayer(f)):this.fire(new h.l(new Error(`Cannot style non-existing layer \"${t}\".`)))}getLayoutProperty(t,n){let s=this.getLayer(t);if(s)return s.getLayoutProperty(n);this.fire(new h.l(new Error(`Cannot get style of non-existing layer \"${t}\".`)))}setPaintProperty(t,n,s,c={}){this._checkLoaded();let f=this.getLayer(t);f?h.bQ(f.getPaintProperty(n),s)||this._updatePaintProperty(f,n,s,c):this.fire(new h.l(new Error(`Cannot style non-existing layer \"${t}\".`)))}_updatePaintProperty(t,n,s,c={}){t.setPaintProperty(n,s,c)&&this._updateLayer(t),h.bU(t)&&n===\"raster-fade-duration\"&&this.tileManagers[t.source].setRasterFadeDuration(s),this._changed=!0,this._updatedPaintProps[t.id]=!0,this._serializedLayers=null}getPaintProperty(t,n){return this.getLayer(t).getPaintProperty(n)}setFeatureState(t,n){this._checkLoaded();let s=t.source,c=t.sourceLayer,f=this.tileManagers[s];if(f===void 0)return void this.fire(new h.l(new Error(`The source '${s}' does not exist in the map's style.`)));let y=f.getSource().type;y===\"geojson\"&&c?this.fire(new h.l(new Error(\"GeoJSON sources cannot have a sourceLayer parameter.\"))):y!==\"vector\"||c?(t.id===void 0&&this.fire(new h.l(new Error(\"The feature id parameter must be provided.\"))),f.setFeatureState(c,t.id,n)):this.fire(new h.l(new Error(\"The sourceLayer parameter must be provided for vector source types.\")))}removeFeatureState(t,n){this._checkLoaded();let s=t.source,c=this.tileManagers[s];if(c===void 0)return void this.fire(new h.l(new Error(`The source '${s}' does not exist in the map's style.`)));let f=c.getSource().type,y=f===\"vector\"?t.sourceLayer:void 0;f!==\"vector\"||y?n&&typeof t.id!=\"string\"&&typeof t.id!=\"number\"?this.fire(new h.l(new Error(\"A feature id is required to remove its specific state property.\"))):c.removeFeatureState(y,t.id,n):this.fire(new h.l(new Error(\"The sourceLayer parameter must be provided for vector source types.\")))}getFeatureState(t){this._checkLoaded();let n=t.source,s=t.sourceLayer,c=this.tileManagers[n];if(c!==void 0)return c.getSource().type!==\"vector\"||s?(t.id===void 0&&this.fire(new h.l(new Error(\"The feature id parameter must be provided.\"))),c.getFeatureState(s,t.id)):void this.fire(new h.l(new Error(\"The sourceLayer parameter must be provided for vector source types.\")));this.fire(new h.l(new Error(`The source '${n}' does not exist in the map's style.`)))}getTransition(){var t;return h.e({duration:300,delay:0},(t=this.stylesheet)===null||t===void 0?void 0:t.transition)}serialize(){if(!this._loaded)return;let t=h.bY(this.tileManagers,(f=>f.serialize())),n=this._serializeByIds(this._order,!0),s=this.map.getTerrain()||void 0,c=this.stylesheet;return h.bZ({version:c.version,name:c.name,metadata:c.metadata,light:c.light,sky:c.sky,center:c.center,zoom:c.zoom,bearing:c.bearing,pitch:c.pitch,sprite:c.sprite,glyphs:c.glyphs,transition:c.transition,projection:c.projection,sources:t,layers:n,terrain:s},(f=>f!==void 0))}_updateLayer(t){this._updatedLayers[t.id]=!0,t.source&&!this._updatedSources[t.source]&&this.tileManagers[t.source].getSource().type!==\"raster\"&&(this._updatedSources[t.source]=\"reload\",this.tileManagers[t.source].pause()),this._serializedLayers=null,this._changed=!0}_flattenAndSortRenderedFeatures(t){let n=y=>this._layers[y].type===\"fill-extrusion\",s={},c=[];for(let y=this._order.length-1;y>=0;y--){let x=this._order[y];if(n(x)){s[x]=y;for(let w of t){let S=w[x];if(S)for(let M of S)c.push(M)}}}c.sort(((y,x)=>x.intersectionZ-y.intersectionZ));let f=[];for(let y=this._order.length-1;y>=0;y--){let x=this._order[y];if(n(x))for(let w=c.length-1;w>=0;w--){let S=c[w].feature;if(s[S.layer.id]this.map.terrain.getElevation(M,E,I):void 0));return this.placement&&f.push((function(S,M,E,I,D,B,V){let q={},N=B.queryRenderedSymbols(I),G=[];for(let X of Object.keys(N).map(Number))G.push(V[X]);G.sort(fe);for(let X of G){let $=X.featureIndex.lookupSymbolFeatures(N[X.bucketInstanceId],M,X.bucketIndex,X.sourceLayerIndex,{filterSpec:D.filter,globalState:D.globalState},D.layers,D.availableImages,S);for(let U in $){q[U]||(q[U]=[]);let H=$[U];H.sort(((Z,te)=>{let se=X.featureSortOrder;if(se){let ce=se.indexOf(Z.featureIndex);return se.indexOf(te.featureIndex)-ce}return te.featureIndex-Z.featureIndex}));for(let Z of H)q[U].push(Z)}}return(function(X,$,U){for(let H in X)for(let Z of X[H])ke(Z,U[$[H].source]);return X})(q,S,E)})(this._layers,y,this.tileManagers,t,w,this.placement.collisionIndex,this.placement.retainedQueryData)),this._flattenAndSortRenderedFeatures(f)}querySourceFeatures(t,n){n?.filter&&this._validate(h.F.filter,\"querySourceFeatures.filter\",n.filter,null,n);let s=this.tileManagers[t];return s?(function(c,f){let y=c.getRenderableIds().map((S=>c.getTileByID(S))),x=[],w={};for(let S of y){let M=S.tileID.canonical.key;w[M]||(w[M]=!0,S.querySourceFeatures(x,f))}return x})(s,n?Object.assign(Object.assign({},n),{globalState:this._globalState}):{globalState:this._globalState}):[]}getLight(){return this.light.getLight()}setLight(t,n={}){this._checkLoaded();let s=this.light.getLight(),c=!1;for(let y in t)if(!h.bQ(t[y],s[y])){c=!0;break}if(!c)return;let f={now:Fe(),transition:h.e({duration:300,delay:0},this.stylesheet.transition)};this.light.setLight(t,n),this.light.updateTransitions(f)}getProjection(){var t;return(t=this.stylesheet)===null||t===void 0?void 0:t.projection}setProjection(t){this._checkLoaded();let n=t??{type:\"mercator\"};if(this.stylesheet.projection=t,this.projection){if(this.projection.name===n.type)return;this.projection.destroy(),delete this.projection}this._setProjectionInternal(n.type)}getSky(){var t;return(t=this.stylesheet)===null||t===void 0?void 0:t.sky}setSky(t,n={}){this._checkLoaded();let s=this.getSky(),c=!1;if(!t&&!s)return;if(t&&!s)c=!0;else if(!t&&s)c=!0;else for(let y in t)if(!h.bQ(t[y],s[y])){c=!0;break}if(!c)return;let f={now:Fe(),transition:h.e({duration:300,delay:0},this.stylesheet.transition)};this.stylesheet.sky=t,this.sky.setSky(t,n),this.sky.updateTransitions(f)}_setProjectionInternal(t){let n=(function(s,c){let f={constrainOverride:c};if(Array.isArray(s)){let y=new Mc({type:s});return{projection:y,transform:new to(f),cameraHelper:new mr(y)}}switch(s){case\"mercator\":return{projection:new Ei,transform:new yn(f),cameraHelper:new vn};case\"globe\":{let y=new Mc({type:[\"interpolate\",[\"linear\"],[\"zoom\"],11,\"vertical-perspective\",12,\"mercator\"]});return{projection:y,transform:new to(f),cameraHelper:new mr(y)}}case\"vertical-perspective\":return{projection:new Ia,transform:new wn(f),cameraHelper:new Wi};default:return h.w(`Unknown projection name: ${s}. Falling back to mercator projection.`),{projection:new Ei,transform:new yn(f),cameraHelper:new vn}}})(t,this.map.transformConstrain);this.projection=n.projection,this.map.migrateProjection(n.transform,n.cameraHelper);for(let s in this.tileManagers)this.tileManagers[s].reload()}_validate(t,n,s,c,f={}){return f?.validate!==!1&&ka(this,t.call(h.F,h.e({key:n,style:this.serialize(),value:s,styleSpec:h.x},c)))}_remove(t=!0){this._frameRequest&&(this._frameRequest.abort(),this._frameRequest=null),this._loadStyleRequest&&(this._loadStyleRequest.abort(),this._loadStyleRequest=null),this._spriteRequest&&(this._spriteRequest.abort(),this._spriteRequest=null),Wr().off(Po,this._rtlPluginLoaded);for(let n in this._layers)this._layers[n].setEventedParent(null);for(let n in this.tileManagers){let s=this.tileManagers[n];s.setEventedParent(null),s.onRemove(this.map)}this.imageManager.setEventedParent(null),this.setEventedParent(null),t&&this.dispatcher.broadcast(\"RM\",void 0),this.dispatcher.remove(t)}_clearSource(t){this.tileManagers[t].clearTiles()}_reloadSource(t){this.tileManagers[t].resume(),this.tileManagers[t].reload()}_updateSources(t){for(let n in this.tileManagers)this.tileManagers[n].update(t,this.map.terrain)}_generateCollisionBoxes(){for(let t in this.tileManagers)this._reloadSource(t)}_updatePlacement(t,n,s,c,f=!1){let y=!1,x=!1,w={};for(let S of this._order){let M=this._layers[S];if(M.type!==\"symbol\")continue;if(!w[M.source]){let I=this.tileManagers[M.source];w[M.source]=I.getRenderableIds(!0).map((D=>I.getTileByID(D))).sort(((D,B)=>B.tileID.overscaledZ-D.tileID.overscaledZ||(D.tileID.isLessThan(B.tileID)?-1:1)))}let E=this.crossTileSymbolIndex.addLayer(M,w[M.source],t.center.lng);y||(y=E)}if(this.crossTileSymbolIndex.pruneUnusedLayers(this._order),f||(f=this._layerOrderChanged||s===0),(f||!this.pauseablePlacement||this.pauseablePlacement.isDone()&&!this.placement.stillRecent(Fe(),t.zoom))&&(this.pauseablePlacement=new Hn(t,this.map.terrain,this._order,f,n,s,c,this.placement),this._layerOrderChanged=!1),this.pauseablePlacement.isDone()?this.placement.setStale():(this.pauseablePlacement.continuePlacement(this._order,this._layers,w),this.pauseablePlacement.isDone()&&(this.placement=this.pauseablePlacement.commit(Fe()),x=!0),y&&this.pauseablePlacement.placement.setStale()),x||y)for(let S of this._order){let M=this._layers[S];M.type===\"symbol\"&&this.placement.updateLayerOpacities(M,w[M.source])}return!this.pauseablePlacement.isDone()||this.placement.hasTransitions(Fe())}_releaseSymbolFadeTiles(){for(let t in this.tileManagers)this.tileManagers[t].releaseSymbolFadeTiles()}getImages(t,n){return h._(this,void 0,void 0,(function*(){let s=yield this.imageManager.getImages(n.icons);this._updateTilesForChangedImages();let c=this.tileManagers[n.source];return c&&c.setDependencies(n.tileID.key,n.type,n.icons),s}))}getGlyphs(t,n){return h._(this,void 0,void 0,(function*(){let s=yield this.glyphManager.getGlyphs(n.stacks),c=this.tileManagers[n.source];return c&&c.setDependencies(n.tileID.key,n.type,[\"\"]),s}))}getGlyphsUrl(){return this.stylesheet.glyphs||null}setGlyphs(t,n={}){this._checkLoaded(),t&&this._validate(h.F.glyphs,\"glyphs\",t,null,n)||(this._glyphsDidChange=!0,this.stylesheet.glyphs=t,this.glyphManager.entries={},this.glyphManager.setURL(t))}getDashes(t,n){return h._(this,void 0,void 0,(function*(){let s={};for(let[c,f]of Object.entries(n.dashes))s[c]=this.lineAtlas.getDash(f.dasharray,f.round);return s}))}addSprite(t,n,s={},c){this._checkLoaded();let f=[{id:t,url:n}],y=[...ei(this.stylesheet.sprite),...f];this._validate(h.F.sprite,\"sprite\",y,null,s)||(this.stylesheet.sprite=y,this._loadSprite(f,!0,c))}removeSprite(t){this._checkLoaded();let n=ei(this.stylesheet.sprite);if(n.find((s=>s.id===t))){if(this._spritesImagesIds[t])for(let s of this._spritesImagesIds[t])this.imageManager.removeImage(s),this._changedImages[s]=!0;n.splice(n.findIndex((s=>s.id===t)),1),this.stylesheet.sprite=n.length>0?n:void 0,delete this._spritesImagesIds[t],this._availableImages=this.imageManager.listImages(),this._changed=!0,this.dispatcher.broadcast(\"SI\",this._availableImages),this.fire(new h.n(\"data\",{dataType:\"style\"}))}else this.fire(new h.l(new Error(`Sprite \"${t}\" doesn't exists on this map.`)))}getSprite(){return ei(this.stylesheet.sprite)}setSprite(t,n={},s){this._checkLoaded(),t&&this._validate(h.F.sprite,\"sprite\",t,null,n)||(this.stylesheet.sprite=t,t?this._loadSprite(t,!0,s):(this._unloadSprite(),s&&s(null)))}destroy(){this._frameRequest&&(this._frameRequest.abort(),this._frameRequest=null),this._loadStyleRequest&&(this._loadStyleRequest.abort(),this._loadStyleRequest=null),this._spriteRequest&&(this._spriteRequest.abort(),this._spriteRequest=null);for(let t in this.tileManagers){let n=this.tileManagers[t];n.setEventedParent(null),n.onRemove(this.map)}this.tileManagers={},this.imageManager&&(this.imageManager.setEventedParent(null),this.imageManager.destroy(),this._availableImages=[],this._spritesImagesIds={}),this.glyphManager&&this.glyphManager.destroy();for(let t in this._layers){let n=this._layers[t];n.setEventedParent(null),n.onRemove&&n.onRemove(this.map)}this._setInitialValues(),this.setEventedParent(null),this.dispatcher.unregisterMessageHandler(\"GG\"),this.dispatcher.unregisterMessageHandler(\"GI\"),this.dispatcher.unregisterMessageHandler(\"GDA\"),this.dispatcher.remove(!0),this._listeners={},this._oneTimeListeners={}}}var Oo=h.aS([{name:\"a_pos\",type:\"Int16\",components:2},{name:\"a_texture_pos\",type:\"Int16\",components:2}]);class Yu{constructor(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null}bind(t,n,s,c,f,y,x,w,S){this.context=t;let M=this.boundPaintVertexBuffers.length!==c.length;for(let E=0;!M&&E({u_texture:0,u_ele_delta:d,u_fog_matrix:t,u_fog_color:n?n.properties.get(\"fog-color\"):h.bo.white,u_fog_ground_blend:n?n.properties.get(\"fog-ground-blend\"):1,u_fog_ground_blend_opacity:c?0:n?n.calculateFogBlendOpacity(s):0,u_horizon_color:n?n.properties.get(\"horizon-color\"):h.bo.white,u_horizon_fog_blend:n?n.properties.get(\"horizon-fog-blend\"):1,u_is_globe_mode:c?1:0}),Ku={mainMatrix:\"u_projection_matrix\",tileMercatorCoords:\"u_projection_tile_mercator_coords\",clippingPlane:\"u_projection_clipping_plane\",projectionTransition:\"u_projection_transition\",fallbackMatrix:\"u_projection_fallback_matrix\"};function kr(d){let t=[];for(let n of d){if(n===null)continue;let s=n.split(\" \");t.push(s.pop())}return t}class Ju{constructor(t,n,s,c,f,y,x,w,S=[]){let M=t.gl;this.program=M.createProgram();let E=kr(n.staticAttributes),I=s?s.getBinderAttributes():[],D=E.concat(I),B=Rt.prelude.staticUniforms?kr(Rt.prelude.staticUniforms):[],V=x.staticUniforms?kr(x.staticUniforms):[],q=n.staticUniforms?kr(n.staticUniforms):[],N=s?s.getBinderUniforms():[],G=B.concat(V).concat(q).concat(N),X=[];for(let ce of G)X.includes(ce)||X.push(ce);let $=s?s.defines():[];fr(M)&&$.unshift(\"#version 300 es\"),f&&$.push(\"#define OVERDRAW_INSPECTOR;\"),y&&$.push(\"#define TERRAIN3D;\"),w&&$.push(w),S&&$.push(...S);let U=$.concat(Rt.prelude.fragmentSource,x.fragmentSource,n.fragmentSource).join(`\n`),H=$.concat(Rt.prelude.vertexSource,x.vertexSource,n.vertexSource).join(`\n`);fr(M)||(U=(function(ce){return ce.replace(/\\bin\\s/g,\"varying \").replace(\"out highp vec4 fragColor;\",\"\").replace(/fragColor/g,\"gl_FragColor\").replace(/texture\\(/g,\"texture2D(\")})(U),H=(function(ce){return ce.replace(/\\bin\\s/g,\"attribute \").replace(/\\bout\\s/g,\"varying \").replace(/texture\\(/g,\"texture2D(\")})(H));let Z=M.createShader(M.FRAGMENT_SHADER);if(M.isContextLost())return void(this.failedToCreate=!0);if(M.shaderSource(Z,U),M.compileShader(Z),!M.getShaderParameter(Z,M.COMPILE_STATUS))throw new Error(`Could not compile fragment shader: ${M.getShaderInfoLog(Z)}`);M.attachShader(this.program,Z);let te=M.createShader(M.VERTEX_SHADER);if(M.isContextLost())return void(this.failedToCreate=!0);if(M.shaderSource(te,H),M.compileShader(te),!M.getShaderParameter(te,M.COMPILE_STATUS))throw new Error(`Could not compile vertex shader: ${M.getShaderInfoLog(te)}`);M.attachShader(this.program,te),this.attributes={};let se={};this.numAttributes=D.length;for(let ce=0;ce({u_depth:new h.b_(ce,_e.u_depth),u_terrain:new h.b_(ce,_e.u_terrain),u_terrain_dim:new h.bp(ce,_e.u_terrain_dim),u_terrain_matrix:new h.c0(ce,_e.u_terrain_matrix),u_terrain_unpack:new h.c1(ce,_e.u_terrain_unpack),u_terrain_exaggeration:new h.bp(ce,_e.u_terrain_exaggeration)}))(t,se),this.projectionUniforms=((ce,_e)=>({u_projection_matrix:new h.c0(ce,_e.u_projection_matrix),u_projection_tile_mercator_coords:new h.c1(ce,_e.u_projection_tile_mercator_coords),u_projection_clipping_plane:new h.c1(ce,_e.u_projection_clipping_plane),u_projection_transition:new h.bp(ce,_e.u_projection_transition),u_projection_fallback_matrix:new h.c0(ce,_e.u_projection_fallback_matrix)}))(t,se),this.binderUniforms=s?s.getUniforms(t,se):[]}draw(t,n,s,c,f,y,x,w,S,M,E,I,D,B,V,q,N,G,X){var $;let U=t.gl;if(this.failedToCreate)return;if(t.program.set(this.program),t.setDepthMode(s),t.setStencilMode(c),t.setColorMode(f),t.setCullFace(y),w){t.activeTexture.set(U.TEXTURE2),U.bindTexture(U.TEXTURE_2D,w.depthTexture),t.activeTexture.set(U.TEXTURE3),U.bindTexture(U.TEXTURE_2D,w.texture);for(let Z in this.terrainUniforms)this.terrainUniforms[Z].set(w[Z])}if(S)for(let Z in S)this.projectionUniforms[Ku[Z]].set(S[Z]);if(x)for(let Z in this.fixedUniforms)this.fixedUniforms[Z].set(x[Z]);q&&q.setUniforms(t,this.binderUniforms,B,{zoom:V});let H=0;switch(n){case U.LINES:H=2;break;case U.TRIANGLES:H=3;break;case U.LINE_STRIP:H=1}for(let Z of D.get())Z.vaos||(Z.vaos={}),($=Z.vaos)[M]||($[M]=new Yu),Z.vaos[M].bind(t,this,E,q?q.getPaintVertexBuffers():[],I,Z.vertexOffset,N,G,X),U.drawElements(n,Z.primitiveLength*H,U.UNSIGNED_SHORT,Z.primitiveOffset*H*2)}}function ol(d,t,n){let s=1/h.aK(n,1,t.transform.tileZoom),c=Math.pow(2,n.tileID.overscaledZ),f=n.tileSize*Math.pow(2,t.transform.tileZoom)/c,y=f*(n.tileID.canonical.x+n.tileID.wrap*c),x=f*n.tileID.canonical.y;return{u_image:0,u_texsize:n.imageAtlasTexture.size,u_scale:[s,d.fromScale,d.toScale],u_fade:d.t,u_pixel_coord_upper:[y>>16,x>>16],u_pixel_coord_lower:[65535&y,65535&x]}}let Ec=(d,t,n,s)=>{let c=d.style.light,f=c.properties.get(\"position\"),y=[f.x,f.y,f.z],x=h.c4();c.properties.get(\"anchor\")===\"viewport\"&&h.c5(x,d.transform.bearingInRadians),h.c6(y,y,x);let w=d.transform.transformLightDirection(y),S=c.properties.get(\"color\");return{u_lightpos:y,u_lightpos_globe:w,u_lightintensity:c.properties.get(\"intensity\"),u_lightcolor:[S.r,S.g,S.b],u_vertical_gradient:+t,u_opacity:n,u_fill_translate:s}},Ic=(d,t,n,s,c,f,y)=>h.e(Ec(d,t,n,s),ol(f,d,y),{u_height_factor:-Math.pow(2,c.overscaledZ)/y.tileSize/8}),La=(d,t,n,s)=>h.e(ol(t,d,n),{u_fill_translate:s}),Ac=(d,t)=>({u_world:d,u_fill_translate:t}),zc=(d,t,n,s,c)=>h.e(La(d,t,n,c),{u_world:s}),Dc=(d,t,n,s,c)=>{let f=d.transform,y,x,w=0;if(n.paint.get(\"circle-pitch-alignment\")===\"map\"){let S=h.aK(t,1,f.zoom);y=!0,x=[S,S],w=S/(h.a6*Math.pow(2,t.tileID.overscaledZ))*2*Math.PI*c}else y=!1,x=f.pixelsToGLUnits;return{u_camera_to_center_distance:f.cameraToCenterDistance,u_scale_with_map:+(n.paint.get(\"circle-pitch-scale\")===\"map\"),u_pitch_with_map:+y,u_device_pixel_ratio:d.pixelRatio,u_extrude_scale:x,u_globe_extrude_scale:w,u_translate:s}},kc=d=>({u_pixel_extrude_scale:[1/d.width,1/d.height]}),Sn=d=>({u_viewport_size:[d.width,d.height]}),al=(d,t=1)=>({u_color:d,u_overlay:0,u_overlay_scale:t}),sl=(d,t,n,s)=>{let c=h.aK(d,1,t)/(h.a6*Math.pow(2,d.tileID.overscaledZ))*2*Math.PI*s;return{u_extrude_scale:h.aK(d,1,t),u_intensity:n,u_globe_extrude_scale:c}},io=(d,t,n,s)=>{let c=h.O();h.c7(c,0,d.width,d.height,0,0,1);let f=d.context.gl;return{u_matrix:c,u_world:[f.drawingBufferWidth,f.drawingBufferHeight],u_image:n,u_color_ramp:s,u_opacity:t.paint.get(\"heatmap-opacity\")}},Qu=(d,t,n)=>{let s=n.paint.get(\"hillshade-accent-color\"),c;switch(n.paint.get(\"hillshade-method\")){case\"basic\":c=4;break;case\"combined\":c=1;break;case\"igor\":c=2;break;case\"multidirectional\":c=3;break;default:c=0}let f=n.getIlluminationProperties();for(let y=0;y{let n=t.stride,s=h.O();return h.c7(s,0,h.a6,-h.a6,0,0,1),h.Q(s,s,[0,-h.a6,0]),{u_matrix:s,u_image:1,u_dimension:[n,n],u_zoom:d.overscaledZ,u_unpack:t.getUnpackVector()}};function eh(d,t){let n=Math.pow(2,t.canonical.z),s=t.canonical.y;return[new h.a7(0,s/n).toLngLat().lat,new h.a7(0,(s+1)/n).toLngLat().lat]}let th=(d,t,n=0)=>({u_image:0,u_unpack:t.getUnpackVector(),u_dimension:[t.stride,t.stride],u_elevation_stops:1,u_color_stops:4,u_color_ramp_size:n,u_opacity:d.paint.get(\"color-relief-opacity\")}),Vo=(d,t,n,s)=>{let c=d.transform;return{u_translation:wr(d,t,n),u_ratio:s/h.aK(t,1,c.zoom),u_device_pixel_ratio:d.pixelRatio,u_units_to_pixels:[1/c.pixelsToGLUnits[0],1/c.pixelsToGLUnits[1]]}},Rc=(d,t,n,s,c)=>h.e(Vo(d,t,n,s),{u_image:0,u_image_height:c}),Lc=(d,t,n,s,c)=>{let f=d.transform,y=ro(t,f);return{u_translation:wr(d,t,n),u_texsize:t.imageAtlasTexture.size,u_ratio:s/h.aK(t,1,f.zoom),u_device_pixel_ratio:d.pixelRatio,u_image:0,u_scale:[y,c.fromScale,c.toScale],u_fade:c.t,u_units_to_pixels:[1/f.pixelsToGLUnits[0],1/f.pixelsToGLUnits[1]]}},ll=(d,t,n,s,c)=>{let f=ro(t,d.transform);return h.e(Vo(d,t,n,s),{u_tileratio:f,u_crossfade_from:c.fromScale,u_crossfade_to:c.toScale,u_image:0,u_mix:c.t,u_lineatlas_width:d.lineAtlas.width,u_lineatlas_height:d.lineAtlas.height})},Fc=(d,t,n,s,c,f)=>{let y=ro(t,d.transform);return h.e(Vo(d,t,n,s),{u_image:0,u_image_height:f,u_tileratio:y,u_crossfade_from:c.fromScale,u_crossfade_to:c.toScale,u_image_dash:1,u_mix:c.t,u_lineatlas_width:d.lineAtlas.width,u_lineatlas_height:d.lineAtlas.height})};function ro(d,t){return 1/h.aK(d,1,t.tileZoom)}function wr(d,t,n){return h.aL(d.transform,t,n.paint.get(\"line-translate\"),n.paint.get(\"line-translate-anchor\"))}let cl=(d,t,n,s,c)=>{return{u_tl_parent:d,u_scale_parent:t,u_buffer_scale:1,u_fade_t:n.mix,u_opacity:n.opacity*s.paint.get(\"raster-opacity\"),u_image0:0,u_image1:1,u_brightness_low:s.paint.get(\"raster-brightness-min\"),u_brightness_high:s.paint.get(\"raster-brightness-max\"),u_saturation_factor:(y=s.paint.get(\"raster-saturation\"),y>0?1-1/(1.001-y):-y),u_contrast_factor:(f=s.paint.get(\"raster-contrast\"),f>0?1/(1-f):1+f),u_spin_weights:ul(s.paint.get(\"raster-hue-rotate\")),u_coords_top:[c[0].x,c[0].y,c[1].x,c[1].y],u_coords_bottom:[c[3].x,c[3].y,c[2].x,c[2].y]};var f,y};function ul(d){d*=Math.PI/180;let t=Math.sin(d),n=Math.cos(d);return[(2*n+1)/3,(-Math.sqrt(3)*t-n+1)/3,(Math.sqrt(3)*t-n+1)/3]}let Ba=(d,t,n,s,c,f,y,x,w,S,M,E,I)=>{let D=y.transform;return{u_is_size_zoom_constant:+(d===\"constant\"||d===\"source\"),u_is_size_feature_constant:+(d===\"constant\"||d===\"camera\"),u_size_t:t?t.uSizeT:0,u_size:t?t.uSize:0,u_camera_to_center_distance:D.cameraToCenterDistance,u_pitch:D.pitch/360*2*Math.PI,u_rotate_symbol:+n,u_aspect_ratio:D.width/D.height,u_fade_change:y.options.fadeDuration?y.symbolFadeChange:1,u_label_plane_matrix:x,u_coord_matrix:w,u_is_text:+M,u_pitch_with_map:+s,u_is_along_line:c,u_is_variable_anchor:f,u_texsize:E,u_texture:0,u_translation:S,u_pitched_scale:I}},hl=(d,t,n,s,c,f,y,x,w,S,M,E,I,D)=>{let B=y.transform;return h.e(Ba(d,t,n,s,c,f,y,x,w,S,M,E,D),{u_gamma_scale:s?Math.cos(B.pitch*Math.PI/180)*B.cameraToCenterDistance:1,u_device_pixel_ratio:y.pixelRatio,u_is_halo:I?1:0,u_is_plain:1})},dl=(d,t,n,s,c,f,y,x,w,S,M,E,I)=>h.e(hl(d,t,n,s,c,f,y,x,w,S,!0,M,!0,I),{u_texsize_icon:E,u_texture_icon:1}),Mn=(d,t)=>({u_opacity:d,u_color:t}),pl=(d,t,n,s,c)=>h.e((function(f,y,x,w){let S=x.imageManager.getPattern(f.from.toString()),M=x.imageManager.getPattern(f.to.toString()),{width:E,height:I}=x.imageManager.getPixelSize(),D=Math.pow(2,w.tileID.overscaledZ),B=w.tileSize*Math.pow(2,x.transform.tileZoom)/D,V=B*(w.tileID.canonical.x+w.tileID.wrap*D),q=B*w.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:S.tl,u_pattern_br_a:S.br,u_pattern_tl_b:M.tl,u_pattern_br_b:M.br,u_texsize:[E,I],u_mix:y.t,u_pattern_size_a:S.displaySize,u_pattern_size_b:M.displaySize,u_scale_a:y.fromScale,u_scale_b:y.toScale,u_tile_units_to_pixels:1/h.aK(w,1,x.transform.tileZoom),u_pixel_coord_upper:[V>>16,q>>16],u_pixel_coord_lower:[65535&V,65535&q]}})(n,c,t,s),{u_opacity:d}),Bc=(d,t)=>{},ih={fillExtrusion:(d,t)=>({u_lightpos:new h.c2(d,t.u_lightpos),u_lightpos_globe:new h.c2(d,t.u_lightpos_globe),u_lightintensity:new h.bp(d,t.u_lightintensity),u_lightcolor:new h.c2(d,t.u_lightcolor),u_vertical_gradient:new h.bp(d,t.u_vertical_gradient),u_opacity:new h.bp(d,t.u_opacity),u_fill_translate:new h.c3(d,t.u_fill_translate)}),fillExtrusionPattern:(d,t)=>({u_lightpos:new h.c2(d,t.u_lightpos),u_lightpos_globe:new h.c2(d,t.u_lightpos_globe),u_lightintensity:new h.bp(d,t.u_lightintensity),u_lightcolor:new h.c2(d,t.u_lightcolor),u_vertical_gradient:new h.bp(d,t.u_vertical_gradient),u_height_factor:new h.bp(d,t.u_height_factor),u_opacity:new h.bp(d,t.u_opacity),u_fill_translate:new h.c3(d,t.u_fill_translate),u_image:new h.b_(d,t.u_image),u_texsize:new h.c3(d,t.u_texsize),u_pixel_coord_upper:new h.c3(d,t.u_pixel_coord_upper),u_pixel_coord_lower:new h.c3(d,t.u_pixel_coord_lower),u_scale:new h.c2(d,t.u_scale),u_fade:new h.bp(d,t.u_fade)}),fill:(d,t)=>({u_fill_translate:new h.c3(d,t.u_fill_translate)}),fillPattern:(d,t)=>({u_image:new h.b_(d,t.u_image),u_texsize:new h.c3(d,t.u_texsize),u_pixel_coord_upper:new h.c3(d,t.u_pixel_coord_upper),u_pixel_coord_lower:new h.c3(d,t.u_pixel_coord_lower),u_scale:new h.c2(d,t.u_scale),u_fade:new h.bp(d,t.u_fade),u_fill_translate:new h.c3(d,t.u_fill_translate)}),fillOutline:(d,t)=>({u_world:new h.c3(d,t.u_world),u_fill_translate:new h.c3(d,t.u_fill_translate)}),fillOutlinePattern:(d,t)=>({u_world:new h.c3(d,t.u_world),u_image:new h.b_(d,t.u_image),u_texsize:new h.c3(d,t.u_texsize),u_pixel_coord_upper:new h.c3(d,t.u_pixel_coord_upper),u_pixel_coord_lower:new h.c3(d,t.u_pixel_coord_lower),u_scale:new h.c2(d,t.u_scale),u_fade:new h.bp(d,t.u_fade),u_fill_translate:new h.c3(d,t.u_fill_translate)}),circle:(d,t)=>({u_camera_to_center_distance:new h.bp(d,t.u_camera_to_center_distance),u_scale_with_map:new h.b_(d,t.u_scale_with_map),u_pitch_with_map:new h.b_(d,t.u_pitch_with_map),u_extrude_scale:new h.c3(d,t.u_extrude_scale),u_device_pixel_ratio:new h.bp(d,t.u_device_pixel_ratio),u_globe_extrude_scale:new h.bp(d,t.u_globe_extrude_scale),u_translate:new h.c3(d,t.u_translate)}),collisionBox:(d,t)=>({u_pixel_extrude_scale:new h.c3(d,t.u_pixel_extrude_scale)}),collisionCircle:(d,t)=>({u_viewport_size:new h.c3(d,t.u_viewport_size)}),debug:(d,t)=>({u_color:new h.b$(d,t.u_color),u_overlay:new h.b_(d,t.u_overlay),u_overlay_scale:new h.bp(d,t.u_overlay_scale)}),depth:Bc,clippingMask:Bc,heatmap:(d,t)=>({u_extrude_scale:new h.bp(d,t.u_extrude_scale),u_intensity:new h.bp(d,t.u_intensity),u_globe_extrude_scale:new h.bp(d,t.u_globe_extrude_scale)}),heatmapTexture:(d,t)=>({u_matrix:new h.c0(d,t.u_matrix),u_world:new h.c3(d,t.u_world),u_image:new h.b_(d,t.u_image),u_color_ramp:new h.b_(d,t.u_color_ramp),u_opacity:new h.bp(d,t.u_opacity)}),hillshade:(d,t)=>({u_image:new h.b_(d,t.u_image),u_latrange:new h.c3(d,t.u_latrange),u_exaggeration:new h.bp(d,t.u_exaggeration),u_altitudes:new h.c9(d,t.u_altitudes),u_azimuths:new h.c9(d,t.u_azimuths),u_accent:new h.b$(d,t.u_accent),u_method:new h.b_(d,t.u_method),u_shadows:new h.c8(d,t.u_shadows),u_highlights:new h.c8(d,t.u_highlights)}),hillshadePrepare:(d,t)=>({u_matrix:new h.c0(d,t.u_matrix),u_image:new h.b_(d,t.u_image),u_dimension:new h.c3(d,t.u_dimension),u_zoom:new h.bp(d,t.u_zoom),u_unpack:new h.c1(d,t.u_unpack)}),colorRelief:(d,t)=>({u_image:new h.b_(d,t.u_image),u_unpack:new h.c1(d,t.u_unpack),u_dimension:new h.c3(d,t.u_dimension),u_elevation_stops:new h.b_(d,t.u_elevation_stops),u_color_stops:new h.b_(d,t.u_color_stops),u_color_ramp_size:new h.b_(d,t.u_color_ramp_size),u_opacity:new h.bp(d,t.u_opacity)}),line:(d,t)=>({u_translation:new h.c3(d,t.u_translation),u_ratio:new h.bp(d,t.u_ratio),u_device_pixel_ratio:new h.bp(d,t.u_device_pixel_ratio),u_units_to_pixels:new h.c3(d,t.u_units_to_pixels)}),lineGradient:(d,t)=>({u_translation:new h.c3(d,t.u_translation),u_ratio:new h.bp(d,t.u_ratio),u_device_pixel_ratio:new h.bp(d,t.u_device_pixel_ratio),u_units_to_pixels:new h.c3(d,t.u_units_to_pixels),u_image:new h.b_(d,t.u_image),u_image_height:new h.bp(d,t.u_image_height)}),linePattern:(d,t)=>({u_translation:new h.c3(d,t.u_translation),u_texsize:new h.c3(d,t.u_texsize),u_ratio:new h.bp(d,t.u_ratio),u_device_pixel_ratio:new h.bp(d,t.u_device_pixel_ratio),u_image:new h.b_(d,t.u_image),u_units_to_pixels:new h.c3(d,t.u_units_to_pixels),u_scale:new h.c2(d,t.u_scale),u_fade:new h.bp(d,t.u_fade)}),lineSDF:(d,t)=>({u_translation:new h.c3(d,t.u_translation),u_ratio:new h.bp(d,t.u_ratio),u_device_pixel_ratio:new h.bp(d,t.u_device_pixel_ratio),u_units_to_pixels:new h.c3(d,t.u_units_to_pixels),u_image:new h.b_(d,t.u_image),u_mix:new h.bp(d,t.u_mix),u_tileratio:new h.bp(d,t.u_tileratio),u_crossfade_from:new h.bp(d,t.u_crossfade_from),u_crossfade_to:new h.bp(d,t.u_crossfade_to),u_lineatlas_width:new h.bp(d,t.u_lineatlas_width),u_lineatlas_height:new h.bp(d,t.u_lineatlas_height)}),lineGradientSDF:(d,t)=>({u_translation:new h.c3(d,t.u_translation),u_ratio:new h.bp(d,t.u_ratio),u_device_pixel_ratio:new h.bp(d,t.u_device_pixel_ratio),u_units_to_pixels:new h.c3(d,t.u_units_to_pixels),u_image:new h.b_(d,t.u_image),u_image_height:new h.bp(d,t.u_image_height),u_tileratio:new h.bp(d,t.u_tileratio),u_crossfade_from:new h.bp(d,t.u_crossfade_from),u_crossfade_to:new h.bp(d,t.u_crossfade_to),u_image_dash:new h.b_(d,t.u_image_dash),u_mix:new h.bp(d,t.u_mix),u_lineatlas_width:new h.bp(d,t.u_lineatlas_width),u_lineatlas_height:new h.bp(d,t.u_lineatlas_height)}),raster:(d,t)=>({u_tl_parent:new h.c3(d,t.u_tl_parent),u_scale_parent:new h.bp(d,t.u_scale_parent),u_buffer_scale:new h.bp(d,t.u_buffer_scale),u_fade_t:new h.bp(d,t.u_fade_t),u_opacity:new h.bp(d,t.u_opacity),u_image0:new h.b_(d,t.u_image0),u_image1:new h.b_(d,t.u_image1),u_brightness_low:new h.bp(d,t.u_brightness_low),u_brightness_high:new h.bp(d,t.u_brightness_high),u_saturation_factor:new h.bp(d,t.u_saturation_factor),u_contrast_factor:new h.bp(d,t.u_contrast_factor),u_spin_weights:new h.c2(d,t.u_spin_weights),u_coords_top:new h.c1(d,t.u_coords_top),u_coords_bottom:new h.c1(d,t.u_coords_bottom)}),symbolIcon:(d,t)=>({u_is_size_zoom_constant:new h.b_(d,t.u_is_size_zoom_constant),u_is_size_feature_constant:new h.b_(d,t.u_is_size_feature_constant),u_size_t:new h.bp(d,t.u_size_t),u_size:new h.bp(d,t.u_size),u_camera_to_center_distance:new h.bp(d,t.u_camera_to_center_distance),u_pitch:new h.bp(d,t.u_pitch),u_rotate_symbol:new h.b_(d,t.u_rotate_symbol),u_aspect_ratio:new h.bp(d,t.u_aspect_ratio),u_fade_change:new h.bp(d,t.u_fade_change),u_label_plane_matrix:new h.c0(d,t.u_label_plane_matrix),u_coord_matrix:new h.c0(d,t.u_coord_matrix),u_is_text:new h.b_(d,t.u_is_text),u_pitch_with_map:new h.b_(d,t.u_pitch_with_map),u_is_along_line:new h.b_(d,t.u_is_along_line),u_is_variable_anchor:new h.b_(d,t.u_is_variable_anchor),u_texsize:new h.c3(d,t.u_texsize),u_texture:new h.b_(d,t.u_texture),u_translation:new h.c3(d,t.u_translation),u_pitched_scale:new h.bp(d,t.u_pitched_scale)}),symbolSDF:(d,t)=>({u_is_size_zoom_constant:new h.b_(d,t.u_is_size_zoom_constant),u_is_size_feature_constant:new h.b_(d,t.u_is_size_feature_constant),u_size_t:new h.bp(d,t.u_size_t),u_size:new h.bp(d,t.u_size),u_camera_to_center_distance:new h.bp(d,t.u_camera_to_center_distance),u_pitch:new h.bp(d,t.u_pitch),u_rotate_symbol:new h.b_(d,t.u_rotate_symbol),u_aspect_ratio:new h.bp(d,t.u_aspect_ratio),u_fade_change:new h.bp(d,t.u_fade_change),u_label_plane_matrix:new h.c0(d,t.u_label_plane_matrix),u_coord_matrix:new h.c0(d,t.u_coord_matrix),u_is_text:new h.b_(d,t.u_is_text),u_pitch_with_map:new h.b_(d,t.u_pitch_with_map),u_is_along_line:new h.b_(d,t.u_is_along_line),u_is_variable_anchor:new h.b_(d,t.u_is_variable_anchor),u_texsize:new h.c3(d,t.u_texsize),u_texture:new h.b_(d,t.u_texture),u_gamma_scale:new h.bp(d,t.u_gamma_scale),u_device_pixel_ratio:new h.bp(d,t.u_device_pixel_ratio),u_is_halo:new h.b_(d,t.u_is_halo),u_is_plain:new h.b_(d,t.u_is_plain),u_translation:new h.c3(d,t.u_translation),u_pitched_scale:new h.bp(d,t.u_pitched_scale)}),symbolTextAndIcon:(d,t)=>({u_is_size_zoom_constant:new h.b_(d,t.u_is_size_zoom_constant),u_is_size_feature_constant:new h.b_(d,t.u_is_size_feature_constant),u_size_t:new h.bp(d,t.u_size_t),u_size:new h.bp(d,t.u_size),u_camera_to_center_distance:new h.bp(d,t.u_camera_to_center_distance),u_pitch:new h.bp(d,t.u_pitch),u_rotate_symbol:new h.b_(d,t.u_rotate_symbol),u_aspect_ratio:new h.bp(d,t.u_aspect_ratio),u_fade_change:new h.bp(d,t.u_fade_change),u_label_plane_matrix:new h.c0(d,t.u_label_plane_matrix),u_coord_matrix:new h.c0(d,t.u_coord_matrix),u_is_text:new h.b_(d,t.u_is_text),u_pitch_with_map:new h.b_(d,t.u_pitch_with_map),u_is_along_line:new h.b_(d,t.u_is_along_line),u_is_variable_anchor:new h.b_(d,t.u_is_variable_anchor),u_texsize:new h.c3(d,t.u_texsize),u_texsize_icon:new h.c3(d,t.u_texsize_icon),u_texture:new h.b_(d,t.u_texture),u_texture_icon:new h.b_(d,t.u_texture_icon),u_gamma_scale:new h.bp(d,t.u_gamma_scale),u_device_pixel_ratio:new h.bp(d,t.u_device_pixel_ratio),u_is_halo:new h.b_(d,t.u_is_halo),u_translation:new h.c3(d,t.u_translation),u_pitched_scale:new h.bp(d,t.u_pitched_scale)}),background:(d,t)=>({u_opacity:new h.bp(d,t.u_opacity),u_color:new h.b$(d,t.u_color)}),backgroundPattern:(d,t)=>({u_opacity:new h.bp(d,t.u_opacity),u_image:new h.b_(d,t.u_image),u_pattern_tl_a:new h.c3(d,t.u_pattern_tl_a),u_pattern_br_a:new h.c3(d,t.u_pattern_br_a),u_pattern_tl_b:new h.c3(d,t.u_pattern_tl_b),u_pattern_br_b:new h.c3(d,t.u_pattern_br_b),u_texsize:new h.c3(d,t.u_texsize),u_mix:new h.bp(d,t.u_mix),u_pattern_size_a:new h.c3(d,t.u_pattern_size_a),u_pattern_size_b:new h.c3(d,t.u_pattern_size_b),u_scale_a:new h.bp(d,t.u_scale_a),u_scale_b:new h.bp(d,t.u_scale_b),u_pixel_coord_upper:new h.c3(d,t.u_pixel_coord_upper),u_pixel_coord_lower:new h.c3(d,t.u_pixel_coord_lower),u_tile_units_to_pixels:new h.bp(d,t.u_tile_units_to_pixels)}),terrain:(d,t)=>({u_texture:new h.b_(d,t.u_texture),u_ele_delta:new h.bp(d,t.u_ele_delta),u_fog_matrix:new h.c0(d,t.u_fog_matrix),u_fog_color:new h.b$(d,t.u_fog_color),u_fog_ground_blend:new h.bp(d,t.u_fog_ground_blend),u_fog_ground_blend_opacity:new h.bp(d,t.u_fog_ground_blend_opacity),u_horizon_color:new h.b$(d,t.u_horizon_color),u_horizon_fog_blend:new h.bp(d,t.u_horizon_fog_blend),u_is_globe_mode:new h.bp(d,t.u_is_globe_mode)}),terrainDepth:(d,t)=>({u_ele_delta:new h.bp(d,t.u_ele_delta)}),terrainCoords:(d,t)=>({u_texture:new h.b_(d,t.u_texture),u_terrain_coords_id:new h.bp(d,t.u_terrain_coords_id),u_ele_delta:new h.bp(d,t.u_ele_delta)}),projectionErrorMeasurement:(d,t)=>({u_input:new h.bp(d,t.u_input),u_output_expected:new h.bp(d,t.u_output_expected)}),atmosphere:(d,t)=>({u_sun_pos:new h.c2(d,t.u_sun_pos),u_atmosphere_blend:new h.bp(d,t.u_atmosphere_blend),u_globe_position:new h.c2(d,t.u_globe_position),u_globe_radius:new h.bp(d,t.u_globe_radius),u_inv_proj_matrix:new h.c0(d,t.u_inv_proj_matrix)}),sky:(d,t)=>({u_sky_color:new h.b$(d,t.u_sky_color),u_horizon_color:new h.b$(d,t.u_horizon_color),u_horizon:new h.c3(d,t.u_horizon),u_horizon_normal:new h.c3(d,t.u_horizon_normal),u_sky_horizon_blend:new h.bp(d,t.u_sky_horizon_blend),u_sky_blend:new h.bp(d,t.u_sky_blend)})};class rh{constructor(t,n,s){this.context=t;let c=t.gl;this.buffer=c.createBuffer(),this.dynamicDraw=!!s,this.context.unbindVAO(),t.bindElementBuffer.set(this.buffer),c.bufferData(c.ELEMENT_ARRAY_BUFFER,n.arrayBuffer,this.dynamicDraw?c.DYNAMIC_DRAW:c.STATIC_DRAW),this.dynamicDraw||n.freeBufferAfterUpload()}bind(){this.context.bindElementBuffer.set(this.buffer)}updateData(t){let n=this.context.gl;if(!this.dynamicDraw)throw new Error(\"Attempted to update data while not in dynamic mode.\");this.context.unbindVAO(),this.bind(),n.bufferSubData(n.ELEMENT_ARRAY_BUFFER,0,t.arrayBuffer)}destroy(){this.buffer&&(this.context.gl.deleteBuffer(this.buffer),delete this.buffer)}}let nh={Int8:\"BYTE\",Uint8:\"UNSIGNED_BYTE\",Int16:\"SHORT\",Uint16:\"UNSIGNED_SHORT\",Int32:\"INT\",Uint32:\"UNSIGNED_INT\",Float32:\"FLOAT\"};class Oc{constructor(t,n,s,c){this.length=n.length,this.attributes=s,this.itemSize=n.bytesPerElement,this.dynamicDraw=c,this.context=t;let f=t.gl;this.buffer=f.createBuffer(),t.bindVertexBuffer.set(this.buffer),f.bufferData(f.ARRAY_BUFFER,n.arrayBuffer,this.dynamicDraw?f.DYNAMIC_DRAW:f.STATIC_DRAW),this.dynamicDraw||n.freeBufferAfterUpload()}bind(){this.context.bindVertexBuffer.set(this.buffer)}updateData(t){if(t.length!==this.length)throw new Error(`Length of new data is ${t.length}, which doesn't match current length of ${this.length}`);let n=this.context.gl;this.bind(),n.bufferSubData(n.ARRAY_BUFFER,0,t.arrayBuffer)}enableAttributes(t,n){for(let s of this.attributes){let c=n.attributes[s.name];c!==void 0&&t.enableVertexAttribArray(c)}}setVertexAttribPointers(t,n,s){for(let c of this.attributes){let f=n.attributes[c.name];f!==void 0&&t.vertexAttribPointer(f,c.components,t[nh[c.type]],!1,this.itemSize,c.offset+this.itemSize*(s||0))}}destroy(){this.buffer&&(this.context.gl.deleteBuffer(this.buffer),delete this.buffer)}}class gt{constructor(t){this.gl=t.gl,this.default=this.getDefault(),this.current=this.default,this.dirty=!1}get(){return this.current}set(t){}getDefault(){return this.default}setDefault(){this.set(this.default)}}class Vc extends gt{getDefault(){return h.bo.transparent}set(t){let n=this.current;(t.r!==n.r||t.g!==n.g||t.b!==n.b||t.a!==n.a||this.dirty)&&(this.gl.clearColor(t.r,t.g,t.b,t.a),this.current=t,this.dirty=!1)}}class Oa extends gt{getDefault(){return 1}set(t){(t!==this.current||this.dirty)&&(this.gl.clearDepth(t),this.current=t,this.dirty=!1)}}class Va extends gt{getDefault(){return 0}set(t){(t!==this.current||this.dirty)&&(this.gl.clearStencil(t),this.current=t,this.dirty=!1)}}class ja extends gt{getDefault(){return[!0,!0,!0,!0]}set(t){let n=this.current;(t[0]!==n[0]||t[1]!==n[1]||t[2]!==n[2]||t[3]!==n[3]||this.dirty)&&(this.gl.colorMask(t[0],t[1],t[2],t[3]),this.current=t,this.dirty=!1)}}class fl extends gt{getDefault(){return!0}set(t){(t!==this.current||this.dirty)&&(this.gl.depthMask(t),this.current=t,this.dirty=!1)}}class Pn extends gt{getDefault(){return 255}set(t){(t!==this.current||this.dirty)&&(this.gl.stencilMask(t),this.current=t,this.dirty=!1)}}class jo extends gt{getDefault(){return{func:this.gl.ALWAYS,ref:0,mask:255}}set(t){let n=this.current;(t.func!==n.func||t.ref!==n.ref||t.mask!==n.mask||this.dirty)&&(this.gl.stencilFunc(t.func,t.ref,t.mask),this.current=t,this.dirty=!1)}}class no extends gt{getDefault(){let t=this.gl;return[t.KEEP,t.KEEP,t.KEEP]}set(t){let n=this.current;(t[0]!==n[0]||t[1]!==n[1]||t[2]!==n[2]||this.dirty)&&(this.gl.stencilOp(t[0],t[1],t[2]),this.current=t,this.dirty=!1)}}class ir extends gt{getDefault(){return!1}set(t){if(t===this.current&&!this.dirty)return;let n=this.gl;t?n.enable(n.STENCIL_TEST):n.disable(n.STENCIL_TEST),this.current=t,this.dirty=!1}}class jc extends gt{getDefault(){return[0,1]}set(t){let n=this.current;(t[0]!==n[0]||t[1]!==n[1]||this.dirty)&&(this.gl.depthRange(t[0],t[1]),this.current=t,this.dirty=!1)}}class Nc extends gt{getDefault(){return!1}set(t){if(t===this.current&&!this.dirty)return;let n=this.gl;t?n.enable(n.DEPTH_TEST):n.disable(n.DEPTH_TEST),this.current=t,this.dirty=!1}}class ml extends gt{getDefault(){return this.gl.LESS}set(t){(t!==this.current||this.dirty)&&(this.gl.depthFunc(t),this.current=t,this.dirty=!1)}}class Cn extends gt{getDefault(){return!1}set(t){if(t===this.current&&!this.dirty)return;let n=this.gl;t?n.enable(n.BLEND):n.disable(n.BLEND),this.current=t,this.dirty=!1}}class Na extends gt{getDefault(){let t=this.gl;return[t.ONE,t.ZERO]}set(t){let n=this.current;(t[0]!==n[0]||t[1]!==n[1]||this.dirty)&&(this.gl.blendFunc(t[0],t[1]),this.current=t,this.dirty=!1)}}class Ua extends gt{getDefault(){return h.bo.transparent}set(t){let n=this.current;(t.r!==n.r||t.g!==n.g||t.b!==n.b||t.a!==n.a||this.dirty)&&(this.gl.blendColor(t.r,t.g,t.b,t.a),this.current=t,this.dirty=!1)}}class No extends gt{getDefault(){return this.gl.FUNC_ADD}set(t){(t!==this.current||this.dirty)&&(this.gl.blendEquation(t),this.current=t,this.dirty=!1)}}class qa extends gt{getDefault(){return!1}set(t){if(t===this.current&&!this.dirty)return;let n=this.gl;t?n.enable(n.CULL_FACE):n.disable(n.CULL_FACE),this.current=t,this.dirty=!1}}class Uc extends gt{getDefault(){return this.gl.BACK}set(t){(t!==this.current||this.dirty)&&(this.gl.cullFace(t),this.current=t,this.dirty=!1)}}class oo extends gt{getDefault(){return this.gl.CCW}set(t){(t!==this.current||this.dirty)&&(this.gl.frontFace(t),this.current=t,this.dirty=!1)}}class ao extends gt{getDefault(){return null}set(t){(t!==this.current||this.dirty)&&(this.gl.useProgram(t),this.current=t,this.dirty=!1)}}class qc extends gt{getDefault(){return this.gl.TEXTURE0}set(t){(t!==this.current||this.dirty)&&(this.gl.activeTexture(t),this.current=t,this.dirty=!1)}}class gl extends gt{getDefault(){let t=this.gl;return[0,0,t.drawingBufferWidth,t.drawingBufferHeight]}set(t){let n=this.current;(t[0]!==n[0]||t[1]!==n[1]||t[2]!==n[2]||t[3]!==n[3]||this.dirty)&&(this.gl.viewport(t[0],t[1],t[2],t[3]),this.current=t,this.dirty=!1)}}class nt extends gt{getDefault(){return null}set(t){if(t===this.current&&!this.dirty)return;let n=this.gl;n.bindFramebuffer(n.FRAMEBUFFER,t),this.current=t,this.dirty=!1}}class Ga extends gt{getDefault(){return null}set(t){if(t===this.current&&!this.dirty)return;let n=this.gl;n.bindRenderbuffer(n.RENDERBUFFER,t),this.current=t,this.dirty=!1}}class oh extends gt{getDefault(){return null}set(t){if(t===this.current&&!this.dirty)return;let n=this.gl;n.bindTexture(n.TEXTURE_2D,t),this.current=t,this.dirty=!1}}class Gc extends gt{getDefault(){return null}set(t){if(t===this.current&&!this.dirty)return;let n=this.gl;n.bindBuffer(n.ARRAY_BUFFER,t),this.current=t,this.dirty=!1}}class Uo extends gt{getDefault(){return null}set(t){let n=this.gl;n.bindBuffer(n.ELEMENT_ARRAY_BUFFER,t),this.current=t,this.dirty=!1}}class ah extends gt{getDefault(){return null}set(t){var n;if(t===this.current&&!this.dirty)return;let s=this.gl;fr(s)?s.bindVertexArray(t):(n=s.getExtension(\"OES_vertex_array_object\"))===null||n===void 0||n.bindVertexArrayOES(t),this.current=t,this.dirty=!1}}class sh extends gt{getDefault(){return 4}set(t){if(t===this.current&&!this.dirty)return;let n=this.gl;n.pixelStorei(n.UNPACK_ALIGNMENT,t),this.current=t,this.dirty=!1}}class $c extends gt{getDefault(){return!1}set(t){if(t===this.current&&!this.dirty)return;let n=this.gl;n.pixelStorei(n.UNPACK_PREMULTIPLY_ALPHA_WEBGL,t),this.current=t,this.dirty=!1}}class lh extends gt{getDefault(){return!1}set(t){if(t===this.current&&!this.dirty)return;let n=this.gl;n.pixelStorei(n.UNPACK_FLIP_Y_WEBGL,t),this.current=t,this.dirty=!1}}class qo extends gt{constructor(t,n){super(t),this.context=t,this.parent=n}getDefault(){return null}}class $a extends qo{setDirty(){this.dirty=!0}set(t){if(t===this.current&&!this.dirty)return;this.context.bindFramebuffer.set(this.parent);let n=this.gl;n.framebufferTexture2D(n.FRAMEBUFFER,n.COLOR_ATTACHMENT0,n.TEXTURE_2D,t,0),this.current=t,this.dirty=!1}}class Go extends qo{set(t){if(t===this.current&&!this.dirty)return;this.context.bindFramebuffer.set(this.parent);let n=this.gl;n.framebufferRenderbuffer(n.FRAMEBUFFER,n.DEPTH_ATTACHMENT,n.RENDERBUFFER,t),this.current=t,this.dirty=!1}}class Za extends qo{set(t){if(t===this.current&&!this.dirty)return;this.context.bindFramebuffer.set(this.parent);let n=this.gl;n.framebufferRenderbuffer(n.FRAMEBUFFER,n.DEPTH_STENCIL_ATTACHMENT,n.RENDERBUFFER,t),this.current=t,this.dirty=!1}}let Wa=\"Framebuffer is not complete\";class Zc{constructor(t,n,s,c,f){this.context=t,this.width=n,this.height=s;let y=t.gl,x=this.framebuffer=y.createFramebuffer();if(this.colorAttachment=new $a(t,x),c)this.depthAttachment=f?new Za(t,x):new Go(t,x);else if(f)throw new Error(\"Stencil cannot be set without depth\");if(y.checkFramebufferStatus(y.FRAMEBUFFER)!==y.FRAMEBUFFER_COMPLETE)throw new Error(Wa)}destroy(){let t=this.context.gl,n=this.colorAttachment.get();if(n&&t.deleteTexture(n),this.depthAttachment){let s=this.depthAttachment.get();s&&t.deleteRenderbuffer(s)}t.deleteFramebuffer(this.framebuffer)}}class Ha{constructor(t){var n,s;if(this.gl=t,this.clearColor=new Vc(this),this.clearDepth=new Oa(this),this.clearStencil=new Va(this),this.colorMask=new ja(this),this.depthMask=new fl(this),this.stencilMask=new Pn(this),this.stencilFunc=new jo(this),this.stencilOp=new no(this),this.stencilTest=new ir(this),this.depthRange=new jc(this),this.depthTest=new Nc(this),this.depthFunc=new ml(this),this.blend=new Cn(this),this.blendFunc=new Na(this),this.blendColor=new Ua(this),this.blendEquation=new No(this),this.cullFace=new qa(this),this.cullFaceSide=new Uc(this),this.frontFace=new oo(this),this.program=new ao(this),this.activeTexture=new qc(this),this.viewport=new gl(this),this.bindFramebuffer=new nt(this),this.bindRenderbuffer=new Ga(this),this.bindTexture=new oh(this),this.bindVertexBuffer=new Gc(this),this.bindElementBuffer=new Uo(this),this.bindVertexArray=new ah(this),this.pixelStoreUnpack=new sh(this),this.pixelStoreUnpackPremultiplyAlpha=new $c(this),this.pixelStoreUnpackFlipY=new lh(this),this.extTextureFilterAnisotropic=t.getExtension(\"EXT_texture_filter_anisotropic\"),this.extTextureFilterAnisotropic&&(this.extTextureFilterAnisotropicMax=t.getParameter(this.extTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT)),this.maxTextureSize=t.getParameter(t.MAX_TEXTURE_SIZE),fr(t)){this.HALF_FLOAT=t.HALF_FLOAT;let c=t.getExtension(\"EXT_color_buffer_half_float\");this.RGBA16F=(n=t.RGBA16F)!==null&&n!==void 0?n:c?.RGBA16F_EXT,this.RGB16F=(s=t.RGB16F)!==null&&s!==void 0?s:c?.RGB16F_EXT,t.getExtension(\"EXT_color_buffer_float\")}else{t.getExtension(\"EXT_color_buffer_half_float\"),t.getExtension(\"OES_texture_half_float_linear\");let c=t.getExtension(\"OES_texture_half_float\");this.HALF_FLOAT=c?.HALF_FLOAT_OES}}setDefault(){this.unbindVAO(),this.clearColor.setDefault(),this.clearDepth.setDefault(),this.clearStencil.setDefault(),this.colorMask.setDefault(),this.depthMask.setDefault(),this.stencilMask.setDefault(),this.stencilFunc.setDefault(),this.stencilOp.setDefault(),this.stencilTest.setDefault(),this.depthRange.setDefault(),this.depthTest.setDefault(),this.depthFunc.setDefault(),this.blend.setDefault(),this.blendFunc.setDefault(),this.blendColor.setDefault(),this.blendEquation.setDefault(),this.cullFace.setDefault(),this.cullFaceSide.setDefault(),this.frontFace.setDefault(),this.program.setDefault(),this.activeTexture.setDefault(),this.bindFramebuffer.setDefault(),this.pixelStoreUnpack.setDefault(),this.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.pixelStoreUnpackFlipY.setDefault()}setDirty(){this.clearColor.dirty=!0,this.clearDepth.dirty=!0,this.clearStencil.dirty=!0,this.colorMask.dirty=!0,this.depthMask.dirty=!0,this.stencilMask.dirty=!0,this.stencilFunc.dirty=!0,this.stencilOp.dirty=!0,this.stencilTest.dirty=!0,this.depthRange.dirty=!0,this.depthTest.dirty=!0,this.depthFunc.dirty=!0,this.blend.dirty=!0,this.blendFunc.dirty=!0,this.blendColor.dirty=!0,this.blendEquation.dirty=!0,this.cullFace.dirty=!0,this.cullFaceSide.dirty=!0,this.frontFace.dirty=!0,this.program.dirty=!0,this.activeTexture.dirty=!0,this.viewport.dirty=!0,this.bindFramebuffer.dirty=!0,this.bindRenderbuffer.dirty=!0,this.bindTexture.dirty=!0,this.bindVertexBuffer.dirty=!0,this.bindElementBuffer.dirty=!0,this.bindVertexArray.dirty=!0,this.pixelStoreUnpack.dirty=!0,this.pixelStoreUnpackPremultiplyAlpha.dirty=!0,this.pixelStoreUnpackFlipY.dirty=!0}createIndexBuffer(t,n){return new rh(this,t,n)}createVertexBuffer(t,n,s){return new Oc(this,t,n,s)}createRenderbuffer(t,n,s){let c=this.gl,f=c.createRenderbuffer();return this.bindRenderbuffer.set(f),c.renderbufferStorage(c.RENDERBUFFER,t,n,s),this.bindRenderbuffer.set(null),f}createFramebuffer(t,n,s,c){return new Zc(this,t,n,s,c)}clear({color:t,depth:n,stencil:s}){let c=this.gl,f=0;t&&(f|=c.COLOR_BUFFER_BIT,this.clearColor.set(t),this.colorMask.set([!0,!0,!0,!0])),n!==void 0&&(f|=c.DEPTH_BUFFER_BIT,this.depthRange.set([0,1]),this.clearDepth.set(n),this.depthMask.set(!0)),s!==void 0&&(f|=c.STENCIL_BUFFER_BIT,this.clearStencil.set(s),this.stencilMask.set(255)),c.clear(f)}setCullFace(t){t.enable===!1?this.cullFace.set(!1):(this.cullFace.set(!0),this.cullFaceSide.set(t.mode),this.frontFace.set(t.frontFace))}setDepthMode(t){t.func!==this.gl.ALWAYS||t.mask?(this.depthTest.set(!0),this.depthFunc.set(t.func),this.depthMask.set(t.mask),this.depthRange.set(t.range)):this.depthTest.set(!1)}setStencilMode(t){t.test.func!==this.gl.ALWAYS||t.mask?(this.stencilTest.set(!0),this.stencilMask.set(t.mask),this.stencilOp.set([t.fail,t.depthFail,t.pass]),this.stencilFunc.set({func:t.test.func,ref:t.ref,mask:t.test.mask})):this.stencilTest.set(!1)}setColorMode(t){h.bQ(t.blendFunction,Ct.Replace)?this.blend.set(!1):(this.blend.set(!0),this.blendFunc.set(t.blendFunction),this.blendColor.set(t.blendColor)),this.colorMask.set(t.mask)}createVertexArray(){var t;return fr(this.gl)?this.gl.createVertexArray():(t=this.gl.getExtension(\"OES_vertex_array_object\"))===null||t===void 0?void 0:t.createVertexArrayOES()}deleteVertexArray(t){var n;fr(this.gl)?this.gl.deleteVertexArray(t):(n=this.gl.getExtension(\"OES_vertex_array_object\"))===null||n===void 0||n.deleteVertexArrayOES(t)}unbindVAO(){this.bindVertexArray.set(null)}}let En;function so(d,t,n,s,c){var f,y;let x=d.context,w=d.transform,S=x.gl,M=d.useProgram(\"collisionBox\"),E=[],I=0,D=0;for(let X of s){let $=t.getTile(X).getBucket(n);if(!$)continue;let U=c?$.textCollisionBox:$.iconCollisionBox,H=$.collisionCircleArray;H.length>0&&(E.push({circleArray:H,circleOffset:D,coord:X}),I+=H.length/4,D=I),U&&M.draw(x,S.LINES,Qe.disabled,ct.disabled,d.colorModeForRenderPass(),lt.disabled,kc(d.transform),(f=d.style.map.terrain)===null||f===void 0?void 0:f.getTerrainData(X),w.getProjectionData({overscaledTileID:X,applyGlobeMatrix:!0,applyTerrainMatrix:!0}),n.id,U.layoutVertexBuffer,U.indexBuffer,U.segments,null,d.transform.zoom,null,null,U.collisionVertexBuffer)}if(!c||!E.length)return;let B=d.useProgram(\"collisionCircle\"),V=new h.ca;V.resize(4*I),V._trim();let q=0;for(let X of E)for(let $=0;$=0&&(V[N.associatedIconIndex]={shiftedAnchor:me,angle:Ae})}else gn(N.numGlyphs,D)}if(w){B.clear();let q=d.icon.placedSymbolArray;for(let N=0;Nd.style.map.terrain.getElevation(Ce,Vr,Nl):null,us=n.layout.get(\"text-rotation-alignment\")===\"map\";Ta(Ae,d,c,yi,Bt,X,S,us,Ce.toUnwrapped(),N.width,N.height,on,Rn)}let Xi=c&&se||Pr,or=$||Xi?lo:X?yi:d.transform.clipSpaceToPixelsMatrix,Ft=$t&&n.paint.get(c?\"text-halo-width\":\"icon-halo-width\").constantOr(1)!==0,At;At=$t?Ae.iconsInText?dl(St.kind,gi,U,X,$,Xi,d,or,Or,on,Ai,tn,_e):hl(St.kind,gi,U,X,$,Xi,d,or,Or,on,c,Ai,Ft,_e):Ba(St.kind,gi,U,X,$,Xi,d,or,Or,on,c,Ai,_e);let Yt={program:Xt,buffers:Be,uniformValues:At,projectionData:cs,atlasTexture:di,atlasTextureIcon:rn,atlasInterpolation:ri,atlasInterpolationIcon:_i,isSDF:$t,hasHalo:Ft};if(H&&Ae.canOverlap){Z=!0;let Bt=Be.segments.get();for(let Rn of Bt)ce.push({segments:new h.aV([Rn]),sortKey:Rn.sortKey,state:Yt,terrainData:jt})}else ce.push({segments:Be.segments,sortKey:0,state:Yt,terrainData:jt})}Z&&ce.sort(((Ce,me)=>Ce.sortKey-me.sortKey));let ge=(B=n.paint.get(c?\"text-halo-width\":\"icon-halo-width\").constantOr(null))!==null&&B!==void 0?B:1/0,Re=n.layout.get(\"text-letter-spacing\").constantOr(0)*h.aJ<0||ge>1;for(let Ce of ce){let me=Ce.state;V.activeTexture.set(q.TEXTURE0),me.atlasTexture.bind(me.atlasInterpolation,q.CLAMP_TO_EDGE),me.atlasTextureIcon&&(V.activeTexture.set(q.TEXTURE1),me.atlasTextureIcon&&me.atlasTextureIcon.bind(me.atlasInterpolationIcon,q.CLAMP_TO_EDGE));let Ae=me.isSDF&&me.hasHalo;if(Ae){let Be=me.uniformValues;Be.u_is_halo=1,Re&&(Be.u_is_plain=0,Zo(me.buffers,Ce.segments,n,d,me.program,te,M,E,Be,me.projectionData,Ce.terrainData),Be.u_is_halo=0,Be.u_is_plain=1)}Zo(me.buffers,Ce.segments,n,d,me.program,te,M,E,me.uniformValues,me.projectionData,Ce.terrainData),Ae&&!Re&&(me.uniformValues.u_is_halo=0)}}function Zo(d,t,n,s,c,f,y,x,w,S,M){let E=s.context;c.draw(E,E.gl.TRIANGLES,f,y,x,lt.backCCW,w,M,S,n.id,d.layoutVertexBuffer,d.indexBuffer,t,n.paint,s.transform.zoom,d.programConfigurations.get(n.id),d.dynamicLayoutVertexBuffer,d.opacityVertexBuffer)}function vl(d,t,n,s,c){let f=d.context,y=f.gl,x=ct.disabled,w=new Ct([y.ONE,y.ONE],h.bo.transparent,[!0,!0,!0,!0]),S=t.getBucket(n);if(!S)return;let M=s.key,E=n.heatmapFbos.get(M);E||(E=xl(f,t.tileSize,t.tileSize),n.heatmapFbos.set(M,E)),f.bindFramebuffer.set(E.framebuffer),f.viewport.set([0,0,t.tileSize,t.tileSize]),f.clear({color:h.bo.transparent});let I=S.programConfigurations.get(n.id),D=d.useProgram(\"heatmap\",I,!c),B=d.transform.getProjectionData({overscaledTileID:t.tileID,applyGlobeMatrix:!0,applyTerrainMatrix:!0}),V=d.style.map.terrain.getTerrainData(s);D.draw(f,y.TRIANGLES,Qe.disabled,x,w,lt.disabled,sl(t,d.transform.zoom,n.paint.get(\"heatmap-intensity\"),1),V,B,n.id,S.layoutVertexBuffer,S.indexBuffer,S.segments,n.paint,d.transform.zoom,I)}function Wc(d,t,n,s,c){let f=d.context,y=f.gl,x=d.transform;f.setColorMode(d.colorModeForRenderPass());let w=Wo(f,t),S=n.key,M=t.heatmapFbos.get(S);if(!M)return;f.activeTexture.set(y.TEXTURE0),y.bindTexture(y.TEXTURE_2D,M.colorAttachment.get()),f.activeTexture.set(y.TEXTURE1),w.bind(y.LINEAR,y.CLAMP_TO_EDGE);let E=x.getProjectionData({overscaledTileID:n,applyTerrainMatrix:c,applyGlobeMatrix:!s});d.useProgram(\"heatmapTexture\").draw(f,y.TRIANGLES,Qe.disabled,ct.disabled,d.colorModeForRenderPass(),lt.disabled,io(d,t,0,1),null,E,t.id,d.rasterBoundsBuffer,d.quadTriangleIndexBuffer,d.rasterBoundsSegments,t.paint,x.zoom),M.destroy(),t.heatmapFbos.delete(S)}function xl(d,t,n){var s,c;let f=d.gl,y=f.createTexture();f.bindTexture(f.TEXTURE_2D,y),f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_S,f.CLAMP_TO_EDGE),f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_T,f.CLAMP_TO_EDGE),f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MIN_FILTER,f.LINEAR),f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MAG_FILTER,f.LINEAR);let x=(s=d.HALF_FLOAT)!==null&&s!==void 0?s:f.UNSIGNED_BYTE,w=(c=d.RGBA16F)!==null&&c!==void 0?c:f.RGBA;f.texImage2D(f.TEXTURE_2D,0,w,t,n,0,f.RGBA,x,null);let S=d.createFramebuffer(t,n,!1,!1);return S.colorAttachment.set(y),S}function Wo(d,t){return t.colorRampTexture||(t.colorRampTexture=new h.T(d,t.colorRamp,d.gl.RGBA)),t.colorRampTexture}function Xa(d,t,n,s,c,f,y,x){let w=256;if(c.stepInterpolant){let S=t.getSource().maxzoom,M=y.canonical.z===S?Math.ceil(1<d.options.anisotropicFilterPitch&&D.texParameterf(D.TEXTURE_2D,I.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,I.extTextureFilterAnisotropicMax);let Ce=(M=d.style.map.terrain)===null||M===void 0?void 0:M.getTerrainData(Z),me=V.getProjectionData({overscaledTileID:Z,aligned:G,applyGlobeMatrix:!S,applyTerrainMatrix:!0}),Ae=cl(ge,_e,Re.fadeMix,n,x),Be=q.getMeshFromTileID(I,Z.canonical,f,y,\"raster\");B.draw(I,D.TRIANGLES,te,c?c[Z.overscaledZ]:ct.disabled,N,w?lt.frontCCW:lt.backCCW,Ae,Ce,me,n.id,Be.vertexBuffer,Be.indexBuffer,Be.segments)}}function Xc(d,t,n,s){let c={parentTile:null,parentScaleBy:1,parentTopLeft:[0,0],fadeValues:{tileOpacity:1,parentTileOpacity:1,fadeMix:{opacity:1,mix:0}}};if(n===0||s)return c;if(d.fadingParentID){let f=t.getLoadedTile(d.fadingParentID);if(!f)return c;let y=Math.pow(2,f.tileID.overscaledZ-d.tileID.overscaledZ),x=[d.tileID.canonical.x*y%1,d.tileID.canonical.y*y%1],w=(function(S,M,E){let I=Fe(),D=(I-M.timeAdded)/E,B=S.fadingDirection===tr.Incoming,V=h.al((I-S.timeAdded)/E,0,1),q=h.al(1-D,0,1),N=B?V:q;return{tileOpacity:N,parentTileOpacity:B?q:V,fadeMix:{opacity:1,mix:1-N}}})(d,f,n);return{parentTile:f,parentScaleBy:y,parentTopLeft:x,fadeValues:w}}if(d.selfFading){let f=(function(y,x){let w=(Fe()-y.timeAdded)/x,S=h.al(w,0,1);return{tileOpacity:S,fadeMix:{opacity:S,mix:0}}})(d,n);return{parentTile:null,parentScaleBy:1,parentTopLeft:[0,0],fadeValues:f}}return c}let Yc=new h.bo(1,0,0,1),Kc=new h.bo(0,1,0,1),Jc=new h.bo(0,0,1,1),Qc=new h.bo(1,0,1,1),Qr=new h.bo(0,1,1,1);function bl(d,t,n,s){Xo(d,0,t+n/2,d.transform.width,n,s)}function wl(d,t,n,s){Xo(d,t-n/2,0,n,d.transform.height,s)}function Xo(d,t,n,s,c,f){let y=d.context,x=y.gl;x.enable(x.SCISSOR_TEST),x.scissor(t*d.pixelRatio,n*d.pixelRatio,s*d.pixelRatio,c*d.pixelRatio),y.clear({color:f}),x.disable(x.SCISSOR_TEST)}function eu(d,t,n){var s;let c=d.context,f=c.gl,y=d.useProgram(\"debug\"),x=Qe.disabled,w=ct.disabled,S=d.colorModeForRenderPass(),M=\"$debug\",E=(s=d.style.map.terrain)===null||s===void 0?void 0:s.getTerrainData(n);c.activeTexture.set(f.TEXTURE0);let I=t.getTileByID(n.key).latestRawTileData,D=Math.floor((I?.byteLength||0)/1024),B=t.getTile(n).tileSize,V=512/Math.min(B,512)*(n.overscaledZ/d.transform.zoom)*.5,q=n.canonical.toString();n.overscaledZ!==n.canonical.z&&(q+=` => ${n.overscaledZ}`),(function(G,X){G.initDebugOverlayCanvas();let $=G.debugOverlayCanvas,U=G.context.gl,H=G.debugOverlayCanvas.getContext(\"2d\");H.clearRect(0,0,$.width,$.height),H.shadowColor=\"white\",H.shadowBlur=2,H.lineWidth=1.5,H.strokeStyle=\"white\",H.textBaseline=\"top\",H.font=\"bold 36px Open Sans, sans-serif\",H.fillText(X,5,5),H.strokeText(X,5,5),G.debugOverlayTexture.update($),G.debugOverlayTexture.bind(U.LINEAR,U.CLAMP_TO_EDGE)})(d,`${q} ${D}kB`);let N=d.transform.getProjectionData({overscaledTileID:n,applyGlobeMatrix:!0,applyTerrainMatrix:!0});y.draw(c,f.TRIANGLES,x,w,Ct.alphaBlended,lt.disabled,al(h.bo.transparent,V),null,N,M,d.debugBuffer,d.quadTriangleIndexBuffer,d.debugSegments),y.draw(c,f.LINE_STRIP,x,w,S,lt.disabled,al(h.bo.red),E,N,M,d.debugBuffer,d.tileBorderIndexBuffer,d.debugSegments)}function Tl(d,t,n,s){let{isRenderingGlobe:c}=s,f=d.context,y=f.gl,x=d.transform,w=d.colorModeForRenderPass(),S=d.getDepthModeFor3D(),M=d.useProgram(\"terrain\");f.bindFramebuffer.set(null),f.viewport.set([0,0,d.width,d.height]);for(let E of n){let I=t.getTerrainMesh(E.tileID),D=d.renderToTexture.getTexture(E),B=t.getTerrainData(E.tileID);f.activeTexture.set(y.TEXTURE0),y.bindTexture(y.TEXTURE_2D,D.texture);let V=t.getMeshFrameDelta(x.zoom),q=x.calculateFogMatrix(E.tileID.toUnwrapped()),N=Ra(V,q,d.style.sky,x.pitch,c),G=x.getProjectionData({overscaledTileID:E.tileID,applyTerrainMatrix:!1,applyGlobeMatrix:!0});M.draw(f,y.TRIANGLES,S,ct.disabled,w,lt.backCCW,N,B,G,\"terrain\",I.vertexBuffer,I.indexBuffer,I.segments)}}function Sl(d,t){if(!t.mesh){let n=new h.aU;n.emplaceBack(-1,-1),n.emplaceBack(1,-1),n.emplaceBack(1,1),n.emplaceBack(-1,1);let s=new h.aW;s.emplaceBack(0,1,2),s.emplaceBack(0,2,3),t.mesh=new Pt(d.createVertexBuffer(n,Yr.members),d.createIndexBuffer(s),h.aV.simpleSegment(0,0,n.length,s.length))}return t.mesh}let tu={symbol:function(d,t,n,s,c,f){if(d.renderPass!==\"translucent\")return;let{isRenderingToTexture:y}=f,x=ct.disabled,w=d.colorModeForRenderPass();(n._unevaluatedLayout.hasValue(\"text-variable-anchor\")||n._unevaluatedLayout.hasValue(\"text-variable-anchor-offset\"))&&(function(S,M,E,I,D,B,V,q,N){var G;let X=M.transform,$=M.style.map.terrain,U=D===\"map\",H=B===\"map\";for(let Z of S){let te=I.getTile(Z),se=te.getBucket(E);if(!(!((G=se?.text)===null||G===void 0)&&G.segments.get().length))continue;let ce=h.aw(se.textSizeData,X.zoom),_e=h.aK(te,1,M.transform.zoom),ge=Gi(U,M.transform,_e),Re=E.layout.get(\"icon-text-fit\")!==\"none\"&&se.hasIconData();if(ce){let Ce=Math.pow(2,X.zoom-te.tileID.overscaledZ),me=$?(Ae,Be)=>$.getElevation(Z,Ae,Be):null;$o(se,U,H,N,X,ge,Ce,ce,Re,h.aL(X,te,V,q),Z.toUnwrapped(),me)}}})(s,d,n,t,n.layout.get(\"text-rotation-alignment\"),n.layout.get(\"text-pitch-alignment\"),n.paint.get(\"text-translate\"),n.paint.get(\"text-translate-anchor\"),c),n.paint.get(\"icon-opacity\").constantOr(1)!==0&&yl(d,t,n,s,!1,n.paint.get(\"icon-translate\"),n.paint.get(\"icon-translate-anchor\"),n.layout.get(\"icon-rotation-alignment\"),n.layout.get(\"icon-pitch-alignment\"),n.layout.get(\"icon-keep-upright\"),x,w,y),n.paint.get(\"text-opacity\").constantOr(1)!==0&&yl(d,t,n,s,!0,n.paint.get(\"text-translate\"),n.paint.get(\"text-translate-anchor\"),n.layout.get(\"text-rotation-alignment\"),n.layout.get(\"text-pitch-alignment\"),n.layout.get(\"text-keep-upright\"),x,w,y),t.map.showCollisionBoxes&&(so(d,t,n,s,!0),so(d,t,n,s,!1))},circle:function(d,t,n,s,c){var f;if(d.renderPass!==\"translucent\")return;let{isRenderingToTexture:y}=c,x=n.paint.get(\"circle-opacity\"),w=n.paint.get(\"circle-stroke-width\"),S=n.paint.get(\"circle-stroke-opacity\"),M=!n.layout.get(\"circle-sort-key\").isConstant();if(x.constantOr(1)===0&&(w.constantOr(1)===0||S.constantOr(1)===0))return;let E=d.context,I=E.gl,D=d.transform,B=d.getDepthModeForSublayer(0,Qe.ReadOnly),V=ct.disabled,q=d.colorModeForRenderPass(),N=[],G=D.getCircleRadiusCorrection();for(let X of s){let $=t.getTile(X),U=$.getBucket(n);if(!U)continue;let H=n.paint.get(\"circle-translate\"),Z=n.paint.get(\"circle-translate-anchor\"),te=h.aL(D,$,H,Z),se=U.programConfigurations.get(n.id),ce=d.useProgram(\"circle\",se),_e=U.layoutVertexBuffer,ge=U.indexBuffer,Re=(f=d.style.map.terrain)===null||f===void 0?void 0:f.getTerrainData(X),Ce={programConfiguration:se,program:ce,layoutVertexBuffer:_e,indexBuffer:ge,uniformValues:Dc(d,$,n,te,G),terrainData:Re,projectionData:D.getProjectionData({overscaledTileID:X,applyGlobeMatrix:!y,applyTerrainMatrix:!0})};if(M){let me=U.segments.get();for(let Ae of me)N.push({segments:new h.aV([Ae]),sortKey:Ae.sortKey,state:Ce})}else N.push({segments:U.segments,sortKey:0,state:Ce})}M&&N.sort(((X,$)=>X.sortKey-$.sortKey));for(let X of N){let{programConfiguration:$,program:U,layoutVertexBuffer:H,indexBuffer:Z,uniformValues:te,terrainData:se,projectionData:ce}=X.state;U.draw(E,I.TRIANGLES,B,V,q,lt.backCCW,te,se,ce,n.id,H,Z,X.segments,n.paint,d.transform.zoom,$)}},heatmap:function(d,t,n,s,c){if(n.paint.get(\"heatmap-opacity\")===0)return;let f=d.context,{isRenderingToTexture:y,isRenderingGlobe:x}=c;if(d.style.map.terrain){for(let w of s){let S=t.getTile(w);t.hasRenderableParent(w)||(d.renderPass===\"offscreen\"?vl(d,S,n,w,x):d.renderPass===\"translucent\"&&Wc(d,n,w,y,x))}f.viewport.set([0,0,d.width,d.height])}else d.renderPass===\"offscreen\"?(function(w,S,M,E){let I=w.context,D=I.gl,B=w.transform,V=ct.disabled,q=new Ct([D.ONE,D.ONE],h.bo.transparent,[!0,!0,!0,!0]);(function(N,G,X){let $=N.gl;N.activeTexture.set($.TEXTURE1),N.viewport.set([0,0,G.width/4,G.height/4]);let U=X.heatmapFbos.get(h.cd);U?($.bindTexture($.TEXTURE_2D,U.colorAttachment.get()),N.bindFramebuffer.set(U.framebuffer)):(U=xl(N,G.width/4,G.height/4),X.heatmapFbos.set(h.cd,U))})(I,w,M),I.clear({color:h.bo.transparent});for(let N of E){if(S.hasRenderableParent(N))continue;let G=S.getTile(N),X=G.getBucket(M);if(!X)continue;let $=X.programConfigurations.get(M.id),U=w.useProgram(\"heatmap\",$),H=B.getProjectionData({overscaledTileID:N,applyGlobeMatrix:!0,applyTerrainMatrix:!1}),Z=B.getCircleRadiusCorrection();U.draw(I,D.TRIANGLES,Qe.disabled,V,q,lt.backCCW,sl(G,B.zoom,M.paint.get(\"heatmap-intensity\"),Z),null,H,M.id,X.layoutVertexBuffer,X.indexBuffer,X.segments,M.paint,B.zoom,$)}I.viewport.set([0,0,w.width,w.height])})(d,t,n,s):d.renderPass===\"translucent\"&&(function(w,S){let M=w.context,E=M.gl;M.setColorMode(w.colorModeForRenderPass());let I=S.heatmapFbos.get(h.cd);I&&(M.activeTexture.set(E.TEXTURE0),E.bindTexture(E.TEXTURE_2D,I.colorAttachment.get()),M.activeTexture.set(E.TEXTURE1),Wo(M,S).bind(E.LINEAR,E.CLAMP_TO_EDGE),w.useProgram(\"heatmapTexture\").draw(M,E.TRIANGLES,Qe.disabled,ct.disabled,w.colorModeForRenderPass(),lt.disabled,io(w,S,0,1),null,null,S.id,w.viewportBuffer,w.quadTriangleIndexBuffer,w.viewportSegments,S.paint,w.transform.zoom))})(d,n)},line:function(d,t,n,s,c){var f;if(d.renderPass!==\"translucent\")return;let{isRenderingToTexture:y}=c,x=n.paint.get(\"line-opacity\"),w=n.paint.get(\"line-width\");if(x.constantOr(1)===0||w.constantOr(1)===0)return;let S=d.getDepthModeForSublayer(0,Qe.ReadOnly),M=d.colorModeForRenderPass(),E=n.paint.get(\"line-dasharray\"),I=E.constantOr(1),D=n.paint.get(\"line-pattern\"),B=D.constantOr(1),V=n.paint.get(\"line-gradient\"),q=n.getCrossfadeParameters(),N;N=B?\"linePattern\":I&&V?\"lineGradientSDF\":I?\"lineSDF\":V?\"lineGradient\":\"line\";let G=d.context,X=G.gl,$=d.transform,U=!0;for(let H of s){let Z=t.getTile(H);if(B&&!Z.patternsLoaded())continue;let te=Z.getBucket(n);if(!te)continue;let se=te.programConfigurations.get(n.id),ce=d.context.program.get(),_e=d.useProgram(N,se),ge=U||_e.program!==ce,Re=(f=d.style.map.terrain)===null||f===void 0?void 0:f.getTerrainData(H),Ce=D.constantOr(null),me=E?.constantOr(null);if(Ce&&Z.imageAtlas){let St=Z.imageAtlas,Wt=St.patternPositions[Ce.to.toString()],Xt=St.patternPositions[Ce.from.toString()];Wt&&Xt&&se.setConstantPatternPositions(Wt,Xt)}else if(me){let St=n.layout.get(\"line-cap\").constantOr(null)===\"round\",Wt=d.lineAtlas.getDash(me.to,St),Xt=d.lineAtlas.getDash(me.from,St);se.setConstantDashPositions(Wt,Xt)}let Ae=$.getProjectionData({overscaledTileID:H,applyGlobeMatrix:!y,applyTerrainMatrix:!0}),Be=$.getPixelScale(),_t;B?(_t=Lc(d,Z,n,Be,q),hh(G,X,Z,se,q)):I&&V?(_t=Fc(d,Z,n,Be,q,te.lineClipsArray.length),In(d,t,G,X,n,te,H,se,q)):I?(_t=ll(d,Z,n,Be,q),Hc(d,G,X,se,ge,q)):V?(_t=Rc(d,Z,n,Be,te.lineClipsArray.length),Gt(d,t,G,X,n,te,H)):_t=Vo(d,Z,n,Be);let $t=d.stencilModeForClipping(H);_e.draw(G,X.TRIANGLES,S,$t,M,lt.disabled,_t,Re,Ae,n.id,te.layoutVertexBuffer,te.indexBuffer,te.segments,n.paint,d.transform.zoom,se,te.layoutVertexBuffer2),U=!1}},fill:function(d,t,n,s,c){let f=n.paint.get(\"fill-color\"),y=n.paint.get(\"fill-opacity\");if(y.constantOr(1)===0)return;let{isRenderingToTexture:x}=c,w=d.colorModeForRenderPass(),S=n.paint.get(\"fill-pattern\"),M=d.opaquePassEnabledForLayer()&&!S.constantOr(1)&&f.constantOr(h.bo.transparent).a===1&&y.constantOr(0)===1?\"opaque\":\"translucent\";if(d.renderPass===M){let E=d.getDepthModeForSublayer(1,d.renderPass===\"opaque\"?Qe.ReadWrite:Qe.ReadOnly);Ya(d,t,n,s,E,w,!1,x)}if(d.renderPass===\"translucent\"&&n.paint.get(\"fill-antialias\")){let E=d.getDepthModeForSublayer(n.getPaintProperty(\"fill-outline-color\")?2:0,Qe.ReadOnly);Ya(d,t,n,s,E,w,!0,x)}},fillExtrusion:function(d,t,n,s,c){let f=n.paint.get(\"fill-extrusion-opacity\");if(f===0)return;let{isRenderingToTexture:y}=c;if(d.renderPass===\"translucent\"){let x=new Qe(d.context.gl.LEQUAL,Qe.ReadWrite,d.depthRangeFor3D);if(f!==1||n.paint.get(\"fill-extrusion-pattern\").constantOr(1))co(d,t,n,s,x,ct.disabled,Ct.disabled,y),co(d,t,n,s,x,d.stencilModeFor3D(),d.colorModeForRenderPass(),y);else{let w=d.colorModeForRenderPass();co(d,t,n,s,x,ct.disabled,w,y)}}},hillshade:function(d,t,n,s,c){if(d.renderPass!==\"offscreen\"&&d.renderPass!==\"translucent\")return;let{isRenderingToTexture:f}=c,y=d.context,x=d.style.projection.useSubdivision,w=d.getDepthModeForSublayer(0,Qe.ReadOnly),S=d.colorModeForRenderPass();if(d.renderPass===\"offscreen\")(function(M,E,I,D,B,V,q){let N=M.context,G=N.gl,X=D.paint.get(\"resampling\")===\"nearest\"?G.NEAREST:G.LINEAR;for(let $ of I){let U=E.getTile($),H=U.dem;if(!H?.data||!U.needsHillshadePrepare)continue;let Z=H.dim,te=H.stride,se=H.getPixels();if(N.activeTexture.set(G.TEXTURE1),N.pixelStoreUnpackPremultiplyAlpha.set(!1),U.demTexture||(U.demTexture=M.getTileTexture(te)),U.demTexture){let _e=U.demTexture;_e.update(se,{premultiply:!1}),_e.bind(G.NEAREST,G.CLAMP_TO_EDGE)}else U.demTexture=new h.T(N,se,G.RGBA,{premultiply:!1}),U.demTexture.bind(G.NEAREST,G.CLAMP_TO_EDGE);N.activeTexture.set(G.TEXTURE0);let ce=U.fbo;if(!ce){let _e=new h.T(N,{width:Z,height:Z,data:null},G.RGBA);_e.bind(X,G.CLAMP_TO_EDGE),ce=U.fbo=N.createFramebuffer(Z,Z,!0,!1),ce.colorAttachment.set(_e.texture)}N.bindFramebuffer.set(ce.framebuffer),N.viewport.set([0,0,Z,Z]),M.useProgram(\"hillshadePrepare\").draw(N,G.TRIANGLES,B,V,q,lt.disabled,Fa(U.tileID,H),null,null,D.id,M.rasterBoundsBuffer,M.quadTriangleIndexBuffer,M.rasterBoundsSegments),U.needsHillshadePrepare=!1}})(d,t,s,n,w,ct.disabled,S),y.viewport.set([0,0,d.width,d.height]);else if(d.renderPass===\"translucent\")if(x){let[M,E,I]=d.stencilConfigForOverlapTwoPass(s);Ka(d,t,n,I,M,w,S,!1,f),Ka(d,t,n,I,E,w,S,!0,f)}else{let[M,E]=d.getStencilConfigForOverlapAndUpdateStencilID(s);Ka(d,t,n,E,M,w,S,!1,f)}},colorRelief:function(d,t,n,s,c){if(d.renderPass!==\"translucent\"||!s.length)return;let{isRenderingToTexture:f}=c,y=d.style.projection.useSubdivision,x=d.getDepthModeForSublayer(0,Qe.ReadOnly),w=d.colorModeForRenderPass();if(y){let[S,M,E]=d.stencilConfigForOverlapTwoPass(s);Ho(d,t,n,E,S,x,w,!1,f),Ho(d,t,n,E,M,x,w,!0,f)}else{let[S,M]=d.getStencilConfigForOverlapAndUpdateStencilID(s);Ho(d,t,n,M,S,x,w,!1,f)}},raster:function(d,t,n,s,c){if(d.renderPass!==\"translucent\"||n.paint.get(\"raster-opacity\")===0||!s.length)return;let{isRenderingToTexture:f}=c,y=t.getSource(),x=d.style.projection.useSubdivision;if(y instanceof Pi)uo(d,t,n,s,null,!1,!1,y.tileCoords,y.flippedWindingOrder,f);else if(x){let[w,S,M]=d.stencilConfigForOverlapTwoPass(s);uo(d,t,n,M,w,!1,!0,An,!1,f),uo(d,t,n,M,S,!0,!0,An,!1,f)}else{let[w,S]=d.getStencilConfigForOverlapAndUpdateStencilID(s);uo(d,t,n,S,w,!1,!0,An,!1,f)}},background:function(d,t,n,s,c){var f;let y=n.paint.get(\"background-color\"),x=n.paint.get(\"background-opacity\");if(x===0)return;let{isRenderingToTexture:w}=c,S=d.context,M=S.gl,E=d.style.projection,I=d.transform,D=I.tileSize,B=n.paint.get(\"background-pattern\");if(d.isPatternMissing(B))return;let V=!B&&y.a===1&&x===1&&d.opaquePassEnabledForLayer()?\"opaque\":\"translucent\";if(d.renderPass!==V)return;let q=ct.disabled,N=d.getDepthModeForSublayer(0,V===\"opaque\"?Qe.ReadWrite:Qe.ReadOnly),G=d.colorModeForRenderPass(),X=d.useProgram(B?\"backgroundPattern\":\"background\"),$=s||pn(I,{tileSize:D,terrain:d.style.map.terrain});B&&(S.activeTexture.set(M.TEXTURE0),d.imageManager.bind(d.context));let U=n.getCrossfadeParameters();for(let H of $){let Z=I.getProjectionData({overscaledTileID:H,applyGlobeMatrix:!w,applyTerrainMatrix:!0}),te=B?pl(x,d,B,{tileID:H,tileSize:D},U):Mn(x,y),se=(f=d.style.map.terrain)===null||f===void 0?void 0:f.getTerrainData(H),ce=E.getMeshFromTileID(S,H.canonical,!1,!0,\"raster\");X.draw(S,M.TRIANGLES,N,q,G,lt.backCCW,te,se,Z,n.id,ce.vertexBuffer,ce.indexBuffer,ce.segments)}},sky:function(d,t){let n=d.context,s=n.gl,c=((M,E,I)=>{let D=Math.cos(E.rollInRadians),B=Math.sin(E.rollInRadians),V=dn(E),q=E.getProjectionData({overscaledTileID:null,applyGlobeMatrix:!0,applyTerrainMatrix:!0}).projectionTransition;return{u_sky_color:M.properties.get(\"sky-color\"),u_horizon_color:M.properties.get(\"horizon-color\"),u_horizon:[(E.width/2-V*B)*I,(E.height/2+V*D)*I],u_horizon_normal:[-B,D],u_sky_horizon_blend:M.properties.get(\"sky-horizon-blend\")*E.height/2*I,u_sky_blend:q}})(t,d.style.map.transform,d.pixelRatio),f=new Qe(s.LEQUAL,Qe.ReadWrite,[0,1]),y=ct.disabled,x=d.colorModeForRenderPass(),w=d.useProgram(\"sky\"),S=Sl(n,t);w.draw(n,s.TRIANGLES,f,y,x,lt.disabled,c,null,void 0,\"sky\",S.vertexBuffer,S.indexBuffer,S.segments)},atmosphere:function(d,t,n){let s=d.context,c=s.gl,f=d.useProgram(\"atmosphere\"),y=new Qe(c.LEQUAL,Qe.ReadOnly,[0,1]),x=d.transform,w=(function(q,N){let G=q.properties.get(\"position\"),X=[-G.x,-G.y,-G.z],$=h.ap(new Float64Array(16));return q.properties.get(\"anchor\")===\"map\"&&(h.be($,$,N.rollInRadians),h.bf($,$,-N.pitchInRadians),h.be($,$,N.bearingInRadians),h.bf($,$,N.center.lat*Math.PI/180),h.bI($,$,-N.center.lng*Math.PI/180)),h.cg(X,X,$),X})(n,d.transform),S=x.getProjectionData({overscaledTileID:null,applyGlobeMatrix:!0,applyTerrainMatrix:!0}),M=t.properties.get(\"atmosphere-blend\")*S.projectionTransition;if(M===0)return;let E=Zi(x.worldSize,x.center.lat),I=x.inverseProjectionMatrix,D=new Float64Array(4);D[3]=1,h.aE(D,D,x.modelViewProjectionMatrix),D[0]/=D[3],D[1]/=D[3],D[2]/=D[3],D[3]=1,h.aE(D,D,I),D[0]/=D[3],D[1]/=D[3],D[2]/=D[3],D[3]=1;let B=((q,N,G,X,$)=>({u_sun_pos:q,u_atmosphere_blend:N,u_globe_position:G,u_globe_radius:X,u_inv_proj_matrix:$}))(w,M,[D[0],D[1],D[2]],E,I),V=Sl(s,t);f.draw(s,c.TRIANGLES,y,ct.disabled,Ct.alphaBlended,lt.disabled,B,null,null,\"atmosphere\",V.vertexBuffer,V.indexBuffer,V.segments)},custom:function(d,t,n,s){let{isRenderingGlobe:c}=s,f=d.context,y=n.implementation,x=d.style.projection,w=d.transform,S=w.getProjectionDataForCustomLayer(c),M={farZ:w.farZ,nearZ:w.nearZ,fov:w.fov*Math.PI/180,modelViewProjectionMatrix:w.modelViewProjectionMatrix,projectionMatrix:w.projectionMatrix,shaderData:{variantName:x.shaderVariantName,vertexShaderPrelude:`const float PI = 3.141592653589793;\nuniform mat4 u_projection_matrix;\n${x.shaderPreludeCode.vertexSource}`,define:x.shaderDefine},defaultProjectionData:S},E=y.renderingMode?y.renderingMode:\"2d\";if(d.renderPass===\"offscreen\"){let I=y.prerender;I&&(d.setCustomLayerDefaults(),f.setColorMode(d.colorModeForRenderPass()),I.call(y,f.gl,M),f.setDirty(),d.setBaseState())}else if(d.renderPass===\"translucent\"){d.setCustomLayerDefaults(),f.setColorMode(d.colorModeForRenderPass()),f.setStencilMode(ct.disabled);let I=E===\"3d\"?d.getDepthModeFor3D():d.getDepthModeForSublayer(0,Qe.ReadOnly);f.setDepthMode(I),y.render(f.gl,M),f.setDirty(),d.setBaseState(),f.bindFramebuffer.set(null)}},debug:function(d,t,n){for(let s of n)eu(d,t,s)},debugPadding:function(d){let t=d.transform.padding;bl(d,d.transform.height-(t.top||0),3,Yc),bl(d,t.bottom||0,3,Kc),wl(d,t.left||0,3,Jc),wl(d,d.transform.width-(t.right||0),3,Qc);let n=d.transform.centerPoint;(function(s,c,f,y){Xo(s,c-1,f-10,2,20,y),Xo(s,c-10,f-1,20,2,y)})(d,n.x,d.transform.height-n.y,Qr)},terrainDepth:function(d,t){let n=d.context,s=n.gl,c=d.transform,f=Ct.unblended,y=new Qe(s.LEQUAL,Qe.ReadWrite,[0,1]),x=t.tileManager.getRenderableTiles(),w=d.useProgram(\"terrainDepth\");n.bindFramebuffer.set(t.getFramebuffer(\"depth\").framebuffer),n.viewport.set([0,0,d.width/devicePixelRatio,d.height/devicePixelRatio]),n.clear({color:h.bo.transparent,depth:1});for(let S of x){let M=t.getTerrainMesh(S.tileID),E=t.getTerrainData(S.tileID),I=c.getProjectionData({overscaledTileID:S.tileID,applyTerrainMatrix:!1,applyGlobeMatrix:!0}),D={u_ele_delta:t.getMeshFrameDelta(c.zoom)};w.draw(n,s.TRIANGLES,y,ct.disabled,f,lt.backCCW,D,E,I,\"terrain\",M.vertexBuffer,M.indexBuffer,M.segments)}n.bindFramebuffer.set(null),n.viewport.set([0,0,d.width,d.height])},terrainCoords:function(d,t){let n=d.context,s=n.gl,c=d.transform,f=Ct.unblended,y=new Qe(s.LEQUAL,Qe.ReadWrite,[0,1]),x=t.getCoordsTexture(),w=t.tileManager.getRenderableTiles(),S=d.useProgram(\"terrainCoords\");n.bindFramebuffer.set(t.getFramebuffer(\"coords\").framebuffer),n.viewport.set([0,0,d.width/devicePixelRatio,d.height/devicePixelRatio]),n.clear({color:h.bo.transparent,depth:1}),t.coordsIndex=[];for(let M of w){let E=t.getTerrainMesh(M.tileID),I=t.getTerrainData(M.tileID);n.activeTexture.set(s.TEXTURE0),s.bindTexture(s.TEXTURE_2D,x.texture);let D={u_terrain_coords_id:(255-t.coordsIndex.length)/255,u_texture:0,u_ele_delta:t.getMeshFrameDelta(c.zoom)},B=c.getProjectionData({overscaledTileID:M.tileID,applyTerrainMatrix:!1,applyGlobeMatrix:!0});S.draw(n,s.TRIANGLES,y,ct.disabled,f,lt.backCCW,D,I,B,\"terrain\",E.vertexBuffer,E.indexBuffer,E.segments),t.coordsIndex.push(M.tileID.key)}n.bindFramebuffer.set(null),n.viewport.set([0,0,d.width,d.height])}};class Yo{constructor(t,n){this.drawFunctions=tu,this.context=new Ha(t),this.transform=n,this._tileTextures={},this.terrainFacilitator={depthDirty:!0,coordsDirty:!1,matrix:h.ap(new Float64Array(16)),renderTime:0},this.setup(),this.numSublayers=ui.maxOverzooming+ui.maxUnderzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.crossTileSymbolIndex=new Vi}resize(t,n,s){if(this.width=Math.floor(t*s),this.height=Math.floor(n*s),this.pixelRatio=s,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(let c of this.style._order)this.style._layers[c].resize()}setup(){let t=this.context,n=new h.aU;n.emplaceBack(0,0),n.emplaceBack(h.a6,0),n.emplaceBack(0,h.a6),n.emplaceBack(h.a6,h.a6),this.tileExtentBuffer=t.createVertexBuffer(n,Yr.members),this.tileExtentSegments=h.aV.simpleSegment(0,0,4,2);let s=new h.aU;s.emplaceBack(0,0),s.emplaceBack(h.a6,0),s.emplaceBack(0,h.a6),s.emplaceBack(h.a6,h.a6),this.debugBuffer=t.createVertexBuffer(s,Yr.members),this.debugSegments=h.aV.simpleSegment(0,0,4,5);let c=new h.ch;c.emplaceBack(0,0,0,0),c.emplaceBack(h.a6,0,h.a6,0),c.emplaceBack(0,h.a6,0,h.a6),c.emplaceBack(h.a6,h.a6,h.a6,h.a6),this.rasterBoundsBuffer=t.createVertexBuffer(c,Oo.members),this.rasterBoundsSegments=h.aV.simpleSegment(0,0,4,2);let f=new h.aU;f.emplaceBack(0,0),f.emplaceBack(h.a6,0),f.emplaceBack(0,h.a6),f.emplaceBack(h.a6,h.a6),this.rasterBoundsBufferPosOnly=t.createVertexBuffer(f,Yr.members),this.rasterBoundsSegmentsPosOnly=h.aV.simpleSegment(0,0,4,5);let y=new h.aU;y.emplaceBack(0,0),y.emplaceBack(1,0),y.emplaceBack(0,1),y.emplaceBack(1,1),this.viewportBuffer=t.createVertexBuffer(y,Yr.members),this.viewportSegments=h.aV.simpleSegment(0,0,4,2);let x=new h.ci;x.emplaceBack(0),x.emplaceBack(1),x.emplaceBack(3),x.emplaceBack(2),x.emplaceBack(0),this.tileBorderIndexBuffer=t.createIndexBuffer(x);let w=new h.aW;w.emplaceBack(1,0,2),w.emplaceBack(1,2,3),this.quadTriangleIndexBuffer=t.createIndexBuffer(w);let S=this.context.gl;this.stencilClearMode=new ct({func:S.ALWAYS,mask:0},0,255,S.ZERO,S.ZERO,S.ZERO),this.tileExtentMesh=new Pt(this.tileExtentBuffer,this.quadTriangleIndexBuffer,this.tileExtentSegments)}clearStencil(){let t=this.context,n=t.gl;this.nextStencilID=1,this.currentStencilSource=void 0;let s=h.O();h.c7(s,0,this.width,this.height,0,0,1),h.S(s,s,[n.drawingBufferWidth,n.drawingBufferHeight,0]);let c={mainMatrix:s,tileMercatorCoords:[0,0,1,1],clippingPlane:[0,0,0,0],projectionTransition:0,fallbackMatrix:s};this.useProgram(\"clippingMask\",null,!0).draw(t,n.TRIANGLES,Qe.disabled,this.stencilClearMode,Ct.disabled,lt.disabled,null,null,c,\"$clipping\",this.viewportBuffer,this.quadTriangleIndexBuffer,this.viewportSegments)}_renderTileClippingMasks(t,n,s){if(this.currentStencilSource===t.source||!t.isTileClipped()||!n?.length)return;this.currentStencilSource=t.source,this.nextStencilID+n.length>256&&this.clearStencil();let c=this.context;c.setColorMode(Ct.disabled),c.setDepthMode(Qe.disabled);let f={};for(let y of n)f[y.key]=this.nextStencilID++;this._renderTileMasks(f,n,s,!0),this._renderTileMasks(f,n,s,!1),this._tileClippingMaskIDs=f}_renderTileMasks(t,n,s,c){var f;let y=this.context,x=y.gl,w=this.style.projection,S=this.transform,M=this.useProgram(\"clippingMask\");for(let E of n){let I=t[E.key],D=(f=this.style.map.terrain)===null||f===void 0?void 0:f.getTerrainData(E),B=w.getMeshFromTileID(this.context,E.canonical,c,!0,\"stencil\"),V=S.getProjectionData({overscaledTileID:E,applyGlobeMatrix:!s,applyTerrainMatrix:!0});M.draw(y,x.TRIANGLES,Qe.disabled,new ct({func:x.ALWAYS,mask:0},I,255,x.KEEP,x.KEEP,x.REPLACE),Ct.disabled,s?lt.disabled:lt.backCCW,null,D,V,\"$clipping\",B.vertexBuffer,B.indexBuffer,B.segments)}}_renderTilesDepthBuffer(){var t;let n=this.context,s=n.gl,c=this.style.projection,f=this.transform,y=this.useProgram(\"depth\"),x=this.getDepthModeFor3D(),w=pn(f,{tileSize:f.tileSize});for(let S of w){let M=(t=this.style.map.terrain)===null||t===void 0?void 0:t.getTerrainData(S),E=c.getMeshFromTileID(this.context,S.canonical,!0,!0,\"raster\"),I=f.getProjectionData({overscaledTileID:S,applyGlobeMatrix:!0,applyTerrainMatrix:!0});y.draw(n,s.TRIANGLES,x,ct.disabled,Ct.disabled,lt.backCCW,null,M,I,\"$clipping\",E.vertexBuffer,E.indexBuffer,E.segments)}}stencilModeFor3D(){this.currentStencilSource=void 0,this.nextStencilID+1>256&&this.clearStencil();let t=this.nextStencilID++,n=this.context.gl;return new ct({func:n.NOTEQUAL,mask:255},t,255,n.KEEP,n.KEEP,n.REPLACE)}stencilModeForClipping(t){let n=this.context.gl;return new ct({func:n.EQUAL,mask:255},this._tileClippingMaskIDs[t.key],0,n.KEEP,n.KEEP,n.REPLACE)}getStencilConfigForOverlapAndUpdateStencilID(t){let n=this.context.gl,s=t.sort(((y,x)=>x.overscaledZ-y.overscaledZ)),c=s[s.length-1].overscaledZ,f=s[0].overscaledZ-c+1;if(f>1){this.currentStencilSource=void 0,this.nextStencilID+f>256&&this.clearStencil();let y={};for(let x=0;xx.overscaledZ-y.overscaledZ)),c=s[s.length-1].overscaledZ,f=s[0].overscaledZ-c+1;if(this.clearStencil(),f>1){let y={},x={};for(let w=0;w0};for(let D in x){let B=x[D];B.used&&B.prepare(this.context),w[D]=B.getVisibleCoordinates(!1),S[D]=w[D].slice().reverse(),M[D]=B.getVisibleCoordinates(!0).reverse()}this.opaquePassCutoff=1/0;for(let D=0;Dthis.useProgram(D)}),this.context.viewport.set([0,0,this.width,this.height]),this.context.bindFramebuffer.set(null),this.context.clear({color:n.showOverdrawInspector?h.bo.black:h.bo.transparent,depth:1}),this.clearStencil(),this.style.sky&&this.drawFunctions.sky(this,this.style.sky),this._showOverdrawInspector=n.showOverdrawInspector,this.depthRangeFor3D=[0,1-(t._order.length+2)*this.numSublayers*this.depthEpsilon],!this.renderToTexture)for(this.renderPass=\"opaque\",this.currentLayer=y.length-1;this.currentLayer>=0;this.currentLayer--){let D=this.style._layers[y[this.currentLayer]],B=x[D.source],V=w[D.source];this._renderTileClippingMasks(D,V,!1),this.renderLayer(this,B,D,V,E)}this.renderPass=\"translucent\";let I=!1;for(this.currentLayer=0;this.currentLayerU.source&&!U.isHidden(V)?[B.tileManagers[U.source]]:[])),G=N.filter((U=>U.getSource().type===\"vector\")),X=N.filter((U=>U.getSource().type!==\"vector\")),$=U=>{(!q||q.getSource().maxzoom0?n.pop():null}isPatternMissing(t){if(!t)return!1;if(!t.from||!t.to)return!0;let n=this.imageManager.getPattern(t.from.toString()),s=this.imageManager.getPattern(t.to.toString());return!n||!s}useProgram(t,n,s=!1,c=[]){var f;this.cache||(this.cache={});let y=!!this.style.map.terrain,x=this.style.projection,w=s?Rt.projectionMercator:x.shaderPreludeCode,S=s?Ci:x.shaderDefine,M=t+(n?n.cacheKey:\"\")+`/${s?$i:x.shaderVariantName}`+(this._showOverdrawInspector?\"/overdraw\":\"\")+(y?\"/terrain\":\"\")+(c?`/${c.join(\"/\")}`:\"\");return(f=this.cache)[M]||(f[M]=new Ju(this.context,Rt[t],n,ih[t],this._showOverdrawInspector,y,w,S,c)),this.cache[M]}setCustomLayerDefaults(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()}setBaseState(){let t=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(t.FUNC_ADD)}initDebugOverlayCanvas(){this.debugOverlayCanvas==null&&(this.debugOverlayCanvas=document.createElement(\"canvas\"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,this.debugOverlayTexture=new h.T(this.context,this.debugOverlayCanvas,this.context.gl.RGBA))}destroy(){var t,n;if(this._tileTextures){for(let s in this._tileTextures){let c=this._tileTextures[s];if(c)for(let f of c)f.destroy()}this._tileTextures={}}if(this.tileExtentBuffer&&this.tileExtentBuffer.destroy(),this.debugBuffer&&this.debugBuffer.destroy(),this.rasterBoundsBuffer&&this.rasterBoundsBuffer.destroy(),this.rasterBoundsBufferPosOnly&&this.rasterBoundsBufferPosOnly.destroy(),this.viewportBuffer&&this.viewportBuffer.destroy(),this.tileBorderIndexBuffer&&this.tileBorderIndexBuffer.destroy(),this.quadTriangleIndexBuffer&&this.quadTriangleIndexBuffer.destroy(),this.tileExtentMesh&&((t=this.tileExtentMesh.vertexBuffer)===null||t===void 0||t.destroy()),this.tileExtentMesh&&((n=this.tileExtentMesh.indexBuffer)===null||n===void 0||n.destroy()),this.debugOverlayTexture&&this.debugOverlayTexture.destroy(),this.cache){for(let s in this.cache){let c=this.cache[s];c?.program&&this.context.gl.deleteProgram(c.program)}this.cache={}}this.context&&this.context.setDefault()}overLimit(){let{drawingBufferWidth:t,drawingBufferHeight:n}=this.context.gl;return this.width!==t||this.height!==n}}function Ml(d,t){let n,s=!1,c=null,f=()=>{c=null,s&&(d(...n),c=setTimeout(f,t),s=!1)};return(...y)=>(s=!0,n=y,c||f(),c)}Yo.MAX_TEXTURE_POOL_SIZE_PER_BUCKET=50;class Ko{constructor(t){this._getCurrentHash=()=>{let n=window.location.hash.replace(\"#\",\"\");if(this._hashName){let s,c=n.split(\"&\").map((f=>f.split(\"=\")));for(let f of c)f[0]===this._hashName&&(s=f);return(s&&s[1]||\"\").split(\"/\")}return n.split(\"/\")},this._onHashChange=()=>{let n=this._getCurrentHash();if(!this._isValidHash(n))return!1;let s=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(n[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+n[2],+n[1]],zoom:+n[0],bearing:s,pitch:+(n[4]||0)}),!0},this._updateHashUnthrottled=()=>{let n=window.location.href.replace(/(#.*)?$/,this.getHashString());window.history.replaceState(window.history.state,null,n)},this._removeHash=()=>{let n=this._getCurrentHash();if(n.length===0)return;let s=n.join(\"/\"),c=s;c.split(\"&\").length>0&&(c=c.split(\"&\")[0]),this._hashName&&(c=`${this._hashName}=${s}`);let f=window.location.hash.replace(c,\"\");f.startsWith(\"#&\")?f=f.slice(0,1)+f.slice(2):f===\"#\"&&(f=\"\");let y=window.location.href.replace(/(#.+)?$/,f);y=y.replace(\"&&\",\"&\"),window.history.replaceState(window.history.state,null,y)},this._updateHash=Ml(this._updateHashUnthrottled,300),this._hashName=t&&encodeURIComponent(t)}addTo(t){return this._map=t,addEventListener(\"hashchange\",this._onHashChange,!1),this._map.on(\"moveend\",this._updateHash),this}remove(){return removeEventListener(\"hashchange\",this._onHashChange,!1),this._map.off(\"moveend\",this._updateHash),clearTimeout(this._updateHash()),this._removeHash(),delete this._map,this}getHashString(t){let n=this._map.getCenter(),s=Math.round(100*this._map.getZoom())/100,c=Math.ceil((s*Math.LN2+Math.log(512/360/.5))/Math.LN10),f=Math.pow(10,c),y=Math.round(n.lng*f)/f,x=Math.round(n.lat*f)/f,w=this._map.getBearing(),S=this._map.getPitch(),M=\"\";if(M+=t?`/${y}/${x}/${s}`:`${s}/${x}/${y}`,(w||S)&&(M+=\"/\"+Math.round(10*w)/10),S&&(M+=`/${Math.round(S)}`),this._hashName){let E=this._hashName,I=!1,D=window.location.hash.slice(1).split(\"&\").map((B=>{let V=B.split(\"=\")[0];return V===E?(I=!0,`${V}=${M}`):B})).filter((B=>B));return I||D.push(`${E}=${M}`),`#${D.join(\"&\")}`}return`#${M}`}_isValidHash(t){if(t.length<3||t.some(isNaN))return!1;try{new h.W(+t[2],+t[1])}catch{return!1}let n=+t[0],s=+(t[3]||0),c=+(t[4]||0);return n>=this._map.getMinZoom()&&n<=this._map.getMaxZoom()&&s>=-180&&s<=180&&c>=this._map.getMinPitch()&&c<=this._map.getMaxPitch()}}let ho={linearity:.3,easing:h.cv(0,0,.3,1)},rr=h.e({deceleration:2500,maxSpeed:1400},ho),gr=h.e({deceleration:20,maxSpeed:1400},ho),iu=h.e({deceleration:1e3,maxSpeed:360},ho),_r=h.e({deceleration:1e3,maxSpeed:90},ho),dh=h.e({deceleration:1e3,maxSpeed:360},ho);class ph{constructor(t){this._map=t,this.clear()}clear(){this._inertiaBuffer=[]}record(t){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:Fe(),settings:t})}_drainInertiaBuffer(){let t=this._inertiaBuffer,n=Fe();for(;t.length>0&&n-t[0].time>160;)t.shift()}_onMoveEnd(t){if(this._drainInertiaBuffer(),this._inertiaBuffer.length<2)return;let n={zoom:0,bearing:0,pitch:0,roll:0,pan:new h.P(0,0),pinchAround:void 0,around:void 0};for(let{settings:f}of this._inertiaBuffer)n.zoom+=f.zoomDelta||0,n.bearing+=f.bearingDelta||0,n.pitch+=f.pitchDelta||0,n.roll+=f.rollDelta||0,f.panDelta&&n.pan._add(f.panDelta),f.around&&(n.around=f.around),f.pinchAround&&(n.pinchAround=f.pinchAround);let s=this._inertiaBuffer[this._inertiaBuffer.length-1].time-this._inertiaBuffer[0].time,c={};if(n.pan.mag()){let f=Tr(n.pan.mag(),s,h.e({},rr,t||{})),y=n.pan.mult(f.amount/n.pan.mag()),x=this._map.cameraHelper.handlePanInertia(y,this._map.transform);c.center=x.easingCenter,c.offset=x.easingOffset,Jo(c,f)}if(n.zoom){let f=Tr(n.zoom,s,gr);c.zoom=h.cw(this._map.transform.zoom+f.amount,this._map.getZoomSnap(),f.amount),Jo(c,f)}if(n.bearing){let f=Tr(n.bearing,s,iu);c.bearing=this._map.transform.bearing+h.al(f.amount,-179,179),Jo(c,f)}if(n.pitch){let f=Tr(n.pitch,s,_r);c.pitch=this._map.transform.pitch+f.amount,Jo(c,f)}if(n.roll){let f=Tr(n.roll,s,dh);c.roll=this._map.transform.roll+h.al(f.amount,-179,179),Jo(c,f)}if(c.zoom||c.bearing){let f=n.pinchAround===void 0?n.around:n.pinchAround;c.around=f?this._map.unproject(f):this._map.getCenter()}return this.clear(),h.e(c,{noMoveStart:!0})}}function Jo(d,t){(!d.duration||d.durationn.unproject(w))),x=f.reduce(((w,S,M,E)=>w.add(S.div(E.length))),new h.P(0,0));super(t,{points:f,point:x,lngLats:y,lngLat:n.unproject(x),originalEvent:s}),this._defaultPrevented=!1}}class ru extends h.n{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(t,n,s){super(t,{originalEvent:s}),this._defaultPrevented=!1}}class fh{constructor(t,n){this._map=t,this._clickTolerance=n.clickTolerance}reset(){delete this._mousedownPos}wheel(t){return this._firePreventable(new ru(t.type,this._map,t))}mousedown(t,n){return this._mousedownPos=n,this._firePreventable(new Hi(t.type,this._map,t))}mouseup(t){this._map.fire(new Hi(t.type,this._map,t))}click(t,n){this._mousedownPos&&this._mousedownPos.dist(n)>=this._clickTolerance||this._map.fire(new Hi(t.type,this._map,t))}dblclick(t){return this._firePreventable(new Hi(t.type,this._map,t))}mouseover(t){this._map.fire(new Hi(t.type,this._map,t))}mouseout(t){this._map.fire(new Hi(t.type,this._map,t))}touchstart(t){return this._firePreventable(new Qo(t.type,this._map,t))}touchmove(t){this._map.fire(new Qo(t.type,this._map,t))}touchend(t){this._map.fire(new Qo(t.type,this._map,t))}touchcancel(t){this._map.fire(new Qo(t.type,this._map,t))}_firePreventable(t){if(this._map.fire(t),t.defaultPrevented)return{}}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class nu{constructor(t){this._map=t}reset(){this._delayContextMenu=!1,this._ignoreContextMenu=!0,delete this._contextMenuEvent}mousemove(t){this._map.fire(new Hi(t.type,this._map,t))}mousedown(){this._delayContextMenu=!0,this._ignoreContextMenu=!1}mouseup(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new Hi(\"contextmenu\",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)}contextmenu(t){this._delayContextMenu?this._contextMenuEvent=t:this._ignoreContextMenu||this._map.fire(new Hi(t.type,this._map,t)),this._map.listens(\"contextmenu\")&&t.preventDefault()}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class Rr{constructor(t){this._map=t}get transform(){return this._map._requestedCameraState||this._map.transform}get center(){return{lng:this.transform.center.lng,lat:this.transform.center.lat}}get zoom(){return this.transform.zoom}get pitch(){return this.transform.pitch}get bearing(){return this.transform.bearing}unproject(t){return this.transform.screenPointToLocation(h.P.convert(t),this._map.terrain)}}class Sr{constructor(t,n){this._map=t,this._tr=new Rr(t),this._el=t.getCanvasContainer(),this._container=t.getContainer(),this._clickTolerance=n.clickTolerance||1,n.boxZoom&&typeof n.boxZoom==\"object\"&&(this._boxZoomEnd=n.boxZoom.boxZoomEnd)}isEnabled(){return!!this._enabled}isActive(){return!!this._active}enable(){this.isEnabled()||(this._enabled=!0)}disable(){this.isEnabled()&&(this._enabled=!1)}mousedown(t,n){this.isEnabled()&&t.shiftKey&&t.button===0&&(le.disableDrag(),this._startPos=this._lastPos=n,this._active=!0)}mousemoveWindow(t,n){if(!this._active)return;let s=n;if(this._lastPos.equals(s)||!this._box&&s.dist(this._startPos)f.fitScreenCoordinates(s,c,this._tr.bearing,{linear:!0})};this._fireEvent(\"boxzoomcancel\",t)}keydown(t){this._active&&t.keyCode===27&&(this.reset(),this._fireEvent(\"boxzoomcancel\",t))}reset(){this._active=!1,this._container.classList.remove(\"maplibregl-crosshair\"),this._box&&(this._box.remove(),this._box=null),le.enableDrag(),delete this._startPos,delete this._lastPos}_fireEvent(t,n){return this._map.fire(new h.n(t,{originalEvent:n}))}}function ze(d,t){if(d.length!==t.length)throw new Error(`The number of touches and points are not equal - touches ${d.length}, points ${t.length}`);let n={};for(let s=0;sthis.numTouches)&&(this.aborted=!0),this.aborted||(this.startTime===void 0&&(this.startTime=t.timeStamp),s.length===this.numTouches&&(this.centroid=(function(c){let f=new h.P(0,0);for(let y of c)f._add(y);return f.div(c.length)})(n),this.touches=ze(s,n)))}touchmove(t,n,s){if(this.aborted||!this.centroid)return;let c=ze(s,n);for(let f in this.touches){let y=c[f];(!y||y.dist(this.touches[f])>30)&&(this.aborted=!0)}}touchend(t,n,s){if((!this.centroid||t.timeStamp-this.startTime>500)&&(this.aborted=!0),s.length===0){let c=!this.aborted&&this.centroid;if(this.reset(),c)return c}}}class ea{constructor(t){this.singleTap=new ou(t),this.numTaps=t.numTaps,this.reset()}reset(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()}touchstart(t,n,s){this.singleTap.touchstart(t,n,s)}touchmove(t,n,s){this.singleTap.touchmove(t,n,s)}touchend(t,n,s){let c=this.singleTap.touchend(t,n,s);if(c){let f=t.timeStamp-this.lastTime<500,y=!this.lastTap||this.lastTap.dist(c)<30;if(f&&y||this.reset(),this.count++,this.lastTime=t.timeStamp,this.lastTap=c,this.count===this.numTaps)return this.reset(),c}}}class au{constructor(t){this._tr=new Rr(t),this._zoomIn=new ea({numTouches:1,numTaps:2}),this._zoomOut=new ea({numTouches:2,numTaps:1}),this.reset()}reset(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()}touchstart(t,n,s){this._zoomIn.touchstart(t,n,s),this._zoomOut.touchstart(t,n,s)}touchmove(t,n,s){this._zoomIn.touchmove(t,n,s),this._zoomOut.touchmove(t,n,s)}touchend(t,n,s){let c=this._zoomIn.touchend(t,n,s),f=this._zoomOut.touchend(t,n,s),y=this._tr;return c?(this._active=!0,t.preventDefault(),setTimeout((()=>this.reset()),0),{cameraAnimation:x=>x.easeTo({duration:300,zoom:h.cw(y.zoom+1,x.getZoomSnap()),around:y.unproject(c)},{originalEvent:t})}):f?(this._active=!0,t.preventDefault(),setTimeout((()=>this.reset()),0),{cameraAnimation:x=>x.easeTo({duration:300,zoom:h.cw(y.zoom-1,x.getZoomSnap()),around:y.unproject(f)},{originalEvent:t})}):void 0}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class Lr{constructor(t){this._enabled=!!t.enable,this._moveStateManager=t.moveStateManager,this._clickTolerance=t.clickTolerance||1,this._moveFunction=t.move,this._activateOnStart=!!t.activateOnStart,t.assignEvents(this),this.reset()}reset(t){this._active=!1,this._moved=!1,delete this._lastPoint,this._moveStateManager.endMove(t)}_move(...t){let n=this._moveFunction(...t);if(n.bearingDelta||n.pitchDelta||n.rollDelta||n.around||n.panDelta)return this._active=!0,n}dragStart(t,n){this.isEnabled()&&!this._lastPoint&&this._moveStateManager.isValidStartEvent(t)&&(this._moveStateManager.startMove(t),this._lastPoint=Array.isArray(n)?n[0]:n,this._activateOnStart&&this._lastPoint&&(this._active=!0))}dragMove(t,n){if(!this.isEnabled())return;let s=this._lastPoint;if(!s)return;if(t.preventDefault(),!this._moveStateManager.isValidMoveEvent(t))return void this.reset(t);let c=Array.isArray(n)?n[0]:n;return!this._moved&&c.dist(s)!0}),n=new su){this.mouseMoveStateManager=t,this.oneFingerTouchMoveStateManager=n}_executeRelevantHandler(t,n,s){return t instanceof MouseEvent?n(t):typeof TouchEvent<\"u\"&&t instanceof TouchEvent?s(t):void 0}startMove(t){this._executeRelevantHandler(t,(n=>{this.mouseMoveStateManager.startMove(n)}),(n=>{this.oneFingerTouchMoveStateManager.startMove(n)}))}endMove(t){this._executeRelevantHandler(t,(n=>{this.mouseMoveStateManager.endMove(n)}),(n=>{this.oneFingerTouchMoveStateManager.endMove(n)}))}isValidStartEvent(t){return this._executeRelevantHandler(t,(n=>this.mouseMoveStateManager.isValidStartEvent(n)),(n=>this.oneFingerTouchMoveStateManager.isValidStartEvent(n)))}isValidMoveEvent(t){return this._executeRelevantHandler(t,(n=>this.mouseMoveStateManager.isValidMoveEvent(n)),(n=>this.oneFingerTouchMoveStateManager.isValidMoveEvent(n)))}isValidEndEvent(t){return this._executeRelevantHandler(t,(n=>this.mouseMoveStateManager.isValidEndEvent(n)),(n=>this.oneFingerTouchMoveStateManager.isValidEndEvent(n)))}}let Ja=d=>{d.mousedown=d.dragStart,d.mousemoveWindow=d.dragMove,d.mouseup=d.dragEnd,d.contextmenu=t=>{t.preventDefault()}};class lu{constructor(t,n){this._clickTolerance=t.clickTolerance||1,this._map=n,this.reset()}reset(){this._active=!1,this._touches={},this._sum=new h.P(0,0)}_shouldBePrevented(t){return t<(this._map.cooperativeGestures.isEnabled()?2:1)}touchstart(t,n,s){return this._calculateTransform(t,n,s)}touchmove(t,n,s){if(this._active){if(!this._shouldBePrevented(s.length))return t.preventDefault(),this._calculateTransform(t,n,s);this._map.cooperativeGestures.notifyGestureBlocked(\"touch_pan\",t)}}touchend(t,n,s){this._calculateTransform(t,n,s),this._active&&this._shouldBePrevented(s.length)&&this.reset()}touchcancel(){this.reset()}_calculateTransform(t,n,s){s.length>0&&(this._active=!0);let c=ze(s,n),f=new h.P(0,0),y=new h.P(0,0),x=0;for(let S in c){let M=c[S],E=this._touches[S];E&&(f._add(M),y._add(M.sub(E)),x++,c[S]=M)}if(this._touches=c,this._shouldBePrevented(x)||!y.mag())return;let w=y.div(x);return this._sum._add(w),this._sum.mag()Math.abs(d.x)}class Fr extends El{constructor(t){super(),this._currentTouchCount=0,this._map=t}reset(){super.reset(),this._valid=void 0,delete this._firstMove,delete this._lastPoints}touchstart(t,n,s){super.touchstart(t,n,s),this._currentTouchCount=s.length}_start(t){this._lastPoints=t,zl(t[0].sub(t[1]))&&(this._valid=!1)}_move(t,n,s){if(this._map.cooperativeGestures.isEnabled()&&this._currentTouchCount<3)return;let c=t[0].sub(this._lastPoints[0]),f=t[1].sub(this._lastPoints[1]);return this._valid=this.gestureBeginsVertically(c,f,s.timeStamp),this._valid?(this._lastPoints=t,this._active=!0,{pitchDelta:(c.y+f.y)/2*-.5}):void 0}gestureBeginsVertically(t,n,s){if(this._valid!==void 0)return this._valid;let c=t.mag()>=2,f=n.mag()>=2;if(!c&&!f)return;if(!c||!f)return this._firstMove===void 0&&(this._firstMove=s),s-this._firstMove<100&&void 0;let y=t.y>0==n.y>0;return zl(t)&&zl(n)&&y}}let Et={panStep:100,bearingStep:15,pitchStep:10};class hu{constructor(t){this._tr=new Rr(t);let n=Et;this._panStep=n.panStep,this._bearingStep=n.bearingStep,this._pitchStep=n.pitchStep,this._rotationDisabled=!1}reset(){this._active=!1}keydown(t){if(t.altKey||t.ctrlKey||t.metaKey)return;let n=0,s=0,c=0,f=0,y=0;switch(t.keyCode){case 61:case 107:case 171:case 187:n=1;break;case 189:case 109:case 173:n=-1;break;case 37:t.shiftKey?s=-1:(t.preventDefault(),f=-1);break;case 39:t.shiftKey?s=1:(t.preventDefault(),f=1);break;case 38:t.shiftKey?c=1:(t.preventDefault(),y=-1);break;case 40:t.shiftKey?c=-1:(t.preventDefault(),y=1);break;default:return}return this._rotationDisabled&&(s=0,c=0),{cameraAnimation:x=>{let w=this._tr;x.easeTo({duration:300,easeId:\"keyboardHandler\",easing:es,zoom:n?h.cw(w.zoom+n*(t.shiftKey?2:1),x.getZoomSnap()):w.zoom,bearing:w.bearing+s*this._bearingStep,pitch:w.pitch+c*this._pitchStep,offset:[-f*this._panStep,-y*this._panStep],center:w.center},{originalEvent:t})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}disableRotation(){this._rotationDisabled=!0}enableRotation(){this._rotationDisabled=!1}}function es(d){return d*(2-d)}let ia=4.000244140625,Dl=1/450;class kl{constructor(t,n){this._onTimeout=s=>{this._type=\"wheel\",this._delta-=this._lastValue,this._active||this._start(s)},this._map=t,this._tr=new Rr(t),this._triggerRenderFrame=n,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=Dl}setZoomRate(t){this._defaultZoomRate=t}setWheelZoomRate(t){this._wheelZoomRate=t}isEnabled(){return!!this._enabled}isActive(){return!!this._active||this._finishTimeout!==void 0}isZooming(){return!!this._zooming}enable(t){this.isEnabled()||(this._enabled=!0,this._aroundCenter=!!t&&t.around===\"center\")}disable(){this.isEnabled()&&(this._enabled=!1)}_shouldBePrevented(t){return!!this._map.cooperativeGestures.isEnabled()&&!(t.ctrlKey||this._map.cooperativeGestures.isBypassed(t))}wheel(t){if(!this.isEnabled())return;if(this._shouldBePrevented(t))return void this._map.cooperativeGestures.notifyGestureBlocked(\"wheel_zoom\",t);let n=t.deltaMode===WheelEvent.DOM_DELTA_LINE?40*t.deltaY:t.deltaY,s=Fe(),c=s-(this._lastWheelEventTime||0);this._lastWheelEventTime=s,n!==0&&n%ia==0?this._type=\"wheel\":n!==0&&Math.abs(n)<4?this._type=\"trackpad\":c>400?(this._type=null,this._lastValue=n,this._timeout=setTimeout(this._onTimeout,40,t)):this._type||(this._type=Math.abs(c*n)<200?\"trackpad\":\"wheel\",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,n+=this._lastValue)),t.shiftKey&&n&&(n/=4),this._type&&(this._lastWheelEvent=t,this._delta-=n,this._active||this._start(t)),t.preventDefault()}_start(t){if(!this._delta)return;this._needsRerender=!1,this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);let n=le.mousePos(this._map.getCanvas(),t),s=this._tr;this._aroundPoint=this._aroundCenter?s.transform.locationToScreenPoint(h.W.convert(s.center)):n,this._needsRerender||(this._needsRerender=!0,this._triggerRenderFrame())}renderFrame(){if(!this._needsRerender||(this._needsRerender=!1,!this.isActive()))return;let t=this._tr.transform;if(typeof this._lastExpectedZoom==\"number\"){let x=t.zoom-this._lastExpectedZoom;typeof this._startZoom==\"number\"&&(this._startZoom+=x),typeof this._targetZoom==\"number\"&&(this._targetZoom+=x)}if(this._delta!==0){let x=this._type===\"wheel\"&&Math.abs(this._delta)>ia?this._wheelZoomRate:this._defaultZoomRate,w=2/(1+Math.exp(-Math.abs(this._delta*x)));this._delta<0&&w!==0&&(w=1/w);let S=typeof this._targetZoom!=\"number\"?t.scale:h.ao(this._targetZoom),M=t.applyConstrain(t.getCameraLngLat(),h.ar(S*w)).zoom,E=this._map.getZoomSnap();if(this._type===\"wheel\"&&E>0){let I=h.cw(t.zoom,E);this._targetZoom=h.cw(M,E,M-I)}else this._targetZoom=M;this._type===\"wheel\"&&(this._startZoom=t.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}let n=typeof this._targetZoom!=\"number\"?t.zoom:this._targetZoom,s=this._startZoom,c=this._easing,f,y=!1;if(this._type===\"wheel\"&&s&&c){let x=Fe()-this._lastWheelEventTime,w=Math.min((x+5)/200,1),S=c(w);f=h.H.number(s,n,S),w<1?this._needsRerender=!0:y=!0}else f=n,y=!0;return this._active=!0,y&&(this._active=!1,this._finishTimeout=setTimeout((()=>{this._zooming=!1,this._triggerRenderFrame(),delete this._targetZoom,delete this._lastExpectedZoom,delete this._finishTimeout}),200)),this._lastExpectedZoom=f,{noInertia:!0,needsRenderFrame:!y,zoomDelta:f-t.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}_smoothOutEasing(t){let n=h.cy;if(this._prevEase){let s=this._prevEase,c=(Fe()-s.start)/s.duration,f=s.easing(c+.01)-s.easing(c),y=.27/Math.sqrt(f*f+1e-4)*.01,x=Math.sqrt(.0729-y*y);n=h.cv(y,x,.25,1)}return this._prevEase={start:Fe(),duration:t,easing:n},n}reset(){this._active=!1,this._zooming=!1,delete this._targetZoom,delete this._lastExpectedZoom,this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout)}}class Rl{constructor(t,n){this._clickZoom=t,this._tapZoom=n}enable(){this._clickZoom.enable(),this._tapZoom.enable()}disable(){this._clickZoom.disable(),this._tapZoom.disable()}isEnabled(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()}isActive(){return this._clickZoom.isActive()||this._tapZoom.isActive()}}class du{constructor(t){this._tr=new Rr(t),this.reset()}reset(){this._active=!1}dblclick(t,n){return t.preventDefault(),{cameraAnimation:s=>{s.easeTo({duration:300,zoom:h.cw(this._tr.zoom+(t.shiftKey?-1:1),s.getZoomSnap()),around:this._tr.unproject(n)},{originalEvent:t})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class gh{constructor(){this._tap=new ea({numTouches:1,numTaps:1}),this._zoomRate=1,this.reset()}setZoomRate(t){this._zoomRate=t??1}reset(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,delete this._tapPoint,this._tap.reset()}touchstart(t,n,s){if(!this._swipePoint)if(this._tapTime){let c=n[0],f=t.timeStamp-this._tapTime<500,y=this._tapPoint.dist(c)<30;f&&y?s.length>0&&(this._swipePoint=c,this._swipeTouch=s[0].identifier):this.reset()}else this._tap.touchstart(t,n,s)}touchmove(t,n,s){if(this._tapTime){if(this._swipePoint){if(s[0].identifier!==this._swipeTouch)return;let c=n[0],f=c.y-this._swipePoint.y;return this._swipePoint=c,t.preventDefault(),this._active=!0,{zoomDelta:f/128*this._zoomRate}}}else this._tap.touchmove(t,n,s)}touchend(t,n,s){if(this._tapTime)this._swipePoint&&s.length===0&&this.reset();else{let c=this._tap.touchend(t,n,s);c&&(this._tapTime=t.timeStamp,this._tapPoint=c)}}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class yr{constructor(t,n,s){this._el=t,this._mousePan=n,this._touchPan=s}enable(t){this._inertiaOptions=t||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add(\"maplibregl-touch-drag-pan\")}disable(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove(\"maplibregl-touch-drag-pan\")}isEnabled(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()}isActive(){return this._mousePan.isActive()||this._touchPan.isActive()}}class ra{constructor(t,n,s,c){this._pitchWithRotate=t.pitchWithRotate,this._rollEnabled=t.rollEnabled,this._mouseRotate=n,this._mousePitch=s,this._mouseRoll=c}enable(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable(),this._rollEnabled&&this._mouseRoll.enable()}disable(){this._mouseRotate.disable(),this._mousePitch.disable(),this._mouseRoll.disable()}isEnabled(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())&&(!this._rollEnabled||this._mouseRoll.isEnabled())}isActive(){return this._mouseRotate.isActive()||this._mousePitch.isActive()||this._mouseRoll.isActive()}}class Le{constructor(t,n,s,c){this._el=t,this._touchZoom=n,this._touchRotate=s,this._tapDragZoom=c,this._rotationDisabled=!1,this._enabled=!0}enable(t){this._touchZoom.enable(t),this._rotationDisabled||this._touchRotate.enable(t),this._tapDragZoom.enable(),this._el.classList.add(\"maplibregl-touch-zoom-rotate\")}disable(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove(\"maplibregl-touch-zoom-rotate\")}isEnabled(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()}isActive(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()}setZoomRate(t){this._touchZoom.setZoomRate(t),this._tapDragZoom.setZoomRate(t)}setZoomThreshold(t){this._touchZoom.setZoomThreshold(t)}disableRotation(){this._rotationDisabled=!0,this._touchRotate.disable()}enableRotation(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()}}class Ue{constructor(t,n){this._bypassKey=navigator.userAgent.includes(\"Mac\")?\"metaKey\":\"ctrlKey\",this._map=t,this._options=n,this._enabled=!1}isActive(){return!1}reset(){}_setupUI(){if(this._container)return;let t=this._map.getCanvasContainer();t.classList.add(\"maplibregl-cooperative-gestures\"),this._container=le.create(\"div\",\"maplibregl-cooperative-gesture-screen\",t);let n=this._map._getUIString(\"CooperativeGesturesHandler.WindowsHelpText\");this._bypassKey===\"metaKey\"&&(n=this._map._getUIString(\"CooperativeGesturesHandler.MacHelpText\"));let s=this._map._getUIString(\"CooperativeGesturesHandler.MobileHelpText\"),c=document.createElement(\"div\");c.className=\"maplibregl-desktop-message\",c.textContent=n,this._container.appendChild(c);let f=document.createElement(\"div\");f.className=\"maplibregl-mobile-message\",f.textContent=s,this._container.appendChild(f),this._container.setAttribute(\"aria-hidden\",\"true\")}_destroyUI(){this._container&&(this._container.remove(),this._map.getCanvasContainer().classList.remove(\"maplibregl-cooperative-gestures\")),delete this._container}enable(){this._setupUI(),this._enabled=!0}disable(){this._enabled=!1,this._destroyUI()}isEnabled(){return this._enabled}isBypassed(t){return t[this._bypassKey]}notifyGestureBlocked(t,n){this._enabled&&(this._map.fire(new h.n(\"cooperativegestureprevented\",{gestureType:t,originalEvent:n})),this._container.classList.add(\"maplibregl-show\"),setTimeout((()=>{this._container.classList.remove(\"maplibregl-show\")}),100))}}let en=d=>d.zoom||d.drag||d.roll||d.pitch||d.rotate;class pu extends h.n{}function po(d){var t;return((t=d.panDelta)===null||t===void 0?void 0:t.mag())||d.zoomDelta||d.bearingDelta||d.pitchDelta||d.rollDelta}class Ii{get _ownerDocument(){var t;return((t=this._el)===null||t===void 0?void 0:t.ownerDocument)||document}get _ownerWindow(){var t,n;return((n=(t=this._el)===null||t===void 0?void 0:t.ownerDocument)===null||n===void 0?void 0:n.defaultView)||window}constructor(t,n){this.handleWindowEvent=c=>{this.handleEvent(c,`${c.type}Window`)},this.handleEvent=(c,f)=>{if(c.type===\"blur\")return void this.stop(!0);this._updatingCamera=!0;let y=c.type===\"renderFrame\"?void 0:c,x={needsRenderFrame:!1},w={},S={};for(let{handlerName:I,handler:D,allowed:B}of this._handlers){if(!D.isEnabled())continue;let V;if(this._blockedByActive(S,B,I))D.reset();else if(D[f||c.type]){if(h.cz(c,f||c.type)){let q=le.mousePos(this._map.getCanvas(),c);V=D[f||c.type](c,q)}else if(h.cA(c,f||c.type)){let q=this._getMapTouches(c.touches),N=le.touchPos(this._map.getCanvas(),q);V=D[f||c.type](c,N,q)}else h.cB(f||c.type)||(V=D[f||c.type](c));this.mergeHandlerResult(x,w,V,I,y),V?.needsRenderFrame&&this._triggerRenderFrame()}(V||D.isActive())&&(S[I]=D)}let M={};for(let I in this._previousActiveHandlers)S[I]||(M[I]=y);this._previousActiveHandlers=S,(Object.keys(M).length||po(x))&&(this._changes.push([x,w,M]),this._triggerRenderFrame()),(Object.keys(S).length||po(x))&&this._map._stop(!0),this._updatingCamera=!1;let{cameraAnimation:E}=x;E&&(this._inertia.clear(),this._fireEvents({},{},!0),this._changes=[],E(this._map))},this._map=t,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new ph(t),this._bearingSnap=n.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(n);let s=this._el;this._listeners=[[s,\"touchstart\",{passive:!0}],[s,\"touchmove\",{passive:!1}],[s,\"touchend\",void 0],[s,\"touchcancel\",void 0],[s,\"mousedown\",void 0],[s,\"mousemove\",void 0],[s,\"mouseup\",void 0],[this._ownerDocument,\"mousemove\",{capture:!0}],[this._ownerDocument,\"mouseup\",void 0],[s,\"mouseover\",void 0],[s,\"mouseout\",void 0],[s,\"dblclick\",void 0],[s,\"click\",void 0],[s,\"keydown\",{capture:!1}],[s,\"keyup\",void 0],[s,\"wheel\",{passive:!1}],[s,\"contextmenu\",void 0],[this._ownerWindow,\"blur\",void 0]];for(let[c,f,y]of this._listeners)c.addEventListener(f,c===this._ownerDocument?this.handleWindowEvent:this.handleEvent,y)}destroy(){for(let[t,n,s]of this._listeners)t.removeEventListener(n,t===this._ownerDocument?this.handleWindowEvent:this.handleEvent,s)}_addDefaultHandlers(t){let n=this._map,s=n.getCanvasContainer();this._add(\"mapEvent\",new fh(n,t));let c=n.boxZoom=new Sr(n,t);this._add(\"boxZoom\",c),t.interactive&&t.boxZoom&&c.enable();let f=n.cooperativeGestures=new Ue(n,t.cooperativeGestures);this._add(\"cooperativeGestures\",f),t.cooperativeGestures&&f.enable();let y=new au(n),x=new du(n);n.doubleClickZoom=new Rl(x,y),this._add(\"tapZoom\",y),this._add(\"clickZoom\",x),t.interactive&&t.doubleClickZoom&&n.doubleClickZoom.enable();let w=new gh;this._add(\"tapDragZoom\",w);let S=n.touchPitch=new Fr(n);this._add(\"touchPitch\",S),t.interactive&&t.touchPitch&&n.touchPitch.enable(t.touchPitch);let M=()=>n.project(n.getCenter()),E=(function({enable:$,clickTolerance:U,aroundCenter:H=!0,minPixelCenterThreshold:Z=100,rotateDegreesPerPixelMoved:te=.8},se){let ce=new zn({checkCorrectEvent:_e=>_e.button===0&&_e.ctrlKey||_e.button===2&&!_e.ctrlKey});return new Lr({clickTolerance:U,move:(_e,ge)=>{let Re=se();if(H&&Math.abs(Re.y-_e.y)>Z)return{bearingDelta:h.cx(new h.P(_e.x,ge.y),ge,Re)};let Ce=(ge.x-_e.x)*te;return H&&ge.yte.button===0&&te.ctrlKey||te.button===2});return new Lr({clickTolerance:U,move:(te,se)=>({pitchDelta:(se.y-te.y)*H}),moveStateManager:Z,enable:$,assignEvents:Ja})})(t),D=(function({enable:$,clickTolerance:U,rollDegreesPerPixelMoved:H=.3},Z){let te=new zn({checkCorrectEvent:se=>se.button===2&&se.ctrlKey});return new Lr({clickTolerance:U,move:(se,ce)=>{let _e=Z(),ge=(ce.x-se.x)*H;return ce.y<_e.y&&(ge=-ge),{rollDelta:ge}},moveStateManager:te,enable:$,assignEvents:Ja})})(t,M);n.dragRotate=new ra(t,E,I,D),this._add(\"mouseRotate\",E,[\"mousePitch\"]),this._add(\"mousePitch\",I,[\"mouseRotate\",\"mouseRoll\"]),this._add(\"mouseRoll\",D,[\"mousePitch\"]),t.interactive&&t.dragRotate&&n.dragRotate.enable();let B=(function({enable:$,clickTolerance:U}){let H=new zn({checkCorrectEvent:Z=>Z.button===0&&!Z.ctrlKey});return new Lr({clickTolerance:U,move:(Z,te)=>({around:te,panDelta:te.sub(Z)}),activateOnStart:!0,moveStateManager:H,enable:$,assignEvents:Ja})})(t),V=new lu(t,n);n.dragPan=new yr(s,B,V),this._add(\"mousePan\",B),this._add(\"touchPan\",V,[\"touchZoom\",\"touchRotate\"]),t.interactive&&t.dragPan&&n.dragPan.enable(t.dragPan);let q=new uu,N=new cu;n.touchZoomRotate=new Le(s,N,q,w),this._add(\"touchRotate\",q,[\"touchPan\",\"touchZoom\"]),this._add(\"touchZoom\",N,[\"touchPan\",\"touchRotate\"]),t.interactive&&t.touchZoomRotate&&n.touchZoomRotate.enable(t.touchZoomRotate),this._add(\"blockableMapEvent\",new nu(n));let G=n.scrollZoom=new kl(n,(()=>this._triggerRenderFrame()));this._add(\"scrollZoom\",G,[\"mousePan\"]),t.interactive&&t.scrollZoom&&n.scrollZoom.enable(t.scrollZoom);let X=n.keyboard=new hu(n);this._add(\"keyboard\",X),t.interactive&&t.keyboard&&n.keyboard.enable()}_add(t,n,s){this._handlers.push({handlerName:t,handler:n,allowed:s}),this._handlersById[t]=n}stop(t){if(!this._updatingCamera){for(let{handler:n}of this._handlers)n.reset();this._inertia.clear(),this._fireEvents({},{},t),this._changes=[]}}isActive(){for(let{handler:t}of this._handlers)if(t.isActive())return!0;return!1}isZooming(){return!!this._eventsInProgress.zoom||this._map.scrollZoom.isZooming()}isRotating(){return!!this._eventsInProgress.rotate}isMoving(){return!!en(this._eventsInProgress)||this.isZooming()}_blockedByActive(t,n,s){for(let c in t)if(c!==s&&!n?.includes(c))return!0;return!1}_getMapTouches(t){let n=[];for(let s of t)this._el.contains(s.target)&&n.push(s);return n}mergeHandlerResult(t,n,s,c,f){if(!s)return;h.e(t,s);let y={handlerName:c,originalEvent:s.originalEvent||f};s.zoomDelta!==void 0&&(n.zoom=y),s.panDelta!==void 0&&(n.drag=y),s.rollDelta!==void 0&&(n.roll=y),s.pitchDelta!==void 0&&(n.pitch=y),s.bearingDelta!==void 0&&(n.rotate=y)}_applyChanges(){let t={},n={},s={};for(let[c,f,y]of this._changes)c.panDelta&&(t.panDelta=(t.panDelta||new h.P(0,0))._add(c.panDelta)),c.zoomDelta&&(t.zoomDelta=(t.zoomDelta||0)+c.zoomDelta),c.bearingDelta&&(t.bearingDelta=(t.bearingDelta||0)+c.bearingDelta),c.pitchDelta&&(t.pitchDelta=(t.pitchDelta||0)+c.pitchDelta),c.rollDelta&&(t.rollDelta=(t.rollDelta||0)+c.rollDelta),c.around!==void 0&&(t.around=c.around),c.pinchAround!==void 0&&(t.pinchAround=c.pinchAround),c.noInertia&&(t.noInertia=c.noInertia),h.e(n,f),h.e(s,y);this._updateMapTransform(t,n,s),this._changes=[]}_updateMapTransform(t,n,s){let c=this._map,f=c._getTransformForUpdate(),y=c.terrain;if(!(po(t)||y&&this._terrainMovement))return void this._fireEvents(n,s,!0);c._stop(!0);let{panDelta:x,zoomDelta:w,bearingDelta:S,pitchDelta:M,rollDelta:E,around:I,pinchAround:D}=t;D!==void 0&&(I=D),I||(I=c.transform.centerPoint),y&&!f.isPointOnMapSurface(I)&&(I=f.centerPoint);let B={panDelta:x,zoomDelta:w,rollDelta:E,pitchDelta:M,bearingDelta:S,around:I};this._map.cameraHelper.useGlobeControls&&!f.isPointOnMapSurface(I)&&(I=f.centerPoint);let V=I.distSqr(f.centerPoint)<.01?f.center:f.screenPointToLocation(x?I.sub(x):I);this._handleMapControls({terrain:y,tr:f,deltasForHelper:B,preZoomAroundLoc:V,combinedEventsInProgress:n,panDelta:x}),c._applyUpdatedTransform(f),this._map._update(),t.noInertia||this._inertia.record(t),this._fireEvents(n,s,!0)}_handleMapControls({terrain:t,tr:n,deltasForHelper:s,preZoomAroundLoc:c,combinedEventsInProgress:f,panDelta:y}){let x=this._map.cameraHelper;if(x.handleMapControlsRollPitchBearingZoom(s,n),t)return x.useGlobeControls?(this._terrainMovement||!f.drag&&!f.zoom||(this._terrainMovement=!0,this._map._elevationFreeze=!0),void x.handleMapControlsPan(s,n,c)):this._terrainMovement||!f.drag&&!f.zoom?void(f.drag&&this._terrainMovement&&y?n.setCenter(n.screenPointToLocation(n.centerPoint.sub(y))):x.handleMapControlsPan(s,n,c)):(this._terrainMovement=!0,this._map._elevationFreeze=!0,void x.handleMapControlsPan(s,n,c));x.handleMapControlsPan(s,n,c)}_fireEvents(t,n,s){let c=en(this._eventsInProgress),f=en(t),y={};for(let E in t){let{originalEvent:I}=t[E];this._eventsInProgress[E]||(y[`${E}start`]=I),this._eventsInProgress[E]=t[E]}!c&&f&&this._fireEvent(\"movestart\",f.originalEvent);for(let E in y)this._fireEvent(E,y[E]);f&&this._fireEvent(\"move\",f.originalEvent);for(let E in t){let{originalEvent:I}=t[E];this._fireEvent(E,I)}let x={},w;for(let E in this._eventsInProgress){let{handlerName:I,originalEvent:D}=this._eventsInProgress[E];this._handlersById[I].isActive()||(delete this._eventsInProgress[E],w=n[I]||D,x[`${E}end`]=w)}for(let E in x)this._fireEvent(E,x[E]);let S=en(this._eventsInProgress),M=(c||f)&&!S;if(M&&this._terrainMovement){this._map._elevationFreeze=!1,this._terrainMovement=!1;let E=this._map._getTransformForUpdate();this._map.getCenterClampedToGround()&&E.recalculateZoomAndCenter(this._map.terrain),this._map._applyUpdatedTransform(E)}if(s&&M){this._updatingCamera=!0;let E=this._inertia._onMoveEnd(this._map.dragPan._inertiaOptions),I=D=>D!==0&&-this._bearingSnap{delete this._frameId,this.handleEvent(new pu(\"renderFrame\",{timeStamp:t})),this._applyChanges()}))}_triggerRenderFrame(){this._frameId===void 0&&(this._frameId=this._requestFrame())}}class fu extends h.E{constructor(t,n,s){super(),this._renderFrameCallback=()=>{let c=Math.min((Fe()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(c)),c<1&&this._easeFrameId?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},this._moving=!1,this._zooming=!1,this.transform=t,this._bearingSnap=s.bearingSnap,this._zoomSnap=s.zoomSnap,this.cameraHelper=n,this.on(\"moveend\",(()=>{delete this._requestedCameraState}))}migrateProjection(t,n){t.apply(this.transform,!0),this.transform=t,this.cameraHelper=n}getCenter(){return new h.W(this.transform.center.lng,this.transform.center.lat)}setCenter(t,n){return this.jumpTo({center:t},n)}getCenterElevation(){return this.transform.elevation}setCenterElevation(t,n){return this.jumpTo({elevation:t},n),this}getCenterClampedToGround(){return this._centerClampedToGround}setCenterClampedToGround(t){this._centerClampedToGround=t}panBy(t,n,s){return t=h.P.convert(t).mult(-1),this.panTo(this.transform.center,h.e({offset:t},n),s)}panTo(t,n,s){return this.easeTo(h.e({center:t},n),s)}getZoom(){return this.transform.zoom}setZoom(t,n){return this.jumpTo({zoom:t},n),this}zoomTo(t,n,s){return this.easeTo(h.e({zoom:t},n),s)}zoomIn(t,n){return this.zoomTo(h.cw(this.getZoom()+1,this._zoomSnap),t,n),this}zoomOut(t,n){return this.zoomTo(h.cw(this.getZoom()-1,this._zoomSnap),t,n),this}getVerticalFieldOfView(){return this.transform.fov}setVerticalFieldOfView(t,n){return t!=this.transform.fov&&(this.transform.setFov(t),this.fire(new h.n(\"movestart\",n)).fire(new h.n(\"move\",n)).fire(new h.n(\"moveend\",n))),this}getBearing(){return this.transform.bearing}setZoomSnap(t){return this._zoomSnap=t,this}getZoomSnap(){return this._zoomSnap}setBearing(t,n){return this.jumpTo({bearing:t},n),this}getPadding(){return this.transform.padding}setPadding(t,n){return this.jumpTo({padding:t},n),this}rotateTo(t,n,s){return this.easeTo(h.e({bearing:t},n),s)}resetNorth(t,n){return this.rotateTo(0,h.e({duration:1e3},t),n),this}resetNorthPitch(t,n){return this.easeTo(h.e({bearing:0,pitch:0,roll:0,duration:1e3},t),n),this}snapToNorth(t,n){return Math.abs(this.getBearing()){V.easeFunc(q),this.terrain&&!t.freezeElevation&&this._updateElevation(q),this._applyUpdatedTransform(s),this._fireMoveEvents(n)}),(q=>{this.terrain&&t.freezeElevation&&this._finalizeElevation(),this._afterEase(n,q)}),t),this}_prepareEase(t,n,s={}){this._moving=!0,n||s.moving||this.fire(new h.n(\"movestart\",t)),this._zooming&&!s.zooming&&this.fire(new h.n(\"zoomstart\",t)),this._rotating&&!s.rotating&&this.fire(new h.n(\"rotatestart\",t)),this._pitching&&!s.pitching&&this.fire(new h.n(\"pitchstart\",t)),this._rolling&&!s.rolling&&this.fire(new h.n(\"rollstart\",t))}_prepareElevation(t){this._elevationCenter=t,this._elevationStart=this.transform.elevation,this._elevationTarget=this.terrain.getElevationForLngLatZoom(t,this.transform.tileZoom),this._elevationFreeze=!0}_updateElevation(t){this._elevationStart!==void 0&&this._elevationCenter!==void 0||this._prepareElevation(this.transform.center),this.transform.setMinElevationForCurrentTile(this.terrain.getMinTileElevationForLngLatZoom(this._elevationCenter,this.transform.tileZoom));let n=this.terrain.getElevationForLngLatZoom(this._elevationCenter,this.transform.tileZoom);if(t<1&&n!==this._elevationTarget){let s=this._elevationTarget-this._elevationStart;this._elevationStart+=t*(s-(n-(s*t+this._elevationStart))/(1-t)),this._elevationTarget=n}this.transform.setElevation(h.H.number(this._elevationStart,this._elevationTarget,t))}_finalizeElevation(){this._elevationFreeze=!1,this.getCenterClampedToGround()&&this.transform.recalculateZoomAndCenter(this.terrain)}_getTransformForUpdate(){return this.transformCameraUpdate||this.terrain?(this._requestedCameraState||(this._requestedCameraState=this.transform.clone()),this._requestedCameraState):this.transform}_elevateCameraIfInsideTerrain(t){if(!this.terrain&&t.elevation>=0&&t.pitch<=90)return{};let n=t.getCameraLngLat(),s=t.getCameraAltitude(),c=this.terrain?this.terrain.getElevationForLngLatZoom(n,t.zoom):0;if(sthis._elevateCameraIfInsideTerrain(c))),this.transformCameraUpdate&&n.push((c=>this.transformCameraUpdate(c))),!n.length)return;let s=t.clone();for(let c of n){let f=s.clone(),{center:y,zoom:x,roll:w,pitch:S,bearing:M,elevation:E}=c(f);y&&f.setCenter(y),E!==void 0&&f.setElevation(E),x!==void 0&&f.setZoom(x),w!==void 0&&f.setRoll(w),S!==void 0&&f.setPitch(S),M!==void 0&&f.setBearing(M),s.apply(f,!1)}this.transform.apply(s,!1)}_fireMoveEvents(t){this.fire(new h.n(\"move\",t)),this._zooming&&this.fire(new h.n(\"zoom\",t)),this._rotating&&this.fire(new h.n(\"rotate\",t)),this._pitching&&this.fire(new h.n(\"pitch\",t)),this._rolling&&this.fire(new h.n(\"roll\",t))}_afterEase(t,n){if(this._easeId&&n&&this._easeId===n)return;delete this._easeId;let s=this._zooming,c=this._rotating,f=this._pitching,y=this._rolling;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._rolling=!1,this._padding=!1,s&&this.fire(new h.n(\"zoomend\",t)),c&&this.fire(new h.n(\"rotateend\",t)),f&&this.fire(new h.n(\"pitchend\",t)),y&&this.fire(new h.n(\"rollend\",t)),this.fire(new h.n(\"moveend\",t))}flyTo(t,n){if(!t.essential&&Ge.prefersReducedMotion){let ge=h.V(t,[\"center\",\"zoom\",\"bearing\",\"pitch\",\"roll\",\"elevation\",\"padding\"]);return this.jumpTo(ge,n)}this.stop(),\"zoom\"in(t=h.e({offset:[0,0],speed:1.2,curve:1.42,easing:h.cy},t))&&this._zoomSnap&&(t.zoom=h.cw(t.zoom,this._zoomSnap));let s=this._getTransformForUpdate(),c=s.bearing,f=s.pitch,y=s.roll,x=s.padding,w=\"bearing\"in t?this._normalizeBearing(t.bearing,c):c,S=\"pitch\"in t?+t.pitch:f,M=\"roll\"in t?this._normalizeBearing(t.roll,y):y,E=\"padding\"in t?t.padding:s.padding,I=h.P.convert(t.offset),D=s.centerPoint.add(I),B=s.screenPointToLocation(D),V=this.cameraHelper.handleFlyTo(s,{bearing:w,pitch:S,roll:M,padding:E,locationAtOffset:B,offsetAsPoint:I,center:t.center,minZoom:t.minZoom,zoom:t.zoom}),q=t.curve,N=Math.max(s.width,s.height),G=N/V.scaleOfZoom,X=V.pixelPathLength;typeof V.scaleOfMinZoom==\"number\"&&(q=Math.sqrt(N/V.scaleOfMinZoom/X*2));let $=q*q;function U(ge){let Re=(G*G-N*N+(ge?-1:1)*$*$*X*X)/(2*(ge?G:N)*$*X);return Math.log(Math.sqrt(Re*Re+1)-Re)}function H(ge){return(Math.exp(ge)-Math.exp(-ge))/2}function Z(ge){return(Math.exp(ge)+Math.exp(-ge))/2}let te=U(!1),se=function(ge){return Z(te)/Z(te+q*ge)},ce=function(ge){return N*((Z(te)*(H(Re=te+q*ge)/Z(Re))-H(te))/$)/X;var Re},_e=(U(!0)-te)/q;if(Math.abs(X)<2e-6||!isFinite(_e)){if(Math.abs(N-G)<1e-6)return this.easeTo(t,n);let ge=G0,se=Re=>Math.exp(ge*q*Re)}return t.duration=\"duration\"in t?+t.duration:1e3*_e/(\"screenSpeed\"in t?+t.screenSpeed/q:+t.speed),t.maxDuration&&t.duration>t.maxDuration&&(t.duration=0),this._zooming=!0,this._rotating=c!==w,this._pitching=S!==f,this._rolling=M!==y,this._padding=!s.isPaddingEqual(E),this._prepareEase(n,!1),this.terrain&&this._prepareElevation(V.targetCenter),this._ease((ge=>{let Re=ge*_e,Ce=1/se(Re),me=ce(Re);this._rotating&&s.setBearing(h.H.number(c,w,ge)),this._pitching&&s.setPitch(h.H.number(f,S,ge)),this._rolling&&s.setRoll(h.H.number(y,M,ge)),this._padding&&(s.interpolatePadding(x,E,ge),D=s.centerPoint.add(I)),V.easeFunc(ge,Ce,me,D),this.terrain&&!t.freezeElevation&&this._updateElevation(ge),this._applyUpdatedTransform(s),this._fireMoveEvents(n)}),(()=>{this.terrain&&t.freezeElevation&&this._finalizeElevation(),this._afterEase(n)}),t),this}isEasing(){return!!this._easeFrameId}stop(){return this._stop()}_stop(t,n){var s;if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){let c=this._onEaseEnd;delete this._onEaseEnd,c.call(this,n)}return t||(s=this.handlers)===null||s===void 0||s.stop(!1),this}_ease(t,n,s){s.animate===!1||s.duration===0?(t(1),n()):(this._easeStart=Fe(),this._easeOptions=s,this._onEaseFrame=t,this._onEaseEnd=n,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))}_normalizeBearing(t,n){t=h.X(t,-180,180);let s=Math.abs(t-n);return Math.abs(t-360-n)MapLibre'};class nr{constructor(t=ts){this._toggleAttribution=()=>{this._container.classList.contains(\"maplibregl-compact\")&&(this._container.classList.contains(\"maplibregl-compact-show\")?(this._container.setAttribute(\"open\",\"\"),this._container.classList.remove(\"maplibregl-compact-show\")):(this._container.classList.add(\"maplibregl-compact-show\"),this._container.removeAttribute(\"open\")))},this._updateData=n=>{!n||n.sourceDataType!==\"metadata\"&&n.sourceDataType!==\"visibility\"&&n.dataType!==\"style\"&&n.type!==\"terrain\"||this._updateAttributions()},this._updateCompact=()=>{this._map.getCanvasContainer().offsetWidth<=640||this._compact?this._compact===!1?this._container.setAttribute(\"open\",\"\"):this._container.classList.contains(\"maplibregl-compact\")||this._container.classList.contains(\"maplibregl-attrib-empty\")||(this._container.setAttribute(\"open\",\"\"),this._container.classList.add(\"maplibregl-compact\",\"maplibregl-compact-show\")):(this._container.setAttribute(\"open\",\"\"),this._container.classList.contains(\"maplibregl-compact\")&&this._container.classList.remove(\"maplibregl-compact\",\"maplibregl-compact-show\"))},this._updateCompactMinimize=()=>{this._container.classList.contains(\"maplibregl-compact\")&&this._container.classList.contains(\"maplibregl-compact-show\")&&this._container.classList.remove(\"maplibregl-compact-show\")},this.options=t}getDefaultPosition(){return\"bottom-right\"}onAdd(t){return this._map=t,this._compact=this.options.compact,this._container=le.create(\"details\",\"maplibregl-ctrl maplibregl-ctrl-attrib\"),this._compactButton=le.create(\"summary\",\"maplibregl-ctrl-attrib-button\",this._container),this._compactButton.addEventListener(\"click\",this._toggleAttribution),this._setElementTitle(this._compactButton,\"ToggleAttribution\"),this._innerContainer=le.create(\"div\",\"maplibregl-ctrl-attrib-inner\",this._container),this._updateAttributions(),this._updateCompact(),this._map.on(\"styledata\",this._updateData),this._map.on(\"sourcedata\",this._updateData),this._map.on(\"terrain\",this._updateData),this._map.on(\"resize\",this._updateCompact),this._map.on(\"drag\",this._updateCompactMinimize),this._container}onRemove(){this._container.remove(),this._map.off(\"styledata\",this._updateData),this._map.off(\"sourcedata\",this._updateData),this._map.off(\"terrain\",this._updateData),this._map.off(\"resize\",this._updateCompact),this._map.off(\"drag\",this._updateCompactMinimize),this._map=void 0,this._compact=void 0,this._attribHTML=void 0}_setElementTitle(t,n){let s=this._map._getUIString(`AttributionControl.${n}`);t.title=s,t.setAttribute(\"aria-label\",s)}_updateAttributions(){if(!this._map.style)return;let t=[];if(this.options.customAttribution&&(Array.isArray(this.options.customAttribution)?t=t.concat(this.options.customAttribution.map((c=>typeof c!=\"string\"?\"\":c))):typeof this.options.customAttribution==\"string\"&&t.push(this.options.customAttribution)),this._map.style.stylesheet){let c=this._map.style.stylesheet;this.styleOwner=c.owner,this.styleId=c.id}let n=this._map.style.tileManagers;for(let c in n){let f=n[c];if(f.used||f.usedForTerrain){let y=f.getSource();y.attribution&&!t.includes(y.attribution)&&t.push(y.attribution)}}t=t.filter((c=>String(c).trim())),t.sort(((c,f)=>c.length-f.length)),t=t.filter(((c,f)=>{for(let y=f+1;y{let n=this._container.children;if(n.length){let s=n[0];this._map.getCanvasContainer().offsetWidth<=640||this._compact?this._compact!==!1&&s.classList.add(\"maplibregl-compact\"):s.classList.remove(\"maplibregl-compact\")}},this.options=t}getDefaultPosition(){return\"bottom-left\"}onAdd(t){var n;this._map=t,this._compact=(n=this.options)===null||n===void 0?void 0:n.compact,this._container=le.create(\"div\",\"maplibregl-ctrl\");let s=le.create(\"a\",\"maplibregl-ctrl-logo\");return s.target=\"_blank\",s.rel=\"noopener nofollow\",s.href=\"https://maplibre.org/\",s.setAttribute(\"aria-label\",this._map._getUIString(\"LogoControl.Title\")),s.setAttribute(\"rel\",\"noopener nofollow\"),this._container.appendChild(s),this._container.style.display=\"block\",this._map.on(\"resize\",this._updateCompact),this._updateCompact(),this._container}onRemove(){this._container.remove(),this._map.off(\"resize\",this._updateCompact),this._map=void 0,this._compact=void 0}}class _h{constructor(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1}add(t){let n=++this._id;return this._queue.push({callback:t,id:n,cancelled:!1}),n}remove(t){let n=this._currentlyRunning,s=n?this._queue.concat(n):this._queue;for(let c of s)if(c.id===t)return void(c.cancelled=!0)}run(t=0){if(this._currentlyRunning)throw new Error(\"Attempting to run(), but is already running.\");let n=this._currentlyRunning=this._queue;this._queue=[];for(let s of n)if(!s.cancelled&&(s.callback(t),this._cleared))break;this._cleared=!1,this._currentlyRunning=!1}clear(){this._currentlyRunning&&(this._cleared=!0),this._queue=[]}}var yh=h.aS([{name:\"a_pos3d\",type:\"Int16\",components:3}]);class vh extends h.E{constructor(t){super(),this._lastTilesetChange=Fe(),this.tileManager=t,this._tiles={},this._renderableTilesKeys=[],this._sourceTileCache={},this.minzoom=0,this.maxzoom=22,this.deltaZoom=1,this.tileSize=t._source.tileSize*2**this.deltaZoom,t.usedForTerrain=!0,t.tileSize=this.tileSize}destruct(){this.tileManager.usedForTerrain=!1,this.tileManager.tileSize=null}getSource(){return this.tileManager._source}update(t,n){this.tileManager.update(t,n),this._renderableTilesKeys=[];let s={};for(let c of pn(t,{tileSize:this.tileSize,minzoom:this.minzoom,maxzoom:this.maxzoom,reparseOverscaled:!1,terrain:n,calculateTileZoom:this.tileManager._source.calculateTileZoom}))s[c.key]=!0,this._renderableTilesKeys.push(c.key),this._tiles[c.key]||(c.terrainRttPosMatrix32f=new Float64Array(16),h.c7(c.terrainRttPosMatrix32f,0,h.a6,h.a6,0,0,1),this._tiles[c.key]=new Nn(c,this.tileSize),this._lastTilesetChange=Fe());for(let c in this._tiles)s[c]||delete this._tiles[c]}freeRtt(t){for(let n in this._tiles){let s=this._tiles[n];(!t||s.tileID.equals(t)||s.tileID.isChildOf(t)||t.isChildOf(s.tileID))&&(s.rtt=[])}}getRenderableTiles(){return this._renderableTilesKeys.map((t=>this.getTileByID(t)))}getTileByID(t){return this._tiles[t]}getTerrainCoords(t,n){return n?this._getTerrainCoordsForTileRanges(t,n):this._getTerrainCoordsForRegularTile(t)}_getTerrainCoordsForRegularTile(t){let n={};for(let s of this._renderableTilesKeys){let c=this._tiles[s].tileID,f=t.clone(),y=h.bj();if(c.canonical.equals(t.canonical))h.c7(y,0,h.a6,h.a6,0,0,1);else if(c.canonical.isChildOf(t.canonical)){let x=c.canonical.z-t.canonical.z,w=c.canonical.x-(c.canonical.x>>x<>x<>x;h.c7(y,0,M,M,0,0,1),h.Q(y,y,[-w*M,-S*M,0])}else{if(!t.canonical.isChildOf(c.canonical))continue;{let x=t.canonical.z-c.canonical.z,w=t.canonical.x-(t.canonical.x>>x<>x<>x;h.c7(y,0,h.a6,h.a6,0,0,1),h.Q(y,y,[w*M,S*M,0]),h.S(y,y,[1/2**x,1/2**x,0])}}f.terrainRttPosMatrix32f=new Float32Array(y),n[s]=f}return n}_getTerrainCoordsForTileRanges(t,n){let s={};for(let c of this._renderableTilesKeys){let f=this._tiles[c].tileID;if(!this._isWithinTileRanges(f,n))continue;let y=t.clone(),x=h.bj();if(f.canonical.z===t.canonical.z){let w=t.canonical.x-f.canonical.x+t.wrap*(1<t.canonical.z){let w=f.canonical.z-t.canonical.z,S=f.canonical.x-(f.canonical.x>>w<>w<>w),I=t.canonical.y-(f.canonical.y>>w),D=h.a6>>w;h.c7(x,0,D,D,0,0,1),h.Q(x,x,[-S*D+E*h.a6,-M*D+I*h.a6,0])}else{let w=t.canonical.z-f.canonical.z,S=t.canonical.x-(t.canonical.x>>w<>w<>w)-f.canonical.x,I=(t.canonical.y>>w)-f.canonical.y,D=h.a6<f.maxzoom&&(y=f.maxzoom),y=f.minzoom&&!x?.dem;)x=this.findTileInCaches(t.scaledTo(y--).key);return x}findTileInCaches(t){let n=this.tileManager.getTileByID(t);return n||(n=this.tileManager._outOfViewCache.getByKey(t),n)}anyTilesAfterTime(t=Date.now()){return this._lastTilesetChange>=t}_isWithinTileRanges(t,n){let s=n[t.canonical.z];return!!s&&(t.wrap>s.minWrap||t.wrap=s.minTileXWrapped&&t.canonical.x<=s.maxTileXWrapped&&t.canonical.y>=s.minTileY&&t.canonical.y<=s.maxTileY)}}class na{constructor(t,n,s){this._meshCache={},this.painter=t,this.tileManager=new vh(n),this.options=s,this.exaggeration=typeof s.exaggeration==\"number\"?s.exaggeration:1,this.qualityFactor=2,this.meshSize=128,this._demMatrixCache={},this.coordsIndex=[],this._coordsTextureSize=1024}destroy(){this._fbo&&(this._fbo.destroy(),this._fbo=null),this._fboCoordsTexture&&(this._fboCoordsTexture.destroy(),this._fboCoordsTexture=null),this._fboDepthTexture&&(this._fboDepthTexture.destroy(),this._fboDepthTexture=null),this._emptyDemTexture&&(this._emptyDemTexture.destroy(),this._emptyDemTexture=null),this._emptyDepthTexture&&(this._emptyDepthTexture.destroy(),this._emptyDepthTexture=null),this._coordsTexture&&(this._coordsTexture.destroy(),this._coordsTexture=null);for(let t in this._meshCache)this._meshCache[t].destroy();this._meshCache={},this.tileManager.destruct()}getDEMElevation(t,n,s,c=h.a6){var f;let y=t.normalizeCoordinates(n,s,c);if(!y)return 0;let x=this.getTerrainData(y.tileID),w=(f=x.tile)===null||f===void 0?void 0:f.dem;if(!w)return 0;let S=h.cC([],[y.x/c*h.a6,y.y/c*h.a6],x.u_terrain_matrix),M=[S[0]*w.dim,S[1]*w.dim],E=Math.floor(M[0]),I=Math.floor(M[1]),D=M[0]-E,B=M[1]-I;return w.get(E,I)*(1-D)*(1-B)+w.get(E+1,I)*D*(1-B)+w.get(E,I+1)*(1-D)*B+w.get(E+1,I+1)*D*B}getElevationForLngLatZoom(t,n){if(!h.cD(n,t.wrap()))return 0;let{tileID:s,mercatorX:c,mercatorY:f}=this._getOverscaledTileIDFromLngLatZoom(t,n);return this.getElevation(s,c%h.a6,f%h.a6,h.a6)}getElevationForLngLat(t,n){let s=pn(n,{maxzoom:this.tileManager.maxzoom,minzoom:this.tileManager.minzoom,tileSize:512,terrain:this}),c=0;for(let f of s)f.canonical.z>c&&(c=Math.min(f.canonical.z,this.tileManager.maxzoom));return this.getElevationForLngLatZoom(t,c)}getElevation(t,n,s,c=h.a6){return this.getDEMElevation(t,n,s,c)*this.exaggeration}getTerrainData(t){var n,s;if(!this._emptyDemTexture){let y=this.painter.context,x=new h.R({width:1,height:1},new Uint8Array(4));this._emptyDepthTexture=new h.T(y,x,y.gl.RGBA,{premultiply:!1}),this._emptyDemUnpack=[0,0,0,0],this._emptyDemTexture=new h.T(y,new h.R({width:1,height:1}),y.gl.RGBA,{premultiply:!1}),this._emptyDemTexture.bind(y.gl.NEAREST,y.gl.CLAMP_TO_EDGE),this._emptyDemMatrix=h.ap([])}let c=this.tileManager.getSourceTile(t,!0);if(c?.dem&&(!c.demTexture||c.needsTerrainPrepare)){let y=this.painter.context;c.demTexture=this.painter.getTileTexture(c.dem.stride),c.demTexture?c.demTexture.update(c.dem.getPixels(),{premultiply:!1}):c.demTexture=new h.T(y,c.dem.getPixels(),y.gl.RGBA,{premultiply:!1}),c.demTexture.bind(y.gl.NEAREST,y.gl.CLAMP_TO_EDGE),c.needsTerrainPrepare=!1}let f=c&&c.toString()+c.tileID.key+t.key;if(f&&!this._demMatrixCache[f]){let y=this.tileManager.getSource().maxzoom,x=t.canonical.z-c.tileID.canonical.z;t.overscaledZ>t.canonical.z&&(t.canonical.z>=y?x=t.canonical.z-y:h.w(\"cannot calculate elevation if elevation maxzoom > source.maxzoom\"));let w=t.canonical.x-(t.canonical.x>>x<>x<>8<<4|f>>8,n[y+3]=0;let s=new h.R({width:this._coordsTextureSize,height:this._coordsTextureSize},new Uint8Array(n.buffer)),c=new h.T(t,s,t.gl.RGBA,{premultiply:!1});return c.bind(t.gl.NEAREST,t.gl.CLAMP_TO_EDGE),this._coordsTexture=c,c}pointCoordinate(t){this.painter.maybeDrawDepth(!0),this.painter.maybeDrawCoords();let n=new Uint8Array(4),s=this.painter.context,c=s.gl,f=Math.round(t.x*this.painter.pixelRatio/devicePixelRatio),y=Math.round(t.y*this.painter.pixelRatio/devicePixelRatio),x=Math.round(this.painter.height/devicePixelRatio);s.bindFramebuffer.set(this.getFramebuffer(\"coords\").framebuffer),c.readPixels(f,x-y-1,1,1,c.RGBA,c.UNSIGNED_BYTE,n),s.bindFramebuffer.set(null);let w=n[0]+(n[2]>>4<<8),S=n[1]+((15&n[2])<<8),M=this.coordsIndex[255-n[3]],E=M&&this.tileManager.getTileByID(M);if(!E)return null;let I=this._coordsTextureSize,D=(1<0,c=s&&t.canonical.y===0,f=s&&t.canonical.y===(1<t.id!==n)),this._recentlyUsed.push(t.id)}stampObject(t){t.stamp=++this._stamp}getOrCreateFreeObject(){for(let n of this._recentlyUsed)if(!this._objects[n].inUse)return this._objects[n];if(this._objects.length>=this._size)throw new Error(\"No free RenderPool available, call freeAllObjects() required!\");let t=this._createObject(this._objects.length);return this._objects.push(t),t}freeObject(t){t.inUse=!1}freeAllObjects(){for(let t of this._objects)this.freeObject(t)}isFull(){return!(this._objects.length!t.inUse))===!1}}let It={background:!0,fill:!0,line:!0,raster:!0,hillshade:!0,\"color-relief\":!0};class mu{constructor(t,n){this.painter=t,this.terrain=n,this.pool=new Lt(t.context,30,n.tileManager.tileSize*n.qualityFactor)}destruct(){this.pool.destruct()}getTexture(t){return this.pool.getObjectForId(t.rtt[this._stacks.length-1].id).texture}prepareForRender(t,n){var s,c,f;this._stacks=[],this._prevType=null,this._rttTiles=[],this._renderableTiles=this.terrain.tileManager.getRenderableTiles(),this._renderableLayerIds=t._order.filter((y=>!t._layers[y].isHidden(n))),this._coordsAscending={};for(let y in t.tileManagers){this._coordsAscending[y]={};let x=t.tileManagers[y].getVisibleCoordinates(),w=t.tileManagers[y].getSource(),S=w instanceof Pi?w.terrainTileRanges:null;for(let M of x){let E=this.terrain.tileManager.getTerrainCoords(M,S);for(let I in E)(f=this._coordsAscending[y])[I]||(f[I]=[]),this._coordsAscending[y][I].push(E[I])}}this._rttFingerprints={};for(let y of t._order){let x=t._layers[y],w=x.source;if(It[x.type]&&!this._rttFingerprints[w]){this._rttFingerprints[w]={};let S=(c=(s=t.tileManagers[w])===null||s===void 0?void 0:s.getState().revision)!==null&&c!==void 0?c:0;for(let M in this._coordsAscending[w])this._rttFingerprints[w][M]=`${this._coordsAscending[w][M].map((E=>E.key)).sort().join()}#${S}`}}for(let y of this._renderableTiles)for(let x in this._rttFingerprints){let w=this._rttFingerprints[x][y.tileID.key];w&&w!==y.rttFingerprint[x]&&(y.rtt=[])}}renderLayer(t,n){if(t.isHidden(this.painter.transform.zoom))return!1;let s=Object.assign(Object.assign({},n),{isRenderingToTexture:!0}),c=t.type,f=this.painter,y=this._renderableLayerIds[this._renderableLayerIds.length-1]===t.id;if(It[c]&&(this._prevType&&It[this._prevType]||this._stacks.push([]),this._prevType=c,this._stacks[this._stacks.length-1].push(t.id),!y))return!0;if(It[this._prevType]||It[c]&&y){this._prevType=c;let x=this._stacks.length-1,w=this._stacks[x]||[];for(let S of this._renderableTiles){if(this.pool.isFull()&&(Tl(this.painter,this.terrain,this._rttTiles,s),this._rttTiles=[],this.pool.freeAllObjects()),this._rttTiles.push(S),S.rtt[x]){let E=this.pool.getObjectForId(S.rtt[x].id);if(E.stamp===S.rtt[x].stamp){this.pool.useObject(E);continue}}let M=this.pool.getOrCreateFreeObject();this.pool.useObject(M),this.pool.stampObject(M),S.rtt[x]={id:M.id,stamp:M.stamp},f.context.bindFramebuffer.set(M.fbo.framebuffer),f.context.clear({color:h.bo.transparent,stencil:0}),f.currentStencilSource=void 0;for(let E of w){let I=f.style._layers[E],D=I.source?this._coordsAscending[I.source][S.tileID.key]:[S.tileID];f.context.viewport.set([0,0,M.fbo.width,M.fbo.height]),f._renderTileClippingMasks(I,D,!0),f.renderLayer(f,f.style.tileManagers[I.source],I,D,s),I.source&&(S.rttFingerprint[I.source]=this._rttFingerprints[I.source][S.tileID.key])}}return Tl(this.painter,this.terrain,this._rttTiles,s),this._rttTiles=[],this.pool.freeAllObjects(),It[c]}return!1}}let oa={\"AttributionControl.ToggleAttribution\":\"Toggle attribution\",\"AttributionControl.MapFeedback\":\"Map feedback\",\"FullscreenControl.Enter\":\"Enter fullscreen\",\"FullscreenControl.Exit\":\"Exit fullscreen\",\"GeolocateControl.FindMyLocation\":\"Find my location\",\"GeolocateControl.LocationNotAvailable\":\"Location not available\",\"LogoControl.Title\":\"MapLibre logo\",\"Map.Title\":\"Map\",\"Marker.Title\":\"Map marker\",\"NavigationControl.ResetBearing\":\"Drag to rotate map, click to reset north\",\"NavigationControl.ZoomIn\":\"Zoom in\",\"NavigationControl.ZoomOut\":\"Zoom out\",\"Popup.Close\":\"Close popup\",\"ScaleControl.Feet\":\"ft\",\"ScaleControl.Meters\":\"m\",\"ScaleControl.Kilometers\":\"km\",\"ScaleControl.Miles\":\"mi\",\"ScaleControl.NauticalMiles\":\"nm\",\"GlobeControl.Enable\":\"Enable globe\",\"GlobeControl.Disable\":\"Disable globe\",\"TerrainControl.Enable\":\"Enable terrain\",\"TerrainControl.Disable\":\"Disable terrain\",\"CooperativeGesturesHandler.WindowsHelpText\":\"Use Ctrl + scroll to zoom the map\",\"CooperativeGesturesHandler.MacHelpText\":\"Use \\u2318 + scroll to zoom the map\",\"CooperativeGesturesHandler.MobileHelpText\":\"Use two fingers to move the map\"},is=pe,rs={hash:!1,interactive:!0,bearingSnap:7,zoomSnap:0,attributionControl:ts,maplibreLogo:!1,refreshExpiredTiles:!0,canvasContextAttributes:{antialias:!1,preserveDrawingBuffer:!1,powerPreference:\"high-performance\",failIfMajorPerformanceCaveat:!1,desynchronized:!1,contextType:void 0},scrollZoom:!0,minZoom:-2,maxZoom:22,minPitch:0,maxPitch:60,boxZoom:!0,dragRotate:!0,dragPan:!0,keyboard:!0,doubleClickZoom:!0,touchZoomRotate:!0,touchPitch:!0,cooperativeGestures:!1,trackResize:!0,center:[0,0],elevation:0,zoom:0,bearing:0,pitch:0,roll:0,renderWorldCopies:!0,maxTileCacheSize:null,maxTileCacheZoomLevels:h.c.MAX_TILE_CACHE_ZOOM_LEVELS,transformRequest:null,transformCameraUpdate:null,transformConstrain:null,fadeDuration:300,crossSourceCollisions:!0,clickTolerance:3,localIdeographFontFamily:\"sans-serif\",pitchWithRotate:!0,rollEnabled:!1,reduceMotion:void 0,validateStyle:!0,maxCanvasSize:[4096,4096],cancelPendingTileRequestsWhileZooming:!0,centerClampedToGround:!0,experimentalZoomLevelsToOverscale:void 0,anisotropicFilterPitch:20},ns=class extends fu{get _ownerWindow(){var d,t;return((t=(d=this._container)===null||d===void 0?void 0:d.ownerDocument)===null||t===void 0?void 0:t.defaultView)||window}constructor(d){var t,n,s;let c=Object.assign(Object.assign(Object.assign({},rs),d),{canvasContextAttributes:Object.assign(Object.assign({},rs.canvasContextAttributes),d.canvasContextAttributes)});if(c.minZoom!=null&&c.maxZoom!=null&&c.minZoom>c.maxZoom)throw new Error(\"maxZoom must be greater than or equal to minZoom\");if(c.minPitch!=null&&c.maxPitch!=null&&c.minPitch>c.maxPitch)throw new Error(\"maxPitch must be greater than or equal to minPitch\");if(c.minPitch!=null&&c.minPitch<0)throw new Error(\"minPitch must be greater than or equal to 0\");if(c.maxPitch!=null&&c.maxPitch>180)throw new Error(\"maxPitch must be less than or equal to 180\");let f=new yn,y=new vn;c.minZoom!==void 0&&f.setMinZoom(c.minZoom),c.maxZoom!==void 0&&f.setMaxZoom(c.maxZoom),c.minPitch!==void 0&&f.setMinPitch(c.minPitch),c.maxPitch!==void 0&&f.setMaxPitch(c.maxPitch),c.renderWorldCopies!==void 0&&f.setRenderWorldCopies(c.renderWorldCopies),c.transformConstrain!==null&&f.setConstrainOverride(c.transformConstrain),super(f,y,{bearingSnap:c.bearingSnap,zoomSnap:c.zoomSnap}),this._idleTriggered=!1,this._crossFadingFactor=1,this._renderTaskQueue=new _h,this._controls=[],this._mapId=h.ad(),this._lostContextStyle={style:null,images:null},this._contextLost=w=>{if(w.preventDefault(),this._frameRequest&&(this._frameRequest.abort(),this._frameRequest=null),this.painter.destroy(),this._lostContextStyle=this._getStyleAndImages(),this.style){for(let S of Object.values(this.style._layers))if(S.type===\"custom\"&&console.warn(`Custom layer with id '${S.id}' cannot be restored after WebGL context loss. You will need to re-add it manually after context restoration.`),S._listeners)for(let[M]of Object.entries(S._listeners))console.warn(`Custom layer with id '${S.id}' had event listeners for event '${M}' which cannot be restored after WebGL context loss. You will need to re-add them manually after context restoration.`);this.style.destroy(),this.style=null,this.fire(new h.n(\"webglcontextlost\",{originalEvent:w}))}else this.fire(new h.n(\"webglcontextlost\",{originalEvent:w}))},this._contextRestored=w=>{this._lostContextStyle.style&&this.setStyle(this._lostContextStyle.style,{diff:!1}),this._lostContextStyle.images&&this.style&&(this.style.imageManager.images=this._lostContextStyle.images),this._lostContextStyle={style:null,images:null},this._setupPainter(),this.resize(),this._update(),this._resizeInternal(),this.fire(new h.n(\"webglcontextrestored\",{originalEvent:w}))},this._onMapScroll=w=>{if(w.target===this._container)return this._container.scrollTop=0,this._container.scrollLeft=0,!1},this._onWindowOnline=()=>{this._update()},this._interactive=c.interactive,this._maxTileCacheSize=c.maxTileCacheSize,this._maxTileCacheZoomLevels=c.maxTileCacheZoomLevels,this._canvasContextAttributes=Object.assign({},c.canvasContextAttributes),this._trackResize=c.trackResize===!0,this._bearingSnap=c.bearingSnap,this._zoomSnap=c.zoomSnap,this._centerClampedToGround=c.centerClampedToGround,this._refreshExpiredTiles=c.refreshExpiredTiles===!0,this._fadeDuration=c.fadeDuration,this._crossSourceCollisions=c.crossSourceCollisions===!0,this._collectResourceTiming=c.collectResourceTiming===!0,this._locale=Object.assign(Object.assign({},oa),c.locale),this._clickTolerance=c.clickTolerance,this._overridePixelRatio=c.pixelRatio,this._maxCanvasSize=c.maxCanvasSize,this._zoomLevelsToOverscale=c.experimentalZoomLevelsToOverscale,this.transformCameraUpdate=c.transformCameraUpdate,this.transformConstrain=c.transformConstrain,this.cancelPendingTileRequestsWhileZooming=c.cancelPendingTileRequestsWhileZooming===!0,this.setAnisotropicFilterPitch(c.anisotropicFilterPitch),c.reduceMotion!==void 0&&(Ge.prefersReducedMotion=c.reduceMotion),this._imageQueueHandle=st.addThrottleControl((()=>this.isMoving())),this._requestManager=new ut(c.transformRequest),this._container=this._resolveContainer(c.container),c.maxBounds&&this.setMaxBounds(c.maxBounds),this._setupContainer(),this._setupPainter(),this.on(\"move\",(()=>this._update(!1))),this.on(\"moveend\",(()=>this._update(!1))),this.on(\"zoom\",(()=>this._update(!0))),this.on(\"terrain\",(()=>{this.painter.terrainFacilitator.depthDirty=!0,this._update(!0)})),this.once(\"idle\",(()=>this._idleTriggered=!0)),typeof window<\"u\"&&(this._ownerWindow.addEventListener(\"online\",this._onWindowOnline,!1),this._setupResizeObserver()),this.handlers=new Ii(this,c),this._hash=c.hash?new Ko(typeof c.hash==\"string\"&&c.hash||void 0).addTo(this):void 0,!((t=this._hash)===null||t===void 0)&&t._onHashChange()||(this.jumpTo({center:c.center,elevation:c.elevation,zoom:c.zoom,bearing:c.bearing,pitch:c.pitch,roll:c.roll}),c.bounds&&(this.resize(),this.fitBounds(c.bounds,h.e({},c.fitBoundsOptions,{duration:0}))));let x=typeof c.style==\"string\"||((s=(n=c.style)===null||n===void 0?void 0:n.projection)===null||s===void 0?void 0:s.type)!==\"globe\";this.resize(null,x),this._localIdeographFontFamily=c.localIdeographFontFamily,this._validateStyle=c.validateStyle,c.style&&this.setStyle(c.style,{localIdeographFontFamily:c.localIdeographFontFamily}),c.attributionControl&&this.addControl(new nr(typeof c.attributionControl==\"boolean\"?void 0:c.attributionControl)),c.maplibreLogo&&this.addControl(new Ll,c.logoPosition),this.on(\"style.load\",(()=>{if(x||this._resizeTransform(),this.transform.unmodified){let w=h.V(this.style.stylesheet,[\"center\",\"zoom\",\"bearing\",\"pitch\",\"roll\"]);this.jumpTo(w)}})),this.on(\"data\",(w=>{this._update(w.dataType===\"style\"),this.fire(new h.n(`${w.dataType}data`,w))})),this.on(\"dataloading\",(w=>{this.fire(new h.n(`${w.dataType}dataloading`,w))})),this.on(\"dataabort\",(w=>{this.fire(new h.n(\"sourcedataabort\",w))}))}_getMapId(){return this._mapId}setGlobalStateProperty(d,t){return this.style.setGlobalStateProperty(d,t),this._update(!0)}getGlobalState(){return this.style.getGlobalState()}addControl(d,t){if(t===void 0&&(t=d.getDefaultPosition?d.getDefaultPosition():\"top-right\"),!d?.onAdd)return this.fire(new h.l(new Error(\"Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.\")));let n=d.onAdd(this);this._controls.push(d);let s=this._controlPositions[t];return t.includes(\"bottom\")?s.insertBefore(n,s.firstChild):s.appendChild(n),this}removeControl(d){if(!d?.onRemove)return this.fire(new h.l(new Error(\"Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.\")));let t=this._controls.indexOf(d);return t>-1&&this._controls.splice(t,1),d.onRemove(this),this}hasControl(d){return this._controls.includes(d)}coveringTiles(d){return pn(this.transform,d)}calculateCameraOptionsFromTo(d,t,n,s){return s==null&&this.terrain&&(s=this.terrain.getElevationForLngLat(n,this.transform)),super.calculateCameraOptionsFromTo(d,t,n,s)}resize(d,t=!0){if(this._lostContextStyle.style!==null)return this;this._resizeInternal(t);let n=!this._moving;return n&&(this.stop(),this.fire(new h.n(\"movestart\",d)).fire(new h.n(\"move\",d))),this.fire(new h.n(\"resize\",d)),n&&this.fire(new h.n(\"moveend\",d)),this}_resizeInternal(d=!0){let[t,n]=this._containerDimensions(),s=this._getClampedPixelRatio(t,n);if(this._resizeCanvas(t,n,s),this.painter.resize(t,n,s),this.painter.overLimit()){let c=this.painter.context.gl;this._maxCanvasSize=[c.drawingBufferWidth,c.drawingBufferHeight];let f=this._getClampedPixelRatio(t,n);this._resizeCanvas(t,n,f),this.painter.resize(t,n,f)}this._resizeTransform(d)}_resizeTransform(d=!0){var t;let[n,s]=this._containerDimensions();this.transform.resize(n,s,d),(t=this._requestedCameraState)===null||t===void 0||t.resize(n,s,d)}_getClampedPixelRatio(d,t){let{0:n,1:s}=this._maxCanvasSize,c=this.getPixelRatio(),f=d*c,y=t*c;return Math.min(f>n?n/f:1,y>s?s/y:1)*c}getPixelRatio(){var d;return(d=this._overridePixelRatio)!==null&&d!==void 0?d:devicePixelRatio}setPixelRatio(d){this._overridePixelRatio=d,this.resize()}getBounds(){return this.transform.getBounds()}getMaxBounds(){return this.transform.getMaxBounds()}setMaxBounds(d){return this.transform.setMaxBounds(De.convert(d)),this._update()}setMinZoom(d){if((d=d??-2)>=-2&&d<=this.transform.maxZoom){let t=this.transform.zoom,n=this._getTransformForUpdate();return n.setMinZoom(d),this._applyUpdatedTransform(n),this._update(),t!==this.transform.zoom&&this.fire(new h.n(\"zoomstart\")).fire(new h.n(\"zoom\")).fire(new h.n(\"zoomend\")).fire(new h.n(\"movestart\")).fire(new h.n(\"move\")).fire(new h.n(\"moveend\")),this}throw new Error(\"minZoom must be between -2 and the current maxZoom, inclusive\")}getMinZoom(){return this.transform.minZoom}setMaxZoom(d){if((d=d??22)>=this.transform.minZoom){let t=this.transform.zoom,n=this._getTransformForUpdate();return n.setMaxZoom(d),this._applyUpdatedTransform(n),this._update(),t!==this.transform.zoom&&this.fire(new h.n(\"zoomstart\")).fire(new h.n(\"zoom\")).fire(new h.n(\"zoomend\")).fire(new h.n(\"movestart\")).fire(new h.n(\"move\")).fire(new h.n(\"moveend\")),this}throw new Error(\"maxZoom must be greater than the current minZoom\")}getMaxZoom(){return this.transform.maxZoom}setMinPitch(d){if((d=d??0)<0)throw new Error(\"minPitch must be greater than or equal to 0\");if(d>=0&&d<=this.transform.maxPitch){let t=this.transform.pitch,n=this._getTransformForUpdate();return n.setMinPitch(d),this._applyUpdatedTransform(n),this._update(),t!==this.transform.pitch&&this.fire(new h.n(\"pitchstart\")).fire(new h.n(\"pitch\")).fire(new h.n(\"pitchend\")).fire(new h.n(\"movestart\")).fire(new h.n(\"move\")).fire(new h.n(\"moveend\")),this}throw new Error(\"minPitch must be between 0 and the current maxPitch, inclusive\")}getMinPitch(){return this.transform.minPitch}setMaxPitch(d){if((d=d??60)>180)throw new Error(\"maxPitch must be less than or equal to 180\");if(d>=this.transform.minPitch){let t=this.transform.pitch,n=this._getTransformForUpdate();return n.setMaxPitch(d),this._applyUpdatedTransform(n),this._update(),t!==this.transform.pitch&&this.fire(new h.n(\"pitchstart\")).fire(new h.n(\"pitch\")).fire(new h.n(\"pitchend\")).fire(new h.n(\"movestart\")).fire(new h.n(\"move\")).fire(new h.n(\"moveend\")),this}throw new Error(\"maxPitch must be greater than the current minPitch\")}getMaxPitch(){return this.transform.maxPitch}getAnisotropicFilterPitch(){return this._anisotropicFilterPitch}setAnisotropicFilterPitch(d){if((d=d??20)>180)throw new Error(\"anisotropicFilterPitch must be less than or equal to 180\");if(d<0)throw new Error(\"anisotropicFilterPitch must be greater than or equal to 0\");return this._anisotropicFilterPitch=d,this._update()}getRenderWorldCopies(){return this.transform.renderWorldCopies}setRenderWorldCopies(d){return this.transform.setRenderWorldCopies(d),this._update()}setTransformConstrain(d){return this.transform.setConstrainOverride(d),this._update()}project(d){return this.transform.locationToScreenPoint(h.W.convert(d),this.style&&this.terrain)}unproject(d){return this.transform.screenPointToLocation(h.P.convert(d),this.terrain)}isMoving(){var d;return this._moving||((d=this.handlers)===null||d===void 0?void 0:d.isMoving())}isZooming(){var d;return this._zooming||((d=this.handlers)===null||d===void 0?void 0:d.isZooming())}isRotating(){var d;return this._rotating||((d=this.handlers)===null||d===void 0?void 0:d.isRotating())}_createDelegatedListener(d,t,n){if(d===\"mouseenter\"||d===\"mouseover\"){let s=!1;return{layers:t,listener:n,delegates:{mousemove:f=>{let y=t.filter((w=>this.getLayer(w))),x=y.length!==0?this.queryRenderedFeatures(f.point,{layers:y}):[];x.length?s||(s=!0,n.call(this,new Hi(d,this,f.originalEvent,{features:x}))):s=!1},mouseout:()=>{s=!1}}}}if(d===\"mouseleave\"||d===\"mouseout\"){let s=!1;return{layers:t,listener:n,delegates:{mousemove:y=>{let x=t.filter((w=>this.getLayer(w)));(x.length!==0?this.queryRenderedFeatures(y.point,{layers:x}):[]).length?s=!0:s&&(s=!1,n.call(this,new Hi(d,this,y.originalEvent)))},mouseout:y=>{s&&(s=!1,n.call(this,new Hi(d,this,y.originalEvent)))}}}}{let s=c=>{let f=t.filter((x=>this.getLayer(x))),y=f.length!==0?this.queryRenderedFeatures(c.point,{layers:f}):[];y.length&&(c.features=y,n.call(this,c),delete c.features)};return{layers:t,listener:n,delegates:{[d]:s}}}}_saveDelegatedListener(d,t){var n;this._delegatedListeners||(this._delegatedListeners={}),(n=this._delegatedListeners)[d]||(n[d]=[]),this._delegatedListeners[d].push(t)}_removeDelegatedListener(d,t,n){var s;if(!(!((s=this._delegatedListeners)===null||s===void 0)&&s[d]))return;let c=this._delegatedListeners[d];for(let f=0;ft.includes(x)))){for(let x in y.delegates)this.off(x,y.delegates[x]);return void c.splice(f,1)}}}on(d,t,n){if(n===void 0)return super.on(d,t);let s=typeof t==\"string\"?[t]:t,c=this._createDelegatedListener(d,s,n);this._saveDelegatedListener(d,c);for(let f in c.delegates)this.on(f,c.delegates[f]);return{unsubscribe:()=>{this._removeDelegatedListener(d,s,n)}}}once(d,t,n){if(n===void 0)return super.once(d,t);let s=typeof t==\"string\"?[t]:t,c=this._createDelegatedListener(d,s,n);for(let f in c.delegates){let y=c.delegates[f];c.delegates[f]=(...x)=>{this._removeDelegatedListener(d,s,n),y(...x)}}this._saveDelegatedListener(d,c);for(let f in c.delegates)this.once(f,c.delegates[f]);return this}off(d,t,n){return n===void 0?super.off(d,t):(this._removeDelegatedListener(d,typeof t==\"string\"?[t]:t,n),this)}queryRenderedFeatures(d,t){if(!this.style)return[];let n,s=d instanceof h.P||Array.isArray(d),c=s?d:[[0,0],[this.transform.width,this.transform.height]];if(t||(t=(s?{}:d)||{}),c instanceof h.P||typeof c[0]==\"number\")n=[h.P.convert(c)];else{let f=h.P.convert(c[0]),y=h.P.convert(c[1]);n=[f,new h.P(y.x,f.y),y,new h.P(f.x,y.y),f]}return this.style.queryRenderedFeatures(n,t,this.transform)}querySourceFeatures(d,t){return this.style.querySourceFeatures(d,t)}setStyle(d,t){return(t=h.e({},{localIdeographFontFamily:this._localIdeographFontFamily,validate:this._validateStyle},t)).diff!==!1&&t.localIdeographFontFamily===this._localIdeographFontFamily&&this.style&&d?(this._diffStyle(d,t),this):(this._localIdeographFontFamily=t.localIdeographFontFamily,this._updateStyle(d,t))}setTransformRequest(d){return this._requestManager.setTransformRequest(d),this}_getUIString(d){let t=this._locale[d];if(t==null)throw new Error(`Missing UI string '${d}'`);return t}_updateStyle(d,t){var n,s,c;if((n=this._diffStyleRequest)===null||n===void 0||n.abort(),this._diffStyleRequest=null,t.transformStyle&&this.style&&!this.style._loaded)return void this.style.once(\"style.load\",(()=>this._updateStyle(d,t)));let f=this.style&&t.transformStyle?this.style.serialize():void 0;return this.style&&(this.style.setEventedParent(null),this.style._remove(!d)),d?(this.style=new Tn(this,t||{}),this.style.setEventedParent(this,{style:this.style}),typeof d==\"string\"?this.style.loadURL(d,t,f):this.style.loadJSON(d,t,f),this):(this._frameRequest&&(this._frameRequest.abort(),this._frameRequest=null),(c=(s=this.style)===null||s===void 0?void 0:s.projection)===null||c===void 0||c.destroy(),delete this.style,this)}_lazyInitEmptyStyle(){this.style||(this.style=new Tn(this,{}),this.style.setEventedParent(this,{style:this.style}),this.style.loadEmpty())}_diffStyle(d,t){return h._(this,void 0,void 0,(function*(){var n;if((n=this._diffStyleRequest)===null||n===void 0||n.abort(),typeof d==\"string\"){let s=d;this._diffStyleRequest=new AbortController;let c=this._diffStyleRequest;try{let f=yield this._requestManager.transformRequest(s,\"Style\");if(c.signal.aborted)return void(this._diffStyleRequest=null);let y=yield h.k(f,c);this._diffStyleRequest=null,this._updateDiff(y.data,t)}catch(f){this._diffStyleRequest=null,h.$(f)||this.fire(new h.l(h.d(f)))}}else typeof d==\"object\"&&(this._diffStyleRequest=null,this._updateDiff(d,t))}))}_updateDiff(d,t){try{this.style.setState(d,t)&&this._update(!0)}catch(n){h.w(`Unable to perform style diff: ${h.d(n).message}. Rebuilding the style from scratch.`),this._updateStyle(d,t)}}getStyle(){if(this.style)return this.style.serialize()}_getStyleAndImages(){return this.style?{style:this.style.serialize(),images:this.style.imageManager.cloneImages()}:{style:null,images:{}}}isStyleLoaded(){if(this.style)return this.style.loaded();h.w(\"There is no style added to the map.\")}addSource(d,t){return this._lazyInitEmptyStyle(),this.style.addSource(d,t),this._update(!0)}isSourceLoaded(d){var t;let n=(t=this.style)===null||t===void 0?void 0:t.tileManagers[d];if(n!==void 0)return n.loaded();this.fire(new h.l(new Error(`There is no tile manager with ID '${d}'`)))}setTerrain(d){if(this.style._checkLoaded(),this._terrainDataCallback&&this.style.off(\"data\",this._terrainDataCallback),d){let t=this.style.tileManagers[d.source];if(!t)throw new Error(`cannot load terrain, because there exists no source with ID: ${d.source}`);this.terrain===null&&t.reload();for(let n in this.style._layers){let s=this.style._layers[n];s.type===\"hillshade\"&&s.source===d.source&&h.w(\"You are using the same source for a hillshade layer and for 3D terrain. Please consider using two separate sources to improve rendering quality.\"),s.type===\"color-relief\"&&s.source===d.source&&h.w(\"You are using the same source for a color-relief layer and for 3D terrain. Please consider using two separate sources to improve rendering quality.\")}this.terrain=new na(this.painter,t,d),this.painter.renderToTexture=new mu(this.painter,this.terrain),this.transform.setMinElevationForCurrentTile(this.terrain.getMinTileElevationForLngLatZoom(this.transform.center,this.transform.tileZoom)),this.transform.setElevation(this.terrain.getElevationForLngLatZoom(this.transform.center,this.transform.tileZoom)),this._terrainDataCallback=n=>{var s;n.dataType===\"style\"?this.terrain.tileManager.freeRtt():n.dataType===\"source\"&&n.tile&&(n.sourceId!==d.source||this._elevationFreeze||(this.transform.setMinElevationForCurrentTile(this.terrain.getMinTileElevationForLngLatZoom(this.transform.center,this.transform.tileZoom)),this._centerClampedToGround&&this.transform.setElevation(this.terrain.getElevationForLngLatZoom(this.transform.center,this.transform.tileZoom))),((s=n.source)===null||s===void 0?void 0:s.type)===\"image\"?this.terrain.tileManager.freeRtt():this.terrain.tileManager.freeRtt(n.tile.tileID))},this.style.on(\"data\",this._terrainDataCallback)}else this.terrain&&this.terrain.destroy(),this.terrain=null,this.painter.renderToTexture&&this.painter.renderToTexture.destruct(),this.painter.renderToTexture=null,this.transform.setMinElevationForCurrentTile(0),this._centerClampedToGround&&this.transform.setElevation(0);return this.fire(new h.n(\"terrain\",{terrain:d})),this}getTerrain(){var d,t;return(t=(d=this.terrain)===null||d===void 0?void 0:d.options)!==null&&t!==void 0?t:null}areTilesLoaded(){var d;let t=(d=this.style)===null||d===void 0?void 0:d.tileManagers;for(let n of Object.values(t))if(!n.areTilesLoaded())return!1;return!0}removeSource(d){return this.style.removeSource(d),this._update(!0)}getSource(d){return this.style.getSource(d)}setSourceTileLodParams(d,t,n){if(n){let s=this.getSource(n);if(!s)throw new Error(`There is no source with ID \"${n}\", cannot set LOD parameters`);s.calculateTileZoom=Gs(Math.max(1,d),Math.max(1,t))}else for(let s in this.style.tileManagers)this.style.tileManagers[s].getSource().calculateTileZoom=Gs(Math.max(1,d),Math.max(1,t));return this._update(!0),this}refreshTiles(d,t){let n=this.style.tileManagers[d];if(!n)throw new Error(`There is no tile manager with ID \"${d}\", cannot refresh tile`);t===void 0?n.reload(!0):n.refreshTiles(t.map((s=>new h.aa(s.z,s.x,s.y))))}addImage(d,t,n={}){let{pixelRatio:s=1,sdf:c=!1,stretchX:f,stretchY:y,content:x,textFitWidth:w,textFitHeight:S}=n;if(this._lazyInitEmptyStyle(),!(t instanceof HTMLImageElement||h.b(t))){if(t.width===void 0||t.height===void 0)return this.fire(new h.l(new Error(\"Invalid arguments to map.addImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`\")));{let{width:M,height:E,data:I}=t,D=t;return this.style.addImage(d,{data:new h.R({width:M,height:E},new Uint8Array(I)),pixelRatio:s,stretchX:f,stretchY:y,content:x,textFitWidth:w,textFitHeight:S,sdf:c,version:0,userImage:D}),D.onAdd&&D.onAdd(this,d),this}}{let{width:M,height:E,data:I}=Ge.getImageData(t);this.style.addImage(d,{data:new h.R({width:M,height:E},I),pixelRatio:s,stretchX:f,stretchY:y,content:x,textFitWidth:w,textFitHeight:S,sdf:c,version:0})}}updateImage(d,t){let n=this.style.getImage(d);if(!n)return this.fire(new h.l(new Error(\"The map has no image with that id. If you are adding a new image use `map.addImage(...)` instead.\")));let s=t instanceof HTMLImageElement||h.b(t)?Ge.getImageData(t):t,{width:c,height:f,data:y}=s;if(c===void 0||f===void 0)return this.fire(new h.l(new Error(\"Invalid arguments to map.updateImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`\")));if(c!==n.data.width||f!==n.data.height)return this.fire(new h.l(new Error(\"The width and height of the updated image must be that same as the previous version of the image\")));let x=!(t instanceof HTMLImageElement||h.b(t));return n.data.replace(y,x),this.style.updateImage(d,n),this}getImage(d){return this.style.getImage(d)}hasImage(d){return d?!!this.style.getImage(d):(this.fire(new h.l(new Error(\"Missing required image id\"))),!1)}removeImage(d){this.style.removeImage(d)}loadImage(d){return h._(this,void 0,void 0,(function*(){return st.getImage(yield this._requestManager.transformRequest(d,\"Image\"),new AbortController)}))}listImages(){return this.style.listImages()}addLayer(d,t){return this._lazyInitEmptyStyle(),this.style.addLayer(d,t),this._update(!0)}moveLayer(d,t){return this.style.moveLayer(d,t),this._update(!0)}removeLayer(d){return this.style.removeLayer(d),this._update(!0)}getLayer(d){return this.style.getLayer(d)}getLayersOrder(){return this.style.getLayersOrder()}setLayerZoomRange(d,t,n){return this.style.setLayerZoomRange(d,t,n),this._update(!0)}setFilter(d,t,n={}){return this.style.setFilter(d,t,n),this._update(!0)}getFilter(d){return this.style.getFilter(d)}setPaintProperty(d,t,n,s={}){return this.style.setPaintProperty(d,t,n,s),this._update(!0)}getPaintProperty(d,t){return this.style.getPaintProperty(d,t)}setLayoutProperty(d,t,n,s={}){return this.style.setLayoutProperty(d,t,n,s),this._update(!0)}getLayoutProperty(d,t){return this.style.getLayoutProperty(d,t)}setGlyphs(d,t={}){return this._lazyInitEmptyStyle(),this.style.setGlyphs(d,t),this._update(!0)}getGlyphs(){return this.style.getGlyphsUrl()}addSprite(d,t,n={}){return this._lazyInitEmptyStyle(),this.style.addSprite(d,t,n,(s=>{s||this._update(!0)})),this}removeSprite(d){return this._lazyInitEmptyStyle(),this.style.removeSprite(d),this._update(!0)}getSprite(){return this.style.getSprite()}setSprite(d,t={}){return this._lazyInitEmptyStyle(),this.style.setSprite(d,t,(n=>{n||this._update(!0)})),this}setLight(d,t={}){return this._lazyInitEmptyStyle(),this.style.setLight(d,t),this._update(!0)}getLight(){return this.style.getLight()}setSky(d,t={}){return this._lazyInitEmptyStyle(),this.style.setSky(d,t),this._update(!0)}getSky(){return this.style.getSky()}setFeatureState(d,t){return this.style.setFeatureState(d,t),this._update()}removeFeatureState(d,t){return this.style.removeFeatureState(d,t),this._update()}getFeatureState(d){return this.style.getFeatureState(d)}getContainer(){return this._container}getCanvasContainer(){return this._canvasContainer}getCanvas(){return this._canvas}_containerDimensions(){let d=0,t=0;return this._container&&(d=this._container.clientWidth||400,t=this._container.clientHeight||300),[d,t]}_setupResizeObserver(){var d;let t=!1,n=Ml((c=>{this._trackResize&&!this._removed&&(this.resize(c),this.redraw())}),50),s=(d=this._ownerWindow.ResizeObserver)!==null&&d!==void 0?d:ResizeObserver;this._resizeObserver=new s((c=>{t?n(c):t=!0})),this._resizeObserver.observe(this._container)}_resolveContainer(d){if(typeof d==\"string\"){let t=document.getElementById(d);if(!t)throw new Error(`Container '${d}' not found.`);return t}if(d instanceof HTMLElement||d&&typeof d==\"object\"&&d.nodeType===1)return d;throw new Error(\"Invalid type: 'container' must be a String or HTMLElement.\")}_setupContainer(){let d=this._container;d.classList.add(\"maplibregl-map\");let t=this._canvasContainer=le.create(\"div\",\"maplibregl-canvas-container\",d);this._interactive&&t.classList.add(\"maplibregl-interactive\"),this._canvas=le.create(\"canvas\",\"maplibregl-canvas\",t),this._canvas.addEventListener(\"webglcontextlost\",this._contextLost,!1),this._canvas.addEventListener(\"webglcontextrestored\",this._contextRestored,!1),this._canvas.setAttribute(\"tabindex\",this._interactive?\"0\":\"-1\"),this._canvas.setAttribute(\"aria-label\",this._getUIString(\"Map.Title\")),this._canvas.setAttribute(\"role\",\"region\");let n=this._containerDimensions(),s=this._getClampedPixelRatio(n[0],n[1]);this._resizeCanvas(n[0],n[1],s);let c=this._controlContainer=le.create(\"div\",\"maplibregl-control-container\",d),f=this._controlPositions={};for(let y of[\"top-left\",\"top-right\",\"bottom-left\",\"bottom-right\"])f[y]=le.create(\"div\",`maplibregl-ctrl-${y} `,c);this._container.addEventListener(\"scroll\",this._onMapScroll,!1)}_resizeCanvas(d,t,n){this._canvas.width=Math.floor(n*d),this._canvas.height=Math.floor(n*t),this._canvas.style.width=`${d}px`,this._canvas.style.height=`${t}px`}_setupPainter(){let d=Object.assign(Object.assign({},this._canvasContextAttributes),{alpha:!0,depth:!0,stencil:!0,premultipliedAlpha:!0}),t=null;this._canvas.addEventListener(\"webglcontextcreationerror\",(s=>{t={requestedAttributes:d},s&&(t.statusMessage=s.statusMessage,t.type=s.type)}),{once:!0});let n=null;if(n=this._canvasContextAttributes.contextType?this._canvas.getContext(this._canvasContextAttributes.contextType,d):this._canvas.getContext(\"webgl2\",d)||this._canvas.getContext(\"webgl\",d),!n){let s=\"Failed to initialize WebGL\";throw t?(t.message=s,new Error(JSON.stringify(t))):new Error(s)}this.painter=new Yo(n,this.transform)}migrateProjection(d,t){super.migrateProjection(d,t),this.painter.transform=d,this.fire(new h.n(\"projectiontransition\",{newProjection:this.style.projection.name}))}loaded(){return!this._styleDirty&&!this._sourcesDirty&&!!this.style&&this.style.loaded()}_update(d){var t;return!((t=this.style)===null||t===void 0)&&t._loaded?(this._styleDirty||(this._styleDirty=d),this._sourcesDirty=!0,this.triggerRepaint(),this):this}_requestRenderFrame(d){return this._update(),this._renderTaskQueue.add(d)}_cancelRenderFrame(d){this._renderTaskQueue.remove(d)}_render(d){var t,n,s,c,f,y;let x=this._idleTriggered?this._fadeDuration:0,w=((t=this.style.projection)===null||t===void 0?void 0:t.transitionState)>0;if(this.painter.context.setDirty(),this.painter.setBaseState(),this._renderTaskQueue.run(d),this._removed)return;let S=!1;if(this.style&&this._styleDirty){this._styleDirty=!1;let I=this.transform.zoom,D=Fe();this.style.zoomHistory.update(I,D);let B=new h.J(I,{now:D,fadeDuration:x,zoomHistory:this.style.zoomHistory,transition:this.style.getTransition()}),V=B.crossFadingFactor();V===1&&V===this._crossFadingFactor||(S=!0,this._crossFadingFactor=V),this.style.update(B)}let M=((n=this.style.projection)===null||n===void 0?void 0:n.transitionState)>0!==w;(s=this.style.projection)===null||s===void 0||s.setErrorQueryLatitudeDegrees(this.transform.center.lat),this.transform.setTransitionState((c=this.style.projection)===null||c===void 0?void 0:c.transitionState,(f=this.style.projection)===null||f===void 0?void 0:f.latitudeErrorCorrectionRadians),this.style&&(this._sourcesDirty||M)&&(this._sourcesDirty=!1,this.style._updateSources(this.transform)),this.terrain?(this.terrain.tileManager.update(this.transform,this.terrain),this.transform.setMinElevationForCurrentTile(this.terrain.getMinTileElevationForLngLatZoom(this.transform.center,this.transform.tileZoom)),!this._elevationFreeze&&this._centerClampedToGround&&this.transform.setElevation(this.terrain.getElevationForLngLatZoom(this.transform.center,this.transform.tileZoom))):(this.transform.setMinElevationForCurrentTile(0),this._centerClampedToGround&&this.transform.setElevation(0)),this._placementDirty=(y=this.style)===null||y===void 0?void 0:y._updatePlacement(this.transform,this.showCollisionBoxes,x,this._crossSourceCollisions,M),this.painter.render(this.style,{showTileBoundaries:this.showTileBoundaries,showOverdrawInspector:this._showOverdrawInspector,rotating:this.isRotating(),zooming:this.isZooming(),moving:this.isMoving(),fadeDuration:x,showPadding:this.showPadding,anisotropicFilterPitch:this.getAnisotropicFilterPitch()}),this.fire(new h.n(\"render\")),this.loaded()&&!this._loaded&&(this._loaded=!0,this.fire(new h.n(\"load\"))),this.style&&(this.style.hasTransitions()||S)&&(this._styleDirty=!0),this.style&&!this._placementDirty&&this.style._releaseSymbolFadeTiles();let E=this._sourcesDirty||this._styleDirty||this._placementDirty;return E||this._repaint?this.triggerRepaint():!this.isMoving()&&this.loaded()&&this.fire(new h.n(\"idle\")),!this._loaded||this._fullyLoaded||E||(this._fullyLoaded=!0),this}redraw(){return this.style&&(this._frameRequest&&(this._frameRequest.abort(),this._frameRequest=null),this._render(0)),this}remove(){var d,t;this._hash&&this._hash.remove();for(let s of this._controls)s.onRemove(this);this._controls=[],this._frameRequest&&(this._frameRequest.abort(),this._frameRequest=null),this._renderTaskQueue.clear(),(d=this._diffStyleRequest)===null||d===void 0||d.abort(),this.painter.destroy(),this.handlers.destroy(),delete this.handlers,this.setStyle(null),typeof window<\"u\"&&this._ownerWindow.removeEventListener(\"online\",this._onWindowOnline,!1),st.removeThrottleControl(this._imageQueueHandle),(t=this._resizeObserver)===null||t===void 0||t.disconnect();let n=this.painter.context.gl.getExtension(\"WEBGL_lose_context\");n?.loseContext&&n.loseContext(),this._canvas.removeEventListener(\"webglcontextrestored\",this._contextRestored,!1),this._canvas.removeEventListener(\"webglcontextlost\",this._contextLost,!1),this._canvasContainer.remove(),this._controlContainer.remove(),this._container.removeEventListener(\"scroll\",this._onMapScroll,!1),this._container.classList.remove(\"maplibregl-map\"),this._removed=!0,this.fire(new h.n(\"remove\"))}triggerRepaint(){this.style&&!this._frameRequest&&(this._frameRequest=new AbortController,Ge.frame(this._frameRequest,(d=>{this._frameRequest=null;try{this._render(d)}catch(t){if(!h.$(t)&&!(function(n){return n.message===Wa})(t))throw t}}),(()=>{}),this._ownerWindow))}get showTileBoundaries(){return!!this._showTileBoundaries}set showTileBoundaries(d){this._showTileBoundaries!==d&&(this._showTileBoundaries=d,this._update())}get showPadding(){return!!this._showPadding}set showPadding(d){this._showPadding!==d&&(this._showPadding=d,this._update())}get showCollisionBoxes(){return!!this._showCollisionBoxes}set showCollisionBoxes(d){this._showCollisionBoxes!==d&&(this._showCollisionBoxes=d,d?this.style._generateCollisionBoxes():this._update())}get showOverdrawInspector(){return!!this._showOverdrawInspector}set showOverdrawInspector(d){this._showOverdrawInspector!==d&&(this._showOverdrawInspector=d,this._update())}get repaint(){return!!this._repaint}set repaint(d){this._repaint!==d&&(this._repaint=d,this.triggerRepaint())}get vertices(){return!!this._vertices}set vertices(d){this._vertices=d,this._update()}get version(){return is}getCameraTargetElevation(){return this.transform.elevation}getProjection(){return this.style.getProjection()}setProjection(d){return this._lazyInitEmptyStyle(),this.style.setProjection(d),this._update(!0)}},Fl={showCompass:!0,showZoom:!0,visualizePitch:!1,visualizeRoll:!0};class aa{constructor(t,n,s=!1){this.mousedown=f=>{this.startMove(f,le.mousePos(this.element,f)),window.addEventListener(\"mousemove\",this.mousemove),window.addEventListener(\"mouseup\",this.mouseup)},this.mousemove=f=>{this.move(f,le.mousePos(this.element,f))},this.mouseup=f=>{this._rotatePitchHandler.dragEnd(f),this.offTemp()},this.touchstart=f=>{f.targetTouches.length!==1?this.reset():(this._startPos=this._lastPos=le.touchPos(this.element,f.targetTouches)[0],this.startMove(f,this._startPos),window.addEventListener(\"touchmove\",this.touchmove,{passive:!1}),window.addEventListener(\"touchend\",this.touchend))},this.touchmove=f=>{f.targetTouches.length!==1?this.reset():(this._lastPos=le.touchPos(this.element,f.targetTouches)[0],this.move(f,this._lastPos))},this.touchend=f=>{f.targetTouches.length===0&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos){this._rotatePitchHandler.reset(),delete this._startPos,delete this._lastPos,this.offTemp()},this._clickTolerance=10,this.element=n;let c=new Cl;this._rotatePitchHandler=new Lr({clickTolerance:3,move:(f,y)=>{let x=n.getBoundingClientRect(),w=new h.P((x.bottom-x.top)/2,(x.right-x.left)/2);return{bearingDelta:h.cx(new h.P(f.x,y.y),y,w),pitchDelta:s?-.5*(y.y-f.y):void 0}},moveStateManager:c,enable:!0,assignEvents:()=>{}}),this.map=t,n.addEventListener(\"mousedown\",this.mousedown),n.addEventListener(\"touchstart\",this.touchstart,{passive:!1}),n.addEventListener(\"touchcancel\",this.reset)}startMove(t,n){this._rotatePitchHandler.dragStart(t,n),le.disableDrag()}move(t,n){let s=this.map,{bearingDelta:c,pitchDelta:f}=this._rotatePitchHandler.dragMove(t,n)||{};c&&s.setBearing(s.getBearing()+c),f&&s.setPitch(s.getPitch()+f)}off(){let t=this.element;t.removeEventListener(\"mousedown\",this.mousedown),t.removeEventListener(\"touchstart\",this.touchstart),window.removeEventListener(\"touchmove\",this.touchmove),window.removeEventListener(\"touchend\",this.touchend),t.removeEventListener(\"touchcancel\",this.reset),this.offTemp()}offTemp(){le.enableDrag(),window.removeEventListener(\"mousemove\",this.mousemove),window.removeEventListener(\"mouseup\",this.mouseup),window.removeEventListener(\"touchmove\",this.touchmove),window.removeEventListener(\"touchend\",this.touchend)}}let Br;function os(d,t,n,s=!1){if(s||!n.getCoveringTilesDetailsProvider().allowWorldCopies())return d?.wrap();let c=new h.W(d.lng,d.lat);if(d=new h.W(d.lng,d.lat),t){let f=new h.W(d.lng-360,d.lat),y=new h.W(d.lng+360,d.lat),x=n.locationToScreenPoint(d).distSqr(t);n.locationToScreenPoint(f).distSqr(t)180;){let f=n.locationToScreenPoint(d);if(f.x>=0&&f.y>=0&&f.x<=n.width&&f.y<=n.height)break;d.lng>n.center.lng?d.lng-=360:d.lng+=360}return d.lng!==c.lng&&n.isPointOnMapSurface(n.locationToScreenPoint(d))?d:c}let sa={center:\"translate(-50%,-50%)\",top:\"translate(-50%,0)\",\"top-left\":\"translate(0,0)\",\"top-right\":\"translate(-100%,0)\",bottom:\"translate(-50%,-100%)\",\"bottom-left\":\"translate(0,-100%)\",\"bottom-right\":\"translate(-100%,-100%)\",left:\"translate(0,-50%)\",right:\"translate(-100%,-50%)\"};function as(d,t,n){let s=d.classList;for(let c in sa)s.remove(`maplibregl-${n}-anchor-${c}`);s.add(`maplibregl-${n}-anchor-${t}`)}class la extends h.E{constructor(t){if(super(),this._onClick=n=>{this.fire(new h.n(\"click\",{originalEvent:n}))},this._onKeyPress=n=>{n.code!==\"Space\"&&n.code!==\"Enter\"||this.togglePopup()},this._onMapClick=n=>{let s=n.originalEvent.target,c=this._element;this._popup&&(s===c||c.contains(s))&&this.togglePopup()},this._update=n=>{if(!this._map)return;let s=this._map.loaded()&&!this._map.isMoving();(n?.type===\"terrain\"||n?.type===\"render\"&&!s)&&this._map.once(\"render\",this._update),this._lngLat=os(this._lngLat,this._flatPos,this._map.transform),this._flatPos=this._pos=this._map.project(this._lngLat)._add(this._offset),this._map.terrain&&(this._flatPos=this._map.transform.locationToScreenPoint(this._lngLat)._add(this._offset));let c=\"\";this._rotationAlignment===\"viewport\"||this._rotationAlignment===\"auto\"?c=`rotateZ(${this._rotation}deg)`:this._rotationAlignment===\"map\"&&(c=`rotateZ(${this._rotation-this._map.getBearing()}deg)`);let f=\"\";this._pitchAlignment===\"viewport\"||this._pitchAlignment===\"auto\"?f=\"rotateX(0deg)\":this._pitchAlignment===\"map\"&&(f=`rotateX(${this._map.getPitch()}deg)`),this._subpixelPositioning||n&&n.type!==\"moveend\"||(this._pos=this._pos.round()),this._element.style.transform=`${sa[this._anchor]} translate(${this._pos.x}px, ${this._pos.y}px) ${f} ${c}`,Ge.frameAsync(new AbortController,this._map._ownerWindow).then((()=>{this._updateOpacity(n?.type===\"moveend\")})).catch((()=>{}))},this._onMove=n=>{if(!this._isDragging){let s=this._clickTolerance||this._map._clickTolerance;this._isDragging=n.point.dist(this._pointerdownPos)>=s}this._isDragging&&(this._pos=n.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents=\"none\",this._state===\"pending\"&&(this._state=\"active\",this.fire(new h.n(\"dragstart\"))),this.fire(new h.n(\"drag\")))},this._onUp=()=>{this._element.style.pointerEvents=\"auto\",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1,this._map.off(\"mousemove\",this._onMove),this._map.off(\"touchmove\",this._onMove),this._state===\"active\"&&this.fire(new h.n(\"dragend\")),this._state=\"inactive\"},this._addDragHandler=n=>{this._element.contains(n.originalEvent.target)&&(n.preventDefault(),this._positionDelta=n.point.sub(this._pos).add(this._offset),this._pointerdownPos=n.point,this._state=\"pending\",this._map.on(\"mousemove\",this._onMove),this._map.on(\"touchmove\",this._onMove),this._map.once(\"mouseup\",this._onUp),this._map.once(\"touchend\",this._onUp))},this._anchor=t?.anchor||\"center\",this._color=t?.color||\"#3FB1CE\",this._scale=t?.scale||1,this._draggable=t?.draggable||!1,this._clickTolerance=t?.clickTolerance||0,this._subpixelPositioning=t?.subpixelPositioning||!1,this._isDragging=!1,this._state=\"inactive\",this._rotation=t?.rotation||0,this._rotationAlignment=t?.rotationAlignment||\"auto\",this._pitchAlignment=t?.pitchAlignment&&t.pitchAlignment!==\"auto\"?t.pitchAlignment:this._rotationAlignment,this.setOpacity(t?.opacity,t?.opacityWhenCovered),t?.element)this._element=t.element,this._offset=h.P.convert(t?.offset||[0,0]);else{this._defaultMarker=!0,this._element=le.create(\"div\");let n=le.createNS(\"http://www.w3.org/2000/svg\",\"svg\"),s=41,c=27;n.setAttributeNS(null,\"display\",\"block\"),n.setAttributeNS(null,\"height\",`${s}px`),n.setAttributeNS(null,\"width\",`${c}px`),n.setAttributeNS(null,\"viewBox\",`0 0 ${c} ${s}`);let f=le.createNS(\"http://www.w3.org/2000/svg\",\"g\");f.setAttributeNS(null,\"stroke\",\"none\"),f.setAttributeNS(null,\"stroke-width\",\"1\"),f.setAttributeNS(null,\"fill\",\"none\"),f.setAttributeNS(null,\"fill-rule\",\"evenodd\");let y=le.createNS(\"http://www.w3.org/2000/svg\",\"g\");y.setAttributeNS(null,\"fill-rule\",\"nonzero\");let x=le.createNS(\"http://www.w3.org/2000/svg\",\"g\");x.setAttributeNS(null,\"transform\",\"translate(3.0, 29.0)\"),x.setAttributeNS(null,\"fill\",\"#000000\");let w=[{rx:\"10.5\",ry:\"5.25002273\"},{rx:\"10.5\",ry:\"5.25002273\"},{rx:\"9.5\",ry:\"4.77275007\"},{rx:\"8.5\",ry:\"4.29549936\"},{rx:\"7.5\",ry:\"3.81822308\"},{rx:\"6.5\",ry:\"3.34094679\"},{rx:\"5.5\",ry:\"2.86367051\"},{rx:\"4.5\",ry:\"2.38636864\"}];for(let N of w){let G=le.createNS(\"http://www.w3.org/2000/svg\",\"ellipse\");G.setAttributeNS(null,\"opacity\",\"0.04\"),G.setAttributeNS(null,\"cx\",\"10.5\"),G.setAttributeNS(null,\"cy\",\"5.80029008\"),G.setAttributeNS(null,\"rx\",N.rx),G.setAttributeNS(null,\"ry\",N.ry),x.appendChild(G)}let S=le.createNS(\"http://www.w3.org/2000/svg\",\"g\");S.setAttributeNS(null,\"fill\",this._color);let M=le.createNS(\"http://www.w3.org/2000/svg\",\"path\");M.setAttributeNS(null,\"d\",\"M27,13.5 C27,19.074644 20.250001,27.000002 14.75,34.500002 C14.016665,35.500004 12.983335,35.500004 12.25,34.500002 C6.7499993,27.000002 0,19.222562 0,13.5 C0,6.0441559 6.0441559,0 13.5,0 C20.955844,0 27,6.0441559 27,13.5 Z\"),S.appendChild(M);let E=le.createNS(\"http://www.w3.org/2000/svg\",\"g\");E.setAttributeNS(null,\"opacity\",\"0.25\"),E.setAttributeNS(null,\"fill\",\"#000000\");let I=le.createNS(\"http://www.w3.org/2000/svg\",\"path\");I.setAttributeNS(null,\"d\",\"M13.5,0 C6.0441559,0 0,6.0441559 0,13.5 C0,19.222562 6.7499993,27 12.25,34.5 C13,35.522727 14.016664,35.500004 14.75,34.5 C20.250001,27 27,19.074644 27,13.5 C27,6.0441559 20.955844,0 13.5,0 Z M13.5,1 C20.415404,1 26,6.584596 26,13.5 C26,15.898657 24.495584,19.181431 22.220703,22.738281 C19.945823,26.295132 16.705119,30.142167 13.943359,33.908203 C13.743445,34.180814 13.612715,34.322738 13.5,34.441406 C13.387285,34.322738 13.256555,34.180814 13.056641,33.908203 C10.284481,30.127985 7.4148684,26.314159 5.015625,22.773438 C2.6163816,19.232715 1,15.953538 1,13.5 C1,6.584596 6.584596,1 13.5,1 Z\"),E.appendChild(I);let D=le.createNS(\"http://www.w3.org/2000/svg\",\"g\");D.setAttributeNS(null,\"transform\",\"translate(6.0, 7.0)\"),D.setAttributeNS(null,\"fill\",\"#FFFFFF\");let B=le.createNS(\"http://www.w3.org/2000/svg\",\"g\");B.setAttributeNS(null,\"transform\",\"translate(8.0, 8.0)\");let V=le.createNS(\"http://www.w3.org/2000/svg\",\"circle\");V.setAttributeNS(null,\"fill\",\"#000000\"),V.setAttributeNS(null,\"opacity\",\"0.25\"),V.setAttributeNS(null,\"cx\",\"5.5\"),V.setAttributeNS(null,\"cy\",\"5.5\"),V.setAttributeNS(null,\"r\",\"5.4999962\");let q=le.createNS(\"http://www.w3.org/2000/svg\",\"circle\");q.setAttributeNS(null,\"fill\",\"#FFFFFF\"),q.setAttributeNS(null,\"cx\",\"5.5\"),q.setAttributeNS(null,\"cy\",\"5.5\"),q.setAttributeNS(null,\"r\",\"5.4999962\"),B.appendChild(V),B.appendChild(q),y.appendChild(x),y.appendChild(S),y.appendChild(E),y.appendChild(D),y.appendChild(B),n.appendChild(y),n.setAttributeNS(null,\"height\",s*this._scale+\"px\"),n.setAttributeNS(null,\"width\",c*this._scale+\"px\"),this._element.appendChild(n),this._offset=h.P.convert(t?.offset||[0,-14])}if(this._element.classList.add(\"maplibregl-marker\"),this._element.addEventListener(\"dragstart\",(n=>{n.preventDefault()})),this._element.addEventListener(\"mousedown\",(n=>{n.preventDefault()})),as(this._element,this._anchor,\"marker\"),t?.className)for(let n of t.className.split(\" \"))this._element.classList.add(n);this._popup=null}addTo(t){return this.remove(),this._map=t,this._element.hasAttribute(\"aria-label\")||this._element.setAttribute(\"aria-label\",t._getUIString(\"Marker.Title\")),this._element.hasAttribute(\"role\")||this._element.setAttribute(\"role\",\"button\"),t.getCanvasContainer().appendChild(this._element),t.on(\"move\",this._update),t.on(\"moveend\",this._update),t.on(\"terrain\",this._update),t.on(\"projectiontransition\",this._update),this._element.addEventListener(\"click\",this._onClick),this.setDraggable(this._draggable),this._update(),this._map.on(\"click\",this._onMapClick),this}remove(){return this._opacityTimeout&&(clearTimeout(this._opacityTimeout),delete this._opacityTimeout),this._map&&(this._map.off(\"click\",this._onMapClick),this._map.off(\"move\",this._update),this._map.off(\"moveend\",this._update),this._map.off(\"terrain\",this._update),this._map.off(\"projectiontransition\",this._update),this._map.off(\"mousedown\",this._addDragHandler),this._map.off(\"touchstart\",this._addDragHandler),this._map.off(\"mouseup\",this._onUp),this._map.off(\"touchend\",this._onUp),this._map.off(\"mousemove\",this._onMove),this._map.off(\"touchmove\",this._onMove),delete this._map),this._element.removeEventListener(\"click\",this._onClick),this._element.remove(),this._popup&&this._popup.remove(),this}getLngLat(){return this._lngLat}setLngLat(t){return this._lngLat=h.W.convert(t),this._pos=null,this._popup&&this._popup.setLngLat(this._lngLat),this._update(),this}getElement(){return this._element}setPopup(t){if(this._popup&&(this._popup.remove(),this._popup=null,this._element.removeEventListener(\"keypress\",this._onKeyPress),this._originalTabIndex||this._element.removeAttribute(\"tabindex\")),t){if(!(\"offset\"in t.options)){let c=Math.abs(13.5)/Math.SQRT2;t.options.offset=this._defaultMarker?{top:[0,0],\"top-left\":[0,0],\"top-right\":[0,0],bottom:[0,-38.1],\"bottom-left\":[c,-1*(38.1-13.5+c)],\"bottom-right\":[-c,-1*(38.1-13.5+c)],left:[13.5,-1*(38.1-13.5)],right:[-13.5,-1*(38.1-13.5)]}:this._offset}this._popup=t,this._originalTabIndex=this._element.getAttribute(\"tabindex\"),this._originalTabIndex||this._element.setAttribute(\"tabindex\",\"0\"),this._element.addEventListener(\"keypress\",this._onKeyPress)}return this}setSubpixelPositioning(t){return this._subpixelPositioning=t,this}getPopup(){return this._popup}togglePopup(){let t=this._popup;return this._element.style.opacity===this._opacityWhenCovered?this:t?(t.isOpen()?t.remove():(t.setLngLat(this._lngLat),t.addTo(this._map)),this):this}_updateOpacity(t=!1){var n,s;let c=(n=this._map)===null||n===void 0?void 0:n.terrain,f=this._map.transform.isLocationOccluded(this._lngLat);if(!c||f){let D=f?this._opacityWhenCovered:this._opacity;return void(this._element.style.opacity!==D&&(this._element.style.opacity=D,this._element.classList.toggle(\"maplibregl-marker-covered\",f)))}if(t)this._opacityTimeout=null;else{if(this._opacityTimeout)return;this._opacityTimeout=setTimeout((()=>{this._opacityTimeout=null}),100)}let y=this._map,x=y.terrain.depthAtPoint(this._pos),w=y.terrain.getElevationForLngLat(this._lngLat,y.transform);if(y.transform.lngLatToCameraDepth(this._lngLat,w)-x<.006)return this._element.style.opacity=this._opacity,void this._element.classList.remove(\"maplibregl-marker-covered\");let S=-this._offset.y/y.transform.pixelsPerMeter,M=Math.sin(y.getPitch()*Math.PI/180)*S,E=y.terrain.depthAtPoint(new h.P(this._pos.x,this._pos.y-this._offset.y)),I=y.transform.lngLatToCameraDepth(this._lngLat,w+M)-E>.006;!((s=this._popup)===null||s===void 0)&&s.isOpen()&&I&&this._popup.remove(),this._element.style.opacity=I?this._opacityWhenCovered:this._opacity,this._element.classList.toggle(\"maplibregl-marker-covered\",I)}getOffset(){return this._offset}setOffset(t){return this._offset=h.P.convert(t),this._update(),this}addClassName(t){this._element.classList.add(t)}removeClassName(t){this._element.classList.remove(t)}toggleClassName(t){return this._element.classList.toggle(t)}setDraggable(t){return this._draggable=!!t,this._map&&(t?(this._map.on(\"mousedown\",this._addDragHandler),this._map.on(\"touchstart\",this._addDragHandler)):(this._map.off(\"mousedown\",this._addDragHandler),this._map.off(\"touchstart\",this._addDragHandler))),this}isDraggable(){return this._draggable}setRotation(t){return this._rotation=t||0,this._update(),this}getRotation(){return this._rotation}setRotationAlignment(t){return this._rotationAlignment=t||\"auto\",this._update(),this}getRotationAlignment(){return this._rotationAlignment}setPitchAlignment(t){return this._pitchAlignment=t&&t!==\"auto\"?t:this._rotationAlignment,this._update(),this}getPitchAlignment(){return this._pitchAlignment}setOpacity(t,n){return(this._opacity===void 0||t===void 0&&n===void 0)&&(this._opacity=\"1\",this._opacityWhenCovered=\"0.2\"),t!==void 0&&(this._opacity=String(t)),n!==void 0&&(this._opacityWhenCovered=String(n)),this._map&&this._updateOpacity(!0),this}}let Bl={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},fo=0,Dn=!1,Ol={maxWidth:100,unit:\"metric\"};function ca(d,t,n){let s=n?.maxWidth||100,c=d._container.clientHeight/2,f=d._container.clientWidth/2,y=d.unproject([f-s/2,c]),x=d.unproject([f+s/2,c]),w=Math.round(d.project(x).x-d.project(y).x),S=Math.min(s,w,d._container.clientWidth),M=y.distanceTo(x);if(n?.unit===\"imperial\"){let E=3.2808*M;E>5280?kn(t,S,E/5280,d._getUIString(\"ScaleControl.Miles\")):kn(t,S,E,d._getUIString(\"ScaleControl.Feet\"))}else n?.unit===\"nautical\"?kn(t,S,M/1852,d._getUIString(\"ScaleControl.NauticalMiles\")):M>=1e3?kn(t,S,M/1e3,d._getUIString(\"ScaleControl.Kilometers\")):kn(t,S,M,d._getUIString(\"ScaleControl.Meters\"))}function kn(d,t,n,s){let c=(function(f){let y=Math.pow(10,`${Math.floor(f)}`.length-1),x=f/y;return x=x>=10?10:x>=5?5:x>=3?3:x>=2?2:x>=1?1:(function(w){let S=Math.pow(10,Math.ceil(-Math.log(w)/Math.LN10));return Math.round(w*S)/S})(x),y*x})(n);d.style.width=t*(c/n)+\"px\",d.innerHTML=`${c} ${s}`}let Vl={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:\"\",maxWidth:\"240px\",subpixelPositioning:!1,locationOccludedOpacity:void 0,padding:void 0},ss=[\"a[href]\",\"[tabindex]:not([tabindex='-1'])\",\"[contenteditable]:not([contenteditable='false'])\",\"button:not([disabled])\",\"input:not([disabled])\",\"select:not([disabled])\",\"textarea:not([disabled])\"].join(\", \");function ls(d){if(d){if(typeof d==\"number\"){let t=Math.round(Math.abs(d)/Math.SQRT2);return{center:new h.P(0,0),top:new h.P(0,d),\"top-left\":new h.P(t,t),\"top-right\":new h.P(-t,t),bottom:new h.P(0,-d),\"bottom-left\":new h.P(t,-t),\"bottom-right\":new h.P(-t,-t),left:new h.P(d,0),right:new h.P(-d,0)}}if(d instanceof h.P||Array.isArray(d)){let t=h.P.convert(d);return{center:t,top:t,\"top-left\":t,\"top-right\":t,bottom:t,\"bottom-left\":t,\"bottom-right\":t,left:t,right:t}}return{center:h.P.convert(d.center||[0,0]),top:h.P.convert(d.top||[0,0]),\"top-left\":h.P.convert(d[\"top-left\"]||[0,0]),\"top-right\":h.P.convert(d[\"top-right\"]||[0,0]),bottom:h.P.convert(d.bottom||[0,0]),\"bottom-left\":h.P.convert(d[\"bottom-left\"]||[0,0]),\"bottom-right\":h.P.convert(d[\"bottom-right\"]||[0,0]),left:h.P.convert(d.left||[0,0]),right:h.P.convert(d.right||[0,0])}}return ls(new h.P(0,0))}let jl=pe;k.AJAXError=h.cG,k.EXTENT=h.a6,k.Event=h.n,k.Evented=h.E,k.LngLat=h.W,k.MercatorCoordinate=h.a7,k.Point=h.P,k.addProtocol=h.cH,k.config=h.c,k.removeProtocol=h.cI,k.AttributionControl=nr,k.BoxZoomHandler=Sr,k.CanvasSource=js,k.CooperativeGesturesHandler=Ue,k.DoubleClickZoomHandler=Rl,k.DragPanHandler=yr,k.DragRotateHandler=ra,k.EdgeInsets=Xn,k.FullscreenControl=class extends h.E{constructor(d={}){var t;super(),this._onFullscreenChange=()=>{var n;let s=window.document.fullscreenElement||window.document.webkitFullscreenElement;for(;!((n=s?.shadowRoot)===null||n===void 0)&&n.fullscreenElement;)s=s.shadowRoot.fullscreenElement;s===this._container!==this._fullscreen&&this._handleFullscreenChange()},this._onClickFullscreen=()=>{this._isFullscreen()?this._exitFullscreen():this._requestFullscreen()},this._fullscreen=!1,this._pseudo=(t=d.pseudo)!==null&&t!==void 0&&t,d?.container&&(d.container instanceof HTMLElement?this._container=d.container:h.w(\"Full screen control 'container' must be a DOM element.\")),\"onfullscreenchange\"in document?this._fullscreenchange=\"fullscreenchange\":\"onmozfullscreenchange\"in document?this._fullscreenchange=\"mozfullscreenchange\":\"onwebkitfullscreenchange\"in document?this._fullscreenchange=\"webkitfullscreenchange\":\"onmsfullscreenchange\"in document&&(this._fullscreenchange=\"MSFullscreenChange\")}onAdd(d){return this._map=d,this._container||(this._container=this._map.getContainer()),this._controlContainer=le.create(\"div\",\"maplibregl-ctrl maplibregl-ctrl-group\"),this._setupUI(),this._controlContainer}onRemove(){this._controlContainer.remove(),this._map=null,window.document.removeEventListener(this._fullscreenchange,this._onFullscreenChange)}_setupUI(){let d=this._fullscreenButton=le.create(\"button\",\"maplibregl-ctrl-fullscreen\",this._controlContainer);le.create(\"span\",\"maplibregl-ctrl-icon\",d).setAttribute(\"aria-hidden\",\"true\"),d.type=\"button\",this._updateTitle(),this._fullscreenButton.addEventListener(\"click\",this._onClickFullscreen),window.document.addEventListener(this._fullscreenchange,this._onFullscreenChange)}_updateTitle(){let d=this._getTitle();this._fullscreenButton.setAttribute(\"aria-label\",d),this._fullscreenButton.title=d}_getTitle(){return this._map._getUIString(this._isFullscreen()?\"FullscreenControl.Exit\":\"FullscreenControl.Enter\")}_isFullscreen(){return this._fullscreen}_handleFullscreenChange(){this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle(\"maplibregl-ctrl-shrink\"),this._fullscreenButton.classList.toggle(\"maplibregl-ctrl-fullscreen\"),this._updateTitle(),this._fullscreen?(this.fire(new h.n(\"fullscreenstart\")),this._prevCooperativeGesturesEnabled=this._map.cooperativeGestures.isEnabled(),this._map.cooperativeGestures.disable()):(this.fire(new h.n(\"fullscreenend\")),this._prevCooperativeGesturesEnabled&&this._map.cooperativeGestures.enable())}_exitFullscreen(){this._pseudo?this._togglePseudoFullScreen():window.document.exitFullscreen?window.document.exitFullscreen():window.document.webkitCancelFullScreen?window.document.webkitCancelFullScreen():this._togglePseudoFullScreen()}_requestFullscreen(){this._pseudo?this._togglePseudoFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.webkitRequestFullscreen?this._container.webkitRequestFullscreen():this._togglePseudoFullScreen()}_togglePseudoFullScreen(){this._container.classList.toggle(\"maplibregl-pseudo-fullscreen\"),this._handleFullscreenChange(),this._map.resize()}},k.GeoJSONSource=Zr,k.GeolocateControl=class extends h.E{constructor(d){super(),this._onSuccess=t=>{if(this._map){if(this._isOutOfMapMaxBounds(t))return this._setErrorState(),this.fire(new h.n(\"outofmaxbounds\",t)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=t,this._watchState){case\"WAITING_ACTIVE\":case\"ACTIVE_LOCK\":case\"ACTIVE_ERROR\":this._watchState=\"ACTIVE_LOCK\",this._geolocateButton.classList.remove(\"maplibregl-ctrl-geolocate-waiting\"),this._geolocateButton.classList.remove(\"maplibregl-ctrl-geolocate-active-error\"),this._geolocateButton.classList.add(\"maplibregl-ctrl-geolocate-active\");break;case\"BACKGROUND\":case\"BACKGROUND_ERROR\":this._watchState=\"BACKGROUND\",this._geolocateButton.classList.remove(\"maplibregl-ctrl-geolocate-waiting\"),this._geolocateButton.classList.remove(\"maplibregl-ctrl-geolocate-background-error\"),this._geolocateButton.classList.add(\"maplibregl-ctrl-geolocate-background\");break;default:throw new Error(`Unexpected watchState ${this._watchState}`)}this.options.showUserLocation&&this._watchState!==\"OFF\"&&this._updateMarker(t),this.options.trackUserLocation&&this._watchState!==\"ACTIVE_LOCK\"||this._updateCamera(t),this.options.showUserLocation&&this._dotElement.classList.remove(\"maplibregl-user-location-dot-stale\"),this.fire(new h.n(\"geolocate\",t)),this._finish()}},this._updateCamera=t=>{let n=new h.W(t.coords.longitude,t.coords.latitude),s=t.coords.accuracy,c=this._map.getBearing(),f=h.e({bearing:c},this.options.fitBoundsOptions),y=De.fromLngLat(n,s);this._map.fitBounds(y,f,{geolocateSource:!0})},this._updateMarker=t=>{if(t){let n=new h.W(t.coords.longitude,t.coords.latitude);this._accuracyCircleMarker.setLngLat(n).addTo(this._map),this._userLocationDotMarker.setLngLat(n).addTo(this._map),this._accuracy=t.coords.accuracy,this._updateCircleRadiusIfNeeded()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},this._onUpdate=()=>{this._updateCircleRadiusIfNeeded()},this._onError=t=>{if(this._map){if(t.code===1){this._watchState=\"OFF\",this._geolocateButton.classList.remove(\"maplibregl-ctrl-geolocate-waiting\"),this._geolocateButton.classList.remove(\"maplibregl-ctrl-geolocate-active\"),this._geolocateButton.classList.remove(\"maplibregl-ctrl-geolocate-active-error\"),this._geolocateButton.classList.remove(\"maplibregl-ctrl-geolocate-background\"),this._geolocateButton.classList.remove(\"maplibregl-ctrl-geolocate-background-error\"),this._geolocateButton.disabled=!0;let n=this._map._getUIString(\"GeolocateControl.LocationNotAvailable\");this._geolocateButton.title=n,this._geolocateButton.setAttribute(\"aria-label\",n),this._geolocationWatchID!==void 0&&this._clearWatch()}else{if(t.code===3&&Dn)return;this._setErrorState()}this._watchState!==\"OFF\"&&this.options.showUserLocation&&this._dotElement.classList.add(\"maplibregl-user-location-dot-stale\"),this.fire(new h.n(\"error\",t)),this._finish()}},this._finish=()=>{this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},this._onMoveStart=t=>{if(!this._map)return;let n=t?.[0]instanceof ResizeObserverEntry;t.geolocateSource||this._watchState!==\"ACTIVE_LOCK\"||n||this._map.isZooming()||(this._watchState=\"BACKGROUND\",this._geolocateButton.classList.add(\"maplibregl-ctrl-geolocate-background\"),this._geolocateButton.classList.remove(\"maplibregl-ctrl-geolocate-active\"),this.fire(new h.n(\"trackuserlocationend\")),this.fire(new h.n(\"userlocationlostfocus\")))},this._setupUI=()=>{this._map&&(this._container.addEventListener(\"contextmenu\",(t=>{t.preventDefault()})),this._geolocateButton=le.create(\"button\",\"maplibregl-ctrl-geolocate\",this._container),le.create(\"span\",\"maplibregl-ctrl-icon\",this._geolocateButton).setAttribute(\"aria-hidden\",\"true\"),this._geolocateButton.type=\"button\",this._geolocateButton.disabled=!0)},this._finishSetupUI=t=>{if(this._map){if(t===!1){h.w(\"Geolocation support is not available so the GeolocateControl will be disabled.\");let n=this._map._getUIString(\"GeolocateControl.LocationNotAvailable\");this._geolocateButton.disabled=!0,this._geolocateButton.title=n,this._geolocateButton.setAttribute(\"aria-label\",n)}else{let n=this._map._getUIString(\"GeolocateControl.FindMyLocation\");this._geolocateButton.disabled=!1,this._geolocateButton.title=n,this._geolocateButton.setAttribute(\"aria-label\",n)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute(\"aria-pressed\",\"false\"),this._watchState=\"OFF\"),this.options.showUserLocation&&(this._dotElement=le.create(\"div\",\"maplibregl-user-location-dot\"),this._userLocationDotMarker=new la({element:this._dotElement}),this._circleElement=le.create(\"div\",\"maplibregl-user-location-accuracy-circle\"),this._accuracyCircleMarker=new la({element:this._circleElement,pitchAlignment:\"map\"}),this.options.trackUserLocation&&(this._watchState=\"OFF\"),this._map.on(\"zoom\",this._onUpdate),this._map.on(\"move\",this._onUpdate),this._map.on(\"rotate\",this._onUpdate),this._map.on(\"pitch\",this._onUpdate)),this._geolocateButton.addEventListener(\"click\",(()=>this.trigger())),this._setup=!0,this.options.trackUserLocation&&this._map.on(\"movestart\",this._onMoveStart)}},this.options=h.e({},Bl,d)}onAdd(d){return this._map=d,this._container=le.create(\"div\",\"maplibregl-ctrl maplibregl-ctrl-group\"),this._setupUI(),(function(){return h._(this,arguments,void 0,(function*(t=!1){if(Br!==void 0&&!t)return Br;if(window.navigator.permissions===void 0)return Br=!!window.navigator.geolocation,Br;try{Br=(yield window.navigator.permissions.query({name:\"geolocation\"})).state!==\"denied\"}catch{Br=!!window.navigator.geolocation}return Br}))})().then((t=>this._finishSetupUI(t))),this._container}onRemove(){this._geolocationWatchID!==void 0&&(window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),this._container.remove(),this._map.off(\"movestart\",this._onMoveStart),this._map.off(\"zoom\",this._onUpdate),this._map.off(\"move\",this._onUpdate),this._map.off(\"rotate\",this._onUpdate),this._map.off(\"pitch\",this._onUpdate),this._map=void 0,fo=0,Dn=!1}_isOutOfMapMaxBounds(d){let t=this._map.getMaxBounds(),n=d.coords;return t&&(n.longitudet.getEast()||n.latitudet.getNorth())}_setErrorState(){switch(this._watchState){case\"WAITING_ACTIVE\":this._watchState=\"ACTIVE_ERROR\",this._geolocateButton.classList.remove(\"maplibregl-ctrl-geolocate-active\"),this._geolocateButton.classList.add(\"maplibregl-ctrl-geolocate-active-error\");break;case\"ACTIVE_LOCK\":this._watchState=\"ACTIVE_ERROR\",this._geolocateButton.classList.remove(\"maplibregl-ctrl-geolocate-active\"),this._geolocateButton.classList.add(\"maplibregl-ctrl-geolocate-active-error\"),this._geolocateButton.classList.add(\"maplibregl-ctrl-geolocate-waiting\");break;case\"BACKGROUND\":this._watchState=\"BACKGROUND_ERROR\",this._geolocateButton.classList.remove(\"maplibregl-ctrl-geolocate-background\"),this._geolocateButton.classList.add(\"maplibregl-ctrl-geolocate-background-error\"),this._geolocateButton.classList.add(\"maplibregl-ctrl-geolocate-waiting\");break;case\"ACTIVE_ERROR\":case\"BACKGROUND_ERROR\":case\"OFF\":case void 0:break;default:throw new Error(`Unexpected watchState ${this._watchState}`)}}_updateCircleRadiusIfNeeded(){let d=this._userLocationDotMarker.getLngLat();if(!(this.options.showUserLocation&&this.options.showAccuracyCircle&&this._accuracy&&d))return;let t=this._map.project(d),n=this._map.unproject([t.x+100,t.y]),s=d.distanceTo(n)/100,c=2*this._accuracy/s;this._circleElement.style.width=`${c.toFixed(2)}px`,this._circleElement.style.height=`${c.toFixed(2)}px`}trigger(){if(!this._setup)return h.w(\"Geolocate control triggered before added to a map\"),!1;if(this.options.trackUserLocation){switch(this._watchState){case\"OFF\":this._watchState=\"WAITING_ACTIVE\",this.fire(new h.n(\"trackuserlocationstart\"));break;case\"WAITING_ACTIVE\":case\"ACTIVE_LOCK\":case\"ACTIVE_ERROR\":case\"BACKGROUND_ERROR\":fo--,Dn=!1,this._watchState=\"OFF\",this._geolocateButton.classList.remove(\"maplibregl-ctrl-geolocate-waiting\"),this._geolocateButton.classList.remove(\"maplibregl-ctrl-geolocate-active\"),this._geolocateButton.classList.remove(\"maplibregl-ctrl-geolocate-active-error\"),this._geolocateButton.classList.remove(\"maplibregl-ctrl-geolocate-background\"),this._geolocateButton.classList.remove(\"maplibregl-ctrl-geolocate-background-error\"),this.fire(new h.n(\"trackuserlocationend\"));break;case\"BACKGROUND\":this._watchState=\"ACTIVE_LOCK\",this._geolocateButton.classList.remove(\"maplibregl-ctrl-geolocate-background\"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new h.n(\"trackuserlocationstart\")),this.fire(new h.n(\"userlocationfocus\"));break;default:throw new Error(`Unexpected watchState ${this._watchState}`)}switch(this._watchState){case\"WAITING_ACTIVE\":this._geolocateButton.classList.add(\"maplibregl-ctrl-geolocate-waiting\"),this._geolocateButton.classList.add(\"maplibregl-ctrl-geolocate-active\");break;case\"ACTIVE_LOCK\":this._geolocateButton.classList.add(\"maplibregl-ctrl-geolocate-active\");break;case\"OFF\":break;default:throw new Error(`Unexpected watchState ${this._watchState}`)}if(this._watchState===\"OFF\"&&this._geolocationWatchID!==void 0)this._clearWatch();else if(this._geolocationWatchID===void 0){let d;this._geolocateButton.classList.add(\"maplibregl-ctrl-geolocate-waiting\"),this._geolocateButton.setAttribute(\"aria-pressed\",\"true\"),fo++,fo>1?(d={maximumAge:6e5,timeout:0},Dn=!0):(d=this.options.positionOptions,Dn=!1),this._geolocationWatchID=window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,d)}}else window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0}_clearWatch(){window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove(\"maplibregl-ctrl-geolocate-waiting\"),this._geolocateButton.setAttribute(\"aria-pressed\",\"false\"),this.options.showUserLocation&&this._updateMarker(null)}},k.GlobeControl=class{constructor(){this._toggleProjection=()=>{var d;let t=(d=this._map.getProjection())===null||d===void 0?void 0:d.type;this._map.setProjection(t!==\"mercator\"&&t?{type:\"mercator\"}:{type:\"globe\"}),this._updateGlobeIcon()},this._updateGlobeIcon=()=>{var d;this._globeButton.classList.remove(\"maplibregl-ctrl-globe\"),this._globeButton.classList.remove(\"maplibregl-ctrl-globe-enabled\"),((d=this._map.getProjection())===null||d===void 0?void 0:d.type)===\"globe\"?(this._globeButton.classList.add(\"maplibregl-ctrl-globe-enabled\"),this._globeButton.title=this._map._getUIString(\"GlobeControl.Disable\")):(this._globeButton.classList.add(\"maplibregl-ctrl-globe\"),this._globeButton.title=this._map._getUIString(\"GlobeControl.Enable\"))}}onAdd(d){return this._map=d,this._container=le.create(\"div\",\"maplibregl-ctrl maplibregl-ctrl-group\"),this._globeButton=le.create(\"button\",\"maplibregl-ctrl-globe\",this._container),le.create(\"span\",\"maplibregl-ctrl-icon\",this._globeButton).setAttribute(\"aria-hidden\",\"true\"),this._globeButton.type=\"button\",this._globeButton.addEventListener(\"click\",this._toggleProjection),this._updateGlobeIcon(),this._map.on(\"styledata\",this._updateGlobeIcon),this._map.on(\"projectiontransition\",this._updateGlobeIcon),this._container}onRemove(){this._container.remove(),this._map.off(\"styledata\",this._updateGlobeIcon),this._map.off(\"projectiontransition\",this._updateGlobeIcon),this._globeButton.removeEventListener(\"click\",this._toggleProjection),this._map=void 0}},k.Hash=Ko,k.ImageSource=Pi,k.KeyboardHandler=hu,k.LngLatBounds=De,k.LogoControl=Ll,k.Map=ns,k.MapLibreMap=ns,k.MapMouseEvent=Hi,k.MapTouchEvent=Qo,k.MapWheelEvent=ru,k.Marker=la,k.NavigationControl=class{constructor(d){this._updateZoomButtons=()=>{let t=this._map.getZoom(),n=t===this._map.getMaxZoom(),s=t===this._map.getMinZoom();this._zoomInButton.disabled=n,this._zoomOutButton.disabled=s,this._zoomInButton.setAttribute(\"aria-disabled\",n.toString()),this._zoomOutButton.setAttribute(\"aria-disabled\",s.toString())},this._rotateCompassArrow=()=>{this._compassIcon.style.transform=this.options.visualizePitch&&this.options.visualizeRoll?`scale(${1/Math.pow(Math.cos(this._map.transform.pitchInRadians),.5)}) rotateZ(${-this._map.transform.roll}deg) rotateX(${this._map.transform.pitch}deg) rotateZ(${-this._map.transform.bearing}deg)`:this.options.visualizePitch?`scale(${1/Math.pow(Math.cos(this._map.transform.pitchInRadians),.5)}) rotateX(${this._map.transform.pitch}deg) rotateZ(${-this._map.transform.bearing}deg)`:this.options.visualizeRoll?`rotate(${-this._map.transform.bearing-this._map.transform.roll}deg)`:`rotate(${-this._map.transform.bearing}deg)`},this._setButtonTitle=(t,n)=>{let s=this._map._getUIString(`NavigationControl.${n}`);t.title=s,t.setAttribute(\"aria-label\",s)},this.options=h.e({},Fl,d),this._container=le.create(\"div\",\"maplibregl-ctrl maplibregl-ctrl-group\"),this._container.addEventListener(\"contextmenu\",(t=>t.preventDefault())),this.options.showZoom&&(this._zoomInButton=this._createButton(\"maplibregl-ctrl-zoom-in\",(t=>this._map.zoomIn({},{originalEvent:t}))),le.create(\"span\",\"maplibregl-ctrl-icon\",this._zoomInButton).setAttribute(\"aria-hidden\",\"true\"),this._zoomOutButton=this._createButton(\"maplibregl-ctrl-zoom-out\",(t=>this._map.zoomOut({},{originalEvent:t}))),le.create(\"span\",\"maplibregl-ctrl-icon\",this._zoomOutButton).setAttribute(\"aria-hidden\",\"true\")),this.options.showCompass&&(this._compass=this._createButton(\"maplibregl-ctrl-compass\",(t=>{this.options.visualizePitch?this._map.resetNorthPitch({},{originalEvent:t}):this._map.resetNorth({},{originalEvent:t})})),this._compassIcon=le.create(\"span\",\"maplibregl-ctrl-icon\",this._compass),this._compassIcon.setAttribute(\"aria-hidden\",\"true\"))}onAdd(d){return this._map=d,this.options.showZoom&&(this._setButtonTitle(this._zoomInButton,\"ZoomIn\"),this._setButtonTitle(this._zoomOutButton,\"ZoomOut\"),this._map.on(\"zoom\",this._updateZoomButtons),this._updateZoomButtons()),this.options.showCompass&&(this._setButtonTitle(this._compass,\"ResetBearing\"),this.options.visualizePitch&&this._map.on(\"pitch\",this._rotateCompassArrow),this.options.visualizeRoll&&this._map.on(\"roll\",this._rotateCompassArrow),this._map.on(\"rotate\",this._rotateCompassArrow),this._rotateCompassArrow(),this._handler=new aa(this._map,this._compass,this.options.visualizePitch)),this._container}onRemove(){this._container.remove(),this.options.showZoom&&this._map.off(\"zoom\",this._updateZoomButtons),this.options.showCompass&&(this.options.visualizePitch&&this._map.off(\"pitch\",this._rotateCompassArrow),this.options.visualizeRoll&&this._map.off(\"roll\",this._rotateCompassArrow),this._map.off(\"rotate\",this._rotateCompassArrow),this._handler.off(),delete this._handler),delete this._map}_createButton(d,t){let n=le.create(\"button\",d,this._container);return n.type=\"button\",n.addEventListener(\"click\",t),n}},k.Popup=class extends h.E{constructor(d){super(),this._updateOpacity=()=>{this.options.locationOccludedOpacity!==void 0&&(this._container.style.opacity=this._map.transform.isLocationOccluded(this.getLngLat())?`${this.options.locationOccludedOpacity}`:\"\")},this.remove=()=>(this._content&&this._content.remove(),this._container&&(this._container.remove(),delete this._container),this._map&&(this._map.off(\"move\",this._update),this._map.off(\"move\",this._onClose),this._map.off(\"click\",this._onClose),this._map.off(\"remove\",this.remove),this._map.off(\"terrain\",this._update),this._map.off(\"projectiontransition\",this._update),this._map.off(\"mousemove\",this._update),this._map.off(\"mouseup\",this._update),this._map.off(\"drag\",this._update),this._map._canvasContainer.classList.remove(\"maplibregl-track-pointer\"),delete this._map,this.fire(new h.n(\"close\"))),this),this._update=t=>{if(!this._map||!this._lngLat&&!this._trackPointer||!this._content)return;if(!this._container){if(this._container=le.create(\"div\",\"maplibregl-popup\",this._map.getContainer()),this._tip=le.create(\"div\",\"maplibregl-popup-tip\",this._container),this._container.appendChild(this._content),this.options.className)for(let x of this.options.className.split(\" \"))this._container.classList.add(x);this._closeButton&&this._closeButton.setAttribute(\"aria-label\",this._map._getUIString(\"Popup.Close\")),this._trackPointer&&this._container.classList.add(\"maplibregl-popup-track-pointer\")}let n;if(this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._lngLat=os(this._lngLat,this._flatPos,this._map.transform,this._trackPointer),t&&\"point\"in t&&t.point&&(n=t.point),this._trackPointer&&!n)return;let s=this._flatPos=this._pos=this._trackPointer&&n?n:this._map.project(this._lngLat);this._map.terrain&&(this._flatPos=this._trackPointer&&n?n:this._map.transform.locationToScreenPoint(this._lngLat));let c=this.options.anchor,f=ls(this.options.offset);if(!c){let x=this._container.offsetWidth,w=this._container.offsetHeight,S=(function(E){var I,D,B,V;return E?{top:(I=E.top)!==null&&I!==void 0?I:0,right:(D=E.right)!==null&&D!==void 0?D:0,bottom:(B=E.bottom)!==null&&B!==void 0?B:0,left:(V=E.left)!==null&&V!==void 0?V:0}:{top:0,right:0,bottom:0,left:0}})(this.options.padding),M;M=s.y+f.bottom.ythis._map.transform.height-w-S.bottom?[\"bottom\"]:[],s.xthis._map.transform.width-x/2-S.right&&M.push(\"right\"),c=M.length===0?\"bottom\":M.join(\"-\")}let y=s.add(f[c]);this.options.subpixelPositioning||(y=y.round()),this._container.style.transform=`${sa[c]} translate(${y.x}px,${y.y}px)`,as(this._container,c,\"popup\"),this._updateOpacity()},this._onClose=()=>{this.remove()},this.options=h.e(Object.create(Vl),d)}addTo(d){return this._map&&this.remove(),this._map=d,this.options.closeOnClick&&this._map.on(\"click\",this._onClose),this.options.closeOnMove&&this._map.on(\"move\",this._onClose),this._map.on(\"remove\",this.remove),this._map.on(\"terrain\",this._update),this._map.on(\"projectiontransition\",this._update),this._update(),this._focusFirstElement(),this._trackPointer?(this._map.on(\"mousemove\",this._update),this._map.on(\"mouseup\",this._update),this._container&&this._container.classList.add(\"maplibregl-popup-track-pointer\"),this._map._canvasContainer.classList.add(\"maplibregl-track-pointer\")):this._map.on(\"move\",this._update),this.fire(new h.n(\"open\")),this}isOpen(){return!!this._map}getLngLat(){return this._lngLat}setLngLat(d){return this._lngLat=h.W.convert(d),this._pos=null,this._flatPos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on(\"move\",this._update),this._map.off(\"mousemove\",this._update),this._container&&this._container.classList.remove(\"maplibregl-popup-track-pointer\"),this._map._canvasContainer.classList.remove(\"maplibregl-track-pointer\")),this}trackPointer(){return this._trackPointer=!0,this._pos=null,this._flatPos=null,this._update(),this._map&&(this._map.off(\"move\",this._update),this._map.on(\"mousemove\",this._update),this._map.on(\"drag\",this._update),this._container&&this._container.classList.add(\"maplibregl-popup-track-pointer\"),this._map._canvasContainer.classList.add(\"maplibregl-track-pointer\")),this}getElement(){return this._container}setText(d){return this.setDOMContent(document.createTextNode(d))}setHTML(d){let t=document.createDocumentFragment(),n=document.createElement(\"body\"),s;for(n.innerHTML=d;s=n.firstChild,s;)t.appendChild(s);return this.setDOMContent(t)}getMaxWidth(){var d;return(d=this._container)===null||d===void 0?void 0:d.style.maxWidth}setMaxWidth(d){return this.options.maxWidth=d,this._update(),this}setDOMContent(d){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=le.create(\"div\",\"maplibregl-popup-content\",this._container);return this._content.appendChild(d),this._createCloseButton(),this._update(),this._focusFirstElement(),this}addClassName(d){return this._container&&this._container.classList.add(d),this}removeClassName(d){return this._container&&this._container.classList.remove(d),this}setOffset(d){return this.options.offset=d,this._update(),this}toggleClassName(d){if(this._container)return this._container.classList.toggle(d)}setSubpixelPositioning(d){this.options.subpixelPositioning=d}setPadding(d){this.options.padding=d,this._update()}_createCloseButton(){this.options.closeButton&&(this._closeButton=le.create(\"button\",\"maplibregl-popup-close-button\",this._content),this._closeButton.type=\"button\",this._closeButton.innerHTML=\"×\",this._closeButton.addEventListener(\"click\",this._onClose))}_focusFirstElement(){if(!this.options.focusAfterOpen||!this._container)return;let d=this._container.querySelector(ss);d&&d.focus()}},k.RasterDEMTileSource=zt,k.RasterTileSource=ht,k.ScaleControl=class{constructor(d){this._onMove=()=>{ca(this._map,this._container,this.options)},this.setUnit=t=>{this.options.unit=t,ca(this._map,this._container,this.options)},this.options=Object.assign(Object.assign({},Ol),d)}getDefaultPosition(){return\"bottom-left\"}onAdd(d){return this._map=d,this._container=le.create(\"div\",\"maplibregl-ctrl maplibregl-ctrl-scale\",d.getContainer()),this._map.on(\"move\",this._onMove),this._onMove(),this._container}onRemove(){this._container.remove(),this._map.off(\"move\",this._onMove),this._map=void 0}},k.ScrollZoomHandler=kl,k.Style=Tn,k.TerrainControl=class{constructor(d){this._toggleTerrain=()=>{this._map.getTerrain()?this._map.setTerrain(null):this._map.setTerrain(this.options),this._updateTerrainIcon()},this._updateTerrainIcon=()=>{this._terrainButton.classList.remove(\"maplibregl-ctrl-terrain\"),this._terrainButton.classList.remove(\"maplibregl-ctrl-terrain-enabled\"),this._map.terrain?(this._terrainButton.classList.add(\"maplibregl-ctrl-terrain-enabled\"),this._terrainButton.title=this._map._getUIString(\"TerrainControl.Disable\")):(this._terrainButton.classList.add(\"maplibregl-ctrl-terrain\"),this._terrainButton.title=this._map._getUIString(\"TerrainControl.Enable\"))},this.options=d}onAdd(d){return this._map=d,this._container=le.create(\"div\",\"maplibregl-ctrl maplibregl-ctrl-group\"),this._terrainButton=le.create(\"button\",\"maplibregl-ctrl-terrain\",this._container),le.create(\"span\",\"maplibregl-ctrl-icon\",this._terrainButton).setAttribute(\"aria-hidden\",\"true\"),this._terrainButton.type=\"button\",this._terrainButton.addEventListener(\"click\",this._toggleTerrain),this._updateTerrainIcon(),this._map.on(\"terrain\",this._updateTerrainIcon),this._container}onRemove(){this._container.remove(),this._map.off(\"terrain\",this._updateTerrainIcon),this._map=void 0}},k.TwoFingersTouchPitchHandler=Fr,k.TwoFingersTouchRotateHandler=uu,k.TwoFingersTouchZoomHandler=cu,k.TwoFingersTouchZoomRotateHandler=Le,k.VectorTileSource=xt,k.VideoSource=hr,k.addSourceType=(d,t)=>h._(void 0,void 0,void 0,(function*(){if(ya(d))throw new Error(`A source type called \"${d}\" already exists.`);((n,s)=>{Ns[n]=s})(d,t)})),k.clearPrewarmedResources=function(){let d=Bi;d&&(d.isPreloaded()&&d.numActive()===1?(d.release(vt),Bi=null):console.warn(\"Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()\"))},k.createTileMesh=Qn,k.getGlobalDispatcher=ti,k.getMaxParallelImageRequests=function(){return h.c.MAX_PARALLEL_IMAGE_REQUESTS},k.getRTLTextPluginStatus=function(){return Wr().getRTLTextPluginStatus()},k.getVersion=function(){return jl},k.getWorkerCount=function(){return mt.workerCount},k.getWorkerUrl=function(){return h.c.WORKER_URL},k.importScriptInWorkers=function(d){return ti().broadcast(\"IS\",d)},k.isTimeFrozen=function(){return Ye.isFrozen()},k.now=Fe,k.prewarm=function(){ur().acquire(vt)},k.restoreNow=function(){Ye.restoreNow()},k.setMaxParallelImageRequests=function(d){h.c.MAX_PARALLEL_IMAGE_REQUESTS=d},k.setNow=function(d){Ye.setNow(d)},k.setRTLTextPlugin=function(d,t){return Wr().setRTLTextPlugin(d,t)},k.setWorkerCount=function(d){mt.workerCount=d},k.setWorkerUrl=function(d){h.c.WORKER_URL=d}}));var we=J;return we}))});var Vs=z1(um(),1);var hm=`.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0)}.maplibregl-canvas{left:0;position:absolute;top:0}.maplibregl-map:fullscreen{height:100%;width:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{pointer-events:none;position:absolute;z-index:2}.maplibregl-ctrl-top-left{left:0;top:0}.maplibregl-ctrl-top-right{right:0;top:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{bottom:0;right:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{float:left;margin:10px 0 0 10px}.maplibregl-ctrl-top-right .maplibregl-ctrl{float:right;margin:10px 10px 0 0}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{float:left;margin:0 0 10px 10px}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{float:right;margin:0 10px 10px 0}.maplibregl-ctrl-group{background:#fff;border-radius:4px}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{background-color:transparent;border:0;box-sizing:border-box;cursor:pointer;display:block;height:29px;outline:none;padding:0;width:29px}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{background-position:50%;background-repeat:no-repeat;display:block;height:100%;width:100%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}@media (hover:hover){.maplibregl-ctrl button:not(:disabled):hover{background-color:rgba(0,0,0,.05)}}.maplibregl-ctrl button:not(:disabled):active{background-color:rgba(0,0,0,.05)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E\")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E\")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E\")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E\")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E\")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E\")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E\")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E\")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E\")}}.maplibregl-ctrl button.maplibregl-ctrl-globe .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='none' stroke='%23333' viewBox='0 0 22 22'%3E%3Ccircle cx='11' cy='11' r='8.5'/%3E%3Cpath d='M17.5 11c0 4.819-3.02 8.5-6.5 8.5S4.5 15.819 4.5 11 7.52 2.5 11 2.5s6.5 3.681 6.5 8.5Z'/%3E%3Cpath d='M13.5 11c0 2.447-.331 4.64-.853 6.206-.262.785-.562 1.384-.872 1.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831 15.64 8.5 13.446 8.5 11s.331-4.64.853-6.206c.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517s.461.118.775.517c.31.393.61.992.872 1.777.522 1.565.853 3.76.853 6.206Z'/%3E%3Cpath d='M11 7.5c-1.909 0-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3 1.3 0 0 1-.224-.138q.07-.058.224-.138c.299-.151.763-.302 1.379-.434C7.378 5.666 9.091 5.5 11 5.5s3.622.166 4.845.428c.616.132 1.08.283 1.379.434.105.053.177.1.224.138q-.07.058-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428ZM4.486 6.436ZM11 16.5c-1.909 0-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3 1.3 0 0 1-.224-.138 1.3 1.3 0 0 1 .224-.138c.299-.151.763-.302 1.379-.434C7.378 14.666 9.091 14.5 11 14.5s3.622.166 4.845.428c.616.132 1.08.283 1.379.434.105.053.177.1.224.138a1.3 1.3 0 0 1-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm-6.514-1.064ZM11 12.5c-2.46 0-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5 1.5 0 0 1-.39-.272.3.3 0 0 1-.047-.064.3.3 0 0 1 .048-.064c.066-.073.189-.167.389-.272.399-.21 1.009-.413 1.805-.59C6.328 9.722 8.54 9.5 11 9.5s4.672.222 6.256.574c.795.177 1.405.38 1.804.59.2.105.323.2.39.272a.3.3 0 0 1 .047.064.3.3 0 0 1-.048.064 1.4 1.4 0 0 1-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0 .018v.002zm17.002.002v-.002zm0-.018v-.002z'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-globe-enabled .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='none' stroke='%2333b5e5' viewBox='0 0 22 22'%3E%3Ccircle cx='11' cy='11' r='8.5'/%3E%3Cpath d='M17.5 11c0 4.819-3.02 8.5-6.5 8.5S4.5 15.819 4.5 11 7.52 2.5 11 2.5s6.5 3.681 6.5 8.5Z'/%3E%3Cpath d='M13.5 11c0 2.447-.331 4.64-.853 6.206-.262.785-.562 1.384-.872 1.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831 15.64 8.5 13.446 8.5 11s.331-4.64.853-6.206c.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517s.461.118.775.517c.31.393.61.992.872 1.777.522 1.565.853 3.76.853 6.206Z'/%3E%3Cpath d='M11 7.5c-1.909 0-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3 1.3 0 0 1-.224-.138q.07-.058.224-.138c.299-.151.763-.302 1.379-.434C7.378 5.666 9.091 5.5 11 5.5s3.622.166 4.845.428c.616.132 1.08.283 1.379.434.105.053.177.1.224.138q-.07.058-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428ZM4.486 6.436ZM11 16.5c-1.909 0-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3 1.3 0 0 1-.224-.138 1.3 1.3 0 0 1 .224-.138c.299-.151.763-.302 1.379-.434C7.378 14.666 9.091 14.5 11 14.5s3.622.166 4.845.428c.616.132 1.08.283 1.379.434.105.053.177.1.224.138a1.3 1.3 0 0 1-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm-6.514-1.064ZM11 12.5c-2.46 0-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5 1.5 0 0 1-.39-.272.3.3 0 0 1-.047-.064.3.3 0 0 1 .048-.064c.066-.073.189-.167.389-.272.399-.21 1.009-.413 1.805-.59C6.328 9.722 8.54 9.5 11 9.5s4.672.222 6.256.574c.795.177 1.405.38 1.804.59.2.105.323.2.39.272a.3.3 0 0 1 .047.064.3.3 0 0 1-.048.064 1.4 1.4 0 0 1-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0 .018v.002zm17.002.002v-.002zm0-.018v-.002z'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%23333' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%2333b5e5' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23aaa' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23999' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E\")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23666' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E\")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E\");background-repeat:no-repeat;cursor:pointer;display:block;height:23px;margin:0 0 -4px -4px;overflow:hidden;width:88px}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E\")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E\")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{background-color:hsla(0,0%,100%,.5);margin:0;padding:0 5px}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{background-color:#fff;border-radius:12px;box-sizing:content-box;color:#000;margin:10px;min-height:20px;padding:2px 24px 2px 0;position:relative}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{border-radius:12px;padding:2px 8px 2px 28px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{background-color:hsla(0,0%,100%,.5);background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E\");border:0;border-radius:12px;box-sizing:border-box;cursor:pointer;display:none;height:24px;outline:none;position:absolute;right:0;top:0;width:24px}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgba(0,0,0,.05)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{right:0;top:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{left:0;top:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23fff' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E\")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E\")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);border:2px solid #333;border-top:#333;box-sizing:border-box;color:#333;font-size:10px;padding:0 5px;white-space:nowrap}.maplibregl-popup{display:flex;left:0;pointer-events:none;position:absolute;top:0;will-change:transform}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{border:10px solid transparent;height:0;width:0;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-bottom-color:#fff;border-top:none}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-bottom-color:#fff;border-left:none;border-top:none}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-bottom-color:#fff;border-right:none;border-top:none}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-left-color:#fff;border-right:none}[dir=rtl] .maplibregl-popup-anchor-left{flex-direction:row-reverse}[dir=rtl] .maplibregl-popup-anchor-right{flex-direction:row}[dir=rtl] .maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-end}[dir=rtl] .maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-start}[dir=rtl] .maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-end}[dir=rtl] .maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-start}.maplibregl-popup-close-button{background-color:transparent;border:0;border-radius:0 3px 0 0;cursor:pointer;position:absolute;right:0;top:0}.maplibregl-popup-close-button:hover{background-color:rgba(0,0,0,.05)}.maplibregl-popup-content{background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto;position:relative}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{left:0;position:absolute;top:0;transition:opacity .2s;will-change:transform}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;border-radius:50%;height:15px;width:15px}.maplibregl-user-location-dot:before{animation:maplibregl-user-location-dot-pulse 2s infinite;content:\"\";position:absolute}.maplibregl-user-location-dot:after{border:2px solid #fff;border-radius:50%;box-shadow:0 0 3px rgba(0,0,0,.35);box-sizing:border-box;content:\"\";height:19px;left:-2px;position:absolute;top:-2px;width:19px}@media (prefers-reduced-motion:reduce){.maplibregl-user-location-dot:before{animation:none}}@keyframes maplibregl-user-location-dot-pulse{0%{opacity:1;transform:scale(1)}70%{opacity:0;transform:scale(3)}to{opacity:0;transform:scale(1)}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;border-radius:100%;height:1px;width:1px}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{background:#fff;border:2px dotted #202020;height:0;left:0;opacity:.5;position:absolute;top:0;width:0}.maplibregl-cooperative-gesture-screen{align-items:center;background:rgba(0,0,0,.4);color:#fff;display:flex;font-size:1.4em;inset:0;justify-content:center;line-height:1.2;opacity:0;padding:1rem;pointer-events:none;position:absolute;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(pointer:coarse){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{height:100%!important;left:0!important;position:fixed!important;top:0!important;width:100%!important;z-index:99999}`;function Bs(J){try{J?.save_changes?.()}catch{}}function k1(J,re,ye){let we=()=>ye(J.get(re));return J.on?.(`change:${re}`,we),()=>J.off?.(`change:${re}`,we)}var R1=[\".dark\",\".dark-theme\",\"[data-theme='dark']\",\"[data-color-mode='dark']\"],L1=[\".light\",\".light-theme\",\"[data-theme='light']\",\"[data-color-mode='light']\"],F1=`\n.manywidgets-theme-defaults {\n --mw-font-family: var(--jp-ui-font-family, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Oxygen, Ubuntu, sans-serif);\n --mw-font-family-mono: var(--jp-code-font-family, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);\n --mw-font-size-sm: 12px;\n --mw-font-size-md: 14px;\n --mw-font-weight-strong: 600;\n --mw-color-text: var(--myst-color-text, var(--jp-content-font-color1, #24292e));\n --mw-color-text-muted: var(--myst-color-text-secondary, var(--jp-content-font-color2, #586069));\n --mw-color-surface: var(--myst-color-bg, var(--jp-layout-color1, #ffffff));\n --mw-color-surface-elevated: var(--myst-color-surface, var(--jp-layout-color2, #f6f8fa));\n --mw-color-border: var(--myst-color-border, var(--jp-border-color2, #e1e4e8));\n --mw-color-border-strong: var(--myst-color-border-strong, var(--jp-border-color1, #d0d7de));\n --mw-color-accent: var(--myst-color-primary, var(--jp-brand-color1, #0366d6));\n --mw-color-accent-hover: var(--myst-color-primary-hover, var(--jp-brand-color0, #0256c7));\n --mw-color-accent-soft: var(--myst-color-active-bg, #ddf4ff);\n --mw-color-on-accent: #ffffff;\n --mw-color-code-bg: var(--myst-color-bg-secondary, var(--jp-layout-color2, #f6f8fa));\n --mw-color-positive: var(--myst-color-success, #1a7f37);\n --mw-color-negative: var(--myst-color-danger, #cf222e);\n --mw-color-warning: var(--myst-color-warning, #9a6700);\n --mw-color-info: var(--myst-color-info, var(--mw-color-accent));\n --mw-color-focus: var(--myst-color-focus-ring, var(--mw-color-accent));\n --mw-radius-2: 4px;\n --mw-radius-3: 6px;\n --mw-radius-4: 8px;\n --mw-radius-5: 10px;\n --mw-radius-thumb: 9999px;\n --mw-shadow-1: 0 1px 2px rgba(0, 0, 0, 0.25);\n --mw-shadow-2: 0 0 0 1px rgba(0, 0, 0, 0.1);\n --mw-control-padding-x: 14px;\n --mw-control-padding-y: 10px;\n --mw-control-gap: 6px;\n --mw-control-max-width: 320px;\n --mw-control-radius: var(--mw-radius-4);\n --mw-input-padding-x: 8px;\n --mw-input-padding-y: 6px;\n --mw-input-radius: var(--mw-radius-3);\n --mw-panel-padding-x: 18px;\n --mw-panel-padding-y: 14px;\n --mw-panel-radius: var(--mw-radius-5);\n --mw-stat-min-width: 140px;\n --mw-stat-value-size: 30px;\n --mw-number-display-value-size: 40px;\n --mw-toggle-track-width: 40px;\n --mw-toggle-track-height: 22px;\n --mw-toggle-thumb-size: 18px;\n --mw-cursor-button: pointer;\n --mw-cursor-slider-thumb: default;\n}\n\n.manywidgets-theme-defaults[data-mw-color-mode=\"dark\"] {\n --mw-color-text: var(--myst-color-text, var(--jp-content-font-color1, #f0f6fc));\n --mw-color-text-muted: var(--myst-color-text-secondary, var(--jp-content-font-color2, #8b949e));\n --mw-color-surface: var(--myst-color-bg, var(--jp-layout-color1, #111113));\n --mw-color-surface-elevated: var(--myst-color-surface, var(--jp-layout-color2, #18191b));\n --mw-color-border: var(--myst-color-border, var(--jp-border-color2, #3a3f44));\n --mw-color-border-strong: var(--myst-color-border-strong, var(--jp-border-color1, #4d5358));\n --mw-color-accent: var(--myst-color-primary, var(--jp-brand-color1, #6b9cff));\n --mw-color-accent-hover: var(--myst-color-primary-hover, var(--jp-brand-color0, #8bb3ff));\n --mw-color-accent-soft: var(--myst-color-active-bg, #1d2d50);\n --mw-color-code-bg: var(--myst-color-bg-secondary, var(--jp-layout-color2, #1f2328));\n --mw-color-positive: var(--myst-color-success, #7ee787);\n --mw-color-negative: var(--myst-color-danger, #ff7b72);\n --mw-color-warning: var(--myst-color-warning, #f2cc60);\n --mw-shadow-1: 0 1px 2px rgba(0, 0, 0, 0.5);\n --mw-shadow-2: 0 0 0 1px rgba(255, 255, 255, 0.12);\n}\n`;function dm(J){let re=J.get(\"theme_vars\");return re&&typeof re==\"object\"?re:{}}function B1(J){let re=J[\"--mw-color-mode\"];if(typeof re!=\"string\")return null;let ye=re.trim().toLowerCase();return ye===\"dark\"||ye===\"light\"?ye:null}function pm(J,re){return re.some(ye=>J.matches(ye)||!!J.closest(ye))}function O1(J){if(J.parentElement?.closest(\".manywidgets-theme\"))return!0;let re=J.getRootNode();return!!(typeof ShadowRoot<\"u\"&&re instanceof ShadowRoot?re.host:null)?.closest(\".manywidgets-theme\")}function Ad(J){let re=J.ownerDocument,ye=J.getRootNode(),we=typeof ShadowRoot<\"u\"&&ye instanceof ShadowRoot?ye.host:null,k=[J,we,re.body,re.documentElement].filter(Ve=>Ve instanceof Element);if(k.some(Ve=>pm(Ve,R1)))return\"dark\";if(k.some(Ve=>pm(Ve,L1)))return\"light\";let pe=([J,re.documentElement].map(Ve=>getComputedStyle(Ve).colorScheme).find(Ve=>Ve&&Ve!==\"normal\")||\"\").split(/\\s+/);return pe.includes(\"dark\")&&!pe.includes(\"light\")?\"dark\":pe.includes(\"light\")&&!pe.includes(\"dark\")?\"light\":null}function zd(J,re){let ye=J.ownerDocument,we=J.getRootNode(),h=[typeof ShadowRoot<\"u\"&&we instanceof ShadowRoot?we.host:null,ye.body,ye.documentElement].filter(xe=>xe instanceof Element),pe=typeof MutationObserver<\"u\"?new MutationObserver(re):null;for(let xe of h)pe?.observe(xe,{attributes:!0,attributeFilter:[\"class\",\"data-theme\",\"data-color-mode\",\"style\"]});let Ve=typeof globalThis.matchMedia==\"function\"?globalThis.matchMedia(\"(prefers-color-scheme: dark)\"):null;return Ve?.addEventListener?.(\"change\",re),()=>{pe?.disconnect(),Ve?.removeEventListener?.(\"change\",re)}}function fm(J,re){let ye=[];Dd(J,F1,\"manywidgets-theme-defaults\"),J.classList.add(\"manywidgets-theme\"),O1(J)||J.classList.add(\"manywidgets-theme-defaults\");let we=()=>{let Ve=dm(re),xe=Object.keys(Ve).filter(et=>et.startsWith(\"--mw-\"));for(let et of ye)xe.includes(et)||J.style.removeProperty(et);for(let et of xe)J.style.setProperty(et,String(Ve[et]));ye=xe,k()},k=()=>{let Ve=B1(dm(re))??Ad(J);Ve?J.dataset.mwColorMode=Ve:delete J.dataset.mwColorMode};we();let h=k1(re,\"theme_vars\",we),pe=zd(J,k);return()=>{h(),pe()}}function Dd(J,re,ye){let we=J.getRootNode()??document,k=\"head\"in we&&we.head?we.head:we,h=\"data-manywidgets-css\";if(k.querySelector(`style[${h}=\"${ye}\"]`))return;let Ve=document.createElement(\"style\");Ve.setAttribute(h,ye),Ve.textContent=re,k.appendChild(Ve)}var cc={gray:[[0,0,0],[255,255,255]],viridis:[[68,1,84],[72,40,120],[62,74,137],[49,104,142],[38,130,142],[31,158,137],[53,183,121],[109,205,89],[180,222,44],[253,231,37]],magma:[[0,0,4],[28,16,68],[79,18,123],[129,37,129],[181,54,122],[229,80,100],[251,135,97],[254,194,135],[252,253,191]],inferno:[[0,0,4],[31,12,72],[85,15,109],[136,34,106],[186,54,85],[227,89,51],[249,140,10],[249,201,50],[252,255,164]],cividis:[[0,32,77],[0,50,110],[60,77,110],[97,101,112],[130,127,115],[164,154,112],[200,182,100],[238,212,80],[255,234,70]],terrain:[[51,51,153],[0,153,153],[0,204,102],[255,255,128],[179,128,102],[255,255,255]]},gm=Object.keys(cc),mm=new Map;function _m(J){let re=cc[J]?J:\"gray\",ye=mm.get(re);if(ye)return ye;let we=cc[re],k=new Uint8ClampedArray(256*3);for(let h=0;h<256;h++){let pe=h/255*(we.length-1),Ve=Math.min(Math.floor(pe),we.length-2),xe=pe-Ve,et=we[Ve],pt=we[Ve+1];k[h*3]=et[0]+(pt[0]-et[0])*xe,k[h*3+1]=et[1]+(pt[1]-et[1])*xe,k[h*3+2]=et[2]+(pt[2]-et[2])*xe}return mm.set(re,k),k}function ym(J){let re=cc[cc[J]?J:\"gray\"];return`linear-gradient(to right, ${re.map((we,k)=>`rgb(${we[0]},${we[1]},${we[2]}) ${100*k/(re.length-1)}%`).join(\", \")})`}function V1(J){let re=atob(J),ye=new Uint8Array(re.length);for(let we=0;weye in J.bands);return re&&re.length?re:Object.keys(J.bands)}function _a(J,re){return!!J.composites&&re in J.composites}function Uu(J,re){let ye=re.active??J.active;return ye&&(J.bands[ye]||_a(J,ye))?ye:Rd(J)[0]}function hc(J,re,ye){let we=J.bands[ye];return re.range?re.range:J.range?J.range:we?.default_range?we.default_range:[uc(we,1),uc(we,255)]}function xm(J,re,ye,we){if(re===0)return-1;let k=re*J.scale+J.offset,h=we===ye?0:(k-ye)/(we-ye);return Math.max(0,Math.min(255,Math.round(h*255)))}function j1(J,re,ye){let we=J.width*J.height,k=Uu(J,re);if(_a(J,k)){let Ge=J.composites[k].map(He=>J.bands[He]),Ye=Ge.map(He=>kd(He)),Fe=Ge.map(He=>re.range??J.range??He.default_range??[uc(He,1),uc(He,255)]);for(let He=0;He=1||st<0||st>=1?null:{col:Math.floor(He*J.width),row:Math.floor(st*J.height)}}function wm(J,re,ye){let we=ye*J.width+re,k={};for(let[h,pe]of Object.entries(J.bands))k[h]=uc(pe,kd(pe)[we]);return k}function Tm(J,re){if(!Number.isFinite(J))return\"no data\";let ye=Math.abs(J)>=100?J.toFixed(0):Math.abs(J)>=10?J.toFixed(1):J.toFixed(2);return re?`${ye} ${re}`:ye}var Sm={fill:\"#3e63dd\",line:\"#3e63dd\",fill_opacity:.15,line_width:1.5,selected_fill:\"#f76b15\",selected_line:\"#f76b15\",hover_fill:\"#3e63dd\",radius:5};function jn(J,re){return re?.visible??J.visible??!0}function Er(J,re){let ye=re?.opacity??(\"opacity\"in J?J.opacity:void 0);return ye===void 0?1:Math.max(0,Math.min(1,ye))}function qu(J){let re=J.data,ye;return re.type===\"FeatureCollection\"?ye=J.data.features:re.type===\"Feature\"?ye=[J.data]:ye=[{type:\"Feature\",geometry:J.data,properties:{}}],{type:\"FeatureCollection\",features:ye.map((we,k)=>({...we,properties:{...we.properties??{}},id:N1(we,J.id_property,k)}))}}function N1(J,re,ye){return re&&J.properties&&J.properties[re]!==void 0?String(J.properties[re]):J.id!==void 0&&J.id!==null?String(J.id):String(ye)}function Fd(J){let re=1/0,ye=1/0,we=-1/0,k=-1/0,h=pe=>{if(Array.isArray(pe))if(typeof pe[0]==\"number\"){let[Ve,xe]=pe;Vewe&&(we=Ve),xek&&(k=xe)}else pe.forEach(h)};return J?(J.type===\"GeometryCollection\"?J.geometries.forEach(pe=>h(pe.coordinates)):h(J.coordinates),Number.isFinite(re)?[re,ye,we,k]:null):null}function Mm(J){let re=null;for(let ye of J.features){let we=Fd(ye.geometry);we&&(re=re?[Math.min(re[0],we[0]),Math.min(re[1],we[1]),Math.max(re[2],we[2]),Math.max(re[3],we[3])]:we)}return re}function Pm(J){let re=J.map(we=>we[0]),ye=J.map(we=>we[1]);return[Math.min(...re),Math.min(...ye),Math.max(...re),Math.max(...ye)]}function Cm(J,re,ye,we){let k=document.createElement(\"div\");k.className=\"manywidgets-geomap__panel\";let h=document.createElement(\"button\");h.type=\"button\",h.className=\"manywidgets-geomap__panel-toggle\",h.title=\"Layers\",h.textContent=\"Layers\";let pe=document.createElement(\"div\");pe.className=\"manywidgets-geomap__panel-body\",k.appendChild(h),k.appendChild(pe),J.appendChild(k),h.addEventListener(\"click\",()=>k.classList.toggle(\"is-collapsed\"));let Ve=new Map;function xe(pt,Ge){pe.replaceChildren(),Ve.clear();for(let Ye of[...pt].reverse()){let Fe=Ge[Ye.id]??{},He=document.createElement(\"div\");He.className=\"manywidgets-geomap__layer\";let st=document.createElement(\"label\");st.className=\"manywidgets-geomap__layer-head\";let le=document.createElement(\"input\");le.type=\"checkbox\",le.checked=jn(Ye,Fe),le.addEventListener(\"change\",()=>we(Ye.id,{visible:le.checked}));let ut=document.createElement(\"span\");ut.textContent=Ye.label??Ye.id,st.appendChild(le),st.appendChild(ut),He.appendChild(st);let ei=()=>{};Ye.type===\"grid\"?ei=q1(He,Ye,Fe,we):Ye.type===\"xyz\"&&(ei=U1(He,Ye,Fe,we)),Ve.set(Ye.id,{visible:le,refresh:ei}),pe.appendChild(He)}k.style.display=pt.length?\"\":\"none\"}function et(pt,Ge){for(let Ye of pt){let Fe=Ve.get(Ye.id);if(!Fe)continue;let He=Ge[Ye.id]??{};Fe.visible.checked=jn(Ye,He),Fe.refresh(Ye,He)}}return xe(re,ye),{rebuild:xe,update:et,dispose:()=>k.remove()}}function Gu(J,re,ye,we,k,h){let pe=document.createElement(\"div\");pe.className=\"manywidgets-geomap__field\";let Ve=document.createElement(\"span\");Ve.className=\"manywidgets-geomap__field-label\",Ve.textContent=J;let xe=document.createElement(\"input\");xe.type=\"range\",xe.min=String(re),xe.max=String(ye),xe.step=String(we),xe.value=String(k);let et=document.createElement(\"span\");return et.className=\"manywidgets-geomap__field-value\",et.textContent=To(k),xe.addEventListener(\"input\",()=>{et.textContent=To(Number(xe.value)),h(Number(xe.value))}),pe.appendChild(Ve),pe.appendChild(xe),pe.appendChild(et),{el:pe,input:xe,out:et}}function To(J){return Math.abs(J)>=100?J.toFixed(0):Math.abs(J)>=10?J.toFixed(1):J.toFixed(2)}function U1(J,re,ye,we){let k=Gu(\"Opacity\",0,1,.05,Er(re,ye),h=>we(re.id,{opacity:h}));return J.appendChild(k.el),(h,pe)=>{k.input.value=String(Er(h,pe)),k.out.textContent=To(Er(h,pe))}}function q1(J,re,ye,we){let k=Rd(re),h=Object.keys(re.composites??{}),pe=document.createElement(\"div\");pe.className=\"manywidgets-geomap__field\";let Ve=document.createElement(\"span\");Ve.className=\"manywidgets-geomap__field-label\",Ve.textContent=\"Show\";let xe=document.createElement(\"select\");for(let Me of[...k,...h]){let je=document.createElement(\"option\");je.value=Me,je.textContent=Me,xe.appendChild(je)}pe.appendChild(Ve),pe.appendChild(xe),J.appendChild(pe);let et=Me=>{let je=re.bands[Me];return[je.scale+je.offset,255*je.scale+je.offset]},pt=Me=>re.bands[Me]?.unit??\"\",Ge=Uu(re,ye),[Ye,Fe]=_a(re,Ge)?[0,1]:hc(re,ye,Ge),He=_a(re,Ge)?[0,1]:et(Ge),st=(He[1]-He[0])/254,le=Gu(\"Min\",He[0],He[1],st,Ye,Me=>{Ye=Math.min(Me,Fe-st),le.input.value=String(Ye),we(re.id,{range:[Ye,Fe]})}),ut=Gu(\"Max\",He[0],He[1],st,Fe,Me=>{Fe=Math.max(Me,Ye+st),ut.input.value=String(Fe),we(re.id,{range:[Ye,Fe]})});J.appendChild(le.el),J.appendChild(ut.el);let ei=document.createElement(\"div\");ei.className=\"manywidgets-geomap__field\";let Qi=document.createElement(\"span\");Qi.className=\"manywidgets-geomap__field-label\",Qi.textContent=\"Colors\";let Ti=document.createElement(\"select\");for(let Me of gm){let je=document.createElement(\"option\");je.value=Me,je.textContent=Me,Ti.appendChild(je)}ei.appendChild(Qi),ei.appendChild(Ti),J.appendChild(ei);let Fi=document.createElement(\"div\");Fi.className=\"manywidgets-geomap__colorbar\";let it=document.createElement(\"span\"),W=document.createElement(\"span\"),K=document.createElement(\"div\");K.className=\"manywidgets-geomap__colorbar-swatch\",Fi.appendChild(it),Fi.appendChild(K),Fi.appendChild(W),J.appendChild(Fi);let ee=Gu(\"Opacity\",0,1,.05,Er(re,ye),Me=>we(re.id,{opacity:Me}));J.appendChild(ee.el);function ve(Me,je){let Oe=Me;Ge=Uu(Oe,je),xe.value=Ge;let $e=_a(Oe,Ge),Xe=je.colormap??Oe.colormap??\"gray\";if(Ti.value=Xe,Ti.disabled=$e,le.el.style.display=ut.el.style.display=$e?\"none\":\"\",Fi.style.display=$e?\"none\":\"\",!$e){let ot=et(Ge),qe=(ot[1]-ot[0])/254;for(let mt of[le,ut])mt.input.min=String(ot[0]),mt.input.max=String(ot[1]),mt.input.step=String(qe);[Ye,Fe]=hc(Oe,je,Ge),le.input.value=String(Ye),ut.input.value=String(Fe),le.out.textContent=To(Ye),ut.out.textContent=To(Fe),K.style.background=ym(Xe);let vt=pt(Ge);it.textContent=`${To(Ye)}${vt?\" \"+vt:\"\"}`,W.textContent=`${To(Fe)}${vt?\" \"+vt:\"\"}`}ee.input.value=String(Er(Oe,je)),ee.out.textContent=To(Er(Oe,je))}return xe.addEventListener(\"change\",()=>{let Me=xe.value,je={active:Me};_a(re,Me)?je.range=void 0:je.range=hc(re,{active:Me},Me),we(re.id,je)}),Ti.addEventListener(\"change\",()=>we(re.id,{colormap:Ti.value})),ve(re,ye),ve}var G1='© OpenStreetMap contributors © CARTO',Em={positron:\"https://basemaps.cartocdn.com/gl/positron-gl-style/style.json\",\"dark-matter\":\"https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json\",voyager:\"https://basemaps.cartocdn.com/gl/voyager-gl-style/style.json\",satellite:Im(\"https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}\",\"Tiles © Esri — Source: Esri, Maxar, Earthstar Geographics, and the GIS User Community\",19),osm:Im(\"https://tile.openstreetmap.org/{z}/{x}/{y}.png\",G1,19),none:{version:8,sources:{},layers:[]}};function Im(J,re,ye){return{version:8,sources:{basemap:{type:\"raster\",tiles:[J],tileSize:256,attribution:re,maxzoom:ye}},layers:[{id:\"basemap\",type:\"raster\",source:\"basemap\"}]}}function Bd(J,re){return J===\"auto\"?Em[Ad(re)===\"dark\"?\"dark-matter\":\"positron\"]:Em[J]??J}var Os=J=>`mw-${J}`;function $1({model:J,el:re}){let ye=fm(re,J);Dd(re,hm,\"maplibre-gl\");let we=document.createElement(\"div\");we.className=\"manywidgets-geomap\";let k=document.createElement(\"div\");k.className=\"manywidgets-geomap__map\";let h=document.createElement(\"div\");h.className=\"manywidgets-geomap__readout\",h.style.display=\"none\",we.appendChild(k),we.appendChild(h),re.appendChild(we);let pe=()=>{we.style.height=J.get(\"height\")||\"480px\"};pe();let Ve=J.get(\"view_state\")||{longitude:0,latitude:0,zoom:1},xe=new Vs.default.Map({container:k,style:Bd(J.get(\"basemap\")||\"positron\",re),center:[Ve.longitude,Ve.latitude],zoom:Ve.zoom,attributionControl:{compact:!0}});xe.addControl(new Vs.default.NavigationControl({showCompass:!1}),\"top-left\"),xe.addControl(new Vs.default.ScaleControl({unit:\"metric\"}),\"bottom-right\"),we.__map=xe;let et=new Vs.default.Popup({closeButton:!1,closeOnClick:!1,maxWidth:\"320px\"}),pt=new Map,Ge={sources:[],layers:[]},Ye=null,Fe=!1,He=()=>J.get(\"layers\")||[],st=()=>J.get(\"layer_state\")||{},le=fe=>st()[fe];function ut(){for(let fe of Ge.layers)xe.getLayer(fe)&&xe.removeLayer(fe);for(let fe of Ge.sources)xe.getSource(fe)&&xe.removeSource(fe);Ge={sources:[],layers:[]}}function ei(fe){let ke=qu(fe);for(let Pi of ke.features)Pi.properties.__mw_id=Pi.id;let Ne={...Sm,...fe.style??{}},De=Os(fe.id);xe.addSource(De,{type:\"geojson\",data:ke,promoteId:\"__mw_id\"}),Ge.sources.push(De);let Tt=jn(fe,le(fe.id))?\"visible\":\"none\",xt=Er(fe,le(fe.id)),ht=[\"boolean\",[\"feature-state\",\"selected\"],!1],zt=[\"boolean\",[\"feature-state\",\"hover\"],!1],ci=[\"case\",ht,Ne.selected_fill,zt,Ne.hover_fill,Ne.fill],xr=[\"case\",ht,Ne.selected_line,Ne.line],So=[\"case\",ht,Math.min(1,Ne.fill_opacity+.25)*xt,zt,Math.min(1,Ne.fill_opacity+.15)*xt,Ne.fill_opacity*xt],Mo=[\"case\",ht,Ne.line_width+1.5,Ne.line_width],er=`${De}-fill`,Ir=`${De}-line`,Zr=`${De}-circle`;xe.addLayer({id:er,type:\"fill\",source:De,filter:[\"==\",[\"geometry-type\"],\"Polygon\"],layout:{visibility:Tt},paint:{\"fill-color\":ci,\"fill-opacity\":So}}),xe.addLayer({id:Ir,type:\"line\",source:De,filter:[\"any\",[\"==\",[\"geometry-type\"],\"Polygon\"],[\"==\",[\"geometry-type\"],\"LineString\"]],layout:{visibility:Tt},paint:{\"line-color\":xr,\"line-width\":Mo,\"line-opacity\":xt}}),xe.addLayer({id:Zr,type:\"circle\",source:De,filter:[\"==\",[\"geometry-type\"],\"Point\"],layout:{visibility:Tt},paint:{\"circle-color\":ci,\"circle-radius\":Ne.radius,\"circle-opacity\":Math.min(1,Ne.fill_opacity+.6)*xt,\"circle-stroke-color\":xr,\"circle-stroke-width\":1}}),Ge.layers.push(er,Ir,Zr);for(let Pi of[er,Zr])xe.on(\"click\",Pi,hr=>Oe(hr)),xe.on(\"mousemove\",Pi,hr=>Xe(hr,fe)),xe.on(\"mouseleave\",Pi,()=>ot())}function Qi(fe){let ke=Os(fe.id);xe.addSource(ke,{type:\"raster\",tiles:[fe.url],tileSize:fe.tile_size??256,attribution:fe.attribution??\"\",minzoom:fe.min_zoom??0,maxzoom:fe.max_zoom??22}),xe.addLayer({id:`${ke}-raster`,type:\"raster\",source:ke,layout:{visibility:jn(fe,le(fe.id))?\"visible\":\"none\"},paint:{\"raster-opacity\":Er(fe,le(fe.id)),\"raster-fade-duration\":0}}),Ge.sources.push(ke),Ge.layers.push(`${ke}-raster`)}function Ti(fe){let ke=pt.get(fe.id);return ke||(ke=document.createElement(\"canvas\"),pt.set(fe.id,ke)),ke}function Fi(fe){let ke=Os(fe.id),Ne=Ti(fe);Ld(fe,le(fe.id)??{},Ne),xe.addSource(ke,{type:\"image\",url:Ne.toDataURL(),coordinates:fe.corners}),xe.addLayer({id:`${ke}-raster`,type:\"raster\",source:ke,layout:{visibility:jn(fe,le(fe.id))?\"visible\":\"none\"},paint:{\"raster-opacity\":Er(fe,le(fe.id)),\"raster-fade-duration\":0,\"raster-resampling\":\"nearest\"}}),Ge.sources.push(ke),Ge.layers.push(`${ke}-raster`)}function it(){if(Fe){ut();for(let fe of He())try{fe.type===\"geojson\"?ei(fe):fe.type===\"xyz\"?Qi(fe):fe.type===\"grid\"&&Fi(fe)}catch(ke){console.error(`[manywidgets geomap] layer \"${fe.id}\" failed:`,ke)}Me(),Ye?.rebuild(He(),st())}}function W(){if(Fe){for(let fe of He()){let ke=le(fe.id)??{},Ne=Os(fe.id),De=Ge.layers.filter(ht=>ht.startsWith(`${Ne}-`)),Tt=jn(fe,ke)?\"visible\":\"none\",xt=Er(fe,ke);for(let ht of De)xe.getLayer(ht)&&(xe.setLayoutProperty(ht,\"visibility\",Tt),ht.endsWith(\"-raster\")&&xe.setPaintProperty(ht,\"raster-opacity\",xt));if(fe.type===\"grid\"&&xe.getSource(Ne)){let ht=Ti(fe);Ld(fe,ke,ht),xe.getSource(Ne).updateImage({url:ht.toDataURL()})}}Ye?.update(He(),st())}}let K=\"\";function ee(fe,ke){if(fe)for(let Ne of He())Ne.type!==\"geojson\"||!xe.getSource(Os(Ne.id))||xe.setFeatureState({source:Os(Ne.id),id:fe},ke)}function ve(fe){for(let ke of He()){if(ke.type!==\"geojson\")continue;let Ne=qu(ke).features.find(De=>De.id===fe);if(Ne)return Ne}return null}function Me(){if(!Fe)return;let fe=J.get(\"selected\")||\"\";K&&ee(K,{selected:!1}),K=fe,ee(fe,{selected:!0})}function je(){if(!J.get(\"zoom_to_selected\"))return;let fe=ve(J.get(\"selected\")||\"\"),ke=fe?Fd(fe.geometry):null;ke&&mt(ke,!0)}function Oe(fe){let ke=fe.features?.[0];if(!ke)return;let Ne=String(ke.id??ke.properties?.__mw_id??\"\");Ne!==J.get(\"selected\")&&(J.set(\"selected\",Ne),Bs(J))}let $e=\"\";function Xe(fe,ke){let Ne=fe.features?.[0];if(!Ne)return;let De=String(Ne.id??Ne.properties?.__mw_id??\"\");xe.getCanvas().style.cursor=\"pointer\",De!==$e&&($e&&ee($e,{hover:!1}),$e=De,ee(De,{hover:!0}),J.get(\"hovered\")!==De&&(J.set(\"hovered\",De),Bs(J)));let Tt=Ne.properties??{},xt=ke.tooltip&&ke.tooltip.length?ke.tooltip:Object.keys(Tt).filter(ht=>ht!==\"__mw_id\").slice(0,6);if(xt.length){let ht=xt.map(zt=>`
${$u(zt)}${$u(String(Tt[zt]??\"\"))}
`);et.setLngLat(fe.lngLat).setHTML(`
${ht.join(\"\")}
`).addTo(xe)}}function ot(){xe.getCanvas().style.cursor=\"\",$e&&ee($e,{hover:!1}),$e=\"\",et.remove(),J.get(\"hovered\")&&(J.set(\"hovered\",\"\"),Bs(J))}function qe(){let fe=J.get(\"hovered\")||\"\";fe!==$e&&($e&&ee($e,{hover:!1}),$e=fe,ee(fe,{hover:!0}))}let vt=fe=>{let ke=Vs.default.MercatorCoordinate.fromLngLat({lng:fe[0],lat:fe[1]});return[ke.x,ke.y]};xe.on(\"mousemove\",fe=>{let ke=[];for(let Ne of He()){if(Ne.type!==\"grid\"||!jn(Ne,le(Ne.id)))continue;let De=bm(Ne,[fe.lngLat.lng,fe.lngLat.lat],vt);if(!De)continue;let Tt=wm(Ne,De.col,De.row),xt=Object.entries(Tt).map(([ht,zt])=>`${ht}: ${Tm(zt,Ne.bands[ht].unit)}`);ke.push(`${$u(Ne.label??Ne.id)} ${xt.map($u).join(\" \\xB7 \")}`)}ke.length?(h.innerHTML=ke.join(\"
\"),h.style.display=\"\"):h.style.display=\"none\"}),xe.on(\"mouseout\",()=>{h.style.display=\"none\"});function mt(fe,ke){xe.fitBounds([[fe[0],fe[1]],[fe[2],fe[3]]],{padding:24,animate:ke,maxZoom:16})}function Si(){let fe=J.get(\"fit_bounds\");return Array.isArray(fe)&&fe.length===4&&fe.every(ke=>Number.isFinite(ke))?fe:null}function Bi(){let fe=Si();fe&&mt(fe,!1)}function cr(){let fe=null;for(let ke of He()){let Ne=null;ke.type===\"geojson\"?Ne=Mm(qu(ke)):ke.type===\"grid\"&&(Ne=Pm(ke.corners)),Ne&&(fe=fe?[Math.min(fe[0],Ne[0]),Math.min(fe[1],Ne[1]),Math.max(fe[2],Ne[2]),Math.max(fe[3],Ne[3])]:Ne)}return fe}let ur=!1;xe.on(\"moveend\",()=>{let fe=xe.getCenter(),ke={longitude:Od(fe.lng,5),latitude:Od(fe.lat,5),zoom:Od(xe.getZoom(),2)};ur=!0,J.set(\"view_state\",ke),Bs(J),ur=!1});function un(){if(ur)return;let fe=J.get(\"view_state\");if(!fe)return;let ke=xe.getCenter();Math.abs(ke.lng-fe.longitude)<1e-6&&Math.abs(ke.lat-fe.latitude)<1e-6&&Math.abs(xe.getZoom()-fe.zoom)<.001||xe.jumpTo({center:[fe.longitude,fe.latitude],zoom:fe.zoom})}function ti(){Ye?.dispose(),Ye=null,J.get(\"controls\")&&(Ye=Cm(we,He(),st(),(fe,ke)=>{let Ne={...st(),[fe]:{...st()[fe]??{},...ke}};J.set(\"layer_state\",Ne),Bs(J),W()}))}xe.on(\"style.load\",()=>{Fe=!0,it()}),xe.once(\"load\",()=>{ti();let fe=Si()??cr();fe&&mt(fe,!1)}),J.on(\"change:layers\",()=>{it();let fe=Si()??cr();fe&&mt(fe,!0)}),J.on(\"change:layer_state\",W),J.on(\"change:selected\",()=>{Me(),je()}),J.on(\"change:hovered\",qe),J.on(\"change:view_state\",un),J.on(\"change:fit_bounds\",Bi),J.on(\"change:height\",()=>{pe(),xe.resize()}),J.on(\"change:controls\",ti),J.on(\"change:basemap\",()=>{Fe=!1,xe.setStyle(Bd(J.get(\"basemap\")||\"positron\",re))});let $r=zd(re,()=>{J.get(\"basemap\")===\"auto\"&&(Fe=!1,xe.setStyle(Bd(\"auto\",re)))}),Mi=typeof ResizeObserver<\"u\"?new ResizeObserver(()=>xe.resize()):null;return Mi?.observe(we),()=>{Mi?.disconnect(),$r(),Ye?.dispose(),et.remove(),xe.remove(),ye()}}function Od(J,re){let ye=10**re;return Math.round(J*ye)/ye}function $u(J){return J.replace(/[&<>\"']/g,re=>({\"&\":\"&\",\"<\":\"<\",\">\":\">\",'\"':\""\",\"'\":\"'\"})[re])}var F_={render:$1};export{F_ as default};\n/*! Bundled license information:\n\nmaplibre-gl/dist/maplibre-gl.js:\n (**\n * MapLibre GL JS\n * @license 3-Clause BSD. Full text of license: https://github.com/maplibre/maplibre-gl-js/blob/v5.24.0/LICENSE.txt\n *)\n*/\n", + "_model_module": "anywidget", + "_model_module_version": "~0.9.*", + "_model_name": "AnyModel", + "_view_count": null, + "_view_module": "anywidget", + "_view_module_version": "~0.9.*", + "_view_name": "AnyView", + "basemap": "satellite", + "controls": true, + "fit_bounds": null, + "height": "420px", + "hovered": "", + "layer_state": {}, + "layers": [ + { + "active": "HH", + "band_names": [ + "HH", + "HV", + "HH/HV" + ], + "bands": { + "HH": { + "data": "WWhWV2RlZFplb1pmV2BbbmR2d3Rcc3l8a3hzdot3gIt7gYSEdoSSc42FfJmLdYOIf4h/ho52fnZ8bHJ1f4FkaXdZaGp4cGNhYXJbW2BZV0tVT19XTlRIVUhNN0cvKjw0PlMwMjk7MzI7OCYwMCQxJTgvLiYrFyAxFjYaNiU3MB8+QTEvMipBMTcwMy1KPEpBO0A/R0VHPUVhSkdYZkhXVUpnYGNca2FnXl98anRyb299dHd6h4OBd2+Kin+HiouNfpR2jYmNmJR3cIt3gYpvaYJ/e31yandtZXt0d2dpZGNuYmxre1RrX15NVmFXV1FfUDdGNiZCVUU3OE1BPjw7Qj46KzstPyQwMSFCPyk2MREwLC0hKis6MS0+KCscQTs8OjQ3MzQ4SUA7NjdRRkNAOUZSRklLUEBQS2BPYGxaWGNYT2FzXF9XaFhbd2F4fnJ3h3FuZ3iJhHByd4F8goN9gYSBiJeKhHGIbnSNi4FwfnqImYJ2cX16b3tthIKBb3hwbGtfXHNmaXBQWWJiWGZbSktdVzxdU1pFRTpgQVM5QSs4RixEOyswLzMsKC0lIS44HS0mIjYnPSQxKiU0LDUuJC8xPCkzIjwrJDhGKzE2M0U6PEw/TUA/OmROVVRYWG5QTFRSam1bWGV6TXNjfGZwZGuGgXVxZ3h9fX50gIGQloF7gn17g3iKgoaBe3h/e4OAcH9vdnhkenp1cXB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l2DiGyJoFh+b3dzdYKDj4Vrd31Qd4uGdm98f3R8bI10dXCSdHd3dayOanaAb4iJb1iWeYuIfYCZeG2lhFZpg3J+c3WAcX1+hHB1i4aFhHOJoHl1cm9nZXZdboCPVmpwbGl9cYJXeIuNW4xyiGxqgWtjpn5ghYxzhoBrdopwbGZhXW9sZ3eMn3h7bVB2ho6GiF9ceElnkGV7c1qBeZJ8botxZnRkfm+DeYZzfpZxiY6Qo3NmlnxYZ4CFdYxaiWdhmHd5fIp7aV6AaHVuY16KZU5jZopxZn9Mc4WCimGainRsZIt8kH+Ud2RoZYSK", + "default_range": [ + 3.0, + 11.0 + ], + "offset": -0.05905511811023622, + "scale": 0.05905511811023622, + "unit": "dB" + }, + "HV": { + "data": "VGBGT1BUVkRgcE1KRFNHbFdfY2hXXW9jVF5ncnpndXpkeoBvbnCEY3t6Y4uBZ3iHbm9xfXVkaWB4UWdrc2tIR15JTltiXVdPV1pKQE4/TC9EP1tMPT09VD5FJDAjIyslM0sdJCYwLSotKBwsHRslIiogGBwgFxslFSYMJR8pIR0xMisoJR0uIyAOLBk2NkYrMTsuPSw5LD5XMzZFVT1DLTViTlFTY1FfR1xvTHBfWVp3XWhnfnV2amd8f3R5foB4aopth2+Bj4dhaH5leIJfVm1wdWtcal9rW2xrWlBPXlZYWV9fZjxfS082QltJQDhXNjIxLSA6VzcwHjMzLzIiOzgvETAnKx8ZLRU7KSAjIAEjFyAdEh0vHyErGSELOi40JScpHTYzMCg5MDBCNjY5MDtQNzZBSjpBN1s5TmpIUUlOPFJRTlJTUztSdEdpb2tdcXFcXl+Ab2RicnJuenFzbG93fpR1aGiFWW2Cd3pabm5yim1vZnhyZXxigIhjXWpbXGJRSWhYU1tMPllVRWNKRC5DTSdNTEkvLTBdLkUxLhEtNCUzMSMlKiYgGRMSECk5FiokEiUkOhEuGBgoISkgGSImLgwlISUjDDspEhsyKTsoMj85OisvL0c9REtGUF4+RD4+V2hRTlJaQFpXalJhUVRyg2tVXWhoXXJp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0QzNEYpNyoiODI0LCY7FzUuDR83JRYOHhVAJyslIBgjIBshNTsqKygsOkErPDI3NBw3OjI9NScwKUkjKE5CTSo9QUgvXk5LWEZP", + "default_range": [ + -32.0, + -17.0 + ], + "offset": -35.13779527559055, + "scale": 0.1377952755905512, + "unit": "dB" + } + }, + "colormap": "gray", + "composites": { + "Dual-pol RGB": [ + "HH", + "HV", + "HH/HV" + ] + }, + "corners": [ + [ + -116.78, + 36.06 + ], + [ + -116.52, + 36.09 + ], + [ + -116.49, + 35.88 + ], + [ + -116.75, + 35.85 + ] + ], + "height": 240, + "id": "window", + "label": "Backscatter window", + "opacity": 1.0, + "type": "grid", + "visible": true, + "width": 320 + }, + { + "data": { + "geometry": { + "coordinates": [ + [ + [ + -116.9, + 36.2 + ], + [ + -116.4, + 36.25 + ], + [ + -116.35, + 35.75 + ], + [ + -116.85, + 35.7 + ], + [ + -116.9, + 36.2 + ] + ] + ], + "type": "Polygon" + }, + "properties": { + "name": "scene" + }, + "type": "Feature" + }, + "id": "scene", + "id_property": "name", + "label": "scene", + "style": { + "fill_opacity": 0.0, + "line": "#ffd166", + "line_width": 2 + }, + "type": "geojson", + "visible": true + } + ], + "layout": "IPY_MODEL_408ec4babe5e4985bd2ebea5197961fb", + "selected": "", + "tabbable": null, + "theme_vars": {}, + "tooltip": null, + "view_state": { + "latitude": 0.0, + "longitude": 0.0, + "zoom": 1.0 + }, + "widget_id": "geomap_2", + "zoom_to_selected": true + } + }, + "a9186e27bf334680b8b6d392fc5de665": { + "model_module": "anywidget", + "model_module_version": "~0.9.*", + "model_name": "AnyModel", + "state": { + "_anywidget_id": "manywidgets.geo_map.widget.GeoMap", + "_css": ".manywidgets-geomap {\n position: relative;\n width: 100%;\n height: 480px;\n margin: 10px 0;\n border: 1px solid var(--mw-color-border);\n border-radius: var(--mw-control-radius);\n overflow: hidden;\n background: var(--mw-color-surface);\n font-family: var(--mw-font-family);\n color: var(--mw-color-text);\n}\n\n/* More specific than maplibre's `.maplibregl-map { position: relative }`, which\n lands on the same element and is injected after this stylesheet. */\n.manywidgets-geomap .manywidgets-geomap__map.maplibregl-map,\n.manywidgets-geomap .manywidgets-geomap__map {\n position: absolute;\n inset: 0;\n width: 100%;\n height: 100%;\n}\n\n/* Hover readout for grid layers (bottom-left, above the scale bar). */\n.manywidgets-geomap__readout {\n position: absolute;\n left: 8px;\n bottom: 28px;\n z-index: 2;\n pointer-events: none;\n padding: 4px 8px;\n border-radius: 4px;\n background: var(--mw-color-surface);\n border: 1px solid var(--mw-color-border);\n font-size: var(--mw-font-size-sm);\n line-height: 1.4;\n max-width: 70%;\n}\n\n/* Layer panel */\n.manywidgets-geomap__panel {\n position: absolute;\n top: 8px;\n right: 8px;\n z-index: 2;\n width: 240px;\n max-height: calc(100% - 16px);\n overflow: auto;\n background: var(--mw-color-surface);\n border: 1px solid var(--mw-color-border);\n border-radius: var(--mw-control-radius);\n font-size: var(--mw-font-size-sm);\n box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);\n}\n\n.manywidgets-geomap__panel-toggle {\n display: block;\n width: 100%;\n text-align: left;\n padding: 6px 10px;\n border: 0;\n border-bottom: 1px solid var(--mw-color-border);\n background: transparent;\n color: var(--mw-color-text-muted);\n font: inherit;\n font-weight: var(--mw-font-weight-strong);\n text-transform: uppercase;\n letter-spacing: 0.04em;\n cursor: pointer;\n}\n\n.manywidgets-geomap__panel.is-collapsed .manywidgets-geomap__panel-body {\n display: none;\n}\n.manywidgets-geomap__panel.is-collapsed {\n width: auto;\n}\n.manywidgets-geomap__panel.is-collapsed .manywidgets-geomap__panel-toggle {\n border-bottom: 0;\n}\n\n.manywidgets-geomap__layer {\n padding: 8px 10px;\n border-bottom: 1px solid var(--mw-color-border);\n display: grid;\n gap: 6px;\n}\n.manywidgets-geomap__layer:last-child {\n border-bottom: 0;\n}\n\n.manywidgets-geomap__layer-head {\n display: flex;\n align-items: center;\n gap: 6px;\n font-weight: var(--mw-font-weight-strong);\n cursor: pointer;\n}\n\n.manywidgets-geomap__field {\n display: grid;\n grid-template-columns: 48px 1fr 44px;\n align-items: center;\n gap: 6px;\n}\n.manywidgets-geomap__field select {\n grid-column: 2 / span 2;\n font: inherit;\n padding: 2px 4px;\n border: 1px solid var(--mw-color-border);\n border-radius: 4px;\n background: var(--mw-color-surface);\n color: var(--mw-color-text);\n}\n.manywidgets-geomap__field input[type=\"range\"] {\n width: 100%;\n min-width: 0;\n margin: 0;\n}\n.manywidgets-geomap__field-label {\n color: var(--mw-color-text-muted);\n}\n.manywidgets-geomap__field-value {\n text-align: right;\n font-variant-numeric: tabular-nums;\n}\n\n.manywidgets-geomap__colorbar {\n display: grid;\n grid-template-columns: auto 1fr auto;\n align-items: center;\n gap: 6px;\n font-size: 11px;\n color: var(--mw-color-text-muted);\n}\n.manywidgets-geomap__colorbar-swatch {\n height: 10px;\n border-radius: 3px;\n box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);\n}\n\n/* Tooltip (rendered inside maplibre's popup) */\n.manywidgets-geomap .maplibregl-popup-content {\n padding: 6px 8px;\n font-family: var(--mw-font-family);\n font-size: var(--mw-font-size-sm);\n color: #24292e;\n}\n.manywidgets-geomap__tip-row {\n display: flex;\n gap: 8px;\n justify-content: space-between;\n}\n.manywidgets-geomap__tip-row span {\n color: #586069;\n}\n", + "_dom_classes": [], + "_esm": "var S1=Object.create;var lm=Object.defineProperty;var M1=Object.getOwnPropertyDescriptor;var P1=Object.getOwnPropertyNames;var C1=Object.getPrototypeOf,E1=Object.prototype.hasOwnProperty;var I1=(J,re)=>()=>(re||J((re={exports:{}}).exports,re),re.exports);var A1=(J,re,ye,we)=>{if(re&&typeof re==\"object\"||typeof re==\"function\")for(let k of P1(re))!E1.call(J,k)&&k!==ye&&lm(J,k,{get:()=>re[k],enumerable:!(we=M1(re,k))||we.enumerable});return J};var z1=(J,re,ye)=>(ye=J!=null?S1(C1(J)):{},A1(re||!J||!J.__esModule?lm(ye,\"default\",{value:J,enumerable:!0}):ye,J));var um=I1((Ed,Id)=>{(function(J,re){typeof Ed==\"object\"&&typeof Id<\"u\"?Id.exports=re():typeof define==\"function\"&&define.amd?define(re):(J=typeof globalThis<\"u\"?globalThis:J||self,J.maplibregl=re())})(Ed,(function(){\"use strict\";var J={},re={};function ye(k,h,pe){if(re[k]=pe,k===\"index\"){var Ve=\"var sharedModule = {}; (\"+re.shared+\")(sharedModule); (\"+re.worker+\")(sharedModule);\",xe={};return re.shared(xe),re.index(J,xe),typeof window<\"u\"&&J.setWorkerUrl(window.URL.createObjectURL(new Blob([Ve],{type:\"text/javascript\"}))),J}}ye(\"shared\",[\"exports\"],(function(k){\"use strict\";function h(r,e,i,o){return new(i||(i=Promise))((function(a,l){function u(m){try{g(o.next(m))}catch(v){l(v)}}function p(m){try{g(o.throw(m))}catch(v){l(v)}}function g(m){var v;m.done?a(m.value):(v=m.value,v instanceof i?v:new i((function(_){_(v)}))).then(u,p)}g((o=o.apply(r,e||[])).next())}))}function pe(r,e){this.x=r,this.y=e}function Ve(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,\"default\")?r.default:r}var xe,et;typeof SuppressedError==\"function\"&&SuppressedError,pe.prototype={clone(){return new pe(this.x,this.y)},add(r){return this.clone()._add(r)},sub(r){return this.clone()._sub(r)},multByPoint(r){return this.clone()._multByPoint(r)},divByPoint(r){return this.clone()._divByPoint(r)},mult(r){return this.clone()._mult(r)},div(r){return this.clone()._div(r)},rotate(r){return this.clone()._rotate(r)},rotateAround(r,e){return this.clone()._rotateAround(r,e)},matMult(r){return this.clone()._matMult(r)},unit(){return this.clone()._unit()},perp(){return this.clone()._perp()},round(){return this.clone()._round()},mag(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals(r){return this.x===r.x&&this.y===r.y},dist(r){return Math.sqrt(this.distSqr(r))},distSqr(r){let e=r.x-this.x,i=r.y-this.y;return e*e+i*i},angle(){return Math.atan2(this.y,this.x)},angleTo(r){return Math.atan2(this.y-r.y,this.x-r.x)},angleWith(r){return this.angleWithSep(r.x,r.y)},angleWithSep(r,e){return Math.atan2(this.x*e-this.y*r,this.x*r+this.y*e)},_matMult(r){let e=r[2]*this.x+r[3]*this.y;return this.x=r[0]*this.x+r[1]*this.y,this.y=e,this},_add(r){return this.x+=r.x,this.y+=r.y,this},_sub(r){return this.x-=r.x,this.y-=r.y,this},_mult(r){return this.x*=r,this.y*=r,this},_div(r){return this.x/=r,this.y/=r,this},_multByPoint(r){return this.x*=r.x,this.y*=r.y,this},_divByPoint(r){return this.x/=r.x,this.y/=r.y,this},_unit(){return this._div(this.mag()),this},_perp(){let r=this.y;return this.y=this.x,this.x=-r,this},_rotate(r){let e=Math.cos(r),i=Math.sin(r),o=i*this.x+e*this.y;return this.x=e*this.x-i*this.y,this.y=o,this},_rotateAround(r,e){let i=Math.cos(r),o=Math.sin(r),a=e.y+o*(this.x-e.x)+i*(this.y-e.y);return this.x=e.x+i*(this.x-e.x)-o*(this.y-e.y),this.y=a,this},_round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},constructor:pe},pe.convert=function(r){if(r instanceof pe)return r;if(Array.isArray(r))return new pe(+r[0],+r[1]);if(r.x!==void 0&&r.y!==void 0)return new pe(+r.x,+r.y);throw new Error(\"Expected [x, y] or {x, y} point format\")};var pt=(function(){if(et)return xe;function r(e,i,o,a){this.cx=3*e,this.bx=3*(o-e)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*i,this.by=3*(a-i)-this.cy,this.ay=1-this.cy-this.by,this.p1x=e,this.p1y=i,this.p2x=o,this.p2y=a}return et=1,xe=r,r.prototype={sampleCurveX:function(e){return((this.ax*e+this.bx)*e+this.cx)*e},sampleCurveY:function(e){return((this.ay*e+this.by)*e+this.cy)*e},sampleCurveDerivativeX:function(e){return(3*this.ax*e+2*this.bx)*e+this.cx},solveCurveX:function(e,i){if(i===void 0&&(i=1e-6),e<0)return 0;if(e>1)return 1;for(var o=e,a=0;a<8;a++){var l=this.sampleCurveX(o)-e;if(Math.abs(l)l?p=o:g=o,o=.5*(g-p)+p;return o},solve:function(e,i){return this.sampleCurveY(this.solveCurveX(e,i))}},xe})(),Ge=Ve(pt);let Ye,Fe;function He(){return Ye!=null||(Ye=typeof OffscreenCanvas<\"u\"&&new OffscreenCanvas(1,1).getContext(\"2d\")&&typeof createImageBitmap==\"function\"),Ye}function st(){if(Fe==null&&(Fe=!1,He())){let e=new OffscreenCanvas(5,5).getContext(\"2d\",{willReadFrequently:!0});if(e){for(let o=0;o<25;o++){let a=4*o;e.fillStyle=`rgb(${a},${a+1},${a+2})`,e.fillRect(o%5,Math.floor(o/5),1,1)}let i=e.getImageData(0,0,5,5).data;for(let o=0;o<100;o++)if(o%4!=3&&i[o]!==o){Fe=!0;break}}}return Fe||!1}var le=1e-6,ut=typeof Float32Array<\"u\"?Float32Array:Array;function ei(){var r=new ut(9);return ut!=Float32Array&&(r[1]=0,r[2]=0,r[3]=0,r[5]=0,r[6]=0,r[7]=0),r[0]=1,r[4]=1,r[8]=1,r}function Qi(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[5]=1,r[6]=0,r[7]=0,r[8]=0,r[9]=0,r[10]=1,r[11]=0,r[12]=0,r[13]=0,r[14]=0,r[15]=1,r}function Ti(){var r=new ut(3);return ut!=Float32Array&&(r[0]=0,r[1]=0,r[2]=0),r}function Fi(r){var e=r[0],i=r[1],o=r[2];return Math.sqrt(e*e+i*i+o*o)}function it(r,e,i){var o=new ut(3);return o[0]=r,o[1]=e,o[2]=i,o}function W(r,e,i){return r[0]=e[0]+i[0],r[1]=e[1]+i[1],r[2]=e[2]+i[2],r}function K(r,e,i){return r[0]=e[0]*i,r[1]=e[1]*i,r[2]=e[2]*i,r}function ee(r,e,i){var o=e[0],a=e[1],l=e[2],u=i[0],p=i[1],g=i[2];return r[0]=a*g-l*p,r[1]=l*u-o*g,r[2]=o*p-a*u,r}var ve,Me=Fi;function je(r,e,i){var o=e[0],a=e[1],l=e[2],u=e[3];return r[0]=i[0]*o+i[4]*a+i[8]*l+i[12]*u,r[1]=i[1]*o+i[5]*a+i[9]*l+i[13]*u,r[2]=i[2]*o+i[6]*a+i[10]*l+i[14]*u,r[3]=i[3]*o+i[7]*a+i[11]*l+i[15]*u,r}function Oe(){var r=new ut(4);return ut!=Float32Array&&(r[0]=0,r[1]=0,r[2]=0),r[3]=1,r}function $e(r,e,i,o){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:\"zyx\",l=Math.PI/360;e*=l,o*=l,i*=l;var u=Math.sin(e),p=Math.cos(e),g=Math.sin(i),m=Math.cos(i),v=Math.sin(o),_=Math.cos(o);switch(a){case\"xyz\":r[0]=u*m*_+p*g*v,r[1]=p*g*_-u*m*v,r[2]=p*m*v+u*g*_,r[3]=p*m*_-u*g*v;break;case\"xzy\":r[0]=u*m*_-p*g*v,r[1]=p*g*_-u*m*v,r[2]=p*m*v+u*g*_,r[3]=p*m*_+u*g*v;break;case\"yxz\":r[0]=u*m*_+p*g*v,r[1]=p*g*_-u*m*v,r[2]=p*m*v-u*g*_,r[3]=p*m*_+u*g*v;break;case\"yzx\":r[0]=u*m*_+p*g*v,r[1]=p*g*_+u*m*v,r[2]=p*m*v-u*g*_,r[3]=p*m*_-u*g*v;break;case\"zxy\":r[0]=u*m*_-p*g*v,r[1]=p*g*_+u*m*v,r[2]=p*m*v+u*g*_,r[3]=p*m*_-u*g*v;break;case\"zyx\":r[0]=u*m*_-p*g*v,r[1]=p*g*_+u*m*v,r[2]=p*m*v-u*g*_,r[3]=p*m*_+u*g*v;break;default:throw new Error(\"Unknown angle order \"+a)}return r}function Xe(){var r=new ut(2);return ut!=Float32Array&&(r[0]=0,r[1]=0),r}function ot(r,e){var i=new ut(2);return i[0]=r,i[1]=e,i}Ti(),ve=new ut(4),ut!=Float32Array&&(ve[0]=0,ve[1]=0,ve[2]=0,ve[3]=0),Ti(),it(1,0,0),it(0,1,0),Oe(),Oe(),ei(),Xe();let qe=8192;function vt(r,e,i){return e*(qe/(r.tileSize*Math.pow(2,i-r.tileID.overscaledZ)))}function mt(r){return r instanceof Error?r:new Error(typeof r==\"string\"?r:String(r))}function Si(r,e){return(r%e+e)%e}function Bi(r,e,i){return r*(1-i)+e*i}function cr(r){if(r<=0)return 0;if(r>=1)return 1;let e=r*r,i=e*r;return 4*(r<.5?i:3*(r-e)+i-.75)}function ur(r,e,i,o){let a=new Ge(r,e,i,o);return l=>a.solve(l)}let un=ur(.25,.1,.25,1);function ti(r,e,i){return Math.min(i,Math.max(e,r))}function $r(r,e,i){let o=i-e,a=((r-e)%o+o)%o+e;return a===e?i:a}function Mi(r,...e){for(let i of e)for(let o in i)r[o]=i[o];return r}let fe=1;function ke(r,e,i){let o={};for(let a in r)o[a]=e.call(this,r[a],a,r);return o}function Ne(r,e,i){let o={};for(let a in r)e.call(this,r[a],a,r)&&(o[a]=r[a]);return o}function De(r){return Array.isArray(r)?r.map(De):typeof r==\"object\"&&r?ke(r,De):r}let Tt={};function xt(r){Tt[r]||(typeof console<\"u\"&&console.warn(r),Tt[r]=!0)}function ht(r,e,i){return(i.y-r.y)*(e.x-r.x)>(e.y-r.y)*(i.x-r.x)}function zt(r){return typeof WorkerGlobalScope<\"u\"&&r!==void 0&&r instanceof WorkerGlobalScope}let ci=null;function xr(r){return typeof ImageBitmap<\"u\"&&r instanceof ImageBitmap}let So=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=\";function Mo(r,e,i,o,a){return h(this,void 0,void 0,(function*(){if(typeof VideoFrame>\"u\")throw new Error(\"VideoFrame not supported\");let l=new VideoFrame(r,{timestamp:0});try{let u=l?.format;if(!u||!u.startsWith(\"BGR\")&&!u.startsWith(\"RGB\"))throw new Error(`Unrecognized format ${u}`);let p=u.startsWith(\"BGR\"),g=new Uint8ClampedArray(o*a*4);if(yield l.copyTo(g,(function(m,v,_,T,b){let P=4*Math.max(-v,0),C=(Math.max(0,_)-_)*T*4+P,A=4*T,z=Math.max(0,v),L=Math.max(0,_);return{rect:{x:z,y:L,width:Math.min(m.width,v+T)-z,height:Math.min(m.height,_+b)-L},layout:[{offset:C,stride:A}]}})(r,e,i,o,a)),p)for(let m=0;m{r.removeEventListener(e,i,o)}}}function Pi(r){return r*Math.PI/180}function hr(r){return r/Math.PI*180}let js={touchstart:!0,touchmove:!0,touchmoveWindow:!0,touchend:!0,touchcancel:!0},Ns={dblclick:!0,click:!0,mouseover:!0,mouseout:!0,mousedown:!0,mousemove:!0,mousemoveWindow:!0,mouseup:!0,mouseupWindow:!0,contextmenu:!0,wheel:!0},ya=\"AbortError\";class Po extends Error{constructor(e=ya){super(e instanceof Error?e.message:e),this.name=ya,e instanceof Error&&e.stack&&(this.stack=e.stack)}}function dc(r){return r instanceof Error&&r.name===ya}function va(r){if(r.aborted)throw new Po(r.reason)}let Wr={MAX_PARALLEL_IMAGE_REQUESTS:16,MAX_PARALLEL_IMAGE_REQUESTS_PER_FRAME:8,MAX_TILE_CACHE_ZOOM_LEVELS:5,REGISTERED_PROTOCOLS:{},WORKER_URL:\"\"};function Ar(r){return Wr.REGISTERED_PROTOCOLS[r.substring(0,r.indexOf(\"://\"))]}let tr=\"global-dispatcher\";class Nn extends Error{constructor(e,i,o,a){super(`AJAXError: ${i} (${e}): ${o}`),this.status=e,this.statusText=i,this.url=o,this.body=a}}let Us=()=>{var r;return zt(self)?(r=self.worker)===null||r===void 0?void 0:r.referrer:(window.location.protocol===\"blob:\"?window.parent:window).location.href},hn=function(r,e){return h(this,void 0,void 0,(function*(){var i,o;if(r.url.includes(\"://\")&&!/^https?:|^file:/.test(r.url)){let a=Ar(r.url);if(a){let l=yield a(r,e);return l.data||r.type!==\"arrayBuffer\"?l:Mi(l,{data:new ArrayBuffer(0)})}if(zt(self)&&(!((i=self.worker)===null||i===void 0)&&i.actor))return self.worker.actor.sendAsync({type:\"GR\",data:r,targetMapId:tr},e)}if(!(a=>{var l;return a.startsWith(\"file:\")||((l=Us())===null||l===void 0?void 0:l.startsWith(\"file:\"))&&!/^\\w+:/.test(a)})(r.url)){if(fetch&&Request&&AbortController&&Object.hasOwn(Request.prototype,\"signal\"))return(function(a,l){return h(this,void 0,void 0,(function*(){let u=new Request(a.url,{method:a.method||\"GET\",body:a.body,credentials:a.credentials,headers:a.headers,cache:a.cache,referrer:Us(),referrerPolicy:a.referrerPolicy,signal:l.signal}),p,g;a.type!==\"json\"||u.headers.has(\"Accept\")||u.headers.set(\"Accept\",\"application/json\");try{p=yield fetch(u)}catch(v){throw dc(v)?v:new Nn(0,mt(v).message,a.url,new Blob)}if(!p.ok){let v=yield p.blob();throw new Nn(p.status,p.statusText,a.url,v)}g=a.type===\"arrayBuffer\"||a.type===\"image\"?p.arrayBuffer():a.type===\"json\"?p.json():p.text();let m=yield g;return va(l.signal),{data:m,cacheControl:p.headers.get(\"Cache-Control\"),expires:p.headers.get(\"Expires\"),etag:p.headers.get(\"ETag\")}}))})(r,e);if(zt(self)&&(!((o=self.worker)===null||o===void 0)&&o.actor))return self.worker.actor.sendAsync({type:\"GR\",data:r,mustQueue:!0,targetMapId:tr},e)}return(function(a,l){return new Promise(((u,p)=>{var g;let m=new XMLHttpRequest;m.open(a.method||\"GET\",a.url,!0),a.type!==\"arrayBuffer\"&&a.type!==\"image\"||(m.responseType=\"arraybuffer\");for(let v in a.headers)m.setRequestHeader(v,a.headers[v]);a.type===\"json\"&&(m.responseType=\"text\",!((g=a.headers)===null||g===void 0)&&g.Accept||m.setRequestHeader(\"Accept\",\"application/json\")),m.withCredentials=a.credentials===\"include\",m.onerror=()=>{p(new Error(m.statusText))},m.onload=()=>{if(!l.signal.aborted)if((m.status>=200&&m.status<300||m.status===0)&&m.response!==null){let v=m.response;if(a.type===\"json\")try{v=JSON.parse(m.response)}catch(_){return void p(_)}u({data:v,cacheControl:m.getResponseHeader(\"Cache-Control\"),expires:m.getResponseHeader(\"Expires\"),etag:m.getResponseHeader(\"ETag\")})}else{let v=new Blob([m.response],{type:m.getResponseHeader(\"Content-Type\")});p(new Nn(m.status,m.statusText,a.url,v))}},l.signal.addEventListener(\"abort\",(()=>{m.abort(),p(new Po(l.signal.reason))})),m.send(a.body)}))})(r,e)}))};function dr(r){if(!r||r.indexOf(\"://\")<=0||r.startsWith(\"data:image/\")||r.startsWith(\"blob:\"))return!0;let e=new URL(r),i=window.location;return e.protocol===i.protocol&&e.host===i.host}function Un(r,e,i){var o;!((o=i[r])===null||o===void 0)&&o.includes(e)||(i[r]||(i[r]=[]),i[r].push(e))}function dn(r,e,i){if(i?.[r]){let o=i[r].indexOf(e);o!==-1&&i[r].splice(o,1)}}class Co{constructor(e,i={}){Mi(this,i),this.type=e}}class qn extends Co{constructor(e,i={}){super(\"error\",Mi({error:e},i))}}class xa{on(e,i){return this._listeners||(this._listeners={}),Un(e,i,this._listeners),{unsubscribe:()=>{this.off(e,i)}}}off(e,i){return dn(e,i,this._listeners),dn(e,i,this._oneTimeListeners),this}once(e,i){return i?(this._oneTimeListeners||(this._oneTimeListeners={}),Un(e,i,this._oneTimeListeners),this):new Promise((o=>this.once(e,o)))}fire(e,i){var o,a;typeof e==\"string\"&&(e=new Co(e,i||{}));let l=e.type;if(this.listens(l)){e.target=this;let u=!((o=this._listeners)===null||o===void 0)&&o[l]?this._listeners[l].slice():[];for(let m of u)m.call(this,e);let p=!((a=this._oneTimeListeners)===null||a===void 0)&&a[l]?this._oneTimeListeners[l].slice():[];for(let m of p)dn(l,m,this._oneTimeListeners),m.call(this,e);let g=this._eventedParent;g&&(Mi(e,typeof this._eventedParentData==\"function\"?this._eventedParentData():this._eventedParentData),g.fire(e))}else e instanceof qn&&console.error(e.error);return this}listens(e){var i,o,a,l,u;return((o=(i=this._listeners)===null||i===void 0?void 0:i[e])===null||o===void 0?void 0:o.length)>0||((l=(a=this._oneTimeListeners)===null||a===void 0?void 0:a[e])===null||l===void 0?void 0:l.length)>0||((u=this._eventedParent)===null||u===void 0?void 0:u.listens(e))}setEventedParent(e,i){return this._eventedParent=e,this._eventedParentData=i,this}}var de={$version:8,$root:{version:{required:!0,type:\"enum\",values:[8]},name:{type:\"string\"},metadata:{type:\"*\"},center:{type:\"array\",value:\"number\",length:2},centerAltitude:{type:\"number\"},zoom:{type:\"number\"},bearing:{type:\"number\",default:0,period:360,units:\"degrees\"},pitch:{type:\"number\",default:0,units:\"degrees\"},roll:{type:\"number\",default:0,units:\"degrees\"},state:{type:\"state\",default:{}},light:{type:\"light\"},sky:{type:\"sky\"},projection:{type:\"projection\"},terrain:{type:\"terrain\"},sources:{required:!0,type:\"sources\"},sprite:{type:\"sprite\"},glyphs:{type:\"string\"},\"font-faces\":{type:\"fontFaces\"},transition:{type:\"transition\"},layers:{required:!0,type:\"array\",value:\"layer\"}},sources:{\"*\":{type:\"source\"}},source:[\"source_vector\",\"source_raster\",\"source_raster_dem\",\"source_geojson\",\"source_video\",\"source_image\"],source_vector:{type:{required:!0,type:\"enum\",values:{vector:{}}},url:{type:\"string\"},tiles:{type:\"array\",value:\"string\"},bounds:{type:\"array\",value:\"number\",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:\"enum\",values:{xyz:{},tms:{}},default:\"xyz\"},minzoom:{type:\"number\",default:0},maxzoom:{type:\"number\",default:22},attribution:{type:\"string\"},promoteId:{type:\"promoteId\"},volatile:{type:\"boolean\",default:!1},encoding:{type:\"enum\",values:{mvt:{},mlt:{}},default:\"mvt\"},\"*\":{type:\"*\"}},source_raster:{type:{required:!0,type:\"enum\",values:{raster:{}}},url:{type:\"string\"},tiles:{type:\"array\",value:\"string\"},bounds:{type:\"array\",value:\"number\",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:\"number\",default:0},maxzoom:{type:\"number\",default:22},tileSize:{type:\"number\",default:512,units:\"pixels\"},scheme:{type:\"enum\",values:{xyz:{},tms:{}},default:\"xyz\"},attribution:{type:\"string\"},volatile:{type:\"boolean\",default:!1},\"*\":{type:\"*\"}},source_raster_dem:{type:{required:!0,type:\"enum\",values:{\"raster-dem\":{}}},url:{type:\"string\"},tiles:{type:\"array\",value:\"string\"},bounds:{type:\"array\",value:\"number\",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:\"number\",default:0},maxzoom:{type:\"number\",default:22},tileSize:{type:\"number\",default:512,units:\"pixels\"},attribution:{type:\"string\"},encoding:{type:\"enum\",values:{terrarium:{},mapbox:{},custom:{}},default:\"mapbox\"},redFactor:{type:\"number\",default:1},blueFactor:{type:\"number\",default:1},greenFactor:{type:\"number\",default:1},baseShift:{type:\"number\",default:0},volatile:{type:\"boolean\",default:!1},\"*\":{type:\"*\"}},source_geojson:{type:{required:!0,type:\"enum\",values:{geojson:{}}},data:{required:!0,type:\"*\"},maxzoom:{type:\"number\",default:18},attribution:{type:\"string\"},buffer:{type:\"number\",default:128,maximum:512,minimum:0},filter:{type:\"filter\"},tolerance:{type:\"number\",default:.375},cluster:{type:\"boolean\",default:!1},clusterRadius:{type:\"number\",default:50,minimum:0},clusterMaxZoom:{type:\"number\"},clusterMinPoints:{type:\"number\"},clusterProperties:{type:\"*\"},lineMetrics:{type:\"boolean\",default:!1},generateId:{type:\"boolean\",default:!1},promoteId:{type:\"promoteId\"}},source_video:{type:{required:!0,type:\"enum\",values:{video:{}}},urls:{required:!0,type:\"array\",value:\"string\"},coordinates:{required:!0,type:\"array\",length:4,value:{type:\"array\",length:2,value:\"number\"}}},source_image:{type:{required:!0,type:\"enum\",values:{image:{}}},url:{required:!0,type:\"string\"},coordinates:{required:!0,type:\"array\",length:4,value:{type:\"array\",length:2,value:\"number\"}}},layer:{id:{type:\"string\",required:!0},type:{type:\"enum\",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},\"fill-extrusion\":{},raster:{},hillshade:{},\"color-relief\":{},background:{}},required:!0},metadata:{type:\"*\"},source:{type:\"string\"},\"source-layer\":{type:\"string\"},minzoom:{type:\"number\",minimum:0,maximum:24},maxzoom:{type:\"number\",minimum:0,maximum:24},filter:{type:\"filter\"},layout:{type:\"layout\"},paint:{type:\"paint\"}},layout:[\"layout_fill\",\"layout_line\",\"layout_circle\",\"layout_heatmap\",\"layout_fill-extrusion\",\"layout_symbol\",\"layout_raster\",\"layout_hillshade\",\"layout_color-relief\",\"layout_background\"],layout_background:{visibility:{type:\"enum\",values:{visible:{},none:{}},default:\"visible\",expression:{interpolated:!1,parameters:[\"global-state\"]},\"property-type\":\"data-constant\"}},layout_fill:{\"fill-sort-key\":{type:\"number\",expression:{interpolated:!1,parameters:[\"zoom\",\"feature\"]},\"property-type\":\"data-driven\"},visibility:{type:\"enum\",values:{visible:{},none:{}},default:\"visible\",expression:{interpolated:!1,parameters:[\"global-state\"]},\"property-type\":\"data-constant\"}},layout_circle:{\"circle-sort-key\":{type:\"number\",expression:{interpolated:!1,parameters:[\"zoom\",\"feature\"]},\"property-type\":\"data-driven\"},visibility:{type:\"enum\",values:{visible:{},none:{}},default:\"visible\",expression:{interpolated:!1,parameters:[\"global-state\"]},\"property-type\":\"data-constant\"}},layout_heatmap:{visibility:{type:\"enum\",values:{visible:{},none:{}},default:\"visible\",expression:{interpolated:!1,parameters:[\"global-state\"]},\"property-type\":\"data-constant\"}},\"layout_fill-extrusion\":{visibility:{type:\"enum\",values:{visible:{},none:{}},default:\"visible\",expression:{interpolated:!1,parameters:[\"global-state\"]},\"property-type\":\"data-constant\"}},layout_line:{\"line-cap\":{type:\"enum\",values:{butt:{},round:{},square:{}},default:\"butt\",expression:{interpolated:!1,parameters:[\"zoom\",\"feature\"]},\"property-type\":\"data-driven\"},\"line-join\":{type:\"enum\",values:{bevel:{},round:{},miter:{}},default:\"miter\",expression:{interpolated:!1,parameters:[\"zoom\",\"feature\"]},\"property-type\":\"data-driven\"},\"line-miter-limit\":{type:\"number\",default:2,requires:[{\"line-join\":\"miter\"}],expression:{interpolated:!0,parameters:[\"zoom\",\"feature\"]},\"property-type\":\"data-driven\"},\"line-round-limit\":{type:\"number\",default:1.05,requires:[{\"line-join\":\"round\"}],expression:{interpolated:!0,parameters:[\"zoom\",\"feature\"]},\"property-type\":\"data-driven\"},\"line-sort-key\":{type:\"number\",expression:{interpolated:!1,parameters:[\"zoom\",\"feature\"]},\"property-type\":\"data-driven\"},visibility:{type:\"enum\",values:{visible:{},none:{}},default:\"visible\",expression:{interpolated:!1,parameters:[\"global-state\"]},\"property-type\":\"data-constant\"}},layout_symbol:{\"symbol-placement\":{type:\"enum\",values:{point:{},line:{},\"line-center\":{}},default:\"point\",expression:{interpolated:!1,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"symbol-spacing\":{type:\"number\",default:250,minimum:1,units:\"pixels\",requires:[{\"symbol-placement\":\"line\"}],expression:{interpolated:!0,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"symbol-avoid-edges\":{type:\"boolean\",default:!1,expression:{interpolated:!1,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"symbol-sort-key\":{type:\"number\",expression:{interpolated:!1,parameters:[\"zoom\",\"feature\"]},\"property-type\":\"data-driven\"},\"symbol-z-order\":{type:\"enum\",values:{auto:{},\"viewport-y\":{},source:{}},default:\"auto\",expression:{interpolated:!1,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"icon-allow-overlap\":{type:\"boolean\",default:!1,requires:[\"icon-image\",{\"!\":\"icon-overlap\"}],expression:{interpolated:!1,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"icon-overlap\":{type:\"enum\",values:{never:{},always:{},cooperative:{}},requires:[\"icon-image\"],expression:{interpolated:!1,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"icon-ignore-placement\":{type:\"boolean\",default:!1,requires:[\"icon-image\"],expression:{interpolated:!1,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"icon-optional\":{type:\"boolean\",default:!1,requires:[\"icon-image\",\"text-field\"],expression:{interpolated:!1,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"icon-rotation-alignment\":{type:\"enum\",values:{map:{},viewport:{},auto:{}},default:\"auto\",requires:[\"icon-image\"],expression:{interpolated:!1,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"icon-size\":{type:\"number\",default:1,minimum:0,units:\"factor of the original icon size\",requires:[\"icon-image\"],expression:{interpolated:!0,parameters:[\"zoom\",\"feature\"]},\"property-type\":\"data-driven\"},\"icon-text-fit\":{type:\"enum\",values:{none:{},width:{},height:{},both:{}},default:\"none\",requires:[\"icon-image\",\"text-field\"],expression:{interpolated:!1,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"icon-text-fit-padding\":{type:\"array\",value:\"number\",length:4,default:[0,0,0,0],units:\"pixels\",requires:[\"icon-image\",\"text-field\",{\"icon-text-fit\":[\"both\",\"width\",\"height\"]}],expression:{interpolated:!0,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"icon-image\":{type:\"resolvedImage\",tokens:!0,expression:{interpolated:!1,parameters:[\"zoom\",\"feature\"]},\"property-type\":\"data-driven\"},\"icon-rotate\":{type:\"number\",default:0,period:360,units:\"degrees\",requires:[\"icon-image\"],expression:{interpolated:!0,parameters:[\"zoom\",\"feature\"]},\"property-type\":\"data-driven\"},\"icon-padding\":{type:\"padding\",default:[2],units:\"pixels\",requires:[\"icon-image\"],expression:{interpolated:!0,parameters:[\"zoom\",\"feature\"]},\"property-type\":\"data-driven\"},\"icon-keep-upright\":{type:\"boolean\",default:!1,requires:[\"icon-image\",{\"icon-rotation-alignment\":\"map\"},{\"symbol-placement\":[\"line\",\"line-center\"]}],expression:{interpolated:!1,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"icon-offset\":{type:\"array\",value:\"number\",length:2,default:[0,0],requires:[\"icon-image\"],expression:{interpolated:!0,parameters:[\"zoom\",\"feature\"]},\"property-type\":\"data-driven\"},\"icon-anchor\":{type:\"enum\",values:{center:{},left:{},right:{},top:{},bottom:{},\"top-left\":{},\"top-right\":{},\"bottom-left\":{},\"bottom-right\":{}},default:\"center\",requires:[\"icon-image\"],expression:{interpolated:!1,parameters:[\"zoom\",\"feature\"]},\"property-type\":\"data-driven\"},\"icon-pitch-alignment\":{type:\"enum\",values:{map:{},viewport:{},auto:{}},default:\"auto\",requires:[\"icon-image\"],expression:{interpolated:!1,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"text-pitch-alignment\":{type:\"enum\",values:{map:{},viewport:{},auto:{}},default:\"auto\",requires:[\"text-field\"],expression:{interpolated:!1,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"text-rotation-alignment\":{type:\"enum\",values:{map:{},viewport:{},\"viewport-glyph\":{},auto:{}},default:\"auto\",requires:[\"text-field\"],expression:{interpolated:!1,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"text-field\":{type:\"formatted\",default:\"\",tokens:!0,expression:{interpolated:!1,parameters:[\"zoom\",\"feature\"]},\"property-type\":\"data-driven\"},\"text-font\":{type:\"array\",value:\"string\",default:[\"Open Sans Regular\",\"Arial Unicode MS Regular\"],requires:[\"text-field\"],expression:{interpolated:!1,parameters:[\"zoom\",\"feature\"]},\"property-type\":\"data-driven\"},\"text-size\":{type:\"number\",default:16,minimum:0,units:\"pixels\",requires:[\"text-field\"],expression:{interpolated:!0,parameters:[\"zoom\",\"feature\"]},\"property-type\":\"data-driven\"},\"text-max-width\":{type:\"number\",default:10,minimum:0,units:\"ems\",requires:[\"text-field\"],expression:{interpolated:!0,parameters:[\"zoom\",\"feature\"]},\"property-type\":\"data-driven\"},\"text-line-height\":{type:\"number\",default:1.2,units:\"ems\",requires:[\"text-field\"],expression:{interpolated:!0,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"text-letter-spacing\":{type:\"number\",default:0,units:\"ems\",requires:[\"text-field\"],expression:{interpolated:!0,parameters:[\"zoom\",\"feature\"]},\"property-type\":\"data-driven\"},\"text-justify\":{type:\"enum\",values:{auto:{},left:{},center:{},right:{}},default:\"center\",requires:[\"text-field\"],expression:{interpolated:!1,parameters:[\"zoom\",\"feature\"]},\"property-type\":\"data-driven\"},\"text-radial-offset\":{type:\"number\",units:\"ems\",default:0,requires:[\"text-field\"],\"property-type\":\"data-driven\",expression:{interpolated:!0,parameters:[\"zoom\",\"feature\"]}},\"text-variable-anchor\":{type:\"array\",value:\"enum\",values:{center:{},left:{},right:{},top:{},bottom:{},\"top-left\":{},\"top-right\":{},\"bottom-left\":{},\"bottom-right\":{}},requires:[\"text-field\",{\"symbol-placement\":[\"point\"]}],expression:{interpolated:!1,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"text-variable-anchor-offset\":{type:\"variableAnchorOffsetCollection\",requires:[\"text-field\",{\"symbol-placement\":[\"point\"]}],expression:{interpolated:!0,parameters:[\"zoom\",\"feature\"]},\"property-type\":\"data-driven\"},\"text-anchor\":{type:\"enum\",values:{center:{},left:{},right:{},top:{},bottom:{},\"top-left\":{},\"top-right\":{},\"bottom-left\":{},\"bottom-right\":{}},default:\"center\",requires:[\"text-field\",{\"!\":\"text-variable-anchor\"}],expression:{interpolated:!1,parameters:[\"zoom\",\"feature\"]},\"property-type\":\"data-driven\"},\"text-max-angle\":{type:\"number\",default:45,units:\"degrees\",requires:[\"text-field\",{\"symbol-placement\":[\"line\",\"line-center\"]}],expression:{interpolated:!0,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"text-writing-mode\":{type:\"array\",value:\"enum\",values:{horizontal:{},vertical:{}},requires:[\"text-field\",{\"symbol-placement\":[\"point\"]}],expression:{interpolated:!1,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"text-rotate\":{type:\"number\",default:0,period:360,units:\"degrees\",requires:[\"text-field\"],expression:{interpolated:!0,parameters:[\"zoom\",\"feature\"]},\"property-type\":\"data-driven\"},\"text-padding\":{type:\"number\",default:2,minimum:0,units:\"pixels\",requires:[\"text-field\"],expression:{interpolated:!0,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"text-keep-upright\":{type:\"boolean\",default:!0,requires:[\"text-field\",{\"text-rotation-alignment\":\"map\"},{\"symbol-placement\":[\"line\",\"line-center\"]}],expression:{interpolated:!1,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"text-transform\":{type:\"enum\",values:{none:{},uppercase:{},lowercase:{}},default:\"none\",requires:[\"text-field\"],expression:{interpolated:!1,parameters:[\"zoom\",\"feature\"]},\"property-type\":\"data-driven\"},\"text-offset\":{type:\"array\",value:\"number\",units:\"ems\",length:2,default:[0,0],requires:[\"text-field\",{\"!\":\"text-radial-offset\"}],expression:{interpolated:!0,parameters:[\"zoom\",\"feature\"]},\"property-type\":\"data-driven\"},\"text-allow-overlap\":{type:\"boolean\",default:!1,requires:[\"text-field\",{\"!\":\"text-overlap\"}],expression:{interpolated:!1,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"text-overlap\":{type:\"enum\",values:{never:{},always:{},cooperative:{}},requires:[\"text-field\"],expression:{interpolated:!1,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"text-ignore-placement\":{type:\"boolean\",default:!1,requires:[\"text-field\"],expression:{interpolated:!1,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"text-optional\":{type:\"boolean\",default:!1,requires:[\"text-field\",\"icon-image\"],expression:{interpolated:!1,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},visibility:{type:\"enum\",values:{visible:{},none:{}},default:\"visible\",expression:{interpolated:!1,parameters:[\"global-state\"]},\"property-type\":\"data-constant\"}},layout_raster:{visibility:{type:\"enum\",values:{visible:{},none:{}},default:\"visible\",expression:{interpolated:!1,parameters:[\"global-state\"]},\"property-type\":\"data-constant\"}},layout_hillshade:{visibility:{type:\"enum\",values:{visible:{},none:{}},default:\"visible\",expression:{interpolated:!1,parameters:[\"global-state\"]},\"property-type\":\"data-constant\"}},\"layout_color-relief\":{visibility:{type:\"enum\",values:{visible:{},none:{}},default:\"visible\",expression:{interpolated:!1,parameters:[\"global-state\"]},\"property-type\":\"data-constant\"}},filter:{type:\"boolean\",expression:{interpolated:!1,parameters:[\"zoom\",\"feature\"]},\"property-type\":\"data-driven\"},filter_operator:{type:\"enum\",values:{\"==\":{},\"!=\":{},\">\":{},\">=\":{},\"<\":{},\"<=\":{},in:{},\"!in\":{},all:{},any:{},none:{},has:{},\"!has\":{}}},geometry_type:{type:\"enum\",values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:\"expression\"},stops:{type:\"array\",value:\"function_stop\"},base:{type:\"number\",default:1,minimum:0},property:{type:\"string\",default:\"$zoom\"},type:{type:\"enum\",values:{identity:{},exponential:{},interval:{},categorical:{}},default:\"exponential\"},colorSpace:{type:\"enum\",values:{rgb:{},lab:{},hcl:{}},default:\"rgb\"},default:{type:\"*\",required:!1}},function_stop:{type:\"array\",minimum:0,maximum:24,value:[\"number\",\"color\"],length:2},expression:{type:\"array\",value:\"expression_name\",minimum:1},light:{anchor:{type:\"enum\",default:\"viewport\",values:{map:{},viewport:{}},\"property-type\":\"data-constant\",transition:!1,expression:{interpolated:!1,parameters:[\"zoom\"]}},position:{type:\"array\",default:[1.15,210,30],length:3,value:\"number\",\"property-type\":\"data-constant\",transition:!0,expression:{interpolated:!0,parameters:[\"zoom\"]}},color:{type:\"color\",\"property-type\":\"data-constant\",default:\"#ffffff\",expression:{interpolated:!0,parameters:[\"zoom\"]},transition:!0},intensity:{type:\"number\",\"property-type\":\"data-constant\",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:[\"zoom\"]},transition:!0}},sky:{\"sky-color\":{type:\"color\",\"property-type\":\"data-constant\",default:\"#88C6FC\",expression:{interpolated:!0,parameters:[\"zoom\"]},transition:!0},\"horizon-color\":{type:\"color\",\"property-type\":\"data-constant\",default:\"#ffffff\",expression:{interpolated:!0,parameters:[\"zoom\"]},transition:!0},\"fog-color\":{type:\"color\",\"property-type\":\"data-constant\",default:\"#ffffff\",expression:{interpolated:!0,parameters:[\"zoom\"]},transition:!0},\"fog-ground-blend\":{type:\"number\",\"property-type\":\"data-constant\",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:[\"zoom\"]},transition:!0},\"horizon-fog-blend\":{type:\"number\",\"property-type\":\"data-constant\",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:[\"zoom\"]},transition:!0},\"sky-horizon-blend\":{type:\"number\",\"property-type\":\"data-constant\",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:[\"zoom\"]},transition:!0},\"atmosphere-blend\":{type:\"number\",\"property-type\":\"data-constant\",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:[\"zoom\"]},transition:!0}},terrain:{source:{type:\"string\",required:!0},exaggeration:{type:\"number\",minimum:0,default:1}},projection:{type:{type:\"projectionDefinition\",default:\"mercator\",\"property-type\":\"data-constant\",transition:!1,expression:{interpolated:!0,parameters:[\"zoom\"]}}},paint:[\"paint_fill\",\"paint_line\",\"paint_circle\",\"paint_heatmap\",\"paint_fill-extrusion\",\"paint_symbol\",\"paint_raster\",\"paint_hillshade\",\"paint_color-relief\",\"paint_background\"],paint_fill:{\"fill-antialias\":{type:\"boolean\",default:!0,expression:{interpolated:!1,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"fill-opacity\":{type:\"number\",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[\"zoom\",\"feature\",\"feature-state\"]},\"property-type\":\"data-driven\"},\"fill-color\":{type:\"color\",default:\"#000000\",transition:!0,requires:[{\"!\":\"fill-pattern\"}],expression:{interpolated:!0,parameters:[\"zoom\",\"feature\",\"feature-state\"]},\"property-type\":\"data-driven\"},\"fill-outline-color\":{type:\"color\",transition:!0,requires:[{\"!\":\"fill-pattern\"},{\"fill-antialias\":!0}],expression:{interpolated:!0,parameters:[\"zoom\",\"feature\",\"feature-state\"]},\"property-type\":\"data-driven\"},\"fill-translate\":{type:\"array\",value:\"number\",length:2,default:[0,0],transition:!0,units:\"pixels\",expression:{interpolated:!0,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"fill-translate-anchor\":{type:\"enum\",values:{map:{},viewport:{}},default:\"map\",requires:[\"fill-translate\"],expression:{interpolated:!1,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"fill-pattern\":{type:\"resolvedImage\",transition:!0,expression:{interpolated:!1,parameters:[\"zoom\",\"feature\"]},\"property-type\":\"cross-faded-data-driven\"}},\"paint_fill-extrusion\":{\"fill-extrusion-opacity\":{type:\"number\",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"fill-extrusion-color\":{type:\"color\",default:\"#000000\",transition:!0,requires:[{\"!\":\"fill-extrusion-pattern\"}],expression:{interpolated:!0,parameters:[\"zoom\",\"feature\",\"feature-state\"]},\"property-type\":\"data-driven\"},\"fill-extrusion-translate\":{type:\"array\",value:\"number\",length:2,default:[0,0],transition:!0,units:\"pixels\",expression:{interpolated:!0,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"fill-extrusion-translate-anchor\":{type:\"enum\",values:{map:{},viewport:{}},default:\"map\",requires:[\"fill-extrusion-translate\"],expression:{interpolated:!1,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"fill-extrusion-pattern\":{type:\"resolvedImage\",transition:!0,expression:{interpolated:!1,parameters:[\"zoom\",\"feature\"]},\"property-type\":\"cross-faded-data-driven\"},\"fill-extrusion-height\":{type:\"number\",default:0,minimum:0,units:\"meters\",transition:!0,expression:{interpolated:!0,parameters:[\"zoom\",\"feature\",\"feature-state\"]},\"property-type\":\"data-driven\"},\"fill-extrusion-base\":{type:\"number\",default:0,minimum:0,units:\"meters\",transition:!0,requires:[\"fill-extrusion-height\"],expression:{interpolated:!0,parameters:[\"zoom\",\"feature\",\"feature-state\"]},\"property-type\":\"data-driven\"},\"fill-extrusion-vertical-gradient\":{type:\"boolean\",default:!0,transition:!1,expression:{interpolated:!1,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"}},paint_line:{\"line-opacity\":{type:\"number\",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[\"zoom\",\"feature\",\"feature-state\"]},\"property-type\":\"data-driven\"},\"line-color\":{type:\"color\",default:\"#000000\",transition:!0,requires:[{\"!\":\"line-pattern\"}],expression:{interpolated:!0,parameters:[\"zoom\",\"feature\",\"feature-state\"]},\"property-type\":\"data-driven\"},\"line-translate\":{type:\"array\",value:\"number\",length:2,default:[0,0],transition:!0,units:\"pixels\",expression:{interpolated:!0,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"line-translate-anchor\":{type:\"enum\",values:{map:{},viewport:{}},default:\"map\",requires:[\"line-translate\"],expression:{interpolated:!1,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"line-width\":{type:\"number\",default:1,minimum:0,transition:!0,units:\"pixels\",expression:{interpolated:!0,parameters:[\"zoom\",\"feature\",\"feature-state\"]},\"property-type\":\"data-driven\"},\"line-gap-width\":{type:\"number\",default:0,minimum:0,transition:!0,units:\"pixels\",expression:{interpolated:!0,parameters:[\"zoom\",\"feature\",\"feature-state\"]},\"property-type\":\"data-driven\"},\"line-offset\":{type:\"number\",default:0,transition:!0,units:\"pixels\",expression:{interpolated:!0,parameters:[\"zoom\",\"feature\",\"feature-state\"]},\"property-type\":\"data-driven\"},\"line-blur\":{type:\"number\",default:0,minimum:0,transition:!0,units:\"pixels\",expression:{interpolated:!0,parameters:[\"zoom\",\"feature\",\"feature-state\"]},\"property-type\":\"data-driven\"},\"line-dasharray\":{type:\"array\",value:\"number\",minimum:0,transition:!0,units:\"line widths\",requires:[{\"!\":\"line-pattern\"}],expression:{interpolated:!1,parameters:[\"zoom\",\"feature\"]},\"property-type\":\"cross-faded-data-driven\"},\"line-pattern\":{type:\"resolvedImage\",transition:!0,expression:{interpolated:!1,parameters:[\"zoom\",\"feature\"]},\"property-type\":\"cross-faded-data-driven\"},\"line-gradient\":{type:\"color\",transition:!1,requires:[{\"!\":\"line-dasharray\"},{\"!\":\"line-pattern\"},{source:\"geojson\",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:[\"line-progress\"]},\"property-type\":\"color-ramp\"}},paint_circle:{\"circle-radius\":{type:\"number\",default:5,minimum:0,transition:!0,units:\"pixels\",expression:{interpolated:!0,parameters:[\"zoom\",\"feature\",\"feature-state\"]},\"property-type\":\"data-driven\"},\"circle-color\":{type:\"color\",default:\"#000000\",transition:!0,expression:{interpolated:!0,parameters:[\"zoom\",\"feature\",\"feature-state\"]},\"property-type\":\"data-driven\"},\"circle-blur\":{type:\"number\",default:0,transition:!0,expression:{interpolated:!0,parameters:[\"zoom\",\"feature\",\"feature-state\"]},\"property-type\":\"data-driven\"},\"circle-opacity\":{type:\"number\",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[\"zoom\",\"feature\",\"feature-state\"]},\"property-type\":\"data-driven\"},\"circle-translate\":{type:\"array\",value:\"number\",length:2,default:[0,0],transition:!0,units:\"pixels\",expression:{interpolated:!0,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"circle-translate-anchor\":{type:\"enum\",values:{map:{},viewport:{}},default:\"map\",requires:[\"circle-translate\"],expression:{interpolated:!1,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"circle-pitch-scale\":{type:\"enum\",values:{map:{},viewport:{}},default:\"map\",expression:{interpolated:!1,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"circle-pitch-alignment\":{type:\"enum\",values:{map:{},viewport:{}},default:\"viewport\",expression:{interpolated:!1,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"circle-stroke-width\":{type:\"number\",default:0,minimum:0,transition:!0,units:\"pixels\",expression:{interpolated:!0,parameters:[\"zoom\",\"feature\",\"feature-state\"]},\"property-type\":\"data-driven\"},\"circle-stroke-color\":{type:\"color\",default:\"#000000\",transition:!0,expression:{interpolated:!0,parameters:[\"zoom\",\"feature\",\"feature-state\"]},\"property-type\":\"data-driven\"},\"circle-stroke-opacity\":{type:\"number\",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[\"zoom\",\"feature\",\"feature-state\"]},\"property-type\":\"data-driven\"}},paint_heatmap:{\"heatmap-radius\":{type:\"number\",default:30,minimum:1,transition:!0,units:\"pixels\",expression:{interpolated:!0,parameters:[\"zoom\",\"feature\",\"feature-state\"]},\"property-type\":\"data-driven\"},\"heatmap-weight\":{type:\"number\",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:[\"zoom\",\"feature\",\"feature-state\"]},\"property-type\":\"data-driven\"},\"heatmap-intensity\":{type:\"number\",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"heatmap-color\":{type:\"color\",default:[\"interpolate\",[\"linear\"],[\"heatmap-density\"],0,\"rgba(0, 0, 255, 0)\",.1,\"royalblue\",.3,\"cyan\",.5,\"lime\",.7,\"yellow\",1,\"red\"],transition:!1,expression:{interpolated:!0,parameters:[\"heatmap-density\"]},\"property-type\":\"color-ramp\"},\"heatmap-opacity\":{type:\"number\",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"}},paint_symbol:{\"icon-opacity\":{type:\"number\",default:1,minimum:0,maximum:1,transition:!0,requires:[\"icon-image\"],expression:{interpolated:!0,parameters:[\"zoom\",\"feature\",\"feature-state\"]},\"property-type\":\"data-driven\"},\"icon-color\":{type:\"color\",default:\"#000000\",transition:!0,requires:[\"icon-image\"],expression:{interpolated:!0,parameters:[\"zoom\",\"feature\",\"feature-state\"]},\"property-type\":\"data-driven\"},\"icon-halo-color\":{type:\"color\",default:\"rgba(0, 0, 0, 0)\",transition:!0,requires:[\"icon-image\"],expression:{interpolated:!0,parameters:[\"zoom\",\"feature\",\"feature-state\"]},\"property-type\":\"data-driven\"},\"icon-halo-width\":{type:\"number\",default:0,minimum:0,transition:!0,units:\"pixels\",requires:[\"icon-image\"],expression:{interpolated:!0,parameters:[\"zoom\",\"feature\",\"feature-state\"]},\"property-type\":\"data-driven\"},\"icon-halo-blur\":{type:\"number\",default:0,minimum:0,transition:!0,units:\"pixels\",requires:[\"icon-image\"],expression:{interpolated:!0,parameters:[\"zoom\",\"feature\",\"feature-state\"]},\"property-type\":\"data-driven\"},\"icon-translate\":{type:\"array\",value:\"number\",length:2,default:[0,0],transition:!0,units:\"pixels\",requires:[\"icon-image\"],expression:{interpolated:!0,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"icon-translate-anchor\":{type:\"enum\",values:{map:{},viewport:{}},default:\"map\",requires:[\"icon-image\",\"icon-translate\"],expression:{interpolated:!1,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"text-opacity\":{type:\"number\",default:1,minimum:0,maximum:1,transition:!0,requires:[\"text-field\"],expression:{interpolated:!0,parameters:[\"zoom\",\"feature\",\"feature-state\"]},\"property-type\":\"data-driven\"},\"text-color\":{type:\"color\",default:\"#000000\",transition:!0,overridable:!0,requires:[\"text-field\"],expression:{interpolated:!0,parameters:[\"zoom\",\"feature\",\"feature-state\"]},\"property-type\":\"data-driven\"},\"text-halo-color\":{type:\"color\",default:\"rgba(0, 0, 0, 0)\",transition:!0,requires:[\"text-field\"],expression:{interpolated:!0,parameters:[\"zoom\",\"feature\",\"feature-state\"]},\"property-type\":\"data-driven\"},\"text-halo-width\":{type:\"number\",default:0,minimum:0,transition:!0,units:\"pixels\",requires:[\"text-field\"],expression:{interpolated:!0,parameters:[\"zoom\",\"feature\",\"feature-state\"]},\"property-type\":\"data-driven\"},\"text-halo-blur\":{type:\"number\",default:0,minimum:0,transition:!0,units:\"pixels\",requires:[\"text-field\"],expression:{interpolated:!0,parameters:[\"zoom\",\"feature\",\"feature-state\"]},\"property-type\":\"data-driven\"},\"text-translate\":{type:\"array\",value:\"number\",length:2,default:[0,0],transition:!0,units:\"pixels\",requires:[\"text-field\"],expression:{interpolated:!0,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"text-translate-anchor\":{type:\"enum\",values:{map:{},viewport:{}},default:\"map\",requires:[\"text-field\",\"text-translate\"],expression:{interpolated:!1,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"}},paint_raster:{\"raster-opacity\":{type:\"number\",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"raster-hue-rotate\":{type:\"number\",default:0,period:360,transition:!0,units:\"degrees\",expression:{interpolated:!0,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"raster-brightness-min\":{type:\"number\",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"raster-brightness-max\":{type:\"number\",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"raster-saturation\":{type:\"number\",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"raster-contrast\":{type:\"number\",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},resampling:{type:\"enum\",values:{linear:{},nearest:{}},default:\"linear\",expression:{interpolated:!1,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"raster-resampling\":{type:\"enum\",values:{linear:{},nearest:{}},default:\"linear\",expression:{interpolated:!1,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"raster-fade-duration\":{type:\"number\",default:300,minimum:0,transition:!1,units:\"milliseconds\",expression:{interpolated:!0,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"}},paint_hillshade:{\"hillshade-illumination-direction\":{type:\"numberArray\",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"hillshade-illumination-altitude\":{type:\"numberArray\",default:45,minimum:0,maximum:90,transition:!1,expression:{interpolated:!0,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"hillshade-illumination-anchor\":{type:\"enum\",values:{map:{},viewport:{}},default:\"viewport\",expression:{interpolated:!1,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"hillshade-exaggeration\":{type:\"number\",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"hillshade-shadow-color\":{type:\"colorArray\",default:\"#000000\",transition:!0,expression:{interpolated:!0,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"hillshade-highlight-color\":{type:\"colorArray\",default:\"#FFFFFF\",transition:!0,expression:{interpolated:!0,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"hillshade-accent-color\":{type:\"color\",default:\"#000000\",transition:!0,expression:{interpolated:!0,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"hillshade-method\":{type:\"enum\",values:{standard:{},basic:{},combined:{},igor:{},multidirectional:{}},default:\"standard\",expression:{interpolated:!1,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},resampling:{type:\"enum\",values:{linear:{},nearest:{}},default:\"linear\",expression:{interpolated:!1,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"}},\"paint_color-relief\":{\"color-relief-opacity\":{type:\"number\",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"color-relief-color\":{type:\"color\",transition:!1,expression:{interpolated:!0,parameters:[\"elevation\"]},\"property-type\":\"color-ramp\"},resampling:{type:\"enum\",values:{linear:{},nearest:{}},default:\"linear\",expression:{interpolated:!1,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"}},paint_background:{\"background-color\":{type:\"color\",default:\"#000000\",transition:!0,requires:[{\"!\":\"background-pattern\"}],expression:{interpolated:!0,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"},\"background-pattern\":{type:\"resolvedImage\",transition:!0,expression:{interpolated:!1,parameters:[\"zoom\"]},\"property-type\":\"cross-faded\"},\"background-opacity\":{type:\"number\",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[\"zoom\"]},\"property-type\":\"data-constant\"}},transition:{duration:{type:\"number\",default:300,minimum:0,units:\"milliseconds\"},delay:{type:\"number\",default:0,minimum:0,units:\"milliseconds\"}},\"property-type\":{\"data-driven\":{type:\"property-type\"},\"cross-faded\":{type:\"property-type\"},\"cross-faded-data-driven\":{type:\"property-type\"},\"color-ramp\":{type:\"property-type\"},\"data-constant\":{type:\"property-type\"},constant:{type:\"property-type\"}},promoteId:{\"*\":{type:\"string\"}},interpolation:{type:\"array\",value:\"interpolation_name\",minimum:1},interpolation_name:{type:\"enum\",values:{linear:{syntax:{overloads:[{parameters:[],\"output-type\":\"interpolation\"}],parameters:[]}},exponential:{syntax:{overloads:[{parameters:[\"base\"],\"output-type\":\"interpolation\"}],parameters:[{name:\"base\",type:\"number literal\"}]}},\"cubic-bezier\":{syntax:{overloads:[{parameters:[\"x1\",\"y1\",\"x2\",\"y2\"],\"output-type\":\"interpolation\"}],parameters:[{name:\"x1\",type:\"number literal\"},{name:\"y1\",type:\"number literal\"},{name:\"x2\",type:\"number literal\"},{name:\"y2\",type:\"number literal\"}]}}}}};let qs=[\"type\",\"source\",\"source-layer\",\"minzoom\",\"maxzoom\",\"filter\",\"layout\"];function Gs(r,e){let i={};for(let o in r)o!==\"ref\"&&(i[o]=r[o]);return qs.forEach((o=>{o in e&&(i[o]=e[o])})),i}function yt(r,e){if(Array.isArray(r)){if(!Array.isArray(e)||r.length!==e.length)return!1;for(let i=0;i`:r.itemType.kind===\"value\"?\"array\":`array<${e}>`}return r.kind}let Sa=[Hr,Ie,Ke,rt,Gi,wa,Io,zr,hi(Je),Ta,Ao,Gn,$n,zo];function Zn(r,e){if(e.kind===\"error\")return null;if(r.kind===\"array\"){if(e.kind===\"array\"&&(e.N===0&&e.itemType.kind===\"value\"||!Zn(r.itemType,e.itemType))&&(typeof r.N!=\"number\"||r.N===e.N))return null}else{if(r.kind===e.kind)return null;if(r.kind===\"value\"){for(let i of Sa)if(!Zn(i,e))return null}}return`Expected ${bt(r)} but found ${bt(e)} instead.`}function Do(r,e){return e.some((i=>i.kind===r.kind))}function mn(r,e){return e.some((i=>i===\"null\"?r===null:i===\"array\"?Array.isArray(r):i===\"object\"?r&&!Array.isArray(r)&&typeof r==\"object\":i===typeof r))}function pr(r,e){return r.kind===\"array\"&&e.kind===\"array\"?r.itemType.kind===e.itemType.kind&&typeof r.N==\"number\":r.kind===e.kind}let gc=.96422,gn=.82521,Ma=4/29,Vt=6/29,_c=3*Vt*Vt,yc=Vt*Vt*Vt,ko=Math.PI/180,vc=180/Math.PI;function xc(r){return(r%=360)<0&&(r+=360),r}function bc([r,e,i,o]){let a,l,u=Ws((.2225045*(r=Pa(r))+.7168786*(e=Pa(e))+.0606169*(i=Pa(i)))/1);r===e&&e===i?a=l=u:(a=Ws((.4360747*r+.3850649*e+.1430804*i)/gc),l=Ws((.0139322*r+.0971045*e+.7141733*i)/gn));let p=116*u-16;return[p<0?0:p,500*(a-u),200*(u-l),o]}function Pa(r){return r<=.04045?r/12.92:Math.pow((r+.055)/1.055,2.4)}function Ws(r){return r>yc?Math.pow(r,1/3):r/_c+Ma}function Hs([r,e,i,o]){let a=(r+16)/116,l=isNaN(e)?a:a+e/500,u=isNaN(i)?a:a-i/200;return a=1*Ys(a),l=gc*Ys(l),u=gn*Ys(u),[Xs(3.1338561*l-1.6168667*a-.4906146*u),Xs(-.9787684*l+1.9161415*a+.033454*u),Xs(.0719453*l-.2289914*a+1.4052427*u),o]}function Xs(r){return(r=r<=.00304?12.92*r:1.055*Math.pow(r,1/2.4)-.055)<0?0:r>1?1:r}function Ys(r){return r>Vt?r*r*r:_c*(r-Ma)}let Wu=Object.hasOwn||function(r,e){return Object.prototype.hasOwnProperty.call(r,e)};function Ro(r,e){return Wu(r,e)?r[e]:void 0}function Ca(r){return parseInt(r.padEnd(2,r),16)/255}function wc(r,e){return Wn(e?r/100:r,0,1)}function Wn(r,e,i){return Math.min(Math.max(e,r),i)}function Ks(r){return!r.some(Number.isNaN)}let Lo={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};function Xr(r,e,i){return r+i*(e-r)}function Hn(r,e,i){return r.map(((o,a)=>Xr(o,e[a],i)))}class tt{constructor(e,i,o,a=1,l=!0){this.r=e,this.g=i,this.b=o,this.a=a,l||(this.r*=a,this.g*=a,this.b*=a,a||this.overwriteGetter(\"rgb\",[e,i,o,a]))}static parse(e){if(e instanceof tt)return e;if(typeof e!=\"string\")return;let i=(function(o){if((o=o.toLowerCase().trim())===\"transparent\")return[0,0,0,0];let a=Ro(Lo,o);if(a){let[u,p,g]=a;return[u/255,p/255,g/255,1]}if(o.startsWith(\"#\")&&/^#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/.test(o)){let u=o.length<6?1:2,p=1;return[Ca(o.slice(p,p+=u)),Ca(o.slice(p,p+=u)),Ca(o.slice(p,p+=u)),Ca(o.slice(p,p+u)||\"ff\")]}if(o.startsWith(\"rgb\")){let u=o.match(/^rgba?\\(\\s*([\\de.+-]+)(%)?(?:\\s+|\\s*(,)\\s*)([\\de.+-]+)(%)?(?:\\s+|\\s*(,)\\s*)([\\de.+-]+)(%)?(?:\\s*([,\\/])\\s*([\\de.+-]+)(%)?)?\\s*\\)$/);if(u){let[p,g,m,v,_,T,b,P,C,A,z,L]=u,R=[v||\" \",b||\" \",A].join(\"\");if(R===\" \"||R===\" /\"||R===\",,\"||R===\",,,\"){let F=[m,T,C].join(\"\"),O=F===\"%%%\"?100:F===\"\"?255:0;if(O){let j=[Wn(+g/O,0,1),Wn(+_/O,0,1),Wn(+P/O,0,1),z?wc(+z,L):1];if(Ks(j))return j}}return}}let l=o.match(/^hsla?\\(\\s*([\\de.+-]+)(?:deg)?(?:\\s+|\\s*(,)\\s*)([\\de.+-]+)%(?:\\s+|\\s*(,)\\s*)([\\de.+-]+)%(?:\\s*([,\\/])\\s*([\\de.+-]+)(%)?)?\\s*\\)$/);if(l){let[u,p,g,m,v,_,T,b,P]=l,C=[g||\" \",v||\" \",T].join(\"\");if(C===\" \"||C===\" /\"||C===\",,\"||C===\",,,\"){let A=[+p,Wn(+m,0,100),Wn(+_,0,100),b?wc(+b,P):1];if(Ks(A))return(function([z,L,R,F]){function O(j){let Y=(j+z/30)%12,Q=L*Math.min(R,1-R);return R-Q*Math.max(-1,Math.min(Y-3,9-Y,1))}return z=xc(z),L/=100,R/=100,[O(0),O(8),O(4),F]})(A)}}})(e);return i?new tt(...i,!1):void 0}get rgb(){let{r:e,g:i,b:o,a}=this,l=a||1/0;return this.overwriteGetter(\"rgb\",[e/l,i/l,o/l,a])}get hcl(){return this.overwriteGetter(\"hcl\",(function(e){let[i,o,a,l]=bc(e),u=Math.sqrt(o*o+a*a);return[Math.round(1e4*u)?xc(Math.atan2(a,o)*vc):NaN,u,i,l]})(this.rgb))}get lab(){return this.overwriteGetter(\"lab\",bc(this.rgb))}overwriteGetter(e,i){return Object.defineProperty(this,e,{value:i}),i}toString(){let[e,i,o,a]=this.rgb;return`rgba(${[e,i,o].map((l=>Math.round(255*l))).join(\",\")},${a})`}static interpolate(e,i,o,a=\"rgb\"){switch(a){case\"rgb\":{let[l,u,p,g]=Hn(e.rgb,i.rgb,o);return new tt(l,u,p,g,!1)}case\"hcl\":{let[l,u,p,g]=e.hcl,[m,v,_,T]=i.hcl,b,P;if(isNaN(l)||isNaN(m))isNaN(l)?isNaN(m)?b=NaN:(b=m,p!==1&&p!==0||(P=v)):(b=l,_!==1&&_!==0||(P=u));else{let R=m-l;m>l&&R>180?R-=360:m180&&(R+=360),b=l+o*R}let[C,A,z,L]=(function([R,F,O,j]){return R=isNaN(R)?0:R*ko,Hs([O,Math.cos(R)*F,Math.sin(R)*F,j])})([b,P??Xr(u,v,o),Xr(p,_,o),Xr(g,T,o)]);return new tt(C,A,z,L,!1)}case\"lab\":{let[l,u,p,g]=Hs(Hn(e.lab,i.lab,o));return new tt(l,u,p,g,!1)}}}}tt.black=new tt(0,0,0,1),tt.white=new tt(1,1,1,1),tt.transparent=new tt(0,0,0,0),tt.red=new tt(1,0,0,1);class Js{constructor(e,i,o){this.sensitivity=e?i?\"variant\":\"case\":i?\"accent\":\"base\",this.locale=o,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:\"search\"})}compare(e,i){return this.collator.compare(e,i)}resolvedLocale(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale}}let Hu=[\"bottom\",\"center\",\"top\"];class Qs{constructor(e,i,o,a,l,u){this.text=e,this.image=i,this.scale=o,this.fontStack=a,this.textColor=l,this.verticalAlign=u}}class Vi{constructor(e){this.sections=e}static fromString(e){return new Vi([new Qs(e,null,null,null,null,null)])}isEmpty(){return this.sections.length===0||!this.sections.some((e=>e.text.length!==0||e.image&&e.image.name.length!==0))}static factory(e){return e instanceof Vi?e:Vi.fromString(e)}toString(){return this.sections.length===0?\"\":this.sections.map((e=>e.text)).join(\"\")}}class mi{constructor(e){this.values=e.slice()}static parse(e){if(e instanceof mi)return e;if(typeof e==\"number\")return new mi([e,e,e,e]);if(Array.isArray(e)&&!(e.length<1||e.length>4)){for(let i of e)if(typeof i!=\"number\")return;switch(e.length){case 1:e=[e[0],e[0],e[0],e[0]];break;case 2:e=[e[0],e[1],e[0],e[1]];break;case 3:e=[e[0],e[1],e[2],e[1]]}return new mi(e)}}toString(){return JSON.stringify(this.values)}static interpolate(e,i,o){return new mi(Hn(e.values,i.values,o))}}class Rt{constructor(e){this.values=e.slice()}static parse(e){if(e instanceof Rt)return e;if(typeof e==\"number\")return new Rt([e]);if(Array.isArray(e)){for(let i of e)if(typeof i!=\"number\")return;return new Rt(e)}}toString(){return JSON.stringify(this.values)}static interpolate(e,i,o){return new Rt(Hn(e.values,i.values,o))}}class We{constructor(e){this.values=e.slice()}static parse(e){if(e instanceof We)return e;if(typeof e==\"string\"){let o=tt.parse(e);return o?new We([o]):void 0}if(!Array.isArray(e))return;let i=[];for(let o of e){if(typeof o!=\"string\")return;let a=tt.parse(o);if(!a)return;i.push(a)}return new We(i)}toString(){return JSON.stringify(this.values)}static interpolate(e,i,o,a=\"rgb\"){let l=[];if(e.values.length!=i.values.length)throw new Error(`colorArray: Arrays have mismatched length (${e.values.length} vs. ${i.values.length}), cannot interpolate.`);for(let u=0;u=0&&r<=255&&typeof e==\"number\"&&e>=0&&e<=255&&typeof i==\"number\"&&i>=0&&i<=255?o===void 0||typeof o==\"number\"&&o>=0&&o<=1?null:`Invalid rgba value [${[r,e,i,o].join(\", \")}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${(typeof o==\"number\"?[r,e,i,o]:[r,e,i]).join(\", \")}]: 'r', 'g', and 'b' must be between 0 and 255.`}function Kr(r){if(r===null||typeof r==\"string\"||typeof r==\"boolean\"||typeof r==\"number\"||r instanceof Ei||r instanceof tt||r instanceof Js||r instanceof Vi||r instanceof mi||r instanceof Rt||r instanceof We||r instanceof Ci||r instanceof $i)return!0;if(Array.isArray(r)){for(let e of r)if(!Kr(e))return!1;return!0}if(typeof r==\"object\"){for(let e in r)if(!Kr(r[e]))return!1;return!0}return!1}function qt(r){if(r===null)return Hr;if(typeof r==\"string\")return Ke;if(typeof r==\"boolean\")return rt;if(typeof r==\"number\")return Ie;if(r instanceof tt)return Gi;if(r instanceof Ei)return wa;if(r instanceof Js)return Eo;if(r instanceof Vi)return Io;if(r instanceof mi)return Ta;if(r instanceof Rt)return Ao;if(r instanceof We)return Gn;if(r instanceof Ci)return zo;if(r instanceof $i)return $n;if(Array.isArray(r)){let e=r.length,i;for(let o of r){let a=qt(o);if(i){if(i===a)continue;i=Je;break}i=a}return hi(i||Je,e)}return zr}function _n(r){let e=typeof r;return r===null?\"\":e===\"string\"||e===\"number\"||e===\"boolean\"?String(r):r instanceof tt||r instanceof Ei||r instanceof Vi||r instanceof mi||r instanceof Rt||r instanceof We||r instanceof Ci||r instanceof $i?r.toString():JSON.stringify(r)}class br{constructor(e,i){this.type=e,this.value=i}static parse(e,i){if(e.length!==2)return i.error(`'literal' expression requires exactly one argument, but found ${e.length-1} instead.`);if(!Kr(e[1]))return i.error(\"invalid value\");let o=e[1],a=qt(o),l=i.expectedType;return a.kind!==\"array\"||a.N!==0||!l||l.kind!==\"array\"||typeof l.N==\"number\"&&l.N!==0||(a=l),new br(a,o)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}}let Ea={string:Ke,number:Ie,boolean:rt,object:zr};class ji{constructor(e,i){this.type=e,this.args=i}static parse(e,i){if(e.length<2)return i.error(\"Expected at least one argument.\");let o,a=1,l=e[0];if(l===\"array\"){let p,g;if(e.length>2){let m=e[1];if(typeof m!=\"string\"||!(m in Ea)||m===\"object\")return i.error('The item type argument of \"array\" must be one of string, number, boolean',1);p=Ea[m],a++}else p=Je;if(e.length>3){if(e[2]!==null&&(typeof e[2]!=\"number\"||e[2]<0||e[2]!==Math.floor(e[2])))return i.error('The length argument to \"array\" must be a positive integer literal',2);g=e[2],a++}o=hi(p,g)}else{if(!Ea[l])throw new Error(`Types doesn't contain name = ${l}`);o=Ea[l]}let u=[];for(;ae.outputDefined()))}}let yn={\"to-boolean\":rt,\"to-color\":Gi,\"to-number\":Ie,\"to-string\":Ke};class Dr{constructor(e,i){this.type=e,this.args=i}static parse(e,i){if(e.length<2)return i.error(\"Expected at least one argument.\");let o=e[0];if(!yn[o])throw new Error(`Can't parse ${o} as it is not part of the known types`);if((o===\"to-boolean\"||o===\"to-string\")&&e.length!==2)return i.error(\"Expected one argument.\");let a=yn[o],l=[];for(let u=1;u4?`Invalid rgba value ${JSON.stringify(i)}: expected an array containing either three or four numeric values.`:Xn(i[0],i[1],i[2],i[3]),!o))return new tt(i[0]/255,i[1]/255,i[2]/255,i[3])}throw new Pt(o||`Could not parse color from value '${typeof i==\"string\"?i:JSON.stringify(i)}'`)}case\"padding\":{let i;for(let o of this.args){i=o.evaluate(e);let a=mi.parse(i);if(a)return a}throw new Pt(`Could not parse padding from value '${typeof i==\"string\"?i:JSON.stringify(i)}'`)}case\"numberArray\":{let i;for(let o of this.args){i=o.evaluate(e);let a=Rt.parse(i);if(a)return a}throw new Pt(`Could not parse numberArray from value '${typeof i==\"string\"?i:JSON.stringify(i)}'`)}case\"colorArray\":{let i;for(let o of this.args){i=o.evaluate(e);let a=We.parse(i);if(a)return a}throw new Pt(`Could not parse colorArray from value '${typeof i==\"string\"?i:JSON.stringify(i)}'`)}case\"variableAnchorOffsetCollection\":{let i;for(let o of this.args){i=o.evaluate(e);let a=Ci.parse(i);if(a)return a}throw new Pt(`Could not parse variableAnchorOffsetCollection from value '${typeof i==\"string\"?i:JSON.stringify(i)}'`)}case\"number\":{let i=null;for(let o of this.args){if(i=o.evaluate(e),i===null)return 0;let a=Number(i);if(!isNaN(a))return a}throw new Pt(`Could not convert ${JSON.stringify(i)} to number.`)}case\"formatted\":return Vi.fromString(_n(this.args[0].evaluate(e)));case\"resolvedImage\":return $i.fromString(_n(this.args[0].evaluate(e)));case\"projectionDefinition\":return this.args[0].evaluate(e);default:return _n(this.args[0].evaluate(e))}}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every((e=>e.outputDefined()))}}let Tc=[\"Unknown\",\"Point\",\"LineString\",\"Polygon\"];class el{constructor(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache=new Map,this.availableImages=null,this.canonical=null}id(){return this.feature&&\"id\"in this.feature?this.feature.id:null}geometryType(){return this.feature?typeof this.feature.type==\"number\"?Tc[this.feature.type]:this.feature.type:null}geometry(){return this.feature&&\"geometry\"in this.feature?this.feature.geometry:null}canonicalID(){return this.canonical}properties(){return this.feature&&this.feature.properties||{}}parseColor(e){let i=this._parseColorCache.get(e);return i||(i=tt.parse(e),this._parseColorCache.set(e,i)),i}}class vn{constructor(e,i,o=[],a,l=new Zs,u=[]){this.registry=e,this.path=o,this.key=o.map((p=>`[${p}]`)).join(\"\"),this.scope=l,this.errors=u,this.expectedType=a,this._isConstant=i}parse(e,i,o,a,l={}){return i?this.concat(i,o,a)._parse(e,l):this._parse(e,l)}_parse(e,i){function o(a,l,u){return u===\"assert\"?new ji(l,[a]):u===\"coerce\"?new Dr(l,[a]):a}if(e!==null&&typeof e!=\"string\"&&typeof e!=\"boolean\"&&typeof e!=\"number\"||(e=[\"literal\",e]),Array.isArray(e)){if(e.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use [\"literal\", []].');let a=e[0];if(typeof a!=\"string\")return this.error(`Expression name must be a string, but found ${typeof a} instead. If you wanted a literal array, use [\"literal\", [...]].`,0),null;let l=this.registry[a];if(l){let u=l.parse(e,this);if(!u)return null;if(this.expectedType){let p=this.expectedType,g=u.type;if(p.kind!==\"string\"&&p.kind!==\"number\"&&p.kind!==\"boolean\"&&p.kind!==\"object\"&&p.kind!==\"array\"||g.kind!==\"value\"){if(p.kind===\"projectionDefinition\"&&[\"string\",\"array\"].includes(g.kind)||[\"color\",\"formatted\",\"resolvedImage\"].includes(p.kind)&&[\"value\",\"string\"].includes(g.kind)||[\"padding\",\"numberArray\"].includes(p.kind)&&[\"value\",\"number\",\"array\"].includes(g.kind)||p.kind===\"colorArray\"&&[\"value\",\"string\",\"array\"].includes(g.kind)||p.kind===\"variableAnchorOffsetCollection\"&&[\"value\",\"array\"].includes(g.kind))u=o(u,p,i.typeAnnotation||\"coerce\");else if(this.checkSubtype(p,g))return null}else u=o(u,p,i.typeAnnotation||\"assert\")}if(!(u instanceof br)&&u.type.kind!==\"resolvedImage\"&&this._isConstant(u)){let p=new el;try{u=new br(u.type,u.evaluate(p))}catch(g){return this.error(g.message),null}}return u}return this.error(`Unknown expression \"${a}\". If you wanted a literal array, use [\"literal\", [...]].`,0)}return this.error(e===void 0?\"'undefined' value invalid. Use null instead.\":typeof e==\"object\"?'Bare objects invalid. Use [\"literal\", {...}] instead.':`Expected an array, but found ${typeof e} instead.`)}concat(e,i,o){let a=typeof e==\"number\"?this.path.concat(e):this.path,l=o?this.scope.concat(o):this.scope;return new vn(this.registry,this._isConstant,a,i||null,l,this.errors)}error(e,...i){let o=`${this.key}${i.map((a=>`[${a}]`)).join(\"\")}`;this.errors.push(new ui(o,e))}checkSubtype(e,i){let o=Zn(e,i);return o&&this.error(o),o}}class Ct{constructor(e,i){this.type=i.type,this.bindings=[].concat(e),this.result=i}evaluate(e){return this.result.evaluate(e)}eachChild(e){for(let i of this.bindings)e(i[1]);e(this.result)}static parse(e,i){if(e.length<4)return i.error(`Expected at least 3 arguments, but found ${e.length-1} instead.`);let o=[];for(let l=1;l=o.length)throw new Pt(`Array index out of bounds: ${i} > ${o.length-1}.`);if(i!==Math.floor(i))throw new Pt(`Array index must be an integer, but found ${i} instead.`);return o[i]}eachChild(e){e(this.index),e(this.input)}outputDefined(){return!1}}class Qe{constructor(e,i){this.type=rt,this.needle=e,this.haystack=i}static parse(e,i){if(e.length!==3)return i.error(`Expected 2 arguments, but found ${e.length-1} instead.`);let o=i.parse(e[1],1,Je),a=i.parse(e[2],2,Je);return o&&a?Do(o.type,[rt,Ke,Ie,Hr,Je])?new Qe(o,a):i.error(`Expected first argument to be of type boolean, string, number or null, but found ${bt(o.type)} instead`):null}evaluate(e){let i=this.needle.evaluate(e),o=this.haystack.evaluate(e);if(!o)return!1;if(!mn(i,[\"boolean\",\"string\",\"number\",\"null\"]))throw new Pt(`Expected first argument to be of type boolean, string, number or null, but found ${bt(qt(i))} instead.`);if(!mn(o,[\"string\",\"array\"]))throw new Pt(`Expected second argument to be of type array or string, but found ${bt(qt(o))} instead.`);return o.indexOf(i)>=0}eachChild(e){e(this.needle),e(this.haystack)}outputDefined(){return!0}}class Kn{constructor(e,i,o){this.type=Ie,this.needle=e,this.haystack=i,this.fromIndex=o}static parse(e,i){if(e.length<=2||e.length>=5)return i.error(`Expected 2 or 3 arguments, but found ${e.length-1} instead.`);let o=i.parse(e[1],1,Je),a=i.parse(e[2],2,Je);if(!o||!a)return null;if(!Do(o.type,[rt,Ke,Ie,Hr,Je]))return i.error(`Expected first argument to be of type boolean, string, number or null, but found ${bt(o.type)} instead`);if(e.length===4){let l=i.parse(e[3],3,Ie);return l?new Kn(o,a,l):null}return new Kn(o,a)}evaluate(e){let i=this.needle.evaluate(e),o=this.haystack.evaluate(e);if(!mn(i,[\"boolean\",\"string\",\"number\",\"null\"]))throw new Pt(`Expected first argument to be of type boolean, string, number or null, but found ${bt(qt(i))} instead.`);let a;if(this.fromIndex&&(a=this.fromIndex.evaluate(e)),mn(o,[\"string\"])){let l=o.indexOf(i,a);return l===-1?-1:[...o.slice(0,l)].length}if(mn(o,[\"array\"]))return o.indexOf(i,a);throw new Pt(`Expected second argument to be of type array or string, but found ${bt(qt(o))} instead.`)}eachChild(e){e(this.needle),e(this.haystack),this.fromIndex&&e(this.fromIndex)}outputDefined(){return!1}}class ct{constructor(e,i,o,a,l,u){this.inputType=e,this.type=i,this.input=o,this.cases=a,this.outputs=l,this.otherwise=u}static parse(e,i){if(e.length<5)return i.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if(e.length%2!=1)return i.error(\"Expected an even number of arguments.\");let o,a;i.expectedType&&i.expectedType.kind!==\"value\"&&(a=i.expectedType);let l={},u=[];for(let m=2;mNumber.MAX_SAFE_INTEGER)return T.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);if(typeof P==\"number\"&&Math.floor(P)!==P)return T.error(\"Numeric branch labels must be integer values.\");if(o){if(T.checkSubtype(o,qt(P)))return null}else o=qt(P);if(l[String(P)]!==void 0)return T.error(\"Branch labels must be unique.\");l[String(P)]=u.length}let b=i.parse(_,m,a);if(!b)return null;a=a||b.type,u.push(b)}let p=i.parse(e[1],1,Je);if(!p)return null;let g=i.parse(e[e.length-1],e.length-1,a);return g?p.type.kind!==\"value\"&&i.concat(1).checkSubtype(o,p.type)?null:new ct(o,a,p,l,u,g):null}evaluate(e){let i=this.input.evaluate(e);return(qt(i)===this.inputType&&this.outputs[this.cases[i]]||this.otherwise).evaluate(e)}eachChild(e){e(this.input),this.outputs.forEach(e),e(this.otherwise)}outputDefined(){return this.outputs.every((e=>e.outputDefined()))&&this.otherwise.outputDefined()}}class fr{constructor(e,i,o){this.type=e,this.branches=i,this.otherwise=o}static parse(e,i){if(e.length<4)return i.error(`Expected at least 3 arguments, but found only ${e.length-1}.`);if(e.length%2!=0)return i.error(\"Expected an odd number of arguments.\");let o;i.expectedType&&i.expectedType.kind!==\"value\"&&(o=i.expectedType);let a=[];for(let u=1;ui.outputDefined()))&&this.otherwise.outputDefined()}}class Jn{constructor(e,i,o,a){this.type=e,this.input=i,this.beginIndex=o,this.endIndex=a}static parse(e,i){if(e.length<=2||e.length>=5)return i.error(`Expected 2 or 3 arguments, but found ${e.length-1} instead.`);let o=i.parse(e[1],1,Je),a=i.parse(e[2],2,Ie);if(!o||!a)return null;if(!Do(o.type,[hi(Je),Ke,Je]))return i.error(`Expected first argument to be of type array or string, but found ${bt(o.type)} instead`);if(e.length===4){let l=i.parse(e[3],3,Ie);return l?new Jn(o.type,o,a,l):null}return new Jn(o.type,o,a)}evaluate(e){let i=this.input.evaluate(e),o=this.beginIndex.evaluate(e),a;if(this.endIndex&&(a=this.endIndex.evaluate(e)),mn(i,[\"string\"]))return[...i].slice(o,a).join(\"\");if(mn(i,[\"array\"]))return i.slice(o,a);throw new Pt(`Expected first argument to be of type array or string, but found ${bt(qt(i))} instead.`)}eachChild(e){e(this.input),e(this.beginIndex),this.endIndex&&e(this.endIndex)}outputDefined(){return!1}}function xn(r,e){let i=r.length-1,o,a,l=0,u=i,p=0;for(;l<=u;)if(p=Math.floor((l+u)/2),o=r[p],a=r[p+1],o<=e){if(p===i||ee))throw new Pt(\"Input is not a number.\");u=p-1}return 0}class Qn{constructor(e,i,o){this.type=e,this.input=i,this.labels=[],this.outputs=[];for(let[a,l]of o)this.labels.push(a),this.outputs.push(l)}static parse(e,i){if(e.length-1<4)return i.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if((e.length-1)%2!=0)return i.error(\"Expected an even number of arguments.\");let o=i.parse(e[1],1,Ie);if(!o)return null;let a=[],l=null;i.expectedType&&i.expectedType.kind!==\"value\"&&(l=i.expectedType);for(let u=1;u=p)return i.error('Input/output pairs for \"step\" expressions must be arranged with input values in strictly ascending order.',m);let _=i.parse(g,v,l);if(!_)return null;l=l||_.type,a.push([p,_])}return new Qn(l,o,a)}evaluate(e){let i=this.labels,o=this.outputs;if(i.length===1)return o[0].evaluate(e);let a=this.input.evaluate(e);if(a<=i[0])return o[0].evaluate(e);let l=i.length;return a>=i[l-1]?o[l-1].evaluate(e):o[xn(i,a)].evaluate(e)}eachChild(e){e(this.input);for(let i of this.outputs)e(i)}outputDefined(){return this.outputs.every((e=>e.outputDefined()))}}function tl(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,\"default\")?r.default:r}var Ia,Sc,Mc=(function(){if(Sc)return Ia;function r(e,i,o,a){this.cx=3*e,this.bx=3*(o-e)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*i,this.by=3*(a-i)-this.cy,this.ay=1-this.cy-this.by,this.p1x=e,this.p1y=i,this.p2x=o,this.p2y=a}return Sc=1,Ia=r,r.prototype={sampleCurveX:function(e){return((this.ax*e+this.bx)*e+this.cx)*e},sampleCurveY:function(e){return((this.ay*e+this.by)*e+this.cy)*e},sampleCurveDerivativeX:function(e){return(3*this.ax*e+2*this.bx)*e+this.cx},solveCurveX:function(e,i){if(i===void 0&&(i=1e-6),e<0)return 0;if(e>1)return 1;for(var o=e,a=0;a<8;a++){var l=this.sampleCurveX(o)-e;if(Math.abs(l)l?p=o:g=o,o=.5*(g-p)+p;return o},solve:function(e,i){return this.sampleCurveY(this.solveCurveX(e,i))}},Ia})(),Pc=tl(Mc);class Zt{constructor(e,i,o,a,l){this.type=e,this.operator=i,this.interpolation=o,this.input=a,this.labels=[],this.outputs=[];for(let[u,p]of l)this.labels.push(u),this.outputs.push(p)}static interpolationFactor(e,i,o,a){let l=0;if(e.name===\"exponential\")l=ii(i,e.base,o,a);else if(e.name===\"linear\")l=ii(i,1,o,a);else if(e.name===\"cubic-bezier\"){let u=e.controlPoints;l=new Pc(u[0],u[1],u[2],u[3]).solve(ii(i,1,o,a))}return l}static parse(e,i){let[o,a,l,...u]=e;if(!Array.isArray(a)||a.length===0)return i.error(\"Expected an interpolation type expression.\",1);if(a[0]===\"linear\")a={name:\"linear\"};else if(a[0]===\"exponential\"){let m=a[1];if(typeof m!=\"number\")return i.error(\"Exponential interpolation requires a numeric base.\",1,1);a={name:\"exponential\",base:m}}else{if(a[0]!==\"cubic-bezier\")return i.error(`Unknown interpolation type ${String(a[0])}`,1,0);{let m=a.slice(1);if(m.length!==4||m.some((v=>typeof v!=\"number\"||v<0||v>1)))return i.error(\"Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.\",1);a={name:\"cubic-bezier\",controlPoints:m}}}if(e.length-1<4)return i.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if((e.length-1)%2!=0)return i.error(\"Expected an even number of arguments.\");if(l=i.parse(l,2,Ie),!l)return null;let p=[],g=null;o!==\"interpolate-hcl\"&&o!==\"interpolate-lab\"||i.expectedType==Gn?i.expectedType&&i.expectedType.kind!==\"value\"&&(g=i.expectedType):g=Gi;for(let m=0;m=v)return i.error('Input/output pairs for \"interpolate\" expressions must be arranged with input values in strictly ascending order.',T);let P=i.parse(_,b,g);if(!P)return null;g=g||P.type,p.push([v,P])}return pr(g,Ie)||pr(g,wa)||pr(g,Gi)||pr(g,Ta)||pr(g,Ao)||pr(g,Gn)||pr(g,zo)||pr(g,hi(Ie))?new Zt(g,o,a,l,p):i.error(`Type ${bt(g)} is not interpolatable.`)}evaluate(e){let i=this.labels,o=this.outputs;if(i.length===1)return o[0].evaluate(e);let a=this.input.evaluate(e);if(a<=i[0])return o[0].evaluate(e);let l=i.length;if(a>=i[l-1])return o[l-1].evaluate(e);let u=xn(i,a),p=Zt.interpolationFactor(this.interpolation,a,i[u],i[u+1]),g=o[u].evaluate(e),m=o[u+1].evaluate(e);switch(this.operator){case\"interpolate\":switch(this.type.kind){case\"number\":return Xr(g,m,p);case\"color\":return tt.interpolate(g,m,p);case\"padding\":return mi.interpolate(g,m,p);case\"colorArray\":return We.interpolate(g,m,p);case\"numberArray\":return Rt.interpolate(g,m,p);case\"variableAnchorOffsetCollection\":return Ci.interpolate(g,m,p);case\"array\":return Hn(g,m,p);case\"projectionDefinition\":return Ei.interpolate(g,m,p)}case\"interpolate-hcl\":switch(this.type.kind){case\"color\":return tt.interpolate(g,m,p,\"hcl\");case\"colorArray\":return We.interpolate(g,m,p,\"hcl\")}case\"interpolate-lab\":switch(this.type.kind){case\"color\":return tt.interpolate(g,m,p,\"lab\");case\"colorArray\":return We.interpolate(g,m,p,\"lab\")}}}eachChild(e){e(this.input);for(let i of this.outputs)e(i)}outputDefined(){return this.outputs.every((e=>e.outputDefined()))}}function ii(r,e,i,o){let a=o-i,l=r-i;return a===0?0:e===1?l/a:(Math.pow(e,l)-1)/(Math.pow(e,a)-1)}let Zi={color:tt.interpolate,number:Xr,padding:mi.interpolate,numberArray:Rt.interpolate,colorArray:We.interpolate,variableAnchorOffsetCollection:Ci.interpolate,array:Hn};class Fo{constructor(e,i){this.type=e,this.args=i}static parse(e,i){if(e.length<2)return i.error(\"Expected at least one argument.\");let o=null,a=i.expectedType;a&&a.kind!==\"value\"&&(o=a);let l=[];for(let p of e.slice(1)){let g=i.parse(p,1+l.length,o,void 0,{typeAnnotation:\"omit\"});if(!g)return null;o=o||g.type,l.push(g)}if(!o)throw new Error(\"No output type\");let u=a&&l.some((p=>Zn(a,p.type)));return new Fo(u?Je:o,l)}evaluate(e){let i,o=null,a=0;for(let l of this.args)if(a++,o=l.evaluate(e),o&&o instanceof $i&&!o.available&&(i||(i=o.name),o=null,a===this.args.length&&(o=i)),o!==null)break;return o}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every((e=>e.outputDefined()))}}function Bo(r,e){return r===\"==\"||r===\"!=\"?e.kind===\"boolean\"||e.kind===\"string\"||e.kind===\"number\"||e.kind===\"null\"||e.kind===\"value\":e.kind===\"string\"||e.kind===\"number\"||e.kind===\"value\"}function Jt(r,e,i,o){return o.compare(e,i)===0}function bn(r,e,i){let o=r!==\"==\"&&r!==\"!=\";return class cm{constructor(l,u,p){this.type=rt,this.lhs=l,this.rhs=u,this.collator=p,this.hasUntypedArgument=l.type.kind===\"value\"||u.type.kind===\"value\"}static parse(l,u){if(l.length!==3&&l.length!==4)return u.error(\"Expected two or three arguments.\");let p=l[0],g=u.parse(l[1],1,Je);if(!g)return null;if(!Bo(p,g.type))return u.concat(1).error(`\"${p}\" comparisons are not supported for type '${bt(g.type)}'.`);let m=u.parse(l[2],2,Je);if(!m)return null;if(!Bo(p,m.type))return u.concat(2).error(`\"${p}\" comparisons are not supported for type '${bt(m.type)}'.`);if(g.type.kind!==m.type.kind&&g.type.kind!==\"value\"&&m.type.kind!==\"value\")return u.error(`Cannot compare types '${bt(g.type)}' and '${bt(m.type)}'.`);o&&(g.type.kind===\"value\"&&m.type.kind!==\"value\"?g=new ji(m.type,[g]):g.type.kind!==\"value\"&&m.type.kind===\"value\"&&(m=new ji(g.type,[m])));let v=null;if(l.length===4){if(g.type.kind!==\"string\"&&m.type.kind!==\"string\"&&g.type.kind!==\"value\"&&m.type.kind!==\"value\")return u.error(\"Cannot use collator to compare non-string types.\");if(v=u.parse(l[3],3,Eo),!v)return null}return new cm(g,m,v)}evaluate(l){let u=this.lhs.evaluate(l),p=this.rhs.evaluate(l);if(o&&this.hasUntypedArgument){let g=qt(u),m=qt(p);if(g.kind!==m.kind||g.kind!==\"string\"&&g.kind!==\"number\")throw new Pt(`Expected arguments for \"${r}\" to be (string, string) or (number, number), but found (${g.kind}, ${m.kind}) instead.`)}if(this.collator&&!o&&this.hasUntypedArgument){let g=qt(u),m=qt(p);if(g.kind!==\"string\"||m.kind!==\"string\")return e(l,u,p)}return this.collator?i(l,u,p,this.collator.evaluate(l)):e(l,u,p)}eachChild(l){l(this.lhs),l(this.rhs),this.collator&&l(this.collator)}outputDefined(){return!0}}}let il=bn(\"==\",(function(r,e,i){return e===i}),Jt),Cc=bn(\"!=\",(function(r,e,i){return e!==i}),(function(r,e,i,o){return!Jt(0,e,i,o)})),Xu=bn(\"<\",(function(r,e,i){return e\",(function(r,e,i){return e>i}),(function(r,e,i,o){return o.compare(e,i)>0})),Aa=bn(\"<=\",(function(r,e,i){return e<=i}),(function(r,e,i,o){return o.compare(e,i)<=0})),rl=bn(\">=\",(function(r,e,i){return e>=i}),(function(r,e,i,o){return o.compare(e,i)>=0}));class za{constructor(e,i,o){this.type=Eo,this.locale=o,this.caseSensitive=e,this.diacriticSensitive=i}static parse(e,i){if(e.length!==2)return i.error(\"Expected one argument.\");let o=e[1];if(typeof o!=\"object\"||Array.isArray(o))return i.error(\"Collator options argument must be an object.\");let a=i.parse(o[\"case-sensitive\"]!==void 0&&o[\"case-sensitive\"],1,rt);if(!a)return null;let l=i.parse(o[\"diacritic-sensitive\"]!==void 0&&o[\"diacritic-sensitive\"],1,rt);if(!l)return null;let u=null;return o.locale&&(u=i.parse(o.locale,1,Ke),!u)?null:new za(a,l,u)}evaluate(e){return new Js(this.caseSensitive.evaluate(e),this.diacriticSensitive.evaluate(e),this.locale?this.locale.evaluate(e):null)}eachChild(e){e(this.caseSensitive),e(this.diacriticSensitive),this.locale&&e(this.locale)}outputDefined(){return!1}}class Da{constructor(e,i,o,a,l,u){this.type=Ke,this.number=e,this.locale=i,this.currency=o,this.unit=a,this.minFractionDigits=l,this.maxFractionDigits=u}static parse(e,i){if(e.length!==3)return i.error(\"Expected two arguments.\");let o=i.parse(e[1],1,Ie);if(!o)return null;let a=e[2];if(typeof a!=\"object\"||Array.isArray(a))return i.error(\"NumberFormat options argument must be an object.\");let l=null;if(a.locale&&(l=i.parse(a.locale,1,Ke),!l))return null;let u=null;if(a.currency&&(u=i.parse(a.currency,1,Ke),!u))return null;let p=null;if(a.unit&&(p=i.parse(a.unit,1,Ke),!p))return null;if(u&&p)return i.error(\"NumberFormat options `currency` and `unit` are mutually exclusive\");let g=null;if(a[\"min-fraction-digits\"]&&(g=i.parse(a[\"min-fraction-digits\"],1,Ie),!g))return null;let m=null;return a[\"max-fraction-digits\"]&&(m=i.parse(a[\"max-fraction-digits\"],1,Ie),!m)?null:new Da(o,l,u,p,g,m)}evaluate(e){return new Intl.NumberFormat(this.locale?this.locale.evaluate(e):[],{style:this.currency?\"currency\":this.unit?\"unit\":\"decimal\",currency:this.currency?this.currency.evaluate(e):void 0,unit:this.unit?this.unit.evaluate(e):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(e):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(e):void 0}).format(this.number.evaluate(e))}eachChild(e){e(this.number),this.locale&&e(this.locale),this.currency&&e(this.currency),this.unit&&e(this.unit),this.minFractionDigits&&e(this.minFractionDigits),this.maxFractionDigits&&e(this.maxFractionDigits)}outputDefined(){return!1}}class wn{constructor(e){this.type=Io,this.sections=e}static parse(e,i){if(e.length<2)return i.error(\"Expected at least one argument.\");let o=e[1];if(!Array.isArray(o)&&typeof o==\"object\")return i.error(\"First argument must be an image or text section.\");let a=[],l=!1;for(let u=1;u<=e.length-1;++u){let p=e[u];if(l&&typeof p==\"object\"&&!Array.isArray(p)){l=!1;let g=null;if(p[\"font-scale\"]&&(g=i.parse(p[\"font-scale\"],1,Ie),!g))return null;let m=null;if(p[\"text-font\"]&&(m=i.parse(p[\"text-font\"],1,hi(Ke)),!m))return null;let v=null;if(p[\"text-color\"]&&(v=i.parse(p[\"text-color\"],1,Gi),!v))return null;let _=null;if(p[\"vertical-align\"]){if(typeof p[\"vertical-align\"]==\"string\"&&!Hu.includes(p[\"vertical-align\"]))return i.error(`'vertical-align' must be one of: 'bottom', 'center', 'top' but found '${p[\"vertical-align\"]}' instead.`);if(_=i.parse(p[\"vertical-align\"],1,Ke),!_)return null}let T=a[a.length-1];T.scale=g,T.font=m,T.textColor=v,T.verticalAlign=_}else{let g=i.parse(e[u],1,Je);if(!g)return null;let m=g.type.kind;if(m!==\"string\"&&m!==\"value\"&&m!==\"null\"&&m!==\"resolvedImage\")return i.error(\"Formatted text type must be 'string', 'value', 'image' or 'null'.\");l=!0,a.push({content:g,scale:null,font:null,textColor:null,verticalAlign:null})}}return new wn(a)}evaluate(e){return new Vi(this.sections.map((i=>{let o=i.content.evaluate(e);return qt(o)===$n?new Qs(\"\",o,null,null,null,i.verticalAlign?i.verticalAlign.evaluate(e):null):new Qs(_n(o),null,i.scale?i.scale.evaluate(e):null,i.font?i.font.evaluate(e).join(\",\"):null,i.textColor?i.textColor.evaluate(e):null,i.verticalAlign?i.verticalAlign.evaluate(e):null)})))}eachChild(e){for(let i of this.sections)e(i.content),i.scale&&e(i.scale),i.font&&e(i.font),i.textColor&&e(i.textColor),i.verticalAlign&&e(i.verticalAlign)}outputDefined(){return!1}}class to{constructor(e){this.type=$n,this.input=e}static parse(e,i){if(e.length!==2)return i.error(\"Expected two arguments.\");let o=i.parse(e[1],1,Ke);return o?new to(o):i.error(\"No image name provided.\")}evaluate(e){let i=this.input.evaluate(e),o=$i.fromString(i);return o&&e.availableImages&&(o.available=e.availableImages.indexOf(i)>-1),o}eachChild(e){e(this.input)}outputDefined(){return!1}}class Wi{constructor(e){this.type=Ie,this.input=e}static parse(e,i){if(e.length!==2)return i.error(`Expected 1 argument, but found ${e.length-1} instead.`);let o=i.parse(e[1],1);return o?o.type.kind!==\"array\"&&o.type.kind!==\"string\"&&o.type.kind!==\"value\"?i.error(`Expected argument of type string or array, but found ${bt(o.type)} instead.`):new Wi(o):null}evaluate(e){let i=this.input.evaluate(e);if(typeof i==\"string\")return[...i].length;if(Array.isArray(i))return i.length;throw new Pt(`Expected value to be of type string or array, but found ${bt(qt(i))} instead.`)}eachChild(e){e(this.input)}outputDefined(){return!1}}let mr=8192;function ka(r,e){let i=(180+r[0])/360,o=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+r[1]*Math.PI/360)))/360,a=Math.pow(2,e.z);return[Math.round(i*a*mr),Math.round(o*a*mr)]}function nl(r,e){let i=Math.pow(2,e.z);return[(a=(r[0]/mr+e.x)/i,360*a-180),(o=(r[1]/mr+e.y)/i,360/Math.PI*Math.atan(Math.exp((180-360*o)*Math.PI/180))-90)];var o,a}function Tn(r,e){r[0]=Math.min(r[0],e[0]),r[1]=Math.min(r[1],e[1]),r[2]=Math.max(r[2],e[0]),r[3]=Math.max(r[3],e[1])}function Oo(r,e){return!(r[0]<=e[0]||r[2]>=e[2]||r[1]<=e[1]||r[3]>=e[3])}function Yu(r,e,i){let o=r[0]-e[0],a=r[1]-e[1],l=r[0]-i[0],u=r[1]-i[1];return o*u-l*a==0&&o*l<=0&&a*u<=0}function Ra(r,e,i,o){return(a=[o[0]-i[0],o[1]-i[1]])[0]*(l=[e[0]-r[0],e[1]-r[1]])[1]-a[1]*l[0]!=0&&!(!Ic(r,e,i,o)||!Ic(i,o,r,e));var a,l}function Ku(r,e,i){for(let o of i)for(let a=0;a(a=r)[1]!=(u=p[g+1])[1]>a[1]&&a[0]<(u[0]-l[0])*(a[1]-l[1])/(u[1]-l[1])+l[0]&&(o=!o)}var a,l,u;return o}function Ju(r,e){for(let i of e)if(kr(r,i))return!0;return!1}function ol(r,e){for(let i of r)if(!kr(i,e))return!1;for(let i=0;i0&&p<0||u<0&&p>0}function La(r,e,i){let o=[];for(let a=0;ai[2]){let a=.5*o,l=r[0]-i[0]>a?-o:i[0]-r[0]>a?o:0;l===0&&(l=r[0]-i[2]>a?-o:i[2]-r[0]>a?o:0),r[0]+=l}Tn(e,r)}function Dc(r,e,i,o){let a=Math.pow(2,o.z)*mr,l=[o.x*mr,o.y*mr],u=[];for(let p of r)for(let g of p){let m=[g.x+l[0],g.y+l[1]];zc(m,e,i,a),u.push(m)}return u}function kc(r,e,i,o){let a=Math.pow(2,o.z)*mr,l=[o.x*mr,o.y*mr],u=[];for(let g of r){let m=[];for(let v of g){let _=[v.x+l[0],v.y+l[1]];Tn(e,_),m.push(_)}u.push(m)}if(e[2]-e[0]<=a/2){(p=e)[0]=p[1]=1/0,p[2]=p[3]=-1/0;for(let g of u)for(let m of g)zc(m,e,i,a)}var p;return u}class Sn{constructor(e,i){this.type=rt,this.geojson=e,this.geometries=i}static parse(e,i){if(e.length!==2)return i.error(`'within' expression requires exactly one argument, but found ${e.length-1} instead.`);if(Kr(e[1])){let o=e[1];if(o.type===\"FeatureCollection\"){let a=[];for(let l of o.features){let{type:u,coordinates:p}=l.geometry;u===\"Polygon\"&&a.push(p),u===\"MultiPolygon\"&&a.push(...p)}if(a.length)return new Sn(o,{type:\"MultiPolygon\",coordinates:a})}else if(o.type===\"Feature\"){let a=o.geometry.type;if(a===\"Polygon\"||a===\"MultiPolygon\")return new Sn(o,o.geometry)}else if(o.type===\"Polygon\"||o.type===\"MultiPolygon\")return new Sn(o,o)}return i.error(\"'within' expression requires valid geojson object that contains polygon geometry type.\")}evaluate(e){if(e.geometry()!=null&&e.canonicalID()!=null){if(e.geometryType()===\"Point\")return(function(i,o){let a=[1/0,1/0,-1/0,-1/0],l=[1/0,1/0,-1/0,-1/0],u=i.canonicalID();if(o.type===\"Polygon\"){let p=La(o.coordinates,l,u),g=Dc(i.geometry(),a,l,u);if(!Oo(a,l))return!1;for(let m of g)if(!kr(m,p))return!1}if(o.type===\"MultiPolygon\"){let p=Ac(o.coordinates,l,u),g=Dc(i.geometry(),a,l,u);if(!Oo(a,l))return!1;for(let m of g)if(!Ju(m,p))return!1}return!0})(e,this.geometries);if(e.geometryType()===\"LineString\")return(function(i,o){let a=[1/0,1/0,-1/0,-1/0],l=[1/0,1/0,-1/0,-1/0],u=i.canonicalID();if(o.type===\"Polygon\"){let p=La(o.coordinates,l,u),g=kc(i.geometry(),a,l,u);if(!Oo(a,l))return!1;for(let m of g)if(!ol(m,p))return!1}if(o.type===\"MultiPolygon\"){let p=Ac(o.coordinates,l,u),g=kc(i.geometry(),a,l,u);if(!Oo(a,l))return!1;for(let m of g)if(!Ec(m,p))return!1}return!0})(e,this.geometries)}return!1}eachChild(){}outputDefined(){return!0}}let al=class{constructor(r=[],e=(i,o)=>io?1:0){if(this.data=r,this.length=this.data.length,this.compare=e,this.length>0)for(let i=(this.length>>1)-1;i>=0;i--)this._down(i)}push(r){this.data.push(r),this._up(this.length++)}pop(){if(this.length===0)return;let r=this.data[0],e=this.data.pop();return--this.length>0&&(this.data[0]=e,this._down(0)),r}peek(){return this.data[0]}_up(r){let{data:e,compare:i}=this,o=e[r];for(;r>0;){let a=r-1>>1,l=e[a];if(i(o,l)>=0)break;e[r]=l,r=a}e[r]=o}_down(r){let{data:e,compare:i}=this,o=this.length>>1,a=e[r];for(;r=0)break;e[r]=e[l],r=l}e[r]=a}};function sl(r,e,i=0,o=r.length-1,a=Qu){for(;o>i;){if(o-i>600){let g=o-i+1,m=e-i+1,v=Math.log(g),_=.5*Math.exp(2*v/3),T=.5*Math.sqrt(v*_*(g-_)/g)*(m-g/2<0?-1:1);sl(r,e,Math.max(i,Math.floor(e-m*_/g+T)),Math.min(o,Math.floor(e+(g-m)*_/g+T)),a)}let l=r[e],u=i,p=o;for(io(r,i,e),a(r[o],l)>0&&io(r,i,o);u0;)p--}a(r[i],l)===0?io(r,i,p):(p++,io(r,p,o)),p<=e&&(i=p+1),e<=p&&(o=p-1)}}function io(r,e,i){let o=r[e];r[e]=r[i],r[i]=o}function Qu(r,e){return re?1:0}function Fa(r,e){if(r.length<=1)return[r];let i=[],o,a;for(let l of r){let u=th(l);u!==0&&(l.area=Math.abs(u),a===void 0&&(a=u<0),a===u<0?(o&&i.push(o),o=[l]):o.push(l))}if(o&&i.push(o),e>1)for(let l=0;l1?(m=e[g+1][0],v=e[g+1][1]):b>0&&(m+=_/this.kx*b,v+=T/this.ky*b)),_=this.wrap(i[0]-m)*this.kx,T=(i[1]-v)*this.ky;let P=_*_+T*T;P180;)e-=360;return e}}function Fc(r,e){return e[0]-r[0]}function ro(r){return r[1]-r[0]+1}function wr(r,e){return r[1]>=r[0]&&r[1]r[1])return[null,null];let i=ro(r);if(e){if(i===2)return[r,null];let a=Math.floor(i/2);return[[r[0],r[0]+a],[r[0]+a,r[1]]]}if(i===1)return[r,null];let o=Math.floor(i/2)-1;return[[r[0],r[0]+o],[r[0]+o+1,r[1]]]}function ul(r,e){if(!wr(e,r.length))return[1/0,1/0,-1/0,-1/0];let i=[1/0,1/0,-1/0,-1/0];for(let o=e[0];o<=e[1];++o)Tn(i,r[o]);return i}function Ba(r){let e=[1/0,1/0,-1/0,-1/0];for(let i of r)for(let o of i)Tn(e,o);return e}function hl(r){return r[0]!==-1/0&&r[1]!==-1/0&&r[2]!==1/0&&r[3]!==1/0}function dl(r,e,i){if(!hl(r)||!hl(e))return NaN;let o=0,a=0;return r[2]e[2]&&(o=r[0]-e[2]),r[1]>e[3]&&(a=r[1]-e[3]),r[3]=o)return o;if(Oo(a,l)){if(Oc(r,e))return 0}else if(Oc(e,r))return 0;let u=1/0;for(let p of r)for(let g=0,m=p.length,v=m-1;g0;){let g=u.pop();if(g[0]>=l)continue;let m=g[1],v=e?50:100;if(ro(m)<=v){if(!wr(m,r.length))return NaN;if(e){let _=nh(r,m,i,o);if(isNaN(_)||_===0)return _;l=Math.min(l,_)}else for(let _=m[0];_<=m[1];++_){let T=rh(r[_],i,o);if(l=Math.min(l,T),l===0)return 0}}else{let _=cl(m,e);Vc(u,l,o,r,p,_[0]),Vc(u,l,o,r,p,_[1])}}return l}function ja(r,e,i,o,a,l=1/0){let u=Math.min(l,a.distance(r[0],i[0]));if(u===0)return u;let p=new al([[0,[0,r.length-1],[0,i.length-1]]],Fc);for(;p.length>0;){let g=p.pop();if(g[0]>=u)continue;let m=g[1],v=g[2],_=e?50:100,T=o?50:100;if(ro(m)<=_&&ro(v)<=T){if(!wr(m,r.length)&&wr(v,i.length))return NaN;let b;if(e&&o)b=Bc(r,m,i,v,a),u=Math.min(u,b);else if(e&&!o){let P=r.slice(m[0],m[1]+1);for(let C=v[0];C<=v[1];++C)if(b=Mn(i[C],P,a),u=Math.min(u,b),u===0)return u}else if(!e&&o){let P=i.slice(v[0],v[1]+1);for(let C=m[0];C<=m[1];++C)if(b=Mn(r[C],P,a),u=Math.min(u,b),u===0)return u}else b=ih(r,m,i,v,a),u=Math.min(u,b)}else{let b=cl(m,e),P=cl(v,o);Oa(p,u,a,r,i,b[0],P[0]),Oa(p,u,a,r,i,b[0],P[1]),Oa(p,u,a,r,i,b[1],P[0]),Oa(p,u,a,r,i,b[1],P[1])}}return u}function fl(r){return r.type===\"MultiPolygon\"?r.coordinates.map((e=>({type:\"Polygon\",coordinates:e}))):r.type===\"MultiLineString\"?r.coordinates.map((e=>({type:\"LineString\",coordinates:e}))):r.type===\"MultiPoint\"?r.coordinates.map((e=>({type:\"Point\",coordinates:e}))):[r]}class Pn{constructor(e,i){this.type=Ie,this.geojson=e,this.geometries=i}static parse(e,i){if(e.length!==2)return i.error(`'distance' expression requires exactly one argument, but found ${e.length-1} instead.`);if(Kr(e[1])){let o=e[1];if(o.type===\"FeatureCollection\")return new Pn(o,o.features.map((a=>fl(a.geometry))).flat());if(o.type===\"Feature\")return new Pn(o,fl(o.geometry));if(\"type\"in o&&\"coordinates\"in o)return new Pn(o,fl(o))}return i.error(\"'distance' expression requires valid geojson object that contains polygon geometry type.\")}evaluate(e){if(e.geometry()!=null&&e.canonicalID()!=null){if(e.geometryType()===\"Point\")return(function(i,o){let a=i.geometry(),l=a.flat().map((g=>nl([g.x,g.y],i.canonical)));if(a.length===0)return NaN;let u=new ll(l[0][1]),p=1/0;for(let g of o){switch(g.type){case\"Point\":p=Math.min(p,ja(l,!1,[g.coordinates],!1,u,p));break;case\"LineString\":p=Math.min(p,ja(l,!1,g.coordinates,!0,u,p));break;case\"Polygon\":p=Math.min(p,Va(l,!1,g.coordinates,u,p))}if(p===0)return p}return p})(e,this.geometries);if(e.geometryType()===\"LineString\")return(function(i,o){let a=i.geometry(),l=a.flat().map((g=>nl([g.x,g.y],i.canonical)));if(a.length===0)return NaN;let u=new ll(l[0][1]),p=1/0;for(let g of o){switch(g.type){case\"Point\":p=Math.min(p,ja(l,!0,[g.coordinates],!1,u,p));break;case\"LineString\":p=Math.min(p,ja(l,!0,g.coordinates,!0,u,p));break;case\"Polygon\":p=Math.min(p,Va(l,!0,g.coordinates,u,p))}if(p===0)return p}return p})(e,this.geometries);if(e.geometryType()===\"Polygon\")return(function(i,o){let a=i.geometry();if(a.length===0||a[0].length===0)return NaN;let l=Fa(a,0).map((g=>g.map((m=>m.map((v=>nl([v.x,v.y],i.canonical))))))),u=new ll(l[0][0][0][1]),p=1/0;for(let g of o)for(let m of l){switch(g.type){case\"Point\":p=Math.min(p,Va([g.coordinates],!1,m,u,p));break;case\"LineString\":p=Math.min(p,Va(g.coordinates,!0,m,u,p));break;case\"Polygon\":p=Math.min(p,gt(m,g.coordinates,u,p))}if(p===0)return p}return p})(e,this.geometries)}return NaN}eachChild(){}outputDefined(){return!0}}class jo{constructor(e){this.type=Je,this.key=e}static parse(e,i){if(e.length!==2)return i.error(`Expected 1 argument, but found ${e.length-1} instead.`);let o=e[1];return o==null?i.error(\"Global state property must be defined.\"):typeof o!=\"string\"?i.error(`Global state property must be string, but found ${typeof e[1]} instead.`):new jo(o)}evaluate(e){var i;let o=(i=e.globals)===null||i===void 0?void 0:i.globalState;return o&&Object.keys(o).length!==0?Ro(o,this.key):null}eachChild(){}outputDefined(){return!1}}let no={\"==\":il,\"!=\":Cc,\">\":eo,\"<\":Xu,\">=\":rl,\"<=\":Aa,array:ji,at:lt,boolean:ji,case:fr,coalesce:Fo,collator:za,format:wn,image:to,in:Qe,\"index-of\":Kn,interpolate:Zt,\"interpolate-hcl\":Zt,\"interpolate-lab\":Zt,length:Wi,let:Ct,literal:br,match:ct,number:ji,\"number-format\":Da,object:ji,slice:Jn,step:Qn,string:ji,\"to-boolean\":Dr,\"to-color\":Dr,\"to-number\":Dr,\"to-string\":Dr,var:Yn,within:Sn,distance:Pn,\"global-state\":jo};class ir{constructor(e,i,o,a){this.name=e,this.type=i,this._evaluate=o,this.args=a}evaluate(e){return this._evaluate(e,this.args)}eachChild(e){this.args.forEach(e)}outputDefined(){return!1}static parse(e,i){let o=e[0],a=ir.definitions[o];if(!a)return i.error(`Unknown expression \"${o}\". If you wanted a literal array, use [\"literal\", [...]].`,0);let l=Array.isArray(a)?a[0]:a.type,u=Array.isArray(a)?[[a[1],a[2]]]:a.overloads,p=u.filter((([m])=>!Array.isArray(m)||m.length===e.length-1)),g=null;for(let[m,v]of p){g=new vn(i.registry,Na,i.path,null,i.scope);let _=[],T=!1;for(let b=1;b{return T=_,Array.isArray(T)?`(${T.map(bt).join(\", \")})`:`(${bt(T.type)}...)`;var T})).join(\" | \"),v=[];for(let _=1;_{i=e?i&&Na(o):i&&o instanceof br})),!!i&&Ua(r)&&qa(r,[\"zoom\",\"heatmap-density\",\"elevation\",\"line-progress\",\"accumulated\",\"is-supported-script\"])}function Ua(r){if(r instanceof ir&&(r.name===\"get\"&&r.args.length===1||r.name===\"feature-state\"||r.name===\"has\"&&r.args.length===1||r.name===\"properties\"||r.name===\"geometry-type\"||r.name===\"id\"||/^filter-/.test(r.name))||r instanceof Sn||r instanceof Pn)return!1;let e=!0;return r.eachChild((i=>{e&&!Ua(i)&&(e=!1)})),e}function No(r){if(r instanceof ir&&r.name===\"feature-state\")return!1;let e=!0;return r.eachChild((i=>{e&&!No(i)&&(e=!1)})),e}function qa(r,e){if(r instanceof ir&&e.indexOf(r.name)>=0)return!1;let i=!0;return r.eachChild((o=>{i&&!qa(o,e)&&(i=!1)})),i}function Uc(r){return{result:\"success\",value:r}}function oo(r){return{result:\"error\",value:r}}function ao(r){return r[\"property-type\"]===\"data-driven\"||r[\"property-type\"]===\"cross-faded-data-driven\"}function qc(r){return!!r.expression&&r.expression.parameters.indexOf(\"zoom\")>-1}function gl(r){return!!r.expression&&r.expression.interpolated}function nt(r){return r instanceof Number?\"number\":r instanceof String?\"string\":r instanceof Boolean?\"boolean\":Array.isArray(r)?\"array\":r===null?\"null\":typeof r}function Ga(r){return typeof r==\"object\"&&r!==null&&!Array.isArray(r)&&qt(r)===zr}function oh(r){return r}function Gc(r,e){let i=r.stops&&typeof r.stops[0][0]==\"object\",o=i||!(i||r.property!==void 0),a=r.type||(gl(e)?\"exponential\":\"interval\"),l=(function(v){switch(v.type){case\"color\":return tt.parse;case\"padding\":return mi.parse;case\"numberArray\":return Rt.parse;case\"colorArray\":return We.parse;default:return null}})(e);if(l&&((r=fn({},r)).stops&&(r.stops=r.stops.map((v=>[v[0],l(v[1])]))),r.default=l(r.default?r.default:e.default)),r.colorSpace&&(u=r.colorSpace)!==\"rgb\"&&u!==\"hcl\"&&u!==\"lab\")throw new Error(`Unknown color space: \"${r.colorSpace}\"`);var u;let p=(function(v){switch(v){case\"exponential\":return $c;case\"interval\":return sh;case\"categorical\":return ah;case\"identity\":return lh;default:throw new Error(`Unknown function type \"${v}\"`)}})(a),g,m;if(a===\"categorical\"){g=Object.create(null);for(let v of r.stops)g[v[0]]=v[1];m=typeof r.stops[0][0]}if(i){let v={},_=[];for(let P=0;PP[0])),evaluate:({zoom:P},C)=>$c({stops:T,base:r.base},e,P).evaluate(P,C)}}if(o){let v=a===\"exponential\"?{name:\"exponential\",base:r.base!==void 0?r.base:1}:null;return{kind:\"camera\",interpolationType:v,interpolationFactor:Zt.interpolationFactor.bind(void 0,v),zoomStops:r.stops.map((_=>_[0])),evaluate:({zoom:_})=>p(r,e,_,g,m)}}return{kind:\"source\",evaluate(v,_){let T=_&&_.properties?_.properties[r.property]:void 0;return T===void 0?Uo(r.default,e.default):p(r,e,T,g,m)}}}function Uo(r,e,i){return r!==void 0?r:e!==void 0?e:i!==void 0?i:void 0}function ah(r,e,i,o,a){return Uo(typeof i===a?o[i]:void 0,r.default,e.default)}function sh(r,e,i){if(nt(i)!==\"number\")return Uo(r.default,e.default);let o=r.stops.length;if(o===1||i<=r.stops[0][0])return r.stops[0][1];if(i>=r.stops[o-1][0])return r.stops[o-1][1];let a=xn(r.stops.map((l=>l[0])),i);return r.stops[a][1]}function $c(r,e,i){let o=r.base!==void 0?r.base:1;if(nt(i)!==\"number\")return Uo(r.default,e.default);let a=r.stops.length;if(a===1||i<=r.stops[0][0])return r.stops[0][1];if(i>=r.stops[a-1][0])return r.stops[a-1][1];let l=xn(r.stops.map((v=>v[0])),i),u=(function(v,_,T,b){let P=b-T,C=v-T;return P===0?0:_===1?C/P:(Math.pow(_,C)-1)/(Math.pow(_,P)-1)})(i,o,r.stops[l][0],r.stops[l+1][0]),p=r.stops[l][1],g=r.stops[l+1][1],m=Zi[e.type]||oh;return typeof p.evaluate==\"function\"?{evaluate(...v){let _=p.evaluate.apply(void 0,v),T=g.evaluate.apply(void 0,v);if(_!==void 0&&T!==void 0)return m(_,T,u,r.colorSpace)}}:m(p,g,u,r.colorSpace)}function lh(r,e,i){switch(e.type){case\"color\":i=tt.parse(i);break;case\"formatted\":i=Vi.fromString(i.toString());break;case\"resolvedImage\":i=$i.fromString(i.toString());break;case\"padding\":i=mi.parse(i);break;case\"colorArray\":i=We.parse(i);break;case\"numberArray\":i=Rt.parse(i);break;default:nt(i)===e.type||e.type===\"enum\"&&e.values[i]||(i=void 0)}return Uo(i,r.default,e.default)}ir.register(no,{error:[{kind:\"error\"},[Ke],(r,[e])=>{throw new Pt(e.evaluate(r))}],typeof:[Ke,[Je],(r,[e])=>bt(qt(e.evaluate(r)))],\"to-rgba\":[hi(Ie,4),[Gi],(r,[e])=>{let[i,o,a,l]=e.evaluate(r).rgb;return[255*i,255*o,255*a,l]}],rgb:[Gi,[Ie,Ie,Ie],jc],rgba:[Gi,[Ie,Ie,Ie,Ie],jc],has:{type:rt,overloads:[[[Ke],(r,[e])=>Nc(e.evaluate(r),r.properties())],[[Ke,zr],(r,[e,i])=>Nc(e.evaluate(r),i.evaluate(r))]]},get:{type:Je,overloads:[[[Ke],(r,[e])=>ml(e.evaluate(r),r.properties())],[[Ke,zr],(r,[e,i])=>ml(e.evaluate(r),i.evaluate(r))]]},\"feature-state\":[Je,[Ke],(r,[e])=>ml(e.evaluate(r),r.featureState||{})],properties:[zr,[],r=>r.properties()],\"geometry-type\":[Ke,[],r=>r.geometryType()],id:[Je,[],r=>r.id()],zoom:[Ie,[],r=>r.globals.zoom],\"heatmap-density\":[Ie,[],r=>r.globals.heatmapDensity||0],elevation:[Ie,[],r=>r.globals.elevation||0],\"line-progress\":[Ie,[],r=>r.globals.lineProgress||0],accumulated:[Je,[],r=>r.globals.accumulated===void 0?null:r.globals.accumulated],\"+\":[Ie,Cn(Ie),(r,e)=>{let i=0;for(let o of e)i+=o.evaluate(r);return i}],\"*\":[Ie,Cn(Ie),(r,e)=>{let i=1;for(let o of e)i*=o.evaluate(r);return i}],\"-\":{type:Ie,overloads:[[[Ie,Ie],(r,[e,i])=>e.evaluate(r)-i.evaluate(r)],[[Ie],(r,[e])=>-e.evaluate(r)]]},\"/\":[Ie,[Ie,Ie],(r,[e,i])=>e.evaluate(r)/i.evaluate(r)],\"%\":[Ie,[Ie,Ie],(r,[e,i])=>e.evaluate(r)%i.evaluate(r)],ln2:[Ie,[],()=>Math.LN2],pi:[Ie,[],()=>Math.PI],e:[Ie,[],()=>Math.E],\"^\":[Ie,[Ie,Ie],(r,[e,i])=>Math.pow(e.evaluate(r),i.evaluate(r))],sqrt:[Ie,[Ie],(r,[e])=>Math.sqrt(e.evaluate(r))],log10:[Ie,[Ie],(r,[e])=>Math.log(e.evaluate(r))/Math.LN10],ln:[Ie,[Ie],(r,[e])=>Math.log(e.evaluate(r))],log2:[Ie,[Ie],(r,[e])=>Math.log(e.evaluate(r))/Math.LN2],sin:[Ie,[Ie],(r,[e])=>Math.sin(e.evaluate(r))],cos:[Ie,[Ie],(r,[e])=>Math.cos(e.evaluate(r))],tan:[Ie,[Ie],(r,[e])=>Math.tan(e.evaluate(r))],asin:[Ie,[Ie],(r,[e])=>Math.asin(e.evaluate(r))],acos:[Ie,[Ie],(r,[e])=>Math.acos(e.evaluate(r))],atan:[Ie,[Ie],(r,[e])=>Math.atan(e.evaluate(r))],min:[Ie,Cn(Ie),(r,e)=>Math.min(...e.map((i=>i.evaluate(r))))],max:[Ie,Cn(Ie),(r,e)=>Math.max(...e.map((i=>i.evaluate(r))))],abs:[Ie,[Ie],(r,[e])=>Math.abs(e.evaluate(r))],round:[Ie,[Ie],(r,[e])=>{let i=e.evaluate(r);return i<0?-Math.round(-i):Math.round(i)}],floor:[Ie,[Ie],(r,[e])=>Math.floor(e.evaluate(r))],ceil:[Ie,[Ie],(r,[e])=>Math.ceil(e.evaluate(r))],\"filter-==\":[rt,[Ke,Je],(r,[e,i])=>r.properties()[e.value]===i.value],\"filter-id-==\":[rt,[Je],(r,[e])=>r.id()===e.value],\"filter-type-==\":[rt,[Ke],(r,[e])=>r.geometryType()===e.value],\"filter-<\":[rt,[Ke,Je],(r,[e,i])=>{let o=r.properties()[e.value],a=i.value;return typeof o==typeof a&&o{let i=r.id(),o=e.value;return typeof i==typeof o&&i\":[rt,[Ke,Je],(r,[e,i])=>{let o=r.properties()[e.value],a=i.value;return typeof o==typeof a&&o>a}],\"filter-id->\":[rt,[Je],(r,[e])=>{let i=r.id(),o=e.value;return typeof i==typeof o&&i>o}],\"filter-<=\":[rt,[Ke,Je],(r,[e,i])=>{let o=r.properties()[e.value],a=i.value;return typeof o==typeof a&&o<=a}],\"filter-id-<=\":[rt,[Je],(r,[e])=>{let i=r.id(),o=e.value;return typeof i==typeof o&&i<=o}],\"filter->=\":[rt,[Ke,Je],(r,[e,i])=>{let o=r.properties()[e.value],a=i.value;return typeof o==typeof a&&o>=a}],\"filter-id->=\":[rt,[Je],(r,[e])=>{let i=r.id(),o=e.value;return typeof i==typeof o&&i>=o}],\"filter-has\":[rt,[Je],(r,[e])=>e.value in r.properties()],\"filter-has-id\":[rt,[],r=>r.id()!==null&&r.id()!==void 0],\"filter-type-in\":[rt,[hi(Ke)],(r,[e])=>e.value.indexOf(r.geometryType())>=0],\"filter-id-in\":[rt,[hi(Je)],(r,[e])=>e.value.indexOf(r.id())>=0],\"filter-in-small\":[rt,[Ke,hi(Je)],(r,[e,i])=>i.value.indexOf(r.properties()[e.value])>=0],\"filter-in-large\":[rt,[Ke,hi(Je)],(r,[e,i])=>(function(o,a,l,u){for(;l<=u;){let p=l+u>>1;if(a[p]===o)return!0;a[p]>o?u=p-1:l=p+1}return!1})(r.properties()[e.value],i.value,0,i.value.length-1)],all:{type:rt,overloads:[[[rt,rt],(r,[e,i])=>e.evaluate(r)&&i.evaluate(r)],[Cn(rt),(r,e)=>{for(let i of e)if(!i.evaluate(r))return!1;return!0}]]},any:{type:rt,overloads:[[[rt,rt],(r,[e,i])=>e.evaluate(r)||i.evaluate(r)],[Cn(rt),(r,e)=>{for(let i of e)if(i.evaluate(r))return!0;return!1}]]},\"!\":[rt,[rt],(r,[e])=>!e.evaluate(r)],\"is-supported-script\":[rt,[Ke],(r,[e])=>{let i=r.globals&&r.globals.isSupportedScript;return!i||i(e.evaluate(r))}],upcase:[Ke,[Ke],(r,[e])=>e.evaluate(r).toUpperCase()],downcase:[Ke,[Ke],(r,[e])=>e.evaluate(r).toLowerCase()],concat:[Ke,Cn(Je),(r,e)=>e.map((i=>_n(i.evaluate(r)))).join(\"\")],split:[hi(Ke),[Ke,Ke],(r,[e,i])=>e.evaluate(r).split(i.evaluate(r))],join:[Ke,[hi(Ke),Ke],(r,[e,i])=>e.evaluate(r).join(i.evaluate(r))],\"resolved-locale\":[Ke,[Eo],(r,[e])=>e.evaluate(r).resolvedLocale()]});class qo{constructor(e,i,o){this.expression=e,this._warningHistory={},this._evaluator=new el,this._defaultValue=i?(function(a){if(a.type===\"color\"&&Ga(a.default))return new tt(0,0,0,0);switch(a.type){case\"color\":return tt.parse(a.default)||null;case\"padding\":return mi.parse(a.default)||null;case\"numberArray\":return Rt.parse(a.default)||null;case\"colorArray\":return We.parse(a.default)||null;case\"variableAnchorOffsetCollection\":return Ci.parse(a.default)||null;case\"projectionDefinition\":return Ei.parse(a.default)||null;default:return a.default===void 0?null:a.default}})(i):null,this._enumValues=i&&i.type===\"enum\"?i.values:null,this._globalState=o}evaluateWithoutErrorHandling(e,i,o,a,l,u){return this._globalState&&(e=lo(e,this._globalState)),this._evaluator.globals=e,this._evaluator.feature=i,this._evaluator.featureState=o,this._evaluator.canonical=a,this._evaluator.availableImages=l||null,this._evaluator.formattedSection=u,this.expression.evaluate(this._evaluator)}evaluate(e,i,o,a,l,u){this._globalState&&(e=lo(e,this._globalState)),this._evaluator.globals=e,this._evaluator.feature=i||null,this._evaluator.featureState=o||null,this._evaluator.canonical=a,this._evaluator.availableImages=l||null,this._evaluator.formattedSection=u||null;try{let p=this.expression.evaluate(this._evaluator);if(p==null||typeof p==\"number\"&&p!=p)return this._defaultValue;if(this._enumValues&&!(p in this._enumValues))throw new Pt(`Expected value to be one of ${Object.keys(this._enumValues).map((g=>JSON.stringify(g))).join(\", \")}, but found ${JSON.stringify(p)} instead.`);return p}catch(p){return this._warningHistory[p.message]||(this._warningHistory[p.message]=!0,typeof console<\"u\"&&console.warn(p.message)),this._defaultValue}}}function $a(r){return Array.isArray(r)&&r.length>0&&typeof r[0]==\"string\"&&r[0]in no}function Go(r,e,i){let o=new vn(no,Na,[],e?(function(l){let u={color:Gi,string:Ke,number:Ie,enum:Ke,boolean:rt,formatted:Io,padding:Ta,numberArray:Ao,colorArray:Gn,projectionDefinition:wa,resolvedImage:$n,variableAnchorOffsetCollection:zo};return l.type===\"array\"?hi(u[l.value]||Je,l.length):u[l.type]})(e):void 0),a=o.parse(r,void 0,void 0,void 0,e&&e.type===\"string\"?{typeAnnotation:\"coerce\"}:void 0);return a?Uc(new qo(a,e,i)):oo(o.errors)}class Za{constructor(e,i,o){this.kind=e,this._styleExpression=i,this.isStateDependent=e!==\"constant\"&&!No(i.expression),this.globalStateRefs=so(i.expression),this._globalState=o}evaluateWithoutErrorHandling(e,i,o,a,l,u){return this._globalState&&(e=lo(e,this._globalState)),this._styleExpression.evaluateWithoutErrorHandling(e,i,o,a,l,u)}evaluate(e,i,o,a,l,u){return this._globalState&&(e=lo(e,this._globalState)),this._styleExpression.evaluate(e,i,o,a,l,u)}}class Wa{constructor(e,i,o,a,l){this.kind=e,this.zoomStops=o,this._styleExpression=i,this.isStateDependent=e!==\"camera\"&&!No(i.expression),this.globalStateRefs=so(i.expression),this.interpolationType=a,this._globalState=l}evaluateWithoutErrorHandling(e,i,o,a,l,u){return this._globalState&&(e=lo(e,this._globalState)),this._styleExpression.evaluateWithoutErrorHandling(e,i,o,a,l,u)}evaluate(e,i,o,a,l,u){return this._globalState&&(e=lo(e,this._globalState)),this._styleExpression.evaluate(e,i,o,a,l,u)}interpolationFactor(e,i,o){return this.interpolationType?Zt.interpolationFactor(this.interpolationType,e,i,o):0}}function Zc(r,e,i){let o=Go(r,e,i);if(o.result===\"error\")return o;let a=o.value.expression,l=Ua(a);if(!l&&!ao(e))return oo([new ui(\"\",\"data expressions not supported\")]);let u=qa(a,[\"zoom\"]);if(!u&&!qc(e))return oo([new ui(\"\",\"zoom expressions not supported\")]);let p=En(a);return p||u?p instanceof ui?oo([p]):p instanceof Zt&&!gl(e)?oo([new ui(\"\",'\"interpolate\" expressions cannot be used with this property')]):Uc(p?new Wa(l?\"camera\":\"composite\",o.value,p.labels,p instanceof Zt?p.interpolation:void 0,i):new Za(l?\"constant\":\"source\",o.value,i)):oo([new ui(\"\",'\"zoom\" expression may only be used as input to a top-level \"step\" or \"interpolate\" expression.')])}class Ha{constructor(e,i){this._parameters=e,this._specification=i,fn(this,Gc(this._parameters,this._specification))}static deserialize(e){return new Ha(e._parameters,e._specification)}static serialize(e){return{_parameters:e._parameters,_specification:e._specification}}}function En(r){let e=null;if(r instanceof Ct)e=En(r.result);else if(r instanceof Fo){for(let i of r.args)if(e=En(i),e)break}else(r instanceof Qn||r instanceof Zt)&&r.input instanceof ir&&r.input.name===\"zoom\"&&(e=r);return e instanceof ui||r.eachChild((i=>{let o=En(i);o instanceof ui?e=o:!e&&o?e=new ui(\"\",'\"zoom\" expression may only be used as input to a top-level \"step\" or \"interpolate\" expression.'):e&&o&&e!==o&&(e=new ui(\"\",'Only one zoom-based \"step\" or \"interpolate\" subexpression may be used in an expression.'))})),e}function so(r,e=new Set){return r instanceof jo&&e.add(r.key),r.eachChild((i=>{so(i,e)})),e}function lo(r,e){let{zoom:i,heatmapDensity:o,elevation:a,lineProgress:l,isSupportedScript:u,accumulated:p}=r??{};return{zoom:i,heatmapDensity:o,elevation:a,lineProgress:l,isSupportedScript:u,accumulated:p,globalState:e}}function _l(r){if(r===!0||r===!1)return!0;if(!Array.isArray(r)||r.length===0)return!1;switch(r[0]){case\"has\":return r.length>=2&&r[1]!==\"$id\"&&r[1]!==\"$type\";case\"in\":return r.length>=3&&(typeof r[1]!=\"string\"||Array.isArray(r[2]));case\"!in\":case\"!has\":case\"none\":return!1;case\"==\":case\"!=\":case\">\":case\">=\":case\"<\":case\"<=\":return r.length!==3||Array.isArray(r[1])||Array.isArray(r[2]);case\"any\":case\"all\":for(let e of r.slice(1))if(!_l(e)&&typeof e!=\"boolean\")return!1;return!0;default:return!0}}let ch={type:\"boolean\",default:!1,transition:!1,\"property-type\":\"data-driven\",expression:{interpolated:!1,parameters:[\"zoom\",\"feature\"]}};function $o(r,e){if(r==null)return{filter:()=>!0,needGeometry:!1,getGlobalStateRefs:()=>new Set};_l(r)||(r=Zo(r));let i=Go(r,ch,e);if(i.result===\"error\")throw new Error(i.value.map((o=>`${o.key}: ${o.message}`)).join(\", \"));return{filter:(o,a,l)=>i.value.evaluate(o,a,{},l),needGeometry:yl(r),getGlobalStateRefs:()=>so(i.value.expression)}}function uh(r,e){return re?1:0}function yl(r){if(!Array.isArray(r))return!1;if(r[0]===\"within\"||r[0]===\"distance\")return!0;for(let e=1;e\"||e===\"<=\"||e===\">=\"?vl(r[1],r[2],e):e===\"any\"?(i=r.slice(1),[\"any\"].concat(i.map(Zo))):e===\"all\"?[\"all\"].concat(r.slice(1).map(Zo)):e===\"none\"?[\"all\"].concat(r.slice(1).map(Zo).map(Wo)):e===\"in\"?Wc(r[1],r.slice(2)):e===\"!in\"?Wo(Wc(r[1],r.slice(2))):e===\"has\"?xl(r[1]):e!==\"!has\"||Wo(xl(r[1]));var i}function vl(r,e,i){switch(r){case\"$type\":return[`filter-type-${i}`,e];case\"$id\":return[`filter-id-${i}`,e];default:return[`filter-${i}`,r,e]}}function Wc(r,e){if(e.length===0)return!1;switch(r){case\"$type\":return[\"filter-type-in\",[\"literal\",e]];case\"$id\":return[\"filter-id-in\",[\"literal\",e]];default:return e.length>200&&!e.some((i=>typeof i!=typeof e[0]))?[\"filter-in-large\",r,[\"literal\",e.sort(uh)]]:[\"filter-in-small\",r,[\"literal\",e]]}}function xl(r){switch(r){case\"$type\":return!0;case\"$id\":return[\"filter-has-id\"];default:return[\"filter-has\",r]}}function Wo(r){return[\"!\",r]}function Xa(r){let e=typeof r;if(e===\"number\"||e===\"boolean\"||e===\"string\"||r==null)return JSON.stringify(r);if(Array.isArray(r)){let a=\"[\";for(let l of r)a+=`${Xa(l)},`;return`${a}]`}let i=Object.keys(r).sort(),o=\"{\";for(let a=0;ao.maximum?[new Se(e,i,`${i} is greater than the maximum value ${o.maximum}`)]:[]}function Ka(r){let e=r.valueSpec,i=Gt(r.value.type),o,a,l,u={},p=i!==\"categorical\"&&r.value.property===void 0,g=!p,m=nt(r.value.stops)===\"array\"&&nt(r.value.stops[0])===\"array\"&&nt(r.value.stops[0][0])===\"object\",v=Ni({key:r.key,value:r.value,valueSpec:r.styleSpec.function,validateSpec:r.validateSpec,style:r.style,styleSpec:r.styleSpec,objectElementValidators:{stops:function(b){if(i===\"identity\")return[new Se(b.key,b.value,'identity function may not have a \"stops\" property')];let P=[],C=b.value;return P=P.concat(Ya({key:b.key,value:C,valueSpec:b.valueSpec,validateSpec:b.validateSpec,style:b.style,styleSpec:b.styleSpec,arrayElementValidator:_})),nt(C)===\"array\"&&C.length===0&&P.push(new Se(b.key,C,\"array must have at least one stop\")),P},default:function(b){return b.validateSpec({key:b.key,value:b.value,valueSpec:e,validateSpec:b.validateSpec,style:b.style,styleSpec:b.styleSpec})}}});return i===\"identity\"&&p&&v.push(new Se(r.key,r.value,'missing required property \"property\"')),i===\"identity\"||r.value.stops||v.push(new Se(r.key,r.value,'missing required property \"stops\"')),i===\"exponential\"&&r.valueSpec.expression&&!gl(r.valueSpec)&&v.push(new Se(r.key,r.value,\"exponential functions not supported\")),r.styleSpec.$version>=8&&(g&&!ao(r.valueSpec)?v.push(new Se(r.key,r.value,\"property functions not supported\")):p&&!qc(r.valueSpec)&&v.push(new Se(r.key,r.value,\"zoom functions not supported\"))),i!==\"categorical\"&&!m||r.value.property!==void 0||v.push(new Se(r.key,r.value,'\"property\" property is required')),v;function _(b){let P=[],C=b.value,A=b.key;if(nt(C)!==\"array\")return[new Se(A,C,`array expected, ${nt(C)} found`)];if(C.length!==2)return[new Se(A,C,`array length 2 expected, length ${C.length} found`)];if(m){if(nt(C[0])!==\"object\")return[new Se(A,C,`object expected, ${nt(C[0])} found`)];if(C[0].zoom===void 0)return[new Se(A,C,\"object stop key must have zoom\")];if(C[0].value===void 0)return[new Se(A,C,\"object stop key must have value\")];if(l&&l>Gt(C[0].zoom))return[new Se(A,C[0].zoom,\"stop zoom values must appear in ascending order\")];Gt(C[0].zoom)!==l&&(l=Gt(C[0].zoom),a=void 0,u={}),P=P.concat(Ni({key:`${A}[0]`,value:C[0],valueSpec:{zoom:{}},validateSpec:b.validateSpec,style:b.style,styleSpec:b.styleSpec,objectElementValidators:{zoom:co,value:T}}))}else P=P.concat(T({key:`${A}[0]`,value:C[0],validateSpec:b.validateSpec,style:b.style,styleSpec:b.styleSpec},C));return $a(In(C[1]))?P.concat([new Se(`${A}[1]`,C[1],\"expressions are not allowed in function stops.\")]):P.concat(b.validateSpec({key:`${A}[1]`,value:C[1],valueSpec:e,validateSpec:b.validateSpec,style:b.style,styleSpec:b.styleSpec}))}function T(b,P){let C=nt(b.value),A=Gt(b.value),z=b.value!==null?b.value:P;if(o){if(C!==o)return[new Se(b.key,z,`${C} stop domain type must match previous stop domain type ${o}`)]}else o=C;if(C!==\"number\"&&C!==\"string\"&&C!==\"boolean\")return[new Se(b.key,z,\"stop domain value must be a number, string, or boolean\")];if(C!==\"number\"&&i!==\"categorical\"){let L=`number expected, ${C} found`;return ao(e)&&i===void 0&&(L+='\\nIf you intended to use a categorical function, specify `\"type\": \"categorical\"`.'),[new Se(b.key,z,L)]}return i!==\"categorical\"||C!==\"number\"||isFinite(A)&&Math.floor(A)===A?i!==\"categorical\"&&C===\"number\"&&a!==void 0&&Anew Se(`${r.key}${o.key}`,r.value,o.message)));let i=e.value.expression||e.value._styleExpression.expression;if(r.expressionContext===\"property\"&&r.propertyKey===\"text-font\"&&!i.outputDefined())return[new Se(r.key,r.value,`Invalid data expression for \"${r.propertyKey}\". Output values must be contained as literals within the expression.`)];if(r.expressionContext===\"property\"&&r.propertyType===\"layout\"&&!No(i))return[new Se(r.key,r.value,'\"feature-state\" data expressions are not supported with layout properties.')];if(r.expressionContext===\"filter\"&&!No(i))return[new Se(r.key,r.value,'\"feature-state\" data expressions are not supported with filters.')];if(r.expressionContext&&r.expressionContext.indexOf(\"cluster\")===0){if(!qa(i,[\"zoom\",\"feature-state\"]))return[new Se(r.key,r.value,'\"zoom\" and \"feature-state\" expressions are not supported with cluster properties.')];if(r.expressionContext===\"cluster-initial\"&&!Ua(i))return[new Se(r.key,r.value,\"Feature data expressions are not supported with initial expression part of cluster properties.\")]}return[]}function Ho(r){let e=r.key,i=r.value,o=nt(i);return o!==\"string\"?[new Se(e,i,`color expected, ${o} found`)]:tt.parse(String(i))?[]:[new Se(e,i,`color expected, \"${i}\" found`)]}function An(r){let e=r.key,i=r.value,o=r.valueSpec,a=[];return Array.isArray(o.values)?o.values.indexOf(Gt(i))===-1&&a.push(new Se(e,i,`expected one of [${o.values.join(\", \")}], ${JSON.stringify(i)} found`)):Object.keys(o.values).indexOf(Gt(i))===-1&&a.push(new Se(e,i,`expected one of [${Object.keys(o.values).join(\", \")}], ${JSON.stringify(i)} found`)),a}function uo(r){return _l(In(r.value))?Jr(fn({},r,{expressionContext:\"filter\",valueSpec:{value:\"boolean\"}})):Xc(r)}function Xc(r){let e=r.value,i=r.key;if(nt(e)!==\"array\")return[new Se(i,e,`array expected, ${nt(e)} found`)];let o=r.styleSpec,a,l=[];if(e.length<1)return[new Se(i,e,\"filter array must have at least 1 element\")];switch(l=l.concat(An({key:`${i}[0]`,value:e[0],valueSpec:o.filter_operator,style:r.style,styleSpec:r.styleSpec})),Gt(e[0])){case\"<\":case\"<=\":case\">\":case\">=\":e.length>=2&&Gt(e[1])===\"$type\"&&l.push(new Se(i,e,`\"$type\" cannot be use with operator \"${e[0]}\"`));case\"==\":case\"!=\":e.length!==3&&l.push(new Se(i,e,`filter array for operator \"${e[0]}\" must have 3 elements`));case\"in\":case\"!in\":e.length>=2&&(a=nt(e[1]),a!==\"string\"&&l.push(new Se(`${i}[1]`,e[1],`string expected, ${a} found`)));for(let u=2;u{_ in a&&o.push(new Se(l,a[_],`\"${_}\" is prohibited for ref layers`))})),u.layers.forEach((_=>{Gt(_.id)===m&&(v=_)})),v?v.ref?o.push(new Se(l,a.ref,\"ref cannot reference another ref layer\")):g=Gt(v.type):o.push(new Se(l,a.ref,`ref layer \"${m}\" not found`))}else if(g!==\"background\")if(a.source){let v=u.sources&&u.sources[a.source],_=v&&Gt(v.type);v?_===\"vector\"&&g===\"raster\"?o.push(new Se(l,a.source,`layer \"${a.id}\" requires a raster source`)):_!==\"raster-dem\"&&g===\"hillshade\"||_!==\"raster-dem\"&&g===\"color-relief\"?o.push(new Se(l,a.source,`layer \"${a.id}\" requires a raster-dem source`)):_===\"raster\"&&g!==\"raster\"?o.push(new Se(l,a.source,`layer \"${a.id}\" requires a vector source`)):_!==\"vector\"||a[\"source-layer\"]?_===\"raster-dem\"&&g!==\"hillshade\"&&g!==\"color-relief\"?o.push(new Se(l,a.source,\"raster-dem source can only be used with layer type 'hillshade' or 'color-relief'.\")):g!==\"line\"||!a.paint||!a.paint[\"line-gradient\"]||_===\"geojson\"&&v.lineMetrics||o.push(new Se(l,a,`layer \"${a.id}\" specifies a line-gradient, which requires a GeoJSON source with \\`lineMetrics\\` enabled.`)):o.push(new Se(l,a,`layer \"${a.id}\" must specify a \"source-layer\"`)):o.push(new Se(l,a.source,`source \"${a.source}\" not found`))}else o.push(new Se(l,a,'missing required property \"source\"'));return g===\"raster\"&&(!((e=a.paint)===null||e===void 0)&&e.resampling)&&(!((i=a.paint)===null||i===void 0)&&i[\"raster-resampling\"])&&o.push(new Se(l,a.paint,`layer \"${a.id}\" redundantly specifies \"resampling\" and \"raster-resampling\" paint properties, but only one is allowed. It is advised to use \"resampling\".`)),o=o.concat(Ni({key:l,value:a,valueSpec:p.layer,style:r.style,styleSpec:r.styleSpec,validateSpec:r.validateSpec,objectElementValidators:{\"*\":()=>[],type:()=>r.validateSpec({key:`${l}.type`,value:a.type,valueSpec:p.layer.type,style:r.style,styleSpec:r.styleSpec,validateSpec:r.validateSpec,object:a,objectKey:\"type\"}),filter:uo,layout:v=>Ni({layer:a,key:v.key,value:v.value,style:v.style,styleSpec:v.styleSpec,validateSpec:v.validateSpec,objectElementValidators:{\"*\":_=>Jc(fn({layerType:g},_))}}),paint:v=>Ni({layer:a,key:v.key,value:v.value,style:v.style,styleSpec:v.styleSpec,validateSpec:v.validateSpec,objectElementValidators:{\"*\":_=>Kc(fn({layerType:g},_))}})}})),o}function Qr(r){let e=r.value,i=r.key,o=nt(e);return o!==\"string\"?[new Se(i,e,`string expected, ${o} found`)]:[]}let bl={promoteId:function({key:r,value:e}){if(nt(e)===\"string\")return Qr({key:r,value:e});{let i=[];for(let o in e)i.push(...Qr({key:`${r}.${o}`,value:e[o]}));return i}}};function wl(r){let e=r.value,i=r.key,o=r.styleSpec,a=r.style,l=r.validateSpec;if(!e.type)return[new Se(i,e,'\"type\" is required')];let u=Gt(e.type),p;switch(u){case\"vector\":case\"raster\":return p=Ni({key:i,value:e,valueSpec:o[`source_${u.replace(\"-\",\"_\")}`],style:r.style,styleSpec:o,objectElementValidators:bl,validateSpec:l}),p;case\"raster-dem\":return p=(function(g){var m;let v=(m=g.sourceName)!==null&&m!==void 0?m:\"\",_=g.value,T=g.styleSpec,b=T.source_raster_dem,P=g.style,C=[],A=nt(_);if(_===void 0)return C;if(A!==\"object\")return C.push(new Se(\"source_raster_dem\",_,`object expected, ${A} found`)),C;let z=Gt(_.encoding)===\"custom\",L=[\"redFactor\",\"greenFactor\",\"blueFactor\",\"baseShift\"],R=g.value.encoding?`\"${g.value.encoding}\"`:\"Default\";for(let F in _)!z&&L.includes(F)?C.push(new Se(F,_[F],`In \"${v}\": \"${F}\" is only valid when \"encoding\" is set to \"custom\". ${R} encoding found`)):b[F]?C=C.concat(g.validateSpec({key:F,value:_[F],valueSpec:b[F],validateSpec:g.validateSpec,style:P,styleSpec:T})):C.push(new Se(F,_[F],`unknown property \"${F}\"`));return C})({sourceName:i,value:e,style:r.style,styleSpec:o,validateSpec:l}),p;case\"geojson\":if(p=Ni({key:i,value:e,valueSpec:o.source_geojson,style:a,styleSpec:o,validateSpec:l,objectElementValidators:bl}),e.cluster)for(let g in e.clusterProperties){let[m,v]=e.clusterProperties[g],_=typeof m==\"string\"?[m,[\"accumulated\"],[\"get\",g]]:m;p.push(...Jr({key:`${i}.${g}.map`,value:v,expressionContext:\"cluster-map\"})),p.push(...Jr({key:`${i}.${g}.reduce`,value:_,expressionContext:\"cluster-reduce\"}))}return p;case\"video\":return Ni({key:i,value:e,valueSpec:o.source_video,style:a,validateSpec:l,styleSpec:o});case\"image\":return Ni({key:i,value:e,valueSpec:o.source_image,style:a,validateSpec:l,styleSpec:o});case\"canvas\":return[new Se(i,null,\"Please use runtime APIs to add canvas sources, rather than including them in stylesheets.\",\"source.canvas\")];default:return An({key:`${i}.type`,value:e.type,valueSpec:{values:[\"vector\",\"raster\",\"raster-dem\",\"geojson\",\"video\",\"image\"]}})}}function Xo(r){let e=r.value,i=r.styleSpec,o=i.light,a=r.style,l=[],u=nt(e);if(e===void 0)return l;if(u!==\"object\")return l=l.concat([new Se(\"light\",e,`object expected, ${u} found`)]),l;for(let p in e){let g=p.match(/^(.*)-transition$/);l=l.concat(g&&o[g[1]]&&o[g[1]].transition?r.validateSpec({key:p,value:e[p],valueSpec:i.transition,validateSpec:r.validateSpec,style:a,styleSpec:i}):o[p]?r.validateSpec({key:p,value:e[p],valueSpec:o[p],validateSpec:r.validateSpec,style:a,styleSpec:i}):[new Se(p,e[p],`unknown property \"${p}\"`)])}return l}function eu(r){let e=r.value,i=r.styleSpec,o=i.sky,a=r.style,l=nt(e);if(e===void 0)return[];if(l!==\"object\")return[new Se(\"sky\",e,`object expected, ${l} found`)];let u=[];for(let p in e)u=u.concat(o[p]?r.validateSpec({key:p,value:e[p],valueSpec:o[p],style:a,styleSpec:i}):[new Se(p,e[p],`unknown property \"${p}\"`)]);return u}function Tl(r){let e=r.value,i=r.styleSpec,o=i.terrain,a=r.style,l=[],u=nt(e);if(e===void 0)return l;if(u!==\"object\")return l=l.concat([new Se(\"terrain\",e,`object expected, ${u} found`)]),l;for(let p in e)l=l.concat(o[p]?r.validateSpec({key:p,value:e[p],valueSpec:o[p],validateSpec:r.validateSpec,style:a,styleSpec:i}):[new Se(p,e[p],`unknown property \"${p}\"`)]);return l}function Sl(r){let e=[],i=r.value,o=r.key;if(Array.isArray(i)){let a=[],l=[];for(let u in i)i[u].id&&a.includes(i[u].id)&&e.push(new Se(o,i,`all the sprites' ids must be unique, but ${i[u].id} is duplicated`)),a.push(i[u].id),i[u].url&&l.includes(i[u].url)&&e.push(new Se(o,i,`all the sprites' URLs must be unique, but ${i[u].url} is duplicated`)),l.push(i[u].url),e=e.concat(Ni({key:`${o}[${u}]`,value:i[u],valueSpec:{id:{type:\"string\",required:!0},url:{type:\"string\",required:!0}},validateSpec:r.validateSpec}));return e}return Qr({key:o,value:i})}function tu(r){return!!r&&r.constructor===Object}function Yo(r){return tu(r.value)?[]:[new Se(r.key,r.value,`object expected, ${nt(r.value)} found`)]}let Ml={\"*\":()=>[],array:Ya,boolean:function(r){let e=r.value,i=r.key,o=nt(e);return o!==\"boolean\"?[new Se(i,e,`boolean expected, ${o} found`)]:[]},number:co,color:Ho,constants:Hc,enum:An,filter:uo,function:Ka,layer:Qc,object:Ni,source:wl,light:Xo,sky:eu,terrain:Tl,projection:function(r){let e=r.value,i=r.styleSpec,o=i.projection,a=r.style,l=nt(e);if(e===void 0)return[];if(l!==\"object\")return[new Se(\"projection\",e,`object expected, ${l} found`)];let u=[];for(let p in e)u=u.concat(o[p]?r.validateSpec({key:p,value:e[p],valueSpec:o[p],style:a,styleSpec:i}):[new Se(p,e[p],`unknown property \"${p}\"`)]);return u},projectionDefinition:function(r){let e=r.key,i=r.value;i=i instanceof String?i.valueOf():i;let o=nt(i);return o!==\"array\"||(function(a){return Array.isArray(a)&&a.length===3&&typeof a[0]==\"string\"&&typeof a[1]==\"string\"&&typeof a[2]==\"number\"})(i)||(function(a){return!![\"interpolate\",\"step\",\"literal\"].includes(a[0])})(i)?[\"array\",\"string\"].includes(o)?[]:[new Se(e,i,`projection expected, invalid type \"${o}\" found`)]:[new Se(e,i,`projection expected, invalid array ${JSON.stringify(i)} found`)]},string:Qr,formatted:function(r){return Qr(r).length===0?[]:Jr(r)},resolvedImage:function(r){return Qr(r).length===0?[]:Jr(r)},padding:function(r){let e=r.key,i=r.value;if(nt(i)===\"array\"){if(i.length<1||i.length>4)return[new Se(e,i,`padding requires 1 to 4 values; ${i.length} values found`)];let o={type:\"number\"},a=[];for(let l=0;l[]}})),r.constants&&(i=i.concat(Hc({key:\"constants\",value:r.constants}))),iu(i)}function gr(r){return function(e){return r(Object.assign({},e,{validateSpec:Ko}))}}function iu(r){return[].concat(r).sort(((e,i)=>e.line-i.line))}function _r(r){return function(...e){return iu(r.apply(this,e))}}rr.source=_r(gr(wl)),rr.sprite=_r(gr(Sl)),rr.glyphs=_r(gr(ho)),rr.light=_r(gr(Xo)),rr.sky=_r(gr(eu)),rr.terrain=_r(gr(Tl)),rr.state=_r(gr(Yo)),rr.layer=_r(gr(Qc)),rr.filter=_r(gr(uo)),rr.paintProperty=_r(gr(Kc)),rr.layoutProperty=_r(gr(Jc));let dh={type:\"enum\",\"property-type\":\"data-constant\",expression:{interpolated:!1,parameters:[\"global-state\"]},values:{visible:{},none:{}},transition:!1,default:\"visible\"};class ph{constructor(e,i){this._globalState=i,this.setValue(e)}evaluate(){var e;return(e=this._literalValue)!==null&&e!==void 0?e:this._compiledValue.evaluate({})}setValue(e){if(e==null||e===\"visible\"||e===\"none\")return this._literalValue=e===\"none\"?\"none\":\"visible\",this._compiledValue=void 0,void(this._globalStateRefs=new Set);let i=Go(e,dh,this._globalState);if(i.result===\"error\")throw this._literalValue=\"visible\",this._compiledValue=void 0,new Error(i.value.map((o=>`${o.key}: ${o.message}`)).join(\", \"));this._literalValue=void 0,this._compiledValue=i.value,this._globalStateRefs=so(i.value.expression)}getGlobalStateRefs(){return this._globalStateRefs}}let Jo=de,Tr=rr,Hi=Tr.light,Qo=Tr.sky,ru=Tr.paintProperty,fh=Tr.layoutProperty;function nu(r,e){let i=!1;if(e?.length)for(let o of e)r.fire(new qn(new Error(o.message))),i=!0;return i}class Rr{constructor(e,i,o){let a=this.cells=[];if(e instanceof ArrayBuffer){this.arrayBuffer=e;let u=new Int32Array(this.arrayBuffer);e=u[0],this.d=(i=u[1])+2*(o=u[2]);for(let g=0;g=_[b+0]&&a>=_[b+1])?(p[T]=!0,u.push(v[T])):p[T]=!1}}}_forEachCell(e,i,o,a,l,u,p,g){let m=this._convertToCellCoord(e),v=this._convertToCellCoord(i),_=this._convertToCellCoord(o),T=this._convertToCellCoord(a);for(let b=m;b<=_;b++)for(let P=v;P<=T;P++){let C=this.d*P+b;if((!g||g(this._convertFromCellCoord(b),this._convertFromCellCoord(P),this._convertFromCellCoord(b+1),this._convertFromCellCoord(P+1)))&&l.call(this,e,i,o,a,C,u,p,g))return}}_convertFromCellCoord(e){return(e-this.padding)/this.scale}_convertToCellCoord(e){return Math.max(0,Math.min(this.d-1,Math.floor(e*this.scale)+this.padding))}toArrayBuffer(){if(this.arrayBuffer)return this.arrayBuffer;let e=this.cells,i=3+this.cells.length+1+1,o=0;for(let u of this.cells)o+=u.length;let a=new Int32Array(i+o+this.keys.length+this.bboxes.length);a[0]=this.extent,a[1]=this.n,a[2]=this.padding;let l=i;for(let u=0;uo?(this.lastIntegerZoom=o+1,this.lastIntegerZoomTime=i):this.lastFloorZoom{try{return new RegExp(`\\\\p{sc=${i}}`,\"u\").source}catch{return null}})).filter((i=>i));return new RegExp(e.join(\"|\"),\"u\")}let El=lu([\"Arab\",\"Dupl\",\"Mong\",\"Ougr\",\"Syrc\"]);function Qa(r){return!El.test(String.fromCodePoint(r))}function Il(r){return!(zn(r)||(e=r,/[\\xA7\\xA9\\xAE\\xB1\\xBC-\\xBE\\xD7\\xF7\\u2016\\u2020\\u2021\\u2030\\u2031\\u203B\\u203C\\u2042\\u2047-\\u2049\\u2051\\u2100-\\u218F\\u221E\\u2234\\u2235\\u2300-\\u2307\\u230C-\\u231F\\u2324-\\u2328\\u232B\\u237D-\\u239A\\u23BE-\\u23CD\\u23CF\\u23D1-\\u23DB\\u23E2-\\u2422\\u2424-\\u24FF\\u25A0-\\u2619\\u2620-\\u2767\\u2776-\\u2793\\u2B12-\\u2B2F\\u2B50-\\u2B59\\u2BB8-\\u2BEB\\u3000-\\u303F\\u30A0-\\u30FF\\uE000-\\uF8FF\\uFE30-\\uFE6F\\uFF00-\\uFFEF\\uFFFC\\uFFFD]|[\\uDB80-\\uDBFF][\\uDC00-\\uDFFF]/gim.test(String.fromCodePoint(e))));var e}let cu=lu([\"Adlm\",\"Arab\",\"Armi\",\"Avst\",\"Chrs\",\"Cprt\",\"Egyp\",\"Elym\",\"Gara\",\"Hatr\",\"Hebr\",\"Hung\",\"Khar\",\"Lydi\",\"Mand\",\"Mani\",\"Mend\",\"Merc\",\"Mero\",\"Narb\",\"Nbat\",\"Nkoo\",\"Orkh\",\"Palm\",\"Phli\",\"Phlp\",\"Phnx\",\"Prti\",\"Rohg\",\"Samr\",\"Sarb\",\"Sogo\",\"Syrc\",\"Thaa\",\"Todr\",\"Yezi\"]);function Al(r){return cu.test(String.fromCodePoint(r))}function uu(r,e){return!(!e&&Al(r)||/[\\u0900-\\u0DFF\\u0F00-\\u109F\\u1780-\\u17FF]/gim.test(String.fromCodePoint(r)))}function zl(r){for(let e of r)if(Al(e.codePointAt(0)))return!0;return!1}let Fr=new class{constructor(){this.TIMEOUT=5e3,this.applyArabicShaping=null,this.processBidirectionalText=null,this.processStyledBidirectionalText=null,this.pluginStatus=\"unavailable\",this.pluginURL=null,this.loadScriptResolve=()=>{}}setState(r){this.pluginStatus=r.pluginStatus,this.pluginURL=r.pluginURL}getState(){return{pluginStatus:this.pluginStatus,pluginURL:this.pluginURL}}setMethods(r){if(Fr.isParsed())throw new Error(\"RTL text plugin already registered.\");this.applyArabicShaping=r.applyArabicShaping,this.processBidirectionalText=r.processBidirectionalText,this.processStyledBidirectionalText=r.processStyledBidirectionalText,this.loadScriptResolve()}isParsed(){return this.applyArabicShaping!=null&&this.processBidirectionalText!=null&&this.processStyledBidirectionalText!=null}getRTLTextPluginStatus(){return this.pluginStatus}syncState(r,e){return h(this,void 0,void 0,(function*(){if(this.isParsed())return this.getState();if(r.pluginStatus!==\"loading\")return this.setState(r),r;let i=r.pluginURL,o=new Promise((l=>{this.loadScriptResolve=l}));e(i);let a=new Promise((l=>setTimeout((()=>l()),this.TIMEOUT)));if(yield Promise.race([o,a]),this.isParsed()){let l={pluginStatus:\"loaded\",pluginURL:i};return this.setState(l),l}throw this.setState({pluginStatus:\"error\",pluginURL:\"\"}),new Error(`RTL Text Plugin failed to import scripts from ${i}`)}))}};class Et{constructor(e,i){this.isSupportedScript=hu,this.zoom=e,i?(this.now=i.now||0,this.fadeDuration=i.fadeDuration||0,this.zoomHistory=i.zoomHistory||new Pl,this.transition=i.transition||{}):(this.now=0,this.fadeDuration=0,this.zoomHistory=new Pl,this.transition={})}crossFadingFactor(){return this.fadeDuration===0?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)}getCrossfadeParameters(){let e=this.zoom,i=e-Math.floor(e),o=this.crossFadingFactor();return e>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:i+(1-i)*o}:{fromScale:.5,toScale:1,t:1-(1-o)*i}}}function hu(r){return(function(e,i){for(let o of e)if(!uu(o.codePointAt(0),i))return!1;return!0})(r,Fr.getRTLTextPluginStatus()===\"loaded\")}let es=\"-transition\";class ia{constructor(e,i,o){this.property=e,this.value=i,this.expression=(function(a,l,u){if(Ga(a))return new Ha(a,l);if($a(a)){let p=Zc(a,l,u);if(p.result===\"error\")throw new Error(p.value.map((g=>`${g.key}: ${g.message}`)).join(\", \"));return p.value}{let p=a;return l.type===\"color\"&&typeof a==\"string\"?p=tt.parse(a):l.type!==\"padding\"||typeof a!=\"number\"&&!Array.isArray(a)?l.type!==\"numberArray\"||typeof a!=\"number\"&&!Array.isArray(a)?l.type!==\"colorArray\"||typeof a!=\"string\"&&!Array.isArray(a)?l.type===\"variableAnchorOffsetCollection\"&&Array.isArray(a)?p=Ci.parse(a):l.type===\"projectionDefinition\"&&typeof a==\"string\"&&(p=Ei.parse(a)):p=We.parse(a):p=Rt.parse(a):p=mi.parse(a),{globalStateRefs:new Set,_globalState:null,kind:\"constant\",evaluate:()=>p}}})(i===void 0?e.specification.default:i,e.specification,o)}isDataDriven(){return this.expression.kind===\"source\"||this.expression.kind===\"composite\"}getGlobalStateRefs(){return this.expression.globalStateRefs||new Set}possiblyEvaluate(e,i,o){return this.property.possiblyEvaluate(this,e,i,o)}}class Dl{constructor(e,i){this.property=e,this.value=new ia(e,void 0,i)}transitioned(e,i){return new Rl(this.property,this.value,i,Mi({},e.transition,this.transition),e.now)}untransitioned(){return new Rl(this.property,this.value,null,{},0)}}class kl{constructor(e,i){this._properties=e,this._values=Object.create(e.defaultTransitionablePropertyValues),this._globalState=i}hasProperty(e){return e in this._properties.defaultTransitionablePropertyValues}getValue(e){return De(this._values[e].value.value)}setValue(e,i){Object.hasOwn(this._values,e)||(this._values[e]=new Dl(this._values[e].property,this._globalState)),this._values[e].value=new ia(this._values[e].property,i===null?void 0:De(i),this._globalState)}getTransition(e){return De(this._values[e].transition)}setTransition(e,i){Object.hasOwn(this._values,e)||(this._values[e]=new Dl(this._values[e].property,this._globalState)),this._values[e].transition=De(i)||void 0}serialize(){let e={};for(let i of Object.keys(this._values)){let o=this.getValue(i);o!==void 0&&(e[i]=o);let a=this.getTransition(i);a!==void 0&&(e[`${i}${es}`]=a)}return e}transitioned(e,i){let o=new du(this._properties);for(let a of Object.keys(this._values))o._values[a]=this._values[a].transitioned(e,i._values[a]);return o}untransitioned(){let e=new du(this._properties);for(let i of Object.keys(this._values))e._values[i]=this._values[i].untransitioned();return e}}class Rl{constructor(e,i,o,a,l){this.property=e,this.value=i,this.begin=l+a.delay||0,this.end=this.begin+a.duration||0,e.specification.transition&&(a.delay||a.duration)&&(this.prior=o)}possiblyEvaluate(e,i,o){let a=e.now||0,l=this.value.possiblyEvaluate(e,i,o),u=this.prior;if(u){if(a>this.end)return this.prior=null,l;if(this.value.isDataDriven())return this.prior=null,l;if(aa.zoomHistory.lastIntegerZoom?{from:e,to:i}:{from:o,to:i}}interpolate(e){return e}}class pu{constructor(e){this.specification=e}possiblyEvaluate(e,i,o,a){if(e.value!==void 0){if(e.expression.kind===\"constant\"){let l=e.expression.evaluate(i,null,{},o,a);return this._calculate(l,l,l,i)}return this._calculate(e.expression.evaluate(new Et(Math.floor(i.zoom-1),i)),e.expression.evaluate(new Et(Math.floor(i.zoom),i)),e.expression.evaluate(new Et(Math.floor(i.zoom+1),i)),i)}}_calculate(e,i,o,a){return a.zoom>a.zoomHistory.lastIntegerZoom?{from:e,to:i}:{from:o,to:i}}interpolate(e){return e}}class po{constructor(e){this.specification=e}possiblyEvaluate(e,i,o,a){return!!e.expression.evaluate(i,null,{},o,a)}interpolate(){return!1}}class Ii{constructor(e){this.properties=e,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];for(let i in e){let o=e[i];o.specification.overridable&&this.overridableProperties.push(i);let a=this.defaultPropertyValues[i]=new ia(o,void 0,void 0),l=this.defaultTransitionablePropertyValues[i]=new Dl(o,void 0);this.defaultTransitioningPropertyValues[i]=l.untransitioned(),this.defaultPossiblyEvaluatedValues[i]=a.possiblyEvaluate({})}}}ze(\"DataDrivenProperty\",Ue),ze(\"DataConstantProperty\",Le),ze(\"CrossFadedDataDrivenProperty\",en),ze(\"CrossFadedProperty\",pu),ze(\"ColorRampProperty\",po);let fu=\" is a PAINT property not a LAYOUT property. Use get/setPaintProperty instead?\",ts=\" is a LAYOUT property not a PAINT property. Use get/setLayoutProperty instead?\";class nr extends xa{constructor(e,i,o){if(super(),this.id=e.id,this.type=e.type,this._globalState=o,this._featureFilter={filter:()=>!0,needGeometry:!1,getGlobalStateRefs:()=>new Set},this._visibilityExpression=(function(a,l){return new ph(a,l)})(this.visibility,o),e.type!==\"custom\"&&(this.metadata=e.metadata,this.minzoom=e.minzoom,this.maxzoom=e.maxzoom,e.type!==\"background\"&&(this.source=e.source,this.sourceLayer=e[\"source-layer\"],this.filter=e.filter,this._featureFilter=$o(e.filter,o)),i.layout&&(this._unevaluatedLayout=new gh(i.layout,o)),i.paint)){this._transitionablePaint=new kl(i.paint,o);for(let a in e.paint)this.setPaintProperty(a,e.paint[a],{validate:!1});for(let a in e.layout)this.setLayoutProperty(a,e.layout[a],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new ra(i.paint)}}setFilter(e){this.filter=e,this._featureFilter=$o(e,this._globalState)}getCrossfadeParameters(){return this._crossfadeParameters}getLayoutProperty(e){var i;if(e===\"visibility\")return this.visibility;if(!((i=this._transitionablePaint)===null||i===void 0)&&i.hasProperty(e))throw new Error(e+fu);if(!this._unevaluatedLayout)throw new Error(`Cannot get layout property \"${e}\" on layer type \"${this.type}\" which has no layout properties.`);return this._unevaluatedLayout.getValue(e)}getLayoutAffectingGlobalStateRefs(){let e=new Set;for(let i of this._visibilityExpression.getGlobalStateRefs())e.add(i);if(this._unevaluatedLayout)for(let i in this._unevaluatedLayout._values){let o=this._unevaluatedLayout._values[i];for(let a of o.getGlobalStateRefs())e.add(a)}for(let i of this._featureFilter.getGlobalStateRefs())e.add(i);return e}getPaintAffectingGlobalStateRefs(){var e;let i=new globalThis.Map;if(this._transitionablePaint)for(let o in this._transitionablePaint._values){let a=this._transitionablePaint._values[o].value;for(let l of a.getGlobalStateRefs()){let u=(e=i.get(l))!==null&&e!==void 0?e:[];u.push({name:o,value:a.value}),i.set(l,u)}}return i}getVisibilityAffectingGlobalStateRefs(){return this._visibilityExpression.getGlobalStateRefs()}setLayoutProperty(e,i,o={}){var a;if(e===\"visibility\")return this.visibility=i,this._visibilityExpression.setValue(i),void this.recalculateVisibility();!((a=this._transitionablePaint)===null||a===void 0)&&a.hasProperty(e)?this.fire(new qn(new Error(e+fu))):i!=null&&this._validate(fh,`layers.${this.id}.layout.${e}`,e,i,o)||this._unevaluatedLayout.setValue(e,i)}getPaintProperty(e){var i,o;if(e.endsWith(es)){let a=e.slice(0,-11);if(a===\"visibility\"||!((i=this._unevaluatedLayout)===null||i===void 0)&&i.hasProperty(a))throw new Error(e+ts);return this._transitionablePaint.getTransition(a)}if(e===\"visibility\"||!((o=this._unevaluatedLayout)===null||o===void 0)&&o.hasProperty(e))throw new Error(e+ts);return this._transitionablePaint.getValue(e)}setPaintProperty(e,i,o={}){var a;if(e===\"visibility\"||!((a=this._unevaluatedLayout)===null||a===void 0)&&a.hasProperty(e))return this.fire(new qn(new Error(e+ts))),!1;if(i!=null&&this._validate(ru,`layers.${this.id}.paint.${e}`,e,i,o))return!1;if(e.endsWith(es))return this._transitionablePaint.setTransition(e.slice(0,-11),i||void 0),!1;{let l=this._transitionablePaint._values[e],u=l.property.specification[\"property-type\"]===\"cross-faded-data-driven\",p=l.value.isDataDriven(),g=l.value;this._transitionablePaint.setValue(e,i),this._handleSpecialPaintPropertyUpdate(e);let m=this._transitionablePaint._values[e].value;return m.isDataDriven()||p||u||this._handleOverridablePaintPropertyUpdate(e,g,m)}}_handleSpecialPaintPropertyUpdate(e){}_handleOverridablePaintPropertyUpdate(e,i,o){return!1}isHidden(e=this.minzoom,i=!1){return!!(this.minzoom&&e<(i?Math.floor(this.minzoom):this.minzoom))||!!(this.maxzoom&&e>=this.maxzoom)||this._evaluatedVisibility===\"none\"}updateTransitions(e){this._transitioningPaint=this._transitionablePaint.transitioned(e,this._transitioningPaint)}hasTransition(){return this._transitioningPaint.hasTransition()}recalculateVisibility(){this._evaluatedVisibility=this._visibilityExpression.evaluate()}recalculate(e,i){e.getCrossfadeParameters&&(this._crossfadeParameters=e.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(e,void 0,i)),this.paint=this._transitioningPaint.possiblyEvaluate(e,void 0,i)}serialize(){var e,i;let o={id:this.id,type:this.type,source:this.source,\"source-layer\":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:(e=this._unevaluatedLayout)===null||e===void 0?void 0:e.serialize(),paint:(i=this._transitionablePaint)===null||i===void 0?void 0:i.serialize()};return this.visibility&&(o.layout||(o.layout={}),o.layout.visibility=this.visibility),Ne(o,((a,l)=>!(a===void 0||l===\"layout\"&&!Object.keys(a).length||l===\"paint\"&&!Object.keys(a).length)))}_validate(e,i,o,a,l={}){return l?.validate!==!1&&nu(this,e.call(Tr,{key:i,layerType:this.type,objectKey:o,value:a,styleSpec:de,style:{glyphs:!0,sprite:!0}}))}is3D(){return!1}isTileClipped(){return!1}hasOffscreenPass(){return!1}resize(){}isStateDependent(){for(let e in this.paint._values){let i=this.paint.get(e);if(i instanceof yr&&ao(i.property.specification)&&(i.value.kind===\"source\"||i.value.kind===\"composite\")&&i.value.isStateDependent)return!0}return!1}}let Ll;var _h={get paint(){return Ll=Ll||new Ii({\"raster-opacity\":new Le(de.paint_raster[\"raster-opacity\"]),\"raster-hue-rotate\":new Le(de.paint_raster[\"raster-hue-rotate\"]),\"raster-brightness-min\":new Le(de.paint_raster[\"raster-brightness-min\"]),\"raster-brightness-max\":new Le(de.paint_raster[\"raster-brightness-max\"]),\"raster-saturation\":new Le(de.paint_raster[\"raster-saturation\"]),\"raster-contrast\":new Le(de.paint_raster[\"raster-contrast\"]),resampling:new Le(de.paint_raster.resampling),\"raster-resampling\":new Le(de.paint_raster[\"raster-resampling\"]),\"raster-fade-duration\":new Le(de.paint_raster[\"raster-fade-duration\"])})}};class yh extends nr{constructor(e,i){super(e,_h,i)}}let vh={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array};class na{constructor(e,i){this._structArray=e,this._pos1=i*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8}}class Lt{constructor(){this.isTransferred=!1,this.capacity=-1,this.resize(0)}static serialize(e,i){return e._trim(),i&&(e.isTransferred=!0,i.push(e.arrayBuffer)),{length:e.length,arrayBuffer:e.arrayBuffer}}static deserialize(e){let i=Object.create(this.prototype);return i.arrayBuffer=e.arrayBuffer,i.length=e.length,i.capacity=e.arrayBuffer.byteLength/i.bytesPerElement,i._refreshViews(),i}_trim(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())}clear(){this.length=0}resize(e){this.reserve(e),this.length=e}reserve(e){if(e>this.capacity){this.capacity=Math.max(e,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);let i=this.uint8;this._refreshViews(),i&&this.uint8.set(i)}}_refreshViews(){throw new Error(\"_refreshViews() must be implemented by each concrete StructArray layout\")}freeBufferAfterUpload(){this.arrayBuffer=new ArrayBuffer(0),this._refreshViews()}}function It(r,e=1){let i=0,o=0;return{members:r.map((a=>{let l=vh[a.type].BYTES_PER_ELEMENT,u=i=mu(i,Math.max(e,l)),p=a.components||1;return o=Math.max(o,l),i+=l*p,{name:a.name,type:a.type,components:p,offset:u}})),size:mu(i,Math.max(o,e)),alignment:e}}function mu(r,e){return Math.ceil(r/e)*e}class oa extends Lt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,i){let o=this.length;return this.resize(o+1),this.emplace(o,e,i)}emplace(e,i,o){let a=2*e;return this.int16[a+0]=i,this.int16[a+1]=o,e}}oa.prototype.bytesPerElement=4,ze(\"StructArrayLayout2i4\",oa);class is extends Lt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,i,o){let a=this.length;return this.resize(a+1),this.emplace(a,e,i,o)}emplace(e,i,o,a){let l=3*e;return this.int16[l+0]=i,this.int16[l+1]=o,this.int16[l+2]=a,e}}is.prototype.bytesPerElement=6,ze(\"StructArrayLayout3i6\",is);class rs extends Lt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,i,o,a){let l=this.length;return this.resize(l+1),this.emplace(l,e,i,o,a)}emplace(e,i,o,a,l){let u=4*e;return this.int16[u+0]=i,this.int16[u+1]=o,this.int16[u+2]=a,this.int16[u+3]=l,e}}rs.prototype.bytesPerElement=8,ze(\"StructArrayLayout4i8\",rs);class ns extends Lt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,i,o,a,l,u){let p=this.length;return this.resize(p+1),this.emplace(p,e,i,o,a,l,u)}emplace(e,i,o,a,l,u,p){let g=6*e;return this.int16[g+0]=i,this.int16[g+1]=o,this.int16[g+2]=a,this.int16[g+3]=l,this.int16[g+4]=u,this.int16[g+5]=p,e}}ns.prototype.bytesPerElement=12,ze(\"StructArrayLayout2i4i12\",ns);class Fl extends Lt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,i,o,a,l,u){let p=this.length;return this.resize(p+1),this.emplace(p,e,i,o,a,l,u)}emplace(e,i,o,a,l,u,p){let g=4*e,m=8*e;return this.int16[g+0]=i,this.int16[g+1]=o,this.uint8[m+4]=a,this.uint8[m+5]=l,this.uint8[m+6]=u,this.uint8[m+7]=p,e}}Fl.prototype.bytesPerElement=8,ze(\"StructArrayLayout2i4ub8\",Fl);class aa extends Lt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,i){let o=this.length;return this.resize(o+1),this.emplace(o,e,i)}emplace(e,i,o){let a=2*e;return this.float32[a+0]=i,this.float32[a+1]=o,e}}aa.prototype.bytesPerElement=8,ze(\"StructArrayLayout2f8\",aa);class Br extends Lt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,i,o,a,l,u,p,g,m,v){let _=this.length;return this.resize(_+1),this.emplace(_,e,i,o,a,l,u,p,g,m,v)}emplace(e,i,o,a,l,u,p,g,m,v,_){let T=10*e;return this.uint16[T+0]=i,this.uint16[T+1]=o,this.uint16[T+2]=a,this.uint16[T+3]=l,this.uint16[T+4]=u,this.uint16[T+5]=p,this.uint16[T+6]=g,this.uint16[T+7]=m,this.uint16[T+8]=v,this.uint16[T+9]=_,e}}Br.prototype.bytesPerElement=20,ze(\"StructArrayLayout10ui20\",Br);class os extends Lt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,i,o,a,l,u,p,g){let m=this.length;return this.resize(m+1),this.emplace(m,e,i,o,a,l,u,p,g)}emplace(e,i,o,a,l,u,p,g,m){let v=8*e;return this.uint16[v+0]=i,this.uint16[v+1]=o,this.uint16[v+2]=a,this.uint16[v+3]=l,this.uint16[v+4]=u,this.uint16[v+5]=p,this.uint16[v+6]=g,this.uint16[v+7]=m,e}}os.prototype.bytesPerElement=16,ze(\"StructArrayLayout8ui16\",os);class sa extends Lt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,i,o,a,l,u,p,g,m,v,_,T){let b=this.length;return this.resize(b+1),this.emplace(b,e,i,o,a,l,u,p,g,m,v,_,T)}emplace(e,i,o,a,l,u,p,g,m,v,_,T,b){let P=12*e;return this.int16[P+0]=i,this.int16[P+1]=o,this.int16[P+2]=a,this.int16[P+3]=l,this.uint16[P+4]=u,this.uint16[P+5]=p,this.uint16[P+6]=g,this.uint16[P+7]=m,this.int16[P+8]=v,this.int16[P+9]=_,this.int16[P+10]=T,this.int16[P+11]=b,e}}sa.prototype.bytesPerElement=24,ze(\"StructArrayLayout4i4ui4i24\",sa);class as extends Lt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,i,o){let a=this.length;return this.resize(a+1),this.emplace(a,e,i,o)}emplace(e,i,o,a){let l=3*e;return this.float32[l+0]=i,this.float32[l+1]=o,this.float32[l+2]=a,e}}as.prototype.bytesPerElement=12,ze(\"StructArrayLayout3f12\",as);class la extends Lt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(e){let i=this.length;return this.resize(i+1),this.emplace(i,e)}emplace(e,i){return this.uint32[1*e+0]=i,e}}la.prototype.bytesPerElement=4,ze(\"StructArrayLayout1ul4\",la);class Bl extends Lt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,i,o,a,l,u,p,g,m){let v=this.length;return this.resize(v+1),this.emplace(v,e,i,o,a,l,u,p,g,m)}emplace(e,i,o,a,l,u,p,g,m,v){let _=10*e,T=5*e;return this.int16[_+0]=i,this.int16[_+1]=o,this.int16[_+2]=a,this.int16[_+3]=l,this.int16[_+4]=u,this.int16[_+5]=p,this.uint32[T+3]=g,this.uint16[_+8]=m,this.uint16[_+9]=v,e}}Bl.prototype.bytesPerElement=20,ze(\"StructArrayLayout6i1ul2ui20\",Bl);class fo extends Lt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,i,o,a,l,u){let p=this.length;return this.resize(p+1),this.emplace(p,e,i,o,a,l,u)}emplace(e,i,o,a,l,u,p){let g=6*e;return this.int16[g+0]=i,this.int16[g+1]=o,this.int16[g+2]=a,this.int16[g+3]=l,this.int16[g+4]=u,this.int16[g+5]=p,e}}fo.prototype.bytesPerElement=12,ze(\"StructArrayLayout2i2i2i12\",fo);class Dn extends Lt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,i,o,a,l){let u=this.length;return this.resize(u+1),this.emplace(u,e,i,o,a,l)}emplace(e,i,o,a,l,u){let p=4*e,g=8*e;return this.float32[p+0]=i,this.float32[p+1]=o,this.float32[p+2]=a,this.int16[g+6]=l,this.int16[g+7]=u,e}}Dn.prototype.bytesPerElement=16,ze(\"StructArrayLayout2f1f2i16\",Dn);class Ol extends Lt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,i,o,a,l,u){let p=this.length;return this.resize(p+1),this.emplace(p,e,i,o,a,l,u)}emplace(e,i,o,a,l,u,p){let g=16*e,m=4*e,v=8*e;return this.uint8[g+0]=i,this.uint8[g+1]=o,this.float32[m+1]=a,this.float32[m+2]=l,this.int16[v+6]=u,this.int16[v+7]=p,e}}Ol.prototype.bytesPerElement=16,ze(\"StructArrayLayout2ub2f2i16\",Ol);class ca extends Lt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,i,o){let a=this.length;return this.resize(a+1),this.emplace(a,e,i,o)}emplace(e,i,o,a){let l=3*e;return this.uint16[l+0]=i,this.uint16[l+1]=o,this.uint16[l+2]=a,e}}ca.prototype.bytesPerElement=6,ze(\"StructArrayLayout3ui6\",ca);class kn extends Lt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,i,o,a,l,u,p,g,m,v,_,T,b,P,C,A,z){let L=this.length;return this.resize(L+1),this.emplace(L,e,i,o,a,l,u,p,g,m,v,_,T,b,P,C,A,z)}emplace(e,i,o,a,l,u,p,g,m,v,_,T,b,P,C,A,z,L){let R=24*e,F=12*e,O=48*e;return this.int16[R+0]=i,this.int16[R+1]=o,this.uint16[R+2]=a,this.uint16[R+3]=l,this.uint32[F+2]=u,this.uint32[F+3]=p,this.uint32[F+4]=g,this.uint16[R+10]=m,this.uint16[R+11]=v,this.uint16[R+12]=_,this.float32[F+7]=T,this.float32[F+8]=b,this.uint8[O+36]=P,this.uint8[O+37]=C,this.uint8[O+38]=A,this.uint32[F+10]=z,this.int16[R+22]=L,e}}kn.prototype.bytesPerElement=48,ze(\"StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48\",kn);class Vl extends Lt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,i,o,a,l,u,p,g,m,v,_,T,b,P,C,A,z,L,R,F,O,j,Y,Q,oe,ie,ue,he){let ae=this.length;return this.resize(ae+1),this.emplace(ae,e,i,o,a,l,u,p,g,m,v,_,T,b,P,C,A,z,L,R,F,O,j,Y,Q,oe,ie,ue,he)}emplace(e,i,o,a,l,u,p,g,m,v,_,T,b,P,C,A,z,L,R,F,O,j,Y,Q,oe,ie,ue,he,ae){let ne=32*e,be=16*e;return this.int16[ne+0]=i,this.int16[ne+1]=o,this.int16[ne+2]=a,this.int16[ne+3]=l,this.int16[ne+4]=u,this.int16[ne+5]=p,this.int16[ne+6]=g,this.int16[ne+7]=m,this.uint16[ne+8]=v,this.uint16[ne+9]=_,this.uint16[ne+10]=T,this.uint16[ne+11]=b,this.uint16[ne+12]=P,this.uint16[ne+13]=C,this.uint16[ne+14]=A,this.uint16[ne+15]=z,this.uint16[ne+16]=L,this.uint16[ne+17]=R,this.uint16[ne+18]=F,this.uint16[ne+19]=O,this.uint16[ne+20]=j,this.uint16[ne+21]=Y,this.uint16[ne+22]=Q,this.uint32[be+12]=oe,this.float32[be+13]=ie,this.float32[be+14]=ue,this.uint16[ne+30]=he,this.uint16[ne+31]=ae,e}}Vl.prototype.bytesPerElement=64,ze(\"StructArrayLayout8i15ui1ul2f2ui64\",Vl);class ss extends Lt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e){let i=this.length;return this.resize(i+1),this.emplace(i,e)}emplace(e,i){return this.float32[1*e+0]=i,e}}ss.prototype.bytesPerElement=4,ze(\"StructArrayLayout1f4\",ss);class ls extends Lt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,i,o){let a=this.length;return this.resize(a+1),this.emplace(a,e,i,o)}emplace(e,i,o,a){let l=3*e;return this.uint16[6*e+0]=i,this.float32[l+1]=o,this.float32[l+2]=a,e}}ls.prototype.bytesPerElement=12,ze(\"StructArrayLayout1ui2f12\",ls);class jl extends Lt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,i,o){let a=this.length;return this.resize(a+1),this.emplace(a,e,i,o)}emplace(e,i,o,a){let l=4*e;return this.uint32[2*e+0]=i,this.uint16[l+2]=o,this.uint16[l+3]=a,e}}jl.prototype.bytesPerElement=8,ze(\"StructArrayLayout1ul2ui8\",jl);class d extends Lt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,i){let o=this.length;return this.resize(o+1),this.emplace(o,e,i)}emplace(e,i,o){let a=2*e;return this.uint16[a+0]=i,this.uint16[a+1]=o,e}}d.prototype.bytesPerElement=4,ze(\"StructArrayLayout2ui4\",d);class t extends Lt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e){let i=this.length;return this.resize(i+1),this.emplace(i,e)}emplace(e,i){return this.uint16[1*e+0]=i,e}}t.prototype.bytesPerElement=2,ze(\"StructArrayLayout1ui2\",t);class n extends Lt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,i,o,a){let l=this.length;return this.resize(l+1),this.emplace(l,e,i,o,a)}emplace(e,i,o,a,l){let u=4*e;return this.float32[u+0]=i,this.float32[u+1]=o,this.float32[u+2]=a,this.float32[u+3]=l,e}}n.prototype.bytesPerElement=16,ze(\"StructArrayLayout4f16\",n);class s extends na{get anchorPointX(){return this._structArray.int16[this._pos2+0]}get anchorPointY(){return this._structArray.int16[this._pos2+1]}get x1(){return this._structArray.int16[this._pos2+2]}get y1(){return this._structArray.int16[this._pos2+3]}get x2(){return this._structArray.int16[this._pos2+4]}get y2(){return this._structArray.int16[this._pos2+5]}get featureIndex(){return this._structArray.uint32[this._pos4+3]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+8]}get bucketIndex(){return this._structArray.uint16[this._pos2+9]}get anchorPoint(){return new pe(this.anchorPointX,this.anchorPointY)}}s.prototype.size=20;class c extends Bl{get(e){return new s(this,e)}}ze(\"CollisionBoxArray\",c);class f extends na{get anchorX(){return this._structArray.int16[this._pos2+0]}get anchorY(){return this._structArray.int16[this._pos2+1]}get glyphStartIndex(){return this._structArray.uint16[this._pos2+2]}get numGlyphs(){return this._structArray.uint16[this._pos2+3]}get vertexStartIndex(){return this._structArray.uint32[this._pos4+2]}get lineStartIndex(){return this._structArray.uint32[this._pos4+3]}get lineLength(){return this._structArray.uint32[this._pos4+4]}get segment(){return this._structArray.uint16[this._pos2+10]}get lowerSize(){return this._structArray.uint16[this._pos2+11]}get upperSize(){return this._structArray.uint16[this._pos2+12]}get lineOffsetX(){return this._structArray.float32[this._pos4+7]}get lineOffsetY(){return this._structArray.float32[this._pos4+8]}get writingMode(){return this._structArray.uint8[this._pos1+36]}get placedOrientation(){return this._structArray.uint8[this._pos1+37]}set placedOrientation(e){this._structArray.uint8[this._pos1+37]=e}get hidden(){return this._structArray.uint8[this._pos1+38]}set hidden(e){this._structArray.uint8[this._pos1+38]=e}get crossTileID(){return this._structArray.uint32[this._pos4+10]}set crossTileID(e){this._structArray.uint32[this._pos4+10]=e}get associatedIconIndex(){return this._structArray.int16[this._pos2+22]}}f.prototype.size=48;class y extends kn{get(e){return new f(this,e)}}ze(\"PlacedSymbolArray\",y);class x extends na{get anchorX(){return this._structArray.int16[this._pos2+0]}get anchorY(){return this._structArray.int16[this._pos2+1]}get rightJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+2]}get centerJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+3]}get leftJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+4]}get verticalPlacedTextSymbolIndex(){return this._structArray.int16[this._pos2+5]}get placedIconSymbolIndex(){return this._structArray.int16[this._pos2+6]}get verticalPlacedIconSymbolIndex(){return this._structArray.int16[this._pos2+7]}get key(){return this._structArray.uint16[this._pos2+8]}get textBoxStartIndex(){return this._structArray.uint16[this._pos2+9]}get textBoxEndIndex(){return this._structArray.uint16[this._pos2+10]}get verticalTextBoxStartIndex(){return this._structArray.uint16[this._pos2+11]}get verticalTextBoxEndIndex(){return this._structArray.uint16[this._pos2+12]}get iconBoxStartIndex(){return this._structArray.uint16[this._pos2+13]}get iconBoxEndIndex(){return this._structArray.uint16[this._pos2+14]}get verticalIconBoxStartIndex(){return this._structArray.uint16[this._pos2+15]}get verticalIconBoxEndIndex(){return this._structArray.uint16[this._pos2+16]}get featureIndex(){return this._structArray.uint16[this._pos2+17]}get numHorizontalGlyphVertices(){return this._structArray.uint16[this._pos2+18]}get numVerticalGlyphVertices(){return this._structArray.uint16[this._pos2+19]}get numIconVertices(){return this._structArray.uint16[this._pos2+20]}get numVerticalIconVertices(){return this._structArray.uint16[this._pos2+21]}get useRuntimeCollisionCircles(){return this._structArray.uint16[this._pos2+22]}get crossTileID(){return this._structArray.uint32[this._pos4+12]}set crossTileID(e){this._structArray.uint32[this._pos4+12]=e}get textBoxScale(){return this._structArray.float32[this._pos4+13]}get collisionCircleDiameter(){return this._structArray.float32[this._pos4+14]}get textAnchorOffsetStartIndex(){return this._structArray.uint16[this._pos2+30]}get textAnchorOffsetEndIndex(){return this._structArray.uint16[this._pos2+31]}}x.prototype.size=64;class w extends Vl{get(e){return new x(this,e)}}ze(\"SymbolInstanceArray\",w);class S extends ss{getoffsetX(e){return this.float32[1*e+0]}}ze(\"GlyphOffsetArray\",S);class M extends is{getx(e){return this.int16[3*e+0]}gety(e){return this.int16[3*e+1]}gettileUnitDistanceFromAnchor(e){return this.int16[3*e+2]}}ze(\"SymbolLineVertexArray\",M);class E extends na{get textAnchor(){return this._structArray.uint16[this._pos2+0]}get textOffset0(){return this._structArray.float32[this._pos4+1]}get textOffset1(){return this._structArray.float32[this._pos4+2]}}E.prototype.size=12;class I extends ls{get(e){return new E(this,e)}}ze(\"TextAnchorOffsetArray\",I);class D extends na{get featureIndex(){return this._structArray.uint32[this._pos4+0]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+2]}get bucketIndex(){return this._structArray.uint16[this._pos2+3]}}D.prototype.size=8;class B extends jl{get(e){return new D(this,e)}}ze(\"FeatureIndexArray\",B);class V extends oa{}class q extends oa{}class N extends oa{}class G extends ns{}class X extends Fl{}class $ extends aa{}class U extends Br{}class H extends os{}class Z extends sa{}class te extends as{}class se extends la{}class ce extends fo{}class _e extends Ol{}class ge extends ca{}class Re extends d{}let Ce=It([{name:\"a_pos\",components:2,type:\"Int16\"}],4),{members:me}=Ce;class Ae{constructor(e=[]){this._forceNewSegmentOnNextPrepare=!1,this.segments=e}prepareSegment(e,i,o,a){let l=this.segments[this.segments.length-1];return e>Ae.MAX_VERTEX_ARRAY_LENGTH&&xt(`Max vertices per segment is ${Ae.MAX_VERTEX_ARRAY_LENGTH}: bucket requested ${e}. Consider using the \\`fillLargeMeshArrays\\` function if you require meshes with more than ${Ae.MAX_VERTEX_ARRAY_LENGTH} vertices.`),this._forceNewSegmentOnNextPrepare||!l||l.vertexLength+e>Ae.MAX_VERTEX_ARRAY_LENGTH||l.sortKey!==a?this.createNewSegment(i,o,a):l}createNewSegment(e,i,o){let a={vertexOffset:e.length,primitiveOffset:i.length,vertexLength:0,primitiveLength:0,vaos:{}};return o!==void 0&&(a.sortKey=o),this._forceNewSegmentOnNextPrepare=!1,this.segments.push(a),a}getOrCreateLatestSegment(e,i,o){return this.prepareSegment(0,e,i,o)}forceNewSegmentOnNextPrepare(){this._forceNewSegmentOnNextPrepare=!0}get(){return this.segments}destroy(){for(let e of this.segments)for(let i in e.vaos)e.vaos[i].destroy()}static simpleSegment(e,i,o,a){return new Ae([{vertexOffset:e,primitiveOffset:i,vertexLength:o,primitiveLength:a,vaos:{},sortKey:0}])}}function Be(r,e){return 256*(r=ti(Math.floor(r),0,255))+ti(Math.floor(e),0,255)}Ae.MAX_VERTEX_ARRAY_LENGTH=Math.pow(2,16)-1,ze(\"SegmentVector\",Ae);let _t=It([{name:\"a_pattern_from\",components:4,type:\"Uint16\"},{name:\"a_pattern_to\",components:4,type:\"Uint16\"},{name:\"a_pixel_ratio_from\",components:1,type:\"Uint16\"},{name:\"a_pixel_ratio_to\",components:1,type:\"Uint16\"}]),$t=It([{name:\"a_dasharray_from\",components:4,type:\"Uint16\"},{name:\"a_dasharray_to\",components:4,type:\"Uint16\"}]);var St,Wt,Xt,gi={exports:{}},jt={exports:{}},Ai={exports:{}},di=(function(){if(Xt)return gi.exports;Xt=1;var r=(St||(St=1,jt.exports=function(i,o){var a,l,u,p,g,m,v,_;for(l=i.length-(a=3&i.length),u=o,g=3432918353,m=461845907,_=0;_>>16)*g&65535)<<16)&4294967295)<<15|v>>>17))*m+(((v>>>16)*m&65535)<<16)&4294967295)<<13|u>>>19))+((5*(u>>>16)&65535)<<16)&4294967295))+((58964+(p>>>16)&65535)<<16);switch(v=0,a){case 3:v^=(255&i.charCodeAt(_+2))<<16;case 2:v^=(255&i.charCodeAt(_+1))<<8;case 1:u^=v=(65535&(v=(v=(65535&(v^=255&i.charCodeAt(_)))*g+(((v>>>16)*g&65535)<<16)&4294967295)<<15|v>>>17))*m+(((v>>>16)*m&65535)<<16)&4294967295}return u^=i.length,u=2246822507*(65535&(u^=u>>>16))+((2246822507*(u>>>16)&65535)<<16)&4294967295,u=3266489909*(65535&(u^=u>>>13))+((3266489909*(u>>>16)&65535)<<16)&4294967295,(u^=u>>>16)>>>0}),jt.exports),e=(Wt||(Wt=1,Ai.exports=function(i,o){for(var a,l=i.length,u=o^l,p=0;l>=4;)a=1540483477*(65535&(a=255&i.charCodeAt(p)|(255&i.charCodeAt(++p))<<8|(255&i.charCodeAt(++p))<<16|(255&i.charCodeAt(++p))<<24))+((1540483477*(a>>>16)&65535)<<16),u=1540483477*(65535&u)+((1540483477*(u>>>16)&65535)<<16)^(a=1540483477*(65535&(a^=a>>>24))+((1540483477*(a>>>16)&65535)<<16)),l-=4,++p;switch(l){case 3:u^=(255&i.charCodeAt(p+2))<<16;case 2:u^=(255&i.charCodeAt(p+1))<<8;case 1:u=1540483477*(65535&(u^=255&i.charCodeAt(p)))+((1540483477*(u>>>16)&65535)<<16)}return u=1540483477*(65535&(u^=u>>>13))+((1540483477*(u>>>16)&65535)<<16),(u^=u>>>15)>>>0}),Ai.exports);return gi.exports=r,gi.exports.murmur3=r,gi.exports.murmur2=e,gi.exports})(),ri=Ve(di);class _i{constructor(){this.ids=[],this.positions=[],this.indexed=!1}add(e,i,o,a){this.ids.push(tn(e)),this.positions.push(i,o,a)}getPositions(e){if(!this.indexed)throw new Error(\"Trying to get index, but feature positions are not indexed\");let i=tn(e),o=0,a=this.ids.length-1;for(;o>1;this.ids[u]>=i?a=u:o=u+1}let l=[];for(;this.ids[o]===i;)l.push({index:this.positions[3*o],start:this.positions[3*o+1],end:this.positions[3*o+2]}),o++;return l}static serialize(e,i){let o=new Float64Array(e.ids),a=new Uint32Array(e.positions);return rn(o,a,0,o.length-1),i&&i.push(o.buffer,a.buffer),{ids:o,positions:a}}static deserialize(e){let i=new _i;return i.ids=e.ids,i.positions=e.positions,i.indexed=!0,i}}function tn(r){let e=+r;return!isNaN(e)&&e<=Number.MAX_SAFE_INTEGER?e:ri(String(r))}function rn(r,e,i,o){for(;i>1],l=i-1,u=o+1;for(;;){do l++;while(r[l]a);if(l>=u)break;nn(r,l,u),nn(e,3*l,3*u),nn(e,3*l+1,3*u+1),nn(e,3*l+2,3*u+2)}u-i`u_${a}`)),this.type=o}setUniform(e,i,o){e.set(o.constantOr(this.value))}getBinding(e,i,o){return this.type===\"color\"?new cs(e,i):new Or(e,i)}}class or{constructor(e,i){this.uniformNames=i.map((o=>`u_${o}`)),this.patternFrom=null,this.patternTo=null,this.pixelRatioFrom=1,this.pixelRatioTo=1}setConstantPatternPositions(e,i){this.pixelRatioFrom=i.pixelRatio,this.pixelRatioTo=e.pixelRatio,this.patternFrom=i.tlbr,this.patternTo=e.tlbr}setConstantDashPositions(e,i){this.dashTo=[0,e.y,e.height,e.width],this.dashFrom=[0,i.y,i.height,i.width]}setUniform(e,i,o,a){let l=null;a===\"u_pattern_to\"?l=this.patternTo:a===\"u_pattern_from\"?l=this.patternFrom:a===\"u_dasharray_to\"?l=this.dashTo:a===\"u_dasharray_from\"?l=this.dashFrom:a===\"u_pixel_ratio_to\"?l=this.pixelRatioTo:a===\"u_pixel_ratio_from\"&&(l=this.pixelRatioFrom),l!==null&&e.set(l)}getBinding(e,i,o){return o.startsWith(\"u_pattern\")||o.startsWith(\"u_dasharray_\")?new on(e,i):new Or(e,i)}}class Ft{constructor(e,i,o,a){this.expression=e,this.type=o,this.maxValue=0,this.paintVertexAttributes=i.map((l=>({name:`a_${l}`,type:\"Float32\",components:o===\"color\"?2:1,offset:0}))),this.paintVertexArray=new a}populatePaintArray(e,i,o){let a=this.paintVertexArray.length,l=this.expression.evaluate(new Et(0,o),i,{},o.canonical,[],o.formattedSection);this.paintVertexArray.resize(e),this._setPaintValue(a,e,l)}updatePaintArray(e,i,o,a,l){let u=this.expression.evaluate(new Et(0,l),o,a);this._setPaintValue(e,i,u)}_setPaintValue(e,i,o){if(this.type===\"color\"){let a=Pr(o);for(let l=e;l`u_${p}_t`)),this.type=o,this.useIntegerZoom=a,this.zoom=l,this.maxValue=0,this.paintVertexAttributes=i.map((p=>({name:`a_${p}`,type:\"Float32\",components:o===\"color\"?4:2,offset:0}))),this.paintVertexArray=new u}populatePaintArray(e,i,o){let a=this.expression.evaluate(new Et(this.zoom,o),i,{},o.canonical,[],o.formattedSection),l=this.expression.evaluate(new Et(this.zoom+1,o),i,{},o.canonical,[],o.formattedSection),u=this.paintVertexArray.length;this.paintVertexArray.resize(e),this._setPaintValue(u,e,a,l)}updatePaintArray(e,i,o,a,l){let u=this.expression.evaluate(new Et(this.zoom,l),o,a),p=this.expression.evaluate(new Et(this.zoom+1,l),o,a);this._setPaintValue(e,i,u,p)}_setPaintValue(e,i,o,a){if(this.type===\"color\"){let l=Pr(o),u=Pr(a);for(let p=e;p`#define HAS_UNIFORM_${a}`)))}return e}getBinderAttributes(){let e=[];for(let i in this.binders){let o=this.binders[i];if(o instanceof Ft||o instanceof At)for(let a of o.paintVertexAttributes)e.push(a.name);else if(o instanceof Yt){let a=o.getVertexAttributes();for(let l of a)e.push(l.name)}}return e}getBinderUniforms(){let e=[];for(let i in this.binders){let o=this.binders[i];if(o instanceof Xi||o instanceof or||o instanceof At)for(let a of o.uniformNames)e.push(a)}return e}getPaintVertexBuffers(){return this._buffers}getUniforms(e,i){let o=[];for(let a in this.binders){let l=this.binders[a];if(l instanceof Xi||l instanceof or||l instanceof At){for(let u of l.uniformNames)if(i[u]){let p=l.getBinding(e,i[u],u);o.push({name:u,property:a,binding:p})}}}return o}setUniforms(e,i,o,a){for(let{name:l,property:u,binding:p}of i)this.binders[u].setUniform(p,a,o.get(u),l)}updatePaintBuffers(e){this._buffers=[];for(let i in this.binders){let o=this.binders[i];if(e&&o instanceof Yt){let a=e.fromScale===2?o.zoomInPaintVertexBuffer:o.zoomOutPaintVertexBuffer;a&&this._buffers.push(a)}else(o instanceof Ft||o instanceof At)&&o.paintVertexBuffer&&this._buffers.push(o.paintVertexBuffer)}}upload(e){for(let i in this.binders){let o=this.binders[i];(o instanceof Ft||o instanceof At||o instanceof Yt)&&o.upload(e)}this.updatePaintBuffers()}destroy(){for(let e in this.binders){let i=this.binders[e];(i instanceof Ft||i instanceof At||i instanceof Yt)&&i.destroy()}}}class Vr{constructor(e,i,o=()=>!0){this.programConfigurations={};for(let a of e)this.programConfigurations[a.id]=new us(a,i,o);this.needsUpload=!1,this._featureMap=new _i,this._bufferOffset=0}populatePaintArrays(e,i,o,a){for(let l in this.programConfigurations)this.programConfigurations[l].populatePaintArrays(e,i,a);i.id!==void 0&&this._featureMap.add(i.id,o,this._bufferOffset,e),this._bufferOffset=e,this.needsUpload=!0}updatePaintArrays(e,i,o,a){for(let l of o)this.needsUpload=this.programConfigurations[l.id].updatePaintArrays(e,this._featureMap,i,l,a)||this.needsUpload}get(e){return this.programConfigurations[e]}upload(e){if(this.needsUpload){for(let i in this.programConfigurations)this.programConfigurations[i].upload(e);this.needsUpload=!1}}destroy(){for(let e in this.programConfigurations)this.programConfigurations[e].destroy()}}function Nl(r,e){return{\"text-opacity\":[\"opacity\"],\"icon-opacity\":[\"opacity\"],\"text-color\":[\"fill_color\"],\"icon-color\":[\"fill_color\"],\"text-halo-color\":[\"halo_color\"],\"icon-halo-color\":[\"halo_color\"],\"text-halo-blur\":[\"halo_blur\"],\"icon-halo-blur\":[\"halo_blur\"],\"text-halo-width\":[\"halo_width\"],\"icon-halo-width\":[\"halo_width\"],\"line-gap-width\":[\"gapwidth\"],\"line-dasharray\":[\"dasharray_to\",\"dasharray_from\"],\"line-pattern\":[\"pattern_to\",\"pattern_from\",\"pixel_ratio_to\",\"pixel_ratio_from\"],\"fill-pattern\":[\"pattern_to\",\"pattern_from\",\"pixel_ratio_to\",\"pixel_ratio_from\"],\"fill-extrusion-pattern\":[\"pattern_to\",\"pattern_from\",\"pixel_ratio_to\",\"pixel_ratio_from\"]}[r]||[r.replace(`${e}-`,\"\").replace(/-/g,\"_\")]}function gu(r,e,i){let o={color:{source:aa,composite:n},number:{source:ss,composite:aa}},a=(function(l){return{\"line-pattern\":{source:U,composite:U},\"fill-pattern\":{source:U,composite:U},\"fill-extrusion-pattern\":{source:U,composite:U},\"line-dasharray\":{source:H,composite:H}}[l]})(r);return a?.[i]||o[e][i]}ze(\"ConstantBinder\",Xi),ze(\"CrossFadedConstantBinder\",or),ze(\"SourceExpressionBinder\",Ft),ze(\"CrossFadedPatternBinder\",Bt),ze(\"CrossFadedDasharrayBinder\",Rn),ze(\"CompositeExpressionBinder\",At),ze(\"ProgramConfiguration\",us,{omit:[\"_buffers\"]}),ze(\"ProgramConfigurationSet\",Vr);let Ul=Math.pow(2,14)-1,an=-Ul-1;function sn(r){let e=qe/r.extent,i=r.loadGeometry();for(let o of i)for(let a of o){let l=Math.round(a.x*e),u=Math.round(a.y*e);a.x=ti(l,an,Ul),a.y=ti(u,an,Ul),(la.x+1||ua.y+1)&&xt(\"Geometry exceeds allowed extent, reduce your vector tile buffer size\")}return i}function ln(r,e){return{type:r.type,id:r.id,properties:r.properties,geometry:e?sn(r):[]}}let ql=-32768;function Gl(r,e,i,o,a){r.emplaceBack(ql+8*e+o,ql+8*i+a)}class hs{constructor(e){this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map((i=>i.id)),this.index=e.index,this.hasDependencies=!1,this.layoutVertexArray=new q,this.indexArray=new ge,this.segments=new Ae,this.programConfigurations=new Vr(e.layers,e.zoom),this.stateDependentLayerIds=this.layers.filter((i=>i.isStateDependent())).map((i=>i.id))}populate(e,i,o){let a=this.layers[0],l=[],u=null,p=!1,g=a.type===\"heatmap\";if(a.type===\"circle\"){let v=a;u=v.layout.get(\"circle-sort-key\"),p=!u.isConstant(),g||(g=v.paint.get(\"circle-pitch-alignment\")===\"map\")}let m=g?i.subdivisionGranularity.circle:1;for(let{feature:v,id:_,index:T,sourceLayerIndex:b}of e){let P=this.layers[0]._featureFilter.needGeometry,C=ln(v,P);if(!this.layers[0]._featureFilter.filter(new Et(this.zoom),C,o))continue;let A=p?u.evaluate(C,{},o):void 0,z={id:_,properties:v.properties,type:v.type,sourceLayerIndex:b,index:T,geometry:P?C.geometry:sn(v),patterns:{},sortKey:A};l.push(z)}p&&l.sort(((v,_)=>v.sortKey-_.sortKey));for(let v of l){let{geometry:_,index:T,sourceLayerIndex:b}=v,P=e[T].feature;this.addFeature(v,_,T,o,m),i.featureIndex.insert(P,_,T,b,this.index)}}update(e,i,o){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,i,this.stateDependentLayers,{imagePositions:o})}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,me),this.indexBuffer=e.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}addFeature(e,i,o,a,l=1){let u;switch(l){case 1:u=[0,7];break;case 3:u=[0,2,5,7];break;case 5:u=[0,1,3,4,6,7];break;case 7:u=[0,1,2,3,4,5,6,7];break;default:throw new Error(`Invalid circle bucket granularity: ${l}; valid values are 1, 3, 5, 7.`)}let p=u.length;for(let g of i)for(let m of g){let v=m.x,_=m.y;if(v<0||v>=qe||_<0||_>=qe)continue;let T=this.segments.prepareSegment(p*p,this.layoutVertexArray,this.indexArray,e.sortKey),b=T.vertexLength;for(let P=0;P1){if(xh(r,e))return!0;for(let o of e)if(bh(o,r,i))return!0}for(let o of r)if(bh(o,e,i))return!0;return!1}function xh(r,e){if(r.length===0||e.length===0)return!1;for(let i=0;i1?i:i.sub(e)._mult(a)._add(e))}function Nd(r,e){let i,o,a,l=!1;for(let u of r){i=u;for(let p=0,g=i.length-1;pe.y!=a.y>e.y&&e.x<(a.x-o.x)*(e.y-o.y)/(a.y-o.y)+o.x&&(l=!l)}return l}function ps(r,e){let i=!1;for(let o=0,a=r.length-1;oe.y!=u.y>e.y&&e.x<(u.x-l.x)*(e.y-l.y)/(u.y-l.y)+l.x&&(i=!i)}return i}function Dm(r,e,i){let o=i[0],a=i[2];if(r.xa.x&&e.x>a.x||r.ya.y&&e.y>a.y)return!1;let l=ht(r,e,i[0]);return l!==ht(r,e,i[1])||l!==ht(r,e,i[2])||l!==ht(r,e,i[3])}function fs(r,e,i){let o=e.paint.get(r).value;return o.kind===\"constant\"?o.value:i.programConfigurations.get(e.id).getMaxValue(r)}function yu(r){return Math.sqrt(r[0]*r[0]+r[1]*r[1])}function vu(r,e,i,o,a){if(!e[0]&&!e[1])return r;let l=pe.convert(e)._mult(a);i===\"viewport\"&&l._rotate(-o);let u=[];for(let p of r)u.push(p.sub(l));return u}function km(r){let e=[];for(let i=0;iwh(R,A,z,L)))})(m,l,p,g),P=v),Ud({queryGeometry:b,size:P,transform:l,unwrappedTileID:p,getElevation:g,pitchAlignment:T,pitchScale:_},a)}}class $d extends hs{}let Zd;ze(\"HeatmapBucket\",$d,{omit:[\"layers\"]});var jm={get paint(){return Zd=Zd||new Ii({\"heatmap-radius\":new Ue(de.paint_heatmap[\"heatmap-radius\"]),\"heatmap-weight\":new Ue(de.paint_heatmap[\"heatmap-weight\"]),\"heatmap-intensity\":new Le(de.paint_heatmap[\"heatmap-intensity\"]),\"heatmap-color\":new po(de.paint_heatmap[\"heatmap-color\"]),\"heatmap-opacity\":new Le(de.paint_heatmap[\"heatmap-opacity\"])})}};function Th(r,{width:e,height:i},o,a){if(a){if(a instanceof Uint8ClampedArray)a=new Uint8Array(a.buffer);else if(a.length!==e*i*o)throw new RangeError(`mismatched image size. expected: ${a.length} but got: ${e*i*o}`)}else a=new Uint8Array(e*i*o);return r.width=e,r.height=i,r.data=a,r}function Wd(r,{width:e,height:i},o){if(e===r.width&&i===r.height)return;let a=Th({},{width:e,height:i},o);Sh(r,a,{x:0,y:0},{x:0,y:0},{width:Math.min(r.width,e),height:Math.min(r.height,i)},o),r.width=e,r.height=i,r.data=a.data}function Sh(r,e,i,o,a,l){if(a.width===0||a.height===0)return e;if(a.width>r.width||a.height>r.height||i.x>r.width-a.width||i.y>r.height-a.height)throw new RangeError(\"out of range source coordinates for image copy\");if(a.width>e.width||a.height>e.height||o.x>e.width-a.width||o.y>e.height-a.height)throw new RangeError(\"out of range destination coordinates for image copy\");let u=r.data,p=e.data;if(u===p)throw new Error(\"srcData equals dstData, so image is already copied\");for(let g=0;g{e[r.evaluationKey]=g;let m=r.expression.evaluate(e);a.setPixel(u/4/i,p/4,m)};if(r.clips)for(let u=0,p=0;uthis.max&&(this.max=_),_=this.dim+1||i<-1||i>=this.dim+1)throw new RangeError(`Out of range source coordinates for DEM data. x: ${e}, y: ${i}, dim: ${this.dim}`);return(i+1)*this.stride+(e+1)}unpack(e,i,o){return e*this.redFactor+i*this.greenFactor+o*this.blueFactor-this.baseShift}pack(e){return ep(e,this.getUnpackVector())}getPixels(){return new Yi({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))}backfillBorder(e,i,o){if(this.dim!==e.dim)throw new Error(\"dem dimension mismatch\");let a=i*this.dim,l=i*this.dim+this.dim,u=o*this.dim,p=o*this.dim+this.dim;switch(i){case-1:a=l-1;break;case 1:l=a+1}switch(o){case-1:u=p-1;break;case 1:p=u+1}let g=-i*this.dim,m=-o*this.dim;for(let v=u;v0)for(let u=e;u=e;u-=o)l=op(u/o|0,r[u],r[u+1],l);return l&&ms(l,l.next)&&(Xl(l),l=l.next),l}function ua(r,e){if(!r)return r;e||(e=r);let i,o=r;do if(i=!1,o.steiner||!ms(o,o.next)&&Ht(o.prev,o,o.next)!==0)o=o.next;else{if(Xl(o),o=e=o.prev,o===o.next)break;i=!0}while(i||o!==e);return e}function Zl(r,e,i,o,a,l,u){if(!r)return;!u&&l&&(function(g,m,v,_){let T=g;do T.z===0&&(T.z=Eh(T.x,T.y,m,v,_)),T.prevZ=T.prev,T.nextZ=T.next,T=T.next;while(T!==g);T.prevZ.nextZ=null,T.prevZ=null,(function(b){let P,C=1;do{let A,z=b;b=null;let L=null;for(P=0;z;){P++;let R=z,F=0;for(let j=0;j0||O>0&&R;)F!==0&&(O===0||!R||z.z<=R.z)?(A=z,z=z.nextZ,F--):(A=R,R=R.nextZ,O--),L?L.nextZ=A:b=A,A.prevZ=L,L=A;z=R}L.nextZ=null,C*=2}while(P>1)})(T)})(r,o,a,l);let p=r;for(;r.prev!==r.next;){let g=r.prev,m=r.next;if(l?Xm(r,o,a,l):Hm(r))e.push(g.i,r.i,m.i),Xl(r),r=m.next,p=m.next;else if((r=m)===p){u?u===1?Zl(r=Ym(ua(r),e),e,i,o,a,l,2):u===2&&Km(r,e,i,o,a,l):Zl(ua(r),e,i,o,a,l,1);break}}}function Hm(r){let e=r.prev,i=r,o=r.next;if(Ht(e,i,o)>=0)return!1;let a=e.x,l=i.x,u=o.x,p=e.y,g=i.y,m=o.y,v=Math.min(a,l,u),_=Math.min(p,g,m),T=Math.max(a,l,u),b=Math.max(p,g,m),P=o.next;for(;P!==e;){if(P.x>=v&&P.x<=T&&P.y>=_&&P.y<=b&&Wl(a,p,l,g,u,m,P.x,P.y)&&Ht(P.prev,P,P.next)>=0)return!1;P=P.next}return!0}function Xm(r,e,i,o){let a=r.prev,l=r,u=r.next;if(Ht(a,l,u)>=0)return!1;let p=a.x,g=l.x,m=u.x,v=a.y,_=l.y,T=u.y,b=Math.min(p,g,m),P=Math.min(v,_,T),C=Math.max(p,g,m),A=Math.max(v,_,T),z=Eh(b,P,e,i,o),L=Eh(C,A,e,i,o),R=r.prevZ,F=r.nextZ;for(;R&&R.z>=z&&F&&F.z<=L;){if(R.x>=b&&R.x<=C&&R.y>=P&&R.y<=A&&R!==a&&R!==u&&Wl(p,v,g,_,m,T,R.x,R.y)&&Ht(R.prev,R,R.next)>=0||(R=R.prevZ,F.x>=b&&F.x<=C&&F.y>=P&&F.y<=A&&F!==a&&F!==u&&Wl(p,v,g,_,m,T,F.x,F.y)&&Ht(F.prev,F,F.next)>=0))return!1;F=F.nextZ}for(;R&&R.z>=z;){if(R.x>=b&&R.x<=C&&R.y>=P&&R.y<=A&&R!==a&&R!==u&&Wl(p,v,g,_,m,T,R.x,R.y)&&Ht(R.prev,R,R.next)>=0)return!1;R=R.prevZ}for(;F&&F.z<=L;){if(F.x>=b&&F.x<=C&&F.y>=P&&F.y<=A&&F!==a&&F!==u&&Wl(p,v,g,_,m,T,F.x,F.y)&&Ht(F.prev,F,F.next)>=0)return!1;F=F.nextZ}return!0}function Ym(r,e){let i=r;do{let o=i.prev,a=i.next.next;!ms(o,a)&&rp(o,i,i.next,a)&&Hl(o,a)&&Hl(a,o)&&(e.push(o.i,i.i,a.i),Xl(i),Xl(i.next),i=r=a),i=i.next}while(i!==r);return ua(i)}function Km(r,e,i,o,a,l){let u=r;do{let p=u.next.next;for(;p!==u.prev;){if(u.i!==p.i&&ig(u,p)){let g=np(u,p);return u=ua(u,u.next),g=ua(g,g.next),Zl(u,e,i,o,a,l,0),void Zl(g,e,i,o,a,l,0)}p=p.next}u=u.next}while(u!==r)}function Jm(r,e){let i=r.x-e.x;return i===0&&(i=r.y-e.y,i===0)&&(i=(r.next.y-r.y)/(r.next.x-r.x)-(e.next.y-e.y)/(e.next.x-e.x)),i}function Qm(r,e){let i=(function(a,l){let u=l,p=a.x,g=a.y,m,v=-1/0;if(ms(a,u))return u;do{if(ms(a,u.next))return u.next;if(g<=u.y&&g>=u.next.y&&u.next.y!==u.y){let C=u.x+(g-u.y)*(u.next.x-u.x)/(u.next.y-u.y);if(C<=p&&C>v&&(v=C,m=u.x=u.x&&u.x>=T&&p!==u.x&&ip(gm.x||u.x===m.x&&eg(m,u)))&&(m=u,P=C)}u=u.next}while(u!==_);return m})(r,e);if(!i)return e;let o=np(i,r);return ua(o,o.next),ua(i,i.next)}function eg(r,e){return Ht(r.prev,r,e.prev)<0&&Ht(e.next,r,r.next)<0}function Eh(r,e,i,o,a){return(r=1431655765&((r=858993459&((r=252645135&((r=16711935&((r=(r-i)*a|0)|r<<8))|r<<4))|r<<2))|r<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=(e-o)*a|0)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function tg(r){let e=r,i=r;do(e.x=(r-u)*(l-p)&&(r-u)*(o-p)>=(i-u)*(e-p)&&(i-u)*(l-p)>=(a-u)*(o-p)}function Wl(r,e,i,o,a,l,u,p){return!(r===u&&e===p)&&ip(r,e,i,o,a,l,u,p)}function ig(r,e){return r.next.i!==e.i&&r.prev.i!==e.i&&!(function(i,o){let a=i;do{if(a.i!==i.i&&a.next.i!==i.i&&a.i!==o.i&&a.next.i!==o.i&&rp(a,a.next,i,o))return!0;a=a.next}while(a!==i);return!1})(r,e)&&(Hl(r,e)&&Hl(e,r)&&(function(i,o){let a=i,l=!1,u=(i.x+o.x)/2,p=(i.y+o.y)/2;do a.y>p!=a.next.y>p&&a.next.y!==a.y&&u<(a.next.x-a.x)*(p-a.y)/(a.next.y-a.y)+a.x&&(l=!l),a=a.next;while(a!==i);return l})(r,e)&&(Ht(r.prev,r,e.prev)||Ht(r,e.prev,e))||ms(r,e)&&Ht(r.prev,r,r.next)>0&&Ht(e.prev,e,e.next)>0)}function Ht(r,e,i){return(e.y-r.y)*(i.x-e.x)-(e.x-r.x)*(i.y-e.y)}function ms(r,e){return r.x===e.x&&r.y===e.y}function rp(r,e,i,o){let a=wu(Ht(r,e,i)),l=wu(Ht(r,e,o)),u=wu(Ht(i,o,r)),p=wu(Ht(i,o,e));return a!==l&&u!==p||!(a!==0||!bu(r,i,e))||!(l!==0||!bu(r,o,e))||!(u!==0||!bu(i,r,o))||!(p!==0||!bu(i,e,o))}function bu(r,e,i){return e.x<=Math.max(r.x,i.x)&&e.x>=Math.min(r.x,i.x)&&e.y<=Math.max(r.y,i.y)&&e.y>=Math.min(r.y,i.y)}function wu(r){return r>0?1:r<0?-1:0}function Hl(r,e){return Ht(r.prev,r,r.next)<0?Ht(r,e,r.next)>=0&&Ht(r,r.prev,e)>=0:Ht(r,e,r.prev)<0||Ht(r,r.next,e)<0}function np(r,e){let i=Ih(r.i,r.x,r.y),o=Ih(e.i,e.x,e.y),a=r.next,l=e.prev;return r.next=e,e.prev=r,i.next=a,a.prev=i,o.next=i,i.prev=o,l.next=o,o.prev=l,o}function op(r,e,i,o){let a=Ih(r,e,i);return o?(a.next=o.next,a.prev=o,o.next.prev=a,o.next=a):(a.prev=a,a.next=a),a}function Xl(r){r.next.prev=r.prev,r.prev.next=r.next,r.prevZ&&(r.prevZ.nextZ=r.nextZ),r.nextZ&&(r.nextZ.prevZ=r.prevZ)}function Ih(r,e,i){return{i:r,x:e,y:i,prev:null,next:null,z:0,prevZ:null,nextZ:null,steiner:!1}}class gs{constructor(e,i){if(i>e)throw new Error(\"Min granularity must not be greater than base granularity.\");this._baseZoomGranularity=e,this._minGranularity=i}getGranularityForZoomLevel(e){return Math.max(Math.floor(this._baseZoomGranularity/(1<32767||i>32767)throw new Error(\"Vertex coordinates are out of signed 16 bit integer range.\");let o=0|Math.round(e),a=0|Math.round(i),l=this._getKey(o,a);if(this._vertexDictionary.has(l))return this._vertexDictionary.get(l);let u=this._vertexBuffer.length/2;return this._vertexDictionary.set(l,u),this._vertexBuffer.push(o,a),u}_subdivideTrianglesScanline(e){if(this._granularity<2)return(function(a,l){let u=[];for(let p=0;p0?(u.push(g),u.push(v),u.push(m)):(u.push(g),u.push(m),u.push(v))}return u})(this._vertexBuffer,e);let i=[],o=e.length;for(let a=0;a=1||O<=0)||z&&(ml)){_>=a&&_<=l&&u.push(o[(p+1)%3]);continue}!z&&F>0&&u.push(this._vertexToIndex(g+P*F,m+C*F));let j=g+P*Math.max(F,0),Y=g+P*Math.min(O,1);A||this._generateIntraEdgeVertices(u,g,m,v,_,j,Y),!z&&O<1&&u.push(this._vertexToIndex(g+P*O,m+C*O)),(z||_>=a&&_<=l)&&u.push(o[(p+1)%3]),!z&&(_<=a||_>=l)&&this._generateInterEdgeVertices(u,g,m,v,_,T,b,Y,a,l)}return u}_generateIntraEdgeVertices(e,i,o,a,l,u,p){let g=a-i,m=l-o,v=m===0,_=v?Math.min(i,a):Math.min(u,p),T=v?Math.max(i,a):Math.max(u,p),b=Math.floor(_/this._granularityCellSize)+1,P=Math.ceil(T/this._granularityCellSize)-1;if(v?i=b;C--){let A=C*this._granularityCellSize;e.push(this._vertexToIndex(A,o+m*(A-i)/g))}}_generateInterEdgeVertices(e,i,o,a,l,u,p,g,m,v){let _=l-o,T=u-a,b=p-l,P=(m-l)/b,C=(v-l)/b,A=Math.min(P,C),z=Math.max(P,C),L=a+T*A,R=Math.floor(Math.min(L,g)/this._granularityCellSize)+1,F=Math.ceil(Math.max(L,g)/this._granularityCellSize)-1,O=g=1||z<=0){let Q=o-p,oe=u+(i-u)*Math.min((m-p)/Q,(v-p)/Q);R=Math.floor(Math.min(oe,g)/this._granularityCellSize)+1,F=Math.ceil(Math.max(oe,g)/this._granularityCellSize)-1,O=g0?v:m;if(O)for(let Q=R;Q<=F;Q++)e.push(this._vertexToIndex(Q*this._granularityCellSize,Y));else for(let Q=F;Q>=R;Q--)e.push(this._vertexToIndex(Q*this._granularityCellSize,Y))}_generateOutline(e){let i=[];for(let o of e){let a=ha(o,this._granularity,!0),l=this._pointArrayToIndices(a),u=[];for(let p=1;pl!=(u===_s)?(e.push(i),e.push(o),e.push(this._vertexToIndex(a,u)),e.push(o),e.push(this._vertexToIndex(l,u)),e.push(this._vertexToIndex(a,u))):(e.push(o),e.push(i),e.push(this._vertexToIndex(a,u)),e.push(this._vertexToIndex(l,u)),e.push(o),e.push(this._vertexToIndex(a,u)))}_fillPoles(e,i,o){let a=this._vertexBuffer,l=qe,u=e.length;for(let p=2;p80*_){A=m[0],z=m[1];let R=A,F=z;for(let O=_;OR&&(R=j),Y>F&&(F=Y)}L=Math.max(R-A,F-z),L=L!==0?32767/L:0}return Zl(P,C,_,A,z,L,0),C})(o,a),g=this._convertIndices(o,p);l=this._subdivideTrianglesScanline(g)}catch(p){console.error(p)}let u=[];return i&&(u=this._generateOutline(e)),this._ensureNoPoleVertices(),this._handlePoles(l),{verticesFlattened:this._vertexBuffer,indicesTriangles:l,indicesLineList:u}}_convertIndices(e,i){let o=[];for(let a of i)o.push(this._vertexToIndex(e[2*a],e[2*a+1]));return o}_pointArrayToIndices(e){let i=[];for(let o of e)i.push(this._vertexToIndex(o.x,o.y));return i}}function ap(r,e,i,o=!0){return new rg(i,e).subdividePolygonInternal(r,o)}function ha(r,e,i=!1){if(!r||r.length<1)return[];if(r.length<2)return[];let o=r[0],a=r[r.length-1],l=i&&(o.x!==a.x||o.y!==a.y);if(e<2)return l?[...r,r[0]]:[...r];let u=Math.floor(qe/e),p=[];p.push(new pe(r[0].x,r[0].y));let g=r.length,m=l?g:g-1;for(let v=0;v0?(Math.floor(Y/u)+1)*u:(Math.ceil(Y/u)-1)*u,ue=F>0?(Math.floor(Q/u)+1)*u:(Math.ceil(Q/u)-1)*u,he=Math.abs(Y-ie),ae=Math.abs(Q-ue),ne=Math.abs(Y-C),be=Math.abs(Q-A),Ee=z?he/O:Number.POSITIVE_INFINITY,Pe=L?ae/j:Number.POSITIVE_INFINITY;if((ne<=he||!z)&&(be<=ae||!L))break;if(Ee=0?u-1:l-1,m=(p+1)%l,v=r[2*e[g]],_=r[2*e[m]],T=r[2*e[u]],b=r[2*e[u]+1],P=r[2*e[p]+1],C=!1;if(v<_)C=!0;else if(v>_)C=!1;else{let A=P-b,z=-(r[2*e[p]]-T),L=b((_-T)*A+(r[2*e[m]+1]-b)*z)*L&&(C=!0)}if(C){let A=e[g],z=e[u],L=e[p];A!==z&&A!==L&&z!==L&&i.push(L,z,A),u--,u<0&&(u=l-1)}else{let A=e[m],z=e[u],L=e[p];A!==z&&A!==L&&z!==L&&i.push(L,z,A),p++,p>=l&&(p=0)}if(g===m)break}}function sp(r,e,i,o,a,l,u,p,g){let m=a.length/2,v=u&&p&&g;if(mAe.MAX_VERTEX_ARRAY_LENGTH&&(F=_.createNewSegment(T,b),R=L.count,ie=!0,ue=!0,he=!0,O=0);let ae=Kl(z,P,A,L,Y,ie,F),ne=Kl(z,P,A,L,Q,ue,F),be=Kl(z,P,A,L,oe,he,F);b.emplaceBack(O+ae-R,O+ne-R,O+be-R),F.primitiveLength++}})(e,i,o,a,l,r),v&&(function(_,T,b,P,C,A){let z=[];for(let j=0;jAe.MAX_VERTEX_ARRAY_LENGTH&&(F=_.createNewSegment(T,b),R=L.count,ie=!0,ue=!0,O=0);let he=Kl(z,P,A,L,Q,ie,F),ae=Kl(z,P,A,L,oe,ue,F);b.emplaceBack(O+he-R,O+ae-R),F.primitiveLength++}})(u,i,p,a,g,r),e.forceNewSegmentOnNextPrepare(),u?.forceNewSegmentOnNextPrepare()}function Kl(r,e,i,o,a,l,u){if(l){let p=o.count;return i(e[2*a],e[2*a+1]),r[a]=o.count,o.count++,u.vertexLength++,p}return r[a]}class Ah{constructor(e){this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map((i=>i.id)),this.index=e.index,this.hasDependencies=!1,this.patternFeatures=[],this.layoutVertexArray=new N,this.indexArray=new ge,this.indexArray2=new Re,this.programConfigurations=new Vr(e.layers,e.zoom),this.segments=new Ae,this.segments2=new Ae,this.stateDependentLayerIds=this.layers.filter((i=>i.isStateDependent())).map((i=>i.id))}populate(e,i,o){this.hasDependencies=xu(\"fill\",this.layers,i);let a=this.layers[0].layout.get(\"fill-sort-key\"),l=!a.isConstant(),u=[];for(let{feature:p,id:g,index:m,sourceLayerIndex:v}of e){let _=this.layers[0]._featureFilter.needGeometry,T=ln(p,_);if(!this.layers[0]._featureFilter.filter(new Et(this.zoom),T,o))continue;let b=l?a.evaluate(T,{},o,i.availableImages):void 0,P={id:g,properties:p.properties,type:p.type,sourceLayerIndex:v,index:m,geometry:_?T.geometry:sn(p),patterns:{},sortKey:b};u.push(P)}l&&u.sort(((p,g)=>p.sortKey-g.sortKey));for(let p of u){let{geometry:g,index:m,sourceLayerIndex:v}=p;if(this.hasDependencies){let _=Ch(\"fill\",this.layers,p,{zoom:this.zoom},i);this.patternFeatures.push(_)}else this.addFeature(p,g,m,o,{},i.subdivisionGranularity);i.featureIndex.insert(e[m].feature,g,m,v,this.index)}}update(e,i,o){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,i,this.stateDependentLayers,{imagePositions:o})}addFeatures(e,i,o){for(let a of this.patternFeatures)this.addFeature(a,a.geometry,a.index,i,o,e.subdivisionGranularity)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,Wm),this.indexBuffer=e.createIndexBuffer(this.indexArray),this.indexBuffer2=e.createIndexBuffer(this.indexArray2)),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.indexBuffer2.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.segments2.destroy())}addFeature(e,i,o,a,l,u){for(let p of Fa(i,500)){let g=ap(p,a,u.fill.getGranularityForZoomLevel(a.z)),m=this.layoutVertexArray;sp(((v,_)=>{m.emplaceBack(v,_)}),this.segments,this.layoutVertexArray,this.indexArray,g.verticesFlattened,g.indicesTriangles,this.segments2,this.indexArray2,g.indicesLineList)}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,o,{imagePositions:l,canonical:a})}}let lp,cp;ze(\"FillBucket\",Ah,{omit:[\"layers\",\"patternFeatures\"]});var og={get paint(){return cp=cp||new Ii({\"fill-antialias\":new Le(de.paint_fill[\"fill-antialias\"]),\"fill-opacity\":new Ue(de.paint_fill[\"fill-opacity\"]),\"fill-color\":new Ue(de.paint_fill[\"fill-color\"]),\"fill-outline-color\":new Ue(de.paint_fill[\"fill-outline-color\"]),\"fill-translate\":new Le(de.paint_fill[\"fill-translate\"]),\"fill-translate-anchor\":new Le(de.paint_fill[\"fill-translate-anchor\"]),\"fill-pattern\":new en(de.paint_fill[\"fill-pattern\"])})},get layout(){return lp=lp||new Ii({\"fill-sort-key\":new Ue(de.layout_fill[\"fill-sort-key\"])})}};class ag extends nr{constructor(e,i){super(e,og,i)}recalculate(e,i){super.recalculate(e,i);let o=this.paint._values[\"fill-outline-color\"];o.value.kind===\"constant\"&&o.value.value===void 0&&(this.paint._values[\"fill-outline-color\"]=this.paint._values[\"fill-color\"])}createBucket(e){return new Ah(e)}queryRadius(){return yu(this.paint.get(\"fill-translate\"))}queryIntersectsFeature({queryGeometry:e,geometry:i,transform:o,pixelsToTileUnits:a}){return Vd(vu(e,this.paint.get(\"fill-translate\"),this.paint.get(\"fill-translate-anchor\"),-o.bearingInRadians,a),i)}isTileClipped(){return!0}}let sg=It([{name:\"a_pos\",components:2,type:\"Int16\"},{name:\"a_normal_ed\",components:4,type:\"Int16\"}],4),lg=It([{name:\"a_centroid\",components:2,type:\"Int16\"}],4),{members:cg}=sg;class Jl{constructor(e,i,o,a,l){this.properties={},this.extent=o,this.type=0,this.id=void 0,this._pbf=e,this._geometry=-1,this._keys=a,this._values=l,e.readFields(ug,this,i)}loadGeometry(){let e=this._pbf;e.pos=this._geometry;let i=e.readVarint()+e.pos,o=[],a,l=1,u=0,p=0,g=0;for(;e.pos>3}if(u--,l===1||l===2)p+=e.readSVarint(),g+=e.readSVarint(),l===1&&(a&&o.push(a),a=[]),a&&a.push(new pe(p,g));else{if(l!==7)throw new Error(`unknown command ${l}`);a&&a.push(a[0].clone())}}return a&&o.push(a),o}bbox(){let e=this._pbf;e.pos=this._geometry;let i=e.readVarint()+e.pos,o=1,a=0,l=0,u=0,p=1/0,g=-1/0,m=1/0,v=-1/0;for(;e.pos>3}if(a--,o===1||o===2)l+=e.readSVarint(),u+=e.readSVarint(),lg&&(g=l),uv&&(v=u);else if(o!==7)throw new Error(`unknown command ${o}`)}return[p,m,g,v]}toGeoJSON(e,i,o){let a=this.extent*Math.pow(2,o),l=this.extent*e,u=this.extent*i,p=this.loadGeometry();function g(T){return[360*(T.x+l)/a-180,360/Math.PI*Math.atan(Math.exp((1-2*(T.y+u)/a)*Math.PI))-90]}function m(T){return T.map(g)}let v;if(this.type===1){let T=[];for(let P of p)T.push(P[0]);let b=m(T);v=T.length===1?{type:\"Point\",coordinates:b[0]}:{type:\"MultiPoint\",coordinates:b}}else if(this.type===2){let T=p.map(m);v=T.length===1?{type:\"LineString\",coordinates:T[0]}:{type:\"MultiLineString\",coordinates:T}}else{if(this.type!==3)throw new Error(\"unknown feature type\");{let T=up(p),b=[];for(let P of T)b.push(P.map(m));v=b.length===1?{type:\"Polygon\",coordinates:b[0]}:{type:\"MultiPolygon\",coordinates:b}}}let _={type:\"Feature\",geometry:v,properties:this.properties};return this.id!=null&&(_.id=this.id),_}}function ug(r,e,i){r===1?e.id=i.readVarint():r===2?(function(o,a){let l=o.readVarint()+o.pos;for(;o.pos=this._features.length)throw new Error(\"feature index out of bounds\");this._pbf.pos=this._features[e];let i=this._pbf.readVarint()+this._pbf.pos;return new Jl(this._pbf,i,this.extent,this._keys,this._values)}}function pg(r,e,i){r===15?e.version=i.readVarint():r===1?e.name=i.readString():r===5?e.extent=i.readVarint():r===2?e._features.push(i.pos):r===3?e._keys.push(i.readString()):r===4&&e._values.push((function(o){let a=null,l=o.readVarint()+o.pos;for(;o.pos>3;a=u===1?o.readString():u===2?o.readFloat():u===3?o.readDouble():u===4?o.readVarint64():u===5?o.readVarint():u===6?o.readSVarint():u===7?o.readBoolean():null}if(a==null)throw new Error(\"unknown feature value\");return a})(i))}class hp{constructor(e,i){this.layers=e.readFields(fg,{},i)}}function fg(r,e,i){if(r===3){let o=new dg(i,i.readVarint()+i.pos);o.length&&(e[o.name]=o)}}let zh=Math.pow(2,13);function Ql(r,e,i,o,a,l,u,p){r.emplaceBack(e,i,2*Math.floor(o*zh)+u,a*zh*2,l*zh*2,Math.round(p))}class Dh{constructor(e){this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map((i=>i.id)),this.index=e.index,this.hasDependencies=!1,this.layoutVertexArray=new G,this.centroidVertexArray=new V,this.indexArray=new ge,this.programConfigurations=new Vr(e.layers,e.zoom),this.segments=new Ae,this.stateDependentLayerIds=this.layers.filter((i=>i.isStateDependent())).map((i=>i.id))}populate(e,i,o){this.features=[],this.hasDependencies=xu(\"fill-extrusion\",this.layers,i);for(let{feature:a,id:l,index:u,sourceLayerIndex:p}of e){let g=this.layers[0]._featureFilter.needGeometry,m=ln(a,g);if(!this.layers[0]._featureFilter.filter(new Et(this.zoom),m,o))continue;let v={id:l,sourceLayerIndex:p,index:u,geometry:g?m.geometry:sn(a),properties:a.properties,type:a.type,patterns:{}};this.hasDependencies?this.features.push(Ch(\"fill-extrusion\",this.layers,v,{zoom:this.zoom},i)):this.addFeature(v,v.geometry,u,o,{},i.subdivisionGranularity),i.featureIndex.insert(a,v.geometry,u,p,this.index,!0)}}addFeatures(e,i,o){for(let a of this.features){let{geometry:l}=a;this.addFeature(a,l,a.index,i,o,e.subdivisionGranularity)}}update(e,i,o){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,i,this.stateDependentLayers,{imagePositions:o})}isEmpty(){return this.layoutVertexArray.length===0&&this.centroidVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,cg),this.centroidVertexBuffer=e.createVertexBuffer(this.centroidVertexArray,lg.members,!0),this.indexBuffer=e.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.centroidVertexBuffer.destroy())}addFeature(e,i,o,a,l,u){for(let p of Fa(i,500)){let g={x:0,y:0,sampleCount:0},m=this.layoutVertexArray.length;this.processPolygon(g,a,e,p,u);let v=this.layoutVertexArray.length-m,_=Math.floor(g.x/g.sampleCount),T=Math.floor(g.y/g.sampleCount);for(let b=0;b{Ql(v,_,T,0,0,1,1,0)}),this.segments,this.layoutVertexArray,this.indexArray,m.verticesFlattened,m.indicesTriangles)}_generateSideFaces(e,i){let o=0;for(let a=1;aAe.MAX_VERTEX_ARRAY_LENGTH&&(i.segment=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));let p=l.sub(u)._perp()._unit(),g=u.dist(l);o+g>32768&&(o=0),Ql(this.layoutVertexArray,l.x,l.y,p.x,p.y,0,0,o),Ql(this.layoutVertexArray,l.x,l.y,p.x,p.y,0,1,o),o+=g,Ql(this.layoutVertexArray,u.x,u.y,p.x,p.y,0,0,o),Ql(this.layoutVertexArray,u.x,u.y,p.x,p.y,0,1,o);let m=i.segment.vertexLength;this.indexArray.emplaceBack(m,m+2,m+1),this.indexArray.emplaceBack(m+1,m+2,m+3),i.segment.vertexLength+=4,i.segment.primitiveLength+=2}}}function mg(r,e){for(let i=0;iqe)||r.y===e.y&&(r.y<0||r.y>qe)}function dp(r){return r.every((e=>e.x<0))||r.every((e=>e.x>qe))||r.every((e=>e.y<0))||r.every((e=>e.y>qe))}let pp;ze(\"FillExtrusionBucket\",Dh,{omit:[\"layers\",\"features\"]});var _g={get paint(){return pp=pp||new Ii({\"fill-extrusion-opacity\":new Le(de[\"paint_fill-extrusion\"][\"fill-extrusion-opacity\"]),\"fill-extrusion-color\":new Ue(de[\"paint_fill-extrusion\"][\"fill-extrusion-color\"]),\"fill-extrusion-translate\":new Le(de[\"paint_fill-extrusion\"][\"fill-extrusion-translate\"]),\"fill-extrusion-translate-anchor\":new Le(de[\"paint_fill-extrusion\"][\"fill-extrusion-translate-anchor\"]),\"fill-extrusion-pattern\":new en(de[\"paint_fill-extrusion\"][\"fill-extrusion-pattern\"]),\"fill-extrusion-height\":new Ue(de[\"paint_fill-extrusion\"][\"fill-extrusion-height\"]),\"fill-extrusion-base\":new Ue(de[\"paint_fill-extrusion\"][\"fill-extrusion-base\"]),\"fill-extrusion-vertical-gradient\":new Le(de[\"paint_fill-extrusion\"][\"fill-extrusion-vertical-gradient\"])})}};class yg extends nr{constructor(e,i){super(e,_g,i)}createBucket(e){return new Dh(e)}queryRadius(){return yu(this.paint.get(\"fill-extrusion-translate\"))}is3D(){return!0}queryIntersectsFeature({queryGeometry:e,feature:i,featureState:o,geometry:a,transform:l,pixelsToTileUnits:u,pixelPosMatrix:p}){let g=vu(e,this.paint.get(\"fill-extrusion-translate\"),this.paint.get(\"fill-extrusion-translate-anchor\"),-l.bearingInRadians,u),m=this.paint.get(\"fill-extrusion-height\").evaluate(i,o),v=this.paint.get(\"fill-extrusion-base\").evaluate(i,o),_=(function(b,P){let C=[];for(let A of b){let z=[A.x,A.y,0,1];je(z,z,P),C.push(new pe(z[0]/z[3],z[1]/z[3]))}return C})(g,p),T=(function(b,P,C,A){let z=[],L=[],R=A[8]*P,F=A[9]*P,O=A[10]*P,j=A[11]*P,Y=A[8]*C,Q=A[9]*C,oe=A[10]*C,ie=A[11]*C;for(let ue of b){let he=[],ae=[];for(let ne of ue){let be=ne.x,Ee=ne.y,Pe=A[0]*be+A[4]*Ee+A[12],Te=A[1]*be+A[5]*Ee+A[13],Ze=A[2]*be+A[6]*Ee+A[14],dt=A[3]*be+A[7]*Ee+A[15],ft=Ze+O,wt=dt+j,bi=Pe+Y,Nt=Te+Q,Qt=Ze+oe,ai=dt+ie,kt=new pe((Pe+R)/wt,(Te+F)/wt);kt.z=ft/wt,he.push(kt);let fi=new pe(bi/ai,Nt/ai);fi.z=Qt/ai,ae.push(fi)}z.push(he),L.push(ae)}return[z,L]})(a,v,m,p);return(function(b,P,C){let A=1/0;Vd(C,P)&&(A=fp(C,P[0]));for(let z=0;z>4;if(a!==1)throw new Error(`Got v${a} data when expected v1.`);let l=mp[15&o];if(!l)throw new Error(\"Unrecognized array type.\");let[u]=new Uint16Array(e,2,1),[p]=new Uint32Array(e,4,1);return new Su(p,u,l,e)}constructor(e,i=64,o=Float64Array,a){if(isNaN(e)||e<0)throw new Error(`Unpexpected numItems value: ${e}.`);this.numItems=+e,this.nodeSize=Math.min(Math.max(+i,2),65535),this.ArrayType=o,this.IndexArrayType=e<65536?Uint16Array:Uint32Array;let l=mp.indexOf(this.ArrayType),u=2*e*this.ArrayType.BYTES_PER_ELEMENT,p=e*this.IndexArrayType.BYTES_PER_ELEMENT,g=(8-p%8)%8;if(l<0)throw new Error(`Unexpected typed array class: ${o}.`);a&&a instanceof ArrayBuffer?(this.data=a,this.ids=new this.IndexArrayType(this.data,8,e),this.coords=new this.ArrayType(this.data,8+p+g,2*e),this._pos=2*e,this._finished=!0):(this.data=new ArrayBuffer(8+u+p+g),this.ids=new this.IndexArrayType(this.data,8,e),this.coords=new this.ArrayType(this.data,8+p+g,2*e),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,16+l]),new Uint16Array(this.data,2,1)[0]=i,new Uint32Array(this.data,4,1)[0]=e)}add(e,i){let o=this._pos>>1;return this.ids[o]=o,this.coords[this._pos++]=e,this.coords[this._pos++]=i,o}finish(){let e=this._pos>>1;if(e!==this.numItems)throw new Error(`Added ${e} items when expected ${this.numItems}.`);return kh(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(e,i,o,a){if(!this._finished)throw new Error(\"Data not yet indexed - call index.finish().\");let{ids:l,coords:u,nodeSize:p}=this,g=[0,l.length-1,0],m=[];for(;g.length;){let v=g.pop()||0,_=g.pop()||0,T=g.pop()||0;if(_-T<=p){for(let A=T;A<=_;A++){let z=u[2*A],L=u[2*A+1];z>=e&&z<=o&&L>=i&&L<=a&&m.push(l[A])}continue}let b=T+_>>1,P=u[2*b],C=u[2*b+1];P>=e&&P<=o&&C>=i&&C<=a&&m.push(l[b]),(v===0?e<=P:i<=C)&&(g.push(T),g.push(b-1),g.push(1-v)),(v===0?o>=P:a>=C)&&(g.push(b+1),g.push(_),g.push(1-v))}return m}within(e,i,o){if(!this._finished)throw new Error(\"Data not yet indexed - call index.finish().\");let{ids:a,coords:l,nodeSize:u}=this,p=[0,a.length-1,0],g=[],m=o*o;for(;p.length;){let v=p.pop()||0,_=p.pop()||0,T=p.pop()||0;if(_-T<=u){for(let A=T;A<=_;A++)_p(l[2*A],l[2*A+1],e,i)<=m&&g.push(a[A]);continue}let b=T+_>>1,P=l[2*b],C=l[2*b+1];_p(P,C,e,i)<=m&&g.push(a[b]),(v===0?e-o<=P:i-o<=C)&&(p.push(T),p.push(b-1),p.push(1-v)),(v===0?e+o>=P:i+o>=C)&&(p.push(b+1),p.push(_),p.push(1-v))}return g}}function kh(r,e,i,o,a,l){if(a-o<=i)return;let u=o+a>>1;gp(r,e,u,o,a,l),kh(r,e,i,o,u-1,1-l),kh(r,e,i,u+1,a,1-l)}function gp(r,e,i,o,a,l){for(;a>o;){if(a-o>600){let m=a-o+1,v=i-o+1,_=Math.log(m),T=.5*Math.exp(2*_/3),b=.5*Math.sqrt(_*T*(m-T)/m)*(v-m/2<0?-1:1);gp(r,e,i,Math.max(o,Math.floor(i-v*T/m+b)),Math.min(a,Math.floor(i+(m-v)*T/m+b)),l)}let u=e[2*i+l],p=o,g=a;for(tc(r,e,o,i),e[2*a+l]>u&&tc(r,e,o,a);pu;)g--}e[2*o+l]===u?tc(r,e,o,g):(g++,tc(r,e,g,a)),g<=i&&(o=g+1),i<=g&&(a=g-1)}}function tc(r,e,i,o){Rh(r,i,o),Rh(e,2*i,2*o),Rh(e,2*i+1,2*o+1)}function Rh(r,e,i){let o=r[e];r[e]=r[i],r[i]=o}function _p(r,e,i,o){let a=r-i,l=e-o;return a*a+l*l}function Lh(r,e,i,o){let a=o,l=e+(i-e>>1),u,p=i-e,g=r[e],m=r[e+1],v=r[i],_=r[i+1];for(let T=e+3;Ta)u=T,a=b;else if(b===a){let P=Math.abs(T-l);Po&&(u-e>3&&Lh(r,e,u,o),r[u+2]=a,i-u>3&&Lh(r,u,i,o))}function vg(r,e,i,o,a,l){let u=a-i,p=l-o;if(u!==0||p!==0){let g=((r-i)*u+(e-o)*p)/(u*u+p*p);g>1?(i=a,o=l):g>0&&(i+=u*g,o+=p*g)}return u=r-i,p=e-o,u*u+p*p}function pi(r,e,i,o){let a={type:e,geom:i},l={id:r??null,type:a.type,geometry:a.geom,tags:o,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};switch(a.type){case\"Point\":case\"MultiPoint\":ic(l,a.geom);break;case\"LineString\":ic(l,a.geom.points);break;case\"Polygon\":ic(l,a.geom[0].points);break;case\"MultiLineString\":for(let u of a.geom)ic(l,u.points);break;case\"MultiPolygon\":for(let u of a.geom)ic(l,u[0].points)}return l}function Fh(r){r.points.length>64&&(r.points=new Float64Array(r.points))}function ic(r,e){for(let i=0;i0&&(u+=o?(a*v-m*l)/2:Math.sqrt(Math.pow(m-a,2)+Math.pow(v-l,2))),a=m,l=v}let p=e.points.length-3;e.points[2]=1,i>0&&Lh(e.points,0,p,i),e.points[p+2]=1,Fh(e),e.size=Math.abs(u),e.start=0,e.end=e.size}function Vh(r,e,i,o){for(let a=0;a1?1:i}function Pu(r){let e={type:\"Feature\",geometry:xg(r),properties:r.tags};return r.id!=null&&(e.id=r.id),e}function xg(r){let{type:e,geometry:i}=r;switch(e){case\"Point\":return{type:e,coordinates:yp(i[0],i[1])};case\"MultiPoint\":return{type:e,coordinates:Cu(i)};case\"LineString\":return{type:e,coordinates:Cu(i.points)};case\"MultiLineString\":case\"Polygon\":return{type:e,coordinates:i.map((o=>Cu(o.points)))};case\"MultiPolygon\":return{type:e,coordinates:i.map((o=>o.map((a=>Cu(a.points)))))}}}function Cu(r){let e=[];for(let i=0;i=(i/=e)&&u=o)return null;let g=[];for(let m of r){let v=a===zi.X?m.minX:m.minY,_=a===zi.X?m.maxX:m.maxY;if(v>=i&&_=o))switch(m.type){case\"Point\":case\"MultiPoint\":bg(m,g,i,o,a);continue;case\"LineString\":wg(m,g,i,o,a,p);continue;case\"MultiLineString\":Tg(m,g,i,o,a);continue;case\"Polygon\":Sg(m,g,i,o,a);continue;case\"MultiPolygon\":Mg(m,g,i,o,a);continue}}return g.length?g:null}function bg(r,e,i,o,a){let l=[];(function(u,p,g,m,v){for(let _=0;_=g&&T<=m&&xs(p,u[_],u[_+1],u[_+2])}})(r.geometry,l,i,o,a),l.length&&e.push(pi(r.id,l.length===3?\"Point\":\"MultiPoint\",l,r.tags))}function wg(r,e,i,o,a,l){let u=[];if(bp(r.geometry,u,i,o,a,!1,l.lineMetrics),u.length)if(l.lineMetrics)for(let p of u)e.push(pi(r.id,\"LineString\",p,r.tags));else e.push(u.length>1?pi(r.id,\"MultiLineString\",u,r.tags):pi(r.id,\"LineString\",u[0],r.tags))}function Tg(r,e,i,o,a){let l=[];jh(r.geometry,l,i,o,a,!1),l.length&&e.push(l.length!==1?pi(r.id,\"MultiLineString\",l,r.tags):pi(r.id,\"LineString\",l[0],r.tags))}function Sg(r,e,i,o,a){let l=[];jh(r.geometry,l,i,o,a,!0),l.length&&e.push(pi(r.id,\"Polygon\",l,r.tags))}function Mg(r,e,i,o,a){let l=[];for(let u of r.geometry){let p=[];jh(u,p,i,o,a,!0),p.length&&l.push(p)}l.length&&e.push(pi(r.id,\"MultiPolygon\",l,r.tags))}function bp(r,e,i,o,a,l,u){let p=wp(r),g=a===zi.X?Pg:Cg,m,v,_=r.start;for(let A=0;Ai&&(v=g(p,z,L,F,O,i),u&&(p.start=_+m*v)):j>o?Y=i&&(v=g(p,z,L,F,O,i),Q=!0),Y>o&&j<=o&&(v=g(p,z,L,F,O,o),Q=!0),!l&&Q&&(u&&(p.end=_+m*v),e.push(p),p=wp(r)),u&&(_+=m)}let T=r.points.length-3,b=r.points[T],P=r.points[T+1],C=a===zi.X?b:P;C>=i&&C<=o&&xs(p.points,b,P,r.points[T+2]),T=p.points.length-3,l&&T>=3&&(p.points[T]!==p.points[0]||p.points[T+1]!==p.points[1])&&xs(p.points,p.points[0],p.points[1],p.points[2]),p.points.length&&(Fh(p),e.push(p))}function wp(r){return{points:[],size:r.size,start:r.start,end:r.end}}function jh(r,e,i,o,a,l){for(let u of r)bp(u,e,i,o,a,l,!1)}function xs(r,e,i,o){r.push(e,i,o)}function Pg(r,e,i,o,a,l){let u=(l-e)/(o-e);return xs(r.points,l,i+(a-i)*u,1),u}function Cg(r,e,i,o,a,l){let u=(l-i)/(a-i);return xs(r.points,e+(o-e)*u,l,1),u}function Nh(r,e){let i=e.buffer/e.extent,o=r,a=Ln(r,1,-1-i,i,zi.X,-1,2,e),l=Ln(r,1,1-i,2+i,zi.X,-1,2,e);return(a||l)&&(o=Ln(r,1,-i,1+i,zi.X,-1,2,e)||[],a&&(o=Tp(a,1).concat(o)),l&&(o=o.concat(Tp(l,-1)))),o}function Tp(r,e){let i=[];for(let o of r)switch(o.type){case\"Point\":case\"MultiPoint\":{let a=Eg(o.geometry,e);i.push(pi(o.id,o.type,a,o.tags));continue}case\"LineString\":{let a=Uh(o.geometry,e);i.push(pi(o.id,o.type,a,o.tags));continue}case\"MultiLineString\":case\"Polygon\":{let a=[];for(let l of o.geometry)a.push(Uh(l,e));i.push(pi(o.id,o.type,a,o.tags));continue}case\"MultiPolygon\":{let a=[];for(let l of o.geometry){let u=[];for(let p of l)u.push(Uh(p,e));a.push(u)}i.push(pi(o.id,o.type,a,o.tags));continue}}return i}function Eg(r,e){let i=[];for(let o=0;o0||e.addOrUpdateProperties?.length>0;if(o){let l=r[0],u=Bh({type:\"FeatureCollection\",features:[{type:\"Feature\",id:l.id,geometry:e.newGeometry,properties:a?Sp(l.tags,e):l.tags}]},i);return u=Nh(u,i),u}if(a){let l=[];for(let u of r){let p={...u};p.tags=Sp(p.tags,e),l.push(p)}return l}return r}function Sp(r,e){if(e.removeAllProperties)return{};let i={...r||{}};if(e.removeProperties)for(let o of e.removeProperties)delete i[o];if(e.addOrUpdateProperties)for(let{key:o,value:a}of e.addOrUpdateProperties)i[o]=a;return i}(function(r){r[r.X=0]=\"X\",r[r.Y=1]=\"Y\"})(zi||(zi={}));let qh={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:r=>r};class Ag{constructor(e){this.options=Object.assign(Object.create(qh),e),this.trees=new Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[],this.points=[]}load(e){let i=[];for(let o of e){if(!o.geometry)continue;let[a,l]=o.geometry.coordinates,[u,p]=[ys(a),vs(l)];i.push({id:o.id,type:\"Point\",geometry:[u,p],tags:o.properties})}this.createIndex(i)}initialize(e){let i=[];for(let o of e)o.type===\"Point\"&&i.push(o);this.createIndex(i)}updateIndex(e,i,o){this.options=Object.assign(Object.create(qh),o.clusterOptions),this.initialize(e)}createIndex(e){let{log:i,minZoom:o,maxZoom:a}=this.options;i&&console.time(\"total time\");let l=`prepare ${e.length} points`;i&&console.time(l),this.points=e;let u=[];for(let g=0;g=o;g--){let m=Date.now();p=this.trees[g]=this.createTree(this.cluster(p,g)),i&&console.log(\"z%d: %d clusters in %dms\",g,p.numItems,Date.now()-m)}i&&console.timeEnd(\"total time\")}getClusters(e,i){return this.getClustersInternal(e,i).map((o=>Pu(o)))}getClustersInternal(e,i){let o=((e[0]+180)%360+360)%360-180,a=Math.max(-90,Math.min(90,e[1])),l=e[2]===180?180:((e[2]+180)%360+360)%360-180,u=Math.max(-90,Math.min(90,e[3]));if(e[2]-e[0]>=360)o=-180,l=180;else if(o>l){let _=this.getClustersInternal([o,a,180,u],i),T=this.getClustersInternal([-180,a,l,u],i);return _.concat(T)}let p=this.trees[this.limitZoom(i)],g=p.range(ys(o),vs(u),ys(l),vs(a)),m=p.flatData,v=[];for(let _ of g){let T=this.stride*_;v.push(m[T+5]>1?zg(m,T,this.clusterProps):this.points[m[T+3]])}return v}getChildren(e){let i=this.getOriginId(e),o=this.getOriginZoom(e),a=new Error(\"No cluster with the specified id: \"+e),l=this.trees[o];if(!l)throw a;let u=l.flatData;if(i*this.stride>=u.length)throw a;let p=this.options.radius/(this.options.extent*Math.pow(2,o-1)),g=l.within(u[i*this.stride],u[i*this.stride+1],p),m=[];for(let v of g){let _=v*this.stride;u[_+4]===e&&m.push(u[_+5]>1?Dg(u,_,this.clusterProps):Pu(this.points[u[_+3]]))}if(m.length===0)throw a;return m}getLeaves(e,i,o){let a=[];return this.appendLeaves(a,e,i=i||10,o=o||0,0),a}getTile(e,i,o){let a=this.trees[this.limitZoom(e)];if(!a)return null;let l=Math.pow(2,e),{extent:u,radius:p}=this.options,g=p/u,m=(o-g)/l,v=(o+1+g)/l,_={transformed:!0,features:[],source:null,x:i,y:o,z:e};return this.addTileFeatures(a.range((i-g)/l,m,(i+1+g)/l,v),a.flatData,i,o,l,_),i===0&&this.addTileFeatures(a.range(1-g/l,m,1,v),a.flatData,l,o,l,_),i===l-1&&this.addTileFeatures(a.range(0,m,g/l,v),a.flatData,-1,o,l,_),_}getClusterExpansionZoom(e){return this.getOriginZoom(e)}appendLeaves(e,i,o,a,l){let u=this.getChildren(i);for(let p of u){let g=p.properties;if(g?.cluster?l+g.point_count<=a?l+=g.point_count:l=this.appendLeaves(e,g.cluster_id,o,a,l):l1,v,_,T;if(m)v=Gh(i,g,this.clusterProps),_=i[g],T=i[g+1];else{let C=this.points[i[g+3]];v=C.tags,[_,T]=C.geometry}let b={type:1,geometry:[[Math.round(this.options.extent*(_*l-o)),Math.round(this.options.extent*(T*l-a))]],tags:v},P;P=m||this.options.generateId?i[g+3]:this.points[i[g+3]].id,P!==void 0&&(b.id=P),u.features.push(b)}}limitZoom(e){return Math.max(this.options.minZoom,Math.min(Math.floor(+e),this.options.maxZoom+1))}cluster(e,i){let{radius:o,extent:a,reduce:l,minPoints:u}=this.options,p=o/(a*Math.pow(2,i)),g=e.flatData,m=[],v=this.stride;for(let _=0;_i&&(A+=g[L+5])}if(A>C&&A>=u){let z,L=T*C,R=b*C,F=-1,O=(_/v<<5)+(i+1)+this.points.length;for(let j of P){let Y=j*v;if(g[Y+2]<=i)continue;g[Y+2]=i;let Q=g[Y+5];L+=g[Y]*Q,R+=g[Y+1]*Q,g[Y+4]=O,l&&(z||(z=this.map(g,_,!0),F=this.clusterProps.length,this.clusterProps.push(z)),l(z,this.map(g,Y)))}g[_+4]=O,m.push(L/A,R/A,1/0,O,-1,A),l&&m.push(F)}else{for(let z=0;z1)for(let z of P){let L=z*v;if(!(g[L+2]<=i)){g[L+2]=i;for(let R=0;R>5}getOriginZoom(e){return(e-this.points.length)%32}map(e,i,o){if(e[i+5]>1){let u=this.clusterProps[e[i+6]];return o?Object.assign({},u):u}let a=this.points[e[i+3]].tags,l=this.options.map(a);return o&&l===a?Object.assign({},l):l}}function zg(r,e,i){return{id:r[e+3],type:\"Point\",tags:Gh(r,e,i),geometry:[r[e],r[e+1]]}}function Dg(r,e,i){return{type:\"Feature\",id:r[e+3],properties:Gh(r,e,i),geometry:{type:\"Point\",coordinates:[vp(r[e]),xp(r[e+1])]}}}function Gh(r,e,i){let o=r[e+5],a=o>=1e4?`${Math.round(o/1e3)}k`:o>=1e3?Math.round(o/100)/10+\"k\":o,l=r[e+6],u=l===-1?{}:Object.assign({},i[l]);return Object.assign(u,{cluster:!0,cluster_id:r[e+3],point_count:o,point_count_abbreviated:a})}let $h=\"geojsonvt_clip_start\",Zh=\"geojsonvt_clip_end\";function Mp(r,e,i,o,a){let l=e===a.maxZoom?0:a.tolerance/((1<0&&e.size<(a?u:o))return void(i.numPoints+=e.points.length/3);let p=[];for(let g=0;gu)&&(i.numSimplified++,p.push(e.points[g],e.points[g+1])),i.numPoints++;a&&(function(g,m){let v=0;for(let _=0,T=g.length,b=T-2;_0===m)for(let _=0,T=g.length;_1&&(console.log(\"invalidating tiles\"),console.time(\"invalidating\")),this.invalidateTiles(i),o.debug>1&&console.timeEnd(\"invalidating\");let[a,l,u]=[0,0,0],p=Mp(e,a,l,u,o);p.source=e;let g=Eu(a,l,u);if(this.tiles[g]=p,this.tileCoords.push({z:a,x:l,y:u,id:g}),o.debug){let m=`z${a}`;this.stats[m]=(this.stats[m]||0)+1,this.total++}}getClusterExpansionZoom(e){return null}getChildren(e){return null}getLeaves(e,i,o){return null}getTile(e,i,o){let{extent:a,debug:l}=this.options,u=1<1&&console.log(\"drilling down to z%d-%d-%d\",e,i,o);let g,m=e,v=i,_=o;for(;!g&&m>0;)m--,v>>=1,_>>=1,g=this.tiles[Eu(m,v,_)];return g?.source?(l>1&&(console.log(\"found parent tile z%d-%d-%d\",m,v,_),console.time(\"drilling down\")),this.splitTile(g.source,m,v,_,e,i,o),l>1&&console.timeEnd(\"drilling down\"),this.tiles[p]?Pp(this.tiles[p],a):null):null}splitTile(e,i,o,a,l,u,p){let g=[e,i,o,a],m=this.options,v=m.debug;for(;g.length;){a=g.pop(),o=g.pop(),i=g.pop(),e=g.pop();let _=1<1&&console.time(\"creation\"),b=this.tiles[T]=Mp(e,i,o,a,m),this.tileCoords.push({z:i,x:o,y:a,id:T}),v)){v>1&&(console.log(\"tile z%d-%d-%d (features: %d, points: %d, simplified: %d)\",i,o,a,b.numFeatures,b.numPoints,b.numSimplified),console.timeEnd(\"creation\"));let Q=`z${i}`;this.stats[Q]=(this.stats[Q]||0)+1,this.total++}if(b.source=e,l==null){if(i===m.indexMaxZoom||b.numPoints<=m.indexMaxPoints)continue}else{if(i===m.maxZoom||i===l)continue;if(l!=null){let Q=l-i;if(o!==u>>Q||a!==p>>Q)continue}}if(b.source=null,!e.length)continue;v>1&&console.time(\"clipping\");let P=.5*m.buffer/m.extent,C=.5-P,A=.5+P,z=1+P,L=null,R=null,F=null,O=null,j=Ln(e,_,o-P,o+A,zi.X,b.minX,b.maxX,m),Y=Ln(e,_,o+C,o+z,zi.X,b.minX,b.maxX,m);j&&(L=Ln(j,_,a-P,a+A,zi.Y,b.minY,b.maxY,m),R=Ln(j,_,a+C,a+z,zi.Y,b.minY,b.maxY,m)),Y&&(F=Ln(Y,_,a-P,a+A,zi.Y,b.minY,b.maxY,m),O=Ln(Y,_,a+C,a+z,zi.Y,b.minY,b.maxY,m)),v>1&&console.timeEnd(\"clipping\"),g.push(L||[],i+1,2*o,2*a),g.push(R||[],i+1,2*o,2*a+1),g.push(F||[],i+1,2*o+1,2*a),g.push(O||[],i+1,2*o+1,2*a+1)}}invalidateTiles(e){if(!e.length)return;let i=this.options,{debug:o}=i,a=1/0,l=-1/0,u=1/0,p=-1/0;for(let v of e)a=Math.min(a,v.minX),l=Math.max(l,v.maxX),u=Math.min(u,v.minY),p=Math.max(p,v.maxY);let g=i.buffer/i.extent,m=new Set;for(let v in this.tiles){let _=this.tiles[v],T=1<<_.z,b=(_.x-g)/T,P=(_.x+1+g)/T,C=(_.y-g)/T,A=(_.y+1+g)/T;if(l=P||p=A)continue;let z=!1;for(let L of e)if(L.maxX>=b&&L.minX=C&&L.minY1&&console.log(\"invalidate tile z%d-%d-%d (features: %d, points: %d, simplified: %d)\",_.z,_.x,_.y,_.numFeatures,_.numPoints,_.numSimplified);let L=`z${_.z}`;this.stats[L]=(this.stats[L]||0)-1,this.total--}delete this.tiles[v],m.add(v)}}m.size&&(this.tileCoords=this.tileCoords.filter((v=>!m.has(v.id))))}}function Eu(r,e,i){return 32*((1<i.id)),this.index=e.index,this.hasDependencies=!1,this.patternFeatures=[],this.lineClipsArray=[],this.gradients={};for(let i of this.layers)this.gradients[i.id]={};this.layoutVertexArray=new X,this.layoutVertexArray2=new $,this.indexArray=new ge,this.programConfigurations=new Vr(e.layers,e.zoom),this.segments=new Ae,this.maxLineLength=0,this.stateDependentLayerIds=this.layers.filter((i=>i.isStateDependent())).map((i=>i.id))}populate(e,i,o){this.hasDependencies=xu(\"line\",this.layers,i)||this.hasLineDasharray(this.layers);let a=this.layers[0].layout.get(\"line-sort-key\"),l=!a.isConstant(),u=[];for(let{feature:p,id:g,index:m,sourceLayerIndex:v}of e){let _=this.layers[0]._featureFilter.needGeometry,T=ln(p,_);if(!this.layers[0]._featureFilter.filter(new Et(this.zoom),T,o))continue;let b=l?a.evaluate(T,{},o):void 0,P={id:g,properties:p.properties,type:p.type,sourceLayerIndex:v,index:m,geometry:_?T.geometry:sn(p),patterns:{},dashes:{},sortKey:b};u.push(P)}l&&u.sort(((p,g)=>p.sortKey-g.sortKey));for(let p of u){let{geometry:g,index:m,sourceLayerIndex:v}=p;this.hasDependencies?(xu(\"line\",this.layers,i)?Ch(\"line\",this.layers,p,{zoom:this.zoom},i):this.hasLineDasharray(this.layers)&&this.addLineDashDependencies(this.layers,p,this.zoom,i),this.patternFeatures.push(p)):this.addFeature(p,g,m,o,{},{},i.subdivisionGranularity),i.featureIndex.insert(e[m].feature,g,m,v,this.index)}}update(e,i,o,a){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,i,this.stateDependentLayers,{imagePositions:o,dashPositions:a})}addFeatures(e,i,o,a){for(let l of this.patternFeatures)this.addFeature(l,l.geometry,l.index,i,o,a,e.subdivisionGranularity)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(this.layoutVertexArray2.length!==0&&(this.layoutVertexBuffer2=e.createVertexBuffer(this.layoutVertexArray2,Ng)),this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,Vg),this.indexBuffer=e.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}lineFeatureClips(e){if(e.properties&&Object.hasOwn(e.properties,$h)&&Object.hasOwn(e.properties,Zh))return{start:+e.properties[$h],end:+e.properties[Zh]}}addFeature(e,i,o,a,l,u,p){let g=this.layers[0].layout,m=g.get(\"line-join\").evaluate(e,{}),v=g.get(\"line-cap\").evaluate(e,{}),_=g.get(\"line-miter-limit\").evaluate(e,{}),T=g.get(\"line-round-limit\").evaluate(e,{});this.lineClips=this.lineFeatureClips(e);for(let b of i)this.addLine(b,e,m,v,_,T,a,p);this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,o,{imagePositions:l,dashPositions:u,canonical:a})}addLine(e,i,o,a,l,u,p,g){if(this.distance=0,this.scaledDistance=0,this.totalDistance=0,e=ha(e,p?g.line.getGranularityForZoomLevel(p.z):1),this.lineClips){this.lineClipsArray.push(this.lineClips);for(let R=0;R=2&&e[v-1].equals(e[v-2]);)v--;let _=0;for(;_0;if(oe&&R>_){let ae=P.dist(C);if(ae>2*T){let ne=P.sub(P.sub(C)._mult(T/ae)._round());this.updateDistance(C,ne),this.addCurrentVertex(ne,z,0,0,b),C=ne}}let ue=C&&A,he=ue?o:m?\"butt\":a;if(ue&&he===\"round\"&&(Yl&&(he=\"bevel\"),he===\"bevel\"&&(Y>2&&(he=\"flipbevel\"),Y100)F=L.mult(-1);else{let ae=Y*z.add(L).mag()/z.sub(L).mag();F._perp()._mult(ae*(ie?-1:1))}this.addCurrentVertex(P,F,0,0,b),this.addCurrentVertex(P,F.mult(-1),0,0,b)}else if(he===\"bevel\"||he===\"fakeround\"){let ae=-Math.sqrt(Y*Y-1),ne=ie?ae:0,be=ie?0:ae;if(C&&this.addCurrentVertex(P,z,ne,be,b),he===\"fakeround\"){let Ee=Math.round(180*Q/Math.PI/20);for(let Pe=1;Pe2*T){let ne=P.add(A.sub(P)._mult(T/ae)._round());this.updateDistance(P,ne),this.addCurrentVertex(ne,L,0,0,b),P=ne}}}}addCurrentVertex(e,i,o,a,l,u=!1){let p=i.y*a-i.x,g=-i.y-i.x*a;this.addHalfVertex(e,i.x+i.y*o,i.y-i.x*o,u,!1,o,l),this.addHalfVertex(e,p,g,u,!0,-a,l),this.distance>Ep/2&&this.totalDistance===0&&(this.distance=0,this.updateScaledDistance(),this.addCurrentVertex(e,i,o,a,l,u))}addHalfVertex({x:e,y:i},o,a,l,u,p,g){let m=.5*(this.lineClips?this.scaledDistance*(Ep-1):this.scaledDistance);this.layoutVertexArray.emplaceBack((e<<1)+(l?1:0),(i<<1)+(u?1:0),Math.round(63*o)+128,Math.round(63*a)+128,1+(p===0?0:p<0?-1:1)|(63&m)<<2,m>>6),this.lineClips&&this.layoutVertexArray2.emplaceBack((this.scaledDistance-this.lineClips.start)/(this.lineClips.end-this.lineClips.start),this.lineClipsArray.length);let v=g.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,v,this.e2),g.primitiveLength++),u?this.e2=v:this.e1=v}updateScaledDistance(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance}updateDistance(e,i){this.distance+=e.dist(i),this.updateScaledDistance()}hasLineDasharray(e){for(let i of e){let o=i.paint.get(\"line-dasharray\");if(o&&!o.isConstant())return!0}return!1}addLineDashDependencies(e,i,o,a){for(let l of e){let u=l.paint.get(\"line-dasharray\");if(!u||u.value.kind===\"constant\")continue;let p=l.layout.get(\"line-cap\").evaluate(i,{})===\"round\",g={dasharray:u.value.evaluate({zoom:o-1},i,{}),round:p},m={dasharray:u.value.evaluate({zoom:o},i,{}),round:p},v={dasharray:u.value.evaluate({zoom:o+1},i,{}),round:p},_=`${g.dasharray.join(\",\")},${g.round}`,T=`${m.dasharray.join(\",\")},${m.round}`,b=`${v.dasharray.join(\",\")},${v.round}`;a.dashDependencies[_]=g,a.dashDependencies[T]=m,a.dashDependencies[b]=v,i.dashes[l.id]={min:_,mid:T,max:b}}}}let Ip,Ap;ze(\"LineBucket\",Hh,{omit:[\"layers\",\"patternFeatures\"]});var zp={get paint(){return Ap=Ap||new Ii({\"line-opacity\":new Ue(de.paint_line[\"line-opacity\"]),\"line-color\":new Ue(de.paint_line[\"line-color\"]),\"line-translate\":new Le(de.paint_line[\"line-translate\"]),\"line-translate-anchor\":new Le(de.paint_line[\"line-translate-anchor\"]),\"line-width\":new Ue(de.paint_line[\"line-width\"]),\"line-gap-width\":new Ue(de.paint_line[\"line-gap-width\"]),\"line-offset\":new Ue(de.paint_line[\"line-offset\"]),\"line-blur\":new Ue(de.paint_line[\"line-blur\"]),\"line-dasharray\":new en(de.paint_line[\"line-dasharray\"]),\"line-pattern\":new en(de.paint_line[\"line-pattern\"]),\"line-gradient\":new po(de.paint_line[\"line-gradient\"])})},get layout(){return Ip=Ip||new Ii({\"line-cap\":new Ue(de.layout_line[\"line-cap\"]),\"line-join\":new Ue(de.layout_line[\"line-join\"]),\"line-miter-limit\":new Ue(de.layout_line[\"line-miter-limit\"]),\"line-round-limit\":new Ue(de.layout_line[\"line-round-limit\"]),\"line-sort-key\":new Ue(de.layout_line[\"line-sort-key\"])})}};class qg extends Ue{possiblyEvaluate(e,i){return i=new Et(Math.floor(i.zoom),{now:i.now,fadeDuration:i.fadeDuration,zoomHistory:i.zoomHistory,transition:i.transition}),super.possiblyEvaluate(e,i)}evaluate(e,i,o,a){return i=Mi({},i,{zoom:Math.floor(i.zoom)}),super.evaluate(e,i,o,a)}}let Iu;class Gg extends nr{constructor(e,i){super(e,zp,i),this.gradientVersion=0,Iu||(Iu=new qg(zp.paint.properties[\"line-width\"].specification),Iu.useIntegerZoom=!0)}_handleSpecialPaintPropertyUpdate(e){if(e===\"line-gradient\"){let i=this.gradientExpression();this.stepInterpolant=!!(function(o){return o._styleExpression!==void 0})(i)&&i._styleExpression.expression instanceof Qn,this.gradientVersion=(this.gradientVersion+1)%Number.MAX_SAFE_INTEGER}}gradientExpression(){return this._transitionablePaint._values[\"line-gradient\"].value.expression}recalculate(e,i){super.recalculate(e,i),this.paint._values[\"line-floorwidth\"]=Iu.possiblyEvaluate(this._transitioningPaint._values[\"line-width\"].value,e)}createBucket(e){return new Hh(e)}queryRadius(e){let i=e,o=Dp(fs(\"line-width\",this,i),fs(\"line-gap-width\",this,i)),a=fs(\"line-offset\",this,i);return o/2+Math.abs(a)+yu(this.paint.get(\"line-translate\"))}queryIntersectsFeature({queryGeometry:e,feature:i,featureState:o,geometry:a,transform:l,pixelsToTileUnits:u}){let p=vu(e,this.paint.get(\"line-translate\"),this.paint.get(\"line-translate-anchor\"),-l.bearingInRadians,u),g=u/2*Dp(this.paint.get(\"line-width\").evaluate(i,o),this.paint.get(\"line-gap-width\").evaluate(i,o)),m=this.paint.get(\"line-offset\").evaluate(i,o);return m&&(a=(function(v,_){let T=[];for(let b of v){let P=km(b),C=[];for(let A=0;A=3){for(let P of b)if(ps(v,P))return!0}if(Am(v,b,T))return!0}return!1})(p,a,g)}isTileClipped(){return!0}}function Dp(r,e){return e>0?e+2*r:r}let $g=It([{name:\"a_pos_offset\",components:4,type:\"Int16\"},{name:\"a_data\",components:4,type:\"Uint16\"},{name:\"a_pixeloffset\",components:4,type:\"Int16\"}],4),Zg=It([{name:\"a_projected_pos\",components:3,type:\"Float32\"}],4);It([{name:\"a_fade_opacity\",components:1,type:\"Uint32\"}],4);let Wg=It([{name:\"a_placed\",components:2,type:\"Uint8\"},{name:\"a_shift\",components:2,type:\"Float32\"},{name:\"a_box_real\",components:2,type:\"Int16\"}]);It([{type:\"Int16\",name:\"anchorPointX\"},{type:\"Int16\",name:\"anchorPointY\"},{type:\"Int16\",name:\"x1\"},{type:\"Int16\",name:\"y1\"},{type:\"Int16\",name:\"x2\"},{type:\"Int16\",name:\"y2\"},{type:\"Uint32\",name:\"featureIndex\"},{type:\"Uint16\",name:\"sourceLayerIndex\"},{type:\"Uint16\",name:\"bucketIndex\"}]);let kp=It([{name:\"a_pos\",components:2,type:\"Int16\"},{name:\"a_anchor_pos\",components:2,type:\"Int16\"},{name:\"a_extrude\",components:2,type:\"Int16\"}],4),Hg=It([{name:\"a_pos\",components:2,type:\"Float32\"},{name:\"a_radius\",components:1,type:\"Float32\"},{name:\"a_flags\",components:2,type:\"Int16\"}],4);function Xg(r,e,i){let o=e.layout.get(\"text-transform\").evaluate(i,{});return o===\"uppercase\"?r=r.toLocaleUpperCase():o===\"lowercase\"&&(r=r.toLocaleLowerCase()),Fr.applyArabicShaping&&(r=Fr.applyArabicShaping(r)),r}function Yg(r,e,i){for(let o of r.sections)o.text=Xg(o.text,e,i);return r}It([{name:\"triangle\",components:3,type:\"Uint16\"}]),It([{type:\"Int16\",name:\"anchorX\"},{type:\"Int16\",name:\"anchorY\"},{type:\"Uint16\",name:\"glyphStartIndex\"},{type:\"Uint16\",name:\"numGlyphs\"},{type:\"Uint32\",name:\"vertexStartIndex\"},{type:\"Uint32\",name:\"lineStartIndex\"},{type:\"Uint32\",name:\"lineLength\"},{type:\"Uint16\",name:\"segment\"},{type:\"Uint16\",name:\"lowerSize\"},{type:\"Uint16\",name:\"upperSize\"},{type:\"Float32\",name:\"lineOffsetX\"},{type:\"Float32\",name:\"lineOffsetY\"},{type:\"Uint8\",name:\"writingMode\"},{type:\"Uint8\",name:\"placedOrientation\"},{type:\"Uint8\",name:\"hidden\"},{type:\"Uint32\",name:\"crossTileID\"},{type:\"Int16\",name:\"associatedIconIndex\"}]),It([{type:\"Int16\",name:\"anchorX\"},{type:\"Int16\",name:\"anchorY\"},{type:\"Int16\",name:\"rightJustifiedTextSymbolIndex\"},{type:\"Int16\",name:\"centerJustifiedTextSymbolIndex\"},{type:\"Int16\",name:\"leftJustifiedTextSymbolIndex\"},{type:\"Int16\",name:\"verticalPlacedTextSymbolIndex\"},{type:\"Int16\",name:\"placedIconSymbolIndex\"},{type:\"Int16\",name:\"verticalPlacedIconSymbolIndex\"},{type:\"Uint16\",name:\"key\"},{type:\"Uint16\",name:\"textBoxStartIndex\"},{type:\"Uint16\",name:\"textBoxEndIndex\"},{type:\"Uint16\",name:\"verticalTextBoxStartIndex\"},{type:\"Uint16\",name:\"verticalTextBoxEndIndex\"},{type:\"Uint16\",name:\"iconBoxStartIndex\"},{type:\"Uint16\",name:\"iconBoxEndIndex\"},{type:\"Uint16\",name:\"verticalIconBoxStartIndex\"},{type:\"Uint16\",name:\"verticalIconBoxEndIndex\"},{type:\"Uint16\",name:\"featureIndex\"},{type:\"Uint16\",name:\"numHorizontalGlyphVertices\"},{type:\"Uint16\",name:\"numVerticalGlyphVertices\"},{type:\"Uint16\",name:\"numIconVertices\"},{type:\"Uint16\",name:\"numVerticalIconVertices\"},{type:\"Uint16\",name:\"useRuntimeCollisionCircles\"},{type:\"Uint32\",name:\"crossTileID\"},{type:\"Float32\",name:\"textBoxScale\"},{type:\"Float32\",name:\"collisionCircleDiameter\"},{type:\"Uint16\",name:\"textAnchorOffsetStartIndex\"},{type:\"Uint16\",name:\"textAnchorOffsetEndIndex\"}]),It([{type:\"Float32\",name:\"offsetX\"}]),It([{type:\"Int16\",name:\"x\"},{type:\"Int16\",name:\"y\"},{type:\"Int16\",name:\"tileUnitDistanceFromAnchor\"}]),It([{type:\"Uint16\",name:\"textAnchor\"},{type:\"Float32\",components:2,name:\"textOffset\"}]);var ni=24;let rc={\"!\":\"\\uFE15\",\"#\":\"\\uFF03\",$:\"\\uFF04\",\"%\":\"\\uFF05\",\"&\":\"\\uFF06\",\"(\":\"\\uFE35\",\")\":\"\\uFE36\",\"*\":\"\\uFF0A\",\"+\":\"\\uFF0B\",\",\":\"\\uFE10\",\"-\":\"\\uFE32\",\".\":\"\\u30FB\",\"/\":\"\\uFF0F\",\":\":\"\\uFE13\",\";\":\"\\uFE14\",\"<\":\"\\uFE3F\",\"=\":\"\\uFF1D\",\">\":\"\\uFE40\",\"?\":\"\\uFE16\",\"@\":\"\\uFF20\",\"[\":\"\\uFE47\",\"\\\\\":\"\\uFF3C\",\"]\":\"\\uFE48\",\"^\":\"\\uFF3E\",_:\"\\uFE33\",\"`\":\"\\uFF40\",\"{\":\"\\uFE37\",\"|\":\"\\u2015\",\"}\":\"\\uFE38\",\"~\":\"\\uFF5E\",\"\\xA2\":\"\\uFFE0\",\"\\xA3\":\"\\uFFE1\",\"\\xA5\":\"\\uFFE5\",\"\\xA6\":\"\\uFFE4\",\"\\xAC\":\"\\uFFE2\",\"\\xAF\":\"\\uFFE3\",\"\\u2013\":\"\\uFE32\",\"\\u2014\":\"\\uFE31\",\"\\u2018\":\"\\uFE43\",\"\\u2019\":\"\\uFE44\",\"\\u201C\":\"\\uFE41\",\"\\u201D\":\"\\uFE42\",\"\\u2026\":\"\\uFE19\",\"\\u22EF\":\"\\uFE19\",\"\\u2027\":\"\\u30FB\",\"\\u20A9\":\"\\uFFE6\",\"\\u3001\":\"\\uFE11\",\"\\u3002\":\"\\uFE12\",\"\\u3008\":\"\\uFE3F\",\"\\u3009\":\"\\uFE40\",\"\\u300A\":\"\\uFE3D\",\"\\u300B\":\"\\uFE3E\",\"\\u300C\":\"\\uFE41\",\"\\u300D\":\"\\uFE42\",\"\\u300E\":\"\\uFE43\",\"\\u300F\":\"\\uFE44\",\"\\u3010\":\"\\uFE3B\",\"\\u3011\":\"\\uFE3C\",\"\\u3014\":\"\\uFE39\",\"\\u3015\":\"\\uFE3A\",\"\\u3016\":\"\\uFE17\",\"\\u3017\":\"\\uFE18\",\"\\uFF01\":\"\\uFE15\",\"\\uFF08\":\"\\uFE35\",\"\\uFF09\":\"\\uFE36\",\"\\uFF0C\":\"\\uFE10\",\"\\uFF0D\":\"\\uFE32\",\"\\uFF0E\":\"\\u30FB\",\"\\uFF1A\":\"\\uFE13\",\"\\uFF1B\":\"\\uFE14\",\"\\uFF1C\":\"\\uFE3F\",\"\\uFF1E\":\"\\uFE40\",\"\\uFF1F\":\"\\uFE16\",\"\\uFF3B\":\"\\uFE47\",\"\\uFF3D\":\"\\uFE48\",\"\\uFF3F\":\"\\uFE33\",\"\\uFF5B\":\"\\uFE37\",\"\\uFF5C\":\"\\u2015\",\"\\uFF5D\":\"\\uFE38\",\"\\uFF5F\":\"\\uFE35\",\"\\uFF60\":\"\\uFE36\",\"\\uFF61\":\"\\uFE12\",\"\\uFF62\":\"\\uFE41\",\"\\uFF63\":\"\\uFE42\"},Kg={10:!0,32:!0,38:!0,41:!0,43:!0,45:!0,47:!0,173:!0,183:!0,8203:!0,8208:!0,8211:!0,8231:!0},Jg={40:!0};function Rp(r,e,i,o,a,l){if(\"fontStack\"in e){let u=i[e.fontStack],p=u?.[r];return p?p.metrics.advance*e.scale+a:0}{let u=o[e.imageName];return u?u.displaySize[0]*e.scale*ni/l+a:0}}function Lp(r,e,i,o){let a=Math.pow(r-e,2);return o?rMath.max(e,this.sections[i].scale)),0)}getMaxImageSize(e){let i=0,o=0;for(let a=0;ao)))}addImageSection(e){let i=e.image?e.image.name:\"\";if(i.length===0)return void xt(\"Can't add FormattedSection with an empty image.\");let o=this.getNextImageSectionCharCode();o?(this.text+=String.fromCharCode(o),this.sections.push({scale:1,verticalAlign:e.verticalAlign||\"bottom\",imageName:i}),this.sectionIndex.push(this.sections.length-1)):xt(\"Reached maximum number of images 6401\")}getNextImageSectionCharCode(){return this.imageSectionID?this.imageSectionID>=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)}determineLineBreaks(e,i,o,a,l){let u=[],p=this.determineAverageLineWidth(e,i,o,a,l),g=this.hasZeroWidthSpaces(),m=0,v=0,_=this.text[Symbol.iterator](),T=_.next(),b=this.text[Symbol.iterator]();b.next();let P=b.next(),C=this.text[Symbol.iterator]();C.next(),C.next();let A=C.next();for(;!T.done;){let z=this.getSection(v),L=T.value.codePointAt(0);if(su(L)||(m+=Rp(L,z,o,a,e,l)),!P.done){let R=mh(L),F=P.value.codePointAt(0);(Kg[L]||R||\"imageName\"in z||!A.done&&Jg[F])&&u.push(Fp(v+1,m,p,u,Qg(L,F,R&&g),!1))}v++,T=_.next(),P=b.next(),A=C.next()}return Bp(Fp(this.length(),m,p,u,0,!0))}determineAverageLineWidth(e,i,o,a,l){let u=0,p=0;for(let g of this.text){let m=this.getSection(p);u+=Rp(g.codePointAt(0),m,o,a,e,l),p++}return u/Math.max(1,Math.ceil(u/i))}}let Xh=4294967296,Op=1/Xh,Vp=typeof TextDecoder>\"u\"?null:new TextDecoder(\"utf-8\");class Au{constructor(e=new Uint8Array(16)){this.buf=ArrayBuffer.isView(e)?e:new Uint8Array(e),this.dataView=new DataView(this.buf.buffer),this.pos=0,this.type=0,this.length=this.buf.length}readFields(e,i,o=this.length){for(;this.pos>3,u=this.pos;this.type=7&a,e(l,i,this),this.pos===u&&this.skip(a)}return i}readMessage(e,i){return this.readFields(e,i,this.readVarint()+this.pos)}readFixed32(){let e=this.dataView.getUint32(this.pos,!0);return this.pos+=4,e}readSFixed32(){let e=this.dataView.getInt32(this.pos,!0);return this.pos+=4,e}readFixed64(){let e=this.dataView.getUint32(this.pos,!0)+this.dataView.getUint32(this.pos+4,!0)*Xh;return this.pos+=8,e}readSFixed64(){let e=this.dataView.getUint32(this.pos,!0)+this.dataView.getInt32(this.pos+4,!0)*Xh;return this.pos+=8,e}readFloat(){let e=this.dataView.getFloat32(this.pos,!0);return this.pos+=4,e}readDouble(){let e=this.dataView.getFloat64(this.pos,!0);return this.pos+=8,e}readVarint(e){let i=this.buf,o,a;return a=i[this.pos++],o=127&a,a<128?o:(a=i[this.pos++],o|=(127&a)<<7,a<128?o:(a=i[this.pos++],o|=(127&a)<<14,a<128?o:(a=i[this.pos++],o|=(127&a)<<21,a<128?o:(a=i[this.pos],o|=(15&a)<<28,(function(l,u,p){let g=p.buf,m,v;if(v=g[p.pos++],m=(112&v)>>4,v<128||(v=g[p.pos++],m|=(127&v)<<3,v<128)||(v=g[p.pos++],m|=(127&v)<<10,v<128)||(v=g[p.pos++],m|=(127&v)<<17,v<128)||(v=g[p.pos++],m|=(127&v)<<24,v<128)||(v=g[p.pos++],m|=(1&v)<<31,v<128))return ws(l,m,u);throw new Error(\"Expected varint not more than 10 bytes\")})(o,e,this)))))}readVarint64(){return this.readVarint(!0)}readSVarint(){let e=this.readVarint();return e%2==1?(e+1)/-2:e/2}readBoolean(){return!!this.readVarint()}readString(){let e=this.readVarint()+this.pos,i=this.pos;return this.pos=e,e-i>=12&&Vp?Vp.decode(this.buf.subarray(i,e)):(function(o,a,l){let u=\"\",p=a;for(;p239?4:g>223?3:g>191?2:1;if(p+b>l)break;b===1?g<128&&(T=g):b===2?(m=o[p+1],(192&m)==128&&(T=(31&g)<<6|63&m,T<=127&&(T=null))):b===3?(m=o[p+1],v=o[p+2],(192&m)==128&&(192&v)==128&&(T=(15&g)<<12|(63&m)<<6|63&v,(T<=2047||T>=55296&&T<=57343)&&(T=null))):b===4&&(m=o[p+1],v=o[p+2],_=o[p+3],(192&m)==128&&(192&v)==128&&(192&_)==128&&(T=(15&g)<<18|(63&m)<<12|(63&v)<<6|63&_,(T<=65535||T>=1114112)&&(T=null))),T===null?(T=65533,b=1):T>65535&&(T-=65536,u+=String.fromCharCode(T>>>10&1023|55296),T=56320|1023&T),u+=String.fromCharCode(T),p+=b}return u})(this.buf,i,e)}readBytes(){let e=this.readVarint()+this.pos,i=this.buf.subarray(this.pos,e);return this.pos=e,i}readPackedVarint(e=[],i){let o=this.readPackedEnd();for(;this.pos127;);else if(i===2)this.pos=this.readVarint()+this.pos;else if(i===5)this.pos+=4;else{if(i!==1)throw new Error(`Unimplemented type: ${i}`);this.pos+=8}}writeTag(e,i){this.writeVarint(e<<3|i)}realloc(e){let i=this.length||16;for(;i268435455||e<0?(function(i,o){let a,l;if(i>=0?(a=i%4294967296|0,l=i/4294967296|0):(a=~(-i%4294967296),l=~(-i/4294967296),4294967295^a?a=a+1|0:(a=0,l=l+1|0)),i>=18446744073709552e3||i<-18446744073709552e3)throw new Error(\"Given varint doesn't fit into 10 bytes\");o.realloc(10),(function(u,p,g){g.buf[g.pos++]=127&u|128,u>>>=7,g.buf[g.pos++]=127&u|128,u>>>=7,g.buf[g.pos++]=127&u|128,u>>>=7,g.buf[g.pos++]=127&u|128,g.buf[g.pos]=127&(u>>>=7)})(a,0,o),(function(u,p){let g=(7&u)<<4;p.buf[p.pos++]|=g|((u>>>=3)?128:0),u&&(p.buf[p.pos++]=127&u|((u>>>=7)?128:0),u&&(p.buf[p.pos++]=127&u|((u>>>=7)?128:0),u&&(p.buf[p.pos++]=127&u|((u>>>=7)?128:0),u&&(p.buf[p.pos++]=127&u|((u>>>=7)?128:0),u&&(p.buf[p.pos++]=127&u)))))})(l,o)})(e,this):(this.realloc(4),this.buf[this.pos++]=127&e|(e>127?128:0),e<=127||(this.buf[this.pos++]=127&(e>>>=7)|(e>127?128:0),e<=127||(this.buf[this.pos++]=127&(e>>>=7)|(e>127?128:0),e<=127||(this.buf[this.pos++]=e>>>7&127))))}writeSVarint(e){this.writeVarint(e<0?2*-e-1:2*e)}writeBoolean(e){this.writeVarint(+e)}writeString(e){e=String(e),this.realloc(4*e.length),this.pos++;let i=this.pos;this.pos=(function(a,l,u){for(let p,g,m=0;m55295&&p<57344){if(!g){p>56319||m+1===l.length?(a[u++]=239,a[u++]=191,a[u++]=189):g=p;continue}if(p<56320){a[u++]=239,a[u++]=191,a[u++]=189,g=p;continue}p=g-55296<<10|p-56320|65536,g=null}else g&&(a[u++]=239,a[u++]=191,a[u++]=189,g=null);p<128?a[u++]=p:(p<2048?a[u++]=p>>6|192:(p<65536?a[u++]=p>>12|224:(a[u++]=p>>18|240,a[u++]=p>>12&63|128),a[u++]=p>>6&63|128),a[u++]=63&p|128)}return u})(this.buf,e,this.pos);let o=this.pos-i;o>=128&&jp(i,o,this),this.pos=i-1,this.writeVarint(o),this.pos+=o}writeFloat(e){this.realloc(4),this.dataView.setFloat32(this.pos,e,!0),this.pos+=4}writeDouble(e){this.realloc(8),this.dataView.setFloat64(this.pos,e,!0),this.pos+=8}writeBytes(e){let i=e.length;this.writeVarint(i),this.realloc(i);for(let o=0;o=128&&jp(o,a,this),this.pos=o-1,this.writeVarint(a),this.pos+=a}writeMessage(e,i,o){this.writeTag(e,2),this.writeRawMessage(i,o)}writePackedVarint(e,i){i.length&&this.writeMessage(e,e0,i)}writePackedSVarint(e,i){i.length&&this.writeMessage(e,t0,i)}writePackedBoolean(e,i){i.length&&this.writeMessage(e,n0,i)}writePackedFloat(e,i){i.length&&this.writeMessage(e,i0,i)}writePackedDouble(e,i){i.length&&this.writeMessage(e,r0,i)}writePackedFixed32(e,i){i.length&&this.writeMessage(e,o0,i)}writePackedSFixed32(e,i){i.length&&this.writeMessage(e,a0,i)}writePackedFixed64(e,i){i.length&&this.writeMessage(e,s0,i)}writePackedSFixed64(e,i){i.length&&this.writeMessage(e,l0,i)}writeBytesField(e,i){this.writeTag(e,2),this.writeBytes(i)}writeFixed32Field(e,i){this.writeTag(e,5),this.writeFixed32(i)}writeSFixed32Field(e,i){this.writeTag(e,5),this.writeSFixed32(i)}writeFixed64Field(e,i){this.writeTag(e,1),this.writeFixed64(i)}writeSFixed64Field(e,i){this.writeTag(e,1),this.writeSFixed64(i)}writeVarintField(e,i){this.writeTag(e,0),this.writeVarint(i)}writeSVarintField(e,i){this.writeTag(e,0),this.writeSVarint(i)}writeStringField(e,i){this.writeTag(e,2),this.writeString(i)}writeFloatField(e,i){this.writeTag(e,5),this.writeFloat(i)}writeDoubleField(e,i){this.writeTag(e,1),this.writeDouble(i)}writeBooleanField(e,i){this.writeVarintField(e,+i)}}function ws(r,e,i){return i?4294967296*e+(r>>>0):4294967296*(e>>>0)+(r>>>0)}function jp(r,e,i){let o=e<=16383?1:e<=2097151?2:e<=268435455?3:Math.floor(Math.log(e)/(7*Math.LN2));i.realloc(o);for(let a=i.pos-1;a>=r;a--)i.buf[a+o]=i.buf[a]}function e0(r,e){for(let i=0;ip.h-u.h));let o=[{x:0,y:0,w:Math.max(Math.ceil(Math.sqrt(e/.95)),i),h:1/0}],a=0,l=0;for(let u of r)for(let p=o.length-1;p>=0;p--){let g=o[p];if(!(u.w>g.w||u.h>g.h)){if(u.x=g.x,u.y=g.y,l=Math.max(l,u.y+u.h),a=Math.max(a,u.x+u.w),u.w===g.w&&u.h===g.h){let m=o.pop();m&&pC.toCodeUnitIndex(Y)));let j=L(C.toString(),z);for(let Y of j){let Q=[...Y].map((()=>0));A.push(new bs(Y,C.sections,Q))}}else if(R){A=[],z=z.map((oe=>C.toCodeUnitIndex(oe)));let j=0,Y=[];for(let oe of C.text)Y.push(...Array(oe.length).fill(C.sectionIndex[j])),j++;let Q=R(C.text,Y,z);for(let oe of Q){let ie=[],ue=\"\";for(let he of oe[0])ie.push(oe[1][ue.length]),ue+=he;A.push(new bs(oe[0],C.sections,ie))}}else A=(function(j,Y){let Q=[],oe=0;for(let ie of Y)Q.push(j.substring(oe,ie)),oe=ie;return oem){let v=Math.ceil(l/m);a*=v/u,u=v}return{x1:o,y1:a,x2:o+l,y2:a+u}}function $p(r,e,i,o,a,l){let u=r.image,p;if(u.content){let A=u.content,z=u.pixelRatio||1;p=[A[0]/z,A[1]/z,u.displaySize[0]-A[2]/z,u.displaySize[1]-A[3]/z]}let g=e.left*l,m=e.right*l,v,_,T,b;i===\"width\"||i===\"both\"?(b=a[0]+g-o[3],_=a[0]+m+o[1]):(b=a[0]+(g+m-u.displaySize[0])/2,_=b+u.displaySize[0]);let P=e.top*l,C=e.bottom*l;return i===\"height\"||i===\"both\"?(v=a[1]+P-o[0],T=a[1]+C+o[2]):(v=a[1]+(P+C-u.displaySize[1])/2,T=v+u.displaySize[1]),{image:u,top:v,right:_,bottom:T,left:b,collisionPadding:p}}ze(\"ImagePosition\",Yh),ze(\"ImageAtlas\",Up),k.ax=void 0,(mo=k.ax||(k.ax={}))[mo.none=0]=\"none\",mo[mo.horizontal=1]=\"horizontal\",mo[mo.vertical=2]=\"vertical\",mo[mo.horizontalOnly=3]=\"horizontalOnly\";let Fn=128,go=32640;function Zp(r,e){let{expression:i}=e;if(i.kind===\"constant\")return{kind:\"constant\",layoutSize:i.evaluate(new Et(r+1))};if(i.kind===\"source\")return{kind:\"source\"};{let{zoomStops:o,interpolationType:a}=i,l=0;for(;lu.id)),this.index=e.index,this.pixelRatio=e.pixelRatio,this.sourceLayerIndex=e.sourceLayerIndex,this.hasDependencies=!1,this.hasRTLText=!1,this.sortKeyRanges=[],this.collisionCircleArray=[];let i=this.layers[0]._unevaluatedLayout._values;this.textSizeData=Zp(this.zoom,i[\"text-size\"]),this.iconSizeData=Zp(this.zoom,i[\"icon-size\"]);let o=this.layers[0].layout,a=o.get(\"symbol-sort-key\"),l=o.get(\"symbol-z-order\");this.canOverlap=Jh(o,\"text-overlap\",\"text-allow-overlap\")!==\"never\"||Jh(o,\"icon-overlap\",\"icon-allow-overlap\")!==\"never\"||o.get(\"text-ignore-placement\")||o.get(\"icon-ignore-placement\"),this.sortFeaturesByKey=l!==\"viewport-y\"&&!a.isConstant(),this.sortFeaturesByY=(l===\"viewport-y\"||l===\"auto\"&&!this.sortFeaturesByKey)&&this.canOverlap,o.get(\"symbol-placement\")===\"point\"&&(this.writingModes=o.get(\"text-writing-mode\").map((u=>k.ax[u]))),this.stateDependentLayerIds=this.layers.filter((u=>u.isStateDependent())).map((u=>u.id)),this.sourceID=e.sourceID}createArrays(){this.text=new ed(new Vr(this.layers,this.zoom,(e=>e.startsWith(\"text\")))),this.icon=new ed(new Vr(this.layers,this.zoom,(e=>e.startsWith(\"icon\")))),this.glyphOffsetArray=new S,this.lineVertexArray=new M,this.symbolInstances=new w,this.textAnchorOffsets=new I}calculateGlyphDependencies(e,i,o,a,l){for(let u of e)if(i[u.codePointAt(0)]=!0,(o||a)&&l){let p=rc[u];p&&(i[p.codePointAt(0)]=!0)}}populate(e,i,o){var a;let l=this.layers[0],u=l.layout,p=u.get(\"text-font\"),g=u.get(\"text-field\"),m=u.get(\"icon-image\"),v=(g.value.kind!==\"constant\"||g.value.value instanceof Vi&&!g.value.value.isEmpty()||g.value.value.toString().length>0)&&(p.value.kind!==\"constant\"||p.value.value.length>0),_=m.value.kind!==\"constant\"||!!m.value.value||Object.keys(m.parameters).length>0,T=u.get(\"symbol-sort-key\");if(this.features=[],!v&&!_)return;let b=i.iconDependencies,P=i.glyphDependencies,C=i.availableImages,A=new Et(this.zoom);for(let{feature:z,id:L,index:R,sourceLayerIndex:F}of e){let O=l._featureFilter.needGeometry,j=ln(z,O);if(!l._featureFilter.filter(A,j,o))continue;let Y,Q;if(O||(j.geometry=sn(z)),v){let ie=l.getValueAndResolveTokens(\"text-field\",j,o,C),ue=Vi.factory(ie);this.hasRTLText||(this.hasRTLText=v0(ue)),(!this.hasRTLText||Fr.getRTLTextPluginStatus()===\"unavailable\"||this.hasRTLText&&Fr.isParsed())&&(Y=Yg(ue,l,j))}if(_){let ie=l.getValueAndResolveTokens(\"icon-image\",j,o,C);Q=ie instanceof $i?ie:$i.fromString(ie)}if(!Y&&!Q)continue;let oe=this.sortFeaturesByKey?T.evaluate(j,{},o):void 0;if(this.features.push({id:L,text:Y,icon:Q,index:R,sourceLayerIndex:F,geometry:j.geometry,properties:z.properties,type:Jl.types[z.type],sortKey:oe}),Q&&(b[Q.name]=!0),Y){let ie=p.evaluate(j,{},o).join(\",\"),ue=u.get(\"text-rotation-alignment\")!==\"viewport\"&&u.get(\"symbol-placement\")!==\"point\";this.allowVerticalPlacement=(a=this.writingModes)===null||a===void 0?void 0:a.includes(k.ax.vertical);for(let he of Y.sections)if(he.image)b[he.image.name]=!0;else{let ae=Cl(Y.toString()),ne=he.fontStack||ie;P[ne]||(P[ne]={}),this.calculateGlyphDependencies(he.text,P[ne],ue,this.allowVerticalPlacement,ae)}}}u.get(\"symbol-placement\")===\"line\"&&(this.features=(function(z){let L={},R={},F=[],O=0;function j(ie){F.push(z[ie]),O++}function Y(ie,ue,he){let ae=R[ie];return delete R[ie],R[ue]=ae,F[ae].geometry[0].pop(),F[ae].geometry[0]=F[ae].geometry[0].concat(he[0]),ae}function Q(ie,ue,he){let ae=L[ue];return delete L[ue],L[ie]=ae,F[ae].geometry[0].shift(),F[ae].geometry[0]=he[0].concat(F[ae].geometry[0]),ae}function oe(ie,ue,he){let ae=he?ue[0][ue[0].length-1]:ue[0][0];return`${ie}:${ae.x}:${ae.y}`}for(let ie=0;ieie.geometry))})(this.features)),this.sortFeaturesByKey&&this.features.sort(((z,L)=>z.sortKey-L.sortKey))}update(e,i,o){this.stateDependentLayers.length&&(this.text.programConfigurations.updatePaintArrays(e,i,this.layers,{imagePositions:o}),this.icon.programConfigurations.updatePaintArrays(e,i,this.layers,{imagePositions:o}))}isEmpty(){return this.symbolInstances.length===0&&!this.hasRTLText}uploadPending(){return!this.uploaded||this.text.programConfigurations.needsUpload||this.icon.programConfigurations.needsUpload}upload(e){!this.uploaded&&this.hasDebugData()&&(this.textCollisionBox.upload(e),this.iconCollisionBox.upload(e)),this.text.upload(e,this.sortFeaturesByY,!this.uploaded,this.text.programConfigurations.needsUpload),this.icon.upload(e,this.sortFeaturesByY,!this.uploaded,this.icon.programConfigurations.needsUpload),this.uploaded=!0}destroyDebugData(){this.textCollisionBox.destroy(),this.iconCollisionBox.destroy()}destroy(){this.text.destroy(),this.icon.destroy(),this.hasDebugData()&&this.destroyDebugData()}addToLineVertexArray(e,i){let o=this.lineVertexArray.length;if(e.segment!==void 0){let a=e.dist(i[e.segment+1]),l=e.dist(i[e.segment]),u={};for(let p=e.segment+1;p=0;p--)u[p]={x:i[p].x,y:i[p].y,tileUnitDistanceFromAnchor:l},p>0&&(l+=i[p-1].dist(i[p]));for(let p=0;p0}hasIconData(){return this.icon.segments.get().length>0}hasDebugData(){return this.textCollisionBox&&this.iconCollisionBox}hasTextCollisionBoxData(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0}hasIconCollisionBoxData(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0}addIndicesForPlacedSymbol(e,i){let o=e.placedSymbolArray.get(i),a=o.vertexStartIndex+4*o.numGlyphs;for(let l=o.vertexStartIndex;la[p]-a[g]||l[g]-l[p])),u}addToSortKeyRanges(e,i){let o=this.sortKeyRanges[this.sortKeyRanges.length-1];o?.sortKey===i?o.symbolInstanceEnd=e+1:this.sortKeyRanges.push({sortKey:i,symbolInstanceStart:e,symbolInstanceEnd:e+1})}sortFeatures(e){if(this.sortFeaturesByY&&this.sortedAngle!==e&&!(this.text.segments.get().length>1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(e),this.sortedAngle=e,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(let i of this.symbolInstanceIndexes){let o=this.symbolInstances.get(i);this.featureSortOrder.push(o.featureIndex);let a=[o.rightJustifiedTextSymbolIndex,o.centerJustifiedTextSymbolIndex,o.leftJustifiedTextSymbolIndex];for(let l=0;l=0&&a.indexOf(u)===l&&this.addIndicesForPlacedSymbol(this.text,u)}o.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,o.verticalPlacedTextSymbolIndex),o.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,o.placedIconSymbolIndex),o.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,o.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}}}let Wp,Hp;ze(\"SymbolBucket\",Ts,{omit:[\"layers\",\"collisionBoxArray\",\"features\",\"compareText\"]}),Ts.MAX_GLYPHS=65535,Ts.addDynamicAttributes=Qh;var id={get paint(){return Hp=Hp||new Ii({\"icon-opacity\":new Ue(de.paint_symbol[\"icon-opacity\"]),\"icon-color\":new Ue(de.paint_symbol[\"icon-color\"]),\"icon-halo-color\":new Ue(de.paint_symbol[\"icon-halo-color\"]),\"icon-halo-width\":new Ue(de.paint_symbol[\"icon-halo-width\"]),\"icon-halo-blur\":new Ue(de.paint_symbol[\"icon-halo-blur\"]),\"icon-translate\":new Le(de.paint_symbol[\"icon-translate\"]),\"icon-translate-anchor\":new Le(de.paint_symbol[\"icon-translate-anchor\"]),\"text-opacity\":new Ue(de.paint_symbol[\"text-opacity\"]),\"text-color\":new Ue(de.paint_symbol[\"text-color\"],{runtimeType:Gi,getOverride:r=>r.textColor,hasOverride:r=>!!r.textColor}),\"text-halo-color\":new Ue(de.paint_symbol[\"text-halo-color\"]),\"text-halo-width\":new Ue(de.paint_symbol[\"text-halo-width\"]),\"text-halo-blur\":new Ue(de.paint_symbol[\"text-halo-blur\"]),\"text-translate\":new Le(de.paint_symbol[\"text-translate\"]),\"text-translate-anchor\":new Le(de.paint_symbol[\"text-translate-anchor\"])})},get layout(){return Wp=Wp||new Ii({\"symbol-placement\":new Le(de.layout_symbol[\"symbol-placement\"]),\"symbol-spacing\":new Le(de.layout_symbol[\"symbol-spacing\"]),\"symbol-avoid-edges\":new Le(de.layout_symbol[\"symbol-avoid-edges\"]),\"symbol-sort-key\":new Ue(de.layout_symbol[\"symbol-sort-key\"]),\"symbol-z-order\":new Le(de.layout_symbol[\"symbol-z-order\"]),\"icon-allow-overlap\":new Le(de.layout_symbol[\"icon-allow-overlap\"]),\"icon-overlap\":new Le(de.layout_symbol[\"icon-overlap\"]),\"icon-ignore-placement\":new Le(de.layout_symbol[\"icon-ignore-placement\"]),\"icon-optional\":new Le(de.layout_symbol[\"icon-optional\"]),\"icon-rotation-alignment\":new Le(de.layout_symbol[\"icon-rotation-alignment\"]),\"icon-size\":new Ue(de.layout_symbol[\"icon-size\"]),\"icon-text-fit\":new Le(de.layout_symbol[\"icon-text-fit\"]),\"icon-text-fit-padding\":new Le(de.layout_symbol[\"icon-text-fit-padding\"]),\"icon-image\":new Ue(de.layout_symbol[\"icon-image\"]),\"icon-rotate\":new Ue(de.layout_symbol[\"icon-rotate\"]),\"icon-padding\":new Ue(de.layout_symbol[\"icon-padding\"]),\"icon-keep-upright\":new Le(de.layout_symbol[\"icon-keep-upright\"]),\"icon-offset\":new Ue(de.layout_symbol[\"icon-offset\"]),\"icon-anchor\":new Ue(de.layout_symbol[\"icon-anchor\"]),\"icon-pitch-alignment\":new Le(de.layout_symbol[\"icon-pitch-alignment\"]),\"text-pitch-alignment\":new Le(de.layout_symbol[\"text-pitch-alignment\"]),\"text-rotation-alignment\":new Le(de.layout_symbol[\"text-rotation-alignment\"]),\"text-field\":new Ue(de.layout_symbol[\"text-field\"]),\"text-font\":new Ue(de.layout_symbol[\"text-font\"]),\"text-size\":new Ue(de.layout_symbol[\"text-size\"]),\"text-max-width\":new Ue(de.layout_symbol[\"text-max-width\"]),\"text-line-height\":new Le(de.layout_symbol[\"text-line-height\"]),\"text-letter-spacing\":new Ue(de.layout_symbol[\"text-letter-spacing\"]),\"text-justify\":new Ue(de.layout_symbol[\"text-justify\"]),\"text-radial-offset\":new Ue(de.layout_symbol[\"text-radial-offset\"]),\"text-variable-anchor\":new Le(de.layout_symbol[\"text-variable-anchor\"]),\"text-variable-anchor-offset\":new Ue(de.layout_symbol[\"text-variable-anchor-offset\"]),\"text-anchor\":new Ue(de.layout_symbol[\"text-anchor\"]),\"text-max-angle\":new Le(de.layout_symbol[\"text-max-angle\"]),\"text-writing-mode\":new Le(de.layout_symbol[\"text-writing-mode\"]),\"text-rotate\":new Ue(de.layout_symbol[\"text-rotate\"]),\"text-padding\":new Le(de.layout_symbol[\"text-padding\"]),\"text-keep-upright\":new Le(de.layout_symbol[\"text-keep-upright\"]),\"text-transform\":new Ue(de.layout_symbol[\"text-transform\"]),\"text-offset\":new Ue(de.layout_symbol[\"text-offset\"]),\"text-allow-overlap\":new Le(de.layout_symbol[\"text-allow-overlap\"]),\"text-overlap\":new Le(de.layout_symbol[\"text-overlap\"]),\"text-ignore-placement\":new Le(de.layout_symbol[\"text-ignore-placement\"]),\"text-optional\":new Le(de.layout_symbol[\"text-optional\"])})}};class Xp{constructor(e){if(e.property.overrides===void 0)throw new Error(\"overrides must be provided to instantiate FormatSectionOverride class\");this.type=e.property.overrides?e.property.overrides.runtimeType:Hr,this.defaultValue=e}evaluate(e){if(e.formattedSection){let i=this.defaultValue.property.overrides;if(i?.hasOverride(e.formattedSection))return i.getOverride(e.formattedSection)}return e.feature&&e.featureState?this.defaultValue.evaluate(e.feature,e.featureState):this.defaultValue.property.specification.default}eachChild(e){this.defaultValue.isConstant()||e(this.defaultValue.value._styleExpression.expression)}outputDefined(){return!1}serialize(){return null}}ze(\"FormatSectionOverride\",Xp,{omit:[\"defaultValue\"]});class ku extends nr{constructor(e,i){super(e,id,i)}recalculate(e,i){if(super.recalculate(e,i),this.layout.get(\"icon-rotation-alignment\")===\"auto\"&&(this.layout._values[\"icon-rotation-alignment\"]=this.layout.get(\"symbol-placement\")!==\"point\"?\"map\":\"viewport\"),this.layout.get(\"text-rotation-alignment\")===\"auto\"&&(this.layout._values[\"text-rotation-alignment\"]=this.layout.get(\"symbol-placement\")!==\"point\"?\"map\":\"viewport\"),this.layout.get(\"text-pitch-alignment\")===\"auto\"&&(this.layout._values[\"text-pitch-alignment\"]=this.layout.get(\"text-rotation-alignment\")===\"map\"?\"map\":\"viewport\"),this.layout.get(\"icon-pitch-alignment\")===\"auto\"&&(this.layout._values[\"icon-pitch-alignment\"]=this.layout.get(\"icon-rotation-alignment\")),this.layout.get(\"symbol-placement\")===\"point\"){let o=this.layout.get(\"text-writing-mode\");if(o){let a=[];for(let l of o)a.includes(l)||a.push(l);this.layout._values[\"text-writing-mode\"]=a}else this.layout._values[\"text-writing-mode\"]=[\"horizontal\"]}this._setPaintOverrides()}getValueAndResolveTokens(e,i,o,a){let l=this.layout.get(e).evaluate(i,{},o,a),u=this._unevaluatedLayout._values[e];return u.isDataDriven()||$a(u.value)||!l?l:(function(p,g){return g.replace(/{([^{}]+)}/g,((m,v)=>p&&v in p?String(p[v]):\"\"))})(i.properties,l)}createBucket(e){return new Ts(e)}queryRadius(){return 0}queryIntersectsFeature(){throw new Error(\"Should take a different path in FeatureIndex\")}_setPaintOverrides(){for(let e of id.paint.overridableProperties){if(!ku.hasPaintOverride(this.layout,e))continue;let i=this.paint.get(e),o=new Xp(i),a=new qo(o,i.property.specification),l=null;l=i.value.kind===\"constant\"||i.value.kind===\"source\"?new Za(\"source\",a):new Wa(\"composite\",a,i.value.zoomStops),this.paint._values[e]=new yr(i.property,l,i.parameters)}}_handleOverridablePaintPropertyUpdate(e,i,o){return!(!this.layout||i.isDataDriven()||o.isDataDriven())&&ku.hasPaintOverride(this.layout,e)}static hasPaintOverride(e,i){let o=e.get(\"text-field\"),a=id.paint.properties[i],l=!1,u=p=>{var g;for(let m of p)if(!((g=a.overrides)===null||g===void 0)&&g.hasOverride(m))return void(l=!0)};if(o.value.kind===\"constant\"&&o.value.value instanceof Vi)u(o.value.value.sections);else if(o.value.kind===\"source\"||o.value.kind===\"composite\"){let p=m=>{l||(m instanceof br&&qt(m.value)===Io?u(m.value.sections):m instanceof wn?u(m.sections):m.eachChild(p))},g=o.value;g._styleExpression&&p(g._styleExpression.expression)}return l}}let Yp;var x0={get paint(){return Yp=Yp||new Ii({\"background-color\":new Le(de.paint_background[\"background-color\"]),\"background-pattern\":new pu(de.paint_background[\"background-pattern\"]),\"background-opacity\":new Le(de.paint_background[\"background-opacity\"])})}};class b0 extends nr{constructor(e,i){super(e,x0,i)}}class w0 extends nr{constructor(e,i){super(e,{},i),this.onAdd=o=>{this.implementation.onAdd&&this.implementation.onAdd(o,o.painter.context.gl)},this.onRemove=o=>{this.implementation.onRemove&&this.implementation.onRemove(o,o.painter.context.gl)},this.implementation=e}is3D(){return this.implementation.renderingMode===\"3d\"}hasOffscreenPass(){return this.implementation.prerender!==void 0}recalculate(){}updateTransitions(){}hasTransition(){return!1}serialize(){throw new Error(\"Custom layers cannot be serialized\")}}class T0{constructor(e){this._methodToThrottle=e,this._triggered=!1,this._channel=new MessageChannel,this._channel.port2.onmessage=()=>{this._triggered=!1,this._methodToThrottle()}}trigger(){var e;this._triggered||(this._triggered=!0,(e=this._channel)===null||e===void 0||e.port1.postMessage(!0))}remove(){delete this._channel,this._methodToThrottle=()=>{}}}let S0={once:!0},rd=63710088e-1;class _o{constructor(e,i){if(isNaN(e)||isNaN(i))throw new Error(`Invalid LngLat object: (${e}, ${i})`);if(this.lng=+e,this.lat=+i,this.lat>90||this.lat<-90)throw new Error(\"Invalid LngLat latitude value: must be between -90 and 90\")}wrap(){return new _o($r(this.lng,-180,180),this.lat)}toArray(){return[this.lng,this.lat]}toString(){return`LngLat(${this.lng}, ${this.lat})`}distanceTo(e){let i=Math.PI/180,o=this.lat*i,a=e.lat*i,l=Math.sin(o)*Math.sin(a)+Math.cos(o)*Math.cos(a)*Math.cos((e.lng-this.lng)*i);return rd*Math.acos(Math.min(l,1))}static convert(e){if(e instanceof _o)return e;if(Array.isArray(e)&&(e.length===2||e.length===3))return new _o(Number(e[0]),Number(e[1]));if(!Array.isArray(e)&&typeof e==\"object\"&&e!==null)return new _o(Number(\"lng\"in e?e.lng:e.lon),Number(e.lat));throw new Error(\"`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]\")}}let Kp=2*Math.PI*rd;function Jp(r){return Kp*Math.cos(r*Math.PI/180)}function Qp(r){return(180+r)/360}function ef(r){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+r*Math.PI/360)))/360}function tf(r,e){return r/Jp(e)}function rf(r){return 360*r-180}function Ru(r){return 360/Math.PI*Math.atan(Math.exp((180-360*r)*Math.PI/180))-90}function nf(r,e){return r*Jp(Ru(e))}class nc{constructor(e,i,o=0){this.x=+e,this.y=+i,this.z=+o}static fromLngLat(e,i=0){let o=_o.convert(e);return new nc(Qp(o.lng),ef(o.lat),tf(i,o.lat))}toLngLat(){return new _o(rf(this.x),Ru(this.y))}toAltitude(){return nf(this.z,this.y)}meterInMercatorCoordinateUnits(){return 1/Kp*(e=Ru(this.y),1/Math.cos(e*Math.PI/180));var e}}function of(r,e,i){var o=2*Math.PI*6378137/256/Math.pow(2,i);return[r*o-2*Math.PI*6378137/2,e*o-2*Math.PI*6378137/2]}class nd{constructor(e,i,o){if(!(function(a,l,u){return!(a<0||a>25||u<0||u>=Math.pow(2,a)||l<0||l>=Math.pow(2,a))})(e,i,o))throw new Error(`x=${i}, y=${o}, z=${e} outside of bounds. 0<=x<${Math.pow(2,e)}, 0<=y<${Math.pow(2,e)} 0<=z<=25 `);this.z=e,this.x=i,this.y=o,this.key=Ss(0,e,e,i,o)}equals(e){return this.z===e.z&&this.x===e.x&&this.y===e.y}url(e,i,o){let a=(u=this.y,p=this.z,g=of(256*(l=this.x),256*(u=Math.pow(2,p)-u-1),p),m=of(256*(l+1),256*(u+1),p),g[0]+\",\"+g[1]+\",\"+m[0]+\",\"+m[1]);var l,u,p,g,m;let v=(function(_,T,b){let P=\"\";for(let C=_;C>0;C--){let A=1<1?\"@2x\":\"\").replace(/{quadkey}/g,v).replace(/{bbox-epsg-3857}/g,a)}isChildOf(e){let i=this.z-e.z;return i>0&&e.x===this.x>>i&&e.y===this.y>>i}getTilePoint(e){let i=Math.pow(2,this.z);return new pe((e.x*i-this.x)*qe,(e.y*i-this.y)*qe)}toString(){return`${this.z}/${this.x}/${this.y}`}}class af{constructor(e,i){this.wrap=e,this.canonical=i,this.key=Ss(e,i.z,i.z,i.x,i.y)}}class ar{constructor(e,i,o,a,l){if(this.terrainRttPosMatrix32f=null,e= z; overscaledZ = ${e}; z = ${o}`);this.overscaledZ=e,this.wrap=i,this.canonical=new nd(o,+a,+l),this.key=Ss(i,e,o,a,l)}clone(){return new ar(this.overscaledZ,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)}equals(e){return this.overscaledZ===e.overscaledZ&&this.wrap===e.wrap&&this.canonical.equals(e.canonical)}scaledTo(e){if(e>this.overscaledZ)throw new Error(`targetZ > this.overscaledZ; targetZ = ${e}; overscaledZ = ${this.overscaledZ}`);let i=this.canonical.z-e;return e>this.canonical.z?new ar(e,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new ar(e,this.wrap,e,this.canonical.x>>i,this.canonical.y>>i)}isOverscaled(){return this.overscaledZ>this.canonical.z}calculateScaledKey(e,i){if(e>this.overscaledZ)throw new Error(`targetZ > this.overscaledZ; targetZ = ${e}; overscaledZ = ${this.overscaledZ}`);let o=this.canonical.z-e;return e>this.canonical.z?Ss(this.wrap*+i,e,this.canonical.z,this.canonical.x,this.canonical.y):Ss(this.wrap*+i,e,e,this.canonical.x>>o,this.canonical.y>>o)}isChildOf(e){if(e.wrap!==this.wrap||this.overscaledZ-e.overscaledZ<=0)return!1;if(e.overscaledZ===0)return this.overscaledZ>0;let i=this.canonical.z-e.canonical.z;return!(i<0)&&e.canonical.x===this.canonical.x>>i&&e.canonical.y===this.canonical.y>>i}children(e){if(this.overscaledZ>=e)return[new ar(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];let i=this.canonical.z+1,o=2*this.canonical.x,a=2*this.canonical.y;return[new ar(i,this.wrap,i,o,a),new ar(i,this.wrap,i,o+1,a),new ar(i,this.wrap,i,o,a+1),new ar(i,this.wrap,i,o+1,a+1)]}isLessThan(e){return this.wrape.wrap)&&(this.overscaledZe.overscaledZ)&&(this.canonical.xe.canonical.x)&&this.canonical.y=0&&e=0&&i=m)return null;let _=this.canonical.x+a,T=this.wrap;return _<0?(T-=Math.ceil(-_/m),_=(_%m+m)%m):_>=m&&(T+=Math.floor(_/m),_%=m),{tileID:new ar(this.overscaledZ,T,g,_,v),x:u,y:p}}}function Ss(r,e,i,o,a){(r*=2)<0&&(r=-1*r-1);let l=1<this.maxX||this.minY>this.maxY)&&(this.minX=1/0,this.maxX=-1/0,this.minY=1/0,this.maxY=-1/0),this}shrinkBy(e){return this.expandBy(-e)}map(e){let i=new da;return i.extend(e(new pe(this.minX,this.minY))),i.extend(e(new pe(this.maxX,this.minY))),i.extend(e(new pe(this.minX,this.maxY))),i.extend(e(new pe(this.maxX,this.maxY))),i}static fromPoints(e){let i=new da;for(let o of e)i.extend(o);return i}contains(e){return e.x>=this.minX&&e.x<=this.maxX&&e.y>=this.minY&&e.y<=this.maxY}empty(){return this.minX>this.maxX}width(){return this.maxX-this.minX}height(){return this.maxY-this.minY}covers(e){return!this.empty()&&!e.empty()&&e.minX>=this.minX&&e.maxX<=this.maxX&&e.minY>=this.minY&&e.maxY<=this.maxY}intersects(e){return!this.empty()&&!e.empty()&&e.minX<=this.maxX&&e.maxX>=this.minX&&e.minY<=this.maxY&&e.maxY>=this.minY}}class sf{constructor(e){this._stringToNumber={},this._numberToString=[];for(let i=0;i=this._numberToString.length)throw new Error(`Out of bounds. Index requested n=${e} can't be >= this._numberToString.length ${this._numberToString.length}`);return this._numberToString[e]}}class lf{constructor(e,i,o,a,l){this.type=\"Feature\",this._vectorTileFeature=e,this._x=o,this._y=a,this._z=i,this.properties=e.properties,this.id=l}projectPoint(e,i,o,a){return[360*(e.x+i)/a-180,360/Math.PI*Math.atan(Math.exp((1-2*(e.y+o)/a)*Math.PI))-90]}projectLine(e,i,o,a){return e.map((l=>this.projectPoint(l,i,o,a)))}get geometry(){if(this._geometry)return this._geometry;let e=this._vectorTileFeature,i=e.extent*Math.pow(2,this._z),o=e.extent*this._x,a=e.extent*this._y,l=e.loadGeometry();switch(e.type){case 1:{let u=[];for(let g of l)u.push(g[0]);let p=this.projectLine(u,o,a,i);this._geometry=u.length===1?{type:\"Point\",coordinates:p[0]}:{type:\"MultiPoint\",coordinates:p};break}case 2:{let u=l.map((p=>this.projectLine(p,o,a,i)));this._geometry=u.length===1?{type:\"LineString\",coordinates:u[0]}:{type:\"MultiLineString\",coordinates:u};break}case 3:{let u=up(l),p=[];for(let g of u)p.push(g.map((m=>this.projectLine(m,o,a,i))));this._geometry=p.length===1?{type:\"Polygon\",coordinates:p[0]}:{type:\"MultiPolygon\",coordinates:p};break}default:throw new Error(`unknown feature type: ${e.type}`)}return this._geometry}set geometry(e){this._geometry=e}toJSON(){let e={geometry:this.geometry};for(let i in this)i!==\"_geometry\"&&i!==\"_vectorTileFeature\"&&i!==\"_x\"&&i!==\"_y\"&&i!==\"_z\"&&(e[i]=this[i]);return e}}class Ms{constructor(e,i,o){this._name=e,this.dataBuffer=i,typeof o==\"number\"?this._size=o:(this.nullabilityBuffer=o,this._size=o.size())}getValue(e){return this.nullabilityBuffer&&!this.nullabilityBuffer.get(e)?null:this.getValueFromBuffer(e)}has(e){return this.nullabilityBuffer?.get(e)||!this.nullabilityBuffer}get name(){return this._name}get size(){return this._size}}class Lu extends Ms{}class od extends Lu{getValueFromBuffer(e){return this.dataBuffer[e]}}class ad extends Lu{getValueFromBuffer(e){return this.dataBuffer[e]}}class cf extends Ms{constructor(e,i,o,a){super(e,i,a),this.delta=o}}class sd extends cf{constructor(e,i,o,a){super(e,Int32Array.of(i),o,a)}getValueFromBuffer(e){return this.dataBuffer[0]+e*this.delta}}class ld extends Ms{constructor(e,i,o,a){super(e,a?Int32Array.of(i):Uint32Array.of(i),o)}getValueFromBuffer(e){return this.dataBuffer[0]}}class M0{constructor(e,i,o,a,l=4096){this._name=e,this._geometryVector=i,this._idVector=o,this._propertyVectors=a,this._extent=l}get name(){return this._name}get idVector(){return this._idVector}get geometryVector(){return this._geometryVector}get propertyVectors(){return this._propertyVectors}getPropertyVector(e){return this.propertyVectorsMap||(this.propertyVectorsMap=new Map(this._propertyVectors.map((i=>[i.name,i])))),this.propertyVectorsMap.get(e)}get numFeatures(){return this.geometryVector.numGeometries}get extent(){return this._extent}getFeatures(){let e=[],i=this.geometryVector.getGeometries();for(let o=0;o>>32-r;let ud=cd,Bn=256;function hd(r,e){return r-r%e}function P0(r){let e=r>>>0;return((255&e)<<24|(65280&e)<<8|e>>>8&65280|e>>>24&255)>>>0}let dd=(function(){if(!Number.isFinite(65536))return 65536;let r=hd(Math.floor(65536),Bn);return r===0?Bn:r})(),C0=3*dd/Bn+dd|0;function hf(){let r=new Uint8Array(C0);return{dataToBePacked:new Array(33),dataPointers:new Int32Array(33),byteContainer:r,byteContainerI32:new Int32Array(r.buffer,r.byteOffset,r.byteLength>>>2),exceptionSizes:new Int32Array(33)}}function E0(r,e,i,o,a){switch(a){case 1:(function(l,u,p,g){let m=g,v=u;for(let _=0;_<8;_++){let T=l[v++]>>>0;p[m++]=T>>>0&1,p[m++]=T>>>1&1,p[m++]=T>>>2&1,p[m++]=T>>>3&1,p[m++]=T>>>4&1,p[m++]=T>>>5&1,p[m++]=T>>>6&1,p[m++]=T>>>7&1,p[m++]=T>>>8&1,p[m++]=T>>>9&1,p[m++]=T>>>10&1,p[m++]=T>>>11&1,p[m++]=T>>>12&1,p[m++]=T>>>13&1,p[m++]=T>>>14&1,p[m++]=T>>>15&1,p[m++]=T>>>16&1,p[m++]=T>>>17&1,p[m++]=T>>>18&1,p[m++]=T>>>19&1,p[m++]=T>>>20&1,p[m++]=T>>>21&1,p[m++]=T>>>22&1,p[m++]=T>>>23&1,p[m++]=T>>>24&1,p[m++]=T>>>25&1,p[m++]=T>>>26&1,p[m++]=T>>>27&1,p[m++]=T>>>28&1,p[m++]=T>>>29&1,p[m++]=T>>>30&1,p[m++]=T>>>31&1}})(r,e,i,o);break;case 2:(function(l,u,p,g){let m=g,v=u;for(let _=0;_<8;_++){let T=l[v++]>>>0,b=l[v++]>>>0;p[m++]=T>>>0&3,p[m++]=T>>>2&3,p[m++]=T>>>4&3,p[m++]=T>>>6&3,p[m++]=T>>>8&3,p[m++]=T>>>10&3,p[m++]=T>>>12&3,p[m++]=T>>>14&3,p[m++]=T>>>16&3,p[m++]=T>>>18&3,p[m++]=T>>>20&3,p[m++]=T>>>22&3,p[m++]=T>>>24&3,p[m++]=T>>>26&3,p[m++]=T>>>28&3,p[m++]=T>>>30&3,p[m++]=b>>>0&3,p[m++]=b>>>2&3,p[m++]=b>>>4&3,p[m++]=b>>>6&3,p[m++]=b>>>8&3,p[m++]=b>>>10&3,p[m++]=b>>>12&3,p[m++]=b>>>14&3,p[m++]=b>>>16&3,p[m++]=b>>>18&3,p[m++]=b>>>20&3,p[m++]=b>>>22&3,p[m++]=b>>>24&3,p[m++]=b>>>26&3,p[m++]=b>>>28&3,p[m++]=b>>>30&3}})(r,e,i,o);break;case 3:(function(l,u,p,g){let m=g,v=u;for(let _=0;_<8;_++){let T=l[v++]>>>0,b=l[v++]>>>0,P=l[v++]>>>0;p[m++]=T>>>0&7,p[m++]=T>>>3&7,p[m++]=T>>>6&7,p[m++]=T>>>9&7,p[m++]=T>>>12&7,p[m++]=T>>>15&7,p[m++]=T>>>18&7,p[m++]=T>>>21&7,p[m++]=T>>>24&7,p[m++]=T>>>27&7,p[m++]=7&(T>>>30|(1&b)<<2),p[m++]=b>>>1&7,p[m++]=b>>>4&7,p[m++]=b>>>7&7,p[m++]=b>>>10&7,p[m++]=b>>>13&7,p[m++]=b>>>16&7,p[m++]=b>>>19&7,p[m++]=b>>>22&7,p[m++]=b>>>25&7,p[m++]=b>>>28&7,p[m++]=7&(b>>>31|(3&P)<<1),p[m++]=P>>>2&7,p[m++]=P>>>5&7,p[m++]=P>>>8&7,p[m++]=P>>>11&7,p[m++]=P>>>14&7,p[m++]=P>>>17&7,p[m++]=P>>>20&7,p[m++]=P>>>23&7,p[m++]=P>>>26&7,p[m++]=P>>>29&7}})(r,e,i,o);break;case 4:(function(l,u,p,g){let m=g,v=u;for(let _=0;_<8;_++){let T=l[v++]>>>0,b=l[v++]>>>0,P=l[v++]>>>0,C=l[v++]>>>0;p[m++]=T>>>0&15,p[m++]=T>>>4&15,p[m++]=T>>>8&15,p[m++]=T>>>12&15,p[m++]=T>>>16&15,p[m++]=T>>>20&15,p[m++]=T>>>24&15,p[m++]=T>>>28&15,p[m++]=b>>>0&15,p[m++]=b>>>4&15,p[m++]=b>>>8&15,p[m++]=b>>>12&15,p[m++]=b>>>16&15,p[m++]=b>>>20&15,p[m++]=b>>>24&15,p[m++]=b>>>28&15,p[m++]=P>>>0&15,p[m++]=P>>>4&15,p[m++]=P>>>8&15,p[m++]=P>>>12&15,p[m++]=P>>>16&15,p[m++]=P>>>20&15,p[m++]=P>>>24&15,p[m++]=P>>>28&15,p[m++]=C>>>0&15,p[m++]=C>>>4&15,p[m++]=C>>>8&15,p[m++]=C>>>12&15,p[m++]=C>>>16&15,p[m++]=C>>>20&15,p[m++]=C>>>24&15,p[m++]=C>>>28&15}})(r,e,i,o);break;case 5:(function(l,u,p,g){let m=g,v=u;for(let _=0;_<8;_++){let T=l[v++]>>>0,b=l[v++]>>>0,P=l[v++]>>>0,C=l[v++]>>>0,A=l[v++]>>>0;p[m++]=T>>>0&31,p[m++]=T>>>5&31,p[m++]=T>>>10&31,p[m++]=T>>>15&31,p[m++]=T>>>20&31,p[m++]=T>>>25&31,p[m++]=31&(T>>>30|(7&b)<<2),p[m++]=b>>>3&31,p[m++]=b>>>8&31,p[m++]=b>>>13&31,p[m++]=b>>>18&31,p[m++]=b>>>23&31,p[m++]=31&(b>>>28|(1&P)<<4),p[m++]=P>>>1&31,p[m++]=P>>>6&31,p[m++]=P>>>11&31,p[m++]=P>>>16&31,p[m++]=P>>>21&31,p[m++]=P>>>26&31,p[m++]=31&(P>>>31|(15&C)<<1),p[m++]=C>>>4&31,p[m++]=C>>>9&31,p[m++]=C>>>14&31,p[m++]=C>>>19&31,p[m++]=C>>>24&31,p[m++]=31&(C>>>29|(3&A)<<3),p[m++]=A>>>2&31,p[m++]=A>>>7&31,p[m++]=A>>>12&31,p[m++]=A>>>17&31,p[m++]=A>>>22&31,p[m++]=A>>>27&31}})(r,e,i,o);break;case 6:(function(l,u,p,g){let m=g,v=u;for(let _=0;_<8;_++){let T=l[v++]>>>0,b=l[v++]>>>0,P=l[v++]>>>0,C=l[v++]>>>0,A=l[v++]>>>0,z=l[v++]>>>0;p[m++]=T>>>0&63,p[m++]=T>>>6&63,p[m++]=T>>>12&63,p[m++]=T>>>18&63,p[m++]=T>>>24&63,p[m++]=63&(T>>>30|(15&b)<<2),p[m++]=b>>>4&63,p[m++]=b>>>10&63,p[m++]=b>>>16&63,p[m++]=b>>>22&63,p[m++]=63&(b>>>28|(3&P)<<4),p[m++]=P>>>2&63,p[m++]=P>>>8&63,p[m++]=P>>>14&63,p[m++]=P>>>20&63,p[m++]=P>>>26&63,p[m++]=C>>>0&63,p[m++]=C>>>6&63,p[m++]=C>>>12&63,p[m++]=C>>>18&63,p[m++]=C>>>24&63,p[m++]=63&(C>>>30|(15&A)<<2),p[m++]=A>>>4&63,p[m++]=A>>>10&63,p[m++]=A>>>16&63,p[m++]=A>>>22&63,p[m++]=63&(A>>>28|(3&z)<<4),p[m++]=z>>>2&63,p[m++]=z>>>8&63,p[m++]=z>>>14&63,p[m++]=z>>>20&63,p[m++]=z>>>26&63}})(r,e,i,o);break;case 7:(function(l,u,p,g){let m=g,v=u;for(let _=0;_<8;_++){let T=l[v++]>>>0,b=l[v++]>>>0,P=l[v++]>>>0,C=l[v++]>>>0,A=l[v++]>>>0,z=l[v++]>>>0,L=l[v++]>>>0;p[m++]=T>>>0&127,p[m++]=T>>>7&127,p[m++]=T>>>14&127,p[m++]=T>>>21&127,p[m++]=127&(T>>>28|(7&b)<<4),p[m++]=b>>>3&127,p[m++]=b>>>10&127,p[m++]=b>>>17&127,p[m++]=b>>>24&127,p[m++]=127&(b>>>31|(63&P)<<1),p[m++]=P>>>6&127,p[m++]=P>>>13&127,p[m++]=P>>>20&127,p[m++]=127&(P>>>27|(3&C)<<5),p[m++]=C>>>2&127,p[m++]=C>>>9&127,p[m++]=C>>>16&127,p[m++]=C>>>23&127,p[m++]=127&(C>>>30|(31&A)<<2),p[m++]=A>>>5&127,p[m++]=A>>>12&127,p[m++]=A>>>19&127,p[m++]=127&(A>>>26|(1&z)<<6),p[m++]=z>>>1&127,p[m++]=z>>>8&127,p[m++]=z>>>15&127,p[m++]=z>>>22&127,p[m++]=127&(z>>>29|(15&L)<<3),p[m++]=L>>>4&127,p[m++]=L>>>11&127,p[m++]=L>>>18&127,p[m++]=L>>>25&127}})(r,e,i,o);break;case 8:(function(l,u,p,g){let m=g,v=u;for(let _=0;_<8;_++){let T=l[v++]>>>0,b=l[v++]>>>0,P=l[v++]>>>0,C=l[v++]>>>0,A=l[v++]>>>0,z=l[v++]>>>0,L=l[v++]>>>0,R=l[v++]>>>0;p[m++]=T>>>0&255,p[m++]=T>>>8&255,p[m++]=T>>>16&255,p[m++]=T>>>24&255,p[m++]=b>>>0&255,p[m++]=b>>>8&255,p[m++]=b>>>16&255,p[m++]=b>>>24&255,p[m++]=P>>>0&255,p[m++]=P>>>8&255,p[m++]=P>>>16&255,p[m++]=P>>>24&255,p[m++]=C>>>0&255,p[m++]=C>>>8&255,p[m++]=C>>>16&255,p[m++]=C>>>24&255,p[m++]=A>>>0&255,p[m++]=A>>>8&255,p[m++]=A>>>16&255,p[m++]=A>>>24&255,p[m++]=z>>>0&255,p[m++]=z>>>8&255,p[m++]=z>>>16&255,p[m++]=z>>>24&255,p[m++]=L>>>0&255,p[m++]=L>>>8&255,p[m++]=L>>>16&255,p[m++]=L>>>24&255,p[m++]=R>>>0&255,p[m++]=R>>>8&255,p[m++]=R>>>16&255,p[m++]=R>>>24&255}})(r,e,i,o);break;case 16:(function(l,u,p,g){let m=g,v=u;for(let _=0;_<128;_++){let T=l[v++]>>>0;p[m++]=65535&T,p[m++]=T>>>16&65535}})(r,e,i,o);break;default:(function(l,u,p,g,m){let v=ud[m]>>>0,_=u,T=0,b=l[_]>>>0,P=g;for(let C=0;C<8;C++){for(let A=0;A<32;A++)if(T+m<=32)p[P+A]=b>>>T&v,T+=m,T===32&&(T=0,_++,A!==31&&(b=l[_]>>>0));else{let z=32-T,L=b>>>T;_++,b=l[_]>>>0;let R=m-z;p[P+A]=(L|(b&-1>>>32-R>>>0)<>>0)}})(r,e,i,o,a)}return e+(a<<3)|0}function I0(r,e,i,o){if(i+2>e)throw new Error(`FastPFOR decode: byteContainer underflow at block=${o} (need 2 bytes for [bitWidth, exceptionCount], bytePos=${i}, byteSize=${e})`);let a=r[i++],l=r[i++];if(a>32)throw new Error(`FastPFOR decode: invalid bitWidth=${a} at block=${o} (expected 0..32). This likely indicates corrupted or truncated input.`);return{bitWidth:a,exceptionCount:l,bytePosIn:i}}function A0(r,e,i,o,a,l,u,p,g){let{maxBits:m,exceptionBitWidth:v,bytePosIn:_}=(function(A,z,L,R,F,O){if(L+1>z)throw new Error(`FastPFOR decode: exception header underflow at block=${O} (need 1 byte for maxBits, bytePos=${L}, byteSize=${z})`);let j=A[L++];if(j32)throw new Error(`FastPFOR decode: invalid maxBits=${j} at block=${O} (bitWidth=${R}, expected ${R}..32)`);let Y=j-R|0;if(Y<1||Y>32)throw new Error(`FastPFOR decode: invalid exceptionBitWidth=${Y} at block=${O} (bitWidth=${R}, maxBits=${j})`);if(L+F>z)throw new Error(`FastPFOR decode: exception positions underflow at block=${O} (need=${F}, have=${z-L})`);return{maxBits:j,exceptionBitWidth:Y,bytePosIn:L}})(a,l,u,i,o,g);if(u=_,v===1){let A=1<C)throw new Error(`FastPFOR decode: exception stream overflow for exceptionBitWidth=${v} (ptr=${P}, need ${o}, size=${C}) at block ${g}`);for(let A=0;Ar.length-1)throw new Error(`FastPFOR decode: invalid whereMeta=${p} at pageStart=${u} (expected > 0 and pageStart+whereMeta < encoded.length=${r.length})`);let g=u+1|0,m=u+p|0,v=r[m]>>>0,_=v+3>>>2,T=m+1,b=T+_;if(b>=r.length)throw new Error(`FastPFOR decode: invalid byteSize=${v} (metaInts=${_}, pageStart=${u}, packedEnd=${m}, byteContainerStart=${T}) causes bitmapPos=${b} out of bounds (encoded.length=${r.length})`);let P=(function(z,L,R,F){F.byteContainer.length>>2;if(3&O.byteOffset)for(let Q=0;Q>>8&255,O[ie+2|0]=oe>>>16&255,O[ie+3|0]=oe>>>24&255}else{let Q=F.byteContainerI32;(!Q||Q.buffer!==O.buffer||Q.byteOffset!==O.byteOffset||Q.length>>2)),Q.set(z.subarray(L,L+j))}let Y=3&R;if(Y>0){let Q=0|z[L+j|0],oe=j<<2;for(let ie=0;ie>>(ie<<3)&255}return O})(r,T,v,l),C=v,A=(function(z,L,R){let F=0|z[L++],O=R.dataToBePacked;for(let j=2;j<=32;j=j+1|0){if(!(F>>>j-1&1))continue;if(L>=z.length)throw new Error(`FastPFOR decode: truncated exception stream header (bitWidth=${j}, streamWordIndex=${L}, needWords=1, availableWords=${z.length-L}, encodedWords=${z.length})`);let Y=z[L++]>>>0,Q=hd(Y+31,32),oe=Y*j+31>>>5;if(L+oe>z.length)throw new Error(`FastPFOR decode: truncated exception stream (bitWidth=${j}, size=${Y}, streamWordIndex=${L}, needWords=${oe}, availableWords=${z.length-L}, encodedWords=${z.length})`);let ie=O[j];(!ie||ie.length>>5)|0,R.exceptionSizes[j]=Y}return L})(r,b,l);return l.dataPointers.fill(0),(function(z,L,R,F,O,j,Y,Q,oe,ie){let ue=0|R,he=0;for(let ae=0;ae0&&(he=A0(O,Pe,be,Ee,Q,oe,he,ie,ae))}if(ue!==F)throw new Error(`FastPFOR decode: packed region mismatch (pageStart=${L}, packedStart=${R}, consumedPackedEnd=${ue}, expectedPackedEnd=${F}, packedWords=${F-R}, encoded.length=${z.length})`)})(r,u,g,m,e,0|o,a/Bn|0,P,C,l),A}function D0(r,e,i,o,a){switch(a){case 2:return void(function(m,v,_,T){let b=T,P=m[v]>>>0,C=m[v+1]>>>0;_[b++]=P>>>0&3,_[b++]=P>>>2&3,_[b++]=P>>>4&3,_[b++]=P>>>6&3,_[b++]=P>>>8&3,_[b++]=P>>>10&3,_[b++]=P>>>12&3,_[b++]=P>>>14&3,_[b++]=P>>>16&3,_[b++]=P>>>18&3,_[b++]=P>>>20&3,_[b++]=P>>>22&3,_[b++]=P>>>24&3,_[b++]=P>>>26&3,_[b++]=P>>>28&3,_[b++]=P>>>30&3,_[b++]=C>>>0&3,_[b++]=C>>>2&3,_[b++]=C>>>4&3,_[b++]=C>>>6&3,_[b++]=C>>>8&3,_[b++]=C>>>10&3,_[b++]=C>>>12&3,_[b++]=C>>>14&3,_[b++]=C>>>16&3,_[b++]=C>>>18&3,_[b++]=C>>>20&3,_[b++]=C>>>22&3,_[b++]=C>>>24&3,_[b++]=C>>>26&3,_[b++]=C>>>28&3,_[b]=C>>>30&3})(r,e,i,o);case 3:return void(function(m,v,_,T){let b=T,P=m[v]>>>0,C=m[v+1]>>>0,A=m[v+2]>>>0;_[b++]=P>>>0&7,_[b++]=P>>>3&7,_[b++]=P>>>6&7,_[b++]=P>>>9&7,_[b++]=P>>>12&7,_[b++]=P>>>15&7,_[b++]=P>>>18&7,_[b++]=P>>>21&7,_[b++]=P>>>24&7,_[b++]=P>>>27&7,_[b++]=7&(P>>>30|(1&C)<<2),_[b++]=C>>>1&7,_[b++]=C>>>4&7,_[b++]=C>>>7&7,_[b++]=C>>>10&7,_[b++]=C>>>13&7,_[b++]=C>>>16&7,_[b++]=C>>>19&7,_[b++]=C>>>22&7,_[b++]=C>>>25&7,_[b++]=C>>>28&7,_[b++]=7&(C>>>31|(3&A)<<1),_[b++]=A>>>2&7,_[b++]=A>>>5&7,_[b++]=A>>>8&7,_[b++]=A>>>11&7,_[b++]=A>>>14&7,_[b++]=A>>>17&7,_[b++]=A>>>20&7,_[b++]=A>>>23&7,_[b++]=A>>>26&7,_[b]=A>>>29&7})(r,e,i,o);case 4:return void(function(m,v,_,T){let b=T,P=m[v]>>>0,C=m[v+1]>>>0,A=m[v+2]>>>0,z=m[v+3]>>>0;_[b++]=P>>>0&15,_[b++]=P>>>4&15,_[b++]=P>>>8&15,_[b++]=P>>>12&15,_[b++]=P>>>16&15,_[b++]=P>>>20&15,_[b++]=P>>>24&15,_[b++]=P>>>28&15,_[b++]=C>>>0&15,_[b++]=C>>>4&15,_[b++]=C>>>8&15,_[b++]=C>>>12&15,_[b++]=C>>>16&15,_[b++]=C>>>20&15,_[b++]=C>>>24&15,_[b++]=C>>>28&15,_[b++]=A>>>0&15,_[b++]=A>>>4&15,_[b++]=A>>>8&15,_[b++]=A>>>12&15,_[b++]=A>>>16&15,_[b++]=A>>>20&15,_[b++]=A>>>24&15,_[b++]=A>>>28&15,_[b++]=z>>>0&15,_[b++]=z>>>4&15,_[b++]=z>>>8&15,_[b++]=z>>>12&15,_[b++]=z>>>16&15,_[b++]=z>>>20&15,_[b++]=z>>>24&15,_[b]=z>>>28&15})(r,e,i,o);case 5:return void(function(m,v,_,T){let b=T,P=m[v]>>>0,C=m[v+1]>>>0,A=m[v+2]>>>0,z=m[v+3]>>>0,L=m[v+4]>>>0;_[b++]=P>>>0&31,_[b++]=P>>>5&31,_[b++]=P>>>10&31,_[b++]=P>>>15&31,_[b++]=P>>>20&31,_[b++]=P>>>25&31,_[b++]=31&(P>>>30|(7&C)<<2),_[b++]=C>>>3&31,_[b++]=C>>>8&31,_[b++]=C>>>13&31,_[b++]=C>>>18&31,_[b++]=C>>>23&31,_[b++]=31&(C>>>28|(1&A)<<4),_[b++]=A>>>1&31,_[b++]=A>>>6&31,_[b++]=A>>>11&31,_[b++]=A>>>16&31,_[b++]=A>>>21&31,_[b++]=A>>>26&31,_[b++]=31&(A>>>31|(15&z)<<1),_[b++]=z>>>4&31,_[b++]=z>>>9&31,_[b++]=z>>>14&31,_[b++]=z>>>19&31,_[b++]=z>>>24&31,_[b++]=31&(z>>>29|(3&L)<<3),_[b++]=L>>>2&31,_[b++]=L>>>7&31,_[b++]=L>>>12&31,_[b++]=L>>>17&31,_[b++]=L>>>22&31,_[b]=L>>>27&31})(r,e,i,o);case 6:return void(function(m,v,_,T){let b=T,P=m[v]>>>0,C=m[v+1]>>>0,A=m[v+2]>>>0,z=m[v+3]>>>0,L=m[v+4]>>>0,R=m[v+5]>>>0;_[b++]=P>>>0&63,_[b++]=P>>>6&63,_[b++]=P>>>12&63,_[b++]=P>>>18&63,_[b++]=P>>>24&63,_[b++]=63&(P>>>30|(15&C)<<2),_[b++]=C>>>4&63,_[b++]=C>>>10&63,_[b++]=C>>>16&63,_[b++]=C>>>22&63,_[b++]=63&(C>>>28|(3&A)<<4),_[b++]=A>>>2&63,_[b++]=A>>>8&63,_[b++]=A>>>14&63,_[b++]=A>>>20&63,_[b++]=A>>>26&63,_[b++]=z>>>0&63,_[b++]=z>>>6&63,_[b++]=z>>>12&63,_[b++]=z>>>18&63,_[b++]=z>>>24&63,_[b++]=63&(z>>>30|(15&L)<<2),_[b++]=L>>>4&63,_[b++]=L>>>10&63,_[b++]=L>>>16&63,_[b++]=L>>>22&63,_[b++]=63&(L>>>28|(3&R)<<4),_[b++]=R>>>2&63,_[b++]=R>>>8&63,_[b++]=R>>>14&63,_[b++]=R>>>20&63,_[b]=R>>>26&63})(r,e,i,o);case 7:return void(function(m,v,_,T){let b=T,P=m[v]>>>0,C=m[v+1]>>>0,A=m[v+2]>>>0,z=m[v+3]>>>0,L=m[v+4]>>>0,R=m[v+5]>>>0,F=m[v+6]>>>0;_[b++]=P>>>0&127,_[b++]=P>>>7&127,_[b++]=P>>>14&127,_[b++]=P>>>21&127,_[b++]=127&(P>>>28|(7&C)<<4),_[b++]=C>>>3&127,_[b++]=C>>>10&127,_[b++]=C>>>17&127,_[b++]=C>>>24&127,_[b++]=127&(C>>>31|(63&A)<<1),_[b++]=A>>>6&127,_[b++]=A>>>13&127,_[b++]=A>>>20&127,_[b++]=127&(A>>>27|(3&z)<<5),_[b++]=z>>>2&127,_[b++]=z>>>9&127,_[b++]=z>>>16&127,_[b++]=z>>>23&127,_[b++]=127&(z>>>30|(31&L)<<2),_[b++]=L>>>5&127,_[b++]=L>>>12&127,_[b++]=L>>>19&127,_[b++]=127&(L>>>26|(1&R)<<6),_[b++]=R>>>1&127,_[b++]=R>>>8&127,_[b++]=R>>>15&127,_[b++]=R>>>22&127,_[b++]=127&(R>>>29|(15&F)<<3),_[b++]=F>>>4&127,_[b++]=F>>>11&127,_[b++]=F>>>18&127,_[b]=F>>>25&127})(r,e,i,o);case 8:return void(function(m,v,_,T){let b=T,P=m[v]>>>0,C=m[v+1]>>>0,A=m[v+2]>>>0,z=m[v+3]>>>0,L=m[v+4]>>>0,R=m[v+5]>>>0,F=m[v+6]>>>0,O=m[v+7]>>>0;_[b++]=P>>>0&255,_[b++]=P>>>8&255,_[b++]=P>>>16&255,_[b++]=P>>>24&255,_[b++]=C>>>0&255,_[b++]=C>>>8&255,_[b++]=C>>>16&255,_[b++]=C>>>24&255,_[b++]=A>>>0&255,_[b++]=A>>>8&255,_[b++]=A>>>16&255,_[b++]=A>>>24&255,_[b++]=z>>>0&255,_[b++]=z>>>8&255,_[b++]=z>>>16&255,_[b++]=z>>>24&255,_[b++]=L>>>0&255,_[b++]=L>>>8&255,_[b++]=L>>>16&255,_[b++]=L>>>24&255,_[b++]=R>>>0&255,_[b++]=R>>>8&255,_[b++]=R>>>16&255,_[b++]=R>>>24&255,_[b++]=F>>>0&255,_[b++]=F>>>8&255,_[b++]=F>>>16&255,_[b++]=F>>>24&255,_[b++]=O>>>0&255,_[b++]=O>>>8&255,_[b++]=O>>>16&255,_[b]=O>>>24&255})(r,e,i,o);case 9:return void(function(m,v,_,T){let b=T,P=m[v]>>>0,C=m[v+1]>>>0,A=m[v+2]>>>0,z=m[v+3]>>>0,L=m[v+4]>>>0,R=m[v+5]>>>0,F=m[v+6]>>>0,O=m[v+7]>>>0,j=m[v+8]>>>0;_[b++]=P>>>0&511,_[b++]=P>>>9&511,_[b++]=P>>>18&511,_[b++]=511&(P>>>27|(15&C)<<5),_[b++]=C>>>4&511,_[b++]=C>>>13&511,_[b++]=C>>>22&511,_[b++]=511&(C>>>31|(255&A)<<1),_[b++]=A>>>8&511,_[b++]=A>>>17&511,_[b++]=511&(A>>>26|(7&z)<<6),_[b++]=z>>>3&511,_[b++]=z>>>12&511,_[b++]=z>>>21&511,_[b++]=511&(z>>>30|(127&L)<<2),_[b++]=L>>>7&511,_[b++]=L>>>16&511,_[b++]=511&(L>>>25|(3&R)<<7),_[b++]=R>>>2&511,_[b++]=R>>>11&511,_[b++]=R>>>20&511,_[b++]=511&(R>>>29|(63&F)<<3),_[b++]=F>>>6&511,_[b++]=F>>>15&511,_[b++]=511&(F>>>24|(1&O)<<8),_[b++]=O>>>1&511,_[b++]=O>>>10&511,_[b++]=O>>>19&511,_[b++]=511&(O>>>28|(31&j)<<4),_[b++]=j>>>5&511,_[b++]=j>>>14&511,_[b]=j>>>23&511})(r,e,i,o);case 10:return void(function(m,v,_,T){let b=T,P=m[v]>>>0,C=m[v+1]>>>0,A=m[v+2]>>>0,z=m[v+3]>>>0,L=m[v+4]>>>0,R=m[v+5]>>>0,F=m[v+6]>>>0,O=m[v+7]>>>0,j=m[v+8]>>>0,Y=m[v+9]>>>0;_[b++]=P>>>0&1023,_[b++]=P>>>10&1023,_[b++]=P>>>20&1023,_[b++]=1023&(P>>>30|(255&C)<<2),_[b++]=C>>>8&1023,_[b++]=C>>>18&1023,_[b++]=1023&(C>>>28|(63&A)<<4),_[b++]=A>>>6&1023,_[b++]=A>>>16&1023,_[b++]=1023&(A>>>26|(15&z)<<6),_[b++]=z>>>4&1023,_[b++]=z>>>14&1023,_[b++]=1023&(z>>>24|(3&L)<<8),_[b++]=L>>>2&1023,_[b++]=L>>>12&1023,_[b++]=L>>>22&1023,_[b++]=R>>>0&1023,_[b++]=R>>>10&1023,_[b++]=R>>>20&1023,_[b++]=1023&(R>>>30|(255&F)<<2),_[b++]=F>>>8&1023,_[b++]=F>>>18&1023,_[b++]=1023&(F>>>28|(63&O)<<4),_[b++]=O>>>6&1023,_[b++]=O>>>16&1023,_[b++]=1023&(O>>>26|(15&j)<<6),_[b++]=j>>>4&1023,_[b++]=j>>>14&1023,_[b++]=1023&(j>>>24|(3&Y)<<8),_[b++]=Y>>>2&1023,_[b++]=Y>>>12&1023,_[b]=Y>>>22&1023})(r,e,i,o);case 11:return void(function(m,v,_,T){let b=T,P=m[v]>>>0,C=m[v+1]>>>0,A=m[v+2]>>>0,z=m[v+3]>>>0,L=m[v+4]>>>0,R=m[v+5]>>>0,F=m[v+6]>>>0,O=m[v+7]>>>0,j=m[v+8]>>>0,Y=m[v+9]>>>0,Q=m[v+10]>>>0;_[b++]=P>>>0&2047,_[b++]=P>>>11&2047,_[b++]=2047&(P>>>22|(1&C)<<10),_[b++]=C>>>1&2047,_[b++]=C>>>12&2047,_[b++]=2047&(C>>>23|(3&A)<<9),_[b++]=A>>>2&2047,_[b++]=A>>>13&2047,_[b++]=2047&(A>>>24|(7&z)<<8),_[b++]=z>>>3&2047,_[b++]=z>>>14&2047,_[b++]=2047&(z>>>25|(15&L)<<7),_[b++]=L>>>4&2047,_[b++]=L>>>15&2047,_[b++]=2047&(L>>>26|(31&R)<<6),_[b++]=R>>>5&2047,_[b++]=R>>>16&2047,_[b++]=2047&(R>>>27|(63&F)<<5),_[b++]=F>>>6&2047,_[b++]=F>>>17&2047,_[b++]=2047&(F>>>28|(127&O)<<4),_[b++]=O>>>7&2047,_[b++]=O>>>18&2047,_[b++]=2047&(O>>>29|(255&j)<<3),_[b++]=j>>>8&2047,_[b++]=j>>>19&2047,_[b++]=2047&(j>>>30|(511&Y)<<2),_[b++]=Y>>>9&2047,_[b++]=Y>>>20&2047,_[b++]=2047&(Y>>>31|(1023&Q)<<1),_[b++]=Q>>>10&2047,_[b]=Q>>>21&2047})(r,e,i,o);case 12:return void(function(m,v,_,T){let b=T,P=m[v]>>>0,C=m[v+1]>>>0,A=m[v+2]>>>0,z=m[v+3]>>>0,L=m[v+4]>>>0,R=m[v+5]>>>0,F=m[v+6]>>>0,O=m[v+7]>>>0,j=m[v+8]>>>0,Y=m[v+9]>>>0,Q=m[v+10]>>>0,oe=m[v+11]>>>0;_[b++]=P>>>0&4095,_[b++]=P>>>12&4095,_[b++]=4095&(P>>>24|(15&C)<<8),_[b++]=C>>>4&4095,_[b++]=C>>>16&4095,_[b++]=4095&(C>>>28|(255&A)<<4),_[b++]=A>>>8&4095,_[b++]=A>>>20&4095,_[b++]=z>>>0&4095,_[b++]=z>>>12&4095,_[b++]=4095&(z>>>24|(15&L)<<8),_[b++]=L>>>4&4095,_[b++]=L>>>16&4095,_[b++]=4095&(L>>>28|(255&R)<<4),_[b++]=R>>>8&4095,_[b++]=R>>>20&4095,_[b++]=F>>>0&4095,_[b++]=F>>>12&4095,_[b++]=4095&(F>>>24|(15&O)<<8),_[b++]=O>>>4&4095,_[b++]=O>>>16&4095,_[b++]=4095&(O>>>28|(255&j)<<4),_[b++]=j>>>8&4095,_[b++]=j>>>20&4095,_[b++]=Y>>>0&4095,_[b++]=Y>>>12&4095,_[b++]=4095&(Y>>>24|(15&Q)<<8),_[b++]=Q>>>4&4095,_[b++]=Q>>>16&4095,_[b++]=4095&(Q>>>28|(255&oe)<<4),_[b++]=oe>>>8&4095,_[b]=oe>>>20&4095})(r,e,i,o);case 16:return void(function(m,v,_,T){let b=T,P=m[v]>>>0,C=m[v+1]>>>0,A=m[v+2]>>>0,z=m[v+3]>>>0,L=m[v+4]>>>0,R=m[v+5]>>>0,F=m[v+6]>>>0,O=m[v+7]>>>0,j=m[v+8]>>>0,Y=m[v+9]>>>0,Q=m[v+10]>>>0,oe=m[v+11]>>>0,ie=m[v+12]>>>0,ue=m[v+13]>>>0,he=m[v+14]>>>0,ae=m[v+15]>>>0;_[b++]=P>>>0&65535,_[b++]=P>>>16&65535,_[b++]=C>>>0&65535,_[b++]=C>>>16&65535,_[b++]=A>>>0&65535,_[b++]=A>>>16&65535,_[b++]=z>>>0&65535,_[b++]=z>>>16&65535,_[b++]=L>>>0&65535,_[b++]=L>>>16&65535,_[b++]=R>>>0&65535,_[b++]=R>>>16&65535,_[b++]=F>>>0&65535,_[b++]=F>>>16&65535,_[b++]=O>>>0&65535,_[b++]=O>>>16&65535,_[b++]=j>>>0&65535,_[b++]=j>>>16&65535,_[b++]=Y>>>0&65535,_[b++]=Y>>>16&65535,_[b++]=Q>>>0&65535,_[b++]=Q>>>16&65535,_[b++]=oe>>>0&65535,_[b++]=oe>>>16&65535,_[b++]=ie>>>0&65535,_[b++]=ie>>>16&65535,_[b++]=ue>>>0&65535,_[b++]=ue>>>16&65535,_[b++]=he>>>0&65535,_[b++]=he>>>16&65535,_[b++]=ae>>>0&65535,_[b]=ae>>>16&65535})(r,e,i,o);case 32:for(let m=0;m<32;m=m+1|0)i[o+m|0]=0|r[e+m|0];return}let l=ud[a]>>>0,u=e,p=0,g=r[u]>>>0;for(let m=0;m<32;m++)if(p+a<=32)i[o+m]=g>>>p&l,p+=a,p===32&&(p=0,u++,m!==31&&(g=r[u]>>>0));else{let v=32-p,_=g>>>p;u++,g=r[u]>>>0,i[o+m]=(_|(g&ud[a-v]>>>0)<=64)throw new Error(\"Varint too long\")}return e.set(a),i}function R0(r,e){let i,o;return o=r[e.get()],e.increment(),i=127&o,o<128?i:(o=r[e.get()],e.increment(),i|=(127&o)<<7,o<128?i:(o=r[e.get()],e.increment(),i|=(127&o)<<14,o<128?i:(o=r[e.get()],e.increment(),i|=(127&o)<<21,o<128?i:(o=r[e.get()],i|=(15&o)<<28,(function(a,l,u){let p,g;if(g=l[u.get()],u.increment(),p=(112&g)>>4,g<128||(g=l[u.get()],u.increment(),p|=(127&g)<<3,g<128)||(g=l[u.get()],u.increment(),p|=(127&g)<<10,g<128)||(g=l[u.get()],u.increment(),p|=(127&g)<<17,g<128)||(g=l[u.get()],u.increment(),p|=(127&g)<<24,g<128)||(g=l[u.get()],u.increment(),p|=(1&g)<<31,g<128))return 4294967296*p+(a>>>0);throw new Error(\"Expected varint not more than 10 bytes\")})(i,r,e)))))}function Mt(r){return r>>>1^-(1&r)}function Ui(r){return r>>1n^-(1n&r)}function Cs(r){return r%2==1?(r+1)/-2:r/2}function pd(r,e,i){if(i===void 0){i=0;for(let l=0;l=4)for(;o=4)for(;o=4)for(let o=r[0];i>4],p=null;switch(u){case vi.DATA:p={dictionaryType:Object.values(jr)[15&l]};break;case vi.OFFSET:p={offsetType:Object.values(pa)[15&l]};break;case vi.LENGTH:p={lengthType:Object.values(sr)[15&l]}}a.increment();let g=o[a.get()],m=Object.values(at)[g>>5],v=Object.values(at)[g>>2&7],_=Object.values(yo)[3&g];a.increment();let T=Di(o,a,2),b=T[0];return{physicalStreamType:u,logicalStreamType:p,logicalLevelTechnique1:m,logicalLevelTechnique2:v,physicalLevelTechnique:_,numValues:b,byteLength:T[1],decompressedCount:b}})(r,e);return i.logicalLevelTechnique1===at.MORTON?(function(o,a,l){let u=Di(a,l,2);return{physicalStreamType:o.physicalStreamType,logicalStreamType:o.logicalStreamType,logicalLevelTechnique1:o.logicalLevelTechnique1,logicalLevelTechnique2:o.logicalLevelTechnique2,physicalLevelTechnique:o.physicalLevelTechnique,numValues:o.numValues,byteLength:o.byteLength,decompressedCount:o.decompressedCount,numBits:u[0],coordinateShift:u[1]}})(i,r,e):at.RLE!==i.logicalLevelTechnique1&&at.RLE!==i.logicalLevelTechnique2||yo.NONE===i.physicalLevelTechnique?i:(function(o,a,l){let u=Di(a,l,2);return{physicalStreamType:o.physicalStreamType,logicalStreamType:o.logicalStreamType,logicalLevelTechnique1:o.logicalLevelTechnique1,logicalLevelTechnique2:o.logicalLevelTechnique2,physicalLevelTechnique:o.physicalLevelTechnique,numValues:o.numValues,byteLength:o.byteLength,decompressedCount:u[1],runs:u[0],numRleValues:u[1]}})(i,r,e)}(function(r){r.PRESENT=\"PRESENT\",r.DATA=\"DATA\",r.OFFSET=\"OFFSET\",r.LENGTH=\"LENGTH\"})(vi||(vi={})),(function(r){r.NONE=\"NONE\",r.SINGLE=\"SINGLE\",r.SHARED=\"SHARED\",r.VERTEX=\"VERTEX\",r.MORTON=\"MORTON\",r.FSST=\"FSST\"})(jr||(jr={})),(function(r){r.VERTEX=\"VERTEX\",r.INDEX=\"INDEX\",r.STRING=\"STRING\",r.KEY=\"KEY\"})(pa||(pa={})),(function(r){r.VAR_BINARY=\"VAR_BINARY\",r.GEOMETRIES=\"GEOMETRIES\",r.PARTS=\"PARTS\",r.RINGS=\"RINGS\",r.TRIANGLES=\"TRIANGLES\",r.SYMBOL=\"SYMBOL\",r.DICTIONARY=\"DICTIONARY\"})(sr||(sr={})),(function(r){r[r.FLAT=0]=\"FLAT\",r[r.CONST=1]=\"CONST\",r[r.SEQUENCE=2]=\"SEQUENCE\",r[r.DICTIONARY=3]=\"DICTIONARY\",r[r.FSST_DICTIONARY=4]=\"FSST_DICTIONARY\"})(Dt||(Dt={}));class Nr{constructor(e,i){this.values=e,this._size=i}get(e){let i=Math.floor(e/8);return(this.values[i]>>e%8&1)==1}set(e,i){let o=Math.floor(e/8);this.values[o]=this.values[o]|(i?1:0)<>e%8&1}size(){return this._size}getBuffer(){return this.values}}function Es(r,e,i){if(!e)return r;let o=e.size(),a=new r.constructor(o),l=0;for(let u=0;u=4)for(;b>>0;for(let T=1;T>>0;return _})(u.logicalLevelTechnique2===at.RLE?pd(l,u.runs,u.numRleValues):l);break;case at.RLE:m=pd(l,u.runs,u.numRleValues);break;case at.MORTON:md(l),m=l;break;case at.COMPONENTWISE_DELTA:m=(function(v){if(v.length<2)return new Uint32Array(v);let _=new Uint32Array(v.length);_[0]=Mt(v[0])>>>0,_[1]=Mt(v[1])>>>0;for(let T=2;T>>0,_[T+1]=_[T-1]+Mt(v[T+1])>>>0;return _})(l);break;case at.NONE:m=l;break;default:throw new Error(`The specified Logical level technique is not supported: ${u.logicalLevelTechnique1}`)}return g?Es(m,g,0):m})(Is(r,e,i),i,0,a)}function xo(r,e,i){return(function(o,a){if(a.logicalLevelTechnique1===at.DELTA&&a.logicalLevelTechnique2===at.NONE)return(function(l){let u=new Int32Array(l.length+1);u[0]=0,u[1]=Mt(l[0]);let p=u[1];for(let g=2;g!==u.length;++g)p+=Mt(l[g-1]),u[g]=u[g-1]+p;return new Uint32Array(u)})(o);if(a.logicalLevelTechnique1===at.RLE&&a.logicalLevelTechnique2===at.NONE)return(function(l,u,p){let g=new Uint32Array(p+1);g[0]=0;let m=1,v=g[0];for(let _=0;_>>2,C=(function(z,L){if(L<=z.encodedWords.length)return z.encodedWords;let R=new Uint32Array(Math.max(16,2*L));return z.encodedWords=R,R})(T,P);(function(z,L,R,F){if(L<0||R<0||L+R>z.length)throw new RangeError(`decodeBigEndianInt32sInto: out of bounds (offset=${L}, byteLength=${R}, bytes.length=${z.length})`);let O=Math.floor(R/4),j=R%4!=0,Y=j?O+1:O;if(F.length0){let Q=z.byteOffset+L;if(3&Q)for(let oe=0;oe0){let Q=0|z[F];if(F=F+1|0,255&Q)throw new Error(`FastPFOR decode: invalid alignedLength=${Q} (expected multiple of 256)`);if(O+Q>j.length)throw new Error(`FastPFOR decode: output buffer too small (outPos=${O}, alignedLength=${Q}, out.length=${j.length})`);F=(function(oe,ie,ue,he,ae,ne){let be=he+hd(ae,Bn),Ee=he,Pe=ue;for(;Ee!==be;){let Te=Math.min(dd,be-Ee);Pe=z0(oe,ie,Pe,Ee,Te,ne),Ee=Ee+Te|0}return Pe})(z,j,F,O,Q,Y),O=O+Q|0}return(function(Q,oe,ie,ue,he,ae){if(ae===0)return oe;let ne=0,be=oe,Ee=oe+ie,Pe=he,Te=he,Ze=he+ae,dt=0,ft=0;for(;be>>ne&255;if(ne+=8,be+=ne>>>5,ne&=31,dt|=(127&wt)<28)throw new Error(`FastPFOR VByte: unterminated value (expected MSB=1 terminator within 5 bytes; shift=${ft}, partial=${dt}, decoded=${Te-Pe}/${ae}, inPos=${be}, inEnd=${Ee})`)}if(Te!==Ze)throw new Error(`FastPFOR VByte: truncated stream (decoded=${Te-Pe}, expected=${ae}, consumedWords=${be-oe}/${ie}, vbyteStart=${oe}, vbyteEnd=${Ee})`)})(z,F,z.length-F|0,j,O,L-O|0),j})(C.subarray(0,P),m,T.decoderWorkspace);return _.add(v),A})(a,l,u,p,(function(g=16){if(g<0)throw new RangeError(`initialEncodedWordCapacity must be >= 0, got ${g}`);let m=Math.max(16,0|g);return{encodedWords:new Uint32Array(m),decoderWorkspace:hf()}})(u>>>2))})(r,i.numValues,i.byteLength,e);case yo.VARINT:return Di(r,e,i.numValues);case yo.NONE:{let a=e.get();e.add(i.byteLength);let l=r.subarray(a,e.get());return new Uint32Array(l)}default:throw new Error(`Specified physicalLevelTechnique ${o} is not supported (yet).`)}}function _d(r,e,i){let o=Is(r,e,i);return o.length===1?o[0]:(function(a){return a[1]})(o)}function gf(r,e,i){return(function(o){if(o.length===2){let a=Mt(o[1]);return[a,a]}return[Mt(o[2]),Mt(o[3])]})(Is(r,e,i))}function _f(r,e,i){return(function(o){if(o.length===2){let a=Ui(o[1]);return[a,a]}return[Ui(o[2]),Ui(o[3])]})(Ps(r,e,i.numValues))}function yf(r,e,i,o){return(function(a,l,u){let p;switch(l.logicalLevelTechnique1){case at.DELTA:p=(function(g){let m=new BigUint64Array(g.length);m[0]=BigInt.asUintN(64,Ui(g[0]));for(let v=1;v>1,e)-i}}function wf(r,e){let i=0;for(let o=0;o>o;return i}function As(r,e,i,o,a,l,u){return r===vo.MORTON?(function(p,g,m,v,_,T){let b=new Array(_?v+1:v);for(let P=0;P[O])),o+=R,a+=R}break;case oi.LINESTRING:{let R,F;A?(R=b[a]-b[a-1],a++):R=T[o]-T[o-1],o++,C?(F=zs(z,p,R,!1),p+=2*R):(F=As(e.vertexBufferType,z,P,g,R,!1,m),g+=R),i[u++]=[F],_&&l++}break;case oi.POLYGON:{let R=T[o]-T[o-1];o++;let F=new Array(R-1),O,j=b[a]-b[a-1];if(a++,C){O=zs(z,p,j,!0),p+=2*j;for(let Y=0;Y0&&C.push(C[0]),T.push(C)}e[v]=T,l&&m++}break;case oi.MULTIPOLYGON:{let _=l[m]-l[m-1];m++;let T=[];for(let b=0;b<_;b++){let P=o[p]-o[p-1];p++;for(let C=0;C0&&z.push(z[0]),T.push(z)}}e[v]=T}}return e}[Symbol.iterator](){return null}}function Cf(r,e,i,o,a,l){return new L0(r,e,i,o,a,l)}class L0 extends Pf{constructor(e,i,o,a,l,u){super(o,a,l,u),this._numGeometries=e,this._geometryType=i}geometryType(e){return this._geometryType}get numGeometries(){return this._numGeometries}containsSingleGeometryType(){return!0}}function Ef(r,e,i,o,a){return new F0(r,e,i,o,a)}class F0 extends Pf{constructor(e,i,o,a,l){super(i,o,a,l),this._geometryTypes=e}geometryType(e){return this._geometryTypes[e]}get numGeometries(){return this._geometryTypes.length}containsSingleGeometryType(){return!1}}function B0(r,e,i,o,a){let l=qi(r,i),u,p,g,m;if(Fu(l,o,r,i)===Dt.CONST){let L=_d(r,i,l),R,F,O,j;for(let Y=0;Yi?e[l++]:1);return o}function If(r,e,i,o){let a=new Uint32Array(e[e.length-1]+1),l=0;a[0]=l;let u=1,p=0;for(let g=0;g=T);){let b=u[m.increment()];if(b<=127){let P=b+3,C=u[m.increment()],A=Math.min(_+P,p);v.fill(C,_,A),_=A}else{let P=256-b;for(let C=0;C=12?j0.decode(r.subarray(e,i)):(function(o,a,l){let u=\"\",p=a;for(;p239?4:g>223?3:g>191?2:1;if(p+b>l)break;b===1?g<128&&(T=g):b===2?(m=o[p+1],(192&m)==128&&(T=(31&g)<<6|63&m,T<=127&&(T=null))):b===3?(m=o[p+1],v=o[p+2],(192&m)==128&&(192&v)==128&&(T=(15&g)<<12|(63&m)<<6|63&v,(T<=2047||T>=55296&&T<=57343)&&(T=null))):b===4&&(m=o[p+1],v=o[p+2],_=o[p+3],(192&m)==128&&(192&v)==128&&(192&_)==128&&(T=(15&g)<<18|(63&m)<<12|(63&v)<<6|63&_,(T<=65535||T>=1114112)&&(T=null))),T===null?(T=65533,b=1):T>65535&&(T-=65536,u+=String.fromCharCode(T>>>10&1023|55296),T=56320|1023&T),u+=String.fromCharCode(T),p+=b}return u})(r,e,i)}class bd extends Ms{constructor(e,i,o,a){super(e,o,a),this.offsetBuffer=i}}class zf extends bd{constructor(e,i,o,a){super(e,i,o,a??i.length-1)}getValueFromBuffer(e){return xd(this.dataBuffer,this.offsetBuffer[e],this.offsetBuffer[e+1])}}class Ds extends bd{constructor(e,i,o,a,l){super(e,o,a,l??i.length),this.indexBuffer=i,this.indexBuffer=i}getValueFromBuffer(e){let i=this.indexBuffer[e];return xd(this.dataBuffer,this.offsetBuffer[i],this.offsetBuffer[i+1])}}class Df extends bd{constructor(e,i,o,a,l,u,p){super(e,o,a,p),this.indexBuffer=i,this.symbolOffsetBuffer=l,this.symbolTableBuffer=u}getValueFromBuffer(e){this.decodedDictionary==null&&(this.symbolLengthBuffer==null&&(this.symbolLengthBuffer=this.offsetToLengthBuffer(this.symbolOffsetBuffer)),this.decodedDictionary=(function(o,a,l){let u=[],p=new Array(a.length).fill(0);for(let g=1;g=10}function Lf(r){return r===30}function U0(r){if(r.type===\"scalarType\"){let e=r.scalarType;if(e.type===\"physicalType\")switch(e.physicalType){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:default:return!1;case 9:return!0}if(e.type===\"logicalType\")return!1}else if(r.type===\"complexType\"){let e=r.complexType;if(e.type===\"physicalType\")switch(e.physicalType){case 0:case 1:return!0;default:return!1}}return console.warn(\"Unexpected column type in hasStreamCount\",r),!1}function q0(r){return r.type===\"complexType\"&&r.complexType?.type===\"physicalType\"&&r.complexType.physicalType===0}let G0=new TextDecoder;function wd(r,e){let i=Di(r,e,1)[0];if(i===0)return\"\";let o=e.get(),a=r.subarray(o,o+i);return e.add(i),G0.decode(a)}function Ff(r,e){let i=Di(r,e,1)[0]>>>0;if(i<10||i>30)throw new Error(`Unsupported field type code ${i}. Supported: 10-29(scalars), 30(STRUCT)`);let o=kf(i);if(Rf(i)&&(o.name=wd(r,e)),Lf(i)){let a=Di(r,e,1)[0]>>>0;o.complexType.children=new Array(a);for(let l=0;l>>0,o=kf(i);if(!o)throw new Error(`Unsupported column type code ${i}. Supported: 0-3(ID), 4(GEOMETRY), 10-29(scalars), 30(STRUCT)`);if(Rf(i)?o.name=wd(r,e):i>=0&&i<=3?o.name=\"id\":i===4&&(o.name=\"geometry\"),Lf(i)){let a=Di(r,e,1)[0]>>>0,l=o.complexType;l.children=new Array(a);for(let u=0;u>>0,l=Di(r,e,1)[0]>>>0;o.columns=new Array(l);for(let u=0;u=4)for(;O>>0,v=u.get()+m;if(v>o.length)throw new Error(`Block overruns tile: ${v} > ${o.length}`);if(Di(o,u,1)[0]>>>0!=1){u.set(v);continue}let[_,T]=Z0(o,u),b=_.featureTables[0],P=null,C=null,A=[],z=0;for(let R of b.columns){let F=R.name;if((g=R).type===\"scalarType\"&&g.scalarType?.type===\"logicalType\"&&g.scalarType.logicalType===0){let O=null;if(R.nullable){let Y=qi(o,u),Q=u.get(),oe=oc(o,Y.numValues,Y.byteLength,u);u.set(Q+Y.byteLength),O=new Nr(oe,Y.numValues)}let j=qi(o,u);z=O?O.size():j.decompressedCount,P=W0(o,R,u,F,j,O??z,l)}else if(q0(R)){let O=Di(o,u,1)[0];if(z===0){let j=u.get();z=qi(o,u).decompressedCount,u.set(j)}C=B0(o,O,u,z)}else{let O=U0(R)?Di(o,u,1)[0]:1;if(O===0)continue;let j=N0(o,u,R,O,z);if(j)if(Array.isArray(j))for(let Y of j)A.push(Y);else A.push(j)}}let L=new M0(b.name,C,P,A,T);p.push(L),u.set(v)}var g;return p})(new Uint8Array(e));this.layers=i.reduce(((o,a)=>Object.assign(Object.assign({},o),{[a.name]:new X0(a)})),{})}}class Y0{constructor(e,i){this.feature=e,this.type=e.type,this.properties=e.tags?e.tags:{},this.extent=i,\"id\"in e&&(typeof e.id==\"string\"?this.id=parseInt(e.id,10):typeof e.id!=\"number\"||isNaN(e.id)||(this.id=e.id))}loadGeometry(){let e=[],i=this.feature.type===1?[this.feature.geometry]:this.feature.geometry;for(let o of i){let a=[];for(let l of o)a.push(new pe(l[0],l[1]));e.push(a)}return e}}let sc=\"_geojsonTileLayer\";function K0(r,e,i=\"\"){e.writeVarintField(15,r.version||1),e.writeStringField(1,r.name||\"\"),e.writeVarintField(5,r.extent||4096);let o={jsonPrefix:i,keys:[],values:[],keycache:{},valuecache:{}};for(let u=0;u>31}function e1(r,e){let i=r.loadGeometry(),o=r.type,a=0,l=0;for(let u of i){let p=1;o===1&&(p=u.length),e.writeVarint(Td(1,p));let g=o===3?u.length-1:u.length;for(let m=0;m=0&&v[3]>=0&&g.insert(p,v[0],v[1],v[2],v[3])}}loadVTLayers(){return this.vtLayers||(this.vtLayers=this.encoding!==\"mlt\"?new hp(new Au(this.rawTileData)).layers:new Bf(this.rawTileData).layers,this.sourceLayerCoder=new sf(this.vtLayers?Object.keys(this.vtLayers).sort():[sc])),this.vtLayers}query(e,i,o,a){this.loadVTLayers();let l=e.params,u=qe/e.tileSize/e.scale,p=$o(l.filter,l.globalState),g=e.queryGeometry,m=e.queryPadding*u,v=da.fromPoints(g),_=this.grid.query(v.minX-m,v.minY-m,v.maxX+m,v.maxY+m),T=da.fromPoints(e.cameraQueryGeometry).expandBy(m),b=this.grid3D.query(T.minX,T.minY,T.maxX,T.maxY,((A,z,L,R)=>(function(F,O,j,Y,Q){for(let ie of F)if(O<=ie.x&&j<=ie.y&&Y>=ie.x&&Q>=ie.y)return!0;let oe=[new pe(O,j),new pe(O,Q),new pe(Y,Q),new pe(Y,j)];if(F.length>2){for(let ie of oe)if(ps(F,ie))return!0}for(let ie=0;ie(L||(L=sn(R)),F.queryIntersectsFeature({queryGeometry:g,feature:R,featureState:O,geometry:L,zoom:this.z,transform:e.transform,pixelsToTileUnits:u,pixelPosMatrix:e.pixelPosMatrix,unwrappedTileID:this.tileID.toUnwrapped(),getElevation:e.getElevation}))))}return P}loadMatchingFeature(e,i,o,a,l,u,p,g,m,v,_){let T=this.bucketLayerIDs[i];if(u&&!T.some((A=>u.has(A))))return;let b=this.sourceLayerCoder.decode(o),P=this.vtLayers[b].feature(a);if(l.needGeometry){let A=ln(P,!0);if(!l.filter(new Et(this.tileID.overscaledZ),A,this.tileID.canonical))return}else if(!l.filter(new Et(this.tileID.overscaledZ),P))return;let C=this.getId(P,b);for(let A of T){if(u&&!u.has(A))continue;let z=g[A];if(!z)continue;let L={};C&&v&&(L=v.getState(z.sourceLayer||sc,C));let R=Mi({},m[A]);R.paint=jf(R.paint,z.paint,P,L,p),R.layout=jf(R.layout,z.layout,P,L,p);let F=!_||_(P,z,L);if(!F)continue;let O=new lf(P,this.z,this.x,this.y,C);O.layer=R;let j=e[A];j===void 0&&(j=e[A]=[]),j.push({featureIndex:a,feature:O,intersectionZ:F})}}lookupSymbolFeatures(e,i,o,a,l,u,p,g){let m={};this.loadVTLayers();let v=$o(l.filterSpec,l.globalState);for(let _ of e)this.loadMatchingFeature(m,o,a,_,v,u,p,g,i);return m}hasLayer(e){for(let i of this.bucketLayerIDs)for(let o of i)if(e===o)return!0;return!1}getId(e,i){var o;let a=e.id;return this.promoteId&&(a=e.properties[typeof this.promoteId==\"string\"?this.promoteId:this.promoteId[i]],typeof a==\"boolean\"&&(a=Number(a)),a===void 0&&(!((o=e.properties)===null||o===void 0)&&o.cluster)&&this.promoteId&&(a=Number(e.properties.cluster_id))),a}}function jf(r,e,i,o,a){return ke(r,((l,u)=>{let p=e instanceof ra?e.get(u):null;return p?.evaluate?p.evaluate(i,o,a):p}))}function i1(r,e){return e-r}function Nf(r,e,i,o,a){let l=[];for(let u of r){let p;for(let g=0;g=o&&v.x>=o||(m.x>=o?m=new pe(o,m.y+(o-m.x)/(v.x-m.x)*(v.y-m.y))._round():v.x>=o&&(v=new pe(o,m.y+(o-m.x)/(v.x-m.x)*(v.y-m.y))._round()),m.y>=a&&v.y>=a||(m.y>=a?m=new pe(m.x+(a-m.y)/(v.y-m.y)*(v.x-m.x),a)._round():v.y>=a&&(v=new pe(m.x+(a-m.y)/(v.y-m.y)*(v.x-m.x),a)._round()),p&&m.equals(p[p.length-1])||(p=[m],l.push(p)),p.push(v)))))}}return l}function Uf(r,e,i,o,a){switch(e){case 1:return(function(l,u,p,g){let m=[];for(let v of l)for(let _ of v){let T=g===0?_.x:_.y;T>=u&&T<=p&&m.push([_])}return m})(r,i,o,a);case 2:return qf(r,i,o,a,!1);case 3:return qf(r,i,o,a,!0)}return[]}function r1(r,e,i,o,a){let l=o===0?n1:o1,u=[],p=[];for(let v=0;ve&&u.push(l(_,T,e)):b>i?P=e&&(u.push(l(_,T,e)),C=!0),P>i&&b<=i&&(u.push(l(_,T,i)),C=!0),!a&&C&&(p.push(u),u=[])}let g=r.length-1,m=o===0?r[g].x:r[g].y;return m>=e&&m<=i&&u.push(r[g]),a&&u.length>0&&!u[0].equals(u[u.length-1])&&u.push(new pe(u[0].x,u[0].y)),u.length>0&&p.push(u),p}function qf(r,e,i,o,a){let l=[];for(let u of r){let p=r1(u,e,i,o,a);p.length>0&&l.push(...p)}return l}function n1(r,e,i){return new pe(i,r.y+(i-r.x)/(e.x-r.x)*(e.y-r.y))}function o1(r,e,i){return new pe(r.x+(i-r.y)/(e.y-r.y)*(e.x-r.x),i)}ze(\"FeatureIndex\",Vf,{omit:[\"rawTileData\",\"sourceLayerCoder\"]});class bo extends pe{constructor(e,i,o,a){super(e,i),this.angle=o,a!==void 0&&(this.segment=a)}clone(){return new bo(this.x,this.y,this.angle,this.segment)}}function Gf(r,e,i,o,a){if(e.segment===void 0||i===0)return!0;let l=e,u=e.segment+1,p=0;for(;p>-i/2;){if(u--,u<0)return!1;p-=r[u].dist(l),l=r[u]}p+=r[u].dist(r[u+1]),u++;let g=[],m=0;for(;po;)m-=g.shift().angleDelta;if(m>a)return!1;u++,p+=v.dist(_)}return!0}function $f(r){let e=0;for(let i=0;im){let P=(m-g)/b,C=Zi.number(_.x,T.x,P),A=Zi.number(_.y,T.y,P),z=new bo(C,A,T.angleTo(_),v);return z._round(),!u||Gf(r,z,p,u,e)?z:void 0}g+=b}}function s1(r,e,i,o,a,l,u,p,g){let m=Zf(o,l,u),v=Wf(o,a),_=v*u,T=r[0].x===0||r[0].x===g||r[0].y===0||r[0].y===g;return e-_=0&&F=0&&O=0&&T+m<=v){let j=new bo(F,O,L,P);j._round(),o&&!Gf(r,j,l,o,a)||b.push(j)}}_+=z}return p||b.length||u||(b=Hf(r,_/2,i,o,a,l,u,!0,g)),b}function Xf(r,e,i,o){let a=[],l=r.image,u=l.pixelRatio,p=l.paddedRect.w-2,g=l.paddedRect.h-2,m={x1:r.left,y1:r.top,x2:r.right,y2:r.bottom},v=l.stretchX||[[0,p]],_=l.stretchY||[[0,g]],T=(ne,be)=>ne+be[1]-be[0],b=v.reduce(T,0),P=_.reduce(T,0),C=p-b,A=g-P,z=0,L=b,R=0,F=P,O=0,j=C,Y=0,Q=A;if(l.content&&o){let ne=l.content,be=ne[2]-ne[0],Ee=ne[3]-ne[1];(l.textFitWidth||l.textFitHeight)&&(m=Gp(r)),z=Bu(v,0,ne[0]),R=Bu(_,0,ne[1]),L=Bu(v,ne[0],ne[2]),F=Bu(_,ne[1],ne[3]),O=ne[0]-z,Y=ne[1]-R,j=be-L,Q=Ee-F}let oe=m.x1,ie=m.y1,ue=m.x2-oe,he=m.y2-ie,ae=(ne,be,Ee,Pe)=>{let Te=Ou(ne.stretch-z,L,ue,oe),Ze=Vu(ne.fixed-O,j,ne.stretch,b),dt=Ou(be.stretch-R,F,he,ie),ft=Vu(be.fixed-Y,Q,be.stretch,P),wt=Ou(Ee.stretch-z,L,ue,oe),bi=Vu(Ee.fixed-O,j,Ee.stretch,b),Nt=Ou(Pe.stretch-R,F,he,ie),Qt=Vu(Pe.fixed-Y,Q,Pe.stretch,P),ai=new pe(Te,dt),kt=new pe(wt,dt),fi=new pe(wt,Nt),ki=new pe(Te,Nt),Ri=new pe(Ze/u,ft/u),Ki=new pe(bi/u,Qt/u),wi=e*Math.PI/180;if(wi){let si=Math.sin(wi),Ot=Math.cos(wi),Kt=[Ot,-si,si,Ot];ai._matMult(Kt),kt._matMult(Kt),ki._matMult(Kt),fi._matMult(Kt)}let Ji=ne.stretch+ne.fixed,Cr=be.stretch+be.fixed;return{tl:ai,tr:kt,bl:ki,br:fi,tex:{x:l.paddedRect.x+1+Ji,y:l.paddedRect.y+1+Cr,w:Ee.stretch+Ee.fixed-Ji,h:Pe.stretch+Pe.fixed-Cr},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:Ri,pixelOffsetBR:Ki,minFontScaleX:j/u/ue,minFontScaleY:Q/u/he,isSDF:i}};if(o&&(l.stretchX||l.stretchY)){let ne=Yf(v,C,b),be=Yf(_,A,P);for(let Ee=0;Ee0&&(C=Math.max(10,C),this.circleDiameter=C)}else{let T=!((_=u.image)===null||_===void 0)&&_.content&&(u.image.textFitWidth||u.image.textFitHeight)?Gp(u):{x1:u.left,y1:u.top,x2:u.right,y2:u.bottom};T.y1=T.y1*p-g[0],T.y2=T.y2*p+g[2],T.x1=T.x1*p-g[3],T.x2=T.x2*p+g[1];let b=u.collisionPadding;if(b&&(T.x1-=b[0]*p,T.y1-=b[1]*p,T.x2+=b[2]*p,T.y2+=b[3]*p),v){let P=new pe(T.x1,T.y1),C=new pe(T.x2,T.y1),A=new pe(T.x1,T.y2),z=new pe(T.x2,T.y2),L=v*Math.PI/180;P._rotate(L),C._rotate(L),A._rotate(L),z._rotate(L),T.x1=Math.min(P.x,C.x,A.x,z.x),T.x2=Math.max(P.x,C.x,A.x,z.x),T.y1=Math.min(P.y,C.y,A.y,z.y),T.y2=Math.max(P.y,C.y,A.y,z.y)}e.emplaceBack(i.x,i.y,T.x1,T.y1,T.x2,T.y2,o,a,l)}this.boxEndIndex=e.length}}class l1{constructor(e=[],i=(o,a)=>oa?1:0){if(this.data=e,this.length=this.data.length,this.compare=i,this.length>0)for(let o=(this.length>>1)-1;o>=0;o--)this._down(o)}push(e){this.data.push(e),this._up(this.length++)}pop(){if(this.length===0)return;let e=this.data[0],i=this.data.pop();return--this.length>0&&(this.data[0]=i,this._down(0)),e}peek(){return this.data[0]}_up(e){let{data:i,compare:o}=this,a=i[e];for(;e>0;){let l=e-1>>1,u=i[l];if(o(a,u)>=0)break;i[e]=u,e=l}i[e]=a}_down(e){let{data:i,compare:o}=this,a=this.length>>1,l=i[e];for(;e=0)break;i[e]=i[u],e=u}i[e]=l}}function c1(r,e=1){let i=da.fromPoints(r[0]),o=Math.min(i.width(),i.height()),a=o/2,l=new l1([],u1),{minX:u,minY:p,maxX:g,maxY:m}=i;if(o===0)return new pe(u,p);for(let T=u;T_.d||!_.d)&&(_=T),T.max-_.d<=e||(a=T.h/2,l.push(new ks(T.p.x-a,T.p.y-a,a,r)),l.push(new ks(T.p.x+a,T.p.y-a,a,r)),l.push(new ks(T.p.x-a,T.p.y+a,a,r)),l.push(new ks(T.p.x+a,T.p.y+a,a,r)))}return v.d>0&&_.d-v.d<=e?v.p:_.p}function u1(r,e){return e.max-r.max}class ks{constructor(e,i,o,a){this.p=new pe(e,i),this.h=o,this.d=(function(l,u){let p=!1,g=1/0;for(let m of u)for(let v=0,_=m.length,T=_-1;v<_;T=v++){let b=m[v],P=m[T];b.y>l.y!=P.y>l.y&&l.x<(P.x-b.x)*(l.y-b.y)/(P.y-b.y)+b.x&&(p=!p),g=Math.min(g,jd(l,b,P))}return(p?1:-1)*Math.sqrt(g)})(this.p,a),this.max=this.d+this.h*Math.SQRT2}}var xi;k.aM=void 0,(xi=k.aM||(k.aM={}))[xi.center=1]=\"center\",xi[xi.left=2]=\"left\",xi[xi.right=3]=\"right\",xi[xi.top=4]=\"top\",xi[xi.bottom=5]=\"bottom\",xi[xi[\"top-left\"]=6]=\"top-left\",xi[xi[\"top-right\"]=7]=\"top-right\",xi[xi[\"bottom-left\"]=8]=\"bottom-left\",xi[xi[\"bottom-right\"]=9]=\"bottom-right\";let Sd=Number.POSITIVE_INFINITY;function Kf(r,e){return e[1]!==Sd?(function(i,o,a){let l=0,u=0;switch(o=Math.abs(o),a=Math.abs(a),i){case\"top-right\":case\"top-left\":case\"top\":u=a-7;break;case\"bottom-right\":case\"bottom-left\":case\"bottom\":u=7-a}switch(i){case\"top-right\":case\"bottom-right\":case\"right\":l=-o;break;case\"top-left\":case\"bottom-left\":case\"left\":l=o}return[l,u]})(r,e[0],e[1]):(function(i,o){let a=0,l=0;o<0&&(o=0);let u=o/Math.SQRT2;switch(i){case\"top-right\":case\"top-left\":l=u-7;break;case\"bottom-right\":case\"bottom-left\":l=7-u;break;case\"bottom\":l=7-o;break;case\"top\":l=o-7}switch(i){case\"top-right\":case\"bottom-right\":a=-u;break;case\"top-left\":case\"bottom-left\":a=u;break;case\"left\":a=o;break;case\"right\":a=-o}return[a,l]})(r,e[0])}function Jf(r,e,i){var o;let a=r.layout,l=(o=a.get(\"text-variable-anchor-offset\"))===null||o===void 0?void 0:o.evaluate(e,{},i);if(l){let p=l.values,g=[];for(let m=0;mT*ni));v.startsWith(\"top\")?_[1]-=7:v.startsWith(\"bottom\")&&(_[1]+=7),g[m+1]=_}return new Ci(g)}let u=a.get(\"text-variable-anchor\");if(u){let p;p=r._unevaluatedLayout.getValue(\"text-radial-offset\")!==void 0?[a.get(\"text-radial-offset\").evaluate(e,{},i)*ni,Sd]:a.get(\"text-offset\").evaluate(e,{},i).map((m=>m*ni));let g=[];for(let m of u)g.push(m,Kf(m,p));return new Ci(g)}return null}function Md(r){switch(r){case\"right\":case\"top-right\":case\"bottom-right\":return\"right\";case\"left\":case\"top-left\":case\"bottom-left\":return\"left\"}return\"center\"}function h1(r,e,i,o,a,l,u,p,g,m,v,_){let T=l.textMaxSize.evaluate(e,{});T===void 0&&(T=u);let b=r.layers[0].layout,P=b.get(\"icon-offset\").evaluate(e,{},v),C=em(i.horizontal),A=u/24,z=r.tilePixelRatio*A,L=r.tilePixelRatio*T/24,R=r.tilePixelRatio*p,F=r.tilePixelRatio*b.get(\"symbol-spacing\"),O=b.get(\"text-padding\")*r.tilePixelRatio,j=(function(Ee,Pe,Te,Ze=1){let dt=Ee.get(\"icon-padding\").evaluate(Pe,{},Te),ft=dt?.values;return[ft[0]*Ze,ft[1]*Ze,ft[2]*Ze,ft[3]*Ze]})(b,e,v,r.tilePixelRatio),Y=b.get(\"text-max-angle\")/180*Math.PI,Q=b.get(\"text-rotation-alignment\")!==\"viewport\"&&b.get(\"symbol-placement\")!==\"point\",oe=b.get(\"icon-rotation-alignment\")===\"map\"&&b.get(\"symbol-placement\")!==\"point\",ie=b.get(\"symbol-placement\"),ue=F/2,he=b.get(\"icon-text-fit\"),ae;o&&he!==\"none\"&&(r.allowVerticalPlacement&&i.vertical&&(ae=$p(o,i.vertical,he,b.get(\"icon-text-fit-padding\"),P,A)),C&&(o=$p(o,C,he,b.get(\"icon-text-fit-padding\"),P,A)));let ne=v?_.line.getGranularityForZoomLevel(v.z):1,be=(Ee,Pe)=>{Pe.x<0||Pe.x>=qe||Pe.y<0||Pe.y>=qe||(function(Te,Ze,dt,ft,wt,bi,Nt,Qt,ai,kt,fi,ki,Ri,Ki,wi,Ji,Cr,si,Ot,Kt,Ut,li,On,Ur,lc){let wo=Te.addToLineVertexArray(Ze,dt),fa,Rs,Ls,Fs,tm=0,im=0,rm=0,nm=0,Pd=-1,Cd=-1,Vn={},om=ri(\"\");if(Te.allowVerticalPlacement&&ft.vertical){let Li=Qt.layout.get(\"text-rotate\").evaluate(Ut,{},Ur)+90;Ls=new ju(ai,Ze,kt,fi,ki,ft.vertical,Ri,Ki,wi,Li),Nt&&(Fs=new ju(ai,Ze,kt,fi,ki,Nt,Cr,si,wi,Li))}if(wt){let Li=Qt.layout.get(\"icon-rotate\").evaluate(Ut,{}),vr=Qt.layout.get(\"icon-text-fit\")!==\"none\",ma=Xf(wt,Li,On,vr),Gr=Nt?Xf(Nt,Li,On,vr):void 0;Rs=new ju(ai,Ze,kt,fi,ki,wt,Cr,si,!1,Li),tm=4*ma.length;let ga=Te.iconSizeData,cn=null;ga.kind===\"source\"?(cn=[Fn*Qt.layout.get(\"icon-size\").evaluate(Ut,{})],cn[0]>go&&xt(`${Te.layerIds[0]}: Value for \"icon-size\" is >= 255. Reduce your \"icon-size\".`)):ga.kind===\"composite\"&&(cn=[Fn*li.compositeIconSizes[0].evaluate(Ut,{},Ur),Fn*li.compositeIconSizes[1].evaluate(Ut,{},Ur)],(cn[0]>go||cn[1]>go)&&xt(`${Te.layerIds[0]}: Value for \"icon-size\" is >= 255. Reduce your \"icon-size\".`)),Te.addSymbols(Te.icon,ma,cn,Kt,Ot,Ut,k.ax.none,Ze,wo.lineStartIndex,wo.lineLength,-1,Ur),Pd=Te.icon.placedSymbolArray.length-1,Gr&&(im=4*Gr.length,Te.addSymbols(Te.icon,Gr,cn,Kt,Ot,Ut,k.ax.vertical,Ze,wo.lineStartIndex,wo.lineLength,-1,Ur),Cd=Te.icon.placedSymbolArray.length-1)}let am=Object.keys(ft.horizontal);for(let Li of am){let vr=ft.horizontal[Li];if(!fa){om=ri(vr.text);let Gr=Qt.layout.get(\"text-rotate\").evaluate(Ut,{},Ur);fa=new ju(ai,Ze,kt,fi,ki,vr,Ri,Ki,wi,Gr)}let ma=vr.positionedLines.length===1;if(rm+=Qf(Te,Ze,vr,bi,Qt,wi,Ut,Ji,wo,ft.vertical?k.ax.horizontal:k.ax.horizontalOnly,ma?am:[Li],Vn,Pd,li,Ur),ma)break}ft.vertical&&(nm+=Qf(Te,Ze,ft.vertical,bi,Qt,wi,Ut,Ji,wo,k.ax.vertical,[\"vertical\"],Vn,Cd,li,Ur));let p1=fa?fa.boxStartIndex:Te.collisionBoxArray.length,f1=fa?fa.boxEndIndex:Te.collisionBoxArray.length,m1=Ls?Ls.boxStartIndex:Te.collisionBoxArray.length,g1=Ls?Ls.boxEndIndex:Te.collisionBoxArray.length,_1=Rs?Rs.boxStartIndex:Te.collisionBoxArray.length,y1=Rs?Rs.boxEndIndex:Te.collisionBoxArray.length,v1=Fs?Fs.boxStartIndex:Te.collisionBoxArray.length,x1=Fs?Fs.boxEndIndex:Te.collisionBoxArray.length,qr=-1,Nu=(Li,vr)=>Li?.circleDiameter?Math.max(Li.circleDiameter,vr):vr;qr=Nu(fa,qr),qr=Nu(Ls,qr),qr=Nu(Rs,qr),qr=Nu(Fs,qr);let sm=qr>-1?1:0;sm&&(qr*=lc/ni),Te.glyphOffsetArray.length>=Ts.MAX_GLYPHS&&xt(\"Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907\"),Ut.sortKey!==void 0&&Te.addToSortKeyRanges(Te.symbolInstances.length,Ut.sortKey);let b1=Jf(Qt,Ut,Ur),[w1,T1]=(function(Li,vr){let ma=Li.length,Gr=vr?.values;if(Gr?.length>0)for(let ga=0;ga=0?Vn.right:-1,Vn.center>=0?Vn.center:-1,Vn.left>=0?Vn.left:-1,Vn.vertical||-1,Pd,Cd,om,p1,f1,m1,g1,_1,y1,v1,x1,kt,rm,nm,tm,im,sm,0,Ri,qr,w1,T1)})(r,Pe,Ee,i,o,a,ae,r.layers[0],r.collisionBoxArray,e.index,e.sourceLayerIndex,r.index,z,[O,O,O,O],Q,g,R,j,oe,P,e,l,m,v,u)};if(ie===\"line\")for(let Ee of Nf(e.geometry,0,0,qe,qe)){let Pe=ha(Ee,ne),Te=s1(Pe,F,Y,i.vertical||C,o,24,L,r.overscaling,qe);for(let Ze of Te)C&&d1(r,C.text,ue,Ze)||be(Pe,Ze)}else if(ie===\"line-center\"){for(let Ee of e.geometry)if(Ee.length>1){let Pe=ha(Ee,ne),Te=a1(Pe,Y,i.vertical||C,o,24,L);Te&&be(Pe,Te)}}else if(e.type===\"Polygon\")for(let Ee of Fa(e.geometry,0)){let Pe=c1(Ee,16);be(ha(Ee[0],ne,!0),new bo(Pe.x,Pe.y,0))}else if(e.type===\"LineString\")for(let Ee of e.geometry){let Pe=ha(Ee,ne);be(Pe,new bo(Pe[0].x,Pe[0].y,0))}else if(e.type===\"Point\")for(let Ee of e.geometry)for(let Pe of Ee)be([Pe],new bo(Pe.x,Pe.y,0))}function Qf(r,e,i,o,a,l,u,p,g,m,v,_,T,b,P){let C=(function(L,R,F,O,j,Y,Q,oe){let ie=O.layout.get(\"text-rotate\").evaluate(Y,{})*Math.PI/180,ue=[];for(let he of R.positionedLines)for(let ae of he.positionedGlyphs){if(!ae.rect)continue;let ne=ae.rect||{},be=4,Ee=!0,Pe=1,Te=0,Ze=(j||oe)&&ae.vertical,dt=ae.metrics.advance*ae.scale/2;if(oe&&R.verticalizable&&(Te=he.lineOffset/2-(ae.imageName?-(ni-ae.metrics.width*ae.scale)/2:(ae.scale-1)*ni)),ae.imageName){let si=Q[ae.imageName];Ee=si.sdf,Pe=si.pixelRatio,be=1/Pe}let ft=j?[ae.x+dt,ae.y]:[0,0],wt=j?[0,0]:[ae.x+dt+F[0],ae.y+F[1]-Te],bi=[0,0];Ze&&(bi=wt,wt=[0,0]);let Nt=ae.metrics.isDoubleResolution?2:1,Qt=(ae.metrics.left-be)*ae.scale-dt+wt[0],ai=(-ae.metrics.top-be)*ae.scale+wt[1],kt=Qt+ne.w/Nt*ae.scale/Pe,fi=ai+ne.h/Nt*ae.scale/Pe,ki=new pe(Qt,ai),Ri=new pe(kt,ai),Ki=new pe(Qt,fi),wi=new pe(kt,fi);if(Ze){let si=new pe(-dt,dt- -17),Ot=-Math.PI/2,Kt=12-dt,Ut=new pe(22-Kt,-(ae.imageName?Kt:0)),li=new pe(...bi);ki._rotateAround(Ot,si)._add(Ut)._add(li),Ri._rotateAround(Ot,si)._add(Ut)._add(li),Ki._rotateAround(Ot,si)._add(Ut)._add(li),wi._rotateAround(Ot,si)._add(Ut)._add(li)}if(ie){let si=Math.sin(ie),Ot=Math.cos(ie),Kt=[Ot,-si,si,Ot];ki._matMult(Kt),Ri._matMult(Kt),Ki._matMult(Kt),wi._matMult(Kt)}let Ji=new pe(0,0),Cr=new pe(0,0);ue.push({tl:ki,tr:Ri,bl:Ki,br:wi,tex:ne,writingMode:R.writingMode,glyphOffset:ft,sectionIndex:ae.sectionIndex,isSDF:Ee,pixelOffsetTL:Ji,pixelOffsetBR:Cr,minFontScaleX:0,minFontScaleY:0})}return ue})(0,i,p,a,l,u,o,r.allowVerticalPlacement),A=r.textSizeData,z=null;A.kind===\"source\"?(z=[Fn*a.layout.get(\"text-size\").evaluate(u,{})],z[0]>go&&xt(`${r.layerIds[0]}: Value for \"text-size\" is >= 255. Reduce your \"text-size\".`)):A.kind===\"composite\"&&(z=[Fn*b.compositeTextSizes[0].evaluate(u,{},P),Fn*b.compositeTextSizes[1].evaluate(u,{},P)],(z[0]>go||z[1]>go)&&xt(`${r.layerIds[0]}: Value for \"text-size\" is >= 255. Reduce your \"text-size\".`)),r.addSymbols(r.text,C,z,p,l,u,m,e,g.lineStartIndex,g.lineLength,T,P);for(let L of v)_[L]=r.text.placedSymbolArray.length-1;return 4*C.length}function em(r){for(let e in r)return r[e];return null}function d1(r,e,i,o){let a=r.compareText;if(e in a){let l=a[e];for(let u=l.length-1;u>=0;u--)if(o.dist(l[u])this.process())),this.subscription=Zr(this.target,\"message\",(i=>this.receive(i)),!1),this.globalScope=zt(self)?r:window}registerMessageHandler(r,e){this.messageHandlers[r]=e}unregisterMessageHandler(r){delete this.messageHandlers[r]}sendAsync(r,e){return new Promise(((i,o)=>{let a=Math.round(1e18*Math.random()).toString(36).substring(0,10),l=e?Zr(e.signal,\"abort\",(()=>{l?.unsubscribe(),delete this.resolveRejects[a];let g={id:a,type:\"\",origin:location.origin,targetMapId:r.targetMapId,sourceMapId:this.mapId};this.target.postMessage(g)}),S0):null;this.resolveRejects[a]={resolve:g=>{l?.unsubscribe(),i(g)},reject:g=>{l?.unsubscribe(),o(g)}};let u=[],p=Object.assign(Object.assign({},r),{id:a,sourceMapId:this.mapId,origin:location.origin,data:Lr(r.data,u)});this.target.postMessage(p,{transfer:u})}))}receive(r){let e=r.data,i=e.id,o=[\"file://\",\"resource://android\",\"null\"],a=[e.origin,location.origin],l=e.origin===location.origin,u=a.some((p=>o.includes(p)));if((l||u)&&(!e.targetMapId||this.mapId===e.targetMapId)){if(e.type===\"\"){delete this.tasks[i];let p=this.abortControllers[i];return delete this.abortControllers[i],void(p&&p.abort())}if(zt(self)||e.mustQueue)return this.tasks[i]=e,this.taskQueue.push(i),void this.invoker.trigger();this.processTask(i,e)}}process(){if(this.taskQueue.length===0)return;let r=this.taskQueue.shift(),e=this.tasks[r];delete this.tasks[r],this.taskQueue.length>0&&this.invoker.trigger(),e&&this.processTask(r,e)}processTask(r,e){return h(this,void 0,void 0,(function*(){if(e.type===\"\"){let a=this.resolveRejects[r];return delete this.resolveRejects[r],a?void(e.error?a.reject(mt(ta(e.error))):a.resolve(ta(e.data))):void 0}if(!this.messageHandlers[e.type])return void this.completeTask(r,new Error(`Could not find a registered handler for ${e.type}, map ID: ${this.mapId}, available handlers: ${Object.keys(this.messageHandlers).join(\", \")}`));let i=ta(e.data),o=new AbortController;this.abortControllers[r]=o;try{let a=yield this.messageHandlers[e.type](e.sourceMapId,i,o);this.completeTask(r,null,a)}catch(a){this.completeTask(r,mt(a))}}))}completeTask(r,e,i){let o=[];delete this.abortControllers[r];let a={id:r,type:\"\",sourceMapId:this.mapId,origin:location.origin,error:e?Lr(e):null,data:Lr(i,o)};this.target.postMessage(a,{transfer:o})}remove(){this.invoker.remove(),this.subscription.unsubscribe()}},k.O=function(){var r=new ut(16);return ut!=Float32Array&&(r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[6]=0,r[7]=0,r[8]=0,r[9]=0,r[11]=0,r[12]=0,r[13]=0,r[14]=0),r[0]=1,r[5]=1,r[10]=1,r[15]=1,r},k.P=pe,k.Q=function(r,e,i){var o,a,l,u,p,g,m,v,_,T,b,P,C=i[0],A=i[1],z=i[2];return e===r?(r[12]=e[0]*C+e[4]*A+e[8]*z+e[12],r[13]=e[1]*C+e[5]*A+e[9]*z+e[13],r[14]=e[2]*C+e[6]*A+e[10]*z+e[14],r[15]=e[3]*C+e[7]*A+e[11]*z+e[15]):(a=e[1],l=e[2],u=e[3],p=e[4],g=e[5],m=e[6],v=e[7],_=e[8],T=e[9],b=e[10],P=e[11],r[0]=o=e[0],r[1]=a,r[2]=l,r[3]=u,r[4]=p,r[5]=g,r[6]=m,r[7]=v,r[8]=_,r[9]=T,r[10]=b,r[11]=P,r[12]=o*C+p*A+_*z+e[12],r[13]=a*C+g*A+T*z+e[13],r[14]=l*C+m*A+b*z+e[14],r[15]=u*C+v*A+P*z+e[15]),r},k.R=Yi,k.S=function(r,e,i){var o=i[0],a=i[1],l=i[2];return r[0]=e[0]*o,r[1]=e[1]*o,r[2]=e[2]*o,r[3]=e[3]*o,r[4]=e[4]*a,r[5]=e[5]*a,r[6]=e[6]*a,r[7]=e[7]*a,r[8]=e[8]*l,r[9]=e[9]*l,r[10]=e[10]*l,r[11]=e[11]*l,r[12]=e[12],r[13]=e[13],r[14]=e[14],r[15]=e[15],r},k.T=Ph,k.U=function(r,e,i){var o=e[0],a=e[1],l=e[2],u=e[3],p=e[4],g=e[5],m=e[6],v=e[7],_=e[8],T=e[9],b=e[10],P=e[11],C=e[12],A=e[13],z=e[14],L=e[15],R=i[0],F=i[1],O=i[2],j=i[3];return r[0]=R*o+F*p+O*_+j*C,r[1]=R*a+F*g+O*T+j*A,r[2]=R*l+F*m+O*b+j*z,r[3]=R*u+F*v+O*P+j*L,r[4]=(R=i[4])*o+(F=i[5])*p+(O=i[6])*_+(j=i[7])*C,r[5]=R*a+F*g+O*T+j*A,r[6]=R*l+F*m+O*b+j*z,r[7]=R*u+F*v+O*P+j*L,r[8]=(R=i[8])*o+(F=i[9])*p+(O=i[10])*_+(j=i[11])*C,r[9]=R*a+F*g+O*T+j*A,r[10]=R*l+F*m+O*b+j*z,r[11]=R*u+F*v+O*P+j*L,r[12]=(R=i[12])*o+(F=i[13])*p+(O=i[14])*_+(j=i[15])*C,r[13]=R*a+F*g+O*T+j*A,r[14]=R*l+F*m+O*b+j*z,r[15]=R*u+F*v+O*P+j*L,r},k.V=function(r,e){let i={};for(let o of e)o in r&&(i[o]=r[o]);return i},k.W=_o,k.X=$r,k.Y=ef,k.Z=Qp,k._=h,k.a=Po,k.a$=function(r){var e=new ut(3);return e[0]=r[0],e[1]=r[1],e[2]=r[2],e},k.a0=He,k.a1=st,k.a2=Mo,k.a3=ar,k.a4=rf,k.a5=Ru,k.a6=qe,k.a7=nc,k.a8=da,k.a9=25,k.aA=function(r){var e=r[0],i=r[1];return Math.sqrt(e*e+i*i)},k.aB=function(r){return r[0]=0,r[1]=0,r},k.aC=function(r,e,i){return r[0]=e[0]*i,r[1]=e[1]*i,r},k.aD=Qh,k.aE=je,k.aF=function(r,e,i,o){let a=e.y-r.y,l=e.x-r.x,u=o.y-i.y,p=o.x-i.x,g=u*l-p*a;if(g===0)return null;let m=(p*(r.y-i.y)-u*(r.x-i.x))/g;return new pe(r.x+m*l,r.y+m*a)},k.aG=Nf,k.aH=ds,k.aI=function(r){let e=1/0,i=1/0,o=-1/0,a=-1/0;for(let l of r)e=Math.min(e,l.x),i=Math.min(i,l.y),o=Math.max(o,l.x),a=Math.max(a,l.y);return[e,i,o,a]},k.aJ=ni,k.aK=vt,k.aL=function(r,e,i,o,a=!1){if(!i[0]&&!i[1])return[0,0];let l=a?o===\"map\"?-r.bearingInRadians:0:o===\"viewport\"?r.bearingInRadians:0;if(l){let u=Math.sin(l),p=Math.cos(l);i=[i[0]*p-i[1]*u,i[0]*u+i[1]*p]}return[a?i[0]:vt(e,i[0],r.zoom),a?i[1]:vt(e,i[1],r.zoom)]},k.aN=Jh,k.aO=Md,k.aP=Kh,k.aQ=r=>r.type===\"symbol\",k.aR=Su,k.aS=It,k.aT=Tu,k.aU=V,k.aV=Ae,k.aW=ge,k.aX=hr,k.aY=nf,k.aZ=K,k.a_=W,k.aa=nd,k.ab=r=>{let e=window.document.createElement(\"video\");return e.muted=!0,new Promise((i=>{e.onloadstart=()=>{i(e)};for(let o of r){let a=window.document.createElement(\"source\");dr(o)||(e.crossOrigin=\"Anonymous\"),a.src=o,e.appendChild(a)}}))},k.ac=Se,k.ad=function(){return fe++},k.ae=c,k.af=Ts,k.ag=sc,k.ah=$o,k.ai=ln,k.aj=lf,k.ak=function(r){let e={};if(r.replace(/(?:^|(?:\\s*\\,\\s*))([^\\x00-\\x20\\(\\)<>@\\,;\\:\\\\\"\\/\\[\\]\\?\\=\\{\\}\\x7F]+)(?:\\=(?:([^\\x00-\\x20\\(\\)<>@\\,;\\:\\\\\"\\/\\[\\]\\?\\=\\{\\}\\x7F]+)|(?:\\\"((?:[^\"\\\\]|\\\\.)*)\\\")))?/g,((i,o,a,l)=>{let u=a||l;return e[o]=!u||u.toLowerCase(),\"\"})),e[\"max-age\"]){let i=parseInt(e[\"max-age\"],10);isNaN(i)?delete e[\"max-age\"]:e[\"max-age\"]=i}return e},k.al=ti,k.am=85.051129,k.an=Pi,k.ao=function(r){return Math.pow(2,r)},k.ap=Qi,k.aq=tf,k.ar=function(r){return Math.log(r)/Math.LN2},k.as=function(r){var e=r[0],i=r[1];return e*e+i*i},k.at=function(r){if(!r.length)return new Set;let e=Math.max(...r.map((g=>g.canonical.z))),i=1/0,o=-1/0,a=1/0,l=-1/0,u=[];for(let g of r){let{x:m,y:v,z:_}=g.canonical,T=Math.pow(2,e-_),b=m*T,P=v*T;u.push({id:g,x:b,y:P}),bo&&(o=b),Pl&&(l=P)}let p=new Set;for(let g of u)g.x!==i&&g.x!==o&&g.y!==a&&g.y!==l||p.add(g.id);return p},k.au=function(r,e){let i=Math.abs(2*r.wrap)-+(r.wrap<0),o=Math.abs(2*e.wrap)-+(e.wrap<0);return r.overscaledZ-e.overscaledZ||o-i||e.canonical.y-r.canonical.y||e.canonical.x-r.canonical.x},k.av=class{constructor(r,e){this.max=r,this.onRemove=e,this.reset()}reset(){for(let r in this.data)for(let e of this.data[r])e.timeout&&clearTimeout(e.timeout),this.onRemove(e.value);return this.data={},this.order=[],this}add(r,e,i){let o=r.wrapped().key;this.data[o]===void 0&&(this.data[o]=[]);let a={value:e,timeout:void 0};if(i!==void 0&&(a.timeout=setTimeout((()=>{this.remove(r,a)}),i)),this.data[o].push(a),this.order.push(o),this.order.length>this.max){let l=this._getAndRemoveByKey(this.order[0]);l&&this.onRemove(l)}return this}has(r){return r.wrapped().key in this.data}getAndRemove(r){return this.has(r)?this._getAndRemoveByKey(r.wrapped().key):null}_getAndRemoveByKey(r){let e=this.data[r].shift();return e.timeout&&clearTimeout(e.timeout),this.data[r].length===0&&delete this.data[r],this.order.splice(this.order.indexOf(r),1),e.value}getByKey(r){let e=this.data[r];return e?e[0].value:null}get(r){return this.has(r)?this.data[r.wrapped().key][0].value:null}remove(r,e){if(!this.has(r))return this;let i=r.wrapped().key,o=e===void 0?0:this.data[i].indexOf(e),a=this.data[i][o];return this.data[i].splice(o,1),a.timeout&&clearTimeout(a.timeout),this.data[i].length===0&&delete this.data[i],this.onRemove(a.value),this.order.splice(this.order.indexOf(i),1),this}setMaxSize(r){for(this.max=r;this.order.length>this.max;){let e=this._getAndRemoveByKey(this.order[0]);e&&this.onRemove(e)}return this}filter(r){let e=[];for(let i in this.data)for(let o of this.data[i])r(o.value)||e.push(o);for(let i of e)this.remove(i.value.tileID,i)}},k.aw=function(r,e){let i=0,o=0;if(r.kind===\"constant\")o=r.layoutSize;else if(r.kind!==\"source\"){let{interpolationType:a,minZoom:l,maxZoom:u}=r,p=a?ti(Zt.interpolationFactor(a,e,l,u),0,1):0;r.kind===\"camera\"?o=Zi.number(r.minSize,r.maxSize,p):i=p}return{uSizeT:i,uSize:o}},k.ay=function(r,{uSize:e,uSizeT:i},{lowerSize:o,upperSize:a}){return r.kind===\"source\"?o/Fn:r.kind===\"composite\"?Zi.number(o/Fn,a/Fn,i):e},k.az=Xe,k.b=xr,k.b$=cs,k.b0=function(r,e,i){return r[0]=e[0]-i[0],r[1]=e[1]-i[1],r[2]=e[2]-i[2],r},k.b1=function(r,e){var i=e[0],o=e[1],a=e[2],l=i*i+o*o+a*a;return l>0&&(l=1/Math.sqrt(l)),r[0]=e[0]*l,r[1]=e[1]*l,r[2]=e[2]*l,r},k.b2=ee,k.b3=function(r,e){return r[0]*e[0]+r[1]*e[1]+r[2]*e[2]},k.b4=function(r,e,i){return r[0]=e[0]*i[0],r[1]=e[1]*i[1],r[2]=e[2]*i[2],r[3]=e[3]*i[3],r},k.b5=Fi,k.b6=function(r,e,i){let o=e[0]*i[0]+e[1]*i[1]+e[2]*i[2];return o===0?null:(-(r[0]*i[0]+r[1]*i[1]+r[2]*i[2])-i[3])/o},k.b7=Me,k.b8=function(r,e,i){return r[0]=e[0]*i,r[1]=e[1]*i,r[2]=e[2]*i,r[3]=e[3]*i,r},k.b9=function(r,e){return r[0]*e[0]+r[1]*e[1]+r[2]*e[2]+r[3]},k.bA=$e,k.bB=function(r,e,i){var o=i[0],a=i[1],l=i[2],u=i[3],p=e[0],g=e[1],m=e[2],v=a*m-l*g,_=l*p-o*m,T=o*g-a*p;return r[0]=p+u*(v+=v)+a*(T+=T)-l*(_+=_),r[1]=g+u*_+l*v-o*T,r[2]=m+u*T+o*_-a*v,r},k.bC=function(r,e,i){let o=(a=[r[0],r[1],r[2],e[0],e[1],e[2],i[0],i[1],i[2]])[0]*((v=a[8])*(u=a[4])-(p=a[5])*(m=a[7]))+a[1]*(-v*(l=a[3])+p*(g=a[6]))+a[2]*(m*l-u*g);var a,l,u,p,g,m,v;if(o===0)return null;let _=ee([],[e[0],e[1],e[2]],[i[0],i[1],i[2]]),T=ee([],[i[0],i[1],i[2]],[r[0],r[1],r[2]]),b=ee([],[r[0],r[1],r[2]],[e[0],e[1],e[2]]),P=K([],_,-r[3]);return W(P,P,K([],T,-e[3])),W(P,P,K([],b,-i[3])),K(P,P,1/o),P},k.bD=rd,k.bE=function(){return new Float64Array(4)},k.bF=function(r,e,i,o){var a=[],l=[];return a[0]=e[0]-i[0],a[1]=e[1]-i[1],a[2]=e[2]-i[2],l[0]=a[0]*Math.cos(o)-a[1]*Math.sin(o),l[1]=a[0]*Math.sin(o)+a[1]*Math.cos(o),l[2]=a[2],r[0]=l[0]+i[0],r[1]=l[1]+i[1],r[2]=l[2]+i[2],r},k.bG=function(r,e,i,o){var a=[],l=[];return a[0]=e[0]-i[0],a[1]=e[1]-i[1],a[2]=e[2]-i[2],l[0]=a[0],l[1]=a[1]*Math.cos(o)-a[2]*Math.sin(o),l[2]=a[1]*Math.sin(o)+a[2]*Math.cos(o),r[0]=l[0]+i[0],r[1]=l[1]+i[1],r[2]=l[2]+i[2],r},k.bH=function(r,e,i,o){var a=[],l=[];return a[0]=e[0]-i[0],a[1]=e[1]-i[1],a[2]=e[2]-i[2],l[0]=a[2]*Math.sin(o)+a[0]*Math.cos(o),l[1]=a[1],l[2]=a[2]*Math.cos(o)-a[0]*Math.sin(o),r[0]=l[0]+i[0],r[1]=l[1]+i[1],r[2]=l[2]+i[2],r},k.bI=function(r,e,i){var o=Math.sin(i),a=Math.cos(i),l=e[0],u=e[1],p=e[2],g=e[3],m=e[8],v=e[9],_=e[10],T=e[11];return e!==r&&(r[4]=e[4],r[5]=e[5],r[6]=e[6],r[7]=e[7],r[12]=e[12],r[13]=e[13],r[14]=e[14],r[15]=e[15]),r[0]=l*a-m*o,r[1]=u*a-v*o,r[2]=p*a-_*o,r[3]=g*a-T*o,r[8]=l*o+m*a,r[9]=u*o+v*a,r[10]=p*o+_*a,r[11]=g*o+T*a,r},k.bJ=function(r,e){let i=Si(r,360),o=Si(e,360),a=o-i,l=o>i?a-360:a+360;return Math.abs(a)0?u:-u},k.bM=function(r,e){let i=Si(r,2*Math.PI),o=Si(e,2*Math.PI);return Math.min(Math.abs(i-o),Math.abs(i-o+2*Math.PI),Math.abs(i-o-2*Math.PI))},k.bN=function(){let r={},e=de.$version;for(let i in de.$root){let o=de.$root[i];if(o.required){let a=null;a=i===\"version\"?e:o.type===\"array\"?[]:{},a!=null&&(r[i]=a)}}return r},k.bO=Us,k.bP=Pl,k.bQ=function r(e,i){if(Array.isArray(e)){if(!Array.isArray(i)||e.length!==i.length)return!1;for(let o=0;or.type===\"raster\",k.bV=De,k.bW=function(r,e){if(!r)return[{command:\"setStyle\",args:[e]}];let i=[];try{if(!yt(r.version,e.version))return[{command:\"setStyle\",args:[e]}];yt(r.center,e.center)||i.push({command:\"setCenter\",args:[e.center]}),yt(r.state,e.state)||i.push({command:\"setGlobalState\",args:[e.state]}),yt(r.centerAltitude,e.centerAltitude)||i.push({command:\"setCenterAltitude\",args:[e.centerAltitude]}),yt(r.zoom,e.zoom)||i.push({command:\"setZoom\",args:[e.zoom]}),yt(r.bearing,e.bearing)||i.push({command:\"setBearing\",args:[e.bearing]}),yt(r.pitch,e.pitch)||i.push({command:\"setPitch\",args:[e.pitch]}),yt(r.roll,e.roll)||i.push({command:\"setRoll\",args:[e.roll]}),yt(r.sprite,e.sprite)||i.push({command:\"setSprite\",args:[e.sprite]}),yt(r.glyphs,e.glyphs)||i.push({command:\"setGlyphs\",args:[e.glyphs]}),yt(r.transition,e.transition)||i.push({command:\"setTransition\",args:[e.transition]}),yt(r.light,e.light)||i.push({command:\"setLight\",args:[e.light]}),yt(r.terrain,e.terrain)||i.push({command:\"setTerrain\",args:[e.terrain]}),yt(r.sky,e.sky)||i.push({command:\"setSky\",args:[e.sky]}),yt(r.projection,e.projection)||i.push({command:\"setProjection\",args:[e.projection]});let o={},a=[];(function(u,p,g,m){let v;for(v in p=p||{},u=u||{})Object.prototype.hasOwnProperty.call(u,v)&&(Object.prototype.hasOwnProperty.call(p,v)||pc(v,g,m));for(v in p)Object.prototype.hasOwnProperty.call(p,v)&&(Object.prototype.hasOwnProperty.call(u,v)?yt(u[v],p[v])||(u[v].type===\"geojson\"&&p[v].type===\"geojson\"&&Zu(u,p,v)?Oi(g,{command:\"setGeoJSONSourceData\",args:[v,p[v].data]}):fc(v,p,g,m)):pn(v,p,g))})(r.sources,e.sources,a,o);let l=[];r.layers&&r.layers.forEach((u=>{\"source\"in u&&o[u.source]?i.push({command:\"removeLayer\",args:[u.id]}):l.push(u)})),i=i.concat(a),(function(u,p,g){p=p||[];let m=(u=u||[]).map($s),v=p.map($s),_=u.reduce(mc,{}),T=p.reduce(mc,{}),b=m.slice(),P=Object.create(null),C,A,z,L,R;for(let F=0,O=0;Fle?(a=Math.acos(l),u=Math.sin(a),p=Math.sin((1-o)*a)/u,g=Math.sin(o*a)/u):(p=1-o,g=o),r[0]=p*m+g*b,r[1]=p*v+g*P,r[2]=p*_+g*C,r[3]=p*T+g*A,r},k.bm=function(r){let e=new Float64Array(9);var i,o,a,l,u,p,g,m,v,_,T,b,P,C,A,z,L,R;_=(a=(o=r)[0])*(g=a+a),T=(l=o[1])*g,P=(u=o[2])*g,C=u*(m=l+l),z=(p=o[3])*g,L=p*m,R=p*(v=u+u),(i=e)[0]=1-(b=l*m)-(A=u*v),i[3]=T-R,i[6]=P+L,i[1]=T+R,i[4]=1-_-A,i[7]=C-z,i[2]=P-L,i[5]=C+z,i[8]=1-_-b;let F=hr(-Math.asin(ti(e[2],-1,1))),O,j;return Math.hypot(e[5],e[8])<.001?(O=0,j=-hr(Math.atan2(e[3],e[4]))):(O=hr(e[5]===0&&e[8]===0?0:Math.atan2(e[5],e[8])),j=hr(e[1]===0&&e[0]===0?0:Math.atan2(e[1],e[0]))),{roll:O,pitch:F+90,bearing:j}},k.bn=function(r,e){return r.roll==e.roll&&r.pitch==e.pitch&&r.bearing==e.bearing},k.bo=tt,k.bp=Or,k.bq=_s,k.br=Yl,k.bs=gs,k.bt=Bi,k.bu=cr,k.bv=Ei,k.bw=function(r,e,i,o,a){return Bi(o,a,ti((r-e)/(i-e),0,1))},k.bx=function(r,e,i,o){return r[0]=e[0]+i[0]*o,r[1]=e[1]+i[1]*o,r[2]=e[2]+i[2]*o,r},k.by=Si,k.bz=function(){return new Float64Array(3)},k.c=Wr,k.c$=Go,k.c0=class extends yi{constructor(r,e){super(r,e),this.current=Mr}set(r){if(r[12]!==this.current[12]||r[0]!==this.current[0])return this.current=r,void this.gl.uniformMatrix4fv(this.location,!1,r);for(let e=1;e<16;e++)if(r[e]!==this.current[e]){this.current=r,this.gl.uniformMatrix4fv(this.location,!1,r);break}}},k.c1=on,k.c2=class extends yi{constructor(r,e){super(r,e),this.current=[0,0,0]}set(r){r[0]===this.current[0]&&r[1]===this.current[1]&&r[2]===this.current[2]||(this.current=r,this.gl.uniform3f(this.location,r[0],r[1],r[2]))}},k.c3=class extends yi{constructor(r,e){super(r,e),this.current=[0,0]}set(r){r[0]===this.current[0]&&r[1]===this.current[1]||(this.current=r,this.gl.uniform2f(this.location,r[0],r[1]))}},k.c4=ei,k.c5=function(r,e){var i=Math.sin(e),o=Math.cos(e);return r[0]=o,r[1]=i,r[2]=0,r[3]=-i,r[4]=o,r[5]=0,r[6]=0,r[7]=0,r[8]=1,r},k.c6=function(r,e,i){var o=e[0],a=e[1],l=e[2];return r[0]=o*i[0]+a*i[3]+l*i[6],r[1]=o*i[1]+a*i[4]+l*i[7],r[2]=o*i[2]+a*i[5]+l*i[8],r},k.c7=function(r,e,i,o,a,l,u){var p=1/(e-i),g=1/(o-a),m=1/(l-u);return r[0]=-2*p,r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[5]=-2*g,r[6]=0,r[7]=0,r[8]=0,r[9]=0,r[10]=2*m,r[11]=0,r[12]=(e+i)*p,r[13]=(a+o)*g,r[14]=(u+l)*m,r[15]=1,r},k.c8=class extends yi{constructor(r,e){super(r,e),this.current=new Array}set(r){if(r!=this.current){this.current=r;let e=new Float32Array(4*r.length);for(let i=0;i25||o<0||o>=1||i<0||i>=1)},k.cE=function(r,e){return r[0]=e[0],r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[5]=e[1],r[6]=0,r[7]=0,r[8]=0,r[9]=0,r[10]=e[2],r[11]=0,r[12]=0,r[13]=0,r[14]=0,r[15]=1,r},k.cF=class extends is{},k.cG=Nn,k.cH=function(r,e){Wr.REGISTERED_PROTOCOLS[r]=e},k.cI=function(r){delete Wr.REGISTERED_PROTOCOLS[r]},k.cJ=function(r,e){let i={};for(let a=0;abe*ni))}let ue=g?\"center\":a.get(\"text-justify\").evaluate(_,{},r.canonical),he=a.get(\"symbol-placement\")===\"point\"?a.get(\"text-max-width\").evaluate(_,{},r.canonical)*ni:1/0,ae=()=>{r.bucket.allowVerticalPlacement&&Cl(j)&&(A.vertical=zu(z,r.glyphMap,r.glyphPositions,r.imagePositions,T,he,p,oe,\"left\",Q,R,k.ax.vertical,!0,P,b))};if(!g&&ie){let ne=new Set;if(ue===\"auto\")for(let Ee=0;EeK0(p,g,l)),o.layers[u])})(r,i,e),i.finish()},k.cT=function(r,e,i,o,a,l){let u=Uf(r,e,i,a,0);return u=Uf(u,e,o,l,1),u},k.cU=class{constructor(r){this.maxEntries=r,this.map=new Map}get(r){let e=this.map.get(r);return e!==void 0&&(this.map.delete(r),this.map.set(r,e)),e}set(r,e){if(this.map.has(r))this.map.delete(r);else if(this.map.size>=this.maxEntries){let i=this.map.keys().next().value;this.map.delete(i)}this.map.set(r,e)}clear(){this.map.clear()}},k.cV=hp,k.cW=Au,k.cX=Bf,k.cY=function(r,e,i,o,a){return h(this,void 0,void 0,(function*(){if(st())try{return yield Mo(r,e,i,o,a)}catch{}return(function(l,u,p,g,m){let v=l.width,_=l.height;er&&Ir||(er=new OffscreenCanvas(v,_),Ir=er.getContext(\"2d\",{willReadFrequently:!0})),er.width=v,er.height=_,Ir.drawImage(l,0,0,v,_);let T=Ir.getImageData(u,p,g,m);return Ir.clearRect(0,0,v,_),T.data})(r,e,i,o,a)}))},k.cZ=Qd,k.c_=class{constructor(r,e){this.layers={[sc]:this},this.name=sc,this.version=e?e.version:1,this.extent=e?e.extent:4096,this.length=r.length,this.features=r}feature(r){return new Y0(this.features[r],this.extent)}},k.ca=class extends Dn{},k.cb=Hg,k.cc=class extends ca{},k.cd=Mh,k.ce=function(r){return r<=1?1:Math.pow(2,Math.ceil(Math.log(r)/Math.LN2))},k.cf=Xd,k.cg=function(r,e,i){var o=e[0],a=e[1],l=e[2],u=i[3]*o+i[7]*a+i[11]*l+i[15];return r[0]=(i[0]*o+i[4]*a+i[8]*l+i[12])/(u=u||1),r[1]=(i[1]*o+i[5]*a+i[9]*l+i[13])/u,r[2]=(i[2]*o+i[6]*a+i[10]*l+i[14])/u,r},k.ch=class extends rs{},k.ci=class extends t{},k.cj=function(r,e){return r[0]===e[0]&&r[1]===e[1]&&r[2]===e[2]&&r[3]===e[3]&&r[4]===e[4]&&r[5]===e[5]&&r[6]===e[6]&&r[7]===e[7]&&r[8]===e[8]&&r[9]===e[9]&&r[10]===e[10]&&r[11]===e[11]&&r[12]===e[12]&&r[13]===e[13]&&r[14]===e[14]&&r[15]===e[15]},k.ck=function(r,e){var i=r[0],o=r[1],a=r[2],l=r[3],u=r[4],p=r[5],g=r[6],m=r[7],v=r[8],_=r[9],T=r[10],b=r[11],P=r[12],C=r[13],A=r[14],z=r[15],L=e[0],R=e[1],F=e[2],O=e[3],j=e[4],Y=e[5],Q=e[6],oe=e[7],ie=e[8],ue=e[9],he=e[10],ae=e[11],ne=e[12],be=e[13],Ee=e[14],Pe=e[15];return Math.abs(i-L)<=le*Math.max(1,Math.abs(i),Math.abs(L))&&Math.abs(o-R)<=le*Math.max(1,Math.abs(o),Math.abs(R))&&Math.abs(a-F)<=le*Math.max(1,Math.abs(a),Math.abs(F))&&Math.abs(l-O)<=le*Math.max(1,Math.abs(l),Math.abs(O))&&Math.abs(u-j)<=le*Math.max(1,Math.abs(u),Math.abs(j))&&Math.abs(p-Y)<=le*Math.max(1,Math.abs(p),Math.abs(Y))&&Math.abs(g-Q)<=le*Math.max(1,Math.abs(g),Math.abs(Q))&&Math.abs(m-oe)<=le*Math.max(1,Math.abs(m),Math.abs(oe))&&Math.abs(v-ie)<=le*Math.max(1,Math.abs(v),Math.abs(ie))&&Math.abs(_-ue)<=le*Math.max(1,Math.abs(_),Math.abs(ue))&&Math.abs(T-he)<=le*Math.max(1,Math.abs(T),Math.abs(he))&&Math.abs(b-ae)<=le*Math.max(1,Math.abs(b),Math.abs(ae))&&Math.abs(P-ne)<=le*Math.max(1,Math.abs(P),Math.abs(ne))&&Math.abs(C-be)<=le*Math.max(1,Math.abs(C),Math.abs(be))&&Math.abs(A-Ee)<=le*Math.max(1,Math.abs(A),Math.abs(Ee))&&Math.abs(z-Pe)<=le*Math.max(1,Math.abs(z),Math.abs(Pe))},k.cl=function(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r[6]=e[6],r[7]=e[7],r[8]=e[8],r[9]=e[9],r[10]=e[10],r[11]=e[11],r[12]=e[12],r[13]=e[13],r[14]=e[14],r[15]=e[15],r},k.cm=r=>r.type===\"circle\",k.cn=r=>r.type===\"heatmap\",k.co=r=>r.type===\"line\",k.cp=r=>r.type===\"fill\",k.cq=r=>r.type===\"fill-extrusion\",k.cr=r=>r.type===\"hillshade\",k.cs=r=>r.type===\"color-relief\",k.ct=r=>r.type===\"background\",k.cu=r=>r.type===\"custom\",k.cv=ur,k.cw=function(r,e,i){if(e<=0)return r;let o=1/e;return i===void 0||Math.abs(i)<1e-10?Math.round(r*o)/o:(i>0?Math.ceil(r*o-1e-9):Math.floor(r*o+1e-10))/o},k.cx=function(r,e,i){let o=ot(e.x-i.x,e.y-i.y),a=ot(r.x-i.x,r.y-i.y);var l,u;return hr(Math.atan2(o[0]*a[1]-o[1]*a[0],(l=o)[0]*(u=a)[0]+l[1]*u[1]))},k.cy=un,k.cz=function(r,e){var i;if(!Ns[e])return!1;let o=r?.target,a=((i=o?.ownerDocument)===null||i===void 0?void 0:i.defaultView)||window;return r instanceof a.MouseEvent||r instanceof a.WheelEvent},k.d=mt,k.d0=class{constructor(r,e){let i=(e=this.options=Object.assign({},Bg,e)).debug;if(i&&console.time(\"preprocess data\"),e.maxZoom<0||e.maxZoom>24)throw new Error(\"maxZoom should be in the 0-24 range\");if(e.promoteId&&e.generateId)throw new Error(\"promoteId and generateId cannot be used together.\");let o=Bh(r,e);i&&(console.timeEnd(\"preprocess data\"),console.log(\"index: maxZoom: %d, maxPoints: %d\",e.indexMaxZoom,e.indexMaxPoints),console.time(\"generate tiles\")),o=Nh(o,e),e.updateable&&(this.source=o),this.initializeIndex(o,e)}initializeIndex(r,e){this.tileIndex=e.cluster?new Ag(e.clusterOptions):new Fg(e),r.length&&this.tileIndex.initialize(r)}getTile(r,e,i){return e=+e,i=+i,(r=+r)<0||r>24?null:this.tileIndex.getTile(r,e,i)}updateData(r,e){let i=this.options;if(!i.updateable)throw new Error(\"to update tile geojson `updateable` option must be set to true\");let{affected:o,source:a}=(function(l,u,p){let g=(function(v,_){return v?{removeAll:v.removeAll,remove:new Set(v.remove||[]),add:new Map(v.add?.map((T=>[_.promoteId?T.properties[_.promoteId]:T.id,T]))),update:new Map(v.update?.map((T=>[T.id,T])))}:{remove:new Set,add:new Map,update:new Map}})(u,p),m=[];if(g.removeAll&&(m=l,l=[]),g.remove.size||g.add.size){let v=[];for(let _ of l)(g.remove.has(_.id)||g.add.has(_.id))&&v.push(_);if(v.length){m.push(...v);let _=new Set(v.map((T=>T.id)));l=l.filter((T=>!_.has(T.id)))}if(g.add.size){let _=Bh({type:\"FeatureCollection\",features:Array.from(g.add.values())},p);_=Nh(_,p),m.push(..._),l.push(..._)}}if(g.update.size){let v=new Map,_=[];for(let T of l)g.update.has(T.id)?v.set(T.id,[...v.get(T.id)||[],T]):_.push(T);for(let[T,b]of g.update){let P=v.get(T);if(!P||P.length===0)continue;let C=Ig(P,b,p);m.push(...P,...C),_.push(...C)}l=_}return{affected:m,source:l}})(this.source,r,i);e&&({affected:o,source:a}=this.filterUpdate(a,o,e)),o.length&&(this.source=a,this.tileIndex.updateIndex(a,o,i))}filterUpdate(r,e,i){let o=new Set;for(let a of r)a.id!=null&&(i(Pu(a))||(e.push(a),o.add(a.id)));return{affected:e,source:r=r.filter((a=>!o.has(a.id)))}}getData(){if(!this.options.updateable)throw new Error(\"to retrieve data the `updateable` option must be set to true\");return{type:\"FeatureCollection\",features:this.source.map((r=>Pu(r)))}}updateClusterOptions(r,e){let i=this.options.cluster;this.options.cluster=r,this.options.clusterOptions=e,i!=r?this.initializeIndex(this.source,this.options):this.tileIndex.updateIndex(this.source,[],this.options)}getClusterExpansionZoom(r){return this.tileIndex.getClusterExpansionZoom(r)}getClusterChildren(r){return this.tileIndex.getChildren(r)}getClusterLeaves(r,e,i){return this.tileIndex.getLeaves(r,e,i)}},k.d1=Fr,k.e=Mi,k.f=dr,k.g=Ar,k.h=r=>h(void 0,void 0,void 0,(function*(){if(r.byteLength===0)return createImageBitmap(new ImageData(1,1));let e=new Blob([new Uint8Array(r)],{type:\"image/png\"});try{return createImageBitmap(e)}catch(i){throw new Error(`Could not load image because of ${mt(i).message}. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.`)}})),k.i=zt,k.j=r=>new Promise(((e,i)=>{let o=new Image;o.onload=()=>{e(o),URL.revokeObjectURL(o.src),o.onload=null,window.requestAnimationFrame((()=>o.src=So))},o.onerror=()=>i(new Error(\"Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.\"));let a=new Blob([new Uint8Array(r)],{type:\"image/png\"});o.src=r.byteLength?URL.createObjectURL(a):So})),k.k=(r,e)=>hn(Mi(r,{type:\"json\"}),e),k.l=qn,k.m=hn,k.n=Co,k.o=(r,e)=>hn(Mi(r,{type:\"arrayBuffer\"}),e),k.p=Np,k.q=function(r){return new Au(r).readFields(c0,[])},k.r=function(r){return/[\\u02EA\\u02EB\\u1100-\\u11FF\\u2E80-\\u2FDF\\u3000-\\u30FF\\u3105-\\u312F\\u3131-\\u318E\\u31A0-\\u4DBF\\u4E00-\\uA48C\\uA490-\\uA4C6\\uA960-\\uA97C\\uAC00-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFE10-\\uFE1F\\uFE30-\\uFE4F\\uFF00-\\uFFEF]|\\uD81B[\\uDFE0-\\uDFFF]|[\\uD81C-\\uD822\\uD840-\\uD868\\uD86A-\\uD86D\\uD86F-\\uD872\\uD874-\\uD879\\uD880-\\uD883\\uD885-\\uD88C][\\uDC00-\\uDFFF]|\\uD823[\\uDC00-\\uDCD5\\uDCFF-\\uDD1E\\uDD80-\\uDDF2]|\\uD82B[\\uDFF0-\\uDFFF]|\\uD82C[\\uDC00-\\uDEFB]|\\uD83C[\\uDE00-\\uDEFF]|\\uD869[\\uDC00-\\uDEDF\\uDF00-\\uDFFF]|\\uD86E[\\uDC00-\\uDC1D\\uDC20-\\uDFFF]|\\uD873[\\uDC00-\\uDEAD\\uDEB0-\\uDFFF]|\\uD87A[\\uDC00-\\uDFE0\\uDFF0-\\uDFFF]|\\uD87B[\\uDC00-\\uDE5D]|\\uD87E[\\uDC00-\\uDE1D]|\\uD884[\\uDC00-\\uDF4A\\uDF50-\\uDFFF]|\\uD88D[\\uDC00-\\uDC79]/gim.test(String.fromCodePoint(r))},k.s=Zr,k.t=$l,k.u=Ii,k.v=Jo,k.w=xt,k.x=de,k.y=kl,k.z=Hi})),ye(\"worker\",[\"./shared\"],(function(k){\"use strict\";class h{constructor(W,K){this.keyCache={},W&&this.replace(W,K)}replace(W,K){this._layerConfigs={},this._layers={},this.update(W,[],K)}update(W,K,ee){for(let Me of W){this._layerConfigs[Me.id]=Me;let je=this._layers[Me.id]=k.bT(Me,ee);je._featureFilter=k.ah(je.filter,ee),this.keyCache[Me.id]&&delete this.keyCache[Me.id]}for(let Me of K)delete this.keyCache[Me],delete this._layerConfigs[Me],delete this._layers[Me];this.familiesBySource={};let ve=k.cJ(Object.values(this._layerConfigs),this.keyCache);for(let Me of ve){let je=Me.map((vt=>this._layers[vt.id])),Oe=je[0];if(Oe.isHidden())continue;let $e=Oe.source||\"\",Xe=this.familiesBySource[$e];Xe||(Xe=this.familiesBySource[$e]={});let ot=Oe.sourceLayer||k.ag,qe=Xe[ot];qe||(qe=Xe[ot]=[]),qe.push(je)}}}class pe{constructor(W){let K={},ee=[];for(let Oe in W){let $e=W[Oe],Xe=K[Oe]={};for(let ot in $e){let qe=$e[+ot];if(!qe||qe.bitmap.width===0||qe.bitmap.height===0)continue;let vt={x:0,y:0,w:qe.bitmap.width+2,h:qe.bitmap.height+2};ee.push(vt),Xe[ot]={rect:vt,metrics:qe.metrics}}}let{w:ve,h:Me}=k.p(ee),je=new k.t({width:ve||1,height:Me||1});for(let Oe in W){let $e=W[Oe];for(let Xe in $e){let ot=$e[+Xe];if(!ot||ot.bitmap.width===0||ot.bitmap.height===0)continue;let qe=K[Oe][Xe].rect;k.t.copy(ot.bitmap,je,{x:0,y:0},{x:qe.x+1,y:qe.y+1},ot.bitmap)}}this.image=je,this.positions=K}}k.cK(\"GlyphAtlas\",pe);class Ve{constructor(W){this.tileID=new k.a3(W.tileID.overscaledZ,W.tileID.wrap,W.tileID.canonical.z,W.tileID.canonical.x,W.tileID.canonical.y),this.uid=W.uid,this.zoom=W.zoom,this.pixelRatio=W.pixelRatio,this.tileSize=W.tileSize,this.source=W.source,this.overscaling=this.tileID.overscaleFactor(),this.showCollisionBoxes=W.showCollisionBoxes,this.collectResourceTiming=!!W.collectResourceTiming,this.returnDependencies=!!W.returnDependencies,this.promoteId=W.promoteId,this.inFlightDependencies=[]}parse(W,K,ee,ve,Me){return k._(this,void 0,void 0,(function*(){this.status=\"parsing\",this.data=W,this.collisionBoxArray=new k.ae;let je=new k.cL(Object.keys(W.layers).sort()),Oe=new k.cM(this.tileID,this.promoteId);Oe.bucketLayerIDs=[];let $e={},Xe={featureIndex:Oe,iconDependencies:{},patternDependencies:{},glyphDependencies:{},dashDependencies:{},availableImages:ee,subdivisionGranularity:Me},ot=K.familiesBySource[this.source];for(let De in ot){let Tt=W.layers[De];if(!Tt)continue;Tt.version===1&&k.w(`Vector tile source \"${this.source}\" layer \"${De}\" does not use vector tile spec v2 and therefore may have some rendering errors.`);let xt=je.encode(De),ht=[];for(let zt=0;ztxr.id))))}}let qe=k.bY(Xe.glyphDependencies,(De=>Object.keys(De).map(Number)));for(let De of this.inFlightDependencies)De?.abort();this.inFlightDependencies=[];let vt=Promise.resolve({});if(Object.keys(qe).length){let De=new AbortController;this.inFlightDependencies.push(De),vt=ve.sendAsync({type:\"GG\",data:{stacks:qe,source:this.source,tileID:this.tileID,type:\"glyphs\"}},De)}let mt=Object.keys(Xe.iconDependencies),Si=Promise.resolve({});if(mt.length){let De=new AbortController;this.inFlightDependencies.push(De),Si=ve.sendAsync({type:\"GI\",data:{icons:mt,source:this.source,tileID:this.tileID,type:\"icons\"}},De)}let Bi=Object.keys(Xe.patternDependencies),cr=Promise.resolve({});if(Bi.length){let De=new AbortController;this.inFlightDependencies.push(De),cr=ve.sendAsync({type:\"GI\",data:{icons:Bi,source:this.source,tileID:this.tileID,type:\"patterns\"}},De)}let ur=Xe.dashDependencies,un=Promise.resolve({});if(Object.keys(ur).length){let De=new AbortController;this.inFlightDependencies.push(De),un=ve.sendAsync({type:\"GDA\",data:{dashes:ur}},De)}let[ti,$r,Mi,fe]=yield Promise.all([vt,Si,cr,un]),ke=new pe(ti),Ne=new k.cN($r,Mi);for(let De in $e){let Tt=$e[De];Tt instanceof k.af?(xe(Tt.layers,this.zoom,ee),k.cO({bucket:Tt,glyphMap:ti,glyphPositions:ke.positions,imageMap:$r,imagePositions:Ne.iconPositions,showCollisionBoxes:this.showCollisionBoxes,canonical:this.tileID.canonical,subdivisionGranularity:Xe.subdivisionGranularity})):Tt.hasDependencies&&(Tt instanceof k.cP||Tt instanceof k.cQ||Tt instanceof k.cR)&&(xe(Tt.layers,this.zoom,ee),Tt.addFeatures(Xe,this.tileID.canonical,Ne.patternPositions,fe))}return this.status=\"done\",{buckets:Object.values($e).filter((De=>!De.isEmpty())),featureIndex:Oe,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:ke.image,imageAtlas:Ne,dashPositions:fe,glyphMap:this.returnDependencies?ti:null,iconMap:this.returnDependencies?$r:null,glyphPositions:this.returnDependencies?ke.positions:null}}))}}function xe(it,W,K){let ee=new k.J(W);for(let ve of it)ve.recalculate(ee,K)}class et{constructor(){this.loading={},this.loaded={},this.parsing={}}startLoading(W,K){this.loading[W]=K}finishLoading(W){delete this.loading[W]}abort(W){let K=this.loading[W];K?.abort&&(K.abort.abort(),delete this.loading[W])}setParsing(W,K){this.parsing[W]=K}consumeParsing(W){let K=this.parsing[W];if(K)return delete this.parsing[W],K}clearParsing(W){delete this.parsing[W]}markLoaded(W,K){this.loaded[W]=K}getLoaded(W){let K=this.loaded[W];if(K)return K}removeLoaded(W){delete this.loaded[W]}clearLoaded(){this.loaded={}}}class pt{constructor(W){this.start=`${W}#start`,this.end=`${W}#end`,this.measure=W,performance.mark(this.start)}finish(){performance.mark(this.end);let W=performance.getEntriesByName(this.measure);return W.length===0&&(performance.measure(this.measure,this.start,this.end),W=performance.getEntriesByName(this.measure),performance.clearMarks(this.start),performance.clearMarks(this.end),performance.clearMeasures(this.measure)),W}}class Ge{constructor(W,K,ee,ve,Me){this.type=W,this.properties=ee||{},this.extent=Me,this.pointsArray=K,this.id=ve}loadGeometry(){return this.pointsArray.map((W=>W.map((K=>new k.P(K.x,K.y)))))}}class Ye{constructor(W,K,ee){this.version=2,this._myFeatures=W,this.name=K,this.length=W.length,this.extent=ee}feature(W){return this._myFeatures[W]}}class Fe{constructor(){this.layers={}}addLayer(W){this.layers[W.name]=W}}function He(it){let W=k.cS(it);return W.byteOffset===0&&W.byteLength===W.buffer.byteLength||(W=new Uint8Array(W)),{vectorTile:it,rawData:W.buffer}}function st(it,W,K){let{extent:ee}=it,ve=Math.pow(2,K.z-W.z),Me=(K.x-W.x*ve)*ee,je=(K.y-W.y*ve)*ee,Oe=[];for(let $e=0;$e0&&ot.addLayer(Bi)}let vt=He(ot);return this.overzoomedTileResultCache.set($e,vt),vt}reloadTile(W){return k._(this,void 0,void 0,(function*(){let K=W.uid,ee=this.tileState.getLoaded(K);if(!ee)throw new Error(\"Should not be trying to reload a tile that was never loaded or has been removed\");if(ee.showCollisionBoxes=W.showCollisionBoxes,ee.status===\"parsing\"){let ve=this.tileState.consumeParsing(K);return yield this._parseWorkerTile(ee,W,ve)}if(ee.status===\"done\"&&ee.vectorTile)return yield this._parseWorkerTile(ee,W)}))}abortTile(W){return k._(this,void 0,void 0,(function*(){this.tileState.abort(W.uid)}))}removeTile(W){return k._(this,void 0,void 0,(function*(){this.tileState.removeLoaded(W.uid)}))}}class ut{constructor(){this.loaded={}}loadTile(W){return k._(this,void 0,void 0,(function*(){let{uid:K,encoding:ee,rawImageData:ve,redFactor:Me,greenFactor:je,blueFactor:Oe,baseShift:$e}=W,Xe=ve.width+2,ot=ve.height+2,qe=k.b(ve)?new k.R({width:Xe,height:ot},yield k.cY(ve,-1,-1,Xe,ot)):ve,vt=new k.cZ(K,qe,ee,Me,je,Oe,$e);return this.loaded||(this.loaded={}),this.loaded[K]=vt,vt}))}removeTile(W){let K=this.loaded,ee=W.uid;K?.[ee]&&delete K[ee]}}class ei{constructor(W,K,ee,ve=Qi){this.actor=W,this.layerIndex=K,this.availableImages=ee,this.tileState=new et,this._createGeoJSONIndex=ve}loadVectorTile(W){if(!this._geoJSONIndex)throw new Error(\"Unable to parse the data into a cluster or geojson\");let{z:K,x:ee,y:ve}=W.tileID.canonical,Me=this._geoJSONIndex.getTile(K,ee,ve);return Me?He(new k.c_(Me.features,{version:2,extent:k.a6})):null}loadTile(W){return k._(this,void 0,void 0,(function*(){let{uid:K}=W,ee=new Ve(W);ee.abort=new AbortController;try{let ve=this.loadVectorTile(W);if(!ve)return null;let{vectorTile:Me,rawData:je}=ve;ee.vectorTile=Me,this.tileState.markLoaded(K,ee);let Oe={rawData:je};this.tileState.setParsing(K,Oe);try{return yield this._parseWorkerTile(ee,W,Oe)}finally{this.tileState.clearParsing(K)}}catch(ve){throw ee.status=\"done\",this.tileState.markLoaded(K,ee),ve}}))}_reloadLoadedTile(W){return k._(this,void 0,void 0,(function*(){let K=W.uid,ee=this.tileState.getLoaded(K);if(!ee)throw new Error(\"Should not be trying to reload a tile that was never loaded or has been removed\");if(ee.showCollisionBoxes=W.showCollisionBoxes,ee.status===\"parsing\"){let ve=this.tileState.consumeParsing(K);return yield this._parseWorkerTile(ee,W,ve)}if(ee.status===\"done\"&&ee.vectorTile)return yield this._parseWorkerTile(ee,W)}))}_parseWorkerTile(W,K,ee){return k._(this,void 0,void 0,(function*(){let ve=yield W.parse(W.vectorTile,this.layerIndex,this.availableImages,this.actor,K.subdivisionGranularity);if(ee){let{rawData:Me}=ee;ve=k.e({rawTileData:Me.slice(0),encoding:\"mvt\"},ve)}return ve}))}abortTile(W){return k._(this,void 0,void 0,(function*(){this.tileState.abort(W.uid)}))}removeTile(W){return k._(this,void 0,void 0,(function*(){this.tileState.removeLoaded(W.uid)}))}loadData(W){return k._(this,void 0,void 0,(function*(){var K;(K=this._pendingRequest)===null||K===void 0||K.abort();let ee=this._startRequestTiming(W);this._pendingRequest=new AbortController;try{yield this.loadAndProcessGeoJSON(W,this._pendingRequest),delete this._pendingRequest,this.tileState.clearLoaded();let ve={};return W.request&&(ve.data=W.data),this._finishRequestTiming(ee,W,ve),ve}catch(ve){if(delete this._pendingRequest,!k.$(ve))throw ve;return{abandoned:!0}}}))}_startRequestTiming(W){var K;if(!((K=W.request)===null||K===void 0)&&K.collectResourceTiming)return new pt(W.request.url)}_finishRequestTiming(W,K,ee){let ve=W?.finish();ve&&(ee.resourceTiming={[K.source]:JSON.parse(JSON.stringify(ve))})}reloadTile(W){return this.tileState.getLoaded(W.uid)?this._reloadLoadedTile(W):this.loadTile(W)}loadAndProcessGeoJSON(W,K){return k._(this,void 0,void 0,(function*(){var ee;if(W.request&&(W.data=(yield k.k(W.request,K)).data),W.data)return W.data=this._filterGeoJSON(W.data,W.filter),void(this._geoJSONIndex=this._createGeoJSONIndex(W.data,W));if(W.dataDiff)return(ee=this._geoJSONIndex)!==null&&ee!==void 0||(this._geoJSONIndex=this._createGeoJSONIndex({type:\"FeatureCollection\",features:[]},W)),void this._geoJSONIndex.updateData(W.dataDiff,this._getFilterPredicate(W.filter));if(W.updateCluster&&this._geoJSONIndex.updateClusterOptions(W.geojsonVtOptions.cluster,Ti(W)),this._geoJSONIndex==null)throw new Error(`Input data given to '${W.source}' is not a valid GeoJSON object.`)}))}_filterGeoJSON(W,K){if(W.type!==\"FeatureCollection\")return W;let ee=this._getFilterPredicate(K);return ee?{type:\"FeatureCollection\",features:W.features.filter((ve=>ee(ve)))}:W}_getFilterPredicate(W){if(typeof W!=\"boolean\"&&!W?.length)return;let K=k.c$(W,{type:\"boolean\",\"property-type\":\"data-driven\",overridable:!1,transition:!1});if(K.result===\"error\")throw new Error(K.value.map((ee=>`${ee.key}: ${ee.message}`)).join(\", \"));return ee=>K.value.evaluate({zoom:0},ee)}removeSource(W){return k._(this,void 0,void 0,(function*(){var K;(K=this._pendingRequest)===null||K===void 0||K.abort()}))}getClusterExpansionZoom(W){return this._geoJSONIndex.getClusterExpansionZoom(W.clusterId)}getClusterChildren(W){return this._geoJSONIndex.getClusterChildren(W.clusterId)}getClusterLeaves(W){return this._geoJSONIndex.getClusterLeaves(W.clusterId,W.limit,W.offset)}}function Qi(it,W){let K=k.e(W.geojsonVtOptions||{},{updateable:!0,clusterOptions:Ti(W)});return new k.d0(it,K)}function Ti({geojsonVtOptions:it,clusterProperties:W}){if(!W||!it.clusterOptions)return it.clusterOptions;let K={},ee={},ve={accumulated:null,zoom:0},Me={properties:null},je=Object.keys(W);for(let Oe of je){let[$e,Xe]=W[Oe],ot=k.c$(Xe),qe=k.c$(typeof $e==\"string\"?[$e,[\"accumulated\"],[\"get\",Oe]]:$e);K[Oe]=ot.value,ee[Oe]=qe.value}return it.clusterOptions.map=Oe=>{Me.properties=Oe;let $e={};for(let Xe of je)$e[Xe]=K[Xe].evaluate(ve,Me);return $e},it.clusterOptions.reduce=(Oe,$e)=>{Me.properties=$e;for(let Xe of je)ve.accumulated=Oe[Xe],Oe[Xe]=ee[Xe].evaluate(ve,Me)},it.clusterOptions}class Fi{constructor(W){this.self=W,this.actor=new k.N(W),this.layerIndexes={},this.availableImages={},this.workerSources={},this.demWorkerSources={},this.externalWorkerSourceTypes={},this.globalStates=new Map,this.self.registerWorkerSource=(K,ee)=>{if(this.externalWorkerSourceTypes[K])throw new Error(`Worker source with name \"${K}\" already registered.`);this.externalWorkerSourceTypes[K]=ee},this.self.addProtocol=k.cH,this.self.removeProtocol=k.cI,this.self.registerRTLTextPlugin=K=>{k.d1.setMethods(K)},this.self.makeRequest=k.m,this.actor.registerMessageHandler(\"LDT\",((K,ee)=>this._getDEMWorkerSource(K,ee.source).loadTile(ee))),this.actor.registerMessageHandler(\"RDT\",((K,ee)=>k._(this,void 0,void 0,(function*(){this._getDEMWorkerSource(K,ee.source).removeTile(ee)})))),this.actor.registerMessageHandler(\"GCEZ\",((K,ee)=>k._(this,void 0,void 0,(function*(){return this._getWorkerSource(K,ee.type,ee.source).getClusterExpansionZoom(ee)})))),this.actor.registerMessageHandler(\"GCC\",((K,ee)=>k._(this,void 0,void 0,(function*(){return this._getWorkerSource(K,ee.type,ee.source).getClusterChildren(ee)})))),this.actor.registerMessageHandler(\"GCL\",((K,ee)=>k._(this,void 0,void 0,(function*(){return this._getWorkerSource(K,ee.type,ee.source).getClusterLeaves(ee)})))),this.actor.registerMessageHandler(\"LD\",((K,ee)=>this._getWorkerSource(K,ee.type,ee.source).loadData(ee))),this.actor.registerMessageHandler(\"LT\",((K,ee)=>this._getWorkerSource(K,ee.type,ee.source).loadTile(ee))),this.actor.registerMessageHandler(\"RT\",((K,ee)=>this._getWorkerSource(K,ee.type,ee.source).reloadTile(ee))),this.actor.registerMessageHandler(\"AT\",((K,ee)=>this._getWorkerSource(K,ee.type,ee.source).abortTile(ee))),this.actor.registerMessageHandler(\"RMT\",((K,ee)=>this._getWorkerSource(K,ee.type,ee.source).removeTile(ee))),this.actor.registerMessageHandler(\"RS\",((K,ee)=>k._(this,void 0,void 0,(function*(){var ve,Me;if(!(!((Me=(ve=this.workerSources[K])===null||ve===void 0?void 0:ve[ee.type])===null||Me===void 0)&&Me[ee.source]))return;let je=this.workerSources[K][ee.type][ee.source];delete this.workerSources[K][ee.type][ee.source],je.removeSource!==void 0&&je.removeSource(ee)})))),this.actor.registerMessageHandler(\"RM\",(K=>k._(this,void 0,void 0,(function*(){delete this.layerIndexes[K],delete this.availableImages[K],delete this.workerSources[K],delete this.demWorkerSources[K],this.globalStates.delete(K)})))),this.actor.registerMessageHandler(\"SR\",((K,ee)=>k._(this,void 0,void 0,(function*(){this.referrer=ee})))),this.actor.registerMessageHandler(\"SRPS\",((K,ee)=>this._syncRTLPluginState(K,ee))),this.actor.registerMessageHandler(\"IS\",((K,ee)=>k._(this,void 0,void 0,(function*(){this.self.importScripts(ee)})))),this.actor.registerMessageHandler(\"SI\",((K,ee)=>this._setImages(K,ee))),this.actor.registerMessageHandler(\"UL\",((K,ee)=>k._(this,void 0,void 0,(function*(){this._getLayerIndex(K).update(ee.layers,ee.removedIds,this._getGlobalState(K))})))),this.actor.registerMessageHandler(\"UGS\",((K,ee)=>k._(this,void 0,void 0,(function*(){let ve=this._getGlobalState(K);for(let Me in ee)ve[Me]=ee[Me]})))),this.actor.registerMessageHandler(\"SL\",((K,ee)=>k._(this,void 0,void 0,(function*(){this._getLayerIndex(K).replace(ee,this._getGlobalState(K))}))))}_getGlobalState(W){let K=this.globalStates.get(W);return K||(K={},this.globalStates.set(W,K)),K}_setImages(W,K){return k._(this,void 0,void 0,(function*(){this.availableImages[W]=K;for(let ee in this.workerSources[W]){let ve=this.workerSources[W][ee];for(let Me in ve)ve[Me].availableImages=K}}))}_syncRTLPluginState(W,K){return k._(this,void 0,void 0,(function*(){return yield k.d1.syncState(K,this.self.importScripts)}))}_getAvailableImages(W){let K=this.availableImages[W];return K||(K=[]),K}_getLayerIndex(W){let K=this.layerIndexes[W];return K||(K=this.layerIndexes[W]=new h),K}_getWorkerSource(W,K,ee){var ve,Me;if((ve=this.workerSources)[W]||(ve[W]={}),(Me=this.workerSources[W])[K]||(Me[K]={}),!this.workerSources[W][K][ee]){let je={sendAsync:(Oe,$e)=>(Oe.targetMapId=W,this.actor.sendAsync(Oe,$e))};switch(K){case\"vector\":this.workerSources[W][K][ee]=new le(je,this._getLayerIndex(W),this._getAvailableImages(W));break;case\"geojson\":this.workerSources[W][K][ee]=new ei(je,this._getLayerIndex(W),this._getAvailableImages(W));break;default:this.workerSources[W][K][ee]=new this.externalWorkerSourceTypes[K](je,this._getLayerIndex(W),this._getAvailableImages(W))}}return this.workerSources[W][K][ee]}_getDEMWorkerSource(W,K){var ee,ve;return(ee=this.demWorkerSources)[W]||(ee[W]={}),(ve=this.demWorkerSources[W])[K]||(ve[K]=new ut),this.demWorkerSources[W][K]}}return k.i(self)&&(self.worker=new Fi(self)),Fi})),ye(\"index\",[\"exports\",\"./shared\"],(function(k,h){\"use strict\";var pe=\"5.24.0\";function Ve(){var d=new h.A(4);return h.A!=Float32Array&&(d[1]=0,d[2]=0),d[0]=1,d[3]=1,d}let xe,et,pt,Ge={frame(d,t,n,s){let c=s||window,f=c.requestAnimationFrame((x=>{y(),t(x)})),{unsubscribe:y}=h.s(d.signal,\"abort\",(()=>{y(),c.cancelAnimationFrame(f),n(new h.a(d.signal.reason))}),!1)},frameAsync(d,t){return new Promise(((n,s)=>{this.frame(d,n,s,t)}))},getImageData(d,t=0){return this.getImageCanvasContext(d).getImageData(-t,-t,d.width+2*t,d.height+2*t)},getImageCanvasContext(d){let t=window.document.createElement(\"canvas\"),n=t.getContext(\"2d\",{willReadFrequently:!0});if(!n)throw new Error(\"failed to create canvas 2d context\");return t.width=d.width,t.height=d.height,n.drawImage(d,0,0,d.width,d.height),n},resolveURL:d=>(xe||(xe=document.createElement(\"a\")),xe.href=d,xe.href),hardwareConcurrency:typeof navigator<\"u\"&&navigator.hardwareConcurrency||4,get prefersReducedMotion(){return pt!==void 0?pt:!!matchMedia&&(et!=null||(et=matchMedia(\"(prefers-reduced-motion: reduce)\")),et.matches)},set prefersReducedMotion(d){pt=d}},Ye=new class{constructor(){this._frozenAt=null}getCurrentTime(){return this._frozenAt!==null?this._frozenAt:performance.now()}setNow(d){this._frozenAt=d}restoreNow(){this._frozenAt=null}isFrozen(){return this._frozenAt!==null}};function Fe(){return Ye.getCurrentTime()}var He,st;class le{static create(t,n,s){let c=window.document.createElement(t);return n!==void 0&&(c.className=n),s&&s.appendChild(c),c}static createNS(t,n){return window.document.createElementNS(t,n)}static disableDrag(){le.docStyle&&le.selectProp&&(le.userSelect=le.docStyle[le.selectProp],le.docStyle[le.selectProp]=\"none\")}static enableDrag(){le.docStyle&&le.selectProp&&(le.docStyle[le.selectProp]=le.userSelect)}static suppressClickInternal(t){t.preventDefault(),t.stopPropagation(),window.removeEventListener(\"click\",le.suppressClickInternal,!0)}static suppressClick(){window.addEventListener(\"click\",le.suppressClickInternal,!0),window.setTimeout((()=>{window.removeEventListener(\"click\",le.suppressClickInternal,!0)}),0)}static getScale(t){let n=t.getBoundingClientRect();return{x:n.width/t.offsetWidth||1,y:n.height/t.offsetHeight||1,boundingClientRect:n}}static getPoint(t,n,s){let c=n.boundingClientRect;return new h.P((s.clientX-c.left)/n.x-t.clientLeft,(s.clientY-c.top)/n.y-t.clientTop)}static mousePos(t,n){let s=le.getScale(t);return le.getPoint(t,s,n)}static touchPos(t,n){let s=[],c=le.getScale(t);for(let f of n)s.push(le.getPoint(t,c,f));return s}static sanitize(t){let n=new DOMParser().parseFromString(t,\"text/html\").body||document.createElement(\"body\"),s=n.querySelectorAll(\"script\");for(let c of s)c.remove();return le.clean(n),n.innerHTML}static isPossiblyDangerous(t,n){let s=n.replace(/\\s+/g,\"\").toLowerCase();return!(![\"src\",\"href\",\"xlink:href\"].includes(t)||!s.includes(\"javascript:\")&&!s.includes(\"data:\"))||!!t.startsWith(\"on\")||void 0}static clean(t){let n=t.children;for(let s of n)le.removeAttributes(s),le.clean(s)}static removeAttributes(t){for(let{name:n,value:s}of t.attributes)le.isPossiblyDangerous(n,s)&&t.removeAttribute(n)}}le.docStyle=typeof window<\"u\"&&((He=window.document)===null||He===void 0?void 0:He.documentElement.style),le.selectProp=!le.docStyle||\"userSelect\"in le.docStyle?\"userSelect\":\"webkitUserSelect\",(function(d){let t,n,s,c;d.resetRequestQueue=()=>{t=[],n=0,s=0,c={}},d.addThrottleControl=w=>{let S=s++;return c[S]=w,S},d.removeThrottleControl=w=>{delete c[w],y()},d.getImage=(w,S,M=!0)=>new Promise(((E,I)=>{w.headers||(w.headers={}),w.headers.accept=\"image/webp,*/*\",h.e(w,{type:\"image\"}),t.push({abortController:S,requestParameters:w,supportImageRefresh:M,state:\"queued\",onError:D=>{I(D)},onSuccess:D=>{E(D)}}),y()}));let f=w=>h._(this,void 0,void 0,(function*(){w.state=\"running\";let{requestParameters:S,supportImageRefresh:M,onError:E,onSuccess:I,abortController:D}=w,B=M===!1&&!h.i(self)&&!h.g(S.url)&&(!S.headers||Object.keys(S.headers).reduce(((N,G)=>N&&G===\"accept\"),!0));n++;let V=B?x(S,D):h.m(S,D);try{let N=yield V;delete w.abortController,w.state=\"completed\",N.data instanceof HTMLImageElement||h.b(N.data)?I(N):N.data&&I({data:yield(q=N.data,typeof createImageBitmap==\"function\"?h.h(q):h.j(q)),cacheControl:N.cacheControl,expires:N.expires})}catch(N){delete w.abortController,E(h.d(N))}finally{n--,y()}var q})),y=()=>{let w=(()=>{for(let S of Object.keys(c))if(c[S]())return!0;return!1})()?h.c.MAX_PARALLEL_IMAGE_REQUESTS_PER_FRAME:h.c.MAX_PARALLEL_IMAGE_REQUESTS;for(let S=n;S0;S++){let M=t.shift();M.abortController.signal.aborted?S--:f(M)}},x=(w,S)=>new Promise(((M,E)=>{let I=new Image,D=w.url,B=w.credentials;B&&B===\"include\"?I.crossOrigin=\"use-credentials\":(B&&B===\"same-origin\"||!h.f(D))&&(I.crossOrigin=\"anonymous\"),S.signal.addEventListener(\"abort\",(()=>{I.src=\"\",E(new h.a(S.signal.reason))})),I.fetchPriority=\"high\",I.onload=()=>{I.onerror=I.onload=null,M({data:I})},I.onerror=()=>{I.onerror=I.onload=null,S.signal.aborted||E(new Error(\"Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.\"))},I.src=D}))})(st||(st={})),st.resetRequestQueue();class ut{constructor(t){this._transformRequestFn=t??null}transformRequest(t,n){return this._transformRequestFn&&this._transformRequestFn(t,n)||{url:t}}setTransformRequest(t){this._transformRequestFn=t}}function ei(d){let t=[];if(typeof d==\"string\")t.push({id:\"default\",url:d});else if(d&&d.length>0){let n=[];for(let{id:s,url:c}of d){let f=`${s}${c}`;n.includes(f)||(n.push(f),t.push({id:s,url:c}))}}return t}function Qi(d,t,n){try{let s=new URL(d);return s.pathname+=`${t}${n}`,s.toString()}catch{throw new Error(`Invalid sprite URL \"${d}\", must be absolute. Modify style specification directly or use TransformStyleFunction to correct the issue dynamically`)}}function Ti(d){let{userImage:t}=d;return!(!t?.render||!t.render()||(d.data.replace(new Uint8Array(t.data.buffer)),0))}class Fi extends h.E{constructor(){super(),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new h.R({width:1,height:1}),this.dirty=!0}destroy(){this.atlasTexture&&(this.atlasTexture.destroy(),this.atlasTexture=null);for(let t of Object.keys(this.images))this.removeImage(t);this.patterns={},this.atlasImage=new h.R({width:1,height:1}),this.dirty=!0}isLoaded(){return this.loaded}setLoaded(t){if(this.loaded!==t&&(this.loaded=t,t)){for(let{ids:n,promiseResolve:s}of this.requestors)s(this._getImagesForIds(n));this.requestors=[]}}getImage(t){let n=this.images[t];if(n&&!n.data&&n.spriteData){let s=n.spriteData;n.data=new h.R({width:s.width,height:s.height},s.context.getImageData(s.x,s.y,s.width,s.height).data),n.spriteData=null}return n}addImage(t,n){if(this.images[t])throw new Error(`Image id ${t} already exist, use updateImage instead`);this._validate(t,n)&&(this.images[t]=n)}_validate(t,n){let s=!0,c=n.data||n.spriteData;return this._validateStretch(n.stretchX,c?.width)||(this.fire(new h.l(new Error(`Image \"${t}\" has invalid \"stretchX\" value`))),s=!1),this._validateStretch(n.stretchY,c?.height)||(this.fire(new h.l(new Error(`Image \"${t}\" has invalid \"stretchY\" value`))),s=!1),this._validateContent(n.content,n)||(this.fire(new h.l(new Error(`Image \"${t}\" has invalid \"content\" value`))),s=!1),s}_validateStretch(t,n){if(!t)return!0;let s=0;for(let c of t){if(c[0]=t[1]))}updateImage(t,n,s=!0){let c=this.getImage(t);if(s&&(c.data.width!==n.data.width||c.data.height!==n.data.height))throw new Error(`size mismatch between old image (${c.data.width}x${c.data.height}) and new image (${n.data.width}x${n.data.height}).`);n.version=c.version+1,this.images[t]=n,this.updatedImages[t]=!0}removeImage(t){var n;let s=this.images[t];delete this.images[t],delete this.patterns[t],!((n=s.userImage)===null||n===void 0)&&n.onRemove&&s.userImage.onRemove()}listImages(){return Object.keys(this.images)}getImages(t){return new Promise(((n,s)=>{let c=!0;if(!this.isLoaded())for(let f of t)this.images[f]||(c=!1);this.isLoaded()||c?n(this._getImagesForIds(t)):this.requestors.push({ids:t,promiseResolve:n})}))}_getImagesForIds(t){var n;let s={};for(let c of t){let f=this.getImage(c);f||(this.fire(new h.n(\"styleimagemissing\",{id:c})),f=this.getImage(c)),f?s[c]={data:f.data.clone(),pixelRatio:f.pixelRatio,sdf:f.sdf,version:f.version,stretchX:f.stretchX,stretchY:f.stretchY,content:f.content,textFitWidth:f.textFitWidth,textFitHeight:f.textFitHeight,hasRenderCallback:!!(!((n=f.userImage)===null||n===void 0)&&n.render)}:h.w(`Image \"${c}\" could not be loaded. Please make sure you have added the image with map.addImage() or a \"sprite\" property in your style. You can provide missing images by listening for the \"styleimagemissing\" map event.`)}return s}getPixelSize(){let{width:t,height:n}=this.atlasImage;return{width:t,height:n}}getPattern(t){let n=this.patterns[t],s=this.getImage(t);if(!s)return null;if(n&&n.position.version===s.version)return n.position;if(n)n.position.version=s.version;else{let c={w:s.data.width+2,h:s.data.height+2,x:0,y:0},f=new h.I(c,s);this.patterns[t]={bin:c,position:f}}return this._updatePatternAtlas(),this.patterns[t].position}bind(t){let n=t.gl;this.atlasTexture?this.dirty&&(this.atlasTexture.update(this.atlasImage),this.dirty=!1):this.atlasTexture=new h.T(t,this.atlasImage,n.RGBA),this.atlasTexture.bind(n.LINEAR,n.CLAMP_TO_EDGE)}_updatePatternAtlas(){let t=[];for(let f in this.patterns)t.push(this.patterns[f].bin);let{w:n,h:s}=h.p(t),c=this.atlasImage;c.resize({width:n||1,height:s||1});for(let f in this.patterns){let{bin:y}=this.patterns[f],x=y.x+1,w=y.y+1,S=this.getImage(f).data,M=S.width,E=S.height;h.R.copy(S,c,{x:0,y:0},{x,y:w},{width:M,height:E}),h.R.copy(S,c,{x:0,y:E-1},{x,y:w-1},{width:M,height:1}),h.R.copy(S,c,{x:0,y:0},{x,y:w+E},{width:M,height:1}),h.R.copy(S,c,{x:M-1,y:0},{x:x-1,y:w},{width:1,height:E}),h.R.copy(S,c,{x:0,y:0},{x:x+M,y:w},{width:1,height:E})}this.dirty=!0}beginFrame(){this.callbackDispatchedThisFrame={}}dispatchRenderCallbacks(t){for(let n of t){if(this.callbackDispatchedThisFrame[n])continue;this.callbackDispatchedThisFrame[n]=!0;let s=this.getImage(n);s||h.w(`Image with ID: \"${n}\" was not found`),Ti(s)&&this.updateImage(n,s)}}cloneImages(){let t={};for(let n in this.images){let s=this.images[n];t[n]=Object.assign(Object.assign({},s),{data:s.data?s.data.clone():null})}return t}}let it=1e20,W=new Float64Array(256);for(let d=0;d<256;d++){let t=.5-Math.pow(d/255,.45454545454545453);W[d]=t*Math.abs(t)}function K(d,t,n,s,c,f,y,x,w){for(let S=t;S-1);w++,f[w]=x,y[w]=S,y[w+1]=it}for(let x=0,w=0;x/[-\\w]+/.test(c)?c:`'${CSS.escape(c)}'`)).join(\",\");return new Me.TinySDF({fontSize:48,buffer:6,radius:16,cutoff:.25,fontFamily:s,fontWeight:this._fontWeight(n[0]),fontStyle:this._fontStyle(n[0]),lang:this.lang})}_fontStyle(t){return/italic/i.test(t)?\"italic\":/oblique/i.test(t)?\"oblique\":\"normal\"}_fontWeight(t){let n={thin:100,hairline:100,\"extra light\":200,\"ultra light\":200,light:300,normal:400,regular:400,medium:500,semibold:600,demibold:600,bold:700,\"extra bold\":800,\"ultra bold\":800,black:900,heavy:900,\"extra black\":950,\"ultra black\":950},s;for(let[c,f]of Object.entries(n))new RegExp(`\\\\b${c}\\\\b`,\"i\").test(t)&&(s=`${f}`);return s}destroy(){for(let t in this.entries){let n=this.entries[t];n.tinySDF=null,n.ideographTinySDF=null,n.glyphs={},n.requests={},n.ranges={}}this.entries={}}}Me.loadGlyphRange=function(d,t,n,s){return h._(this,void 0,void 0,(function*(){let c=256*t,f=c+255,y=yield s.transformRequest(n.replace(\"{fontstack}\",d).replace(\"{range}\",`${c}-${f}`),\"Glyphs\"),x=yield h.o(y,new AbortController);if(!x?.data)throw new Error(`Could not load glyph range. range: ${t}, ${c}-${f}`);let w={};for(let S of h.q(x.data))w[S.id]=S;return w}))},Me.TinySDF=class{constructor({fontSize:d=24,buffer:t=3,radius:n=8,cutoff:s=.25,fontFamily:c=\"sans-serif\",fontWeight:f=\"normal\",fontStyle:y=\"normal\",lang:x=null}={}){this.buffer=t,this.radius=n,this.cutoff=s,this.lang=x;let w=this.size=d+4*t,S=this._createCanvas(w),M=this.ctx=S.getContext(\"2d\",{willReadFrequently:!0});M.font=`${y} ${f} ${d}px ${c}`,M.textBaseline=\"alphabetic\",M.textAlign=\"left\",M.fillStyle=\"black\",this.gridOuter=new Float64Array(w*w),this.gridInner=new Float64Array(w*w),this.f=new Float64Array(w),this.z=new Float64Array(w+1),this.v=new Uint16Array(w)}_createCanvas(d){if(typeof OffscreenCanvas<\"u\")return new OffscreenCanvas(d,d);let t=document.createElement(\"canvas\");return t.width=t.height=d,t}draw(d){let{width:t,actualBoundingBoxAscent:n,actualBoundingBoxDescent:s,actualBoundingBoxLeft:c,actualBoundingBoxRight:f}=this.ctx.measureText(d),y=Math.ceil(n),x=Math.floor(c),w=Math.max(0,Math.min(this.size-this.buffer,Math.ceil(f)-x)),S=Math.max(0,Math.min(this.size-this.buffer,y+Math.ceil(s))),M=w+2*this.buffer,E=S+2*this.buffer,I=Math.max(M*E,0),D=new Uint8ClampedArray(I),B={data:D,width:M,height:E,glyphWidth:w,glyphHeight:S,glyphTop:y,glyphLeft:x,glyphAdvance:t};if(w===0||S===0)return B;let{ctx:V,buffer:q,gridInner:N,gridOuter:G}=this;this.lang&&(V.lang=this.lang),V.clearRect(q,q,w,S),V.fillText(d,q-x,q+y);let X=V.getImageData(q,q,w,S);G.fill(it,0,I),N.fill(0,0,I);let $=3;for(let Z=0;Z1&&(w=t[++x]);let M=Math.abs(S-w.left),E=Math.abs(S-w.right),I=Math.min(M,E),D,B=f/s*(c+1);if(w.isDash){let V=c-Math.abs(B);D=Math.sqrt(I*I+V*V)}else D=c-Math.sqrt(I*I+B*B);this.data[y+S]=Math.max(0,Math.min(255,D+128))}}}addRegularDash(t){for(let x=t.length-1;x>=0;--x){let w=t[x],S=t[x+1];w.zeroLength?t.splice(x,1):S&&S.isDash===w.isDash&&(S.left=w.left,t.splice(x,1))}let n=t[0],s=t[t.length-1];n.isDash===s.isDash&&(n.left=s.left-this.width,s.right=n.right+this.width);let c=this.width*this.nextRow,f=0,y=t[f];for(let x=0;x1&&(y=t[++f]);let w=Math.abs(x-y.left),S=Math.abs(x-y.right),M=Math.min(w,S);this.data[c+x]=Math.max(0,Math.min(255,(y.isDash?M:-M)+128))}}addDash(t,n){let s=n?7:0,c=2*s+1;if(this.nextRow+c>this.height)return h.w(\"LineAtlas out of space\"),null;let f=0;for(let x of t)f+=x;if(f!==0){let x=this.width/f,w=this.getDashRanges(t,this.width,x);n?this.addRoundDash(w,x,s):this.addRegularDash(w)}let y={y:this.nextRow+s,height:2*s,width:f};return this.nextRow+=c,this.dirty=!0,y}bind(t){let n=t.gl;this.texture?(n.bindTexture(n.TEXTURE_2D,this.texture),this.dirty&&(this.dirty=!1,n.texSubImage2D(n.TEXTURE_2D,0,0,0,this.width,this.height,n.ALPHA,n.UNSIGNED_BYTE,this.data))):(this.texture=n.createTexture(),n.bindTexture(n.TEXTURE_2D,this.texture),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,n.REPEAT),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,n.REPEAT),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,n.LINEAR),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MAG_FILTER,n.LINEAR),n.texImage2D(n.TEXTURE_2D,0,n.ALPHA,this.width,this.height,0,n.ALPHA,n.UNSIGNED_BYTE,this.data))}}let vt=\"maplibre_preloaded_worker_pool\";class mt{constructor(){this.active={}}acquire(t){if(!this.workers)for(this.workers=[];this.workers.lengthh.m(t,n)))),cr}function $r(d,t){let n=h.O();return h.Q(n,n,[1,1,0]),h.S(n,n,[.5*d.width,.5*d.height,1]),d.calculatePosMatrix?h.U(n,n,d.calculatePosMatrix(t.toUnwrapped())):n}function Mi(d,t,n,s,c,f,y){var x;let w=(function(I,D,B){if(I)for(let V of I){let q=D[V];if(q?.source===B&&q.type===\"fill-extrusion\")return!0}else for(let V in D){let q=D[V];if(q.source===B&&q.type===\"fill-extrusion\")return!0}return!1})((x=c?.layers)!==null&&x!==void 0?x:null,t,d.id),S=f.maxPitchScaleFactor(),M=d.tilesIn(s,S,w);M.sort(fe);let E=[];for(let I of M)E.push({wrappedTileID:I.tileID.wrapped().key,queryResults:I.tile.queryRenderedFeatures(t,n,d.getState(),I.queryGeometry,I.cameraQueryGeometry,I.scale,c,f,S,$r(f,I.tileID),y?(D,B)=>y(I.tileID,D,B):void 0)});return(function(I,D){for(let B in I)for(let V of I[B])ke(V,D);return I})((function(I){let D={},B={};for(let{queryResults:V,wrappedTileID:q}of I){B[q]||(B[q]={});let N=B[q];for(let G in V){let X=V[G];N[G]||(N[G]={});let $=N[G];D[G]||(D[G]=[]);for(let U of X)$[U.featureIndex]||($[U.featureIndex]=!0,D[G].push(U))}}return D})(E),d)}function fe(d,t){let n=d.tileID,s=t.tileID;return n.overscaledZ-s.overscaledZ||n.canonical.y-s.canonical.y||n.wrap-s.wrap||n.canonical.x-s.canonical.x}function ke(d,t){let n=d.feature,s=t.getFeatureState(n.layer[\"source-layer\"],n.id);n.source=n.layer.source,n.layer[\"source-layer\"]&&(n.sourceLayer=n.layer[\"source-layer\"]),n.state=s}function Ne(d,t,n,s){return h._(this,void 0,void 0,(function*(){let c=d;if(d.url?c=(yield h.k(yield t.transformRequest(d.url,\"Source\"),n)).data:yield Ge.frameAsync(n,s),!c)return null;let f=h.V(h.e(c,d),[\"tiles\",\"minzoom\",\"maxzoom\",\"attribution\",\"bounds\",\"scheme\",\"tileSize\",\"encoding\"]);return\"vector_layers\"in c&&c.vector_layers&&(f.vectorLayerIds=c.vector_layers.map((y=>y.id))),f}))}class De{constructor(t,n){t&&(n?this.setSouthWest(t).setNorthEast(n):Array.isArray(t)&&(t.length===4?this.setSouthWest([t[0],t[1]]).setNorthEast([t[2],t[3]]):this.setSouthWest(t[0]).setNorthEast(t[1])))}setNorthEast(t){return this._ne=t instanceof h.W?new h.W(t.lng,t.lat):h.W.convert(t),this}setSouthWest(t){return this._sw=t instanceof h.W?new h.W(t.lng,t.lat):h.W.convert(t),this}extend(t){let n=this._sw,s=this._ne,c,f;if(t instanceof h.W)c=t,f=t;else{if(!(t instanceof De))return Array.isArray(t)?t.length===4||t.every(Array.isArray)?this.extend(De.convert(t)):this.extend(h.W.convert(t)):t&&(\"lng\"in t||\"lon\"in t)&&\"lat\"in t?this.extend(h.W.convert(t)):this;if(c=t._sw,f=t._ne,!c||!f)return this}return n||s?(n.lng=Math.min(c.lng,n.lng),n.lat=Math.min(c.lat,n.lat),s.lng=Math.max(f.lng,s.lng),s.lat=Math.max(f.lat,s.lat)):(this._sw=new h.W(c.lng,c.lat),this._ne=new h.W(f.lng,f.lat)),this}getCenter(){return new h.W((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)}getSouthWest(){return this._sw}getNorthEast(){return this._ne}getNorthWest(){return new h.W(this.getWest(),this.getNorth())}getSouthEast(){return new h.W(this.getEast(),this.getSouth())}getWest(){return this._sw.lng}getSouth(){return this._sw.lat}getEast(){return this._ne.lng}getNorth(){return this._ne.lat}toArray(){return[this._sw.toArray(),this._ne.toArray()]}toString(){return`LngLatBounds(${this._sw.toString()}, ${this._ne.toString()})`}isEmpty(){return!(this._sw&&this._ne)}contains(t){let{lng:n,lat:s}=h.W.convert(t),c=this._sw.lng<=n&&n<=this._ne.lng;return this._sw.lng>this._ne.lng&&(c=this._sw.lng>=n&&n>=this._ne.lng),this._sw.lat<=s&&s<=this._ne.lat&&c}intersects(t){if(!((t=De.convert(t)).getNorth()>=this.getSouth()&&t.getSouth()<=this.getNorth()))return!1;let n=Math.abs(this.getEast()-this.getWest()),s=Math.abs(t.getEast()-t.getWest());if(n>=360||s>=360)return!0;let c=h.X(this.getWest(),-180,180),f=h.X(this.getEast(),-180,180),y=h.X(t.getWest(),-180,180),x=h.X(t.getEast(),-180,180),w=c>f,S=y>x;return!(!w||!S)||(w?x>=c||y<=f:S?f>=y||c<=x:y<=f&&x>=c)}static convert(t){return t instanceof De?t:t&&new De(t)}static fromLngLat(t,n=0){let s=360*n/40075017,c=s/Math.cos(Math.PI/180*t.lat);return new De(new h.W(t.lng-c,t.lat-s),new h.W(t.lng+c,t.lat+s))}adjustAntiMeridian(){let t=new h.W(this._sw.lng,this._sw.lat),n=new h.W(this._ne.lng,this._ne.lat);return new De(t,t.lng>n.lng?new h.W(n.lng+360,n.lat):n)}}class Tt{constructor(t,n,s){this.bounds=De.convert(this.validateBounds(t)),this.minzoom=n||0,this.maxzoom=s||24}validateBounds(t){return Array.isArray(t)&&t.length===4?[Math.max(-180,t[0]),Math.max(-90,t[1]),Math.min(180,t[2]),Math.min(90,t[3])]:[-180,-90,180,90]}contains(t){let n=Math.pow(2,t.z),s=Math.floor(h.Z(this.bounds.getWest())*n),c=Math.floor(h.Y(this.bounds.getNorth())*n),f=Math.ceil(h.Z(this.bounds.getEast())*n),y=Math.ceil(h.Y(this.bounds.getSouth())*n);return t.x>=s&&t.x=c&&t.y{this._options.tiles=t})),this}setUrl(t){return this.setSourceProperty((()=>{this.url=t,this._options.url=t})),this}onRemove(){this._tileJSONRequest&&(this._tileJSONRequest.abort(),this._tileJSONRequest=null)}serialize(){return h.e({},this._options)}loadTile(t){return h._(this,void 0,void 0,(function*(){let n=t.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme),s={request:yield this.map._requestManager.transformRequest(n,\"Tile\"),uid:t.uid,tileID:t.tileID,zoom:t.tileID.overscaledZ,tileSize:this.tileSize*t.tileID.overscaleFactor(),type:this.type,source:this.id,pixelRatio:this.map.getPixelRatio(),showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId,subdivisionGranularity:this.map.style.projection.subdivisionGranularity,encoding:this.encoding,overzoomParameters:yield this._getOverzoomParameters(t),etag:t.etag};s.request.collectResourceTiming=this._collectResourceTiming;let c=\"RT\";if(t.actor&&t.state!==\"expired\"){if(t.state===\"loading\")return new Promise(((f,y)=>{t.reloadPromise={resolve:f,reject:y}}))}else t.actor=this.dispatcher.getActor(),c=\"LT\";t.abortController=new AbortController;try{let f=yield t.actor.sendAsync({type:c,data:s},t.abortController);if(delete t.abortController,t.aborted)return;this._afterTileLoadWorkerResponse(t,f);let y={};return f?.etagUnmodified&&(y.unmodified=!0),y}catch(f){if(delete t.abortController,t.aborted)return;if(f&&f.status!==404)throw f;this._afterTileLoadWorkerResponse(t,null)}}))}_getOverzoomParameters(t){return h._(this,void 0,void 0,(function*(){if(t.tileID.canonical.z<=this.maxzoom||this.map._zoomLevelsToOverscale===void 0)return;let n=t.tileID.scaledTo(this.maxzoom).canonical,s=n.url(this.tiles,this.map.getPixelRatio(),this.scheme);return{maxZoomTileID:n,overzoomRequest:yield this.map._requestManager.transformRequest(s,\"Tile\")}}))}_afterTileLoadWorkerResponse(t,n){if(n?.resourceTiming&&(t.resourceTiming=n.resourceTiming),n&&this.map._refreshExpiredTiles&&t.setExpiryData(n),t.etag=n?.etag,t.loadVectorData(n,this.map.painter),t.reloadPromise){let s=t.reloadPromise;t.reloadPromise=null,this.loadTile(t).then(s.resolve).catch(s.reject)}}abortTile(t){return h._(this,void 0,void 0,(function*(){t.abortController&&(t.abortController.abort(),delete t.abortController),t.actor&&(yield t.actor.sendAsync({type:\"AT\",data:{uid:t.uid,type:this.type,source:this.id}}))}))}unloadTile(t){return h._(this,void 0,void 0,(function*(){t.unloadVectorData(),t.actor&&(yield t.actor.sendAsync({type:\"RMT\",data:{uid:t.uid,type:this.type,source:this.id}}))}))}hasTransition(){return!1}}class ht extends h.E{constructor(t,n,s,c){super(),this.id=t,this.dispatcher=s,this.setEventedParent(c),this.type=\"raster\",this.minzoom=0,this.maxzoom=22,this.roundZoom=!0,this.scheme=\"xyz\",this.tileSize=512,this._loaded=!1,this._options=h.e({type:\"raster\"},n),h.e(this,h.V(n,[\"url\",\"scheme\",\"tileSize\"]))}load(){return h._(this,arguments,void 0,(function*(t=!1){this._loaded=!1,this.fire(new h.n(\"dataloading\",{dataType:\"source\"})),this._tileJSONRequest=new AbortController;try{let n=yield Ne(this._options,this.map._requestManager,this._tileJSONRequest,this.map._ownerWindow);this._tileJSONRequest=null,this._loaded=!0,n&&(h.e(this,n),n.bounds&&(this.tileBounds=new Tt(n.bounds,this.minzoom,this.maxzoom)),this.fire(new h.n(\"data\",{dataType:\"source\",sourceDataType:\"metadata\"})),this.fire(new h.n(\"data\",{dataType:\"source\",sourceDataType:\"content\",sourceDataChanged:t})))}catch(n){this._tileJSONRequest=null,this._loaded=!0,h.$(n)||this.fire(new h.l(h.d(n)))}}))}loaded(){return this._loaded}onAdd(t){this.map=t,this.load()}onRemove(){this._tileJSONRequest&&(this._tileJSONRequest.abort(),this._tileJSONRequest=null)}setSourceProperty(t){this._tileJSONRequest&&(this._tileJSONRequest.abort(),this._tileJSONRequest=null),t(),this.load(!0)}setTiles(t){return this.setSourceProperty((()=>{this._options.tiles=t})),this}setUrl(t){return this.setSourceProperty((()=>{this.url=t,this._options.url=t})),this}serialize(){return h.e({},this._options)}hasTile(t){return!this.tileBounds||this.tileBounds.contains(t.canonical)}loadTile(t){return h._(this,void 0,void 0,(function*(){let n=t.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme);t.abortController=new AbortController;try{let s=yield st.getImage(yield this.map._requestManager.transformRequest(n,\"Tile\"),t.abortController,this.map._refreshExpiredTiles);if(delete t.abortController,t.aborted)return void(t.state=\"unloaded\");if(s?.data){this.map._refreshExpiredTiles&&(s.cacheControl||s.expires)&&t.setExpiryData({cacheControl:s.cacheControl,expires:s.expires});let c=this.map.painter.context,f=c.gl,y=s.data;t.texture=this.map.painter.getTileTexture(y.width),t.texture?t.texture.update(y,{useMipmap:!0}):(t.texture=new h.T(c,y,f.RGBA,{useMipmap:!0}),t.texture.bind(f.LINEAR,f.CLAMP_TO_EDGE,f.LINEAR_MIPMAP_NEAREST)),t.state=\"loaded\"}}catch(s){if(delete t.abortController,t.aborted)t.state=\"unloaded\";else if(s)throw t.state=\"errored\",s}}))}abortTile(t){return h._(this,void 0,void 0,(function*(){t.abortController&&(t.abortController.abort(),delete t.abortController)}))}unloadTile(t){return h._(this,void 0,void 0,(function*(){t.texture&&this.map.painter.saveTileTexture(t.texture)}))}hasTransition(){return!1}}class zt extends ht{constructor(t,n,s,c){super(t,n,s,c),this.type=\"raster-dem\",this.maxzoom=22,this._options=h.e({type:\"raster-dem\"},n),this.encoding=n.encoding||\"mapbox\",this.redFactor=n.redFactor,this.greenFactor=n.greenFactor,this.blueFactor=n.blueFactor,this.baseShift=n.baseShift}loadTile(t){return h._(this,void 0,void 0,(function*(){let n=t.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme),s=yield this.map._requestManager.transformRequest(n,\"Tile\");t.neighboringTiles=this._getNeighboringTiles(t.tileID),t.abortController=new AbortController;try{let c=yield st.getImage(s,t.abortController,this.map._refreshExpiredTiles);if(delete t.abortController,t.aborted)return void(t.state=\"unloaded\");if(c?.data){let f=c.data;this.map._refreshExpiredTiles&&(c.cacheControl||c.expires)&&t.setExpiryData({cacheControl:c.cacheControl,expires:c.expires});let y=h.b(f)&&h.a0()?f:yield this.readImageNow(f),x={type:this.type,uid:t.uid,source:this.id,rawImageData:y,encoding:this.encoding,redFactor:this.redFactor,greenFactor:this.greenFactor,blueFactor:this.blueFactor,baseShift:this.baseShift};if(t.actor&&t.state!==\"expired\"&&t.state!==\"reloading\")return;t.actor&&t.state!==\"expired\"||(t.actor=this.dispatcher.getActor()),t.dem=yield t.actor.sendAsync({type:\"LDT\",data:x}),t.needsHillshadePrepare=!0,t.needsTerrainPrepare=!0,t.state=\"loaded\"}}catch(c){if(delete t.abortController,t.aborted)t.state=\"unloaded\";else if(c)throw t.state=\"errored\",c}}))}readImageNow(t){return h._(this,void 0,void 0,(function*(){if(typeof VideoFrame<\"u\"&&h.a1()){let n=t.width+2,s=t.height+2;try{return new h.R({width:n,height:s},yield h.a2(t,-1,-1,n,s))}catch{}}return Ge.getImageData(t,1)}))}_getNeighboringTiles(t){let n=t.canonical,s=Math.pow(2,n.z),c=(n.x-1+s)%s,f=n.x===0?t.wrap-1:t.wrap,y=(n.x+1+s)%s,x=n.x+1===s?t.wrap+1:t.wrap,w={};return w[new h.a3(t.overscaledZ,f,n.z,c,n.y).key]={backfilled:!1},w[new h.a3(t.overscaledZ,x,n.z,y,n.y).key]={backfilled:!1},n.y>0&&(w[new h.a3(t.overscaledZ,f,n.z,c,n.y-1).key]={backfilled:!1},w[new h.a3(t.overscaledZ,t.wrap,n.z,n.x,n.y-1).key]={backfilled:!1},w[new h.a3(t.overscaledZ,x,n.z,y,n.y-1).key]={backfilled:!1}),n.y+1f.key===s));c>-1&&d.addOrUpdateProperties.splice(c,1)}return(d.removeAllProperties||t.removeAllProperties)&&(n.removeAllProperties=!0),(d.removeProperties||t.removeProperties)&&(n.removeProperties=[...d.removeProperties||[],...t.removeProperties||[]]),(d.addOrUpdateProperties||t.addOrUpdateProperties)&&(n.addOrUpdateProperties=[...d.addOrUpdateProperties||[],...t.addOrUpdateProperties||[]]),(d.newGeometry||t.newGeometry)&&(n.newGeometry=t.newGeometry||d.newGeometry),n}function So(d){var t,n;if(!d)return{};let s={};return s.removeAll=d.removeAll,s.remove=new Set(d.remove||[]),s.add=new Map((t=d.add)===null||t===void 0?void 0:t.map((c=>[c.id,c]))),s.update=new Map((n=d.update)===null||n===void 0?void 0:n.map((c=>[c.id,c]))),s}function Mo(d){return d&&d.length!==0?typeof d[0]==\"number\"?[d]:d.flatMap((t=>Mo(t))):[]}function er(d){return d.type===\"GeometryCollection\"?d.geometries.flatMap((t=>er(t))):Mo(d.coordinates)}function Ir(d){let t=new De,n;switch(d.type){case\"FeatureCollection\":n=d.features.flatMap((s=>er(s.geometry)));break;case\"Feature\":n=er(d.geometry);break;default:n=er(d)}if(n.length===0)return t;for(let s of n){let[c,f]=s;t.extend([c,f])}return t}class Zr extends h.E{constructor(t,n,s,c){super(),this.id=t,this.type=\"geojson\",this.minzoom=0,this.maxzoom=18,this.tileSize=512,this.isTileClipped=!0,this.reparseOverscaled=!0,this._removed=!1,this._isUpdatingWorker=!1,this._pendingWorkerUpdate={data:n.data},this.actor=s.getActor(),this.setEventedParent(c),this._data=typeof n.data==\"string\"?{url:n.data}:{geojson:n.data},this._options=h.e({},n),this._collectResourceTiming=n.collectResourceTiming,n.maxzoom!==void 0&&(this.maxzoom=n.maxzoom),n.type&&(this.type=n.type),n.attribution&&(this.attribution=n.attribution),this.promoteId=n.promoteId,n.clusterMaxZoom!==void 0&&this.maxzoom<=n.clusterMaxZoom&&h.w(`The maxzoom value \"${this.maxzoom}\" is expected to be greater than the clusterMaxZoom value \"${n.clusterMaxZoom}\".`),this.workerOptions=h.e({source:this.id,geojsonVtOptions:{buffer:this._pixelsToTileUnits(n.buffer!==void 0?n.buffer:128),tolerance:this._pixelsToTileUnits(n.tolerance!==void 0?n.tolerance:.375),extent:h.a6,maxZoom:this.maxzoom,lineMetrics:n.lineMetrics||!1,generateId:n.generateId||!1,promoteId:typeof n.promoteId==\"string\"?n.promoteId:void 0,cluster:n.cluster||!1,clusterOptions:{maxZoom:this._getClusterMaxZoom(n.clusterMaxZoom),minPoints:Math.max(2,n.clusterMinPoints||2),extent:h.a6,radius:this._pixelsToTileUnits(n.clusterRadius||50),log:!1,generateId:n.generateId||!1}},clusterProperties:n.clusterProperties,filter:n.filter},n.workerOptions)}_hasPendingWorkerUpdate(){return this._pendingWorkerUpdate.data!==void 0||this._pendingWorkerUpdate.diff!==void 0||this._pendingWorkerUpdate.updateCluster}_pixelsToTileUnits(t){return t*(h.a6/this.tileSize)}_getClusterMaxZoom(t){let n=t?Math.round(t):this.maxzoom-1;return Number.isInteger(t)||t===void 0||h.w(`Integer expected for option 'clusterMaxZoom': provided value \"${t}\" rounded to \"${n}\"`),n}load(){return h._(this,void 0,void 0,(function*(){yield this._updateWorkerData()}))}onAdd(t){this.map=t,this.load()}setData(t,n){this._data=typeof t==\"string\"?{url:t}:{geojson:t},this._pendingWorkerUpdate={data:t};let s=this._updateWorkerData();return n?s:this}updateData(t,n){this._pendingWorkerUpdate.diff=(function(c,f){if(!c)return f||{};if(!f)return c||{};let y=So(c),x=So(f);(function(S,M){M.removeAll&&(S.add.clear(),S.update.clear(),S.remove.clear(),M.remove.clear());for(let E of M.remove)S.add.delete(E),S.update.delete(E);for(let[E,I]of M.update){let D=S.update.get(E);D&&(M.update.set(E,xr(D,I)),S.update.delete(E))}})(y,x);let w={};if((y.removeAll||x.removeAll)&&(w.removeAll=!0),w.remove=new Set([...y.remove,...x.remove]),w.add=new Map([...y.add,...x.add]),w.update=new Map([...y.update,...x.update]),w.remove.size&&w.add.size)for(let S of w.add.keys())w.remove.delete(S);return(function(S){let M={};return S.removeAll&&(M.removeAll=S.removeAll),S.remove&&(M.remove=Array.from(S.remove)),S.add&&(M.add=Array.from(S.add.values())),S.update&&(M.update=Array.from(S.update.values())),M})(w)})(this._pendingWorkerUpdate.diff,t);let s=this._updateWorkerData();return n?s:this}getData(){return h._(this,void 0,void 0,(function*(){return this._data.url&&(yield this.once(\"data\")),this._data.geojson?this._data.geojson:{type:\"FeatureCollection\",features:Array.from(this._data.updateable.values())}}))}getBounds(){return h._(this,void 0,void 0,(function*(){return Ir(yield this.getData())}))}setClusterOptions(t){return this.workerOptions.geojsonVtOptions.cluster=t.cluster,t.clusterRadius!==void 0&&(this.workerOptions.geojsonVtOptions.clusterOptions.radius=this._pixelsToTileUnits(t.clusterRadius)),t.clusterMaxZoom!==void 0&&(this.workerOptions.geojsonVtOptions.clusterOptions.maxZoom=this._getClusterMaxZoom(t.clusterMaxZoom)),this._pendingWorkerUpdate.updateCluster=!0,this._updateWorkerData(),this}getClusterExpansionZoom(t){return this.actor.sendAsync({type:\"GCEZ\",data:{type:this.type,clusterId:t,source:this.id}})}getClusterChildren(t){return this.actor.sendAsync({type:\"GCC\",data:{type:this.type,clusterId:t,source:this.id}})}getClusterLeaves(t,n,s){return this.actor.sendAsync({type:\"GCL\",data:{type:this.type,source:this.id,clusterId:t,limit:n,offset:s}})}_updateWorkerData(){return h._(this,void 0,void 0,(function*(){if(this._isUpdatingWorker)return;if(!this._hasPendingWorkerUpdate())return void h.w(`No pending worker updates for GeoJSONSource ${this.id}.`);let{data:t,diff:n,updateCluster:s}=this._pendingWorkerUpdate,c=this._getLoadGeoJSONParameters(t,n,s);t!==void 0?this._pendingWorkerUpdate.data=void 0:n?this._pendingWorkerUpdate.diff=void 0:s&&(this._pendingWorkerUpdate.updateCluster=void 0),yield this._dispatchWorkerUpdate(c)}))}_getLoadGeoJSONParameters(t,n,s){return h._(this,void 0,void 0,(function*(){let c=h.e({type:this.type},this.workerOptions);return typeof t==\"string\"?(c.request=yield this.map._requestManager.transformRequest(Ge.resolveURL(t),\"Source\"),c.request.collectResourceTiming=this._collectResourceTiming,c):t!==void 0?(c.data=t,c):n?(c.dataDiff=n,c):s?(c.updateCluster=!0,c):void 0}))}_dispatchWorkerUpdate(t){return h._(this,void 0,void 0,(function*(){this._isUpdatingWorker=!0,this.fire(new h.n(\"dataloading\",{dataType:\"source\"}));try{let n=yield t,s=yield this.actor.sendAsync({type:\"LD\",data:n});if(this._isUpdatingWorker=!1,this._removed||s.abandoned)return void this.fire(new h.n(\"dataabort\",{dataType:\"source\"}));s.data&&(this._data={geojson:s.data});let c=this._applyDiffToSource(n.dataDiff),f=this._getShouldReloadTileOptions(c),y={dataType:\"source\"};this._applyResourceTiming(y,s),this.fire(new h.n(\"data\",Object.assign(Object.assign({},y),{sourceDataType:\"metadata\"}))),this.fire(new h.n(\"data\",Object.assign(Object.assign({},y),{sourceDataType:\"content\",shouldReloadTileOptions:f})))}catch(n){if(this._isUpdatingWorker=!1,this._removed)return void this.fire(new h.n(\"dataabort\",{dataType:\"source\"}));this.fire(new h.l(h.d(n)))}finally{this._hasPendingWorkerUpdate()&&this._updateWorkerData()}}))}_applyResourceTiming(t,n){var s;if(!this._collectResourceTiming)return;let c=(s=n.resourceTiming)===null||s===void 0?void 0:s[this.id];if(!c)return;let f=c.slice(0);f?.length&&h.e(t,{resourceTiming:f})}_applyDiffToSource(t){if(!t)return;let n=typeof this.promoteId==\"string\"?this.promoteId:void 0;if(!this._data.url&&!this._data.updateable){let c=(function(f,y){let x=new Map;if(f==null||f.type==null)return x;if(f.type===\"Feature\"){let w=ci(f,y);return w==null?void 0:(x.set(w,f),x)}if(f.type===\"FeatureCollection\"){let w=new Set;for(let S of f.features){let M=ci(S,y);if(M==null||w.has(M))return;w.add(M),x.set(M,S)}return x}})(this._data.geojson,n);if(!c)throw new Error(`GeoJSONSource \"${this.id}\": GeoJSON data is not compatible with updateData`);this._data={updateable:c}}if(!this._data.updateable)return;let s=(function(c,f,y){var x,w;let S=[];if(f.removeAll)c.clear();else if(f.remove)for(let M of f.remove){let E=c.get(M);E&&(S.push(E.geometry),c.delete(M))}if(f.add)for(let M of f.add){let E=ci(M,y);if(E==null)continue;let I=c.get(E);I&&S.push(I.geometry),S.push(M.geometry),c.set(E,M)}if(f.update)for(let M of f.update){let E=c.get(M.id);if(!E)continue;let I=!!M.newGeometry,D=M.removeAllProperties||((x=M.removeProperties)===null||x===void 0?void 0:x.length)>0||((w=M.addOrUpdateProperties)===null||w===void 0?void 0:w.length)>0;if(!I&&!D)continue;S.push(E.geometry);let B=Object.assign({},E);if(c.set(M.id,B),I&&(S.push(M.newGeometry),B.geometry=M.newGeometry),D){if(B.properties=M.removeAllProperties?{}:Object.assign({},B.properties||{}),M.removeProperties)for(let V of M.removeProperties)delete B.properties[V];if(M.addOrUpdateProperties)for(let{key:V,value:q}of M.addOrUpdateProperties)B.properties[V]=q}}return S})(this._data.updateable,t,n);return t.removeAll||this._options.cluster?void 0:s}_getShouldReloadTileOptions(t){if(t)return{affectedBounds:t.filter(Boolean).map((n=>Ir(n)))}}shouldReloadTile(t,{affectedBounds:n}){if(t.state===\"loading\")return!0;if(t.state===\"unloaded\")return!1;let{buffer:s,extent:c}=this.workerOptions.geojsonVtOptions,f=(function({x:y,y:x,z:w},S=0){let M=h.a4((y-S)/Math.pow(2,w)),E=h.a5((x+1+S)/Math.pow(2,w)),I=h.a4((y+1+S)/Math.pow(2,w)),D=h.a5((x-S)/Math.pow(2,w));return new De([M,E],[I,D])})(t.tileID.canonical,s/c);for(let y of n)if(f.intersects(y))return!0;return!1}loaded(){return!this._isUpdatingWorker&&!this._hasPendingWorkerUpdate()}loadTile(t){return h._(this,void 0,void 0,(function*(){let n=t.actor?\"RT\":\"LT\";t.actor=this.actor;let s={type:this.type,uid:t.uid,tileID:t.tileID,zoom:t.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:this.map.getPixelRatio(),showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId,subdivisionGranularity:this.map.style.projection.subdivisionGranularity};t.abortController=new AbortController;let c=yield this.actor.sendAsync({type:n,data:s},t.abortController);delete t.abortController,t.unloadVectorData(),t.aborted||t.loadVectorData(c,this.map.painter,n===\"RT\")}))}abortTile(t){return h._(this,void 0,void 0,(function*(){t.abortController&&(t.abortController.abort(),delete t.abortController),t.aborted=!0}))}unloadTile(t){return h._(this,void 0,void 0,(function*(){t.unloadVectorData(),yield this.actor.sendAsync({type:\"RMT\",data:{uid:t.uid,type:this.type,source:this.id}})}))}onRemove(){this._removed=!0,this.actor.sendAsync({type:\"RS\",data:{type:this.type,source:this.id}})}serialize(){return h.e({},this._options,{type:this.type,data:this._data.updateable?{type:\"FeatureCollection\",features:Array.from(this._data.updateable.values())}:this._data.url||this._data.geojson})}hasTransition(){return!1}}class Pi extends h.E{constructor(t,n,s,c){super(),this.flippedWindingOrder=!1,this.id=t,this.dispatcher=s,this.coordinates=n.coordinates,this.type=\"image\",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(c),this.options=n}load(t){return h._(this,void 0,void 0,(function*(){this._loaded=!1,this.fire(new h.n(\"dataloading\",{dataType:\"source\"})),this.url=this.options.url,this._request=new AbortController;try{let n=yield st.getImage(yield this.map._requestManager.transformRequest(this.url,\"Image\"),this._request);this._request=null,this._loaded=!0,n?.data&&(this.image=n.data,t&&(this.coordinates=t),this._finishLoading())}catch(n){this._request=null,this._loaded=!0,h.$(n)||this.fire(new h.l(h.d(n)))}}))}loaded(){return this._loaded}updateImage(t){return t.url?(this._request&&(this._request.abort(),this._request=null),this.options.url=t.url,this.load(t.coordinates).finally((()=>this.texture=null)),this):this}_finishLoading(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new h.n(\"data\",{dataType:\"source\",sourceDataType:\"metadata\"})))}onAdd(t){this.map=t,this.load()}onRemove(){this._request&&(this._request.abort(),this._request=null)}setCoordinates(t){this.coordinates=t;let n=t.map(h.a7.fromLngLat);var s;return this.tileID=(function(c){let f=h.a8.fromPoints(c),y=f.width(),x=f.height(),w=Math.max(y,x),S=Math.max(0,Math.floor(-Math.log(w)/Math.LN2)),M=Math.pow(2,S);return new h.aa(S,Math.floor((f.minX+f.maxX)/2*M),Math.floor((f.minY+f.maxY)/2*M))})(n),this.terrainTileRanges=this._getOverlappingTileRanges(n),this.minzoom=this.maxzoom=this.tileID.z,this.tileCoords=n.map((c=>this.tileID.getTilePoint(c)._round())),this.flippedWindingOrder=((s=this.tileCoords)[1].x-s[0].x)*(s[2].y-s[0].y)-(s[1].y-s[0].y)*(s[2].x-s[0].x)<0,this.fire(new h.n(\"data\",{dataType:\"source\",sourceDataType:\"content\"})),this}prepare(){if(Object.keys(this.tiles).length===0||!this.image)return;let t=this.map.painter.context,n=t.gl;this.texture||(this.texture=new h.T(t,this.image,n.RGBA),this.texture.bind(n.LINEAR,n.CLAMP_TO_EDGE));let s=!1;for(let c in this.tiles){let f=this.tiles[c];f.state!==\"loaded\"&&(f.state=\"loaded\",f.texture=this.texture,s=!0)}s&&this.fire(new h.n(\"data\",{dataType:\"source\",sourceDataType:\"idle\",sourceId:this.id}))}loadTile(t){return h._(this,void 0,void 0,(function*(){var n;!((n=this.tileID)===null||n===void 0)&&n.equals(t.tileID.canonical)?(this.tiles[String(t.tileID.wrap)]=t,t.buckets={}):t.state=\"errored\"}))}serialize(){return{type:\"image\",url:this.options.url,coordinates:this.coordinates}}hasTransition(){return!1}_getOverlappingTileRanges(t){let{minX:n,minY:s,maxX:c,maxY:f}=h.a8.fromPoints(t),y={};for(let x=0;x<=h.a9;x++){let w=Math.pow(2,x),S=Math.floor(n*w),M=Math.floor(s*w),E=Math.floor(c*w),I=Math.floor(f*w),D=(S%w+w)%w,B=E%w,V=Math.floor(S/w),q=Math.floor(E/w);y[x]={minWrap:V,maxWrap:q,minTileXWrapped:D,maxTileXWrapped:B,minTileY:M,maxTileY:I}}return y}}class hr extends Pi{constructor(t,n,s,c){super(t,n,s,c),this._onPlayingHandler=()=>{var f;(f=this.map)===null||f===void 0||f.triggerRepaint()},this.roundZoom=!0,this.type=\"video\",this.options=n}load(){return h._(this,void 0,void 0,(function*(){this._loaded=!1;let t=this.options;this.urls=[];for(let n of t.urls)this.urls.push((yield this.map._requestManager.transformRequest(n,\"Source\")).url);try{let n=yield h.ab(this.urls);if(this._loaded=!0,!n)return;this.video=n,this.video.loop=!0,this.video.addEventListener(\"playing\",this._onPlayingHandler),this.map&&this.video.play(),this._finishLoading()}catch(n){this.fire(new h.l(h.d(n)))}}))}pause(){this.video&&this.video.pause()}play(){this.video&&this.video.play()}seek(t){if(this.video){let n=this.video.seekable;tn.end(0)?this.fire(new h.l(new h.ac(`sources.${this.id}`,null,`Playback for this video can be set only between the ${n.start(0)} and ${n.end(0)}-second mark.`))):this.video.currentTime=t}}getVideo(){return this.video}onAdd(t){this.map||(this.map=t,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))}onRemove(){super.onRemove(),this.video&&(this.video.removeEventListener(\"playing\",this._onPlayingHandler),this.video.pause())}prepare(){if(Object.keys(this.tiles).length===0||this.video.readyState<2)return;let t=this.map.painter.context,n=t.gl;this.texture?this.video.paused||(this.texture.bind(n.LINEAR,n.CLAMP_TO_EDGE),n.texSubImage2D(n.TEXTURE_2D,0,0,0,n.RGBA,n.UNSIGNED_BYTE,this.video)):(this.texture=new h.T(t,this.video,n.RGBA),this.texture.bind(n.LINEAR,n.CLAMP_TO_EDGE));let s=!1;for(let c in this.tiles){let f=this.tiles[c];f.state!==\"loaded\"&&(f.state=\"loaded\",f.texture=this.texture,s=!0)}s&&this.fire(new h.n(\"data\",{dataType:\"source\",sourceDataType:\"idle\",sourceId:this.id}))}serialize(){return{type:\"video\",urls:this.urls,coordinates:this.coordinates}}hasTransition(){return this.video&&!this.video.paused}}class js extends Pi{constructor(t,n,s,c){super(t,n,s,c),n.coordinates?Array.isArray(n.coordinates)&&n.coordinates.length===4&&!n.coordinates.some((f=>!Array.isArray(f)||f.length!==2||f.some((y=>typeof y!=\"number\"))))||this.fire(new h.l(new h.ac(`sources.${t}`,null,'\"coordinates\" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new h.l(new h.ac(`sources.${t}`,null,'missing required property \"coordinates\"'))),n.animate&&typeof n.animate!=\"boolean\"&&this.fire(new h.l(new h.ac(`sources.${t}`,null,'optional \"animate\" property must be a boolean value'))),n.canvas?typeof n.canvas==\"string\"||n.canvas instanceof HTMLCanvasElement||this.fire(new h.l(new h.ac(`sources.${t}`,null,'\"canvas\" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new h.l(new h.ac(`sources.${t}`,null,'missing required property \"canvas\"'))),this.options=n,this.animate=n.animate===void 0||n.animate}load(){return h._(this,void 0,void 0,(function*(){this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof HTMLCanvasElement?this.options.canvas:document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new h.l(new Error(\"Canvas dimensions cannot be less than or equal to zero.\"))):(this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading())}))}getCanvas(){return this.canvas}onAdd(t){this.map=t,this.load(),this.canvas&&this.animate&&this.play()}onRemove(){this.pause()}prepare(){let t=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,t=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,t=!0),this._hasInvalidDimensions()||Object.keys(this.tiles).length===0)return;let n=this.map.painter.context,s=n.gl;this.texture?(t||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):(this.texture=new h.T(n,this.canvas,s.RGBA,{premultiply:!0}),this.texture.bind(s.LINEAR,s.CLAMP_TO_EDGE));let c=!1;for(let f in this.tiles){let y=this.tiles[f];y.state!==\"loaded\"&&(y.state=\"loaded\",y.texture=this.texture,c=!0)}c&&this.fire(new h.n(\"data\",{dataType:\"source\",sourceDataType:\"idle\",sourceId:this.id}))}serialize(){return{type:\"canvas\",animate:this.animate,canvas:this.options.canvas,coordinates:this.coordinates}}hasTransition(){return this._playing}_hasInvalidDimensions(){for(let t of[this.canvas.width,this.canvas.height])if(isNaN(t)||t<=0)return!0;return!1}}let Ns={},ya=d=>{switch(d){case\"geojson\":return Zr;case\"image\":return Pi;case\"raster\":return ht;case\"raster-dem\":return zt;case\"vector\":return xt;case\"video\":return hr;case\"canvas\":return js}return Ns[d]},Po=\"RTLPluginLoaded\";class dc extends h.E{constructor(){super(...arguments),this.status=\"unavailable\",this.url=null,this.dispatcher=ti()}_syncState(t){return this.status=t,this.dispatcher.broadcast(\"SRPS\",{pluginStatus:t,pluginURL:this.url}).catch((n=>{throw this.status=\"error\",n}))}getRTLTextPluginStatus(){return this.status}clearRTLTextPlugin(){this.status=\"unavailable\",this.url=null}setRTLTextPlugin(t){return h._(this,arguments,void 0,(function*(n,s=!1){if(this.url)throw new Error(\"setRTLTextPlugin cannot be called multiple times.\");if(this.url=Ge.resolveURL(n),!this.url)throw new Error(`requested url ${n} is invalid`);if(this.status===\"unavailable\"){if(!s)return this._requestImport();this.status=\"deferred\",this._syncState(this.status)}else if(this.status===\"requested\")return this._requestImport()}))}_requestImport(){return h._(this,void 0,void 0,(function*(){yield this._syncState(\"loading\"),this.status=\"loaded\",this.fire(new h.n(Po))}))}lazyLoad(){this.status===\"unavailable\"?this.status=\"requested\":this.status===\"deferred\"&&this._requestImport()}}let va=null;function Wr(){return va||(va=new dc),va}var Ar,tr;(function(d){d[d.Base=0]=\"Base\",d[d.Parent=1]=\"Parent\"})(Ar||(Ar={})),(function(d){d[d.Departing=0]=\"Departing\",d[d.Incoming=1]=\"Incoming\"})(tr||(tr={}));class Nn{constructor(t,n){this.timeAdded=0,this.fadeEndTime=0,this.fadeOpacity=1,this.tileID=t,this.uid=h.ad(),this.uses=0,this.tileSize=n,this.buckets={},this.expirationTime=null,this.queryPadding=0,this.hasSymbolBuckets=!1,this.hasRTLText=!1,this.dependencies={},this.rtt=[],this.rttFingerprint={},this.expiredRequestCount=0,this.state=\"loading\"}isRenderable(t){return this.hasData()&&(!this.fadeEndTime||this.fadeOpacity>0)&&(t||!this.holdingForSymbolFade())}setCrossFadeLogic({fadingRole:t,fadingDirection:n,fadingParentID:s,fadeEndTime:c}){this.resetFadeLogic(),this.fadingRole=t,this.fadingDirection=n,this.fadingParentID=s,this.fadeEndTime=c}setSelfFadeLogic(t){this.resetFadeLogic(),this.selfFading=!0,this.fadeEndTime=t}resetFadeLogic(){this.fadingRole=null,this.fadingDirection=null,this.fadingParentID=null,this.selfFading=!1,this.timeAdded=Fe(),this.fadeEndTime=0,this.fadeOpacity=1}wasRequested(){return this.state===\"errored\"||this.state===\"loaded\"||this.state===\"reloading\"}clearTextures(t){this.demTexture&&t.saveTileTexture(this.demTexture),this.demTexture=null}loadVectorData(t,n,s){if(t?.etagUnmodified!==!0)if(this.hasData()&&this.unloadVectorData(),this.state=\"loaded\",t){t.featureIndex&&(this.latestFeatureIndex=t.featureIndex,t.rawTileData?(this.latestRawTileData=t.rawTileData,this.latestEncoding=t.encoding,this.latestFeatureIndex.rawTileData=t.rawTileData,this.latestFeatureIndex.encoding=t.encoding):this.latestRawTileData&&(this.latestFeatureIndex.rawTileData=this.latestRawTileData,this.latestFeatureIndex.encoding=this.latestEncoding)),this.collisionBoxArray=t.collisionBoxArray,this.buckets=(function(c,f){let y={};if(!f)return y;for(let x of c){let w=x.layerIds.map((S=>f.getLayer(S))).filter(Boolean);if(w.length!==0){x.layers=w,x.stateDependentLayerIds&&(x.stateDependentLayers=x.stateDependentLayerIds.map((S=>w.filter((M=>M.id===S))[0])));for(let S of w)y[S.id]=x}}return y})(t.buckets,n?.style),this.hasSymbolBuckets=!1;for(let c in this.buckets){let f=this.buckets[c];if(f instanceof h.af){if(this.hasSymbolBuckets=!0,!s)break;f.justReloaded=!0}}if(this.hasRTLText=!1,this.hasSymbolBuckets)for(let c in this.buckets){let f=this.buckets[c];if(f instanceof h.af&&f.hasRTLText){this.hasRTLText=!0,Wr().lazyLoad();break}}this.queryPadding=0;for(let c in this.buckets){let f=this.buckets[c];this.queryPadding=Math.max(this.queryPadding,n.style.getLayer(c).queryRadius(f))}t.imageAtlas&&(this.imageAtlas=t.imageAtlas),t.glyphAtlasImage&&(this.glyphAtlasImage=t.glyphAtlasImage),this.dashPositions=t.dashPositions}else this.collisionBoxArray=new h.ae;else this.state=\"loaded\"}unloadVectorData(){for(let t in this.buckets)this.buckets[t].destroy();this.buckets={},this.imageAtlasTexture&&this.imageAtlasTexture.destroy(),this.glyphAtlasTexture&&this.glyphAtlasTexture.destroy(),this.imageAtlas=null,this.dashPositions=null,this.latestFeatureIndex=null,this.state=\"unloaded\"}getBucket(t){return this.buckets[t.id]}upload(t){for(let s in this.buckets){let c=this.buckets[s];c.uploadPending()&&c.upload(t)}let n=t.gl;this.imageAtlas&&!this.imageAtlas.uploaded&&(this.imageAtlasTexture=new h.T(t,this.imageAtlas.image,n.RGBA),this.imageAtlas.uploaded=!0),this.glyphAtlasImage&&(this.glyphAtlasTexture=new h.T(t,this.glyphAtlasImage,n.ALPHA),this.glyphAtlasImage=null)}prepare(t){this.imageAtlas&&this.imageAtlas.patchUpdatedImages(t,this.imageAtlasTexture)}queryRenderedFeatures(t,n,s,c,f,y,x,w,S,M,E){var I;return!((I=this.latestFeatureIndex)===null||I===void 0)&&I.rawTileData?this.latestFeatureIndex.query({queryGeometry:c,cameraQueryGeometry:f,scale:y,tileSize:this.tileSize,pixelPosMatrix:M,transform:w,params:x,queryPadding:this.queryPadding*S,getElevation:E},t,n,s):{}}querySourceFeatures(t,n){let s=this.latestFeatureIndex;if(!s?.rawTileData)return;let c=s.loadVTLayers(),f=n?.sourceLayer?n.sourceLayer:\"\",y=c[h.ag]||c[f];if(!y)return;let x=h.ah(n?.filter,n?.globalState),{z:w,x:S,y:M}=this.tileID.canonical,E={z:w,x:S,y:M};for(let I=0;Is)c=!1;else if(n)if(this.expirationTime({zoom:0,x:0,y:0,wrap:U,fullyVisible:!1}),X=[],$=[];if(d.renderWorldCopies&&y.allowWorldCopies())for(let U=1;U<=3;U++)X.push(G(-U)),X.push(G(U));for(X.push(G(0));X.length>0;){let U=X.pop(),H=U.x,Z=U.y,te=U.fullyVisible,se={x:H,y:Z,z:U.zoom},ce=y.getTileBoundingVolume(se,U.wrap,d.elevation,t);if(!te){let Ce=de(n,ce,s);if(Ce===0)continue;te=Ce===2}let _e=y.distanceToTile2d(c.x,c.y,se,ce),ge=w;x&&(ge=(t.calculateTileZoom||yt)(d.zoom+h.ar(d.tileSize/t.tileSize),_e,q,N,d.fov)),ge=(t.roundZoom?Math.round:Math.floor)(ge),ge=Math.max(0,ge);let Re=Math.min(ge,M);if(U.wrap=y.getWrap(f,se,U.wrap),U.zoom>=Re){if(U.zoom>1),wrap:U.wrap,fullyVisible:te})}return $.sort(((U,H)=>U.distanceSq-H.distanceSq)).map((U=>U.tileID))}let pc=h.a8.fromPoints([new h.P(0,0),new h.P(h.a6,h.a6)]);function fc(d){return d===\"raster\"||d===\"image\"||d===\"video\"}function Zu(d,t,n,s,c,f,y){if(!t.hasData())return!1;let{tileID:x,fadingRole:w,fadingDirection:S,fadingParentID:M}=t;if(w===Ar.Base&&S===tr.Incoming&&M)return n[M.key]=M,!0;let E=Math.max(x.overscaledZ-c,f);for(let I=x.overscaledZ-1;I>=E;I--){let D=x.scaledTo(I),B=d.getLoadedTile(D);if(B)return t.setCrossFadeLogic({fadingRole:Ar.Base,fadingDirection:tr.Incoming,fadingParentID:B.tileID,fadeEndTime:s+y}),B.setCrossFadeLogic({fadingRole:Ar.Parent,fadingDirection:tr.Departing,fadeEndTime:s+y}),n[D.key]=D,!0}return!1}function ba(d,t,n,s,c,f){if(!t.hasData())return!1;let y=t.tileID.children(c),x=$s(d,t,y,n,s,c,f);if(x)return!0;for(let w of y)$s(d,t,w.children(c),n,s,c,f)&&(x=!0);return x}function $s(d,t,n,s,c,f,y){if(n[0].overscaledZ>=f)return!1;let x=!1;for(let w of n){let S=d.getLoadedTile(w);if(!S)continue;let{fadingRole:M,fadingDirection:E,fadingParentID:I}=S;M===Ar.Base&&E===tr.Departing&&I||(S.setCrossFadeLogic({fadingRole:Ar.Base,fadingDirection:tr.Departing,fadingParentID:t.tileID,fadeEndTime:c+y}),t.setCrossFadeLogic({fadingRole:Ar.Parent,fadingDirection:tr.Incoming,fadeEndTime:c+y})),s[w.key]=w,x=!0}return x}function mc(d,t,n,s){let c=d.tileID;return!!d.selfFading||!d.hasData()&&!!t.has(c)&&(d.setSelfFadeLogic(n+s),!0)}function Se(d,t){var n;d.needsHillshadePrepare=!0,d.needsTerrainPrepare=!0;let s=t.tileID.canonical.x-d.tileID.canonical.x,c=t.tileID.canonical.y-d.tileID.canonical.y,f=Math.pow(2,d.tileID.canonical.z),y=t.tileID.key;s===0&&c===0||Math.abs(c)>1||(Math.abs(s)>1&&(Math.abs(s+f)===1?s+=f:Math.abs(s-f)===1&&(s-=f)),t.dem&&d.dem&&(d.dem.backfillBorder(t.dem,s,c),!((n=d.neighboringTiles)===null||n===void 0)&&n[y]&&(d.neighboringTiles[y].backfilled=!0)))}class fn{constructor(){this._tiles={}}handleWrapJump(t){let n={};for(let s in this._tiles){let c=this._tiles[s];c.tileID=c.tileID.unwrapTo(c.tileID.wrap+t),n[c.tileID.key]=c}this._tiles=n}setFeatureState(t,n){for(let s in this._tiles)this._tiles[s].setFeatureState(t,n)}getAllTiles(){return Object.values(this._tiles)}getAllIds(t=!1){return t?Object.values(this._tiles).map((n=>n.tileID)).sort(h.au).map((n=>n.key)):Object.keys(this._tiles)}getTileById(t){return this._tiles[t]}setTile(t,n){this._tiles[t]=n}deleteTileById(t){delete this._tiles[t]}getLoadedTile(t){let n=this.getTileById(t.key);return n?.hasData()?n:null}isIdRenderable(t,n=!1){var s;return(s=this.getTileById(t))===null||s===void 0?void 0:s.isRenderable(n)}getRenderableIds(t=0,n){let s=[];for(let c of this.getAllIds())this.isIdRenderable(c,n)&&s.push(this.getTileById(c));return n?s.sort(((c,f)=>{let y=c.tileID,x=f.tileID,w=new h.P(y.canonical.x,y.canonical.y)._rotate(-t),S=new h.P(x.canonical.x,x.canonical.y)._rotate(-t);return y.overscaledZ-x.overscaledZ||S.y-w.y||S.x-w.x})).map((c=>c.tileID.key)):s.map((c=>c.tileID)).sort(h.au).map((c=>c.key))}}class ui extends h.E{constructor(t,n,s){super(),this.id=t,this.dispatcher=s,this.on(\"data\",(c=>{this._dataHandler(c)})),this.on(\"dataloading\",(()=>{this._sourceErrored=!1})),this.on(\"error\",(()=>{this._sourceErrored=this._source.loaded()})),this._source=((c,f,y,x)=>{let w=new(ya(f.type))(c,f,y,x);if(w.id!==c)throw new Error(`Expected Source id to be ${c} instead of ${w.id}`);return w})(t,n,s,this),this._inViewTiles=new fn,this._outOfViewCache=new h.av(0,(c=>this._unloadTile(c))),this._timers={},this._maxTileCacheSize=null,this._maxTileCacheZoomLevels=null,this._rasterFadeDuration=0,this._maxFadingAncestorLevels=5,this._state=new Us,this._didEmitContent=!1,this._updated=!1}onAdd(t){var n;this.map=t,this._maxTileCacheSize=t?t._maxTileCacheSize:null,this._maxTileCacheZoomLevels=t?t._maxTileCacheZoomLevels:null,!((n=this._source)===null||n===void 0)&&n.onAdd&&this._source.onAdd(t)}onRemove(t){var n;for(let s of this._inViewTiles.getAllTiles())s.unloadVectorData();this.clearTiles(),!((n=this._source)===null||n===void 0)&&n.onRemove&&this._source.onRemove(t),this._inViewTiles=new fn}loaded(){if(this._sourceErrored)return!0;if(!this._sourceLoaded||!this._source.loaded())return!1;if(!(this.used===void 0&&this.usedForTerrain===void 0||this.used||this.usedForTerrain))return!0;if(!this._updated)return!1;for(let t of this._inViewTiles.getAllTiles())if(t.state!==\"loaded\"&&t.state!==\"errored\")return!1;return!0}getSource(){return this._source}getState(){return this._state}pause(){this._paused=!0}resume(){if(!this._paused)return;let t=this._shouldReloadOnResume;this._paused=!1,this._shouldReloadOnResume=!1,t&&this.reload(),this.transform&&this.update(this.transform,this.terrain)}_loadTile(t,n,s){return h._(this,void 0,void 0,(function*(){try{let c=yield this._source.loadTile(t);this._tileLoaded(t,n,s,c)}catch(c){t.state=\"errored\",c.status!==404?this._source.fire(new h.l(h.d(c),{tile:t})):this.update(this.transform,this.terrain)}}))}_unloadTile(t){this._source.unloadTile&&this._source.unloadTile(t)}_abortTile(t){this._source.abortTile&&this._source.abortTile(t),this._source.fire(new h.n(\"dataabort\",{tile:t,coord:t.tileID,dataType:\"source\"}))}serialize(){return this._source.serialize()}prepare(t){this._source.prepare&&this._source.prepare(),this._state.coalesceChanges(this._inViewTiles,this.map?this.map.painter:null);for(let n of this._inViewTiles.getAllTiles())n.upload(t),n.prepare(this.map.style.imageManager)}getIds(){return this._inViewTiles.getAllIds(!0)}getRenderableIds(t){var n;return this._inViewTiles.getRenderableIds((n=this.transform)===null||n===void 0?void 0:n.bearingInRadians,t)}hasRenderableParent(t){let n=t.overscaledZ-1;if(n>=this._source.minzoom){let s=this.getLoadedTile(t.scaledTo(n));if(s)return this._inViewTiles.isIdRenderable(s.tileID.key)}return!1}reload(t,n=void 0){if(this._paused)this._shouldReloadOnResume=!0;else{this._outOfViewCache.reset();for(let s of this._inViewTiles.getAllIds()){let c=this._inViewTiles.getTileById(s);n&&!this._source.shouldReloadTile(c,n)||(t?this._reloadTile(s,\"expired\"):c.state!==\"errored\"&&this._reloadTile(s,\"reloading\"))}}}_reloadTile(t,n){return h._(this,void 0,void 0,(function*(){let s=this._inViewTiles.getTileById(t);s&&(s.state!==\"loading\"&&(s.state=n),yield this._loadTile(s,t,n))}))}_tileLoaded(t,n,s,c){t.timeAdded=Fe(),t.selfFading&&(t.fadeEndTime=t.timeAdded+this._rasterFadeDuration),s===\"expired\"&&(t.refreshedUponExpiration=!0),this._setTileReloadTimer(n,t),c?.unmodified||(this.getSource().type===\"raster-dem\"&&t.dem&&(function(f,y){var x,w,S;let M=y.getRenderableIds();for(let E of M){if(!(!((x=f.neighboringTiles)===null||x===void 0)&&x[E]))continue;let I=y.getTileById(E);f.neighboringTiles[E].backfilled||Se(f,I),!((S=(w=I.neighboringTiles)===null||w===void 0?void 0:w[f.tileID.key])===null||S===void 0)&&S.backfilled||Se(I,f)}})(t,this._inViewTiles),this._state.initializeTileState(t,this.map?this.map.painter:null),t.aborted||this._source.fire(new h.n(\"data\",{dataType:\"source\",tile:t,coord:t.tileID})))}getTile(t){return this.getTileByID(t.key)}getTileByID(t){return this._inViewTiles.getTileById(t)}_retainLoadedChildren(t,n){let s=this._getLoadedDescendents(n),c=new Set;for(let f of n){let y=s[f.key];if(!y?.length){c.add(f);continue}let x=f.overscaledZ+ui.maxOverzooming,w=y.filter((E=>E.tileID.overscaledZ<=x));if(!w.length){c.add(f);continue}let S=Math.min(...w.map((E=>E.tileID.overscaledZ))),M=w.filter((E=>E.tileID.overscaledZ===S)).map((E=>E.tileID));for(let E of M)t[E.key]=E;this._areDescendentsComplete(M,S,f.overscaledZ)||c.add(f)}return c}_getLoadedDescendents(t){var n;let s={};for(let c of this._inViewTiles.getAllTiles().filter((f=>f.hasData())))for(let f of t)c.tileID.isChildOf(f)&&(s[n=f.key]||(s[n]=[]),s[f.key].push(c));return s}_areDescendentsComplete(t,n,s){return t.length===1&&t[0].isOverscaled()?t[0].overscaledZ===n:Math.pow(4,n-s)===t.length}getLoadedTile(t){return this._inViewTiles.getLoadedTile(t)}updateCacheSize(t){let n=Math.ceil(t.width/this._source.tileSize)+1,s=Math.ceil(t.height/this._source.tileSize)+1,c=Math.floor(n*s*(this._maxTileCacheZoomLevels===null?h.c.MAX_TILE_CACHE_ZOOM_LEVELS:this._maxTileCacheZoomLevels)),f=typeof this._maxTileCacheSize==\"number\"?Math.min(this._maxTileCacheSize,c):c;this._outOfViewCache.setMaxSize(f)}handleWrapJump(t){let n=Math.round((t-(this._prevLng===void 0?t:this._prevLng))/360);this._prevLng=t,n&&(this._inViewTiles.handleWrapJump(n),this._resetTileReloadTimers())}update(t,n){if(!this._sourceLoaded||this._paused)return;let s;this.transform=t,this.terrain=n,this.updateCacheSize(t),this.handleWrapJump(this.transform.center.lng),this.used||this.usedForTerrain?this._source.tileID?s=t.getVisibleUnwrappedCoordinates(this._source.tileID).map((w=>new h.a3(w.canonical.z,w.wrap,w.canonical.z,w.canonical.x,w.canonical.y))):(s=pn(t,{tileSize:this.usedForTerrain?this.tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.type===\"vector\"&&this.map._zoomLevelsToOverscale!==void 0?t.maxZoom-this.map._zoomLevelsToOverscale:this._source.maxzoom,roundZoom:!this.usedForTerrain&&this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled,terrain:n,calculateTileZoom:this._source.calculateTileZoom}),this._source.hasTile&&(s=s.filter((w=>this._source.hasTile(w))))):s=[],this.usedForTerrain&&(s=this._addTerrainIdealTiles(s));let c=s.length===0&&!this._updated&&this._didEmitContent;this._updated=!0,c&&this.fire(new h.n(\"data\",{sourceDataType:\"idle\",dataType:\"source\",sourceId:this.id}));let f=Oi(t,this._source),y=this._updateRetainedTiles(s,f),x=fc(this._source.type);x&&this._rasterFadeDuration>0&&!n&&(function(w,S,M,E,I,D,B){let V=Fe(),q=h.at(S);for(let N of S){let G=w.getTileById(N.key);G.fadingDirection!==tr.Departing&&G.fadeOpacity!==0||G.resetFadeLogic(),Zu(w,G,M,V,E,I,B)||ba(w,G,M,V,D,B)||mc(G,q,V,B)||G.resetFadeLogic()}})(this._inViewTiles,s,y,this._maxFadingAncestorLevels,this._source.minzoom,this._source.maxzoom,this._rasterFadeDuration),x?this._cleanUpRasterTiles(y):this._cleanUpVectorTiles(y)}_cleanUpRasterTiles(t){for(let n of this._inViewTiles.getAllIds())t[n]||this._removeTile(n)}_cleanUpVectorTiles(t){for(let n of this._inViewTiles.getAllIds()){let s=this._inViewTiles.getTileById(n);t[n]?s.clearSymbolFadeHold():s.hasSymbolBuckets?s.holdingForSymbolFade()?s.symbolFadeFinished()&&this._removeTile(n):s.setSymbolHoldDuration(this.map._fadeDuration):this._removeTile(n)}}_addTerrainIdealTiles(t){let n=[];for(let s of t)if(s.canonical.z>this._source.minzoom){let c=s.scaledTo(s.canonical.z-1);n.push(c);let f=s.scaledTo(Math.max(this._source.minzoom,Math.min(s.canonical.z,5)));n.push(f)}return t.concat(n)}releaseSymbolFadeTiles(){for(let t of this._inViewTiles.getAllIds())this._inViewTiles.getTileById(t).holdingForSymbolFade()&&this._removeTile(t)}_updateRetainedTiles(t,n){var s;let c=new Set;for(let S of t)this._addTile(S).hasData()||c.add(S);let f=t.reduce(((S,M)=>(S[M.key]=M,S)),{}),y=this._retainLoadedChildren(f,c),x={},w=Math.max(n-ui.maxUnderzooming,this._source.minzoom);for(let S of y){let M=this._inViewTiles.getTileById(S.key),E=M?.wasRequested();for(let I=S.overscaledZ-1;I>=w;--I){let D=S.scaledTo(I);if(x[D.key])break;if(x[D.key]=!0,M=this.getTile(D),!M&&E&&(M=this._addTile(D)),M){let B=M.hasData();if((B||!(!((s=this.map)===null||s===void 0)&&s.cancelPendingTileRequestsWhileZooming)||E)&&(f[D.key]=D),E=M.wasRequested(),B)break}}}return f}_addTile(t){let n=this._inViewTiles.getTileById(t.key);if(n)return n;n=this._outOfViewCache.getAndRemove(t),n&&(n.resetFadeLogic(),this._setTileReloadTimer(t.key,n),n.tileID=t,this._state.initializeTileState(n,this.map?this.map.painter:null));let s=n;return n||(n=new Nn(t,this._source.tileSize*t.overscaleFactor()),this._loadTile(n,t.key,n.state)),n.uses++,this._inViewTiles.setTile(t.key,n),s||this._source.fire(new h.n(\"dataloading\",{tile:n,coord:n.tileID,dataType:\"source\"})),n}_setTileReloadTimer(t,n){this._clearTileReloadTimer(t);let s=n.getExpiryTimeout();s&&(this._timers[t]=setTimeout((()=>{this._reloadTile(t,\"expired\"),delete this._timers[t]}),s))}_clearTileReloadTimer(t){let n=this._timers[t];n&&(clearTimeout(n),delete this._timers[t])}_resetTileReloadTimers(){for(let t in this._timers)clearTimeout(this._timers[t]),delete this._timers[t];for(let t of this._inViewTiles.getAllIds()){let n=this._inViewTiles.getTileById(t);this._setTileReloadTimer(t,n)}}refreshTiles(t){for(let n of this._inViewTiles.getAllIds()){let s=this._inViewTiles.getTileById(n);(this._inViewTiles.isIdRenderable(n)||s.state==\"errored\")&&t.some((c=>c.equals(s.tileID.canonical)))&&this._reloadTile(n,\"expired\")}}_removeTile(t){let n=this._inViewTiles.getTileById(t);n&&(n.uses--,this._inViewTiles.deleteTileById(t),this._clearTileReloadTimer(t),n.uses>0||(n.hasData()&&n.state!==\"reloading\"?this._outOfViewCache.add(n.tileID,n,n.getExpiryTimeout()):(n.aborted=!0,this._abortTile(n),this._unloadTile(n))))}_dataHandler(t){t.dataType===\"source\"&&(t.sourceDataType!==\"metadata\"?t.sourceDataType===\"content\"&&this._sourceLoaded&&!this._paused&&(this.reload(t.sourceDataChanged,t.shouldReloadTileOptions),this.transform&&this.update(this.transform,this.terrain),this._didEmitContent=!0):this._sourceLoaded=!0)}clearTiles(){this._shouldReloadOnResume=!1,this._paused=!1;for(let t of this._inViewTiles.getAllIds())this._removeTile(t);this._outOfViewCache.reset()}tilesIn(t,n,s){let c=[],f=this.transform;if(!f)return c;let y=f.getCoveringTilesDetailsProvider().allowWorldCopies(),x=s?f.getCameraQueryGeometry(t):t,w=D=>f.screenPointToMercatorCoordinate(D,this.terrain),S=this.transformBbox(t,w,!y),M=this.transformBbox(x,w,!y),E=this.getIds(),I=h.a8.fromPoints(M);for(let D of E){let B=this._inViewTiles.getTileById(D);if(B.holdingForSymbolFade())continue;let V=y?[B.tileID]:[B.tileID.unwrapTo(-1),B.tileID.unwrapTo(0)],q=Math.pow(2,f.zoom-B.tileID.overscaledZ),N=n*B.queryPadding*h.a6/B.tileSize/q;for(let G of V){let X=I.map(($=>G.getTilePoint(new h.a7($.x,$.y))));if(X.expandBy(N),X.intersects(pc)){let $=S.map((H=>G.getTilePoint(H))),U=M.map((H=>G.getTilePoint(H)));c.push({tile:B,tileID:y?G:G.unwrapTo(0),queryGeometry:$,cameraQueryGeometry:U,scale:q})}}}return c}transformBbox(t,n,s){let c=t.map(n);if(s){let f=h.a8.fromPoints(t);f.shrinkBy(.001*Math.min(f.width(),f.height()));let y=f.map(n);h.a8.fromPoints(c).covers(y)||(c=c.map((x=>x.x>.5?new h.a7(x.x-1,x.y,x.z):x)))}return c}getVisibleCoordinates(t){let n=this.getRenderableIds(t).map((s=>this._inViewTiles.getTileById(s).tileID));return this.transform&&this.transform.populateCache(n),n}hasTransition(){return!!this._source.hasTransition()||fc(this._source.type)&&(function(t,n){if(n<=0)return!1;let s=Fe();for(let c of t.getAllTiles())if(c.fadeEndTime>=s)return!0;return!1})(this._inViewTiles,this._rasterFadeDuration)}setRasterFadeDuration(t){this._rasterFadeDuration=t}setFeatureState(t,n,s){t||(t=h.ag),this._state.updateState(t,n,s)}removeFeatureState(t,n,s){t||(t=h.ag),this._state.removeFeatureState(t,n,s)}getFeatureState(t,n){return t||(t=h.ag),this._state.getState(t,n)}setDependencies(t,n,s){let c=this._inViewTiles.getTileById(t);c&&c.setDependencies(n,s)}reloadTilesForDependencies(t,n){for(let s of this._inViewTiles.getAllIds())this._inViewTiles.getTileById(s).hasDependency(t,n)&&this._reloadTile(s,\"reloading\");this._outOfViewCache.filter((s=>!s.hasDependency(t,n)))}areTilesLoaded(){for(let t of this._inViewTiles.getAllTiles())if(t.state!==\"loaded\"&&t.state!==\"errored\")return!1;return!0}}ui.maxUnderzooming=10,ui.maxOverzooming=3;class Zs{constructor(t,n){this.reset(t,n)}reset(t,n){this.points=t||[],this._distances=[0];for(let s=1;s0?(c-y)/x:0;return this.points[f].mult(1-w).add(this.points[n].mult(w))}}function Hr(d,t){let n=!0;return d===\"always\"||d!==\"never\"&&t!==\"never\"||(n=!1),n}class Ie{constructor(t,n,s){let c=this.boxCells=[],f=this.circleCells=[];this.xCellCount=Math.ceil(t/s),this.yCellCount=Math.ceil(n/s);for(let y=0;ythis.width||c<0||n>this.height)return[];let w=[];if(t<=0&&n<=0&&this.width<=s&&this.height<=c){if(f)return[{key:null,x1:t,y1:n,x2:s,y2:c}];for(let S=0;S0}hitTestCircle(t,n,s,c,f){let y=t-s,x=t+s,w=n-s,S=n+s;if(x<0||y>this.width||S<0||w>this.height)return!1;let M=[];return this._forEachCell(y,w,x,S,this._queryCellCircle,M,{hitTest:!0,overlapMode:c,circle:{x:t,y:n,radius:s},seenUids:{box:{},circle:{}}},f),M.length>0}_queryCell(t,n,s,c,f,y,x,w){let{seenUids:S,hitTest:M,overlapMode:E}=x,I=this.boxCells[f],D=1e-6;if(I!==null){let V=this.bboxes;for(let q of I)if(!S.box[q]){S.box[q]=!0;let N=4*q,G=this.boxKeys[q];if(t<=V[N+2]+D&&n<=V[N+3]+D&&s>=V[N+0]-D&&c>=V[N+1]-D&&(!w||w(G))&&(!M||!Hr(E,G.overlapMode))&&(y.push({key:G,x1:V[N],y1:V[N+1],x2:V[N+2],y2:V[N+3]}),M))return!0}}let B=this.circleCells[f];if(B!==null){let V=this.circles;for(let q of B)if(!S.circle[q]){S.circle[q]=!0;let N=3*q,G=this.circleKeys[q];if(this._circleAndRectCollide(V[N],V[N+1],V[N+2],t,n,s,c)&&(!w||w(G))&&(!M||!Hr(E,G.overlapMode))){let X=V[N],$=V[N+1],U=V[N+2];if(y.push({key:G,x1:X-U,y1:$-U,x2:X+U,y2:$+U}),M)return!0}}}return!1}_queryCellCircle(t,n,s,c,f,y,x,w){let{circle:S,seenUids:M,overlapMode:E}=x,I=this.boxCells[f];if(I!==null){let B=this.bboxes;for(let V of I)if(!M.box[V]){M.box[V]=!0;let q=4*V,N=this.boxKeys[V];if(this._circleAndRectCollide(S.x,S.y,S.radius,B[q+0],B[q+1],B[q+2],B[q+3])&&(!w||w(N))&&!Hr(E,N.overlapMode))return y.push(!0),!0}}let D=this.circleCells[f];if(D!==null){let B=this.circles;for(let V of D)if(!M.circle[V]){M.circle[V]=!0;let q=3*V,N=this.circleKeys[V];if(this._circlesCollide(B[q],B[q+1],B[q+2],S.x,S.y,S.radius)&&(!w||w(N))&&!Hr(E,N.overlapMode))return y.push(!0),!0}}}_forEachCell(t,n,s,c,f,y,x,w){let S=this._convertToXCellCoord(t),M=this._convertToYCellCoord(n),E=this._convertToXCellCoord(s),I=this._convertToYCellCoord(c);for(let D=S;D<=E;D++)for(let B=M;B<=I;B++)if(f.call(this,t,n,s,c,this.xCellCount*B+D,y,x,w))return}_convertToXCellCoord(t){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(t*this.xScale)))}_convertToYCellCoord(t){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(t*this.yScale)))}_circlesCollide(t,n,s,c,f,y){let x=c-t,w=f-n,S=s+y;return S*S>x*x+w*w}_circleAndRectCollide(t,n,s,c,f,y,x){let w=(y-c)/2,S=Math.abs(t-(c+w));if(S>w+s)return!1;let M=(x-f)/2,E=Math.abs(n-(f+M));if(E>M+s)return!1;if(S<=w||E<=M)return!0;let I=S-w,D=E-M;return I*I+D*D<=s*s}}function Ke(d,t){let n=1/(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]),s=1/(t[8]*t[8]+t[9]*t[9]+t[10]*t[10]),c=t[0]*n,f=t[4]*n,y=t[8]*s,x=t[1]*n,w=t[5]*n,S=t[9]*s,M=t[2]*n,E=t[6]*n,I=t[10]*s;d[0]=c,d[1]=f,d[2]=y,d[4]=x,d[5]=w,d[6]=S,d[8]=M,d[9]=E,d[10]=I;let D=t[12],B=t[13],V=t[14];return d[12]=-c*D-x*B-M*V,d[13]=-f*D-w*B-E*V,d[14]=-y*D-S*B-I*V,d[3]=0,d[7]=0,d[11]=0,d[15]=1,d}let rt=h.O();function Gi(d,t,n){let s=h.O();if(!d){let{vecSouth:E,vecEast:I}=zr(t),D=Ve();D[0]=I[0],D[1]=I[1],D[2]=E[0],D[3]=E[1],c=D,(M=(y=(f=D)[0])*(S=f[3])-(w=f[2])*(x=f[1]))&&(c[0]=S*(M=1/M),c[1]=-x*M,c[2]=-w*M,c[3]=y*M),s[0]=D[0],s[1]=D[1],s[4]=D[2],s[5]=D[3]}var c,f,y,x,w,S,M;return h.S(s,s,[1/n,1/n,1]),s}function wa(d,t,n,s){if(d){let c=h.O();if(!t){let{vecSouth:f,vecEast:y}=zr(n);c[0]=y[0],c[1]=y[1],c[4]=f[0],c[5]=f[1]}return h.S(c,c,[s,s,1]),c}return n.pixelsToClipSpaceMatrix}function zr(d){let t=Math.cos(d.rollInRadians),n=Math.sin(d.rollInRadians),s=Math.cos(d.pitchInRadians),c=Math.cos(d.bearingInRadians),f=Math.sin(d.bearingInRadians),y=h.az();y[0]=-c*s*n-f*t,y[1]=-f*s*n+c*t;let x=h.aA(y);x<1e-9?h.aB(y):h.aC(y,y,1/x);let w=h.az();w[0]=c*s*t-f*n,w[1]=f*s*t+c*n;let S=h.aA(w);return S<1e-9?h.aB(w):h.aC(w,w,1/S),{vecEast:w,vecSouth:y}}function Je(d,t,n,s){let c;s?(c=[d,t,s(d,t),1],h.aE(c,c,n)):(c=[d,t,0,1],Ma(c,c,n));let f=c[3];return{point:new h.P(c[0]/f,c[1]/f),signedDistanceFromCamera:f,isOccluded:!1}}function Eo(d,t){return .5+d/t*.5}function Io(d,t){return d.x>=-t[0]&&d.x<=t[0]&&d.y>=-t[1]&&d.y<=t[1]}function Ta(d,t,n,s,c,f,y,x,w,S,M,E,I){let D=n?d.textSizeData:d.iconSizeData,B=h.aw(D,t.transform.zoom),V=[256/t.width*2+1,256/t.height*2+1],q=n?d.text.dynamicLayoutVertexArray:d.icon.dynamicLayoutVertexArray;q.clear();let N=d.lineVertexArray,G=n?d.text.placedSymbolArray:d.icon.placedSymbolArray,X=t.transform.width/t.transform.height,$=!1;for(let U=0;UMath.abs(n.x-t.x)*s?{useVertical:!0}:(d===h.ax.vertical?t.yn.x)?{needsFlipping:!0}:null}function $n(d){let{projectionContext:t,pitchedLabelPlaneMatrixInverse:n,symbol:s,fontSize:c,flip:f,keepUpright:y,glyphOffsetArray:x,dynamicLayoutVertexArray:w,aspectRatio:S,rotateToLine:M}=d,E=c/24,I=s.lineOffsetX*E,D=s.lineOffsetY*E,B;if(s.numGlyphs>1){let V=s.glyphStartIndex+s.numGlyphs,q=s.lineStartIndex,N=s.lineStartIndex+s.lineLength,G=Gn(E,x,I,D,f,s,M,t);if(!G)return{notEnoughRoom:!0};let X=Sa(G.first.point.x,G.first.point.y,t,n),$=Sa(G.last.point.x,G.last.point.y,t,n);if(y&&!f){let U=Ao(s.writingMode,X,$,S);if(U)return U}B=[G.first];for(let U=s.glyphStartIndex+1;U0?X.point:zo(t.tileAnchorPoint,G,q,1,t),U=Sa(q.x,q.y,t,n),H=Sa($.x,$.y,t,n),Z=Ao(s.writingMode,U,H,S);if(Z)return Z}let V=pr(E*x.getoffsetX(s.glyphStartIndex),I,D,f,s.segment,s.lineStartIndex,s.lineStartIndex+s.lineLength,t,M);if(!V||t.projectionCache.anyProjectionOccluded)return{notEnoughRoom:!0};B=[V]}for(let V of B)h.aD(w,V.point,V.angle);return{}}function zo(d,t,n,s,c){let f=d.add(d.sub(t)._unit()),y=bt(f.x,f.y,c).point,x=n.sub(y);return n.add(x._mult(s/x.mag()))}function hi(d,t,n){let s=t.projectionCache;if(s.projections[d])return s.projections[d];let c=new h.P(t.lineVertexArray.getx(d),t.lineVertexArray.gety(d)),f=bt(c.x,c.y,t);if(f.signedDistanceFromCamera>0)return s.projections[d]=f.point,s.anyProjectionOccluded||(s.anyProjectionOccluded=f.isOccluded),f.point;let y=d-n.direction;return zo(n.distanceFromAnchor===0?t.tileAnchorPoint:new h.P(t.lineVertexArray.getx(y),t.lineVertexArray.gety(y)),c,n.previousVertex,n.absOffsetX-n.distanceFromAnchor+1,t)}function bt(d,t,n){let s=d+n.translation[0],c=t+n.translation[1],f;return n.pitchWithMap?(f=Je(s,c,n.pitchedLabelPlaneMatrix,n.getElevation),f.isOccluded=!1):(f=n.transform.projectTileCoordinates(s,c,n.unwrappedTileID,n.getElevation),f.point.x=(.5*f.point.x+.5)*n.width,f.point.y=(.5*-f.point.y+.5)*n.height),f}function Sa(d,t,n,s){if(n.pitchWithMap){let c=[d,t,0,1];return h.aE(c,c,s),n.transform.projectTileCoordinates(c[0]/c[3],c[1]/c[3],n.unwrappedTileID,n.getElevation).point}return{x:d/n.width*2-1,y:1-t/n.height*2}}function Zn(d,t,n){return n.transform.projectTileCoordinates(d,t,n.unwrappedTileID,n.getElevation)}function Do(d,t,n){return d._unit()._perp()._mult(t*n)}function mn(d,t,n,s,c,f,y,x,w){if(x.projectionCache.offsets[d])return x.projectionCache.offsets[d];let S=n.add(t);if(d+w.direction=c)return x.projectionCache.offsets[d]=S,S;let M=hi(d+w.direction,x,w),E=Do(M.sub(n),y,w.direction),I=n.add(E),D=M.add(E);return x.projectionCache.offsets[d]=h.aF(f,S,I,D)||S,x.projectionCache.offsets[d]}function pr(d,t,n,s,c,f,y,x,w){let S=s?d-t:d+t,M=S>0?1:-1,E=0;s&&(M*=-1,E=Math.PI),M<0&&(E+=Math.PI);let I,D=M>0?f+c:f+c+1;x.projectionCache.cachedAnchorPoint?I=x.projectionCache.cachedAnchorPoint:(I=bt(x.tileAnchorPoint.x,x.tileAnchorPoint.y,x).point,x.projectionCache.cachedAnchorPoint=I);let B,V,q=I,N=I,G=0,X=0,$=Math.abs(S),U=[],H;for(;G+X<=$;){if(D+=M,D=y)return null;G+=X,N=q,V=B;let se={absOffsetX:$,direction:M,distanceFromAnchor:G,previousVertex:N};if(q=hi(D,x,se),n===0)U.push(N),H=q.sub(N);else{let ce,_e=q.sub(N);ce=_e.mag()===0?Do(hi(D+M,x,se).sub(q),n,M):Do(_e,n,M),V||(V=N.add(ce)),B=mn(D,ce,q,f,y,V,n,x,se),U.push(V),H=B.sub(V)}X=H.mag()}let Z=H._mult(($-G)/X)._add(V||N),te=E+Math.atan2(q.y-N.y,q.x-N.x);return U.push(Z),{point:Z,angle:w?te:0,path:U}}let gc=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function gn(d,t){for(let n=0;n=1;Be--)Ce.push(ge.path[Be]);for(let Be=1;Be_t.signedDistanceFromCamera<=0))?[]:Be.map((_t=>_t.point))}let Ae=[];if(Ce.length>0){let Be=Ce[0].clone(),_t=Ce[0].clone();for(let $t=1;$t=se.x&&_t.x<=ce.x&&Be.y>=se.y&&_t.y<=ce.y?[Ce]:_t.xce.x||_t.yce.y?[]:h.aG([Ce],se.x,se.y,ce.x,ce.y)}for(let Be of Ae){_e.reset(Be,.25*te);let _t=0;_t=_e.length<=.5*te?1:Math.ceil(_e.paddedLength/me)+1;for(let $t=0;$t<_t;$t++){let St=$t/Math.max(_t-1,1),Wt=_e.lerp(St),Xt=Wt.x+Vt,gi=Wt.y+Vt;V.push(Xt,gi,te,0);let jt=Xt-te,Ai=gi-te,di=Xt+te,ri=gi+te;if(Z&&(Z=this.isOffscreen(jt,Ai,di,ri)),H||(H=this.isInsideGrid(jt,Ai,di,ri)),t!==\"always\"&&this.grid.hitTestCircle(Xt,gi,te,t,M)&&(U=!0,!w))return{circles:[],offscreen:!1,collisionDetected:U}}}}return{circles:!w&&U||!H||N{let w=Je(x.x,x.y,y,f.getElevation),S=f.transform.projectTileCoordinates(w.point.x,w.point.y,f.unwrappedTileID,f.getElevation);return S.point.x=(.5*S.point.x+.5)*f.width,S.point.y=(.5*-S.point.y+.5)*f.height,S}))})(t,n);return(function(c){let f=0,y=0,x=0,w=0;for(let S=0;Sy&&(y=w,f=x));return c.slice(f,f+y)})(s)}queryRenderedSymbols(t){if(t.length===0||this.grid.keysLength()===0&&this.ignoredGrid.keysLength()===0)return{};let n=[],s=new h.a8;for(let E of t){let I=new h.P(E.x+Vt,E.y+Vt);s.extend(I),n.push(I)}let{minX:c,minY:f,maxX:y,maxY:x}=s,w=this.grid.query(c,f,y,x).concat(this.ignoredGrid.query(c,f,y,x)),S={},M={};for(let E of w){let I=E.key;if(S[I.bucketInstanceId]===void 0&&(S[I.bucketInstanceId]={}),S[I.bucketInstanceId][I.featureIndex])continue;let D=[new h.P(E.x1,E.y1),new h.P(E.x2,E.y1),new h.P(E.x2,E.y2),new h.P(E.x1,E.y2)];h.aH(n,D)&&(S[I.bucketInstanceId][I.featureIndex]=!0,M[I.bucketInstanceId]===void 0&&(M[I.bucketInstanceId]=[]),M[I.bucketInstanceId].push(I.featureIndex))}return M}insertCollisionBox(t,n,s,c,f,y){(s?this.ignoredGrid:this.grid).insert({bucketInstanceId:c,featureIndex:f,collisionGroupID:y,overlapMode:n},t[0],t[1],t[2],t[3])}insertCollisionCircles(t,n,s,c,f,y){let x=s?this.ignoredGrid:this.grid,w={bucketInstanceId:c,featureIndex:f,collisionGroupID:y,overlapMode:n};for(let S=0;S=this.screenRightBoundary||cthis.screenBottomBoundary}isInsideGrid(t,n,s,c){return s>=0&&t=0&&nthis.projectAndGetPerspectiveRatio(me.x,me.y,c,S,E)));Re=Ce.some((me=>!me.isOccluded)),ge=Ce.map((me=>new h.P(me.x,me.y)))}else Re=!0;return{box:h.aI(ge),allPointsOccluded:!Re}}}class yc{constructor(t,n,s,c){this.opacity=t?Math.max(0,Math.min(1,t.opacity+(t.placed?n:-n))):c&&s?1:0,this.placed=s}isHidden(){return this.opacity===0&&!this.placed}}class ko{constructor(t,n,s,c,f){this.text=new yc(t?t.text:null,n,s,f),this.icon=new yc(t?t.icon:null,n,c,f)}isHidden(){return this.text.isHidden()&&this.icon.isHidden()}}class vc{constructor(t,n,s){this.text=t,this.icon=n,this.skipFade=s}}class xc{constructor(t,n,s,c,f){this.bucketInstanceId=t,this.featureIndex=n,this.sourceLayerIndex=s,this.bucketIndex=c,this.tileID=f}}class bc{constructor(t){this.crossSourceCollisions=t,this.maxGroupID=0,this.collisionGroups={}}get(t){if(this.crossSourceCollisions)return{ID:0,predicate:null};if(!this.collisionGroups[t]){let n=++this.maxGroupID;this.collisionGroups[t]={ID:n,predicate:s=>s.collisionGroupID===n}}return this.collisionGroups[t]}}function Pa(d,t,n,s,c){let{horizontalAlign:f,verticalAlign:y}=h.aP(d);return new h.P(-(f-.5)*t+s[0]*c,-(y-.5)*n+s[1]*c)}class Ws{constructor(t,n,s,c,f){this.transform=t.clone(),this.terrain=n,this.collisionIndex=new _c(this.transform),this.placements={},this.opacities={},this.variableOffsets={},this.stale=!1,this.commitTime=0,this.fadeDuration=s,this.retainedQueryData={},this.collisionGroups=new bc(c),this.collisionCircleArrays={},this.collisionBoxArrays=new Map,this.prevPlacement=f,f&&(f.prevPlacement=void 0),this.placedOrientations={}}_getTerrainElevationFunc(t){let n=this.terrain;return n?(s,c)=>n.getElevation(t,s,c):null}getBucketParts(t,n,s,c){let f=s.getBucket(n),y=s.latestFeatureIndex;if(!f||!y||n.id!==f.layerIds[0])return;let x=s.collisionBoxArray,w=f.layers[0].layout,S=f.layers[0].paint,M=Math.pow(2,this.transform.zoom-s.tileID.overscaledZ),E=s.tileSize/h.a6,I=s.tileID.toUnwrapped(),D=w.get(\"text-rotation-alignment\")===\"map\",B=h.aK(s,1,this.transform.zoom),V=h.aL(this.collisionIndex.transform,s,S.get(\"text-translate\"),S.get(\"text-translate-anchor\")),q=h.aL(this.collisionIndex.transform,s,S.get(\"icon-translate\"),S.get(\"icon-translate-anchor\")),N=Gi(D,this.transform,B);this.retainedQueryData[f.bucketInstanceId]=new xc(f.bucketInstanceId,y,f.sourceLayerIndex,f.index,s.tileID);let G={bucket:f,layout:w,translationText:V,translationIcon:q,unwrappedTileID:I,pitchedLabelPlaneMatrix:N,scale:M,textPixelRatio:E,holdingForFade:s.holdingForSymbolFade(),collisionBoxArray:x,partiallyEvaluatedTextSize:h.aw(f.textSizeData,this.transform.zoom),collisionGroup:this.collisionGroups.get(f.sourceID)};if(c)for(let X of f.sortKeyRanges){let{sortKey:$,symbolInstanceStart:U,symbolInstanceEnd:H}=X;t.push({sortKey:$,symbolInstanceStart:U,symbolInstanceEnd:H,parameters:G})}else t.push({symbolInstanceStart:0,symbolInstanceEnd:f.symbolInstances.length,parameters:G})}attemptAnchorPlacement(t,n,s,c,f,y,x,w,S,M,E,I,D,B,V,q,N,G,X,$){var U,H,Z;let te=h.aM[t.textAnchor],se=[t.textOffset0,t.textOffset1],ce=Pa(te,s,c,se,f),_e=this.collisionIndex.placeCollisionBox(n,I,w,S,M,x,y,q,E.predicate,X,ce,$);if((!G||this.collisionIndex.placeCollisionBox(G,I,w,S,M,x,y,N,E.predicate,X,ce,$).placeable)&&_e.placeable){let ge;if(!((U=this.prevPlacement)===null||U===void 0)&&U.variableOffsets[D.crossTileID]&&(!((Z=(H=this.prevPlacement)===null||H===void 0?void 0:H.placements[D.crossTileID])===null||Z===void 0)&&Z.text)&&(ge=this.prevPlacement.variableOffsets[D.crossTileID].anchor),D.crossTileID===0)throw new Error(\"symbolInstance.crossTileID can't be 0\");return this.variableOffsets[D.crossTileID]={textOffset:se,width:s,height:c,anchor:te,textBoxScale:f,prevAnchor:ge},this.markUsedJustification(B,te,D,V),B.allowVerticalPlacement&&(this.markUsedOrientation(B,V,D),this.placedOrientations[D.crossTileID]=V),{shift:ce,placedGlyphBoxes:_e}}}placeLayerBucketPart(t,n,s){let{bucket:c,layout:f,translationText:y,translationIcon:x,unwrappedTileID:w,pitchedLabelPlaneMatrix:S,textPixelRatio:M,holdingForFade:E,collisionBoxArray:I,partiallyEvaluatedTextSize:D,collisionGroup:B}=t.parameters,V=f.get(\"text-optional\"),q=f.get(\"icon-optional\"),N=h.aN(f,\"text-overlap\",\"text-allow-overlap\"),G=N===\"always\",X=h.aN(f,\"icon-overlap\",\"icon-allow-overlap\"),$=X===\"always\",U=f.get(\"text-rotation-alignment\")===\"map\",H=f.get(\"text-pitch-alignment\")===\"map\",Z=f.get(\"icon-text-fit\")!==\"none\",te=f.get(\"symbol-z-order\")===\"viewport-y\",se=G&&($||!c.hasIconData()||q),ce=$&&(G||!c.hasTextData()||V);!c.collisionArrays&&I&&c.deserializeCollisionBoxes(I);let _e=this.retainedQueryData[c.bucketInstanceId].tileID,ge=this._getTerrainElevationFunc(_e),Re=this.transform.getFastPathSimpleProjectionMatrix(_e),Ce=(me,Ae,Be)=>{var _t,$t;if(n[me.crossTileID])return;if(E)return void(this.placements[me.crossTileID]=new vc(!1,!1,!1));let St=!1,Wt=!1,Xt=!0,gi=null,jt={box:null,placeable:!1,offscreen:null,occluded:!1},Ai={placeable:!1},di=null,ri=null,_i=null,tn=0,rn=0,nn=0;Ae.textFeatureIndex?tn=Ae.textFeatureIndex:me.useRuntimeCollisionCircles&&(tn=me.featureIndex),Ae.verticalTextFeatureIndex&&(rn=Ae.verticalTextFeatureIndex);let yi=Ae.textBox;if(yi){let Mr=Ft=>{let At=h.ax.horizontal;if(c.allowVerticalPlacement&&!Ft&&this.prevPlacement){let Yt=this.prevPlacement.placedOrientations[me.crossTileID];Yt&&(this.placedOrientations[me.crossTileID]=Yt,At=Yt,this.markUsedOrientation(c,At,me))}return At},Pr=(Ft,At)=>{if(c.allowVerticalPlacement&&me.numVerticalGlyphVertices>0&&Ae.verticalTextBox){for(let Yt of c.writingModes)if(Yt===h.ax.vertical?(jt=At(),Ai=jt):jt=Ft(),jt?.placeable)break}else jt=Ft()},Xi=me.textAnchorOffsetStartIndex,or=me.textAnchorOffsetEndIndex;if(or===Xi){let Ft=(At,Yt)=>{let Bt=this.collisionIndex.placeCollisionBox(At,N,M,_e,w,H,U,y,B.predicate,ge,void 0,Re);return Bt?.placeable&&(this.markUsedOrientation(c,Yt,me),this.placedOrientations[me.crossTileID]=Yt),Bt};Pr((()=>Ft(yi,h.ax.horizontal)),(()=>{let At=Ae.verticalTextBox;return c.allowVerticalPlacement&&me.numVerticalGlyphVertices>0&&At?Ft(At,h.ax.vertical):{box:null,offscreen:null}})),Mr(jt?.placeable)}else{let Ft=h.aM[($t=(_t=this.prevPlacement)===null||_t===void 0?void 0:_t.variableOffsets[me.crossTileID])===null||$t===void 0?void 0:$t.anchor],At=(Bt,Rn,us)=>{let Vr=Bt.x2-Bt.x1,Nl=Bt.y2-Bt.y1,gu=me.textBoxScale,Ul=Z&&X===\"never\"?Rn:null,an=null,sn=N===\"never\"?1:2,ln=\"never\";Ft&&sn++;for(let ql=0;qlAt(yi,Ae.iconBox,h.ax.horizontal)),(()=>{let Bt=Ae.verticalTextBox;return c.allowVerticalPlacement&&!jt?.placeable&&me.numVerticalGlyphVertices>0&&Bt?At(Bt,Ae.verticalIconBox,h.ax.vertical):{box:null,occluded:!0,offscreen:null}})),jt&&(St=jt.placeable,Xt=jt.offscreen);let Yt=Mr(jt?.placeable);if(!St&&this.prevPlacement){let Bt=this.prevPlacement.variableOffsets[me.crossTileID];Bt&&(this.variableOffsets[me.crossTileID]=Bt,this.markUsedJustification(c,Bt.anchor,me,Yt))}}}if(di=jt,St=di?.placeable,Xt=di?.offscreen,me.useRuntimeCollisionCircles&&me.centerJustifiedTextSymbolIndex>=0){let Mr=c.text.placedSymbolArray.get(me.centerJustifiedTextSymbolIndex),Pr=h.ay(c.textSizeData,D,Mr),Xi=f.get(\"text-padding\");ri=this.collisionIndex.placeCollisionCircles(N,Mr,c.lineVertexArray,c.glyphOffsetArray,Pr,w,S,s,H,B.predicate,me.collisionCircleDiameter,Xi,y,ge),ri.circles.length&&ri.collisionDetected&&!s&&h.w(\"Collisions detected, but collision boxes are not shown\"),St=G||ri.circles.length>0&&!ri.collisionDetected,Xt&&(Xt=ri.offscreen)}if(Ae.iconFeatureIndex&&(nn=Ae.iconFeatureIndex),Ae.iconBox){let Mr=Pr=>this.collisionIndex.placeCollisionBox(Pr,X,M,_e,w,H,U,x,B.predicate,ge,Z&&gi?gi:void 0,Re);Ai&&Ai.placeable&&Ae.verticalIconBox?(_i=Mr(Ae.verticalIconBox),Wt=_i.placeable):(_i=Mr(Ae.iconBox),Wt=_i.placeable),Xt&&(Xt=_i.offscreen)}let Or=V||me.numHorizontalGlyphVertices===0&&me.numVerticalGlyphVertices===0,on=q||me.numIconVertices===0;Or||on?on?Or||Wt&&(Wt=St):St=Wt&&St:Wt=St=Wt&&St;let cs=Wt&&_i.placeable;if(St&&di.placeable&&this.collisionIndex.insertCollisionBox(di.box,N,f.get(\"text-ignore-placement\"),c.bucketInstanceId,Ai&&Ai.placeable&&rn?rn:tn,B.ID),cs&&this.collisionIndex.insertCollisionBox(_i.box,X,f.get(\"icon-ignore-placement\"),c.bucketInstanceId,nn,B.ID),ri&&St&&this.collisionIndex.insertCollisionCircles(ri.circles,N,f.get(\"text-ignore-placement\"),c.bucketInstanceId,tn,B.ID),s&&this.storeCollisionData(c.bucketInstanceId,Be,Ae,di,_i,ri),me.crossTileID===0)throw new Error(\"symbolInstance.crossTileID can't be 0\");if(c.bucketInstanceId===0)throw new Error(\"bucket.bucketInstanceId can't be 0\");this.placements[me.crossTileID]=new vc((St||se)&&!di?.occluded,(Wt||ce)&&!_i?.occluded,Xt||c.justReloaded),n[me.crossTileID]=!0};if(te){if(t.symbolInstanceStart!==0)throw new Error(\"bucket.bucketInstanceId should be 0\");let me=c.getSortedSymbolIndexes(-this.transform.bearingInRadians);for(let Ae=me.length-1;Ae>=0;--Ae){let Be=me[Ae];Ce(c.symbolInstances.get(Be),c.collisionArrays[Be],Be)}}else for(let me=t.symbolInstanceStart;me=0&&(t.text.placedSymbolArray.get(x).crossTileID=f>=0&&x!==f?0:s.crossTileID)}markUsedOrientation(t,n,s){let c=n===h.ax.horizontal||n===h.ax.horizontalOnly?n:0,f=n===h.ax.vertical?n:0,y=[s.leftJustifiedTextSymbolIndex,s.centerJustifiedTextSymbolIndex,s.rightJustifiedTextSymbolIndex];for(let x of y)t.text.placedSymbolArray.get(x).placedOrientation=c;s.verticalPlacedTextSymbolIndex&&(t.text.placedSymbolArray.get(s.verticalPlacedTextSymbolIndex).placedOrientation=f)}commit(t){this.commitTime=t,this.zoomAtLastRecencyCheck=this.transform.zoom;let n=this.prevPlacement,s=!1;this.prevZoomAdjustment=n?n.zoomAdjustment(this.transform.zoom):0;let c=n?n.symbolFadeChange(t):1,f=n?n.opacities:{},y=n?n.variableOffsets:{},x=n?n.placedOrientations:{};for(let w in this.placements){let S=this.placements[w],M=f[w];M?(this.opacities[w]=new ko(M,c,S.text,S.icon),s||(s=S.text!==M.text.placed),s||(s=S.icon!==M.icon.placed)):(this.opacities[w]=new ko(null,c,S.text,S.icon,S.skipFade),s||(s=S.text||S.icon))}for(let w in f){let S=f[w];if(!this.opacities[w]){let M=new ko(S,c,!1,!1);M.isHidden()||(this.opacities[w]=M,s||(s=S.text.placed),s||(s=S.icon.placed))}}for(let w in y)this.variableOffsets[w]||!this.opacities[w]||this.opacities[w].isHidden()||(this.variableOffsets[w]=y[w]);for(let w in x)this.placedOrientations[w]||!this.opacities[w]||this.opacities[w].isHidden()||(this.placedOrientations[w]=x[w]);if(n&&n.lastPlacementChangeTime===void 0)throw new Error(\"Last placement time for previous placement is not defined\");s?this.lastPlacementChangeTime=t:typeof this.lastPlacementChangeTime!=\"number\"&&(this.lastPlacementChangeTime=n?n.lastPlacementChangeTime:t)}updateLayerOpacities(t,n){let s={};for(let c of n){let f=c.getBucket(t);f&&c.latestFeatureIndex&&t.id===f.layerIds[0]&&this.updateBucketOpacities(f,c.tileID,s,c.collisionBoxArray)}}updateBucketOpacities(t,n,s,c){t.hasTextData()&&(t.text.opacityVertexArray.clear(),t.text.hasVisibleVertices=!1),t.hasIconData()&&(t.icon.opacityVertexArray.clear(),t.icon.hasVisibleVertices=!1),t.hasIconCollisionBoxData()&&t.iconCollisionBox.collisionVertexArray.clear(),t.hasTextCollisionBoxData()&&t.textCollisionBox.collisionVertexArray.clear();let f=t.layers[0],y=f.layout,x=new ko(null,0,!1,!1,!0),w=y.get(\"text-allow-overlap\"),S=y.get(\"icon-allow-overlap\"),M=f._unevaluatedLayout.hasValue(\"text-variable-anchor\")||f._unevaluatedLayout.hasValue(\"text-variable-anchor-offset\"),E=y.get(\"text-rotation-alignment\")===\"map\",I=y.get(\"text-pitch-alignment\")===\"map\",D=y.get(\"icon-text-fit\")!==\"none\",B=new ko(null,0,w&&(S||!t.hasIconData()||y.get(\"icon-optional\")),S&&(w||!t.hasTextData()||y.get(\"text-optional\")),!0);!t.collisionArrays&&c&&(t.hasIconCollisionBoxData()||t.hasTextCollisionBoxData())&&t.deserializeCollisionBoxes(c);let V=(N,G,X)=>{for(let $=0;$0,te=this.placedOrientations[G.crossTileID],se=te===h.ax.vertical,ce=te===h.ax.horizontal||te===h.ax.horizontalOnly;if(X>0||$>0){let ge=Ks(H.text);V(t.text,X,se?Lo:ge),V(t.text,$,ce?Lo:ge);let Re=H.text.isHidden(),Ce=[G.rightJustifiedTextSymbolIndex,G.centerJustifiedTextSymbolIndex,G.leftJustifiedTextSymbolIndex];for(let Be of Ce)Be>=0&&(t.text.placedSymbolArray.get(Be).hidden=Re||se?1:0);G.verticalPlacedTextSymbolIndex>=0&&(t.text.placedSymbolArray.get(G.verticalPlacedTextSymbolIndex).hidden=Re||ce?1:0);let me=this.variableOffsets[G.crossTileID];me&&this.markUsedJustification(t,me.anchor,G,te);let Ae=this.placedOrientations[G.crossTileID];Ae&&(this.markUsedJustification(t,\"left\",G,Ae),this.markUsedOrientation(t,Ae,G))}if(Z){let ge=Ks(H.icon),Re=!(D&&G.verticalPlacedIconSymbolIndex&&se);G.placedIconSymbolIndex>=0&&(V(t.icon,G.numIconVertices,Re?ge:Lo),t.icon.placedSymbolArray.get(G.placedIconSymbolIndex).hidden=H.icon.isHidden()),G.verticalPlacedIconSymbolIndex>=0&&(V(t.icon,G.numVerticalIconVertices,Re?Lo:ge),t.icon.placedSymbolArray.get(G.verticalPlacedIconSymbolIndex).hidden=H.icon.isHidden())}let _e=q?.has(N)?q.get(N):{text:null,icon:null};if(t.hasIconCollisionBoxData()||t.hasTextCollisionBoxData()){let ge=t.collisionArrays[N];if(ge){let Re=new h.P(0,0);if(ge.textBox||ge.verticalTextBox){let Ce=!0;if(M){let me=this.variableOffsets[U];me?(Re=Pa(me.anchor,me.width,me.height,me.textOffset,me.textBoxScale),E&&Re._rotate(I?-this.transform.bearingInRadians:this.transform.bearingInRadians)):Ce=!1}if(ge.textBox||ge.verticalTextBox){let me;ge.textBox&&(me=se),ge.verticalTextBox&&(me=ce),Hs(t.textCollisionBox.collisionVertexArray,H.text.placed,!Ce||me,_e.text,Re.x,Re.y)}}if(ge.iconBox||ge.verticalIconBox){let Ce=!!(!ce&&ge.verticalIconBox),me;ge.iconBox&&(me=Ce),ge.verticalIconBox&&(me=!Ce),Hs(t.iconCollisionBox.collisionVertexArray,H.icon.placed,me,_e.icon,D?Re.x:0,D?Re.y:0)}}}}if(t.sortFeatures(-this.transform.bearingInRadians),this.retainedQueryData[t.bucketInstanceId]&&(this.retainedQueryData[t.bucketInstanceId].featureSortOrder=t.featureSortOrder),t.hasTextData()&&t.text.opacityVertexBuffer&&t.text.opacityVertexBuffer.updateData(t.text.opacityVertexArray),t.hasIconData()&&t.icon.opacityVertexBuffer&&t.icon.opacityVertexBuffer.updateData(t.icon.opacityVertexArray),t.hasIconCollisionBoxData()&&t.iconCollisionBox.collisionVertexBuffer&&t.iconCollisionBox.collisionVertexBuffer.updateData(t.iconCollisionBox.collisionVertexArray),t.hasTextCollisionBoxData()&&t.textCollisionBox.collisionVertexBuffer&&t.textCollisionBox.collisionVertexBuffer.updateData(t.textCollisionBox.collisionVertexArray),t.text.opacityVertexArray.length!==t.text.layoutVertexArray.length/4)throw new Error(`bucket.text.opacityVertexArray.length (= ${t.text.opacityVertexArray.length}) !== bucket.text.layoutVertexArray.length (= ${t.text.layoutVertexArray.length}) / 4`);if(t.icon.opacityVertexArray.length!==t.icon.layoutVertexArray.length/4)throw new Error(`bucket.icon.opacityVertexArray.length (= ${t.icon.opacityVertexArray.length}) !== bucket.icon.layoutVertexArray.length (= ${t.icon.layoutVertexArray.length}) / 4`);t.bucketInstanceId in this.collisionCircleArrays&&(t.collisionCircleArray=this.collisionCircleArrays[t.bucketInstanceId],delete this.collisionCircleArrays[t.bucketInstanceId])}symbolFadeChange(t){return this.fadeDuration===0?1:(t-this.commitTime)/this.fadeDuration+this.prevZoomAdjustment}zoomAdjustment(t){return Math.max(0,(this.transform.zoom-t)/1.5)}hasTransitions(t){return this.stale||t-this.lastPlacementChangeTimet}setStale(){this.stale=!0}}function Hs(d,t,n,s,c,f){s&&s.length!==0||(s=[0,0,0,0]);let y=s[0]-Vt,x=s[1]-Vt,w=s[2]-Vt,S=s[3]-Vt;d.emplaceBack(t?1:0,n?1:0,c||0,f||0,y,x),d.emplaceBack(t?1:0,n?1:0,c||0,f||0,w,x),d.emplaceBack(t?1:0,n?1:0,c||0,f||0,w,S),d.emplaceBack(t?1:0,n?1:0,c||0,f||0,y,S)}let Xs=Math.pow(2,25),Ys=Math.pow(2,24),Wu=Math.pow(2,17),Ro=Math.pow(2,16),Ca=Math.pow(2,9),wc=Math.pow(2,8),Wn=Math.pow(2,1);function Ks(d){if(d.opacity===0&&!d.placed)return 0;if(d.opacity===1&&d.placed)return 4294967295;let t=d.placed?1:0,n=Math.floor(127*d.opacity);return n*Xs+t*Ys+n*Wu+t*Ro+n*Ca+t*wc+n*Wn+t}let Lo=0;class Xr{constructor(t){this._sortAcrossTiles=t.layout.get(\"symbol-z-order\")!==\"viewport-y\"&&!t.layout.get(\"symbol-sort-key\").isConstant(),this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]}continuePlacement(t,n,s,c,f){let y=this._bucketParts;for(;this._currentTileIndexx.sortKey-w.sortKey)));this._currentPartIndex!this._forceFullPlacement&&Fe()-c>2;for(;this._currentPlacementIndex>=0;){let y=n[t[this._currentPlacementIndex]],x=this.placement.collisionIndex.transform.zoom;if(h.aQ(y)&&y.layout&&(!y.minzoom||y.minzoom<=x)&&(!y.maxzoom||y.maxzoom>x)){if(this._inProgressLayer||(this._inProgressLayer=new Xr(y)),this._inProgressLayer.continuePlacement(s[y.source],this.placement,this._showCollisionBoxes,y,f))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0}commit(t){return this.placement.commit(t),this.placement}}let tt=512/h.a6/2;class Js{constructor(t,n,s){this.tileID=t,this.bucketInstanceId=s,this._symbolsByKey={};let c=new Map;for(let f=0;f({x:Math.floor(w.anchorX*tt),y:Math.floor(w.anchorY*tt)}))),crossTileIDs:y.map((w=>w.crossTileID))};if(x.positions.length>128){let w=new h.aR(x.positions.length,16,Uint16Array);for(let{x:S,y:M}of x.positions)w.add(S,M);w.finish(),delete x.positions,x.index=w}this._symbolsByKey[f]=x}}getScaledCoordinates(t,n){let{x:s,y:c,z:f}=this.tileID.canonical,{x:y,y:x,z:w}=n.canonical,S=tt/Math.pow(2,w-f),M=(x*h.a6+t.anchorY)*S,E=c*h.a6*tt;return{x:Math.floor((y*h.a6+t.anchorX)*S-s*h.a6*tt),y:Math.floor(M-E)}}findMatches(t,n,s){let c=this.tileID.canonical.zt))}}class Hu{constructor(){this.maxCrossTileID=0}generate(){return++this.maxCrossTileID}}class Qs{constructor(){this.indexes={},this.usedCrossTileIDs={},this.lng=0}handleWrapJump(t){let n=Math.round((t-this.lng)/360);if(n!==0)for(let s in this.indexes){let c=this.indexes[s],f={};for(let y in c){let x=c[y];x.tileID=x.tileID.unwrapTo(x.tileID.wrap+n),f[x.tileID.key]=x}this.indexes[s]=f}this.lng=t}addBucket(t,n,s){var c,f,y;if(!((c=this.indexes[t.overscaledZ])===null||c===void 0)&&c[t.key]){if(this.indexes[t.overscaledZ][t.key].bucketInstanceId===n.bucketInstanceId)return!1;this.removeBucketCrossTileIDs(t.overscaledZ,this.indexes[t.overscaledZ][t.key])}for(let w=0;wt.overscaledZ)for(let M in S){let E=S[M];E.tileID.isChildOf(t)&&E.findMatches(n.symbolInstances,t,x)}else{let M=S[t.scaledTo(Number(w)).key];M&&M.findMatches(n.symbolInstances,t,x)}}for(let w=0;w 0.95) return 1.0;return (d+depthOpacity(frag+vec3(0.0,0.01,0.0)))/2.0;\n#else\nreturn 1.0;\n#endif\n}float ele(vec2 pos) {\n#ifdef TERRAIN3D\nvec4 rgb=(texture(u_terrain,pos)*255.0)*u_terrain_unpack;return rgb.r+rgb.g+rgb.b-u_terrain_unpack.a;\n#else\nreturn 0.0;\n#endif\n}float get_elevation(vec2 pos) {\n#ifdef TERRAIN3D\n#ifdef GLOBE\nif ((pos.y <-32767.5) || (pos.y > 32766.5)) {return 0.0;}\n#endif\nvec2 coord=(u_terrain_matrix*vec4(pos,0.0,1.0)).xy*u_terrain_dim+1.0;vec2 f=fract(coord);vec2 c=(floor(coord)+0.5)/(u_terrain_dim+2.0);float d=1.0/(u_terrain_dim+2.0);float tl=ele(c);float tr=ele(c+vec2(d,0.0));float bl=ele(c+vec2(0.0,d));float br=ele(c+vec2(d,d));float elevation=mix(mix(tl,tr,f.x),mix(bl,br,f.x),f.y);return elevation*u_terrain_exaggeration;\n#else\nreturn 0.0;\n#endif\n}const float PI=3.141592653589793;uniform mat4 u_projection_matrix;`),projectionMercator:We(\"\",\"float projectLineThickness(float tileY) {return 1.0;}float projectCircleRadius(float tileY) {return 1.0;}vec4 projectTile(vec2 p) {vec4 result=u_projection_matrix*vec4(p,0.0,1.0);return result;}vec4 projectTile(vec2 p,vec2 rawPos) {vec4 result=u_projection_matrix*vec4(p,0.0,1.0);if (rawPos.y <-32767.5 || rawPos.y > 32766.5) {result.z=-10000000.0;}return result;}vec4 projectTileWithElevation(vec2 posInTile,float elevation) {return u_projection_matrix*vec4(posInTile,elevation,1.0);}vec4 projectTileFor3D(vec2 posInTile,float elevation) {return projectTileWithElevation(posInTile,elevation);}\"),projectionGlobe:We(\"\",`#define GLOBE_RADIUS 6371008.8\nuniform highp vec4 u_projection_tile_mercator_coords;uniform highp vec4 u_projection_clipping_plane;uniform highp float u_projection_transition;uniform mat4 u_projection_fallback_matrix;vec3 globeRotateVector(vec3 vec,vec2 angles) {vec3 axisRight=vec3(vec.z,0.0,-vec.x);vec3 axisUp=cross(axisRight,vec);axisRight=normalize(axisRight);axisUp=normalize(axisUp);vec2 t=tan(angles);return normalize(vec+axisRight*t.x+axisUp*t.y);}mat3 globeGetRotationMatrix(vec3 spherePos) {vec3 axisRight=vec3(spherePos.z,0.0,-spherePos.x);vec3 axisDown=cross(axisRight,spherePos);axisRight=normalize(axisRight);axisDown=normalize(axisDown);return mat3(axisRight,axisDown,spherePos\n);}float circumferenceRatioAtTileY(float tileY) {float mercator_pos_y=u_projection_tile_mercator_coords.y+u_projection_tile_mercator_coords.w*tileY;float spherical_y=2.0*atan(exp(PI-(mercator_pos_y*PI*2.0)))-PI*0.5;return cos(spherical_y);}float projectLineThickness(float tileY) {float thickness=1.0/circumferenceRatioAtTileY(tileY); \nif (u_projection_transition < 0.999) {return mix(1.0,thickness,u_projection_transition);} else {return thickness;}}vec3 projectToSphere(vec2 translatedPos,vec2 rawPos) {vec2 mercator_pos=u_projection_tile_mercator_coords.xy+u_projection_tile_mercator_coords.zw*translatedPos;vec2 spherical;spherical.x=mercator_pos.x*PI*2.0+PI;spherical.y=2.0*atan(exp(PI-(mercator_pos.y*PI*2.0)))-PI*0.5;float len=cos(spherical.y);vec3 pos=vec3(sin(spherical.x)*len,sin(spherical.y),cos(spherical.x)*len\n);if (rawPos.y <-32767.5) {pos=vec3(0.0,1.0,0.0);}if (rawPos.y > 32766.5) {pos=vec3(0.0,-1.0,0.0);}return pos;}vec3 projectToSphere(vec2 posInTile) {return projectToSphere(posInTile,vec2(0.0,0.0));}float globeComputeClippingZ(vec3 spherePos) {return (1.0-(dot(spherePos,u_projection_clipping_plane.xyz)+u_projection_clipping_plane.w));}vec4 interpolateProjection(vec2 posInTile,vec3 spherePos,float elevation) {vec3 elevatedPos=spherePos*(1.0+elevation/GLOBE_RADIUS);vec4 globePosition=u_projection_matrix*vec4(elevatedPos,1.0);globePosition.z=globeComputeClippingZ(elevatedPos)*globePosition.w;if (u_projection_transition > 0.999) {return globePosition;}vec4 flatPosition=u_projection_fallback_matrix*vec4(posInTile,elevation,1.0);const float z_globeness_threshold=0.2;vec4 result=globePosition;result.z=mix(0.0,globePosition.z,clamp((u_projection_transition-z_globeness_threshold)/(1.0-z_globeness_threshold),0.0,1.0));result.xyw=mix(flatPosition.xyw,globePosition.xyw,u_projection_transition);if ((posInTile.y <-32767.5) || (posInTile.y > 32766.5)) {result=globePosition;const float poles_hidden_anim_percentage=0.02;result.z=mix(globePosition.z,100.0,pow(max((1.0-u_projection_transition)/poles_hidden_anim_percentage,0.0),8.0));}return result;}vec4 interpolateProjectionFor3D(vec2 posInTile,vec3 spherePos,float elevation) {vec3 elevatedPos=spherePos*(1.0+elevation/GLOBE_RADIUS);vec4 globePosition=u_projection_matrix*vec4(elevatedPos,1.0);if (u_projection_transition > 0.999) {return globePosition;}vec4 fallbackPosition=u_projection_fallback_matrix*vec4(posInTile,elevation,1.0);return mix(fallbackPosition,globePosition,u_projection_transition);}vec4 projectTile(vec2 posInTile) {return interpolateProjection(posInTile,projectToSphere(posInTile),0.0);}vec4 projectTile(vec2 posInTile,vec2 rawPos) {return interpolateProjection(posInTile,projectToSphere(posInTile,rawPos),0.0);}vec4 projectTileWithElevation(vec2 posInTile,float elevation) {return interpolateProjection(posInTile,projectToSphere(posInTile),elevation);}vec4 projectTileFor3D(vec2 posInTile,float elevation) {vec3 spherePos=projectToSphere(posInTile,posInTile);return interpolateProjectionFor3D(posInTile,spherePos,elevation);}`),background:We(`uniform vec4 u_color;uniform float u_opacity;void main() {fragColor=u_color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\nfragColor=vec4(1.0);\n#endif\n}`,\"in vec2 a_pos;void main() {gl_Position=projectTile(a_pos);}\"),backgroundPattern:We(`uniform vec2 u_pattern_tl_a;uniform vec2 u_pattern_br_a;uniform vec2 u_pattern_tl_b;uniform vec2 u_pattern_br_b;uniform vec2 u_texsize;uniform float u_mix;uniform float u_opacity;uniform sampler2D u_image;in vec2 v_pos_a;in vec2 v_pos_b;void main() {vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(u_pattern_tl_a/u_texsize,u_pattern_br_a/u_texsize,imagecoord);vec4 color1=texture(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(u_pattern_tl_b/u_texsize,u_pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture(u_image,pos2);fragColor=mix(color1,color2,u_mix)*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\nfragColor=vec4(1.0);\n#endif\n}`,\"uniform vec2 u_pattern_size_a;uniform vec2 u_pattern_size_b;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_scale_a;uniform float u_scale_b;uniform float u_tile_units_to_pixels;in vec2 a_pos;out vec2 v_pos_a;out vec2 v_pos_b;void main() {gl_Position=projectTile(a_pos);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_a*u_pattern_size_a,u_tile_units_to_pixels,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_b*u_pattern_size_b,u_tile_units_to_pixels,a_pos);}\"),circle:We(`in vec3 v_data;in float v_visibility;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define mediump float radius\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define highp vec4 stroke_color\n#pragma mapbox: define mediump float stroke_width\n#pragma mapbox: define lowp float stroke_opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize mediump float radius\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize highp vec4 stroke_color\n#pragma mapbox: initialize mediump float stroke_width\n#pragma mapbox: initialize lowp float stroke_opacity\nvec2 extrude=v_data.xy;float extrude_length=length(extrude);float antialiased_blur=v_data.z;float opacity_t=smoothstep(0.0,antialiased_blur,extrude_length-1.0);float color_t=stroke_width < 0.01 ? 0.0 : smoothstep(antialiased_blur,0.0,extrude_length-radius/(radius+stroke_width));fragColor=v_visibility*opacity_t*mix(color*opacity,stroke_color*stroke_opacity,color_t);const float epsilon=0.5/255.0;if (fragColor.r < epsilon && fragColor.g < epsilon && fragColor.b < epsilon && fragColor.a < epsilon) {discard;}\n#ifdef OVERDRAW_INSPECTOR\nfragColor=vec4(1.0);\n#endif\n}`,`uniform bool u_scale_with_map;uniform bool u_pitch_with_map;uniform vec2 u_extrude_scale;uniform highp float u_globe_extrude_scale;uniform lowp float u_device_pixel_ratio;uniform highp float u_camera_to_center_distance;uniform vec2 u_translate;in vec2 a_pos;out vec3 v_data;out float v_visibility;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define mediump float radius\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define highp vec4 stroke_color\n#pragma mapbox: define mediump float stroke_width\n#pragma mapbox: define lowp float stroke_opacity\nvoid main(void) {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize mediump float radius\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize highp vec4 stroke_color\n#pragma mapbox: initialize mediump float stroke_width\n#pragma mapbox: initialize lowp float stroke_opacity\nvec2 pos_raw=a_pos+32768.0;vec2 extrude=vec2(mod(pos_raw,8.0)/7.0*2.0-1.0);vec2 circle_center=floor(pos_raw/8.0)+u_translate;float ele=get_elevation(circle_center);v_visibility=calculate_visibility(projectTileWithElevation(circle_center,ele));if (u_pitch_with_map) {\n#ifdef GLOBE\nvec3 center_vector=projectToSphere(circle_center);\n#endif\nfloat angle_scale=u_globe_extrude_scale;vec2 corner_position=circle_center;if (u_scale_with_map) {angle_scale*=(radius+stroke_width);corner_position+=extrude*u_extrude_scale*(radius+stroke_width);} else {\n#ifdef GLOBE\nvec4 projected_center=interpolateProjection(circle_center,center_vector,ele);\n#else\nvec4 projected_center=projectTileWithElevation(circle_center,ele);\n#endif\ncorner_position+=extrude*u_extrude_scale*(radius+stroke_width)*(projected_center.w/u_camera_to_center_distance);angle_scale*=(radius+stroke_width)*(projected_center.w/u_camera_to_center_distance);}\n#ifdef GLOBE\nvec2 angles=extrude*angle_scale;vec3 corner_vector=globeRotateVector(center_vector,angles);gl_Position=interpolateProjection(corner_position,corner_vector,ele);\n#else\ngl_Position=projectTileWithElevation(corner_position,ele);\n#endif\n} else {gl_Position=projectTileWithElevation(circle_center,ele);if (gl_Position.z/gl_Position.w > 1.0) {gl_Position.xy=vec2(10000.0);}if (u_scale_with_map) {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*u_camera_to_center_distance;} else {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*gl_Position.w;}}float antialiasblur=-max(1.0/u_device_pixel_ratio/(radius+stroke_width),blur);v_data=vec3(extrude.x,extrude.y,antialiasblur);}`),clippingMask:We(mi,\"in vec2 a_pos;void main() {gl_Position=projectTile(a_pos);}\"),heatmap:We(`uniform highp float u_intensity;in vec2 v_extrude;\n#pragma mapbox: define highp float weight\n#define GAUSS_COEF 0.3989422804014327\nvoid main() {\n#pragma mapbox: initialize highp float weight\nfloat d=-0.5*3.0*3.0*dot(v_extrude,v_extrude);float val=weight*u_intensity*GAUSS_COEF*exp(d);fragColor=vec4(val,1.0,1.0,1.0);\n#ifdef OVERDRAW_INSPECTOR\nfragColor=vec4(1.0);\n#endif\n}`,`uniform float u_extrude_scale;uniform float u_opacity;uniform float u_intensity;uniform highp float u_globe_extrude_scale;in vec2 a_pos;out vec2 v_extrude;\n#pragma mapbox: define highp float weight\n#pragma mapbox: define mediump float radius\nconst highp float ZERO=1.0/255.0/16.0;\n#define GAUSS_COEF 0.3989422804014327\nvoid main(void) {\n#pragma mapbox: initialize highp float weight\n#pragma mapbox: initialize mediump float radius\nvec2 pos_raw=a_pos+32768.0;vec2 unscaled_extrude=vec2(mod(pos_raw,8.0)/7.0*2.0-1.0);float S=sqrt(-2.0*log(ZERO/weight/u_intensity/GAUSS_COEF))/3.0;v_extrude=S*unscaled_extrude;vec2 extrude=v_extrude*radius*u_extrude_scale;vec2 circle_center=floor(pos_raw/8.0);\n#ifdef GLOBE\nvec2 angles=v_extrude*radius*u_globe_extrude_scale;vec3 center_vector=projectToSphere(circle_center);vec3 corner_vector=globeRotateVector(center_vector,angles);gl_Position=interpolateProjection(circle_center+extrude,corner_vector,0.0);\n#else\ngl_Position=projectTileFor3D(circle_center+extrude,get_elevation(circle_center));\n#endif\n}`),heatmapTexture:We(`uniform sampler2D u_image;uniform sampler2D u_color_ramp;uniform float u_opacity;in vec2 v_pos;void main() {float t=texture(u_image,v_pos).r;vec4 color=texture(u_color_ramp,vec2(t,0.5));fragColor=color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\nfragColor=vec4(0.0);\n#endif\n}`,\"uniform mat4 u_matrix;uniform vec2 u_world;in vec2 a_pos;out vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos*u_world,0,1);v_pos.x=a_pos.x;v_pos.y=1.0-a_pos.y;}\"),collisionBox:We(\"in float v_placed;in float v_notUsed;void main() {float alpha=0.5;fragColor=vec4(1.0,0.0,0.0,1.0)*alpha;if (v_placed > 0.5) {fragColor=vec4(0.0,0.0,1.0,0.5)*alpha;}if (v_notUsed > 0.5) {fragColor*=.1;}}\",\"in vec2 a_anchor_pos;in vec2 a_placed;in vec2 a_box_real;uniform vec2 u_pixel_extrude_scale;out float v_placed;out float v_notUsed;void main() {gl_Position=projectTileWithElevation(a_anchor_pos,get_elevation(a_anchor_pos));gl_Position.xy=((a_box_real+0.5)*u_pixel_extrude_scale*2.0-1.0)*vec2(1.0,-1.0)*gl_Position.w;if (gl_Position.z/gl_Position.w < 1.1) {gl_Position.z=0.5;}v_placed=a_placed.x;v_notUsed=a_placed.y;}\"),collisionCircle:We(\"in float v_radius;in vec2 v_extrude;in float v_collision;void main() {float alpha=0.5;float stroke_radius=0.9;float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);fragColor=color*alpha*opacity_t;}\",\"in vec2 a_pos;in float a_radius;in vec2 a_flags;uniform vec2 u_viewport_size;out float v_radius;out vec2 v_extrude;out float v_collision;void main() {float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(mix(-1.0,1.0,float(vertexIdx >=2.0)),mix(-1.0,1.0,float(vertexIdx >=1.0 && vertexIdx <=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_collision=collision;gl_Position=vec4((a_pos/u_viewport_size*2.0-1.0)*vec2(1.0,-1.0),0.0,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}\"),colorRelief:We(`#ifdef GL_ES\nprecision highp float;\n#endif\nuniform sampler2D u_image;uniform vec4 u_unpack;uniform sampler2D u_elevation_stops;uniform sampler2D u_color_stops;uniform int u_color_ramp_size;uniform float u_opacity;in vec2 v_pos;float getElevation(vec2 coord) {vec4 data=texture(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack);}float getElevationStop(int stop) {float x=(float(stop)+0.5)/float(u_color_ramp_size);vec4 data=texture(u_elevation_stops,vec2(x,0))*255.0;data.a=-1.0;return dot(data,u_unpack);}void main() {float el=getElevation(v_pos);int r=(u_color_ramp_size-1);int l=0;float el_l=getElevationStop(l);float el_r=getElevationStop(r);while(r-l > 1){int m=(r+l)/2;float el_m=getElevationStop(m);if(el < el_m){r=m;el_r=el_m;}else\n{l=m;el_l=el_m;}}float x=(float(l)+(el-el_l)/(el_r-el_l)+0.5)/float(u_color_ramp_size);fragColor=u_opacity*texture(u_color_stops,vec2(x,0));\n#ifdef OVERDRAW_INSPECTOR\nfragColor=vec4(1.0);\n#endif\n}`,\"uniform vec2 u_dimension;in vec2 a_pos;out vec2 v_pos;void main() {gl_Position=projectTile(a_pos,a_pos);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_pos/8192.0)*scale+epsilon;if (a_pos.y <-32767.5) {v_pos.y=0.0;}if (a_pos.y > 32766.5) {v_pos.y=1.0;}}\"),debug:We(\"uniform highp vec4 u_color;uniform sampler2D u_overlay;in vec2 v_uv;void main() {vec4 overlay_color=texture(u_overlay,v_uv);fragColor=mix(u_color,overlay_color,overlay_color.a);}\",\"in vec2 a_pos;out vec2 v_uv;uniform float u_overlay_scale;void main() {v_uv=a_pos/8192.0;gl_Position=projectTileWithElevation(a_pos*u_overlay_scale,get_elevation(a_pos));}\"),depth:We(mi,`in vec2 a_pos;void main() {\n#ifdef GLOBE\ngl_Position=projectTileFor3D(a_pos,0.0);\n#else\ngl_Position=u_projection_matrix*vec4(a_pos,0.0,1.0);\n#endif\n}`),fill:We(`#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\nfragColor=color*opacity;\n#ifdef OVERDRAW_INSPECTOR\nfragColor=vec4(1.0);\n#endif\n}`,`uniform vec2 u_fill_translate;in vec2 a_pos;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=projectTile(a_pos+u_fill_translate,a_pos);}`),fillOutline:We(`in vec2 v_pos;\n#ifdef GLOBE\nin float v_depth;\n#endif\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);fragColor=outline_color*(alpha*opacity);\n#ifdef GLOBE\nif (v_depth > 1.0) {discard;}\n#endif\n#ifdef OVERDRAW_INSPECTOR\nfragColor=vec4(1.0);\n#endif\n}`,`uniform vec2 u_world;uniform vec2 u_fill_translate;in vec2 a_pos;out vec2 v_pos;\n#ifdef GLOBE\nout float v_depth;\n#endif\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=projectTile(a_pos+u_fill_translate,a_pos);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;\n#ifdef GLOBE\nv_depth=gl_Position.z/gl_Position.w;\n#endif\n}`),fillOutlinePattern:We(`uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_fade;in vec2 v_pos_a;in vec2 v_pos_b;in vec2 v_pos;\n#ifdef GLOBE\nin float v_depth;\n#endif\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture(u_image,pos2);float dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);fragColor=mix(color1,color2,u_fade)*alpha*opacity;\n#ifdef GLOBE\nif (v_depth > 1.0) {discard;}\n#endif\n#ifdef OVERDRAW_INSPECTOR\nfragColor=vec4(1.0);\n#endif\n}`,`uniform vec2 u_world;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;uniform vec2 u_fill_translate;in vec2 a_pos;out vec2 v_pos_a;out vec2 v_pos_b;out vec2 v_pos;\n#ifdef GLOBE\nout float v_depth;\n#endif\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;gl_Position=projectTile(a_pos+u_fill_translate,a_pos);vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,a_pos);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;\n#ifdef GLOBE\nv_depth=gl_Position.z/gl_Position.w;\n#endif\n}`),fillPattern:We(`#ifdef GL_ES\nprecision highp float;\n#endif\nuniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;in vec2 v_pos_a;in vec2 v_pos_b;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture(u_image,pos2);fragColor=mix(color1,color2,u_fade)*opacity;\n#ifdef OVERDRAW_INSPECTOR\nfragColor=vec4(1.0);\n#endif\n}`,`uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;uniform vec2 u_fill_translate;in vec2 a_pos;out vec2 v_pos_a;out vec2 v_pos_b;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;gl_Position=projectTile(a_pos+u_fill_translate,a_pos);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileZoomRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileZoomRatio,a_pos);}`),fillExtrusion:We(`in vec4 v_color;void main() {fragColor=v_color;\n#ifdef OVERDRAW_INSPECTOR\nfragColor=vec4(1.0);\n#endif\n}`,`uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp vec3 u_lightpos_globe;uniform lowp float u_lightintensity;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform vec2 u_fill_translate;in vec2 a_pos;in vec4 a_normal_ed;\n#ifdef TERRAIN3D\nin vec2 a_centroid;\n#endif\nout vec4 v_color;\n#pragma mapbox: define highp float base\n#pragma mapbox: define highp float height\n#pragma mapbox: define highp vec4 color\nvoid main() {\n#pragma mapbox: initialize highp float base\n#pragma mapbox: initialize highp float height\n#pragma mapbox: initialize highp vec4 color\nvec3 normal=a_normal_ed.xyz;\n#ifdef TERRAIN3D\nfloat height_terrain3d_offset=get_elevation(a_centroid);float base_terrain3d_offset=height_terrain3d_offset-(base > 0.0 ? 0.0 : 10.0);\n#else\nfloat height_terrain3d_offset=0.0;float base_terrain3d_offset=0.0;\n#endif\nbase=max(0.0,base)+base_terrain3d_offset;height=max(0.0,height)+height_terrain3d_offset;float t=mod(normal.x,2.0);float elevation=t > 0.0 ? height : base;vec2 posInTile=a_pos+u_fill_translate;\n#ifdef GLOBE\nvec3 spherePos=projectToSphere(posInTile,a_pos);gl_Position=interpolateProjectionFor3D(posInTile,spherePos,elevation);\n#else\ngl_Position=u_projection_matrix*vec4(posInTile,elevation,1.0);\n#endif\nfloat colorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;v_color=vec4(0.0,0.0,0.0,1.0);vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;vec3 normalForLighting=normal/16384.0;float directional=clamp(dot(normalForLighting,u_lightpos),0.0,1.0);\n#ifdef GLOBE\nmat3 rotMatrix=globeGetRotationMatrix(spherePos);normalForLighting=rotMatrix*normalForLighting;directional=mix(directional,clamp(dot(normalForLighting,u_lightpos_globe),0.0,1.0),u_projection_transition);\n#endif\ndirectional=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_color.r+=clamp(color.r*directional*u_lightcolor.r,mix(0.0,0.3,1.0-u_lightcolor.r),1.0);v_color.g+=clamp(color.g*directional*u_lightcolor.g,mix(0.0,0.3,1.0-u_lightcolor.g),1.0);v_color.b+=clamp(color.b*directional*u_lightcolor.b,mix(0.0,0.3,1.0-u_lightcolor.b),1.0);v_color*=u_opacity;}`),fillExtrusionPattern:We(`uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;in vec2 v_pos_a;in vec2 v_pos_b;in vec4 v_lighting;\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture(u_image,pos2);vec4 mixedColor=mix(color1,color2,u_fade);fragColor=mixedColor*v_lighting;\n#ifdef OVERDRAW_INSPECTOR\nfragColor=vec4(1.0);\n#endif\n}`,`uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_height_factor;uniform vec3 u_scale;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform vec2 u_fill_translate;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp vec3 u_lightpos_globe;uniform lowp float u_lightintensity;in vec2 a_pos;in vec4 a_normal_ed;\n#ifdef TERRAIN3D\nin vec2 a_centroid;\n#endif\n#ifdef GLOBE\nout vec3 v_sphere_pos;\n#endif\nout vec2 v_pos_a;out vec2 v_pos_b;out vec4 v_lighting;\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec3 normal=a_normal_ed.xyz;float edgedistance=a_normal_ed.w;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;\n#ifdef TERRAIN3D\nfloat height_terrain3d_offset=get_elevation(a_centroid);float base_terrain3d_offset=height_terrain3d_offset-(base > 0.0 ? 0.0 : 10.0);\n#else\nfloat height_terrain3d_offset=0.0;float base_terrain3d_offset=0.0;\n#endif\nbase=max(0.0,base)+base_terrain3d_offset;height=max(0.0,height)+height_terrain3d_offset;float t=mod(normal.x,2.0);float elevation=t > 0.0 ? height : base;vec2 posInTile=a_pos+u_fill_translate;\n#ifdef GLOBE\nvec3 spherePos=projectToSphere(posInTile,a_pos);vec3 elevatedPos=spherePos*(1.0+elevation/GLOBE_RADIUS);v_sphere_pos=elevatedPos;gl_Position=interpolateProjectionFor3D(posInTile,spherePos,elevation);\n#else\ngl_Position=u_projection_matrix*vec4(posInTile,elevation,1.0);\n#endif\nvec2 pos=normal.x==1.0 && normal.y==0.0 && normal.z==16384.0\n? a_pos\n: vec2(edgedistance,elevation*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal/16383.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;}`),hillshadePrepare:We(`#ifdef GL_ES\nprecision highp float;\n#endif\nuniform sampler2D u_image;in vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;uniform vec4 u_unpack;float getElevation(vec2 coord,float bias) {vec4 data=texture(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack);}void main() {vec2 epsilon=1.0/u_dimension;float tileSize=u_dimension.x-2.0;float a=getElevation(v_pos+vec2(-epsilon.x,-epsilon.y),0.0);float b=getElevation(v_pos+vec2(0,-epsilon.y),0.0);float c=getElevation(v_pos+vec2(epsilon.x,-epsilon.y),0.0);float d=getElevation(v_pos+vec2(-epsilon.x,0),0.0);float e=getElevation(v_pos,0.0);float f=getElevation(v_pos+vec2(epsilon.x,0),0.0);float g=getElevation(v_pos+vec2(-epsilon.x,epsilon.y),0.0);float h=getElevation(v_pos+vec2(0,epsilon.y),0.0);float i=getElevation(v_pos+vec2(epsilon.x,epsilon.y),0.0);float exaggerationFactor=u_zoom < 2.0 ? 0.4 : u_zoom < 4.5 ? 0.35 : 0.3;float exaggeration=u_zoom < 15.0 ? (u_zoom-15.0)*exaggerationFactor : 0.0;vec2 deriv=vec2((c+f+f+i)-(a+d+d+g),(g+h+h+i)-(a+b+b+c))*tileSize/pow(2.0,exaggeration+(28.2562-u_zoom));fragColor=clamp(vec4(deriv.x/8.0+0.5,deriv.y/8.0+0.5,1.0,1.0),0.0,1.0);\n#ifdef OVERDRAW_INSPECTOR\nfragColor=vec4(1.0);\n#endif\n}`,\"uniform mat4 u_matrix;uniform vec2 u_dimension;in vec2 a_pos;in vec2 a_texture_pos;out vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}\"),hillshade:We(`uniform sampler2D u_image;in vec2 v_pos;uniform vec2 u_latrange;uniform float u_exaggeration;uniform vec4 u_accent;uniform int u_method;uniform float u_altitudes[NUM_ILLUMINATION_SOURCES];uniform float u_azimuths[NUM_ILLUMINATION_SOURCES];uniform vec4 u_shadows[NUM_ILLUMINATION_SOURCES];uniform vec4 u_highlights[NUM_ILLUMINATION_SOURCES];\n#define PI 3.141592653589793\n#define STANDARD 0\n#define COMBINED 1\n#define IGOR 2\n#define MULTIDIRECTIONAL 3\n#define BASIC 4\nfloat get_aspect(vec2 deriv){return deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/2.0*(deriv.y > 0.0 ? 1.0 :-1.0);}void igor_hillshade(vec2 deriv){deriv=deriv*u_exaggeration*2.0;float aspect=get_aspect(deriv);float azimuth=u_azimuths[0]+PI;float slope_stength=atan(length(deriv))*2.0/PI;float aspect_strength=1.0-abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);float shadow_strength=slope_stength*aspect_strength;float highlight_strength=slope_stength*(1.0-aspect_strength);fragColor=u_shadows[0]*shadow_strength+u_highlights[0]*highlight_strength;}void standard_hillshade(vec2 deriv){float azimuth=u_azimuths[0]+PI;float slope=atan(0.625*length(deriv));float aspect=get_aspect(deriv);float intensity=u_exaggeration;float base=1.875-intensity*1.75;float maxValue=0.5*PI;float scaledSlope=intensity !=0.5 ? ((pow(base,slope)-1.0)/(pow(base,maxValue)-1.0))*maxValue : slope;float accent=cos(scaledSlope);vec4 accent_color=(1.0-accent)*u_accent*clamp(intensity*2.0,0.0,1.0);float shade=abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);vec4 shade_color=mix(u_shadows[0],u_highlights[0],shade)*sin(scaledSlope)*clamp(intensity*2.0,0.0,1.0);fragColor=accent_color*(1.0-shade_color.a)+shade_color;}void basic_hillshade(vec2 deriv){deriv=deriv*u_exaggeration*2.0;float azimuth=u_azimuths[0]+PI;float cos_az=cos(azimuth);float sin_az=sin(azimuth);float cos_alt=cos(u_altitudes[0]);float sin_alt=sin(u_altitudes[0]);float cang=(sin_alt-(deriv.y*cos_az*cos_alt-deriv.x*sin_az*cos_alt))/sqrt(1.0+dot(deriv,deriv));float shade=clamp(cang,0.0,1.0);if(shade > 0.5){fragColor=u_highlights[0]*(2.0*shade-1.0);}else\n{fragColor=u_shadows[0]*(1.0-2.0*shade);}}void multidirectional_hillshade(vec2 deriv){deriv=deriv*u_exaggeration*2.0;fragColor=vec4(0,0,0,0);for(int i=0; i < NUM_ILLUMINATION_SOURCES; i++){float cos_alt=cos(u_altitudes[i]);float sin_alt=sin(u_altitudes[i]);float cos_az=-cos(u_azimuths[i]);float sin_az=-sin(u_azimuths[i]);float cang=(sin_alt-(deriv.y*cos_az*cos_alt-deriv.x*sin_az*cos_alt))/sqrt(1.0+dot(deriv,deriv));float shade=clamp(cang,0.0,1.0);if(shade > 0.5){fragColor+=u_highlights[i]*(2.0*shade-1.0)/float(NUM_ILLUMINATION_SOURCES);}else\n{fragColor+=u_shadows[i]*(1.0-2.0*shade)/float(NUM_ILLUMINATION_SOURCES);}}}void combined_hillshade(vec2 deriv){deriv=deriv*u_exaggeration*2.0;float azimuth=u_azimuths[0]+PI;float cos_az=cos(azimuth);float sin_az=sin(azimuth);float cos_alt=cos(u_altitudes[0]);float sin_alt=sin(u_altitudes[0]);float cang=acos((sin_alt-(deriv.y*cos_az*cos_alt-deriv.x*sin_az*cos_alt))/sqrt(1.0+dot(deriv,deriv)));cang=clamp(cang,0.0,PI/2.0);float shade=cang*atan(length(deriv))*4.0/PI/PI;float highlight=(PI/2.0-cang)*atan(length(deriv))*4.0/PI/PI;fragColor=u_shadows[0]*shade+u_highlights[0]*highlight;}void main() {vec4 pixel=texture(u_image,v_pos);float scaleFactor=cos(radians((u_latrange[0]-u_latrange[1])*(1.0-v_pos.y)+u_latrange[1]));vec2 deriv=((pixel.rg*8.0)-4.0)/scaleFactor;if (u_method==BASIC) {basic_hillshade(deriv);} else if (u_method==COMBINED) {combined_hillshade(deriv);} else if (u_method==IGOR) {igor_hillshade(deriv);} else if (u_method==MULTIDIRECTIONAL) {multidirectional_hillshade(deriv);} else if (u_method==STANDARD) {standard_hillshade(deriv);} else {standard_hillshade(deriv);}\n#ifdef OVERDRAW_INSPECTOR\nfragColor=vec4(1.0);\n#endif\n}`,\"uniform mat4 u_matrix;in vec2 a_pos;out vec2 v_pos;void main() {gl_Position=projectTile(a_pos,a_pos);v_pos=a_pos/8192.0;if (a_pos.y <-32767.5) {v_pos.y=0.0;}if (a_pos.y > 32766.5) {v_pos.y=1.0;}}\"),line:We(`uniform lowp float u_device_pixel_ratio;in vec2 v_width2;in vec2 v_normal;in float v_gamma_scale;\n#ifdef GLOBE\nin float v_depth;\n#endif\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);fragColor=color*(alpha*opacity);\n#ifdef GLOBE\nif (v_depth > 1.0) {discard;}\n#endif\n#ifdef OVERDRAW_INSPECTOR\nfragColor=vec4(1.0);\n#endif\n}`,`\n#define scale 0.015873016\nin vec2 a_pos_normal;in vec4 a_data;uniform vec2 u_translation;uniform mediump float u_ratio;uniform vec2 u_units_to_pixels;uniform lowp float u_device_pixel_ratio;out vec2 v_normal;out vec2 v_width2;out float v_gamma_scale;out highp float v_linesofar;\n#ifdef GLOBE\nout float v_depth;\n#endif\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;v_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);float adjustedThickness=projectLineThickness(pos.y);vec4 projected_no_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation);vec4 projected_with_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation+dist/u_ratio*adjustedThickness);gl_Position=projected_with_extrude;\n#ifdef GLOBE\nv_depth=gl_Position.z/gl_Position.w;\n#endif\n#ifdef TERRAIN3D\nv_gamma_scale=1.0;\n#else\nfloat extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length((projected_with_extrude.xy-projected_no_extrude.xy)/projected_with_extrude.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;\n#endif\nv_width2=vec2(outset,inset);}`),lineGradient:We(`uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;in vec2 v_width2;in vec2 v_normal;in float v_gamma_scale;in highp vec2 v_uv;\n#ifdef GLOBE\nin float v_depth;\n#endif\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);vec4 color=texture(u_image,v_uv);fragColor=color*(alpha*opacity);\n#ifdef GLOBE\nif (v_depth > 1.0) {discard;}\n#endif\n#ifdef OVERDRAW_INSPECTOR\nfragColor=vec4(1.0);\n#endif\n}`,`\n#define scale 0.015873016\nin vec2 a_pos_normal;in vec4 a_data;in float a_uv_x;in float a_split_index;uniform vec2 u_translation;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_units_to_pixels;uniform float u_image_height;out vec2 v_normal;out vec2 v_width2;out float v_gamma_scale;out highp vec2 v_uv;\n#ifdef GLOBE\nout float v_depth;\n#endif\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;highp float texel_height=1.0/u_image_height;highp float half_texel_height=0.5*texel_height;v_uv=vec2(a_uv_x,a_split_index*texel_height-half_texel_height);vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);float adjustedThickness=projectLineThickness(pos.y);vec4 projected_no_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation);vec4 projected_with_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation+dist/u_ratio*adjustedThickness);gl_Position=projected_with_extrude;\n#ifdef GLOBE\nv_depth=gl_Position.z/gl_Position.w;\n#endif\n#ifdef TERRAIN3D\nv_gamma_scale=1.0;\n#else\nfloat extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length((projected_with_extrude.xy-projected_no_extrude.xy)/projected_with_extrude.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;\n#endif\nv_width2=vec2(outset,inset);}`),linePattern:We(`#ifdef GL_ES\nprecision highp float;\n#endif\nuniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_fade;uniform mediump vec3 u_scale;uniform sampler2D u_image;in vec2 v_normal;in vec2 v_width2;in float v_linesofar;in float v_gamma_scale;in float v_width;\n#ifdef GLOBE\nin float v_depth;\n#endif\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;vec2 pattern_size_a=vec2(display_size_a.x*fromScale/tileZoomRatio,display_size_a.y);vec2 pattern_size_b=vec2(display_size_b.x*toScale/tileZoomRatio,display_size_b.y);float aspect_a=display_size_a.y/v_width;float aspect_b=display_size_b.y/v_width;float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float x_a=mod(v_linesofar/pattern_size_a.x*aspect_a,1.0);float x_b=mod(v_linesofar/pattern_size_b.x*aspect_b,1.0);float y=0.5*v_normal.y+0.5;vec2 texel_size=1.0/u_texsize;vec2 pos_a=mix(pattern_tl_a*texel_size-texel_size,pattern_br_a*texel_size+texel_size,vec2(x_a,y));vec2 pos_b=mix(pattern_tl_b*texel_size-texel_size,pattern_br_b*texel_size+texel_size,vec2(x_b,y));vec4 color=mix(texture(u_image,pos_a),texture(u_image,pos_b),u_fade);fragColor=color*alpha*opacity;\n#ifdef GLOBE\nif (v_depth > 1.0) {discard;}\n#endif\n#ifdef OVERDRAW_INSPECTOR\nfragColor=vec4(1.0);\n#endif\n}`,`\n#define scale 0.015873016\n#define LINE_DISTANCE_SCALE 2.0\nin vec2 a_pos_normal;in vec4 a_data;uniform vec2 u_translation;uniform vec2 u_units_to_pixels;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;out vec2 v_normal;out vec2 v_width2;out float v_linesofar;out float v_gamma_scale;out float v_width;\n#ifdef GLOBE\nout float v_depth;\n#endif\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);float adjustedThickness=projectLineThickness(pos.y);vec4 projected_no_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation);vec4 projected_with_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation+dist/u_ratio*adjustedThickness);gl_Position=projected_with_extrude;\n#ifdef GLOBE\nv_depth=gl_Position.z/gl_Position.w;\n#endif\n#ifdef TERRAIN3D\nv_gamma_scale=1.0;\n#else\nfloat extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length((projected_with_extrude.xy-projected_no_extrude.xy)/projected_with_extrude.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;\n#endif\nv_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;}`),lineSDF:We(`uniform lowp float u_device_pixel_ratio;uniform lowp float u_lineatlas_width;uniform sampler2D u_image;uniform float u_mix;in vec2 v_normal;in vec2 v_width2;in vec2 v_tex_a;in vec2 v_tex_b;in float v_gamma_scale;\n#ifdef GLOBE\nin float v_depth;\n#endif\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\n#pragma mapbox: define mediump vec4 dasharray_from\n#pragma mapbox: define mediump vec4 dasharray_to\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\n#pragma mapbox: initialize mediump vec4 dasharray_from\n#pragma mapbox: initialize mediump vec4 dasharray_to\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float sdfdist_a=texture(u_image,v_tex_a).a;float sdfdist_b=texture(u_image,v_tex_b).a;float sdfdist=mix(sdfdist_a,sdfdist_b,u_mix);float sdfgamma=(u_lineatlas_width/256.0/u_device_pixel_ratio)/min(dasharray_from.w,dasharray_to.w);alpha*=smoothstep(0.5-sdfgamma/floorwidth,0.5+sdfgamma/floorwidth,sdfdist);fragColor=color*(alpha*opacity);\n#ifdef GLOBE\nif (v_depth > 1.0) {discard;}\n#endif\n#ifdef OVERDRAW_INSPECTOR\nfragColor=vec4(1.0);\n#endif\n}`,`\n#define scale 0.015873016\n#define LINE_DISTANCE_SCALE 2.0\nin vec2 a_pos_normal;in vec4 a_data;uniform vec2 u_translation;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_units_to_pixels;uniform float u_tileratio;uniform float u_crossfade_from;uniform float u_crossfade_to;uniform float u_lineatlas_height;out vec2 v_normal;out vec2 v_width2;out vec2 v_tex_a;out vec2 v_tex_b;out float v_gamma_scale;\n#ifdef GLOBE\nout float v_depth;\n#endif\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\n#pragma mapbox: define mediump vec4 dasharray_from\n#pragma mapbox: define mediump vec4 dasharray_to\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\n#pragma mapbox: initialize mediump vec4 dasharray_from\n#pragma mapbox: initialize mediump vec4 dasharray_to\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);float adjustedThickness=projectLineThickness(pos.y);vec4 projected_no_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation);vec4 projected_with_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation+dist/u_ratio*adjustedThickness);gl_Position=projected_with_extrude;\n#ifdef GLOBE\nv_depth=gl_Position.z/gl_Position.w;\n#endif\n#ifdef TERRAIN3D\nv_gamma_scale=1.0;\n#else\nfloat extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length((projected_with_extrude.xy-projected_no_extrude.xy)/projected_with_extrude.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;\n#endif\nfloat u_patternscale_a_x=u_tileratio/dasharray_from.w/u_crossfade_from;float u_patternscale_a_y=-dasharray_from.z/2.0/u_lineatlas_height;float u_patternscale_b_x=u_tileratio/dasharray_to.w/u_crossfade_to;float u_patternscale_b_y=-dasharray_to.z/2.0/u_lineatlas_height;v_tex_a=vec2(a_linesofar*u_patternscale_a_x/floorwidth,normal.y*u_patternscale_a_y+(float(dasharray_from.y)+0.5)/u_lineatlas_height);v_tex_b=vec2(a_linesofar*u_patternscale_b_x/floorwidth,normal.y*u_patternscale_b_y+(float(dasharray_to.y)+0.5)/u_lineatlas_height);v_width2=vec2(outset,inset);}`),lineGradientSDF:We(`uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;uniform sampler2D u_image_dash;uniform float u_mix;uniform lowp float u_lineatlas_width;in vec2 v_normal;in vec2 v_width2;in vec2 v_tex_a;in vec2 v_tex_b;in float v_gamma_scale;in highp vec2 v_uv;\n#ifdef GLOBE\nin float v_depth;\n#endif\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\n#pragma mapbox: define mediump vec4 dasharray_from\n#pragma mapbox: define mediump vec4 dasharray_to\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\n#pragma mapbox: initialize mediump vec4 dasharray_from\n#pragma mapbox: initialize mediump vec4 dasharray_to\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);vec4 color=texture(u_image,v_uv);float sdfdist_a=texture(u_image_dash,v_tex_a).a;float sdfdist_b=texture(u_image_dash,v_tex_b).a;float sdfdist=mix(sdfdist_a,sdfdist_b,u_mix);float sdfgamma=(u_lineatlas_width/256.0)/min(dasharray_from.w,dasharray_to.w);float dash_alpha=smoothstep(0.5-sdfgamma/floorwidth,0.5+sdfgamma/floorwidth,sdfdist);fragColor=color*(alpha*dash_alpha*opacity);\n#ifdef GLOBE\nif (v_depth > 1.0) {discard;}\n#endif\n#ifdef OVERDRAW_INSPECTOR\nfragColor=vec4(1.0);\n#endif\n}`,`\n#define scale 0.015873016\n#define LINE_DISTANCE_SCALE 2.0\nin vec2 a_pos_normal;in vec4 a_data;in float a_uv_x;in float a_split_index;uniform vec2 u_translation;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_units_to_pixels;uniform float u_image_height;uniform float u_tileratio;uniform float u_crossfade_from;uniform float u_crossfade_to;uniform float u_lineatlas_height;out vec2 v_normal;out vec2 v_width2;out float v_gamma_scale;out highp vec2 v_uv;out vec2 v_tex_a;out vec2 v_tex_b;\n#ifdef GLOBE\nout float v_depth;\n#endif\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\n#pragma mapbox: define mediump vec4 dasharray_from\n#pragma mapbox: define mediump vec4 dasharray_to\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\n#pragma mapbox: initialize mediump vec4 dasharray_from\n#pragma mapbox: initialize mediump vec4 dasharray_to\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;float texel_height=1.0/u_image_height;float half_texel_height=0.5*texel_height;v_uv=vec2(a_uv_x,a_split_index*texel_height-half_texel_height);vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);float adjustedThickness=projectLineThickness(pos.y);vec4 projected_no_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation);vec4 projected_with_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation+dist/u_ratio*adjustedThickness);gl_Position=projected_with_extrude;\n#ifdef GLOBE\nv_depth=gl_Position.z/gl_Position.w;\n#endif\n#ifdef TERRAIN3D\nv_gamma_scale=1.0;\n#else\nfloat extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length((projected_with_extrude.xy-projected_no_extrude.xy)/projected_with_extrude.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;\n#endif\nfloat u_patternscale_a_x=u_tileratio/dasharray_from.w/u_crossfade_from;float u_patternscale_a_y=-dasharray_from.z/2.0/u_lineatlas_height;float u_patternscale_b_x=u_tileratio/dasharray_to.w/u_crossfade_to;float u_patternscale_b_y=-dasharray_to.z/2.0/u_lineatlas_height;v_tex_a=vec2(a_linesofar*u_patternscale_a_x/floorwidth,normal.y*u_patternscale_a_y+(float(dasharray_from.y)+0.5)/u_lineatlas_height);v_tex_b=vec2(a_linesofar*u_patternscale_b_x/floorwidth,normal.y*u_patternscale_b_y+(float(dasharray_to.y)+0.5)/u_lineatlas_height);v_width2=vec2(outset,inset);}`),raster:We(`uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;in vec2 v_pos0;in vec2 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;void main() {vec4 color0=texture(u_image0,v_pos0);vec4 color1=texture(u_image1,v_pos1);if (color0.a > 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a > 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(dot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);fragColor=vec4(mix(u_high_vec,u_low_vec,rgb)*color.a,color.a);\n#ifdef OVERDRAW_INSPECTOR\nfragColor=vec4(1.0);\n#endif\n}`,`uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform float u_buffer_scale;uniform vec4 u_coords_top;uniform vec4 u_coords_bottom;in vec2 a_pos;out vec2 v_pos0;out vec2 v_pos1;void main() {vec2 fractionalPos=a_pos/8192.0;vec2 position=mix(mix(u_coords_top.xy,u_coords_top.zw,fractionalPos.x),mix(u_coords_bottom.xy,u_coords_bottom.zw,fractionalPos.x),fractionalPos.y);gl_Position=projectTile(position,position);v_pos0=((fractionalPos-0.5)/u_buffer_scale)+0.5;\n#ifdef GLOBE\nif (a_pos.y <-32767.5) {v_pos0.y=0.0;}if (a_pos.y > 32766.5) {v_pos0.y=1.0;}\n#endif\nv_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}`),symbolIcon:We(`uniform sampler2D u_texture;in vec2 v_tex;in float v_total_opacity;void main() {fragColor=texture(u_texture,v_tex)*v_total_opacity;\n#ifdef OVERDRAW_INSPECTOR\nfragColor=vec4(1.0);\n#endif\n}`,`in vec4 a_pos_offset;in vec4 a_data;in vec4 a_pixeloffset;in vec3 a_projected_pos;in float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform highp float u_camera_to_center_distance;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform float u_fade_change;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform vec2 u_texsize;uniform bool u_is_along_line;uniform bool u_is_variable_anchor;uniform vec2 u_translation;uniform float u_pitched_scale;out vec2 v_tex;out float v_total_opacity;\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;vec2 a_minFontScale=a_pixeloffset.zw/256.0;float ele=get_elevation(a_pos);highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 translated_a_pos=a_pos+u_translation;vec4 projectedPoint=projectTileWithElevation(translated_a_pos,ele);vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float visibility=calculate_visibility(projectedPoint);v_total_opacity=opacity*max(0.0,min(visibility,fade_opacity[0]+fade_change));if (v_total_opacity < 0.1){gl_Position=vec4(-2.,-2.,-2.,1.);return;}highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=projectTileWithElevation(translated_a_pos+vec2(1,0),ele);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos;if (u_is_along_line || u_is_variable_anchor) {projected_pos=vec4(a_projected_pos.xy,ele,1.0);} else if (u_pitch_with_map) {projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy+u_translation,ele,1.0);} else {projected_pos=u_label_plane_matrix*projectTileWithElevation(a_projected_pos.xy+u_translation,ele);}float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;float projectionScaling=1.0;\n#ifdef GLOBE\nif(u_pitch_with_map) {float anchor_pos_tile_y=(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w,z,1.0)).y;projectionScaling=mix(projectionScaling,1.0/circumferenceRatioAtTileY(anchor_pos_tile_y)*u_pitched_scale,u_projection_transition);}\n#endif\nvec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}gl_Position=finalPos;v_tex=a_tex/u_texsize;}`),symbolSDF:We(`#define SDF_PX 8.0\nuniform bool u_is_halo;uniform bool u_is_plain;uniform sampler2D u_texture;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;uniform bool u_is_text;in vec2 v_data0;in vec3 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat EDGE_GAMMA=0.105/u_device_pixel_ratio;vec2 tex=v_data0.xy;float gamma_scale=v_data1.x;float size=v_data1.y;float total_opacity=v_data1[2];float fontScale=u_is_text ? size/24.0 : size;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float inner_edge=(256.0-64.0)/256.0;lowp float dist=texture(u_texture,tex).a;lowp vec4 color_alpha_out_text,color_alpha_out_halo;if (u_is_plain){highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(inner_edge-gamma_scaled,inner_edge+gamma_scaled,dist);color_alpha_out_text=total_opacity*alpha*fill_color;}if (u_is_halo) {float gamma_halo=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);float inner_edge_halo=inner_edge+gamma_halo*gamma_scale;highp float gamma_scaled_halo=gamma_halo*gamma_scale;highp float alpha_halo=smoothstep(inner_edge_halo-gamma_scaled_halo,inner_edge_halo+gamma_scaled_halo,dist);highp float halo_edge=(6.0-halo_width/fontScale)/SDF_PX;alpha_halo= min(smoothstep(halo_edge-gamma_scaled_halo,halo_edge+gamma_scaled_halo,dist),1.0-alpha_halo);color_alpha_out_halo=total_opacity*alpha_halo*halo_color;}if (u_is_plain && u_is_halo) {fragColor=color_alpha_out_text+(1.-color_alpha_out_text.a)*color_alpha_out_halo;} else if (u_is_halo){fragColor=color_alpha_out_halo;} else {fragColor=color_alpha_out_text;}\n#ifdef OVERDRAW_INSPECTOR\nfragColor=vec4(1.0);\n#endif\n}`,`in vec4 a_pos_offset;in vec4 a_data;in vec4 a_pixeloffset;in vec3 a_projected_pos;in float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform bool u_is_along_line;uniform bool u_is_variable_anchor;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec2 u_translation;uniform float u_pitched_scale;out vec2 v_data0;out vec3 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy/16.0;vec2 a_minFontScale=a_pixeloffset.zw/256.0;float ele=get_elevation(a_pos);highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 translated_a_pos=a_pos+u_translation;vec4 projectedPoint=projectTileWithElevation(translated_a_pos,ele);vec2 fade_opacity=unpack_opacity(a_fade_opacity);float visibility=calculate_visibility(projectedPoint);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));float total_opacity=opacity*interpolated_fade_opacity;if (total_opacity < 0.1){gl_Position=vec4(-2.,-2.,-2.,1.);return;}highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=projectTileWithElevation(translated_a_pos+vec2(1,0),ele);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos;if (u_is_along_line || u_is_variable_anchor) {projected_pos=vec4(a_projected_pos.xy,ele,1.0);} else if (u_pitch_with_map) {projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy+u_translation,ele,1.0);} else {projected_pos=u_label_plane_matrix*projectTileWithElevation(a_projected_pos.xy+u_translation,ele);}float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;float projectionScaling=1.0;\n#ifdef GLOBE\nif(u_pitch_with_map) {float anchor_pos_tile_y=(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w,z,1.0)).y;projectionScaling=mix(projectionScaling,1.0/circumferenceRatioAtTileY(anchor_pos_tile_y)*u_pitched_scale,u_projection_transition);}\n#endif\nvec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}float gamma_scale=finalPos.w;gl_Position=finalPos;v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,total_opacity);}`),symbolTextAndIcon:We(`#define SDF_PX 8.0\n#define SDF 1.0\n#define ICON 0.0\nuniform bool u_is_halo;uniform bool u_is_text;uniform sampler2D u_texture;uniform sampler2D u_texture_icon;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;in vec4 v_data0;in vec4 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat total_opacity=v_data1[2];if (v_data1.w==ICON) {vec2 tex_icon=v_data0.zw;fragColor=texture(u_texture_icon,tex_icon)*total_opacity;\n#ifdef OVERDRAW_INSPECTOR\nfragColor=vec4(1.0);\n#endif\nreturn;}vec2 tex=v_data0.xy;float EDGE_GAMMA=0.105/u_device_pixel_ratio;float gamma_scale=v_data1.x;float size=v_data1.y;float fontScale=size/24.0;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;lowp float dist=texture(u_texture,tex).a;lowp vec4 color_alpha_out,color_alpha_out_halo;if (u_is_text) {highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);color_alpha_out=fill_color*(alpha*total_opacity);}if (u_is_halo) {highp float gamma_halo=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);lowp float buff_halo=(6.0-halo_width/fontScale)/SDF_PX;highp float gamma_scaled_halo=gamma_halo*gamma_scale;highp float alpha_halo=smoothstep(buff_halo-gamma_scaled_halo,buff_halo+gamma_scaled_halo,dist);color_alpha_out_halo=halo_color*(alpha_halo*total_opacity);}if (u_is_text && u_is_halo) {fragColor=color_alpha_out+(1.-color_alpha_out.a)*color_alpha_out_halo;} else if (u_is_halo) {fragColor=color_alpha_out_halo;} else {fragColor=color_alpha_out;}\n#ifdef OVERDRAW_INSPECTOR\nfragColor=vec4(1.0);\n#endif\n}`,`in vec4 a_pos_offset;in vec4 a_data;in vec3 a_projected_pos;in float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec2 u_texsize_icon;uniform bool u_is_along_line;uniform bool u_is_variable_anchor;uniform vec2 u_translation;uniform float u_pitched_scale;out vec4 v_data0;out vec4 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;float ele=get_elevation(a_pos);highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 translated_a_pos=a_pos+u_translation;vec4 projectedPoint=projectTileWithElevation(translated_a_pos,ele);vec2 fade_opacity=unpack_opacity(a_fade_opacity);float visibility=calculate_visibility(projectedPoint);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));float total_opacity=opacity*interpolated_fade_opacity;if (total_opacity < 0.1){gl_Position=vec4(-2.,-2.,-2.,1.);return;}highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=projectTileWithElevation(translated_a_pos+vec2(1,0),ele);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos;if (u_is_along_line || u_is_variable_anchor) {projected_pos=vec4(a_projected_pos.xy,ele,1.0);} else if (u_pitch_with_map) {projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy+u_translation,ele,1.0);} else {projected_pos=u_label_plane_matrix*projectTileWithElevation(a_projected_pos.xy+u_translation,ele);}float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;float projectionScaling=1.0;\n#ifdef GLOBE\nif(u_pitch_with_map && !u_is_along_line) {float anchor_pos_tile_y=(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w,z,1.0)).y;projectionScaling=mix(projectionScaling,1.0/circumferenceRatioAtTileY(anchor_pos_tile_y)*u_pitched_scale,u_projection_transition);}\n#endif\nvec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}float gamma_scale=finalPos.w;gl_Position=finalPos;v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,total_opacity,is_sdf);}`),terrain:We(\"uniform sampler2D u_texture;uniform vec4 u_fog_color;uniform vec4 u_horizon_color;uniform float u_fog_ground_blend;uniform float u_fog_ground_blend_opacity;uniform float u_horizon_fog_blend;uniform bool u_is_globe_mode;in vec2 v_texture_pos;in float v_fog_depth;const float gamma=2.2;vec4 gammaToLinear(vec4 color) {return pow(color,vec4(gamma));}vec4 linearToGamma(vec4 color) {return pow(color,vec4(1.0/gamma));}void main() {vec4 surface_color=texture(u_texture,vec2(v_texture_pos.x,1.0-v_texture_pos.y));if (!u_is_globe_mode && u_fog_ground_blend_opacity > 0.0 && v_fog_depth > u_fog_ground_blend) {vec4 surface_color_linear=gammaToLinear(surface_color);float blend_color=smoothstep(0.0,1.0,max((v_fog_depth-u_horizon_fog_blend)/(1.0-u_horizon_fog_blend),0.0));vec4 fog_horizon_color_linear=mix(gammaToLinear(u_fog_color),gammaToLinear(u_horizon_color),blend_color);float factor_fog=max(v_fog_depth-u_fog_ground_blend,0.0)/(1.0-u_fog_ground_blend);fragColor=linearToGamma(mix(surface_color_linear,fog_horizon_color_linear,pow(factor_fog,2.0)*u_fog_ground_blend_opacity));} else {fragColor=surface_color;}}\",\"in vec3 a_pos3d;uniform mat4 u_fog_matrix;uniform float u_ele_delta;out vec2 v_texture_pos;out float v_fog_depth;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;v_texture_pos=a_pos3d.xy/8192.0;gl_Position=projectTileFor3D(a_pos3d.xy,ele-ele_delta);vec4 pos=u_fog_matrix*vec4(a_pos3d.xy,ele,1.0);v_fog_depth=pos.z/pos.w*0.5+0.5;}\"),terrainDepth:We(\"in float v_depth;const highp vec4 bitSh=vec4(256.*256.*256.,256.*256.,256.,1.);const highp vec4 bitMsk=vec4(0.,vec3(1./256.0));highp vec4 pack(highp float value) {highp vec4 comp=fract(value*bitSh);comp-=comp.xxyz*bitMsk;return comp;}void main() {fragColor=pack(v_depth);}\",\"in vec3 a_pos3d;uniform float u_ele_delta;out float v_depth;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;gl_Position=projectTileFor3D(a_pos3d.xy,ele-ele_delta);v_depth=gl_Position.z/gl_Position.w;}\"),terrainCoords:We(\"precision mediump float;uniform sampler2D u_texture;uniform float u_terrain_coords_id;in vec2 v_texture_pos;void main() {vec4 rgba=texture(u_texture,v_texture_pos);fragColor=vec4(rgba.r,rgba.g,rgba.b,u_terrain_coords_id);}\",\"in vec3 a_pos3d;uniform float u_ele_delta;out vec2 v_texture_pos;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;v_texture_pos=a_pos3d.xy/8192.0;gl_Position=projectTileFor3D(a_pos3d.xy,ele-ele_delta);}\"),projectionErrorMeasurement:We(\"in vec4 v_output_error_encoded;void main() {fragColor=v_output_error_encoded;}\",\"in vec2 a_pos;uniform highp float u_input;uniform highp float u_output_expected;out vec4 v_output_error_encoded;void main() {float real_output=2.0*atan(exp(PI-(u_input*PI*2.0)))-PI*0.5;float error=real_output-u_output_expected;float abs_error=abs(error)*128.0;v_output_error_encoded.x=min(floor(abs_error*256.0),255.0)/255.0;abs_error-=v_output_error_encoded.x;v_output_error_encoded.y=min(floor(abs_error*65536.0),255.0)/255.0;abs_error-=v_output_error_encoded.x/255.0;v_output_error_encoded.z=min(floor(abs_error*16777216.0),255.0)/255.0;v_output_error_encoded.w=error >=0.0 ? 1.0 : 0.0;gl_Position=vec4(a_pos,0.0,1.0);}\"),atmosphere:We(`#ifdef GL_ES\nprecision highp float;\n#endif\nin vec3 view_direction;uniform vec3 u_sun_pos;uniform vec3 u_globe_position;uniform float u_globe_radius;uniform float u_atmosphere_blend;/**Shader use from https:*Made some change to adapt to MapLibre Globe geometry*/const float PI=3.141592653589793;const int iSteps=5;const int jSteps=3;/*radius of the planet*/const float EARTH_RADIUS=6371e3;/*radius of the atmosphere*/const float ATMOS_RADIUS=6471e3;vec2 rsi(vec3 r0,vec3 rd,float sr) {float a=dot(rd,rd);float b=2.0*dot(rd,r0);float c=dot(r0,r0)-(sr*sr);float d=(b*b)-4.0*a*c;if (d < 0.0) return vec2(1e5,-1e5);return vec2((-b-sqrt(d))/(2.0*a),(-b+sqrt(d))/(2.0*a));}vec4 atmosphere(vec3 r,vec3 r0,vec3 pSun,float iSun,float rPlanet,float rAtmos,vec3 kRlh,float kMie,float shRlh,float shMie,float g) {pSun=normalize(pSun);r=normalize(r);vec2 p=rsi(r0,r,rAtmos);if (p.x > p.y) {return vec4(0.0,0.0,0.0,1.0);}if (p.x < 0.0) {p.x=0.0;}vec3 pos=r0+r*p.x;vec2 p2=rsi(r0,r,rPlanet);if (p2.x <=p2.y && p2.x > 0.0) {p.y=min(p.y,p2.x);}float iStepSize=(p.y-p.x)/float(iSteps);float iTime=p.x+iStepSize*0.5;vec3 totalRlh=vec3(0,0,0);vec3 totalMie=vec3(0,0,0);float iOdRlh=0.0;float iOdMie=0.0;float mu=dot(r,pSun);float mumu=mu*mu;float gg=g*g;float pRlh=3.0/(16.0*PI)*(1.0+mumu);float pMie=3.0/(8.0*PI)*((1.0-gg)*(mumu+1.0))/(pow(1.0+gg-2.0*mu*g,1.5)*(2.0+gg));for (int i=0; i < iSteps; i++) {vec3 iPos=r0+r*iTime;float iHeight=length(iPos)-rPlanet;float odStepRlh=exp(-iHeight/shRlh)*iStepSize;float odStepMie=exp(-iHeight/shMie)*iStepSize;iOdRlh+=odStepRlh;iOdMie+=odStepMie;float jStepSize=rsi(iPos,pSun,rAtmos).y/float(jSteps);float jTime=jStepSize*0.5;float jOdRlh=0.0;float jOdMie=0.0;for (int j=0; j < jSteps; j++) {vec3 jPos=iPos+pSun*jTime;float jHeight=length(jPos)-rPlanet;jOdRlh+=exp(-jHeight/shRlh)*jStepSize;jOdMie+=exp(-jHeight/shMie)*jStepSize;jTime+=jStepSize;}vec3 attn=exp(-(kMie*(iOdMie+jOdMie)+kRlh*(iOdRlh+jOdRlh)));totalRlh+=odStepRlh*attn;totalMie+=odStepMie*attn;iTime+=iStepSize;}float opacity=exp(-(length(kRlh)*length(totalRlh)+kMie*length(totalMie)));vec3 color=iSun*(pRlh*kRlh*totalRlh+pMie*kMie*totalMie);return vec4(color,opacity);}void main() {vec3 scale_camera_pos=-u_globe_position*EARTH_RADIUS/u_globe_radius;vec4 color=atmosphere(normalize(view_direction),scale_camera_pos,u_sun_pos,22.0,EARTH_RADIUS,ATMOS_RADIUS,vec3(5.5e-6,13.0e-6,22.4e-6),21e-6,8e3,1.2e3,0.758\n);color.rgb=1.0-exp(-1.0*color.rgb);color=pow(color,vec4(1.0/2.2));fragColor=vec4(color.rgb,1.0-color.a)*u_atmosphere_blend;}`,\"in vec2 a_pos;uniform mat4 u_inv_proj_matrix;out vec3 view_direction;void main() {view_direction=(u_inv_proj_matrix*vec4(a_pos,0.0,1.0)).xyz;gl_Position=vec4(a_pos,0.0,1.0);}\"),sky:We(\"uniform vec4 u_sky_color;uniform vec4 u_horizon_color;uniform vec2 u_horizon;uniform vec2 u_horizon_normal;uniform float u_sky_horizon_blend;uniform float u_sky_blend;void main() {float x=gl_FragCoord.x;float y=gl_FragCoord.y;float blend=(y-u_horizon.y)*u_horizon_normal.y+(x-u_horizon.x)*u_horizon_normal.x;if (blend > 0.0) {if (blend < u_sky_horizon_blend) {fragColor=mix(u_sky_color,u_horizon_color,pow(1.0-blend/u_sky_horizon_blend,2.0));} else {fragColor=u_sky_color;}}fragColor=mix(fragColor,vec4(vec3(0.0),0.0),u_sky_blend);}\",\"in vec2 a_pos;void main() {gl_Position=vec4(a_pos,1.0,1.0);}\")};function We(d,t){let n=/#pragma mapbox: ([\\w]+) ([\\w]+) ([\\w]+) ([\\w]+)/g,s=t.match(/in ([\\w]+) ([\\w]+)/g),c=d.match(/uniform ([\\w]+) ([\\w]+)([\\s]*)([\\w]*)/g),f=t.match(/uniform ([\\w]+) ([\\w]+)([\\s]*)([\\w]*)/g),y=f?f.concat(c):c,x={};return{fragmentSource:d=d.replace(n,((w,S,M,E,I)=>(x[I]=!0,S===\"define\"?`\n#ifndef HAS_UNIFORM_u_${I}\nin ${M} ${E} ${I};\n#else\nuniform ${M} ${E} u_${I};\n#endif\n`:`\n#ifdef HAS_UNIFORM_u_${I}\n ${M} ${E} ${I} = u_${I};\n#endif\n`))),vertexSource:t=t.replace(n,((w,S,M,E,I)=>{let D=E===\"float\"?\"vec2\":\"vec4\",B=I.match(/color/)?\"color\":D;return x[I]?S===\"define\"?`\n#ifndef HAS_UNIFORM_u_${I}\nuniform lowp float u_${I}_t;\nin ${M} ${D} a_${I};\nout ${M} ${E} ${I};\n#else\nuniform ${M} ${E} u_${I};\n#endif\n`:B===\"vec4\"?`\n#ifndef HAS_UNIFORM_u_${I}\n ${I} = a_${I};\n#else\n ${M} ${E} ${I} = u_${I};\n#endif\n`:`\n#ifndef HAS_UNIFORM_u_${I}\n ${I} = unpack_mix_${B}(a_${I}, u_${I}_t);\n#else\n ${M} ${E} ${I} = u_${I};\n#endif\n`:S===\"define\"?`\n#ifndef HAS_UNIFORM_u_${I}\nuniform lowp float u_${I}_t;\nin ${M} ${D} a_${I};\n#else\nuniform ${M} ${E} u_${I};\n#endif\n`:B===\"vec4\"?`\n#ifndef HAS_UNIFORM_u_${I}\n ${M} ${E} ${I} = a_${I};\n#else\n ${M} ${E} ${I} = u_${I};\n#endif\n`:`\n#ifndef HAS_UNIFORM_u_${I}\n ${M} ${E} ${I} = unpack_mix_${B}(a_${I}, u_${I}_t);\n#else\n ${M} ${E} ${I} = u_${I};\n#endif\n`})),staticAttributes:s,staticUniforms:y}}class Pt{constructor(t,n,s){this.vertexBuffer=t,this.indexBuffer=n,this.segments=s}destroy(){this.vertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.vertexBuffer=null,this.indexBuffer=null,this.segments=null}}var Yr=h.aS([{name:\"a_pos\",type:\"Int16\",components:2}]);let Ci=\"#define PROJECTION_MERCATOR\",$i=\"mercator\";class Ei{constructor(){this._cachedMesh=null}get name(){return\"mercator\"}get useSubdivision(){return!1}get shaderVariantName(){return $i}get shaderDefine(){return Ci}get shaderPreludeCode(){return Rt.projectionMercator}get vertexShaderPreludeCode(){return Rt.projectionMercator.vertexSource}get subdivisionGranularity(){return h.aT.noSubdivision}get useGlobeControls(){return!1}get transitionState(){return 0}get latitudeErrorCorrectionRadians(){return 0}destroy(){}updateGPUdependent(t){}getMeshFromTileID(t,n,s,c,f){if(this._cachedMesh)return this._cachedMesh;let y=new h.aU;y.emplaceBack(0,0),y.emplaceBack(h.a6,0),y.emplaceBack(0,h.a6),y.emplaceBack(h.a6,h.a6);let x=t.createVertexBuffer(y,Yr.members),w=h.aV.simpleSegment(0,0,4,2),S=new h.aW;S.emplaceBack(1,0,2),S.emplaceBack(1,2,3);let M=t.createIndexBuffer(S);return this._cachedMesh=new Pt(x,M,w),this._cachedMesh}recalculate(){}hasTransition(){return!1}setErrorQueryLatitudeDegrees(t){}}class Xn{constructor(t=0,n=0,s=0,c=0){if(isNaN(t)||t<0||isNaN(n)||n<0||isNaN(s)||s<0||isNaN(c)||c<0)throw new Error(\"Invalid value for edge-insets, top, bottom, left and right must all be numbers\");this.top=t,this.bottom=n,this.left=s,this.right=c}interpolate(t,n,s){return n.top!=null&&t.top!=null&&(this.top=h.H.number(t.top,n.top,s)),n.bottom!=null&&t.bottom!=null&&(this.bottom=h.H.number(t.bottom,n.bottom,s)),n.left!=null&&t.left!=null&&(this.left=h.H.number(t.left,n.left,s)),n.right!=null&&t.right!=null&&(this.right=h.H.number(t.right,n.right,s)),this}getCenter(t,n){let s=h.al((this.left+t-this.right)/2,0,t),c=h.al((this.top+n-this.bottom)/2,0,n);return new h.P(s,c)}equals(t){return this.top===t.top&&this.bottom===t.bottom&&this.left===t.left&&this.right===t.right}clone(){return new Xn(this.top,this.bottom,this.left,this.right)}toJSON(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}}function Kr(d,t){if(!d.renderWorldCopies||d.lngRange)return;let n=t.lng-d.center.lng;t.lng+=n>180?-360:n<-180?360:0}function qt(d){return Math.max(0,Math.floor(d))}class _n{constructor(t,n){var s;this.applyConstrain=(c,f)=>this._constrainOverride!==null?this._constrainOverride(c,f):this._callbacks.defaultConstrain(c,f),this._callbacks=t,this._tileSize=512,this._renderWorldCopies=n?.renderWorldCopies===void 0||!!n?.renderWorldCopies,this._minZoom=n?.minZoom||0,this._maxZoom=n?.maxZoom||22,this._minPitch=n?.minPitch==null?0:n?.minPitch,this._maxPitch=n?.maxPitch==null?60:n?.maxPitch,this._constrainOverride=(s=n?.constrainOverride)!==null&&s!==void 0?s:null,this.setMaxBounds(),this._width=0,this._height=0,this._center=new h.W(0,0),this._elevation=0,this._zoom=0,this._tileZoom=qt(this._zoom),this._scale=h.ao(this._zoom),this._bearingInRadians=0,this._fovInRadians=.6435011087932844,this._pitchInRadians=0,this._rollInRadians=0,this._unmodified=!0,this._edgeInsets=new Xn,this._minElevationForCurrentTile=0,this._autoCalculateNearFarZ=!0}apply(t,n,s){this._constrainOverride=t.constrainOverride,this._latRange=t.latRange,this._lngRange=t.lngRange,this._width=t.width,this._height=t.height,this._center=t.center,this._elevation=t.elevation,this._minElevationForCurrentTile=t.minElevationForCurrentTile,this._zoom=t.zoom,this._tileZoom=qt(this._zoom),this._scale=h.ao(this._zoom),this._bearingInRadians=t.bearingInRadians,this._fovInRadians=t.fovInRadians,this._pitchInRadians=t.pitchInRadians,this._rollInRadians=t.rollInRadians,this._unmodified=t.unmodified,this._edgeInsets=new Xn(t.padding.top,t.padding.bottom,t.padding.left,t.padding.right),this._minZoom=t.minZoom,this._maxZoom=t.maxZoom,this._minPitch=t.minPitch,this._maxPitch=t.maxPitch,this._renderWorldCopies=t.renderWorldCopies,this._cameraToCenterDistance=t.cameraToCenterDistance,this._nearZ=t.nearZ,this._farZ=t.farZ,this._autoCalculateNearFarZ=!s&&t.autoCalculateNearFarZ,n&&this.constrainInternal(),this._calcMatrices()}get pixelsToClipSpaceMatrix(){return this._pixelsToClipSpaceMatrix}get clipSpaceToPixelsMatrix(){return this._clipSpaceToPixelsMatrix}get minElevationForCurrentTile(){return this._minElevationForCurrentTile}setMinElevationForCurrentTile(t){this._minElevationForCurrentTile=t}get tileSize(){return this._tileSize}get tileZoom(){return this._tileZoom}get scale(){return this._scale}get width(){return this._width}get height(){return this._height}get bearingInRadians(){return this._bearingInRadians}get lngRange(){return this._lngRange}get latRange(){return this._latRange}get pixelsToGLUnits(){return this._pixelsToGLUnits}get minZoom(){return this._minZoom}setMinZoom(t){this._minZoom!==t&&(this._minZoom=t,this.setZoom(this.applyConstrain(this._center,this.zoom).zoom))}get maxZoom(){return this._maxZoom}setMaxZoom(t){this._maxZoom!==t&&(this._maxZoom=t,this.setZoom(this.applyConstrain(this._center,this.zoom).zoom))}get minPitch(){return this._minPitch}setMinPitch(t){this._minPitch!==t&&(this._minPitch=t,this.setPitch(Math.max(this.pitch,t)))}get maxPitch(){return this._maxPitch}setMaxPitch(t){this._maxPitch!==t&&(this._maxPitch=t,this.setPitch(Math.min(this.pitch,t)))}get renderWorldCopies(){return this._renderWorldCopies}setRenderWorldCopies(t){t===void 0?t=!0:t===null&&(t=!1),this._renderWorldCopies=t}get constrainOverride(){return this._constrainOverride}setConstrainOverride(t){t===void 0&&(t=null),this._constrainOverride!==t&&(this._constrainOverride=t,this.constrainInternal(),this._calcMatrices())}get worldSize(){return this._tileSize*this._scale}get centerOffset(){return this.centerPoint._sub(this.size._div(2))}get size(){return new h.P(this._width,this._height)}get bearing(){return this._bearingInRadians/Math.PI*180}setBearing(t){let n=h.X(t,-180,180)*Math.PI/180;var s,c,f,y,x,w,S,M,E;this._bearingInRadians!==n&&(this._unmodified=!1,this._bearingInRadians=n,this._calcMatrices(),this._rotationMatrix=Ve(),s=this._rotationMatrix,f=-this._bearingInRadians,y=(c=this._rotationMatrix)[0],x=c[1],w=c[2],S=c[3],M=Math.sin(f),E=Math.cos(f),s[0]=y*E+w*M,s[1]=x*E+S*M,s[2]=y*-M+w*E,s[3]=x*-M+S*E)}get rotationMatrix(){return this._rotationMatrix}get pitchInRadians(){return this._pitchInRadians}get pitch(){return this._pitchInRadians/Math.PI*180}setPitch(t){let n=h.al(t,this.minPitch,this.maxPitch)/180*Math.PI;this._pitchInRadians!==n&&(this._unmodified=!1,this._pitchInRadians=n,this._calcMatrices())}get rollInRadians(){return this._rollInRadians}get roll(){return this._rollInRadians/Math.PI*180}setRoll(t){let n=t/180*Math.PI;this._rollInRadians!==n&&(this._unmodified=!1,this._rollInRadians=n,this._calcMatrices())}get fovInRadians(){return this._fovInRadians}get fov(){return h.aX(this._fovInRadians)}setFov(t){t=h.al(t,.1,150),this.fov!==t&&(this._unmodified=!1,this._fovInRadians=h.an(t),this._calcMatrices())}get zoom(){return this._zoom}setZoom(t){let n=this.applyConstrain(this._center,t).zoom;this._zoom!==n&&(this._unmodified=!1,this._zoom=n,this._tileZoom=Math.max(0,Math.floor(n)),this._scale=h.ao(n),this.constrainInternal(),this._calcMatrices())}get center(){return this._center}setCenter(t){t.lat===this._center.lat&&t.lng===this._center.lng||(this._unmodified=!1,this._center=t,this.constrainInternal(),this._calcMatrices())}get elevation(){return this._elevation}setElevation(t){t!==this._elevation&&(this._elevation=t,this.constrainInternal(),this._calcMatrices())}get padding(){return this._edgeInsets.toJSON()}setPadding(t){this._edgeInsets.equals(t)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,t,1),this._calcMatrices())}get centerPoint(){return this._edgeInsets.getCenter(this._width,this._height)}get pixelsPerMeter(){return this._pixelPerMeter}get unmodified(){return this._unmodified}get cameraToCenterDistance(){return this._cameraToCenterDistance}get nearZ(){return this._nearZ}get farZ(){return this._farZ}get autoCalculateNearFarZ(){return this._autoCalculateNearFarZ}overrideNearFarZ(t,n){this._autoCalculateNearFarZ=!1,this._nearZ=t,this._farZ=n,this._calcMatrices()}clearNearFarZOverride(){this._autoCalculateNearFarZ=!0,this._calcMatrices()}isPaddingEqual(t){return this._edgeInsets.equals(t)}interpolatePadding(t,n,s){this._unmodified=!1,this._edgeInsets.interpolate(t,n,s),this.constrainInternal(),this._calcMatrices()}resize(t,n,s=!0){this._width=t,this._height=n,s&&this.constrainInternal(),this._calcMatrices()}getMaxBounds(){var t,n;return((t=this._latRange)===null||t===void 0?void 0:t.length)!==2||((n=this._lngRange)===null||n===void 0?void 0:n.length)!==2?null:new De([this._lngRange[0],this._latRange[0]],[this._lngRange[1],this._latRange[1]])}setMaxBounds(t){t?(this._lngRange=[t.getWest(),t.getEast()],this._latRange=[t.getSouth(),t.getNorth()],this.constrainInternal()):(this._lngRange=null,this._latRange=[-h.am,h.am])}getCameraQueryGeometry(t,n){if(n.length===1)return[n[0],t];{let{minX:s,minY:c,maxX:f,maxY:y}=h.a8.fromPoints(n).extend(t);return[new h.P(s,c),new h.P(f,c),new h.P(f,y),new h.P(s,y),new h.P(s,c)]}}constrainInternal(){if(!this.center||!this._width||!this._height||this._constraining)return;this._constraining=!0;let t=this._unmodified,{center:n,zoom:s}=this.applyConstrain(this.center,this.zoom);this.setCenter(n),this.setZoom(s),this._unmodified=t,this._constraining=!1}_calcMatrices(){if(this._width&&this._height){this._pixelsToGLUnits=[2/this._width,-2/this._height];let t=h.ap(new Float64Array(16));h.S(t,t,[this._width/2,-this._height/2,1]),h.Q(t,t,[1,-1,0]),this._clipSpaceToPixelsMatrix=t,t=h.ap(new Float64Array(16)),h.S(t,t,[1,-1,1]),h.Q(t,t,[-1,-1,0]),h.S(t,t,[2/this._width,2/this._height,1]),this._pixelsToClipSpaceMatrix=t,this._cameraToCenterDistance=.5/Math.tan(this.fovInRadians/2)*this._height}this._callbacks.calcMatrices()}calculateCenterFromCameraLngLatAlt(t,n,s,c){let f=s!==void 0?s:this.bearing,y=c=c!==void 0?c:this.pitch,{distanceToCenter:x,clampedElevation:w}=this._distanceToCenterFromAltElevationPitch(n,this.elevation,y),{x:S,y:M}=xa(y,f),E=h.a7.fromLngLat(t,n),I,D,B=h.aY(1,E.y),V=0;do{if(V+=1,V>10)break;D=x/B,I=new h.a7(E.x+S*D,E.y+M*D),B=1/I.meterInMercatorCoordinateUnits()}while(Math.abs(x-D*B)>1e-12);return{center:I.toLngLat(),elevation:w,zoom:h.ar(this.height/2/Math.tan(this.fovInRadians/2)/D/this.tileSize)}}recalculateZoomAndCenter(t){if(this.elevation-t==0)return;let n=1/this.worldSize,s=h.aq(1,this.center.lat)*this.worldSize,c=h.a7.fromLngLat(this.center,this.elevation),f=c.x/n,y=c.y/n,x=c.z/n,w=this.pitch,S=this.bearing,{x:M,y:E,z:I}=xa(w,S),D=this.cameraToCenterDistance,B=f+D*-M,V=y+D*-E,q=x+D*I,{distanceToCenter:N,clampedElevation:G}=this._distanceToCenterFromAltElevationPitch(q/s,t,w),X=N*s,$=new h.a7((B+M*X)*n,(V+E*X)*n,0).toLngLat(),U=h.aq(1,$.lat),H=h.ar(this.height/2/Math.tan(this.fovInRadians/2)/N/U/this.tileSize);this._elevation=G,this._center=$,this.setZoom(H)}_distanceToCenterFromAltElevationPitch(t,n,s){let c=-Math.cos(h.an(s)),f=t-n,y,x=n;return c*f>=0||Math.abs(c)<.1?(y=1e4,x=t+y*c):y=-f/c,{distanceToCenter:y,clampedElevation:x}}getCameraPoint(){let t=Math.tan(this.pitchInRadians)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new h.P(t*Math.sin(this.rollInRadians),t*Math.cos(this.rollInRadians)))}getCameraAltitude(){return Math.cos(this.pitchInRadians)*this._cameraToCenterDistance/this._pixelPerMeter+this.elevation}getCameraLngLat(){let t=h.aq(1,this.center.lat)*this.worldSize;return qn(this.center,this.elevation,this.pitch,this.bearing,this.cameraToCenterDistance/t).toLngLat()}getMercatorTileCoordinates(t){if(!t)return[0,0,1,1];let n=t.canonical.z>=0?1<this.max[0]||t.aabb.min[1]>this.max[1]||t.aabb.min[2]>this.max[2]||t.aabb.max[0]0?(n+=t[c]*this.min[c],s+=t[c]*this.max[c]):(s+=t[c]*this.min[c],n+=t[c]*this.max[c]);return n>=0?2:s<0?0:1}}class Ea{distanceToTile2d(t,n,s,c){let f=c,y=f.distanceX([t,n]),x=f.distanceY([t,n]);return Math.hypot(y,x)}getWrap(t,n,s){return s}getTileBoundingVolume(t,n,s,c){var f,y;let x=0,w=0;if(c?.terrain){let M=new h.a3(t.z,n,t.z,t.x,t.y),E=c.terrain.getMinMaxElevation(M);x=(f=E.minElevation)!==null&&f!==void 0?f:Math.min(0,s),w=(y=E.maxElevation)!==null&&y!==void 0?y:Math.max(0,s)}let S=1<c}allowWorldCopies(){return!0}prepareNextFrame(){}}class ji{constructor(t,n,s){this.points=t,this.planes=n,this.aabb=s}static fromInvProjectionMatrix(t,n=1,s=0,c,f){let y=f?[[6,5,4],[0,1,2],[0,3,7],[2,1,5],[3,2,6],[0,4,5]]:[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]],x=Math.pow(2,s),w=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]].map((I=>(function(D,B,V,q){let N=h.aE([],D,B),G=1/N[3]/V*q;return h.b4(N,N,[G,G,1/N[3],G])})(I,t,n,x)));c&&(function(I,D,B,V){let q=V?4:0,N=V?0:4,G=0,X=[],$=[];for(let Z=0;Z<4;Z++){let te=h.b0([],I[Z+N],I[Z+q]),se=h.b5(te);h.aZ(te,te,1/se),X.push(se),$.push(te)}for(let Z=0;Z<4;Z++){let te=h.b6(I[Z+q],$[Z],B);G=te!==null&&te>=0?Math.max(G,te):Math.max(G,X[Z])}let U=(function(Z,te){let se=h.b0([],Z[te[0]],Z[te[1]]),ce=h.b0([],Z[te[2]],Z[te[1]]),_e=[0,0,0,0];return h.b1(_e,h.b2([],se,ce)),_e[3]=-h.b3(_e,Z[te[0]]),_e})(I,D),H=(function(Z,te){let se=h.b7(Z),ce=h.b8([],Z,1/se),_e=h.b0([],te,h.aZ([],ce,h.b3(te,ce))),ge=h.b7(_e);if(ge>0){let Re=Math.sqrt(1-ce[3]*ce[3]),Ce=h.aZ([],ce,-ce[3]),me=h.a_([],Ce,h.aZ([],_e,Re/ge));return h.b9(te,me)}return null})(B,U);if(H!==null){let Z=H/h.b3($[0],U);G=Math.min(G,Z)}for(let Z=0;Z<4;Z++){let te=Math.min(G,X[Z]);I[Z+N]=[I[Z+q][0]+$[Z][0]*te,I[Z+q][1]+$[Z][1]*te,I[Z+q][2]+$[Z][2]*te,1]}})(w,y[0],c,f);let S=y.map((I=>{let D=h.b0([],w[I[0]],w[I[1]]),B=h.b0([],w[I[2]],w[I[1]]),V=h.b1([],h.b2([],D,B)),q=-h.b3(V,w[I[1]]);return V.concat(q)})),M=[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY],E=[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY];for(let I of w)for(let D=0;D<3;D++)M[D]=Math.min(M[D],I[D]),E[D]=Math.max(E[D],I[D]);return new ji(w,S,new br(M,E))}}class yn{get pixelsToClipSpaceMatrix(){return this._helper.pixelsToClipSpaceMatrix}get clipSpaceToPixelsMatrix(){return this._helper.clipSpaceToPixelsMatrix}get pixelsToGLUnits(){return this._helper.pixelsToGLUnits}get centerOffset(){return this._helper.centerOffset}get size(){return this._helper.size}get rotationMatrix(){return this._helper.rotationMatrix}get centerPoint(){return this._helper.centerPoint}get pixelsPerMeter(){return this._helper.pixelsPerMeter}setMinZoom(t){this._helper.setMinZoom(t)}setMaxZoom(t){this._helper.setMaxZoom(t)}setMinPitch(t){this._helper.setMinPitch(t)}setMaxPitch(t){this._helper.setMaxPitch(t)}setRenderWorldCopies(t){this._helper.setRenderWorldCopies(t)}setBearing(t){this._helper.setBearing(t)}setPitch(t){this._helper.setPitch(t)}setRoll(t){this._helper.setRoll(t)}setFov(t){this._helper.setFov(t)}setZoom(t){this._helper.setZoom(t)}setCenter(t){this._helper.setCenter(t)}setElevation(t){this._helper.setElevation(t)}setMinElevationForCurrentTile(t){this._helper.setMinElevationForCurrentTile(t)}setPadding(t){this._helper.setPadding(t)}interpolatePadding(t,n,s){this._helper.interpolatePadding(t,n,s)}isPaddingEqual(t){return this._helper.isPaddingEqual(t)}resize(t,n,s=!0){this._helper.resize(t,n,s)}getMaxBounds(){return this._helper.getMaxBounds()}setMaxBounds(t){this._helper.setMaxBounds(t)}setConstrainOverride(t){this._helper.setConstrainOverride(t)}overrideNearFarZ(t,n){this._helper.overrideNearFarZ(t,n)}clearNearFarZOverride(){this._helper.clearNearFarZOverride()}getCameraQueryGeometry(t){return this._helper.getCameraQueryGeometry(this.getCameraPoint(),t)}get tileSize(){return this._helper.tileSize}get tileZoom(){return this._helper.tileZoom}get scale(){return this._helper.scale}get worldSize(){return this._helper.worldSize}get width(){return this._helper.width}get height(){return this._helper.height}get lngRange(){return this._helper.lngRange}get latRange(){return this._helper.latRange}get minZoom(){return this._helper.minZoom}get maxZoom(){return this._helper.maxZoom}get zoom(){return this._helper.zoom}get center(){return this._helper.center}get minPitch(){return this._helper.minPitch}get maxPitch(){return this._helper.maxPitch}get pitch(){return this._helper.pitch}get pitchInRadians(){return this._helper.pitchInRadians}get roll(){return this._helper.roll}get rollInRadians(){return this._helper.rollInRadians}get bearing(){return this._helper.bearing}get bearingInRadians(){return this._helper.bearingInRadians}get fov(){return this._helper.fov}get fovInRadians(){return this._helper.fovInRadians}get elevation(){return this._helper.elevation}get minElevationForCurrentTile(){return this._helper.minElevationForCurrentTile}get padding(){return this._helper.padding}get unmodified(){return this._helper.unmodified}get renderWorldCopies(){return this._helper.renderWorldCopies}get cameraToCenterDistance(){return this._helper.cameraToCenterDistance}get constrainOverride(){return this._helper.constrainOverride}get nearZ(){return this._helper.nearZ}get farZ(){return this._helper.farZ}get autoCalculateNearFarZ(){return this._helper.autoCalculateNearFarZ}setTransitionState(t,n){}constructor(t){this._posMatrixCache=new Map,this._alignedPosMatrixCache=new Map,this._fogMatrixCacheF32=new Map,this.defaultConstrain=(n,s)=>{s=h.al(+s,this.minZoom,this.maxZoom);let c={center:new h.W(n.lng,n.lat),zoom:s},f=this._helper._lngRange;if(!this._helper._renderWorldCopies&&f===null){let $=179.9999999999;f=[-$,$]}let y=this.tileSize*h.ao(c.zoom),x=0,w=y,S=0,M=y,E=0,I=0,{x:D,y:B}=this.size;if(this._helper._latRange){let $=this._helper._latRange;x=h.Y($[1])*y,w=h.Y($[0])*y,w-xw&&(G=w-$)}if(f){let $=(S+M)/2,U=V;this._helper._renderWorldCopies&&(U=h.X(V,$-y/2,$+y/2));let H=D/2;U-HM&&(N=M-H)}if(N!==void 0||G!==void 0){let $=new h.P(N??V,G??q);c.center=Un(y,$).wrap()}return c},this.applyConstrain=(n,s)=>this._helper.applyConstrain(n,s),this._helper=new _n({calcMatrices:()=>this._calcMatrices(),defaultConstrain:(n,s)=>this.defaultConstrain(n,s)},t),this._coveringTilesDetailsProvider=new Ea}clone(){let t=new yn;return t.apply(this,!1),t}apply(t,n,s){this._helper.apply(t,n,s)}get cameraPosition(){return this._cameraPosition}get projectionMatrix(){return this._projectionMatrix}get modelViewProjectionMatrix(){return this._viewProjMatrix}get inverseProjectionMatrix(){return this._invProjMatrix}get mercatorMatrix(){return this._mercatorMatrix}getVisibleUnwrappedCoordinates(t){let n=[new h.ba(0,t)];if(this._helper._renderWorldCopies){let s=this.screenPointToMercatorCoordinate(new h.P(0,0)),c=this.screenPointToMercatorCoordinate(new h.P(this._helper._width,0)),f=this.screenPointToMercatorCoordinate(new h.P(this._helper._width,this._helper._height)),y=this.screenPointToMercatorCoordinate(new h.P(0,this._helper._height)),x=Math.floor(Math.min(s.x,c.x,f.x,y.x)),w=Math.floor(Math.max(s.x,c.x,f.x,y.x)),S=1;for(let M=x-S;M<=w+S;M++)M!==0&&n.push(new h.ba(M,t))}return n}getCameraFrustum(){return ji.fromInvProjectionMatrix(this._invViewProjMatrix,this.worldSize)}getClippingPlane(){return null}getCoveringTilesDetailsProvider(){return this._coveringTilesDetailsProvider}recalculateZoomAndCenter(t){let n=this.screenPointToLocation(this.centerPoint,t),s=t?t.getElevationForLngLatZoom(n,this._helper._tileZoom):0;this._helper.recalculateZoomAndCenter(s)}setLocationAtPoint(t,n){let s=h.aq(this.elevation,this.center.lat),c=this.screenPointToMercatorCoordinateAtZ(n,s),f=this.screenPointToMercatorCoordinateAtZ(this.centerPoint,s),y=h.a7.fromLngLat(t),x=new h.a7(y.x-(c.x-f.x),y.y-(c.y-f.y));this.setCenter(x?.toLngLat()),this._helper._renderWorldCopies&&this.setCenter(this.center.wrap())}locationToScreenPoint(t,n){return n?this.coordinatePoint(h.a7.fromLngLat(t),n.getElevationForLngLat(t,this),this._pixelMatrix3D):this.coordinatePoint(h.a7.fromLngLat(t))}screenPointToLocation(t,n){var s;return(s=this.screenPointToMercatorCoordinate(t,n))===null||s===void 0?void 0:s.toLngLat()}screenPointToMercatorCoordinate(t,n){if(n){let s=n.pointCoordinate(t);if(s!=null)return s}return this.screenPointToMercatorCoordinateAtZ(t)}screenPointToMercatorCoordinateAtZ(t,n){let s=n||0,c=[t.x,t.y,0,1],f=[t.x,t.y,1,1];h.aE(c,c,this._pixelMatrixInverse),h.aE(f,f,this._pixelMatrixInverse);let y=c[3],x=f[3],w=c[1]/y,S=f[1]/x,M=c[2]/y,E=f[2]/x,I=M===E?0:(s-M)/(E-M);return new h.a7(h.H.number(c[0]/y,f[0]/x,I)/this.worldSize,h.H.number(w,S,I)/this.worldSize,s)}coordinatePoint(t,n=0,s=this._pixelMatrix){let c=[t.x*this.worldSize,t.y*this.worldSize,n,1];return h.aE(c,c,s),new h.P(c[0]/c[3],c[1]/c[3])}getBounds(){let t=Math.max(0,this._helper._height/2-dn(this));return new De().extend(this.screenPointToLocation(new h.P(0,t))).extend(this.screenPointToLocation(new h.P(this._helper._width,t))).extend(this.screenPointToLocation(new h.P(this._helper._width,this._helper._height))).extend(this.screenPointToLocation(new h.P(0,this._helper._height)))}isPointOnMapSurface(t,n){return n?n.pointCoordinate(t)!=null:t.y>this.height/2-dn(this)}calculatePosMatrix(t,n=!1,s){var c;let f=(c=t.key)!==null&&c!==void 0?c:h.bb(t.wrap,t.canonical.z,t.canonical.z,t.canonical.x,t.canonical.y),y=n?this._alignedPosMatrixCache:this._posMatrixCache;if(y.has(f)){let S=y.get(f);return s?S.f32:S.f64}let x=Co(t,this.worldSize);h.U(x,n?this._alignedProjMatrix:this._viewProjMatrix,x);let w={f64:x,f32:new Float32Array(x)};return y.set(f,w),s?w.f32:w.f64}calculateFogMatrix(t){let n=t.key,s=this._fogMatrixCacheF32;if(s.has(n))return s.get(n);let c=Co(t,this.worldSize);return h.U(c,this._fogMatrix,c),s.set(n,new Float32Array(c)),s.get(n)}calculateCenterFromCameraLngLatAlt(t,n,s,c){return this._helper.calculateCenterFromCameraLngLatAlt(t,n,s,c)}_calculateNearFarZIfNeeded(t,n,s){if(!this._helper.autoCalculateNearFarZ)return;let c=Math.min(this.elevation,this.minElevationForCurrentTile,this.getCameraAltitude()-100),f=t-c*this._helper._pixelPerMeter/Math.cos(n),y=c<0?f:t,x=Math.PI/2+this.pitchInRadians,w=h.an(this.fov)*(Math.abs(Math.cos(h.an(this.roll)))*this.height+Math.abs(Math.sin(h.an(this.roll)))*this.width)/this.height*(.5+s.y/this.height),S=Math.sin(w)*y/Math.sin(h.al(Math.PI-x-w,.01,Math.PI-.01)),M=dn(this),E=Math.atan(M/this._helper.cameraToCenterDistance),I=h.an(.75),D=E>I?2*E*(.5+s.y/(2*M)):I,B=Math.sin(D)*y/Math.sin(h.al(Math.PI-x-D,.01,Math.PI-.01)),V=Math.min(S,B);this._helper._farZ=1.01*(Math.cos(Math.PI/2-n)*V+y),this._helper._nearZ=this._helper._height/50}_calcMatrices(){if(!this._helper._height)return;let t=this.centerOffset,n=dr(this.worldSize,this.center),s=n.x,c=n.y;this._helper._pixelPerMeter=h.aq(1,this.center.lat)*this.worldSize;let f=h.an(Math.min(this.pitch,hn)),y=Math.max(this._helper.cameraToCenterDistance/2,this._helper.cameraToCenterDistance+this._helper._elevation*this._helper._pixelPerMeter/Math.cos(f)),x;var w,S;this._calculateNearFarZIfNeeded(y,f,t),x=new Float64Array(16),h.bc(x,this.fovInRadians,this._helper._width/this._helper._height,this._helper._nearZ,this._helper._farZ),this._invProjMatrix=new Float64Array(16),(w=this._invProjMatrix)[0]=1/(S=x)[0],w[1]=0,w[2]=0,w[3]=0,w[4]=0,w[5]=1/S[5],w[6]=0,w[7]=0,w[8]=0,w[9]=0,w[10]=0,w[11]=1/S[14],w[12]=0,w[13]=0,w[14]=-1,w[15]=S[10]/S[14],x[8]=2*-t.x/this._helper._width,x[9]=2*t.y/this._helper._height,this._projectionMatrix=h.bd(x),h.S(x,x,[1,-1,1]),h.Q(x,x,[0,0,-this._helper.cameraToCenterDistance]),h.be(x,x,-this.rollInRadians),h.bf(x,x,this.pitchInRadians),h.be(x,x,-this.bearingInRadians),h.Q(x,x,[-s,-c,0]),this._mercatorMatrix=h.S([],x,[this.worldSize,this.worldSize,this.worldSize]),h.S(x,x,[1,1,this._helper._pixelPerMeter]),this._pixelMatrix=h.U(new Float64Array(16),this.clipSpaceToPixelsMatrix,x),h.Q(x,x,[0,0,-this.elevation]),this._viewProjMatrix=x,this._invViewProjMatrix=h.bg([],x);let M=[0,0,-1,1];h.aE(M,M,this._invViewProjMatrix),this._cameraPosition=[M[0]/M[3],M[1]/M[3],M[2]/M[3]],this._fogMatrix=new Float64Array(16),h.bc(this._fogMatrix,this.fovInRadians,this.width/this.height,y,this._helper._farZ),this._fogMatrix[8]=2*-t.x/this.width,this._fogMatrix[9]=2*t.y/this.height,h.S(this._fogMatrix,this._fogMatrix,[1,-1,1]),h.Q(this._fogMatrix,this._fogMatrix,[0,0,-this.cameraToCenterDistance]),h.be(this._fogMatrix,this._fogMatrix,-this.rollInRadians),h.bf(this._fogMatrix,this._fogMatrix,this.pitchInRadians),h.be(this._fogMatrix,this._fogMatrix,-this.bearingInRadians),h.Q(this._fogMatrix,this._fogMatrix,[-s,-c,0]),h.S(this._fogMatrix,this._fogMatrix,[1,1,this._helper._pixelPerMeter]),h.Q(this._fogMatrix,this._fogMatrix,[0,0,-this.elevation]),this._pixelMatrix3D=h.U(new Float64Array(16),this.clipSpaceToPixelsMatrix,x);let E=this._helper._width%2/2,I=this._helper._height%2/2,D=Math.cos(this.bearingInRadians),B=Math.sin(-this.bearingInRadians),V=s-Math.round(s)+D*E+B*I,q=c-Math.round(c)+D*I+B*E,N=new Float64Array(x);if(h.Q(N,N,[V>.5?V-1:V,q>.5?q-1:q,0]),this._alignedProjMatrix=N,x=h.bg(new Float64Array(16),this._pixelMatrix),!x)throw new Error(\"failed to invert matrix\");this._pixelMatrixInverse=x,this._clearMatrixCaches()}_clearMatrixCaches(){this._posMatrixCache.clear(),this._alignedPosMatrixCache.clear(),this._fogMatrixCacheF32.clear()}maxPitchScaleFactor(){if(!this._pixelMatrixInverse)return 1;let t=this.screenPointToMercatorCoordinate(new h.P(0,0)),n=[t.x*this.worldSize,t.y*this.worldSize,0,1];return h.aE(n,n,this._pixelMatrix)[3]/this._helper.cameraToCenterDistance}getCameraPoint(){return this._helper.getCameraPoint()}getCameraAltitude(){return this._helper.getCameraAltitude()}getCameraLngLat(){let t=h.aq(1,this.center.lat)*this.worldSize;return qn(this.center,this.elevation,this.pitch,this.bearing,this._helper.cameraToCenterDistance/t).toLngLat()}lngLatToCameraDepth(t,n){let s=h.a7.fromLngLat(t),c=[s.x*this.worldSize,s.y*this.worldSize,n,1];return h.aE(c,c,this._viewProjMatrix),c[2]/c[3]}getProjectionData(t){let{overscaledTileID:n,aligned:s,applyTerrainMatrix:c}=t,f=this._helper.getMercatorTileCoordinates(n),y=n?this.calculatePosMatrix(n,s,!0):null,x;return x=n?.terrainRttPosMatrix32f&&c?n.terrainRttPosMatrix32f:y||h.bh(),{mainMatrix:x,tileMercatorCoords:f,clippingPlane:[0,0,0,0],projectionTransition:0,fallbackMatrix:x}}isLocationOccluded(t){return!1}getPixelScale(){return 1}getCircleRadiusCorrection(){return 1}getPitchedTextCorrection(t,n,s){return 1}transformLightDirection(t){return h.a$(t)}getRayDirectionFromPixel(t){throw new Error(\"Not implemented.\")}projectTileCoordinates(t,n,s,c){let f=this.calculatePosMatrix(s),y;c?(y=[t,n,c(t,n),1],h.aE(y,y,f)):(y=[t,n,0,1],Ma(y,y,f));let x=y[3];return{point:new h.P(y[0]/x,y[1]/x),signedDistanceFromCamera:x,isOccluded:!1}}populateCache(t){for(let n of t)this.calculatePosMatrix(n)}getMatrixForModel(t,n){let s=h.a7.fromLngLat(t,n),c=s.meterInMercatorCoordinateUnits(),f=h.bi();return h.Q(f,f,[s.x,s.y,s.z]),h.be(f,f,Math.PI),h.bf(f,f,Math.PI/2),h.S(f,f,[-c,c,c]),f}getProjectionDataForCustomLayer(t=!0){let n=new h.a3(0,0,0,0,0),s=this.getProjectionData({overscaledTileID:n,applyGlobeMatrix:t}),c=Co(n,this.worldSize);h.U(c,this._viewProjMatrix,c),s.tileMercatorCoords=[0,0,1,1];let f=[h.a6,h.a6,this.worldSize/this._helper.pixelsPerMeter],y=h.bj();return h.S(y,c,f),s.fallbackMatrix=y,s.mainMatrix=y,s}getFastPathSimpleProjectionMatrix(t){return this.calculatePosMatrix(t)}}function Dr(){h.w(\"Map cannot fit within canvas with the given bounds, padding, and/or offset.\")}function Tc(d){if(d.useSlerp)if(d.k<1){let t=h.bk(d.startEulerAngles.roll,d.startEulerAngles.pitch,d.startEulerAngles.bearing),n=h.bk(d.endEulerAngles.roll,d.endEulerAngles.pitch,d.endEulerAngles.bearing),s=new Float64Array(4);h.bl(s,t,n,d.k);let c=h.bm(s);d.tr.setRoll(c.roll),d.tr.setPitch(c.pitch),d.tr.setBearing(c.bearing)}else d.tr.setRoll(d.endEulerAngles.roll),d.tr.setPitch(d.endEulerAngles.pitch),d.tr.setBearing(d.endEulerAngles.bearing);else d.tr.setRoll(h.H.number(d.startEulerAngles.roll,d.endEulerAngles.roll,d.k)),d.tr.setPitch(h.H.number(d.startEulerAngles.pitch,d.endEulerAngles.pitch,d.k)),d.tr.setBearing(h.H.number(d.startEulerAngles.bearing,d.endEulerAngles.bearing,d.k))}function el(d,t,n,s,c){let f=c.padding,y=dr(c.worldSize,n.getNorthWest()),x=dr(c.worldSize,n.getNorthEast()),w=dr(c.worldSize,n.getSouthEast()),S=dr(c.worldSize,n.getSouthWest()),M=h.an(-s),E=y.rotate(M),I=x.rotate(M),D=w.rotate(M),B=S.rotate(M),V=new h.P(Math.max(E.x,I.x,B.x,D.x),Math.max(E.y,I.y,B.y,D.y)),q=new h.P(Math.min(E.x,I.x,B.x,D.x),Math.min(E.y,I.y,B.y,D.y)),N=V.sub(q),G=(c.width-(f.left+f.right+t.left+t.right))/N.x,X=(c.height-(f.top+f.bottom+t.top+t.bottom))/N.y;if(X<0||G<0)return void Dr();let $=Math.min(h.ar(c.scale*Math.min(G,X)),d.maxZoom),U=h.P.convert(d.offset),H=new h.P((t.left-t.right)/2,(t.top-t.bottom)/2).rotate(h.an(s)),Z=U.add(H).mult(c.scale/h.ao($));return{center:Un(c.worldSize,y.add(w).div(2).sub(Z)),zoom:$,bearing:s}}class vn{get useGlobeControls(){return!1}handlePanInertia(t,n){let s=t.mag(),c=Math.abs(dn(n));return{easingOffset:t.mult(Math.min(.75*c/s,1)),easingCenter:n.center}}handleMapControlsRollPitchBearingZoom(t,n){t.bearingDelta&&n.setBearing(n.bearing+t.bearingDelta),t.pitchDelta&&n.setPitch(n.pitch+t.pitchDelta),t.rollDelta&&n.setRoll(n.roll+t.rollDelta),t.zoomDelta&&n.setZoom(n.zoom+t.zoomDelta)}handleMapControlsPan(t,n,s){t.around.distSqr(n.centerPoint)<.01||n.setLocationAtPoint(s,t.around)}cameraForBoxAndBearing(t,n,s,c,f){return el(t,n,s,c,f)}handleJumpToCenterZoom(t,n){t.zoom!==(n.zoom!==void 0?+n.zoom:t.zoom)&&t.setZoom(+n.zoom),n.center!==void 0&&t.setCenter(h.W.convert(n.center))}handleEaseTo(t,n){let s=t.zoom,c=t.padding,f={roll:t.roll,pitch:t.pitch,bearing:t.bearing},y={roll:n.roll===void 0?t.roll:n.roll,pitch:n.pitch===void 0?t.pitch:n.pitch,bearing:n.bearing===void 0?t.bearing:n.bearing},x=n.zoom!==void 0,w=!t.isPaddingEqual(n.padding),S=!1,M=x?+n.zoom:t.zoom,E=t.centerPoint.add(n.offsetAsPoint),I=t.screenPointToLocation(E),{center:D,zoom:B}=t.applyConstrain(h.W.convert(n.center||I),M??s);Kr(t,D);let V=dr(t.worldSize,I),q=dr(t.worldSize,D).sub(V),N=h.ao(B-s);return S=B!==s,{easeFunc:G=>{if(S&&t.setZoom(h.H.number(s,B,G)),h.bn(f,y)||Tc({startEulerAngles:f,endEulerAngles:y,tr:t,k:G,useSlerp:f.roll!=y.roll}),w&&(t.interpolatePadding(c,n.padding,G),E=t.centerPoint.add(n.offsetAsPoint)),n.around)t.setLocationAtPoint(n.around,n.aroundPoint);else{let X=h.ao(t.zoom-s),$=B>s?Math.min(2,N):Math.max(.5,N),U=Math.pow($,1-G),H=Un(t.worldSize,V.add(q.mult(G*U)).mult(X));t.setLocationAtPoint(t.renderWorldCopies?H.wrap():H,E)}},isZooming:S,elevationCenter:D}}handleFlyTo(t,n){let s=n.zoom!==void 0,c=t.zoom,f=t.applyConstrain(h.W.convert(n.center||n.locationAtOffset),s?+n.zoom:c),y=f.center,x=f.zoom;Kr(t,y);let w=dr(t.worldSize,n.locationAtOffset),S=dr(t.worldSize,y).sub(w),M=S.mag(),E=h.ao(x-c),I;if(n.minZoom!==void 0){let D=Math.min(+n.minZoom,c,x),B=t.applyConstrain(y,D).zoom;I=h.ao(B-c)}return{easeFunc:(D,B,V,q)=>{t.setZoom(D===1?x:c+h.ar(B));let N=D===1?y:Un(t.worldSize,w.add(S.mult(V)).mult(B));t.setLocationAtPoint(t.renderWorldCopies?N.wrap():N,q)},scaleOfZoom:E,targetCenter:y,scaleOfMinZoom:I,pixelPathLength:M}}}class Ct{constructor(t,n,s){this.blendFunction=t,this.blendColor=n,this.mask=s}}Ct.Replace=[1,0],Ct.disabled=new Ct(Ct.Replace,h.bo.transparent,[!1,!1,!1,!1]),Ct.unblended=new Ct(Ct.Replace,h.bo.transparent,[!0,!0,!0,!0]),Ct.alphaBlended=new Ct([1,771],h.bo.transparent,[!0,!0,!0,!0]);let Yn=2305;class lt{constructor(t,n,s){this.enable=t,this.mode=n,this.frontFace=s}}lt.disabled=new lt(!1,1029,Yn),lt.backCCW=new lt(!0,1029,Yn),lt.frontCCW=new lt(!0,1028,Yn);class Qe{constructor(t,n,s){this.func=t,this.mask=n,this.range=s}}Qe.ReadOnly=!1,Qe.ReadWrite=!0,Qe.disabled=new Qe(519,Qe.ReadOnly,[0,1]);let Kn=7680;class ct{constructor(t,n,s,c,f,y){this.test=t,this.ref=n,this.mask=s,this.fail=c,this.depthFail=f,this.pass=y}}function fr(d){return typeof WebGL2RenderingContext<\"u\"&&d instanceof WebGL2RenderingContext}ct.disabled=new ct({func:519,mask:0},0,0,Kn,Kn,Kn);class Jn{get awaitingQuery(){return!!this._readbackQueue}constructor(t){this._readbackWaitFrames=4,this._measureWaitFrames=6,this._texWidth=1,this._texHeight=1,this._measuredError=0,this._updateCount=0,this._lastReadbackFrame=-1e3,this._readbackQueue=null,this._cachedRenderContext=t;let n=t.context,s=n.gl;this._texFormat=s.RGBA,this._texType=s.UNSIGNED_BYTE;let c=new h.aU;c.emplaceBack(-1,-1),c.emplaceBack(2,-1),c.emplaceBack(-1,2);let f=new h.aW;f.emplaceBack(0,1,2),this._fullscreenTriangle=new Pt(n.createVertexBuffer(c,Yr.members),n.createIndexBuffer(f),h.aV.simpleSegment(0,0,c.length,f.length)),this._resultBuffer=new Uint8Array(4),n.activeTexture.set(s.TEXTURE1);let y=s.createTexture();s.bindTexture(s.TEXTURE_2D,y),s.texParameteri(s.TEXTURE_2D,s.TEXTURE_WRAP_S,s.CLAMP_TO_EDGE),s.texParameteri(s.TEXTURE_2D,s.TEXTURE_WRAP_T,s.CLAMP_TO_EDGE),s.texParameteri(s.TEXTURE_2D,s.TEXTURE_MIN_FILTER,s.NEAREST),s.texParameteri(s.TEXTURE_2D,s.TEXTURE_MAG_FILTER,s.NEAREST),s.texImage2D(s.TEXTURE_2D,0,this._texFormat,this._texWidth,this._texHeight,0,this._texFormat,this._texType,null),this._fbo=n.createFramebuffer(this._texWidth,this._texHeight,!1,!1),this._fbo.colorAttachment.set(y),fr(s)&&(this._pbo=s.createBuffer(),s.bindBuffer(s.PIXEL_PACK_BUFFER,this._pbo),s.bufferData(s.PIXEL_PACK_BUFFER,4,s.STREAM_READ),s.bindBuffer(s.PIXEL_PACK_BUFFER,null))}destroy(){let t=this._cachedRenderContext.context.gl;this._fullscreenTriangle.destroy(),this._fbo.destroy(),t.deleteBuffer(this._pbo),this._fullscreenTriangle=null,this._fbo=null,this._pbo=null,this._resultBuffer=null}updateErrorLoop(t,n){let s=this._updateCount;return this._readbackQueue?s>=this._readbackQueue.frameNumberIssued+this._readbackWaitFrames&&this._tryReadback():s>=this._lastReadbackFrame+this._measureWaitFrames&&this._renderErrorTexture(t,n),this._updateCount++,this._measuredError}_bindFramebuffer(){let t=this._cachedRenderContext.context,n=t.gl;t.activeTexture.set(n.TEXTURE1),n.bindTexture(n.TEXTURE_2D,this._fbo.colorAttachment.get()),t.bindFramebuffer.set(this._fbo.framebuffer)}_renderErrorTexture(t,n){let s=this._cachedRenderContext.context,c=s.gl;if(this._bindFramebuffer(),s.viewport.set([0,0,this._texWidth,this._texHeight]),s.clear({color:h.bo.transparent}),this._cachedRenderContext.useProgram(\"projectionErrorMeasurement\").draw(s,c.TRIANGLES,Qe.disabled,ct.disabled,Ct.unblended,lt.disabled,((f,y)=>({u_input:f,u_output_expected:y}))(t,n),null,null,\"$clipping\",this._fullscreenTriangle.vertexBuffer,this._fullscreenTriangle.indexBuffer,this._fullscreenTriangle.segments),this._pbo&&fr(c)){c.bindBuffer(c.PIXEL_PACK_BUFFER,this._pbo),c.readBuffer(c.COLOR_ATTACHMENT0),c.readPixels(0,0,this._texWidth,this._texHeight,this._texFormat,this._texType,0),c.bindBuffer(c.PIXEL_PACK_BUFFER,null);let f=c.fenceSync(c.SYNC_GPU_COMMANDS_COMPLETE,0);c.flush(),this._readbackQueue={frameNumberIssued:this._updateCount,sync:f}}else this._readbackQueue={frameNumberIssued:this._updateCount,sync:null}}_tryReadback(){let t=this._cachedRenderContext.context.gl;if(this._pbo&&this._readbackQueue&&fr(t)){let n=t.clientWaitSync(this._readbackQueue.sync,0,0);if(n===t.WAIT_FAILED)return h.w(\"WebGL2 clientWaitSync failed.\"),this._readbackQueue=null,void(this._lastReadbackFrame=this._updateCount);if(n===t.TIMEOUT_EXPIRED)return;t.bindBuffer(t.PIXEL_PACK_BUFFER,this._pbo),t.getBufferSubData(t.PIXEL_PACK_BUFFER,0,this._resultBuffer,0,4),t.bindBuffer(t.PIXEL_PACK_BUFFER,null)}else this._bindFramebuffer(),t.readPixels(0,0,this._texWidth,this._texHeight,this._texFormat,this._texType,this._resultBuffer);this._readbackQueue=null,this._measuredError=Jn._parseRGBA8float(this._resultBuffer),this._lastReadbackFrame=this._updateCount}static _parseRGBA8float(t){let n=0;return n+=t[0]/256,n+=t[1]/65536,n+=t[2]/16777216,t[3]<127&&(n=-n),n/128}}let xn=h.a6/128;function Qn(d,t){let n=d.granularity!==void 0?Math.max(d.granularity,1):1,s=n+(d.generateBorders?2:0),c=n+(d.extendToNorthPole||d.generateBorders?1:0)+(d.extendToSouthPole||d.generateBorders?1:0),f=s+1,y=c+1,x=d.generateBorders?-1:0,w=d.generateBorders||d.extendToNorthPole?-1:0,S=n+(d.generateBorders?1:0),M=n+(d.generateBorders||d.extendToSouthPole?1:0),E=f*y,I=s*c*6,D=f*y>65536;if(D&&t===\"16bit\")throw new Error(\"Granularity is too large and meshes would not fit inside 16 bit vertex indices.\");let B=D||t===\"32bit\",V=new Int16Array(2*E),q=0;for(let X=w;X<=M;X++)for(let $=x;$<=S;$++){let U=$/n*h.a6;$===-1&&(U=-xn),$===n+1&&(U=h.a6+xn);let H=X/n*h.a6;X===-1&&(H=d.extendToNorthPole?h.bq:-xn),X===n+1&&(H=d.extendToSouthPole?h.br:h.a6+xn),V[q++]=U,V[q++]=H}let N=B?new Uint32Array(I):new Uint16Array(I),G=0;for(let X=0;X0}get latitudeErrorCorrectionRadians(){return this._verticalPerspectiveProjection.latitudeErrorCorrectionRadians}get currentProjection(){return this.useGlobeRendering?this._verticalPerspectiveProjection:this._mercatorProjection}get name(){return\"globe\"}get useSubdivision(){return this.currentProjection.useSubdivision}get shaderVariantName(){return this.currentProjection.shaderVariantName}get shaderDefine(){return this.currentProjection.shaderDefine}get shaderPreludeCode(){return this.currentProjection.shaderPreludeCode}get vertexShaderPreludeCode(){return this.currentProjection.vertexShaderPreludeCode}get subdivisionGranularity(){return this.currentProjection.subdivisionGranularity}get useGlobeControls(){return this.transitionState>0}destroy(){this._mercatorProjection.destroy(),this._verticalPerspectiveProjection.destroy()}updateGPUdependent(t){this._mercatorProjection.updateGPUdependent(t),this._verticalPerspectiveProjection.updateGPUdependent(t)}getMeshFromTileID(t,n,s,c,f){return this.currentProjection.getMeshFromTileID(t,n,s,c,f)}setProjection(t){this._transitionable.setValue(\"type\",t?.type||\"mercator\")}updateTransitions(t){this._transitioning=this._transitionable.transitioned(t,this._transitioning)}hasTransition(){return this._transitioning.hasTransition()||this.currentProjection.hasTransition()}recalculate(t){this.properties=this._transitioning.possiblyEvaluate(t)}setErrorQueryLatitudeDegrees(t){this._verticalPerspectiveProjection.setErrorQueryLatitudeDegrees(t),this._mercatorProjection.setErrorQueryLatitudeDegrees(t)}}function Pc(d){let t=Zi(d.worldSize,d.center.lat);return 2*Math.PI*t}function Zt(d,t,n,s,c){let f=1/(1<1e-6){let s=d[0]/n,c=Math.acos(d[2]/n),f=(s>0?c:-c)/Math.PI*180;return new h.W(h.X(f,-180,180),t)}return new h.W(0,t)}function Bo(d){return Math.cos(d*Math.PI/180)}function Jt(d,t){let n=Bo(d),s=Bo(t);return h.ar(s/n)}function bn(d,t){let n=d.rotate(t.bearingInRadians),s=t.zoom+Jt(t.center.lat,0),c=h.bt(1/Bo(t.center.lat),1/Bo(Math.min(Math.abs(t.center.lat),60)),h.bw(s,7,3,0,1)),f=360/Pc({worldSize:t.worldSize,center:{lat:t.center.lat}});return new h.W(t.center.lng-n.x*f*c,h.al(t.center.lat+n.y*f,-h.am,h.am))}function il(d){let t=.5*d,n=Math.sin(t),s=Math.cos(t);return Math.log(n+s)-Math.log(s-n)}function Cc(d,t,n,s){let c=d.lat+n*s;if(Math.abs(n)>1){let f=(Math.sign(d.lat+n)!==Math.sign(d.lat)?-Math.abs(d.lat):Math.abs(d.lat))*Math.PI/180,y=Math.abs(d.lat+n)*Math.PI/180,x=il(f+s*(y-f)),w=il(f),S=il(y);return new h.W(d.lng+t*((x-w)/(S-w)),c)}return new h.W(d.lng+t*s,c)}class Xu{constructor(t){this._cachePrevious=new Map,this._cache=new Map,this._hadAnyChanges=!1,this._boundingVolumeFactory=t}swapBuffers(){if(!this._hadAnyChanges)return;let t=this._cachePrevious;this._cachePrevious=this._cache,this._cache=t,this._cache.clear(),this._hadAnyChanges=!1}getTileBoundingVolume(t,n,s,c){let f=`${t.z}_${t.x}_${t.y}_${c?.terrain?\"t\":\"\"}`,y=this._cache.get(f);if(y)return y;let x=this._cachePrevious.get(f);if(x)return this._cache.set(f,x),x;let w=this._boundingVolumeFactory(t,n,s,c);return this._cache.set(f,w),this._hadAnyChanges=!0,w}}class eo{constructor(t,n,s,c){this.min=s,this.max=c,this.points=t,this.planes=n}static fromAabb(t,n){let s=[];for(let c=0;c<8;c++)s.push([1&~c?t[0]:n[0],(c>>1&1)==1?n[1]:t[1],(c>>2&1)==1?n[2]:t[2]]);return new eo(s,[[-1,0,0,n[0]],[1,0,0,-t[0]],[0,-1,0,n[1]],[0,1,0,-t[1]],[0,0,-1,n[2]],[0,0,1,-t[2]]],t,n)}static fromCenterSizeAngles(t,n,s){let c=h.bA([],s[0],s[1],s[2]),f=h.bB([],[n[0],0,0],c),y=h.bB([],[0,n[1],0],c),x=h.bB([],[0,0,n[2]],c),w=[...t],S=[...t];for(let E=0;E<8;E++)for(let I=0;I<3;I++){let D=t[I]+f[I]*(1&~E?-1:1)+y[I]*((E>>1&1)==1?1:-1)+x[I]*((E>>2&1)==1?1:-1);w[I]=Math.min(w[I],D),S[I]=Math.max(S[I],D)}let M=[];for(let E=0;E<8;E++){let I=[...t];h.a_(I,I,h.aZ([],f,1&~E?-1:1)),h.a_(I,I,h.aZ([],y,(E>>1&1)==1?1:-1)),h.a_(I,I,h.aZ([],x,(E>>2&1)==1?1:-1)),M.push(I)}return new eo(M,[[...f,-h.b3(f,M[0])],[...y,-h.b3(y,M[0])],[...x,-h.b3(x,M[0])],[-f[0],-f[1],-f[2],-h.b3(f,M[7])],[-y[0],-y[1],-y[2],-h.b3(y,M[7])],[-x[0],-x[1],-x[2],-h.b3(x,M[7])]],w,S)}intersectsFrustum(t){let n=!0,s=this.points.length,c=this.planes.length,f=t.planes.length,y=t.points.length;for(let x=0;x=0&&S++}if(S===0)return 0;S=0&&S++}if(S===0)return 0}return 1}intersectsPlane(t){let n=this.points.length,s=0;for(let c=0;c=0&&s++}return s===n?2:s===0?0:1}}function Aa(d,t,n){let s=d-t;return s<0?-s:Math.max(0,s-n)}function rl(d,t,n,s,c){let f=d-n,y;return y=f<0?Math.min(-f,1+f-c):f>c?Math.min(Math.max(f-c,0),1-f):0,Math.max(y,Aa(t,s,c))}class za{constructor(){this._boundingVolumeCache=new Xu(this._computeTileBoundingVolume)}prepareNextFrame(){this._boundingVolumeCache.swapBuffers()}distanceToTile2d(t,n,s,c){let f=1<4}allowWorldCopies(){return!1}getTileBoundingVolume(t,n,s,c){return this._boundingVolumeCache.getTileBoundingVolume(t,n,s,c)}_computeTileBoundingVolume(t,n,s,c){var f,y;let x=0,w=0;if(c?.terrain){let S=new h.a3(t.z,n,t.z,t.x,t.y),M=c.terrain.getMinMaxElevation(S);x=(f=M.minElevation)!==null&&f!==void 0?f:Math.min(0,s),w=(y=M.maxElevation)!==null&&y!==void 0?y:Math.max(0,s)}if(x/=h.bD,w/=h.bD,x+=1,w+=1,t.z<=0)return eo.fromAabb([-w,-w,-w],[w,w,w]);if(t.z===1)return eo.fromAabb([t.x===0?-w:0,t.y===0?0:-w,-w],[t.x===0?0:w,t.y===0?w:0,w]);{let S=[Zt(0,0,t.x,t.y,t.z),Zt(h.a6,0,t.x,t.y,t.z),Zt(h.a6,h.a6,t.x,t.y,t.z),Zt(0,h.a6,t.x,t.y,t.z)],M=[];for(let _e of S)M.push(h.aZ([],_e,w));if(w!==x)for(let _e of S)M.push(h.aZ([],_e,x));t.y===0&&M.push([0,1,0]),t.y===(1<=(1<{let c=h.al(n.lat,-h.am,h.am),f=h.al(+s,this.minZoom+Jt(0,c),this.maxZoom);return{center:new h.W(n.lng,c),zoom:f}},this.applyConstrain=(n,s)=>this._helper.applyConstrain(n,s),this._helper=new _n({calcMatrices:()=>this._calcMatrices(),defaultConstrain:(n,s)=>this.defaultConstrain(n,s)},t),this._coveringTilesDetailsProvider=new za}clone(){let t=new wn;return t.apply(this,!1),t}apply(t,n,s){this._globeLatitudeErrorCorrectionRadians=s||0,this._helper.apply(t,n)}get projectionMatrix(){return this._projectionMatrix}get modelViewProjectionMatrix(){return this._globeViewProjMatrixNoCorrection}get inverseProjectionMatrix(){return this._globeProjMatrixInverted}get cameraPosition(){let t=h.bz();return t[0]=this._cameraPosition[0],t[1]=this._cameraPosition[1],t[2]=this._cameraPosition[2],t}get cameraToCenterDistance(){return this._helper.cameraToCenterDistance}getProjectionData(t){let{overscaledTileID:n,applyGlobeMatrix:s}=t,c=this._helper.getMercatorTileCoordinates(n);return{mainMatrix:this._globeViewProjMatrix32f,tileMercatorCoords:c,clippingPlane:this._cachedClippingPlane,projectionTransition:s?1:0,fallbackMatrix:this._globeViewProjMatrix32f}}_computeClippingPlane(t){let n=this.pitchInRadians,s=this.cameraToCenterDistance/t,c=Math.sin(n)*s,f=Math.cos(n)*s+1,y=1/Math.sqrt(c*c+f*f)*1,x=-c,w=f,S=Math.sqrt(x*x+w*w);x/=S,w/=S;let M=[0,x,w];h.bF(M,M,[0,0,0],-this.bearingInRadians),h.bG(M,M,[0,0,0],-1*this.center.lat*Math.PI/180),h.bH(M,M,[0,0,0],this.center.lng*Math.PI/180);let E=1/h.b5(M);return h.aZ(M,M,E),[...M,-y*E]}isLocationOccluded(t){return!this.isSurfacePointVisible(ii(t))}transformLightDirection(t){let n=this._helper._center.lng*Math.PI/180,s=this._helper._center.lat*Math.PI/180,c=Math.cos(s),f=[Math.sin(n)*c,Math.sin(s),Math.cos(n)*c],y=[f[2],0,-f[0]],x=[0,0,0];h.b2(x,y,f),h.b1(y,y),h.b1(x,x);let w=[0,0,0];return h.b1(w,[y[0]*t[0]+x[0]*t[1]+f[0]*t[2],y[1]*t[0]+x[1]*t[1]+f[1]*t[2],y[2]*t[0]+x[2]*t[1]+f[2]*t[2]]),w}getPixelScale(){return 1/Math.cos(this._helper._center.lat*Math.PI/180)}getCircleRadiusCorrection(){return Math.cos(this._helper._center.lat*Math.PI/180)}getPitchedTextCorrection(t,n,s){let c=(function(x,w,S){let M=1/(1<f&&(f=I),Dx&&(x=D)}let M=[S.lng+y,S.lat+w,S.lng+f,S.lat+x];return this.isSurfacePointOnScreen([0,1,0])&&(M[3]=90,M[0]=-180,M[2]=180),this.isSurfacePointOnScreen([0,-1,0])&&(M[1]=-90,M[0]=-180,M[2]=180),new De(M)}calculateCenterFromCameraLngLatAlt(t,n,s,c){return this._helper.calculateCenterFromCameraLngLatAlt(t,n,s,c)}setLocationAtPoint(t,n){let s=ii(this.unprojectScreenPoint(n)),c=ii(t),f=h.bz();h.bK(f);let y=h.bz();h.bH(y,s,f,-this.center.lng*Math.PI/180),h.bG(y,y,f,this.center.lat*Math.PI/180);let x=c[0]*c[0]+c[2]*c[2],w=y[0]*y[0];if(x=-N&&B<=N,X=q>=-N&&q<=N,$,U;if(G&&X){let se=this.center.lng*Math.PI/180,ce=this.center.lat*Math.PI/180;h.bM(E,se)+h.bM(B,ce)=0}isSurfacePointOnScreen(t){if(!this.isSurfacePointVisible(t))return!1;let n=h.bE();return h.aE(n,[...t,1],this._globeViewProjMatrixNoCorrection),n[0]/=n[3],n[1]/=n[3],n[2]/=n[3],n[0]>-1&&n[0]<1&&n[1]>-1&&n[1]<1&&n[2]>-1&&n[2]<1}rayPlanetIntersection(t,n){let s=h.b3(t,n),c=h.bz(),f=h.bz();h.aZ(f,n,s),h.b0(c,t,f);let y=1-h.b3(c,c);if(y<0)return null;let x=h.b3(t,t)-1,w=-s+(s<0?1:-1)*Math.sqrt(y),S=x/w,M=w;return{tMin:Math.min(S,M),tMax:Math.max(S,M)}}unprojectScreenPoint(t){let n=this._cameraPosition,s=this.getRayDirectionFromPixel(t),c=this.rayPlanetIntersection(n,s);if(c){let M=h.bz();h.a_(M,n,[s[0]*c.tMin,s[1]*c.tMin,s[2]*c.tMin]);let E=h.bz();return h.b1(E,M),Fo(E)}let f=this._cachedClippingPlane,y=f[0]*s[0]+f[1]*s[1]+f[2]*s[2],x=-h.b9(f,n)/y,w=h.bz();if(x>0)h.a_(w,n,[s[0]*x,s[1]*x,s[2]*x]);else{let M=h.bz();h.a_(M,n,[2*s[0],2*s[1],2*s[2]]);let E=h.b9(this._cachedClippingPlane,M);h.b0(w,M,[this._cachedClippingPlane[0]*E,this._cachedClippingPlane[1]*E,this._cachedClippingPlane[2]*E])}let S=(function(M){let E=h.bz();return E[0]=M[0]*-M[3],E[1]=M[1]*-M[3],E[2]=M[2]*-M[3],{center:E,radius:Math.sqrt(1-M[3]*M[3])}})(f);return Fo((function(M,E,I){let D=h.bz();h.b0(D,I,M);let B=h.bz();return h.bx(B,M,D,E/h.b7(D)),B})(S.center,S.radius,w))}getMatrixForModel(t,n){let s=h.W.convert(t),c=1/h.bD,f=h.bi();return h.bI(f,f,s.lng/180*Math.PI),h.bf(f,f,-s.lat/180*Math.PI),h.Q(f,f,[0,0,1+n/h.bD]),h.bf(f,f,.5*Math.PI),h.S(f,f,[c,c,c]),f}getProjectionDataForCustomLayer(t=!0){let n=this.getProjectionData({overscaledTileID:new h.a3(0,0,0,0,0),applyGlobeMatrix:t});return n.tileMercatorCoords=[0,0,1,1],n}getFastPathSimpleProjectionMatrix(t){}}class to{get pixelsToClipSpaceMatrix(){return this._helper.pixelsToClipSpaceMatrix}get clipSpaceToPixelsMatrix(){return this._helper.clipSpaceToPixelsMatrix}get pixelsToGLUnits(){return this._helper.pixelsToGLUnits}get centerOffset(){return this._helper.centerOffset}get size(){return this._helper.size}get rotationMatrix(){return this._helper.rotationMatrix}get centerPoint(){return this._helper.centerPoint}get pixelsPerMeter(){return this._helper.pixelsPerMeter}setMinZoom(t){this._helper.setMinZoom(t)}setMaxZoom(t){this._helper.setMaxZoom(t)}setMinPitch(t){this._helper.setMinPitch(t)}setMaxPitch(t){this._helper.setMaxPitch(t)}setRenderWorldCopies(t){this._helper.setRenderWorldCopies(t)}setBearing(t){this._helper.setBearing(t)}setPitch(t){this._helper.setPitch(t)}setRoll(t){this._helper.setRoll(t)}setFov(t){this._helper.setFov(t)}setZoom(t){this._helper.setZoom(t)}setCenter(t){this._helper.setCenter(t)}setElevation(t){this._helper.setElevation(t)}setMinElevationForCurrentTile(t){this._helper.setMinElevationForCurrentTile(t)}setPadding(t){this._helper.setPadding(t)}interpolatePadding(t,n,s){this._helper.interpolatePadding(t,n,s)}isPaddingEqual(t){return this._helper.isPaddingEqual(t)}resize(t,n,s=!0){this._helper.resize(t,n,s)}getMaxBounds(){return this._helper.getMaxBounds()}setMaxBounds(t){this._helper.setMaxBounds(t)}setConstrainOverride(t){this._helper.setConstrainOverride(t)}overrideNearFarZ(t,n){this._helper.overrideNearFarZ(t,n)}clearNearFarZOverride(){this._helper.clearNearFarZOverride()}getCameraQueryGeometry(t){return this._helper.getCameraQueryGeometry(this.getCameraPoint(),t)}get tileSize(){return this._helper.tileSize}get tileZoom(){return this._helper.tileZoom}get scale(){return this._helper.scale}get worldSize(){return this._helper.worldSize}get width(){return this._helper.width}get height(){return this._helper.height}get lngRange(){return this._helper.lngRange}get latRange(){return this._helper.latRange}get minZoom(){return this._helper.minZoom}get maxZoom(){return this._helper.maxZoom}get zoom(){return this._helper.zoom}get center(){return this._helper.center}get minPitch(){return this._helper.minPitch}get maxPitch(){return this._helper.maxPitch}get pitch(){return this._helper.pitch}get pitchInRadians(){return this._helper.pitchInRadians}get roll(){return this._helper.roll}get rollInRadians(){return this._helper.rollInRadians}get bearing(){return this._helper.bearing}get bearingInRadians(){return this._helper.bearingInRadians}get fov(){return this._helper.fov}get fovInRadians(){return this._helper.fovInRadians}get elevation(){return this._helper.elevation}get minElevationForCurrentTile(){return this._helper.minElevationForCurrentTile}get padding(){return this._helper.padding}get unmodified(){return this._helper.unmodified}get renderWorldCopies(){return this._helper.renderWorldCopies}get cameraToCenterDistance(){return this._helper.cameraToCenterDistance}get constrainOverride(){return this._helper.constrainOverride}get nearZ(){return this._helper.nearZ}get farZ(){return this._helper.farZ}get autoCalculateNearFarZ(){return this._helper.autoCalculateNearFarZ}get isGlobeRendering(){return this._globeness>0}setTransitionState(t,n){this._globeness=t,this._globeLatitudeErrorCorrectionRadians=n,this._calcMatrices(),this._verticalPerspectiveTransform.getCoveringTilesDetailsProvider().prepareNextFrame(),this._mercatorTransform.getCoveringTilesDetailsProvider().prepareNextFrame()}get currentTransform(){return this.isGlobeRendering?this._verticalPerspectiveTransform:this._mercatorTransform}constructor(t){this._globeLatitudeErrorCorrectionRadians=0,this._globeness=1,this.defaultConstrain=(n,s)=>this.currentTransform.defaultConstrain(n,s),this.applyConstrain=(n,s)=>this._helper.applyConstrain(n,s),this._helper=new _n({calcMatrices:()=>this._calcMatrices(),defaultConstrain:(n,s)=>this.defaultConstrain(n,s)},t),this._globeness=1,this._mercatorTransform=new yn,this._verticalPerspectiveTransform=new wn}clone(){let t=new to;return t._globeness=this._globeness,t._globeLatitudeErrorCorrectionRadians=this._globeLatitudeErrorCorrectionRadians,t.apply(this,!1),t}apply(t,n){this._helper.apply(t,n),this._mercatorTransform.apply(this,!1),this._verticalPerspectiveTransform.apply(this,!1,this._globeLatitudeErrorCorrectionRadians)}get projectionMatrix(){return this.currentTransform.projectionMatrix}get modelViewProjectionMatrix(){return this.currentTransform.modelViewProjectionMatrix}get inverseProjectionMatrix(){return this.currentTransform.inverseProjectionMatrix}get cameraPosition(){return this.currentTransform.cameraPosition}getProjectionData(t){let n=this._mercatorTransform.getProjectionData(t),s=this._verticalPerspectiveTransform.getProjectionData(t);return{mainMatrix:this.isGlobeRendering?s.mainMatrix:n.mainMatrix,clippingPlane:s.clippingPlane,tileMercatorCoords:s.tileMercatorCoords,projectionTransition:t.applyGlobeMatrix?this._globeness:0,fallbackMatrix:n.fallbackMatrix}}isLocationOccluded(t){return this.currentTransform.isLocationOccluded(t)}transformLightDirection(t){return this.currentTransform.transformLightDirection(t)}getPixelScale(){return h.bt(this._mercatorTransform.getPixelScale(),this._verticalPerspectiveTransform.getPixelScale(),this._globeness)}getCircleRadiusCorrection(){return h.bt(this._mercatorTransform.getCircleRadiusCorrection(),this._verticalPerspectiveTransform.getCircleRadiusCorrection(),this._globeness)}getPitchedTextCorrection(t,n,s){let c=this._mercatorTransform.getPitchedTextCorrection(t,n,s),f=this._verticalPerspectiveTransform.getPitchedTextCorrection(t,n,s);return h.bt(c,f,this._globeness)}projectTileCoordinates(t,n,s,c){return this.currentTransform.projectTileCoordinates(t,n,s,c)}_calcMatrices(){this._helper._width&&this._helper._height&&(this._verticalPerspectiveTransform.apply(this,!1,this._globeLatitudeErrorCorrectionRadians),this._helper._nearZ=this._verticalPerspectiveTransform.nearZ,this._helper._farZ=this._verticalPerspectiveTransform.farZ,this._mercatorTransform.apply(this,!0,this.isGlobeRendering),this._helper._nearZ=this._mercatorTransform.nearZ,this._helper._farZ=this._mercatorTransform.farZ)}calculateFogMatrix(t){return this.currentTransform.calculateFogMatrix(t)}getVisibleUnwrappedCoordinates(t){return this.currentTransform.getVisibleUnwrappedCoordinates(t)}getCameraFrustum(){return this.currentTransform.getCameraFrustum()}getClippingPlane(){return this.currentTransform.getClippingPlane()}getCoveringTilesDetailsProvider(){return this.currentTransform.getCoveringTilesDetailsProvider()}recalculateZoomAndCenter(t){this._mercatorTransform.recalculateZoomAndCenter(t),this._verticalPerspectiveTransform.recalculateZoomAndCenter(t)}maxPitchScaleFactor(){return this._mercatorTransform.maxPitchScaleFactor()}getCameraPoint(){return this._helper.getCameraPoint()}getCameraAltitude(){return this._helper.getCameraAltitude()}getCameraLngLat(){return this._helper.getCameraLngLat()}lngLatToCameraDepth(t,n){return this.currentTransform.lngLatToCameraDepth(t,n)}populateCache(t){this._mercatorTransform.populateCache(t),this._verticalPerspectiveTransform.populateCache(t)}getBounds(){return this.currentTransform.getBounds()}calculateCenterFromCameraLngLatAlt(t,n,s,c){return this._helper.calculateCenterFromCameraLngLatAlt(t,n,s,c)}setLocationAtPoint(t,n){if(!this.isGlobeRendering)return this._mercatorTransform.setLocationAtPoint(t,n),void this.apply(this._mercatorTransform,!1);this._verticalPerspectiveTransform.setLocationAtPoint(t,n),this.apply(this._verticalPerspectiveTransform,!1)}locationToScreenPoint(t,n){return this.currentTransform.locationToScreenPoint(t,n)}screenPointToMercatorCoordinate(t,n){return this.currentTransform.screenPointToMercatorCoordinate(t,n)}screenPointToLocation(t,n){return this.currentTransform.screenPointToLocation(t,n)}isPointOnMapSurface(t,n){return this.currentTransform.isPointOnMapSurface(t,n)}getRayDirectionFromPixel(t){return this._verticalPerspectiveTransform.getRayDirectionFromPixel(t)}getMatrixForModel(t,n){return this.currentTransform.getMatrixForModel(t,n)}getProjectionDataForCustomLayer(t=!0){let n=this._mercatorTransform.getProjectionDataForCustomLayer(t);if(!this.isGlobeRendering)return n;let s=this._verticalPerspectiveTransform.getProjectionDataForCustomLayer(t);return s.fallbackMatrix=n.mainMatrix,s}getFastPathSimpleProjectionMatrix(t){return this.currentTransform.getFastPathSimpleProjectionMatrix(t)}}class Wi{get useGlobeControls(){return!0}handlePanInertia(t,n){let s=bn(t,n);return Math.abs(s.lng-n.center.lng)>180&&(s.lng=n.center.lng+179.5*Math.sign(s.lng-n.center.lng)),{easingCenter:s,easingOffset:new h.P(0,0)}}handleMapControlsRollPitchBearingZoom(t,n){let s=t.around,c=n.screenPointToLocation(s);t.bearingDelta&&n.setBearing(n.bearing+t.bearingDelta),t.pitchDelta&&n.setPitch(n.pitch+t.pitchDelta),t.rollDelta&&n.setRoll(n.roll+t.rollDelta);let f=n.zoom;t.zoomDelta&&n.setZoom(n.zoom+t.zoomDelta);let y=n.zoom-f;if(y===0)return;let x=h.bJ(n.center.lng,c.lng),w=x/(Math.abs(x/180)+1),S=h.bJ(n.center.lat,c.lat),M=n.getRayDirectionFromPixel(s),E=n.cameraPosition,I=-1*h.b3(E,M),D=h.bz();h.a_(D,E,[M[0]*I,M[1]*I,M[2]*I]);let B=h.b5(D)-1,V=Math.exp(.5*-Math.max(B-.3,0)),q=Zi(n.worldSize,n.center.lat)/Math.min(n.width,n.height),N=h.bw(q,.9,.5,1,.25),G=(1-h.ao(-y))*Math.min(V,N),X=n.center.lat,$=n.zoom,U=new h.W(n.center.lng+w*G,h.al(n.center.lat+S*G,-h.am,h.am));n.setLocationAtPoint(c,s);let H=n.center,Z=h.bw(Math.abs(x),45,85,0,1),te=h.bw(q,.75,.35,0,1),se=Math.pow(Math.max(Z,te),.25),ce=h.bJ(H.lng,U.lng),_e=h.bJ(H.lat,U.lat);n.setCenter(new h.W(H.lng+ce*se,H.lat+_e*se).wrap()),n.setZoom($+Jt(X,n.center.lat))}handleMapControlsPan(t,n,s){if(!t.panDelta)return;let c=n.center.lat,f=n.zoom;n.setCenter(bn(t.panDelta,n).wrap()),n.setZoom(f+Jt(c,n.center.lat))}cameraForBoxAndBearing(t,n,s,c,f){let y=el(t,n,s,c,f),x=n.left/f.width*2-1,w=(f.width-n.right)/f.width*2-1,S=n.top/f.height*-2+1,M=(f.height-n.bottom)/f.height*-2+1,E=h.bJ(s.getWest(),s.getEast())<0,I=E?s.getEast():s.getWest(),D=E?s.getWest():s.getEast(),B=Math.max(s.getNorth(),s.getSouth()),V=Math.min(s.getNorth(),s.getSouth()),q=I+.5*h.bJ(I,D),N=B+.5*h.bJ(B,V),G=f.clone();G.setCenter(y.center),G.setBearing(y.bearing),G.setPitch(0),G.setRoll(0),G.setZoom(y.zoom);let X=G.modelViewProjectionMatrix,$=[ii(s.getNorthWest()),ii(s.getNorthEast()),ii(s.getSouthWest()),ii(s.getSouthEast()),ii(new h.W(D,N)),ii(new h.W(I,N)),ii(new h.W(q,B)),ii(new h.W(q,V))],U=ii(y.center),H=Number.POSITIVE_INFINITY;for(let Z of $)x<0&&(H=Wi.getLesserNonNegativeNonNull(H,Wi.solveVectorScale(Z,U,X,\"x\",x))),w>0&&(H=Wi.getLesserNonNegativeNonNull(H,Wi.solveVectorScale(Z,U,X,\"x\",w))),S>0&&(H=Wi.getLesserNonNegativeNonNull(H,Wi.solveVectorScale(Z,U,X,\"y\",S))),M<0&&(H=Wi.getLesserNonNegativeNonNull(H,Wi.solveVectorScale(Z,U,X,\"y\",M)));if(Number.isFinite(H)&&H!==0)return y.zoom=Math.min(G.zoom+h.ar(H),t.maxZoom),y;Dr()}handleJumpToCenterZoom(t,n){let s=t.center.lat,c=t.applyConstrain(n.center?h.W.convert(n.center):t.center,t.zoom).center;t.setCenter(c.wrap());let f=n.zoom!==void 0?+n.zoom:t.zoom+Jt(s,c.lat);t.zoom!==f&&t.setZoom(f)}handleEaseTo(t,n){let s=t.zoom,c=t.center,f=t.padding,y={roll:t.roll,pitch:t.pitch,bearing:t.bearing},x={roll:n.roll===void 0?t.roll:n.roll,pitch:n.pitch===void 0?t.pitch:n.pitch,bearing:n.bearing===void 0?t.bearing:n.bearing},w=n.zoom!==void 0,S=!t.isPaddingEqual(n.padding),M=!1,E=n.center?h.W.convert(n.center):c,I=t.applyConstrain(E,s).center;Kr(t,I);let D=t.clone();D.setCenter(I),D.setZoom(w?+n.zoom:s+Jt(c.lat,E.lat)),D.setBearing(n.bearing);let B=new h.P(h.al(t.centerPoint.x+n.offsetAsPoint.x,0,t.width),h.al(t.centerPoint.y+n.offsetAsPoint.y,0,t.height));D.setLocationAtPoint(I,B);let V=(n.offset&&n.offsetAsPoint.mag())>0?D.center:I,q=w?+n.zoom:s+Jt(c.lat,V.lat),N=s+Jt(c.lat,0),G=q+Jt(V.lat,0),X=h.bJ(c.lng,V.lng),$=h.bJ(c.lat,V.lat),U=h.ao(G-N);return M=q!==s,{easeFunc:H=>{if(h.bn(y,x)||Tc({startEulerAngles:y,endEulerAngles:x,tr:t,k:H,useSlerp:y.roll!=x.roll}),S&&t.interpolatePadding(f,n.padding,H),n.around)h.w(\"Easing around a point is not supported under globe projection.\"),t.setLocationAtPoint(n.around,n.aroundPoint);else{let Z=G>N?Math.min(2,U):Math.max(.5,U),te=Math.pow(Z,1-H),se=Cc(c,X,$,H*te);t.setCenter(se.wrap())}if(M){let Z=h.H.number(N,G,H)+Jt(0,t.center.lat);t.setZoom(Z)}},isZooming:M,elevationCenter:V}}handleFlyTo(t,n){let s=n.zoom!==void 0,c=t.center,f=t.zoom,y=t.padding,x=!t.isPaddingEqual(n.padding),w=t.applyConstrain(h.W.convert(n.center||n.locationAtOffset),f).center,S=s?+n.zoom:t.zoom+Jt(t.center.lat,w.lat),M=t.clone();M.setCenter(w),M.setZoom(S),M.setBearing(n.bearing);let E=new h.P(h.al(t.centerPoint.x+n.offsetAsPoint.x,0,t.width),h.al(t.centerPoint.y+n.offsetAsPoint.y,0,t.height));M.setLocationAtPoint(w,E);let I=M.center;Kr(t,I);let D=(function($,U,H){let Z=ii(U),te=ii(H),se=h.b3(Z,te),ce=Math.acos(se),_e=Pc($);return ce/(2*Math.PI)*_e})(t,c,I),B=f+Jt(c.lat,0),V=S+Jt(I.lat,0),q=h.ao(V-B),N;if(typeof n.minZoom==\"number\"){let $=+n.minZoom+Jt(I.lat,0),U=Math.min($,B,V)+Jt(0,I.lat),H=t.applyConstrain(I,U).zoom+Jt(I.lat,0);N=h.ao(H-B)}let G=h.bJ(c.lng,I.lng),X=h.bJ(c.lat,I.lat);return{easeFunc:($,U,H,Z)=>{let te=Cc(c,G,X,H);x&&t.interpolatePadding(y,n.padding,$);let se=$===1?I:te;t.setCenter(se.wrap());let ce=B+h.ar(U);t.setZoom($===1?S:ce+Jt(0,se.lat))},scaleOfZoom:q,targetCenter:I,scaleOfMinZoom:N,pixelPathLength:D}}static solveVectorScale(t,n,s,c,f){let y=c===\"x\"?[s[0],s[4],s[8],s[12]]:[s[1],s[5],s[9],s[13]],x=[s[3],s[7],s[11],s[15]],w=t[0]*y[0]+t[1]*y[1]+t[2]*y[2],S=t[0]*x[0]+t[1]*x[1]+t[2]*x[2],M=n[0]*y[0]+n[1]*y[1]+n[2]*y[2],E=n[0]*x[0]+n[1]*x[1]+n[2]*x[2];return M+f*S===w+f*E||x[3]*(w-M)+y[3]*(E-S)+w*E==M*S?null:(M+y[3]-f*E-f*x[3])/(M-w-f*E+f*S)}static getLesserNonNegativeNonNull(t,n){return n!==null&&n>=0&&nh.C(d,t?.filter((n=>n.identifier!==\"source.canvas\"))),nl=h.bN();class Tn extends h.E{constructor(t,n={}){var s,c;super(),this._rtlPluginLoaded=()=>{for(let y in this.tileManagers){let x=this.tileManagers[y].getSource().type;x!==\"vector\"&&x!==\"geojson\"||this.tileManagers[y].reload()}},this.map=t,this.dispatcher=new un(ur(),t._getMapId()),this.dispatcher.registerMessageHandler(\"GG\",((y,x)=>this.getGlyphs(y,x))),this.dispatcher.registerMessageHandler(\"GI\",((y,x)=>this.getImages(y,x))),this.dispatcher.registerMessageHandler(\"GDA\",((y,x)=>this.getDashes(y,x))),this.imageManager=new Fi,this.imageManager.setEventedParent(this);let f=((s=t._container)===null||s===void 0?void 0:s.lang)||typeof document<\"u\"&&((c=document.documentElement)===null||c===void 0?void 0:c.lang)||void 0;this.glyphManager=new Me(t._requestManager,n.localIdeographFontFamily,f),this.lineAtlas=new qe(256,512),this.crossTileSymbolIndex=new Vi,this._setInitialValues(),this._resetUpdates(),this.dispatcher.broadcast(\"SR\",h.bO()),Wr().on(Po,this._rtlPluginLoaded),this.on(\"data\",(y=>{if(y.dataType!==\"source\"||y.sourceDataType!==\"metadata\")return;let x=this.tileManagers[y.sourceId];if(!x)return;let w=x.getSource();if(w?.vectorLayerIds)for(let S in this._layers){let M=this._layers[S];M.source===w.id&&this._validateLayer(M)}}))}_setInitialValues(){var t;this._spritesImagesIds={},this._layers={},this._order=[],this.tileManagers={},this.zoomHistory=new h.bP,this._availableImages=[],this._globalState={},this._serializedLayers={},this.stylesheet=null,this.light=null,this.sky=null,this.projection&&(this.projection.destroy(),delete this.projection),this._loaded=!1,this._changed=!1,this._updatedLayers={},this._updatedSources={},this._changedImages={},this._glyphsDidChange=!1,this._updatedPaintProps={},this._layerOrderChanged=!1,this.crossTileSymbolIndex=new(((t=this.crossTileSymbolIndex)===null||t===void 0?void 0:t.constructor)||Object),this.pauseablePlacement=void 0,this.placement=void 0,this.z=0}setGlobalStateProperty(t,n){var s,c,f;this._checkLoaded();let y=n===null?(f=(c=(s=this.stylesheet.state)===null||s===void 0?void 0:s[t])===null||c===void 0?void 0:c.default)!==null&&f!==void 0?f:null:n;if(h.bQ(y,this._globalState[t]))return this;this._globalState[t]=y,this._applyGlobalStateChanges([t])}getGlobalState(){return this._globalState}setGlobalState(t){this._checkLoaded();let n=[];for(let s in t)!h.bQ(this._globalState[s],t[s].default)&&(n.push(s),this._globalState[s]=t[s].default);this._applyGlobalStateChanges(n)}_applyGlobalStateChanges(t){if(t.length===0)return;let n=new Set,s={};for(let c of t){s[c]=this._globalState[c];for(let f in this._layers){let y=this._layers[f],x=y.getLayoutAffectingGlobalStateRefs(),w=y.getPaintAffectingGlobalStateRefs(),S=y.getVisibilityAffectingGlobalStateRefs();if(x.has(c)&&n.add(y.source),w.has(c))for(let{name:M,value:E}of w.get(c))this._updatePaintProperty(y,M,E);S?.has(c)&&(y.recalculateVisibility(),this._updateLayer(y))}}this.dispatcher.broadcast(\"UGS\",s);for(let c in this.tileManagers)n.has(c)&&(this._reloadSource(c),this._changed=!0)}loadURL(t){return h._(this,arguments,void 0,(function*(n,s={},c){this.fire(new h.n(\"dataloading\",{dataType:\"style\"})),s.validate=typeof s.validate!=\"boolean\"||s.validate,this._loadStyleRequest=new AbortController;let f=this._loadStyleRequest;try{let y=yield this.map._requestManager.transformRequest(n,\"Style\");h.bR(f.signal);let x=yield h.k(y,f);this._loadStyleRequest===f&&(this._loadStyleRequest=null),this._load(x.data,s,c)}catch(y){this._loadStyleRequest===f&&(this._loadStyleRequest=null),y&&!f.signal.aborted&&this.fire(new h.l(h.d(y)))}}))}loadJSON(t,n={},s){this.fire(new h.n(\"dataloading\",{dataType:\"style\"})),this._frameRequest=new AbortController,Ge.frameAsync(this._frameRequest,this.map._ownerWindow).then((()=>{this._frameRequest=null,n.validate=n.validate!==!1,this._load(t,n,s)})).catch((()=>{}))}loadEmpty(){this.fire(new h.n(\"dataloading\",{dataType:\"style\"})),this._load(nl,{validate:!1})}_load(t,n,s){var c,f;let y=n.transformStyle?n.transformStyle(s,t):t;if(!n.validate||!ka(this,h.F(y))){y=Object.assign({},y),this._loaded=!0,this.stylesheet=y;for(let x in y.sources)this.addSource(x,y.sources[x],{validate:!1});y.sprite?this._loadSprite(y.sprite):this.imageManager.setLoaded(!0),this.glyphManager.setURL(y.glyphs),this._createLayers(),this.light=new $e(this.stylesheet.light),this._setProjectionInternal(((c=this.stylesheet.projection)===null||c===void 0?void 0:c.type)||\"mercator\"),this.sky=new ot(this.stylesheet.sky),this.map.setTerrain((f=this.stylesheet.terrain)!==null&&f!==void 0?f:null),this.fire(new h.n(\"data\",{dataType:\"style\"})),this.fire(new h.n(\"style.load\"))}}_createLayers(){var t,n,s;let c=h.bS(this.stylesheet.layers);this.setGlobalState((t=this.stylesheet.state)!==null&&t!==void 0?t:null),this.dispatcher.broadcast(\"SL\",c),this._order=c.map((f=>f.id)),this._layers={},this._serializedLayers=null;for(let f of c){let y=h.bT(f,this._globalState);if(y.setEventedParent(this,{layer:{id:f.id}}),this._layers[f.id]=y,h.bU(y)&&this.tileManagers[y.source]){let x=(s=(n=f.paint)===null||n===void 0?void 0:n[\"raster-fade-duration\"])!==null&&s!==void 0?s:y.paint.get(\"raster-fade-duration\");this.tileManagers[y.source].setRasterFadeDuration(x)}}}_loadSprite(t,n=!1,s=void 0){this.imageManager.setLoaded(!1);let c=new AbortController,f;this._spriteRequest=c,(function(y,x,w,S){return h._(this,void 0,void 0,(function*(){let M=ei(y),E=w>1?\"@2x\":\"\",I={},D={};for(let{id:B,url:V}of M){let q=yield x.transformRequest(Qi(V,E,\".json\"),\"SpriteJSON\");I[B]=h.k(q,S);let N=yield x.transformRequest(Qi(V,E,\".png\"),\"SpriteImage\");D[B]=st.getImage(N,S)}return yield Promise.all([...Object.values(I),...Object.values(D)]),(function(B,V){return h._(this,void 0,void 0,(function*(){let q={};for(let N in B){q[N]={};let G=Ge.getImageCanvasContext((yield V[N]).data),X=(yield B[N]).data;for(let $ in X){let{width:U,height:H,x:Z,y:te,sdf:se,pixelRatio:ce,stretchX:_e,stretchY:ge,content:Re,textFitWidth:Ce,textFitHeight:me}=X[$];q[N][$]={data:null,pixelRatio:ce,sdf:se,stretchX:_e,stretchY:ge,content:Re,textFitWidth:Ce,textFitHeight:me,spriteData:{width:U,height:H,x:Z,y:te,context:G}}}}return q}))})(I,D)}))})(t,this.map._requestManager,this.map.getPixelRatio(),this._spriteRequest).then((y=>{if(this._spriteRequest=null,y)for(let x in y){this._spritesImagesIds[x]=[];let w=this._spritesImagesIds[x]?this._spritesImagesIds[x].filter((S=>!(S in y))):[];for(let S of w)this.imageManager.removeImage(S),this._changedImages[S]=!0;for(let S in y[x]){let M=x===\"default\"?S:`${x}:${S}`;this._spritesImagesIds[x].push(M),M in this.imageManager.images?this.imageManager.updateImage(M,y[x][S],!1):this.imageManager.addImage(M,y[x][S]),n&&(this._changedImages[M]=!0)}}})).catch((y=>{this._spriteRequest=null,f=y,c.signal.aborted||this.fire(new h.l(f))})).finally((()=>{this.imageManager.setLoaded(!0),this._availableImages=this.imageManager.listImages(),n&&(this._changed=!0),this.dispatcher.broadcast(\"SI\",this._availableImages),this.fire(new h.n(\"data\",{dataType:\"style\"})),s&&s(f)}))}_unloadSprite(){for(let t of Object.values(this._spritesImagesIds).flat())this.imageManager.removeImage(t),this._changedImages[t]=!0;this._spritesImagesIds={},this._availableImages=this.imageManager.listImages(),this._changed=!0,this.dispatcher.broadcast(\"SI\",this._availableImages),this.fire(new h.n(\"data\",{dataType:\"style\"}))}_validateLayer(t){let n=this.tileManagers[t.source];if(!n)return;let s=t.sourceLayer;if(!s)return;let c=n.getSource();(c.type===\"geojson\"||c.vectorLayerIds&&!c.vectorLayerIds.includes(s))&&this.fire(new h.l(new Error(`Source layer \"${s}\" does not exist on source \"${c.id}\" as specified by style layer \"${t.id}\".`)))}loaded(){if(!this._loaded||Object.keys(this._updatedSources).length)return!1;for(let t in this.tileManagers)if(!this.tileManagers[t].loaded())return!1;return this.imageManager.isLoaded()}_serializeByIds(t,n=!1){let s=this._serializedAllLayers();if(!t||t.length===0)return Object.values(n?h.bV(s):s);let c=[];for(let f of t)if(s[f]){let y=n?h.bV(s[f]):s[f];c.push(y)}return c}_serializedAllLayers(){let t=this._serializedLayers;if(t)return t;t=this._serializedLayers={};let n=Object.keys(this._layers);for(let s of n){let c=this._layers[s];c.type!==\"custom\"&&(t[s]=c.serialize())}return t}hasTransitions(){var t,n,s;if(!((t=this.light)===null||t===void 0)&&t.hasTransition()||!((n=this.sky)===null||n===void 0)&&n.hasTransition()||!((s=this.projection)===null||s===void 0)&&s.hasTransition())return!0;for(let c in this.tileManagers)if(this.tileManagers[c].hasTransition())return!0;for(let c in this._layers)if(this._layers[c].hasTransition())return!0;return!1}_checkLoaded(){if(!this._loaded)throw new Error(\"Style is not done loading.\")}update(t){if(!this._loaded)return;let n=this._changed;if(n){let c=Object.keys(this._updatedLayers),f=Object.keys(this._removedLayers);(c.length||f.length)&&this._updateWorkerLayers(c,f);for(let y in this._updatedSources){let x=this._updatedSources[y];if(x===\"reload\")this._reloadSource(y);else{if(x!==\"clear\")throw new Error(`Invalid action ${x}`);this._clearSource(y)}}this._updateTilesForChangedImages(),this._updateTilesForChangedGlyphs();for(let y in this._updatedPaintProps)this._layers[y].updateTransitions(t);this.light.updateTransitions(t),this.sky.updateTransitions(t),this._resetUpdates()}let s={};for(let c in this.tileManagers){let f=this.tileManagers[c];s[c]=f.used,f.used=!1}for(let c of this._order){let f=this._layers[c];f.recalculate(t,this._availableImages),!f.isHidden(t.zoom)&&f.source&&(this.tileManagers[f.source].used=!0)}for(let c in s){let f=this.tileManagers[c];!!s[c]!=!!f.used&&f.fire(new h.n(\"data\",{sourceDataType:\"visibility\",dataType:\"source\",sourceId:c}))}this.light.recalculate(t),this.sky.recalculate(t),this.projection.recalculate(t),this.z=t.zoom,n&&this.fire(new h.n(\"data\",{dataType:\"style\"}))}_updateTilesForChangedImages(){let t=Object.keys(this._changedImages);if(t.length){for(let n in this.tileManagers)this.tileManagers[n].reloadTilesForDependencies([\"icons\",\"patterns\"],t);this._changedImages={}}}_updateTilesForChangedGlyphs(){if(this._glyphsDidChange){for(let t in this.tileManagers)this.tileManagers[t].reloadTilesForDependencies([\"glyphs\"],[\"\"]);this._glyphsDidChange=!1}}_updateWorkerLayers(t,n){this.dispatcher.broadcast(\"UL\",{layers:this._serializeByIds(t,!1),removedIds:n})}_resetUpdates(){this._changed=!1,this._updatedLayers={},this._removedLayers={},this._updatedSources={},this._updatedPaintProps={},this._changedImages={},this._glyphsDidChange=!1}setState(t,n={}){var s;this._checkLoaded();let c=this.serialize();if(t=n.transformStyle?n.transformStyle(c,t):t,((s=n.validate)===null||s===void 0||s)&&ka(this,h.F(t)))return!1;(t=h.bV(t)).layers=h.bS(t.layers);let f=h.bW(c,t),y=this._getOperationsToPerform(f);if(y.unimplemented.length>0)throw new Error(`Unimplemented: ${y.unimplemented.join(\", \")}.`);if(y.operations.length===0)return!1;for(let x of y.operations)x();return this.stylesheet=t,this._serializedLayers=null,this.fire(new h.n(\"style.load\",{style:this})),!0}_getOperationsToPerform(t){let n=[],s=[];for(let c of t)switch(c.command){case\"setCenter\":case\"setZoom\":case\"setBearing\":case\"setPitch\":case\"setRoll\":continue;case\"addLayer\":n.push((()=>this.addLayer.apply(this,c.args)));break;case\"removeLayer\":n.push((()=>this.removeLayer.apply(this,c.args)));break;case\"setPaintProperty\":n.push((()=>this.setPaintProperty.apply(this,c.args)));break;case\"setLayoutProperty\":n.push((()=>this.setLayoutProperty.apply(this,c.args)));break;case\"setFilter\":n.push((()=>this.setFilter.apply(this,c.args)));break;case\"addSource\":n.push((()=>this.addSource.apply(this,c.args)));break;case\"removeSource\":n.push((()=>this.removeSource.apply(this,c.args)));break;case\"setLayerZoomRange\":n.push((()=>this.setLayerZoomRange.apply(this,c.args)));break;case\"setLight\":n.push((()=>this.setLight.apply(this,c.args)));break;case\"setGeoJSONSourceData\":n.push((()=>this.setGeoJSONSourceData.apply(this,c.args)));break;case\"setGlyphs\":n.push((()=>this.setGlyphs.apply(this,c.args)));break;case\"setSprite\":n.push((()=>this.setSprite.apply(this,c.args)));break;case\"setTerrain\":n.push((()=>this.map.setTerrain.apply(this,c.args)));break;case\"setSky\":n.push((()=>this.setSky.apply(this,c.args)));break;case\"setProjection\":this.setProjection.apply(this,c.args);break;case\"setGlobalState\":n.push((()=>this.setGlobalState.apply(this,c.args)));break;case\"setTransition\":n.push((()=>{}));break;default:s.push(c.command)}return{operations:n,unimplemented:s}}addImage(t,n){if(this.getImage(t))return this.fire(new h.l(new Error(`An image named \"${t}\" already exists.`)));this.imageManager.addImage(t,n),this._afterImageUpdated(t)}updateImage(t,n){this.imageManager.updateImage(t,n)}getImage(t){return this.imageManager.getImage(t)}removeImage(t){if(!this.getImage(t))return this.fire(new h.l(new Error(`An image named \"${t}\" does not exist.`)));this.imageManager.removeImage(t),this._afterImageUpdated(t)}_afterImageUpdated(t){this._availableImages=this.imageManager.listImages(),this._changedImages[t]=!0,this._changed=!0,this.dispatcher.broadcast(\"SI\",this._availableImages),this.fire(new h.n(\"data\",{dataType:\"style\"}))}listImages(){return this._checkLoaded(),this.imageManager.listImages()}addSource(t,n,s={}){var c;if(this._checkLoaded(),this.tileManagers[t]!==void 0)throw new Error(`Source \"${t}\" already exists.`);if(!n.type)throw new Error(`The type property must be defined, but only the following properties were given: ${Object.keys(n).join(\", \")}.`);if([\"vector\",\"raster\",\"geojson\",\"video\",\"image\"].includes(n.type)&&this._validate(h.F.source,`sources.${t}`,n,null,s))return;!((c=this.map)===null||c===void 0)&&c._collectResourceTiming&&(n.collectResourceTiming=!0);let f=this.tileManagers[t]=new ui(t,n,this.dispatcher);f.style=this,f.setEventedParent(this,(()=>({isSourceLoaded:f.loaded(),source:f.serialize(),sourceId:t}))),f.onAdd(this.map),this._changed=!0}removeSource(t){if(this._checkLoaded(),this.tileManagers[t]===void 0)throw new Error(`There is no source with this ID=${t}`);for(let s in this._layers)if(this._layers[s].source===t)return this.fire(new h.l(new Error(`Source \"${t}\" cannot be removed while layer \"${s}\" is using it.`)));let n=this.tileManagers[t];delete this.tileManagers[t],delete this._updatedSources[t],n.fire(new h.n(\"data\",{sourceDataType:\"metadata\",dataType:\"source\",sourceId:t})),n.setEventedParent(null),n.onRemove(this.map),this._changed=!0}setGeoJSONSourceData(t,n){if(this._checkLoaded(),this.tileManagers[t]===void 0)throw new Error(`There is no source with this ID=${t}`);let s=this.tileManagers[t].getSource();if(s.type!==\"geojson\")throw new Error(`geojsonSource.type is ${s.type}, which is !== 'geojson`);s.setData(n),this._changed=!0}getSource(t){var n;return(n=this.tileManagers[t])===null||n===void 0?void 0:n.getSource()}addLayer(t,n,s={}){this._checkLoaded();let c=t.id;if(this.getLayer(c))return void this.fire(new h.l(new Error(`Layer \"${c}\" already exists on this map.`)));let f;if(t.type===\"custom\"){if(ka(this,h.bX(t)))return;f=h.bT(t,this._globalState)}else{if(\"source\"in t&&typeof t.source==\"object\"&&(this.addSource(c,t.source),t=h.bV(t),t=h.e(t,{source:c})),this._validate(h.F.layer,`layers.${c}`,t,{arrayIndex:-1},s))return;f=h.bT(t,this._globalState),this._validateLayer(f),f.setEventedParent(this,{layer:{id:c}})}let y=n?this._order.indexOf(n):this._order.length;if(n&&y===-1)this.fire(new h.l(new Error(`Cannot add layer \"${c}\" before non-existing layer \"${n}\".`)));else{if(this._order.splice(y,0,c),this._layerOrderChanged=!0,this._layers[c]=f,this._removedLayers[c]&&f.source&&f.type!==\"custom\"){let x=this._removedLayers[c];delete this._removedLayers[c],x.type!==f.type?this._updatedSources[f.source]=\"clear\":(this._updatedSources[f.source]=\"reload\",this.tileManagers[f.source].pause())}this._updateLayer(f),f.onAdd&&f.onAdd(this.map)}}moveLayer(t,n){if(this._checkLoaded(),this._changed=!0,!this._layers[t])return void this.fire(new h.l(new Error(`The layer '${t}' does not exist in the map's style and cannot be moved.`)));if(t===n)return;let s=this._order.indexOf(t);this._order.splice(s,1);let c=n?this._order.indexOf(n):this._order.length;n&&c===-1?this.fire(new h.l(new Error(`Cannot move layer \"${t}\" before non-existing layer \"${n}\".`))):(this._order.splice(c,0,t),this._layerOrderChanged=!0)}removeLayer(t){this._checkLoaded();let n=this._layers[t];if(!n)return void this.fire(new h.l(new Error(`Cannot remove non-existing layer \"${t}\".`)));n.setEventedParent(null);let s=this._order.indexOf(t);this._order.splice(s,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[t]=n,delete this._layers[t],this._serializedLayers&&delete this._serializedLayers[t],delete this._updatedLayers[t],delete this._updatedPaintProps[t],n.onRemove&&n.onRemove(this.map)}getLayer(t){return this._layers[t]}getLayersOrder(){return[...this._order]}hasLayer(t){return t in this._layers}setLayerZoomRange(t,n,s){this._checkLoaded();let c=this.getLayer(t);c?c.minzoom===n&&c.maxzoom===s||(n!=null&&(c.minzoom=n),s!=null&&(c.maxzoom=s),this._updateLayer(c)):this.fire(new h.l(new Error(`Cannot set the zoom range of non-existing layer \"${t}\".`)))}setFilter(t,n,s={}){this._checkLoaded();let c=this.getLayer(t);if(c){if(!h.bQ(c.filter,n))return n==null?(c.setFilter(void 0),void this._updateLayer(c)):void(this._validate(h.F.filter,`layers.${c.id}.filter`,n,null,s)||(c.setFilter(h.bV(n)),this._updateLayer(c)))}else this.fire(new h.l(new Error(`Cannot filter non-existing layer \"${t}\".`)))}getFilter(t){return h.bV(this.getLayer(t).filter)}setLayoutProperty(t,n,s,c={}){this._checkLoaded();let f=this.getLayer(t);f?h.bQ(f.getLayoutProperty(n),s)||(f.setLayoutProperty(n,s,c),this._updateLayer(f)):this.fire(new h.l(new Error(`Cannot style non-existing layer \"${t}\".`)))}getLayoutProperty(t,n){let s=this.getLayer(t);if(s)return s.getLayoutProperty(n);this.fire(new h.l(new Error(`Cannot get style of non-existing layer \"${t}\".`)))}setPaintProperty(t,n,s,c={}){this._checkLoaded();let f=this.getLayer(t);f?h.bQ(f.getPaintProperty(n),s)||this._updatePaintProperty(f,n,s,c):this.fire(new h.l(new Error(`Cannot style non-existing layer \"${t}\".`)))}_updatePaintProperty(t,n,s,c={}){t.setPaintProperty(n,s,c)&&this._updateLayer(t),h.bU(t)&&n===\"raster-fade-duration\"&&this.tileManagers[t.source].setRasterFadeDuration(s),this._changed=!0,this._updatedPaintProps[t.id]=!0,this._serializedLayers=null}getPaintProperty(t,n){return this.getLayer(t).getPaintProperty(n)}setFeatureState(t,n){this._checkLoaded();let s=t.source,c=t.sourceLayer,f=this.tileManagers[s];if(f===void 0)return void this.fire(new h.l(new Error(`The source '${s}' does not exist in the map's style.`)));let y=f.getSource().type;y===\"geojson\"&&c?this.fire(new h.l(new Error(\"GeoJSON sources cannot have a sourceLayer parameter.\"))):y!==\"vector\"||c?(t.id===void 0&&this.fire(new h.l(new Error(\"The feature id parameter must be provided.\"))),f.setFeatureState(c,t.id,n)):this.fire(new h.l(new Error(\"The sourceLayer parameter must be provided for vector source types.\")))}removeFeatureState(t,n){this._checkLoaded();let s=t.source,c=this.tileManagers[s];if(c===void 0)return void this.fire(new h.l(new Error(`The source '${s}' does not exist in the map's style.`)));let f=c.getSource().type,y=f===\"vector\"?t.sourceLayer:void 0;f!==\"vector\"||y?n&&typeof t.id!=\"string\"&&typeof t.id!=\"number\"?this.fire(new h.l(new Error(\"A feature id is required to remove its specific state property.\"))):c.removeFeatureState(y,t.id,n):this.fire(new h.l(new Error(\"The sourceLayer parameter must be provided for vector source types.\")))}getFeatureState(t){this._checkLoaded();let n=t.source,s=t.sourceLayer,c=this.tileManagers[n];if(c!==void 0)return c.getSource().type!==\"vector\"||s?(t.id===void 0&&this.fire(new h.l(new Error(\"The feature id parameter must be provided.\"))),c.getFeatureState(s,t.id)):void this.fire(new h.l(new Error(\"The sourceLayer parameter must be provided for vector source types.\")));this.fire(new h.l(new Error(`The source '${n}' does not exist in the map's style.`)))}getTransition(){var t;return h.e({duration:300,delay:0},(t=this.stylesheet)===null||t===void 0?void 0:t.transition)}serialize(){if(!this._loaded)return;let t=h.bY(this.tileManagers,(f=>f.serialize())),n=this._serializeByIds(this._order,!0),s=this.map.getTerrain()||void 0,c=this.stylesheet;return h.bZ({version:c.version,name:c.name,metadata:c.metadata,light:c.light,sky:c.sky,center:c.center,zoom:c.zoom,bearing:c.bearing,pitch:c.pitch,sprite:c.sprite,glyphs:c.glyphs,transition:c.transition,projection:c.projection,sources:t,layers:n,terrain:s},(f=>f!==void 0))}_updateLayer(t){this._updatedLayers[t.id]=!0,t.source&&!this._updatedSources[t.source]&&this.tileManagers[t.source].getSource().type!==\"raster\"&&(this._updatedSources[t.source]=\"reload\",this.tileManagers[t.source].pause()),this._serializedLayers=null,this._changed=!0}_flattenAndSortRenderedFeatures(t){let n=y=>this._layers[y].type===\"fill-extrusion\",s={},c=[];for(let y=this._order.length-1;y>=0;y--){let x=this._order[y];if(n(x)){s[x]=y;for(let w of t){let S=w[x];if(S)for(let M of S)c.push(M)}}}c.sort(((y,x)=>x.intersectionZ-y.intersectionZ));let f=[];for(let y=this._order.length-1;y>=0;y--){let x=this._order[y];if(n(x))for(let w=c.length-1;w>=0;w--){let S=c[w].feature;if(s[S.layer.id]this.map.terrain.getElevation(M,E,I):void 0));return this.placement&&f.push((function(S,M,E,I,D,B,V){let q={},N=B.queryRenderedSymbols(I),G=[];for(let X of Object.keys(N).map(Number))G.push(V[X]);G.sort(fe);for(let X of G){let $=X.featureIndex.lookupSymbolFeatures(N[X.bucketInstanceId],M,X.bucketIndex,X.sourceLayerIndex,{filterSpec:D.filter,globalState:D.globalState},D.layers,D.availableImages,S);for(let U in $){q[U]||(q[U]=[]);let H=$[U];H.sort(((Z,te)=>{let se=X.featureSortOrder;if(se){let ce=se.indexOf(Z.featureIndex);return se.indexOf(te.featureIndex)-ce}return te.featureIndex-Z.featureIndex}));for(let Z of H)q[U].push(Z)}}return(function(X,$,U){for(let H in X)for(let Z of X[H])ke(Z,U[$[H].source]);return X})(q,S,E)})(this._layers,y,this.tileManagers,t,w,this.placement.collisionIndex,this.placement.retainedQueryData)),this._flattenAndSortRenderedFeatures(f)}querySourceFeatures(t,n){n?.filter&&this._validate(h.F.filter,\"querySourceFeatures.filter\",n.filter,null,n);let s=this.tileManagers[t];return s?(function(c,f){let y=c.getRenderableIds().map((S=>c.getTileByID(S))),x=[],w={};for(let S of y){let M=S.tileID.canonical.key;w[M]||(w[M]=!0,S.querySourceFeatures(x,f))}return x})(s,n?Object.assign(Object.assign({},n),{globalState:this._globalState}):{globalState:this._globalState}):[]}getLight(){return this.light.getLight()}setLight(t,n={}){this._checkLoaded();let s=this.light.getLight(),c=!1;for(let y in t)if(!h.bQ(t[y],s[y])){c=!0;break}if(!c)return;let f={now:Fe(),transition:h.e({duration:300,delay:0},this.stylesheet.transition)};this.light.setLight(t,n),this.light.updateTransitions(f)}getProjection(){var t;return(t=this.stylesheet)===null||t===void 0?void 0:t.projection}setProjection(t){this._checkLoaded();let n=t??{type:\"mercator\"};if(this.stylesheet.projection=t,this.projection){if(this.projection.name===n.type)return;this.projection.destroy(),delete this.projection}this._setProjectionInternal(n.type)}getSky(){var t;return(t=this.stylesheet)===null||t===void 0?void 0:t.sky}setSky(t,n={}){this._checkLoaded();let s=this.getSky(),c=!1;if(!t&&!s)return;if(t&&!s)c=!0;else if(!t&&s)c=!0;else for(let y in t)if(!h.bQ(t[y],s[y])){c=!0;break}if(!c)return;let f={now:Fe(),transition:h.e({duration:300,delay:0},this.stylesheet.transition)};this.stylesheet.sky=t,this.sky.setSky(t,n),this.sky.updateTransitions(f)}_setProjectionInternal(t){let n=(function(s,c){let f={constrainOverride:c};if(Array.isArray(s)){let y=new Mc({type:s});return{projection:y,transform:new to(f),cameraHelper:new mr(y)}}switch(s){case\"mercator\":return{projection:new Ei,transform:new yn(f),cameraHelper:new vn};case\"globe\":{let y=new Mc({type:[\"interpolate\",[\"linear\"],[\"zoom\"],11,\"vertical-perspective\",12,\"mercator\"]});return{projection:y,transform:new to(f),cameraHelper:new mr(y)}}case\"vertical-perspective\":return{projection:new Ia,transform:new wn(f),cameraHelper:new Wi};default:return h.w(`Unknown projection name: ${s}. Falling back to mercator projection.`),{projection:new Ei,transform:new yn(f),cameraHelper:new vn}}})(t,this.map.transformConstrain);this.projection=n.projection,this.map.migrateProjection(n.transform,n.cameraHelper);for(let s in this.tileManagers)this.tileManagers[s].reload()}_validate(t,n,s,c,f={}){return f?.validate!==!1&&ka(this,t.call(h.F,h.e({key:n,style:this.serialize(),value:s,styleSpec:h.x},c)))}_remove(t=!0){this._frameRequest&&(this._frameRequest.abort(),this._frameRequest=null),this._loadStyleRequest&&(this._loadStyleRequest.abort(),this._loadStyleRequest=null),this._spriteRequest&&(this._spriteRequest.abort(),this._spriteRequest=null),Wr().off(Po,this._rtlPluginLoaded);for(let n in this._layers)this._layers[n].setEventedParent(null);for(let n in this.tileManagers){let s=this.tileManagers[n];s.setEventedParent(null),s.onRemove(this.map)}this.imageManager.setEventedParent(null),this.setEventedParent(null),t&&this.dispatcher.broadcast(\"RM\",void 0),this.dispatcher.remove(t)}_clearSource(t){this.tileManagers[t].clearTiles()}_reloadSource(t){this.tileManagers[t].resume(),this.tileManagers[t].reload()}_updateSources(t){for(let n in this.tileManagers)this.tileManagers[n].update(t,this.map.terrain)}_generateCollisionBoxes(){for(let t in this.tileManagers)this._reloadSource(t)}_updatePlacement(t,n,s,c,f=!1){let y=!1,x=!1,w={};for(let S of this._order){let M=this._layers[S];if(M.type!==\"symbol\")continue;if(!w[M.source]){let I=this.tileManagers[M.source];w[M.source]=I.getRenderableIds(!0).map((D=>I.getTileByID(D))).sort(((D,B)=>B.tileID.overscaledZ-D.tileID.overscaledZ||(D.tileID.isLessThan(B.tileID)?-1:1)))}let E=this.crossTileSymbolIndex.addLayer(M,w[M.source],t.center.lng);y||(y=E)}if(this.crossTileSymbolIndex.pruneUnusedLayers(this._order),f||(f=this._layerOrderChanged||s===0),(f||!this.pauseablePlacement||this.pauseablePlacement.isDone()&&!this.placement.stillRecent(Fe(),t.zoom))&&(this.pauseablePlacement=new Hn(t,this.map.terrain,this._order,f,n,s,c,this.placement),this._layerOrderChanged=!1),this.pauseablePlacement.isDone()?this.placement.setStale():(this.pauseablePlacement.continuePlacement(this._order,this._layers,w),this.pauseablePlacement.isDone()&&(this.placement=this.pauseablePlacement.commit(Fe()),x=!0),y&&this.pauseablePlacement.placement.setStale()),x||y)for(let S of this._order){let M=this._layers[S];M.type===\"symbol\"&&this.placement.updateLayerOpacities(M,w[M.source])}return!this.pauseablePlacement.isDone()||this.placement.hasTransitions(Fe())}_releaseSymbolFadeTiles(){for(let t in this.tileManagers)this.tileManagers[t].releaseSymbolFadeTiles()}getImages(t,n){return h._(this,void 0,void 0,(function*(){let s=yield this.imageManager.getImages(n.icons);this._updateTilesForChangedImages();let c=this.tileManagers[n.source];return c&&c.setDependencies(n.tileID.key,n.type,n.icons),s}))}getGlyphs(t,n){return h._(this,void 0,void 0,(function*(){let s=yield this.glyphManager.getGlyphs(n.stacks),c=this.tileManagers[n.source];return c&&c.setDependencies(n.tileID.key,n.type,[\"\"]),s}))}getGlyphsUrl(){return this.stylesheet.glyphs||null}setGlyphs(t,n={}){this._checkLoaded(),t&&this._validate(h.F.glyphs,\"glyphs\",t,null,n)||(this._glyphsDidChange=!0,this.stylesheet.glyphs=t,this.glyphManager.entries={},this.glyphManager.setURL(t))}getDashes(t,n){return h._(this,void 0,void 0,(function*(){let s={};for(let[c,f]of Object.entries(n.dashes))s[c]=this.lineAtlas.getDash(f.dasharray,f.round);return s}))}addSprite(t,n,s={},c){this._checkLoaded();let f=[{id:t,url:n}],y=[...ei(this.stylesheet.sprite),...f];this._validate(h.F.sprite,\"sprite\",y,null,s)||(this.stylesheet.sprite=y,this._loadSprite(f,!0,c))}removeSprite(t){this._checkLoaded();let n=ei(this.stylesheet.sprite);if(n.find((s=>s.id===t))){if(this._spritesImagesIds[t])for(let s of this._spritesImagesIds[t])this.imageManager.removeImage(s),this._changedImages[s]=!0;n.splice(n.findIndex((s=>s.id===t)),1),this.stylesheet.sprite=n.length>0?n:void 0,delete this._spritesImagesIds[t],this._availableImages=this.imageManager.listImages(),this._changed=!0,this.dispatcher.broadcast(\"SI\",this._availableImages),this.fire(new h.n(\"data\",{dataType:\"style\"}))}else this.fire(new h.l(new Error(`Sprite \"${t}\" doesn't exists on this map.`)))}getSprite(){return ei(this.stylesheet.sprite)}setSprite(t,n={},s){this._checkLoaded(),t&&this._validate(h.F.sprite,\"sprite\",t,null,n)||(this.stylesheet.sprite=t,t?this._loadSprite(t,!0,s):(this._unloadSprite(),s&&s(null)))}destroy(){this._frameRequest&&(this._frameRequest.abort(),this._frameRequest=null),this._loadStyleRequest&&(this._loadStyleRequest.abort(),this._loadStyleRequest=null),this._spriteRequest&&(this._spriteRequest.abort(),this._spriteRequest=null);for(let t in this.tileManagers){let n=this.tileManagers[t];n.setEventedParent(null),n.onRemove(this.map)}this.tileManagers={},this.imageManager&&(this.imageManager.setEventedParent(null),this.imageManager.destroy(),this._availableImages=[],this._spritesImagesIds={}),this.glyphManager&&this.glyphManager.destroy();for(let t in this._layers){let n=this._layers[t];n.setEventedParent(null),n.onRemove&&n.onRemove(this.map)}this._setInitialValues(),this.setEventedParent(null),this.dispatcher.unregisterMessageHandler(\"GG\"),this.dispatcher.unregisterMessageHandler(\"GI\"),this.dispatcher.unregisterMessageHandler(\"GDA\"),this.dispatcher.remove(!0),this._listeners={},this._oneTimeListeners={}}}var Oo=h.aS([{name:\"a_pos\",type:\"Int16\",components:2},{name:\"a_texture_pos\",type:\"Int16\",components:2}]);class Yu{constructor(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null}bind(t,n,s,c,f,y,x,w,S){this.context=t;let M=this.boundPaintVertexBuffers.length!==c.length;for(let E=0;!M&&E({u_texture:0,u_ele_delta:d,u_fog_matrix:t,u_fog_color:n?n.properties.get(\"fog-color\"):h.bo.white,u_fog_ground_blend:n?n.properties.get(\"fog-ground-blend\"):1,u_fog_ground_blend_opacity:c?0:n?n.calculateFogBlendOpacity(s):0,u_horizon_color:n?n.properties.get(\"horizon-color\"):h.bo.white,u_horizon_fog_blend:n?n.properties.get(\"horizon-fog-blend\"):1,u_is_globe_mode:c?1:0}),Ku={mainMatrix:\"u_projection_matrix\",tileMercatorCoords:\"u_projection_tile_mercator_coords\",clippingPlane:\"u_projection_clipping_plane\",projectionTransition:\"u_projection_transition\",fallbackMatrix:\"u_projection_fallback_matrix\"};function kr(d){let t=[];for(let n of d){if(n===null)continue;let s=n.split(\" \");t.push(s.pop())}return t}class Ju{constructor(t,n,s,c,f,y,x,w,S=[]){let M=t.gl;this.program=M.createProgram();let E=kr(n.staticAttributes),I=s?s.getBinderAttributes():[],D=E.concat(I),B=Rt.prelude.staticUniforms?kr(Rt.prelude.staticUniforms):[],V=x.staticUniforms?kr(x.staticUniforms):[],q=n.staticUniforms?kr(n.staticUniforms):[],N=s?s.getBinderUniforms():[],G=B.concat(V).concat(q).concat(N),X=[];for(let ce of G)X.includes(ce)||X.push(ce);let $=s?s.defines():[];fr(M)&&$.unshift(\"#version 300 es\"),f&&$.push(\"#define OVERDRAW_INSPECTOR;\"),y&&$.push(\"#define TERRAIN3D;\"),w&&$.push(w),S&&$.push(...S);let U=$.concat(Rt.prelude.fragmentSource,x.fragmentSource,n.fragmentSource).join(`\n`),H=$.concat(Rt.prelude.vertexSource,x.vertexSource,n.vertexSource).join(`\n`);fr(M)||(U=(function(ce){return ce.replace(/\\bin\\s/g,\"varying \").replace(\"out highp vec4 fragColor;\",\"\").replace(/fragColor/g,\"gl_FragColor\").replace(/texture\\(/g,\"texture2D(\")})(U),H=(function(ce){return ce.replace(/\\bin\\s/g,\"attribute \").replace(/\\bout\\s/g,\"varying \").replace(/texture\\(/g,\"texture2D(\")})(H));let Z=M.createShader(M.FRAGMENT_SHADER);if(M.isContextLost())return void(this.failedToCreate=!0);if(M.shaderSource(Z,U),M.compileShader(Z),!M.getShaderParameter(Z,M.COMPILE_STATUS))throw new Error(`Could not compile fragment shader: ${M.getShaderInfoLog(Z)}`);M.attachShader(this.program,Z);let te=M.createShader(M.VERTEX_SHADER);if(M.isContextLost())return void(this.failedToCreate=!0);if(M.shaderSource(te,H),M.compileShader(te),!M.getShaderParameter(te,M.COMPILE_STATUS))throw new Error(`Could not compile vertex shader: ${M.getShaderInfoLog(te)}`);M.attachShader(this.program,te),this.attributes={};let se={};this.numAttributes=D.length;for(let ce=0;ce({u_depth:new h.b_(ce,_e.u_depth),u_terrain:new h.b_(ce,_e.u_terrain),u_terrain_dim:new h.bp(ce,_e.u_terrain_dim),u_terrain_matrix:new h.c0(ce,_e.u_terrain_matrix),u_terrain_unpack:new h.c1(ce,_e.u_terrain_unpack),u_terrain_exaggeration:new h.bp(ce,_e.u_terrain_exaggeration)}))(t,se),this.projectionUniforms=((ce,_e)=>({u_projection_matrix:new h.c0(ce,_e.u_projection_matrix),u_projection_tile_mercator_coords:new h.c1(ce,_e.u_projection_tile_mercator_coords),u_projection_clipping_plane:new h.c1(ce,_e.u_projection_clipping_plane),u_projection_transition:new h.bp(ce,_e.u_projection_transition),u_projection_fallback_matrix:new h.c0(ce,_e.u_projection_fallback_matrix)}))(t,se),this.binderUniforms=s?s.getUniforms(t,se):[]}draw(t,n,s,c,f,y,x,w,S,M,E,I,D,B,V,q,N,G,X){var $;let U=t.gl;if(this.failedToCreate)return;if(t.program.set(this.program),t.setDepthMode(s),t.setStencilMode(c),t.setColorMode(f),t.setCullFace(y),w){t.activeTexture.set(U.TEXTURE2),U.bindTexture(U.TEXTURE_2D,w.depthTexture),t.activeTexture.set(U.TEXTURE3),U.bindTexture(U.TEXTURE_2D,w.texture);for(let Z in this.terrainUniforms)this.terrainUniforms[Z].set(w[Z])}if(S)for(let Z in S)this.projectionUniforms[Ku[Z]].set(S[Z]);if(x)for(let Z in this.fixedUniforms)this.fixedUniforms[Z].set(x[Z]);q&&q.setUniforms(t,this.binderUniforms,B,{zoom:V});let H=0;switch(n){case U.LINES:H=2;break;case U.TRIANGLES:H=3;break;case U.LINE_STRIP:H=1}for(let Z of D.get())Z.vaos||(Z.vaos={}),($=Z.vaos)[M]||($[M]=new Yu),Z.vaos[M].bind(t,this,E,q?q.getPaintVertexBuffers():[],I,Z.vertexOffset,N,G,X),U.drawElements(n,Z.primitiveLength*H,U.UNSIGNED_SHORT,Z.primitiveOffset*H*2)}}function ol(d,t,n){let s=1/h.aK(n,1,t.transform.tileZoom),c=Math.pow(2,n.tileID.overscaledZ),f=n.tileSize*Math.pow(2,t.transform.tileZoom)/c,y=f*(n.tileID.canonical.x+n.tileID.wrap*c),x=f*n.tileID.canonical.y;return{u_image:0,u_texsize:n.imageAtlasTexture.size,u_scale:[s,d.fromScale,d.toScale],u_fade:d.t,u_pixel_coord_upper:[y>>16,x>>16],u_pixel_coord_lower:[65535&y,65535&x]}}let Ec=(d,t,n,s)=>{let c=d.style.light,f=c.properties.get(\"position\"),y=[f.x,f.y,f.z],x=h.c4();c.properties.get(\"anchor\")===\"viewport\"&&h.c5(x,d.transform.bearingInRadians),h.c6(y,y,x);let w=d.transform.transformLightDirection(y),S=c.properties.get(\"color\");return{u_lightpos:y,u_lightpos_globe:w,u_lightintensity:c.properties.get(\"intensity\"),u_lightcolor:[S.r,S.g,S.b],u_vertical_gradient:+t,u_opacity:n,u_fill_translate:s}},Ic=(d,t,n,s,c,f,y)=>h.e(Ec(d,t,n,s),ol(f,d,y),{u_height_factor:-Math.pow(2,c.overscaledZ)/y.tileSize/8}),La=(d,t,n,s)=>h.e(ol(t,d,n),{u_fill_translate:s}),Ac=(d,t)=>({u_world:d,u_fill_translate:t}),zc=(d,t,n,s,c)=>h.e(La(d,t,n,c),{u_world:s}),Dc=(d,t,n,s,c)=>{let f=d.transform,y,x,w=0;if(n.paint.get(\"circle-pitch-alignment\")===\"map\"){let S=h.aK(t,1,f.zoom);y=!0,x=[S,S],w=S/(h.a6*Math.pow(2,t.tileID.overscaledZ))*2*Math.PI*c}else y=!1,x=f.pixelsToGLUnits;return{u_camera_to_center_distance:f.cameraToCenterDistance,u_scale_with_map:+(n.paint.get(\"circle-pitch-scale\")===\"map\"),u_pitch_with_map:+y,u_device_pixel_ratio:d.pixelRatio,u_extrude_scale:x,u_globe_extrude_scale:w,u_translate:s}},kc=d=>({u_pixel_extrude_scale:[1/d.width,1/d.height]}),Sn=d=>({u_viewport_size:[d.width,d.height]}),al=(d,t=1)=>({u_color:d,u_overlay:0,u_overlay_scale:t}),sl=(d,t,n,s)=>{let c=h.aK(d,1,t)/(h.a6*Math.pow(2,d.tileID.overscaledZ))*2*Math.PI*s;return{u_extrude_scale:h.aK(d,1,t),u_intensity:n,u_globe_extrude_scale:c}},io=(d,t,n,s)=>{let c=h.O();h.c7(c,0,d.width,d.height,0,0,1);let f=d.context.gl;return{u_matrix:c,u_world:[f.drawingBufferWidth,f.drawingBufferHeight],u_image:n,u_color_ramp:s,u_opacity:t.paint.get(\"heatmap-opacity\")}},Qu=(d,t,n)=>{let s=n.paint.get(\"hillshade-accent-color\"),c;switch(n.paint.get(\"hillshade-method\")){case\"basic\":c=4;break;case\"combined\":c=1;break;case\"igor\":c=2;break;case\"multidirectional\":c=3;break;default:c=0}let f=n.getIlluminationProperties();for(let y=0;y{let n=t.stride,s=h.O();return h.c7(s,0,h.a6,-h.a6,0,0,1),h.Q(s,s,[0,-h.a6,0]),{u_matrix:s,u_image:1,u_dimension:[n,n],u_zoom:d.overscaledZ,u_unpack:t.getUnpackVector()}};function eh(d,t){let n=Math.pow(2,t.canonical.z),s=t.canonical.y;return[new h.a7(0,s/n).toLngLat().lat,new h.a7(0,(s+1)/n).toLngLat().lat]}let th=(d,t,n=0)=>({u_image:0,u_unpack:t.getUnpackVector(),u_dimension:[t.stride,t.stride],u_elevation_stops:1,u_color_stops:4,u_color_ramp_size:n,u_opacity:d.paint.get(\"color-relief-opacity\")}),Vo=(d,t,n,s)=>{let c=d.transform;return{u_translation:wr(d,t,n),u_ratio:s/h.aK(t,1,c.zoom),u_device_pixel_ratio:d.pixelRatio,u_units_to_pixels:[1/c.pixelsToGLUnits[0],1/c.pixelsToGLUnits[1]]}},Rc=(d,t,n,s,c)=>h.e(Vo(d,t,n,s),{u_image:0,u_image_height:c}),Lc=(d,t,n,s,c)=>{let f=d.transform,y=ro(t,f);return{u_translation:wr(d,t,n),u_texsize:t.imageAtlasTexture.size,u_ratio:s/h.aK(t,1,f.zoom),u_device_pixel_ratio:d.pixelRatio,u_image:0,u_scale:[y,c.fromScale,c.toScale],u_fade:c.t,u_units_to_pixels:[1/f.pixelsToGLUnits[0],1/f.pixelsToGLUnits[1]]}},ll=(d,t,n,s,c)=>{let f=ro(t,d.transform);return h.e(Vo(d,t,n,s),{u_tileratio:f,u_crossfade_from:c.fromScale,u_crossfade_to:c.toScale,u_image:0,u_mix:c.t,u_lineatlas_width:d.lineAtlas.width,u_lineatlas_height:d.lineAtlas.height})},Fc=(d,t,n,s,c,f)=>{let y=ro(t,d.transform);return h.e(Vo(d,t,n,s),{u_image:0,u_image_height:f,u_tileratio:y,u_crossfade_from:c.fromScale,u_crossfade_to:c.toScale,u_image_dash:1,u_mix:c.t,u_lineatlas_width:d.lineAtlas.width,u_lineatlas_height:d.lineAtlas.height})};function ro(d,t){return 1/h.aK(d,1,t.tileZoom)}function wr(d,t,n){return h.aL(d.transform,t,n.paint.get(\"line-translate\"),n.paint.get(\"line-translate-anchor\"))}let cl=(d,t,n,s,c)=>{return{u_tl_parent:d,u_scale_parent:t,u_buffer_scale:1,u_fade_t:n.mix,u_opacity:n.opacity*s.paint.get(\"raster-opacity\"),u_image0:0,u_image1:1,u_brightness_low:s.paint.get(\"raster-brightness-min\"),u_brightness_high:s.paint.get(\"raster-brightness-max\"),u_saturation_factor:(y=s.paint.get(\"raster-saturation\"),y>0?1-1/(1.001-y):-y),u_contrast_factor:(f=s.paint.get(\"raster-contrast\"),f>0?1/(1-f):1+f),u_spin_weights:ul(s.paint.get(\"raster-hue-rotate\")),u_coords_top:[c[0].x,c[0].y,c[1].x,c[1].y],u_coords_bottom:[c[3].x,c[3].y,c[2].x,c[2].y]};var f,y};function ul(d){d*=Math.PI/180;let t=Math.sin(d),n=Math.cos(d);return[(2*n+1)/3,(-Math.sqrt(3)*t-n+1)/3,(Math.sqrt(3)*t-n+1)/3]}let Ba=(d,t,n,s,c,f,y,x,w,S,M,E,I)=>{let D=y.transform;return{u_is_size_zoom_constant:+(d===\"constant\"||d===\"source\"),u_is_size_feature_constant:+(d===\"constant\"||d===\"camera\"),u_size_t:t?t.uSizeT:0,u_size:t?t.uSize:0,u_camera_to_center_distance:D.cameraToCenterDistance,u_pitch:D.pitch/360*2*Math.PI,u_rotate_symbol:+n,u_aspect_ratio:D.width/D.height,u_fade_change:y.options.fadeDuration?y.symbolFadeChange:1,u_label_plane_matrix:x,u_coord_matrix:w,u_is_text:+M,u_pitch_with_map:+s,u_is_along_line:c,u_is_variable_anchor:f,u_texsize:E,u_texture:0,u_translation:S,u_pitched_scale:I}},hl=(d,t,n,s,c,f,y,x,w,S,M,E,I,D)=>{let B=y.transform;return h.e(Ba(d,t,n,s,c,f,y,x,w,S,M,E,D),{u_gamma_scale:s?Math.cos(B.pitch*Math.PI/180)*B.cameraToCenterDistance:1,u_device_pixel_ratio:y.pixelRatio,u_is_halo:I?1:0,u_is_plain:1})},dl=(d,t,n,s,c,f,y,x,w,S,M,E,I)=>h.e(hl(d,t,n,s,c,f,y,x,w,S,!0,M,!0,I),{u_texsize_icon:E,u_texture_icon:1}),Mn=(d,t)=>({u_opacity:d,u_color:t}),pl=(d,t,n,s,c)=>h.e((function(f,y,x,w){let S=x.imageManager.getPattern(f.from.toString()),M=x.imageManager.getPattern(f.to.toString()),{width:E,height:I}=x.imageManager.getPixelSize(),D=Math.pow(2,w.tileID.overscaledZ),B=w.tileSize*Math.pow(2,x.transform.tileZoom)/D,V=B*(w.tileID.canonical.x+w.tileID.wrap*D),q=B*w.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:S.tl,u_pattern_br_a:S.br,u_pattern_tl_b:M.tl,u_pattern_br_b:M.br,u_texsize:[E,I],u_mix:y.t,u_pattern_size_a:S.displaySize,u_pattern_size_b:M.displaySize,u_scale_a:y.fromScale,u_scale_b:y.toScale,u_tile_units_to_pixels:1/h.aK(w,1,x.transform.tileZoom),u_pixel_coord_upper:[V>>16,q>>16],u_pixel_coord_lower:[65535&V,65535&q]}})(n,c,t,s),{u_opacity:d}),Bc=(d,t)=>{},ih={fillExtrusion:(d,t)=>({u_lightpos:new h.c2(d,t.u_lightpos),u_lightpos_globe:new h.c2(d,t.u_lightpos_globe),u_lightintensity:new h.bp(d,t.u_lightintensity),u_lightcolor:new h.c2(d,t.u_lightcolor),u_vertical_gradient:new h.bp(d,t.u_vertical_gradient),u_opacity:new h.bp(d,t.u_opacity),u_fill_translate:new h.c3(d,t.u_fill_translate)}),fillExtrusionPattern:(d,t)=>({u_lightpos:new h.c2(d,t.u_lightpos),u_lightpos_globe:new h.c2(d,t.u_lightpos_globe),u_lightintensity:new h.bp(d,t.u_lightintensity),u_lightcolor:new h.c2(d,t.u_lightcolor),u_vertical_gradient:new h.bp(d,t.u_vertical_gradient),u_height_factor:new h.bp(d,t.u_height_factor),u_opacity:new h.bp(d,t.u_opacity),u_fill_translate:new h.c3(d,t.u_fill_translate),u_image:new h.b_(d,t.u_image),u_texsize:new h.c3(d,t.u_texsize),u_pixel_coord_upper:new h.c3(d,t.u_pixel_coord_upper),u_pixel_coord_lower:new h.c3(d,t.u_pixel_coord_lower),u_scale:new h.c2(d,t.u_scale),u_fade:new h.bp(d,t.u_fade)}),fill:(d,t)=>({u_fill_translate:new h.c3(d,t.u_fill_translate)}),fillPattern:(d,t)=>({u_image:new h.b_(d,t.u_image),u_texsize:new h.c3(d,t.u_texsize),u_pixel_coord_upper:new h.c3(d,t.u_pixel_coord_upper),u_pixel_coord_lower:new h.c3(d,t.u_pixel_coord_lower),u_scale:new h.c2(d,t.u_scale),u_fade:new h.bp(d,t.u_fade),u_fill_translate:new h.c3(d,t.u_fill_translate)}),fillOutline:(d,t)=>({u_world:new h.c3(d,t.u_world),u_fill_translate:new h.c3(d,t.u_fill_translate)}),fillOutlinePattern:(d,t)=>({u_world:new h.c3(d,t.u_world),u_image:new h.b_(d,t.u_image),u_texsize:new h.c3(d,t.u_texsize),u_pixel_coord_upper:new h.c3(d,t.u_pixel_coord_upper),u_pixel_coord_lower:new h.c3(d,t.u_pixel_coord_lower),u_scale:new h.c2(d,t.u_scale),u_fade:new h.bp(d,t.u_fade),u_fill_translate:new h.c3(d,t.u_fill_translate)}),circle:(d,t)=>({u_camera_to_center_distance:new h.bp(d,t.u_camera_to_center_distance),u_scale_with_map:new h.b_(d,t.u_scale_with_map),u_pitch_with_map:new h.b_(d,t.u_pitch_with_map),u_extrude_scale:new h.c3(d,t.u_extrude_scale),u_device_pixel_ratio:new h.bp(d,t.u_device_pixel_ratio),u_globe_extrude_scale:new h.bp(d,t.u_globe_extrude_scale),u_translate:new h.c3(d,t.u_translate)}),collisionBox:(d,t)=>({u_pixel_extrude_scale:new h.c3(d,t.u_pixel_extrude_scale)}),collisionCircle:(d,t)=>({u_viewport_size:new h.c3(d,t.u_viewport_size)}),debug:(d,t)=>({u_color:new h.b$(d,t.u_color),u_overlay:new h.b_(d,t.u_overlay),u_overlay_scale:new h.bp(d,t.u_overlay_scale)}),depth:Bc,clippingMask:Bc,heatmap:(d,t)=>({u_extrude_scale:new h.bp(d,t.u_extrude_scale),u_intensity:new h.bp(d,t.u_intensity),u_globe_extrude_scale:new h.bp(d,t.u_globe_extrude_scale)}),heatmapTexture:(d,t)=>({u_matrix:new h.c0(d,t.u_matrix),u_world:new h.c3(d,t.u_world),u_image:new h.b_(d,t.u_image),u_color_ramp:new h.b_(d,t.u_color_ramp),u_opacity:new h.bp(d,t.u_opacity)}),hillshade:(d,t)=>({u_image:new h.b_(d,t.u_image),u_latrange:new h.c3(d,t.u_latrange),u_exaggeration:new h.bp(d,t.u_exaggeration),u_altitudes:new h.c9(d,t.u_altitudes),u_azimuths:new h.c9(d,t.u_azimuths),u_accent:new h.b$(d,t.u_accent),u_method:new h.b_(d,t.u_method),u_shadows:new h.c8(d,t.u_shadows),u_highlights:new h.c8(d,t.u_highlights)}),hillshadePrepare:(d,t)=>({u_matrix:new h.c0(d,t.u_matrix),u_image:new h.b_(d,t.u_image),u_dimension:new h.c3(d,t.u_dimension),u_zoom:new h.bp(d,t.u_zoom),u_unpack:new h.c1(d,t.u_unpack)}),colorRelief:(d,t)=>({u_image:new h.b_(d,t.u_image),u_unpack:new h.c1(d,t.u_unpack),u_dimension:new h.c3(d,t.u_dimension),u_elevation_stops:new h.b_(d,t.u_elevation_stops),u_color_stops:new h.b_(d,t.u_color_stops),u_color_ramp_size:new h.b_(d,t.u_color_ramp_size),u_opacity:new h.bp(d,t.u_opacity)}),line:(d,t)=>({u_translation:new h.c3(d,t.u_translation),u_ratio:new h.bp(d,t.u_ratio),u_device_pixel_ratio:new h.bp(d,t.u_device_pixel_ratio),u_units_to_pixels:new h.c3(d,t.u_units_to_pixels)}),lineGradient:(d,t)=>({u_translation:new h.c3(d,t.u_translation),u_ratio:new h.bp(d,t.u_ratio),u_device_pixel_ratio:new h.bp(d,t.u_device_pixel_ratio),u_units_to_pixels:new h.c3(d,t.u_units_to_pixels),u_image:new h.b_(d,t.u_image),u_image_height:new h.bp(d,t.u_image_height)}),linePattern:(d,t)=>({u_translation:new h.c3(d,t.u_translation),u_texsize:new h.c3(d,t.u_texsize),u_ratio:new h.bp(d,t.u_ratio),u_device_pixel_ratio:new h.bp(d,t.u_device_pixel_ratio),u_image:new h.b_(d,t.u_image),u_units_to_pixels:new h.c3(d,t.u_units_to_pixels),u_scale:new h.c2(d,t.u_scale),u_fade:new h.bp(d,t.u_fade)}),lineSDF:(d,t)=>({u_translation:new h.c3(d,t.u_translation),u_ratio:new h.bp(d,t.u_ratio),u_device_pixel_ratio:new h.bp(d,t.u_device_pixel_ratio),u_units_to_pixels:new h.c3(d,t.u_units_to_pixels),u_image:new h.b_(d,t.u_image),u_mix:new h.bp(d,t.u_mix),u_tileratio:new h.bp(d,t.u_tileratio),u_crossfade_from:new h.bp(d,t.u_crossfade_from),u_crossfade_to:new h.bp(d,t.u_crossfade_to),u_lineatlas_width:new h.bp(d,t.u_lineatlas_width),u_lineatlas_height:new h.bp(d,t.u_lineatlas_height)}),lineGradientSDF:(d,t)=>({u_translation:new h.c3(d,t.u_translation),u_ratio:new h.bp(d,t.u_ratio),u_device_pixel_ratio:new h.bp(d,t.u_device_pixel_ratio),u_units_to_pixels:new h.c3(d,t.u_units_to_pixels),u_image:new h.b_(d,t.u_image),u_image_height:new h.bp(d,t.u_image_height),u_tileratio:new h.bp(d,t.u_tileratio),u_crossfade_from:new h.bp(d,t.u_crossfade_from),u_crossfade_to:new h.bp(d,t.u_crossfade_to),u_image_dash:new h.b_(d,t.u_image_dash),u_mix:new h.bp(d,t.u_mix),u_lineatlas_width:new h.bp(d,t.u_lineatlas_width),u_lineatlas_height:new h.bp(d,t.u_lineatlas_height)}),raster:(d,t)=>({u_tl_parent:new h.c3(d,t.u_tl_parent),u_scale_parent:new h.bp(d,t.u_scale_parent),u_buffer_scale:new h.bp(d,t.u_buffer_scale),u_fade_t:new h.bp(d,t.u_fade_t),u_opacity:new h.bp(d,t.u_opacity),u_image0:new h.b_(d,t.u_image0),u_image1:new h.b_(d,t.u_image1),u_brightness_low:new h.bp(d,t.u_brightness_low),u_brightness_high:new h.bp(d,t.u_brightness_high),u_saturation_factor:new h.bp(d,t.u_saturation_factor),u_contrast_factor:new h.bp(d,t.u_contrast_factor),u_spin_weights:new h.c2(d,t.u_spin_weights),u_coords_top:new h.c1(d,t.u_coords_top),u_coords_bottom:new h.c1(d,t.u_coords_bottom)}),symbolIcon:(d,t)=>({u_is_size_zoom_constant:new h.b_(d,t.u_is_size_zoom_constant),u_is_size_feature_constant:new h.b_(d,t.u_is_size_feature_constant),u_size_t:new h.bp(d,t.u_size_t),u_size:new h.bp(d,t.u_size),u_camera_to_center_distance:new h.bp(d,t.u_camera_to_center_distance),u_pitch:new h.bp(d,t.u_pitch),u_rotate_symbol:new h.b_(d,t.u_rotate_symbol),u_aspect_ratio:new h.bp(d,t.u_aspect_ratio),u_fade_change:new h.bp(d,t.u_fade_change),u_label_plane_matrix:new h.c0(d,t.u_label_plane_matrix),u_coord_matrix:new h.c0(d,t.u_coord_matrix),u_is_text:new h.b_(d,t.u_is_text),u_pitch_with_map:new h.b_(d,t.u_pitch_with_map),u_is_along_line:new h.b_(d,t.u_is_along_line),u_is_variable_anchor:new h.b_(d,t.u_is_variable_anchor),u_texsize:new h.c3(d,t.u_texsize),u_texture:new h.b_(d,t.u_texture),u_translation:new h.c3(d,t.u_translation),u_pitched_scale:new h.bp(d,t.u_pitched_scale)}),symbolSDF:(d,t)=>({u_is_size_zoom_constant:new h.b_(d,t.u_is_size_zoom_constant),u_is_size_feature_constant:new h.b_(d,t.u_is_size_feature_constant),u_size_t:new h.bp(d,t.u_size_t),u_size:new h.bp(d,t.u_size),u_camera_to_center_distance:new h.bp(d,t.u_camera_to_center_distance),u_pitch:new h.bp(d,t.u_pitch),u_rotate_symbol:new h.b_(d,t.u_rotate_symbol),u_aspect_ratio:new h.bp(d,t.u_aspect_ratio),u_fade_change:new h.bp(d,t.u_fade_change),u_label_plane_matrix:new h.c0(d,t.u_label_plane_matrix),u_coord_matrix:new h.c0(d,t.u_coord_matrix),u_is_text:new h.b_(d,t.u_is_text),u_pitch_with_map:new h.b_(d,t.u_pitch_with_map),u_is_along_line:new h.b_(d,t.u_is_along_line),u_is_variable_anchor:new h.b_(d,t.u_is_variable_anchor),u_texsize:new h.c3(d,t.u_texsize),u_texture:new h.b_(d,t.u_texture),u_gamma_scale:new h.bp(d,t.u_gamma_scale),u_device_pixel_ratio:new h.bp(d,t.u_device_pixel_ratio),u_is_halo:new h.b_(d,t.u_is_halo),u_is_plain:new h.b_(d,t.u_is_plain),u_translation:new h.c3(d,t.u_translation),u_pitched_scale:new h.bp(d,t.u_pitched_scale)}),symbolTextAndIcon:(d,t)=>({u_is_size_zoom_constant:new h.b_(d,t.u_is_size_zoom_constant),u_is_size_feature_constant:new h.b_(d,t.u_is_size_feature_constant),u_size_t:new h.bp(d,t.u_size_t),u_size:new h.bp(d,t.u_size),u_camera_to_center_distance:new h.bp(d,t.u_camera_to_center_distance),u_pitch:new h.bp(d,t.u_pitch),u_rotate_symbol:new h.b_(d,t.u_rotate_symbol),u_aspect_ratio:new h.bp(d,t.u_aspect_ratio),u_fade_change:new h.bp(d,t.u_fade_change),u_label_plane_matrix:new h.c0(d,t.u_label_plane_matrix),u_coord_matrix:new h.c0(d,t.u_coord_matrix),u_is_text:new h.b_(d,t.u_is_text),u_pitch_with_map:new h.b_(d,t.u_pitch_with_map),u_is_along_line:new h.b_(d,t.u_is_along_line),u_is_variable_anchor:new h.b_(d,t.u_is_variable_anchor),u_texsize:new h.c3(d,t.u_texsize),u_texsize_icon:new h.c3(d,t.u_texsize_icon),u_texture:new h.b_(d,t.u_texture),u_texture_icon:new h.b_(d,t.u_texture_icon),u_gamma_scale:new h.bp(d,t.u_gamma_scale),u_device_pixel_ratio:new h.bp(d,t.u_device_pixel_ratio),u_is_halo:new h.b_(d,t.u_is_halo),u_translation:new h.c3(d,t.u_translation),u_pitched_scale:new h.bp(d,t.u_pitched_scale)}),background:(d,t)=>({u_opacity:new h.bp(d,t.u_opacity),u_color:new h.b$(d,t.u_color)}),backgroundPattern:(d,t)=>({u_opacity:new h.bp(d,t.u_opacity),u_image:new h.b_(d,t.u_image),u_pattern_tl_a:new h.c3(d,t.u_pattern_tl_a),u_pattern_br_a:new h.c3(d,t.u_pattern_br_a),u_pattern_tl_b:new h.c3(d,t.u_pattern_tl_b),u_pattern_br_b:new h.c3(d,t.u_pattern_br_b),u_texsize:new h.c3(d,t.u_texsize),u_mix:new h.bp(d,t.u_mix),u_pattern_size_a:new h.c3(d,t.u_pattern_size_a),u_pattern_size_b:new h.c3(d,t.u_pattern_size_b),u_scale_a:new h.bp(d,t.u_scale_a),u_scale_b:new h.bp(d,t.u_scale_b),u_pixel_coord_upper:new h.c3(d,t.u_pixel_coord_upper),u_pixel_coord_lower:new h.c3(d,t.u_pixel_coord_lower),u_tile_units_to_pixels:new h.bp(d,t.u_tile_units_to_pixels)}),terrain:(d,t)=>({u_texture:new h.b_(d,t.u_texture),u_ele_delta:new h.bp(d,t.u_ele_delta),u_fog_matrix:new h.c0(d,t.u_fog_matrix),u_fog_color:new h.b$(d,t.u_fog_color),u_fog_ground_blend:new h.bp(d,t.u_fog_ground_blend),u_fog_ground_blend_opacity:new h.bp(d,t.u_fog_ground_blend_opacity),u_horizon_color:new h.b$(d,t.u_horizon_color),u_horizon_fog_blend:new h.bp(d,t.u_horizon_fog_blend),u_is_globe_mode:new h.bp(d,t.u_is_globe_mode)}),terrainDepth:(d,t)=>({u_ele_delta:new h.bp(d,t.u_ele_delta)}),terrainCoords:(d,t)=>({u_texture:new h.b_(d,t.u_texture),u_terrain_coords_id:new h.bp(d,t.u_terrain_coords_id),u_ele_delta:new h.bp(d,t.u_ele_delta)}),projectionErrorMeasurement:(d,t)=>({u_input:new h.bp(d,t.u_input),u_output_expected:new h.bp(d,t.u_output_expected)}),atmosphere:(d,t)=>({u_sun_pos:new h.c2(d,t.u_sun_pos),u_atmosphere_blend:new h.bp(d,t.u_atmosphere_blend),u_globe_position:new h.c2(d,t.u_globe_position),u_globe_radius:new h.bp(d,t.u_globe_radius),u_inv_proj_matrix:new h.c0(d,t.u_inv_proj_matrix)}),sky:(d,t)=>({u_sky_color:new h.b$(d,t.u_sky_color),u_horizon_color:new h.b$(d,t.u_horizon_color),u_horizon:new h.c3(d,t.u_horizon),u_horizon_normal:new h.c3(d,t.u_horizon_normal),u_sky_horizon_blend:new h.bp(d,t.u_sky_horizon_blend),u_sky_blend:new h.bp(d,t.u_sky_blend)})};class rh{constructor(t,n,s){this.context=t;let c=t.gl;this.buffer=c.createBuffer(),this.dynamicDraw=!!s,this.context.unbindVAO(),t.bindElementBuffer.set(this.buffer),c.bufferData(c.ELEMENT_ARRAY_BUFFER,n.arrayBuffer,this.dynamicDraw?c.DYNAMIC_DRAW:c.STATIC_DRAW),this.dynamicDraw||n.freeBufferAfterUpload()}bind(){this.context.bindElementBuffer.set(this.buffer)}updateData(t){let n=this.context.gl;if(!this.dynamicDraw)throw new Error(\"Attempted to update data while not in dynamic mode.\");this.context.unbindVAO(),this.bind(),n.bufferSubData(n.ELEMENT_ARRAY_BUFFER,0,t.arrayBuffer)}destroy(){this.buffer&&(this.context.gl.deleteBuffer(this.buffer),delete this.buffer)}}let nh={Int8:\"BYTE\",Uint8:\"UNSIGNED_BYTE\",Int16:\"SHORT\",Uint16:\"UNSIGNED_SHORT\",Int32:\"INT\",Uint32:\"UNSIGNED_INT\",Float32:\"FLOAT\"};class Oc{constructor(t,n,s,c){this.length=n.length,this.attributes=s,this.itemSize=n.bytesPerElement,this.dynamicDraw=c,this.context=t;let f=t.gl;this.buffer=f.createBuffer(),t.bindVertexBuffer.set(this.buffer),f.bufferData(f.ARRAY_BUFFER,n.arrayBuffer,this.dynamicDraw?f.DYNAMIC_DRAW:f.STATIC_DRAW),this.dynamicDraw||n.freeBufferAfterUpload()}bind(){this.context.bindVertexBuffer.set(this.buffer)}updateData(t){if(t.length!==this.length)throw new Error(`Length of new data is ${t.length}, which doesn't match current length of ${this.length}`);let n=this.context.gl;this.bind(),n.bufferSubData(n.ARRAY_BUFFER,0,t.arrayBuffer)}enableAttributes(t,n){for(let s of this.attributes){let c=n.attributes[s.name];c!==void 0&&t.enableVertexAttribArray(c)}}setVertexAttribPointers(t,n,s){for(let c of this.attributes){let f=n.attributes[c.name];f!==void 0&&t.vertexAttribPointer(f,c.components,t[nh[c.type]],!1,this.itemSize,c.offset+this.itemSize*(s||0))}}destroy(){this.buffer&&(this.context.gl.deleteBuffer(this.buffer),delete this.buffer)}}class gt{constructor(t){this.gl=t.gl,this.default=this.getDefault(),this.current=this.default,this.dirty=!1}get(){return this.current}set(t){}getDefault(){return this.default}setDefault(){this.set(this.default)}}class Vc extends gt{getDefault(){return h.bo.transparent}set(t){let n=this.current;(t.r!==n.r||t.g!==n.g||t.b!==n.b||t.a!==n.a||this.dirty)&&(this.gl.clearColor(t.r,t.g,t.b,t.a),this.current=t,this.dirty=!1)}}class Oa extends gt{getDefault(){return 1}set(t){(t!==this.current||this.dirty)&&(this.gl.clearDepth(t),this.current=t,this.dirty=!1)}}class Va extends gt{getDefault(){return 0}set(t){(t!==this.current||this.dirty)&&(this.gl.clearStencil(t),this.current=t,this.dirty=!1)}}class ja extends gt{getDefault(){return[!0,!0,!0,!0]}set(t){let n=this.current;(t[0]!==n[0]||t[1]!==n[1]||t[2]!==n[2]||t[3]!==n[3]||this.dirty)&&(this.gl.colorMask(t[0],t[1],t[2],t[3]),this.current=t,this.dirty=!1)}}class fl extends gt{getDefault(){return!0}set(t){(t!==this.current||this.dirty)&&(this.gl.depthMask(t),this.current=t,this.dirty=!1)}}class Pn extends gt{getDefault(){return 255}set(t){(t!==this.current||this.dirty)&&(this.gl.stencilMask(t),this.current=t,this.dirty=!1)}}class jo extends gt{getDefault(){return{func:this.gl.ALWAYS,ref:0,mask:255}}set(t){let n=this.current;(t.func!==n.func||t.ref!==n.ref||t.mask!==n.mask||this.dirty)&&(this.gl.stencilFunc(t.func,t.ref,t.mask),this.current=t,this.dirty=!1)}}class no extends gt{getDefault(){let t=this.gl;return[t.KEEP,t.KEEP,t.KEEP]}set(t){let n=this.current;(t[0]!==n[0]||t[1]!==n[1]||t[2]!==n[2]||this.dirty)&&(this.gl.stencilOp(t[0],t[1],t[2]),this.current=t,this.dirty=!1)}}class ir extends gt{getDefault(){return!1}set(t){if(t===this.current&&!this.dirty)return;let n=this.gl;t?n.enable(n.STENCIL_TEST):n.disable(n.STENCIL_TEST),this.current=t,this.dirty=!1}}class jc extends gt{getDefault(){return[0,1]}set(t){let n=this.current;(t[0]!==n[0]||t[1]!==n[1]||this.dirty)&&(this.gl.depthRange(t[0],t[1]),this.current=t,this.dirty=!1)}}class Nc extends gt{getDefault(){return!1}set(t){if(t===this.current&&!this.dirty)return;let n=this.gl;t?n.enable(n.DEPTH_TEST):n.disable(n.DEPTH_TEST),this.current=t,this.dirty=!1}}class ml extends gt{getDefault(){return this.gl.LESS}set(t){(t!==this.current||this.dirty)&&(this.gl.depthFunc(t),this.current=t,this.dirty=!1)}}class Cn extends gt{getDefault(){return!1}set(t){if(t===this.current&&!this.dirty)return;let n=this.gl;t?n.enable(n.BLEND):n.disable(n.BLEND),this.current=t,this.dirty=!1}}class Na extends gt{getDefault(){let t=this.gl;return[t.ONE,t.ZERO]}set(t){let n=this.current;(t[0]!==n[0]||t[1]!==n[1]||this.dirty)&&(this.gl.blendFunc(t[0],t[1]),this.current=t,this.dirty=!1)}}class Ua extends gt{getDefault(){return h.bo.transparent}set(t){let n=this.current;(t.r!==n.r||t.g!==n.g||t.b!==n.b||t.a!==n.a||this.dirty)&&(this.gl.blendColor(t.r,t.g,t.b,t.a),this.current=t,this.dirty=!1)}}class No extends gt{getDefault(){return this.gl.FUNC_ADD}set(t){(t!==this.current||this.dirty)&&(this.gl.blendEquation(t),this.current=t,this.dirty=!1)}}class qa extends gt{getDefault(){return!1}set(t){if(t===this.current&&!this.dirty)return;let n=this.gl;t?n.enable(n.CULL_FACE):n.disable(n.CULL_FACE),this.current=t,this.dirty=!1}}class Uc extends gt{getDefault(){return this.gl.BACK}set(t){(t!==this.current||this.dirty)&&(this.gl.cullFace(t),this.current=t,this.dirty=!1)}}class oo extends gt{getDefault(){return this.gl.CCW}set(t){(t!==this.current||this.dirty)&&(this.gl.frontFace(t),this.current=t,this.dirty=!1)}}class ao extends gt{getDefault(){return null}set(t){(t!==this.current||this.dirty)&&(this.gl.useProgram(t),this.current=t,this.dirty=!1)}}class qc extends gt{getDefault(){return this.gl.TEXTURE0}set(t){(t!==this.current||this.dirty)&&(this.gl.activeTexture(t),this.current=t,this.dirty=!1)}}class gl extends gt{getDefault(){let t=this.gl;return[0,0,t.drawingBufferWidth,t.drawingBufferHeight]}set(t){let n=this.current;(t[0]!==n[0]||t[1]!==n[1]||t[2]!==n[2]||t[3]!==n[3]||this.dirty)&&(this.gl.viewport(t[0],t[1],t[2],t[3]),this.current=t,this.dirty=!1)}}class nt extends gt{getDefault(){return null}set(t){if(t===this.current&&!this.dirty)return;let n=this.gl;n.bindFramebuffer(n.FRAMEBUFFER,t),this.current=t,this.dirty=!1}}class Ga extends gt{getDefault(){return null}set(t){if(t===this.current&&!this.dirty)return;let n=this.gl;n.bindRenderbuffer(n.RENDERBUFFER,t),this.current=t,this.dirty=!1}}class oh extends gt{getDefault(){return null}set(t){if(t===this.current&&!this.dirty)return;let n=this.gl;n.bindTexture(n.TEXTURE_2D,t),this.current=t,this.dirty=!1}}class Gc extends gt{getDefault(){return null}set(t){if(t===this.current&&!this.dirty)return;let n=this.gl;n.bindBuffer(n.ARRAY_BUFFER,t),this.current=t,this.dirty=!1}}class Uo extends gt{getDefault(){return null}set(t){let n=this.gl;n.bindBuffer(n.ELEMENT_ARRAY_BUFFER,t),this.current=t,this.dirty=!1}}class ah extends gt{getDefault(){return null}set(t){var n;if(t===this.current&&!this.dirty)return;let s=this.gl;fr(s)?s.bindVertexArray(t):(n=s.getExtension(\"OES_vertex_array_object\"))===null||n===void 0||n.bindVertexArrayOES(t),this.current=t,this.dirty=!1}}class sh extends gt{getDefault(){return 4}set(t){if(t===this.current&&!this.dirty)return;let n=this.gl;n.pixelStorei(n.UNPACK_ALIGNMENT,t),this.current=t,this.dirty=!1}}class $c extends gt{getDefault(){return!1}set(t){if(t===this.current&&!this.dirty)return;let n=this.gl;n.pixelStorei(n.UNPACK_PREMULTIPLY_ALPHA_WEBGL,t),this.current=t,this.dirty=!1}}class lh extends gt{getDefault(){return!1}set(t){if(t===this.current&&!this.dirty)return;let n=this.gl;n.pixelStorei(n.UNPACK_FLIP_Y_WEBGL,t),this.current=t,this.dirty=!1}}class qo extends gt{constructor(t,n){super(t),this.context=t,this.parent=n}getDefault(){return null}}class $a extends qo{setDirty(){this.dirty=!0}set(t){if(t===this.current&&!this.dirty)return;this.context.bindFramebuffer.set(this.parent);let n=this.gl;n.framebufferTexture2D(n.FRAMEBUFFER,n.COLOR_ATTACHMENT0,n.TEXTURE_2D,t,0),this.current=t,this.dirty=!1}}class Go extends qo{set(t){if(t===this.current&&!this.dirty)return;this.context.bindFramebuffer.set(this.parent);let n=this.gl;n.framebufferRenderbuffer(n.FRAMEBUFFER,n.DEPTH_ATTACHMENT,n.RENDERBUFFER,t),this.current=t,this.dirty=!1}}class Za extends qo{set(t){if(t===this.current&&!this.dirty)return;this.context.bindFramebuffer.set(this.parent);let n=this.gl;n.framebufferRenderbuffer(n.FRAMEBUFFER,n.DEPTH_STENCIL_ATTACHMENT,n.RENDERBUFFER,t),this.current=t,this.dirty=!1}}let Wa=\"Framebuffer is not complete\";class Zc{constructor(t,n,s,c,f){this.context=t,this.width=n,this.height=s;let y=t.gl,x=this.framebuffer=y.createFramebuffer();if(this.colorAttachment=new $a(t,x),c)this.depthAttachment=f?new Za(t,x):new Go(t,x);else if(f)throw new Error(\"Stencil cannot be set without depth\");if(y.checkFramebufferStatus(y.FRAMEBUFFER)!==y.FRAMEBUFFER_COMPLETE)throw new Error(Wa)}destroy(){let t=this.context.gl,n=this.colorAttachment.get();if(n&&t.deleteTexture(n),this.depthAttachment){let s=this.depthAttachment.get();s&&t.deleteRenderbuffer(s)}t.deleteFramebuffer(this.framebuffer)}}class Ha{constructor(t){var n,s;if(this.gl=t,this.clearColor=new Vc(this),this.clearDepth=new Oa(this),this.clearStencil=new Va(this),this.colorMask=new ja(this),this.depthMask=new fl(this),this.stencilMask=new Pn(this),this.stencilFunc=new jo(this),this.stencilOp=new no(this),this.stencilTest=new ir(this),this.depthRange=new jc(this),this.depthTest=new Nc(this),this.depthFunc=new ml(this),this.blend=new Cn(this),this.blendFunc=new Na(this),this.blendColor=new Ua(this),this.blendEquation=new No(this),this.cullFace=new qa(this),this.cullFaceSide=new Uc(this),this.frontFace=new oo(this),this.program=new ao(this),this.activeTexture=new qc(this),this.viewport=new gl(this),this.bindFramebuffer=new nt(this),this.bindRenderbuffer=new Ga(this),this.bindTexture=new oh(this),this.bindVertexBuffer=new Gc(this),this.bindElementBuffer=new Uo(this),this.bindVertexArray=new ah(this),this.pixelStoreUnpack=new sh(this),this.pixelStoreUnpackPremultiplyAlpha=new $c(this),this.pixelStoreUnpackFlipY=new lh(this),this.extTextureFilterAnisotropic=t.getExtension(\"EXT_texture_filter_anisotropic\"),this.extTextureFilterAnisotropic&&(this.extTextureFilterAnisotropicMax=t.getParameter(this.extTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT)),this.maxTextureSize=t.getParameter(t.MAX_TEXTURE_SIZE),fr(t)){this.HALF_FLOAT=t.HALF_FLOAT;let c=t.getExtension(\"EXT_color_buffer_half_float\");this.RGBA16F=(n=t.RGBA16F)!==null&&n!==void 0?n:c?.RGBA16F_EXT,this.RGB16F=(s=t.RGB16F)!==null&&s!==void 0?s:c?.RGB16F_EXT,t.getExtension(\"EXT_color_buffer_float\")}else{t.getExtension(\"EXT_color_buffer_half_float\"),t.getExtension(\"OES_texture_half_float_linear\");let c=t.getExtension(\"OES_texture_half_float\");this.HALF_FLOAT=c?.HALF_FLOAT_OES}}setDefault(){this.unbindVAO(),this.clearColor.setDefault(),this.clearDepth.setDefault(),this.clearStencil.setDefault(),this.colorMask.setDefault(),this.depthMask.setDefault(),this.stencilMask.setDefault(),this.stencilFunc.setDefault(),this.stencilOp.setDefault(),this.stencilTest.setDefault(),this.depthRange.setDefault(),this.depthTest.setDefault(),this.depthFunc.setDefault(),this.blend.setDefault(),this.blendFunc.setDefault(),this.blendColor.setDefault(),this.blendEquation.setDefault(),this.cullFace.setDefault(),this.cullFaceSide.setDefault(),this.frontFace.setDefault(),this.program.setDefault(),this.activeTexture.setDefault(),this.bindFramebuffer.setDefault(),this.pixelStoreUnpack.setDefault(),this.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.pixelStoreUnpackFlipY.setDefault()}setDirty(){this.clearColor.dirty=!0,this.clearDepth.dirty=!0,this.clearStencil.dirty=!0,this.colorMask.dirty=!0,this.depthMask.dirty=!0,this.stencilMask.dirty=!0,this.stencilFunc.dirty=!0,this.stencilOp.dirty=!0,this.stencilTest.dirty=!0,this.depthRange.dirty=!0,this.depthTest.dirty=!0,this.depthFunc.dirty=!0,this.blend.dirty=!0,this.blendFunc.dirty=!0,this.blendColor.dirty=!0,this.blendEquation.dirty=!0,this.cullFace.dirty=!0,this.cullFaceSide.dirty=!0,this.frontFace.dirty=!0,this.program.dirty=!0,this.activeTexture.dirty=!0,this.viewport.dirty=!0,this.bindFramebuffer.dirty=!0,this.bindRenderbuffer.dirty=!0,this.bindTexture.dirty=!0,this.bindVertexBuffer.dirty=!0,this.bindElementBuffer.dirty=!0,this.bindVertexArray.dirty=!0,this.pixelStoreUnpack.dirty=!0,this.pixelStoreUnpackPremultiplyAlpha.dirty=!0,this.pixelStoreUnpackFlipY.dirty=!0}createIndexBuffer(t,n){return new rh(this,t,n)}createVertexBuffer(t,n,s){return new Oc(this,t,n,s)}createRenderbuffer(t,n,s){let c=this.gl,f=c.createRenderbuffer();return this.bindRenderbuffer.set(f),c.renderbufferStorage(c.RENDERBUFFER,t,n,s),this.bindRenderbuffer.set(null),f}createFramebuffer(t,n,s,c){return new Zc(this,t,n,s,c)}clear({color:t,depth:n,stencil:s}){let c=this.gl,f=0;t&&(f|=c.COLOR_BUFFER_BIT,this.clearColor.set(t),this.colorMask.set([!0,!0,!0,!0])),n!==void 0&&(f|=c.DEPTH_BUFFER_BIT,this.depthRange.set([0,1]),this.clearDepth.set(n),this.depthMask.set(!0)),s!==void 0&&(f|=c.STENCIL_BUFFER_BIT,this.clearStencil.set(s),this.stencilMask.set(255)),c.clear(f)}setCullFace(t){t.enable===!1?this.cullFace.set(!1):(this.cullFace.set(!0),this.cullFaceSide.set(t.mode),this.frontFace.set(t.frontFace))}setDepthMode(t){t.func!==this.gl.ALWAYS||t.mask?(this.depthTest.set(!0),this.depthFunc.set(t.func),this.depthMask.set(t.mask),this.depthRange.set(t.range)):this.depthTest.set(!1)}setStencilMode(t){t.test.func!==this.gl.ALWAYS||t.mask?(this.stencilTest.set(!0),this.stencilMask.set(t.mask),this.stencilOp.set([t.fail,t.depthFail,t.pass]),this.stencilFunc.set({func:t.test.func,ref:t.ref,mask:t.test.mask})):this.stencilTest.set(!1)}setColorMode(t){h.bQ(t.blendFunction,Ct.Replace)?this.blend.set(!1):(this.blend.set(!0),this.blendFunc.set(t.blendFunction),this.blendColor.set(t.blendColor)),this.colorMask.set(t.mask)}createVertexArray(){var t;return fr(this.gl)?this.gl.createVertexArray():(t=this.gl.getExtension(\"OES_vertex_array_object\"))===null||t===void 0?void 0:t.createVertexArrayOES()}deleteVertexArray(t){var n;fr(this.gl)?this.gl.deleteVertexArray(t):(n=this.gl.getExtension(\"OES_vertex_array_object\"))===null||n===void 0||n.deleteVertexArrayOES(t)}unbindVAO(){this.bindVertexArray.set(null)}}let En;function so(d,t,n,s,c){var f,y;let x=d.context,w=d.transform,S=x.gl,M=d.useProgram(\"collisionBox\"),E=[],I=0,D=0;for(let X of s){let $=t.getTile(X).getBucket(n);if(!$)continue;let U=c?$.textCollisionBox:$.iconCollisionBox,H=$.collisionCircleArray;H.length>0&&(E.push({circleArray:H,circleOffset:D,coord:X}),I+=H.length/4,D=I),U&&M.draw(x,S.LINES,Qe.disabled,ct.disabled,d.colorModeForRenderPass(),lt.disabled,kc(d.transform),(f=d.style.map.terrain)===null||f===void 0?void 0:f.getTerrainData(X),w.getProjectionData({overscaledTileID:X,applyGlobeMatrix:!0,applyTerrainMatrix:!0}),n.id,U.layoutVertexBuffer,U.indexBuffer,U.segments,null,d.transform.zoom,null,null,U.collisionVertexBuffer)}if(!c||!E.length)return;let B=d.useProgram(\"collisionCircle\"),V=new h.ca;V.resize(4*I),V._trim();let q=0;for(let X of E)for(let $=0;$=0&&(V[N.associatedIconIndex]={shiftedAnchor:me,angle:Ae})}else gn(N.numGlyphs,D)}if(w){B.clear();let q=d.icon.placedSymbolArray;for(let N=0;Nd.style.map.terrain.getElevation(Ce,Vr,Nl):null,us=n.layout.get(\"text-rotation-alignment\")===\"map\";Ta(Ae,d,c,yi,Bt,X,S,us,Ce.toUnwrapped(),N.width,N.height,on,Rn)}let Xi=c&&se||Pr,or=$||Xi?lo:X?yi:d.transform.clipSpaceToPixelsMatrix,Ft=$t&&n.paint.get(c?\"text-halo-width\":\"icon-halo-width\").constantOr(1)!==0,At;At=$t?Ae.iconsInText?dl(St.kind,gi,U,X,$,Xi,d,or,Or,on,Ai,tn,_e):hl(St.kind,gi,U,X,$,Xi,d,or,Or,on,c,Ai,Ft,_e):Ba(St.kind,gi,U,X,$,Xi,d,or,Or,on,c,Ai,_e);let Yt={program:Xt,buffers:Be,uniformValues:At,projectionData:cs,atlasTexture:di,atlasTextureIcon:rn,atlasInterpolation:ri,atlasInterpolationIcon:_i,isSDF:$t,hasHalo:Ft};if(H&&Ae.canOverlap){Z=!0;let Bt=Be.segments.get();for(let Rn of Bt)ce.push({segments:new h.aV([Rn]),sortKey:Rn.sortKey,state:Yt,terrainData:jt})}else ce.push({segments:Be.segments,sortKey:0,state:Yt,terrainData:jt})}Z&&ce.sort(((Ce,me)=>Ce.sortKey-me.sortKey));let ge=(B=n.paint.get(c?\"text-halo-width\":\"icon-halo-width\").constantOr(null))!==null&&B!==void 0?B:1/0,Re=n.layout.get(\"text-letter-spacing\").constantOr(0)*h.aJ<0||ge>1;for(let Ce of ce){let me=Ce.state;V.activeTexture.set(q.TEXTURE0),me.atlasTexture.bind(me.atlasInterpolation,q.CLAMP_TO_EDGE),me.atlasTextureIcon&&(V.activeTexture.set(q.TEXTURE1),me.atlasTextureIcon&&me.atlasTextureIcon.bind(me.atlasInterpolationIcon,q.CLAMP_TO_EDGE));let Ae=me.isSDF&&me.hasHalo;if(Ae){let Be=me.uniformValues;Be.u_is_halo=1,Re&&(Be.u_is_plain=0,Zo(me.buffers,Ce.segments,n,d,me.program,te,M,E,Be,me.projectionData,Ce.terrainData),Be.u_is_halo=0,Be.u_is_plain=1)}Zo(me.buffers,Ce.segments,n,d,me.program,te,M,E,me.uniformValues,me.projectionData,Ce.terrainData),Ae&&!Re&&(me.uniformValues.u_is_halo=0)}}function Zo(d,t,n,s,c,f,y,x,w,S,M){let E=s.context;c.draw(E,E.gl.TRIANGLES,f,y,x,lt.backCCW,w,M,S,n.id,d.layoutVertexBuffer,d.indexBuffer,t,n.paint,s.transform.zoom,d.programConfigurations.get(n.id),d.dynamicLayoutVertexBuffer,d.opacityVertexBuffer)}function vl(d,t,n,s,c){let f=d.context,y=f.gl,x=ct.disabled,w=new Ct([y.ONE,y.ONE],h.bo.transparent,[!0,!0,!0,!0]),S=t.getBucket(n);if(!S)return;let M=s.key,E=n.heatmapFbos.get(M);E||(E=xl(f,t.tileSize,t.tileSize),n.heatmapFbos.set(M,E)),f.bindFramebuffer.set(E.framebuffer),f.viewport.set([0,0,t.tileSize,t.tileSize]),f.clear({color:h.bo.transparent});let I=S.programConfigurations.get(n.id),D=d.useProgram(\"heatmap\",I,!c),B=d.transform.getProjectionData({overscaledTileID:t.tileID,applyGlobeMatrix:!0,applyTerrainMatrix:!0}),V=d.style.map.terrain.getTerrainData(s);D.draw(f,y.TRIANGLES,Qe.disabled,x,w,lt.disabled,sl(t,d.transform.zoom,n.paint.get(\"heatmap-intensity\"),1),V,B,n.id,S.layoutVertexBuffer,S.indexBuffer,S.segments,n.paint,d.transform.zoom,I)}function Wc(d,t,n,s,c){let f=d.context,y=f.gl,x=d.transform;f.setColorMode(d.colorModeForRenderPass());let w=Wo(f,t),S=n.key,M=t.heatmapFbos.get(S);if(!M)return;f.activeTexture.set(y.TEXTURE0),y.bindTexture(y.TEXTURE_2D,M.colorAttachment.get()),f.activeTexture.set(y.TEXTURE1),w.bind(y.LINEAR,y.CLAMP_TO_EDGE);let E=x.getProjectionData({overscaledTileID:n,applyTerrainMatrix:c,applyGlobeMatrix:!s});d.useProgram(\"heatmapTexture\").draw(f,y.TRIANGLES,Qe.disabled,ct.disabled,d.colorModeForRenderPass(),lt.disabled,io(d,t,0,1),null,E,t.id,d.rasterBoundsBuffer,d.quadTriangleIndexBuffer,d.rasterBoundsSegments,t.paint,x.zoom),M.destroy(),t.heatmapFbos.delete(S)}function xl(d,t,n){var s,c;let f=d.gl,y=f.createTexture();f.bindTexture(f.TEXTURE_2D,y),f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_S,f.CLAMP_TO_EDGE),f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_T,f.CLAMP_TO_EDGE),f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MIN_FILTER,f.LINEAR),f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MAG_FILTER,f.LINEAR);let x=(s=d.HALF_FLOAT)!==null&&s!==void 0?s:f.UNSIGNED_BYTE,w=(c=d.RGBA16F)!==null&&c!==void 0?c:f.RGBA;f.texImage2D(f.TEXTURE_2D,0,w,t,n,0,f.RGBA,x,null);let S=d.createFramebuffer(t,n,!1,!1);return S.colorAttachment.set(y),S}function Wo(d,t){return t.colorRampTexture||(t.colorRampTexture=new h.T(d,t.colorRamp,d.gl.RGBA)),t.colorRampTexture}function Xa(d,t,n,s,c,f,y,x){let w=256;if(c.stepInterpolant){let S=t.getSource().maxzoom,M=y.canonical.z===S?Math.ceil(1<d.options.anisotropicFilterPitch&&D.texParameterf(D.TEXTURE_2D,I.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,I.extTextureFilterAnisotropicMax);let Ce=(M=d.style.map.terrain)===null||M===void 0?void 0:M.getTerrainData(Z),me=V.getProjectionData({overscaledTileID:Z,aligned:G,applyGlobeMatrix:!S,applyTerrainMatrix:!0}),Ae=cl(ge,_e,Re.fadeMix,n,x),Be=q.getMeshFromTileID(I,Z.canonical,f,y,\"raster\");B.draw(I,D.TRIANGLES,te,c?c[Z.overscaledZ]:ct.disabled,N,w?lt.frontCCW:lt.backCCW,Ae,Ce,me,n.id,Be.vertexBuffer,Be.indexBuffer,Be.segments)}}function Xc(d,t,n,s){let c={parentTile:null,parentScaleBy:1,parentTopLeft:[0,0],fadeValues:{tileOpacity:1,parentTileOpacity:1,fadeMix:{opacity:1,mix:0}}};if(n===0||s)return c;if(d.fadingParentID){let f=t.getLoadedTile(d.fadingParentID);if(!f)return c;let y=Math.pow(2,f.tileID.overscaledZ-d.tileID.overscaledZ),x=[d.tileID.canonical.x*y%1,d.tileID.canonical.y*y%1],w=(function(S,M,E){let I=Fe(),D=(I-M.timeAdded)/E,B=S.fadingDirection===tr.Incoming,V=h.al((I-S.timeAdded)/E,0,1),q=h.al(1-D,0,1),N=B?V:q;return{tileOpacity:N,parentTileOpacity:B?q:V,fadeMix:{opacity:1,mix:1-N}}})(d,f,n);return{parentTile:f,parentScaleBy:y,parentTopLeft:x,fadeValues:w}}if(d.selfFading){let f=(function(y,x){let w=(Fe()-y.timeAdded)/x,S=h.al(w,0,1);return{tileOpacity:S,fadeMix:{opacity:S,mix:0}}})(d,n);return{parentTile:null,parentScaleBy:1,parentTopLeft:[0,0],fadeValues:f}}return c}let Yc=new h.bo(1,0,0,1),Kc=new h.bo(0,1,0,1),Jc=new h.bo(0,0,1,1),Qc=new h.bo(1,0,1,1),Qr=new h.bo(0,1,1,1);function bl(d,t,n,s){Xo(d,0,t+n/2,d.transform.width,n,s)}function wl(d,t,n,s){Xo(d,t-n/2,0,n,d.transform.height,s)}function Xo(d,t,n,s,c,f){let y=d.context,x=y.gl;x.enable(x.SCISSOR_TEST),x.scissor(t*d.pixelRatio,n*d.pixelRatio,s*d.pixelRatio,c*d.pixelRatio),y.clear({color:f}),x.disable(x.SCISSOR_TEST)}function eu(d,t,n){var s;let c=d.context,f=c.gl,y=d.useProgram(\"debug\"),x=Qe.disabled,w=ct.disabled,S=d.colorModeForRenderPass(),M=\"$debug\",E=(s=d.style.map.terrain)===null||s===void 0?void 0:s.getTerrainData(n);c.activeTexture.set(f.TEXTURE0);let I=t.getTileByID(n.key).latestRawTileData,D=Math.floor((I?.byteLength||0)/1024),B=t.getTile(n).tileSize,V=512/Math.min(B,512)*(n.overscaledZ/d.transform.zoom)*.5,q=n.canonical.toString();n.overscaledZ!==n.canonical.z&&(q+=` => ${n.overscaledZ}`),(function(G,X){G.initDebugOverlayCanvas();let $=G.debugOverlayCanvas,U=G.context.gl,H=G.debugOverlayCanvas.getContext(\"2d\");H.clearRect(0,0,$.width,$.height),H.shadowColor=\"white\",H.shadowBlur=2,H.lineWidth=1.5,H.strokeStyle=\"white\",H.textBaseline=\"top\",H.font=\"bold 36px Open Sans, sans-serif\",H.fillText(X,5,5),H.strokeText(X,5,5),G.debugOverlayTexture.update($),G.debugOverlayTexture.bind(U.LINEAR,U.CLAMP_TO_EDGE)})(d,`${q} ${D}kB`);let N=d.transform.getProjectionData({overscaledTileID:n,applyGlobeMatrix:!0,applyTerrainMatrix:!0});y.draw(c,f.TRIANGLES,x,w,Ct.alphaBlended,lt.disabled,al(h.bo.transparent,V),null,N,M,d.debugBuffer,d.quadTriangleIndexBuffer,d.debugSegments),y.draw(c,f.LINE_STRIP,x,w,S,lt.disabled,al(h.bo.red),E,N,M,d.debugBuffer,d.tileBorderIndexBuffer,d.debugSegments)}function Tl(d,t,n,s){let{isRenderingGlobe:c}=s,f=d.context,y=f.gl,x=d.transform,w=d.colorModeForRenderPass(),S=d.getDepthModeFor3D(),M=d.useProgram(\"terrain\");f.bindFramebuffer.set(null),f.viewport.set([0,0,d.width,d.height]);for(let E of n){let I=t.getTerrainMesh(E.tileID),D=d.renderToTexture.getTexture(E),B=t.getTerrainData(E.tileID);f.activeTexture.set(y.TEXTURE0),y.bindTexture(y.TEXTURE_2D,D.texture);let V=t.getMeshFrameDelta(x.zoom),q=x.calculateFogMatrix(E.tileID.toUnwrapped()),N=Ra(V,q,d.style.sky,x.pitch,c),G=x.getProjectionData({overscaledTileID:E.tileID,applyTerrainMatrix:!1,applyGlobeMatrix:!0});M.draw(f,y.TRIANGLES,S,ct.disabled,w,lt.backCCW,N,B,G,\"terrain\",I.vertexBuffer,I.indexBuffer,I.segments)}}function Sl(d,t){if(!t.mesh){let n=new h.aU;n.emplaceBack(-1,-1),n.emplaceBack(1,-1),n.emplaceBack(1,1),n.emplaceBack(-1,1);let s=new h.aW;s.emplaceBack(0,1,2),s.emplaceBack(0,2,3),t.mesh=new Pt(d.createVertexBuffer(n,Yr.members),d.createIndexBuffer(s),h.aV.simpleSegment(0,0,n.length,s.length))}return t.mesh}let tu={symbol:function(d,t,n,s,c,f){if(d.renderPass!==\"translucent\")return;let{isRenderingToTexture:y}=f,x=ct.disabled,w=d.colorModeForRenderPass();(n._unevaluatedLayout.hasValue(\"text-variable-anchor\")||n._unevaluatedLayout.hasValue(\"text-variable-anchor-offset\"))&&(function(S,M,E,I,D,B,V,q,N){var G;let X=M.transform,$=M.style.map.terrain,U=D===\"map\",H=B===\"map\";for(let Z of S){let te=I.getTile(Z),se=te.getBucket(E);if(!(!((G=se?.text)===null||G===void 0)&&G.segments.get().length))continue;let ce=h.aw(se.textSizeData,X.zoom),_e=h.aK(te,1,M.transform.zoom),ge=Gi(U,M.transform,_e),Re=E.layout.get(\"icon-text-fit\")!==\"none\"&&se.hasIconData();if(ce){let Ce=Math.pow(2,X.zoom-te.tileID.overscaledZ),me=$?(Ae,Be)=>$.getElevation(Z,Ae,Be):null;$o(se,U,H,N,X,ge,Ce,ce,Re,h.aL(X,te,V,q),Z.toUnwrapped(),me)}}})(s,d,n,t,n.layout.get(\"text-rotation-alignment\"),n.layout.get(\"text-pitch-alignment\"),n.paint.get(\"text-translate\"),n.paint.get(\"text-translate-anchor\"),c),n.paint.get(\"icon-opacity\").constantOr(1)!==0&&yl(d,t,n,s,!1,n.paint.get(\"icon-translate\"),n.paint.get(\"icon-translate-anchor\"),n.layout.get(\"icon-rotation-alignment\"),n.layout.get(\"icon-pitch-alignment\"),n.layout.get(\"icon-keep-upright\"),x,w,y),n.paint.get(\"text-opacity\").constantOr(1)!==0&&yl(d,t,n,s,!0,n.paint.get(\"text-translate\"),n.paint.get(\"text-translate-anchor\"),n.layout.get(\"text-rotation-alignment\"),n.layout.get(\"text-pitch-alignment\"),n.layout.get(\"text-keep-upright\"),x,w,y),t.map.showCollisionBoxes&&(so(d,t,n,s,!0),so(d,t,n,s,!1))},circle:function(d,t,n,s,c){var f;if(d.renderPass!==\"translucent\")return;let{isRenderingToTexture:y}=c,x=n.paint.get(\"circle-opacity\"),w=n.paint.get(\"circle-stroke-width\"),S=n.paint.get(\"circle-stroke-opacity\"),M=!n.layout.get(\"circle-sort-key\").isConstant();if(x.constantOr(1)===0&&(w.constantOr(1)===0||S.constantOr(1)===0))return;let E=d.context,I=E.gl,D=d.transform,B=d.getDepthModeForSublayer(0,Qe.ReadOnly),V=ct.disabled,q=d.colorModeForRenderPass(),N=[],G=D.getCircleRadiusCorrection();for(let X of s){let $=t.getTile(X),U=$.getBucket(n);if(!U)continue;let H=n.paint.get(\"circle-translate\"),Z=n.paint.get(\"circle-translate-anchor\"),te=h.aL(D,$,H,Z),se=U.programConfigurations.get(n.id),ce=d.useProgram(\"circle\",se),_e=U.layoutVertexBuffer,ge=U.indexBuffer,Re=(f=d.style.map.terrain)===null||f===void 0?void 0:f.getTerrainData(X),Ce={programConfiguration:se,program:ce,layoutVertexBuffer:_e,indexBuffer:ge,uniformValues:Dc(d,$,n,te,G),terrainData:Re,projectionData:D.getProjectionData({overscaledTileID:X,applyGlobeMatrix:!y,applyTerrainMatrix:!0})};if(M){let me=U.segments.get();for(let Ae of me)N.push({segments:new h.aV([Ae]),sortKey:Ae.sortKey,state:Ce})}else N.push({segments:U.segments,sortKey:0,state:Ce})}M&&N.sort(((X,$)=>X.sortKey-$.sortKey));for(let X of N){let{programConfiguration:$,program:U,layoutVertexBuffer:H,indexBuffer:Z,uniformValues:te,terrainData:se,projectionData:ce}=X.state;U.draw(E,I.TRIANGLES,B,V,q,lt.backCCW,te,se,ce,n.id,H,Z,X.segments,n.paint,d.transform.zoom,$)}},heatmap:function(d,t,n,s,c){if(n.paint.get(\"heatmap-opacity\")===0)return;let f=d.context,{isRenderingToTexture:y,isRenderingGlobe:x}=c;if(d.style.map.terrain){for(let w of s){let S=t.getTile(w);t.hasRenderableParent(w)||(d.renderPass===\"offscreen\"?vl(d,S,n,w,x):d.renderPass===\"translucent\"&&Wc(d,n,w,y,x))}f.viewport.set([0,0,d.width,d.height])}else d.renderPass===\"offscreen\"?(function(w,S,M,E){let I=w.context,D=I.gl,B=w.transform,V=ct.disabled,q=new Ct([D.ONE,D.ONE],h.bo.transparent,[!0,!0,!0,!0]);(function(N,G,X){let $=N.gl;N.activeTexture.set($.TEXTURE1),N.viewport.set([0,0,G.width/4,G.height/4]);let U=X.heatmapFbos.get(h.cd);U?($.bindTexture($.TEXTURE_2D,U.colorAttachment.get()),N.bindFramebuffer.set(U.framebuffer)):(U=xl(N,G.width/4,G.height/4),X.heatmapFbos.set(h.cd,U))})(I,w,M),I.clear({color:h.bo.transparent});for(let N of E){if(S.hasRenderableParent(N))continue;let G=S.getTile(N),X=G.getBucket(M);if(!X)continue;let $=X.programConfigurations.get(M.id),U=w.useProgram(\"heatmap\",$),H=B.getProjectionData({overscaledTileID:N,applyGlobeMatrix:!0,applyTerrainMatrix:!1}),Z=B.getCircleRadiusCorrection();U.draw(I,D.TRIANGLES,Qe.disabled,V,q,lt.backCCW,sl(G,B.zoom,M.paint.get(\"heatmap-intensity\"),Z),null,H,M.id,X.layoutVertexBuffer,X.indexBuffer,X.segments,M.paint,B.zoom,$)}I.viewport.set([0,0,w.width,w.height])})(d,t,n,s):d.renderPass===\"translucent\"&&(function(w,S){let M=w.context,E=M.gl;M.setColorMode(w.colorModeForRenderPass());let I=S.heatmapFbos.get(h.cd);I&&(M.activeTexture.set(E.TEXTURE0),E.bindTexture(E.TEXTURE_2D,I.colorAttachment.get()),M.activeTexture.set(E.TEXTURE1),Wo(M,S).bind(E.LINEAR,E.CLAMP_TO_EDGE),w.useProgram(\"heatmapTexture\").draw(M,E.TRIANGLES,Qe.disabled,ct.disabled,w.colorModeForRenderPass(),lt.disabled,io(w,S,0,1),null,null,S.id,w.viewportBuffer,w.quadTriangleIndexBuffer,w.viewportSegments,S.paint,w.transform.zoom))})(d,n)},line:function(d,t,n,s,c){var f;if(d.renderPass!==\"translucent\")return;let{isRenderingToTexture:y}=c,x=n.paint.get(\"line-opacity\"),w=n.paint.get(\"line-width\");if(x.constantOr(1)===0||w.constantOr(1)===0)return;let S=d.getDepthModeForSublayer(0,Qe.ReadOnly),M=d.colorModeForRenderPass(),E=n.paint.get(\"line-dasharray\"),I=E.constantOr(1),D=n.paint.get(\"line-pattern\"),B=D.constantOr(1),V=n.paint.get(\"line-gradient\"),q=n.getCrossfadeParameters(),N;N=B?\"linePattern\":I&&V?\"lineGradientSDF\":I?\"lineSDF\":V?\"lineGradient\":\"line\";let G=d.context,X=G.gl,$=d.transform,U=!0;for(let H of s){let Z=t.getTile(H);if(B&&!Z.patternsLoaded())continue;let te=Z.getBucket(n);if(!te)continue;let se=te.programConfigurations.get(n.id),ce=d.context.program.get(),_e=d.useProgram(N,se),ge=U||_e.program!==ce,Re=(f=d.style.map.terrain)===null||f===void 0?void 0:f.getTerrainData(H),Ce=D.constantOr(null),me=E?.constantOr(null);if(Ce&&Z.imageAtlas){let St=Z.imageAtlas,Wt=St.patternPositions[Ce.to.toString()],Xt=St.patternPositions[Ce.from.toString()];Wt&&Xt&&se.setConstantPatternPositions(Wt,Xt)}else if(me){let St=n.layout.get(\"line-cap\").constantOr(null)===\"round\",Wt=d.lineAtlas.getDash(me.to,St),Xt=d.lineAtlas.getDash(me.from,St);se.setConstantDashPositions(Wt,Xt)}let Ae=$.getProjectionData({overscaledTileID:H,applyGlobeMatrix:!y,applyTerrainMatrix:!0}),Be=$.getPixelScale(),_t;B?(_t=Lc(d,Z,n,Be,q),hh(G,X,Z,se,q)):I&&V?(_t=Fc(d,Z,n,Be,q,te.lineClipsArray.length),In(d,t,G,X,n,te,H,se,q)):I?(_t=ll(d,Z,n,Be,q),Hc(d,G,X,se,ge,q)):V?(_t=Rc(d,Z,n,Be,te.lineClipsArray.length),Gt(d,t,G,X,n,te,H)):_t=Vo(d,Z,n,Be);let $t=d.stencilModeForClipping(H);_e.draw(G,X.TRIANGLES,S,$t,M,lt.disabled,_t,Re,Ae,n.id,te.layoutVertexBuffer,te.indexBuffer,te.segments,n.paint,d.transform.zoom,se,te.layoutVertexBuffer2),U=!1}},fill:function(d,t,n,s,c){let f=n.paint.get(\"fill-color\"),y=n.paint.get(\"fill-opacity\");if(y.constantOr(1)===0)return;let{isRenderingToTexture:x}=c,w=d.colorModeForRenderPass(),S=n.paint.get(\"fill-pattern\"),M=d.opaquePassEnabledForLayer()&&!S.constantOr(1)&&f.constantOr(h.bo.transparent).a===1&&y.constantOr(0)===1?\"opaque\":\"translucent\";if(d.renderPass===M){let E=d.getDepthModeForSublayer(1,d.renderPass===\"opaque\"?Qe.ReadWrite:Qe.ReadOnly);Ya(d,t,n,s,E,w,!1,x)}if(d.renderPass===\"translucent\"&&n.paint.get(\"fill-antialias\")){let E=d.getDepthModeForSublayer(n.getPaintProperty(\"fill-outline-color\")?2:0,Qe.ReadOnly);Ya(d,t,n,s,E,w,!0,x)}},fillExtrusion:function(d,t,n,s,c){let f=n.paint.get(\"fill-extrusion-opacity\");if(f===0)return;let{isRenderingToTexture:y}=c;if(d.renderPass===\"translucent\"){let x=new Qe(d.context.gl.LEQUAL,Qe.ReadWrite,d.depthRangeFor3D);if(f!==1||n.paint.get(\"fill-extrusion-pattern\").constantOr(1))co(d,t,n,s,x,ct.disabled,Ct.disabled,y),co(d,t,n,s,x,d.stencilModeFor3D(),d.colorModeForRenderPass(),y);else{let w=d.colorModeForRenderPass();co(d,t,n,s,x,ct.disabled,w,y)}}},hillshade:function(d,t,n,s,c){if(d.renderPass!==\"offscreen\"&&d.renderPass!==\"translucent\")return;let{isRenderingToTexture:f}=c,y=d.context,x=d.style.projection.useSubdivision,w=d.getDepthModeForSublayer(0,Qe.ReadOnly),S=d.colorModeForRenderPass();if(d.renderPass===\"offscreen\")(function(M,E,I,D,B,V,q){let N=M.context,G=N.gl,X=D.paint.get(\"resampling\")===\"nearest\"?G.NEAREST:G.LINEAR;for(let $ of I){let U=E.getTile($),H=U.dem;if(!H?.data||!U.needsHillshadePrepare)continue;let Z=H.dim,te=H.stride,se=H.getPixels();if(N.activeTexture.set(G.TEXTURE1),N.pixelStoreUnpackPremultiplyAlpha.set(!1),U.demTexture||(U.demTexture=M.getTileTexture(te)),U.demTexture){let _e=U.demTexture;_e.update(se,{premultiply:!1}),_e.bind(G.NEAREST,G.CLAMP_TO_EDGE)}else U.demTexture=new h.T(N,se,G.RGBA,{premultiply:!1}),U.demTexture.bind(G.NEAREST,G.CLAMP_TO_EDGE);N.activeTexture.set(G.TEXTURE0);let ce=U.fbo;if(!ce){let _e=new h.T(N,{width:Z,height:Z,data:null},G.RGBA);_e.bind(X,G.CLAMP_TO_EDGE),ce=U.fbo=N.createFramebuffer(Z,Z,!0,!1),ce.colorAttachment.set(_e.texture)}N.bindFramebuffer.set(ce.framebuffer),N.viewport.set([0,0,Z,Z]),M.useProgram(\"hillshadePrepare\").draw(N,G.TRIANGLES,B,V,q,lt.disabled,Fa(U.tileID,H),null,null,D.id,M.rasterBoundsBuffer,M.quadTriangleIndexBuffer,M.rasterBoundsSegments),U.needsHillshadePrepare=!1}})(d,t,s,n,w,ct.disabled,S),y.viewport.set([0,0,d.width,d.height]);else if(d.renderPass===\"translucent\")if(x){let[M,E,I]=d.stencilConfigForOverlapTwoPass(s);Ka(d,t,n,I,M,w,S,!1,f),Ka(d,t,n,I,E,w,S,!0,f)}else{let[M,E]=d.getStencilConfigForOverlapAndUpdateStencilID(s);Ka(d,t,n,E,M,w,S,!1,f)}},colorRelief:function(d,t,n,s,c){if(d.renderPass!==\"translucent\"||!s.length)return;let{isRenderingToTexture:f}=c,y=d.style.projection.useSubdivision,x=d.getDepthModeForSublayer(0,Qe.ReadOnly),w=d.colorModeForRenderPass();if(y){let[S,M,E]=d.stencilConfigForOverlapTwoPass(s);Ho(d,t,n,E,S,x,w,!1,f),Ho(d,t,n,E,M,x,w,!0,f)}else{let[S,M]=d.getStencilConfigForOverlapAndUpdateStencilID(s);Ho(d,t,n,M,S,x,w,!1,f)}},raster:function(d,t,n,s,c){if(d.renderPass!==\"translucent\"||n.paint.get(\"raster-opacity\")===0||!s.length)return;let{isRenderingToTexture:f}=c,y=t.getSource(),x=d.style.projection.useSubdivision;if(y instanceof Pi)uo(d,t,n,s,null,!1,!1,y.tileCoords,y.flippedWindingOrder,f);else if(x){let[w,S,M]=d.stencilConfigForOverlapTwoPass(s);uo(d,t,n,M,w,!1,!0,An,!1,f),uo(d,t,n,M,S,!0,!0,An,!1,f)}else{let[w,S]=d.getStencilConfigForOverlapAndUpdateStencilID(s);uo(d,t,n,S,w,!1,!0,An,!1,f)}},background:function(d,t,n,s,c){var f;let y=n.paint.get(\"background-color\"),x=n.paint.get(\"background-opacity\");if(x===0)return;let{isRenderingToTexture:w}=c,S=d.context,M=S.gl,E=d.style.projection,I=d.transform,D=I.tileSize,B=n.paint.get(\"background-pattern\");if(d.isPatternMissing(B))return;let V=!B&&y.a===1&&x===1&&d.opaquePassEnabledForLayer()?\"opaque\":\"translucent\";if(d.renderPass!==V)return;let q=ct.disabled,N=d.getDepthModeForSublayer(0,V===\"opaque\"?Qe.ReadWrite:Qe.ReadOnly),G=d.colorModeForRenderPass(),X=d.useProgram(B?\"backgroundPattern\":\"background\"),$=s||pn(I,{tileSize:D,terrain:d.style.map.terrain});B&&(S.activeTexture.set(M.TEXTURE0),d.imageManager.bind(d.context));let U=n.getCrossfadeParameters();for(let H of $){let Z=I.getProjectionData({overscaledTileID:H,applyGlobeMatrix:!w,applyTerrainMatrix:!0}),te=B?pl(x,d,B,{tileID:H,tileSize:D},U):Mn(x,y),se=(f=d.style.map.terrain)===null||f===void 0?void 0:f.getTerrainData(H),ce=E.getMeshFromTileID(S,H.canonical,!1,!0,\"raster\");X.draw(S,M.TRIANGLES,N,q,G,lt.backCCW,te,se,Z,n.id,ce.vertexBuffer,ce.indexBuffer,ce.segments)}},sky:function(d,t){let n=d.context,s=n.gl,c=((M,E,I)=>{let D=Math.cos(E.rollInRadians),B=Math.sin(E.rollInRadians),V=dn(E),q=E.getProjectionData({overscaledTileID:null,applyGlobeMatrix:!0,applyTerrainMatrix:!0}).projectionTransition;return{u_sky_color:M.properties.get(\"sky-color\"),u_horizon_color:M.properties.get(\"horizon-color\"),u_horizon:[(E.width/2-V*B)*I,(E.height/2+V*D)*I],u_horizon_normal:[-B,D],u_sky_horizon_blend:M.properties.get(\"sky-horizon-blend\")*E.height/2*I,u_sky_blend:q}})(t,d.style.map.transform,d.pixelRatio),f=new Qe(s.LEQUAL,Qe.ReadWrite,[0,1]),y=ct.disabled,x=d.colorModeForRenderPass(),w=d.useProgram(\"sky\"),S=Sl(n,t);w.draw(n,s.TRIANGLES,f,y,x,lt.disabled,c,null,void 0,\"sky\",S.vertexBuffer,S.indexBuffer,S.segments)},atmosphere:function(d,t,n){let s=d.context,c=s.gl,f=d.useProgram(\"atmosphere\"),y=new Qe(c.LEQUAL,Qe.ReadOnly,[0,1]),x=d.transform,w=(function(q,N){let G=q.properties.get(\"position\"),X=[-G.x,-G.y,-G.z],$=h.ap(new Float64Array(16));return q.properties.get(\"anchor\")===\"map\"&&(h.be($,$,N.rollInRadians),h.bf($,$,-N.pitchInRadians),h.be($,$,N.bearingInRadians),h.bf($,$,N.center.lat*Math.PI/180),h.bI($,$,-N.center.lng*Math.PI/180)),h.cg(X,X,$),X})(n,d.transform),S=x.getProjectionData({overscaledTileID:null,applyGlobeMatrix:!0,applyTerrainMatrix:!0}),M=t.properties.get(\"atmosphere-blend\")*S.projectionTransition;if(M===0)return;let E=Zi(x.worldSize,x.center.lat),I=x.inverseProjectionMatrix,D=new Float64Array(4);D[3]=1,h.aE(D,D,x.modelViewProjectionMatrix),D[0]/=D[3],D[1]/=D[3],D[2]/=D[3],D[3]=1,h.aE(D,D,I),D[0]/=D[3],D[1]/=D[3],D[2]/=D[3],D[3]=1;let B=((q,N,G,X,$)=>({u_sun_pos:q,u_atmosphere_blend:N,u_globe_position:G,u_globe_radius:X,u_inv_proj_matrix:$}))(w,M,[D[0],D[1],D[2]],E,I),V=Sl(s,t);f.draw(s,c.TRIANGLES,y,ct.disabled,Ct.alphaBlended,lt.disabled,B,null,null,\"atmosphere\",V.vertexBuffer,V.indexBuffer,V.segments)},custom:function(d,t,n,s){let{isRenderingGlobe:c}=s,f=d.context,y=n.implementation,x=d.style.projection,w=d.transform,S=w.getProjectionDataForCustomLayer(c),M={farZ:w.farZ,nearZ:w.nearZ,fov:w.fov*Math.PI/180,modelViewProjectionMatrix:w.modelViewProjectionMatrix,projectionMatrix:w.projectionMatrix,shaderData:{variantName:x.shaderVariantName,vertexShaderPrelude:`const float PI = 3.141592653589793;\nuniform mat4 u_projection_matrix;\n${x.shaderPreludeCode.vertexSource}`,define:x.shaderDefine},defaultProjectionData:S},E=y.renderingMode?y.renderingMode:\"2d\";if(d.renderPass===\"offscreen\"){let I=y.prerender;I&&(d.setCustomLayerDefaults(),f.setColorMode(d.colorModeForRenderPass()),I.call(y,f.gl,M),f.setDirty(),d.setBaseState())}else if(d.renderPass===\"translucent\"){d.setCustomLayerDefaults(),f.setColorMode(d.colorModeForRenderPass()),f.setStencilMode(ct.disabled);let I=E===\"3d\"?d.getDepthModeFor3D():d.getDepthModeForSublayer(0,Qe.ReadOnly);f.setDepthMode(I),y.render(f.gl,M),f.setDirty(),d.setBaseState(),f.bindFramebuffer.set(null)}},debug:function(d,t,n){for(let s of n)eu(d,t,s)},debugPadding:function(d){let t=d.transform.padding;bl(d,d.transform.height-(t.top||0),3,Yc),bl(d,t.bottom||0,3,Kc),wl(d,t.left||0,3,Jc),wl(d,d.transform.width-(t.right||0),3,Qc);let n=d.transform.centerPoint;(function(s,c,f,y){Xo(s,c-1,f-10,2,20,y),Xo(s,c-10,f-1,20,2,y)})(d,n.x,d.transform.height-n.y,Qr)},terrainDepth:function(d,t){let n=d.context,s=n.gl,c=d.transform,f=Ct.unblended,y=new Qe(s.LEQUAL,Qe.ReadWrite,[0,1]),x=t.tileManager.getRenderableTiles(),w=d.useProgram(\"terrainDepth\");n.bindFramebuffer.set(t.getFramebuffer(\"depth\").framebuffer),n.viewport.set([0,0,d.width/devicePixelRatio,d.height/devicePixelRatio]),n.clear({color:h.bo.transparent,depth:1});for(let S of x){let M=t.getTerrainMesh(S.tileID),E=t.getTerrainData(S.tileID),I=c.getProjectionData({overscaledTileID:S.tileID,applyTerrainMatrix:!1,applyGlobeMatrix:!0}),D={u_ele_delta:t.getMeshFrameDelta(c.zoom)};w.draw(n,s.TRIANGLES,y,ct.disabled,f,lt.backCCW,D,E,I,\"terrain\",M.vertexBuffer,M.indexBuffer,M.segments)}n.bindFramebuffer.set(null),n.viewport.set([0,0,d.width,d.height])},terrainCoords:function(d,t){let n=d.context,s=n.gl,c=d.transform,f=Ct.unblended,y=new Qe(s.LEQUAL,Qe.ReadWrite,[0,1]),x=t.getCoordsTexture(),w=t.tileManager.getRenderableTiles(),S=d.useProgram(\"terrainCoords\");n.bindFramebuffer.set(t.getFramebuffer(\"coords\").framebuffer),n.viewport.set([0,0,d.width/devicePixelRatio,d.height/devicePixelRatio]),n.clear({color:h.bo.transparent,depth:1}),t.coordsIndex=[];for(let M of w){let E=t.getTerrainMesh(M.tileID),I=t.getTerrainData(M.tileID);n.activeTexture.set(s.TEXTURE0),s.bindTexture(s.TEXTURE_2D,x.texture);let D={u_terrain_coords_id:(255-t.coordsIndex.length)/255,u_texture:0,u_ele_delta:t.getMeshFrameDelta(c.zoom)},B=c.getProjectionData({overscaledTileID:M.tileID,applyTerrainMatrix:!1,applyGlobeMatrix:!0});S.draw(n,s.TRIANGLES,y,ct.disabled,f,lt.backCCW,D,I,B,\"terrain\",E.vertexBuffer,E.indexBuffer,E.segments),t.coordsIndex.push(M.tileID.key)}n.bindFramebuffer.set(null),n.viewport.set([0,0,d.width,d.height])}};class Yo{constructor(t,n){this.drawFunctions=tu,this.context=new Ha(t),this.transform=n,this._tileTextures={},this.terrainFacilitator={depthDirty:!0,coordsDirty:!1,matrix:h.ap(new Float64Array(16)),renderTime:0},this.setup(),this.numSublayers=ui.maxOverzooming+ui.maxUnderzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.crossTileSymbolIndex=new Vi}resize(t,n,s){if(this.width=Math.floor(t*s),this.height=Math.floor(n*s),this.pixelRatio=s,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(let c of this.style._order)this.style._layers[c].resize()}setup(){let t=this.context,n=new h.aU;n.emplaceBack(0,0),n.emplaceBack(h.a6,0),n.emplaceBack(0,h.a6),n.emplaceBack(h.a6,h.a6),this.tileExtentBuffer=t.createVertexBuffer(n,Yr.members),this.tileExtentSegments=h.aV.simpleSegment(0,0,4,2);let s=new h.aU;s.emplaceBack(0,0),s.emplaceBack(h.a6,0),s.emplaceBack(0,h.a6),s.emplaceBack(h.a6,h.a6),this.debugBuffer=t.createVertexBuffer(s,Yr.members),this.debugSegments=h.aV.simpleSegment(0,0,4,5);let c=new h.ch;c.emplaceBack(0,0,0,0),c.emplaceBack(h.a6,0,h.a6,0),c.emplaceBack(0,h.a6,0,h.a6),c.emplaceBack(h.a6,h.a6,h.a6,h.a6),this.rasterBoundsBuffer=t.createVertexBuffer(c,Oo.members),this.rasterBoundsSegments=h.aV.simpleSegment(0,0,4,2);let f=new h.aU;f.emplaceBack(0,0),f.emplaceBack(h.a6,0),f.emplaceBack(0,h.a6),f.emplaceBack(h.a6,h.a6),this.rasterBoundsBufferPosOnly=t.createVertexBuffer(f,Yr.members),this.rasterBoundsSegmentsPosOnly=h.aV.simpleSegment(0,0,4,5);let y=new h.aU;y.emplaceBack(0,0),y.emplaceBack(1,0),y.emplaceBack(0,1),y.emplaceBack(1,1),this.viewportBuffer=t.createVertexBuffer(y,Yr.members),this.viewportSegments=h.aV.simpleSegment(0,0,4,2);let x=new h.ci;x.emplaceBack(0),x.emplaceBack(1),x.emplaceBack(3),x.emplaceBack(2),x.emplaceBack(0),this.tileBorderIndexBuffer=t.createIndexBuffer(x);let w=new h.aW;w.emplaceBack(1,0,2),w.emplaceBack(1,2,3),this.quadTriangleIndexBuffer=t.createIndexBuffer(w);let S=this.context.gl;this.stencilClearMode=new ct({func:S.ALWAYS,mask:0},0,255,S.ZERO,S.ZERO,S.ZERO),this.tileExtentMesh=new Pt(this.tileExtentBuffer,this.quadTriangleIndexBuffer,this.tileExtentSegments)}clearStencil(){let t=this.context,n=t.gl;this.nextStencilID=1,this.currentStencilSource=void 0;let s=h.O();h.c7(s,0,this.width,this.height,0,0,1),h.S(s,s,[n.drawingBufferWidth,n.drawingBufferHeight,0]);let c={mainMatrix:s,tileMercatorCoords:[0,0,1,1],clippingPlane:[0,0,0,0],projectionTransition:0,fallbackMatrix:s};this.useProgram(\"clippingMask\",null,!0).draw(t,n.TRIANGLES,Qe.disabled,this.stencilClearMode,Ct.disabled,lt.disabled,null,null,c,\"$clipping\",this.viewportBuffer,this.quadTriangleIndexBuffer,this.viewportSegments)}_renderTileClippingMasks(t,n,s){if(this.currentStencilSource===t.source||!t.isTileClipped()||!n?.length)return;this.currentStencilSource=t.source,this.nextStencilID+n.length>256&&this.clearStencil();let c=this.context;c.setColorMode(Ct.disabled),c.setDepthMode(Qe.disabled);let f={};for(let y of n)f[y.key]=this.nextStencilID++;this._renderTileMasks(f,n,s,!0),this._renderTileMasks(f,n,s,!1),this._tileClippingMaskIDs=f}_renderTileMasks(t,n,s,c){var f;let y=this.context,x=y.gl,w=this.style.projection,S=this.transform,M=this.useProgram(\"clippingMask\");for(let E of n){let I=t[E.key],D=(f=this.style.map.terrain)===null||f===void 0?void 0:f.getTerrainData(E),B=w.getMeshFromTileID(this.context,E.canonical,c,!0,\"stencil\"),V=S.getProjectionData({overscaledTileID:E,applyGlobeMatrix:!s,applyTerrainMatrix:!0});M.draw(y,x.TRIANGLES,Qe.disabled,new ct({func:x.ALWAYS,mask:0},I,255,x.KEEP,x.KEEP,x.REPLACE),Ct.disabled,s?lt.disabled:lt.backCCW,null,D,V,\"$clipping\",B.vertexBuffer,B.indexBuffer,B.segments)}}_renderTilesDepthBuffer(){var t;let n=this.context,s=n.gl,c=this.style.projection,f=this.transform,y=this.useProgram(\"depth\"),x=this.getDepthModeFor3D(),w=pn(f,{tileSize:f.tileSize});for(let S of w){let M=(t=this.style.map.terrain)===null||t===void 0?void 0:t.getTerrainData(S),E=c.getMeshFromTileID(this.context,S.canonical,!0,!0,\"raster\"),I=f.getProjectionData({overscaledTileID:S,applyGlobeMatrix:!0,applyTerrainMatrix:!0});y.draw(n,s.TRIANGLES,x,ct.disabled,Ct.disabled,lt.backCCW,null,M,I,\"$clipping\",E.vertexBuffer,E.indexBuffer,E.segments)}}stencilModeFor3D(){this.currentStencilSource=void 0,this.nextStencilID+1>256&&this.clearStencil();let t=this.nextStencilID++,n=this.context.gl;return new ct({func:n.NOTEQUAL,mask:255},t,255,n.KEEP,n.KEEP,n.REPLACE)}stencilModeForClipping(t){let n=this.context.gl;return new ct({func:n.EQUAL,mask:255},this._tileClippingMaskIDs[t.key],0,n.KEEP,n.KEEP,n.REPLACE)}getStencilConfigForOverlapAndUpdateStencilID(t){let n=this.context.gl,s=t.sort(((y,x)=>x.overscaledZ-y.overscaledZ)),c=s[s.length-1].overscaledZ,f=s[0].overscaledZ-c+1;if(f>1){this.currentStencilSource=void 0,this.nextStencilID+f>256&&this.clearStencil();let y={};for(let x=0;xx.overscaledZ-y.overscaledZ)),c=s[s.length-1].overscaledZ,f=s[0].overscaledZ-c+1;if(this.clearStencil(),f>1){let y={},x={};for(let w=0;w0};for(let D in x){let B=x[D];B.used&&B.prepare(this.context),w[D]=B.getVisibleCoordinates(!1),S[D]=w[D].slice().reverse(),M[D]=B.getVisibleCoordinates(!0).reverse()}this.opaquePassCutoff=1/0;for(let D=0;Dthis.useProgram(D)}),this.context.viewport.set([0,0,this.width,this.height]),this.context.bindFramebuffer.set(null),this.context.clear({color:n.showOverdrawInspector?h.bo.black:h.bo.transparent,depth:1}),this.clearStencil(),this.style.sky&&this.drawFunctions.sky(this,this.style.sky),this._showOverdrawInspector=n.showOverdrawInspector,this.depthRangeFor3D=[0,1-(t._order.length+2)*this.numSublayers*this.depthEpsilon],!this.renderToTexture)for(this.renderPass=\"opaque\",this.currentLayer=y.length-1;this.currentLayer>=0;this.currentLayer--){let D=this.style._layers[y[this.currentLayer]],B=x[D.source],V=w[D.source];this._renderTileClippingMasks(D,V,!1),this.renderLayer(this,B,D,V,E)}this.renderPass=\"translucent\";let I=!1;for(this.currentLayer=0;this.currentLayerU.source&&!U.isHidden(V)?[B.tileManagers[U.source]]:[])),G=N.filter((U=>U.getSource().type===\"vector\")),X=N.filter((U=>U.getSource().type!==\"vector\")),$=U=>{(!q||q.getSource().maxzoom0?n.pop():null}isPatternMissing(t){if(!t)return!1;if(!t.from||!t.to)return!0;let n=this.imageManager.getPattern(t.from.toString()),s=this.imageManager.getPattern(t.to.toString());return!n||!s}useProgram(t,n,s=!1,c=[]){var f;this.cache||(this.cache={});let y=!!this.style.map.terrain,x=this.style.projection,w=s?Rt.projectionMercator:x.shaderPreludeCode,S=s?Ci:x.shaderDefine,M=t+(n?n.cacheKey:\"\")+`/${s?$i:x.shaderVariantName}`+(this._showOverdrawInspector?\"/overdraw\":\"\")+(y?\"/terrain\":\"\")+(c?`/${c.join(\"/\")}`:\"\");return(f=this.cache)[M]||(f[M]=new Ju(this.context,Rt[t],n,ih[t],this._showOverdrawInspector,y,w,S,c)),this.cache[M]}setCustomLayerDefaults(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()}setBaseState(){let t=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(t.FUNC_ADD)}initDebugOverlayCanvas(){this.debugOverlayCanvas==null&&(this.debugOverlayCanvas=document.createElement(\"canvas\"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,this.debugOverlayTexture=new h.T(this.context,this.debugOverlayCanvas,this.context.gl.RGBA))}destroy(){var t,n;if(this._tileTextures){for(let s in this._tileTextures){let c=this._tileTextures[s];if(c)for(let f of c)f.destroy()}this._tileTextures={}}if(this.tileExtentBuffer&&this.tileExtentBuffer.destroy(),this.debugBuffer&&this.debugBuffer.destroy(),this.rasterBoundsBuffer&&this.rasterBoundsBuffer.destroy(),this.rasterBoundsBufferPosOnly&&this.rasterBoundsBufferPosOnly.destroy(),this.viewportBuffer&&this.viewportBuffer.destroy(),this.tileBorderIndexBuffer&&this.tileBorderIndexBuffer.destroy(),this.quadTriangleIndexBuffer&&this.quadTriangleIndexBuffer.destroy(),this.tileExtentMesh&&((t=this.tileExtentMesh.vertexBuffer)===null||t===void 0||t.destroy()),this.tileExtentMesh&&((n=this.tileExtentMesh.indexBuffer)===null||n===void 0||n.destroy()),this.debugOverlayTexture&&this.debugOverlayTexture.destroy(),this.cache){for(let s in this.cache){let c=this.cache[s];c?.program&&this.context.gl.deleteProgram(c.program)}this.cache={}}this.context&&this.context.setDefault()}overLimit(){let{drawingBufferWidth:t,drawingBufferHeight:n}=this.context.gl;return this.width!==t||this.height!==n}}function Ml(d,t){let n,s=!1,c=null,f=()=>{c=null,s&&(d(...n),c=setTimeout(f,t),s=!1)};return(...y)=>(s=!0,n=y,c||f(),c)}Yo.MAX_TEXTURE_POOL_SIZE_PER_BUCKET=50;class Ko{constructor(t){this._getCurrentHash=()=>{let n=window.location.hash.replace(\"#\",\"\");if(this._hashName){let s,c=n.split(\"&\").map((f=>f.split(\"=\")));for(let f of c)f[0]===this._hashName&&(s=f);return(s&&s[1]||\"\").split(\"/\")}return n.split(\"/\")},this._onHashChange=()=>{let n=this._getCurrentHash();if(!this._isValidHash(n))return!1;let s=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(n[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+n[2],+n[1]],zoom:+n[0],bearing:s,pitch:+(n[4]||0)}),!0},this._updateHashUnthrottled=()=>{let n=window.location.href.replace(/(#.*)?$/,this.getHashString());window.history.replaceState(window.history.state,null,n)},this._removeHash=()=>{let n=this._getCurrentHash();if(n.length===0)return;let s=n.join(\"/\"),c=s;c.split(\"&\").length>0&&(c=c.split(\"&\")[0]),this._hashName&&(c=`${this._hashName}=${s}`);let f=window.location.hash.replace(c,\"\");f.startsWith(\"#&\")?f=f.slice(0,1)+f.slice(2):f===\"#\"&&(f=\"\");let y=window.location.href.replace(/(#.+)?$/,f);y=y.replace(\"&&\",\"&\"),window.history.replaceState(window.history.state,null,y)},this._updateHash=Ml(this._updateHashUnthrottled,300),this._hashName=t&&encodeURIComponent(t)}addTo(t){return this._map=t,addEventListener(\"hashchange\",this._onHashChange,!1),this._map.on(\"moveend\",this._updateHash),this}remove(){return removeEventListener(\"hashchange\",this._onHashChange,!1),this._map.off(\"moveend\",this._updateHash),clearTimeout(this._updateHash()),this._removeHash(),delete this._map,this}getHashString(t){let n=this._map.getCenter(),s=Math.round(100*this._map.getZoom())/100,c=Math.ceil((s*Math.LN2+Math.log(512/360/.5))/Math.LN10),f=Math.pow(10,c),y=Math.round(n.lng*f)/f,x=Math.round(n.lat*f)/f,w=this._map.getBearing(),S=this._map.getPitch(),M=\"\";if(M+=t?`/${y}/${x}/${s}`:`${s}/${x}/${y}`,(w||S)&&(M+=\"/\"+Math.round(10*w)/10),S&&(M+=`/${Math.round(S)}`),this._hashName){let E=this._hashName,I=!1,D=window.location.hash.slice(1).split(\"&\").map((B=>{let V=B.split(\"=\")[0];return V===E?(I=!0,`${V}=${M}`):B})).filter((B=>B));return I||D.push(`${E}=${M}`),`#${D.join(\"&\")}`}return`#${M}`}_isValidHash(t){if(t.length<3||t.some(isNaN))return!1;try{new h.W(+t[2],+t[1])}catch{return!1}let n=+t[0],s=+(t[3]||0),c=+(t[4]||0);return n>=this._map.getMinZoom()&&n<=this._map.getMaxZoom()&&s>=-180&&s<=180&&c>=this._map.getMinPitch()&&c<=this._map.getMaxPitch()}}let ho={linearity:.3,easing:h.cv(0,0,.3,1)},rr=h.e({deceleration:2500,maxSpeed:1400},ho),gr=h.e({deceleration:20,maxSpeed:1400},ho),iu=h.e({deceleration:1e3,maxSpeed:360},ho),_r=h.e({deceleration:1e3,maxSpeed:90},ho),dh=h.e({deceleration:1e3,maxSpeed:360},ho);class ph{constructor(t){this._map=t,this.clear()}clear(){this._inertiaBuffer=[]}record(t){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:Fe(),settings:t})}_drainInertiaBuffer(){let t=this._inertiaBuffer,n=Fe();for(;t.length>0&&n-t[0].time>160;)t.shift()}_onMoveEnd(t){if(this._drainInertiaBuffer(),this._inertiaBuffer.length<2)return;let n={zoom:0,bearing:0,pitch:0,roll:0,pan:new h.P(0,0),pinchAround:void 0,around:void 0};for(let{settings:f}of this._inertiaBuffer)n.zoom+=f.zoomDelta||0,n.bearing+=f.bearingDelta||0,n.pitch+=f.pitchDelta||0,n.roll+=f.rollDelta||0,f.panDelta&&n.pan._add(f.panDelta),f.around&&(n.around=f.around),f.pinchAround&&(n.pinchAround=f.pinchAround);let s=this._inertiaBuffer[this._inertiaBuffer.length-1].time-this._inertiaBuffer[0].time,c={};if(n.pan.mag()){let f=Tr(n.pan.mag(),s,h.e({},rr,t||{})),y=n.pan.mult(f.amount/n.pan.mag()),x=this._map.cameraHelper.handlePanInertia(y,this._map.transform);c.center=x.easingCenter,c.offset=x.easingOffset,Jo(c,f)}if(n.zoom){let f=Tr(n.zoom,s,gr);c.zoom=h.cw(this._map.transform.zoom+f.amount,this._map.getZoomSnap(),f.amount),Jo(c,f)}if(n.bearing){let f=Tr(n.bearing,s,iu);c.bearing=this._map.transform.bearing+h.al(f.amount,-179,179),Jo(c,f)}if(n.pitch){let f=Tr(n.pitch,s,_r);c.pitch=this._map.transform.pitch+f.amount,Jo(c,f)}if(n.roll){let f=Tr(n.roll,s,dh);c.roll=this._map.transform.roll+h.al(f.amount,-179,179),Jo(c,f)}if(c.zoom||c.bearing){let f=n.pinchAround===void 0?n.around:n.pinchAround;c.around=f?this._map.unproject(f):this._map.getCenter()}return this.clear(),h.e(c,{noMoveStart:!0})}}function Jo(d,t){(!d.duration||d.durationn.unproject(w))),x=f.reduce(((w,S,M,E)=>w.add(S.div(E.length))),new h.P(0,0));super(t,{points:f,point:x,lngLats:y,lngLat:n.unproject(x),originalEvent:s}),this._defaultPrevented=!1}}class ru extends h.n{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(t,n,s){super(t,{originalEvent:s}),this._defaultPrevented=!1}}class fh{constructor(t,n){this._map=t,this._clickTolerance=n.clickTolerance}reset(){delete this._mousedownPos}wheel(t){return this._firePreventable(new ru(t.type,this._map,t))}mousedown(t,n){return this._mousedownPos=n,this._firePreventable(new Hi(t.type,this._map,t))}mouseup(t){this._map.fire(new Hi(t.type,this._map,t))}click(t,n){this._mousedownPos&&this._mousedownPos.dist(n)>=this._clickTolerance||this._map.fire(new Hi(t.type,this._map,t))}dblclick(t){return this._firePreventable(new Hi(t.type,this._map,t))}mouseover(t){this._map.fire(new Hi(t.type,this._map,t))}mouseout(t){this._map.fire(new Hi(t.type,this._map,t))}touchstart(t){return this._firePreventable(new Qo(t.type,this._map,t))}touchmove(t){this._map.fire(new Qo(t.type,this._map,t))}touchend(t){this._map.fire(new Qo(t.type,this._map,t))}touchcancel(t){this._map.fire(new Qo(t.type,this._map,t))}_firePreventable(t){if(this._map.fire(t),t.defaultPrevented)return{}}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class nu{constructor(t){this._map=t}reset(){this._delayContextMenu=!1,this._ignoreContextMenu=!0,delete this._contextMenuEvent}mousemove(t){this._map.fire(new Hi(t.type,this._map,t))}mousedown(){this._delayContextMenu=!0,this._ignoreContextMenu=!1}mouseup(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new Hi(\"contextmenu\",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)}contextmenu(t){this._delayContextMenu?this._contextMenuEvent=t:this._ignoreContextMenu||this._map.fire(new Hi(t.type,this._map,t)),this._map.listens(\"contextmenu\")&&t.preventDefault()}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class Rr{constructor(t){this._map=t}get transform(){return this._map._requestedCameraState||this._map.transform}get center(){return{lng:this.transform.center.lng,lat:this.transform.center.lat}}get zoom(){return this.transform.zoom}get pitch(){return this.transform.pitch}get bearing(){return this.transform.bearing}unproject(t){return this.transform.screenPointToLocation(h.P.convert(t),this._map.terrain)}}class Sr{constructor(t,n){this._map=t,this._tr=new Rr(t),this._el=t.getCanvasContainer(),this._container=t.getContainer(),this._clickTolerance=n.clickTolerance||1,n.boxZoom&&typeof n.boxZoom==\"object\"&&(this._boxZoomEnd=n.boxZoom.boxZoomEnd)}isEnabled(){return!!this._enabled}isActive(){return!!this._active}enable(){this.isEnabled()||(this._enabled=!0)}disable(){this.isEnabled()&&(this._enabled=!1)}mousedown(t,n){this.isEnabled()&&t.shiftKey&&t.button===0&&(le.disableDrag(),this._startPos=this._lastPos=n,this._active=!0)}mousemoveWindow(t,n){if(!this._active)return;let s=n;if(this._lastPos.equals(s)||!this._box&&s.dist(this._startPos)f.fitScreenCoordinates(s,c,this._tr.bearing,{linear:!0})};this._fireEvent(\"boxzoomcancel\",t)}keydown(t){this._active&&t.keyCode===27&&(this.reset(),this._fireEvent(\"boxzoomcancel\",t))}reset(){this._active=!1,this._container.classList.remove(\"maplibregl-crosshair\"),this._box&&(this._box.remove(),this._box=null),le.enableDrag(),delete this._startPos,delete this._lastPos}_fireEvent(t,n){return this._map.fire(new h.n(t,{originalEvent:n}))}}function ze(d,t){if(d.length!==t.length)throw new Error(`The number of touches and points are not equal - touches ${d.length}, points ${t.length}`);let n={};for(let s=0;sthis.numTouches)&&(this.aborted=!0),this.aborted||(this.startTime===void 0&&(this.startTime=t.timeStamp),s.length===this.numTouches&&(this.centroid=(function(c){let f=new h.P(0,0);for(let y of c)f._add(y);return f.div(c.length)})(n),this.touches=ze(s,n)))}touchmove(t,n,s){if(this.aborted||!this.centroid)return;let c=ze(s,n);for(let f in this.touches){let y=c[f];(!y||y.dist(this.touches[f])>30)&&(this.aborted=!0)}}touchend(t,n,s){if((!this.centroid||t.timeStamp-this.startTime>500)&&(this.aborted=!0),s.length===0){let c=!this.aborted&&this.centroid;if(this.reset(),c)return c}}}class ea{constructor(t){this.singleTap=new ou(t),this.numTaps=t.numTaps,this.reset()}reset(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()}touchstart(t,n,s){this.singleTap.touchstart(t,n,s)}touchmove(t,n,s){this.singleTap.touchmove(t,n,s)}touchend(t,n,s){let c=this.singleTap.touchend(t,n,s);if(c){let f=t.timeStamp-this.lastTime<500,y=!this.lastTap||this.lastTap.dist(c)<30;if(f&&y||this.reset(),this.count++,this.lastTime=t.timeStamp,this.lastTap=c,this.count===this.numTaps)return this.reset(),c}}}class au{constructor(t){this._tr=new Rr(t),this._zoomIn=new ea({numTouches:1,numTaps:2}),this._zoomOut=new ea({numTouches:2,numTaps:1}),this.reset()}reset(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()}touchstart(t,n,s){this._zoomIn.touchstart(t,n,s),this._zoomOut.touchstart(t,n,s)}touchmove(t,n,s){this._zoomIn.touchmove(t,n,s),this._zoomOut.touchmove(t,n,s)}touchend(t,n,s){let c=this._zoomIn.touchend(t,n,s),f=this._zoomOut.touchend(t,n,s),y=this._tr;return c?(this._active=!0,t.preventDefault(),setTimeout((()=>this.reset()),0),{cameraAnimation:x=>x.easeTo({duration:300,zoom:h.cw(y.zoom+1,x.getZoomSnap()),around:y.unproject(c)},{originalEvent:t})}):f?(this._active=!0,t.preventDefault(),setTimeout((()=>this.reset()),0),{cameraAnimation:x=>x.easeTo({duration:300,zoom:h.cw(y.zoom-1,x.getZoomSnap()),around:y.unproject(f)},{originalEvent:t})}):void 0}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class Lr{constructor(t){this._enabled=!!t.enable,this._moveStateManager=t.moveStateManager,this._clickTolerance=t.clickTolerance||1,this._moveFunction=t.move,this._activateOnStart=!!t.activateOnStart,t.assignEvents(this),this.reset()}reset(t){this._active=!1,this._moved=!1,delete this._lastPoint,this._moveStateManager.endMove(t)}_move(...t){let n=this._moveFunction(...t);if(n.bearingDelta||n.pitchDelta||n.rollDelta||n.around||n.panDelta)return this._active=!0,n}dragStart(t,n){this.isEnabled()&&!this._lastPoint&&this._moveStateManager.isValidStartEvent(t)&&(this._moveStateManager.startMove(t),this._lastPoint=Array.isArray(n)?n[0]:n,this._activateOnStart&&this._lastPoint&&(this._active=!0))}dragMove(t,n){if(!this.isEnabled())return;let s=this._lastPoint;if(!s)return;if(t.preventDefault(),!this._moveStateManager.isValidMoveEvent(t))return void this.reset(t);let c=Array.isArray(n)?n[0]:n;return!this._moved&&c.dist(s)!0}),n=new su){this.mouseMoveStateManager=t,this.oneFingerTouchMoveStateManager=n}_executeRelevantHandler(t,n,s){return t instanceof MouseEvent?n(t):typeof TouchEvent<\"u\"&&t instanceof TouchEvent?s(t):void 0}startMove(t){this._executeRelevantHandler(t,(n=>{this.mouseMoveStateManager.startMove(n)}),(n=>{this.oneFingerTouchMoveStateManager.startMove(n)}))}endMove(t){this._executeRelevantHandler(t,(n=>{this.mouseMoveStateManager.endMove(n)}),(n=>{this.oneFingerTouchMoveStateManager.endMove(n)}))}isValidStartEvent(t){return this._executeRelevantHandler(t,(n=>this.mouseMoveStateManager.isValidStartEvent(n)),(n=>this.oneFingerTouchMoveStateManager.isValidStartEvent(n)))}isValidMoveEvent(t){return this._executeRelevantHandler(t,(n=>this.mouseMoveStateManager.isValidMoveEvent(n)),(n=>this.oneFingerTouchMoveStateManager.isValidMoveEvent(n)))}isValidEndEvent(t){return this._executeRelevantHandler(t,(n=>this.mouseMoveStateManager.isValidEndEvent(n)),(n=>this.oneFingerTouchMoveStateManager.isValidEndEvent(n)))}}let Ja=d=>{d.mousedown=d.dragStart,d.mousemoveWindow=d.dragMove,d.mouseup=d.dragEnd,d.contextmenu=t=>{t.preventDefault()}};class lu{constructor(t,n){this._clickTolerance=t.clickTolerance||1,this._map=n,this.reset()}reset(){this._active=!1,this._touches={},this._sum=new h.P(0,0)}_shouldBePrevented(t){return t<(this._map.cooperativeGestures.isEnabled()?2:1)}touchstart(t,n,s){return this._calculateTransform(t,n,s)}touchmove(t,n,s){if(this._active){if(!this._shouldBePrevented(s.length))return t.preventDefault(),this._calculateTransform(t,n,s);this._map.cooperativeGestures.notifyGestureBlocked(\"touch_pan\",t)}}touchend(t,n,s){this._calculateTransform(t,n,s),this._active&&this._shouldBePrevented(s.length)&&this.reset()}touchcancel(){this.reset()}_calculateTransform(t,n,s){s.length>0&&(this._active=!0);let c=ze(s,n),f=new h.P(0,0),y=new h.P(0,0),x=0;for(let S in c){let M=c[S],E=this._touches[S];E&&(f._add(M),y._add(M.sub(E)),x++,c[S]=M)}if(this._touches=c,this._shouldBePrevented(x)||!y.mag())return;let w=y.div(x);return this._sum._add(w),this._sum.mag()Math.abs(d.x)}class Fr extends El{constructor(t){super(),this._currentTouchCount=0,this._map=t}reset(){super.reset(),this._valid=void 0,delete this._firstMove,delete this._lastPoints}touchstart(t,n,s){super.touchstart(t,n,s),this._currentTouchCount=s.length}_start(t){this._lastPoints=t,zl(t[0].sub(t[1]))&&(this._valid=!1)}_move(t,n,s){if(this._map.cooperativeGestures.isEnabled()&&this._currentTouchCount<3)return;let c=t[0].sub(this._lastPoints[0]),f=t[1].sub(this._lastPoints[1]);return this._valid=this.gestureBeginsVertically(c,f,s.timeStamp),this._valid?(this._lastPoints=t,this._active=!0,{pitchDelta:(c.y+f.y)/2*-.5}):void 0}gestureBeginsVertically(t,n,s){if(this._valid!==void 0)return this._valid;let c=t.mag()>=2,f=n.mag()>=2;if(!c&&!f)return;if(!c||!f)return this._firstMove===void 0&&(this._firstMove=s),s-this._firstMove<100&&void 0;let y=t.y>0==n.y>0;return zl(t)&&zl(n)&&y}}let Et={panStep:100,bearingStep:15,pitchStep:10};class hu{constructor(t){this._tr=new Rr(t);let n=Et;this._panStep=n.panStep,this._bearingStep=n.bearingStep,this._pitchStep=n.pitchStep,this._rotationDisabled=!1}reset(){this._active=!1}keydown(t){if(t.altKey||t.ctrlKey||t.metaKey)return;let n=0,s=0,c=0,f=0,y=0;switch(t.keyCode){case 61:case 107:case 171:case 187:n=1;break;case 189:case 109:case 173:n=-1;break;case 37:t.shiftKey?s=-1:(t.preventDefault(),f=-1);break;case 39:t.shiftKey?s=1:(t.preventDefault(),f=1);break;case 38:t.shiftKey?c=1:(t.preventDefault(),y=-1);break;case 40:t.shiftKey?c=-1:(t.preventDefault(),y=1);break;default:return}return this._rotationDisabled&&(s=0,c=0),{cameraAnimation:x=>{let w=this._tr;x.easeTo({duration:300,easeId:\"keyboardHandler\",easing:es,zoom:n?h.cw(w.zoom+n*(t.shiftKey?2:1),x.getZoomSnap()):w.zoom,bearing:w.bearing+s*this._bearingStep,pitch:w.pitch+c*this._pitchStep,offset:[-f*this._panStep,-y*this._panStep],center:w.center},{originalEvent:t})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}disableRotation(){this._rotationDisabled=!0}enableRotation(){this._rotationDisabled=!1}}function es(d){return d*(2-d)}let ia=4.000244140625,Dl=1/450;class kl{constructor(t,n){this._onTimeout=s=>{this._type=\"wheel\",this._delta-=this._lastValue,this._active||this._start(s)},this._map=t,this._tr=new Rr(t),this._triggerRenderFrame=n,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=Dl}setZoomRate(t){this._defaultZoomRate=t}setWheelZoomRate(t){this._wheelZoomRate=t}isEnabled(){return!!this._enabled}isActive(){return!!this._active||this._finishTimeout!==void 0}isZooming(){return!!this._zooming}enable(t){this.isEnabled()||(this._enabled=!0,this._aroundCenter=!!t&&t.around===\"center\")}disable(){this.isEnabled()&&(this._enabled=!1)}_shouldBePrevented(t){return!!this._map.cooperativeGestures.isEnabled()&&!(t.ctrlKey||this._map.cooperativeGestures.isBypassed(t))}wheel(t){if(!this.isEnabled())return;if(this._shouldBePrevented(t))return void this._map.cooperativeGestures.notifyGestureBlocked(\"wheel_zoom\",t);let n=t.deltaMode===WheelEvent.DOM_DELTA_LINE?40*t.deltaY:t.deltaY,s=Fe(),c=s-(this._lastWheelEventTime||0);this._lastWheelEventTime=s,n!==0&&n%ia==0?this._type=\"wheel\":n!==0&&Math.abs(n)<4?this._type=\"trackpad\":c>400?(this._type=null,this._lastValue=n,this._timeout=setTimeout(this._onTimeout,40,t)):this._type||(this._type=Math.abs(c*n)<200?\"trackpad\":\"wheel\",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,n+=this._lastValue)),t.shiftKey&&n&&(n/=4),this._type&&(this._lastWheelEvent=t,this._delta-=n,this._active||this._start(t)),t.preventDefault()}_start(t){if(!this._delta)return;this._needsRerender=!1,this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);let n=le.mousePos(this._map.getCanvas(),t),s=this._tr;this._aroundPoint=this._aroundCenter?s.transform.locationToScreenPoint(h.W.convert(s.center)):n,this._needsRerender||(this._needsRerender=!0,this._triggerRenderFrame())}renderFrame(){if(!this._needsRerender||(this._needsRerender=!1,!this.isActive()))return;let t=this._tr.transform;if(typeof this._lastExpectedZoom==\"number\"){let x=t.zoom-this._lastExpectedZoom;typeof this._startZoom==\"number\"&&(this._startZoom+=x),typeof this._targetZoom==\"number\"&&(this._targetZoom+=x)}if(this._delta!==0){let x=this._type===\"wheel\"&&Math.abs(this._delta)>ia?this._wheelZoomRate:this._defaultZoomRate,w=2/(1+Math.exp(-Math.abs(this._delta*x)));this._delta<0&&w!==0&&(w=1/w);let S=typeof this._targetZoom!=\"number\"?t.scale:h.ao(this._targetZoom),M=t.applyConstrain(t.getCameraLngLat(),h.ar(S*w)).zoom,E=this._map.getZoomSnap();if(this._type===\"wheel\"&&E>0){let I=h.cw(t.zoom,E);this._targetZoom=h.cw(M,E,M-I)}else this._targetZoom=M;this._type===\"wheel\"&&(this._startZoom=t.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}let n=typeof this._targetZoom!=\"number\"?t.zoom:this._targetZoom,s=this._startZoom,c=this._easing,f,y=!1;if(this._type===\"wheel\"&&s&&c){let x=Fe()-this._lastWheelEventTime,w=Math.min((x+5)/200,1),S=c(w);f=h.H.number(s,n,S),w<1?this._needsRerender=!0:y=!0}else f=n,y=!0;return this._active=!0,y&&(this._active=!1,this._finishTimeout=setTimeout((()=>{this._zooming=!1,this._triggerRenderFrame(),delete this._targetZoom,delete this._lastExpectedZoom,delete this._finishTimeout}),200)),this._lastExpectedZoom=f,{noInertia:!0,needsRenderFrame:!y,zoomDelta:f-t.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}_smoothOutEasing(t){let n=h.cy;if(this._prevEase){let s=this._prevEase,c=(Fe()-s.start)/s.duration,f=s.easing(c+.01)-s.easing(c),y=.27/Math.sqrt(f*f+1e-4)*.01,x=Math.sqrt(.0729-y*y);n=h.cv(y,x,.25,1)}return this._prevEase={start:Fe(),duration:t,easing:n},n}reset(){this._active=!1,this._zooming=!1,delete this._targetZoom,delete this._lastExpectedZoom,this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout)}}class Rl{constructor(t,n){this._clickZoom=t,this._tapZoom=n}enable(){this._clickZoom.enable(),this._tapZoom.enable()}disable(){this._clickZoom.disable(),this._tapZoom.disable()}isEnabled(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()}isActive(){return this._clickZoom.isActive()||this._tapZoom.isActive()}}class du{constructor(t){this._tr=new Rr(t),this.reset()}reset(){this._active=!1}dblclick(t,n){return t.preventDefault(),{cameraAnimation:s=>{s.easeTo({duration:300,zoom:h.cw(this._tr.zoom+(t.shiftKey?-1:1),s.getZoomSnap()),around:this._tr.unproject(n)},{originalEvent:t})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class gh{constructor(){this._tap=new ea({numTouches:1,numTaps:1}),this._zoomRate=1,this.reset()}setZoomRate(t){this._zoomRate=t??1}reset(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,delete this._tapPoint,this._tap.reset()}touchstart(t,n,s){if(!this._swipePoint)if(this._tapTime){let c=n[0],f=t.timeStamp-this._tapTime<500,y=this._tapPoint.dist(c)<30;f&&y?s.length>0&&(this._swipePoint=c,this._swipeTouch=s[0].identifier):this.reset()}else this._tap.touchstart(t,n,s)}touchmove(t,n,s){if(this._tapTime){if(this._swipePoint){if(s[0].identifier!==this._swipeTouch)return;let c=n[0],f=c.y-this._swipePoint.y;return this._swipePoint=c,t.preventDefault(),this._active=!0,{zoomDelta:f/128*this._zoomRate}}}else this._tap.touchmove(t,n,s)}touchend(t,n,s){if(this._tapTime)this._swipePoint&&s.length===0&&this.reset();else{let c=this._tap.touchend(t,n,s);c&&(this._tapTime=t.timeStamp,this._tapPoint=c)}}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class yr{constructor(t,n,s){this._el=t,this._mousePan=n,this._touchPan=s}enable(t){this._inertiaOptions=t||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add(\"maplibregl-touch-drag-pan\")}disable(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove(\"maplibregl-touch-drag-pan\")}isEnabled(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()}isActive(){return this._mousePan.isActive()||this._touchPan.isActive()}}class ra{constructor(t,n,s,c){this._pitchWithRotate=t.pitchWithRotate,this._rollEnabled=t.rollEnabled,this._mouseRotate=n,this._mousePitch=s,this._mouseRoll=c}enable(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable(),this._rollEnabled&&this._mouseRoll.enable()}disable(){this._mouseRotate.disable(),this._mousePitch.disable(),this._mouseRoll.disable()}isEnabled(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())&&(!this._rollEnabled||this._mouseRoll.isEnabled())}isActive(){return this._mouseRotate.isActive()||this._mousePitch.isActive()||this._mouseRoll.isActive()}}class Le{constructor(t,n,s,c){this._el=t,this._touchZoom=n,this._touchRotate=s,this._tapDragZoom=c,this._rotationDisabled=!1,this._enabled=!0}enable(t){this._touchZoom.enable(t),this._rotationDisabled||this._touchRotate.enable(t),this._tapDragZoom.enable(),this._el.classList.add(\"maplibregl-touch-zoom-rotate\")}disable(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove(\"maplibregl-touch-zoom-rotate\")}isEnabled(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()}isActive(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()}setZoomRate(t){this._touchZoom.setZoomRate(t),this._tapDragZoom.setZoomRate(t)}setZoomThreshold(t){this._touchZoom.setZoomThreshold(t)}disableRotation(){this._rotationDisabled=!0,this._touchRotate.disable()}enableRotation(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()}}class Ue{constructor(t,n){this._bypassKey=navigator.userAgent.includes(\"Mac\")?\"metaKey\":\"ctrlKey\",this._map=t,this._options=n,this._enabled=!1}isActive(){return!1}reset(){}_setupUI(){if(this._container)return;let t=this._map.getCanvasContainer();t.classList.add(\"maplibregl-cooperative-gestures\"),this._container=le.create(\"div\",\"maplibregl-cooperative-gesture-screen\",t);let n=this._map._getUIString(\"CooperativeGesturesHandler.WindowsHelpText\");this._bypassKey===\"metaKey\"&&(n=this._map._getUIString(\"CooperativeGesturesHandler.MacHelpText\"));let s=this._map._getUIString(\"CooperativeGesturesHandler.MobileHelpText\"),c=document.createElement(\"div\");c.className=\"maplibregl-desktop-message\",c.textContent=n,this._container.appendChild(c);let f=document.createElement(\"div\");f.className=\"maplibregl-mobile-message\",f.textContent=s,this._container.appendChild(f),this._container.setAttribute(\"aria-hidden\",\"true\")}_destroyUI(){this._container&&(this._container.remove(),this._map.getCanvasContainer().classList.remove(\"maplibregl-cooperative-gestures\")),delete this._container}enable(){this._setupUI(),this._enabled=!0}disable(){this._enabled=!1,this._destroyUI()}isEnabled(){return this._enabled}isBypassed(t){return t[this._bypassKey]}notifyGestureBlocked(t,n){this._enabled&&(this._map.fire(new h.n(\"cooperativegestureprevented\",{gestureType:t,originalEvent:n})),this._container.classList.add(\"maplibregl-show\"),setTimeout((()=>{this._container.classList.remove(\"maplibregl-show\")}),100))}}let en=d=>d.zoom||d.drag||d.roll||d.pitch||d.rotate;class pu extends h.n{}function po(d){var t;return((t=d.panDelta)===null||t===void 0?void 0:t.mag())||d.zoomDelta||d.bearingDelta||d.pitchDelta||d.rollDelta}class Ii{get _ownerDocument(){var t;return((t=this._el)===null||t===void 0?void 0:t.ownerDocument)||document}get _ownerWindow(){var t,n;return((n=(t=this._el)===null||t===void 0?void 0:t.ownerDocument)===null||n===void 0?void 0:n.defaultView)||window}constructor(t,n){this.handleWindowEvent=c=>{this.handleEvent(c,`${c.type}Window`)},this.handleEvent=(c,f)=>{if(c.type===\"blur\")return void this.stop(!0);this._updatingCamera=!0;let y=c.type===\"renderFrame\"?void 0:c,x={needsRenderFrame:!1},w={},S={};for(let{handlerName:I,handler:D,allowed:B}of this._handlers){if(!D.isEnabled())continue;let V;if(this._blockedByActive(S,B,I))D.reset();else if(D[f||c.type]){if(h.cz(c,f||c.type)){let q=le.mousePos(this._map.getCanvas(),c);V=D[f||c.type](c,q)}else if(h.cA(c,f||c.type)){let q=this._getMapTouches(c.touches),N=le.touchPos(this._map.getCanvas(),q);V=D[f||c.type](c,N,q)}else h.cB(f||c.type)||(V=D[f||c.type](c));this.mergeHandlerResult(x,w,V,I,y),V?.needsRenderFrame&&this._triggerRenderFrame()}(V||D.isActive())&&(S[I]=D)}let M={};for(let I in this._previousActiveHandlers)S[I]||(M[I]=y);this._previousActiveHandlers=S,(Object.keys(M).length||po(x))&&(this._changes.push([x,w,M]),this._triggerRenderFrame()),(Object.keys(S).length||po(x))&&this._map._stop(!0),this._updatingCamera=!1;let{cameraAnimation:E}=x;E&&(this._inertia.clear(),this._fireEvents({},{},!0),this._changes=[],E(this._map))},this._map=t,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new ph(t),this._bearingSnap=n.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(n);let s=this._el;this._listeners=[[s,\"touchstart\",{passive:!0}],[s,\"touchmove\",{passive:!1}],[s,\"touchend\",void 0],[s,\"touchcancel\",void 0],[s,\"mousedown\",void 0],[s,\"mousemove\",void 0],[s,\"mouseup\",void 0],[this._ownerDocument,\"mousemove\",{capture:!0}],[this._ownerDocument,\"mouseup\",void 0],[s,\"mouseover\",void 0],[s,\"mouseout\",void 0],[s,\"dblclick\",void 0],[s,\"click\",void 0],[s,\"keydown\",{capture:!1}],[s,\"keyup\",void 0],[s,\"wheel\",{passive:!1}],[s,\"contextmenu\",void 0],[this._ownerWindow,\"blur\",void 0]];for(let[c,f,y]of this._listeners)c.addEventListener(f,c===this._ownerDocument?this.handleWindowEvent:this.handleEvent,y)}destroy(){for(let[t,n,s]of this._listeners)t.removeEventListener(n,t===this._ownerDocument?this.handleWindowEvent:this.handleEvent,s)}_addDefaultHandlers(t){let n=this._map,s=n.getCanvasContainer();this._add(\"mapEvent\",new fh(n,t));let c=n.boxZoom=new Sr(n,t);this._add(\"boxZoom\",c),t.interactive&&t.boxZoom&&c.enable();let f=n.cooperativeGestures=new Ue(n,t.cooperativeGestures);this._add(\"cooperativeGestures\",f),t.cooperativeGestures&&f.enable();let y=new au(n),x=new du(n);n.doubleClickZoom=new Rl(x,y),this._add(\"tapZoom\",y),this._add(\"clickZoom\",x),t.interactive&&t.doubleClickZoom&&n.doubleClickZoom.enable();let w=new gh;this._add(\"tapDragZoom\",w);let S=n.touchPitch=new Fr(n);this._add(\"touchPitch\",S),t.interactive&&t.touchPitch&&n.touchPitch.enable(t.touchPitch);let M=()=>n.project(n.getCenter()),E=(function({enable:$,clickTolerance:U,aroundCenter:H=!0,minPixelCenterThreshold:Z=100,rotateDegreesPerPixelMoved:te=.8},se){let ce=new zn({checkCorrectEvent:_e=>_e.button===0&&_e.ctrlKey||_e.button===2&&!_e.ctrlKey});return new Lr({clickTolerance:U,move:(_e,ge)=>{let Re=se();if(H&&Math.abs(Re.y-_e.y)>Z)return{bearingDelta:h.cx(new h.P(_e.x,ge.y),ge,Re)};let Ce=(ge.x-_e.x)*te;return H&&ge.yte.button===0&&te.ctrlKey||te.button===2});return new Lr({clickTolerance:U,move:(te,se)=>({pitchDelta:(se.y-te.y)*H}),moveStateManager:Z,enable:$,assignEvents:Ja})})(t),D=(function({enable:$,clickTolerance:U,rollDegreesPerPixelMoved:H=.3},Z){let te=new zn({checkCorrectEvent:se=>se.button===2&&se.ctrlKey});return new Lr({clickTolerance:U,move:(se,ce)=>{let _e=Z(),ge=(ce.x-se.x)*H;return ce.y<_e.y&&(ge=-ge),{rollDelta:ge}},moveStateManager:te,enable:$,assignEvents:Ja})})(t,M);n.dragRotate=new ra(t,E,I,D),this._add(\"mouseRotate\",E,[\"mousePitch\"]),this._add(\"mousePitch\",I,[\"mouseRotate\",\"mouseRoll\"]),this._add(\"mouseRoll\",D,[\"mousePitch\"]),t.interactive&&t.dragRotate&&n.dragRotate.enable();let B=(function({enable:$,clickTolerance:U}){let H=new zn({checkCorrectEvent:Z=>Z.button===0&&!Z.ctrlKey});return new Lr({clickTolerance:U,move:(Z,te)=>({around:te,panDelta:te.sub(Z)}),activateOnStart:!0,moveStateManager:H,enable:$,assignEvents:Ja})})(t),V=new lu(t,n);n.dragPan=new yr(s,B,V),this._add(\"mousePan\",B),this._add(\"touchPan\",V,[\"touchZoom\",\"touchRotate\"]),t.interactive&&t.dragPan&&n.dragPan.enable(t.dragPan);let q=new uu,N=new cu;n.touchZoomRotate=new Le(s,N,q,w),this._add(\"touchRotate\",q,[\"touchPan\",\"touchZoom\"]),this._add(\"touchZoom\",N,[\"touchPan\",\"touchRotate\"]),t.interactive&&t.touchZoomRotate&&n.touchZoomRotate.enable(t.touchZoomRotate),this._add(\"blockableMapEvent\",new nu(n));let G=n.scrollZoom=new kl(n,(()=>this._triggerRenderFrame()));this._add(\"scrollZoom\",G,[\"mousePan\"]),t.interactive&&t.scrollZoom&&n.scrollZoom.enable(t.scrollZoom);let X=n.keyboard=new hu(n);this._add(\"keyboard\",X),t.interactive&&t.keyboard&&n.keyboard.enable()}_add(t,n,s){this._handlers.push({handlerName:t,handler:n,allowed:s}),this._handlersById[t]=n}stop(t){if(!this._updatingCamera){for(let{handler:n}of this._handlers)n.reset();this._inertia.clear(),this._fireEvents({},{},t),this._changes=[]}}isActive(){for(let{handler:t}of this._handlers)if(t.isActive())return!0;return!1}isZooming(){return!!this._eventsInProgress.zoom||this._map.scrollZoom.isZooming()}isRotating(){return!!this._eventsInProgress.rotate}isMoving(){return!!en(this._eventsInProgress)||this.isZooming()}_blockedByActive(t,n,s){for(let c in t)if(c!==s&&!n?.includes(c))return!0;return!1}_getMapTouches(t){let n=[];for(let s of t)this._el.contains(s.target)&&n.push(s);return n}mergeHandlerResult(t,n,s,c,f){if(!s)return;h.e(t,s);let y={handlerName:c,originalEvent:s.originalEvent||f};s.zoomDelta!==void 0&&(n.zoom=y),s.panDelta!==void 0&&(n.drag=y),s.rollDelta!==void 0&&(n.roll=y),s.pitchDelta!==void 0&&(n.pitch=y),s.bearingDelta!==void 0&&(n.rotate=y)}_applyChanges(){let t={},n={},s={};for(let[c,f,y]of this._changes)c.panDelta&&(t.panDelta=(t.panDelta||new h.P(0,0))._add(c.panDelta)),c.zoomDelta&&(t.zoomDelta=(t.zoomDelta||0)+c.zoomDelta),c.bearingDelta&&(t.bearingDelta=(t.bearingDelta||0)+c.bearingDelta),c.pitchDelta&&(t.pitchDelta=(t.pitchDelta||0)+c.pitchDelta),c.rollDelta&&(t.rollDelta=(t.rollDelta||0)+c.rollDelta),c.around!==void 0&&(t.around=c.around),c.pinchAround!==void 0&&(t.pinchAround=c.pinchAround),c.noInertia&&(t.noInertia=c.noInertia),h.e(n,f),h.e(s,y);this._updateMapTransform(t,n,s),this._changes=[]}_updateMapTransform(t,n,s){let c=this._map,f=c._getTransformForUpdate(),y=c.terrain;if(!(po(t)||y&&this._terrainMovement))return void this._fireEvents(n,s,!0);c._stop(!0);let{panDelta:x,zoomDelta:w,bearingDelta:S,pitchDelta:M,rollDelta:E,around:I,pinchAround:D}=t;D!==void 0&&(I=D),I||(I=c.transform.centerPoint),y&&!f.isPointOnMapSurface(I)&&(I=f.centerPoint);let B={panDelta:x,zoomDelta:w,rollDelta:E,pitchDelta:M,bearingDelta:S,around:I};this._map.cameraHelper.useGlobeControls&&!f.isPointOnMapSurface(I)&&(I=f.centerPoint);let V=I.distSqr(f.centerPoint)<.01?f.center:f.screenPointToLocation(x?I.sub(x):I);this._handleMapControls({terrain:y,tr:f,deltasForHelper:B,preZoomAroundLoc:V,combinedEventsInProgress:n,panDelta:x}),c._applyUpdatedTransform(f),this._map._update(),t.noInertia||this._inertia.record(t),this._fireEvents(n,s,!0)}_handleMapControls({terrain:t,tr:n,deltasForHelper:s,preZoomAroundLoc:c,combinedEventsInProgress:f,panDelta:y}){let x=this._map.cameraHelper;if(x.handleMapControlsRollPitchBearingZoom(s,n),t)return x.useGlobeControls?(this._terrainMovement||!f.drag&&!f.zoom||(this._terrainMovement=!0,this._map._elevationFreeze=!0),void x.handleMapControlsPan(s,n,c)):this._terrainMovement||!f.drag&&!f.zoom?void(f.drag&&this._terrainMovement&&y?n.setCenter(n.screenPointToLocation(n.centerPoint.sub(y))):x.handleMapControlsPan(s,n,c)):(this._terrainMovement=!0,this._map._elevationFreeze=!0,void x.handleMapControlsPan(s,n,c));x.handleMapControlsPan(s,n,c)}_fireEvents(t,n,s){let c=en(this._eventsInProgress),f=en(t),y={};for(let E in t){let{originalEvent:I}=t[E];this._eventsInProgress[E]||(y[`${E}start`]=I),this._eventsInProgress[E]=t[E]}!c&&f&&this._fireEvent(\"movestart\",f.originalEvent);for(let E in y)this._fireEvent(E,y[E]);f&&this._fireEvent(\"move\",f.originalEvent);for(let E in t){let{originalEvent:I}=t[E];this._fireEvent(E,I)}let x={},w;for(let E in this._eventsInProgress){let{handlerName:I,originalEvent:D}=this._eventsInProgress[E];this._handlersById[I].isActive()||(delete this._eventsInProgress[E],w=n[I]||D,x[`${E}end`]=w)}for(let E in x)this._fireEvent(E,x[E]);let S=en(this._eventsInProgress),M=(c||f)&&!S;if(M&&this._terrainMovement){this._map._elevationFreeze=!1,this._terrainMovement=!1;let E=this._map._getTransformForUpdate();this._map.getCenterClampedToGround()&&E.recalculateZoomAndCenter(this._map.terrain),this._map._applyUpdatedTransform(E)}if(s&&M){this._updatingCamera=!0;let E=this._inertia._onMoveEnd(this._map.dragPan._inertiaOptions),I=D=>D!==0&&-this._bearingSnap{delete this._frameId,this.handleEvent(new pu(\"renderFrame\",{timeStamp:t})),this._applyChanges()}))}_triggerRenderFrame(){this._frameId===void 0&&(this._frameId=this._requestFrame())}}class fu extends h.E{constructor(t,n,s){super(),this._renderFrameCallback=()=>{let c=Math.min((Fe()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(c)),c<1&&this._easeFrameId?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},this._moving=!1,this._zooming=!1,this.transform=t,this._bearingSnap=s.bearingSnap,this._zoomSnap=s.zoomSnap,this.cameraHelper=n,this.on(\"moveend\",(()=>{delete this._requestedCameraState}))}migrateProjection(t,n){t.apply(this.transform,!0),this.transform=t,this.cameraHelper=n}getCenter(){return new h.W(this.transform.center.lng,this.transform.center.lat)}setCenter(t,n){return this.jumpTo({center:t},n)}getCenterElevation(){return this.transform.elevation}setCenterElevation(t,n){return this.jumpTo({elevation:t},n),this}getCenterClampedToGround(){return this._centerClampedToGround}setCenterClampedToGround(t){this._centerClampedToGround=t}panBy(t,n,s){return t=h.P.convert(t).mult(-1),this.panTo(this.transform.center,h.e({offset:t},n),s)}panTo(t,n,s){return this.easeTo(h.e({center:t},n),s)}getZoom(){return this.transform.zoom}setZoom(t,n){return this.jumpTo({zoom:t},n),this}zoomTo(t,n,s){return this.easeTo(h.e({zoom:t},n),s)}zoomIn(t,n){return this.zoomTo(h.cw(this.getZoom()+1,this._zoomSnap),t,n),this}zoomOut(t,n){return this.zoomTo(h.cw(this.getZoom()-1,this._zoomSnap),t,n),this}getVerticalFieldOfView(){return this.transform.fov}setVerticalFieldOfView(t,n){return t!=this.transform.fov&&(this.transform.setFov(t),this.fire(new h.n(\"movestart\",n)).fire(new h.n(\"move\",n)).fire(new h.n(\"moveend\",n))),this}getBearing(){return this.transform.bearing}setZoomSnap(t){return this._zoomSnap=t,this}getZoomSnap(){return this._zoomSnap}setBearing(t,n){return this.jumpTo({bearing:t},n),this}getPadding(){return this.transform.padding}setPadding(t,n){return this.jumpTo({padding:t},n),this}rotateTo(t,n,s){return this.easeTo(h.e({bearing:t},n),s)}resetNorth(t,n){return this.rotateTo(0,h.e({duration:1e3},t),n),this}resetNorthPitch(t,n){return this.easeTo(h.e({bearing:0,pitch:0,roll:0,duration:1e3},t),n),this}snapToNorth(t,n){return Math.abs(this.getBearing()){V.easeFunc(q),this.terrain&&!t.freezeElevation&&this._updateElevation(q),this._applyUpdatedTransform(s),this._fireMoveEvents(n)}),(q=>{this.terrain&&t.freezeElevation&&this._finalizeElevation(),this._afterEase(n,q)}),t),this}_prepareEase(t,n,s={}){this._moving=!0,n||s.moving||this.fire(new h.n(\"movestart\",t)),this._zooming&&!s.zooming&&this.fire(new h.n(\"zoomstart\",t)),this._rotating&&!s.rotating&&this.fire(new h.n(\"rotatestart\",t)),this._pitching&&!s.pitching&&this.fire(new h.n(\"pitchstart\",t)),this._rolling&&!s.rolling&&this.fire(new h.n(\"rollstart\",t))}_prepareElevation(t){this._elevationCenter=t,this._elevationStart=this.transform.elevation,this._elevationTarget=this.terrain.getElevationForLngLatZoom(t,this.transform.tileZoom),this._elevationFreeze=!0}_updateElevation(t){this._elevationStart!==void 0&&this._elevationCenter!==void 0||this._prepareElevation(this.transform.center),this.transform.setMinElevationForCurrentTile(this.terrain.getMinTileElevationForLngLatZoom(this._elevationCenter,this.transform.tileZoom));let n=this.terrain.getElevationForLngLatZoom(this._elevationCenter,this.transform.tileZoom);if(t<1&&n!==this._elevationTarget){let s=this._elevationTarget-this._elevationStart;this._elevationStart+=t*(s-(n-(s*t+this._elevationStart))/(1-t)),this._elevationTarget=n}this.transform.setElevation(h.H.number(this._elevationStart,this._elevationTarget,t))}_finalizeElevation(){this._elevationFreeze=!1,this.getCenterClampedToGround()&&this.transform.recalculateZoomAndCenter(this.terrain)}_getTransformForUpdate(){return this.transformCameraUpdate||this.terrain?(this._requestedCameraState||(this._requestedCameraState=this.transform.clone()),this._requestedCameraState):this.transform}_elevateCameraIfInsideTerrain(t){if(!this.terrain&&t.elevation>=0&&t.pitch<=90)return{};let n=t.getCameraLngLat(),s=t.getCameraAltitude(),c=this.terrain?this.terrain.getElevationForLngLatZoom(n,t.zoom):0;if(sthis._elevateCameraIfInsideTerrain(c))),this.transformCameraUpdate&&n.push((c=>this.transformCameraUpdate(c))),!n.length)return;let s=t.clone();for(let c of n){let f=s.clone(),{center:y,zoom:x,roll:w,pitch:S,bearing:M,elevation:E}=c(f);y&&f.setCenter(y),E!==void 0&&f.setElevation(E),x!==void 0&&f.setZoom(x),w!==void 0&&f.setRoll(w),S!==void 0&&f.setPitch(S),M!==void 0&&f.setBearing(M),s.apply(f,!1)}this.transform.apply(s,!1)}_fireMoveEvents(t){this.fire(new h.n(\"move\",t)),this._zooming&&this.fire(new h.n(\"zoom\",t)),this._rotating&&this.fire(new h.n(\"rotate\",t)),this._pitching&&this.fire(new h.n(\"pitch\",t)),this._rolling&&this.fire(new h.n(\"roll\",t))}_afterEase(t,n){if(this._easeId&&n&&this._easeId===n)return;delete this._easeId;let s=this._zooming,c=this._rotating,f=this._pitching,y=this._rolling;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._rolling=!1,this._padding=!1,s&&this.fire(new h.n(\"zoomend\",t)),c&&this.fire(new h.n(\"rotateend\",t)),f&&this.fire(new h.n(\"pitchend\",t)),y&&this.fire(new h.n(\"rollend\",t)),this.fire(new h.n(\"moveend\",t))}flyTo(t,n){if(!t.essential&&Ge.prefersReducedMotion){let ge=h.V(t,[\"center\",\"zoom\",\"bearing\",\"pitch\",\"roll\",\"elevation\",\"padding\"]);return this.jumpTo(ge,n)}this.stop(),\"zoom\"in(t=h.e({offset:[0,0],speed:1.2,curve:1.42,easing:h.cy},t))&&this._zoomSnap&&(t.zoom=h.cw(t.zoom,this._zoomSnap));let s=this._getTransformForUpdate(),c=s.bearing,f=s.pitch,y=s.roll,x=s.padding,w=\"bearing\"in t?this._normalizeBearing(t.bearing,c):c,S=\"pitch\"in t?+t.pitch:f,M=\"roll\"in t?this._normalizeBearing(t.roll,y):y,E=\"padding\"in t?t.padding:s.padding,I=h.P.convert(t.offset),D=s.centerPoint.add(I),B=s.screenPointToLocation(D),V=this.cameraHelper.handleFlyTo(s,{bearing:w,pitch:S,roll:M,padding:E,locationAtOffset:B,offsetAsPoint:I,center:t.center,minZoom:t.minZoom,zoom:t.zoom}),q=t.curve,N=Math.max(s.width,s.height),G=N/V.scaleOfZoom,X=V.pixelPathLength;typeof V.scaleOfMinZoom==\"number\"&&(q=Math.sqrt(N/V.scaleOfMinZoom/X*2));let $=q*q;function U(ge){let Re=(G*G-N*N+(ge?-1:1)*$*$*X*X)/(2*(ge?G:N)*$*X);return Math.log(Math.sqrt(Re*Re+1)-Re)}function H(ge){return(Math.exp(ge)-Math.exp(-ge))/2}function Z(ge){return(Math.exp(ge)+Math.exp(-ge))/2}let te=U(!1),se=function(ge){return Z(te)/Z(te+q*ge)},ce=function(ge){return N*((Z(te)*(H(Re=te+q*ge)/Z(Re))-H(te))/$)/X;var Re},_e=(U(!0)-te)/q;if(Math.abs(X)<2e-6||!isFinite(_e)){if(Math.abs(N-G)<1e-6)return this.easeTo(t,n);let ge=G0,se=Re=>Math.exp(ge*q*Re)}return t.duration=\"duration\"in t?+t.duration:1e3*_e/(\"screenSpeed\"in t?+t.screenSpeed/q:+t.speed),t.maxDuration&&t.duration>t.maxDuration&&(t.duration=0),this._zooming=!0,this._rotating=c!==w,this._pitching=S!==f,this._rolling=M!==y,this._padding=!s.isPaddingEqual(E),this._prepareEase(n,!1),this.terrain&&this._prepareElevation(V.targetCenter),this._ease((ge=>{let Re=ge*_e,Ce=1/se(Re),me=ce(Re);this._rotating&&s.setBearing(h.H.number(c,w,ge)),this._pitching&&s.setPitch(h.H.number(f,S,ge)),this._rolling&&s.setRoll(h.H.number(y,M,ge)),this._padding&&(s.interpolatePadding(x,E,ge),D=s.centerPoint.add(I)),V.easeFunc(ge,Ce,me,D),this.terrain&&!t.freezeElevation&&this._updateElevation(ge),this._applyUpdatedTransform(s),this._fireMoveEvents(n)}),(()=>{this.terrain&&t.freezeElevation&&this._finalizeElevation(),this._afterEase(n)}),t),this}isEasing(){return!!this._easeFrameId}stop(){return this._stop()}_stop(t,n){var s;if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){let c=this._onEaseEnd;delete this._onEaseEnd,c.call(this,n)}return t||(s=this.handlers)===null||s===void 0||s.stop(!1),this}_ease(t,n,s){s.animate===!1||s.duration===0?(t(1),n()):(this._easeStart=Fe(),this._easeOptions=s,this._onEaseFrame=t,this._onEaseEnd=n,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))}_normalizeBearing(t,n){t=h.X(t,-180,180);let s=Math.abs(t-n);return Math.abs(t-360-n)MapLibre'};class nr{constructor(t=ts){this._toggleAttribution=()=>{this._container.classList.contains(\"maplibregl-compact\")&&(this._container.classList.contains(\"maplibregl-compact-show\")?(this._container.setAttribute(\"open\",\"\"),this._container.classList.remove(\"maplibregl-compact-show\")):(this._container.classList.add(\"maplibregl-compact-show\"),this._container.removeAttribute(\"open\")))},this._updateData=n=>{!n||n.sourceDataType!==\"metadata\"&&n.sourceDataType!==\"visibility\"&&n.dataType!==\"style\"&&n.type!==\"terrain\"||this._updateAttributions()},this._updateCompact=()=>{this._map.getCanvasContainer().offsetWidth<=640||this._compact?this._compact===!1?this._container.setAttribute(\"open\",\"\"):this._container.classList.contains(\"maplibregl-compact\")||this._container.classList.contains(\"maplibregl-attrib-empty\")||(this._container.setAttribute(\"open\",\"\"),this._container.classList.add(\"maplibregl-compact\",\"maplibregl-compact-show\")):(this._container.setAttribute(\"open\",\"\"),this._container.classList.contains(\"maplibregl-compact\")&&this._container.classList.remove(\"maplibregl-compact\",\"maplibregl-compact-show\"))},this._updateCompactMinimize=()=>{this._container.classList.contains(\"maplibregl-compact\")&&this._container.classList.contains(\"maplibregl-compact-show\")&&this._container.classList.remove(\"maplibregl-compact-show\")},this.options=t}getDefaultPosition(){return\"bottom-right\"}onAdd(t){return this._map=t,this._compact=this.options.compact,this._container=le.create(\"details\",\"maplibregl-ctrl maplibregl-ctrl-attrib\"),this._compactButton=le.create(\"summary\",\"maplibregl-ctrl-attrib-button\",this._container),this._compactButton.addEventListener(\"click\",this._toggleAttribution),this._setElementTitle(this._compactButton,\"ToggleAttribution\"),this._innerContainer=le.create(\"div\",\"maplibregl-ctrl-attrib-inner\",this._container),this._updateAttributions(),this._updateCompact(),this._map.on(\"styledata\",this._updateData),this._map.on(\"sourcedata\",this._updateData),this._map.on(\"terrain\",this._updateData),this._map.on(\"resize\",this._updateCompact),this._map.on(\"drag\",this._updateCompactMinimize),this._container}onRemove(){this._container.remove(),this._map.off(\"styledata\",this._updateData),this._map.off(\"sourcedata\",this._updateData),this._map.off(\"terrain\",this._updateData),this._map.off(\"resize\",this._updateCompact),this._map.off(\"drag\",this._updateCompactMinimize),this._map=void 0,this._compact=void 0,this._attribHTML=void 0}_setElementTitle(t,n){let s=this._map._getUIString(`AttributionControl.${n}`);t.title=s,t.setAttribute(\"aria-label\",s)}_updateAttributions(){if(!this._map.style)return;let t=[];if(this.options.customAttribution&&(Array.isArray(this.options.customAttribution)?t=t.concat(this.options.customAttribution.map((c=>typeof c!=\"string\"?\"\":c))):typeof this.options.customAttribution==\"string\"&&t.push(this.options.customAttribution)),this._map.style.stylesheet){let c=this._map.style.stylesheet;this.styleOwner=c.owner,this.styleId=c.id}let n=this._map.style.tileManagers;for(let c in n){let f=n[c];if(f.used||f.usedForTerrain){let y=f.getSource();y.attribution&&!t.includes(y.attribution)&&t.push(y.attribution)}}t=t.filter((c=>String(c).trim())),t.sort(((c,f)=>c.length-f.length)),t=t.filter(((c,f)=>{for(let y=f+1;y{let n=this._container.children;if(n.length){let s=n[0];this._map.getCanvasContainer().offsetWidth<=640||this._compact?this._compact!==!1&&s.classList.add(\"maplibregl-compact\"):s.classList.remove(\"maplibregl-compact\")}},this.options=t}getDefaultPosition(){return\"bottom-left\"}onAdd(t){var n;this._map=t,this._compact=(n=this.options)===null||n===void 0?void 0:n.compact,this._container=le.create(\"div\",\"maplibregl-ctrl\");let s=le.create(\"a\",\"maplibregl-ctrl-logo\");return s.target=\"_blank\",s.rel=\"noopener nofollow\",s.href=\"https://maplibre.org/\",s.setAttribute(\"aria-label\",this._map._getUIString(\"LogoControl.Title\")),s.setAttribute(\"rel\",\"noopener nofollow\"),this._container.appendChild(s),this._container.style.display=\"block\",this._map.on(\"resize\",this._updateCompact),this._updateCompact(),this._container}onRemove(){this._container.remove(),this._map.off(\"resize\",this._updateCompact),this._map=void 0,this._compact=void 0}}class _h{constructor(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1}add(t){let n=++this._id;return this._queue.push({callback:t,id:n,cancelled:!1}),n}remove(t){let n=this._currentlyRunning,s=n?this._queue.concat(n):this._queue;for(let c of s)if(c.id===t)return void(c.cancelled=!0)}run(t=0){if(this._currentlyRunning)throw new Error(\"Attempting to run(), but is already running.\");let n=this._currentlyRunning=this._queue;this._queue=[];for(let s of n)if(!s.cancelled&&(s.callback(t),this._cleared))break;this._cleared=!1,this._currentlyRunning=!1}clear(){this._currentlyRunning&&(this._cleared=!0),this._queue=[]}}var yh=h.aS([{name:\"a_pos3d\",type:\"Int16\",components:3}]);class vh extends h.E{constructor(t){super(),this._lastTilesetChange=Fe(),this.tileManager=t,this._tiles={},this._renderableTilesKeys=[],this._sourceTileCache={},this.minzoom=0,this.maxzoom=22,this.deltaZoom=1,this.tileSize=t._source.tileSize*2**this.deltaZoom,t.usedForTerrain=!0,t.tileSize=this.tileSize}destruct(){this.tileManager.usedForTerrain=!1,this.tileManager.tileSize=null}getSource(){return this.tileManager._source}update(t,n){this.tileManager.update(t,n),this._renderableTilesKeys=[];let s={};for(let c of pn(t,{tileSize:this.tileSize,minzoom:this.minzoom,maxzoom:this.maxzoom,reparseOverscaled:!1,terrain:n,calculateTileZoom:this.tileManager._source.calculateTileZoom}))s[c.key]=!0,this._renderableTilesKeys.push(c.key),this._tiles[c.key]||(c.terrainRttPosMatrix32f=new Float64Array(16),h.c7(c.terrainRttPosMatrix32f,0,h.a6,h.a6,0,0,1),this._tiles[c.key]=new Nn(c,this.tileSize),this._lastTilesetChange=Fe());for(let c in this._tiles)s[c]||delete this._tiles[c]}freeRtt(t){for(let n in this._tiles){let s=this._tiles[n];(!t||s.tileID.equals(t)||s.tileID.isChildOf(t)||t.isChildOf(s.tileID))&&(s.rtt=[])}}getRenderableTiles(){return this._renderableTilesKeys.map((t=>this.getTileByID(t)))}getTileByID(t){return this._tiles[t]}getTerrainCoords(t,n){return n?this._getTerrainCoordsForTileRanges(t,n):this._getTerrainCoordsForRegularTile(t)}_getTerrainCoordsForRegularTile(t){let n={};for(let s of this._renderableTilesKeys){let c=this._tiles[s].tileID,f=t.clone(),y=h.bj();if(c.canonical.equals(t.canonical))h.c7(y,0,h.a6,h.a6,0,0,1);else if(c.canonical.isChildOf(t.canonical)){let x=c.canonical.z-t.canonical.z,w=c.canonical.x-(c.canonical.x>>x<>x<>x;h.c7(y,0,M,M,0,0,1),h.Q(y,y,[-w*M,-S*M,0])}else{if(!t.canonical.isChildOf(c.canonical))continue;{let x=t.canonical.z-c.canonical.z,w=t.canonical.x-(t.canonical.x>>x<>x<>x;h.c7(y,0,h.a6,h.a6,0,0,1),h.Q(y,y,[w*M,S*M,0]),h.S(y,y,[1/2**x,1/2**x,0])}}f.terrainRttPosMatrix32f=new Float32Array(y),n[s]=f}return n}_getTerrainCoordsForTileRanges(t,n){let s={};for(let c of this._renderableTilesKeys){let f=this._tiles[c].tileID;if(!this._isWithinTileRanges(f,n))continue;let y=t.clone(),x=h.bj();if(f.canonical.z===t.canonical.z){let w=t.canonical.x-f.canonical.x+t.wrap*(1<t.canonical.z){let w=f.canonical.z-t.canonical.z,S=f.canonical.x-(f.canonical.x>>w<>w<>w),I=t.canonical.y-(f.canonical.y>>w),D=h.a6>>w;h.c7(x,0,D,D,0,0,1),h.Q(x,x,[-S*D+E*h.a6,-M*D+I*h.a6,0])}else{let w=t.canonical.z-f.canonical.z,S=t.canonical.x-(t.canonical.x>>w<>w<>w)-f.canonical.x,I=(t.canonical.y>>w)-f.canonical.y,D=h.a6<f.maxzoom&&(y=f.maxzoom),y=f.minzoom&&!x?.dem;)x=this.findTileInCaches(t.scaledTo(y--).key);return x}findTileInCaches(t){let n=this.tileManager.getTileByID(t);return n||(n=this.tileManager._outOfViewCache.getByKey(t),n)}anyTilesAfterTime(t=Date.now()){return this._lastTilesetChange>=t}_isWithinTileRanges(t,n){let s=n[t.canonical.z];return!!s&&(t.wrap>s.minWrap||t.wrap=s.minTileXWrapped&&t.canonical.x<=s.maxTileXWrapped&&t.canonical.y>=s.minTileY&&t.canonical.y<=s.maxTileY)}}class na{constructor(t,n,s){this._meshCache={},this.painter=t,this.tileManager=new vh(n),this.options=s,this.exaggeration=typeof s.exaggeration==\"number\"?s.exaggeration:1,this.qualityFactor=2,this.meshSize=128,this._demMatrixCache={},this.coordsIndex=[],this._coordsTextureSize=1024}destroy(){this._fbo&&(this._fbo.destroy(),this._fbo=null),this._fboCoordsTexture&&(this._fboCoordsTexture.destroy(),this._fboCoordsTexture=null),this._fboDepthTexture&&(this._fboDepthTexture.destroy(),this._fboDepthTexture=null),this._emptyDemTexture&&(this._emptyDemTexture.destroy(),this._emptyDemTexture=null),this._emptyDepthTexture&&(this._emptyDepthTexture.destroy(),this._emptyDepthTexture=null),this._coordsTexture&&(this._coordsTexture.destroy(),this._coordsTexture=null);for(let t in this._meshCache)this._meshCache[t].destroy();this._meshCache={},this.tileManager.destruct()}getDEMElevation(t,n,s,c=h.a6){var f;let y=t.normalizeCoordinates(n,s,c);if(!y)return 0;let x=this.getTerrainData(y.tileID),w=(f=x.tile)===null||f===void 0?void 0:f.dem;if(!w)return 0;let S=h.cC([],[y.x/c*h.a6,y.y/c*h.a6],x.u_terrain_matrix),M=[S[0]*w.dim,S[1]*w.dim],E=Math.floor(M[0]),I=Math.floor(M[1]),D=M[0]-E,B=M[1]-I;return w.get(E,I)*(1-D)*(1-B)+w.get(E+1,I)*D*(1-B)+w.get(E,I+1)*(1-D)*B+w.get(E+1,I+1)*D*B}getElevationForLngLatZoom(t,n){if(!h.cD(n,t.wrap()))return 0;let{tileID:s,mercatorX:c,mercatorY:f}=this._getOverscaledTileIDFromLngLatZoom(t,n);return this.getElevation(s,c%h.a6,f%h.a6,h.a6)}getElevationForLngLat(t,n){let s=pn(n,{maxzoom:this.tileManager.maxzoom,minzoom:this.tileManager.minzoom,tileSize:512,terrain:this}),c=0;for(let f of s)f.canonical.z>c&&(c=Math.min(f.canonical.z,this.tileManager.maxzoom));return this.getElevationForLngLatZoom(t,c)}getElevation(t,n,s,c=h.a6){return this.getDEMElevation(t,n,s,c)*this.exaggeration}getTerrainData(t){var n,s;if(!this._emptyDemTexture){let y=this.painter.context,x=new h.R({width:1,height:1},new Uint8Array(4));this._emptyDepthTexture=new h.T(y,x,y.gl.RGBA,{premultiply:!1}),this._emptyDemUnpack=[0,0,0,0],this._emptyDemTexture=new h.T(y,new h.R({width:1,height:1}),y.gl.RGBA,{premultiply:!1}),this._emptyDemTexture.bind(y.gl.NEAREST,y.gl.CLAMP_TO_EDGE),this._emptyDemMatrix=h.ap([])}let c=this.tileManager.getSourceTile(t,!0);if(c?.dem&&(!c.demTexture||c.needsTerrainPrepare)){let y=this.painter.context;c.demTexture=this.painter.getTileTexture(c.dem.stride),c.demTexture?c.demTexture.update(c.dem.getPixels(),{premultiply:!1}):c.demTexture=new h.T(y,c.dem.getPixels(),y.gl.RGBA,{premultiply:!1}),c.demTexture.bind(y.gl.NEAREST,y.gl.CLAMP_TO_EDGE),c.needsTerrainPrepare=!1}let f=c&&c.toString()+c.tileID.key+t.key;if(f&&!this._demMatrixCache[f]){let y=this.tileManager.getSource().maxzoom,x=t.canonical.z-c.tileID.canonical.z;t.overscaledZ>t.canonical.z&&(t.canonical.z>=y?x=t.canonical.z-y:h.w(\"cannot calculate elevation if elevation maxzoom > source.maxzoom\"));let w=t.canonical.x-(t.canonical.x>>x<>x<>8<<4|f>>8,n[y+3]=0;let s=new h.R({width:this._coordsTextureSize,height:this._coordsTextureSize},new Uint8Array(n.buffer)),c=new h.T(t,s,t.gl.RGBA,{premultiply:!1});return c.bind(t.gl.NEAREST,t.gl.CLAMP_TO_EDGE),this._coordsTexture=c,c}pointCoordinate(t){this.painter.maybeDrawDepth(!0),this.painter.maybeDrawCoords();let n=new Uint8Array(4),s=this.painter.context,c=s.gl,f=Math.round(t.x*this.painter.pixelRatio/devicePixelRatio),y=Math.round(t.y*this.painter.pixelRatio/devicePixelRatio),x=Math.round(this.painter.height/devicePixelRatio);s.bindFramebuffer.set(this.getFramebuffer(\"coords\").framebuffer),c.readPixels(f,x-y-1,1,1,c.RGBA,c.UNSIGNED_BYTE,n),s.bindFramebuffer.set(null);let w=n[0]+(n[2]>>4<<8),S=n[1]+((15&n[2])<<8),M=this.coordsIndex[255-n[3]],E=M&&this.tileManager.getTileByID(M);if(!E)return null;let I=this._coordsTextureSize,D=(1<0,c=s&&t.canonical.y===0,f=s&&t.canonical.y===(1<t.id!==n)),this._recentlyUsed.push(t.id)}stampObject(t){t.stamp=++this._stamp}getOrCreateFreeObject(){for(let n of this._recentlyUsed)if(!this._objects[n].inUse)return this._objects[n];if(this._objects.length>=this._size)throw new Error(\"No free RenderPool available, call freeAllObjects() required!\");let t=this._createObject(this._objects.length);return this._objects.push(t),t}freeObject(t){t.inUse=!1}freeAllObjects(){for(let t of this._objects)this.freeObject(t)}isFull(){return!(this._objects.length!t.inUse))===!1}}let It={background:!0,fill:!0,line:!0,raster:!0,hillshade:!0,\"color-relief\":!0};class mu{constructor(t,n){this.painter=t,this.terrain=n,this.pool=new Lt(t.context,30,n.tileManager.tileSize*n.qualityFactor)}destruct(){this.pool.destruct()}getTexture(t){return this.pool.getObjectForId(t.rtt[this._stacks.length-1].id).texture}prepareForRender(t,n){var s,c,f;this._stacks=[],this._prevType=null,this._rttTiles=[],this._renderableTiles=this.terrain.tileManager.getRenderableTiles(),this._renderableLayerIds=t._order.filter((y=>!t._layers[y].isHidden(n))),this._coordsAscending={};for(let y in t.tileManagers){this._coordsAscending[y]={};let x=t.tileManagers[y].getVisibleCoordinates(),w=t.tileManagers[y].getSource(),S=w instanceof Pi?w.terrainTileRanges:null;for(let M of x){let E=this.terrain.tileManager.getTerrainCoords(M,S);for(let I in E)(f=this._coordsAscending[y])[I]||(f[I]=[]),this._coordsAscending[y][I].push(E[I])}}this._rttFingerprints={};for(let y of t._order){let x=t._layers[y],w=x.source;if(It[x.type]&&!this._rttFingerprints[w]){this._rttFingerprints[w]={};let S=(c=(s=t.tileManagers[w])===null||s===void 0?void 0:s.getState().revision)!==null&&c!==void 0?c:0;for(let M in this._coordsAscending[w])this._rttFingerprints[w][M]=`${this._coordsAscending[w][M].map((E=>E.key)).sort().join()}#${S}`}}for(let y of this._renderableTiles)for(let x in this._rttFingerprints){let w=this._rttFingerprints[x][y.tileID.key];w&&w!==y.rttFingerprint[x]&&(y.rtt=[])}}renderLayer(t,n){if(t.isHidden(this.painter.transform.zoom))return!1;let s=Object.assign(Object.assign({},n),{isRenderingToTexture:!0}),c=t.type,f=this.painter,y=this._renderableLayerIds[this._renderableLayerIds.length-1]===t.id;if(It[c]&&(this._prevType&&It[this._prevType]||this._stacks.push([]),this._prevType=c,this._stacks[this._stacks.length-1].push(t.id),!y))return!0;if(It[this._prevType]||It[c]&&y){this._prevType=c;let x=this._stacks.length-1,w=this._stacks[x]||[];for(let S of this._renderableTiles){if(this.pool.isFull()&&(Tl(this.painter,this.terrain,this._rttTiles,s),this._rttTiles=[],this.pool.freeAllObjects()),this._rttTiles.push(S),S.rtt[x]){let E=this.pool.getObjectForId(S.rtt[x].id);if(E.stamp===S.rtt[x].stamp){this.pool.useObject(E);continue}}let M=this.pool.getOrCreateFreeObject();this.pool.useObject(M),this.pool.stampObject(M),S.rtt[x]={id:M.id,stamp:M.stamp},f.context.bindFramebuffer.set(M.fbo.framebuffer),f.context.clear({color:h.bo.transparent,stencil:0}),f.currentStencilSource=void 0;for(let E of w){let I=f.style._layers[E],D=I.source?this._coordsAscending[I.source][S.tileID.key]:[S.tileID];f.context.viewport.set([0,0,M.fbo.width,M.fbo.height]),f._renderTileClippingMasks(I,D,!0),f.renderLayer(f,f.style.tileManagers[I.source],I,D,s),I.source&&(S.rttFingerprint[I.source]=this._rttFingerprints[I.source][S.tileID.key])}}return Tl(this.painter,this.terrain,this._rttTiles,s),this._rttTiles=[],this.pool.freeAllObjects(),It[c]}return!1}}let oa={\"AttributionControl.ToggleAttribution\":\"Toggle attribution\",\"AttributionControl.MapFeedback\":\"Map feedback\",\"FullscreenControl.Enter\":\"Enter fullscreen\",\"FullscreenControl.Exit\":\"Exit fullscreen\",\"GeolocateControl.FindMyLocation\":\"Find my location\",\"GeolocateControl.LocationNotAvailable\":\"Location not available\",\"LogoControl.Title\":\"MapLibre logo\",\"Map.Title\":\"Map\",\"Marker.Title\":\"Map marker\",\"NavigationControl.ResetBearing\":\"Drag to rotate map, click to reset north\",\"NavigationControl.ZoomIn\":\"Zoom in\",\"NavigationControl.ZoomOut\":\"Zoom out\",\"Popup.Close\":\"Close popup\",\"ScaleControl.Feet\":\"ft\",\"ScaleControl.Meters\":\"m\",\"ScaleControl.Kilometers\":\"km\",\"ScaleControl.Miles\":\"mi\",\"ScaleControl.NauticalMiles\":\"nm\",\"GlobeControl.Enable\":\"Enable globe\",\"GlobeControl.Disable\":\"Disable globe\",\"TerrainControl.Enable\":\"Enable terrain\",\"TerrainControl.Disable\":\"Disable terrain\",\"CooperativeGesturesHandler.WindowsHelpText\":\"Use Ctrl + scroll to zoom the map\",\"CooperativeGesturesHandler.MacHelpText\":\"Use \\u2318 + scroll to zoom the map\",\"CooperativeGesturesHandler.MobileHelpText\":\"Use two fingers to move the map\"},is=pe,rs={hash:!1,interactive:!0,bearingSnap:7,zoomSnap:0,attributionControl:ts,maplibreLogo:!1,refreshExpiredTiles:!0,canvasContextAttributes:{antialias:!1,preserveDrawingBuffer:!1,powerPreference:\"high-performance\",failIfMajorPerformanceCaveat:!1,desynchronized:!1,contextType:void 0},scrollZoom:!0,minZoom:-2,maxZoom:22,minPitch:0,maxPitch:60,boxZoom:!0,dragRotate:!0,dragPan:!0,keyboard:!0,doubleClickZoom:!0,touchZoomRotate:!0,touchPitch:!0,cooperativeGestures:!1,trackResize:!0,center:[0,0],elevation:0,zoom:0,bearing:0,pitch:0,roll:0,renderWorldCopies:!0,maxTileCacheSize:null,maxTileCacheZoomLevels:h.c.MAX_TILE_CACHE_ZOOM_LEVELS,transformRequest:null,transformCameraUpdate:null,transformConstrain:null,fadeDuration:300,crossSourceCollisions:!0,clickTolerance:3,localIdeographFontFamily:\"sans-serif\",pitchWithRotate:!0,rollEnabled:!1,reduceMotion:void 0,validateStyle:!0,maxCanvasSize:[4096,4096],cancelPendingTileRequestsWhileZooming:!0,centerClampedToGround:!0,experimentalZoomLevelsToOverscale:void 0,anisotropicFilterPitch:20},ns=class extends fu{get _ownerWindow(){var d,t;return((t=(d=this._container)===null||d===void 0?void 0:d.ownerDocument)===null||t===void 0?void 0:t.defaultView)||window}constructor(d){var t,n,s;let c=Object.assign(Object.assign(Object.assign({},rs),d),{canvasContextAttributes:Object.assign(Object.assign({},rs.canvasContextAttributes),d.canvasContextAttributes)});if(c.minZoom!=null&&c.maxZoom!=null&&c.minZoom>c.maxZoom)throw new Error(\"maxZoom must be greater than or equal to minZoom\");if(c.minPitch!=null&&c.maxPitch!=null&&c.minPitch>c.maxPitch)throw new Error(\"maxPitch must be greater than or equal to minPitch\");if(c.minPitch!=null&&c.minPitch<0)throw new Error(\"minPitch must be greater than or equal to 0\");if(c.maxPitch!=null&&c.maxPitch>180)throw new Error(\"maxPitch must be less than or equal to 180\");let f=new yn,y=new vn;c.minZoom!==void 0&&f.setMinZoom(c.minZoom),c.maxZoom!==void 0&&f.setMaxZoom(c.maxZoom),c.minPitch!==void 0&&f.setMinPitch(c.minPitch),c.maxPitch!==void 0&&f.setMaxPitch(c.maxPitch),c.renderWorldCopies!==void 0&&f.setRenderWorldCopies(c.renderWorldCopies),c.transformConstrain!==null&&f.setConstrainOverride(c.transformConstrain),super(f,y,{bearingSnap:c.bearingSnap,zoomSnap:c.zoomSnap}),this._idleTriggered=!1,this._crossFadingFactor=1,this._renderTaskQueue=new _h,this._controls=[],this._mapId=h.ad(),this._lostContextStyle={style:null,images:null},this._contextLost=w=>{if(w.preventDefault(),this._frameRequest&&(this._frameRequest.abort(),this._frameRequest=null),this.painter.destroy(),this._lostContextStyle=this._getStyleAndImages(),this.style){for(let S of Object.values(this.style._layers))if(S.type===\"custom\"&&console.warn(`Custom layer with id '${S.id}' cannot be restored after WebGL context loss. You will need to re-add it manually after context restoration.`),S._listeners)for(let[M]of Object.entries(S._listeners))console.warn(`Custom layer with id '${S.id}' had event listeners for event '${M}' which cannot be restored after WebGL context loss. You will need to re-add them manually after context restoration.`);this.style.destroy(),this.style=null,this.fire(new h.n(\"webglcontextlost\",{originalEvent:w}))}else this.fire(new h.n(\"webglcontextlost\",{originalEvent:w}))},this._contextRestored=w=>{this._lostContextStyle.style&&this.setStyle(this._lostContextStyle.style,{diff:!1}),this._lostContextStyle.images&&this.style&&(this.style.imageManager.images=this._lostContextStyle.images),this._lostContextStyle={style:null,images:null},this._setupPainter(),this.resize(),this._update(),this._resizeInternal(),this.fire(new h.n(\"webglcontextrestored\",{originalEvent:w}))},this._onMapScroll=w=>{if(w.target===this._container)return this._container.scrollTop=0,this._container.scrollLeft=0,!1},this._onWindowOnline=()=>{this._update()},this._interactive=c.interactive,this._maxTileCacheSize=c.maxTileCacheSize,this._maxTileCacheZoomLevels=c.maxTileCacheZoomLevels,this._canvasContextAttributes=Object.assign({},c.canvasContextAttributes),this._trackResize=c.trackResize===!0,this._bearingSnap=c.bearingSnap,this._zoomSnap=c.zoomSnap,this._centerClampedToGround=c.centerClampedToGround,this._refreshExpiredTiles=c.refreshExpiredTiles===!0,this._fadeDuration=c.fadeDuration,this._crossSourceCollisions=c.crossSourceCollisions===!0,this._collectResourceTiming=c.collectResourceTiming===!0,this._locale=Object.assign(Object.assign({},oa),c.locale),this._clickTolerance=c.clickTolerance,this._overridePixelRatio=c.pixelRatio,this._maxCanvasSize=c.maxCanvasSize,this._zoomLevelsToOverscale=c.experimentalZoomLevelsToOverscale,this.transformCameraUpdate=c.transformCameraUpdate,this.transformConstrain=c.transformConstrain,this.cancelPendingTileRequestsWhileZooming=c.cancelPendingTileRequestsWhileZooming===!0,this.setAnisotropicFilterPitch(c.anisotropicFilterPitch),c.reduceMotion!==void 0&&(Ge.prefersReducedMotion=c.reduceMotion),this._imageQueueHandle=st.addThrottleControl((()=>this.isMoving())),this._requestManager=new ut(c.transformRequest),this._container=this._resolveContainer(c.container),c.maxBounds&&this.setMaxBounds(c.maxBounds),this._setupContainer(),this._setupPainter(),this.on(\"move\",(()=>this._update(!1))),this.on(\"moveend\",(()=>this._update(!1))),this.on(\"zoom\",(()=>this._update(!0))),this.on(\"terrain\",(()=>{this.painter.terrainFacilitator.depthDirty=!0,this._update(!0)})),this.once(\"idle\",(()=>this._idleTriggered=!0)),typeof window<\"u\"&&(this._ownerWindow.addEventListener(\"online\",this._onWindowOnline,!1),this._setupResizeObserver()),this.handlers=new Ii(this,c),this._hash=c.hash?new Ko(typeof c.hash==\"string\"&&c.hash||void 0).addTo(this):void 0,!((t=this._hash)===null||t===void 0)&&t._onHashChange()||(this.jumpTo({center:c.center,elevation:c.elevation,zoom:c.zoom,bearing:c.bearing,pitch:c.pitch,roll:c.roll}),c.bounds&&(this.resize(),this.fitBounds(c.bounds,h.e({},c.fitBoundsOptions,{duration:0}))));let x=typeof c.style==\"string\"||((s=(n=c.style)===null||n===void 0?void 0:n.projection)===null||s===void 0?void 0:s.type)!==\"globe\";this.resize(null,x),this._localIdeographFontFamily=c.localIdeographFontFamily,this._validateStyle=c.validateStyle,c.style&&this.setStyle(c.style,{localIdeographFontFamily:c.localIdeographFontFamily}),c.attributionControl&&this.addControl(new nr(typeof c.attributionControl==\"boolean\"?void 0:c.attributionControl)),c.maplibreLogo&&this.addControl(new Ll,c.logoPosition),this.on(\"style.load\",(()=>{if(x||this._resizeTransform(),this.transform.unmodified){let w=h.V(this.style.stylesheet,[\"center\",\"zoom\",\"bearing\",\"pitch\",\"roll\"]);this.jumpTo(w)}})),this.on(\"data\",(w=>{this._update(w.dataType===\"style\"),this.fire(new h.n(`${w.dataType}data`,w))})),this.on(\"dataloading\",(w=>{this.fire(new h.n(`${w.dataType}dataloading`,w))})),this.on(\"dataabort\",(w=>{this.fire(new h.n(\"sourcedataabort\",w))}))}_getMapId(){return this._mapId}setGlobalStateProperty(d,t){return this.style.setGlobalStateProperty(d,t),this._update(!0)}getGlobalState(){return this.style.getGlobalState()}addControl(d,t){if(t===void 0&&(t=d.getDefaultPosition?d.getDefaultPosition():\"top-right\"),!d?.onAdd)return this.fire(new h.l(new Error(\"Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.\")));let n=d.onAdd(this);this._controls.push(d);let s=this._controlPositions[t];return t.includes(\"bottom\")?s.insertBefore(n,s.firstChild):s.appendChild(n),this}removeControl(d){if(!d?.onRemove)return this.fire(new h.l(new Error(\"Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.\")));let t=this._controls.indexOf(d);return t>-1&&this._controls.splice(t,1),d.onRemove(this),this}hasControl(d){return this._controls.includes(d)}coveringTiles(d){return pn(this.transform,d)}calculateCameraOptionsFromTo(d,t,n,s){return s==null&&this.terrain&&(s=this.terrain.getElevationForLngLat(n,this.transform)),super.calculateCameraOptionsFromTo(d,t,n,s)}resize(d,t=!0){if(this._lostContextStyle.style!==null)return this;this._resizeInternal(t);let n=!this._moving;return n&&(this.stop(),this.fire(new h.n(\"movestart\",d)).fire(new h.n(\"move\",d))),this.fire(new h.n(\"resize\",d)),n&&this.fire(new h.n(\"moveend\",d)),this}_resizeInternal(d=!0){let[t,n]=this._containerDimensions(),s=this._getClampedPixelRatio(t,n);if(this._resizeCanvas(t,n,s),this.painter.resize(t,n,s),this.painter.overLimit()){let c=this.painter.context.gl;this._maxCanvasSize=[c.drawingBufferWidth,c.drawingBufferHeight];let f=this._getClampedPixelRatio(t,n);this._resizeCanvas(t,n,f),this.painter.resize(t,n,f)}this._resizeTransform(d)}_resizeTransform(d=!0){var t;let[n,s]=this._containerDimensions();this.transform.resize(n,s,d),(t=this._requestedCameraState)===null||t===void 0||t.resize(n,s,d)}_getClampedPixelRatio(d,t){let{0:n,1:s}=this._maxCanvasSize,c=this.getPixelRatio(),f=d*c,y=t*c;return Math.min(f>n?n/f:1,y>s?s/y:1)*c}getPixelRatio(){var d;return(d=this._overridePixelRatio)!==null&&d!==void 0?d:devicePixelRatio}setPixelRatio(d){this._overridePixelRatio=d,this.resize()}getBounds(){return this.transform.getBounds()}getMaxBounds(){return this.transform.getMaxBounds()}setMaxBounds(d){return this.transform.setMaxBounds(De.convert(d)),this._update()}setMinZoom(d){if((d=d??-2)>=-2&&d<=this.transform.maxZoom){let t=this.transform.zoom,n=this._getTransformForUpdate();return n.setMinZoom(d),this._applyUpdatedTransform(n),this._update(),t!==this.transform.zoom&&this.fire(new h.n(\"zoomstart\")).fire(new h.n(\"zoom\")).fire(new h.n(\"zoomend\")).fire(new h.n(\"movestart\")).fire(new h.n(\"move\")).fire(new h.n(\"moveend\")),this}throw new Error(\"minZoom must be between -2 and the current maxZoom, inclusive\")}getMinZoom(){return this.transform.minZoom}setMaxZoom(d){if((d=d??22)>=this.transform.minZoom){let t=this.transform.zoom,n=this._getTransformForUpdate();return n.setMaxZoom(d),this._applyUpdatedTransform(n),this._update(),t!==this.transform.zoom&&this.fire(new h.n(\"zoomstart\")).fire(new h.n(\"zoom\")).fire(new h.n(\"zoomend\")).fire(new h.n(\"movestart\")).fire(new h.n(\"move\")).fire(new h.n(\"moveend\")),this}throw new Error(\"maxZoom must be greater than the current minZoom\")}getMaxZoom(){return this.transform.maxZoom}setMinPitch(d){if((d=d??0)<0)throw new Error(\"minPitch must be greater than or equal to 0\");if(d>=0&&d<=this.transform.maxPitch){let t=this.transform.pitch,n=this._getTransformForUpdate();return n.setMinPitch(d),this._applyUpdatedTransform(n),this._update(),t!==this.transform.pitch&&this.fire(new h.n(\"pitchstart\")).fire(new h.n(\"pitch\")).fire(new h.n(\"pitchend\")).fire(new h.n(\"movestart\")).fire(new h.n(\"move\")).fire(new h.n(\"moveend\")),this}throw new Error(\"minPitch must be between 0 and the current maxPitch, inclusive\")}getMinPitch(){return this.transform.minPitch}setMaxPitch(d){if((d=d??60)>180)throw new Error(\"maxPitch must be less than or equal to 180\");if(d>=this.transform.minPitch){let t=this.transform.pitch,n=this._getTransformForUpdate();return n.setMaxPitch(d),this._applyUpdatedTransform(n),this._update(),t!==this.transform.pitch&&this.fire(new h.n(\"pitchstart\")).fire(new h.n(\"pitch\")).fire(new h.n(\"pitchend\")).fire(new h.n(\"movestart\")).fire(new h.n(\"move\")).fire(new h.n(\"moveend\")),this}throw new Error(\"maxPitch must be greater than the current minPitch\")}getMaxPitch(){return this.transform.maxPitch}getAnisotropicFilterPitch(){return this._anisotropicFilterPitch}setAnisotropicFilterPitch(d){if((d=d??20)>180)throw new Error(\"anisotropicFilterPitch must be less than or equal to 180\");if(d<0)throw new Error(\"anisotropicFilterPitch must be greater than or equal to 0\");return this._anisotropicFilterPitch=d,this._update()}getRenderWorldCopies(){return this.transform.renderWorldCopies}setRenderWorldCopies(d){return this.transform.setRenderWorldCopies(d),this._update()}setTransformConstrain(d){return this.transform.setConstrainOverride(d),this._update()}project(d){return this.transform.locationToScreenPoint(h.W.convert(d),this.style&&this.terrain)}unproject(d){return this.transform.screenPointToLocation(h.P.convert(d),this.terrain)}isMoving(){var d;return this._moving||((d=this.handlers)===null||d===void 0?void 0:d.isMoving())}isZooming(){var d;return this._zooming||((d=this.handlers)===null||d===void 0?void 0:d.isZooming())}isRotating(){var d;return this._rotating||((d=this.handlers)===null||d===void 0?void 0:d.isRotating())}_createDelegatedListener(d,t,n){if(d===\"mouseenter\"||d===\"mouseover\"){let s=!1;return{layers:t,listener:n,delegates:{mousemove:f=>{let y=t.filter((w=>this.getLayer(w))),x=y.length!==0?this.queryRenderedFeatures(f.point,{layers:y}):[];x.length?s||(s=!0,n.call(this,new Hi(d,this,f.originalEvent,{features:x}))):s=!1},mouseout:()=>{s=!1}}}}if(d===\"mouseleave\"||d===\"mouseout\"){let s=!1;return{layers:t,listener:n,delegates:{mousemove:y=>{let x=t.filter((w=>this.getLayer(w)));(x.length!==0?this.queryRenderedFeatures(y.point,{layers:x}):[]).length?s=!0:s&&(s=!1,n.call(this,new Hi(d,this,y.originalEvent)))},mouseout:y=>{s&&(s=!1,n.call(this,new Hi(d,this,y.originalEvent)))}}}}{let s=c=>{let f=t.filter((x=>this.getLayer(x))),y=f.length!==0?this.queryRenderedFeatures(c.point,{layers:f}):[];y.length&&(c.features=y,n.call(this,c),delete c.features)};return{layers:t,listener:n,delegates:{[d]:s}}}}_saveDelegatedListener(d,t){var n;this._delegatedListeners||(this._delegatedListeners={}),(n=this._delegatedListeners)[d]||(n[d]=[]),this._delegatedListeners[d].push(t)}_removeDelegatedListener(d,t,n){var s;if(!(!((s=this._delegatedListeners)===null||s===void 0)&&s[d]))return;let c=this._delegatedListeners[d];for(let f=0;ft.includes(x)))){for(let x in y.delegates)this.off(x,y.delegates[x]);return void c.splice(f,1)}}}on(d,t,n){if(n===void 0)return super.on(d,t);let s=typeof t==\"string\"?[t]:t,c=this._createDelegatedListener(d,s,n);this._saveDelegatedListener(d,c);for(let f in c.delegates)this.on(f,c.delegates[f]);return{unsubscribe:()=>{this._removeDelegatedListener(d,s,n)}}}once(d,t,n){if(n===void 0)return super.once(d,t);let s=typeof t==\"string\"?[t]:t,c=this._createDelegatedListener(d,s,n);for(let f in c.delegates){let y=c.delegates[f];c.delegates[f]=(...x)=>{this._removeDelegatedListener(d,s,n),y(...x)}}this._saveDelegatedListener(d,c);for(let f in c.delegates)this.once(f,c.delegates[f]);return this}off(d,t,n){return n===void 0?super.off(d,t):(this._removeDelegatedListener(d,typeof t==\"string\"?[t]:t,n),this)}queryRenderedFeatures(d,t){if(!this.style)return[];let n,s=d instanceof h.P||Array.isArray(d),c=s?d:[[0,0],[this.transform.width,this.transform.height]];if(t||(t=(s?{}:d)||{}),c instanceof h.P||typeof c[0]==\"number\")n=[h.P.convert(c)];else{let f=h.P.convert(c[0]),y=h.P.convert(c[1]);n=[f,new h.P(y.x,f.y),y,new h.P(f.x,y.y),f]}return this.style.queryRenderedFeatures(n,t,this.transform)}querySourceFeatures(d,t){return this.style.querySourceFeatures(d,t)}setStyle(d,t){return(t=h.e({},{localIdeographFontFamily:this._localIdeographFontFamily,validate:this._validateStyle},t)).diff!==!1&&t.localIdeographFontFamily===this._localIdeographFontFamily&&this.style&&d?(this._diffStyle(d,t),this):(this._localIdeographFontFamily=t.localIdeographFontFamily,this._updateStyle(d,t))}setTransformRequest(d){return this._requestManager.setTransformRequest(d),this}_getUIString(d){let t=this._locale[d];if(t==null)throw new Error(`Missing UI string '${d}'`);return t}_updateStyle(d,t){var n,s,c;if((n=this._diffStyleRequest)===null||n===void 0||n.abort(),this._diffStyleRequest=null,t.transformStyle&&this.style&&!this.style._loaded)return void this.style.once(\"style.load\",(()=>this._updateStyle(d,t)));let f=this.style&&t.transformStyle?this.style.serialize():void 0;return this.style&&(this.style.setEventedParent(null),this.style._remove(!d)),d?(this.style=new Tn(this,t||{}),this.style.setEventedParent(this,{style:this.style}),typeof d==\"string\"?this.style.loadURL(d,t,f):this.style.loadJSON(d,t,f),this):(this._frameRequest&&(this._frameRequest.abort(),this._frameRequest=null),(c=(s=this.style)===null||s===void 0?void 0:s.projection)===null||c===void 0||c.destroy(),delete this.style,this)}_lazyInitEmptyStyle(){this.style||(this.style=new Tn(this,{}),this.style.setEventedParent(this,{style:this.style}),this.style.loadEmpty())}_diffStyle(d,t){return h._(this,void 0,void 0,(function*(){var n;if((n=this._diffStyleRequest)===null||n===void 0||n.abort(),typeof d==\"string\"){let s=d;this._diffStyleRequest=new AbortController;let c=this._diffStyleRequest;try{let f=yield this._requestManager.transformRequest(s,\"Style\");if(c.signal.aborted)return void(this._diffStyleRequest=null);let y=yield h.k(f,c);this._diffStyleRequest=null,this._updateDiff(y.data,t)}catch(f){this._diffStyleRequest=null,h.$(f)||this.fire(new h.l(h.d(f)))}}else typeof d==\"object\"&&(this._diffStyleRequest=null,this._updateDiff(d,t))}))}_updateDiff(d,t){try{this.style.setState(d,t)&&this._update(!0)}catch(n){h.w(`Unable to perform style diff: ${h.d(n).message}. Rebuilding the style from scratch.`),this._updateStyle(d,t)}}getStyle(){if(this.style)return this.style.serialize()}_getStyleAndImages(){return this.style?{style:this.style.serialize(),images:this.style.imageManager.cloneImages()}:{style:null,images:{}}}isStyleLoaded(){if(this.style)return this.style.loaded();h.w(\"There is no style added to the map.\")}addSource(d,t){return this._lazyInitEmptyStyle(),this.style.addSource(d,t),this._update(!0)}isSourceLoaded(d){var t;let n=(t=this.style)===null||t===void 0?void 0:t.tileManagers[d];if(n!==void 0)return n.loaded();this.fire(new h.l(new Error(`There is no tile manager with ID '${d}'`)))}setTerrain(d){if(this.style._checkLoaded(),this._terrainDataCallback&&this.style.off(\"data\",this._terrainDataCallback),d){let t=this.style.tileManagers[d.source];if(!t)throw new Error(`cannot load terrain, because there exists no source with ID: ${d.source}`);this.terrain===null&&t.reload();for(let n in this.style._layers){let s=this.style._layers[n];s.type===\"hillshade\"&&s.source===d.source&&h.w(\"You are using the same source for a hillshade layer and for 3D terrain. Please consider using two separate sources to improve rendering quality.\"),s.type===\"color-relief\"&&s.source===d.source&&h.w(\"You are using the same source for a color-relief layer and for 3D terrain. Please consider using two separate sources to improve rendering quality.\")}this.terrain=new na(this.painter,t,d),this.painter.renderToTexture=new mu(this.painter,this.terrain),this.transform.setMinElevationForCurrentTile(this.terrain.getMinTileElevationForLngLatZoom(this.transform.center,this.transform.tileZoom)),this.transform.setElevation(this.terrain.getElevationForLngLatZoom(this.transform.center,this.transform.tileZoom)),this._terrainDataCallback=n=>{var s;n.dataType===\"style\"?this.terrain.tileManager.freeRtt():n.dataType===\"source\"&&n.tile&&(n.sourceId!==d.source||this._elevationFreeze||(this.transform.setMinElevationForCurrentTile(this.terrain.getMinTileElevationForLngLatZoom(this.transform.center,this.transform.tileZoom)),this._centerClampedToGround&&this.transform.setElevation(this.terrain.getElevationForLngLatZoom(this.transform.center,this.transform.tileZoom))),((s=n.source)===null||s===void 0?void 0:s.type)===\"image\"?this.terrain.tileManager.freeRtt():this.terrain.tileManager.freeRtt(n.tile.tileID))},this.style.on(\"data\",this._terrainDataCallback)}else this.terrain&&this.terrain.destroy(),this.terrain=null,this.painter.renderToTexture&&this.painter.renderToTexture.destruct(),this.painter.renderToTexture=null,this.transform.setMinElevationForCurrentTile(0),this._centerClampedToGround&&this.transform.setElevation(0);return this.fire(new h.n(\"terrain\",{terrain:d})),this}getTerrain(){var d,t;return(t=(d=this.terrain)===null||d===void 0?void 0:d.options)!==null&&t!==void 0?t:null}areTilesLoaded(){var d;let t=(d=this.style)===null||d===void 0?void 0:d.tileManagers;for(let n of Object.values(t))if(!n.areTilesLoaded())return!1;return!0}removeSource(d){return this.style.removeSource(d),this._update(!0)}getSource(d){return this.style.getSource(d)}setSourceTileLodParams(d,t,n){if(n){let s=this.getSource(n);if(!s)throw new Error(`There is no source with ID \"${n}\", cannot set LOD parameters`);s.calculateTileZoom=Gs(Math.max(1,d),Math.max(1,t))}else for(let s in this.style.tileManagers)this.style.tileManagers[s].getSource().calculateTileZoom=Gs(Math.max(1,d),Math.max(1,t));return this._update(!0),this}refreshTiles(d,t){let n=this.style.tileManagers[d];if(!n)throw new Error(`There is no tile manager with ID \"${d}\", cannot refresh tile`);t===void 0?n.reload(!0):n.refreshTiles(t.map((s=>new h.aa(s.z,s.x,s.y))))}addImage(d,t,n={}){let{pixelRatio:s=1,sdf:c=!1,stretchX:f,stretchY:y,content:x,textFitWidth:w,textFitHeight:S}=n;if(this._lazyInitEmptyStyle(),!(t instanceof HTMLImageElement||h.b(t))){if(t.width===void 0||t.height===void 0)return this.fire(new h.l(new Error(\"Invalid arguments to map.addImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`\")));{let{width:M,height:E,data:I}=t,D=t;return this.style.addImage(d,{data:new h.R({width:M,height:E},new Uint8Array(I)),pixelRatio:s,stretchX:f,stretchY:y,content:x,textFitWidth:w,textFitHeight:S,sdf:c,version:0,userImage:D}),D.onAdd&&D.onAdd(this,d),this}}{let{width:M,height:E,data:I}=Ge.getImageData(t);this.style.addImage(d,{data:new h.R({width:M,height:E},I),pixelRatio:s,stretchX:f,stretchY:y,content:x,textFitWidth:w,textFitHeight:S,sdf:c,version:0})}}updateImage(d,t){let n=this.style.getImage(d);if(!n)return this.fire(new h.l(new Error(\"The map has no image with that id. If you are adding a new image use `map.addImage(...)` instead.\")));let s=t instanceof HTMLImageElement||h.b(t)?Ge.getImageData(t):t,{width:c,height:f,data:y}=s;if(c===void 0||f===void 0)return this.fire(new h.l(new Error(\"Invalid arguments to map.updateImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`\")));if(c!==n.data.width||f!==n.data.height)return this.fire(new h.l(new Error(\"The width and height of the updated image must be that same as the previous version of the image\")));let x=!(t instanceof HTMLImageElement||h.b(t));return n.data.replace(y,x),this.style.updateImage(d,n),this}getImage(d){return this.style.getImage(d)}hasImage(d){return d?!!this.style.getImage(d):(this.fire(new h.l(new Error(\"Missing required image id\"))),!1)}removeImage(d){this.style.removeImage(d)}loadImage(d){return h._(this,void 0,void 0,(function*(){return st.getImage(yield this._requestManager.transformRequest(d,\"Image\"),new AbortController)}))}listImages(){return this.style.listImages()}addLayer(d,t){return this._lazyInitEmptyStyle(),this.style.addLayer(d,t),this._update(!0)}moveLayer(d,t){return this.style.moveLayer(d,t),this._update(!0)}removeLayer(d){return this.style.removeLayer(d),this._update(!0)}getLayer(d){return this.style.getLayer(d)}getLayersOrder(){return this.style.getLayersOrder()}setLayerZoomRange(d,t,n){return this.style.setLayerZoomRange(d,t,n),this._update(!0)}setFilter(d,t,n={}){return this.style.setFilter(d,t,n),this._update(!0)}getFilter(d){return this.style.getFilter(d)}setPaintProperty(d,t,n,s={}){return this.style.setPaintProperty(d,t,n,s),this._update(!0)}getPaintProperty(d,t){return this.style.getPaintProperty(d,t)}setLayoutProperty(d,t,n,s={}){return this.style.setLayoutProperty(d,t,n,s),this._update(!0)}getLayoutProperty(d,t){return this.style.getLayoutProperty(d,t)}setGlyphs(d,t={}){return this._lazyInitEmptyStyle(),this.style.setGlyphs(d,t),this._update(!0)}getGlyphs(){return this.style.getGlyphsUrl()}addSprite(d,t,n={}){return this._lazyInitEmptyStyle(),this.style.addSprite(d,t,n,(s=>{s||this._update(!0)})),this}removeSprite(d){return this._lazyInitEmptyStyle(),this.style.removeSprite(d),this._update(!0)}getSprite(){return this.style.getSprite()}setSprite(d,t={}){return this._lazyInitEmptyStyle(),this.style.setSprite(d,t,(n=>{n||this._update(!0)})),this}setLight(d,t={}){return this._lazyInitEmptyStyle(),this.style.setLight(d,t),this._update(!0)}getLight(){return this.style.getLight()}setSky(d,t={}){return this._lazyInitEmptyStyle(),this.style.setSky(d,t),this._update(!0)}getSky(){return this.style.getSky()}setFeatureState(d,t){return this.style.setFeatureState(d,t),this._update()}removeFeatureState(d,t){return this.style.removeFeatureState(d,t),this._update()}getFeatureState(d){return this.style.getFeatureState(d)}getContainer(){return this._container}getCanvasContainer(){return this._canvasContainer}getCanvas(){return this._canvas}_containerDimensions(){let d=0,t=0;return this._container&&(d=this._container.clientWidth||400,t=this._container.clientHeight||300),[d,t]}_setupResizeObserver(){var d;let t=!1,n=Ml((c=>{this._trackResize&&!this._removed&&(this.resize(c),this.redraw())}),50),s=(d=this._ownerWindow.ResizeObserver)!==null&&d!==void 0?d:ResizeObserver;this._resizeObserver=new s((c=>{t?n(c):t=!0})),this._resizeObserver.observe(this._container)}_resolveContainer(d){if(typeof d==\"string\"){let t=document.getElementById(d);if(!t)throw new Error(`Container '${d}' not found.`);return t}if(d instanceof HTMLElement||d&&typeof d==\"object\"&&d.nodeType===1)return d;throw new Error(\"Invalid type: 'container' must be a String or HTMLElement.\")}_setupContainer(){let d=this._container;d.classList.add(\"maplibregl-map\");let t=this._canvasContainer=le.create(\"div\",\"maplibregl-canvas-container\",d);this._interactive&&t.classList.add(\"maplibregl-interactive\"),this._canvas=le.create(\"canvas\",\"maplibregl-canvas\",t),this._canvas.addEventListener(\"webglcontextlost\",this._contextLost,!1),this._canvas.addEventListener(\"webglcontextrestored\",this._contextRestored,!1),this._canvas.setAttribute(\"tabindex\",this._interactive?\"0\":\"-1\"),this._canvas.setAttribute(\"aria-label\",this._getUIString(\"Map.Title\")),this._canvas.setAttribute(\"role\",\"region\");let n=this._containerDimensions(),s=this._getClampedPixelRatio(n[0],n[1]);this._resizeCanvas(n[0],n[1],s);let c=this._controlContainer=le.create(\"div\",\"maplibregl-control-container\",d),f=this._controlPositions={};for(let y of[\"top-left\",\"top-right\",\"bottom-left\",\"bottom-right\"])f[y]=le.create(\"div\",`maplibregl-ctrl-${y} `,c);this._container.addEventListener(\"scroll\",this._onMapScroll,!1)}_resizeCanvas(d,t,n){this._canvas.width=Math.floor(n*d),this._canvas.height=Math.floor(n*t),this._canvas.style.width=`${d}px`,this._canvas.style.height=`${t}px`}_setupPainter(){let d=Object.assign(Object.assign({},this._canvasContextAttributes),{alpha:!0,depth:!0,stencil:!0,premultipliedAlpha:!0}),t=null;this._canvas.addEventListener(\"webglcontextcreationerror\",(s=>{t={requestedAttributes:d},s&&(t.statusMessage=s.statusMessage,t.type=s.type)}),{once:!0});let n=null;if(n=this._canvasContextAttributes.contextType?this._canvas.getContext(this._canvasContextAttributes.contextType,d):this._canvas.getContext(\"webgl2\",d)||this._canvas.getContext(\"webgl\",d),!n){let s=\"Failed to initialize WebGL\";throw t?(t.message=s,new Error(JSON.stringify(t))):new Error(s)}this.painter=new Yo(n,this.transform)}migrateProjection(d,t){super.migrateProjection(d,t),this.painter.transform=d,this.fire(new h.n(\"projectiontransition\",{newProjection:this.style.projection.name}))}loaded(){return!this._styleDirty&&!this._sourcesDirty&&!!this.style&&this.style.loaded()}_update(d){var t;return!((t=this.style)===null||t===void 0)&&t._loaded?(this._styleDirty||(this._styleDirty=d),this._sourcesDirty=!0,this.triggerRepaint(),this):this}_requestRenderFrame(d){return this._update(),this._renderTaskQueue.add(d)}_cancelRenderFrame(d){this._renderTaskQueue.remove(d)}_render(d){var t,n,s,c,f,y;let x=this._idleTriggered?this._fadeDuration:0,w=((t=this.style.projection)===null||t===void 0?void 0:t.transitionState)>0;if(this.painter.context.setDirty(),this.painter.setBaseState(),this._renderTaskQueue.run(d),this._removed)return;let S=!1;if(this.style&&this._styleDirty){this._styleDirty=!1;let I=this.transform.zoom,D=Fe();this.style.zoomHistory.update(I,D);let B=new h.J(I,{now:D,fadeDuration:x,zoomHistory:this.style.zoomHistory,transition:this.style.getTransition()}),V=B.crossFadingFactor();V===1&&V===this._crossFadingFactor||(S=!0,this._crossFadingFactor=V),this.style.update(B)}let M=((n=this.style.projection)===null||n===void 0?void 0:n.transitionState)>0!==w;(s=this.style.projection)===null||s===void 0||s.setErrorQueryLatitudeDegrees(this.transform.center.lat),this.transform.setTransitionState((c=this.style.projection)===null||c===void 0?void 0:c.transitionState,(f=this.style.projection)===null||f===void 0?void 0:f.latitudeErrorCorrectionRadians),this.style&&(this._sourcesDirty||M)&&(this._sourcesDirty=!1,this.style._updateSources(this.transform)),this.terrain?(this.terrain.tileManager.update(this.transform,this.terrain),this.transform.setMinElevationForCurrentTile(this.terrain.getMinTileElevationForLngLatZoom(this.transform.center,this.transform.tileZoom)),!this._elevationFreeze&&this._centerClampedToGround&&this.transform.setElevation(this.terrain.getElevationForLngLatZoom(this.transform.center,this.transform.tileZoom))):(this.transform.setMinElevationForCurrentTile(0),this._centerClampedToGround&&this.transform.setElevation(0)),this._placementDirty=(y=this.style)===null||y===void 0?void 0:y._updatePlacement(this.transform,this.showCollisionBoxes,x,this._crossSourceCollisions,M),this.painter.render(this.style,{showTileBoundaries:this.showTileBoundaries,showOverdrawInspector:this._showOverdrawInspector,rotating:this.isRotating(),zooming:this.isZooming(),moving:this.isMoving(),fadeDuration:x,showPadding:this.showPadding,anisotropicFilterPitch:this.getAnisotropicFilterPitch()}),this.fire(new h.n(\"render\")),this.loaded()&&!this._loaded&&(this._loaded=!0,this.fire(new h.n(\"load\"))),this.style&&(this.style.hasTransitions()||S)&&(this._styleDirty=!0),this.style&&!this._placementDirty&&this.style._releaseSymbolFadeTiles();let E=this._sourcesDirty||this._styleDirty||this._placementDirty;return E||this._repaint?this.triggerRepaint():!this.isMoving()&&this.loaded()&&this.fire(new h.n(\"idle\")),!this._loaded||this._fullyLoaded||E||(this._fullyLoaded=!0),this}redraw(){return this.style&&(this._frameRequest&&(this._frameRequest.abort(),this._frameRequest=null),this._render(0)),this}remove(){var d,t;this._hash&&this._hash.remove();for(let s of this._controls)s.onRemove(this);this._controls=[],this._frameRequest&&(this._frameRequest.abort(),this._frameRequest=null),this._renderTaskQueue.clear(),(d=this._diffStyleRequest)===null||d===void 0||d.abort(),this.painter.destroy(),this.handlers.destroy(),delete this.handlers,this.setStyle(null),typeof window<\"u\"&&this._ownerWindow.removeEventListener(\"online\",this._onWindowOnline,!1),st.removeThrottleControl(this._imageQueueHandle),(t=this._resizeObserver)===null||t===void 0||t.disconnect();let n=this.painter.context.gl.getExtension(\"WEBGL_lose_context\");n?.loseContext&&n.loseContext(),this._canvas.removeEventListener(\"webglcontextrestored\",this._contextRestored,!1),this._canvas.removeEventListener(\"webglcontextlost\",this._contextLost,!1),this._canvasContainer.remove(),this._controlContainer.remove(),this._container.removeEventListener(\"scroll\",this._onMapScroll,!1),this._container.classList.remove(\"maplibregl-map\"),this._removed=!0,this.fire(new h.n(\"remove\"))}triggerRepaint(){this.style&&!this._frameRequest&&(this._frameRequest=new AbortController,Ge.frame(this._frameRequest,(d=>{this._frameRequest=null;try{this._render(d)}catch(t){if(!h.$(t)&&!(function(n){return n.message===Wa})(t))throw t}}),(()=>{}),this._ownerWindow))}get showTileBoundaries(){return!!this._showTileBoundaries}set showTileBoundaries(d){this._showTileBoundaries!==d&&(this._showTileBoundaries=d,this._update())}get showPadding(){return!!this._showPadding}set showPadding(d){this._showPadding!==d&&(this._showPadding=d,this._update())}get showCollisionBoxes(){return!!this._showCollisionBoxes}set showCollisionBoxes(d){this._showCollisionBoxes!==d&&(this._showCollisionBoxes=d,d?this.style._generateCollisionBoxes():this._update())}get showOverdrawInspector(){return!!this._showOverdrawInspector}set showOverdrawInspector(d){this._showOverdrawInspector!==d&&(this._showOverdrawInspector=d,this._update())}get repaint(){return!!this._repaint}set repaint(d){this._repaint!==d&&(this._repaint=d,this.triggerRepaint())}get vertices(){return!!this._vertices}set vertices(d){this._vertices=d,this._update()}get version(){return is}getCameraTargetElevation(){return this.transform.elevation}getProjection(){return this.style.getProjection()}setProjection(d){return this._lazyInitEmptyStyle(),this.style.setProjection(d),this._update(!0)}},Fl={showCompass:!0,showZoom:!0,visualizePitch:!1,visualizeRoll:!0};class aa{constructor(t,n,s=!1){this.mousedown=f=>{this.startMove(f,le.mousePos(this.element,f)),window.addEventListener(\"mousemove\",this.mousemove),window.addEventListener(\"mouseup\",this.mouseup)},this.mousemove=f=>{this.move(f,le.mousePos(this.element,f))},this.mouseup=f=>{this._rotatePitchHandler.dragEnd(f),this.offTemp()},this.touchstart=f=>{f.targetTouches.length!==1?this.reset():(this._startPos=this._lastPos=le.touchPos(this.element,f.targetTouches)[0],this.startMove(f,this._startPos),window.addEventListener(\"touchmove\",this.touchmove,{passive:!1}),window.addEventListener(\"touchend\",this.touchend))},this.touchmove=f=>{f.targetTouches.length!==1?this.reset():(this._lastPos=le.touchPos(this.element,f.targetTouches)[0],this.move(f,this._lastPos))},this.touchend=f=>{f.targetTouches.length===0&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos){this._rotatePitchHandler.reset(),delete this._startPos,delete this._lastPos,this.offTemp()},this._clickTolerance=10,this.element=n;let c=new Cl;this._rotatePitchHandler=new Lr({clickTolerance:3,move:(f,y)=>{let x=n.getBoundingClientRect(),w=new h.P((x.bottom-x.top)/2,(x.right-x.left)/2);return{bearingDelta:h.cx(new h.P(f.x,y.y),y,w),pitchDelta:s?-.5*(y.y-f.y):void 0}},moveStateManager:c,enable:!0,assignEvents:()=>{}}),this.map=t,n.addEventListener(\"mousedown\",this.mousedown),n.addEventListener(\"touchstart\",this.touchstart,{passive:!1}),n.addEventListener(\"touchcancel\",this.reset)}startMove(t,n){this._rotatePitchHandler.dragStart(t,n),le.disableDrag()}move(t,n){let s=this.map,{bearingDelta:c,pitchDelta:f}=this._rotatePitchHandler.dragMove(t,n)||{};c&&s.setBearing(s.getBearing()+c),f&&s.setPitch(s.getPitch()+f)}off(){let t=this.element;t.removeEventListener(\"mousedown\",this.mousedown),t.removeEventListener(\"touchstart\",this.touchstart),window.removeEventListener(\"touchmove\",this.touchmove),window.removeEventListener(\"touchend\",this.touchend),t.removeEventListener(\"touchcancel\",this.reset),this.offTemp()}offTemp(){le.enableDrag(),window.removeEventListener(\"mousemove\",this.mousemove),window.removeEventListener(\"mouseup\",this.mouseup),window.removeEventListener(\"touchmove\",this.touchmove),window.removeEventListener(\"touchend\",this.touchend)}}let Br;function os(d,t,n,s=!1){if(s||!n.getCoveringTilesDetailsProvider().allowWorldCopies())return d?.wrap();let c=new h.W(d.lng,d.lat);if(d=new h.W(d.lng,d.lat),t){let f=new h.W(d.lng-360,d.lat),y=new h.W(d.lng+360,d.lat),x=n.locationToScreenPoint(d).distSqr(t);n.locationToScreenPoint(f).distSqr(t)180;){let f=n.locationToScreenPoint(d);if(f.x>=0&&f.y>=0&&f.x<=n.width&&f.y<=n.height)break;d.lng>n.center.lng?d.lng-=360:d.lng+=360}return d.lng!==c.lng&&n.isPointOnMapSurface(n.locationToScreenPoint(d))?d:c}let sa={center:\"translate(-50%,-50%)\",top:\"translate(-50%,0)\",\"top-left\":\"translate(0,0)\",\"top-right\":\"translate(-100%,0)\",bottom:\"translate(-50%,-100%)\",\"bottom-left\":\"translate(0,-100%)\",\"bottom-right\":\"translate(-100%,-100%)\",left:\"translate(0,-50%)\",right:\"translate(-100%,-50%)\"};function as(d,t,n){let s=d.classList;for(let c in sa)s.remove(`maplibregl-${n}-anchor-${c}`);s.add(`maplibregl-${n}-anchor-${t}`)}class la extends h.E{constructor(t){if(super(),this._onClick=n=>{this.fire(new h.n(\"click\",{originalEvent:n}))},this._onKeyPress=n=>{n.code!==\"Space\"&&n.code!==\"Enter\"||this.togglePopup()},this._onMapClick=n=>{let s=n.originalEvent.target,c=this._element;this._popup&&(s===c||c.contains(s))&&this.togglePopup()},this._update=n=>{if(!this._map)return;let s=this._map.loaded()&&!this._map.isMoving();(n?.type===\"terrain\"||n?.type===\"render\"&&!s)&&this._map.once(\"render\",this._update),this._lngLat=os(this._lngLat,this._flatPos,this._map.transform),this._flatPos=this._pos=this._map.project(this._lngLat)._add(this._offset),this._map.terrain&&(this._flatPos=this._map.transform.locationToScreenPoint(this._lngLat)._add(this._offset));let c=\"\";this._rotationAlignment===\"viewport\"||this._rotationAlignment===\"auto\"?c=`rotateZ(${this._rotation}deg)`:this._rotationAlignment===\"map\"&&(c=`rotateZ(${this._rotation-this._map.getBearing()}deg)`);let f=\"\";this._pitchAlignment===\"viewport\"||this._pitchAlignment===\"auto\"?f=\"rotateX(0deg)\":this._pitchAlignment===\"map\"&&(f=`rotateX(${this._map.getPitch()}deg)`),this._subpixelPositioning||n&&n.type!==\"moveend\"||(this._pos=this._pos.round()),this._element.style.transform=`${sa[this._anchor]} translate(${this._pos.x}px, ${this._pos.y}px) ${f} ${c}`,Ge.frameAsync(new AbortController,this._map._ownerWindow).then((()=>{this._updateOpacity(n?.type===\"moveend\")})).catch((()=>{}))},this._onMove=n=>{if(!this._isDragging){let s=this._clickTolerance||this._map._clickTolerance;this._isDragging=n.point.dist(this._pointerdownPos)>=s}this._isDragging&&(this._pos=n.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents=\"none\",this._state===\"pending\"&&(this._state=\"active\",this.fire(new h.n(\"dragstart\"))),this.fire(new h.n(\"drag\")))},this._onUp=()=>{this._element.style.pointerEvents=\"auto\",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1,this._map.off(\"mousemove\",this._onMove),this._map.off(\"touchmove\",this._onMove),this._state===\"active\"&&this.fire(new h.n(\"dragend\")),this._state=\"inactive\"},this._addDragHandler=n=>{this._element.contains(n.originalEvent.target)&&(n.preventDefault(),this._positionDelta=n.point.sub(this._pos).add(this._offset),this._pointerdownPos=n.point,this._state=\"pending\",this._map.on(\"mousemove\",this._onMove),this._map.on(\"touchmove\",this._onMove),this._map.once(\"mouseup\",this._onUp),this._map.once(\"touchend\",this._onUp))},this._anchor=t?.anchor||\"center\",this._color=t?.color||\"#3FB1CE\",this._scale=t?.scale||1,this._draggable=t?.draggable||!1,this._clickTolerance=t?.clickTolerance||0,this._subpixelPositioning=t?.subpixelPositioning||!1,this._isDragging=!1,this._state=\"inactive\",this._rotation=t?.rotation||0,this._rotationAlignment=t?.rotationAlignment||\"auto\",this._pitchAlignment=t?.pitchAlignment&&t.pitchAlignment!==\"auto\"?t.pitchAlignment:this._rotationAlignment,this.setOpacity(t?.opacity,t?.opacityWhenCovered),t?.element)this._element=t.element,this._offset=h.P.convert(t?.offset||[0,0]);else{this._defaultMarker=!0,this._element=le.create(\"div\");let n=le.createNS(\"http://www.w3.org/2000/svg\",\"svg\"),s=41,c=27;n.setAttributeNS(null,\"display\",\"block\"),n.setAttributeNS(null,\"height\",`${s}px`),n.setAttributeNS(null,\"width\",`${c}px`),n.setAttributeNS(null,\"viewBox\",`0 0 ${c} ${s}`);let f=le.createNS(\"http://www.w3.org/2000/svg\",\"g\");f.setAttributeNS(null,\"stroke\",\"none\"),f.setAttributeNS(null,\"stroke-width\",\"1\"),f.setAttributeNS(null,\"fill\",\"none\"),f.setAttributeNS(null,\"fill-rule\",\"evenodd\");let y=le.createNS(\"http://www.w3.org/2000/svg\",\"g\");y.setAttributeNS(null,\"fill-rule\",\"nonzero\");let x=le.createNS(\"http://www.w3.org/2000/svg\",\"g\");x.setAttributeNS(null,\"transform\",\"translate(3.0, 29.0)\"),x.setAttributeNS(null,\"fill\",\"#000000\");let w=[{rx:\"10.5\",ry:\"5.25002273\"},{rx:\"10.5\",ry:\"5.25002273\"},{rx:\"9.5\",ry:\"4.77275007\"},{rx:\"8.5\",ry:\"4.29549936\"},{rx:\"7.5\",ry:\"3.81822308\"},{rx:\"6.5\",ry:\"3.34094679\"},{rx:\"5.5\",ry:\"2.86367051\"},{rx:\"4.5\",ry:\"2.38636864\"}];for(let N of w){let G=le.createNS(\"http://www.w3.org/2000/svg\",\"ellipse\");G.setAttributeNS(null,\"opacity\",\"0.04\"),G.setAttributeNS(null,\"cx\",\"10.5\"),G.setAttributeNS(null,\"cy\",\"5.80029008\"),G.setAttributeNS(null,\"rx\",N.rx),G.setAttributeNS(null,\"ry\",N.ry),x.appendChild(G)}let S=le.createNS(\"http://www.w3.org/2000/svg\",\"g\");S.setAttributeNS(null,\"fill\",this._color);let M=le.createNS(\"http://www.w3.org/2000/svg\",\"path\");M.setAttributeNS(null,\"d\",\"M27,13.5 C27,19.074644 20.250001,27.000002 14.75,34.500002 C14.016665,35.500004 12.983335,35.500004 12.25,34.500002 C6.7499993,27.000002 0,19.222562 0,13.5 C0,6.0441559 6.0441559,0 13.5,0 C20.955844,0 27,6.0441559 27,13.5 Z\"),S.appendChild(M);let E=le.createNS(\"http://www.w3.org/2000/svg\",\"g\");E.setAttributeNS(null,\"opacity\",\"0.25\"),E.setAttributeNS(null,\"fill\",\"#000000\");let I=le.createNS(\"http://www.w3.org/2000/svg\",\"path\");I.setAttributeNS(null,\"d\",\"M13.5,0 C6.0441559,0 0,6.0441559 0,13.5 C0,19.222562 6.7499993,27 12.25,34.5 C13,35.522727 14.016664,35.500004 14.75,34.5 C20.250001,27 27,19.074644 27,13.5 C27,6.0441559 20.955844,0 13.5,0 Z M13.5,1 C20.415404,1 26,6.584596 26,13.5 C26,15.898657 24.495584,19.181431 22.220703,22.738281 C19.945823,26.295132 16.705119,30.142167 13.943359,33.908203 C13.743445,34.180814 13.612715,34.322738 13.5,34.441406 C13.387285,34.322738 13.256555,34.180814 13.056641,33.908203 C10.284481,30.127985 7.4148684,26.314159 5.015625,22.773438 C2.6163816,19.232715 1,15.953538 1,13.5 C1,6.584596 6.584596,1 13.5,1 Z\"),E.appendChild(I);let D=le.createNS(\"http://www.w3.org/2000/svg\",\"g\");D.setAttributeNS(null,\"transform\",\"translate(6.0, 7.0)\"),D.setAttributeNS(null,\"fill\",\"#FFFFFF\");let B=le.createNS(\"http://www.w3.org/2000/svg\",\"g\");B.setAttributeNS(null,\"transform\",\"translate(8.0, 8.0)\");let V=le.createNS(\"http://www.w3.org/2000/svg\",\"circle\");V.setAttributeNS(null,\"fill\",\"#000000\"),V.setAttributeNS(null,\"opacity\",\"0.25\"),V.setAttributeNS(null,\"cx\",\"5.5\"),V.setAttributeNS(null,\"cy\",\"5.5\"),V.setAttributeNS(null,\"r\",\"5.4999962\");let q=le.createNS(\"http://www.w3.org/2000/svg\",\"circle\");q.setAttributeNS(null,\"fill\",\"#FFFFFF\"),q.setAttributeNS(null,\"cx\",\"5.5\"),q.setAttributeNS(null,\"cy\",\"5.5\"),q.setAttributeNS(null,\"r\",\"5.4999962\"),B.appendChild(V),B.appendChild(q),y.appendChild(x),y.appendChild(S),y.appendChild(E),y.appendChild(D),y.appendChild(B),n.appendChild(y),n.setAttributeNS(null,\"height\",s*this._scale+\"px\"),n.setAttributeNS(null,\"width\",c*this._scale+\"px\"),this._element.appendChild(n),this._offset=h.P.convert(t?.offset||[0,-14])}if(this._element.classList.add(\"maplibregl-marker\"),this._element.addEventListener(\"dragstart\",(n=>{n.preventDefault()})),this._element.addEventListener(\"mousedown\",(n=>{n.preventDefault()})),as(this._element,this._anchor,\"marker\"),t?.className)for(let n of t.className.split(\" \"))this._element.classList.add(n);this._popup=null}addTo(t){return this.remove(),this._map=t,this._element.hasAttribute(\"aria-label\")||this._element.setAttribute(\"aria-label\",t._getUIString(\"Marker.Title\")),this._element.hasAttribute(\"role\")||this._element.setAttribute(\"role\",\"button\"),t.getCanvasContainer().appendChild(this._element),t.on(\"move\",this._update),t.on(\"moveend\",this._update),t.on(\"terrain\",this._update),t.on(\"projectiontransition\",this._update),this._element.addEventListener(\"click\",this._onClick),this.setDraggable(this._draggable),this._update(),this._map.on(\"click\",this._onMapClick),this}remove(){return this._opacityTimeout&&(clearTimeout(this._opacityTimeout),delete this._opacityTimeout),this._map&&(this._map.off(\"click\",this._onMapClick),this._map.off(\"move\",this._update),this._map.off(\"moveend\",this._update),this._map.off(\"terrain\",this._update),this._map.off(\"projectiontransition\",this._update),this._map.off(\"mousedown\",this._addDragHandler),this._map.off(\"touchstart\",this._addDragHandler),this._map.off(\"mouseup\",this._onUp),this._map.off(\"touchend\",this._onUp),this._map.off(\"mousemove\",this._onMove),this._map.off(\"touchmove\",this._onMove),delete this._map),this._element.removeEventListener(\"click\",this._onClick),this._element.remove(),this._popup&&this._popup.remove(),this}getLngLat(){return this._lngLat}setLngLat(t){return this._lngLat=h.W.convert(t),this._pos=null,this._popup&&this._popup.setLngLat(this._lngLat),this._update(),this}getElement(){return this._element}setPopup(t){if(this._popup&&(this._popup.remove(),this._popup=null,this._element.removeEventListener(\"keypress\",this._onKeyPress),this._originalTabIndex||this._element.removeAttribute(\"tabindex\")),t){if(!(\"offset\"in t.options)){let c=Math.abs(13.5)/Math.SQRT2;t.options.offset=this._defaultMarker?{top:[0,0],\"top-left\":[0,0],\"top-right\":[0,0],bottom:[0,-38.1],\"bottom-left\":[c,-1*(38.1-13.5+c)],\"bottom-right\":[-c,-1*(38.1-13.5+c)],left:[13.5,-1*(38.1-13.5)],right:[-13.5,-1*(38.1-13.5)]}:this._offset}this._popup=t,this._originalTabIndex=this._element.getAttribute(\"tabindex\"),this._originalTabIndex||this._element.setAttribute(\"tabindex\",\"0\"),this._element.addEventListener(\"keypress\",this._onKeyPress)}return this}setSubpixelPositioning(t){return this._subpixelPositioning=t,this}getPopup(){return this._popup}togglePopup(){let t=this._popup;return this._element.style.opacity===this._opacityWhenCovered?this:t?(t.isOpen()?t.remove():(t.setLngLat(this._lngLat),t.addTo(this._map)),this):this}_updateOpacity(t=!1){var n,s;let c=(n=this._map)===null||n===void 0?void 0:n.terrain,f=this._map.transform.isLocationOccluded(this._lngLat);if(!c||f){let D=f?this._opacityWhenCovered:this._opacity;return void(this._element.style.opacity!==D&&(this._element.style.opacity=D,this._element.classList.toggle(\"maplibregl-marker-covered\",f)))}if(t)this._opacityTimeout=null;else{if(this._opacityTimeout)return;this._opacityTimeout=setTimeout((()=>{this._opacityTimeout=null}),100)}let y=this._map,x=y.terrain.depthAtPoint(this._pos),w=y.terrain.getElevationForLngLat(this._lngLat,y.transform);if(y.transform.lngLatToCameraDepth(this._lngLat,w)-x<.006)return this._element.style.opacity=this._opacity,void this._element.classList.remove(\"maplibregl-marker-covered\");let S=-this._offset.y/y.transform.pixelsPerMeter,M=Math.sin(y.getPitch()*Math.PI/180)*S,E=y.terrain.depthAtPoint(new h.P(this._pos.x,this._pos.y-this._offset.y)),I=y.transform.lngLatToCameraDepth(this._lngLat,w+M)-E>.006;!((s=this._popup)===null||s===void 0)&&s.isOpen()&&I&&this._popup.remove(),this._element.style.opacity=I?this._opacityWhenCovered:this._opacity,this._element.classList.toggle(\"maplibregl-marker-covered\",I)}getOffset(){return this._offset}setOffset(t){return this._offset=h.P.convert(t),this._update(),this}addClassName(t){this._element.classList.add(t)}removeClassName(t){this._element.classList.remove(t)}toggleClassName(t){return this._element.classList.toggle(t)}setDraggable(t){return this._draggable=!!t,this._map&&(t?(this._map.on(\"mousedown\",this._addDragHandler),this._map.on(\"touchstart\",this._addDragHandler)):(this._map.off(\"mousedown\",this._addDragHandler),this._map.off(\"touchstart\",this._addDragHandler))),this}isDraggable(){return this._draggable}setRotation(t){return this._rotation=t||0,this._update(),this}getRotation(){return this._rotation}setRotationAlignment(t){return this._rotationAlignment=t||\"auto\",this._update(),this}getRotationAlignment(){return this._rotationAlignment}setPitchAlignment(t){return this._pitchAlignment=t&&t!==\"auto\"?t:this._rotationAlignment,this._update(),this}getPitchAlignment(){return this._pitchAlignment}setOpacity(t,n){return(this._opacity===void 0||t===void 0&&n===void 0)&&(this._opacity=\"1\",this._opacityWhenCovered=\"0.2\"),t!==void 0&&(this._opacity=String(t)),n!==void 0&&(this._opacityWhenCovered=String(n)),this._map&&this._updateOpacity(!0),this}}let Bl={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},fo=0,Dn=!1,Ol={maxWidth:100,unit:\"metric\"};function ca(d,t,n){let s=n?.maxWidth||100,c=d._container.clientHeight/2,f=d._container.clientWidth/2,y=d.unproject([f-s/2,c]),x=d.unproject([f+s/2,c]),w=Math.round(d.project(x).x-d.project(y).x),S=Math.min(s,w,d._container.clientWidth),M=y.distanceTo(x);if(n?.unit===\"imperial\"){let E=3.2808*M;E>5280?kn(t,S,E/5280,d._getUIString(\"ScaleControl.Miles\")):kn(t,S,E,d._getUIString(\"ScaleControl.Feet\"))}else n?.unit===\"nautical\"?kn(t,S,M/1852,d._getUIString(\"ScaleControl.NauticalMiles\")):M>=1e3?kn(t,S,M/1e3,d._getUIString(\"ScaleControl.Kilometers\")):kn(t,S,M,d._getUIString(\"ScaleControl.Meters\"))}function kn(d,t,n,s){let c=(function(f){let y=Math.pow(10,`${Math.floor(f)}`.length-1),x=f/y;return x=x>=10?10:x>=5?5:x>=3?3:x>=2?2:x>=1?1:(function(w){let S=Math.pow(10,Math.ceil(-Math.log(w)/Math.LN10));return Math.round(w*S)/S})(x),y*x})(n);d.style.width=t*(c/n)+\"px\",d.innerHTML=`${c} ${s}`}let Vl={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:\"\",maxWidth:\"240px\",subpixelPositioning:!1,locationOccludedOpacity:void 0,padding:void 0},ss=[\"a[href]\",\"[tabindex]:not([tabindex='-1'])\",\"[contenteditable]:not([contenteditable='false'])\",\"button:not([disabled])\",\"input:not([disabled])\",\"select:not([disabled])\",\"textarea:not([disabled])\"].join(\", \");function ls(d){if(d){if(typeof d==\"number\"){let t=Math.round(Math.abs(d)/Math.SQRT2);return{center:new h.P(0,0),top:new h.P(0,d),\"top-left\":new h.P(t,t),\"top-right\":new h.P(-t,t),bottom:new h.P(0,-d),\"bottom-left\":new h.P(t,-t),\"bottom-right\":new h.P(-t,-t),left:new h.P(d,0),right:new h.P(-d,0)}}if(d instanceof h.P||Array.isArray(d)){let t=h.P.convert(d);return{center:t,top:t,\"top-left\":t,\"top-right\":t,bottom:t,\"bottom-left\":t,\"bottom-right\":t,left:t,right:t}}return{center:h.P.convert(d.center||[0,0]),top:h.P.convert(d.top||[0,0]),\"top-left\":h.P.convert(d[\"top-left\"]||[0,0]),\"top-right\":h.P.convert(d[\"top-right\"]||[0,0]),bottom:h.P.convert(d.bottom||[0,0]),\"bottom-left\":h.P.convert(d[\"bottom-left\"]||[0,0]),\"bottom-right\":h.P.convert(d[\"bottom-right\"]||[0,0]),left:h.P.convert(d.left||[0,0]),right:h.P.convert(d.right||[0,0])}}return ls(new h.P(0,0))}let jl=pe;k.AJAXError=h.cG,k.EXTENT=h.a6,k.Event=h.n,k.Evented=h.E,k.LngLat=h.W,k.MercatorCoordinate=h.a7,k.Point=h.P,k.addProtocol=h.cH,k.config=h.c,k.removeProtocol=h.cI,k.AttributionControl=nr,k.BoxZoomHandler=Sr,k.CanvasSource=js,k.CooperativeGesturesHandler=Ue,k.DoubleClickZoomHandler=Rl,k.DragPanHandler=yr,k.DragRotateHandler=ra,k.EdgeInsets=Xn,k.FullscreenControl=class extends h.E{constructor(d={}){var t;super(),this._onFullscreenChange=()=>{var n;let s=window.document.fullscreenElement||window.document.webkitFullscreenElement;for(;!((n=s?.shadowRoot)===null||n===void 0)&&n.fullscreenElement;)s=s.shadowRoot.fullscreenElement;s===this._container!==this._fullscreen&&this._handleFullscreenChange()},this._onClickFullscreen=()=>{this._isFullscreen()?this._exitFullscreen():this._requestFullscreen()},this._fullscreen=!1,this._pseudo=(t=d.pseudo)!==null&&t!==void 0&&t,d?.container&&(d.container instanceof HTMLElement?this._container=d.container:h.w(\"Full screen control 'container' must be a DOM element.\")),\"onfullscreenchange\"in document?this._fullscreenchange=\"fullscreenchange\":\"onmozfullscreenchange\"in document?this._fullscreenchange=\"mozfullscreenchange\":\"onwebkitfullscreenchange\"in document?this._fullscreenchange=\"webkitfullscreenchange\":\"onmsfullscreenchange\"in document&&(this._fullscreenchange=\"MSFullscreenChange\")}onAdd(d){return this._map=d,this._container||(this._container=this._map.getContainer()),this._controlContainer=le.create(\"div\",\"maplibregl-ctrl maplibregl-ctrl-group\"),this._setupUI(),this._controlContainer}onRemove(){this._controlContainer.remove(),this._map=null,window.document.removeEventListener(this._fullscreenchange,this._onFullscreenChange)}_setupUI(){let d=this._fullscreenButton=le.create(\"button\",\"maplibregl-ctrl-fullscreen\",this._controlContainer);le.create(\"span\",\"maplibregl-ctrl-icon\",d).setAttribute(\"aria-hidden\",\"true\"),d.type=\"button\",this._updateTitle(),this._fullscreenButton.addEventListener(\"click\",this._onClickFullscreen),window.document.addEventListener(this._fullscreenchange,this._onFullscreenChange)}_updateTitle(){let d=this._getTitle();this._fullscreenButton.setAttribute(\"aria-label\",d),this._fullscreenButton.title=d}_getTitle(){return this._map._getUIString(this._isFullscreen()?\"FullscreenControl.Exit\":\"FullscreenControl.Enter\")}_isFullscreen(){return this._fullscreen}_handleFullscreenChange(){this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle(\"maplibregl-ctrl-shrink\"),this._fullscreenButton.classList.toggle(\"maplibregl-ctrl-fullscreen\"),this._updateTitle(),this._fullscreen?(this.fire(new h.n(\"fullscreenstart\")),this._prevCooperativeGesturesEnabled=this._map.cooperativeGestures.isEnabled(),this._map.cooperativeGestures.disable()):(this.fire(new h.n(\"fullscreenend\")),this._prevCooperativeGesturesEnabled&&this._map.cooperativeGestures.enable())}_exitFullscreen(){this._pseudo?this._togglePseudoFullScreen():window.document.exitFullscreen?window.document.exitFullscreen():window.document.webkitCancelFullScreen?window.document.webkitCancelFullScreen():this._togglePseudoFullScreen()}_requestFullscreen(){this._pseudo?this._togglePseudoFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.webkitRequestFullscreen?this._container.webkitRequestFullscreen():this._togglePseudoFullScreen()}_togglePseudoFullScreen(){this._container.classList.toggle(\"maplibregl-pseudo-fullscreen\"),this._handleFullscreenChange(),this._map.resize()}},k.GeoJSONSource=Zr,k.GeolocateControl=class extends h.E{constructor(d){super(),this._onSuccess=t=>{if(this._map){if(this._isOutOfMapMaxBounds(t))return this._setErrorState(),this.fire(new h.n(\"outofmaxbounds\",t)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=t,this._watchState){case\"WAITING_ACTIVE\":case\"ACTIVE_LOCK\":case\"ACTIVE_ERROR\":this._watchState=\"ACTIVE_LOCK\",this._geolocateButton.classList.remove(\"maplibregl-ctrl-geolocate-waiting\"),this._geolocateButton.classList.remove(\"maplibregl-ctrl-geolocate-active-error\"),this._geolocateButton.classList.add(\"maplibregl-ctrl-geolocate-active\");break;case\"BACKGROUND\":case\"BACKGROUND_ERROR\":this._watchState=\"BACKGROUND\",this._geolocateButton.classList.remove(\"maplibregl-ctrl-geolocate-waiting\"),this._geolocateButton.classList.remove(\"maplibregl-ctrl-geolocate-background-error\"),this._geolocateButton.classList.add(\"maplibregl-ctrl-geolocate-background\");break;default:throw new Error(`Unexpected watchState ${this._watchState}`)}this.options.showUserLocation&&this._watchState!==\"OFF\"&&this._updateMarker(t),this.options.trackUserLocation&&this._watchState!==\"ACTIVE_LOCK\"||this._updateCamera(t),this.options.showUserLocation&&this._dotElement.classList.remove(\"maplibregl-user-location-dot-stale\"),this.fire(new h.n(\"geolocate\",t)),this._finish()}},this._updateCamera=t=>{let n=new h.W(t.coords.longitude,t.coords.latitude),s=t.coords.accuracy,c=this._map.getBearing(),f=h.e({bearing:c},this.options.fitBoundsOptions),y=De.fromLngLat(n,s);this._map.fitBounds(y,f,{geolocateSource:!0})},this._updateMarker=t=>{if(t){let n=new h.W(t.coords.longitude,t.coords.latitude);this._accuracyCircleMarker.setLngLat(n).addTo(this._map),this._userLocationDotMarker.setLngLat(n).addTo(this._map),this._accuracy=t.coords.accuracy,this._updateCircleRadiusIfNeeded()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},this._onUpdate=()=>{this._updateCircleRadiusIfNeeded()},this._onError=t=>{if(this._map){if(t.code===1){this._watchState=\"OFF\",this._geolocateButton.classList.remove(\"maplibregl-ctrl-geolocate-waiting\"),this._geolocateButton.classList.remove(\"maplibregl-ctrl-geolocate-active\"),this._geolocateButton.classList.remove(\"maplibregl-ctrl-geolocate-active-error\"),this._geolocateButton.classList.remove(\"maplibregl-ctrl-geolocate-background\"),this._geolocateButton.classList.remove(\"maplibregl-ctrl-geolocate-background-error\"),this._geolocateButton.disabled=!0;let n=this._map._getUIString(\"GeolocateControl.LocationNotAvailable\");this._geolocateButton.title=n,this._geolocateButton.setAttribute(\"aria-label\",n),this._geolocationWatchID!==void 0&&this._clearWatch()}else{if(t.code===3&&Dn)return;this._setErrorState()}this._watchState!==\"OFF\"&&this.options.showUserLocation&&this._dotElement.classList.add(\"maplibregl-user-location-dot-stale\"),this.fire(new h.n(\"error\",t)),this._finish()}},this._finish=()=>{this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},this._onMoveStart=t=>{if(!this._map)return;let n=t?.[0]instanceof ResizeObserverEntry;t.geolocateSource||this._watchState!==\"ACTIVE_LOCK\"||n||this._map.isZooming()||(this._watchState=\"BACKGROUND\",this._geolocateButton.classList.add(\"maplibregl-ctrl-geolocate-background\"),this._geolocateButton.classList.remove(\"maplibregl-ctrl-geolocate-active\"),this.fire(new h.n(\"trackuserlocationend\")),this.fire(new h.n(\"userlocationlostfocus\")))},this._setupUI=()=>{this._map&&(this._container.addEventListener(\"contextmenu\",(t=>{t.preventDefault()})),this._geolocateButton=le.create(\"button\",\"maplibregl-ctrl-geolocate\",this._container),le.create(\"span\",\"maplibregl-ctrl-icon\",this._geolocateButton).setAttribute(\"aria-hidden\",\"true\"),this._geolocateButton.type=\"button\",this._geolocateButton.disabled=!0)},this._finishSetupUI=t=>{if(this._map){if(t===!1){h.w(\"Geolocation support is not available so the GeolocateControl will be disabled.\");let n=this._map._getUIString(\"GeolocateControl.LocationNotAvailable\");this._geolocateButton.disabled=!0,this._geolocateButton.title=n,this._geolocateButton.setAttribute(\"aria-label\",n)}else{let n=this._map._getUIString(\"GeolocateControl.FindMyLocation\");this._geolocateButton.disabled=!1,this._geolocateButton.title=n,this._geolocateButton.setAttribute(\"aria-label\",n)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute(\"aria-pressed\",\"false\"),this._watchState=\"OFF\"),this.options.showUserLocation&&(this._dotElement=le.create(\"div\",\"maplibregl-user-location-dot\"),this._userLocationDotMarker=new la({element:this._dotElement}),this._circleElement=le.create(\"div\",\"maplibregl-user-location-accuracy-circle\"),this._accuracyCircleMarker=new la({element:this._circleElement,pitchAlignment:\"map\"}),this.options.trackUserLocation&&(this._watchState=\"OFF\"),this._map.on(\"zoom\",this._onUpdate),this._map.on(\"move\",this._onUpdate),this._map.on(\"rotate\",this._onUpdate),this._map.on(\"pitch\",this._onUpdate)),this._geolocateButton.addEventListener(\"click\",(()=>this.trigger())),this._setup=!0,this.options.trackUserLocation&&this._map.on(\"movestart\",this._onMoveStart)}},this.options=h.e({},Bl,d)}onAdd(d){return this._map=d,this._container=le.create(\"div\",\"maplibregl-ctrl maplibregl-ctrl-group\"),this._setupUI(),(function(){return h._(this,arguments,void 0,(function*(t=!1){if(Br!==void 0&&!t)return Br;if(window.navigator.permissions===void 0)return Br=!!window.navigator.geolocation,Br;try{Br=(yield window.navigator.permissions.query({name:\"geolocation\"})).state!==\"denied\"}catch{Br=!!window.navigator.geolocation}return Br}))})().then((t=>this._finishSetupUI(t))),this._container}onRemove(){this._geolocationWatchID!==void 0&&(window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),this._container.remove(),this._map.off(\"movestart\",this._onMoveStart),this._map.off(\"zoom\",this._onUpdate),this._map.off(\"move\",this._onUpdate),this._map.off(\"rotate\",this._onUpdate),this._map.off(\"pitch\",this._onUpdate),this._map=void 0,fo=0,Dn=!1}_isOutOfMapMaxBounds(d){let t=this._map.getMaxBounds(),n=d.coords;return t&&(n.longitudet.getEast()||n.latitudet.getNorth())}_setErrorState(){switch(this._watchState){case\"WAITING_ACTIVE\":this._watchState=\"ACTIVE_ERROR\",this._geolocateButton.classList.remove(\"maplibregl-ctrl-geolocate-active\"),this._geolocateButton.classList.add(\"maplibregl-ctrl-geolocate-active-error\");break;case\"ACTIVE_LOCK\":this._watchState=\"ACTIVE_ERROR\",this._geolocateButton.classList.remove(\"maplibregl-ctrl-geolocate-active\"),this._geolocateButton.classList.add(\"maplibregl-ctrl-geolocate-active-error\"),this._geolocateButton.classList.add(\"maplibregl-ctrl-geolocate-waiting\");break;case\"BACKGROUND\":this._watchState=\"BACKGROUND_ERROR\",this._geolocateButton.classList.remove(\"maplibregl-ctrl-geolocate-background\"),this._geolocateButton.classList.add(\"maplibregl-ctrl-geolocate-background-error\"),this._geolocateButton.classList.add(\"maplibregl-ctrl-geolocate-waiting\");break;case\"ACTIVE_ERROR\":case\"BACKGROUND_ERROR\":case\"OFF\":case void 0:break;default:throw new Error(`Unexpected watchState ${this._watchState}`)}}_updateCircleRadiusIfNeeded(){let d=this._userLocationDotMarker.getLngLat();if(!(this.options.showUserLocation&&this.options.showAccuracyCircle&&this._accuracy&&d))return;let t=this._map.project(d),n=this._map.unproject([t.x+100,t.y]),s=d.distanceTo(n)/100,c=2*this._accuracy/s;this._circleElement.style.width=`${c.toFixed(2)}px`,this._circleElement.style.height=`${c.toFixed(2)}px`}trigger(){if(!this._setup)return h.w(\"Geolocate control triggered before added to a map\"),!1;if(this.options.trackUserLocation){switch(this._watchState){case\"OFF\":this._watchState=\"WAITING_ACTIVE\",this.fire(new h.n(\"trackuserlocationstart\"));break;case\"WAITING_ACTIVE\":case\"ACTIVE_LOCK\":case\"ACTIVE_ERROR\":case\"BACKGROUND_ERROR\":fo--,Dn=!1,this._watchState=\"OFF\",this._geolocateButton.classList.remove(\"maplibregl-ctrl-geolocate-waiting\"),this._geolocateButton.classList.remove(\"maplibregl-ctrl-geolocate-active\"),this._geolocateButton.classList.remove(\"maplibregl-ctrl-geolocate-active-error\"),this._geolocateButton.classList.remove(\"maplibregl-ctrl-geolocate-background\"),this._geolocateButton.classList.remove(\"maplibregl-ctrl-geolocate-background-error\"),this.fire(new h.n(\"trackuserlocationend\"));break;case\"BACKGROUND\":this._watchState=\"ACTIVE_LOCK\",this._geolocateButton.classList.remove(\"maplibregl-ctrl-geolocate-background\"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new h.n(\"trackuserlocationstart\")),this.fire(new h.n(\"userlocationfocus\"));break;default:throw new Error(`Unexpected watchState ${this._watchState}`)}switch(this._watchState){case\"WAITING_ACTIVE\":this._geolocateButton.classList.add(\"maplibregl-ctrl-geolocate-waiting\"),this._geolocateButton.classList.add(\"maplibregl-ctrl-geolocate-active\");break;case\"ACTIVE_LOCK\":this._geolocateButton.classList.add(\"maplibregl-ctrl-geolocate-active\");break;case\"OFF\":break;default:throw new Error(`Unexpected watchState ${this._watchState}`)}if(this._watchState===\"OFF\"&&this._geolocationWatchID!==void 0)this._clearWatch();else if(this._geolocationWatchID===void 0){let d;this._geolocateButton.classList.add(\"maplibregl-ctrl-geolocate-waiting\"),this._geolocateButton.setAttribute(\"aria-pressed\",\"true\"),fo++,fo>1?(d={maximumAge:6e5,timeout:0},Dn=!0):(d=this.options.positionOptions,Dn=!1),this._geolocationWatchID=window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,d)}}else window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0}_clearWatch(){window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove(\"maplibregl-ctrl-geolocate-waiting\"),this._geolocateButton.setAttribute(\"aria-pressed\",\"false\"),this.options.showUserLocation&&this._updateMarker(null)}},k.GlobeControl=class{constructor(){this._toggleProjection=()=>{var d;let t=(d=this._map.getProjection())===null||d===void 0?void 0:d.type;this._map.setProjection(t!==\"mercator\"&&t?{type:\"mercator\"}:{type:\"globe\"}),this._updateGlobeIcon()},this._updateGlobeIcon=()=>{var d;this._globeButton.classList.remove(\"maplibregl-ctrl-globe\"),this._globeButton.classList.remove(\"maplibregl-ctrl-globe-enabled\"),((d=this._map.getProjection())===null||d===void 0?void 0:d.type)===\"globe\"?(this._globeButton.classList.add(\"maplibregl-ctrl-globe-enabled\"),this._globeButton.title=this._map._getUIString(\"GlobeControl.Disable\")):(this._globeButton.classList.add(\"maplibregl-ctrl-globe\"),this._globeButton.title=this._map._getUIString(\"GlobeControl.Enable\"))}}onAdd(d){return this._map=d,this._container=le.create(\"div\",\"maplibregl-ctrl maplibregl-ctrl-group\"),this._globeButton=le.create(\"button\",\"maplibregl-ctrl-globe\",this._container),le.create(\"span\",\"maplibregl-ctrl-icon\",this._globeButton).setAttribute(\"aria-hidden\",\"true\"),this._globeButton.type=\"button\",this._globeButton.addEventListener(\"click\",this._toggleProjection),this._updateGlobeIcon(),this._map.on(\"styledata\",this._updateGlobeIcon),this._map.on(\"projectiontransition\",this._updateGlobeIcon),this._container}onRemove(){this._container.remove(),this._map.off(\"styledata\",this._updateGlobeIcon),this._map.off(\"projectiontransition\",this._updateGlobeIcon),this._globeButton.removeEventListener(\"click\",this._toggleProjection),this._map=void 0}},k.Hash=Ko,k.ImageSource=Pi,k.KeyboardHandler=hu,k.LngLatBounds=De,k.LogoControl=Ll,k.Map=ns,k.MapLibreMap=ns,k.MapMouseEvent=Hi,k.MapTouchEvent=Qo,k.MapWheelEvent=ru,k.Marker=la,k.NavigationControl=class{constructor(d){this._updateZoomButtons=()=>{let t=this._map.getZoom(),n=t===this._map.getMaxZoom(),s=t===this._map.getMinZoom();this._zoomInButton.disabled=n,this._zoomOutButton.disabled=s,this._zoomInButton.setAttribute(\"aria-disabled\",n.toString()),this._zoomOutButton.setAttribute(\"aria-disabled\",s.toString())},this._rotateCompassArrow=()=>{this._compassIcon.style.transform=this.options.visualizePitch&&this.options.visualizeRoll?`scale(${1/Math.pow(Math.cos(this._map.transform.pitchInRadians),.5)}) rotateZ(${-this._map.transform.roll}deg) rotateX(${this._map.transform.pitch}deg) rotateZ(${-this._map.transform.bearing}deg)`:this.options.visualizePitch?`scale(${1/Math.pow(Math.cos(this._map.transform.pitchInRadians),.5)}) rotateX(${this._map.transform.pitch}deg) rotateZ(${-this._map.transform.bearing}deg)`:this.options.visualizeRoll?`rotate(${-this._map.transform.bearing-this._map.transform.roll}deg)`:`rotate(${-this._map.transform.bearing}deg)`},this._setButtonTitle=(t,n)=>{let s=this._map._getUIString(`NavigationControl.${n}`);t.title=s,t.setAttribute(\"aria-label\",s)},this.options=h.e({},Fl,d),this._container=le.create(\"div\",\"maplibregl-ctrl maplibregl-ctrl-group\"),this._container.addEventListener(\"contextmenu\",(t=>t.preventDefault())),this.options.showZoom&&(this._zoomInButton=this._createButton(\"maplibregl-ctrl-zoom-in\",(t=>this._map.zoomIn({},{originalEvent:t}))),le.create(\"span\",\"maplibregl-ctrl-icon\",this._zoomInButton).setAttribute(\"aria-hidden\",\"true\"),this._zoomOutButton=this._createButton(\"maplibregl-ctrl-zoom-out\",(t=>this._map.zoomOut({},{originalEvent:t}))),le.create(\"span\",\"maplibregl-ctrl-icon\",this._zoomOutButton).setAttribute(\"aria-hidden\",\"true\")),this.options.showCompass&&(this._compass=this._createButton(\"maplibregl-ctrl-compass\",(t=>{this.options.visualizePitch?this._map.resetNorthPitch({},{originalEvent:t}):this._map.resetNorth({},{originalEvent:t})})),this._compassIcon=le.create(\"span\",\"maplibregl-ctrl-icon\",this._compass),this._compassIcon.setAttribute(\"aria-hidden\",\"true\"))}onAdd(d){return this._map=d,this.options.showZoom&&(this._setButtonTitle(this._zoomInButton,\"ZoomIn\"),this._setButtonTitle(this._zoomOutButton,\"ZoomOut\"),this._map.on(\"zoom\",this._updateZoomButtons),this._updateZoomButtons()),this.options.showCompass&&(this._setButtonTitle(this._compass,\"ResetBearing\"),this.options.visualizePitch&&this._map.on(\"pitch\",this._rotateCompassArrow),this.options.visualizeRoll&&this._map.on(\"roll\",this._rotateCompassArrow),this._map.on(\"rotate\",this._rotateCompassArrow),this._rotateCompassArrow(),this._handler=new aa(this._map,this._compass,this.options.visualizePitch)),this._container}onRemove(){this._container.remove(),this.options.showZoom&&this._map.off(\"zoom\",this._updateZoomButtons),this.options.showCompass&&(this.options.visualizePitch&&this._map.off(\"pitch\",this._rotateCompassArrow),this.options.visualizeRoll&&this._map.off(\"roll\",this._rotateCompassArrow),this._map.off(\"rotate\",this._rotateCompassArrow),this._handler.off(),delete this._handler),delete this._map}_createButton(d,t){let n=le.create(\"button\",d,this._container);return n.type=\"button\",n.addEventListener(\"click\",t),n}},k.Popup=class extends h.E{constructor(d){super(),this._updateOpacity=()=>{this.options.locationOccludedOpacity!==void 0&&(this._container.style.opacity=this._map.transform.isLocationOccluded(this.getLngLat())?`${this.options.locationOccludedOpacity}`:\"\")},this.remove=()=>(this._content&&this._content.remove(),this._container&&(this._container.remove(),delete this._container),this._map&&(this._map.off(\"move\",this._update),this._map.off(\"move\",this._onClose),this._map.off(\"click\",this._onClose),this._map.off(\"remove\",this.remove),this._map.off(\"terrain\",this._update),this._map.off(\"projectiontransition\",this._update),this._map.off(\"mousemove\",this._update),this._map.off(\"mouseup\",this._update),this._map.off(\"drag\",this._update),this._map._canvasContainer.classList.remove(\"maplibregl-track-pointer\"),delete this._map,this.fire(new h.n(\"close\"))),this),this._update=t=>{if(!this._map||!this._lngLat&&!this._trackPointer||!this._content)return;if(!this._container){if(this._container=le.create(\"div\",\"maplibregl-popup\",this._map.getContainer()),this._tip=le.create(\"div\",\"maplibregl-popup-tip\",this._container),this._container.appendChild(this._content),this.options.className)for(let x of this.options.className.split(\" \"))this._container.classList.add(x);this._closeButton&&this._closeButton.setAttribute(\"aria-label\",this._map._getUIString(\"Popup.Close\")),this._trackPointer&&this._container.classList.add(\"maplibregl-popup-track-pointer\")}let n;if(this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._lngLat=os(this._lngLat,this._flatPos,this._map.transform,this._trackPointer),t&&\"point\"in t&&t.point&&(n=t.point),this._trackPointer&&!n)return;let s=this._flatPos=this._pos=this._trackPointer&&n?n:this._map.project(this._lngLat);this._map.terrain&&(this._flatPos=this._trackPointer&&n?n:this._map.transform.locationToScreenPoint(this._lngLat));let c=this.options.anchor,f=ls(this.options.offset);if(!c){let x=this._container.offsetWidth,w=this._container.offsetHeight,S=(function(E){var I,D,B,V;return E?{top:(I=E.top)!==null&&I!==void 0?I:0,right:(D=E.right)!==null&&D!==void 0?D:0,bottom:(B=E.bottom)!==null&&B!==void 0?B:0,left:(V=E.left)!==null&&V!==void 0?V:0}:{top:0,right:0,bottom:0,left:0}})(this.options.padding),M;M=s.y+f.bottom.ythis._map.transform.height-w-S.bottom?[\"bottom\"]:[],s.xthis._map.transform.width-x/2-S.right&&M.push(\"right\"),c=M.length===0?\"bottom\":M.join(\"-\")}let y=s.add(f[c]);this.options.subpixelPositioning||(y=y.round()),this._container.style.transform=`${sa[c]} translate(${y.x}px,${y.y}px)`,as(this._container,c,\"popup\"),this._updateOpacity()},this._onClose=()=>{this.remove()},this.options=h.e(Object.create(Vl),d)}addTo(d){return this._map&&this.remove(),this._map=d,this.options.closeOnClick&&this._map.on(\"click\",this._onClose),this.options.closeOnMove&&this._map.on(\"move\",this._onClose),this._map.on(\"remove\",this.remove),this._map.on(\"terrain\",this._update),this._map.on(\"projectiontransition\",this._update),this._update(),this._focusFirstElement(),this._trackPointer?(this._map.on(\"mousemove\",this._update),this._map.on(\"mouseup\",this._update),this._container&&this._container.classList.add(\"maplibregl-popup-track-pointer\"),this._map._canvasContainer.classList.add(\"maplibregl-track-pointer\")):this._map.on(\"move\",this._update),this.fire(new h.n(\"open\")),this}isOpen(){return!!this._map}getLngLat(){return this._lngLat}setLngLat(d){return this._lngLat=h.W.convert(d),this._pos=null,this._flatPos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on(\"move\",this._update),this._map.off(\"mousemove\",this._update),this._container&&this._container.classList.remove(\"maplibregl-popup-track-pointer\"),this._map._canvasContainer.classList.remove(\"maplibregl-track-pointer\")),this}trackPointer(){return this._trackPointer=!0,this._pos=null,this._flatPos=null,this._update(),this._map&&(this._map.off(\"move\",this._update),this._map.on(\"mousemove\",this._update),this._map.on(\"drag\",this._update),this._container&&this._container.classList.add(\"maplibregl-popup-track-pointer\"),this._map._canvasContainer.classList.add(\"maplibregl-track-pointer\")),this}getElement(){return this._container}setText(d){return this.setDOMContent(document.createTextNode(d))}setHTML(d){let t=document.createDocumentFragment(),n=document.createElement(\"body\"),s;for(n.innerHTML=d;s=n.firstChild,s;)t.appendChild(s);return this.setDOMContent(t)}getMaxWidth(){var d;return(d=this._container)===null||d===void 0?void 0:d.style.maxWidth}setMaxWidth(d){return this.options.maxWidth=d,this._update(),this}setDOMContent(d){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=le.create(\"div\",\"maplibregl-popup-content\",this._container);return this._content.appendChild(d),this._createCloseButton(),this._update(),this._focusFirstElement(),this}addClassName(d){return this._container&&this._container.classList.add(d),this}removeClassName(d){return this._container&&this._container.classList.remove(d),this}setOffset(d){return this.options.offset=d,this._update(),this}toggleClassName(d){if(this._container)return this._container.classList.toggle(d)}setSubpixelPositioning(d){this.options.subpixelPositioning=d}setPadding(d){this.options.padding=d,this._update()}_createCloseButton(){this.options.closeButton&&(this._closeButton=le.create(\"button\",\"maplibregl-popup-close-button\",this._content),this._closeButton.type=\"button\",this._closeButton.innerHTML=\"×\",this._closeButton.addEventListener(\"click\",this._onClose))}_focusFirstElement(){if(!this.options.focusAfterOpen||!this._container)return;let d=this._container.querySelector(ss);d&&d.focus()}},k.RasterDEMTileSource=zt,k.RasterTileSource=ht,k.ScaleControl=class{constructor(d){this._onMove=()=>{ca(this._map,this._container,this.options)},this.setUnit=t=>{this.options.unit=t,ca(this._map,this._container,this.options)},this.options=Object.assign(Object.assign({},Ol),d)}getDefaultPosition(){return\"bottom-left\"}onAdd(d){return this._map=d,this._container=le.create(\"div\",\"maplibregl-ctrl maplibregl-ctrl-scale\",d.getContainer()),this._map.on(\"move\",this._onMove),this._onMove(),this._container}onRemove(){this._container.remove(),this._map.off(\"move\",this._onMove),this._map=void 0}},k.ScrollZoomHandler=kl,k.Style=Tn,k.TerrainControl=class{constructor(d){this._toggleTerrain=()=>{this._map.getTerrain()?this._map.setTerrain(null):this._map.setTerrain(this.options),this._updateTerrainIcon()},this._updateTerrainIcon=()=>{this._terrainButton.classList.remove(\"maplibregl-ctrl-terrain\"),this._terrainButton.classList.remove(\"maplibregl-ctrl-terrain-enabled\"),this._map.terrain?(this._terrainButton.classList.add(\"maplibregl-ctrl-terrain-enabled\"),this._terrainButton.title=this._map._getUIString(\"TerrainControl.Disable\")):(this._terrainButton.classList.add(\"maplibregl-ctrl-terrain\"),this._terrainButton.title=this._map._getUIString(\"TerrainControl.Enable\"))},this.options=d}onAdd(d){return this._map=d,this._container=le.create(\"div\",\"maplibregl-ctrl maplibregl-ctrl-group\"),this._terrainButton=le.create(\"button\",\"maplibregl-ctrl-terrain\",this._container),le.create(\"span\",\"maplibregl-ctrl-icon\",this._terrainButton).setAttribute(\"aria-hidden\",\"true\"),this._terrainButton.type=\"button\",this._terrainButton.addEventListener(\"click\",this._toggleTerrain),this._updateTerrainIcon(),this._map.on(\"terrain\",this._updateTerrainIcon),this._container}onRemove(){this._container.remove(),this._map.off(\"terrain\",this._updateTerrainIcon),this._map=void 0}},k.TwoFingersTouchPitchHandler=Fr,k.TwoFingersTouchRotateHandler=uu,k.TwoFingersTouchZoomHandler=cu,k.TwoFingersTouchZoomRotateHandler=Le,k.VectorTileSource=xt,k.VideoSource=hr,k.addSourceType=(d,t)=>h._(void 0,void 0,void 0,(function*(){if(ya(d))throw new Error(`A source type called \"${d}\" already exists.`);((n,s)=>{Ns[n]=s})(d,t)})),k.clearPrewarmedResources=function(){let d=Bi;d&&(d.isPreloaded()&&d.numActive()===1?(d.release(vt),Bi=null):console.warn(\"Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()\"))},k.createTileMesh=Qn,k.getGlobalDispatcher=ti,k.getMaxParallelImageRequests=function(){return h.c.MAX_PARALLEL_IMAGE_REQUESTS},k.getRTLTextPluginStatus=function(){return Wr().getRTLTextPluginStatus()},k.getVersion=function(){return jl},k.getWorkerCount=function(){return mt.workerCount},k.getWorkerUrl=function(){return h.c.WORKER_URL},k.importScriptInWorkers=function(d){return ti().broadcast(\"IS\",d)},k.isTimeFrozen=function(){return Ye.isFrozen()},k.now=Fe,k.prewarm=function(){ur().acquire(vt)},k.restoreNow=function(){Ye.restoreNow()},k.setMaxParallelImageRequests=function(d){h.c.MAX_PARALLEL_IMAGE_REQUESTS=d},k.setNow=function(d){Ye.setNow(d)},k.setRTLTextPlugin=function(d,t){return Wr().setRTLTextPlugin(d,t)},k.setWorkerCount=function(d){mt.workerCount=d},k.setWorkerUrl=function(d){h.c.WORKER_URL=d}}));var we=J;return we}))});var Vs=z1(um(),1);var hm=`.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0)}.maplibregl-canvas{left:0;position:absolute;top:0}.maplibregl-map:fullscreen{height:100%;width:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{pointer-events:none;position:absolute;z-index:2}.maplibregl-ctrl-top-left{left:0;top:0}.maplibregl-ctrl-top-right{right:0;top:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{bottom:0;right:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{float:left;margin:10px 0 0 10px}.maplibregl-ctrl-top-right .maplibregl-ctrl{float:right;margin:10px 10px 0 0}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{float:left;margin:0 0 10px 10px}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{float:right;margin:0 10px 10px 0}.maplibregl-ctrl-group{background:#fff;border-radius:4px}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{background-color:transparent;border:0;box-sizing:border-box;cursor:pointer;display:block;height:29px;outline:none;padding:0;width:29px}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{background-position:50%;background-repeat:no-repeat;display:block;height:100%;width:100%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}@media (hover:hover){.maplibregl-ctrl button:not(:disabled):hover{background-color:rgba(0,0,0,.05)}}.maplibregl-ctrl button:not(:disabled):active{background-color:rgba(0,0,0,.05)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E\")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E\")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E\")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E\")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E\")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E\")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E\")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E\")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E\")}}.maplibregl-ctrl button.maplibregl-ctrl-globe .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='none' stroke='%23333' viewBox='0 0 22 22'%3E%3Ccircle cx='11' cy='11' r='8.5'/%3E%3Cpath d='M17.5 11c0 4.819-3.02 8.5-6.5 8.5S4.5 15.819 4.5 11 7.52 2.5 11 2.5s6.5 3.681 6.5 8.5Z'/%3E%3Cpath d='M13.5 11c0 2.447-.331 4.64-.853 6.206-.262.785-.562 1.384-.872 1.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831 15.64 8.5 13.446 8.5 11s.331-4.64.853-6.206c.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517s.461.118.775.517c.31.393.61.992.872 1.777.522 1.565.853 3.76.853 6.206Z'/%3E%3Cpath d='M11 7.5c-1.909 0-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3 1.3 0 0 1-.224-.138q.07-.058.224-.138c.299-.151.763-.302 1.379-.434C7.378 5.666 9.091 5.5 11 5.5s3.622.166 4.845.428c.616.132 1.08.283 1.379.434.105.053.177.1.224.138q-.07.058-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428ZM4.486 6.436ZM11 16.5c-1.909 0-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3 1.3 0 0 1-.224-.138 1.3 1.3 0 0 1 .224-.138c.299-.151.763-.302 1.379-.434C7.378 14.666 9.091 14.5 11 14.5s3.622.166 4.845.428c.616.132 1.08.283 1.379.434.105.053.177.1.224.138a1.3 1.3 0 0 1-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm-6.514-1.064ZM11 12.5c-2.46 0-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5 1.5 0 0 1-.39-.272.3.3 0 0 1-.047-.064.3.3 0 0 1 .048-.064c.066-.073.189-.167.389-.272.399-.21 1.009-.413 1.805-.59C6.328 9.722 8.54 9.5 11 9.5s4.672.222 6.256.574c.795.177 1.405.38 1.804.59.2.105.323.2.39.272a.3.3 0 0 1 .047.064.3.3 0 0 1-.048.064 1.4 1.4 0 0 1-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0 .018v.002zm17.002.002v-.002zm0-.018v-.002z'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-globe-enabled .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='none' stroke='%2333b5e5' viewBox='0 0 22 22'%3E%3Ccircle cx='11' cy='11' r='8.5'/%3E%3Cpath d='M17.5 11c0 4.819-3.02 8.5-6.5 8.5S4.5 15.819 4.5 11 7.52 2.5 11 2.5s6.5 3.681 6.5 8.5Z'/%3E%3Cpath d='M13.5 11c0 2.447-.331 4.64-.853 6.206-.262.785-.562 1.384-.872 1.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831 15.64 8.5 13.446 8.5 11s.331-4.64.853-6.206c.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517s.461.118.775.517c.31.393.61.992.872 1.777.522 1.565.853 3.76.853 6.206Z'/%3E%3Cpath d='M11 7.5c-1.909 0-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3 1.3 0 0 1-.224-.138q.07-.058.224-.138c.299-.151.763-.302 1.379-.434C7.378 5.666 9.091 5.5 11 5.5s3.622.166 4.845.428c.616.132 1.08.283 1.379.434.105.053.177.1.224.138q-.07.058-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428ZM4.486 6.436ZM11 16.5c-1.909 0-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3 1.3 0 0 1-.224-.138 1.3 1.3 0 0 1 .224-.138c.299-.151.763-.302 1.379-.434C7.378 14.666 9.091 14.5 11 14.5s3.622.166 4.845.428c.616.132 1.08.283 1.379.434.105.053.177.1.224.138a1.3 1.3 0 0 1-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm-6.514-1.064ZM11 12.5c-2.46 0-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5 1.5 0 0 1-.39-.272.3.3 0 0 1-.047-.064.3.3 0 0 1 .048-.064c.066-.073.189-.167.389-.272.399-.21 1.009-.413 1.805-.59C6.328 9.722 8.54 9.5 11 9.5s4.672.222 6.256.574c.795.177 1.405.38 1.804.59.2.105.323.2.39.272a.3.3 0 0 1 .047.064.3.3 0 0 1-.048.064 1.4 1.4 0 0 1-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0 .018v.002zm17.002.002v-.002zm0-.018v-.002z'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%23333' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%2333b5e5' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23aaa' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23999' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E\")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23666' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E\")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E\");background-repeat:no-repeat;cursor:pointer;display:block;height:23px;margin:0 0 -4px -4px;overflow:hidden;width:88px}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E\")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E\")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{background-color:hsla(0,0%,100%,.5);margin:0;padding:0 5px}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{background-color:#fff;border-radius:12px;box-sizing:content-box;color:#000;margin:10px;min-height:20px;padding:2px 24px 2px 0;position:relative}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{border-radius:12px;padding:2px 8px 2px 28px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{background-color:hsla(0,0%,100%,.5);background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E\");border:0;border-radius:12px;box-sizing:border-box;cursor:pointer;display:none;height:24px;outline:none;position:absolute;right:0;top:0;width:24px}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgba(0,0,0,.05)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{right:0;top:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{left:0;top:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23fff' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E\")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E\")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);border:2px solid #333;border-top:#333;box-sizing:border-box;color:#333;font-size:10px;padding:0 5px;white-space:nowrap}.maplibregl-popup{display:flex;left:0;pointer-events:none;position:absolute;top:0;will-change:transform}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{border:10px solid transparent;height:0;width:0;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-bottom-color:#fff;border-top:none}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-bottom-color:#fff;border-left:none;border-top:none}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-bottom-color:#fff;border-right:none;border-top:none}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-left-color:#fff;border-right:none}[dir=rtl] .maplibregl-popup-anchor-left{flex-direction:row-reverse}[dir=rtl] .maplibregl-popup-anchor-right{flex-direction:row}[dir=rtl] .maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-end}[dir=rtl] .maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-start}[dir=rtl] .maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-end}[dir=rtl] .maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-start}.maplibregl-popup-close-button{background-color:transparent;border:0;border-radius:0 3px 0 0;cursor:pointer;position:absolute;right:0;top:0}.maplibregl-popup-close-button:hover{background-color:rgba(0,0,0,.05)}.maplibregl-popup-content{background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto;position:relative}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{left:0;position:absolute;top:0;transition:opacity .2s;will-change:transform}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;border-radius:50%;height:15px;width:15px}.maplibregl-user-location-dot:before{animation:maplibregl-user-location-dot-pulse 2s infinite;content:\"\";position:absolute}.maplibregl-user-location-dot:after{border:2px solid #fff;border-radius:50%;box-shadow:0 0 3px rgba(0,0,0,.35);box-sizing:border-box;content:\"\";height:19px;left:-2px;position:absolute;top:-2px;width:19px}@media (prefers-reduced-motion:reduce){.maplibregl-user-location-dot:before{animation:none}}@keyframes maplibregl-user-location-dot-pulse{0%{opacity:1;transform:scale(1)}70%{opacity:0;transform:scale(3)}to{opacity:0;transform:scale(1)}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;border-radius:100%;height:1px;width:1px}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{background:#fff;border:2px dotted #202020;height:0;left:0;opacity:.5;position:absolute;top:0;width:0}.maplibregl-cooperative-gesture-screen{align-items:center;background:rgba(0,0,0,.4);color:#fff;display:flex;font-size:1.4em;inset:0;justify-content:center;line-height:1.2;opacity:0;padding:1rem;pointer-events:none;position:absolute;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(pointer:coarse){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{height:100%!important;left:0!important;position:fixed!important;top:0!important;width:100%!important;z-index:99999}`;function Bs(J){try{J?.save_changes?.()}catch{}}function k1(J,re,ye){let we=()=>ye(J.get(re));return J.on?.(`change:${re}`,we),()=>J.off?.(`change:${re}`,we)}var R1=[\".dark\",\".dark-theme\",\"[data-theme='dark']\",\"[data-color-mode='dark']\"],L1=[\".light\",\".light-theme\",\"[data-theme='light']\",\"[data-color-mode='light']\"],F1=`\n.manywidgets-theme-defaults {\n --mw-font-family: var(--jp-ui-font-family, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Oxygen, Ubuntu, sans-serif);\n --mw-font-family-mono: var(--jp-code-font-family, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);\n --mw-font-size-sm: 12px;\n --mw-font-size-md: 14px;\n --mw-font-weight-strong: 600;\n --mw-color-text: var(--myst-color-text, var(--jp-content-font-color1, #24292e));\n --mw-color-text-muted: var(--myst-color-text-secondary, var(--jp-content-font-color2, #586069));\n --mw-color-surface: var(--myst-color-bg, var(--jp-layout-color1, #ffffff));\n --mw-color-surface-elevated: var(--myst-color-surface, var(--jp-layout-color2, #f6f8fa));\n --mw-color-border: var(--myst-color-border, var(--jp-border-color2, #e1e4e8));\n --mw-color-border-strong: var(--myst-color-border-strong, var(--jp-border-color1, #d0d7de));\n --mw-color-accent: var(--myst-color-primary, var(--jp-brand-color1, #0366d6));\n --mw-color-accent-hover: var(--myst-color-primary-hover, var(--jp-brand-color0, #0256c7));\n --mw-color-accent-soft: var(--myst-color-active-bg, #ddf4ff);\n --mw-color-on-accent: #ffffff;\n --mw-color-code-bg: var(--myst-color-bg-secondary, var(--jp-layout-color2, #f6f8fa));\n --mw-color-positive: var(--myst-color-success, #1a7f37);\n --mw-color-negative: var(--myst-color-danger, #cf222e);\n --mw-color-warning: var(--myst-color-warning, #9a6700);\n --mw-color-info: var(--myst-color-info, var(--mw-color-accent));\n --mw-color-focus: var(--myst-color-focus-ring, var(--mw-color-accent));\n --mw-radius-2: 4px;\n --mw-radius-3: 6px;\n --mw-radius-4: 8px;\n --mw-radius-5: 10px;\n --mw-radius-thumb: 9999px;\n --mw-shadow-1: 0 1px 2px rgba(0, 0, 0, 0.25);\n --mw-shadow-2: 0 0 0 1px rgba(0, 0, 0, 0.1);\n --mw-control-padding-x: 14px;\n --mw-control-padding-y: 10px;\n --mw-control-gap: 6px;\n --mw-control-max-width: 320px;\n --mw-control-radius: var(--mw-radius-4);\n --mw-input-padding-x: 8px;\n --mw-input-padding-y: 6px;\n --mw-input-radius: var(--mw-radius-3);\n --mw-panel-padding-x: 18px;\n --mw-panel-padding-y: 14px;\n --mw-panel-radius: var(--mw-radius-5);\n --mw-stat-min-width: 140px;\n --mw-stat-value-size: 30px;\n --mw-number-display-value-size: 40px;\n --mw-toggle-track-width: 40px;\n --mw-toggle-track-height: 22px;\n --mw-toggle-thumb-size: 18px;\n --mw-cursor-button: pointer;\n --mw-cursor-slider-thumb: default;\n}\n\n.manywidgets-theme-defaults[data-mw-color-mode=\"dark\"] {\n --mw-color-text: var(--myst-color-text, var(--jp-content-font-color1, #f0f6fc));\n --mw-color-text-muted: var(--myst-color-text-secondary, var(--jp-content-font-color2, #8b949e));\n --mw-color-surface: var(--myst-color-bg, var(--jp-layout-color1, #111113));\n --mw-color-surface-elevated: var(--myst-color-surface, var(--jp-layout-color2, #18191b));\n --mw-color-border: var(--myst-color-border, var(--jp-border-color2, #3a3f44));\n --mw-color-border-strong: var(--myst-color-border-strong, var(--jp-border-color1, #4d5358));\n --mw-color-accent: var(--myst-color-primary, var(--jp-brand-color1, #6b9cff));\n --mw-color-accent-hover: var(--myst-color-primary-hover, var(--jp-brand-color0, #8bb3ff));\n --mw-color-accent-soft: var(--myst-color-active-bg, #1d2d50);\n --mw-color-code-bg: var(--myst-color-bg-secondary, var(--jp-layout-color2, #1f2328));\n --mw-color-positive: var(--myst-color-success, #7ee787);\n --mw-color-negative: var(--myst-color-danger, #ff7b72);\n --mw-color-warning: var(--myst-color-warning, #f2cc60);\n --mw-shadow-1: 0 1px 2px rgba(0, 0, 0, 0.5);\n --mw-shadow-2: 0 0 0 1px rgba(255, 255, 255, 0.12);\n}\n`;function dm(J){let re=J.get(\"theme_vars\");return re&&typeof re==\"object\"?re:{}}function B1(J){let re=J[\"--mw-color-mode\"];if(typeof re!=\"string\")return null;let ye=re.trim().toLowerCase();return ye===\"dark\"||ye===\"light\"?ye:null}function pm(J,re){return re.some(ye=>J.matches(ye)||!!J.closest(ye))}function O1(J){if(J.parentElement?.closest(\".manywidgets-theme\"))return!0;let re=J.getRootNode();return!!(typeof ShadowRoot<\"u\"&&re instanceof ShadowRoot?re.host:null)?.closest(\".manywidgets-theme\")}function Ad(J){let re=J.ownerDocument,ye=J.getRootNode(),we=typeof ShadowRoot<\"u\"&&ye instanceof ShadowRoot?ye.host:null,k=[J,we,re.body,re.documentElement].filter(Ve=>Ve instanceof Element);if(k.some(Ve=>pm(Ve,R1)))return\"dark\";if(k.some(Ve=>pm(Ve,L1)))return\"light\";let pe=([J,re.documentElement].map(Ve=>getComputedStyle(Ve).colorScheme).find(Ve=>Ve&&Ve!==\"normal\")||\"\").split(/\\s+/);return pe.includes(\"dark\")&&!pe.includes(\"light\")?\"dark\":pe.includes(\"light\")&&!pe.includes(\"dark\")?\"light\":null}function zd(J,re){let ye=J.ownerDocument,we=J.getRootNode(),h=[typeof ShadowRoot<\"u\"&&we instanceof ShadowRoot?we.host:null,ye.body,ye.documentElement].filter(xe=>xe instanceof Element),pe=typeof MutationObserver<\"u\"?new MutationObserver(re):null;for(let xe of h)pe?.observe(xe,{attributes:!0,attributeFilter:[\"class\",\"data-theme\",\"data-color-mode\",\"style\"]});let Ve=typeof globalThis.matchMedia==\"function\"?globalThis.matchMedia(\"(prefers-color-scheme: dark)\"):null;return Ve?.addEventListener?.(\"change\",re),()=>{pe?.disconnect(),Ve?.removeEventListener?.(\"change\",re)}}function fm(J,re){let ye=[];Dd(J,F1,\"manywidgets-theme-defaults\"),J.classList.add(\"manywidgets-theme\"),O1(J)||J.classList.add(\"manywidgets-theme-defaults\");let we=()=>{let Ve=dm(re),xe=Object.keys(Ve).filter(et=>et.startsWith(\"--mw-\"));for(let et of ye)xe.includes(et)||J.style.removeProperty(et);for(let et of xe)J.style.setProperty(et,String(Ve[et]));ye=xe,k()},k=()=>{let Ve=B1(dm(re))??Ad(J);Ve?J.dataset.mwColorMode=Ve:delete J.dataset.mwColorMode};we();let h=k1(re,\"theme_vars\",we),pe=zd(J,k);return()=>{h(),pe()}}function Dd(J,re,ye){let we=J.getRootNode()??document,k=\"head\"in we&&we.head?we.head:we,h=\"data-manywidgets-css\";if(k.querySelector(`style[${h}=\"${ye}\"]`))return;let Ve=document.createElement(\"style\");Ve.setAttribute(h,ye),Ve.textContent=re,k.appendChild(Ve)}var cc={gray:[[0,0,0],[255,255,255]],viridis:[[68,1,84],[72,40,120],[62,74,137],[49,104,142],[38,130,142],[31,158,137],[53,183,121],[109,205,89],[180,222,44],[253,231,37]],magma:[[0,0,4],[28,16,68],[79,18,123],[129,37,129],[181,54,122],[229,80,100],[251,135,97],[254,194,135],[252,253,191]],inferno:[[0,0,4],[31,12,72],[85,15,109],[136,34,106],[186,54,85],[227,89,51],[249,140,10],[249,201,50],[252,255,164]],cividis:[[0,32,77],[0,50,110],[60,77,110],[97,101,112],[130,127,115],[164,154,112],[200,182,100],[238,212,80],[255,234,70]],terrain:[[51,51,153],[0,153,153],[0,204,102],[255,255,128],[179,128,102],[255,255,255]]},gm=Object.keys(cc),mm=new Map;function _m(J){let re=cc[J]?J:\"gray\",ye=mm.get(re);if(ye)return ye;let we=cc[re],k=new Uint8ClampedArray(256*3);for(let h=0;h<256;h++){let pe=h/255*(we.length-1),Ve=Math.min(Math.floor(pe),we.length-2),xe=pe-Ve,et=we[Ve],pt=we[Ve+1];k[h*3]=et[0]+(pt[0]-et[0])*xe,k[h*3+1]=et[1]+(pt[1]-et[1])*xe,k[h*3+2]=et[2]+(pt[2]-et[2])*xe}return mm.set(re,k),k}function ym(J){let re=cc[cc[J]?J:\"gray\"];return`linear-gradient(to right, ${re.map((we,k)=>`rgb(${we[0]},${we[1]},${we[2]}) ${100*k/(re.length-1)}%`).join(\", \")})`}function V1(J){let re=atob(J),ye=new Uint8Array(re.length);for(let we=0;weye in J.bands);return re&&re.length?re:Object.keys(J.bands)}function _a(J,re){return!!J.composites&&re in J.composites}function Uu(J,re){let ye=re.active??J.active;return ye&&(J.bands[ye]||_a(J,ye))?ye:Rd(J)[0]}function hc(J,re,ye){let we=J.bands[ye];return re.range?re.range:J.range?J.range:we?.default_range?we.default_range:[uc(we,1),uc(we,255)]}function xm(J,re,ye,we){if(re===0)return-1;let k=re*J.scale+J.offset,h=we===ye?0:(k-ye)/(we-ye);return Math.max(0,Math.min(255,Math.round(h*255)))}function j1(J,re,ye){let we=J.width*J.height,k=Uu(J,re);if(_a(J,k)){let Ge=J.composites[k].map(He=>J.bands[He]),Ye=Ge.map(He=>kd(He)),Fe=Ge.map(He=>re.range??J.range??He.default_range??[uc(He,1),uc(He,255)]);for(let He=0;He=1||st<0||st>=1?null:{col:Math.floor(He*J.width),row:Math.floor(st*J.height)}}function wm(J,re,ye){let we=ye*J.width+re,k={};for(let[h,pe]of Object.entries(J.bands))k[h]=uc(pe,kd(pe)[we]);return k}function Tm(J,re){if(!Number.isFinite(J))return\"no data\";let ye=Math.abs(J)>=100?J.toFixed(0):Math.abs(J)>=10?J.toFixed(1):J.toFixed(2);return re?`${ye} ${re}`:ye}var Sm={fill:\"#3e63dd\",line:\"#3e63dd\",fill_opacity:.15,line_width:1.5,selected_fill:\"#f76b15\",selected_line:\"#f76b15\",hover_fill:\"#3e63dd\",radius:5};function jn(J,re){return re?.visible??J.visible??!0}function Er(J,re){let ye=re?.opacity??(\"opacity\"in J?J.opacity:void 0);return ye===void 0?1:Math.max(0,Math.min(1,ye))}function qu(J){let re=J.data,ye;return re.type===\"FeatureCollection\"?ye=J.data.features:re.type===\"Feature\"?ye=[J.data]:ye=[{type:\"Feature\",geometry:J.data,properties:{}}],{type:\"FeatureCollection\",features:ye.map((we,k)=>({...we,properties:{...we.properties??{}},id:N1(we,J.id_property,k)}))}}function N1(J,re,ye){return re&&J.properties&&J.properties[re]!==void 0?String(J.properties[re]):J.id!==void 0&&J.id!==null?String(J.id):String(ye)}function Fd(J){let re=1/0,ye=1/0,we=-1/0,k=-1/0,h=pe=>{if(Array.isArray(pe))if(typeof pe[0]==\"number\"){let[Ve,xe]=pe;Vewe&&(we=Ve),xek&&(k=xe)}else pe.forEach(h)};return J?(J.type===\"GeometryCollection\"?J.geometries.forEach(pe=>h(pe.coordinates)):h(J.coordinates),Number.isFinite(re)?[re,ye,we,k]:null):null}function Mm(J){let re=null;for(let ye of J.features){let we=Fd(ye.geometry);we&&(re=re?[Math.min(re[0],we[0]),Math.min(re[1],we[1]),Math.max(re[2],we[2]),Math.max(re[3],we[3])]:we)}return re}function Pm(J){let re=J.map(we=>we[0]),ye=J.map(we=>we[1]);return[Math.min(...re),Math.min(...ye),Math.max(...re),Math.max(...ye)]}function Cm(J,re,ye,we){let k=document.createElement(\"div\");k.className=\"manywidgets-geomap__panel\";let h=document.createElement(\"button\");h.type=\"button\",h.className=\"manywidgets-geomap__panel-toggle\",h.title=\"Layers\",h.textContent=\"Layers\";let pe=document.createElement(\"div\");pe.className=\"manywidgets-geomap__panel-body\",k.appendChild(h),k.appendChild(pe),J.appendChild(k),h.addEventListener(\"click\",()=>k.classList.toggle(\"is-collapsed\"));let Ve=new Map;function xe(pt,Ge){pe.replaceChildren(),Ve.clear();for(let Ye of[...pt].reverse()){let Fe=Ge[Ye.id]??{},He=document.createElement(\"div\");He.className=\"manywidgets-geomap__layer\";let st=document.createElement(\"label\");st.className=\"manywidgets-geomap__layer-head\";let le=document.createElement(\"input\");le.type=\"checkbox\",le.checked=jn(Ye,Fe),le.addEventListener(\"change\",()=>we(Ye.id,{visible:le.checked}));let ut=document.createElement(\"span\");ut.textContent=Ye.label??Ye.id,st.appendChild(le),st.appendChild(ut),He.appendChild(st);let ei=()=>{};Ye.type===\"grid\"?ei=q1(He,Ye,Fe,we):Ye.type===\"xyz\"&&(ei=U1(He,Ye,Fe,we)),Ve.set(Ye.id,{visible:le,refresh:ei}),pe.appendChild(He)}k.style.display=pt.length?\"\":\"none\"}function et(pt,Ge){for(let Ye of pt){let Fe=Ve.get(Ye.id);if(!Fe)continue;let He=Ge[Ye.id]??{};Fe.visible.checked=jn(Ye,He),Fe.refresh(Ye,He)}}return xe(re,ye),{rebuild:xe,update:et,dispose:()=>k.remove()}}function Gu(J,re,ye,we,k,h){let pe=document.createElement(\"div\");pe.className=\"manywidgets-geomap__field\";let Ve=document.createElement(\"span\");Ve.className=\"manywidgets-geomap__field-label\",Ve.textContent=J;let xe=document.createElement(\"input\");xe.type=\"range\",xe.min=String(re),xe.max=String(ye),xe.step=String(we),xe.value=String(k);let et=document.createElement(\"span\");return et.className=\"manywidgets-geomap__field-value\",et.textContent=To(k),xe.addEventListener(\"input\",()=>{et.textContent=To(Number(xe.value)),h(Number(xe.value))}),pe.appendChild(Ve),pe.appendChild(xe),pe.appendChild(et),{el:pe,input:xe,out:et}}function To(J){return Math.abs(J)>=100?J.toFixed(0):Math.abs(J)>=10?J.toFixed(1):J.toFixed(2)}function U1(J,re,ye,we){let k=Gu(\"Opacity\",0,1,.05,Er(re,ye),h=>we(re.id,{opacity:h}));return J.appendChild(k.el),(h,pe)=>{k.input.value=String(Er(h,pe)),k.out.textContent=To(Er(h,pe))}}function q1(J,re,ye,we){let k=Rd(re),h=Object.keys(re.composites??{}),pe=document.createElement(\"div\");pe.className=\"manywidgets-geomap__field\";let Ve=document.createElement(\"span\");Ve.className=\"manywidgets-geomap__field-label\",Ve.textContent=\"Show\";let xe=document.createElement(\"select\");for(let Me of[...k,...h]){let je=document.createElement(\"option\");je.value=Me,je.textContent=Me,xe.appendChild(je)}pe.appendChild(Ve),pe.appendChild(xe),J.appendChild(pe);let et=Me=>{let je=re.bands[Me];return[je.scale+je.offset,255*je.scale+je.offset]},pt=Me=>re.bands[Me]?.unit??\"\",Ge=Uu(re,ye),[Ye,Fe]=_a(re,Ge)?[0,1]:hc(re,ye,Ge),He=_a(re,Ge)?[0,1]:et(Ge),st=(He[1]-He[0])/254,le=Gu(\"Min\",He[0],He[1],st,Ye,Me=>{Ye=Math.min(Me,Fe-st),le.input.value=String(Ye),we(re.id,{range:[Ye,Fe]})}),ut=Gu(\"Max\",He[0],He[1],st,Fe,Me=>{Fe=Math.max(Me,Ye+st),ut.input.value=String(Fe),we(re.id,{range:[Ye,Fe]})});J.appendChild(le.el),J.appendChild(ut.el);let ei=document.createElement(\"div\");ei.className=\"manywidgets-geomap__field\";let Qi=document.createElement(\"span\");Qi.className=\"manywidgets-geomap__field-label\",Qi.textContent=\"Colors\";let Ti=document.createElement(\"select\");for(let Me of gm){let je=document.createElement(\"option\");je.value=Me,je.textContent=Me,Ti.appendChild(je)}ei.appendChild(Qi),ei.appendChild(Ti),J.appendChild(ei);let Fi=document.createElement(\"div\");Fi.className=\"manywidgets-geomap__colorbar\";let it=document.createElement(\"span\"),W=document.createElement(\"span\"),K=document.createElement(\"div\");K.className=\"manywidgets-geomap__colorbar-swatch\",Fi.appendChild(it),Fi.appendChild(K),Fi.appendChild(W),J.appendChild(Fi);let ee=Gu(\"Opacity\",0,1,.05,Er(re,ye),Me=>we(re.id,{opacity:Me}));J.appendChild(ee.el);function ve(Me,je){let Oe=Me;Ge=Uu(Oe,je),xe.value=Ge;let $e=_a(Oe,Ge),Xe=je.colormap??Oe.colormap??\"gray\";if(Ti.value=Xe,Ti.disabled=$e,le.el.style.display=ut.el.style.display=$e?\"none\":\"\",Fi.style.display=$e?\"none\":\"\",!$e){let ot=et(Ge),qe=(ot[1]-ot[0])/254;for(let mt of[le,ut])mt.input.min=String(ot[0]),mt.input.max=String(ot[1]),mt.input.step=String(qe);[Ye,Fe]=hc(Oe,je,Ge),le.input.value=String(Ye),ut.input.value=String(Fe),le.out.textContent=To(Ye),ut.out.textContent=To(Fe),K.style.background=ym(Xe);let vt=pt(Ge);it.textContent=`${To(Ye)}${vt?\" \"+vt:\"\"}`,W.textContent=`${To(Fe)}${vt?\" \"+vt:\"\"}`}ee.input.value=String(Er(Oe,je)),ee.out.textContent=To(Er(Oe,je))}return xe.addEventListener(\"change\",()=>{let Me=xe.value,je={active:Me};_a(re,Me)?je.range=void 0:je.range=hc(re,{active:Me},Me),we(re.id,je)}),Ti.addEventListener(\"change\",()=>we(re.id,{colormap:Ti.value})),ve(re,ye),ve}var G1='© OpenStreetMap contributors © CARTO',Em={positron:\"https://basemaps.cartocdn.com/gl/positron-gl-style/style.json\",\"dark-matter\":\"https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json\",voyager:\"https://basemaps.cartocdn.com/gl/voyager-gl-style/style.json\",satellite:Im(\"https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}\",\"Tiles © Esri — Source: Esri, Maxar, Earthstar Geographics, and the GIS User Community\",19),osm:Im(\"https://tile.openstreetmap.org/{z}/{x}/{y}.png\",G1,19),none:{version:8,sources:{},layers:[]}};function Im(J,re,ye){return{version:8,sources:{basemap:{type:\"raster\",tiles:[J],tileSize:256,attribution:re,maxzoom:ye}},layers:[{id:\"basemap\",type:\"raster\",source:\"basemap\"}]}}function Bd(J,re){return J===\"auto\"?Em[Ad(re)===\"dark\"?\"dark-matter\":\"positron\"]:Em[J]??J}var Os=J=>`mw-${J}`;function $1({model:J,el:re}){let ye=fm(re,J);Dd(re,hm,\"maplibre-gl\");let we=document.createElement(\"div\");we.className=\"manywidgets-geomap\";let k=document.createElement(\"div\");k.className=\"manywidgets-geomap__map\";let h=document.createElement(\"div\");h.className=\"manywidgets-geomap__readout\",h.style.display=\"none\",we.appendChild(k),we.appendChild(h),re.appendChild(we);let pe=()=>{we.style.height=J.get(\"height\")||\"480px\"};pe();let Ve=J.get(\"view_state\")||{longitude:0,latitude:0,zoom:1},xe=new Vs.default.Map({container:k,style:Bd(J.get(\"basemap\")||\"positron\",re),center:[Ve.longitude,Ve.latitude],zoom:Ve.zoom,attributionControl:{compact:!0}});xe.addControl(new Vs.default.NavigationControl({showCompass:!1}),\"top-left\"),xe.addControl(new Vs.default.ScaleControl({unit:\"metric\"}),\"bottom-right\"),we.__map=xe;let et=new Vs.default.Popup({closeButton:!1,closeOnClick:!1,maxWidth:\"320px\"}),pt=new Map,Ge={sources:[],layers:[]},Ye=null,Fe=!1,He=()=>J.get(\"layers\")||[],st=()=>J.get(\"layer_state\")||{},le=fe=>st()[fe];function ut(){for(let fe of Ge.layers)xe.getLayer(fe)&&xe.removeLayer(fe);for(let fe of Ge.sources)xe.getSource(fe)&&xe.removeSource(fe);Ge={sources:[],layers:[]}}function ei(fe){let ke=qu(fe);for(let Pi of ke.features)Pi.properties.__mw_id=Pi.id;let Ne={...Sm,...fe.style??{}},De=Os(fe.id);xe.addSource(De,{type:\"geojson\",data:ke,promoteId:\"__mw_id\"}),Ge.sources.push(De);let Tt=jn(fe,le(fe.id))?\"visible\":\"none\",xt=Er(fe,le(fe.id)),ht=[\"boolean\",[\"feature-state\",\"selected\"],!1],zt=[\"boolean\",[\"feature-state\",\"hover\"],!1],ci=[\"case\",ht,Ne.selected_fill,zt,Ne.hover_fill,Ne.fill],xr=[\"case\",ht,Ne.selected_line,Ne.line],So=[\"case\",ht,Math.min(1,Ne.fill_opacity+.25)*xt,zt,Math.min(1,Ne.fill_opacity+.15)*xt,Ne.fill_opacity*xt],Mo=[\"case\",ht,Ne.line_width+1.5,Ne.line_width],er=`${De}-fill`,Ir=`${De}-line`,Zr=`${De}-circle`;xe.addLayer({id:er,type:\"fill\",source:De,filter:[\"==\",[\"geometry-type\"],\"Polygon\"],layout:{visibility:Tt},paint:{\"fill-color\":ci,\"fill-opacity\":So}}),xe.addLayer({id:Ir,type:\"line\",source:De,filter:[\"any\",[\"==\",[\"geometry-type\"],\"Polygon\"],[\"==\",[\"geometry-type\"],\"LineString\"]],layout:{visibility:Tt},paint:{\"line-color\":xr,\"line-width\":Mo,\"line-opacity\":xt}}),xe.addLayer({id:Zr,type:\"circle\",source:De,filter:[\"==\",[\"geometry-type\"],\"Point\"],layout:{visibility:Tt},paint:{\"circle-color\":ci,\"circle-radius\":Ne.radius,\"circle-opacity\":Math.min(1,Ne.fill_opacity+.6)*xt,\"circle-stroke-color\":xr,\"circle-stroke-width\":1}}),Ge.layers.push(er,Ir,Zr);for(let Pi of[er,Zr])xe.on(\"click\",Pi,hr=>Oe(hr)),xe.on(\"mousemove\",Pi,hr=>Xe(hr,fe)),xe.on(\"mouseleave\",Pi,()=>ot())}function Qi(fe){let ke=Os(fe.id);xe.addSource(ke,{type:\"raster\",tiles:[fe.url],tileSize:fe.tile_size??256,attribution:fe.attribution??\"\",minzoom:fe.min_zoom??0,maxzoom:fe.max_zoom??22}),xe.addLayer({id:`${ke}-raster`,type:\"raster\",source:ke,layout:{visibility:jn(fe,le(fe.id))?\"visible\":\"none\"},paint:{\"raster-opacity\":Er(fe,le(fe.id)),\"raster-fade-duration\":0}}),Ge.sources.push(ke),Ge.layers.push(`${ke}-raster`)}function Ti(fe){let ke=pt.get(fe.id);return ke||(ke=document.createElement(\"canvas\"),pt.set(fe.id,ke)),ke}function Fi(fe){let ke=Os(fe.id),Ne=Ti(fe);Ld(fe,le(fe.id)??{},Ne),xe.addSource(ke,{type:\"image\",url:Ne.toDataURL(),coordinates:fe.corners}),xe.addLayer({id:`${ke}-raster`,type:\"raster\",source:ke,layout:{visibility:jn(fe,le(fe.id))?\"visible\":\"none\"},paint:{\"raster-opacity\":Er(fe,le(fe.id)),\"raster-fade-duration\":0,\"raster-resampling\":\"nearest\"}}),Ge.sources.push(ke),Ge.layers.push(`${ke}-raster`)}function it(){if(Fe){ut();for(let fe of He())try{fe.type===\"geojson\"?ei(fe):fe.type===\"xyz\"?Qi(fe):fe.type===\"grid\"&&Fi(fe)}catch(ke){console.error(`[manywidgets geomap] layer \"${fe.id}\" failed:`,ke)}Me(),Ye?.rebuild(He(),st())}}function W(){if(Fe){for(let fe of He()){let ke=le(fe.id)??{},Ne=Os(fe.id),De=Ge.layers.filter(ht=>ht.startsWith(`${Ne}-`)),Tt=jn(fe,ke)?\"visible\":\"none\",xt=Er(fe,ke);for(let ht of De)xe.getLayer(ht)&&(xe.setLayoutProperty(ht,\"visibility\",Tt),ht.endsWith(\"-raster\")&&xe.setPaintProperty(ht,\"raster-opacity\",xt));if(fe.type===\"grid\"&&xe.getSource(Ne)){let ht=Ti(fe);Ld(fe,ke,ht),xe.getSource(Ne).updateImage({url:ht.toDataURL()})}}Ye?.update(He(),st())}}let K=\"\";function ee(fe,ke){if(fe)for(let Ne of He())Ne.type!==\"geojson\"||!xe.getSource(Os(Ne.id))||xe.setFeatureState({source:Os(Ne.id),id:fe},ke)}function ve(fe){for(let ke of He()){if(ke.type!==\"geojson\")continue;let Ne=qu(ke).features.find(De=>De.id===fe);if(Ne)return Ne}return null}function Me(){if(!Fe)return;let fe=J.get(\"selected\")||\"\";K&&ee(K,{selected:!1}),K=fe,ee(fe,{selected:!0})}function je(){if(!J.get(\"zoom_to_selected\"))return;let fe=ve(J.get(\"selected\")||\"\"),ke=fe?Fd(fe.geometry):null;ke&&mt(ke,!0)}function Oe(fe){let ke=fe.features?.[0];if(!ke)return;let Ne=String(ke.id??ke.properties?.__mw_id??\"\");Ne!==J.get(\"selected\")&&(J.set(\"selected\",Ne),Bs(J))}let $e=\"\";function Xe(fe,ke){let Ne=fe.features?.[0];if(!Ne)return;let De=String(Ne.id??Ne.properties?.__mw_id??\"\");xe.getCanvas().style.cursor=\"pointer\",De!==$e&&($e&&ee($e,{hover:!1}),$e=De,ee(De,{hover:!0}),J.get(\"hovered\")!==De&&(J.set(\"hovered\",De),Bs(J)));let Tt=Ne.properties??{},xt=ke.tooltip&&ke.tooltip.length?ke.tooltip:Object.keys(Tt).filter(ht=>ht!==\"__mw_id\").slice(0,6);if(xt.length){let ht=xt.map(zt=>`
${$u(zt)}${$u(String(Tt[zt]??\"\"))}
`);et.setLngLat(fe.lngLat).setHTML(`
${ht.join(\"\")}
`).addTo(xe)}}function ot(){xe.getCanvas().style.cursor=\"\",$e&&ee($e,{hover:!1}),$e=\"\",et.remove(),J.get(\"hovered\")&&(J.set(\"hovered\",\"\"),Bs(J))}function qe(){let fe=J.get(\"hovered\")||\"\";fe!==$e&&($e&&ee($e,{hover:!1}),$e=fe,ee(fe,{hover:!0}))}let vt=fe=>{let ke=Vs.default.MercatorCoordinate.fromLngLat({lng:fe[0],lat:fe[1]});return[ke.x,ke.y]};xe.on(\"mousemove\",fe=>{let ke=[];for(let Ne of He()){if(Ne.type!==\"grid\"||!jn(Ne,le(Ne.id)))continue;let De=bm(Ne,[fe.lngLat.lng,fe.lngLat.lat],vt);if(!De)continue;let Tt=wm(Ne,De.col,De.row),xt=Object.entries(Tt).map(([ht,zt])=>`${ht}: ${Tm(zt,Ne.bands[ht].unit)}`);ke.push(`${$u(Ne.label??Ne.id)} ${xt.map($u).join(\" \\xB7 \")}`)}ke.length?(h.innerHTML=ke.join(\"
\"),h.style.display=\"\"):h.style.display=\"none\"}),xe.on(\"mouseout\",()=>{h.style.display=\"none\"});function mt(fe,ke){xe.fitBounds([[fe[0],fe[1]],[fe[2],fe[3]]],{padding:24,animate:ke,maxZoom:16})}function Si(){let fe=J.get(\"fit_bounds\");return Array.isArray(fe)&&fe.length===4&&fe.every(ke=>Number.isFinite(ke))?fe:null}function Bi(){let fe=Si();fe&&mt(fe,!1)}function cr(){let fe=null;for(let ke of He()){let Ne=null;ke.type===\"geojson\"?Ne=Mm(qu(ke)):ke.type===\"grid\"&&(Ne=Pm(ke.corners)),Ne&&(fe=fe?[Math.min(fe[0],Ne[0]),Math.min(fe[1],Ne[1]),Math.max(fe[2],Ne[2]),Math.max(fe[3],Ne[3])]:Ne)}return fe}let ur=!1;xe.on(\"moveend\",()=>{let fe=xe.getCenter(),ke={longitude:Od(fe.lng,5),latitude:Od(fe.lat,5),zoom:Od(xe.getZoom(),2)};ur=!0,J.set(\"view_state\",ke),Bs(J),ur=!1});function un(){if(ur)return;let fe=J.get(\"view_state\");if(!fe)return;let ke=xe.getCenter();Math.abs(ke.lng-fe.longitude)<1e-6&&Math.abs(ke.lat-fe.latitude)<1e-6&&Math.abs(xe.getZoom()-fe.zoom)<.001||xe.jumpTo({center:[fe.longitude,fe.latitude],zoom:fe.zoom})}function ti(){Ye?.dispose(),Ye=null,J.get(\"controls\")&&(Ye=Cm(we,He(),st(),(fe,ke)=>{let Ne={...st(),[fe]:{...st()[fe]??{},...ke}};J.set(\"layer_state\",Ne),Bs(J),W()}))}xe.on(\"style.load\",()=>{Fe=!0,it()}),xe.once(\"load\",()=>{ti();let fe=Si()??cr();fe&&mt(fe,!1)}),J.on(\"change:layers\",()=>{it();let fe=Si()??cr();fe&&mt(fe,!0)}),J.on(\"change:layer_state\",W),J.on(\"change:selected\",()=>{Me(),je()}),J.on(\"change:hovered\",qe),J.on(\"change:view_state\",un),J.on(\"change:fit_bounds\",Bi),J.on(\"change:height\",()=>{pe(),xe.resize()}),J.on(\"change:controls\",ti),J.on(\"change:basemap\",()=>{Fe=!1,xe.setStyle(Bd(J.get(\"basemap\")||\"positron\",re))});let $r=zd(re,()=>{J.get(\"basemap\")===\"auto\"&&(Fe=!1,xe.setStyle(Bd(\"auto\",re)))}),Mi=typeof ResizeObserver<\"u\"?new ResizeObserver(()=>xe.resize()):null;return Mi?.observe(we),()=>{Mi?.disconnect(),$r(),Ye?.dispose(),et.remove(),xe.remove(),ye()}}function Od(J,re){let ye=10**re;return Math.round(J*ye)/ye}function $u(J){return J.replace(/[&<>\"']/g,re=>({\"&\":\"&\",\"<\":\"<\",\">\":\">\",'\"':\""\",\"'\":\"'\"})[re])}var F_={render:$1};export{F_ as default};\n/*! Bundled license information:\n\nmaplibre-gl/dist/maplibre-gl.js:\n (**\n * MapLibre GL JS\n * @license 3-Clause BSD. Full text of license: https://github.com/maplibre/maplibre-gl-js/blob/v5.24.0/LICENSE.txt\n *)\n*/\n", + "_model_module": "anywidget", + "_model_module_version": "~0.9.*", + "_model_name": "AnyModel", + "_view_count": null, + "_view_module": "anywidget", + "_view_module_version": "~0.9.*", + "_view_name": "AnyView", + "basemap": "positron", + "controls": false, + "fit_bounds": null, + "height": "380px", + "hovered": "", + "layer_state": {}, + "layers": [ + { + "data": { + "features": [ + { + "geometry": { + "coordinates": [ + [ + [ + -117.4, + 35.6 + ], + [ + -116.9, + 35.68 + ], + [ + -116.98, + 36.06 + ], + [ + -117.48, + 35.980000000000004 + ], + [ + -117.4, + 35.6 + ] + ] + ], + "type": "Polygon" + }, + "properties": { + "frame": 4000, + "granule": "G001", + "track": 4 + }, + "type": "Feature" + }, + { + "geometry": { + "coordinates": [ + [ + [ + -117.22, + 35.72 + ], + [ + -116.72, + 35.8 + ], + [ + -116.8, + 36.18 + ], + [ + -117.3, + 36.1 + ], + [ + -117.22, + 35.72 + ] + ] + ], + "type": "Polygon" + }, + "properties": { + "frame": 4001, + "granule": "G002", + "track": 4 + }, + "type": "Feature" + }, + { + "geometry": { + "coordinates": [ + [ + [ + -117.04, + 35.84 + ], + [ + -116.54, + 35.92 + ], + [ + -116.62, + 36.300000000000004 + ], + [ + -117.12, + 36.220000000000006 + ], + [ + -117.04, + 35.84 + ] + ] + ], + "type": "Polygon" + }, + "properties": { + "frame": 4002, + "granule": "G003", + "track": 4 + }, + "type": "Feature" + }, + { + "geometry": { + "coordinates": [ + [ + [ + -116.86, + 35.96 + ], + [ + -116.36, + 36.04 + ], + [ + -116.44, + 36.42 + ], + [ + -116.94, + 36.34 + ], + [ + -116.86, + 35.96 + ] + ] + ], + "type": "Polygon" + }, + "properties": { + "frame": 4003, + "granule": "G004", + "track": 4 + }, + "type": "Feature" + }, + { + "geometry": { + "coordinates": [ + [ + [ + -116.68, + 36.08 + ], + [ + -116.18, + 36.16 + ], + [ + -116.26, + 36.54 + ], + [ + -116.76, + 36.46 + ], + [ + -116.68, + 36.08 + ] + ] + ], + "type": "Polygon" + }, + "properties": { + "frame": 4004, + "granule": "G005", + "track": 4 + }, + "type": "Feature" + }, + { + "geometry": { + "coordinates": [ + [ + [ + -116.5, + 36.2 + ], + [ + -116.0, + 36.28 + ], + [ + -116.08, + 36.660000000000004 + ], + [ + -116.58, + 36.580000000000005 + ], + [ + -116.5, + 36.2 + ] + ] + ], + "type": "Polygon" + }, + "properties": { + "frame": 4005, + "granule": "G006", + "track": 4 + }, + "type": "Feature" + }, + { + "geometry": { + "coordinates": [ + [ + [ + -116.32000000000001, + 36.32 + ], + [ + -115.82000000000001, + 36.4 + ], + [ + -115.9, + 36.78 + ], + [ + -116.4, + 36.7 + ], + [ + -116.32000000000001, + 36.32 + ] + ] + ], + "type": "Polygon" + }, + "properties": { + "frame": 4006, + "granule": "G007", + "track": 4 + }, + "type": "Feature" + }, + { + "geometry": { + "coordinates": [ + [ + [ + -116.14, + 36.440000000000005 + ], + [ + -115.64, + 36.52 + ], + [ + -115.72, + 36.900000000000006 + ], + [ + -116.22, + 36.82000000000001 + ], + [ + -116.14, + 36.440000000000005 + ] + ] + ], + "type": "Polygon" + }, + "properties": { + "frame": 4007, + "granule": "G008", + "track": 4 + }, + "type": "Feature" + } + ], + "type": "FeatureCollection" + }, + "id": "footprints", + "id_property": "granule", + "label": "footprints", + "tooltip": [ + "granule", + "frame" + ], + "type": "geojson", + "visible": true + } + ], + "layout": "IPY_MODEL_21807c8cce4e4f9dbe7efe05ad119706", + "selected": "G003", + "tabbable": null, + "theme_vars": {}, + "tooltip": null, + "view_state": { + "latitude": 0.0, + "longitude": 0.0, + "zoom": 1.0 + }, + "widget_id": "geomap_1", + "zoom_to_selected": true + } + }, + "ce61cbe1bd9f4322b7ed1d8dd318880d": { + "model_module": "@jupyter-widgets/controls", + "model_module_version": "2.0.0", + "model_name": "LinkModel", + "state": { + "_model_module": "@jupyter-widgets/controls", + "_model_module_version": "2.0.0", + "_model_name": "LinkModel", + "_view_count": null, + "_view_module": "@jupyter-widgets/controls", + "_view_module_version": "2.0.0", + "_view_name": null, + "source": [ + "IPY_MODEL_6cb198ed971e454497b7d565eebc029f", + "hovered" + ], + "target": [ + "IPY_MODEL_a9186e27bf334680b8b6d392fc5de665", + "hovered" + ] + } + }, + "f2f83b53fb8e454c9bef75421b1c5102": { + "model_module": "@jupyter-widgets/controls", + "model_module_version": "2.0.0", + "model_name": "LinkModel", + "state": { + "_model_module": "@jupyter-widgets/controls", + "_model_module_version": "2.0.0", + "_model_name": "LinkModel", + "_view_count": null, + "_view_module": "@jupyter-widgets/controls", + "_view_module_version": "2.0.0", + "_view_name": null, + "source": [ + "IPY_MODEL_6cb198ed971e454497b7d565eebc029f", + "selected" + ], + "target": [ + "IPY_MODEL_a9186e27bf334680b8b6d392fc5de665", + "selected" + ] + } + } + }, + "version_major": 2, + "version_minor": 0 + } + } + }, + "nbformat": 4, + "nbformat_minor": 5 +} diff --git a/docs/myst.yml b/docs/myst.yml index 92c504a..9bc6e9e 100644 --- a/docs/myst.yml +++ b/docs/myst.yml @@ -35,7 +35,12 @@ project: - file: widgets/number_display.ipynb - file: widgets/text.ipynb - file: widgets/legend.ipynb + - file: widgets/table.ipynb - file: widgets/binder.ipynb + - title: Maps + children: + - file: widgets/geo_map.ipynb + - file: examples/geomap-table.ipynb - title: Layout children: - file: widgets/row.ipynb diff --git a/package-lock.json b/package-lock.json index 5ec74a3..9416a1b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,14 +1,15 @@ { "name": "manywidgets", - "version": "0.2.0a1", + "version": "0.3.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "manywidgets", - "version": "0.2.0a1", + "version": "0.3.0", "dependencies": { "chart.js": "^4.4.0", + "maplibre-gl": "5.24.0", "marked": "^14.0.0" }, "devDependencies": { @@ -22,7 +23,6 @@ "@luma.gl/core": "9.3.6", "esbuild": "^0.25.0", "jsdom": "^25.0.0", - "maplibre-gl": "5.24.0", "mystmd": "^1.8.3", "typescript": "^5.4.0", "vitest": "^2.1.0", @@ -1626,7 +1626,6 @@ "version": "2.0.3", "resolved": "https://registry.npmjs.org/@mapbox/jsonlint-lines-primitives/-/jsonlint-lines-primitives-2.0.3.tgz", "integrity": "sha512-0SElaV0uMxEnxzBhhX9WTuPyUeMsAN/SS0i16tjuba4/mio63MG9khjC1a0JAiPGXAwvwm4UfHJURCN7nyudQg==", - "dev": true, "license": "MIT", "engines": { "node": ">= 22" @@ -1650,14 +1649,12 @@ "version": "2.2.0", "resolved": "https://registry.npmjs.org/@mapbox/tiny-sdf/-/tiny-sdf-2.2.0.tgz", "integrity": "sha512-LVL4wgI9YAum5V+LNVQO6QgFBPw7/MIIY4XJPNsPDMrjEwcE+JfKk1LuIl8GnF197ejVdC9QdPaxrx5gfgdGXg==", - "dev": true, "license": "BSD-2-Clause" }, "node_modules/@mapbox/unitbezier": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/@mapbox/unitbezier/-/unitbezier-0.0.1.tgz", "integrity": "sha512-nMkuDXFv60aBr9soUG5q+GvZYL+2KZHVvsqFCzqnkGEf46U2fvmytHaEVc1/YZbiLn8X+eR3QzX1+dwDO1lxlw==", - "dev": true, "license": "BSD-2-Clause" }, "node_modules/@mapbox/vector-tile": { @@ -1674,7 +1671,6 @@ "version": "3.1.0", "resolved": "https://registry.npmjs.org/@mapbox/whoots-js/-/whoots-js-3.1.0.tgz", "integrity": "sha512-Es6WcD0nO5l+2BOQS4uLfNPYQaNDfbot3X1XUoloz+x0mPDS3eeORZJl06HXjwBG1fOGwCRnzK88LMdxKRrd6Q==", - "dev": true, "license": "ISC", "engines": { "node": ">=6.0.0" @@ -1684,7 +1680,6 @@ "version": "6.1.1", "resolved": "https://registry.npmjs.org/@maplibre/geojson-vt/-/geojson-vt-6.1.1.tgz", "integrity": "sha512-FVMOcmSP/yqol45t7StApEyTL5/vmqBCuFhH9n+fFuINenhaX+YgHHIt1yJ86S8kln3uJLcMvmEU2cfn6E2eCQ==", - "dev": true, "license": "ISC", "dependencies": { "kdbush": "^4.1.0" @@ -1694,7 +1689,6 @@ "version": "24.10.0", "resolved": "https://registry.npmjs.org/@maplibre/maplibre-gl-style-spec/-/maplibre-gl-style-spec-24.10.0.tgz", "integrity": "sha512-lichxSiagMEBBrqHF0trtMQH9RKh+9jUlIJl0qW0QHvt2H/tbvUWdE+ZzI2Jd0/pT7j/iavLonlPu7EQ/ixTOw==", - "dev": true, "license": "ISC", "dependencies": { "@mapbox/jsonlint-lines-primitives": "~2.0.2", @@ -1714,14 +1708,12 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/@mapbox/unitbezier/-/unitbezier-1.0.0.tgz", "integrity": "sha512-fqd515fjBmANKGGsQ286E2Wvj/XvDFpGzwJxq4CI6jMQue6Oy04uCKp+JWKF00xRTmk6cEu1jPJ9p3xqH8YWqQ==", - "dev": true, "license": "BSD-2-Clause" }, "node_modules/@maplibre/mlt": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/@maplibre/mlt/-/mlt-1.3.0.tgz", "integrity": "sha512-7M2O7ABM80Oi8XPkfkrjKB8mOBIxGoVgkA52Mu4RMWoBvvMdagQ522+WxVYujZsMpqIr3BpzrTbXrm4k8lCzCQ==", - "dev": true, "license": "(MIT OR Apache-2.0)", "dependencies": { "@mapbox/point-geometry": "^1.1.0" @@ -1731,14 +1723,12 @@ "version": "1.1.0", "resolved": "https://registry.npmjs.org/@mapbox/point-geometry/-/point-geometry-1.1.0.tgz", "integrity": "sha512-YGcBz1cg4ATXDCM/71L9xveh4dynfGmcLDqufR+nQQy3fKwsAZsWd/x4621/6uJaeB9mwOHE6hPeDgXz9uViUQ==", - "dev": true, "license": "ISC" }, "node_modules/@maplibre/vt-pbf": { "version": "4.3.2", "resolved": "https://registry.npmjs.org/@maplibre/vt-pbf/-/vt-pbf-4.3.2.tgz", "integrity": "sha512-j6p0AdjvAR19Z3XaCysle7A4ZSo08tYOzxD0Y9NQylwPAkwJJeYub5b2eVucdeDh7erhv69DahoLOevDRERRUw==", - "dev": true, "license": "MIT", "dependencies": { "@mapbox/point-geometry": "^1.1.0", @@ -1750,14 +1740,12 @@ "version": "1.1.0", "resolved": "https://registry.npmjs.org/@mapbox/point-geometry/-/point-geometry-1.1.0.tgz", "integrity": "sha512-YGcBz1cg4ATXDCM/71L9xveh4dynfGmcLDqufR+nQQy3fKwsAZsWd/x4621/6uJaeB9mwOHE6hPeDgXz9uViUQ==", - "dev": true, "license": "ISC" }, "node_modules/@maplibre/vt-pbf/node_modules/pbf": { "version": "5.1.2", "resolved": "https://registry.npmjs.org/pbf/-/pbf-5.1.2.tgz", "integrity": "sha512-mnvGdvOrIvJOBGUEdGkrVXjN8E/VkIJCkf2eS1DH2yv82ORUlLttmDt0rWY38yYZmVwciZwBUvHM20qxBZf40w==", - "dev": true, "license": "BSD-3-Clause", "dependencies": { "resolve-protobuf-schema": "^2.1.0" @@ -2310,7 +2298,6 @@ "version": "7946.0.16", "resolved": "https://registry.npmjs.org/@types/geojson/-/geojson-7946.0.16.tgz", "integrity": "sha512-6C8nqWur3j98U6+lXDfTUWIfgvZU+EumvpHKcYjujKH7woYyLj2sUmff0tRhrqM7BohUw7Pz3ZB1jj2gW9Fvmg==", - "dev": true, "license": "MIT" }, "node_modules/@types/node": { @@ -3108,7 +3095,6 @@ "version": "3.4.4", "resolved": "https://registry.npmjs.org/gl-matrix/-/gl-matrix-3.4.4.tgz", "integrity": "sha512-latSnyDNt/8zYUB6VIJ6PCh2jBjJX6gnDsoCZ7LyW7GkqrD51EWwa9qCoGixj8YqBtETQK/xY7OmpTF8xz1DdQ==", - "dev": true, "license": "MIT" }, "node_modules/gopd": { @@ -3366,7 +3352,6 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/json-stringify-pretty-compact/-/json-stringify-pretty-compact-4.0.0.tgz", "integrity": "sha512-3CNZ2DnrpByG9Nqj6Xo8vqbjT4F6N+tb4Gb28ESAZjYZ5yqvmc56J+/kuIwkaAMOyblTQhUW7PxMkUb8Q36N3Q==", - "dev": true, "license": "MIT" }, "node_modules/json-with-bigint": { @@ -3393,7 +3378,6 @@ "version": "4.1.0", "resolved": "https://registry.npmjs.org/kdbush/-/kdbush-4.1.0.tgz", "integrity": "sha512-e9vurzrXJQrFX6ckpHP3bvj5l+9CnYzkxDNnNQ1h2QTqdWsUAJgXiKdGNcOa1EY85dU8KbQ+z/FdQdB7P+9yfQ==", - "dev": true, "license": "ISC" }, "node_modules/ktx-parse": { @@ -3459,7 +3443,6 @@ "version": "5.24.0", "resolved": "https://registry.npmjs.org/maplibre-gl/-/maplibre-gl-5.24.0.tgz", "integrity": "sha512-ALyFxgtd5R+65UqZ/++lOqwWcC0SNho9c27fYSyLmG7AfnAul2o46F05aDJGPbFU57wos9dgcIySHs0Xe6ia3A==", - "dev": true, "license": "BSD-3-Clause", "dependencies": { "@mapbox/jsonlint-lines-primitives": "^2.0.2", @@ -3494,14 +3477,12 @@ "version": "1.1.0", "resolved": "https://registry.npmjs.org/@mapbox/point-geometry/-/point-geometry-1.1.0.tgz", "integrity": "sha512-YGcBz1cg4ATXDCM/71L9xveh4dynfGmcLDqufR+nQQy3fKwsAZsWd/x4621/6uJaeB9mwOHE6hPeDgXz9uViUQ==", - "dev": true, "license": "ISC" }, "node_modules/maplibre-gl/node_modules/@mapbox/vector-tile": { "version": "2.0.5", "resolved": "https://registry.npmjs.org/@mapbox/vector-tile/-/vector-tile-2.0.5.tgz", "integrity": "sha512-pXj8m7KTsqZt+1jsE0xIpGvqTSbblfkuEJL/NJmNePMtEwxO8V3XMDo9WMSfDeqHvCtBI9Lmt4mGcGR10zecmw==", - "dev": true, "license": "BSD-3-Clause", "dependencies": { "@mapbox/point-geometry": "~1.1.0", @@ -3513,14 +3494,12 @@ "version": "3.2.3", "resolved": "https://registry.npmjs.org/earcut/-/earcut-3.2.3.tgz", "integrity": "sha512-vnS4AVwp1KHAF13i1vp1/2D5evWy3k5u/iW/B81QVsUZtV8cv2tU0b2VNFlqvh4kYwrFMDdjPCfAmfyJW9y14Q==", - "dev": true, "license": "ISC" }, "node_modules/maplibre-gl/node_modules/pbf": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/pbf/-/pbf-4.0.2.tgz", "integrity": "sha512-J0ajxARhZfpUEebxYs1vhMGMuLSXtBe1e+fFPDrf2uA2hgo+UshKfNUWOz92HJNz6/NFEXseQPddnHkTreWRqg==", - "dev": true, "license": "BSD-3-Clause", "dependencies": { "resolve-protobuf-schema": "^2.1.0" @@ -3604,7 +3583,6 @@ "version": "1.2.8", "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", - "dev": true, "license": "MIT", "funding": { "url": "https://github.com/sponsors/ljharb" @@ -3628,7 +3606,6 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/murmurhash-js/-/murmurhash-js-1.0.0.tgz", "integrity": "sha512-TvmkNhkv8yct0SVBSy+o8wYzXjE4Zz3PCesbfs8HiCXXdcTuocApFv11UWlNFWKYsP2okqrhb7JNlSm9InBhIw==", - "dev": true, "license": "MIT" }, "node_modules/mystmd": { @@ -3791,7 +3768,6 @@ "version": "2.1.0", "resolved": "https://registry.npmjs.org/potpack/-/potpack-2.1.0.tgz", "integrity": "sha512-pcaShQc1Shq0y+E7GqJqvZj8DTthWV1KeHGdi0Z6IAin2Oi3JnLCOfwnCo84qc+HAp52wT9nK9H7FAJp5a44GQ==", - "dev": true, "license": "ISC" }, "node_modules/process-nextick-args": { @@ -3827,7 +3803,6 @@ "version": "3.6.1", "resolved": "https://registry.npmjs.org/protocol-buffers-schema/-/protocol-buffers-schema-3.6.1.tgz", "integrity": "sha512-VG2K63Igkiv9p76tk1lilczEK1cT+kCjKtkdhw1dQZV3k3IXJbd3o6Ho8b9zJZaHSnT2hKe4I+ObmX9w6m5SmQ==", - "dev": true, "license": "MIT" }, "node_modules/punycode": { @@ -3844,7 +3819,6 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/quickselect/-/quickselect-3.0.0.tgz", "integrity": "sha512-XdjUArbK4Bm5fLLvlm5KpTFOiOThgfWWI4axAZDWg4E/0mKdZyI9tNEfds27qCi1ze/vwTR16kvmmGhRra3c2g==", - "dev": true, "license": "ISC" }, "node_modules/readable-stream": { @@ -3874,7 +3848,6 @@ "version": "2.1.0", "resolved": "https://registry.npmjs.org/resolve-protobuf-schema/-/resolve-protobuf-schema-2.1.0.tgz", "integrity": "sha512-kI5ffTiZWmJaS/huM8wZfEMer1eRd7oJQhDuxeCLe3t7N7mX3z94CN0xPxBQxFYQTSNz9T0i+v6inKqSdK8xrQ==", - "dev": true, "license": "MIT", "dependencies": { "protocol-buffers-schema": "^3.3.1" @@ -4086,7 +4059,6 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/tinyqueue/-/tinyqueue-3.0.0.tgz", "integrity": "sha512-gRa9gwYU3ECmQYv3lslts5hxuIa90veaEcxDYuu3QGOIAEM2mOZkVHp48ANJuu1CURtRdHKUBY5Lm1tHV+sD4g==", - "dev": true, "license": "ISC" }, "node_modules/tinyrainbow": { diff --git a/package.json b/package.json index 5ef4e62..36bc8ac 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "manywidgets", - "version": "0.2.0a1", + "version": "0.3.0", "private": true, "description": "Build pipeline for the manywidgets anywidget bundles (esbuild over each widget + the shared @manywidgets/core module).", "type": "module", @@ -29,7 +29,6 @@ "@luma.gl/core": "9.3.6", "esbuild": "^0.25.0", "jsdom": "^25.0.0", - "maplibre-gl": "5.24.0", "mystmd": "^1.8.3", "typescript": "^5.4.0", "vitest": "^2.1.0", @@ -37,6 +36,7 @@ }, "dependencies": { "chart.js": "^4.4.0", + "maplibre-gl": "5.24.0", "marked": "^14.0.0" }, "overrides": { diff --git a/pyproject.toml b/pyproject.toml index 5b28080..49073d0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -26,6 +26,8 @@ dependencies = [ [project.optional-dependencies] lonboard = ["lonboard>=0.10"] numpy = ["numpy"] +# GeoMap corner helpers that reproject (corners_from_bounds/_coords with a crs). +geo = ["numpy", "pyproj>=3"] dev = [ "pytest>=8", "numpy", @@ -80,6 +82,7 @@ ensured-targets = [ "src/manywidgets/column/dist/widget.js", "src/manywidgets/dropdown/dist/widget.js", "src/manywidgets/fullscreen/dist/widget.js", + "src/manywidgets/geo_map/dist/widget.js", "src/manywidgets/grid/dist/widget.js", "src/manywidgets/legend/dist/widget.js", "src/manywidgets/lonboard/filter_binder/dist/widget.js", @@ -93,6 +96,7 @@ ensured-targets = [ "src/manywidgets/row/dist/widget.js", "src/manywidgets/slider/dist/widget.js", "src/manywidgets/stat/dist/widget.js", + "src/manywidgets/table/dist/widget.js", "src/manywidgets/text/dist/widget.js", "src/manywidgets/toggle/dist/widget.js", ] @@ -103,6 +107,7 @@ skip-if-exists = [ "src/manywidgets/column/dist/widget.js", "src/manywidgets/dropdown/dist/widget.js", "src/manywidgets/fullscreen/dist/widget.js", + "src/manywidgets/geo_map/dist/widget.js", "src/manywidgets/grid/dist/widget.js", "src/manywidgets/legend/dist/widget.js", "src/manywidgets/lonboard/filter_binder/dist/widget.js", @@ -116,6 +121,7 @@ skip-if-exists = [ "src/manywidgets/row/dist/widget.js", "src/manywidgets/slider/dist/widget.js", "src/manywidgets/stat/dist/widget.js", + "src/manywidgets/table/dist/widget.js", "src/manywidgets/text/dist/widget.js", "src/manywidgets/toggle/dist/widget.js", ] diff --git a/scripts/build.mjs b/scripts/build.mjs index a39d408..b4d6314 100644 --- a/scripts/build.mjs +++ b/scripts/build.mjs @@ -55,8 +55,15 @@ function optionsFor(dir) { platform: "browser", target: "es2020", sourcemap: false, + // The bundle text is stored in every executed notebook (the `_esm` trait) and + // shipped in each static page's assets, so size matters more than readability. + minify: true, // Resolve `import ... from "@manywidgets/core"` to the shared TS source. alias: { "@manywidgets/core": coreEntry }, + // A widget wrapping a library that ships its own stylesheet (geomap + + // maplibre-gl) imports that .css as a string and injects it into the shadow + // root with `ensureShadowCss` — a would never reach the shadow DOM. + loader: { ".css": "text" }, logLevel: "info", }; } diff --git a/src/manywidgets/__init__.py b/src/manywidgets/__init__.py index 44ef698..0d13bd4 100644 --- a/src/manywidgets/__init__.py +++ b/src/manywidgets/__init__.py @@ -18,6 +18,7 @@ from .column import Column from .dropdown import Dropdown from .fullscreen import Fullscreen +from .geo_map import GeoMap, GridLayer from .grid import Grid from .grid_item import GridItem from .legend import Legend @@ -27,6 +28,7 @@ from .row import Row from .slider import Slider from .stat import Stat +from .table import Table from .text import Text from .themes import Theme from .toggle import Toggle @@ -39,6 +41,8 @@ "Column", "Dropdown", "Fullscreen", + "GeoMap", + "GridLayer", "Grid", "GridItem", "Legend", @@ -48,6 +52,7 @@ "Row", "Slider", "Stat", + "Table", "Text", "Theme", "Toggle", diff --git a/src/manywidgets/_version.py b/src/manywidgets/_version.py index bbd912b..493f741 100644 --- a/src/manywidgets/_version.py +++ b/src/manywidgets/_version.py @@ -1 +1 @@ -__version__ = "0.2.0a1" +__version__ = "0.3.0" diff --git a/src/manywidgets/geo_map/__init__.py b/src/manywidgets/geo_map/__init__.py new file mode 100644 index 0000000..dfa01b3 --- /dev/null +++ b/src/manywidgets/geo_map/__init__.py @@ -0,0 +1,3 @@ +from .widget import GeoMap, GridLayer, corners_from_bounds, corners_from_coords + +__all__ = ["GeoMap", "GridLayer", "corners_from_bounds", "corners_from_coords"] diff --git a/src/manywidgets/geo_map/doc.md b/src/manywidgets/geo_map/doc.md new file mode 100644 index 0000000..b4bd7a5 --- /dev/null +++ b/src/manywidgets/geo_map/doc.md @@ -0,0 +1,92 @@ +# GeoMap + +A lightweight [MapLibre GL](https://maplibre.org) map with three layer kinds — +GeoJSON features, XYZ raster tiles and quantized **grid** rasters — and a built-in +layer panel. Every trait is plain JSON, so the map renders the same in a live +kernel and on a static page, and the reader can switch bands, stretch and +colormaps with no kernel at all. + +## Import + +```python +from manywidgets import GeoMap, GridLayer +from manywidgets.geo_map import corners_from_bounds, corners_from_coords +``` + +## Example + +```{code-cell} python +import numpy as np +from manywidgets import GeoMap, GridLayer + +# A synthetic "backscatter" window in dB, placed by its outer corners (TL, TR, BR, BL). +y, x = np.mgrid[0:200, 0:300] +hh = -18 + 6 * np.sin(x / 25) * np.cos(y / 20) + np.random.normal(0, 1.5, x.shape) +hv = hh - 7 + np.random.normal(0, 1, x.shape) +hh[20:40, 20:60] = np.nan # a nodata hole +corners = [[-116.75, 36.05], [-116.55, 36.05], [-116.55, 35.90], [-116.75, 35.90]] + +grid = GridLayer.from_arrays( + {"HH": hh, "HV": hv, "HH/HV": hh - hv}, + corners, + id="window", + label="Backscatter window", + quantize={"HH": (-30, 5), "HV": (-35, 0), "HH/HV": (0, 15)}, + units="dB", + default_ranges={"HH": (-25, -10), "HV": (-32, -17), "HH/HV": (3, 11)}, + composites={"Dual-pol RGB": ["HH", "HV", "HH/HV"]}, + colormap="gray", +) + +m = GeoMap(basemap="satellite", height="420px") +m.add_grid(grid) +m.add_geojson( + {"type": "Feature", "properties": {"name": "footprint"}, + "geometry": {"type": "Polygon", "coordinates": [[[-116.8, 36.1], [-116.5, 36.1], [-116.5, 35.85], [-116.8, 35.85], [-116.8, 36.1]]]}}, + id="footprint", id_property="name", fill_opacity=0.0, line="#ffd166", +) +m +``` + +## API + +{api-table} + +### Layers + +- **`add_geojson(data, id=..., id_property=..., tooltip=[...], fill=, line=, ...)`** — + a FeatureCollection / Feature / Geometry dict, or anything with + `__geo_interface__` (a GeoDataFrame, a shapely geometry). Clicking a feature + sets `selected` to its id (`id_property`, else the feature `id`, else its + index); hovering sets `hovered` and shows the `tooltip` properties. +- **`add_xyz(url, ...)`** — a `{z}/{x}/{y}` tile template (TiTiler `tilejson` + `tiles[0]`, NASA GIBS, OSM …). Tiles are fetched by the viewer's browser, so + the URL must work without credentials. +- **`add_grid(GridLayer.from_arrays({...}, corners, ...))`** — 2-D arrays + quantized to one byte per pixel per band (0 = nodata), with optional RGB + `composites`. `corners` are the image's outer corners as `[lon, lat]` in TL, + TR, BR, BL order; use `corners_from_bounds(left, bottom, right, top, crs)` or + `corners_from_coords(x, y, crs)` (`pip install "manywidgets[geo]"` for the + `crs` reprojection via pyproj). The quad is placed on the map without + resampling, so a projected (e.g. UTM) window keeps its pixels. + +Each layer's reader-adjustable state (visibility, opacity, active band, +stretch range, colormap) lives in `layer_state`, keyed by layer id — it is what +the panel writes, and what you set from Python to choose the initial look. + +### Linking + +`selected` / `hovered` are two-way strings, so a map and a +[Table](table.ipynb) stay in sync with a kernel-free link: + +```python +from ipywidgets import jslink +jslink((table, "selected"), (m, "selected")) +``` + +### Size + +The data of a grid layer is carried as base64 inside the widget state (≈1.33 × +the raw bytes): an 800 × 800 band is ≈ 0.85 MB. `GridLayer.nbytes` reports it. +The MapLibre bundle itself (≈ 0.8 MB) is stored once per `GeoMap` instance in an +executed notebook's widget state. diff --git a/src/manywidgets/geo_map/src/colormaps.ts b/src/manywidgets/geo_map/src/colormaps.ts new file mode 100644 index 0000000..00bed87 --- /dev/null +++ b/src/manywidgets/geo_map/src/colormaps.ts @@ -0,0 +1,64 @@ +// Colormaps as a handful of RGB stops, linearly interpolated into a 256-entry +// lookup table. The stops are sampled from matplotlib's definitions (every ~10%) +// — close enough for display, and a fraction of the size of the full tables. + +export type Rgb = [number, number, number]; + +const STOPS: Record = { + gray: [ + [0, 0, 0], + [255, 255, 255], + ], + viridis: [ + [68, 1, 84], [72, 40, 120], [62, 74, 137], [49, 104, 142], [38, 130, 142], + [31, 158, 137], [53, 183, 121], [109, 205, 89], [180, 222, 44], [253, 231, 37], + ], + magma: [ + [0, 0, 4], [28, 16, 68], [79, 18, 123], [129, 37, 129], [181, 54, 122], + [229, 80, 100], [251, 135, 97], [254, 194, 135], [252, 253, 191], + ], + inferno: [ + [0, 0, 4], [31, 12, 72], [85, 15, 109], [136, 34, 106], [186, 54, 85], + [227, 89, 51], [249, 140, 10], [249, 201, 50], [252, 255, 164], + ], + cividis: [ + [0, 32, 77], [0, 50, 110], [60, 77, 110], [97, 101, 112], [130, 127, 115], + [164, 154, 112], [200, 182, 100], [238, 212, 80], [255, 234, 70], + ], + terrain: [ + [51, 51, 153], [0, 153, 153], [0, 204, 102], [255, 255, 128], + [179, 128, 102], [255, 255, 255], + ], +}; + +export const COLORMAP_NAMES = Object.keys(STOPS); + +const lutCache = new Map(); + +/** 256×3 RGB lookup table for `name` (falls back to gray for unknown names). */ +export function colormapLut(name: string): Uint8ClampedArray { + const key = STOPS[name] ? name : "gray"; + const cached = lutCache.get(key); + if (cached) return cached; + const stops = STOPS[key]; + const lut = new Uint8ClampedArray(256 * 3); + for (let i = 0; i < 256; i++) { + const t = (i / 255) * (stops.length - 1); + const k = Math.min(Math.floor(t), stops.length - 2); + const f = t - k; + const a = stops[k]; + const b = stops[k + 1]; + lut[i * 3] = a[0] + (b[0] - a[0]) * f; + lut[i * 3 + 1] = a[1] + (b[1] - a[1]) * f; + lut[i * 3 + 2] = a[2] + (b[2] - a[2]) * f; + } + lutCache.set(key, lut); + return lut; +} + +/** CSS linear-gradient string for a colorbar swatch. */ +export function colormapGradient(name: string): string { + const stops = STOPS[STOPS[name] ? name : "gray"]; + const parts = stops.map((c, i) => `rgb(${c[0]},${c[1]},${c[2]}) ${(100 * i) / (stops.length - 1)}%`); + return `linear-gradient(to right, ${parts.join(", ")})`; +} diff --git a/src/manywidgets/geo_map/src/controls.ts b/src/manywidgets/geo_map/src/controls.ts new file mode 100644 index 0000000..7ace533 --- /dev/null +++ b/src/manywidgets/geo_map/src/controls.ts @@ -0,0 +1,239 @@ +// The built-in layer panel (top-right of the map). Vanilla DOM; every change is +// reported through `onChange(layerId, patch)` and lands in the widget's +// `layer_state` trait, so it works identically live and under static export. + +import { COLORMAP_NAMES, colormapGradient } from "./colormaps"; +import { activeName, bandNames, effectiveRange, isComposite, type GridSpec } from "./grid"; +import { isVisible, layerOpacity, type LayerSpec, type LayerState, type LayerStates } from "./layers"; + +export interface ControlsHandle { + rebuild(specs: LayerSpec[], states: LayerStates): void; + update(specs: LayerSpec[], states: LayerStates): void; + dispose(): void; +} + +type OnChange = (layerId: string, patch: LayerState) => void; + +export function buildControls(container: HTMLElement, specs: LayerSpec[], states: LayerStates, onChange: OnChange): ControlsHandle { + const panel = document.createElement("div"); + panel.className = "manywidgets-geomap__panel"; + const toggle = document.createElement("button"); + toggle.type = "button"; + toggle.className = "manywidgets-geomap__panel-toggle"; + toggle.title = "Layers"; + toggle.textContent = "Layers"; + const body = document.createElement("div"); + body.className = "manywidgets-geomap__panel-body"; + panel.appendChild(toggle); + panel.appendChild(body); + container.appendChild(panel); + toggle.addEventListener("click", () => panel.classList.toggle("is-collapsed")); + + // Live DOM references per layer, so `update` can refresh without rebuilding + // (rebuilding mid-drag would steal focus from the slider). + const rows = new Map void }>(); + + function rebuild(specs: LayerSpec[], states: LayerStates): void { + body.replaceChildren(); + rows.clear(); + for (const spec of [...specs].reverse()) { + // Reverse so the panel reads top-to-bottom like the map stack. + const st = states[spec.id] ?? {}; + const row = document.createElement("div"); + row.className = "manywidgets-geomap__layer"; + const head = document.createElement("label"); + head.className = "manywidgets-geomap__layer-head"; + const visible = document.createElement("input"); + visible.type = "checkbox"; + visible.checked = isVisible(spec, st); + visible.addEventListener("change", () => onChange(spec.id, { visible: visible.checked })); + const name = document.createElement("span"); + name.textContent = spec.label ?? spec.id; + head.appendChild(visible); + head.appendChild(name); + row.appendChild(head); + + let refresh: (spec: LayerSpec, st: LayerState) => void = () => {}; + if (spec.type === "grid") refresh = gridControls(row, spec, st, onChange); + else if (spec.type === "xyz") refresh = opacityControl(row, spec, st, onChange); + rows.set(spec.id, { visible, refresh }); + body.appendChild(row); + } + panel.style.display = specs.length ? "" : "none"; + } + + function update(specs: LayerSpec[], states: LayerStates): void { + for (const spec of specs) { + const r = rows.get(spec.id); + if (!r) continue; + const st = states[spec.id] ?? {}; + r.visible.checked = isVisible(spec, st); + r.refresh(spec, st); + } + } + + rebuild(specs, states); + return { + rebuild, + update, + dispose: () => panel.remove(), + }; +} + +function slider(label: string, min: number, max: number, step: number, value: number, onInput: (v: number) => void): { el: HTMLElement; input: HTMLInputElement; out: HTMLElement } { + const el = document.createElement("div"); + el.className = "manywidgets-geomap__field"; + const lab = document.createElement("span"); + lab.className = "manywidgets-geomap__field-label"; + lab.textContent = label; + const input = document.createElement("input"); + input.type = "range"; + input.min = String(min); + input.max = String(max); + input.step = String(step); + input.value = String(value); + const out = document.createElement("span"); + out.className = "manywidgets-geomap__field-value"; + out.textContent = fmt(value); + input.addEventListener("input", () => { + out.textContent = fmt(Number(input.value)); + onInput(Number(input.value)); + }); + el.appendChild(lab); + el.appendChild(input); + el.appendChild(out); + return { el, input, out }; +} + +function fmt(v: number): string { + return Math.abs(v) >= 100 ? v.toFixed(0) : Math.abs(v) >= 10 ? v.toFixed(1) : v.toFixed(2); +} + +function opacityControl(row: HTMLElement, spec: LayerSpec, st: LayerState, onChange: OnChange): (spec: LayerSpec, st: LayerState) => void { + const s = slider("Opacity", 0, 1, 0.05, layerOpacity(spec, st), (v) => onChange(spec.id, { opacity: v })); + row.appendChild(s.el); + return (spec2, st2) => { + s.input.value = String(layerOpacity(spec2, st2)); + s.out.textContent = fmt(layerOpacity(spec2, st2)); + }; +} + +function gridControls(row: HTMLElement, spec: GridSpec, st: LayerState, onChange: OnChange): (spec: LayerSpec, st: LayerState) => void { + const names = bandNames(spec); + const compNames = Object.keys(spec.composites ?? {}); + + // Band / composite selector + const bandField = document.createElement("div"); + bandField.className = "manywidgets-geomap__field"; + const bandLab = document.createElement("span"); + bandLab.className = "manywidgets-geomap__field-label"; + bandLab.textContent = "Show"; + const bandSel = document.createElement("select"); + for (const n of [...names, ...compNames]) { + const o = document.createElement("option"); + o.value = n; + o.textContent = n; + bandSel.appendChild(o); + } + bandField.appendChild(bandLab); + bandField.appendChild(bandSel); + row.appendChild(bandField); + + // Stretch range: two sliders over the band's full quantized span. + const span = (name: string): [number, number] => { + const b = spec.bands[name]; + return [b.scale + b.offset, 255 * b.scale + b.offset]; + }; + const unitOf = (name: string): string => spec.bands[name]?.unit ?? ""; + let cur = activeName(spec, st); + let [lo, hi] = isComposite(spec, cur) ? [0, 1] : effectiveRange(spec, st, cur); + const full = isComposite(spec, cur) ? [0, 1] : span(cur); + const step = (full[1] - full[0]) / 254; + const minS = slider("Min", full[0], full[1], step, lo, (v) => { + lo = Math.min(v, hi - step); + minS.input.value = String(lo); + onChange(spec.id, { range: [lo, hi] }); + }); + const maxS = slider("Max", full[0], full[1], step, hi, (v) => { + hi = Math.max(v, lo + step); + maxS.input.value = String(hi); + onChange(spec.id, { range: [lo, hi] }); + }); + row.appendChild(minS.el); + row.appendChild(maxS.el); + + // Colormap + colorbar + const cmField = document.createElement("div"); + cmField.className = "manywidgets-geomap__field"; + const cmLab = document.createElement("span"); + cmLab.className = "manywidgets-geomap__field-label"; + cmLab.textContent = "Colors"; + const cmSel = document.createElement("select"); + for (const n of COLORMAP_NAMES) { + const o = document.createElement("option"); + o.value = n; + o.textContent = n; + cmSel.appendChild(o); + } + cmField.appendChild(cmLab); + cmField.appendChild(cmSel); + row.appendChild(cmField); + const bar = document.createElement("div"); + bar.className = "manywidgets-geomap__colorbar"; + const barLo = document.createElement("span"); + const barHi = document.createElement("span"); + const barSwatch = document.createElement("div"); + barSwatch.className = "manywidgets-geomap__colorbar-swatch"; + bar.appendChild(barLo); + bar.appendChild(barSwatch); + bar.appendChild(barHi); + row.appendChild(bar); + + const op = slider("Opacity", 0, 1, 0.05, layerOpacity(spec, st), (v) => onChange(spec.id, { opacity: v })); + row.appendChild(op.el); + + function refresh(spec2: LayerSpec, st2: LayerState): void { + const g = spec2 as GridSpec; + cur = activeName(g, st2); + bandSel.value = cur; + const comp = isComposite(g, cur); + const cm = st2.colormap ?? g.colormap ?? "gray"; + cmSel.value = cm; + cmSel.disabled = comp; + minS.el.style.display = maxS.el.style.display = comp ? "none" : ""; + bar.style.display = comp ? "none" : ""; + if (!comp) { + const f = span(cur); + const stp = (f[1] - f[0]) / 254; + for (const s of [minS, maxS]) { + s.input.min = String(f[0]); + s.input.max = String(f[1]); + s.input.step = String(stp); + } + [lo, hi] = effectiveRange(g, st2, cur); + minS.input.value = String(lo); + maxS.input.value = String(hi); + minS.out.textContent = fmt(lo); + maxS.out.textContent = fmt(hi); + barSwatch.style.background = colormapGradient(cm); + const u = unitOf(cur); + barLo.textContent = `${fmt(lo)}${u ? " " + u : ""}`; + barHi.textContent = `${fmt(hi)}${u ? " " + u : ""}`; + } + op.input.value = String(layerOpacity(g, st2)); + op.out.textContent = fmt(layerOpacity(g, st2)); + } + + bandSel.addEventListener("change", () => { + const name = bandSel.value; + // Switching band resets the stretch to that band's default. + const patch: LayerState = { active: name }; + if (!isComposite(spec, name)) patch.range = effectiveRange(spec, { active: name }, name); + else patch.range = undefined; + onChange(spec.id, patch); + }); + cmSel.addEventListener("change", () => onChange(spec.id, { colormap: cmSel.value })); + + refresh(spec, st); + return refresh; +} diff --git a/src/manywidgets/geo_map/src/css.d.ts b/src/manywidgets/geo_map/src/css.d.ts new file mode 100644 index 0000000..ae2f01e --- /dev/null +++ b/src/manywidgets/geo_map/src/css.d.ts @@ -0,0 +1,6 @@ +// esbuild bundles `.css` imports as strings (scripts/build.mjs `loader`); vitest +// resolves them through its own CSS pipeline (mocked in tests). +declare module "*.css" { + const text: string; + export default text; +} diff --git a/src/manywidgets/geo_map/src/grid.ts b/src/manywidgets/geo_map/src/grid.ts new file mode 100644 index 0000000..9764b5d --- /dev/null +++ b/src/manywidgets/geo_map/src/grid.ts @@ -0,0 +1,195 @@ +// A "grid" layer is a quantized scalar raster placed on the map by its four +// corner coordinates. Each band is a uint8 image (row-major, top row first) +// where 0 is nodata and 1..255 map linearly onto [offset+scale, offset+255*scale] +// — see `manywidgets.geo_map.GridLayer.from_arrays` for the Python side. All +// colouring (band choice, stretch, colormap, RGB composites) happens here, in +// the browser, so a reader can explore the data with no kernel. + +import { colormapLut } from "./colormaps"; + +export interface GridBand { + /** base64 of the uint8 pixels */ + data: string; + scale: number; + offset: number; + unit?: string; + /** default stretch [lo, hi] in data units */ + default_range?: [number, number]; +} + +export interface GridSpec { + id: string; + type: "grid"; + label?: string; + /** [[lon, lat] × 4] in TL, TR, BR, BL order */ + corners: [number, number][]; + width: number; + height: number; + bands: Record; + /** author's band order (object key order is not preserved through the pipeline) */ + band_names?: string[]; + /** name → [r, g, b] band names */ + composites?: Record; + /** initially active band or composite name */ + active?: string; + colormap?: string; + range?: [number, number]; + opacity?: number; + visible?: boolean; +} + +/** Per-layer, reader-adjustable state (what the control panel edits). */ +export interface GridState { + visible?: boolean; + active?: string; + range?: [number, number]; + colormap?: string; + opacity?: number; +} + +export function decodeBase64(b64: string): Uint8Array { + const bin = atob(b64); + const out = new Uint8Array(bin.length); + for (let i = 0; i < bin.length; i++) out[i] = bin.charCodeAt(i); + return out; +} + +const decodeCache = new WeakMap(); + +export function bandPixels(band: GridBand): Uint8Array { + let px = decodeCache.get(band); + if (!px) { + px = decodeBase64(band.data); + decodeCache.set(band, px); + } + return px; +} + +/** Quantized byte → data value (NaN for the nodata byte 0). */ +export function bandValue(band: GridBand, q: number): number { + return q === 0 ? NaN : q * band.scale + band.offset; +} + +/** Band names in the author's order. */ +export function bandNames(spec: GridSpec): string[] { + const names = spec.band_names?.filter((n) => n in spec.bands); + return names && names.length ? names : Object.keys(spec.bands); +} + +export function isComposite(spec: GridSpec, name: string): boolean { + return !!spec.composites && name in spec.composites; +} + +/** Effective active name: the state's, else the spec's, else the first band. */ +export function activeName(spec: GridSpec, state: GridState): string { + const name = state.active ?? spec.active; + if (name && (spec.bands[name] || isComposite(spec, name))) return name; + return bandNames(spec)[0]; +} + +/** Effective stretch range for a single band (state → spec → band default → full). */ +export function effectiveRange(spec: GridSpec, state: GridState, bandName: string): [number, number] { + const band = spec.bands[bandName]; + if (state.range) return state.range; + if (spec.range) return spec.range; + if (band?.default_range) return band.default_range; + return [bandValue(band, 1), bandValue(band, 255)]; +} + +/** Map a byte through a stretch to 0..255 (nodata stays -1). */ +function stretchByte(band: GridBand, q: number, lo: number, hi: number): number { + if (q === 0) return -1; + const v = q * band.scale + band.offset; + const t = hi === lo ? 0 : (v - lo) / (hi - lo); + return Math.max(0, Math.min(255, Math.round(t * 255))); +} + +/** + * Paint the active band (or composite) into an RGBA buffer. Composites stretch + * each channel by its own band default range (or the spec range if given); + * single bands use the effective range + colormap. + */ +export function paintGrid(spec: GridSpec, state: GridState, out: Uint8ClampedArray): void { + const n = spec.width * spec.height; + const name = activeName(spec, state); + if (isComposite(spec, name)) { + const names = spec.composites![name]; + const chans = names.map((b) => spec.bands[b]); + const pxs = chans.map((b) => bandPixels(b)); + const ranges = chans.map((b) => (state.range ?? spec.range ?? b.default_range) ?? [bandValue(b, 1), bandValue(b, 255)]); + for (let i = 0; i < n; i++) { + let nodata = false; + for (let c = 0; c < 3; c++) { + const s = stretchByte(chans[c], pxs[c][i], ranges[c][0], ranges[c][1]); + if (s < 0) nodata = true; + out[i * 4 + c] = s < 0 ? 0 : s; + } + out[i * 4 + 3] = nodata ? 0 : 255; + } + return; + } + const band = spec.bands[name]; + const px = bandPixels(band); + const [lo, hi] = effectiveRange(spec, state, name); + const lut = colormapLut(state.colormap ?? spec.colormap ?? "gray"); + for (let i = 0; i < n; i++) { + const s = stretchByte(band, px[i], lo, hi); + if (s < 0) { + out[i * 4 + 3] = 0; + continue; + } + out[i * 4] = lut[s * 3]; + out[i * 4 + 1] = lut[s * 3 + 1]; + out[i * 4 + 2] = lut[s * 3 + 2]; + out[i * 4 + 3] = 255; + } +} + +/** Render the grid to a canvas (created once per layer and reused). */ +export function renderGridCanvas(spec: GridSpec, state: GridState, canvas: HTMLCanvasElement): void { + canvas.width = spec.width; + canvas.height = spec.height; + const ctx = canvas.getContext("2d"); + if (!ctx) return; + const img = ctx.createImageData(spec.width, spec.height); + paintGrid(spec, state, img.data); + ctx.putImageData(img, 0, 0); +} + +/** + * Pixel readout at a map position. `toPlane` projects lon/lat to a plane where + * the quad is (close to) a parallelogram — we use Web Mercator. The inverse is + * the affine fit through TL, TR, BL; for a reprojected UTM window a few tens of + * km across the quad is a parallelogram to well under a pixel. + */ +export function gridPixelAt( + spec: GridSpec, + lngLat: [number, number], + toPlane: (lngLat: [number, number]) => [number, number], +): { col: number; row: number } | null { + const [tl, tr, , bl] = spec.corners.map(toPlane); + const p = toPlane(lngLat); + const ux = tr[0] - tl[0], uy = tr[1] - tl[1]; + const vx = bl[0] - tl[0], vy = bl[1] - tl[1]; + const det = ux * vy - uy * vx; + if (Math.abs(det) < 1e-18) return null; + const dx = p[0] - tl[0], dy = p[1] - tl[1]; + const u = (dx * vy - dy * vx) / det; + const v = (ux * dy - uy * dx) / det; + if (u < 0 || u >= 1 || v < 0 || v >= 1) return null; + return { col: Math.floor(u * spec.width), row: Math.floor(v * spec.height) }; +} + +/** Values of every band at a pixel (NaN where nodata). */ +export function gridValuesAt(spec: GridSpec, col: number, row: number): Record { + const i = row * spec.width + col; + const out: Record = {}; + for (const [name, band] of Object.entries(spec.bands)) out[name] = bandValue(band, bandPixels(band)[i]); + return out; +} + +export function formatValue(v: number, unit?: string): string { + if (!Number.isFinite(v)) return "no data"; + const s = Math.abs(v) >= 100 ? v.toFixed(0) : Math.abs(v) >= 10 ? v.toFixed(1) : v.toFixed(2); + return unit ? `${s} ${unit}` : s; +} diff --git a/src/manywidgets/geo_map/src/index.ts b/src/manywidgets/geo_map/src/index.ts new file mode 100644 index 0000000..997fcb9 --- /dev/null +++ b/src/manywidgets/geo_map/src/index.ts @@ -0,0 +1,453 @@ +import type { RenderProps } from "@anywidget/types"; +import maplibregl from "maplibre-gl"; +import type { ImageSource, Map as MlMap, MapMouseEvent, StyleSpecification } from "maplibre-gl"; +import maplibreCss from "maplibre-gl/dist/maplibre-gl.css"; +import { + applyThemeVars, + detectHostColorMode, + ensureShadowCss, + observeHostColorMode, + safeSaveChanges, +} from "@manywidgets/core"; + +import { buildControls, type ControlsHandle } from "./controls"; +import { cornersBounds, geometryBounds, featureCollectionBounds, isVisible, layerOpacity, toFeatureCollection, DEFAULT_STYLE } from "./layers"; +import type { GeoJsonSpec, LayerSpec, LayerStates, XyzSpec } from "./layers"; +import { formatValue, gridPixelAt, gridValuesAt, renderGridCanvas, type GridSpec } from "./grid"; + +export interface ViewState { + longitude: number; + latitude: number; + zoom: number; +} + +interface GeoMapModel { + basemap: string; + height: string; + view_state: ViewState; + fit_bounds: [number, number, number, number] | null; + layers: LayerSpec[]; + layer_state: LayerStates; + selected: string; + hovered: string; + controls: boolean; + zoom_to_selected: boolean; +} + +type Bounds = [number, number, number, number]; + +// Keyless public basemaps. "auto" follows the host's light/dark mode. +const CARTO_ATTR = '© OpenStreetMap contributors © CARTO'; +const BASEMAPS: Record = { + positron: "https://basemaps.cartocdn.com/gl/positron-gl-style/style.json", + "dark-matter": "https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json", + voyager: "https://basemaps.cartocdn.com/gl/voyager-gl-style/style.json", + satellite: rasterStyle( + "https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}", + "Tiles © Esri — Source: Esri, Maxar, Earthstar Geographics, and the GIS User Community", + 19, + ), + osm: rasterStyle("https://tile.openstreetmap.org/{z}/{x}/{y}.png", CARTO_ATTR, 19), + none: { version: 8, sources: {}, layers: [] }, +}; + +function rasterStyle(url: string, attribution: string, maxzoom: number): StyleSpecification { + return { + version: 8, + sources: { basemap: { type: "raster", tiles: [url], tileSize: 256, attribution, maxzoom } }, + layers: [{ id: "basemap", type: "raster", source: "basemap" }], + }; +} + +function resolveBasemap(name: string, el: HTMLElement): string | StyleSpecification { + if (name === "auto") return BASEMAPS[detectHostColorMode(el) === "dark" ? "dark-matter" : "positron"]; + return BASEMAPS[name] ?? name; // a style URL / inline style name passes through +} + +const SRC = (id: string) => `mw-${id}`; + +function render({ model, el }: RenderProps): () => void { + const disposeTheme = applyThemeVars(el, model); + ensureShadowCss(el, maplibreCss, "maplibre-gl"); + + const container = document.createElement("div"); + container.className = "manywidgets-geomap"; + const mapEl = document.createElement("div"); + mapEl.className = "manywidgets-geomap__map"; + const readout = document.createElement("div"); + readout.className = "manywidgets-geomap__readout"; + readout.style.display = "none"; + container.appendChild(mapEl); + container.appendChild(readout); + el.appendChild(container); + + const applyHeight = (): void => { + container.style.height = model.get("height") || "480px"; + }; + applyHeight(); + + const view = model.get("view_state") || { longitude: 0, latitude: 0, zoom: 1 }; + const map: MlMap = new maplibregl.Map({ + container: mapEl, + style: resolveBasemap(model.get("basemap") || "positron", el), + center: [view.longitude, view.latitude], + zoom: view.zoom, + attributionControl: { compact: true }, + }); + map.addControl(new maplibregl.NavigationControl({ showCompass: false }), "top-left"); + map.addControl(new maplibregl.ScaleControl({ unit: "metric" }), "bottom-right"); + (container as HTMLElement & { __map?: MlMap }).__map = map; // for browser checks / debugging + + const popup = new maplibregl.Popup({ closeButton: false, closeOnClick: false, maxWidth: "320px" }); + const gridCanvases = new Map(); + let managed: { sources: string[]; layers: string[] } = { sources: [], layers: [] }; + let controls: ControlsHandle | null = null; + let styleReady = false; + + const specs = (): LayerSpec[] => model.get("layers") || []; + const states = (): LayerStates => model.get("layer_state") || {}; + const stateOf = (id: string) => states()[id]; + + // ---- layer management ----------------------------------------------------- + + function clearManaged(): void { + for (const id of managed.layers) if (map.getLayer(id)) map.removeLayer(id); + for (const id of managed.sources) if (map.getSource(id)) map.removeSource(id); + managed = { sources: [], layers: [] }; + } + + function addGeoJson(spec: GeoJsonSpec): void { + const fc = toFeatureCollection(spec); + for (const f of fc.features) (f.properties as Record).__mw_id = f.id; + const s = { ...DEFAULT_STYLE, ...(spec.style ?? {}) }; + const src = SRC(spec.id); + map.addSource(src, { type: "geojson", data: fc, promoteId: "__mw_id" }); + managed.sources.push(src); + const vis = isVisible(spec, stateOf(spec.id)) ? "visible" : "none"; + const op = layerOpacity(spec, stateOf(spec.id)); + const selected = ["boolean", ["feature-state", "selected"], false]; + const hovered = ["boolean", ["feature-state", "hover"], false]; + const fillColor = ["case", selected, s.selected_fill, hovered, s.hover_fill, s.fill]; + const lineColor = ["case", selected, s.selected_line, s.line]; + const fillOpacity = ["case", selected, Math.min(1, s.fill_opacity + 0.25) * op, hovered, Math.min(1, s.fill_opacity + 0.15) * op, s.fill_opacity * op]; + const lineWidth = ["case", selected, s.line_width + 1.5, s.line_width]; + const fillId = `${src}-fill`, lineId = `${src}-line`, circleId = `${src}-circle`; + map.addLayer({ id: fillId, type: "fill", source: src, filter: ["==", ["geometry-type"], "Polygon"], layout: { visibility: vis }, paint: { "fill-color": fillColor as never, "fill-opacity": fillOpacity as never } }); + map.addLayer({ id: lineId, type: "line", source: src, filter: ["any", ["==", ["geometry-type"], "Polygon"], ["==", ["geometry-type"], "LineString"]], layout: { visibility: vis }, paint: { "line-color": lineColor as never, "line-width": lineWidth as never, "line-opacity": op } }); + map.addLayer({ id: circleId, type: "circle", source: src, filter: ["==", ["geometry-type"], "Point"], layout: { visibility: vis }, paint: { "circle-color": fillColor as never, "circle-radius": s.radius, "circle-opacity": Math.min(1, s.fill_opacity + 0.6) * op, "circle-stroke-color": lineColor as never, "circle-stroke-width": 1 } }); + managed.layers.push(fillId, lineId, circleId); + for (const id of [fillId, circleId]) { + map.on("click", id, (e) => onFeatureClick(e)); + map.on("mousemove", id, (e) => onFeatureHover(e, spec)); + map.on("mouseleave", id, () => onFeatureLeave()); + } + } + + function addXyz(spec: XyzSpec): void { + const src = SRC(spec.id); + map.addSource(src, { type: "raster", tiles: [spec.url], tileSize: spec.tile_size ?? 256, attribution: spec.attribution ?? "", minzoom: spec.min_zoom ?? 0, maxzoom: spec.max_zoom ?? 22 }); + map.addLayer({ id: `${src}-raster`, type: "raster", source: src, layout: { visibility: isVisible(spec, stateOf(spec.id)) ? "visible" : "none" }, paint: { "raster-opacity": layerOpacity(spec, stateOf(spec.id)), "raster-fade-duration": 0 } }); + managed.sources.push(src); + managed.layers.push(`${src}-raster`); + } + + function gridCanvas(spec: GridSpec): HTMLCanvasElement { + let c = gridCanvases.get(spec.id); + if (!c) { + c = document.createElement("canvas"); + gridCanvases.set(spec.id, c); + } + return c; + } + + function addGrid(spec: GridSpec): void { + const src = SRC(spec.id); + const canvas = gridCanvas(spec); + renderGridCanvas(spec, stateOf(spec.id) ?? {}, canvas); + map.addSource(src, { type: "image", url: canvas.toDataURL(), coordinates: spec.corners as [[number, number], [number, number], [number, number], [number, number]] }); + map.addLayer({ id: `${src}-raster`, type: "raster", source: src, layout: { visibility: isVisible(spec, stateOf(spec.id)) ? "visible" : "none" }, paint: { "raster-opacity": layerOpacity(spec, stateOf(spec.id)), "raster-fade-duration": 0, "raster-resampling": "nearest" } }); + managed.sources.push(src); + managed.layers.push(`${src}-raster`); + } + + function applyLayers(): void { + if (!styleReady) return; + clearManaged(); + // Add in list order so later specs draw on top; rasters below vectors is the + // author's responsibility via ordering. + for (const spec of specs()) { + try { + if (spec.type === "geojson") addGeoJson(spec); + else if (spec.type === "xyz") addXyz(spec); + else if (spec.type === "grid") addGrid(spec); + } catch (err) { + console.error(`[manywidgets geomap] layer "${spec.id}" failed:`, err); + } + } + applySelected(); + controls?.rebuild(specs(), states()); + } + + /** Cheap update after a layer_state change: visibility/opacity, grid repaint. */ + function applyStates(): void { + if (!styleReady) return; + for (const spec of specs()) { + const st = stateOf(spec.id) ?? {}; + const src = SRC(spec.id); + const ids = managed.layers.filter((l) => l.startsWith(`${src}-`)); + const vis = isVisible(spec, st) ? "visible" : "none"; + const op = layerOpacity(spec, st); + for (const id of ids) { + if (!map.getLayer(id)) continue; + map.setLayoutProperty(id, "visibility", vis); + if (id.endsWith("-raster")) map.setPaintProperty(id, "raster-opacity", op); + } + if (spec.type === "grid" && map.getSource(src)) { + const canvas = gridCanvas(spec); + renderGridCanvas(spec, st, canvas); + (map.getSource(src) as ImageSource).updateImage({ url: canvas.toDataURL() }); + } + } + controls?.update(specs(), states()); + } + + // ---- selection / hover ------------------------------------------------------ + + let currentSelected = ""; + function setFeatureStateAll(id: string, state: Record): void { + if (!id) return; + for (const spec of specs()) { + if (spec.type !== "geojson" || !map.getSource(SRC(spec.id))) continue; + map.setFeatureState({ source: SRC(spec.id), id }, state); + } + } + + function findFeature(id: string): GeoJSON.Feature | null { + for (const spec of specs()) { + if (spec.type !== "geojson") continue; + const f = toFeatureCollection(spec).features.find((x) => x.id === id); + if (f) return f; + } + return null; + } + + function applySelected(): void { + if (!styleReady) return; + const id = model.get("selected") || ""; + if (currentSelected) setFeatureStateAll(currentSelected, { selected: false }); + currentSelected = id; + setFeatureStateAll(id, { selected: true }); + } + + function zoomToSelected(): void { + if (!model.get("zoom_to_selected")) return; + const f = findFeature(model.get("selected") || ""); + const b = f ? geometryBounds(f.geometry) : null; + if (b) fitTo(b, true); + } + + function onFeatureClick(e: MapMouseEvent & { features?: GeoJSON.Feature[] }): void { + const f = e.features?.[0]; + if (!f) return; + const id = String(f.id ?? (f.properties as Record | null)?.__mw_id ?? ""); + if (id === model.get("selected")) return; + model.set("selected", id); + safeSaveChanges(model); + } + + let currentHover = ""; + function onFeatureHover(e: MapMouseEvent & { features?: GeoJSON.Feature[] }, spec: GeoJsonSpec): void { + const f = e.features?.[0]; + if (!f) return; + const id = String(f.id ?? (f.properties as Record | null)?.__mw_id ?? ""); + map.getCanvas().style.cursor = "pointer"; + if (id !== currentHover) { + if (currentHover) setFeatureStateAll(currentHover, { hover: false }); + currentHover = id; + setFeatureStateAll(id, { hover: true }); + if (model.get("hovered") !== id) { + model.set("hovered", id); + safeSaveChanges(model); + } + } + const props = (f.properties ?? {}) as Record; + const keys = spec.tooltip && spec.tooltip.length ? spec.tooltip : Object.keys(props).filter((k) => k !== "__mw_id").slice(0, 6); + if (keys.length) { + const rows = keys.map((k) => `
${escapeHtml(k)}${escapeHtml(String(props[k] ?? ""))}
`); + popup.setLngLat(e.lngLat).setHTML(`
${rows.join("")}
`).addTo(map); + } + } + + function onFeatureLeave(): void { + map.getCanvas().style.cursor = ""; + if (currentHover) setFeatureStateAll(currentHover, { hover: false }); + currentHover = ""; + popup.remove(); + if (model.get("hovered")) { + model.set("hovered", ""); + safeSaveChanges(model); + } + } + + function applyHovered(): void { + // External hover (e.g. a linked Table row): mirror as feature-state only. + const id = model.get("hovered") || ""; + if (id === currentHover) return; + if (currentHover) setFeatureStateAll(currentHover, { hover: false }); + currentHover = id; + setFeatureStateAll(id, { hover: true }); + } + + // ---- grid readout ----------------------------------------------------------- + + const toPlane = (ll: [number, number]): [number, number] => { + const m = maplibregl.MercatorCoordinate.fromLngLat({ lng: ll[0], lat: ll[1] }); + return [m.x, m.y]; + }; + + map.on("mousemove", (e) => { + const lines: string[] = []; + for (const spec of specs()) { + if (spec.type !== "grid" || !isVisible(spec, stateOf(spec.id))) continue; + const px = gridPixelAt(spec, [e.lngLat.lng, e.lngLat.lat], toPlane); + if (!px) continue; + const vals = gridValuesAt(spec, px.col, px.row); + const parts = Object.entries(vals).map(([k, v]) => `${k}: ${formatValue(v, spec.bands[k].unit)}`); + lines.push(`${escapeHtml(spec.label ?? spec.id)} ${parts.map(escapeHtml).join(" · ")}`); + } + if (lines.length) { + readout.innerHTML = lines.join("
"); + readout.style.display = ""; + } else readout.style.display = "none"; + }); + map.on("mouseout", () => { + readout.style.display = "none"; + }); + + // ---- view state ------------------------------------------------------------- + + function fitTo(b: Bounds, animate: boolean): void { + map.fitBounds([[b[0], b[1]], [b[2], b[3]]], { padding: 24, animate, maxZoom: 16 }); + } + + /** `fit_bounds` when it is a real [w, s, e, n]; null/[] mean "fit the layers". */ + function fitBoundsTrait(): Bounds | null { + const b = model.get("fit_bounds"); + return Array.isArray(b) && b.length === 4 && b.every((v) => Number.isFinite(v)) ? (b as Bounds) : null; + } + + function applyFitBounds(): void { + const b = fitBoundsTrait(); + if (b) fitTo(b, false); + } + + function autoBounds(): Bounds | null { + let out: Bounds | null = null; + for (const spec of specs()) { + let b: Bounds | null = null; + if (spec.type === "geojson") b = featureCollectionBounds(toFeatureCollection(spec)); + else if (spec.type === "grid") b = cornersBounds(spec.corners); + if (!b) continue; + out = out ? [Math.min(out[0], b[0]), Math.min(out[1], b[1]), Math.max(out[2], b[2]), Math.max(out[3], b[3])] : b; + } + return out; + } + + let syncingView = false; + map.on("moveend", () => { + const c = map.getCenter(); + const vs: ViewState = { longitude: round(c.lng, 5), latitude: round(c.lat, 5), zoom: round(map.getZoom(), 2) }; + syncingView = true; + model.set("view_state", vs); + safeSaveChanges(model); + syncingView = false; + }); + + function applyViewState(): void { + if (syncingView) return; + const vs = model.get("view_state"); + if (!vs) return; + const c = map.getCenter(); + if (Math.abs(c.lng - vs.longitude) < 1e-6 && Math.abs(c.lat - vs.latitude) < 1e-6 && Math.abs(map.getZoom() - vs.zoom) < 1e-3) return; + map.jumpTo({ center: [vs.longitude, vs.latitude], zoom: vs.zoom }); + } + + // ---- controls --------------------------------------------------------------- + + function mountControls(): void { + controls?.dispose(); + controls = null; + if (!model.get("controls")) return; + controls = buildControls(container, specs(), states(), (id, patch) => { + const next = { ...states(), [id]: { ...(states()[id] ?? {}), ...patch } }; + model.set("layer_state", next); + safeSaveChanges(model); + applyStates(); + }); + } + + // ---- wiring ----------------------------------------------------------------- + + map.on("style.load", () => { + styleReady = true; + applyLayers(); + }); + map.once("load", () => { + mountControls(); + const b = fitBoundsTrait() ?? autoBounds(); + if (b) fitTo(b, false); + }); + + model.on("change:layers", () => { + applyLayers(); + const b = fitBoundsTrait() ?? autoBounds(); + if (b) fitTo(b, true); + }); + model.on("change:layer_state", applyStates); + model.on("change:selected", () => { + applySelected(); + zoomToSelected(); + }); + model.on("change:hovered", applyHovered); + model.on("change:view_state", applyViewState); + model.on("change:fit_bounds", applyFitBounds); + model.on("change:height", () => { + applyHeight(); + map.resize(); + }); + model.on("change:controls", mountControls); + model.on("change:basemap", () => { + styleReady = false; + map.setStyle(resolveBasemap(model.get("basemap") || "positron", el)); + }); + const disposeColorMode = observeHostColorMode(el, () => { + if (model.get("basemap") === "auto") { + styleReady = false; + map.setStyle(resolveBasemap("auto", el)); + } + }); + + // The widget mounts into a shadow root whose size settles after render. + const ro = typeof ResizeObserver !== "undefined" ? new ResizeObserver(() => map.resize()) : null; + ro?.observe(container); + + return () => { + ro?.disconnect(); + disposeColorMode(); + controls?.dispose(); + popup.remove(); + map.remove(); + disposeTheme(); + }; +} + +function round(v: number, d: number): number { + const p = 10 ** d; + return Math.round(v * p) / p; +} + +function escapeHtml(s: string): string { + return s.replace(/[&<>"']/g, (c) => ({ "&": "&", "<": "<", ">": ">", '"': """, "'": "'" })[c] as string); +} + +export default { render }; diff --git a/src/manywidgets/geo_map/src/layers.ts b/src/manywidgets/geo_map/src/layers.ts new file mode 100644 index 0000000..3582a0d --- /dev/null +++ b/src/manywidgets/geo_map/src/layers.ts @@ -0,0 +1,129 @@ +// Layer specs are plain JSON built by the Python helpers (see widget.py). +// Everything here is independent of maplibre so it can be unit-tested. + +import type { GridSpec, GridState } from "./grid"; + +export interface GeoJsonStyle { + fill?: string; + line?: string; + fill_opacity?: number; + line_width?: number; + selected_fill?: string; + selected_line?: string; + hover_fill?: string; + /** circle radius for point features */ + radius?: number; +} + +export interface GeoJsonSpec { + id: string; + type: "geojson"; + label?: string; + data: GeoJSON.FeatureCollection | GeoJSON.Feature | GeoJSON.Geometry; + /** feature property used as the feature id (for selected/hovered) */ + id_property?: string; + style?: GeoJsonStyle; + /** property names shown in the hover tooltip */ + tooltip?: string[]; + visible?: boolean; +} + +export interface XyzSpec { + id: string; + type: "xyz"; + label?: string; + url: string; + attribution?: string; + tile_size?: number; + min_zoom?: number; + max_zoom?: number; + opacity?: number; + visible?: boolean; +} + +export type LayerSpec = GeoJsonSpec | XyzSpec | GridSpec; + +export interface LayerState extends GridState { + visible?: boolean; + opacity?: number; +} + +export type LayerStates = Record; + +export const DEFAULT_STYLE: Required = { + fill: "#3e63dd", + line: "#3e63dd", + fill_opacity: 0.15, + line_width: 1.5, + selected_fill: "#f76b15", + selected_line: "#f76b15", + hover_fill: "#3e63dd", + radius: 5, +}; + +export function isVisible(spec: LayerSpec, state: LayerState | undefined): boolean { + return state?.visible ?? spec.visible ?? true; +} + +export function layerOpacity(spec: LayerSpec, state: LayerState | undefined): number { + const o = state?.opacity ?? ("opacity" in spec ? spec.opacity : undefined); + return o === undefined ? 1 : Math.max(0, Math.min(1, o)); +} + +/** Normalise any GeoJSON input to a FeatureCollection whose features carry an `id`. */ +export function toFeatureCollection(spec: GeoJsonSpec): GeoJSON.FeatureCollection { + const d = spec.data as { type?: string }; + let features: GeoJSON.Feature[]; + if (d.type === "FeatureCollection") features = (spec.data as GeoJSON.FeatureCollection).features; + else if (d.type === "Feature") features = [spec.data as GeoJSON.Feature]; + else features = [{ type: "Feature", geometry: spec.data as GeoJSON.Geometry, properties: {} }]; + return { + type: "FeatureCollection", + features: features.map((f, i) => ({ + ...f, + properties: { ...(f.properties ?? {}) }, + id: featureId(f, spec.id_property, i), + })), + }; +} + +export function featureId(f: GeoJSON.Feature, idProperty: string | undefined, index: number): string { + if (idProperty && f.properties && f.properties[idProperty] !== undefined) return String(f.properties[idProperty]); + if (f.id !== undefined && f.id !== null) return String(f.id); + return String(index); +} + +/** [w, s, e, n] of a geometry, or null for an empty one. */ +export function geometryBounds(g: GeoJSON.Geometry | null | undefined): [number, number, number, number] | null { + let w = Infinity, s = Infinity, e = -Infinity, n = -Infinity; + const visit = (c: unknown): void => { + if (!Array.isArray(c)) return; + if (typeof c[0] === "number") { + const [x, y] = c as number[]; + if (x < w) w = x; + if (x > e) e = x; + if (y < s) s = y; + if (y > n) n = y; + } else c.forEach(visit); + }; + if (!g) return null; + if (g.type === "GeometryCollection") g.geometries.forEach((gg) => visit((gg as { coordinates?: unknown }).coordinates)); + else visit((g as { coordinates?: unknown }).coordinates); + return Number.isFinite(w) ? [w, s, e, n] : null; +} + +export function featureCollectionBounds(fc: GeoJSON.FeatureCollection): [number, number, number, number] | null { + let out: [number, number, number, number] | null = null; + for (const f of fc.features) { + const b = geometryBounds(f.geometry); + if (!b) continue; + out = out ? [Math.min(out[0], b[0]), Math.min(out[1], b[1]), Math.max(out[2], b[2]), Math.max(out[3], b[3])] : b; + } + return out; +} + +export function cornersBounds(corners: [number, number][]): [number, number, number, number] { + const xs = corners.map((c) => c[0]); + const ys = corners.map((c) => c[1]); + return [Math.min(...xs), Math.min(...ys), Math.max(...xs), Math.max(...ys)]; +} diff --git a/src/manywidgets/geo_map/style.css b/src/manywidgets/geo_map/style.css new file mode 100644 index 0000000..4a3fad4 --- /dev/null +++ b/src/manywidgets/geo_map/style.css @@ -0,0 +1,156 @@ +.manywidgets-geomap { + position: relative; + width: 100%; + height: 480px; + margin: 10px 0; + border: 1px solid var(--mw-color-border); + border-radius: var(--mw-control-radius); + overflow: hidden; + background: var(--mw-color-surface); + font-family: var(--mw-font-family); + color: var(--mw-color-text); +} + +/* More specific than maplibre's `.maplibregl-map { position: relative }`, which + lands on the same element and is injected after this stylesheet. */ +.manywidgets-geomap .manywidgets-geomap__map.maplibregl-map, +.manywidgets-geomap .manywidgets-geomap__map { + position: absolute; + inset: 0; + width: 100%; + height: 100%; +} + +/* Hover readout for grid layers (bottom-left, above the scale bar). */ +.manywidgets-geomap__readout { + position: absolute; + left: 8px; + bottom: 28px; + z-index: 2; + pointer-events: none; + padding: 4px 8px; + border-radius: 4px; + background: var(--mw-color-surface); + border: 1px solid var(--mw-color-border); + font-size: var(--mw-font-size-sm); + line-height: 1.4; + max-width: 70%; +} + +/* Layer panel */ +.manywidgets-geomap__panel { + position: absolute; + top: 8px; + right: 8px; + z-index: 2; + width: 240px; + max-height: calc(100% - 16px); + overflow: auto; + background: var(--mw-color-surface); + border: 1px solid var(--mw-color-border); + border-radius: var(--mw-control-radius); + font-size: var(--mw-font-size-sm); + box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15); +} + +.manywidgets-geomap__panel-toggle { + display: block; + width: 100%; + text-align: left; + padding: 6px 10px; + border: 0; + border-bottom: 1px solid var(--mw-color-border); + background: transparent; + color: var(--mw-color-text-muted); + font: inherit; + font-weight: var(--mw-font-weight-strong); + text-transform: uppercase; + letter-spacing: 0.04em; + cursor: pointer; +} + +.manywidgets-geomap__panel.is-collapsed .manywidgets-geomap__panel-body { + display: none; +} +.manywidgets-geomap__panel.is-collapsed { + width: auto; +} +.manywidgets-geomap__panel.is-collapsed .manywidgets-geomap__panel-toggle { + border-bottom: 0; +} + +.manywidgets-geomap__layer { + padding: 8px 10px; + border-bottom: 1px solid var(--mw-color-border); + display: grid; + gap: 6px; +} +.manywidgets-geomap__layer:last-child { + border-bottom: 0; +} + +.manywidgets-geomap__layer-head { + display: flex; + align-items: center; + gap: 6px; + font-weight: var(--mw-font-weight-strong); + cursor: pointer; +} + +.manywidgets-geomap__field { + display: grid; + grid-template-columns: 48px 1fr 44px; + align-items: center; + gap: 6px; +} +.manywidgets-geomap__field select { + grid-column: 2 / span 2; + font: inherit; + padding: 2px 4px; + border: 1px solid var(--mw-color-border); + border-radius: 4px; + background: var(--mw-color-surface); + color: var(--mw-color-text); +} +.manywidgets-geomap__field input[type="range"] { + width: 100%; + min-width: 0; + margin: 0; +} +.manywidgets-geomap__field-label { + color: var(--mw-color-text-muted); +} +.manywidgets-geomap__field-value { + text-align: right; + font-variant-numeric: tabular-nums; +} + +.manywidgets-geomap__colorbar { + display: grid; + grid-template-columns: auto 1fr auto; + align-items: center; + gap: 6px; + font-size: 11px; + color: var(--mw-color-text-muted); +} +.manywidgets-geomap__colorbar-swatch { + height: 10px; + border-radius: 3px; + box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1); +} + +/* Tooltip (rendered inside maplibre's popup) */ +.manywidgets-geomap .maplibregl-popup-content { + padding: 6px 8px; + font-family: var(--mw-font-family); + font-size: var(--mw-font-size-sm); + color: #24292e; +} +.manywidgets-geomap__tip-row { + display: flex; + gap: 8px; + justify-content: space-between; +} +.manywidgets-geomap__tip-row span { + color: #586069; +} diff --git a/src/manywidgets/geo_map/tests/geomap.test.ts b/src/manywidgets/geo_map/tests/geomap.test.ts new file mode 100644 index 0000000..04d49b7 --- /dev/null +++ b/src/manywidgets/geo_map/tests/geomap.test.ts @@ -0,0 +1,304 @@ +import { beforeAll, describe, expect, it, vi } from "vitest"; +import { fakeModel, mountEl } from "@manywidgets/test-utils"; + +import { colormapGradient, colormapLut, COLORMAP_NAMES } from "../src/colormaps"; +import { + activeName, + bandValue, + decodeBase64, + effectiveRange, + formatValue, + gridPixelAt, + gridValuesAt, + paintGrid, + type GridSpec, +} from "../src/grid"; +import { featureCollectionBounds, geometryBounds, isVisible, layerOpacity, toFeatureCollection, type GeoJsonSpec } from "../src/layers"; +import { buildControls } from "../src/controls"; + +// ---- maplibre mock (WebGL is unavailable in jsdom) --------------------------- + +const mapCalls: { sources: Map; layers: Map; handlers: Map } = { + sources: new Map(), + layers: new Map(), + handlers: new Map(), +}; + +vi.mock("maplibre-gl/dist/maplibre-gl.css", () => ({ default: ".maplibregl-map{}" })); +vi.mock("maplibre-gl", () => { + class FakeMap { + constructor(_opts: unknown) { + mapCalls.sources.clear(); + mapCalls.layers.clear(); + mapCalls.handlers.clear(); + } + on(ev: string, a: unknown, b?: unknown) { + const fn = (typeof a === "function" ? a : b) as Function; + const key = typeof a === "string" ? `${ev}:${a}` : ev; + if (!mapCalls.handlers.has(key)) mapCalls.handlers.set(key, []); + mapCalls.handlers.get(key)!.push(fn); + } + once(ev: string, fn: Function) { + this.on(ev, fn); + } + fire(ev: string) { + for (const fn of mapCalls.handlers.get(ev) ?? []) fn({}); + } + addControl() {} + addSource(id: string, s: unknown) { + mapCalls.sources.set(id, s); + } + addLayer(l: { id: string }) { + mapCalls.layers.set(l.id, l); + } + getSource(id: string) { + const s = mapCalls.sources.get(id); + return s ? { ...(s as object), updateImage: vi.fn() } : undefined; + } + getLayer(id: string) { + return mapCalls.layers.get(id); + } + removeLayer(id: string) { + mapCalls.layers.delete(id); + } + removeSource(id: string) { + mapCalls.sources.delete(id); + } + setLayoutProperty() {} + setPaintProperty() {} + setFeatureState() {} + setStyle() {} + fitBounds() {} + jumpTo() {} + resize() {} + remove() {} + getCanvas() { + return { style: {} }; + } + getCenter() { + return { lng: 0, lat: 0 }; + } + getZoom() { + return 1; + } + } + class Popup { + setLngLat() { + return this; + } + setHTML() { + return this; + } + addTo() { + return this; + } + remove() {} + } + class NavigationControl {} + class ScaleControl {} + const MercatorCoordinate = { fromLngLat: (ll: { lng: number; lat: number }) => ({ x: ll.lng, y: -ll.lat }) }; + return { default: { Map: FakeMap, Popup, NavigationControl, ScaleControl, MercatorCoordinate } }; +}); + +// ---- fixtures -------------------------------------------------------------- + +function b64(bytes: number[]): string { + return btoa(String.fromCharCode(...bytes)); +} + +/** 2×2 grid, two bands. Band "a": bytes 1,128,255,0(nodata); scale 0.1, offset -0.1 → values 0, 12.7, 25.4, NaN */ +function gridSpec(): GridSpec { + return { + id: "g", + type: "grid", + label: "Test grid", + corners: [ + [10, 20], + [12, 20], + [12, 18], + [10, 18], + ], + width: 2, + height: 2, + bands: { + a: { data: b64([1, 128, 255, 0]), scale: 0.1, offset: -0.1, unit: "dB", default_range: [0, 20] }, + b: { data: b64([255, 255, 1, 1]), scale: 1, offset: -1 }, + }, + band_names: ["b", "a"], + composites: { rgb: ["a", "b", "a"] }, + active: "a", + colormap: "viridis", + }; +} + +beforeAll(() => { + // jsdom has no canvas; renderGridCanvas tolerates a null 2d context. + HTMLCanvasElement.prototype.getContext = (() => null) as never; + HTMLCanvasElement.prototype.toDataURL = () => "data:image/png;base64,"; +}); + +describe("colormaps", () => { + it("builds 256-entry LUTs with the end stops exact", () => { + const lut = colormapLut("viridis"); + expect(lut.length).toBe(768); + expect([lut[0], lut[1], lut[2]]).toEqual([68, 1, 84]); + expect([lut[765], lut[766], lut[767]]).toEqual([253, 231, 37]); + expect(colormapLut("nope")).toBe(colormapLut("gray")); + expect(COLORMAP_NAMES).toContain("terrain"); + expect(colormapGradient("gray")).toMatch(/^linear-gradient/); + }); +}); + +describe("grid decoding + painting", () => { + it("decodes base64 bytes and maps them to values (0 = nodata)", () => { + expect(Array.from(decodeBase64(b64([1, 2, 250])))).toEqual([1, 2, 250]); + const band = gridSpec().bands.a; + expect(bandValue(band, 1)).toBeCloseTo(0); + expect(bandValue(band, 255)).toBeCloseTo(25.4); + expect(Number.isNaN(bandValue(band, 0))).toBe(true); + }); + + it("resolves the active band and stretch from state → spec → band default", () => { + const spec = gridSpec(); + expect(activeName(spec, {})).toBe("a"); + expect(activeName(spec, { active: "rgb" })).toBe("rgb"); + expect(activeName(spec, { active: "missing" })).toBe("b"); // first of band_names + expect(effectiveRange(spec, {}, "a")).toEqual([0, 20]); + expect(effectiveRange(spec, { range: [1, 2] }, "a")).toEqual([1, 2]); + expect(effectiveRange(spec, {}, "b")).toEqual([0, 254]); + }); + + it("paints a single band through the LUT with transparent nodata", () => { + const spec = gridSpec(); + const out = new Uint8ClampedArray(2 * 2 * 4); + paintGrid(spec, { range: [0, 25.4], colormap: "gray" }, out); + expect(Array.from(out.slice(0, 4))).toEqual([0, 0, 0, 255]); // value 0 → black + expect(Array.from(out.slice(8, 12))).toEqual([255, 255, 255, 255]); // 25.4 → white + expect(out[15]).toBe(0); // nodata → alpha 0 + expect(out[5]).toBeGreaterThan(100); // mid value → grey + }); + + it("paints composites per channel", () => { + const spec = gridSpec(); + const out = new Uint8ClampedArray(2 * 2 * 4); + paintGrid(spec, { active: "rgb" }, out); + // pixel 0: a=0 (range 0..20 → 0), b=254 (range 0..254 → 255) + expect(Array.from(out.slice(0, 4))).toEqual([0, 255, 0, 255]); + expect(out[15]).toBe(0); // a is nodata at pixel 3 + }); + + it("finds the pixel under a lon/lat and reads values", () => { + const spec = gridSpec(); + const plane = (ll: [number, number]): [number, number] => [ll[0], -ll[1]]; + expect(gridPixelAt(spec, [10.5, 19.5], plane)).toEqual({ col: 0, row: 0 }); + expect(gridPixelAt(spec, [11.5, 18.5], plane)).toEqual({ col: 1, row: 1 }); + expect(gridPixelAt(spec, [13, 19], plane)).toBeNull(); + const v = gridValuesAt(spec, 1, 0); + expect(v.a).toBeCloseTo(12.7); + expect(v.b).toBeCloseTo(254); + expect(formatValue(v.a, "dB")).toBe("12.7 dB"); + expect(formatValue(NaN)).toBe("no data"); + }); +}); + +describe("geojson helpers", () => { + const spec: GeoJsonSpec = { + id: "f", + type: "geojson", + id_property: "name", + data: { + type: "FeatureCollection", + features: [ + { type: "Feature", properties: { name: "x" }, geometry: { type: "Point", coordinates: [1, 2] } }, + { type: "Feature", properties: {}, geometry: { type: "Polygon", coordinates: [[[0, 0], [4, 0], [4, 3], [0, 0]]] } }, + ], + }, + }; + it("assigns string ids from id_property, else index", () => { + const fc = toFeatureCollection(spec); + expect(fc.features.map((f) => f.id)).toEqual(["x", "1"]); + }); + it("computes bounds", () => { + expect(geometryBounds({ type: "Point", coordinates: [1, 2] })).toEqual([1, 2, 1, 2]); + expect(featureCollectionBounds(toFeatureCollection(spec))).toEqual([0, 0, 4, 3]); + }); + it("resolves visibility and opacity from state over spec", () => { + expect(isVisible({ ...spec, visible: false }, undefined)).toBe(false); + expect(isVisible({ ...spec, visible: false }, { visible: true })).toBe(true); + expect(layerOpacity(spec, undefined)).toBe(1); + expect(layerOpacity(spec, { opacity: 0.3 })).toBe(0.3); + }); +}); + +describe("controls panel", () => { + it("renders one row per layer (top layer first) and reports changes", () => { + const host = mountEl(); + const changes: [string, unknown][] = []; + const specs = [gridSpec(), { ...gridSpec(), id: "h", label: "Top", type: "grid" as const }]; + const h = buildControls(host, specs, {}, (id, patch) => changes.push([id, patch])); + const names = Array.from(host.querySelectorAll(".manywidgets-geomap__layer-head span")).map((e) => e.textContent); + expect(names).toEqual(["Top", "Test grid"]); + const sel = host.querySelector(".manywidgets-geomap__layer select")!; + expect(Array.from(sel.options).map((o) => o.value)).toEqual(["b", "a", "rgb"]); // band_names order + sel.value = "b"; + sel.dispatchEvent(new Event("change")); + expect(changes[0]).toEqual(["h", { active: "b", range: [0, 254] }]); + const cb = host.querySelector(".manywidgets-geomap__layer-head input")!; + cb.checked = false; + cb.dispatchEvent(new Event("change")); + expect(changes[1]).toEqual(["h", { visible: false }]); + h.update(specs, { h: { active: "rgb" } }); + expect(sel.value).toBe("rgb"); + h.dispose(); + expect(host.querySelector(".manywidgets-geomap__panel")).toBeNull(); + }); +}); + +describe("GeoMap render (maplibre mocked)", () => { + it("mounts, injects maplibre css into the root, adds layers on style.load and syncs selection", async () => { + const widget = (await import("../src/index")).default; + const el = mountEl(); + const model = fakeModel({ + basemap: "positron", + height: "300px", + view_state: { longitude: 1, latitude: 2, zoom: 3 }, + fit_bounds: null, + layers: [ + { id: "f", type: "geojson", data: { type: "Feature", properties: { k: 1 }, geometry: { type: "Point", coordinates: [1, 2] } } }, + gridSpec(), + { id: "t", type: "xyz", url: "https://tile.example/{z}/{x}/{y}.png" }, + ], + layer_state: {}, + selected: "", + hovered: "", + controls: true, + zoom_to_selected: true, + }); + const dispose = widget.render({ model, el } as never); + const container = el.querySelector(".manywidgets-geomap")!; + expect(container.style.height).toBe("300px"); + expect(el.getRootNode().querySelector('style[data-manywidgets-css="maplibre-gl"]') || document.head.querySelector('style[data-manywidgets-css="maplibre-gl"]')).toBeTruthy(); + + const map = (container as HTMLElement & { __map: { fire(ev: string): void } }).__map; + map.fire("style.load"); + expect(Array.from(mapCalls.sources.keys())).toEqual(["mw-f", "mw-g", "mw-t"]); + expect(Array.from(mapCalls.layers.keys())).toEqual(["mw-f-fill", "mw-f-line", "mw-f-circle", "mw-g-raster", "mw-t-raster"]); + map.fire("load"); + expect(container.querySelector(".manywidgets-geomap__panel")).toBeTruthy(); + + // A panel change lands in layer_state and is saved (works kernel-free). + const cb = container.querySelector(".manywidgets-geomap__layer-head input")!; + cb.checked = false; + cb.dispatchEvent(new Event("change")); + expect((model.get("layer_state") as Record).t).toEqual({ visible: false }); + expect(model.saved).toBeGreaterThan(0); + + // A feature click sets `selected`. + const click = mapCalls.handlers.get("click:mw-f-circle")![0]; + click({ features: [{ id: "0", properties: { __mw_id: "0" } }] }); + expect(model.get("selected")).toBe("0"); + + expect(() => dispose()).not.toThrow(); + expect(container.querySelector(".manywidgets-geomap__panel")).toBeNull(); // controls disposed + }); +}); diff --git a/src/manywidgets/geo_map/tests/test_geomap.py b/src/manywidgets/geo_map/tests/test_geomap.py new file mode 100644 index 0000000..5075896 --- /dev/null +++ b/src/manywidgets/geo_map/tests/test_geomap.py @@ -0,0 +1,104 @@ +import base64 +import json + +import pytest + +from manywidgets.geo_map import GeoMap, GridLayer, corners_from_bounds, corners_from_coords + +np = pytest.importorskip("numpy") + +SYNC_TRAITS = ("basemap", "height", "view_state", "fit_bounds", "layers", "layer_state", "selected", "hovered", "controls", "zoom_to_selected") + + +def test_defaults_and_sync(): + m = GeoMap() + assert m.basemap == "positron" and m.height == "480px" and m.layers == [] + assert m.fit_bounds is None # not [] — the JS treats only a 4-list as bounds + for name in SYNC_TRAITS + ("widget_id",): + assert m.trait_metadata(name, "sync") is True + assert m.widget_id.startswith("geomap_") + + +def test_state_is_json_only(): + m = GeoMap(basemap="satellite") + m.add_geojson({"type": "Point", "coordinates": [1.0, 2.0]}, id="p") + m.add_xyz("https://t/{z}/{x}/{y}.png", id="x", attribution="a") + m.add_grid(GridLayer.from_arrays({"v": np.arange(6.0).reshape(2, 3)}, [[0, 1], [3, 1], [3, 0], [0, 0]])) + state = {k: getattr(m, k) for k in SYNC_TRAITS} + json.dumps(state) # must not raise + assert [l["id"] for l in m.layers] == ["p", "x", "grid"] + + +def test_add_replaces_same_id_and_remove(): + m = GeoMap() + m.add_geojson({"type": "Point", "coordinates": [0, 0]}, id="a") + m.add_geojson({"type": "Point", "coordinates": [1, 1]}, id="a", fill="#f00", tooltip=["x"]) + assert len(m.layers) == 1 + assert m.layers[0]["style"] == {"fill": "#f00"} and m.layers[0]["tooltip"] == ["x"] + m.remove_layer("a") + assert m.layers == [] + + +def test_geo_interface_and_bounds(): + class Geo: + __geo_interface__ = { + "type": "FeatureCollection", + "features": [ + {"type": "Feature", "properties": {"n": "a"}, "geometry": {"type": "Polygon", "coordinates": [[[0, 0], [2, 0], [2, 3], [0, 0]]]}}, + ], + } + + m = GeoMap() + m.add_geojson(Geo(), id_property="n") + assert m.layers[0]["id_property"] == "n" + assert m.bounds() == [0, 0, 2, 3] + m.add_grid(GridLayer.from_arrays({"v": np.ones((2, 2))}, [[-1, 5], [1, 5], [1, 4], [-1, 4]])) + assert m.bounds() == [-1, 0, 2, 5] + + +def test_grid_quantization_round_trip(): + arr = np.array([[0.0, 5.0], [10.0, np.nan]]) + g = GridLayer.from_arrays({"v": arr}, [[0, 1], [1, 1], [1, 0], [0, 0]], quantize=(0, 10), units="dB", default_ranges={"v": (2, 8)}) + band = g.spec["bands"]["v"] + q = np.frombuffer(base64.b64decode(band["data"]), dtype="uint8").reshape(2, 2) + assert q.tolist() == [[1, 128], [255, 0]] # 0 → 1, 5 → 128, 10 → 255, NaN → 0 + back = q.astype("float64") * band["scale"] + band["offset"] + assert np.allclose(back[q > 0], arr[np.isfinite(arr)], atol=band["scale"]) + assert band["unit"] == "dB" and band["default_range"] == [2.0, 8.0] + assert g.spec["width"] == 2 and g.spec["height"] == 2 and g.spec["active"] == "v" + assert g.nbytes == len(band["data"]) + + +def test_grid_clips_outside_quantize_span_and_validates(): + arr = np.array([[-100.0, 100.0]]) + g = GridLayer.from_arrays({"v": arr}, [[0, 1], [1, 1], [1, 0], [0, 0]], quantize={"v": (0, 1)}) + q = np.frombuffer(base64.b64decode(g.spec["bands"]["v"]["data"]), dtype="uint8") + assert q.tolist() == [1, 255] + with pytest.raises(ValueError): + GridLayer.from_arrays({"a": np.ones((2, 2)), "b": np.ones((3, 3))}, [[0, 0]] * 4) + with pytest.raises(ValueError): + GridLayer.from_arrays({"a": np.ones((2, 2))}, [[0, 0]] * 4, composites={"c": ["a", "zzz", "a"]}) + with pytest.raises(ValueError): + GridLayer.from_arrays({"a": np.ones((2, 2))}, [[0, 0]] * 3) + + +def test_composites_and_numpy_inputs_are_json_safe(): + bands = {"hh": np.random.rand(4, 5).astype("float32"), "hv": np.random.rand(4, 5)} + g = GridLayer.from_arrays(bands, np.array([[0, 1], [1, 1], [1, 0], [0, 0]]), composites={"rgb": ["hh", "hv", "hh"]}, active="rgb") + json.dumps(g.spec) + assert g.spec["composites"] == {"rgb": ["hh", "hv", "hh"]} and g.spec["active"] == "rgb" + assert g.spec["band_names"] == ["hh", "hv"] + + +def test_corners_lonlat_without_crs(): + assert corners_from_bounds(0, 0, 2, 1) == [[0, 1], [2, 1], [2, 0], [0, 0]] + # pixel centers 0.5, 1.5 with 1-unit spacing → outer edges 0..2; y given top-first + assert corners_from_coords([0.5, 1.5], [1.5, 0.5]) == [[0, 2], [2, 2], [2, 0], [0, 0]] + + +def test_corners_with_crs_needs_pyproj(): + pyproj = pytest.importorskip("pyproj") + assert pyproj + c = corners_from_bounds(500000, 4000000, 510000, 4010000, crs=32610) + assert len(c) == 4 and -130 < c[0][0] < -110 and 30 < c[0][1] < 40 + assert c[0][1] > c[3][1] # TL north of BL diff --git a/src/manywidgets/geo_map/widget.py b/src/manywidgets/geo_map/widget.py new file mode 100644 index 0000000..740006d --- /dev/null +++ b/src/manywidgets/geo_map/widget.py @@ -0,0 +1,406 @@ +"""GeoMap — a lightweight MapLibre GL map with GeoJSON, XYZ-tile and "grid" layers. + +Layers are plain JSON specs (see :meth:`GeoMap.add_geojson`, :meth:`GeoMap.add_xyz` +and :class:`GridLayer`), so a map renders identically in a live kernel and on a +static page: every trait is JSON-only (no binary buffers), which also means +JupyterLab's "Save Widget State" captures it completely. + +A *grid* layer is a quantized scalar raster (uint8 per band, 0 = nodata) placed +by its four corner coordinates. Colouring — band/composite choice, stretch, +colormap, opacity — happens in the browser, so readers can explore the data +with no kernel. Build one with :meth:`GridLayer.from_arrays`. + +``selected`` / ``hovered`` carry the id of the current GeoJSON feature and are +two-way, so they can be ``jslink``-ed to a :class:`~manywidgets.Table`. +""" + +from __future__ import annotations + +import base64 +import math + +import traitlets + +from .._base import BaseWidget, asset + +__all__ = ["GeoMap", "GridLayer", "corners_from_bounds", "corners_from_coords"] + + +def _json_safe(value): + """Recursively coerce numpy scalars/arrays, tuples and NaN into JSON values.""" + if hasattr(value, "tolist"): + value = value.tolist() + if isinstance(value, dict): + return {str(k): _json_safe(v) for k, v in value.items()} + if isinstance(value, (list, tuple)): + return [_json_safe(v) for v in value] + if isinstance(value, float) and not math.isfinite(value): + return None + return value + + +def _to_geojson(data) -> dict: + """Accept a GeoJSON dict (FeatureCollection/Feature/Geometry) or anything + with ``__geo_interface__`` (geopandas, shapely).""" + if hasattr(data, "__geo_interface__"): + data = data.__geo_interface__ + if not isinstance(data, dict) or "type" not in data: + raise TypeError("data must be GeoJSON (dict) or expose __geo_interface__") + return _json_safe(data) + + +def _geojson_bounds(gj: dict): + w = s = math.inf + e = n = -math.inf + + def visit(c): + nonlocal w, s, e, n + if not isinstance(c, (list, tuple)) or not c: + return + if isinstance(c[0], (int, float)): + x, y = c[0], c[1] + w, e, s, n = min(w, x), max(e, x), min(s, y), max(n, y) + else: + for cc in c: + visit(cc) + + def geom(g): + if not g: + return + if g["type"] == "GeometryCollection": + for gg in g["geometries"]: + geom(gg) + else: + visit(g.get("coordinates")) + + t = gj["type"] + if t == "FeatureCollection": + for f in gj["features"]: + geom(f.get("geometry")) + elif t == "Feature": + geom(gj.get("geometry")) + else: + geom(gj) + return None if w == math.inf else [w, s, e, n] + + +class GridLayer: + """Builder for a ``grid`` layer spec (a quantized scalar raster). + + Use :meth:`from_arrays`. The resulting :attr:`spec` dict is what goes into + ``GeoMap.layers``; :meth:`GeoMap.add_grid` accepts either. + """ + + def __init__(self, spec: dict): + self.spec = spec + + @classmethod + def from_arrays( + cls, + bands: dict, + corners, + *, + id: str = "grid", + label: str | None = None, + quantize=None, + units=None, + default_ranges=None, + composites: dict | None = None, + active: str | None = None, + colormap: str = "gray", + opacity: float = 1.0, + visible: bool = True, + ) -> "GridLayer": + """Quantize 2-D float arrays to uint8 and build the layer spec. + + Parameters + ---------- + bands + ``{name: 2-D array}`` — all the same shape, row 0 = the top row of + the image (north-most for a north-up window). + corners + Four ``[lon, lat]`` pairs in TL, TR, BR, BL order (the image's + *outer* corners). See :func:`corners_from_bounds` / + :func:`corners_from_coords`. + quantize + ``(lo, hi)`` applied to every band, or ``{name: (lo, hi)}``; values + are clipped to this span then mapped to bytes 1..255 (0 = NaN). The + default is each band's finite min/max. + units + A unit string for all bands or ``{name: unit}``; shown in readouts. + default_ranges + Initial stretch per band, ``{name: (lo, hi)}`` (e.g. 2–98 percentiles). + Defaults to the quantize span. + composites + ``{name: [r_band, g_band, b_band]}`` RGB composites (each channel is + stretched by that band's default range). + active + Band or composite shown first (default: the first band). + """ + import numpy as np + + names = list(bands) + if not names: + raise ValueError("bands must not be empty") + shape = None + out_bands = {} + for name in names: + arr = np.asarray(bands[name], dtype="float64") + if arr.ndim != 2: + raise ValueError(f"band {name!r} must be 2-D, got shape {arr.shape}") + if shape is None: + shape = arr.shape + elif arr.shape != shape: + raise ValueError("all bands must share one shape") + lo, hi = _per_band(quantize, name) or _finite_minmax(arr) + if not (hi > lo): + hi = lo + 1.0 + scale = (hi - lo) / 254.0 + offset = lo - scale # byte q -> lo + (q - 1) * scale + finite = np.isfinite(arr) + q = np.zeros(shape, dtype="uint8") + scaled = np.clip((arr[finite] - lo) / scale, 0, 254) + q[finite] = np.rint(scaled).astype("uint8") + 1 + band = { + "data": base64.b64encode(q.tobytes(order="C")).decode("ascii"), + "scale": float(scale), + "offset": float(offset), + } + unit = _per_band(units, name) + if unit: + band["unit"] = str(unit) + dr = _per_band(default_ranges, name) + band["default_range"] = [float(dr[0]), float(dr[1])] if dr else [float(lo), float(hi)] + out_bands[name] = band + if composites: + for cname, chans in composites.items(): + if len(chans) != 3 or any(c not in out_bands for c in chans): + raise ValueError(f"composite {cname!r} must list 3 band names") + spec = { + "id": id, + "type": "grid", + "label": label or id, + "corners": [[float(c[0]), float(c[1])] for c in corners], + "width": int(shape[1]), + "height": int(shape[0]), + "bands": out_bands, + "band_names": names, + "composites": {k: list(v) for k, v in (composites or {}).items()}, + "active": active or names[0], + "colormap": colormap, + "opacity": float(opacity), + "visible": bool(visible), + } + if len(spec["corners"]) != 4: + raise ValueError("corners must be four [lon, lat] pairs (TL, TR, BR, BL)") + return cls(spec) + + @property + def nbytes(self) -> int: + """Approximate size of the encoded band data (what the page will carry).""" + return sum(len(b["data"]) for b in self.spec["bands"].values()) + + +def _per_band(value, name): + if value is None: + return None + if isinstance(value, dict): + return value.get(name) + return value + + +def _finite_minmax(arr): + import numpy as np + + finite = arr[np.isfinite(arr)] + if finite.size == 0: + return (0.0, 1.0) + return (float(finite.min()), float(finite.max())) + + +def corners_from_bounds(left, bottom, right, top, crs=None): + """Outer corners (TL, TR, BR, BL) in lon/lat from axis-aligned bounds. + + ``crs`` is any pyproj-understood CRS of the bounds (e.g. ``32610`` or + ``"EPSG:32610"``); ``None`` means the bounds are already lon/lat. Requires + ``pyproj`` when ``crs`` is given (``pip install "manywidgets[geo]"``). + """ + pts = [(left, top), (right, top), (right, bottom), (left, bottom)] + if crs is None: + return [[float(x), float(y)] for x, y in pts] + from pyproj import Transformer + + tr = Transformer.from_crs(crs, 4326, always_xy=True) + return [[float(lon), float(lat)] for lon, lat in (tr.transform(x, y) for x, y in pts)] + + +def corners_from_coords(x, y, crs=None, *, centers=True): + """Outer corners from 1-D x/y coordinate arrays of a regular grid. + + With ``centers=True`` (xarray convention) the half-pixel margin is added so + the corners are the image's outer edges. ``y`` may run either direction; + the first y value is taken as the top row (so pass arrays in image order). + """ + import numpy as np + + x = np.asarray(x, dtype="float64") + y = np.asarray(y, dtype="float64") + dx = (x[-1] - x[0]) / max(len(x) - 1, 1) + dy = (y[-1] - y[0]) / max(len(y) - 1, 1) + hx = dx / 2 if centers else 0.0 + hy = dy / 2 if centers else 0.0 + left, right = x[0] - hx, x[-1] + hx + top, bottom = y[0] - hy, y[-1] + hy + return corners_from_bounds(left, bottom, right, top, crs) + + +class GeoMap(BaseWidget): + """A MapLibre GL map with GeoJSON, XYZ-tile and quantized-grid layers.""" + + _esm = asset(__file__, "dist", "widget.js") + _css = asset(__file__, "style.css") + + basemap = traitlets.Unicode( + "positron", + help='"positron" | "dark-matter" | "voyager" | "satellite" | "osm" | "none" | "auto" (follows light/dark) | a style URL.', + ).tag(sync=True) + height = traitlets.Unicode("480px", help="CSS height of the map.").tag(sync=True) + view_state = traitlets.Dict( + {"longitude": 0.0, "latitude": 0.0, "zoom": 1.0}, + help="Camera as {longitude, latitude, zoom}; updated from the map on move.", + ).tag(sync=True) + fit_bounds = traitlets.List( + default_value=None, allow_none=True, help="[west, south, east, north] to fit on load; None = fit all layers." + ).tag(sync=True) + layers = traitlets.List([], help="Layer specs (geojson | xyz | grid), drawn in list order.").tag(sync=True) + layer_state = traitlets.Dict( + {}, + help="Reader-adjustable per-layer state {id: {visible, opacity, active, range, colormap}} written by the panel.", + ).tag(sync=True) + selected = traitlets.Unicode("", help="Id of the selected GeoJSON feature (two-way).").tag(sync=True) + hovered = traitlets.Unicode("", help="Id of the hovered GeoJSON feature (two-way).").tag(sync=True) + controls = traitlets.Bool(True, help="Show the built-in layer panel.").tag(sync=True) + zoom_to_selected = traitlets.Bool(True, help="Fit the map to a feature when `selected` changes.").tag(sync=True) + + def __init__(self, layers=None, *, basemap="positron", height="480px", **kwargs): + kwargs.setdefault("basemap", basemap) + kwargs.setdefault("height", height) + if layers is not None: + kwargs["layers"] = [self._spec(layer) for layer in layers] + super().__init__(**kwargs) + + @staticmethod + def _spec(layer) -> dict: + if isinstance(layer, GridLayer): + return layer.spec + if isinstance(layer, dict) and layer.get("type") in ("geojson", "xyz", "grid"): + return _json_safe(layer) + raise TypeError("layers must be GridLayer instances or geojson/xyz/grid spec dicts") + + def _add(self, spec: dict) -> dict: + self.layers = [l for l in self.layers if l.get("id") != spec["id"]] + [spec] + return spec + + def add_geojson( + self, + data, + *, + id: str = "features", + id_property: str | None = None, + label: str | None = None, + fill: str | None = None, + line: str | None = None, + fill_opacity: float | None = None, + line_width: float | None = None, + selected_fill: str | None = None, + selected_line: str | None = None, + tooltip: list | None = None, + visible: bool = True, + ) -> dict: + """Add a GeoJSON layer (FeatureCollection / Feature / Geometry dict, or a + geopandas GeoDataFrame / shapely geometry via ``__geo_interface__``). + + ``id_property`` names the feature property used as the feature id for + ``selected`` / ``hovered`` (defaults to the feature's own ``id``, else its + index). ``tooltip`` lists the properties shown on hover. + """ + style = { + k: v + for k, v in { + "fill": fill, + "line": line, + "fill_opacity": fill_opacity, + "line_width": line_width, + "selected_fill": selected_fill, + "selected_line": selected_line, + }.items() + if v is not None + } + spec = { + "id": id, + "type": "geojson", + "label": label or id, + "data": _to_geojson(data), + "visible": bool(visible), + } + if id_property: + spec["id_property"] = id_property + if style: + spec["style"] = style + if tooltip: + spec["tooltip"] = list(tooltip) + return self._add(spec) + + def add_xyz( + self, + url: str, + *, + id: str = "tiles", + label: str | None = None, + attribution: str = "", + tile_size: int = 256, + min_zoom: int = 0, + max_zoom: int = 22, + opacity: float = 1.0, + visible: bool = True, + ) -> dict: + """Add an XYZ raster tile layer (``{z}/{x}/{y}`` template, e.g. a TiTiler + tilejson ``tiles[0]`` URL or NASA GIBS). Tiles are fetched by the viewer's + browser, so the URL must be reachable without credentials.""" + return self._add( + { + "id": id, + "type": "xyz", + "label": label or id, + "url": url, + "attribution": attribution, + "tile_size": int(tile_size), + "min_zoom": int(min_zoom), + "max_zoom": int(max_zoom), + "opacity": float(opacity), + "visible": bool(visible), + } + ) + + def add_grid(self, grid) -> dict: + """Add a :class:`GridLayer` (or a ready grid spec dict).""" + return self._add(self._spec(grid)) + + def remove_layer(self, id: str) -> None: + self.layers = [l for l in self.layers if l.get("id") != id] + + def bounds(self): + """[west, south, east, north] covering every geojson/grid layer, or None.""" + out = None + for layer in self.layers: + b = None + if layer["type"] == "geojson": + b = _geojson_bounds(layer["data"]) + elif layer["type"] == "grid": + xs = [c[0] for c in layer["corners"]] + ys = [c[1] for c in layer["corners"]] + b = [min(xs), min(ys), max(xs), max(ys)] + if b is None: + continue + out = b if out is None else [min(out[0], b[0]), min(out[1], b[1]), max(out[2], b[2]), max(out[3], b[3])] + return out diff --git a/src/manywidgets/skill/references/widgets-api.md b/src/manywidgets/skill/references/widgets-api.md index cc71487..169c92b 100644 --- a/src/manywidgets/skill/references/widgets-api.md +++ b/src/manywidgets/skill/references/widgets-api.md @@ -12,6 +12,7 @@ Display a widget by leaving it as the last expression in a notebook cell. - **Layout containers:** `Row`, `Column`, `Grid`, `GridItem`, `Fullscreen` - **Linking:** `Binder` - **Lonboard interop:** `LayerToggle`, `LayerFilter`, `FilterBinder`, `MapFlyer`, `MapCompare` +- **Other:** `GeoMap`, `Table` ## Charts & displays diff --git a/src/manywidgets/table/__init__.py b/src/manywidgets/table/__init__.py new file mode 100644 index 0000000..312f5d7 --- /dev/null +++ b/src/manywidgets/table/__init__.py @@ -0,0 +1,3 @@ +from .widget import Table + +__all__ = ["Table"] diff --git a/src/manywidgets/table/doc.md b/src/manywidgets/table/doc.md new file mode 100644 index 0000000..8bdde2a --- /dev/null +++ b/src/manywidgets/table/doc.md @@ -0,0 +1,63 @@ +# Table + +A sortable table of records with a single selectable row. Click a header to +sort, click a row to select it; `selected` is a plain string trait, so it links +to a map or chart with `jslink`. + +## Import + +```python +from manywidgets import Table +``` + +## Example + +```{code-cell} python +from manywidgets import Table + +granules = [ + {"id": "G-001", "start": "2025-10-29T11:11:30Z", "track": 4, "pol": "DHDH", "size": 5_300_000_000}, + {"id": "G-002", "start": "2025-10-29T11:11:53Z", "track": 4, "pol": "DHDH", "size": 4_900_000_000}, + {"id": "G-003", "start": "2025-10-31T02:40:12Z", "track": 18, "pol": "SHNA", "size": 2_100_000_000}, + {"id": "G-004", "start": "2025-11-02T14:05:00Z", "track": 18, "pol": "DHDH", "size": 5_150_000_000}, + {"id": "G-005", "start": "2025-11-03T09:22:48Z", "track": 31, "pol": "DHDH", "size": 980_000_000}, +] + +Table( + granules, + columns=[ + {"key": "id", "label": "Granule"}, + {"key": "start", "label": "Start (UTC)", "format": "datetime"}, + {"key": "track", "label": "Track", "format": "number"}, + {"key": "pol", "label": "Pol."}, + {"key": "size", "label": "Size", "format": "bytes"}, + ], + id_key="id", + selected="G-002", + title="Granules", +) +``` + +## API + +{api-table} + +Rows are plain dicts; `Table.from_records(records, columns, id_key)` and +`Table.from_dataframe(df, id_key)` build one from an iterable of dicts or a +pandas DataFrame (values are coerced to JSON, so the state survives static +export). When `columns` is empty they are derived from the first row; when +`id_key` is empty the row index is the id. Formats: `text` (default), `number` +(`toLocaleString`, optional `digits`), `bytes` (`5.3 GB`), `datetime` (ISO +input → `2025-10-29 11:11:30`, UTC). + +## Linking the selection + +`selected` is two-way: a row click writes it, and writing it from outside +highlights and scrolls to the row. Link it to another widget's trait with +`jslink` so the two stay in sync without a kernel: + +```python +from ipywidgets import jslink + +jslink((table, "selected"), (geo_map, "selected")) +``` diff --git a/src/manywidgets/table/src/index.ts b/src/manywidgets/table/src/index.ts new file mode 100644 index 0000000..b45dfdd --- /dev/null +++ b/src/manywidgets/table/src/index.ts @@ -0,0 +1,272 @@ +import type { RenderProps } from "@anywidget/types"; +import { applyThemeVars, onChanges, safeSaveChanges } from "@manywidgets/core"; + +type Row = Record; + +interface Column { + key: string; + label?: string; + format?: "text" | "number" | "bytes" | "datetime"; + align?: "left" | "right"; + digits?: number; +} + +interface TableModel { + rows: Row[]; + columns: Column[]; + id_key: string; + selected: string; + hovered: string; + max_height: string; + sortable: boolean; + title: string; + empty_text: string; +} + +const BYTE_UNITS = ["B", "KB", "MB", "GB", "TB", "PB"]; + +export function formatBytes(value: number): string { + if (!Number.isFinite(value)) return ""; + let v = Math.abs(value); + let i = 0; + while (v >= 1000 && i < BYTE_UNITS.length - 1) { + v /= 1000; + i += 1; + } + const digits = i === 0 ? 0 : v < 10 ? 1 : 0; + return `${value < 0 ? "-" : ""}${v.toFixed(digits)} ${BYTE_UNITS[i]}`; +} + +const pad2 = (n: number) => String(n).padStart(2, "0"); + +export function formatDatetime(value: unknown): string { + if (value === null || value === undefined || value === "") return ""; + const d = new Date(value as string); + if (Number.isNaN(d.getTime())) return String(value); + return ( + `${d.getUTCFullYear()}-${pad2(d.getUTCMonth() + 1)}-${pad2(d.getUTCDate())} ` + + `${pad2(d.getUTCHours())}:${pad2(d.getUTCMinutes())}:${pad2(d.getUTCSeconds())}` + ); +} + +export function formatCell(value: unknown, col: Column): string { + if (value === null || value === undefined) return ""; + switch (col.format) { + case "bytes": + return formatBytes(Number(value)); + case "number": { + const n = Number(value); + if (!Number.isFinite(n)) return String(value); + const opts = + col.digits === undefined + ? undefined + : { minimumFractionDigits: col.digits, maximumFractionDigits: col.digits }; + return n.toLocaleString(undefined, opts); + } + case "datetime": + return formatDatetime(value); + default: + return String(value); + } +} + +const isNull = (v: unknown) => v === null || v === undefined || v === ""; + +/** Sort comparator for two non-null values: numbers numerically, else strings case-insensitively. */ +function compare(a: unknown, b: unknown): number { + const an = typeof a === "number" ? a : Number(a); + const bn = typeof b === "number" ? b : Number(b); + if (Number.isFinite(an) && Number.isFinite(bn)) return an - bn; + return String(a).localeCompare(String(b), undefined, { sensitivity: "base" }); +} + +function render({ model, el }: RenderProps): () => void { + const disposeTheme = applyThemeVars(el, model); + + const container = document.createElement("div"); + container.className = "manywidgets-table"; + + const titleEl = document.createElement("div"); + titleEl.className = "manywidgets-table__title"; + + const scroller = document.createElement("div"); + scroller.className = "manywidgets-table__scroll"; + + const table = document.createElement("table"); + table.className = "manywidgets-table__table"; + const thead = document.createElement("thead"); + const tbody = document.createElement("tbody"); + table.appendChild(thead); + table.appendChild(tbody); + + const emptyEl = document.createElement("div"); + emptyEl.className = "manywidgets-table__empty"; + + scroller.appendChild(table); + container.appendChild(titleEl); + container.appendChild(scroller); + container.appendChild(emptyEl); + el.appendChild(container); + + // Sort state survives rebuilds (rows/columns changes). + let sortKey: string | null = null; + let sortDir: 1 | -1 = 1; + let columns: Column[] = []; + let rowEls = new Map(); + + function rowId(row: Row, index: number): string { + const key = model.get("id_key"); + return key ? String(row[key]) : String(index); + } + + function resolveColumns(rows: Row[]): Column[] { + const given = model.get("columns") || []; + if (given.length > 0) return given.filter((c) => c && c.key); + const first = rows[0]; + return first ? Object.keys(first).map((key) => ({ key })) : []; + } + + function orderedRows(rows: Row[]): Array<[Row, number]> { + const indexed: Array<[Row, number]> = rows.map((r, i) => [r, i]); + if (!sortKey) return indexed; + const key = sortKey; + // Nulls sort last in both directions; only real values flip with sortDir. + return indexed.sort((a, b) => { + const av = a[0][key]; + const bv = b[0][key]; + if (isNull(av) || isNull(bv)) return Number(isNull(av)) - Number(isNull(bv)); + return compare(av, bv) * sortDir; + }); + } + + function buildHead(): void { + thead.replaceChildren(); + const tr = document.createElement("tr"); + const sortable = model.get("sortable"); + for (const col of columns) { + const th = document.createElement("th"); + th.className = "manywidgets-table__th"; + if (col.align === "right" || (col.align === undefined && col.format && col.format !== "text" && col.format !== "datetime")) { + th.classList.add("is-right"); + } + th.textContent = col.label ?? col.key; + if (sortable) { + th.classList.add("is-sortable"); + if (sortKey === col.key) { + th.classList.add(sortDir === 1 ? "is-sorted-asc" : "is-sorted-desc"); + const ind = document.createElement("span"); + ind.className = "manywidgets-table__sort"; + ind.textContent = sortDir === 1 ? "▲" : "▼"; + th.appendChild(ind); + } + th.addEventListener("click", () => { + if (sortKey === col.key) { + sortDir = sortDir === 1 ? -1 : 1; + } else { + sortKey = col.key; + sortDir = 1; + } + rebuild(); + }); + } + tr.appendChild(th); + } + thead.appendChild(tr); + } + + function buildBody(rows: Row[]): void { + tbody.replaceChildren(); + rowEls = new Map(); + for (const [row, index] of orderedRows(rows)) { + const id = rowId(row, index); + const tr = document.createElement("tr"); + tr.className = "manywidgets-table__row"; + tr.dataset.id = id; + for (const col of columns) { + const td = document.createElement("td"); + td.className = "manywidgets-table__td"; + if (col.align === "right" || (col.align === undefined && col.format && col.format !== "text" && col.format !== "datetime")) { + td.classList.add("is-right"); + } + td.textContent = formatCell(row[col.key], col); + tr.appendChild(td); + } + tr.addEventListener("click", () => { + if (model.get("selected") === id) return; + model.set("selected", id); + safeSaveChanges(model); + }); + tr.addEventListener("mouseenter", () => { + if (model.get("hovered") === id) return; + model.set("hovered", id); + safeSaveChanges(model); + }); + tbody.appendChild(tr); + rowEls.set(id, tr); + } + syncSelected(false); + syncHovered(); + } + + function rebuild(): void { + const rows = model.get("rows") || []; + columns = resolveColumns(rows); + buildHead(); + buildBody(rows); + const empty = rows.length === 0; + emptyEl.textContent = model.get("empty_text") || ""; + emptyEl.style.display = empty ? "" : "none"; + scroller.style.display = empty ? "none" : ""; + } + + function syncSelected(scroll = true): void { + const selected = model.get("selected") || ""; + for (const [id, tr] of rowEls) { + const on = id === selected; + tr.classList.toggle("is-selected", on); + if (on && scroll && typeof tr.scrollIntoView === "function") { + tr.scrollIntoView({ block: "nearest" }); + } + } + } + + function syncHovered(): void { + const hovered = model.get("hovered") || ""; + for (const [id, tr] of rowEls) tr.classList.toggle("is-hovered", id === hovered); + } + + function syncTitle(): void { + const title = model.get("title") || ""; + titleEl.textContent = title; + titleEl.style.display = title ? "" : "none"; + } + + function syncHeight(): void { + scroller.style.maxHeight = model.get("max_height") || ""; + } + + tbody.addEventListener("mouseleave", () => { + if (!model.get("hovered")) return; + model.set("hovered", ""); + safeSaveChanges(model); + }); + + syncTitle(); + syncHeight(); + rebuild(); + + const offs = [ + onChanges(model, ["rows", "columns", "id_key", "sortable", "empty_text"], rebuild), + onChanges(model, ["selected"], () => syncSelected(true)), + onChanges(model, ["hovered"], syncHovered), + onChanges(model, ["title"], syncTitle), + onChanges(model, ["max_height"], syncHeight), + ]; + + return () => { + for (const off of offs) off(); + disposeTheme(); + }; +} + +export default { render }; diff --git a/src/manywidgets/table/style.css b/src/manywidgets/table/style.css new file mode 100644 index 0000000..8f6844b --- /dev/null +++ b/src/manywidgets/table/style.css @@ -0,0 +1,93 @@ +.manywidgets-table { + border: 1px solid var(--mw-color-border); + border-radius: var(--mw-control-radius); + background: var(--mw-color-surface); + margin: 10px 0; + font-family: var(--mw-font-family); + color: var(--mw-color-text); + box-sizing: border-box; + overflow: hidden; +} + +.manywidgets-table__title { + padding: var(--mw-control-padding-y) var(--mw-control-padding-x); + color: var(--mw-color-text-muted); + font-size: var(--mw-font-size-sm); + font-weight: var(--mw-font-weight-strong); + text-transform: uppercase; + letter-spacing: 0.04em; + border-bottom: 1px solid var(--mw-color-border); +} + +.manywidgets-table__scroll { + overflow: auto; +} + +.manywidgets-table__table { + width: 100%; + border-collapse: collapse; + font-size: var(--mw-font-size-md); +} + +.manywidgets-table__th { + position: sticky; + top: 0; + z-index: 1; + background: var(--mw-color-surface-elevated, var(--mw-color-surface)); + color: var(--mw-color-text-muted); + font-size: var(--mw-font-size-sm); + font-weight: var(--mw-font-weight-strong); + text-align: left; + padding: 6px 10px; + border-bottom: 1px solid var(--mw-color-border-strong); + white-space: nowrap; + user-select: none; +} + +.manywidgets-table__th.is-sortable { + cursor: pointer; +} + +.manywidgets-table__th.is-sortable:hover { + color: var(--mw-color-text); +} + +.manywidgets-table__sort { + margin-left: 4px; + font-size: 0.7em; +} + +.manywidgets-table__td { + padding: 5px 10px; + border-bottom: 1px solid var(--mw-color-border); + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + max-width: 28em; +} + +.manywidgets-table__th.is-right, +.manywidgets-table__td.is-right { + text-align: right; + font-variant-numeric: tabular-nums; +} + +.manywidgets-table__row { + cursor: pointer; +} + +.manywidgets-table__row.is-hovered, +.manywidgets-table__row:hover { + background: var(--mw-color-accent-soft); +} + +.manywidgets-table__row.is-selected { + background: var(--mw-color-accent-surface); + box-shadow: inset 3px 0 0 var(--mw-color-accent); +} + +.manywidgets-table__empty { + padding: var(--mw-control-padding-y) var(--mw-control-padding-x); + color: var(--mw-color-text-muted); + font-size: var(--mw-font-size-md); +} diff --git a/src/manywidgets/table/tests/table.test.ts b/src/manywidgets/table/tests/table.test.ts new file mode 100644 index 0000000..84a7fb7 --- /dev/null +++ b/src/manywidgets/table/tests/table.test.ts @@ -0,0 +1,160 @@ +import { describe, expect, it } from "vitest"; +import { fakeModel, mountEl } from "@manywidgets/test-utils"; +import widget, { formatBytes, formatCell, formatDatetime } from "../src/index"; + +const rows = [ + { id: "a", name: "Alpha", size: 1500, when: "2025-10-29T11:11:30Z" }, + { id: "b", name: "beta", size: 2_400_000_000, when: "2025-01-02T00:00:00Z" }, + { id: "c", name: "Gamma", size: null, when: null }, +]; + +function base(state: Record = {}) { + return fakeModel({ + rows, + columns: [], + id_key: "id", + selected: "", + hovered: "", + max_height: "200px", + sortable: true, + title: "", + empty_text: "No rows", + ...state, + }); +} + +const cells = (el: HTMLElement) => + Array.from(el.querySelectorAll(".manywidgets-table__row")).map((tr) => + Array.from(tr.querySelectorAll("td")).map((td) => td.textContent), + ); + +describe("Table", () => { + it("renders rows with explicit columns and formats", () => { + const el = mountEl(); + const model = base({ + columns: [ + { key: "name", label: "Name" }, + { key: "size", format: "bytes" }, + { key: "when", format: "datetime" }, + ], + title: "Things", + }); + widget.render({ model, el } as never); + + const ths = Array.from(el.querySelectorAll(".manywidgets-table__th")).map((t) => t.textContent); + expect(ths).toEqual(["Name", "size", "when"]); + expect(cells(el)[0]).toEqual(["Alpha", "1.5 KB", "2025-10-29 11:11:30"]); + expect(cells(el)[1]).toEqual(["beta", "2.4 GB", "2025-01-02 00:00:00"]); + expect(cells(el)[2]).toEqual(["Gamma", "", ""]); + expect(el.querySelector(".manywidgets-table__title")!.textContent).toBe("Things"); + expect(el.querySelector(".manywidgets-table__scroll")!.style.maxHeight).toBe("200px"); + }); + + it("derives columns from the first row when none are given", () => { + const el = mountEl(); + widget.render({ model: base(), el } as never); + const ths = Array.from(el.querySelectorAll(".manywidgets-table__th")).map((t) => t.textContent); + expect(ths).toEqual(["id", "name", "size", "when"]); + }); + + it("sorts by clicking a header (numeric-aware, nulls last) and toggles direction", () => { + const el = mountEl(); + // Sort by a numeric column but read back the (unformatted) name column, so + // the assertion does not depend on the test runner's number locale. + widget.render({ model: base({ columns: [{ key: "size", format: "number" }, { key: "name" }] }), el } as never); + const th = el.querySelector(".manywidgets-table__th")!; + th.click(); + expect(cells(el).map((r) => r[1])).toEqual(["Alpha", "beta", "Gamma"]); + expect(el.querySelector(".manywidgets-table__th")!.classList.contains("is-sorted-asc")).toBe(true); + el.querySelector(".manywidgets-table__th")!.click(); + expect(cells(el).map((r) => r[1])).toEqual(["beta", "Alpha", "Gamma"]); + expect(el.querySelector(".manywidgets-table__th")!.classList.contains("is-sorted-desc")).toBe(true); + }); + + it("does not sort when sortable is false", () => { + const el = mountEl(); + widget.render({ model: base({ sortable: false, columns: [{ key: "name" }] }), el } as never); + el.querySelector(".manywidgets-table__th")!.click(); + expect(cells(el).map((r) => r[0])).toEqual(["Alpha", "beta", "Gamma"]); + }); + + it("row click writes selected and saves; clicking again keeps it", () => { + const el = mountEl(); + const model = base(); + widget.render({ model, el } as never); + const row = el.querySelectorAll(".manywidgets-table__row")[1]; + row.click(); + expect(model.get("selected")).toBe("b"); + expect(model.saved).toBe(1); + expect(row.classList.contains("is-selected")).toBe(true); + row.click(); + expect(model.get("selected")).toBe("b"); + expect(model.saved).toBe(1); + }); + + it("highlights the row when selected changes from outside", () => { + const el = mountEl(); + const model = base(); + widget.render({ model, el } as never); + model.set("selected", "c"); + const sel = Array.from(el.querySelectorAll(".manywidgets-table__row")).filter((r) => + r.classList.contains("is-selected"), + ); + expect(sel.length).toBe(1); + expect((sel[0] as HTMLElement).dataset.id).toBe("c"); + }); + + it("uses the row index as id when id_key is empty", () => { + const el = mountEl(); + const model = base({ id_key: "" }); + widget.render({ model, el } as never); + el.querySelectorAll(".manywidgets-table__row")[2].click(); + expect(model.get("selected")).toBe("2"); + }); + + it("tracks hovered on mouseenter / mouseleave", () => { + const el = mountEl(); + const model = base(); + widget.render({ model, el } as never); + const row = el.querySelectorAll(".manywidgets-table__row")[0]; + row.dispatchEvent(new Event("mouseenter")); + expect(model.get("hovered")).toBe("a"); + expect(row.classList.contains("is-hovered")).toBe(true); + el.querySelector("tbody")!.dispatchEvent(new Event("mouseleave")); + expect(model.get("hovered")).toBe(""); + }); + + it("rebuilds on rows change and shows empty_text for no rows", () => { + const el = mountEl(); + const model = base(); + widget.render({ model, el } as never); + model.set("rows", []); + expect(el.querySelector(".manywidgets-table__empty")!.style.display).toBe(""); + expect(el.querySelector(".manywidgets-table__empty")!.textContent).toBe("No rows"); + model.set("rows", [{ id: "z", name: "Zed" }]); + expect(el.querySelectorAll(".manywidgets-table__row").length).toBe(1); + expect(el.querySelector(".manywidgets-table__empty")!.style.display).toBe("none"); + }); +}); + +describe("Table formatters", () => { + it("formats bytes", () => { + expect(formatBytes(0)).toBe("0 B"); + expect(formatBytes(999)).toBe("999 B"); + expect(formatBytes(1200)).toBe("1.2 KB"); + expect(formatBytes(5_300_000_000)).toBe("5.3 GB"); + expect(formatBytes(123_456_789_000)).toBe("123 GB"); + }); + + it("formats datetimes in UTC and passes through junk", () => { + expect(formatDatetime("2025-10-29T11:11:30.123Z")).toBe("2025-10-29 11:11:30"); + expect(formatDatetime("not a date")).toBe("not a date"); + expect(formatDatetime(null)).toBe(""); + }); + + it("formats numbers with digits", () => { + expect(formatCell(3.14159, { key: "x", format: "number", digits: 2 })).toBe((3.14).toLocaleString(undefined, { minimumFractionDigits: 2, maximumFractionDigits: 2 })); + expect(formatCell("n/a", { key: "x", format: "number" })).toBe("n/a"); + expect(formatCell(undefined, { key: "x" })).toBe(""); + }); +}); diff --git a/src/manywidgets/table/tests/test_table.py b/src/manywidgets/table/tests/test_table.py new file mode 100644 index 0000000..fb71eec --- /dev/null +++ b/src/manywidgets/table/tests/test_table.py @@ -0,0 +1,80 @@ +import json +import math +from datetime import datetime, timezone + +import pytest + +from manywidgets.table import Table +from manywidgets.table.widget import _json_safe + +TRAITS = ( + "rows", + "columns", + "id_key", + "selected", + "hovered", + "max_height", + "sortable", + "title", + "empty_text", +) + + +def test_defaults_and_sync(): + t = Table() + assert t.rows == [] and t.columns == [] and t.id_key == "" and t.selected == "" + assert t.max_height == "320px" and t.sortable is True and t.empty_text == "No rows" + for name in TRAITS + ("widget_id",): + assert t.trait_metadata(name, "sync") is True + + +def test_rows_columns_and_selected(): + t = Table( + [{"id": "a", "n": 1}, {"id": "b", "n": 2}], + ["id", {"key": "n", "format": "number"}], + id_key="id", + selected="b", + ) + assert t.rows == [{"id": "a", "n": 1}, {"id": "b", "n": 2}] + assert t.columns == [{"key": "id"}, {"key": "n", "format": "number"}] + assert t.id_key == "id" and t.selected == "b" + + +def test_from_records(): + t = Table.from_records(({"id": i, "v": i * 2} for i in range(3)), id_key="id") + assert len(t.rows) == 3 and t.rows[2] == {"id": 2, "v": 4} + assert t.id_key == "id" + + +def test_json_safe_coercions(): + np = pytest.importorskip("numpy") + dt = datetime(2025, 10, 29, 11, 11, 30, tzinfo=timezone.utc) + t = Table([{"f": np.float32(1.5), "i": np.int64(3), "nan": float("nan"), "dt": dt, "arr": np.arange(2)}]) + row = t.rows[0] + assert row["f"] == 1.5 and type(row["f"]) is float + assert row["i"] == 3 and type(row["i"]) is int + assert row["nan"] is None + assert row["dt"] == "2025-10-29T11:11:30+00:00" + assert row["arr"] == [0, 1] + assert _json_safe(math.inf) is None + json.dumps({k: getattr(t, k) for k in TRAITS}) + + +def test_from_dataframe_uses_index_as_id(): + pd = pytest.importorskip("pandas") + df = pd.DataFrame( + {"size": [1.0, float("nan")], "when": pd.to_datetime(["2025-01-01", "2025-01-02"])}, + index=pd.Index(["g1", "g2"], name="granule"), + ) + t = Table.from_dataframe(df) + assert t.id_key == "id" + assert t.rows[0]["id"] == "g1" and t.rows[1]["size"] is None + assert t.rows[0]["when"].startswith("2025-01-01") + json.dumps({k: getattr(t, k) for k in TRAITS}) + + t2 = Table.from_dataframe(df.reset_index(), id_key="granule") + assert t2.id_key == "granule" and t2.rows[0]["granule"] == "g1" + + +def test_auto_widget_id_prefix(): + assert Table().widget_id.startswith("table_") diff --git a/src/manywidgets/table/widget.py b/src/manywidgets/table/widget.py new file mode 100644 index 0000000..89ee7e4 --- /dev/null +++ b/src/manywidgets/table/widget.py @@ -0,0 +1,125 @@ +"""Table — a sortable, selectable table of records. + +A read-mostly display for lists of dicts (search results, granules, rows of a +DataFrame). Clicking a row writes its id to ``selected``; link that trait to a +map or chart with ``jslink`` so the two stay in sync, live or static. Every +trait is plain JSON so the widget state round-trips through both nbconvert and +JupyterLab's "Save Widget State". +""" + +from __future__ import annotations + +import math + +import traitlets + +from .._base import BaseWidget, asset + + +def _json_safe(value): + """Coerce numpy/pandas scalars, timestamps and NaN into JSON-safe values.""" + if value is None or isinstance(value, (bool, int, str)): + return value + if isinstance(value, float): + return None if math.isnan(value) or math.isinf(value) else value + if isinstance(value, dict): + return {str(k): _json_safe(v) for k, v in value.items()} + if isinstance(value, (list, tuple, set)): + return [_json_safe(v) for v in value] + if hasattr(value, "isoformat"): # datetime / date / pandas Timestamp + try: + return value.isoformat() + except (TypeError, ValueError): # NaT + return None + if getattr(value, "ndim", 0) > 0 and hasattr(value, "tolist"): # numpy array + return _json_safe(value.tolist()) + if hasattr(value, "item"): # numpy scalar + return _json_safe(value.item()) + return str(value) + + +def _norm_rows(rows): + return [{str(k): _json_safe(v) for k, v in dict(row).items()} for row in rows] + + +def _norm_columns(columns): + out = [] + for col in columns or []: + if isinstance(col, str): + out.append({"key": col}) + else: + out.append({str(k): _json_safe(v) for k, v in dict(col).items()}) + return out + + +class Table(BaseWidget): + """A sortable table with a single selectable row.""" + + _esm = asset(__file__, "dist", "widget.js") + _css = asset(__file__, "style.css") + + rows = traitlets.List( + traitlets.Dict(), + [], + help="Records to display, one dict per row (JSON-safe values).", + ).tag(sync=True) + columns = traitlets.List( + traitlets.Dict(), + [], + help=( + "Column specs: {key, label?, format?: text|number|bytes|datetime, " + "align?: left|right, digits?}. Empty: derived from the first row." + ), + ).tag(sync=True) + id_key = traitlets.Unicode( + "", help="Row key used as the row id. Empty: the row index." + ).tag(sync=True) + selected = traitlets.Unicode( + "", help="Id of the selected row (two-way; set by row click)." + ).tag(sync=True) + hovered = traitlets.Unicode( + "", help="Id of the row under the pointer, or empty." + ).tag(sync=True) + max_height = traitlets.Unicode( + "320px", help="CSS max-height of the scrolling body." + ).tag(sync=True) + sortable = traitlets.Bool(True, help="Allow sorting by clicking a header.").tag(sync=True) + title = traitlets.Unicode("", help="Optional table title.").tag(sync=True) + empty_text = traitlets.Unicode("No rows", help="Shown when there are no rows.").tag( + sync=True + ) + + def __init__(self, rows=None, columns=None, *, id_key="", selected="", **kwargs): + if rows is not None: + kwargs.setdefault("rows", _norm_rows(rows)) + if columns is not None: + kwargs.setdefault("columns", _norm_columns(columns)) + if id_key: + kwargs.setdefault("id_key", id_key) + if selected: + kwargs.setdefault("selected", str(selected)) + super().__init__(**kwargs) + + @classmethod + def from_records(cls, records, columns=None, id_key="", **kwargs): + """Build a table from an iterable of dicts.""" + return cls(list(records), columns, id_key=id_key, **kwargs) + + @classmethod + def from_dataframe(cls, df, id_key=None, columns=None, **kwargs): + """Build a table from a pandas DataFrame. + + With ``id_key=None`` the index becomes an ``id`` column used as the row + id; otherwise ``id_key`` names an existing column. + """ + import pandas as pd # noqa: F401 — optional dependency, imported lazily + + frame = df + if id_key is None: + frame = df.reset_index() + index_col = frame.columns[0] + if index_col != "id": + frame = frame.rename(columns={index_col: "id"}) + id_key = "id" + records = frame.to_dict("records") + return cls(records, columns, id_key=id_key, **kwargs)