@expofp/floorplan 3.34.1 → 3.35.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/{Button-BXoX7gHH.js → Button-DfC_vCEY.js} +5 -5
- package/dist/browser/{CookieConsent-B0Oo9kBc.js → CookieConsent-zsJlyuvm.js} +7 -7
- package/dist/browser/{Debug-Ci8scQLL.js → Debug-DlxKJH4h.js} +7 -7
- package/dist/browser/{DebugTools-j9-peX4I.js → DebugTools-DlmzS_VG.js} +45 -42
- package/dist/browser/{Demo-DD8lvF7Z.js → Demo-Dvn0OVoH.js} +9 -9
- package/dist/browser/{Free-BC2dZH3U.js → Free-BlSArgWI.js} +9 -9
- package/dist/browser/{GalleryContainer-uHY_oD37.js → GalleryContainer-hIf9VfU3.js} +10 -10
- package/dist/browser/{GpsLoader-BV-t9Zhw.js → GpsLoader-BCwThbCM.js} +33 -33
- package/dist/browser/{KioskStore-BFRl_9Tu.js → KioskStore-CsXOhSMP.js} +9 -9
- package/dist/browser/{MaplibreAdapter-CxfsNB3d.js → MaplibreAdapter-DWcvE2Ec.js} +921 -917
- package/dist/browser/{ModalContainer-lgZ3p9Wt.js → ModalContainer-DxeKREfc.js} +10 -10
- package/dist/browser/{PermissionNotice-Dpx8F1X_.js → PermissionNotice-BxEbDltF.js} +6 -6
- package/dist/browser/{SetKioskMode-CnBqyg6u.js → SetKioskMode-D3UABJpZ.js} +10 -10
- package/dist/browser/{ShowKiosk-SUK4FPID.js → ShowKiosk-6mFmNpFm.js} +29 -29
- package/dist/browser/{ViewerMenuPanel-C3GOFuuF.js → ViewerMenuPanel-BO_-7Y_i.js} +18 -18
- package/dist/browser/{add-debug-secret-listener-B3ytSUKG.js → add-debug-secret-listener-veloxngO.js} +1 -1
- package/dist/browser/{adopt-global-settings-Dg7PfpwQ.js → adopt-global-settings-d5uyY5A6.js} +9 -9
- package/dist/browser/{boolean-editor-60x2s2cD.js → boolean-editor-gFxeiKz4.js} +9 -9
- package/dist/browser/{bootIntercom-CP8_uooS.js → bootIntercom-C3QDF5oB.js} +2 -2
- package/dist/browser/bundle.json +69 -69
- package/dist/browser/{camera-events-DN0rAOay.js → camera-events-C6Dmf2wR.js} +1 -1
- package/dist/browser/{classnames-Rv7CGeQc.js → classnames-BS1IM9A-.js} +2 -2
- package/dist/browser/{client-CeXtqSi0.js → client-ezZAHjfj.js} +5 -5
- package/dist/browser/{components-yKSBPUVE.js → components-PA3hCLCa.js} +1814 -1818
- package/dist/browser/{debug-context-D2yhyzV5.js → debug-context-DiTR6Py6.js} +7 -7
- package/dist/browser/{debug-overlay-D33H0Asq.js → debug-overlay-DD5gUmO6.js} +10 -10
- package/dist/browser/{debug-ui-Dg4ty2ft.js → debug-ui-CWBuocQN.js} +6 -6
- package/dist/browser/{dimming-CnrPXrbS.js → dimming-Ds9fAjfB.js} +311 -311
- package/dist/browser/{dist-Cht6zsHr.js → dist-CQxqEb-6.js} +6 -6
- package/dist/browser/{dist-CbsoHzXy.js → dist-D-q_r1-V.js} +5 -5
- package/dist/browser/{dist-DPIySxET.js → dist-DBuzYqpa.js} +3 -3
- package/dist/browser/{efp-debug-init-B1Jdu0aR.js → efp-debug-init-Co9uXMuX.js} +3 -3
- package/dist/browser/{enum-editor-FXnBB5tB.js → enum-editor-LWVu-JIK.js} +4 -4
- package/dist/browser/{es5-DAdylDRo.js → es5-DGb5TwpZ.js} +2 -2
- package/dist/browser/{event-not-found-aDLfx4yr.js → event-not-found-zFibfbER.js} +1 -1
- package/dist/browser/{exports-rXrZzOsb.js → exports-B-6KjI9h.js} +1 -1
- package/dist/browser/{favicon-DOeZ3jUq.js → favicon-CWCPCNM-.js} +1 -1
- package/dist/browser/{fetch-retry.umd-BKnymyM4.js → fetch-retry.umd-kGON8ji6.js} +2 -2
- package/dist/browser/{flex-DxFTtCgE.js → flex-DqcWgHRa.js} +5 -5
- package/dist/browser/{floorplan.loader-DElAJins.js → floorplan.loader-BRvRi40U.js} +10 -10
- package/dist/browser/{floorplan.ready-UhOqD1tv.js → floorplan.ready-B9-MIw8B.js} +181 -181
- package/dist/browser/{fuse-CJ7gqOT4.js → fuse-BXW5RuhW.js} +2 -2
- package/dist/browser/{i18n-BlOjJNd_.js → i18n-D80X6LMz.js} +9 -7
- package/dist/browser/index.js +14 -14
- package/dist/browser/{index.module-Dcom9fhx.js → index.module-DNr0maw3.js} +4 -4
- package/dist/browser/{integrateKiosk-DsUSoOfW.js → integrateKiosk-BL84U1ZL.js} +4 -4
- package/dist/browser/{is-webview-TAmTjUCs.js → is-webview-CA6ivKK_.js} +1 -1
- package/dist/browser/{jsx-runtime-CDd5kSFh.js → jsx-runtime-BT50TP7_.js} +2 -2
- package/dist/browser/{kiosk-record-zMuE-Rb4.js → kiosk-record-QoK8Mq08.js} +1 -1
- package/dist/browser/{lib-5fBCHBXo.js → lib-Dn401ByH.js} +3 -3
- package/dist/browser/{loadImage-LelO76SH.js → loadImage-BaHKwI_N.js} +4 -4
- package/dist/browser/{logDeviceInfo-CgO0CoJD.js → logDeviceInfo-Btc7mU_S.js} +9 -9
- package/dist/browser/{mobx-R5-ZJi7a.js → mobx-c2h1ijB_.js} +4 -4
- package/dist/browser/{optional-boolean-editor-BP1lJrpP.js → optional-boolean-editor-DkXbwHPW.js} +3 -3
- package/dist/browser/{optional-enum-editor-BfcUGUII.js → optional-enum-editor-D6J8s67w.js} +4 -4
- package/dist/browser/{optional-string-editor-DF6pZ-oE.js → optional-string-editor-DvlDx9cr.js} +4 -4
- package/dist/browser/{particles.min-DZqXGQRY.js → particles.min-BlF_1zig.js} +2 -2
- package/dist/browser/{react-Ip13m5sp.js → react-CTNuj5uG.js} +2 -2
- package/dist/browser/{react-dom-Ds2Ul4iF.js → react-dom-Dd-QC57h.js} +3 -3
- package/dist/browser/{rolldown-runtime-ZbujXurt.js → rolldown-runtime-BkVgj4VA.js} +1 -1
- package/dist/browser/{scheduler-DAwkCOYn.js → scheduler-BGogpU6B.js} +2 -2
- package/dist/browser/{select-D_iLwN3g.js → select-CNUhWDWs.js} +10 -10
- package/dist/browser/{settings-B7ptvUVq.js → settings-DNaOj9LN.js} +2 -2
- package/dist/browser/{settings-item-C4IxYqPQ.js → settings-item-Bb1ifzkN.js} +6 -6
- package/dist/browser/{store-rtRwBx18.js → store-CpViG4ds.js} +6356 -5726
- package/dist/browser/{string-editor-CggghgyI.js → string-editor-BwfOcpmc.js} +4 -4
- package/dist/browser/{text-field-JwPIZ7II.js → text-field-BS3w11vk.js} +5 -5
- package/dist/browser/{theme-DoaejPSE.js → theme-jH8ml6K6.js} +8 -8
- package/dist/browser/{ui-DTo23cpi.js → ui-Bbl-WJZx.js} +8 -8
- package/dist/browser/{useRenderTarget-CK3wugqb.js → useRenderTarget-BX8tGScr.js} +4 -4
- package/dist/browser/{viewport-DVDTED_v.js → viewport-COvScbd2.js} +3 -3
- package/dist/esm/components/Kiosk/ShowKiosk.d.ts +1 -2
- package/dist/esm/components/Kiosk/ShowKiosk.js +1 -1
- package/dist/esm/components/Kiosk/kiosk-mode.d.ts +26 -0
- package/dist/esm/components/Kiosk/kiosk-mode.js +1 -1
- package/dist/esm/components/Map/Map.js +1 -1
- package/dist/esm/components/Map/MapCamera.js +1 -1
- package/dist/esm/components/Map/drawing/config/config-booth-bg.d.ts +17 -3
- package/dist/esm/components/Map/drawing/config/config-booth-bg.js +1 -1
- package/dist/esm/components/Maplibre/MaplibreAdapter.d.ts +2 -2
- package/dist/esm/components/Maplibre/MaplibreAdapter.js +1 -1
- package/dist/esm/components/Maplibre/MaplibreWrapper.d.ts +17 -7
- package/dist/esm/components/Maplibre/MaplibreWrapper.js +1 -1
- package/dist/esm/components/Maplibre/utils/map-helpers.d.ts +14 -3
- package/dist/esm/components/Maplibre/utils/map-helpers.js +1 -1
- package/dist/esm/store/MaplibreStore.js +1 -1
- package/dist/esm/store/UIState.d.ts +49 -3
- package/dist/esm/store/UIState.js +1 -1
- package/dist/esm/store/init/init-ui.js +1 -1
- package/dist/esm/store/types.d.ts +12 -0
- package/dist/esm/utils/camera-map-settings.js +1 -1
- package/package.json +10 -10
|
@@ -2,23 +2,23 @@ function __vite_inject_css__(css, id, forceLightDom){ if (typeof document==='un
|
|
|
2
2
|
(function() {
|
|
3
3
|
try {
|
|
4
4
|
var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
5
|
-
e.SENTRY_RELEASE = { id: "3.
|
|
5
|
+
e.SENTRY_RELEASE = { id: "3.35.0" };
|
|
6
6
|
var t = new e.Error().stack;
|
|
7
|
-
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "
|
|
7
|
+
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "38fffbd9-f098-4a85-9b6b-7c0fc0e6c31e", e._sentryDebugIdIdentifier = "sentry-dbid-38fffbd9-f098-4a85-9b6b-7c0fc0e6c31e");
|
|
8
8
|
} catch {}
|
|
9
9
|
})();
|
|
10
|
-
import { r as e, t } from "./rolldown-runtime-
|
|
11
|
-
import { X as n, Z as r, v as i, y as a } from "./i18n-
|
|
12
|
-
import { t as o } from "./react-
|
|
13
|
-
import { t as s } from "./jsx-runtime-
|
|
14
|
-
import { n as c } from "./loadImage-
|
|
15
|
-
import {
|
|
16
|
-
import { t as
|
|
17
|
-
import { i as
|
|
18
|
-
import { t as
|
|
19
|
-
import { a as
|
|
10
|
+
import { r as e, t } from "./rolldown-runtime-BkVgj4VA.js";
|
|
11
|
+
import { X as n, Z as r, v as i, y as a } from "./i18n-D80X6LMz.js";
|
|
12
|
+
import { t as o } from "./react-CTNuj5uG.js";
|
|
13
|
+
import { t as s } from "./jsx-runtime-BT50TP7_.js";
|
|
14
|
+
import { n as c } from "./loadImage-BaHKwI_N.js";
|
|
15
|
+
import { Cn as l, D as u, Dt as d, En as f, Et as p, F as m, Mt as h, N as g, Nt as _, Pt as v, Sn as y, V as b, Wt as x, bn as S, c as C, d as w, f as T, gn as E, jt as D, l as O, p as k, tn as A, u as j, v as M, vn as N, vt as ee, yn as P, yt as te, zt as F } from "./store-CpViG4ds.js";
|
|
16
|
+
import { t as ne } from "./index.module-DNr0maw3.js";
|
|
17
|
+
import { i as re } from "./mobx-c2h1ijB_.js";
|
|
18
|
+
import { t as ie } from "./viewport-COvScbd2.js";
|
|
19
|
+
import { a as ae, c as oe, i as se, l as ce, n as le, o as ue, r as de, s as fe, t as pe } from "./dimming-Ds9fAjfB.js";
|
|
20
20
|
//#region ../../node_modules/.pnpm/maplibre-gl@5.24.0/node_modules/maplibre-gl/dist/maplibre-gl.css
|
|
21
|
-
var
|
|
21
|
+
var I = /* @__PURE__ */ e(o(), 1), me = /* @__PURE__ */ e(l(), 1), he = (/* @__PURE__ */ t(((e, t) => {
|
|
22
22
|
(function(n, r) {
|
|
23
23
|
typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self, n.maplibregl = r());
|
|
24
24
|
})(e, (function() {
|
|
@@ -327,48 +327,48 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
327
327
|
let i = new o(e, t, n, r);
|
|
328
328
|
return (e) => i.solve(e);
|
|
329
329
|
}
|
|
330
|
-
let
|
|
331
|
-
function
|
|
330
|
+
let P = ee(.25, .1, .25, 1);
|
|
331
|
+
function te(e, t, n) {
|
|
332
332
|
return Math.min(n, Math.max(t, e));
|
|
333
333
|
}
|
|
334
|
-
function
|
|
334
|
+
function F(e, t, n) {
|
|
335
335
|
let r = n - t, i = ((e - t) % r + r) % r + t;
|
|
336
336
|
return i === t ? n : i;
|
|
337
337
|
}
|
|
338
|
-
function
|
|
338
|
+
function ne(e, ...t) {
|
|
339
339
|
for (let n of t) for (let t in n) e[t] = n[t];
|
|
340
340
|
return e;
|
|
341
341
|
}
|
|
342
|
-
let
|
|
343
|
-
function
|
|
342
|
+
let re = 1;
|
|
343
|
+
function ie(e, t, n) {
|
|
344
344
|
let r = {};
|
|
345
345
|
for (let n in e) r[n] = t.call(this, e[n], n, e);
|
|
346
346
|
return r;
|
|
347
347
|
}
|
|
348
|
-
function
|
|
348
|
+
function ae(e, t, n) {
|
|
349
349
|
let r = {};
|
|
350
350
|
for (let n in e) t.call(this, e[n], n, e) && (r[n] = e[n]);
|
|
351
351
|
return r;
|
|
352
352
|
}
|
|
353
|
-
function
|
|
354
|
-
return Array.isArray(e) ? e.map(
|
|
353
|
+
function oe(e) {
|
|
354
|
+
return Array.isArray(e) ? e.map(oe) : typeof e == "object" && e ? ie(e, oe) : e;
|
|
355
355
|
}
|
|
356
|
-
let
|
|
357
|
-
function
|
|
358
|
-
|
|
356
|
+
let se = {};
|
|
357
|
+
function ce(e) {
|
|
358
|
+
se[e] || (typeof console < "u" && console.warn(e), se[e] = !0);
|
|
359
359
|
}
|
|
360
|
-
function
|
|
360
|
+
function le(e, t, n) {
|
|
361
361
|
return (n.y - e.y) * (t.x - e.x) > (t.y - e.y) * (n.x - e.x);
|
|
362
362
|
}
|
|
363
|
-
function
|
|
363
|
+
function ue(e) {
|
|
364
364
|
return typeof WorkerGlobalScope < "u" && e !== void 0 && e instanceof WorkerGlobalScope;
|
|
365
365
|
}
|
|
366
|
-
let
|
|
367
|
-
function
|
|
366
|
+
let de = null;
|
|
367
|
+
function fe(e) {
|
|
368
368
|
return typeof ImageBitmap < "u" && e instanceof ImageBitmap;
|
|
369
369
|
}
|
|
370
|
-
let
|
|
371
|
-
function
|
|
370
|
+
let pe = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";
|
|
371
|
+
function I(e, n, r, i, a) {
|
|
372
372
|
return t(this, void 0, void 0, (function* () {
|
|
373
373
|
if (typeof VideoFrame > "u") throw Error("VideoFrame not supported");
|
|
374
374
|
let t = new VideoFrame(e, { timestamp: 0 });
|
|
@@ -400,25 +400,25 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
400
400
|
}
|
|
401
401
|
}));
|
|
402
402
|
}
|
|
403
|
-
let
|
|
404
|
-
function
|
|
403
|
+
let me, he;
|
|
404
|
+
function ge(e, t, n, r) {
|
|
405
405
|
return e.addEventListener(t, n, r), { unsubscribe: () => {
|
|
406
406
|
e.removeEventListener(t, n, r);
|
|
407
407
|
} };
|
|
408
408
|
}
|
|
409
|
-
function
|
|
409
|
+
function _e(e) {
|
|
410
410
|
return e * Math.PI / 180;
|
|
411
411
|
}
|
|
412
|
-
function
|
|
412
|
+
function ve(e) {
|
|
413
413
|
return e / Math.PI * 180;
|
|
414
414
|
}
|
|
415
|
-
let
|
|
415
|
+
let ye = {
|
|
416
416
|
touchstart: !0,
|
|
417
417
|
touchmove: !0,
|
|
418
418
|
touchmoveWindow: !0,
|
|
419
419
|
touchend: !0,
|
|
420
420
|
touchcancel: !0
|
|
421
|
-
},
|
|
421
|
+
}, be = {
|
|
422
422
|
dblclick: !0,
|
|
423
423
|
click: !0,
|
|
424
424
|
mouseover: !0,
|
|
@@ -430,55 +430,55 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
430
430
|
mouseupWindow: !0,
|
|
431
431
|
contextmenu: !0,
|
|
432
432
|
wheel: !0
|
|
433
|
-
},
|
|
434
|
-
class
|
|
435
|
-
constructor(e =
|
|
436
|
-
super(e instanceof Error ? e.message : e), this.name =
|
|
433
|
+
}, xe = "AbortError";
|
|
434
|
+
class Se extends Error {
|
|
435
|
+
constructor(e = xe) {
|
|
436
|
+
super(e instanceof Error ? e.message : e), this.name = xe, e instanceof Error && e.stack && (this.stack = e.stack);
|
|
437
437
|
}
|
|
438
438
|
}
|
|
439
|
-
function
|
|
440
|
-
return e instanceof Error && e.name ===
|
|
439
|
+
function Ce(e) {
|
|
440
|
+
return e instanceof Error && e.name === xe;
|
|
441
441
|
}
|
|
442
|
-
function
|
|
443
|
-
if (e.aborted) throw new
|
|
442
|
+
function we(e) {
|
|
443
|
+
if (e.aborted) throw new Se(e.reason);
|
|
444
444
|
}
|
|
445
|
-
let
|
|
445
|
+
let Te = {
|
|
446
446
|
MAX_PARALLEL_IMAGE_REQUESTS: 16,
|
|
447
447
|
MAX_PARALLEL_IMAGE_REQUESTS_PER_FRAME: 8,
|
|
448
448
|
MAX_TILE_CACHE_ZOOM_LEVELS: 5,
|
|
449
449
|
REGISTERED_PROTOCOLS: {},
|
|
450
450
|
WORKER_URL: ""
|
|
451
451
|
};
|
|
452
|
-
function
|
|
453
|
-
return
|
|
452
|
+
function Ee(e) {
|
|
453
|
+
return Te.REGISTERED_PROTOCOLS[e.substring(0, e.indexOf("://"))];
|
|
454
454
|
}
|
|
455
|
-
let
|
|
456
|
-
class
|
|
455
|
+
let De = "global-dispatcher";
|
|
456
|
+
class Oe extends Error {
|
|
457
457
|
constructor(e, t, n, r) {
|
|
458
458
|
super(`AJAXError: ${t} (${e}): ${n}`), this.status = e, this.statusText = t, this.url = n, this.body = r;
|
|
459
459
|
}
|
|
460
460
|
}
|
|
461
|
-
let
|
|
461
|
+
let ke = () => {
|
|
462
462
|
var e;
|
|
463
|
-
return
|
|
464
|
-
},
|
|
463
|
+
return ue(self) ? (e = self.worker) == null ? void 0 : e.referrer : (window.location.protocol === "blob:" ? window.parent : window).location.href;
|
|
464
|
+
}, Ae = function(e, n) {
|
|
465
465
|
return t(this, void 0, void 0, (function* () {
|
|
466
466
|
var r, i;
|
|
467
467
|
if (e.url.includes("://") && !/^https?:|^file:/.test(e.url)) {
|
|
468
|
-
let t =
|
|
468
|
+
let t = Ee(e.url);
|
|
469
469
|
if (t) {
|
|
470
470
|
let r = yield t(e, n);
|
|
471
|
-
return r.data || e.type !== "arrayBuffer" ? r :
|
|
471
|
+
return r.data || e.type !== "arrayBuffer" ? r : ne(r, { data: /* @__PURE__ */ new ArrayBuffer(0) });
|
|
472
472
|
}
|
|
473
|
-
if (
|
|
473
|
+
if (ue(self) && (r = self.worker) != null && r.actor) return self.worker.actor.sendAsync({
|
|
474
474
|
type: "GR",
|
|
475
475
|
data: e,
|
|
476
|
-
targetMapId:
|
|
476
|
+
targetMapId: De
|
|
477
477
|
}, n);
|
|
478
478
|
}
|
|
479
479
|
if (!((e) => {
|
|
480
480
|
var t;
|
|
481
|
-
return e.startsWith("file:") || ((t =
|
|
481
|
+
return e.startsWith("file:") || ((t = ke()) == null ? void 0 : t.startsWith("file:")) && !/^\w+:/.test(e);
|
|
482
482
|
})(e.url)) {
|
|
483
483
|
if (fetch && Request && AbortController && Object.hasOwn(Request.prototype, "signal")) return function(e, n) {
|
|
484
484
|
return t(this, void 0, void 0, (function* () {
|
|
@@ -488,7 +488,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
488
488
|
credentials: e.credentials,
|
|
489
489
|
headers: e.headers,
|
|
490
490
|
cache: e.cache,
|
|
491
|
-
referrer:
|
|
491
|
+
referrer: ke(),
|
|
492
492
|
referrerPolicy: e.referrerPolicy,
|
|
493
493
|
signal: n.signal
|
|
494
494
|
}), r, i;
|
|
@@ -496,15 +496,15 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
496
496
|
try {
|
|
497
497
|
r = yield fetch(t);
|
|
498
498
|
} catch (t) {
|
|
499
|
-
throw
|
|
499
|
+
throw Ce(t) ? t : new Oe(0, A(t).message, e.url, new Blob());
|
|
500
500
|
}
|
|
501
501
|
if (!r.ok) {
|
|
502
502
|
let t = yield r.blob();
|
|
503
|
-
throw new
|
|
503
|
+
throw new Oe(r.status, r.statusText, e.url, t);
|
|
504
504
|
}
|
|
505
505
|
i = e.type === "arrayBuffer" || e.type === "image" ? r.arrayBuffer() : e.type === "json" ? r.json() : r.text();
|
|
506
506
|
let a = yield i;
|
|
507
|
-
return
|
|
507
|
+
return we(n.signal), {
|
|
508
508
|
data: a,
|
|
509
509
|
cacheControl: r.headers.get("Cache-Control"),
|
|
510
510
|
expires: r.headers.get("Expires"),
|
|
@@ -512,11 +512,11 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
512
512
|
};
|
|
513
513
|
}));
|
|
514
514
|
}(e, n);
|
|
515
|
-
if (
|
|
515
|
+
if (ue(self) && (i = self.worker) != null && i.actor) return self.worker.actor.sendAsync({
|
|
516
516
|
type: "GR",
|
|
517
517
|
data: e,
|
|
518
518
|
mustQueue: !0,
|
|
519
|
-
targetMapId:
|
|
519
|
+
targetMapId: De
|
|
520
520
|
}, n);
|
|
521
521
|
}
|
|
522
522
|
return function(e, t) {
|
|
@@ -544,65 +544,65 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
544
544
|
});
|
|
545
545
|
} else {
|
|
546
546
|
let t = new Blob([a.response], { type: a.getResponseHeader("Content-Type") });
|
|
547
|
-
r(new
|
|
547
|
+
r(new Oe(a.status, a.statusText, e.url, t));
|
|
548
548
|
}
|
|
549
549
|
}, t.signal.addEventListener("abort", (() => {
|
|
550
|
-
a.abort(), r(new
|
|
550
|
+
a.abort(), r(new Se(t.signal.reason));
|
|
551
551
|
})), a.send(e.body);
|
|
552
552
|
}));
|
|
553
553
|
}(e, n);
|
|
554
554
|
}));
|
|
555
555
|
};
|
|
556
|
-
function
|
|
556
|
+
function je(e) {
|
|
557
557
|
if (!e || e.indexOf("://") <= 0 || e.startsWith("data:image/") || e.startsWith("blob:")) return !0;
|
|
558
558
|
let t = new URL(e), n = window.location;
|
|
559
559
|
return t.protocol === n.protocol && t.host === n.host;
|
|
560
560
|
}
|
|
561
|
-
function
|
|
561
|
+
function Me(e, t, n) {
|
|
562
562
|
var r;
|
|
563
563
|
(r = n[e]) != null && r.includes(t) || (n[e] || (n[e] = []), n[e].push(t));
|
|
564
564
|
}
|
|
565
|
-
function
|
|
565
|
+
function Ne(e, t, n) {
|
|
566
566
|
if (n != null && n[e]) {
|
|
567
567
|
let r = n[e].indexOf(t);
|
|
568
568
|
r !== -1 && n[e].splice(r, 1);
|
|
569
569
|
}
|
|
570
570
|
}
|
|
571
|
-
class
|
|
571
|
+
class Pe {
|
|
572
572
|
constructor(e, t = {}) {
|
|
573
|
-
|
|
573
|
+
ne(this, t), this.type = e;
|
|
574
574
|
}
|
|
575
575
|
}
|
|
576
|
-
class
|
|
576
|
+
class Fe extends Pe {
|
|
577
577
|
constructor(e, t = {}) {
|
|
578
|
-
super("error",
|
|
578
|
+
super("error", ne({ error: e }, t));
|
|
579
579
|
}
|
|
580
580
|
}
|
|
581
|
-
class
|
|
581
|
+
class Ie {
|
|
582
582
|
on(e, t) {
|
|
583
|
-
return this._listeners || (this._listeners = {}),
|
|
583
|
+
return this._listeners || (this._listeners = {}), Me(e, t, this._listeners), { unsubscribe: () => {
|
|
584
584
|
this.off(e, t);
|
|
585
585
|
} };
|
|
586
586
|
}
|
|
587
587
|
off(e, t) {
|
|
588
|
-
return
|
|
588
|
+
return Ne(e, t, this._listeners), Ne(e, t, this._oneTimeListeners), this;
|
|
589
589
|
}
|
|
590
590
|
once(e, t) {
|
|
591
|
-
return t ? (this._oneTimeListeners || (this._oneTimeListeners = {}),
|
|
591
|
+
return t ? (this._oneTimeListeners || (this._oneTimeListeners = {}), Me(e, t, this._oneTimeListeners), this) : new Promise(((t) => this.once(e, t)));
|
|
592
592
|
}
|
|
593
593
|
fire(e, t) {
|
|
594
594
|
var n, r;
|
|
595
|
-
typeof e == "string" && (e = new
|
|
595
|
+
typeof e == "string" && (e = new Pe(e, t || {}));
|
|
596
596
|
let i = e.type;
|
|
597
597
|
if (this.listens(i)) {
|
|
598
598
|
e.target = this;
|
|
599
599
|
let t = (n = this._listeners) != null && n[i] ? this._listeners[i].slice() : [];
|
|
600
600
|
for (let n of t) n.call(this, e);
|
|
601
601
|
let a = (r = this._oneTimeListeners) != null && r[i] ? this._oneTimeListeners[i].slice() : [];
|
|
602
|
-
for (let t of a)
|
|
602
|
+
for (let t of a) Ne(i, t, this._oneTimeListeners), t.call(this, e);
|
|
603
603
|
let o = this._eventedParent;
|
|
604
|
-
o && (
|
|
605
|
-
} else e instanceof
|
|
604
|
+
o && (ne(e, typeof this._eventedParentData == "function" ? this._eventedParentData() : this._eventedParentData), o.fire(e));
|
|
605
|
+
} else e instanceof Fe && console.error(e.error);
|
|
606
606
|
return this;
|
|
607
607
|
}
|
|
608
608
|
listens(e) {
|
|
@@ -613,7 +613,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
613
613
|
return this._eventedParent = e, this._eventedParentData = t, this;
|
|
614
614
|
}
|
|
615
615
|
}
|
|
616
|
-
var
|
|
616
|
+
var R = {
|
|
617
617
|
$version: 8,
|
|
618
618
|
$root: {
|
|
619
619
|
version: {
|
|
@@ -3224,7 +3224,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
3224
3224
|
}
|
|
3225
3225
|
}
|
|
3226
3226
|
};
|
|
3227
|
-
let
|
|
3227
|
+
let Le = [
|
|
3228
3228
|
"type",
|
|
3229
3229
|
"source",
|
|
3230
3230
|
"source-layer",
|
|
@@ -3233,22 +3233,22 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
3233
3233
|
"filter",
|
|
3234
3234
|
"layout"
|
|
3235
3235
|
];
|
|
3236
|
-
function
|
|
3236
|
+
function Re(e, t) {
|
|
3237
3237
|
let n = {};
|
|
3238
3238
|
for (let t in e) t !== "ref" && (n[t] = e[t]);
|
|
3239
|
-
return
|
|
3239
|
+
return Le.forEach(((e) => {
|
|
3240
3240
|
e in t && (n[e] = t[e]);
|
|
3241
3241
|
})), n;
|
|
3242
3242
|
}
|
|
3243
|
-
function
|
|
3243
|
+
function ze(e, t) {
|
|
3244
3244
|
if (Array.isArray(e)) {
|
|
3245
3245
|
if (!Array.isArray(t) || e.length !== t.length) return !1;
|
|
3246
|
-
for (let n = 0; n < e.length; n++) if (!
|
|
3246
|
+
for (let n = 0; n < e.length; n++) if (!ze(e[n], t[n])) return !1;
|
|
3247
3247
|
return !0;
|
|
3248
3248
|
}
|
|
3249
3249
|
if (typeof e == "object" && e && t !== null) {
|
|
3250
3250
|
if (typeof t != "object" || Object.keys(e).length !== Object.keys(t).length) return !1;
|
|
3251
|
-
for (let n in e) if (!
|
|
3251
|
+
for (let n in e) if (!ze(e[n], t[n])) return !1;
|
|
3252
3252
|
return !0;
|
|
3253
3253
|
}
|
|
3254
3254
|
return e === t;
|
|
@@ -3273,13 +3273,13 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
3273
3273
|
}
|
|
3274
3274
|
function We(e, t, n) {
|
|
3275
3275
|
let r;
|
|
3276
|
-
for (r in e[n]) if (Object.prototype.hasOwnProperty.call(e[n], r) && r !== "data" && !
|
|
3277
|
-
for (r in t[n]) if (Object.prototype.hasOwnProperty.call(t[n], r) && r !== "data" && !
|
|
3276
|
+
for (r in e[n]) if (Object.prototype.hasOwnProperty.call(e[n], r) && r !== "data" && !ze(e[n][r], t[n][r])) return !1;
|
|
3277
|
+
for (r in t[n]) if (Object.prototype.hasOwnProperty.call(t[n], r) && r !== "data" && !ze(e[n][r], t[n][r])) return !1;
|
|
3278
3278
|
return !0;
|
|
3279
3279
|
}
|
|
3280
3280
|
function Ge(e, t, n, r, i, a) {
|
|
3281
3281
|
e = e || {}, t = t || {};
|
|
3282
|
-
for (let o in e) Object.prototype.hasOwnProperty.call(e, o) && (
|
|
3282
|
+
for (let o in e) Object.prototype.hasOwnProperty.call(e, o) && (ze(e[o], t[o]) || n.push({
|
|
3283
3283
|
command: a,
|
|
3284
3284
|
args: [
|
|
3285
3285
|
r,
|
|
@@ -3288,7 +3288,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
3288
3288
|
i
|
|
3289
3289
|
]
|
|
3290
3290
|
}));
|
|
3291
|
-
for (let o in t) Object.prototype.hasOwnProperty.call(t, o) && !Object.prototype.hasOwnProperty.call(e, o) && (
|
|
3291
|
+
for (let o in t) Object.prototype.hasOwnProperty.call(t, o) && !Object.prototype.hasOwnProperty.call(e, o) && (ze(e[o], t[o]) || n.push({
|
|
3292
3292
|
command: a,
|
|
3293
3293
|
args: [
|
|
3294
3294
|
r,
|
|
@@ -7157,7 +7157,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
7157
7157
|
}
|
|
7158
7158
|
function Ei(e) {
|
|
7159
7159
|
let t = "";
|
|
7160
|
-
for (let n of
|
|
7160
|
+
for (let n of Le) t += `/${Ti(e[n])}`;
|
|
7161
7161
|
return t;
|
|
7162
7162
|
}
|
|
7163
7163
|
function Di(e) {
|
|
@@ -7868,7 +7868,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
7868
7868
|
let t = e.value, n = e.key, r = Ui(e);
|
|
7869
7869
|
return r.length || (t.indexOf("{fontstack}") === -1 && r.push(new z(n, t, "\"glyphs\" url must include a \"{fontstack}\" token")), t.indexOf("{range}") === -1 && r.push(new z(n, t, "\"glyphs\" url must include a \"{range}\" token"))), r;
|
|
7870
7870
|
}
|
|
7871
|
-
function ta(e, t =
|
|
7871
|
+
function ta(e, t = R) {
|
|
7872
7872
|
let n = [];
|
|
7873
7873
|
return n = n.concat($i({
|
|
7874
7874
|
key: "",
|
|
@@ -7932,10 +7932,10 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
7932
7932
|
return this._globalStateRefs;
|
|
7933
7933
|
}
|
|
7934
7934
|
}
|
|
7935
|
-
let sa =
|
|
7935
|
+
let sa = R, ca = ta, la = ca.light, ua = ca.sky, da = ca.paintProperty, fa = ca.layoutProperty;
|
|
7936
7936
|
function pa(e, t) {
|
|
7937
7937
|
let n = !1;
|
|
7938
|
-
if (t != null && t.length) for (let r of t) e.fire(new
|
|
7938
|
+
if (t != null && t.length) for (let r of t) e.fire(new Fe(Error(r.message))), n = !0;
|
|
7939
7939
|
return n;
|
|
7940
7940
|
}
|
|
7941
7941
|
class ma {
|
|
@@ -8033,7 +8033,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
8033
8033
|
shallow: n.shallow || []
|
|
8034
8034
|
};
|
|
8035
8035
|
}
|
|
8036
|
-
X("Object", Object), X("Set", Set), X("TransferableGridIndex", ma), X("Color", W), X("Error", Error), X("AJAXError",
|
|
8036
|
+
X("Object", Object), X("Set", Set), X("TransferableGridIndex", ma), X("Color", W), X("Error", Error), X("AJAXError", Oe), X("ResolvedImage", qt), X("StylePropertyFunction", di), X("StyleExpression", ai, { omit: ["_evaluator"] }), X("ZoomDependentExpression", li), X("ZoomConstantExpression", ci), X("CompoundExpression", Lr, { omit: ["_evaluate"] });
|
|
8037
8037
|
for (let e in Ir) Ir[e]._classRegistryKey || X(`Expression_${e}`, Ir[e]);
|
|
8038
8038
|
function ga(e) {
|
|
8039
8039
|
var t;
|
|
@@ -8047,10 +8047,10 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
8047
8047
|
if (typeof e != "object" || !e) return !1;
|
|
8048
8048
|
let t = _a(e);
|
|
8049
8049
|
return t && t !== "Object";
|
|
8050
|
-
}(e) && (e == null || typeof e == "boolean" || typeof e == "number" || typeof e == "string" || e instanceof Boolean || e instanceof Number || e instanceof String || e instanceof Date || e instanceof RegExp || e instanceof Blob || e instanceof Error || ga(e) ||
|
|
8050
|
+
}(e) && (e == null || typeof e == "boolean" || typeof e == "number" || typeof e == "string" || e instanceof Boolean || e instanceof Number || e instanceof String || e instanceof Date || e instanceof RegExp || e instanceof Blob || e instanceof Error || ga(e) || fe(e) || ArrayBuffer.isView(e) || e instanceof ImageData);
|
|
8051
8051
|
}
|
|
8052
8052
|
function ya(e, t) {
|
|
8053
|
-
if (va(e)) return (ga(e) ||
|
|
8053
|
+
if (va(e)) return (ga(e) || fe(e)) && t && t.push(e), ArrayBuffer.isView(e) && t && t.push(e.buffer), e instanceof ImageData && t && t.push(e.data.buffer), e;
|
|
8054
8054
|
if (Array.isArray(e)) {
|
|
8055
8055
|
let n = [];
|
|
8056
8056
|
for (let r of e) n.push(ya(r, t));
|
|
@@ -8260,7 +8260,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
8260
8260
|
this.property = e, this.value = new za(e, void 0, t);
|
|
8261
8261
|
}
|
|
8262
8262
|
transitioned(e, t) {
|
|
8263
|
-
return new Ha(this.property, this.value, t,
|
|
8263
|
+
return new Ha(this.property, this.value, t, ne({}, e.transition, this.transition), e.now);
|
|
8264
8264
|
}
|
|
8265
8265
|
untransitioned() {
|
|
8266
8266
|
return new Ha(this.property, this.value, null, {}, 0);
|
|
@@ -8274,16 +8274,16 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
8274
8274
|
return e in this._properties.defaultTransitionablePropertyValues;
|
|
8275
8275
|
}
|
|
8276
8276
|
getValue(e) {
|
|
8277
|
-
return
|
|
8277
|
+
return oe(this._values[e].value.value);
|
|
8278
8278
|
}
|
|
8279
8279
|
setValue(e, t) {
|
|
8280
|
-
Object.hasOwn(this._values, e) || (this._values[e] = new Ba(this._values[e].property, this._globalState)), this._values[e].value = new za(this._values[e].property, t === null ? void 0 :
|
|
8280
|
+
Object.hasOwn(this._values, e) || (this._values[e] = new Ba(this._values[e].property, this._globalState)), this._values[e].value = new za(this._values[e].property, t === null ? void 0 : oe(t), this._globalState);
|
|
8281
8281
|
}
|
|
8282
8282
|
getTransition(e) {
|
|
8283
|
-
return
|
|
8283
|
+
return oe(this._values[e].transition);
|
|
8284
8284
|
}
|
|
8285
8285
|
setTransition(e, t) {
|
|
8286
|
-
Object.hasOwn(this._values, e) || (this._values[e] = new Ba(this._values[e].property, this._globalState)), this._values[e].transition =
|
|
8286
|
+
Object.hasOwn(this._values, e) || (this._values[e] = new Ba(this._values[e].property, this._globalState)), this._values[e].transition = oe(t) || void 0;
|
|
8287
8287
|
}
|
|
8288
8288
|
serialize() {
|
|
8289
8289
|
let e = {};
|
|
@@ -8348,10 +8348,10 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
8348
8348
|
return e in this._properties.defaultPropertyValues;
|
|
8349
8349
|
}
|
|
8350
8350
|
getValue(e) {
|
|
8351
|
-
return
|
|
8351
|
+
return oe(this._values[e].value);
|
|
8352
8352
|
}
|
|
8353
8353
|
setValue(e, t) {
|
|
8354
|
-
this._values[e] = new za(this._values[e].property, t === null ? void 0 :
|
|
8354
|
+
this._values[e] = new za(this._values[e].property, t === null ? void 0 : oe(t), this._globalState);
|
|
8355
8355
|
}
|
|
8356
8356
|
serialize() {
|
|
8357
8357
|
let e = {};
|
|
@@ -8524,7 +8524,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
8524
8524
|
}
|
|
8525
8525
|
X("DataDrivenProperty", Q), X("DataConstantProperty", Z), X("CrossFadedDataDrivenProperty", qa), X("CrossFadedProperty", Ja), X("ColorRampProperty", Ya);
|
|
8526
8526
|
let Za = " is a PAINT property not a LAYOUT property. Use get/setPaintProperty instead?", Qa = " is a LAYOUT property not a PAINT property. Use get/setLayoutProperty instead?";
|
|
8527
|
-
class $a extends
|
|
8527
|
+
class $a extends Ie {
|
|
8528
8528
|
constructor(e, t, n) {
|
|
8529
8529
|
if (super(), this.id = e.id, this.type = e.type, this._globalState = n, this._featureFilter = {
|
|
8530
8530
|
filter: () => !0,
|
|
@@ -8583,7 +8583,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
8583
8583
|
setLayoutProperty(e, t, n = {}) {
|
|
8584
8584
|
var r;
|
|
8585
8585
|
if (e === "visibility") return this.visibility = t, this._visibilityExpression.setValue(t), void this.recalculateVisibility();
|
|
8586
|
-
(r = this._transitionablePaint) != null && r.hasProperty(e) ? this.fire(new
|
|
8586
|
+
(r = this._transitionablePaint) != null && r.hasProperty(e) ? this.fire(new Fe(/* @__PURE__ */ Error(e + Za))) : t != null && this._validate(fa, `layers.${this.id}.layout.${e}`, e, t, n) || this._unevaluatedLayout.setValue(e, t);
|
|
8587
8587
|
}
|
|
8588
8588
|
getPaintProperty(e) {
|
|
8589
8589
|
var t, n;
|
|
@@ -8597,7 +8597,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
8597
8597
|
}
|
|
8598
8598
|
setPaintProperty(e, t, n = {}) {
|
|
8599
8599
|
var r;
|
|
8600
|
-
if (e === "visibility" || (r = this._unevaluatedLayout) != null && r.hasProperty(e)) return this.fire(new
|
|
8600
|
+
if (e === "visibility" || (r = this._unevaluatedLayout) != null && r.hasProperty(e)) return this.fire(new Fe(/* @__PURE__ */ Error(e + Qa))), !1;
|
|
8601
8601
|
if (t != null && this._validate(da, `layers.${this.id}.paint.${e}`, e, t, n)) return !1;
|
|
8602
8602
|
if (e.endsWith(Ra)) return this._transitionablePaint.setTransition(e.slice(0, -11), t || void 0), !1;
|
|
8603
8603
|
{
|
|
@@ -8640,7 +8640,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
8640
8640
|
layout: (e = this._unevaluatedLayout) == null ? void 0 : e.serialize(),
|
|
8641
8641
|
paint: (t = this._transitionablePaint) == null ? void 0 : t.serialize()
|
|
8642
8642
|
};
|
|
8643
|
-
return this.visibility && (n.layout || (n.layout = {}), n.layout.visibility = this.visibility),
|
|
8643
|
+
return this.visibility && (n.layout || (n.layout = {}), n.layout.visibility = this.visibility), ae(n, ((e, t) => !(e === void 0 || t === "layout" && !Object.keys(e).length || t === "paint" && !Object.keys(e).length)));
|
|
8644
8644
|
}
|
|
8645
8645
|
_validate(e, t, n, r, i = {}) {
|
|
8646
8646
|
return !1 !== (i == null ? void 0 : i.validate) && pa(this, e.call(ca, {
|
|
@@ -8648,7 +8648,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
8648
8648
|
layerType: this.type,
|
|
8649
8649
|
objectKey: n,
|
|
8650
8650
|
value: r,
|
|
8651
|
-
styleSpec:
|
|
8651
|
+
styleSpec: R,
|
|
8652
8652
|
style: {
|
|
8653
8653
|
glyphs: !0,
|
|
8654
8654
|
sprite: !0
|
|
@@ -8676,15 +8676,15 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
8676
8676
|
let eo;
|
|
8677
8677
|
var to = { get paint() {
|
|
8678
8678
|
return eo = eo || new Xa({
|
|
8679
|
-
"raster-opacity": new Z(
|
|
8680
|
-
"raster-hue-rotate": new Z(
|
|
8681
|
-
"raster-brightness-min": new Z(
|
|
8682
|
-
"raster-brightness-max": new Z(
|
|
8683
|
-
"raster-saturation": new Z(
|
|
8684
|
-
"raster-contrast": new Z(
|
|
8685
|
-
resampling: new Z(
|
|
8686
|
-
"raster-resampling": new Z(
|
|
8687
|
-
"raster-fade-duration": new Z(
|
|
8679
|
+
"raster-opacity": new Z(R.paint_raster["raster-opacity"]),
|
|
8680
|
+
"raster-hue-rotate": new Z(R.paint_raster["raster-hue-rotate"]),
|
|
8681
|
+
"raster-brightness-min": new Z(R.paint_raster["raster-brightness-min"]),
|
|
8682
|
+
"raster-brightness-max": new Z(R.paint_raster["raster-brightness-max"]),
|
|
8683
|
+
"raster-saturation": new Z(R.paint_raster["raster-saturation"]),
|
|
8684
|
+
"raster-contrast": new Z(R.paint_raster["raster-contrast"]),
|
|
8685
|
+
resampling: new Z(R.paint_raster.resampling),
|
|
8686
|
+
"raster-resampling": new Z(R.paint_raster["raster-resampling"]),
|
|
8687
|
+
"raster-fade-duration": new Z(R.paint_raster["raster-fade-duration"])
|
|
8688
8688
|
});
|
|
8689
8689
|
} };
|
|
8690
8690
|
class no extends $a {
|
|
@@ -9379,7 +9379,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
9379
9379
|
}
|
|
9380
9380
|
prepareSegment(e, t, n, r) {
|
|
9381
9381
|
let i = this.segments[this.segments.length - 1];
|
|
9382
|
-
return e > ss.MAX_VERTEX_ARRAY_LENGTH &&
|
|
9382
|
+
return e > ss.MAX_VERTEX_ARRAY_LENGTH && ce(`Max vertices per segment is ${ss.MAX_VERTEX_ARRAY_LENGTH}: bucket requested ${e}. Consider using the \`fillLargeMeshArrays\` function if you require meshes with more than ${ss.MAX_VERTEX_ARRAY_LENGTH} vertices.`), this._forceNewSegmentOnNextPrepare || !i || i.vertexLength + e > ss.MAX_VERTEX_ARRAY_LENGTH || i.sortKey !== r ? this.createNewSegment(t, n, r) : i;
|
|
9383
9383
|
}
|
|
9384
9384
|
createNewSegment(e, t, n) {
|
|
9385
9385
|
let r = {
|
|
@@ -9415,7 +9415,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
9415
9415
|
}
|
|
9416
9416
|
}
|
|
9417
9417
|
function cs(e, t) {
|
|
9418
|
-
return 256 * (e =
|
|
9418
|
+
return 256 * (e = te(Math.floor(e), 0, 255)) + te(Math.floor(t), 0, 255);
|
|
9419
9419
|
}
|
|
9420
9420
|
ss.MAX_VERTEX_ARRAY_LENGTH = 2 ** 16 - 1, X("SegmentVector", ss);
|
|
9421
9421
|
let ls = oo([
|
|
@@ -9675,7 +9675,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
9675
9675
|
this.paintVertexBuffer && this.paintVertexBuffer.destroy();
|
|
9676
9676
|
}
|
|
9677
9677
|
setUniform(e, t) {
|
|
9678
|
-
let n = this.useIntegerZoom ? Math.floor(t.zoom) : t.zoom, r =
|
|
9678
|
+
let n = this.useIntegerZoom ? Math.floor(t.zoom) : t.zoom, r = te(this.expression.interpolationFactor(n, this.zoom, this.zoom + 1), 0, 1);
|
|
9679
9679
|
e.set(r);
|
|
9680
9680
|
}
|
|
9681
9681
|
getBinding(e, t, n) {
|
|
@@ -9969,7 +9969,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
9969
9969
|
let t = O / e.extent, n = e.loadGeometry();
|
|
9970
9970
|
for (let e of n) for (let n of e) {
|
|
9971
9971
|
let e = Math.round(n.x * t), r = Math.round(n.y * t);
|
|
9972
|
-
n.x =
|
|
9972
|
+
n.x = te(e, Bs, zs), n.y = te(r, Bs, zs), (e < n.x || e > n.x + 1 || r < n.y || r > n.y + 1) && ce("Geometry exceeds allowed extent, reduce your vector tile buffer size");
|
|
9973
9973
|
}
|
|
9974
9974
|
return n;
|
|
9975
9975
|
}
|
|
@@ -10120,7 +10120,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
10120
10120
|
return !1;
|
|
10121
10121
|
}
|
|
10122
10122
|
function Zs(e, t, n, r) {
|
|
10123
|
-
return
|
|
10123
|
+
return le(e, n, r) !== le(t, n, r) && le(e, t, n) !== le(e, t, r);
|
|
10124
10124
|
}
|
|
10125
10125
|
function Qs(e, t, n) {
|
|
10126
10126
|
let r = n * n;
|
|
@@ -10153,8 +10153,8 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
10153
10153
|
function nc(e, t, n) {
|
|
10154
10154
|
let r = n[0], i = n[2];
|
|
10155
10155
|
if (e.x < r.x && t.x < r.x || e.x > i.x && t.x > i.x || e.y < r.y && t.y < r.y || e.y > i.y && t.y > i.y) return !1;
|
|
10156
|
-
let a =
|
|
10157
|
-
return a !==
|
|
10156
|
+
let a = le(e, t, n[0]);
|
|
10157
|
+
return a !== le(e, t, n[1]) || a !== le(e, t, n[2]) || a !== le(e, t, n[3]);
|
|
10158
10158
|
}
|
|
10159
10159
|
function rc(e, t, n) {
|
|
10160
10160
|
let r = t.paint.get(e).value;
|
|
@@ -10212,21 +10212,21 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
10212
10212
|
var hc = {
|
|
10213
10213
|
get paint() {
|
|
10214
10214
|
return mc = mc || new Xa({
|
|
10215
|
-
"circle-radius": new Q(
|
|
10216
|
-
"circle-color": new Q(
|
|
10217
|
-
"circle-blur": new Q(
|
|
10218
|
-
"circle-opacity": new Q(
|
|
10219
|
-
"circle-translate": new Z(
|
|
10220
|
-
"circle-translate-anchor": new Z(
|
|
10221
|
-
"circle-pitch-scale": new Z(
|
|
10222
|
-
"circle-pitch-alignment": new Z(
|
|
10223
|
-
"circle-stroke-width": new Q(
|
|
10224
|
-
"circle-stroke-color": new Q(
|
|
10225
|
-
"circle-stroke-opacity": new Q(
|
|
10215
|
+
"circle-radius": new Q(R.paint_circle["circle-radius"]),
|
|
10216
|
+
"circle-color": new Q(R.paint_circle["circle-color"]),
|
|
10217
|
+
"circle-blur": new Q(R.paint_circle["circle-blur"]),
|
|
10218
|
+
"circle-opacity": new Q(R.paint_circle["circle-opacity"]),
|
|
10219
|
+
"circle-translate": new Z(R.paint_circle["circle-translate"]),
|
|
10220
|
+
"circle-translate-anchor": new Z(R.paint_circle["circle-translate-anchor"]),
|
|
10221
|
+
"circle-pitch-scale": new Z(R.paint_circle["circle-pitch-scale"]),
|
|
10222
|
+
"circle-pitch-alignment": new Z(R.paint_circle["circle-pitch-alignment"]),
|
|
10223
|
+
"circle-stroke-width": new Q(R.paint_circle["circle-stroke-width"]),
|
|
10224
|
+
"circle-stroke-color": new Q(R.paint_circle["circle-stroke-color"]),
|
|
10225
|
+
"circle-stroke-opacity": new Q(R.paint_circle["circle-stroke-opacity"])
|
|
10226
10226
|
});
|
|
10227
10227
|
},
|
|
10228
10228
|
get layout() {
|
|
10229
|
-
return pc = pc || new Xa({ "circle-sort-key": new Q(
|
|
10229
|
+
return pc = pc || new Xa({ "circle-sort-key": new Q(R.layout_circle["circle-sort-key"]) });
|
|
10230
10230
|
}
|
|
10231
10231
|
};
|
|
10232
10232
|
class gc extends $a {
|
|
@@ -10260,11 +10260,11 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
10260
10260
|
X("HeatmapBucket", _c, { omit: ["layers"] });
|
|
10261
10261
|
var yc = { get paint() {
|
|
10262
10262
|
return vc = vc || new Xa({
|
|
10263
|
-
"heatmap-radius": new Q(
|
|
10264
|
-
"heatmap-weight": new Q(
|
|
10265
|
-
"heatmap-intensity": new Z(
|
|
10266
|
-
"heatmap-color": new Ya(
|
|
10267
|
-
"heatmap-opacity": new Z(
|
|
10263
|
+
"heatmap-radius": new Q(R.paint_heatmap["heatmap-radius"]),
|
|
10264
|
+
"heatmap-weight": new Q(R.paint_heatmap["heatmap-weight"]),
|
|
10265
|
+
"heatmap-intensity": new Z(R.paint_heatmap["heatmap-intensity"]),
|
|
10266
|
+
"heatmap-color": new Ya(R.paint_heatmap["heatmap-color"]),
|
|
10267
|
+
"heatmap-opacity": new Z(R.paint_heatmap["heatmap-opacity"])
|
|
10268
10268
|
});
|
|
10269
10269
|
} };
|
|
10270
10270
|
function bc(e, { width: t, height: n }, r, i) {
|
|
@@ -10411,15 +10411,15 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
10411
10411
|
let kc;
|
|
10412
10412
|
var Ac = { get paint() {
|
|
10413
10413
|
return kc = kc || new Xa({
|
|
10414
|
-
"hillshade-illumination-direction": new Z(
|
|
10415
|
-
"hillshade-illumination-altitude": new Z(
|
|
10416
|
-
"hillshade-illumination-anchor": new Z(
|
|
10417
|
-
"hillshade-exaggeration": new Z(
|
|
10418
|
-
"hillshade-shadow-color": new Z(
|
|
10419
|
-
"hillshade-highlight-color": new Z(
|
|
10420
|
-
"hillshade-accent-color": new Z(
|
|
10421
|
-
"hillshade-method": new Z(
|
|
10422
|
-
resampling: new Z(
|
|
10414
|
+
"hillshade-illumination-direction": new Z(R.paint_hillshade["hillshade-illumination-direction"]),
|
|
10415
|
+
"hillshade-illumination-altitude": new Z(R.paint_hillshade["hillshade-illumination-altitude"]),
|
|
10416
|
+
"hillshade-illumination-anchor": new Z(R.paint_hillshade["hillshade-illumination-anchor"]),
|
|
10417
|
+
"hillshade-exaggeration": new Z(R.paint_hillshade["hillshade-exaggeration"]),
|
|
10418
|
+
"hillshade-shadow-color": new Z(R.paint_hillshade["hillshade-shadow-color"]),
|
|
10419
|
+
"hillshade-highlight-color": new Z(R.paint_hillshade["hillshade-highlight-color"]),
|
|
10420
|
+
"hillshade-accent-color": new Z(R.paint_hillshade["hillshade-accent-color"]),
|
|
10421
|
+
"hillshade-method": new Z(R.paint_hillshade["hillshade-method"]),
|
|
10422
|
+
resampling: new Z(R.paint_hillshade.resampling)
|
|
10423
10423
|
});
|
|
10424
10424
|
} };
|
|
10425
10425
|
class jc extends $a {
|
|
@@ -10432,9 +10432,9 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
10432
10432
|
getIlluminationProperties() {
|
|
10433
10433
|
let e = this.paint.get("hillshade-illumination-direction").values, t = this.paint.get("hillshade-illumination-altitude").values, n = this.paint.get("hillshade-highlight-color").values, r = this.paint.get("hillshade-shadow-color").values, i = Math.max(e.length, t.length, n.length, r.length);
|
|
10434
10434
|
e = e.concat(Array(i - e.length).fill(e.at(-1))), t = t.concat(Array(i - t.length).fill(t.at(-1))), n = n.concat(Array(i - n.length).fill(n.at(-1))), r = r.concat(Array(i - r.length).fill(r.at(-1)));
|
|
10435
|
-
let a = t.map(
|
|
10435
|
+
let a = t.map(_e);
|
|
10436
10436
|
return {
|
|
10437
|
-
directionRadians: e.map(
|
|
10437
|
+
directionRadians: e.map(_e),
|
|
10438
10438
|
altitudeRadians: a,
|
|
10439
10439
|
shadowColor: r,
|
|
10440
10440
|
highlightColor: n
|
|
@@ -10447,9 +10447,9 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
10447
10447
|
let Mc;
|
|
10448
10448
|
var Nc = { get paint() {
|
|
10449
10449
|
return Mc = Mc || new Xa({
|
|
10450
|
-
"color-relief-opacity": new Z(
|
|
10451
|
-
"color-relief-color": new Ya(
|
|
10452
|
-
resampling: new Z(
|
|
10450
|
+
"color-relief-opacity": new Z(R["paint_color-relief"]["color-relief-opacity"]),
|
|
10451
|
+
"color-relief-color": new Ya(R["paint_color-relief"]["color-relief-color"]),
|
|
10452
|
+
resampling: new Z(R["paint_color-relief"].resampling)
|
|
10453
10453
|
});
|
|
10454
10454
|
} };
|
|
10455
10455
|
function Pc(e) {
|
|
@@ -10507,7 +10507,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
10507
10507
|
"mapbox",
|
|
10508
10508
|
"terrarium",
|
|
10509
10509
|
"custom"
|
|
10510
|
-
].includes(n)) return void
|
|
10510
|
+
].includes(n)) return void ce(`"${n}" is not a valid encoding type. Valid types include "mapbox", "terrarium" and "custom".`);
|
|
10511
10511
|
this.stride = t.height;
|
|
10512
10512
|
let s = this.dim = t.height - 2;
|
|
10513
10513
|
switch (this.data = new Uint32Array(t.data.buffer), n) {
|
|
@@ -10603,7 +10603,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
10603
10603
|
colorStops: []
|
|
10604
10604
|
}, i = (t.elevationStops.length - 1) / (e - 1);
|
|
10605
10605
|
for (let e = 0; e < t.elevationStops.length - .5; e += i) r.elevationStops.push(t.elevationStops[Math.round(e)]), r.colorStops.push(t.colorStops[Math.round(e)]);
|
|
10606
|
-
return
|
|
10606
|
+
return ce(`Too many colors in specification of ${this.id} color-relief layer, may not render properly. Max possible colors: ${e}, provided: ${t.elevationStops.length}`), r;
|
|
10607
10607
|
}
|
|
10608
10608
|
_colorRampChanged() {
|
|
10609
10609
|
return this.colorRampExpression != this._transitionablePaint._values["color-relief-color"].value.expression;
|
|
@@ -11250,17 +11250,17 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
11250
11250
|
var El = {
|
|
11251
11251
|
get paint() {
|
|
11252
11252
|
return Tl = Tl || new Xa({
|
|
11253
|
-
"fill-antialias": new Z(
|
|
11254
|
-
"fill-opacity": new Q(
|
|
11255
|
-
"fill-color": new Q(
|
|
11256
|
-
"fill-outline-color": new Q(
|
|
11257
|
-
"fill-translate": new Z(
|
|
11258
|
-
"fill-translate-anchor": new Z(
|
|
11259
|
-
"fill-pattern": new qa(
|
|
11253
|
+
"fill-antialias": new Z(R.paint_fill["fill-antialias"]),
|
|
11254
|
+
"fill-opacity": new Q(R.paint_fill["fill-opacity"]),
|
|
11255
|
+
"fill-color": new Q(R.paint_fill["fill-color"]),
|
|
11256
|
+
"fill-outline-color": new Q(R.paint_fill["fill-outline-color"]),
|
|
11257
|
+
"fill-translate": new Z(R.paint_fill["fill-translate"]),
|
|
11258
|
+
"fill-translate-anchor": new Z(R.paint_fill["fill-translate-anchor"]),
|
|
11259
|
+
"fill-pattern": new qa(R.paint_fill["fill-pattern"])
|
|
11260
11260
|
});
|
|
11261
11261
|
},
|
|
11262
11262
|
get layout() {
|
|
11263
|
-
return wl = wl || new Xa({ "fill-sort-key": new Q(
|
|
11263
|
+
return wl = wl || new Xa({ "fill-sort-key": new Q(R.layout_fill["fill-sort-key"]) });
|
|
11264
11264
|
}
|
|
11265
11265
|
};
|
|
11266
11266
|
class Dl extends $a {
|
|
@@ -11558,14 +11558,14 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
11558
11558
|
X("FillExtrusionBucket", Vl, { omit: ["layers", "features"] });
|
|
11559
11559
|
var Kl = { get paint() {
|
|
11560
11560
|
return Gl = Gl || new Xa({
|
|
11561
|
-
"fill-extrusion-opacity": new Z(
|
|
11562
|
-
"fill-extrusion-color": new Q(
|
|
11563
|
-
"fill-extrusion-translate": new Z(
|
|
11564
|
-
"fill-extrusion-translate-anchor": new Z(
|
|
11565
|
-
"fill-extrusion-pattern": new qa(
|
|
11566
|
-
"fill-extrusion-height": new Q(
|
|
11567
|
-
"fill-extrusion-base": new Q(
|
|
11568
|
-
"fill-extrusion-vertical-gradient": new Z(
|
|
11561
|
+
"fill-extrusion-opacity": new Z(R["paint_fill-extrusion"]["fill-extrusion-opacity"]),
|
|
11562
|
+
"fill-extrusion-color": new Q(R["paint_fill-extrusion"]["fill-extrusion-color"]),
|
|
11563
|
+
"fill-extrusion-translate": new Z(R["paint_fill-extrusion"]["fill-extrusion-translate"]),
|
|
11564
|
+
"fill-extrusion-translate-anchor": new Z(R["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),
|
|
11565
|
+
"fill-extrusion-pattern": new qa(R["paint_fill-extrusion"]["fill-extrusion-pattern"]),
|
|
11566
|
+
"fill-extrusion-height": new Q(R["paint_fill-extrusion"]["fill-extrusion-height"]),
|
|
11567
|
+
"fill-extrusion-base": new Q(R["paint_fill-extrusion"]["fill-extrusion-base"]),
|
|
11568
|
+
"fill-extrusion-vertical-gradient": new Z(R["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"])
|
|
11569
11569
|
});
|
|
11570
11570
|
} };
|
|
11571
11571
|
class ql extends $a {
|
|
@@ -12813,26 +12813,26 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
12813
12813
|
var ld = {
|
|
12814
12814
|
get paint() {
|
|
12815
12815
|
return cd = cd || new Xa({
|
|
12816
|
-
"line-opacity": new Q(
|
|
12817
|
-
"line-color": new Q(
|
|
12818
|
-
"line-translate": new Z(
|
|
12819
|
-
"line-translate-anchor": new Z(
|
|
12820
|
-
"line-width": new Q(
|
|
12821
|
-
"line-gap-width": new Q(
|
|
12822
|
-
"line-offset": new Q(
|
|
12823
|
-
"line-blur": new Q(
|
|
12824
|
-
"line-dasharray": new qa(
|
|
12825
|
-
"line-pattern": new qa(
|
|
12826
|
-
"line-gradient": new Ya(
|
|
12816
|
+
"line-opacity": new Q(R.paint_line["line-opacity"]),
|
|
12817
|
+
"line-color": new Q(R.paint_line["line-color"]),
|
|
12818
|
+
"line-translate": new Z(R.paint_line["line-translate"]),
|
|
12819
|
+
"line-translate-anchor": new Z(R.paint_line["line-translate-anchor"]),
|
|
12820
|
+
"line-width": new Q(R.paint_line["line-width"]),
|
|
12821
|
+
"line-gap-width": new Q(R.paint_line["line-gap-width"]),
|
|
12822
|
+
"line-offset": new Q(R.paint_line["line-offset"]),
|
|
12823
|
+
"line-blur": new Q(R.paint_line["line-blur"]),
|
|
12824
|
+
"line-dasharray": new qa(R.paint_line["line-dasharray"]),
|
|
12825
|
+
"line-pattern": new qa(R.paint_line["line-pattern"]),
|
|
12826
|
+
"line-gradient": new Ya(R.paint_line["line-gradient"])
|
|
12827
12827
|
});
|
|
12828
12828
|
},
|
|
12829
12829
|
get layout() {
|
|
12830
12830
|
return sd = sd || new Xa({
|
|
12831
|
-
"line-cap": new Q(
|
|
12832
|
-
"line-join": new Q(
|
|
12833
|
-
"line-miter-limit": new Q(
|
|
12834
|
-
"line-round-limit": new Q(
|
|
12835
|
-
"line-sort-key": new Q(
|
|
12831
|
+
"line-cap": new Q(R.layout_line["line-cap"]),
|
|
12832
|
+
"line-join": new Q(R.layout_line["line-join"]),
|
|
12833
|
+
"line-miter-limit": new Q(R.layout_line["line-miter-limit"]),
|
|
12834
|
+
"line-round-limit": new Q(R.layout_line["line-round-limit"]),
|
|
12835
|
+
"line-sort-key": new Q(R.layout_line["line-sort-key"])
|
|
12836
12836
|
});
|
|
12837
12837
|
}
|
|
12838
12838
|
};
|
|
@@ -12846,7 +12846,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
12846
12846
|
}), super.possiblyEvaluate(e, t);
|
|
12847
12847
|
}
|
|
12848
12848
|
evaluate(e, t, n, r) {
|
|
12849
|
-
return t =
|
|
12849
|
+
return t = ne({}, t, { zoom: Math.floor(t.zoom) }), super.evaluate(e, t, n, r);
|
|
12850
12850
|
}
|
|
12851
12851
|
}
|
|
12852
12852
|
let dd;
|
|
@@ -13452,13 +13452,13 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
13452
13452
|
}
|
|
13453
13453
|
addImageSection(e) {
|
|
13454
13454
|
let t = e.image ? e.image.name : "";
|
|
13455
|
-
if (t.length === 0) return void
|
|
13455
|
+
if (t.length === 0) return void ce("Can't add FormattedSection with an empty image.");
|
|
13456
13456
|
let n = this.getNextImageSectionCharCode();
|
|
13457
13457
|
n ? (this.text += String.fromCharCode(n), this.sections.push({
|
|
13458
13458
|
scale: 1,
|
|
13459
13459
|
verticalAlign: e.verticalAlign || "bottom",
|
|
13460
13460
|
imageName: t
|
|
13461
|
-
}), this.sectionIndex.push(this.sections.length - 1)) :
|
|
13461
|
+
}), this.sectionIndex.push(this.sections.length - 1)) : ce("Reached maximum number of images 6401");
|
|
13462
13462
|
}
|
|
13463
13463
|
getNextImageSectionCharCode() {
|
|
13464
13464
|
return this.imageSectionID ? this.imageSectionID >= 63743 ? null : ++this.imageSectionID : (this.imageSectionID = 57344, this.imageSectionID);
|
|
@@ -14577,72 +14577,72 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
14577
14577
|
var Cf = {
|
|
14578
14578
|
get paint() {
|
|
14579
14579
|
return Sf = Sf || new Xa({
|
|
14580
|
-
"icon-opacity": new Q(
|
|
14581
|
-
"icon-color": new Q(
|
|
14582
|
-
"icon-halo-color": new Q(
|
|
14583
|
-
"icon-halo-width": new Q(
|
|
14584
|
-
"icon-halo-blur": new Q(
|
|
14585
|
-
"icon-translate": new Z(
|
|
14586
|
-
"icon-translate-anchor": new Z(
|
|
14587
|
-
"text-opacity": new Q(
|
|
14588
|
-
"text-color": new Q(
|
|
14580
|
+
"icon-opacity": new Q(R.paint_symbol["icon-opacity"]),
|
|
14581
|
+
"icon-color": new Q(R.paint_symbol["icon-color"]),
|
|
14582
|
+
"icon-halo-color": new Q(R.paint_symbol["icon-halo-color"]),
|
|
14583
|
+
"icon-halo-width": new Q(R.paint_symbol["icon-halo-width"]),
|
|
14584
|
+
"icon-halo-blur": new Q(R.paint_symbol["icon-halo-blur"]),
|
|
14585
|
+
"icon-translate": new Z(R.paint_symbol["icon-translate"]),
|
|
14586
|
+
"icon-translate-anchor": new Z(R.paint_symbol["icon-translate-anchor"]),
|
|
14587
|
+
"text-opacity": new Q(R.paint_symbol["text-opacity"]),
|
|
14588
|
+
"text-color": new Q(R.paint_symbol["text-color"], {
|
|
14589
14589
|
runtimeType: Qe,
|
|
14590
14590
|
getOverride: (e) => e.textColor,
|
|
14591
14591
|
hasOverride: (e) => !!e.textColor
|
|
14592
14592
|
}),
|
|
14593
|
-
"text-halo-color": new Q(
|
|
14594
|
-
"text-halo-width": new Q(
|
|
14595
|
-
"text-halo-blur": new Q(
|
|
14596
|
-
"text-translate": new Z(
|
|
14597
|
-
"text-translate-anchor": new Z(
|
|
14593
|
+
"text-halo-color": new Q(R.paint_symbol["text-halo-color"]),
|
|
14594
|
+
"text-halo-width": new Q(R.paint_symbol["text-halo-width"]),
|
|
14595
|
+
"text-halo-blur": new Q(R.paint_symbol["text-halo-blur"]),
|
|
14596
|
+
"text-translate": new Z(R.paint_symbol["text-translate"]),
|
|
14597
|
+
"text-translate-anchor": new Z(R.paint_symbol["text-translate-anchor"])
|
|
14598
14598
|
});
|
|
14599
14599
|
},
|
|
14600
14600
|
get layout() {
|
|
14601
14601
|
return xf = xf || new Xa({
|
|
14602
|
-
"symbol-placement": new Z(
|
|
14603
|
-
"symbol-spacing": new Z(
|
|
14604
|
-
"symbol-avoid-edges": new Z(
|
|
14605
|
-
"symbol-sort-key": new Q(
|
|
14606
|
-
"symbol-z-order": new Z(
|
|
14607
|
-
"icon-allow-overlap": new Z(
|
|
14608
|
-
"icon-overlap": new Z(
|
|
14609
|
-
"icon-ignore-placement": new Z(
|
|
14610
|
-
"icon-optional": new Z(
|
|
14611
|
-
"icon-rotation-alignment": new Z(
|
|
14612
|
-
"icon-size": new Q(
|
|
14613
|
-
"icon-text-fit": new Z(
|
|
14614
|
-
"icon-text-fit-padding": new Z(
|
|
14615
|
-
"icon-image": new Q(
|
|
14616
|
-
"icon-rotate": new Q(
|
|
14617
|
-
"icon-padding": new Q(
|
|
14618
|
-
"icon-keep-upright": new Z(
|
|
14619
|
-
"icon-offset": new Q(
|
|
14620
|
-
"icon-anchor": new Q(
|
|
14621
|
-
"icon-pitch-alignment": new Z(
|
|
14622
|
-
"text-pitch-alignment": new Z(
|
|
14623
|
-
"text-rotation-alignment": new Z(
|
|
14624
|
-
"text-field": new Q(
|
|
14625
|
-
"text-font": new Q(
|
|
14626
|
-
"text-size": new Q(
|
|
14627
|
-
"text-max-width": new Q(
|
|
14628
|
-
"text-line-height": new Z(
|
|
14629
|
-
"text-letter-spacing": new Q(
|
|
14630
|
-
"text-justify": new Q(
|
|
14631
|
-
"text-radial-offset": new Q(
|
|
14632
|
-
"text-variable-anchor": new Z(
|
|
14633
|
-
"text-variable-anchor-offset": new Q(
|
|
14634
|
-
"text-anchor": new Q(
|
|
14635
|
-
"text-max-angle": new Z(
|
|
14636
|
-
"text-writing-mode": new Z(
|
|
14637
|
-
"text-rotate": new Q(
|
|
14638
|
-
"text-padding": new Z(
|
|
14639
|
-
"text-keep-upright": new Z(
|
|
14640
|
-
"text-transform": new Q(
|
|
14641
|
-
"text-offset": new Q(
|
|
14642
|
-
"text-allow-overlap": new Z(
|
|
14643
|
-
"text-overlap": new Z(
|
|
14644
|
-
"text-ignore-placement": new Z(
|
|
14645
|
-
"text-optional": new Z(
|
|
14602
|
+
"symbol-placement": new Z(R.layout_symbol["symbol-placement"]),
|
|
14603
|
+
"symbol-spacing": new Z(R.layout_symbol["symbol-spacing"]),
|
|
14604
|
+
"symbol-avoid-edges": new Z(R.layout_symbol["symbol-avoid-edges"]),
|
|
14605
|
+
"symbol-sort-key": new Q(R.layout_symbol["symbol-sort-key"]),
|
|
14606
|
+
"symbol-z-order": new Z(R.layout_symbol["symbol-z-order"]),
|
|
14607
|
+
"icon-allow-overlap": new Z(R.layout_symbol["icon-allow-overlap"]),
|
|
14608
|
+
"icon-overlap": new Z(R.layout_symbol["icon-overlap"]),
|
|
14609
|
+
"icon-ignore-placement": new Z(R.layout_symbol["icon-ignore-placement"]),
|
|
14610
|
+
"icon-optional": new Z(R.layout_symbol["icon-optional"]),
|
|
14611
|
+
"icon-rotation-alignment": new Z(R.layout_symbol["icon-rotation-alignment"]),
|
|
14612
|
+
"icon-size": new Q(R.layout_symbol["icon-size"]),
|
|
14613
|
+
"icon-text-fit": new Z(R.layout_symbol["icon-text-fit"]),
|
|
14614
|
+
"icon-text-fit-padding": new Z(R.layout_symbol["icon-text-fit-padding"]),
|
|
14615
|
+
"icon-image": new Q(R.layout_symbol["icon-image"]),
|
|
14616
|
+
"icon-rotate": new Q(R.layout_symbol["icon-rotate"]),
|
|
14617
|
+
"icon-padding": new Q(R.layout_symbol["icon-padding"]),
|
|
14618
|
+
"icon-keep-upright": new Z(R.layout_symbol["icon-keep-upright"]),
|
|
14619
|
+
"icon-offset": new Q(R.layout_symbol["icon-offset"]),
|
|
14620
|
+
"icon-anchor": new Q(R.layout_symbol["icon-anchor"]),
|
|
14621
|
+
"icon-pitch-alignment": new Z(R.layout_symbol["icon-pitch-alignment"]),
|
|
14622
|
+
"text-pitch-alignment": new Z(R.layout_symbol["text-pitch-alignment"]),
|
|
14623
|
+
"text-rotation-alignment": new Z(R.layout_symbol["text-rotation-alignment"]),
|
|
14624
|
+
"text-field": new Q(R.layout_symbol["text-field"]),
|
|
14625
|
+
"text-font": new Q(R.layout_symbol["text-font"]),
|
|
14626
|
+
"text-size": new Q(R.layout_symbol["text-size"]),
|
|
14627
|
+
"text-max-width": new Q(R.layout_symbol["text-max-width"]),
|
|
14628
|
+
"text-line-height": new Z(R.layout_symbol["text-line-height"]),
|
|
14629
|
+
"text-letter-spacing": new Q(R.layout_symbol["text-letter-spacing"]),
|
|
14630
|
+
"text-justify": new Q(R.layout_symbol["text-justify"]),
|
|
14631
|
+
"text-radial-offset": new Q(R.layout_symbol["text-radial-offset"]),
|
|
14632
|
+
"text-variable-anchor": new Z(R.layout_symbol["text-variable-anchor"]),
|
|
14633
|
+
"text-variable-anchor-offset": new Q(R.layout_symbol["text-variable-anchor-offset"]),
|
|
14634
|
+
"text-anchor": new Q(R.layout_symbol["text-anchor"]),
|
|
14635
|
+
"text-max-angle": new Z(R.layout_symbol["text-max-angle"]),
|
|
14636
|
+
"text-writing-mode": new Z(R.layout_symbol["text-writing-mode"]),
|
|
14637
|
+
"text-rotate": new Q(R.layout_symbol["text-rotate"]),
|
|
14638
|
+
"text-padding": new Z(R.layout_symbol["text-padding"]),
|
|
14639
|
+
"text-keep-upright": new Z(R.layout_symbol["text-keep-upright"]),
|
|
14640
|
+
"text-transform": new Q(R.layout_symbol["text-transform"]),
|
|
14641
|
+
"text-offset": new Q(R.layout_symbol["text-offset"]),
|
|
14642
|
+
"text-allow-overlap": new Z(R.layout_symbol["text-allow-overlap"]),
|
|
14643
|
+
"text-overlap": new Z(R.layout_symbol["text-overlap"]),
|
|
14644
|
+
"text-ignore-placement": new Z(R.layout_symbol["text-ignore-placement"]),
|
|
14645
|
+
"text-optional": new Z(R.layout_symbol["text-optional"])
|
|
14646
14646
|
});
|
|
14647
14647
|
}
|
|
14648
14648
|
};
|
|
@@ -14727,9 +14727,9 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
14727
14727
|
let Ef;
|
|
14728
14728
|
var Df = { get paint() {
|
|
14729
14729
|
return Ef = Ef || new Xa({
|
|
14730
|
-
"background-color": new Z(
|
|
14731
|
-
"background-pattern": new Ja(
|
|
14732
|
-
"background-opacity": new Z(
|
|
14730
|
+
"background-color": new Z(R.paint_background["background-color"]),
|
|
14731
|
+
"background-pattern": new Ja(R.paint_background["background-pattern"]),
|
|
14732
|
+
"background-opacity": new Z(R.paint_background["background-opacity"])
|
|
14733
14733
|
});
|
|
14734
14734
|
} };
|
|
14735
14735
|
class Of extends $a {
|
|
@@ -14781,7 +14781,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
14781
14781
|
if (this.lng = +e, this.lat = +t, this.lat > 90 || this.lat < -90) throw Error("Invalid LngLat latitude value: must be between -90 and 90");
|
|
14782
14782
|
}
|
|
14783
14783
|
wrap() {
|
|
14784
|
-
return new Nf(
|
|
14784
|
+
return new Nf(F(this.lng, -180, 180), this.lat);
|
|
14785
14785
|
}
|
|
14786
14786
|
toArray() {
|
|
14787
14787
|
return [this.lng, this.lat];
|
|
@@ -17216,7 +17216,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
17216
17216
|
if (!n) continue;
|
|
17217
17217
|
let i = {};
|
|
17218
17218
|
m && l && (i = l.getState(n.sourceLayer || Um, m));
|
|
17219
|
-
let d =
|
|
17219
|
+
let d = ne({}, c[t]);
|
|
17220
17220
|
d.paint = Qm(d.paint, n.paint, p, i, o), d.layout = Qm(d.layout, n.layout, p, i, o);
|
|
17221
17221
|
let f = !u || u(p, n, i);
|
|
17222
17222
|
if (!f) continue;
|
|
@@ -17248,7 +17248,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
17248
17248
|
}
|
|
17249
17249
|
}
|
|
17250
17250
|
function Qm(e, t, n, r, i) {
|
|
17251
|
-
return
|
|
17251
|
+
return ie(e, ((e, a) => {
|
|
17252
17252
|
let o = t instanceof Ka ? t.get(a) : null;
|
|
17253
17253
|
return o != null && o.evaluate ? o.evaluate(n, r, i) : o;
|
|
17254
17254
|
}));
|
|
@@ -17390,9 +17390,9 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
17390
17390
|
(o.textFitWidth || o.textFitHeight) && (u = lf(e)), v = hh(d, 0, t[0]), b = hh(f, 0, t[1]), y = hh(d, t[0], t[2]), x = hh(f, t[1], t[3]), S = t[0] - v, w = t[1] - b, C = n - y, T = r - x;
|
|
17391
17391
|
}
|
|
17392
17392
|
let E = u.x1, D = u.y1, O = u.x2 - E, k = u.y2 - D, A = (e, i, a, c) => {
|
|
17393
|
-
let l = _h(e.stretch - v, y, O, E), u = vh(e.fixed - S, C, e.stretch, m), d = _h(i.stretch - b, x, k, D), f = vh(i.fixed - w, T, i.stretch, h), p = _h(a.stretch - v, y, O, E), g = vh(a.fixed - S, C, a.stretch, m), _ = _h(c.stretch - b, x, k, D), A = vh(c.fixed - w, T, c.stretch, h), j = new n(l, d), M = new n(p, d), N = new n(p, _), ee = new n(l, _),
|
|
17394
|
-
if (
|
|
17395
|
-
let e = Math.sin(
|
|
17393
|
+
let l = _h(e.stretch - v, y, O, E), u = vh(e.fixed - S, C, e.stretch, m), d = _h(i.stretch - b, x, k, D), f = vh(i.fixed - w, T, i.stretch, h), p = _h(a.stretch - v, y, O, E), g = vh(a.fixed - S, C, a.stretch, m), _ = _h(c.stretch - b, x, k, D), A = vh(c.fixed - w, T, c.stretch, h), j = new n(l, d), M = new n(p, d), N = new n(p, _), ee = new n(l, _), P = new n(u / s, f / s), te = new n(g / s, A / s), F = t * Math.PI / 180;
|
|
17394
|
+
if (F) {
|
|
17395
|
+
let e = Math.sin(F), t = Math.cos(F), n = [
|
|
17396
17396
|
t,
|
|
17397
17397
|
-e,
|
|
17398
17398
|
e,
|
|
@@ -17400,23 +17400,23 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
17400
17400
|
];
|
|
17401
17401
|
j._matMult(n), M._matMult(n), ee._matMult(n), N._matMult(n);
|
|
17402
17402
|
}
|
|
17403
|
-
let
|
|
17403
|
+
let ne = e.stretch + e.fixed, re = i.stretch + i.fixed;
|
|
17404
17404
|
return {
|
|
17405
17405
|
tl: j,
|
|
17406
17406
|
tr: M,
|
|
17407
17407
|
bl: ee,
|
|
17408
17408
|
br: N,
|
|
17409
17409
|
tex: {
|
|
17410
|
-
x: o.paddedRect.x + 1 +
|
|
17411
|
-
y: o.paddedRect.y + 1 +
|
|
17412
|
-
w: a.stretch + a.fixed -
|
|
17413
|
-
h: c.stretch + c.fixed -
|
|
17410
|
+
x: o.paddedRect.x + 1 + ne,
|
|
17411
|
+
y: o.paddedRect.y + 1 + re,
|
|
17412
|
+
w: a.stretch + a.fixed - ne,
|
|
17413
|
+
h: c.stretch + c.fixed - re
|
|
17414
17414
|
},
|
|
17415
17415
|
writingMode: void 0,
|
|
17416
17416
|
glyphOffset: [0, 0],
|
|
17417
17417
|
sectionIndex: 0,
|
|
17418
|
-
pixelOffsetTL:
|
|
17419
|
-
pixelOffsetBR:
|
|
17418
|
+
pixelOffsetTL: P,
|
|
17419
|
+
pixelOffsetBR: te,
|
|
17420
17420
|
minFontScaleX: C / s / O,
|
|
17421
17421
|
minFontScaleY: T / s / k,
|
|
17422
17422
|
isSDF: r
|
|
@@ -17677,7 +17677,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
17677
17677
|
i && A !== "none" && (t.allowVerticalPlacement && r.vertical && (j = uf(i, r.vertical, A, m.get("icon-text-fit-padding"), h, _)), g && (i = uf(i, g, A, m.get("icon-text-fit-padding"), h, _)));
|
|
17678
17678
|
let M = d ? f.line.getGranularityForZoomLevel(d.z) : 1, N = (c, f) => {
|
|
17679
17679
|
f.x < 0 || f.x >= O || f.y < 0 || f.y >= O || function(t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _, v, y, b, x, S, C, w, T) {
|
|
17680
|
-
let E = t.addToLineVertexArray(n, r), D, O, k, A, j = 0, M = 0, N = 0, ee = 0,
|
|
17680
|
+
let E = t.addToLineVertexArray(n, r), D, O, k, A, j = 0, M = 0, N = 0, ee = 0, P = -1, te = -1, F = {}, ne = _s("");
|
|
17681
17681
|
if (t.allowVerticalPlacement && i.vertical) {
|
|
17682
17682
|
let e = c.layout.get("text-rotate").evaluate(x, {}, w) + 90;
|
|
17683
17683
|
k = new yh(l, n, u, d, f, i.vertical, p, m, h, e), s && (A = new yh(l, n, u, d, f, s, _, v, h, e));
|
|
@@ -17686,33 +17686,33 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
17686
17686
|
let r = c.layout.get("icon-rotate").evaluate(x, {}), i = c.layout.get("icon-text-fit") !== "none", o = mh(a, r, C, i), p = s ? mh(s, r, C, i) : void 0;
|
|
17687
17687
|
O = new yh(l, n, u, d, f, a, _, v, !1, r), j = 4 * o.length;
|
|
17688
17688
|
let m = t.iconSizeData, h = null;
|
|
17689
|
-
m.kind === "source" ? (h = [128 * c.layout.get("icon-size").evaluate(x, {})], h[0] > df &&
|
|
17689
|
+
m.kind === "source" ? (h = [128 * c.layout.get("icon-size").evaluate(x, {})], h[0] > df && ce(`${t.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`)) : m.kind === "composite" && (h = [128 * S.compositeIconSizes[0].evaluate(x, {}, w), 128 * S.compositeIconSizes[1].evaluate(x, {}, w)], (h[0] > df || h[1] > df) && ce(`${t.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`)), t.addSymbols(t.icon, o, h, b, y, x, e.ax.none, n, E.lineStartIndex, E.lineLength, -1, w), P = t.icon.placedSymbolArray.length - 1, p && (M = 4 * p.length, t.addSymbols(t.icon, p, h, b, y, x, e.ax.vertical, n, E.lineStartIndex, E.lineLength, -1, w), te = t.icon.placedSymbolArray.length - 1);
|
|
17690
17690
|
}
|
|
17691
|
-
let
|
|
17692
|
-
for (let r of
|
|
17691
|
+
let re = Object.keys(i.horizontal);
|
|
17692
|
+
for (let r of re) {
|
|
17693
17693
|
let a = i.horizontal[r];
|
|
17694
17694
|
if (!D) {
|
|
17695
|
-
|
|
17695
|
+
ne = _s(a.text);
|
|
17696
17696
|
let e = c.layout.get("text-rotate").evaluate(x, {}, w);
|
|
17697
17697
|
D = new yh(l, n, u, d, f, a, p, m, h, e);
|
|
17698
17698
|
}
|
|
17699
17699
|
let s = a.positionedLines.length === 1;
|
|
17700
|
-
if (N += Ah(t, n, a, o, c, h, x, g, E, i.vertical ? e.ax.horizontal : e.ax.horizontalOnly, s ?
|
|
17701
|
-
}
|
|
17702
|
-
i.vertical && (ee += Ah(t, n, i.vertical, o, c, h, x, g, E, e.ax.vertical, ["vertical"],
|
|
17703
|
-
let
|
|
17704
|
-
|
|
17705
|
-
let
|
|
17706
|
-
|
|
17707
|
-
let
|
|
17700
|
+
if (N += Ah(t, n, a, o, c, h, x, g, E, i.vertical ? e.ax.horizontal : e.ax.horizontalOnly, s ? re : [r], F, P, S, w), s) break;
|
|
17701
|
+
}
|
|
17702
|
+
i.vertical && (ee += Ah(t, n, i.vertical, o, c, h, x, g, E, e.ax.vertical, ["vertical"], F, te, S, w));
|
|
17703
|
+
let ie = D ? D.boxStartIndex : t.collisionBoxArray.length, ae = D ? D.boxEndIndex : t.collisionBoxArray.length, oe = k ? k.boxStartIndex : t.collisionBoxArray.length, se = k ? k.boxEndIndex : t.collisionBoxArray.length, le = O ? O.boxStartIndex : t.collisionBoxArray.length, ue = O ? O.boxEndIndex : t.collisionBoxArray.length, de = A ? A.boxStartIndex : t.collisionBoxArray.length, fe = A ? A.boxEndIndex : t.collisionBoxArray.length, pe = -1, I = (e, t) => e != null && e.circleDiameter ? Math.max(e.circleDiameter, t) : t;
|
|
17704
|
+
pe = I(D, pe), pe = I(k, pe), pe = I(O, pe), pe = I(A, pe);
|
|
17705
|
+
let me = +(pe > -1);
|
|
17706
|
+
me && (pe *= T / xd), t.glyphOffsetArray.length >= bf.MAX_GLYPHS && ce("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"), x.sortKey !== void 0 && t.addToSortKeyRanges(t.symbolInstances.length, x.sortKey);
|
|
17707
|
+
let he = Dh(c, x, w), [ge, _e] = function(t, n) {
|
|
17708
17708
|
let r = t.length, i = n == null ? void 0 : n.values;
|
|
17709
17709
|
if ((i == null ? void 0 : i.length) > 0) for (let n = 0; n < i.length; n += 2) {
|
|
17710
17710
|
let r = i[n + 1];
|
|
17711
17711
|
t.emplaceBack(e.aM[i[n]], r[0], r[1]);
|
|
17712
17712
|
}
|
|
17713
17713
|
return [r, t.length];
|
|
17714
|
-
}(t.textAnchorOffsets,
|
|
17715
|
-
t.symbolInstances.emplaceBack(n.x, n.y,
|
|
17714
|
+
}(t.textAnchorOffsets, he);
|
|
17715
|
+
t.symbolInstances.emplaceBack(n.x, n.y, F.right >= 0 ? F.right : -1, F.center >= 0 ? F.center : -1, F.left >= 0 ? F.left : -1, F.vertical || -1, P, te, ne, ie, ae, oe, se, le, ue, de, fe, u, N, ee, j, M, me, 0, p, pe, ge, _e);
|
|
17716
17716
|
}(t, f, c, r, i, a, j, t.layers[0], t.collisionBoxArray, n.index, n.sourceLayerIndex, t.index, v, [
|
|
17717
17717
|
S,
|
|
17718
17718
|
S,
|
|
@@ -17784,7 +17784,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
17784
17784
|
}
|
|
17785
17785
|
return u;
|
|
17786
17786
|
}(0, r, c, a, o, s, i, e.allowVerticalPlacement), _ = e.textSizeData, v = null;
|
|
17787
|
-
_.kind === "source" ? (v = [128 * a.layout.get("text-size").evaluate(s, {})], v[0] > df &&
|
|
17787
|
+
_.kind === "source" ? (v = [128 * a.layout.get("text-size").evaluate(s, {})], v[0] > df && ce(`${e.layerIds[0]}: Value for "text-size" is >= 255. Reduce your "text-size".`)) : _.kind === "composite" && (v = [128 * m.compositeTextSizes[0].evaluate(s, {}, h), 128 * m.compositeTextSizes[1].evaluate(s, {}, h)], (v[0] > df || v[1] > df) && ce(`${e.layerIds[0]}: Value for "text-size" is >= 255. Reduce your "text-size".`)), e.addSymbols(e.text, g, v, c, o, s, u, t, l.lineStartIndex, l.lineLength, p, h);
|
|
17788
17788
|
for (let t of d) f[t] = e.text.placedSymbolArray.length - 1;
|
|
17789
17789
|
return 4 * g.length;
|
|
17790
17790
|
}
|
|
@@ -17800,21 +17800,21 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
17800
17800
|
} else i[t] = [];
|
|
17801
17801
|
return i[t].push(r), !1;
|
|
17802
17802
|
}
|
|
17803
|
-
e.$ =
|
|
17803
|
+
e.$ = Ce, e.A = f, e.B = Ra, e.C = pa, e.D = Z, e.E = Ie, e.F = ca, e.G = function([e, t, n]) {
|
|
17804
17804
|
return t += 90, t *= Math.PI / 180, n *= Math.PI / 180, {
|
|
17805
17805
|
x: e * Math.cos(t) * Math.sin(n),
|
|
17806
17806
|
y: e * Math.sin(t) * Math.sin(n),
|
|
17807
17807
|
z: e * Math.cos(n)
|
|
17808
17808
|
};
|
|
17809
17809
|
}, e.H = xn, e.I = Xd, e.J = Ia, e.K = ua, e.L = function(e) {
|
|
17810
|
-
if (
|
|
17810
|
+
if (de == null) {
|
|
17811
17811
|
let t = e.navigator ? e.navigator.userAgent : null;
|
|
17812
|
-
|
|
17812
|
+
de = !!e.safari || !(!t || !(/\b(iPad|iPhone|iPod)\b/.test(t) || t.match("Safari") && !t.match("Chrome")));
|
|
17813
17813
|
}
|
|
17814
|
-
return
|
|
17815
|
-
}, e.M =
|
|
17814
|
+
return de;
|
|
17815
|
+
}, e.M = De, e.N = class {
|
|
17816
17816
|
constructor(e, t) {
|
|
17817
|
-
this.target = e, this.mapId = t, this.resolveRejects = {}, this.tasks = {}, this.taskQueue = [], this.abortControllers = {}, this.messageHandlers = {}, this.invoker = new Af((() => this.process())), this.subscription =
|
|
17817
|
+
this.target = e, this.mapId = t, this.resolveRejects = {}, this.tasks = {}, this.taskQueue = [], this.abortControllers = {}, this.messageHandlers = {}, this.invoker = new Af((() => this.process())), this.subscription = ge(this.target, "message", ((e) => this.receive(e)), !1), this.globalScope = ue(self) ? e : window;
|
|
17818
17818
|
}
|
|
17819
17819
|
registerMessageHandler(e, t) {
|
|
17820
17820
|
this.messageHandlers[e] = t;
|
|
@@ -17824,7 +17824,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
17824
17824
|
}
|
|
17825
17825
|
sendAsync(e, t) {
|
|
17826
17826
|
return new Promise(((n, r) => {
|
|
17827
|
-
let i = Math.round(0xde0b6b3a7640000 * Math.random()).toString(36).substring(0, 10), a = t ?
|
|
17827
|
+
let i = Math.round(0xde0b6b3a7640000 * Math.random()).toString(36).substring(0, 10), a = t ? ge(t.signal, "abort", (() => {
|
|
17828
17828
|
a == null || a.unsubscribe(), delete this.resolveRejects[i];
|
|
17829
17829
|
let t = {
|
|
17830
17830
|
id: i,
|
|
@@ -17865,7 +17865,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
17865
17865
|
delete this.abortControllers[n], e && e.abort();
|
|
17866
17866
|
return;
|
|
17867
17867
|
}
|
|
17868
|
-
if (
|
|
17868
|
+
if (ue(self) || t.mustQueue) return this.tasks[n] = t, this.taskQueue.push(n), void this.invoker.trigger();
|
|
17869
17869
|
this.processTask(n, t);
|
|
17870
17870
|
}
|
|
17871
17871
|
}
|
|
@@ -17925,10 +17925,10 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
17925
17925
|
let n = {};
|
|
17926
17926
|
for (let r of t) r in e && (n[r] = e[r]);
|
|
17927
17927
|
return n;
|
|
17928
|
-
}, e.W = Nf, e.X =
|
|
17928
|
+
}, e.W = Nf, e.X = F, e.Y = Lf, e.Z = If, e._ = t, e.a = Se, e.a$ = function(e) {
|
|
17929
17929
|
var t = new f(3);
|
|
17930
17930
|
return t[0] = e[0], t[1] = e[1], t[2] = e[2], t;
|
|
17931
|
-
}, e.a0 = l, e.a1 = u, e.a2 =
|
|
17931
|
+
}, e.a0 = l, e.a1 = u, e.a2 = I, e.a3 = Kf, e.a4 = zf, e.a5 = Bf, e.a6 = O, e.a7 = Hf, e.a8 = Jf, e.a9 = 25, e.aA = function(e) {
|
|
17932
17932
|
var t = e[0], n = e[1];
|
|
17933
17933
|
return Math.sqrt(t * t + n * n);
|
|
17934
17934
|
}, e.aB = function(e) {
|
|
@@ -17957,7 +17957,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
17957
17957
|
n = [n[0] * t - n[1] * e, n[0] * e + n[1] * t];
|
|
17958
17958
|
}
|
|
17959
17959
|
return [i ? n[0] : k(t, n[0], e.zoom), i ? n[1] : k(t, n[1], e.zoom)];
|
|
17960
|
-
}, e.aN = pf, e.aO = Oh, e.aP = ef, e.aQ = (e) => e.type === "symbol", e.aR = Zl, e.aS = oo, e.aT = ml, e.aU = Go, e.aV = ss, e.aW = is, e.aX =
|
|
17960
|
+
}, e.aN = pf, e.aO = Oh, e.aP = ef, e.aQ = (e) => e.type === "symbol", e.aR = Zl, e.aS = oo, e.aT = ml, e.aU = Go, e.aV = ss, e.aW = is, e.aX = ve, e.aY = Vf, e.aZ = y, e.a_ = v, e.aa = Wf, e.ab = (e) => {
|
|
17961
17961
|
let t = window.document.createElement("video");
|
|
17962
17962
|
return t.muted = !0, new Promise(((n) => {
|
|
17963
17963
|
t.onloadstart = () => {
|
|
@@ -17965,11 +17965,11 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
17965
17965
|
};
|
|
17966
17966
|
for (let n of e) {
|
|
17967
17967
|
let e = window.document.createElement("source");
|
|
17968
|
-
|
|
17968
|
+
je(n) || (t.crossOrigin = "Anonymous"), e.src = n, t.appendChild(e);
|
|
17969
17969
|
}
|
|
17970
17970
|
}));
|
|
17971
17971
|
}, e.ac = z, e.ad = function() {
|
|
17972
|
-
return
|
|
17972
|
+
return re++;
|
|
17973
17973
|
}, e.ae = Po, e.af = bf, e.ag = Um, e.ah = _i, e.ai = Hs, e.aj = Xf, e.ak = function(e) {
|
|
17974
17974
|
let t = {};
|
|
17975
17975
|
if (e.replace(/(?:^|(?:\s*\,\s*))([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g, ((e, n, r, i) => {
|
|
@@ -17980,7 +17980,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
17980
17980
|
isNaN(e) ? delete t["max-age"] : t["max-age"] = e;
|
|
17981
17981
|
}
|
|
17982
17982
|
return t;
|
|
17983
|
-
}, e.al =
|
|
17983
|
+
}, e.al = te, e.am = 85.051129, e.an = _e, e.ao = function(e) {
|
|
17984
17984
|
return 2 ** e;
|
|
17985
17985
|
}, e.ap = m, e.aq = Rf, e.ar = function(e) {
|
|
17986
17986
|
return Math.log(e) / Math.LN2;
|
|
@@ -18065,7 +18065,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
18065
18065
|
let n = 0, r = 0;
|
|
18066
18066
|
if (e.kind === "constant") r = e.layoutSize;
|
|
18067
18067
|
else if (e.kind !== "source") {
|
|
18068
|
-
let { interpolationType: i, minZoom: a, maxZoom: o } = e, s = i ?
|
|
18068
|
+
let { interpolationType: i, minZoom: a, maxZoom: o } = e, s = i ? te(yn.interpolationFactor(i, t, a, o), 0, 1) : 0;
|
|
18069
18069
|
e.kind === "camera" ? r = xn.number(e.minSize, e.maxSize, s) : n = s;
|
|
18070
18070
|
}
|
|
18071
18071
|
return {
|
|
@@ -18074,7 +18074,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
18074
18074
|
};
|
|
18075
18075
|
}, e.ay = function(e, { uSize: t, uSizeT: n }, { lowerSize: r, upperSize: i }) {
|
|
18076
18076
|
return e.kind === "source" ? r / 128 : e.kind === "composite" ? xn.number(r / 128, i / 128, n) : t;
|
|
18077
|
-
}, e.az = E, e.b =
|
|
18077
|
+
}, e.az = E, e.b = fe, e.b$ = Ts, e.b0 = function(e, t, n) {
|
|
18078
18078
|
return e[0] = t[0] - n[0], e[1] = t[1] - n[1], e[2] = t[2] - n[2], e;
|
|
18079
18079
|
}, e.b1 = function(e, t) {
|
|
18080
18080
|
var n = t[0], r = t[1], i = t[2], a = n * n + r * r + i * i;
|
|
@@ -18161,16 +18161,16 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
18161
18161
|
let n = j(e, 2 * Math.PI), r = j(t, 2 * Math.PI);
|
|
18162
18162
|
return Math.min(Math.abs(n - r), Math.abs(n - r + 2 * Math.PI), Math.abs(n - r - 2 * Math.PI));
|
|
18163
18163
|
}, e.bN = function() {
|
|
18164
|
-
let e = {}, t =
|
|
18165
|
-
for (let n in
|
|
18166
|
-
let r =
|
|
18164
|
+
let e = {}, t = R.$version;
|
|
18165
|
+
for (let n in R.$root) {
|
|
18166
|
+
let r = R.$root[n];
|
|
18167
18167
|
if (r.required) {
|
|
18168
18168
|
let i = null;
|
|
18169
18169
|
i = n === "version" ? t : r.type === "array" ? [] : {}, i != null && (e[n] = i);
|
|
18170
18170
|
}
|
|
18171
18171
|
}
|
|
18172
18172
|
return e;
|
|
18173
|
-
}, e.bO =
|
|
18173
|
+
}, e.bO = ke, e.bP = xa, e.bQ = function e(t, n) {
|
|
18174
18174
|
if (Array.isArray(t)) {
|
|
18175
18175
|
if (!Array.isArray(n) || t.length !== n.length) return !1;
|
|
18176
18176
|
for (let r = 0; r < t.length; r++) if (!e(t[r], n[r])) return !1;
|
|
@@ -18182,11 +18182,11 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
18182
18182
|
return !0;
|
|
18183
18183
|
}
|
|
18184
18184
|
return t === n;
|
|
18185
|
-
}, e.bR =
|
|
18185
|
+
}, e.bR = we, e.bS = function(e) {
|
|
18186
18186
|
e = e.slice();
|
|
18187
18187
|
let t = Object.create(null);
|
|
18188
18188
|
for (let n = 0; n < e.length; n++) t[e[n].id] = e[n];
|
|
18189
|
-
for (let n = 0; n < e.length; n++) "ref" in e[n] && (e[n] =
|
|
18189
|
+
for (let n = 0; n < e.length; n++) "ref" in e[n] && (e[n] = Re(e[n], t[e[n].ref]));
|
|
18190
18190
|
return e;
|
|
18191
18191
|
}, e.bT = function(e, t) {
|
|
18192
18192
|
if (e.type === "custom") return new kf(e, t);
|
|
@@ -18202,57 +18202,57 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
18202
18202
|
case "raster": return new no(e, t);
|
|
18203
18203
|
case "symbol": return new Tf(e, t);
|
|
18204
18204
|
}
|
|
18205
|
-
}, e.bU = (e) => e.type === "raster", e.bV =
|
|
18205
|
+
}, e.bU = (e) => e.type === "raster", e.bV = oe, e.bW = function(e, t) {
|
|
18206
18206
|
if (!e) return [{
|
|
18207
18207
|
command: "setStyle",
|
|
18208
18208
|
args: [t]
|
|
18209
18209
|
}];
|
|
18210
18210
|
let n = [];
|
|
18211
18211
|
try {
|
|
18212
|
-
if (!
|
|
18212
|
+
if (!ze(e.version, t.version)) return [{
|
|
18213
18213
|
command: "setStyle",
|
|
18214
18214
|
args: [t]
|
|
18215
18215
|
}];
|
|
18216
|
-
|
|
18216
|
+
ze(e.center, t.center) || n.push({
|
|
18217
18217
|
command: "setCenter",
|
|
18218
18218
|
args: [t.center]
|
|
18219
|
-
}),
|
|
18219
|
+
}), ze(e.state, t.state) || n.push({
|
|
18220
18220
|
command: "setGlobalState",
|
|
18221
18221
|
args: [t.state]
|
|
18222
|
-
}),
|
|
18222
|
+
}), ze(e.centerAltitude, t.centerAltitude) || n.push({
|
|
18223
18223
|
command: "setCenterAltitude",
|
|
18224
18224
|
args: [t.centerAltitude]
|
|
18225
|
-
}),
|
|
18225
|
+
}), ze(e.zoom, t.zoom) || n.push({
|
|
18226
18226
|
command: "setZoom",
|
|
18227
18227
|
args: [t.zoom]
|
|
18228
|
-
}),
|
|
18228
|
+
}), ze(e.bearing, t.bearing) || n.push({
|
|
18229
18229
|
command: "setBearing",
|
|
18230
18230
|
args: [t.bearing]
|
|
18231
|
-
}),
|
|
18231
|
+
}), ze(e.pitch, t.pitch) || n.push({
|
|
18232
18232
|
command: "setPitch",
|
|
18233
18233
|
args: [t.pitch]
|
|
18234
|
-
}),
|
|
18234
|
+
}), ze(e.roll, t.roll) || n.push({
|
|
18235
18235
|
command: "setRoll",
|
|
18236
18236
|
args: [t.roll]
|
|
18237
|
-
}),
|
|
18237
|
+
}), ze(e.sprite, t.sprite) || n.push({
|
|
18238
18238
|
command: "setSprite",
|
|
18239
18239
|
args: [t.sprite]
|
|
18240
|
-
}),
|
|
18240
|
+
}), ze(e.glyphs, t.glyphs) || n.push({
|
|
18241
18241
|
command: "setGlyphs",
|
|
18242
18242
|
args: [t.glyphs]
|
|
18243
|
-
}),
|
|
18243
|
+
}), ze(e.transition, t.transition) || n.push({
|
|
18244
18244
|
command: "setTransition",
|
|
18245
18245
|
args: [t.transition]
|
|
18246
|
-
}),
|
|
18246
|
+
}), ze(e.light, t.light) || n.push({
|
|
18247
18247
|
command: "setLight",
|
|
18248
18248
|
args: [t.light]
|
|
18249
|
-
}),
|
|
18249
|
+
}), ze(e.terrain, t.terrain) || n.push({
|
|
18250
18250
|
command: "setTerrain",
|
|
18251
18251
|
args: [t.terrain]
|
|
18252
|
-
}),
|
|
18252
|
+
}), ze(e.sky, t.sky) || n.push({
|
|
18253
18253
|
command: "setSky",
|
|
18254
18254
|
args: [t.sky]
|
|
18255
|
-
}),
|
|
18255
|
+
}), ze(e.projection, t.projection) || n.push({
|
|
18256
18256
|
command: "setProjection",
|
|
18257
18257
|
args: [t.projection]
|
|
18258
18258
|
});
|
|
@@ -18260,7 +18260,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
18260
18260
|
(function(e, t, n, r) {
|
|
18261
18261
|
let i;
|
|
18262
18262
|
for (i in t = t || {}, e = e || {}) Object.prototype.hasOwnProperty.call(e, i) && (Object.prototype.hasOwnProperty.call(t, i) || He(i, n, r));
|
|
18263
|
-
for (i in t) Object.prototype.hasOwnProperty.call(t, i) && (Object.prototype.hasOwnProperty.call(e, i) ?
|
|
18263
|
+
for (i in t) Object.prototype.hasOwnProperty.call(t, i) && (Object.prototype.hasOwnProperty.call(e, i) ? ze(e[i], t[i]) || (e[i].type === "geojson" && t[i].type === "geojson" && We(e, t, i) ? Be(n, {
|
|
18264
18264
|
command: "setGeoJSONSourceData",
|
|
18265
18265
|
args: [i, t[i].data]
|
|
18266
18266
|
}) : Ue(i, t, n, r)) : Ve(i, t, n));
|
|
@@ -18285,18 +18285,18 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
18285
18285
|
command: "addLayer",
|
|
18286
18286
|
args: [o[l], f]
|
|
18287
18287
|
}), s.splice(s.length - e, 0, l), c[l] = !0);
|
|
18288
|
-
for (let e = 0; e < i.length; e++) if (l = i[e], u = a[l], d = o[l], !c[l] && !
|
|
18289
|
-
for (p in Ge(u.layout, d.layout, n, l, null, "setLayoutProperty"), Ge(u.paint, d.paint, n, l, null, "setPaintProperty"),
|
|
18288
|
+
for (let e = 0; e < i.length; e++) if (l = i[e], u = a[l], d = o[l], !c[l] && !ze(u, d)) if (ze(u.source, d.source) && ze(u["source-layer"], d["source-layer"]) && ze(u.type, d.type)) {
|
|
18289
|
+
for (p in Ge(u.layout, d.layout, n, l, null, "setLayoutProperty"), Ge(u.paint, d.paint, n, l, null, "setPaintProperty"), ze(u.filter, d.filter) || Be(n, {
|
|
18290
18290
|
command: "setFilter",
|
|
18291
18291
|
args: [l, d.filter]
|
|
18292
|
-
}),
|
|
18292
|
+
}), ze(u.minzoom, d.minzoom) && ze(u.maxzoom, d.maxzoom) || Be(n, {
|
|
18293
18293
|
command: "setLayerZoomRange",
|
|
18294
18294
|
args: [
|
|
18295
18295
|
l,
|
|
18296
18296
|
d.minzoom,
|
|
18297
18297
|
d.maxzoom
|
|
18298
18298
|
]
|
|
18299
|
-
}), u) Object.prototype.hasOwnProperty.call(u, p) && p !== "layout" && p !== "paint" && p !== "filter" && p !== "metadata" && p !== "minzoom" && p !== "maxzoom" && (p.indexOf("paint.") === 0 ? Ge(u[p], d[p], n, l, p.slice(6), "setPaintProperty") :
|
|
18299
|
+
}), u) Object.prototype.hasOwnProperty.call(u, p) && p !== "layout" && p !== "paint" && p !== "filter" && p !== "metadata" && p !== "minzoom" && p !== "maxzoom" && (p.indexOf("paint.") === 0 ? Ge(u[p], d[p], n, l, p.slice(6), "setPaintProperty") : ze(u[p], d[p]) || Be(n, {
|
|
18300
18300
|
command: "setLayerProperty",
|
|
18301
18301
|
args: [
|
|
18302
18302
|
l,
|
|
@@ -18304,7 +18304,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
18304
18304
|
d[p]
|
|
18305
18305
|
]
|
|
18306
18306
|
}));
|
|
18307
|
-
for (p in d) Object.prototype.hasOwnProperty.call(d, p) && !Object.prototype.hasOwnProperty.call(u, p) && p !== "layout" && p !== "paint" && p !== "filter" && p !== "metadata" && p !== "minzoom" && p !== "maxzoom" && (p.indexOf("paint.") === 0 ? Ge(u[p], d[p], n, l, p.slice(6), "setPaintProperty") :
|
|
18307
|
+
for (p in d) Object.prototype.hasOwnProperty.call(d, p) && !Object.prototype.hasOwnProperty.call(u, p) && p !== "layout" && p !== "paint" && p !== "filter" && p !== "metadata" && p !== "minzoom" && p !== "maxzoom" && (p.indexOf("paint.") === 0 ? Ge(u[p], d[p], n, l, p.slice(6), "setPaintProperty") : ze(u[p], d[p]) || Be(n, {
|
|
18308
18308
|
command: "setLayerProperty",
|
|
18309
18309
|
args: [
|
|
18310
18310
|
l,
|
|
@@ -18330,7 +18330,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
18330
18330
|
}, e.bX = function(e) {
|
|
18331
18331
|
let t = [], n = e.id;
|
|
18332
18332
|
return n === void 0 && t.push({ message: `layers.${n}: missing required property "id"` }), e.render === void 0 && t.push({ message: `layers.${n}: missing required method "render"` }), e.renderingMode && e.renderingMode !== "2d" && e.renderingMode !== "3d" && t.push({ message: `layers.${n}: property "renderingMode" must be either "2d" or "3d"` }), t;
|
|
18333
|
-
}, e.bY =
|
|
18333
|
+
}, e.bY = ie, e.bZ = ae, e.b_ = class extends Ss {
|
|
18334
18334
|
constructor(e, t) {
|
|
18335
18335
|
super(e, t), this.current = 0;
|
|
18336
18336
|
}
|
|
@@ -18374,8 +18374,8 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
18374
18374
|
let t = /* @__PURE__ */ new Float64Array(9);
|
|
18375
18375
|
var n, r, i, a, o, s, c, l, u, d = (i = (r = e)[0]) * (c = i + i), f = (a = r[1]) * c, p, m = (o = r[2]) * c, h = o * (l = a + a), g, _ = (s = r[3]) * c, v = s * l, y = s * (u = o + o);
|
|
18376
18376
|
(n = t)[0] = 1 - (p = a * l) - (g = o * u), n[3] = f - y, n[6] = m + v, n[1] = f + y, n[4] = 1 - d - g, n[7] = h - _, n[2] = m - v, n[5] = h + _, n[8] = 1 - d - p;
|
|
18377
|
-
let b =
|
|
18378
|
-
return Math.hypot(t[5], t[8]) < .001 ? (x = 0, S = -
|
|
18377
|
+
let b = ve(-Math.asin(te(t[2], -1, 1))), x, S;
|
|
18378
|
+
return Math.hypot(t[5], t[8]) < .001 ? (x = 0, S = -ve(Math.atan2(t[3], t[4]))) : (x = ve(t[5] === 0 && t[8] === 0 ? 0 : Math.atan2(t[5], t[8])), S = ve(t[1] === 0 && t[0] === 0 ? 0 : Math.atan2(t[1], t[0]))), {
|
|
18379
18379
|
roll: x,
|
|
18380
18380
|
pitch: b + 90,
|
|
18381
18381
|
bearing: S
|
|
@@ -18383,12 +18383,12 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
18383
18383
|
}, e.bn = function(e, t) {
|
|
18384
18384
|
return e.roll == t.roll && e.pitch == t.pitch && e.bearing == t.bearing;
|
|
18385
18385
|
}, e.bo = W, e.bp = Cs, e.bq = hl, e.br = gl, e.bs = pl, e.bt = M, e.bu = N, e.bv = Jt, e.bw = function(e, t, n, r, i) {
|
|
18386
|
-
return M(r, i,
|
|
18386
|
+
return M(r, i, te((e - t) / (n - t), 0, 1));
|
|
18387
18387
|
}, e.bx = function(e, t, n, r) {
|
|
18388
18388
|
return e[0] = t[0] + n[0] * r, e[1] = t[1] + n[1] * r, e[2] = t[2] + n[2] * r, e;
|
|
18389
18389
|
}, e.by = j, e.bz = function() {
|
|
18390
18390
|
return /* @__PURE__ */ new Float64Array(3);
|
|
18391
|
-
}, e.c =
|
|
18391
|
+
}, e.c = Te, e.c$ = si, e.c0 = class extends Ss {
|
|
18392
18392
|
constructor(e, t) {
|
|
18393
18393
|
super(e, t), this.current = Es;
|
|
18394
18394
|
}
|
|
@@ -18450,9 +18450,9 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
18450
18450
|
}
|
|
18451
18451
|
}
|
|
18452
18452
|
}, e.cA = function(e, t) {
|
|
18453
|
-
return
|
|
18453
|
+
return ye[t] && "touches" in e;
|
|
18454
18454
|
}, e.cB = function(e) {
|
|
18455
|
-
return
|
|
18455
|
+
return ye[e] || be[e];
|
|
18456
18456
|
}, e.cC = function(e, t, n) {
|
|
18457
18457
|
var r = t[0], i = t[1];
|
|
18458
18458
|
return e[0] = n[0] * r + n[4] * i + n[12], e[1] = n[1] * r + n[5] * i + n[13], e;
|
|
@@ -18461,10 +18461,10 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
18461
18461
|
return !(e < 0 || e > 25 || r < 0 || r >= 1 || n < 0 || n >= 1);
|
|
18462
18462
|
}, e.cE = function(e, t) {
|
|
18463
18463
|
return e[0] = t[0], e[1] = 0, e[2] = 0, e[3] = 0, e[4] = 0, e[5] = t[1], e[6] = 0, e[7] = 0, e[8] = 0, e[9] = 0, e[10] = t[2], e[11] = 0, e[12] = 0, e[13] = 0, e[14] = 0, e[15] = 1, e;
|
|
18464
|
-
}, e.cF = class extends lo {}, e.cG =
|
|
18465
|
-
|
|
18464
|
+
}, e.cF = class extends lo {}, e.cG = Oe, e.cH = function(e, t) {
|
|
18465
|
+
Te.REGISTERED_PROTOCOLS[e] = t;
|
|
18466
18466
|
}, e.cI = function(e) {
|
|
18467
|
-
delete
|
|
18467
|
+
delete Te.REGISTERED_PROTOCOLS[e];
|
|
18468
18468
|
}, e.cJ = function(e, t) {
|
|
18469
18469
|
let n = {};
|
|
18470
18470
|
for (let r = 0; r < e.length; r++) {
|
|
@@ -18527,7 +18527,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
18527
18527
|
let b = !1;
|
|
18528
18528
|
if ((n = o.icon) != null && n.name) {
|
|
18529
18529
|
let e = t.imageMap[o.icon.name];
|
|
18530
|
-
e && (v = cf(t.imagePositions[o.icon.name], a.get("icon-offset").evaluate(o, {}, t.canonical), a.get("icon-anchor").evaluate(o, {}, t.canonical)), b = !!e.sdf, t.bucket.sdfIcons === void 0 ? t.bucket.sdfIcons = b : t.bucket.sdfIcons !== b &&
|
|
18530
|
+
e && (v = cf(t.imagePositions[o.icon.name], a.get("icon-offset").evaluate(o, {}, t.canonical), a.get("icon-anchor").evaluate(o, {}, t.canonical)), b = !!e.sdf, t.bucket.sdfIcons === void 0 ? t.bucket.sdfIcons = b : t.bucket.sdfIcons !== b && ce("Style sheet warning: Cannot mix SDF and non-SDF icons in one buffer"), (e.pixelRatio !== t.bucket.pixelRatio || a.get("icon-rotate").constantOr(1) !== 0) && (t.bucket.iconsNeedLinear = !0));
|
|
18531
18531
|
}
|
|
18532
18532
|
let x = jh(g.horizontal) || g.vertical;
|
|
18533
18533
|
(r = t.bucket).iconsInText || (r.iconsInText = !!x && x.iconsInText), (x || v) && kh(t.bucket, o, g, v, t.imageMap, s, m, h, y, b, t.canonical, t.subdivisionGranularity);
|
|
@@ -18563,13 +18563,13 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
18563
18563
|
}, e.cV = Ll, e.cW = Pd, e.cX = Vm, e.cY = function(e, n, r, i, a) {
|
|
18564
18564
|
return t(this, void 0, void 0, (function* () {
|
|
18565
18565
|
if (u()) try {
|
|
18566
|
-
return yield
|
|
18566
|
+
return yield I(e, n, r, i, a);
|
|
18567
18567
|
} catch {}
|
|
18568
18568
|
return function(e, t, n, r, i) {
|
|
18569
18569
|
let a = e.width, o = e.height;
|
|
18570
|
-
|
|
18571
|
-
let s =
|
|
18572
|
-
return
|
|
18570
|
+
me && he || (me = new OffscreenCanvas(a, o), he = me.getContext("2d", { willReadFrequently: !0 })), me.width = a, me.height = o, he.drawImage(e, 0, 0, a, o);
|
|
18571
|
+
let s = he.getImageData(t, n, r, i);
|
|
18572
|
+
return he.clearRect(0, 0, a, o), s.data;
|
|
18573
18573
|
}(e, n, r, i, a);
|
|
18574
18574
|
}));
|
|
18575
18575
|
}, e.cZ = Ic, e.c_ = class {
|
|
@@ -18598,10 +18598,10 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
18598
18598
|
}, e.cx = function(e, t, n) {
|
|
18599
18599
|
let r = D(t.x - n.x, t.y - n.y), i = D(e.x - n.x, e.y - n.y);
|
|
18600
18600
|
var a, o;
|
|
18601
|
-
return
|
|
18602
|
-
}, e.cy =
|
|
18601
|
+
return ve(Math.atan2(r[0] * i[1] - r[1] * i[0], (a = r)[0] * (o = i)[0] + a[1] * o[1]));
|
|
18602
|
+
}, e.cy = P, e.cz = function(e, t) {
|
|
18603
18603
|
var n;
|
|
18604
|
-
if (!
|
|
18604
|
+
if (!be[t]) return !1;
|
|
18605
18605
|
let r = e == null ? void 0 : e.target, i = ((n = r == null ? void 0 : r.ownerDocument) == null ? void 0 : n.defaultView) || window;
|
|
18606
18606
|
return e instanceof i.MouseEvent || e instanceof i.WheelEvent;
|
|
18607
18607
|
}, e.d = A, e.d0 = class {
|
|
@@ -18697,7 +18697,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
18697
18697
|
getClusterLeaves(e, t, n) {
|
|
18698
18698
|
return this.tileIndex.getLeaves(e, t, n);
|
|
18699
18699
|
}
|
|
18700
|
-
}, e.d1 = Fa, e.e =
|
|
18700
|
+
}, e.d1 = Fa, e.e = ne, e.f = je, e.g = Ee, e.h = (e) => t(void 0, void 0, void 0, (function* () {
|
|
18701
18701
|
if (e.byteLength === 0) return createImageBitmap(new ImageData(1, 1));
|
|
18702
18702
|
let t = new Blob([new Uint8Array(e)], { type: "image/png" });
|
|
18703
18703
|
try {
|
|
@@ -18705,18 +18705,18 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
18705
18705
|
} catch (e) {
|
|
18706
18706
|
throw Error(`Could not load image because of ${A(e).message}. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.`);
|
|
18707
18707
|
}
|
|
18708
|
-
})), e.i =
|
|
18708
|
+
})), e.i = ue, e.j = (e) => new Promise(((t, n) => {
|
|
18709
18709
|
let r = new Image();
|
|
18710
18710
|
r.onload = () => {
|
|
18711
|
-
t(r), URL.revokeObjectURL(r.src), r.onload = null, window.requestAnimationFrame((() => r.src =
|
|
18711
|
+
t(r), URL.revokeObjectURL(r.src), r.onload = null, window.requestAnimationFrame((() => r.src = pe));
|
|
18712
18712
|
}, r.onerror = () => n(/* @__PURE__ */ 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."));
|
|
18713
18713
|
let i = new Blob([new Uint8Array(e)], { type: "image/png" });
|
|
18714
|
-
r.src = e.byteLength ? URL.createObjectURL(i) :
|
|
18715
|
-
})), e.k = (e, t) =>
|
|
18714
|
+
r.src = e.byteLength ? URL.createObjectURL(i) : pe;
|
|
18715
|
+
})), e.k = (e, t) => Ae(ne(e, { type: "json" }), t), e.l = Fe, e.m = Ae, e.n = Pe, e.o = (e, t) => Ae(ne(e, { type: "arrayBuffer" }), t), e.p = Yd, e.q = function(e) {
|
|
18716
18716
|
return new Pd(e).readFields(Kd, []);
|
|
18717
18717
|
}, e.r = function(e) {
|
|
18718
18718
|
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(e));
|
|
18719
|
-
}, e.s =
|
|
18719
|
+
}, e.s = ge, e.t = Cc, e.u = Xa, e.v = sa, e.w = ce, e.x = R, e.y = Va, e.z = la;
|
|
18720
18720
|
})), n("worker", ["./shared"], (function(e) {
|
|
18721
18721
|
class t {
|
|
18722
18722
|
constructor(e, t) {
|
|
@@ -20261,11 +20261,11 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
20261
20261
|
}
|
|
20262
20262
|
}
|
|
20263
20263
|
let M = Math.floor(s.hardwareConcurrency / 2), N, ee;
|
|
20264
|
-
function
|
|
20264
|
+
function P() {
|
|
20265
20265
|
return N || (N = new j()), N;
|
|
20266
20266
|
}
|
|
20267
20267
|
j.workerCount = t.L(globalThis) ? Math.max(Math.min(M, 3), 1) : 1;
|
|
20268
|
-
class
|
|
20268
|
+
class te {
|
|
20269
20269
|
constructor(e, n) {
|
|
20270
20270
|
this.workerPool = e, this.actors = [], this.currentActor = 0, this.id = n;
|
|
20271
20271
|
let r = this.workerPool.acquire(n);
|
|
@@ -20297,10 +20297,10 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
20297
20297
|
for (let t of this.actors) t.unregisterMessageHandler(e);
|
|
20298
20298
|
}
|
|
20299
20299
|
}
|
|
20300
|
-
function
|
|
20301
|
-
return ee || (ee = new
|
|
20300
|
+
function F() {
|
|
20301
|
+
return ee || (ee = new te(P(), t.M), ee.registerMessageHandler("GR", ((e, n, r) => t.m(n, r)))), ee;
|
|
20302
20302
|
}
|
|
20303
|
-
function
|
|
20303
|
+
function ne(e, n) {
|
|
20304
20304
|
let r = t.O();
|
|
20305
20305
|
return t.Q(r, r, [
|
|
20306
20306
|
1,
|
|
@@ -20312,7 +20312,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
20312
20312
|
1
|
|
20313
20313
|
]), e.calculatePosMatrix ? t.U(r, r, e.calculatePosMatrix(n.toUnwrapped())) : r;
|
|
20314
20314
|
}
|
|
20315
|
-
function
|
|
20315
|
+
function re(e, t, n, r, i, a, o) {
|
|
20316
20316
|
var s;
|
|
20317
20317
|
let c = function(e, t, n) {
|
|
20318
20318
|
if (e) for (let r of e) {
|
|
@@ -20325,14 +20325,14 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
20325
20325
|
}
|
|
20326
20326
|
return !1;
|
|
20327
20327
|
}((s = i == null ? void 0 : i.layers) == null ? null : s, t, e.id), l = a.maxPitchScaleFactor(), u = e.tilesIn(r, l, c);
|
|
20328
|
-
u.sort(
|
|
20328
|
+
u.sort(ie);
|
|
20329
20329
|
let d = [];
|
|
20330
20330
|
for (let r of u) d.push({
|
|
20331
20331
|
wrappedTileID: r.tileID.wrapped().key,
|
|
20332
|
-
queryResults: r.tile.queryRenderedFeatures(t, n, e.getState(), r.queryGeometry, r.cameraQueryGeometry, r.scale, i, a, l,
|
|
20332
|
+
queryResults: r.tile.queryRenderedFeatures(t, n, e.getState(), r.queryGeometry, r.cameraQueryGeometry, r.scale, i, a, l, ne(a, r.tileID), o ? (e, t) => o(r.tileID, e, t) : void 0)
|
|
20333
20333
|
});
|
|
20334
20334
|
return function(e, t) {
|
|
20335
|
-
for (let n in e) for (let r of e[n])
|
|
20335
|
+
for (let n in e) for (let r of e[n]) ae(r, t);
|
|
20336
20336
|
return e;
|
|
20337
20337
|
}(function(e) {
|
|
20338
20338
|
let t = {}, n = {};
|
|
@@ -20350,15 +20350,15 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
20350
20350
|
return t;
|
|
20351
20351
|
}(d), e);
|
|
20352
20352
|
}
|
|
20353
|
-
function
|
|
20353
|
+
function ie(e, t) {
|
|
20354
20354
|
let n = e.tileID, r = t.tileID;
|
|
20355
20355
|
return n.overscaledZ - r.overscaledZ || n.canonical.y - r.canonical.y || n.wrap - r.wrap || n.canonical.x - r.canonical.x;
|
|
20356
20356
|
}
|
|
20357
|
-
function
|
|
20357
|
+
function ae(e, t) {
|
|
20358
20358
|
let n = e.feature, r = t.getFeatureState(n.layer["source-layer"], n.id);
|
|
20359
20359
|
n.source = n.layer.source, n.layer["source-layer"] && (n.sourceLayer = n.layer["source-layer"]), n.state = r;
|
|
20360
20360
|
}
|
|
20361
|
-
function
|
|
20361
|
+
function oe(e, n, r, i) {
|
|
20362
20362
|
return t._(this, void 0, void 0, (function* () {
|
|
20363
20363
|
let a = e;
|
|
20364
20364
|
if (e.url ? a = (yield t.k(yield n.transformRequest(e.url, "Source"), r)).data : yield s.frameAsync(r, i), !a) return null;
|
|
@@ -20375,7 +20375,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
20375
20375
|
return "vector_layers" in a && a.vector_layers && (o.vectorLayerIds = a.vector_layers.map(((e) => e.id))), o;
|
|
20376
20376
|
}));
|
|
20377
20377
|
}
|
|
20378
|
-
class
|
|
20378
|
+
class se {
|
|
20379
20379
|
constructor(e, t) {
|
|
20380
20380
|
e && (t ? this.setSouthWest(e).setNorthEast(t) : Array.isArray(e) && (e.length === 4 ? this.setSouthWest([e[0], e[1]]).setNorthEast([e[2], e[3]]) : this.setSouthWest(e[0]).setNorthEast(e[1])));
|
|
20381
20381
|
}
|
|
@@ -20389,7 +20389,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
20389
20389
|
let n = this._sw, r = this._ne, i, a;
|
|
20390
20390
|
if (e instanceof t.W) i = e, a = e;
|
|
20391
20391
|
else {
|
|
20392
|
-
if (!(e instanceof
|
|
20392
|
+
if (!(e instanceof se)) return Array.isArray(e) ? e.length === 4 || e.every(Array.isArray) ? this.extend(se.convert(e)) : this.extend(t.W.convert(e)) : e && ("lng" in e || "lon" in e) && "lat" in e ? this.extend(t.W.convert(e)) : this;
|
|
20393
20393
|
if (i = e._sw, a = e._ne, !i || !a) return this;
|
|
20394
20394
|
}
|
|
20395
20395
|
return n || r ? (n.lng = Math.min(i.lng, n.lng), n.lat = Math.min(i.lat, n.lat), r.lng = Math.max(a.lng, r.lng), r.lat = Math.max(a.lat, r.lat)) : (this._sw = new t.W(i.lng, i.lat), this._ne = new t.W(a.lng, a.lat)), this;
|
|
@@ -20435,27 +20435,27 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
20435
20435
|
return this._sw.lng > this._ne.lng && (i = this._sw.lng >= n && n >= this._ne.lng), this._sw.lat <= r && r <= this._ne.lat && i;
|
|
20436
20436
|
}
|
|
20437
20437
|
intersects(e) {
|
|
20438
|
-
if (!((e =
|
|
20438
|
+
if (!((e = se.convert(e)).getNorth() >= this.getSouth() && e.getSouth() <= this.getNorth())) return !1;
|
|
20439
20439
|
let n = Math.abs(this.getEast() - this.getWest()), r = Math.abs(e.getEast() - e.getWest());
|
|
20440
20440
|
if (n >= 360 || r >= 360) return !0;
|
|
20441
20441
|
let i = t.X(this.getWest(), -180, 180), a = t.X(this.getEast(), -180, 180), o = t.X(e.getWest(), -180, 180), s = t.X(e.getEast(), -180, 180), c = i > a, l = o > s;
|
|
20442
20442
|
return !(!c || !l) || (c ? s >= i || o <= a : l ? a >= o || i <= s : o <= a && s >= i);
|
|
20443
20443
|
}
|
|
20444
20444
|
static convert(e) {
|
|
20445
|
-
return e instanceof
|
|
20445
|
+
return e instanceof se ? e : e && new se(e);
|
|
20446
20446
|
}
|
|
20447
20447
|
static fromLngLat(e, n = 0) {
|
|
20448
20448
|
let r = 360 * n / 40075017, i = r / Math.cos(Math.PI / 180 * e.lat);
|
|
20449
|
-
return new
|
|
20449
|
+
return new se(new t.W(e.lng - i, e.lat - r), new t.W(e.lng + i, e.lat + r));
|
|
20450
20450
|
}
|
|
20451
20451
|
adjustAntiMeridian() {
|
|
20452
20452
|
let e = new t.W(this._sw.lng, this._sw.lat), n = new t.W(this._ne.lng, this._ne.lat);
|
|
20453
|
-
return new
|
|
20453
|
+
return new se(e, e.lng > n.lng ? new t.W(n.lng + 360, n.lat) : n);
|
|
20454
20454
|
}
|
|
20455
20455
|
}
|
|
20456
|
-
class
|
|
20456
|
+
class ce {
|
|
20457
20457
|
constructor(e, t, n) {
|
|
20458
|
-
this.bounds =
|
|
20458
|
+
this.bounds = se.convert(this.validateBounds(e)), this.minzoom = t || 0, this.maxzoom = n || 24;
|
|
20459
20459
|
}
|
|
20460
20460
|
validateBounds(e) {
|
|
20461
20461
|
return Array.isArray(e) && e.length === 4 ? [
|
|
@@ -20475,7 +20475,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
20475
20475
|
return e.x >= r && e.x < a && e.y >= i && e.y < o;
|
|
20476
20476
|
}
|
|
20477
20477
|
}
|
|
20478
|
-
class
|
|
20478
|
+
class le extends t.E {
|
|
20479
20479
|
constructor(e, n, r, i) {
|
|
20480
20480
|
if (super(), this.id = e, this.dispatcher = r, this.type = "vector", this.minzoom = 0, this.maxzoom = 22, this.scheme = "xyz", this.tileSize = 512, this.reparseOverscaled = !0, this.isTileClipped = !0, this._loaded = !1, t.e(this, t.V(n, [
|
|
20481
20481
|
"url",
|
|
@@ -20490,8 +20490,8 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
20490
20490
|
return t._(this, arguments, void 0, (function* (e = !1) {
|
|
20491
20491
|
this._loaded = !1, this.fire(new t.n("dataloading", { dataType: "source" })), this._tileJSONRequest = new AbortController();
|
|
20492
20492
|
try {
|
|
20493
|
-
let n = yield
|
|
20494
|
-
this._tileJSONRequest = null, this._loaded = !0, n && (t.e(this, n), n.bounds && (this.tileBounds = new
|
|
20493
|
+
let n = yield oe(this._options, this.map._requestManager, this._tileJSONRequest, this.map._ownerWindow);
|
|
20494
|
+
this._tileJSONRequest = null, this._loaded = !0, n && (t.e(this, n), n.bounds && (this.tileBounds = new ce(n.bounds, this.minzoom, this.maxzoom)), this.fire(new t.n("data", {
|
|
20495
20495
|
dataType: "source",
|
|
20496
20496
|
sourceDataType: "metadata"
|
|
20497
20497
|
})), this.fire(new t.n("data", {
|
|
@@ -20621,7 +20621,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
20621
20621
|
return !1;
|
|
20622
20622
|
}
|
|
20623
20623
|
}
|
|
20624
|
-
class
|
|
20624
|
+
class ue extends t.E {
|
|
20625
20625
|
constructor(e, n, r, i) {
|
|
20626
20626
|
super(), this.id = e, this.dispatcher = r, this.setEventedParent(i), this.type = "raster", this.minzoom = 0, this.maxzoom = 22, this.roundZoom = !0, this.scheme = "xyz", this.tileSize = 512, this._loaded = !1, this._options = t.e({ type: "raster" }, n), t.e(this, t.V(n, [
|
|
20627
20627
|
"url",
|
|
@@ -20633,8 +20633,8 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
20633
20633
|
return t._(this, arguments, void 0, (function* (e = !1) {
|
|
20634
20634
|
this._loaded = !1, this.fire(new t.n("dataloading", { dataType: "source" })), this._tileJSONRequest = new AbortController();
|
|
20635
20635
|
try {
|
|
20636
|
-
let n = yield
|
|
20637
|
-
this._tileJSONRequest = null, this._loaded = !0, n && (t.e(this, n), n.bounds && (this.tileBounds = new
|
|
20636
|
+
let n = yield oe(this._options, this.map._requestManager, this._tileJSONRequest, this.map._ownerWindow);
|
|
20637
|
+
this._tileJSONRequest = null, this._loaded = !0, n && (t.e(this, n), n.bounds && (this.tileBounds = new ce(n.bounds, this.minzoom, this.maxzoom)), this.fire(new t.n("data", {
|
|
20638
20638
|
dataType: "source",
|
|
20639
20639
|
sourceDataType: "metadata"
|
|
20640
20640
|
})), this.fire(new t.n("data", {
|
|
@@ -20710,7 +20710,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
20710
20710
|
return !1;
|
|
20711
20711
|
}
|
|
20712
20712
|
}
|
|
20713
|
-
class
|
|
20713
|
+
class de extends ue {
|
|
20714
20714
|
constructor(e, n, r, i) {
|
|
20715
20715
|
super(e, n, r, i), this.type = "raster-dem", this.maxzoom = 22, this._options = t.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;
|
|
20716
20716
|
}
|
|
@@ -20781,10 +20781,10 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
20781
20781
|
}));
|
|
20782
20782
|
}
|
|
20783
20783
|
}
|
|
20784
|
-
function
|
|
20784
|
+
function fe(e, t) {
|
|
20785
20785
|
return t ? e.properties[t] : e.id;
|
|
20786
20786
|
}
|
|
20787
|
-
function
|
|
20787
|
+
function pe(e, t) {
|
|
20788
20788
|
let n = { id: e.id };
|
|
20789
20789
|
if (t.removeAllProperties && (delete e.removeProperties, delete e.addOrUpdateProperties, delete t.removeProperties), t.removeProperties) for (let n of t.removeProperties) {
|
|
20790
20790
|
let t = e.addOrUpdateProperties.findIndex(((e) => e.key === n));
|
|
@@ -20792,28 +20792,28 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
20792
20792
|
}
|
|
20793
20793
|
return (e.removeAllProperties || t.removeAllProperties) && (n.removeAllProperties = !0), (e.removeProperties || t.removeProperties) && (n.removeProperties = [...e.removeProperties || [], ...t.removeProperties || []]), (e.addOrUpdateProperties || t.addOrUpdateProperties) && (n.addOrUpdateProperties = [...e.addOrUpdateProperties || [], ...t.addOrUpdateProperties || []]), (e.newGeometry || t.newGeometry) && (n.newGeometry = t.newGeometry || e.newGeometry), n;
|
|
20794
20794
|
}
|
|
20795
|
-
function
|
|
20795
|
+
function I(e) {
|
|
20796
20796
|
var t, n;
|
|
20797
20797
|
if (!e) return {};
|
|
20798
20798
|
let r = {};
|
|
20799
20799
|
return r.removeAll = e.removeAll, r.remove = new Set(e.remove || []), r.add = new Map((t = e.add) == null ? void 0 : t.map(((e) => [e.id, e]))), r.update = new Map((n = e.update) == null ? void 0 : n.map(((e) => [e.id, e]))), r;
|
|
20800
20800
|
}
|
|
20801
|
+
function me(e) {
|
|
20802
|
+
return e && e.length !== 0 ? typeof e[0] == "number" ? [e] : e.flatMap(((e) => me(e))) : [];
|
|
20803
|
+
}
|
|
20801
20804
|
function he(e) {
|
|
20802
|
-
return e
|
|
20805
|
+
return e.type === "GeometryCollection" ? e.geometries.flatMap(((e) => he(e))) : me(e.coordinates);
|
|
20803
20806
|
}
|
|
20804
20807
|
function ge(e) {
|
|
20805
|
-
|
|
20806
|
-
}
|
|
20807
|
-
function _e(e) {
|
|
20808
|
-
let t = new ce(), n;
|
|
20808
|
+
let t = new se(), n;
|
|
20809
20809
|
switch (e.type) {
|
|
20810
20810
|
case "FeatureCollection":
|
|
20811
|
-
n = e.features.flatMap(((e) =>
|
|
20811
|
+
n = e.features.flatMap(((e) => he(e.geometry)));
|
|
20812
20812
|
break;
|
|
20813
20813
|
case "Feature":
|
|
20814
|
-
n =
|
|
20814
|
+
n = he(e.geometry);
|
|
20815
20815
|
break;
|
|
20816
|
-
default: n =
|
|
20816
|
+
default: n = he(e);
|
|
20817
20817
|
}
|
|
20818
20818
|
if (n.length === 0) return t;
|
|
20819
20819
|
for (let e of n) {
|
|
@@ -20822,7 +20822,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
20822
20822
|
}
|
|
20823
20823
|
return t;
|
|
20824
20824
|
}
|
|
20825
|
-
class
|
|
20825
|
+
class _e extends t.E {
|
|
20826
20826
|
constructor(e, n, r, i) {
|
|
20827
20827
|
super(), this.id = e, 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 = r.getActor(), this.setEventedParent(i), this._data = typeof n.data == "string" ? { url: n.data } : { geojson: n.data }, this._options = t.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 && t.w(`The maxzoom value "${this.maxzoom}" is expected to be greater than the clusterMaxZoom value "${n.clusterMaxZoom}".`), this.workerOptions = t.e({
|
|
20828
20828
|
source: this.id,
|
|
@@ -20875,13 +20875,13 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
20875
20875
|
this._pendingWorkerUpdate.diff = function(e, t) {
|
|
20876
20876
|
if (!e) return t || {};
|
|
20877
20877
|
if (!t) return e || {};
|
|
20878
|
-
let n =
|
|
20878
|
+
let n = I(e), r = I(t);
|
|
20879
20879
|
(function(e, t) {
|
|
20880
20880
|
t.removeAll && (e.add.clear(), e.update.clear(), e.remove.clear(), t.remove.clear());
|
|
20881
20881
|
for (let n of t.remove) e.add.delete(n), e.update.delete(n);
|
|
20882
20882
|
for (let [n, r] of t.update) {
|
|
20883
20883
|
let i = e.update.get(n);
|
|
20884
|
-
i && (t.update.set(n,
|
|
20884
|
+
i && (t.update.set(n, pe(i, r)), e.update.delete(n));
|
|
20885
20885
|
}
|
|
20886
20886
|
})(n, r);
|
|
20887
20887
|
let i = {};
|
|
@@ -20904,7 +20904,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
20904
20904
|
}
|
|
20905
20905
|
getBounds() {
|
|
20906
20906
|
return t._(this, void 0, void 0, (function* () {
|
|
20907
|
-
return
|
|
20907
|
+
return ge(yield this.getData());
|
|
20908
20908
|
}));
|
|
20909
20909
|
}
|
|
20910
20910
|
setClusterOptions(e) {
|
|
@@ -20995,13 +20995,13 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
20995
20995
|
let n = /* @__PURE__ */ new Map();
|
|
20996
20996
|
if (e == null || e.type == null) return n;
|
|
20997
20997
|
if (e.type === "Feature") {
|
|
20998
|
-
let r =
|
|
20998
|
+
let r = fe(e, t);
|
|
20999
20999
|
return r == null ? void 0 : (n.set(r, e), n);
|
|
21000
21000
|
}
|
|
21001
21001
|
if (e.type === "FeatureCollection") {
|
|
21002
21002
|
let r = /* @__PURE__ */ new Set();
|
|
21003
21003
|
for (let i of e.features) {
|
|
21004
|
-
let e =
|
|
21004
|
+
let e = fe(i, t);
|
|
21005
21005
|
if (e == null || r.has(e)) return;
|
|
21006
21006
|
r.add(e), n.set(e, i);
|
|
21007
21007
|
}
|
|
@@ -21021,7 +21021,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
21021
21021
|
t && (a.push(t.geometry), e.delete(n));
|
|
21022
21022
|
}
|
|
21023
21023
|
if (t.add) for (let r of t.add) {
|
|
21024
|
-
let t =
|
|
21024
|
+
let t = fe(r, n);
|
|
21025
21025
|
if (t == null) continue;
|
|
21026
21026
|
let i = e.get(t);
|
|
21027
21027
|
i && a.push(i.geometry), a.push(r.geometry), e.set(t, r);
|
|
@@ -21043,14 +21043,14 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
21043
21043
|
return e.removeAll || this._options.cluster ? void 0 : n;
|
|
21044
21044
|
}
|
|
21045
21045
|
_getShouldReloadTileOptions(e) {
|
|
21046
|
-
if (e) return { affectedBounds: e.filter(Boolean).map(((e) =>
|
|
21046
|
+
if (e) return { affectedBounds: e.filter(Boolean).map(((e) => ge(e))) };
|
|
21047
21047
|
}
|
|
21048
21048
|
shouldReloadTile(e, { affectedBounds: n }) {
|
|
21049
21049
|
if (e.state === "loading") return !0;
|
|
21050
21050
|
if (e.state === "unloaded") return !1;
|
|
21051
21051
|
let { buffer: r, extent: i } = this.workerOptions.geojsonVtOptions, a = function({ x: e, y: n, z: r }, i = 0) {
|
|
21052
21052
|
let a = t.a4((e - i) / 2 ** r), o = t.a5((n + 1 + i) / 2 ** r), s = t.a4((e + 1 + i) / 2 ** r), c = t.a5((n - i) / 2 ** r);
|
|
21053
|
-
return new
|
|
21053
|
+
return new se([a, o], [s, c]);
|
|
21054
21054
|
}(e.tileID.canonical, r / i);
|
|
21055
21055
|
for (let e of n) if (a.intersects(e)) return !0;
|
|
21056
21056
|
return !1;
|
|
@@ -21122,7 +21122,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
21122
21122
|
return !1;
|
|
21123
21123
|
}
|
|
21124
21124
|
}
|
|
21125
|
-
class
|
|
21125
|
+
class ve extends t.E {
|
|
21126
21126
|
constructor(e, t, n, r) {
|
|
21127
21127
|
super(), this.flippedWindingOrder = !1, this.id = e, this.dispatcher = n, this.coordinates = t.coordinates, this.type = "image", this.minzoom = 0, this.maxzoom = 22, this.tileSize = 512, this.tiles = {}, this._loaded = !1, this.setEventedParent(r), this.options = t;
|
|
21128
21128
|
}
|
|
@@ -21214,7 +21214,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
21214
21214
|
return o;
|
|
21215
21215
|
}
|
|
21216
21216
|
}
|
|
21217
|
-
class
|
|
21217
|
+
class ye extends ve {
|
|
21218
21218
|
constructor(e, t, n, r) {
|
|
21219
21219
|
super(e, t, n, r), this._onPlayingHandler = () => {
|
|
21220
21220
|
var e;
|
|
@@ -21283,7 +21283,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
21283
21283
|
return this.video && !this.video.paused;
|
|
21284
21284
|
}
|
|
21285
21285
|
}
|
|
21286
|
-
class
|
|
21286
|
+
class be extends ve {
|
|
21287
21287
|
constructor(e, n, r, i) {
|
|
21288
21288
|
super(e, n, r, i), n.coordinates ? Array.isArray(n.coordinates) && n.coordinates.length === 4 && !n.coordinates.some(((e) => !Array.isArray(e) || e.length !== 2 || e.some(((e) => typeof e != "number")))) || this.fire(new t.l(new t.ac(`sources.${e}`, null, "\"coordinates\" property must be an array of 4 longitude/latitude array pairs"))) : this.fire(new t.l(new t.ac(`sources.${e}`, null, "missing required property \"coordinates\""))), n.animate && typeof n.animate != "boolean" && this.fire(new t.l(new t.ac(`sources.${e}`, null, "optional \"animate\" property must be a boolean value"))), n.canvas ? typeof n.canvas == "string" || n.canvas instanceof HTMLCanvasElement || this.fire(new t.l(new t.ac(`sources.${e}`, 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 t.l(new t.ac(`sources.${e}`, null, "missing required property \"canvas\""))), this.options = n, this.animate = n.animate === void 0 || n.animate;
|
|
21289
21289
|
}
|
|
@@ -21337,21 +21337,21 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
21337
21337
|
return !1;
|
|
21338
21338
|
}
|
|
21339
21339
|
}
|
|
21340
|
-
let
|
|
21340
|
+
let xe = {}, Se = (e) => {
|
|
21341
21341
|
switch (e) {
|
|
21342
|
-
case "geojson": return
|
|
21343
|
-
case "image": return
|
|
21344
|
-
case "raster": return
|
|
21345
|
-
case "raster-dem": return
|
|
21346
|
-
case "vector": return
|
|
21347
|
-
case "video": return
|
|
21348
|
-
case "canvas": return
|
|
21349
|
-
}
|
|
21350
|
-
return
|
|
21351
|
-
},
|
|
21352
|
-
class
|
|
21342
|
+
case "geojson": return _e;
|
|
21343
|
+
case "image": return ve;
|
|
21344
|
+
case "raster": return ue;
|
|
21345
|
+
case "raster-dem": return de;
|
|
21346
|
+
case "vector": return le;
|
|
21347
|
+
case "video": return ye;
|
|
21348
|
+
case "canvas": return be;
|
|
21349
|
+
}
|
|
21350
|
+
return xe[e];
|
|
21351
|
+
}, Ce = "RTLPluginLoaded";
|
|
21352
|
+
class we extends t.E {
|
|
21353
21353
|
constructor() {
|
|
21354
|
-
super(...arguments), this.status = "unavailable", this.url = null, this.dispatcher =
|
|
21354
|
+
super(...arguments), this.status = "unavailable", this.url = null, this.dispatcher = F();
|
|
21355
21355
|
}
|
|
21356
21356
|
_syncState(e) {
|
|
21357
21357
|
return this.status = e, this.dispatcher.broadcast("SRPS", {
|
|
@@ -21379,24 +21379,24 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
21379
21379
|
}
|
|
21380
21380
|
_requestImport() {
|
|
21381
21381
|
return t._(this, void 0, void 0, (function* () {
|
|
21382
|
-
yield this._syncState("loading"), this.status = "loaded", this.fire(new t.n(
|
|
21382
|
+
yield this._syncState("loading"), this.status = "loaded", this.fire(new t.n(Ce));
|
|
21383
21383
|
}));
|
|
21384
21384
|
}
|
|
21385
21385
|
lazyLoad() {
|
|
21386
21386
|
this.status === "unavailable" ? this.status = "requested" : this.status === "deferred" && this._requestImport();
|
|
21387
21387
|
}
|
|
21388
21388
|
}
|
|
21389
|
-
let
|
|
21390
|
-
function
|
|
21391
|
-
return
|
|
21389
|
+
let Te = null;
|
|
21390
|
+
function Ee() {
|
|
21391
|
+
return Te || (Te = new we()), Te;
|
|
21392
21392
|
}
|
|
21393
|
-
var
|
|
21393
|
+
var De, Oe;
|
|
21394
21394
|
(function(e) {
|
|
21395
21395
|
e[e.Base = 0] = "Base", e[e.Parent = 1] = "Parent";
|
|
21396
|
-
})(
|
|
21396
|
+
})(De || (De = {})), function(e) {
|
|
21397
21397
|
e[e.Departing = 0] = "Departing", e[e.Incoming = 1] = "Incoming";
|
|
21398
|
-
}(
|
|
21399
|
-
class
|
|
21398
|
+
}(Oe || (Oe = {}));
|
|
21399
|
+
class ke {
|
|
21400
21400
|
constructor(e, n) {
|
|
21401
21401
|
this.timeAdded = 0, this.fadeEndTime = 0, this.fadeOpacity = 1, this.tileID = e, this.uid = t.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";
|
|
21402
21402
|
}
|
|
@@ -21442,7 +21442,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
21442
21442
|
if (this.hasRTLText = !1, this.hasSymbolBuckets) for (let e in this.buckets) {
|
|
21443
21443
|
let n = this.buckets[e];
|
|
21444
21444
|
if (n instanceof t.af && n.hasRTLText) {
|
|
21445
|
-
this.hasRTLText = !0,
|
|
21445
|
+
this.hasRTLText = !0, Ee().lazyLoad();
|
|
21446
21446
|
break;
|
|
21447
21447
|
}
|
|
21448
21448
|
}
|
|
@@ -21574,7 +21574,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
21574
21574
|
return !1;
|
|
21575
21575
|
}
|
|
21576
21576
|
}
|
|
21577
|
-
class
|
|
21577
|
+
class Ae {
|
|
21578
21578
|
constructor() {
|
|
21579
21579
|
this.state = {}, this.stateChanges = {}, this.deletedStates = {}, this.revision = 0;
|
|
21580
21580
|
}
|
|
@@ -21634,18 +21634,18 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
21634
21634
|
this.stateChanges = {}, this.deletedStates = {}, Object.keys(o).length !== 0 && (this.revision++, e.setFeatureState(o, n));
|
|
21635
21635
|
}
|
|
21636
21636
|
}
|
|
21637
|
-
let
|
|
21638
|
-
function
|
|
21637
|
+
let je = 89.25;
|
|
21638
|
+
function Me(e, n) {
|
|
21639
21639
|
let r = t.al(n.lat, -t.am, t.am);
|
|
21640
21640
|
return new t.P(t.Z(n.lng) * e, t.Y(r) * e);
|
|
21641
21641
|
}
|
|
21642
|
-
function
|
|
21642
|
+
function Ne(e, n) {
|
|
21643
21643
|
return new t.a7(n.x / e, n.y / e).toLngLat();
|
|
21644
21644
|
}
|
|
21645
|
-
function
|
|
21646
|
-
return e.cameraToCenterDistance * Math.min(.85 * Math.tan(t.an(90 - e.pitch)), Math.tan(t.an(
|
|
21645
|
+
function Pe(e) {
|
|
21646
|
+
return e.cameraToCenterDistance * Math.min(.85 * Math.tan(t.an(90 - e.pitch)), Math.tan(t.an(je - e.pitch)));
|
|
21647
21647
|
}
|
|
21648
|
-
function
|
|
21648
|
+
function Fe(e, n) {
|
|
21649
21649
|
let r = e.canonical, i = n / t.ao(r.z), a = r.x + 2 ** r.z * e.wrap, o = t.ap(/* @__PURE__ */ new Float64Array(16));
|
|
21650
21650
|
return t.Q(o, o, [
|
|
21651
21651
|
a * i,
|
|
@@ -21657,11 +21657,11 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
21657
21657
|
1
|
|
21658
21658
|
]), o;
|
|
21659
21659
|
}
|
|
21660
|
-
function
|
|
21661
|
-
let o = t.a7.fromLngLat(e, n), s = a * t.aq(1, e.lat), { x: c, y: l, z: u } =
|
|
21660
|
+
function Ie(e, n, r, i, a) {
|
|
21661
|
+
let o = t.a7.fromLngLat(e, n), s = a * t.aq(1, e.lat), { x: c, y: l, z: u } = R(r, i);
|
|
21662
21662
|
return new t.a7(o.x + s * -c, o.y + s * -l, o.z + s * -u);
|
|
21663
21663
|
}
|
|
21664
|
-
function
|
|
21664
|
+
function R(e, n) {
|
|
21665
21665
|
let r = t.an(e), i = t.an(n), a = Math.cos(-r), o = Math.sin(r);
|
|
21666
21666
|
return {
|
|
21667
21667
|
x: o * Math.sin(i),
|
|
@@ -21669,24 +21669,24 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
21669
21669
|
z: a
|
|
21670
21670
|
};
|
|
21671
21671
|
}
|
|
21672
|
-
function
|
|
21672
|
+
function Le(e, t, n) {
|
|
21673
21673
|
let r = t.intersectsFrustum(e);
|
|
21674
21674
|
if (!n || r === 0) return r;
|
|
21675
21675
|
let i = t.intersectsPlane(n);
|
|
21676
21676
|
return i === 0 ? 0 : r === 2 && i === 2 ? 2 : 1;
|
|
21677
21677
|
}
|
|
21678
|
-
function
|
|
21678
|
+
function Re(e, t, n) {
|
|
21679
21679
|
let r = 0, i = (n - t) / 10;
|
|
21680
21680
|
for (let a = 0; a < 10; a++) r += i * Math.cos(t + (a + .5) / 10 * (n - t)) ** +e;
|
|
21681
21681
|
return r;
|
|
21682
21682
|
}
|
|
21683
|
-
function
|
|
21683
|
+
function ze(e, n) {
|
|
21684
21684
|
return function(r, i, a, o, s) {
|
|
21685
|
-
let c = 2 * ((e - 1) / t.ar(Math.cos(t.an(
|
|
21685
|
+
let c = 2 * ((e - 1) / t.ar(Math.cos(t.an(je - s)) / Math.cos(t.an(je))) - 1), l = Math.acos(a / o), u = 2 * Re(c - 1, 0, t.an(s / 2)), d = Math.min(t.an(je), l + t.an(s / 2)), f = Re(c - 1, Math.min(d, l - t.an(s / 2)), d), p = Math.atan(i / a), m = Math.hypot(i, a), h = r;
|
|
21686
21686
|
return h += t.ar(o / m / Math.max(.5, Math.cos(t.an(s / 2)))), h += c * t.ar(Math.cos(p)) / 2, h -= t.ar(Math.max(1, f / u / n)) / 2, h;
|
|
21687
21687
|
};
|
|
21688
21688
|
}
|
|
21689
|
-
let Be =
|
|
21689
|
+
let Be = ze(9.314, 3);
|
|
21690
21690
|
function Ve(e, n) {
|
|
21691
21691
|
let r = (n.roundZoom ? Math.round : Math.floor)(e.zoom + t.ar(e.tileSize / n.tileSize));
|
|
21692
21692
|
return Math.max(0, r);
|
|
@@ -21717,7 +21717,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
21717
21717
|
z: p.zoom
|
|
21718
21718
|
}, w = s.getTileBoundingVolume(C, p.wrap, e.elevation, n);
|
|
21719
21719
|
if (!S) {
|
|
21720
|
-
let e =
|
|
21720
|
+
let e = Le(r, w, i);
|
|
21721
21721
|
if (e === 0) continue;
|
|
21722
21722
|
S = e === 2;
|
|
21723
21723
|
}
|
|
@@ -21749,18 +21749,18 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
21749
21749
|
function Ge(e, t, n, r, i, a, o) {
|
|
21750
21750
|
if (!t.hasData()) return !1;
|
|
21751
21751
|
let { tileID: s, fadingRole: c, fadingDirection: l, fadingParentID: u } = t;
|
|
21752
|
-
if (c ===
|
|
21752
|
+
if (c === De.Base && l === Oe.Incoming && u) return n[u.key] = u, !0;
|
|
21753
21753
|
let d = Math.max(s.overscaledZ - i, a);
|
|
21754
21754
|
for (let i = s.overscaledZ - 1; i >= d; i--) {
|
|
21755
21755
|
let a = s.scaledTo(i), c = e.getLoadedTile(a);
|
|
21756
21756
|
if (c) return t.setCrossFadeLogic({
|
|
21757
|
-
fadingRole:
|
|
21758
|
-
fadingDirection:
|
|
21757
|
+
fadingRole: De.Base,
|
|
21758
|
+
fadingDirection: Oe.Incoming,
|
|
21759
21759
|
fadingParentID: c.tileID,
|
|
21760
21760
|
fadeEndTime: r + o
|
|
21761
21761
|
}), c.setCrossFadeLogic({
|
|
21762
|
-
fadingRole:
|
|
21763
|
-
fadingDirection:
|
|
21762
|
+
fadingRole: De.Parent,
|
|
21763
|
+
fadingDirection: Oe.Departing,
|
|
21764
21764
|
fadeEndTime: r + o
|
|
21765
21765
|
}), n[a.key] = a, !0;
|
|
21766
21766
|
}
|
|
@@ -21780,14 +21780,14 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
21780
21780
|
let n = e.getLoadedTile(a);
|
|
21781
21781
|
if (!n) continue;
|
|
21782
21782
|
let { fadingRole: c, fadingDirection: l, fadingParentID: u } = n;
|
|
21783
|
-
c ===
|
|
21784
|
-
fadingRole:
|
|
21785
|
-
fadingDirection:
|
|
21783
|
+
c === De.Base && l === Oe.Departing && u || (n.setCrossFadeLogic({
|
|
21784
|
+
fadingRole: De.Base,
|
|
21785
|
+
fadingDirection: Oe.Departing,
|
|
21786
21786
|
fadingParentID: t.tileID,
|
|
21787
21787
|
fadeEndTime: i + o
|
|
21788
21788
|
}), t.setCrossFadeLogic({
|
|
21789
|
-
fadingRole:
|
|
21790
|
-
fadingDirection:
|
|
21789
|
+
fadingRole: De.Parent,
|
|
21790
|
+
fadingDirection: Oe.Incoming,
|
|
21791
21791
|
fadeEndTime: i + o
|
|
21792
21792
|
})), r[a.key] = a, s = !0;
|
|
21793
21793
|
}
|
|
@@ -21859,10 +21859,10 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
21859
21859
|
})), this.on("error", (() => {
|
|
21860
21860
|
this._sourceErrored = this._source.loaded();
|
|
21861
21861
|
})), this._source = ((e, t, n, r) => {
|
|
21862
|
-
let i = new (
|
|
21862
|
+
let i = new (Se(t.type))(e, t, n, r);
|
|
21863
21863
|
if (i.id !== e) throw Error(`Expected Source id to be ${e} instead of ${i.id}`);
|
|
21864
21864
|
return i;
|
|
21865
|
-
})(e, n, r, this), this._inViewTiles = new Ye(), this._outOfViewCache = new t.av(0, ((e) => this._unloadTile(e))), this._timers = {}, this._maxTileCacheSize = null, this._maxTileCacheZoomLevels = null, this._rasterFadeDuration = 0, this._maxFadingAncestorLevels = 5, this._state = new
|
|
21865
|
+
})(e, n, r, this), this._inViewTiles = new Ye(), this._outOfViewCache = new t.av(0, ((e) => this._unloadTile(e))), this._timers = {}, this._maxTileCacheSize = null, this._maxTileCacheZoomLevels = null, this._rasterFadeDuration = 0, this._maxFadingAncestorLevels = 5, this._state = new Ae(), this._didEmitContent = !1, this._updated = !1;
|
|
21866
21866
|
}
|
|
21867
21867
|
onAdd(e) {
|
|
21868
21868
|
var t;
|
|
@@ -22036,7 +22036,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
22036
22036
|
let c = l(), u = t.at(n);
|
|
22037
22037
|
for (let t of n) {
|
|
22038
22038
|
let n = e.getTileById(t.key);
|
|
22039
|
-
n.fadingDirection !==
|
|
22039
|
+
n.fadingDirection !== Oe.Departing && n.fadeOpacity !== 0 || n.resetFadeLogic(), Ge(e, n, r, c, i, a, s) || Ke(e, n, r, c, o, s) || z(n, u, c, s) || n.resetFadeLogic();
|
|
22040
22040
|
}
|
|
22041
22041
|
}(this._inViewTiles, r, o, this._maxFadingAncestorLevels, this._source.minzoom, this._source.maxzoom, this._rasterFadeDuration), s ? this._cleanUpRasterTiles(o) : this._cleanUpVectorTiles(o);
|
|
22042
22042
|
}
|
|
@@ -22085,7 +22085,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
22085
22085
|
if (n) return n;
|
|
22086
22086
|
n = this._outOfViewCache.getAndRemove(e), n && (n.resetFadeLogic(), this._setTileReloadTimer(e.key, n), n.tileID = e, this._state.initializeTileState(n, this.map ? this.map.painter : null));
|
|
22087
22087
|
let r = n;
|
|
22088
|
-
return n || (n = new
|
|
22088
|
+
return n || (n = new ke(e, this._source.tileSize * e.overscaleFactor()), this._loadTile(n, e.key, n.state)), n.uses++, this._inViewTiles.setTile(e.key, n), r || this._source.fire(new t.n("dataloading", {
|
|
22089
22089
|
tile: n,
|
|
22090
22090
|
coord: n.tileID,
|
|
22091
22091
|
dataType: "source"
|
|
@@ -23035,15 +23035,15 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
23035
23035
|
var w, A;
|
|
23036
23036
|
if (n[e.crossTileID]) return;
|
|
23037
23037
|
if (d) return void (this.placements[e.crossTileID] = new St(!1, !1, !1));
|
|
23038
|
-
let j = !1, M = !1, N = !0, ee = null,
|
|
23038
|
+
let j = !1, M = !1, N = !0, ee = null, P = {
|
|
23039
23039
|
box: null,
|
|
23040
23040
|
placeable: !1,
|
|
23041
23041
|
offscreen: null,
|
|
23042
23042
|
occluded: !1
|
|
23043
|
-
},
|
|
23044
|
-
f.textFeatureIndex ?
|
|
23045
|
-
let
|
|
23046
|
-
if (
|
|
23043
|
+
}, te = { placeable: !1 }, F = null, ne = null, re = null, ie = 0, ae = 0, oe = 0;
|
|
23044
|
+
f.textFeatureIndex ? ie = f.textFeatureIndex : e.useRuntimeCollisionCircles && (ie = e.featureIndex), f.verticalTextFeatureIndex && (ae = f.verticalTextFeatureIndex);
|
|
23045
|
+
let se = f.textBox;
|
|
23046
|
+
if (se) {
|
|
23047
23047
|
let n = (n) => {
|
|
23048
23048
|
let r = t.ax.horizontal;
|
|
23049
23049
|
if (i.allowVerticalPlacement && !n && this.prevPlacement) {
|
|
@@ -23053,21 +23053,21 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
23053
23053
|
return r;
|
|
23054
23054
|
}, a = (n, r) => {
|
|
23055
23055
|
if (i.allowVerticalPlacement && e.numVerticalGlyphVertices > 0 && f.verticalTextBox) {
|
|
23056
|
-
for (let e of i.writingModes) if (e === t.ax.vertical ? (
|
|
23057
|
-
} else
|
|
23056
|
+
for (let e of i.writingModes) if (e === t.ax.vertical ? (P = r(), te = P) : P = n(), P != null && P.placeable) break;
|
|
23057
|
+
} else P = n();
|
|
23058
23058
|
}, l = e.textAnchorOffsetStartIndex, d = e.textAnchorOffsetEndIndex;
|
|
23059
23059
|
if (d === l) {
|
|
23060
23060
|
let r = (t, n) => {
|
|
23061
23061
|
let r = this.collisionIndex.placeCollisionBox(t, _, u, D, c, S, x, o, m.predicate, O, void 0, k);
|
|
23062
23062
|
return r != null && r.placeable && (this.markUsedOrientation(i, n, e), this.placedOrientations[e.crossTileID] = n), r;
|
|
23063
23063
|
};
|
|
23064
|
-
a((() => r(
|
|
23064
|
+
a((() => r(se, t.ax.horizontal)), (() => {
|
|
23065
23065
|
let n = f.verticalTextBox;
|
|
23066
23066
|
return i.allowVerticalPlacement && e.numVerticalGlyphVertices > 0 && n ? r(n, t.ax.vertical) : {
|
|
23067
23067
|
box: null,
|
|
23068
23068
|
offscreen: null
|
|
23069
23069
|
};
|
|
23070
|
-
})), n(
|
|
23070
|
+
})), n(P == null ? void 0 : P.placeable);
|
|
23071
23071
|
} else {
|
|
23072
23072
|
let p = t.aM[(A = (w = this.prevPlacement) == null ? void 0 : w.variableOffsets[e.crossTileID]) == null ? void 0 : A.anchor], h = (t, n, a) => {
|
|
23073
23073
|
let f = t.x2 - t.x1, h = t.y2 - t.y1, g = e.textBoxScale, v = C && y === "never" ? n : null, b = null, w = _ === "never" ? 1 : 2, T = "never";
|
|
@@ -23082,41 +23082,41 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
23082
23082
|
p ? p = null : T = _;
|
|
23083
23083
|
}
|
|
23084
23084
|
return r && !b && (b = {
|
|
23085
|
-
box: this.collisionIndex.placeCollisionBox(
|
|
23085
|
+
box: this.collisionIndex.placeCollisionBox(se, "always", u, D, c, S, x, o, m.predicate, O, void 0, k).box,
|
|
23086
23086
|
offscreen: !1,
|
|
23087
23087
|
placeable: !1,
|
|
23088
23088
|
occluded: !1
|
|
23089
23089
|
}), b;
|
|
23090
23090
|
};
|
|
23091
|
-
a((() => h(
|
|
23091
|
+
a((() => h(se, f.iconBox, t.ax.horizontal)), (() => {
|
|
23092
23092
|
let n = f.verticalTextBox;
|
|
23093
|
-
return i.allowVerticalPlacement && !(
|
|
23093
|
+
return i.allowVerticalPlacement && !(P != null && P.placeable) && e.numVerticalGlyphVertices > 0 && n ? h(n, f.verticalIconBox, t.ax.vertical) : {
|
|
23094
23094
|
box: null,
|
|
23095
23095
|
occluded: !0,
|
|
23096
23096
|
offscreen: null
|
|
23097
23097
|
};
|
|
23098
|
-
})),
|
|
23099
|
-
let g = n(
|
|
23098
|
+
})), P && (j = P.placeable, N = P.offscreen);
|
|
23099
|
+
let g = n(P == null ? void 0 : P.placeable);
|
|
23100
23100
|
if (!j && this.prevPlacement) {
|
|
23101
23101
|
let t = this.prevPlacement.variableOffsets[e.crossTileID];
|
|
23102
23102
|
t && (this.variableOffsets[e.crossTileID] = t, this.markUsedJustification(i, t.anchor, e, g));
|
|
23103
23103
|
}
|
|
23104
23104
|
}
|
|
23105
23105
|
}
|
|
23106
|
-
if (
|
|
23106
|
+
if (F = P, j = F == null ? void 0 : F.placeable, N = F == null ? void 0 : F.offscreen, e.useRuntimeCollisionCircles && e.centerJustifiedTextSymbolIndex >= 0) {
|
|
23107
23107
|
let n = i.text.placedSymbolArray.get(e.centerJustifiedTextSymbolIndex), s = t.ay(i.textSizeData, p, n), u = a.get("text-padding");
|
|
23108
|
-
|
|
23108
|
+
ne = this.collisionIndex.placeCollisionCircles(_, n, i.lineVertexArray, i.glyphOffsetArray, s, c, l, r, S, m.predicate, e.collisionCircleDiameter, u, o, O), ne.circles.length && ne.collisionDetected && !r && t.w("Collisions detected, but collision boxes are not shown"), j = v || ne.circles.length > 0 && !ne.collisionDetected, N && (N = ne.offscreen);
|
|
23109
23109
|
}
|
|
23110
|
-
if (f.iconFeatureIndex && (
|
|
23110
|
+
if (f.iconFeatureIndex && (oe = f.iconFeatureIndex), f.iconBox) {
|
|
23111
23111
|
let e = (e) => this.collisionIndex.placeCollisionBox(e, y, u, D, c, S, x, s, m.predicate, O, C && ee ? ee : void 0, k);
|
|
23112
|
-
|
|
23112
|
+
te && te.placeable && f.verticalIconBox ? (re = e(f.verticalIconBox), M = re.placeable) : (re = e(f.iconBox), M = re.placeable), N && (N = re.offscreen);
|
|
23113
23113
|
}
|
|
23114
|
-
let
|
|
23115
|
-
|
|
23116
|
-
let
|
|
23117
|
-
if (j &&
|
|
23114
|
+
let ce = h || e.numHorizontalGlyphVertices === 0 && e.numVerticalGlyphVertices === 0, le = g || e.numIconVertices === 0;
|
|
23115
|
+
ce || le ? le ? ce || M && (M = j) : j = M && j : M = j = M && j;
|
|
23116
|
+
let ue = M && re.placeable;
|
|
23117
|
+
if (j && F.placeable && this.collisionIndex.insertCollisionBox(F.box, _, a.get("text-ignore-placement"), i.bucketInstanceId, te && te.placeable && ae ? ae : ie, m.ID), ue && this.collisionIndex.insertCollisionBox(re.box, y, a.get("icon-ignore-placement"), i.bucketInstanceId, oe, m.ID), ne && j && this.collisionIndex.insertCollisionCircles(ne.circles, _, a.get("text-ignore-placement"), i.bucketInstanceId, ie, m.ID), r && this.storeCollisionData(i.bucketInstanceId, b, f, F, re, ne), e.crossTileID === 0) throw Error("symbolInstance.crossTileID can't be 0");
|
|
23118
23118
|
if (i.bucketInstanceId === 0) throw Error("bucket.bucketInstanceId can't be 0");
|
|
23119
|
-
this.placements[e.crossTileID] = new St((j || T) && !(
|
|
23119
|
+
this.placements[e.crossTileID] = new St((j || T) && !(F != null && F.occluded), (M || E) && !(re != null && re.occluded), N || i.justReloaded), n[e.crossTileID] = !0;
|
|
23120
23120
|
};
|
|
23121
23121
|
if (w) {
|
|
23122
23122
|
if (e.symbolInstanceStart !== 0) throw Error("bucket.bucketInstanceId should be 0");
|
|
@@ -23816,7 +23816,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
23816
23816
|
}
|
|
23817
23817
|
getMaxBounds() {
|
|
23818
23818
|
var e, t;
|
|
23819
|
-
return ((e = this._latRange) == null ? void 0 : e.length) !== 2 || ((t = this._lngRange) == null ? void 0 : t.length) !== 2 ? null : new
|
|
23819
|
+
return ((e = this._latRange) == null ? void 0 : e.length) !== 2 || ((t = this._lngRange) == null ? void 0 : t.length) !== 2 ? null : new se([this._lngRange[0], this._latRange[0]], [this._lngRange[1], this._latRange[1]]);
|
|
23820
23820
|
}
|
|
23821
23821
|
setMaxBounds(e) {
|
|
23822
23822
|
e ? (this._lngRange = [e.getWest(), e.getEast()], this._latRange = [e.getSouth(), e.getNorth()], this.constrainInternal()) : (this._lngRange = null, this._latRange = [-t.am, t.am]);
|
|
@@ -23869,7 +23869,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
23869
23869
|
this._callbacks.calcMatrices();
|
|
23870
23870
|
}
|
|
23871
23871
|
calculateCenterFromCameraLngLatAlt(e, n, r, i) {
|
|
23872
|
-
let a = r === void 0 ? this.bearing : r, o = i = i === void 0 ? this.pitch : i, { distanceToCenter: s, clampedElevation: c } = this._distanceToCenterFromAltElevationPitch(n, this.elevation, o), { x: l, y: u } =
|
|
23872
|
+
let a = r === void 0 ? this.bearing : r, o = i = i === void 0 ? this.pitch : i, { distanceToCenter: s, clampedElevation: c } = this._distanceToCenterFromAltElevationPitch(n, this.elevation, o), { x: l, y: u } = R(o, a), d = t.a7.fromLngLat(e, n), f, p, m = t.aY(1, d.y), h = 0;
|
|
23873
23873
|
do {
|
|
23874
23874
|
if (h += 1, h > 10) break;
|
|
23875
23875
|
p = s / m, f = new t.a7(d.x + l * p, d.y + u * p), m = 1 / f.meterInMercatorCoordinateUnits();
|
|
@@ -23882,7 +23882,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
23882
23882
|
}
|
|
23883
23883
|
recalculateZoomAndCenter(e) {
|
|
23884
23884
|
if (this.elevation - e == 0) return;
|
|
23885
|
-
let n = 1 / this.worldSize, r = t.aq(1, this.center.lat) * this.worldSize, i = t.a7.fromLngLat(this.center, this.elevation), a = i.x / n, o = i.y / n, s = i.z / n, c = this.pitch, l = this.bearing, { x: u, y: d, z: f } =
|
|
23885
|
+
let n = 1 / this.worldSize, r = t.aq(1, this.center.lat) * this.worldSize, i = t.a7.fromLngLat(this.center, this.elevation), a = i.x / n, o = i.y / n, s = i.z / n, c = this.pitch, l = this.bearing, { x: u, y: d, z: f } = R(c, l), p = this.cameraToCenterDistance, m = a + p * -u, h = o + p * -d, g = s + p * f, { distanceToCenter: _, clampedElevation: v } = this._distanceToCenterFromAltElevationPitch(g / r, e, c), y = _ * r, b = new t.a7((m + u * y) * n, (h + d * y) * n, 0).toLngLat(), x = t.aq(1, b.lat), S = t.ar(this.height / 2 / Math.tan(this.fovInRadians / 2) / _ / x / this.tileSize);
|
|
23886
23886
|
this._elevation = v, this._center = b, this.setZoom(S);
|
|
23887
23887
|
}
|
|
23888
23888
|
_distanceToCenterFromAltElevationPitch(e, n, r) {
|
|
@@ -23901,7 +23901,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
23901
23901
|
}
|
|
23902
23902
|
getCameraLngLat() {
|
|
23903
23903
|
let e = t.aq(1, this.center.lat) * this.worldSize;
|
|
23904
|
-
return
|
|
23904
|
+
return Ie(this.center, this.elevation, this.pitch, this.bearing, this.cameraToCenterDistance / e).toLngLat();
|
|
23905
23905
|
}
|
|
23906
23906
|
getMercatorTileCoordinates(e) {
|
|
23907
23907
|
if (!e) return [
|
|
@@ -24370,8 +24370,8 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
24370
24370
|
o = t.Y(e[1]) * a, s = t.Y(e[0]) * a, s - o < p && (u = p / (s - o));
|
|
24371
24371
|
}
|
|
24372
24372
|
i && (c = t.X(t.Z(i[0]) * a, 0, a), l = t.X(t.Z(i[1]) * a, 0, a), l < c && (l += a), l - c < f && (d = f / (l - c)));
|
|
24373
|
-
let { x: m, y: h } =
|
|
24374
|
-
if (v) return r.center =
|
|
24373
|
+
let { x: m, y: h } = Me(a, e), g, _, v = Math.max(d || 0, u || 0);
|
|
24374
|
+
if (v) return r.center = Ne(a, new t.P(d ? (l + c) / 2 : m, u ? (s + o) / 2 : h)).wrap(), r.zoom += t.ar(v), r;
|
|
24375
24375
|
if (this._helper._latRange) {
|
|
24376
24376
|
let e = p / 2;
|
|
24377
24377
|
h - e < o && (_ = o + e), h + e > s && (_ = s - e);
|
|
@@ -24382,7 +24382,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
24382
24382
|
let r = f / 2;
|
|
24383
24383
|
n - r < c && (g = c + r), n + r > l && (g = l - r);
|
|
24384
24384
|
}
|
|
24385
|
-
return (g !== void 0 || _ !== void 0) && (r.center =
|
|
24385
|
+
return (g !== void 0 || _ !== void 0) && (r.center = Ne(a, new t.P(g == null ? m : g, _ == null ? h : _)).wrap()), r;
|
|
24386
24386
|
}, this.applyConstrain = (e, t) => this._helper.applyConstrain(e, t), this._helper = new Xt({
|
|
24387
24387
|
calcMatrices: () => this._calcMatrices(),
|
|
24388
24388
|
defaultConstrain: (e, t) => this.defaultConstrain(e, t)
|
|
@@ -24475,11 +24475,11 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
24475
24475
|
return t.aE(i, i, r), new t.P(i[0] / i[3], i[1] / i[3]);
|
|
24476
24476
|
}
|
|
24477
24477
|
getBounds() {
|
|
24478
|
-
let e = Math.max(0, this._helper._height / 2 -
|
|
24479
|
-
return new
|
|
24478
|
+
let e = Math.max(0, this._helper._height / 2 - Pe(this));
|
|
24479
|
+
return new se().extend(this.screenPointToLocation(new t.P(0, e))).extend(this.screenPointToLocation(new t.P(this._helper._width, e))).extend(this.screenPointToLocation(new t.P(this._helper._width, this._helper._height))).extend(this.screenPointToLocation(new t.P(0, this._helper._height)));
|
|
24480
24480
|
}
|
|
24481
24481
|
isPointOnMapSurface(e, t) {
|
|
24482
|
-
return t ? t.pointCoordinate(e) != null : e.y > this.height / 2 -
|
|
24482
|
+
return t ? t.pointCoordinate(e) != null : e.y > this.height / 2 - Pe(this);
|
|
24483
24483
|
}
|
|
24484
24484
|
calculatePosMatrix(e, n = !1, r) {
|
|
24485
24485
|
var i;
|
|
@@ -24488,7 +24488,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
24488
24488
|
let e = o.get(a);
|
|
24489
24489
|
return r ? e.f32 : e.f64;
|
|
24490
24490
|
}
|
|
24491
|
-
let s =
|
|
24491
|
+
let s = Fe(e, this.worldSize);
|
|
24492
24492
|
t.U(s, n ? this._alignedProjMatrix : this._viewProjMatrix, s);
|
|
24493
24493
|
let c = {
|
|
24494
24494
|
f64: s,
|
|
@@ -24499,7 +24499,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
24499
24499
|
calculateFogMatrix(e) {
|
|
24500
24500
|
let n = e.key, r = this._fogMatrixCacheF32;
|
|
24501
24501
|
if (r.has(n)) return r.get(n);
|
|
24502
|
-
let i =
|
|
24502
|
+
let i = Fe(e, this.worldSize);
|
|
24503
24503
|
return t.U(i, this._fogMatrix, i), r.set(n, new Float32Array(i)), r.get(n);
|
|
24504
24504
|
}
|
|
24505
24505
|
calculateCenterFromCameraLngLatAlt(e, t, n, r) {
|
|
@@ -24507,14 +24507,14 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
24507
24507
|
}
|
|
24508
24508
|
_calculateNearFarZIfNeeded(e, n, r) {
|
|
24509
24509
|
if (!this._helper.autoCalculateNearFarZ) return;
|
|
24510
|
-
let i = Math.min(this.elevation, this.minElevationForCurrentTile, this.getCameraAltitude() - 100), a = e - i * this._helper._pixelPerMeter / Math.cos(n), o = i < 0 ? a : e, s = Math.PI / 2 + this.pitchInRadians, c = t.an(this.fov) * (Math.abs(Math.cos(t.an(this.roll))) * this.height + Math.abs(Math.sin(t.an(this.roll))) * this.width) / this.height * (.5 + r.y / this.height), l = Math.sin(c) * o / Math.sin(t.al(Math.PI - s - c, .01, Math.PI - .01)), u =
|
|
24510
|
+
let i = Math.min(this.elevation, this.minElevationForCurrentTile, this.getCameraAltitude() - 100), a = e - i * this._helper._pixelPerMeter / Math.cos(n), o = i < 0 ? a : e, s = Math.PI / 2 + this.pitchInRadians, c = t.an(this.fov) * (Math.abs(Math.cos(t.an(this.roll))) * this.height + Math.abs(Math.sin(t.an(this.roll))) * this.width) / this.height * (.5 + r.y / this.height), l = Math.sin(c) * o / Math.sin(t.al(Math.PI - s - c, .01, Math.PI - .01)), u = Pe(this), d = Math.atan(u / this._helper.cameraToCenterDistance), f = t.an(.75), p = d > f ? 2 * d * (.5 + r.y / (2 * u)) : f, m = Math.sin(p) * o / Math.sin(t.al(Math.PI - s - p, .01, Math.PI - .01)), h = Math.min(l, m);
|
|
24511
24511
|
this._helper._farZ = 1.01 * (Math.cos(Math.PI / 2 - n) * h + o), this._helper._nearZ = this._helper._height / 50;
|
|
24512
24512
|
}
|
|
24513
24513
|
_calcMatrices() {
|
|
24514
24514
|
if (!this._helper._height) return;
|
|
24515
|
-
let e = this.centerOffset, n =
|
|
24515
|
+
let e = this.centerOffset, n = Me(this.worldSize, this.center), r = n.x, i = n.y;
|
|
24516
24516
|
this._helper._pixelPerMeter = t.aq(1, this.center.lat) * this.worldSize;
|
|
24517
|
-
let a = t.an(Math.min(this.pitch,
|
|
24517
|
+
let a = t.an(Math.min(this.pitch, je)), o = Math.max(this._helper.cameraToCenterDistance / 2, this._helper.cameraToCenterDistance + this._helper._elevation * this._helper._pixelPerMeter / Math.cos(a)), s;
|
|
24518
24518
|
var c, l;
|
|
24519
24519
|
this._calculateNearFarZIfNeeded(o, a, e), s = /* @__PURE__ */ new Float64Array(16), t.bc(s, this.fovInRadians, this._helper._width / this._helper._height, this._helper._nearZ, this._helper._farZ), this._invProjMatrix = /* @__PURE__ */ new Float64Array(16), (c = this._invProjMatrix)[0] = 1 / (l = s)[0], c[1] = 0, c[2] = 0, c[3] = 0, c[4] = 0, c[5] = 1 / l[5], c[6] = 0, c[7] = 0, c[8] = 0, c[9] = 0, c[10] = 0, c[11] = 1 / l[14], c[12] = 0, c[13] = 0, c[14] = -1, c[15] = l[10] / l[14], s[8] = 2 * -e.x / this._helper._width, s[9] = 2 * e.y / this._helper._height, this._projectionMatrix = t.bd(s), t.S(s, s, [
|
|
24520
24520
|
1,
|
|
@@ -24601,7 +24601,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
24601
24601
|
}
|
|
24602
24602
|
getCameraLngLat() {
|
|
24603
24603
|
let e = t.aq(1, this.center.lat) * this.worldSize;
|
|
24604
|
-
return
|
|
24604
|
+
return Ie(this.center, this.elevation, this.pitch, this.bearing, this._helper.cameraToCenterDistance / e).toLngLat();
|
|
24605
24605
|
}
|
|
24606
24606
|
lngLatToCameraDepth(e, n) {
|
|
24607
24607
|
let r = t.a7.fromLngLat(e), i = [
|
|
@@ -24684,7 +24684,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
24684
24684
|
let n = new t.a3(0, 0, 0, 0, 0), r = this.getProjectionData({
|
|
24685
24685
|
overscaledTileID: n,
|
|
24686
24686
|
applyGlobeMatrix: e
|
|
24687
|
-
}), i =
|
|
24687
|
+
}), i = Fe(n, this.worldSize);
|
|
24688
24688
|
t.U(i, this._viewProjMatrix, i), r.tileMercatorCoords = [
|
|
24689
24689
|
0,
|
|
24690
24690
|
0,
|
|
@@ -24715,11 +24715,11 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
24715
24715
|
else e.tr.setRoll(t.H.number(e.startEulerAngles.roll, e.endEulerAngles.roll, e.k)), e.tr.setPitch(t.H.number(e.startEulerAngles.pitch, e.endEulerAngles.pitch, e.k)), e.tr.setBearing(t.H.number(e.startEulerAngles.bearing, e.endEulerAngles.bearing, e.k));
|
|
24716
24716
|
}
|
|
24717
24717
|
function rn(e, n, r, i, a) {
|
|
24718
|
-
let o = a.padding, s =
|
|
24718
|
+
let o = a.padding, s = Me(a.worldSize, r.getNorthWest()), c = Me(a.worldSize, r.getNorthEast()), l = Me(a.worldSize, r.getSouthEast()), u = Me(a.worldSize, r.getSouthWest()), d = t.an(-i), f = s.rotate(d), p = c.rotate(d), m = l.rotate(d), h = u.rotate(d), g = new t.P(Math.max(f.x, p.x, h.x, m.x), Math.max(f.y, p.y, h.y, m.y)), _ = new t.P(Math.min(f.x, p.x, h.x, m.x), Math.min(f.y, p.y, h.y, m.y)), v = g.sub(_), y = (a.width - (o.left + o.right + n.left + n.right)) / v.x, b = (a.height - (o.top + o.bottom + n.top + n.bottom)) / v.y;
|
|
24719
24719
|
if (b < 0 || y < 0) return void tn();
|
|
24720
24720
|
let x = Math.min(t.ar(a.scale * Math.min(y, b)), e.maxZoom), S = t.P.convert(e.offset), C = new t.P((n.left - n.right) / 2, (n.top - n.bottom) / 2).rotate(t.an(i)), w = S.add(C).mult(a.scale / t.ao(x));
|
|
24721
24721
|
return {
|
|
24722
|
-
center:
|
|
24722
|
+
center: Ne(a.worldSize, s.add(l).div(2).sub(w)),
|
|
24723
24723
|
zoom: x,
|
|
24724
24724
|
bearing: i
|
|
24725
24725
|
};
|
|
@@ -24729,7 +24729,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
24729
24729
|
return !1;
|
|
24730
24730
|
}
|
|
24731
24731
|
handlePanInertia(e, t) {
|
|
24732
|
-
let n = e.mag(), r = Math.abs(
|
|
24732
|
+
let n = e.mag(), r = Math.abs(Pe(t));
|
|
24733
24733
|
return {
|
|
24734
24734
|
easingOffset: e.mult(Math.min(.75 * r / n, 1)),
|
|
24735
24735
|
easingCenter: t.center
|
|
@@ -24758,7 +24758,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
24758
24758
|
bearing: n.bearing === void 0 ? e.bearing : n.bearing
|
|
24759
24759
|
}, s = n.zoom !== void 0, c = !e.isPaddingEqual(n.padding), l = !1, u = s ? +n.zoom : e.zoom, d = e.centerPoint.add(n.offsetAsPoint), f = e.screenPointToLocation(d), { center: p, zoom: m } = e.applyConstrain(t.W.convert(n.center || f), u == null ? r : u);
|
|
24760
24760
|
Jt(e, p);
|
|
24761
|
-
let h =
|
|
24761
|
+
let h = Me(e.worldSize, f), g = Me(e.worldSize, p).sub(h), _ = t.ao(m - r);
|
|
24762
24762
|
return l = m !== r, {
|
|
24763
24763
|
easeFunc: (s) => {
|
|
24764
24764
|
if (l && e.setZoom(t.H.number(r, m, s)), t.bn(a, o) || nn({
|
|
@@ -24769,7 +24769,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
24769
24769
|
useSlerp: a.roll != o.roll
|
|
24770
24770
|
}), c && (e.interpolatePadding(i, n.padding, s), d = e.centerPoint.add(n.offsetAsPoint)), n.around) e.setLocationAtPoint(n.around, n.aroundPoint);
|
|
24771
24771
|
else {
|
|
24772
|
-
let n = t.ao(e.zoom - r), i = (m > r ? Math.min(2, _) : Math.max(.5, _)) ** (1 - s), a =
|
|
24772
|
+
let n = t.ao(e.zoom - r), i = (m > r ? Math.min(2, _) : Math.max(.5, _)) ** (1 - s), a = Ne(e.worldSize, h.add(g.mult(s * i)).mult(n));
|
|
24773
24773
|
e.setLocationAtPoint(e.renderWorldCopies ? a.wrap() : a, d);
|
|
24774
24774
|
}
|
|
24775
24775
|
},
|
|
@@ -24780,7 +24780,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
24780
24780
|
handleFlyTo(e, n) {
|
|
24781
24781
|
let r = n.zoom !== void 0, i = e.zoom, a = e.applyConstrain(t.W.convert(n.center || n.locationAtOffset), r ? +n.zoom : i), o = a.center, s = a.zoom;
|
|
24782
24782
|
Jt(e, o);
|
|
24783
|
-
let c =
|
|
24783
|
+
let c = Me(e.worldSize, n.locationAtOffset), l = Me(e.worldSize, o).sub(c), u = l.mag(), d = t.ao(s - i), f;
|
|
24784
24784
|
if (n.minZoom !== void 0) {
|
|
24785
24785
|
let r = Math.min(+n.minZoom, i, s), a = e.applyConstrain(o, r).zoom;
|
|
24786
24786
|
f = t.ao(a - i);
|
|
@@ -24788,7 +24788,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
24788
24788
|
return {
|
|
24789
24789
|
easeFunc: (n, r, a, u) => {
|
|
24790
24790
|
e.setZoom(n === 1 ? s : i + t.ar(r));
|
|
24791
|
-
let d = n === 1 ? o :
|
|
24791
|
+
let d = n === 1 ? o : Ne(e.worldSize, c.add(l.mult(a)).mult(r));
|
|
24792
24792
|
e.setLocationAtPoint(e.renderWorldCopies ? d.wrap() : d, u);
|
|
24793
24793
|
},
|
|
24794
24794
|
scaleOfZoom: d,
|
|
@@ -25849,7 +25849,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
25849
25849
|
0,
|
|
25850
25850
|
-1,
|
|
25851
25851
|
0
|
|
25852
|
-
]) && (u[1] = -90, u[0] = -180, u[2] = 180), new
|
|
25852
|
+
]) && (u[1] = -90, u[0] = -180, u[2] = 180), new se(u);
|
|
25853
25853
|
}
|
|
25854
25854
|
calculateCenterFromCameraLngLatAlt(e, t, n, r) {
|
|
25855
25855
|
return this._helper.calculateCenterFromCameraLngLatAlt(e, t, n, r);
|
|
@@ -26524,9 +26524,9 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
26524
26524
|
let t = this.tileManagers[e].getSource().type;
|
|
26525
26525
|
t !== "vector" && t !== "geojson" || this.tileManagers[e].reload();
|
|
26526
26526
|
}
|
|
26527
|
-
}, this.map = e, this.dispatcher = new
|
|
26527
|
+
}, this.map = e, this.dispatcher = new te(P(), e._getMapId()), this.dispatcher.registerMessageHandler("GG", ((e, t) => this.getGlyphs(e, t))), this.dispatcher.registerMessageHandler("GI", ((e, t) => this.getImages(e, t))), this.dispatcher.registerMessageHandler("GDA", ((e, t) => this.getDashes(e, t))), this.imageManager = new _(), this.imageManager.setEventedParent(this);
|
|
26528
26528
|
let a = ((r = e._container) == null ? void 0 : r.lang) || typeof document < "u" && ((i = document.documentElement) == null ? void 0 : i.lang) || void 0;
|
|
26529
|
-
this.glyphManager = new C(e._requestManager, n.localIdeographFontFamily, a), this.lineAtlas = new k(256, 512), this.crossTileSymbolIndex = new zt(), this._setInitialValues(), this._resetUpdates(), this.dispatcher.broadcast("SR", t.bO()),
|
|
26529
|
+
this.glyphManager = new C(e._requestManager, n.localIdeographFontFamily, a), this.lineAtlas = new k(256, 512), this.crossTileSymbolIndex = new zt(), this._setInitialValues(), this._resetUpdates(), this.dispatcher.broadcast("SR", t.bO()), Ee().on(Ce, this._rtlPluginLoaded), this.on("data", ((e) => {
|
|
26530
26530
|
if (e.dataType !== "source" || e.sourceDataType !== "metadata") return;
|
|
26531
26531
|
let t = this.tileManagers[e.sourceId];
|
|
26532
26532
|
if (!t) return;
|
|
@@ -27097,11 +27097,11 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
27097
27097
|
layers: s,
|
|
27098
27098
|
globalState: this._globalState
|
|
27099
27099
|
});
|
|
27100
|
-
for (let t in this.tileManagers) n.layers && !i[t] || a.push(
|
|
27100
|
+
for (let t in this.tileManagers) n.layers && !i[t] || a.push(re(this.tileManagers[t], this._layers, o, e, c, r, this.map.terrain ? (e, t, n) => this.map.terrain.getElevation(e, t, n) : void 0));
|
|
27101
27101
|
return this.placement && a.push(function(e, t, n, r, i, a, o) {
|
|
27102
27102
|
let s = {}, c = a.queryRenderedSymbols(r), l = [];
|
|
27103
27103
|
for (let e of Object.keys(c).map(Number)) l.push(o[e]);
|
|
27104
|
-
l.sort(
|
|
27104
|
+
l.sort(ie);
|
|
27105
27105
|
for (let n of l) {
|
|
27106
27106
|
let r = n.featureIndex.lookupSymbolFeatures(c[n.bucketInstanceId], t, n.bucketIndex, n.sourceLayerIndex, {
|
|
27107
27107
|
filterSpec: i.filter,
|
|
@@ -27122,7 +27122,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
27122
27122
|
}
|
|
27123
27123
|
}
|
|
27124
27124
|
return function(e, t, n) {
|
|
27125
|
-
for (let r in e) for (let i of e[r])
|
|
27125
|
+
for (let r in e) for (let i of e[r]) ae(i, n[t[r].source]);
|
|
27126
27126
|
return e;
|
|
27127
27127
|
}(s, e, n);
|
|
27128
27128
|
}(this._layers, o, this.tileManagers, e, c, this.placement.collisionIndex, this.placement.retainedQueryData)), this._flattenAndSortRenderedFeatures(a);
|
|
@@ -27253,7 +27253,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
27253
27253
|
}, i)));
|
|
27254
27254
|
}
|
|
27255
27255
|
_remove(e = !0) {
|
|
27256
|
-
this._frameRequest && (this._frameRequest.abort(), this._frameRequest = null), this._loadStyleRequest && (this._loadStyleRequest.abort(), this._loadStyleRequest = null), this._spriteRequest && (this._spriteRequest.abort(), this._spriteRequest = null),
|
|
27256
|
+
this._frameRequest && (this._frameRequest.abort(), this._frameRequest = null), this._loadStyleRequest && (this._loadStyleRequest.abort(), this._loadStyleRequest = null), this._spriteRequest && (this._spriteRequest.abort(), this._spriteRequest = null), Ee().off(Ce, this._rtlPluginLoaded);
|
|
27257
27257
|
for (let e in this._layers) this._layers[e].setEventedParent(null);
|
|
27258
27258
|
for (let e in this.tileManagers) {
|
|
27259
27259
|
let t = this.tileManagers[e];
|
|
@@ -28687,36 +28687,36 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
28687
28687
|
if (!l) continue;
|
|
28688
28688
|
let d = a ? l.text : l.icon;
|
|
28689
28689
|
if (!(d != null && d.segments.get().length) || !d.hasVisibleVertices) continue;
|
|
28690
|
-
let f = d.programConfigurations.get(r.id), h = a || l.sdfIcons, g = a ? l.textSizeData : l.iconSizeData, T = b || v.pitch !== 0, k = e.useProgram(_i(h, a, l), f), A = t.aw(g, v.zoom), j = (m = e.style.map.terrain) == null ? void 0 : m.getTerrainData(c), M, N, ee,
|
|
28691
|
-
if (a) N = i.glyphAtlasTexture, ee = _.LINEAR, M = i.glyphAtlasTexture.size, l.iconsInText && (
|
|
28690
|
+
let f = d.programConfigurations.get(r.id), h = a || l.sdfIcons, g = a ? l.textSizeData : l.iconSizeData, T = b || v.pitch !== 0, k = e.useProgram(_i(h, a, l), f), A = t.aw(g, v.zoom), j = (m = e.style.map.terrain) == null ? void 0 : m.getTerrainData(c), M, N, ee, P, te = [0, 0], F = null;
|
|
28691
|
+
if (a) N = i.glyphAtlasTexture, ee = _.LINEAR, M = i.glyphAtlasTexture.size, l.iconsInText && (te = i.imageAtlasTexture.size, F = i.imageAtlasTexture, P = T || e.options.rotating || e.options.zooming || g.kind === "composite" || g.kind === "camera" ? _.LINEAR : _.NEAREST);
|
|
28692
28692
|
else {
|
|
28693
28693
|
let t = r.layout.get("icon-size").constantOr(0) !== 1 || l.iconsNeedLinear;
|
|
28694
28694
|
N = i.imageAtlasTexture, ee = h || e.options.rotating || e.options.zooming || t || T ? _.LINEAR : _.NEAREST, M = i.imageAtlasTexture.size;
|
|
28695
28695
|
}
|
|
28696
|
-
let
|
|
28696
|
+
let ne = t.aK(i, 1, e.transform.zoom), re = $e(y, e.transform, ne), ie = et(b, y, e.transform, ne), ae = t.aL(v, i, o, s), oe = v.getProjectionData({
|
|
28697
28697
|
overscaledTileID: c,
|
|
28698
28698
|
applyGlobeMatrix: !p,
|
|
28699
28699
|
applyTerrainMatrix: !0
|
|
28700
|
-
}),
|
|
28700
|
+
}), se = E && l.hasTextData(), ce = r.layout.get("icon-text-fit") !== "none" && se && l.hasIconData();
|
|
28701
28701
|
if (x) {
|
|
28702
28702
|
let n = t.O();
|
|
28703
|
-
H(n,
|
|
28703
|
+
H(n, re);
|
|
28704
28704
|
let i = e.style.map.terrain ? (t, n) => e.style.map.terrain.getElevation(c, t, n) : null;
|
|
28705
|
-
it(l, e, a,
|
|
28705
|
+
it(l, e, a, re, n, b, u, r.layout.get("text-rotation-alignment") === "map", c.toUnwrapped(), v.width, v.height, ae, i);
|
|
28706
28706
|
}
|
|
28707
|
-
let
|
|
28708
|
-
|
|
28709
|
-
let
|
|
28707
|
+
let le = a && E || ce, ue = x || le ? pi : b ? re : e.transform.clipSpaceToPixelsMatrix, de = h && r.paint.get(a ? "text-halo-width" : "icon-halo-width").constantOr(1) !== 0, fe;
|
|
28708
|
+
fe = h ? l.iconsInText ? yr(g.kind, A, S, b, x, le, e, ue, ie, ae, M, te, O) : vr(g.kind, A, S, b, x, le, e, ue, ie, ae, a, M, de, O) : _r(g.kind, A, S, b, x, le, e, ue, ie, ae, a, M, O);
|
|
28709
|
+
let pe = {
|
|
28710
28710
|
program: k,
|
|
28711
28711
|
buffers: d,
|
|
28712
|
-
uniformValues:
|
|
28713
|
-
projectionData:
|
|
28712
|
+
uniformValues: fe,
|
|
28713
|
+
projectionData: oe,
|
|
28714
28714
|
atlasTexture: N,
|
|
28715
|
-
atlasTextureIcon:
|
|
28715
|
+
atlasTextureIcon: F,
|
|
28716
28716
|
atlasInterpolation: ee,
|
|
28717
|
-
atlasInterpolationIcon:
|
|
28717
|
+
atlasInterpolationIcon: P,
|
|
28718
28718
|
isSDF: h,
|
|
28719
|
-
hasHalo:
|
|
28719
|
+
hasHalo: de
|
|
28720
28720
|
};
|
|
28721
28721
|
if (C && l.canOverlap) {
|
|
28722
28722
|
w = !0;
|
|
@@ -28724,13 +28724,13 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
28724
28724
|
for (let n of e) D.push({
|
|
28725
28725
|
segments: new t.aV([n]),
|
|
28726
28726
|
sortKey: n.sortKey,
|
|
28727
|
-
state:
|
|
28727
|
+
state: pe,
|
|
28728
28728
|
terrainData: j
|
|
28729
28729
|
});
|
|
28730
28730
|
} else D.push({
|
|
28731
28731
|
segments: d.segments,
|
|
28732
28732
|
sortKey: 0,
|
|
28733
|
-
state:
|
|
28733
|
+
state: pe,
|
|
28734
28734
|
terrainData: j
|
|
28735
28735
|
});
|
|
28736
28736
|
}
|
|
@@ -28969,7 +28969,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
28969
28969
|
parentScaleBy: o,
|
|
28970
28970
|
parentTopLeft: [e.tileID.canonical.x * o % 1, e.tileID.canonical.y * o % 1],
|
|
28971
28971
|
fadeValues: function(e, n, r) {
|
|
28972
|
-
let i = l(), a = (i - n.timeAdded) / r, o = e.fadingDirection ===
|
|
28972
|
+
let i = l(), a = (i - n.timeAdded) / r, o = e.fadingDirection === Oe.Incoming, s = t.al((i - e.timeAdded) / r, 0, 1), c = t.al(1 - a, 0, 1), u = o ? s : c;
|
|
28973
28973
|
return {
|
|
28974
28974
|
tileOpacity: u,
|
|
28975
28975
|
parentTileOpacity: o ? c : s,
|
|
@@ -29276,7 +29276,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
29276
29276
|
raster: function(e, t, n, r, i) {
|
|
29277
29277
|
if (e.renderPass !== "translucent" || n.paint.get("raster-opacity") === 0 || !r.length) return;
|
|
29278
29278
|
let { isRenderingToTexture: a } = i, o = t.getSource(), s = e.style.projection.useSubdivision;
|
|
29279
|
-
if (o instanceof
|
|
29279
|
+
if (o instanceof ve) Ii(e, t, n, r, null, !1, !1, o.tileCoords, o.flippedWindingOrder, a);
|
|
29280
29280
|
else if (s) {
|
|
29281
29281
|
let [i, o, s] = e.stencilConfigForOverlapTwoPass(r);
|
|
29282
29282
|
Ii(e, t, n, s, i, !1, !0, Fi, !1, a), Ii(e, t, n, s, o, !0, !0, Fi, !1, a);
|
|
@@ -29313,7 +29313,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
29313
29313
|
},
|
|
29314
29314
|
sky: function(e, t) {
|
|
29315
29315
|
let n = e.context, r = n.gl, i = ((e, t, n) => {
|
|
29316
|
-
let r = Math.cos(t.rollInRadians), i = Math.sin(t.rollInRadians), a =
|
|
29316
|
+
let r = Math.cos(t.rollInRadians), i = Math.sin(t.rollInRadians), a = Pe(t), o = t.getProjectionData({
|
|
29317
29317
|
overscaledTileID: null,
|
|
29318
29318
|
applyGlobeMatrix: !0,
|
|
29319
29319
|
applyTerrainMatrix: !0
|
|
@@ -31345,7 +31345,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
31345
31345
|
return this.jumpTo({ roll: e }, t), this;
|
|
31346
31346
|
}
|
|
31347
31347
|
cameraForBounds(e, t) {
|
|
31348
|
-
e =
|
|
31348
|
+
e = se.convert(e).adjustAntiMeridian();
|
|
31349
31349
|
let n = (t == null ? void 0 : t.bearing) || 0;
|
|
31350
31350
|
return this._cameraForBoxAndBearing(e.getNorthWest(), e.getSouthEast(), n, t);
|
|
31351
31351
|
}
|
|
@@ -31371,7 +31371,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
31371
31371
|
}
|
|
31372
31372
|
let o = t.e(a, i.padding);
|
|
31373
31373
|
i.padding = o;
|
|
31374
|
-
let s = this.transform, c = new
|
|
31374
|
+
let s = this.transform, c = new se(e, n), l = this.cameraHelper.cameraForBoxAndBearing(i, o, c, r, s);
|
|
31375
31375
|
return l && this._zoomSnap && (l.zoom = t.cw(l.zoom, this._zoomSnap, -1)), l;
|
|
31376
31376
|
}
|
|
31377
31377
|
fitBounds(e, t, n) {
|
|
@@ -31710,7 +31710,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
31710
31710
|
reparseOverscaled: !1,
|
|
31711
31711
|
terrain: n,
|
|
31712
31712
|
calculateTileZoom: this.tileManager._source.calculateTileZoom
|
|
31713
|
-
})) r[i.key] = !0, this._renderableTilesKeys.push(i.key), this._tiles[i.key] || (i.terrainRttPosMatrix32f = /* @__PURE__ */ new Float64Array(16), t.c7(i.terrainRttPosMatrix32f, 0, t.a6, t.a6, 0, 0, 1), this._tiles[i.key] = new
|
|
31713
|
+
})) r[i.key] = !0, this._renderableTilesKeys.push(i.key), this._tiles[i.key] || (i.terrainRttPosMatrix32f = /* @__PURE__ */ new Float64Array(16), t.c7(i.terrainRttPosMatrix32f, 0, t.a6, t.a6, 0, 0, 1), this._tiles[i.key] = new ke(i, this.tileSize), this._lastTilesetChange = l());
|
|
31714
31714
|
for (let e in this._tiles) r[e] || delete this._tiles[e];
|
|
31715
31715
|
}
|
|
31716
31716
|
freeRtt(e) {
|
|
@@ -32047,7 +32047,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
32047
32047
|
this._stacks = [], this._prevType = null, this._rttTiles = [], this._renderableTiles = this.terrain.tileManager.getRenderableTiles(), this._renderableLayerIds = e._order.filter(((n) => !e._layers[n].isHidden(t))), this._coordsAscending = {};
|
|
32048
32048
|
for (let t in e.tileManagers) {
|
|
32049
32049
|
this._coordsAscending[t] = {};
|
|
32050
|
-
let n = e.tileManagers[t].getVisibleCoordinates(), r = e.tileManagers[t].getSource(), a = r instanceof
|
|
32050
|
+
let n = e.tileManagers[t].getVisibleCoordinates(), r = e.tileManagers[t].getSource(), a = r instanceof ve ? r.terrainTileRanges : null;
|
|
32051
32051
|
for (let e of n) {
|
|
32052
32052
|
let n = this.terrain.tileManager.getTerrainCoords(e, a);
|
|
32053
32053
|
for (let e in n) (i = this._coordsAscending[t])[e] || (i[e] = []), this._coordsAscending[t][e].push(n[e]);
|
|
@@ -32318,7 +32318,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
32318
32318
|
return this.transform.getMaxBounds();
|
|
32319
32319
|
}
|
|
32320
32320
|
setMaxBounds(e) {
|
|
32321
|
-
return this.transform.setMaxBounds(
|
|
32321
|
+
return this.transform.setMaxBounds(se.convert(e)), this._update();
|
|
32322
32322
|
}
|
|
32323
32323
|
setMinZoom(e) {
|
|
32324
32324
|
if ((e = e == null ? -2 : e) >= -2 && e <= this.transform.maxZoom) {
|
|
@@ -32612,8 +32612,8 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
32612
32612
|
if (n) {
|
|
32613
32613
|
let r = this.getSource(n);
|
|
32614
32614
|
if (!r) throw Error(`There is no source with ID "${n}", cannot set LOD parameters`);
|
|
32615
|
-
r.calculateTileZoom =
|
|
32616
|
-
} else for (let n in this.style.tileManagers) this.style.tileManagers[n].getSource().calculateTileZoom =
|
|
32615
|
+
r.calculateTileZoom = ze(Math.max(1, e), Math.max(1, t));
|
|
32616
|
+
} else for (let n in this.style.tileManagers) this.style.tileManagers[n].getSource().calculateTileZoom = ze(Math.max(1, e), Math.max(1, t));
|
|
32617
32617
|
return this._update(!0), this;
|
|
32618
32618
|
}
|
|
32619
32619
|
refreshTiles(e, n) {
|
|
@@ -33338,7 +33338,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
33338
33338
|
return wo(new t.P(0, 0));
|
|
33339
33339
|
}
|
|
33340
33340
|
let To = n;
|
|
33341
|
-
e.AJAXError = t.cG, e.EXTENT = t.a6, e.Event = t.n, e.Evented = t.E, e.LngLat = t.W, e.MercatorCoordinate = t.a7, e.Point = t.P, e.addProtocol = t.cH, e.config = t.c, e.removeProtocol = t.cI, e.AttributionControl = Ya, e.BoxZoomHandler = ma, e.CanvasSource =
|
|
33341
|
+
e.AJAXError = t.cG, e.EXTENT = t.a6, e.Event = t.n, e.Evented = t.E, e.LngLat = t.W, e.MercatorCoordinate = t.a7, e.Point = t.P, e.addProtocol = t.cH, e.config = t.c, e.removeProtocol = t.cI, e.AttributionControl = Ya, e.BoxZoomHandler = ma, e.CanvasSource = be, e.CooperativeGesturesHandler = Wa, e.DoubleClickZoomHandler = Ra, e.DragPanHandler = Va, e.DragRotateHandler = Ha, e.EdgeInsets = qt, e.FullscreenControl = class extends t.E {
|
|
33342
33342
|
constructor(e = {}) {
|
|
33343
33343
|
var n;
|
|
33344
33344
|
super(), this._onFullscreenChange = () => {
|
|
@@ -33382,7 +33382,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
33382
33382
|
_togglePseudoFullScreen() {
|
|
33383
33383
|
this._container.classList.toggle("maplibregl-pseudo-fullscreen"), this._handleFullscreenChange(), this._map.resize();
|
|
33384
33384
|
}
|
|
33385
|
-
}, e.GeoJSONSource =
|
|
33385
|
+
}, e.GeoJSONSource = _e, e.GeolocateControl = class extends t.E {
|
|
33386
33386
|
constructor(e) {
|
|
33387
33387
|
super(), this._onSuccess = (e) => {
|
|
33388
33388
|
if (this._map) {
|
|
@@ -33402,7 +33402,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
33402
33402
|
this.options.showUserLocation && this._watchState !== "OFF" && this._updateMarker(e), this.options.trackUserLocation && this._watchState !== "ACTIVE_LOCK" || this._updateCamera(e), this.options.showUserLocation && this._dotElement.classList.remove("maplibregl-user-location-dot-stale"), this.fire(new t.n("geolocate", e)), this._finish();
|
|
33403
33403
|
}
|
|
33404
33404
|
}, this._updateCamera = (e) => {
|
|
33405
|
-
let n = new t.W(e.coords.longitude, e.coords.latitude), r = e.coords.accuracy, i = this._map.getBearing(), a = t.e({ bearing: i }, this.options.fitBoundsOptions), o =
|
|
33405
|
+
let n = new t.W(e.coords.longitude, e.coords.latitude), r = e.coords.accuracy, i = this._map.getBearing(), a = t.e({ bearing: i }, this.options.fitBoundsOptions), o = se.fromLngLat(n, r);
|
|
33406
33406
|
this._map.fitBounds(o, a, { geolocateSource: !0 });
|
|
33407
33407
|
}, this._updateMarker = (e) => {
|
|
33408
33408
|
if (e) {
|
|
@@ -33554,7 +33554,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
33554
33554
|
onRemove() {
|
|
33555
33555
|
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;
|
|
33556
33556
|
}
|
|
33557
|
-
}, e.Hash = Qi, e.ImageSource =
|
|
33557
|
+
}, e.Hash = Qi, e.ImageSource = ve, e.KeyboardHandler = Pa, e.LngLatBounds = se, e.LogoControl = Xa, e.Map = so, e.MapLibreMap = so, e.MapMouseEvent = ca, e.MapTouchEvent = la, e.MapWheelEvent = ua, e.Marker = ho, e.NavigationControl = class {
|
|
33558
33558
|
constructor(e) {
|
|
33559
33559
|
this._updateZoomButtons = () => {
|
|
33560
33560
|
let e = this._map.getZoom(), t = e === this._map.getMaxZoom(), n = e === this._map.getMinZoom();
|
|
@@ -33680,7 +33680,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
33680
33680
|
let e = this._container.querySelector(Co);
|
|
33681
33681
|
e && e.focus();
|
|
33682
33682
|
}
|
|
33683
|
-
}, e.RasterDEMTileSource =
|
|
33683
|
+
}, e.RasterDEMTileSource = de, e.RasterTileSource = ue, e.ScaleControl = class {
|
|
33684
33684
|
constructor(e) {
|
|
33685
33685
|
this._onMove = () => {
|
|
33686
33686
|
bo(this._map, this._container, this.options);
|
|
@@ -33711,18 +33711,18 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
33711
33711
|
onRemove() {
|
|
33712
33712
|
this._container.remove(), this._map.off("terrain", this._updateTerrainIcon), this._map = void 0;
|
|
33713
33713
|
}
|
|
33714
|
-
}, e.TwoFingersTouchPitchHandler = Ma, e.TwoFingersTouchRotateHandler = Aa, e.TwoFingersTouchZoomHandler = Oa, e.TwoFingersTouchZoomRotateHandler = Ua, e.VectorTileSource =
|
|
33715
|
-
if (
|
|
33714
|
+
}, e.TwoFingersTouchPitchHandler = Ma, e.TwoFingersTouchRotateHandler = Aa, e.TwoFingersTouchZoomHandler = Oa, e.TwoFingersTouchZoomRotateHandler = Ua, e.VectorTileSource = le, e.VideoSource = ye, e.addSourceType = (e, n) => t._(void 0, void 0, void 0, (function* () {
|
|
33715
|
+
if (Se(e)) throw Error(`A source type called "${e}" already exists.`);
|
|
33716
33716
|
((e, t) => {
|
|
33717
|
-
|
|
33717
|
+
xe[e] = t;
|
|
33718
33718
|
})(e, n);
|
|
33719
33719
|
})), e.clearPrewarmedResources = function() {
|
|
33720
33720
|
let e = N;
|
|
33721
33721
|
e && (e.isPreloaded() && e.numActive() === 1 ? (e.release(A), N = 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()"));
|
|
33722
|
-
}, e.createTileMesh = fn, e.getGlobalDispatcher =
|
|
33722
|
+
}, e.createTileMesh = fn, e.getGlobalDispatcher = F, e.getMaxParallelImageRequests = function() {
|
|
33723
33723
|
return t.c.MAX_PARALLEL_IMAGE_REQUESTS;
|
|
33724
33724
|
}, e.getRTLTextPluginStatus = function() {
|
|
33725
|
-
return
|
|
33725
|
+
return Ee().getRTLTextPluginStatus();
|
|
33726
33726
|
}, e.getVersion = function() {
|
|
33727
33727
|
return To;
|
|
33728
33728
|
}, e.getWorkerCount = function() {
|
|
@@ -33730,11 +33730,11 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
33730
33730
|
}, e.getWorkerUrl = function() {
|
|
33731
33731
|
return t.c.WORKER_URL;
|
|
33732
33732
|
}, e.importScriptInWorkers = function(e) {
|
|
33733
|
-
return
|
|
33733
|
+
return F().broadcast("IS", e);
|
|
33734
33734
|
}, e.isTimeFrozen = function() {
|
|
33735
33735
|
return c.isFrozen();
|
|
33736
33736
|
}, e.now = l, e.prewarm = function() {
|
|
33737
|
-
|
|
33737
|
+
P().acquire(A);
|
|
33738
33738
|
}, e.restoreNow = function() {
|
|
33739
33739
|
c.restoreNow();
|
|
33740
33740
|
}, e.setMaxParallelImageRequests = function(e) {
|
|
@@ -33742,7 +33742,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
33742
33742
|
}, e.setNow = function(e) {
|
|
33743
33743
|
c.setNow(e);
|
|
33744
33744
|
}, e.setRTLTextPlugin = function(e, t) {
|
|
33745
|
-
return
|
|
33745
|
+
return Ee().setRTLTextPlugin(e, t);
|
|
33746
33746
|
}, e.setWorkerCount = function(e) {
|
|
33747
33747
|
j.workerCount = e;
|
|
33748
33748
|
}, e.setWorkerUrl = function(e) {
|
|
@@ -33750,7 +33750,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
33750
33750
|
};
|
|
33751
33751
|
})), e;
|
|
33752
33752
|
}));
|
|
33753
|
-
})))(),
|
|
33753
|
+
})))(), ge = Uint8Array, _e = Uint16Array, ve = Int32Array, ye = new ge([
|
|
33754
33754
|
0,
|
|
33755
33755
|
0,
|
|
33756
33756
|
0,
|
|
@@ -33783,7 +33783,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
33783
33783
|
0,
|
|
33784
33784
|
0,
|
|
33785
33785
|
0
|
|
33786
|
-
]),
|
|
33786
|
+
]), be = new ge([
|
|
33787
33787
|
0,
|
|
33788
33788
|
0,
|
|
33789
33789
|
0,
|
|
@@ -33816,7 +33816,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
33816
33816
|
13,
|
|
33817
33817
|
0,
|
|
33818
33818
|
0
|
|
33819
|
-
]),
|
|
33819
|
+
]), xe = new ge([
|
|
33820
33820
|
16,
|
|
33821
33821
|
17,
|
|
33822
33822
|
18,
|
|
@@ -33836,50 +33836,50 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__P
|
|
|
33836
33836
|
14,
|
|
33837
33837
|
1,
|
|
33838
33838
|
15
|
|
33839
|
-
]),
|
|
33840
|
-
for (var n = new
|
|
33841
|
-
for (var i = new
|
|
33839
|
+
]), Se = function(e, t) {
|
|
33840
|
+
for (var n = new _e(31), r = 0; r < 31; ++r) n[r] = t += 1 << e[r - 1];
|
|
33841
|
+
for (var i = new ve(n[30]), r = 1; r < 30; ++r) for (var a = n[r]; a < n[r + 1]; ++a) i[a] = a - n[r] << 5 | r;
|
|
33842
33842
|
return {
|
|
33843
33843
|
b: n,
|
|
33844
33844
|
r: i
|
|
33845
33845
|
};
|
|
33846
|
-
},
|
|
33847
|
-
|
|
33848
|
-
var
|
|
33849
|
-
|
|
33850
|
-
for (var
|
|
33851
|
-
var
|
|
33852
|
-
|
|
33846
|
+
}, Ce = Se(ye, 2), we = Ce.b, Te = Ce.r;
|
|
33847
|
+
we[28] = 258, Te[258] = 28;
|
|
33848
|
+
var Ee = Se(be, 0), De = Ee.b;
|
|
33849
|
+
Ee.r;
|
|
33850
|
+
for (var Oe = new _e(32768), ke = 0; ke < 32768; ++ke) {
|
|
33851
|
+
var Ae = (ke & 43690) >> 1 | (ke & 21845) << 1;
|
|
33852
|
+
Ae = (Ae & 52428) >> 2 | (Ae & 13107) << 2, Ae = (Ae & 61680) >> 4 | (Ae & 3855) << 4, Oe[ke] = ((Ae & 65280) >> 8 | (Ae & 255) << 8) >> 1;
|
|
33853
33853
|
}
|
|
33854
|
-
for (var
|
|
33855
|
-
for (var r = e.length, i = 0, a = new
|
|
33856
|
-
var o = new
|
|
33854
|
+
for (var je = (function(e, t, n) {
|
|
33855
|
+
for (var r = e.length, i = 0, a = new _e(t); i < r; ++i) e[i] && ++a[e[i] - 1];
|
|
33856
|
+
var o = new _e(t);
|
|
33857
33857
|
for (i = 1; i < t; ++i) o[i] = o[i - 1] + a[i - 1] << 1;
|
|
33858
33858
|
var s;
|
|
33859
33859
|
if (n) {
|
|
33860
|
-
s = new
|
|
33860
|
+
s = new _e(1 << t);
|
|
33861
33861
|
var c = 15 - t;
|
|
33862
|
-
for (i = 0; i < r; ++i) if (e[i]) for (var l = i << 4 | e[i], u = t - e[i], d = o[e[i] - 1]++ << u, f = d | (1 << u) - 1; d <= f; ++d) s[
|
|
33863
|
-
} else for (s = new
|
|
33862
|
+
for (i = 0; i < r; ++i) if (e[i]) for (var l = i << 4 | e[i], u = t - e[i], d = o[e[i] - 1]++ << u, f = d | (1 << u) - 1; d <= f; ++d) s[Oe[d] >> c] = l;
|
|
33863
|
+
} else for (s = new _e(r), i = 0; i < r; ++i) e[i] && (s[i] = Oe[o[e[i] - 1]++] >> 15 - e[i]);
|
|
33864
33864
|
return s;
|
|
33865
|
-
}),
|
|
33866
|
-
for (var
|
|
33867
|
-
for (var
|
|
33868
|
-
for (var
|
|
33869
|
-
for (var
|
|
33870
|
-
var
|
|
33865
|
+
}), Me = new ge(288), ke = 0; ke < 144; ++ke) Me[ke] = 8;
|
|
33866
|
+
for (var ke = 144; ke < 256; ++ke) Me[ke] = 9;
|
|
33867
|
+
for (var ke = 256; ke < 280; ++ke) Me[ke] = 7;
|
|
33868
|
+
for (var ke = 280; ke < 288; ++ke) Me[ke] = 8;
|
|
33869
|
+
for (var Ne = new ge(32), ke = 0; ke < 32; ++ke) Ne[ke] = 5;
|
|
33870
|
+
var Pe = /*#__PURE__*/ je(Me, 9, 1), Fe = /*#__PURE__*/ je(Ne, 5, 1), Ie = function(e) {
|
|
33871
33871
|
for (var t = e[0], n = 1; n < e.length; ++n) e[n] > t && (t = e[n]);
|
|
33872
33872
|
return t;
|
|
33873
|
-
},
|
|
33873
|
+
}, R = function(e, t, n) {
|
|
33874
33874
|
var r = t / 8 | 0;
|
|
33875
33875
|
return (e[r] | e[r + 1] << 8) >> (t & 7) & n;
|
|
33876
|
-
},
|
|
33876
|
+
}, Le = function(e, t) {
|
|
33877
33877
|
var n = t / 8 | 0;
|
|
33878
33878
|
return (e[n] | e[n + 1] << 8 | e[n + 2] << 16) >> (t & 7);
|
|
33879
|
-
},
|
|
33879
|
+
}, Re = function(e) {
|
|
33880
33880
|
return (e + 7) / 8 | 0;
|
|
33881
|
-
},
|
|
33882
|
-
return (t == null || t < 0) && (t = 0), (n == null || n > e.length) && (n = e.length), new
|
|
33881
|
+
}, ze = function(e, t, n) {
|
|
33882
|
+
return (t == null || t < 0) && (t = 0), (n == null || n > e.length) && (n = e.length), new ge(e.subarray(t, n));
|
|
33883
33883
|
}, Be = [
|
|
33884
33884
|
"unexpected EOF",
|
|
33885
33885
|
"invalid block type",
|
|
@@ -33901,46 +33901,46 @@ var Fe = /*#__PURE__*/ Me(Ne, 9, 1), Ie = /*#__PURE__*/ Me(Pe, 5, 1), Le = funct
|
|
|
33901
33901
|
return r;
|
|
33902
33902
|
}, He = function(e, t, n, r) {
|
|
33903
33903
|
var i = e.length, a = r ? r.length : 0;
|
|
33904
|
-
if (!i || t.f && !t.l) return n || new
|
|
33904
|
+
if (!i || t.f && !t.l) return n || new ge(0);
|
|
33905
33905
|
var o = !n, s = o || t.i != 2, c = t.i;
|
|
33906
|
-
o && (n = new
|
|
33906
|
+
o && (n = new ge(i * 3));
|
|
33907
33907
|
var l = function(e) {
|
|
33908
33908
|
var t = n.length;
|
|
33909
33909
|
if (e > t) {
|
|
33910
|
-
var r = new
|
|
33910
|
+
var r = new ge(Math.max(t * 2, e));
|
|
33911
33911
|
r.set(n), n = r;
|
|
33912
33912
|
}
|
|
33913
33913
|
}, u = t.f || 0, d = t.p || 0, f = t.b || 0, p = t.l, m = t.d, h = t.m, g = t.n, _ = i * 8;
|
|
33914
33914
|
do {
|
|
33915
33915
|
if (!p) {
|
|
33916
|
-
u =
|
|
33917
|
-
var v =
|
|
33916
|
+
u = R(e, d, 1);
|
|
33917
|
+
var v = R(e, d + 1, 3);
|
|
33918
33918
|
if (d += 3, !v) {
|
|
33919
|
-
var y =
|
|
33919
|
+
var y = Re(d) + 4, b = e[y - 4] | e[y - 3] << 8, x = y + b;
|
|
33920
33920
|
if (x > i) {
|
|
33921
33921
|
c && Ve(0);
|
|
33922
33922
|
break;
|
|
33923
33923
|
}
|
|
33924
33924
|
s && l(f + b), n.set(e.subarray(y, x), f), t.b = f += b, t.p = d = x * 8, t.f = u;
|
|
33925
33925
|
continue;
|
|
33926
|
-
} else if (v == 1) p =
|
|
33926
|
+
} else if (v == 1) p = Pe, m = Fe, h = 9, g = 5;
|
|
33927
33927
|
else if (v == 2) {
|
|
33928
|
-
var S =
|
|
33928
|
+
var S = R(e, d, 31) + 257, C = R(e, d + 10, 15) + 4, w = S + R(e, d + 5, 31) + 1;
|
|
33929
33929
|
d += 14;
|
|
33930
|
-
for (var T = new
|
|
33930
|
+
for (var T = new ge(w), E = new ge(19), D = 0; D < C; ++D) E[xe[D]] = R(e, d + D * 3, 7);
|
|
33931
33931
|
d += C * 3;
|
|
33932
|
-
for (var O =
|
|
33933
|
-
var j = A[
|
|
33932
|
+
for (var O = Ie(E), k = (1 << O) - 1, A = je(E, O, 1), D = 0; D < w;) {
|
|
33933
|
+
var j = A[R(e, d, k)];
|
|
33934
33934
|
d += j & 15;
|
|
33935
33935
|
var y = j >> 4;
|
|
33936
33936
|
if (y < 16) T[D++] = y;
|
|
33937
33937
|
else {
|
|
33938
33938
|
var M = 0, N = 0;
|
|
33939
|
-
for (y == 16 ? (N = 3 +
|
|
33939
|
+
for (y == 16 ? (N = 3 + R(e, d, 3), d += 2, M = T[D - 1]) : y == 17 ? (N = 3 + R(e, d, 7), d += 3) : y == 18 && (N = 11 + R(e, d, 127), d += 7); N--;) T[D++] = M;
|
|
33940
33940
|
}
|
|
33941
33941
|
}
|
|
33942
|
-
var ee = T.subarray(0, S),
|
|
33943
|
-
h =
|
|
33942
|
+
var ee = T.subarray(0, S), P = T.subarray(S);
|
|
33943
|
+
h = Ie(ee), g = Ie(P), p = je(ee, h, 1), m = je(P, g, 1);
|
|
33944
33944
|
} else Ve(1);
|
|
33945
33945
|
if (d > _) {
|
|
33946
33946
|
c && Ve(0);
|
|
@@ -33948,46 +33948,46 @@ var Fe = /*#__PURE__*/ Me(Ne, 9, 1), Ie = /*#__PURE__*/ Me(Pe, 5, 1), Le = funct
|
|
|
33948
33948
|
}
|
|
33949
33949
|
}
|
|
33950
33950
|
s && l(f + 131072);
|
|
33951
|
-
for (var
|
|
33952
|
-
var M = p[
|
|
33951
|
+
for (var te = (1 << h) - 1, F = (1 << g) - 1, ne = d;; ne = d) {
|
|
33952
|
+
var M = p[Le(e, d) & te], re = M >> 4;
|
|
33953
33953
|
if (d += M & 15, d > _) {
|
|
33954
33954
|
c && Ve(0);
|
|
33955
33955
|
break;
|
|
33956
33956
|
}
|
|
33957
|
-
if (M || Ve(2),
|
|
33958
|
-
else if (
|
|
33959
|
-
|
|
33957
|
+
if (M || Ve(2), re < 256) n[f++] = re;
|
|
33958
|
+
else if (re == 256) {
|
|
33959
|
+
ne = d, p = null;
|
|
33960
33960
|
break;
|
|
33961
33961
|
} else {
|
|
33962
|
-
var
|
|
33963
|
-
if (
|
|
33964
|
-
var D =
|
|
33965
|
-
|
|
33966
|
-
}
|
|
33967
|
-
var
|
|
33968
|
-
|
|
33969
|
-
var
|
|
33970
|
-
if (
|
|
33971
|
-
var
|
|
33972
|
-
|
|
33962
|
+
var ie = re - 254;
|
|
33963
|
+
if (re > 264) {
|
|
33964
|
+
var D = re - 257, ae = ye[D];
|
|
33965
|
+
ie = R(e, d, (1 << ae) - 1) + we[D], d += ae;
|
|
33966
|
+
}
|
|
33967
|
+
var oe = m[Le(e, d) & F], se = oe >> 4;
|
|
33968
|
+
oe || Ve(3), d += oe & 15;
|
|
33969
|
+
var P = De[se];
|
|
33970
|
+
if (se > 3) {
|
|
33971
|
+
var ae = be[se];
|
|
33972
|
+
P += Le(e, d) & (1 << ae) - 1, d += ae;
|
|
33973
33973
|
}
|
|
33974
33974
|
if (d > _) {
|
|
33975
33975
|
c && Ve(0);
|
|
33976
33976
|
break;
|
|
33977
33977
|
}
|
|
33978
33978
|
s && l(f + 131072);
|
|
33979
|
-
var
|
|
33980
|
-
if (f <
|
|
33981
|
-
var
|
|
33982
|
-
for (
|
|
33979
|
+
var ce = f + ie;
|
|
33980
|
+
if (f < P) {
|
|
33981
|
+
var le = a - P, ue = Math.min(P, ce);
|
|
33982
|
+
for (le + f < 0 && Ve(3); f < ue; ++f) n[f] = r[le + f];
|
|
33983
33983
|
}
|
|
33984
|
-
for (; f <
|
|
33984
|
+
for (; f < ce; ++f) n[f] = n[f - P];
|
|
33985
33985
|
}
|
|
33986
33986
|
}
|
|
33987
|
-
t.l = p, t.p =
|
|
33987
|
+
t.l = p, t.p = ne, t.b = f, t.f = u, p && (u = 1, t.m = h, t.d = m, t.n = g);
|
|
33988
33988
|
} while (!u);
|
|
33989
|
-
return f != n.length && o ?
|
|
33990
|
-
}, Ue = /*#__PURE__*/ new
|
|
33989
|
+
return f != n.length && o ? ze(n, 0, f) : n.subarray(0, f);
|
|
33990
|
+
}, Ue = /*#__PURE__*/ new ge(0), We = function(e) {
|
|
33991
33991
|
(e[0] != 31 || e[1] != 139 || e[2] != 8) && Ve(6, "invalid gzip data");
|
|
33992
33992
|
var t = e[3], n = 10;
|
|
33993
33993
|
t & 4 && (n += (e[10] | e[11] << 8) + 2);
|
|
@@ -34004,7 +34004,7 @@ function qe(e, t) {
|
|
|
34004
34004
|
}
|
|
34005
34005
|
function z(e, t) {
|
|
34006
34006
|
var n = We(e);
|
|
34007
|
-
return n + 8 > e.length && Ve(6, "invalid gzip data"), He(e.subarray(n, -8), { i: 2 }, t && t.out || new
|
|
34007
|
+
return n + 8 > e.length && Ve(6, "invalid gzip data"), He(e.subarray(n, -8), { i: 2 }, t && t.out || new ge(Ge(e)), t && t.dictionary);
|
|
34008
34008
|
}
|
|
34009
34009
|
function Je(e, t) {
|
|
34010
34010
|
return He(e.subarray(Ke(e, t && t.dictionary), -4), { i: 2 }, t && t.out, t && t.dictionary);
|
|
@@ -34667,27 +34667,26 @@ function Ut() {
|
|
|
34667
34667
|
let e = new et();
|
|
34668
34668
|
Lt = e;
|
|
34669
34669
|
try {
|
|
34670
|
-
(0,
|
|
34670
|
+
(0, he.addProtocol)("pmtiles", e.tile);
|
|
34671
34671
|
} catch (e) {
|
|
34672
34672
|
console.warn("Maplibre PMTiles protocol registration failed.", e);
|
|
34673
34673
|
}
|
|
34674
34674
|
return e;
|
|
34675
34675
|
}
|
|
34676
34676
|
function Wt({ sceneDef: e, geoConfig: t, tileSource: n, mapOptions: r, debug: i, onMapReady: a, onMapDimLayerReady: o, onMapLoadError: s, onPointerMissed: c, children: l }) {
|
|
34677
|
-
let u = (0,
|
|
34677
|
+
let u = (0, I.useRef)(null), [f, m] = (0, I.useState)(), h = (0, I.useRef)(a), g = (0, I.useRef)(o), _ = (0, I.useRef)(s), v = (0, I.useRef)({
|
|
34678
34678
|
geoConfig: t,
|
|
34679
34679
|
tileSource: n,
|
|
34680
34680
|
mapOptions: r,
|
|
34681
34681
|
debug: i
|
|
34682
34682
|
});
|
|
34683
|
-
return (0,
|
|
34684
|
-
|
|
34685
|
-
}), (0,
|
|
34683
|
+
return (0, I.useEffect)(() => {
|
|
34684
|
+
h.current = a, g.current = o, _.current = s;
|
|
34685
|
+
}), (0, I.useEffect)(() => {
|
|
34686
34686
|
let e = u.current;
|
|
34687
34687
|
if (!e) return;
|
|
34688
|
-
let { geoConfig: t, tileSource: n, mapOptions: r, debug: i } =
|
|
34689
|
-
|
|
34690
|
-
let c = Ut(), l = t.bounds ? {
|
|
34688
|
+
let { geoConfig: t, tileSource: n, mapOptions: r, debug: i } = v.current, a = !1, o, s = () => {
|
|
34689
|
+
let s = Ut(), c = t.bounds ? {
|
|
34691
34690
|
bounds: t.bounds,
|
|
34692
34691
|
fitBoundsOptions: {
|
|
34693
34692
|
padding: t.fitPadding,
|
|
@@ -34696,12 +34695,11 @@ function Wt({ sceneDef: e, geoConfig: t, tileSource: n, mapOptions: r, debug: i,
|
|
|
34696
34695
|
} : {
|
|
34697
34696
|
center: t.center,
|
|
34698
34697
|
zoom: t.zoom
|
|
34699
|
-
},
|
|
34698
|
+
}, l = jt(n.style, n.offline ? (e) => Ot(s, e) : void 0), u = new he.Map({
|
|
34700
34699
|
container: e,
|
|
34701
|
-
...
|
|
34700
|
+
...c,
|
|
34702
34701
|
bearing: t.bearing,
|
|
34703
|
-
|
|
34704
|
-
maxPitch: (s = r == null ? void 0 : r.maxPitch) == null ? 70 : s,
|
|
34702
|
+
maxPitch: r == null ? void 0 : r.maxPitch,
|
|
34705
34703
|
minZoom: r == null ? void 0 : r.minZoom,
|
|
34706
34704
|
maxZoom: r == null ? void 0 : r.maxZoom,
|
|
34707
34705
|
maxBounds: r == null ? void 0 : r.maxBounds,
|
|
@@ -34710,45 +34708,48 @@ function Wt({ sceneDef: e, geoConfig: t, tileSource: n, mapOptions: r, debug: i,
|
|
|
34710
34708
|
customAttribution: Nt
|
|
34711
34709
|
},
|
|
34712
34710
|
bearingSnap: 0,
|
|
34711
|
+
aroundCenter: !1,
|
|
34712
|
+
pitchWithRotate: O.pitchEnabled,
|
|
34713
|
+
touchPitch: O.pitchEnabled,
|
|
34713
34714
|
canvasContextAttributes: { antialias: !0 }
|
|
34714
34715
|
});
|
|
34715
|
-
t.zoomAdjustment &&
|
|
34716
|
+
t.zoomAdjustment && u.jumpTo({ zoom: u.getZoom() + t.zoomAdjustment }), u.once("error", (e) => {
|
|
34716
34717
|
var t, n;
|
|
34717
|
-
|
|
34718
|
+
u.isStyleLoaded() || (t = _.current) == null || t.call(_, (n = e == null ? void 0 : e.error) == null ? e : n);
|
|
34718
34719
|
});
|
|
34719
|
-
let
|
|
34720
|
+
let d = (e) => {
|
|
34720
34721
|
let t = e == null ? void 0 : e.id;
|
|
34721
|
-
!t ||
|
|
34722
|
+
!t || u.hasImage(t) || u.addImage(t, {
|
|
34722
34723
|
width: 1,
|
|
34723
34724
|
height: 1,
|
|
34724
34725
|
data: /* @__PURE__ */ new Uint8Array(4)
|
|
34725
34726
|
});
|
|
34726
34727
|
};
|
|
34727
|
-
|
|
34728
|
-
let
|
|
34728
|
+
u.on("styleimagemissing", d);
|
|
34729
|
+
let f, p = () => u.triggerRepaint(), v = {
|
|
34729
34730
|
id: It,
|
|
34730
34731
|
type: "custom",
|
|
34731
34732
|
renderingMode: "3d",
|
|
34732
34733
|
onAdd(e, t) {
|
|
34733
34734
|
var n;
|
|
34734
|
-
a || (
|
|
34735
|
+
a || (m({
|
|
34735
34736
|
gl: t,
|
|
34736
|
-
requestFrame:
|
|
34737
|
-
onFrame: (e) => (
|
|
34738
|
-
|
|
34737
|
+
requestFrame: p,
|
|
34738
|
+
onFrame: (e) => (f = e, p(), () => {
|
|
34739
|
+
f === e && (f = void 0);
|
|
34739
34740
|
})
|
|
34740
|
-
}), (n =
|
|
34741
|
+
}), (n = h.current) == null || n.call(h, u, p));
|
|
34741
34742
|
},
|
|
34742
34743
|
render(e, t) {
|
|
34743
34744
|
let n = Bt(t == null ? e : t);
|
|
34744
|
-
n && (
|
|
34745
|
+
n && (f == null || f(n)), i && p();
|
|
34745
34746
|
}
|
|
34746
|
-
},
|
|
34747
|
+
}, y = () => {
|
|
34747
34748
|
var e;
|
|
34748
|
-
Ht(
|
|
34749
|
+
Ht(u), u.getSource(Ft) || u.addSource(Ft, {
|
|
34749
34750
|
type: "geojson",
|
|
34750
34751
|
data: Rt
|
|
34751
|
-
}),
|
|
34752
|
+
}), u.getLayer("expofp-map-dim") || u.addLayer({
|
|
34752
34753
|
id: Pt,
|
|
34753
34754
|
type: "fill",
|
|
34754
34755
|
source: Ft,
|
|
@@ -34760,16 +34761,16 @@ function Wt({ sceneDef: e, geoConfig: t, tileSource: n, mapOptions: r, debug: i,
|
|
|
34760
34761
|
delay: 0
|
|
34761
34762
|
}
|
|
34762
34763
|
}
|
|
34763
|
-
}), (e =
|
|
34764
|
+
}), (e = g.current) == null || e.call(g, u), u.addLayer(v);
|
|
34764
34765
|
};
|
|
34765
|
-
|
|
34766
|
-
|
|
34766
|
+
u.on("style.load", y), u.setStyle(n.style, l ? { transformStyle: l } : void 0), o = () => {
|
|
34767
|
+
u.off("style.load", y), u.off("styleimagemissing", d), u.remove();
|
|
34767
34768
|
};
|
|
34768
34769
|
};
|
|
34769
34770
|
return i ? d().then(() => {
|
|
34770
34771
|
a || s();
|
|
34771
34772
|
}) : s(), () => {
|
|
34772
|
-
a = !0, o == null || o(),
|
|
34773
|
+
a = !0, o == null || o(), m(void 0);
|
|
34773
34774
|
};
|
|
34774
34775
|
}, []), /* @__PURE__ */ (0, Mt.jsx)("div", {
|
|
34775
34776
|
ref: u,
|
|
@@ -34780,7 +34781,7 @@ function Wt({ sceneDef: e, geoConfig: t, tileSource: n, mapOptions: r, debug: i,
|
|
|
34780
34781
|
width: "100%",
|
|
34781
34782
|
height: "100%"
|
|
34782
34783
|
},
|
|
34783
|
-
children: f && /* @__PURE__ */ (0, Mt.jsx)(
|
|
34784
|
+
children: f && /* @__PURE__ */ (0, Mt.jsx)(p, {
|
|
34784
34785
|
...f,
|
|
34785
34786
|
scene: e,
|
|
34786
34787
|
debug: i,
|
|
@@ -34808,35 +34809,35 @@ function $t(e, t, n) {
|
|
|
34808
34809
|
}
|
|
34809
34810
|
function en(e, t) {
|
|
34810
34811
|
let n = [
|
|
34811
|
-
|
|
34812
|
-
|
|
34813
|
-
|
|
34814
|
-
|
|
34812
|
+
g(e.min.x, e.min.y, t),
|
|
34813
|
+
g(e.max.x, e.min.y, t),
|
|
34814
|
+
g(e.max.x, e.max.y, t),
|
|
34815
|
+
g(e.min.x, e.max.y, t)
|
|
34815
34816
|
], r = n.map(([e]) => e), i = n.map(([, e]) => e);
|
|
34816
34817
|
return [[Math.min(...r), Math.min(...i)], [Math.max(...r), Math.max(...i)]];
|
|
34817
34818
|
}
|
|
34818
34819
|
var tn = 512;
|
|
34819
34820
|
function nn(e, t, n, r, i) {
|
|
34820
34821
|
let a = [
|
|
34821
|
-
|
|
34822
|
-
|
|
34823
|
-
|
|
34824
|
-
|
|
34825
|
-
].map(([e, t]) =>
|
|
34822
|
+
g(e.min.x, e.min.y, t),
|
|
34823
|
+
g(e.max.x, e.min.y, t),
|
|
34824
|
+
g(e.max.x, e.max.y, t),
|
|
34825
|
+
g(e.min.x, e.max.y, t)
|
|
34826
|
+
].map(([e, t]) => he.MercatorCoordinate.fromLngLat({
|
|
34826
34827
|
lng: e,
|
|
34827
34828
|
lat: t
|
|
34828
34829
|
}));
|
|
34829
34830
|
if (!a.every(({ x: e, y: t }) => Number.isFinite(e) && Number.isFinite(t))) return null;
|
|
34830
34831
|
let o = -n * Math.PI / 180, s = Math.cos(o), c = Math.sin(o), l = a.map(({ x: e, y: t }) => e * s - t * c), u = a.map(({ x: e, y: t }) => e * c + t * s), d = Math.max(...l) - Math.min(...l), f = Math.max(...u) - Math.min(...u);
|
|
34831
34832
|
if (d <= 0 || f <= 0) return null;
|
|
34832
|
-
let p = r.width - i.left - i.right,
|
|
34833
|
-
if (p <= 0 ||
|
|
34834
|
-
let
|
|
34835
|
-
if (!(
|
|
34836
|
-
let _ = tn *
|
|
34833
|
+
let p = r.width - i.left - i.right, m = r.height - i.top - i.bottom;
|
|
34834
|
+
if (p <= 0 || m <= 0) return null;
|
|
34835
|
+
let h = Math.min(p / (d * tn), m / (f * tn));
|
|
34836
|
+
if (!(h > 0)) return null;
|
|
34837
|
+
let _ = tn * h, v = (Math.min(...l) + Math.max(...l)) / 2 - (i.left - i.right) / 2 / _, y = (Math.min(...u) + Math.max(...u)) / 2 - (i.top - i.bottom) / 2 / _, { lng: b, lat: x } = new he.MercatorCoordinate(v * s + y * c, -v * c + y * s).toLngLat();
|
|
34837
34838
|
return {
|
|
34838
34839
|
center: [b, x],
|
|
34839
|
-
zoom: Math.log2(
|
|
34840
|
+
zoom: Math.log2(h)
|
|
34840
34841
|
};
|
|
34841
34842
|
}
|
|
34842
34843
|
function rn(e, t) {
|
|
@@ -34848,7 +34849,7 @@ function rn(e, t) {
|
|
|
34848
34849
|
};
|
|
34849
34850
|
}
|
|
34850
34851
|
function an(e = 0) {
|
|
34851
|
-
let t =
|
|
34852
|
+
let t = O.canvasVisibleRectPx, n = O.screenSize;
|
|
34852
34853
|
return t ? {
|
|
34853
34854
|
top: Math.max(0, t.min.y) + e,
|
|
34854
34855
|
bottom: Math.max(0, n.height - t.max.y) + e,
|
|
@@ -34867,8 +34868,8 @@ function on(e, t, n) {
|
|
|
34867
34868
|
}
|
|
34868
34869
|
function sn() {
|
|
34869
34870
|
var e, t;
|
|
34870
|
-
if (!(!(
|
|
34871
|
-
let n =
|
|
34871
|
+
if (!(!(b == null || (e = b.properties) == null) && e.config)) return null;
|
|
34872
|
+
let n = b.properties.config, r = (n.p0.lng + n.p2.lng) / 2, i = (n.p0.lat + n.p2.lat) / 2, a = m(n.p0, n.p2), o = Number.isFinite(a) ? a : (t = n.bearing) == null ? 0 : t;
|
|
34872
34873
|
return {
|
|
34873
34874
|
center: [r, i],
|
|
34874
34875
|
bearing: o,
|
|
@@ -34907,7 +34908,7 @@ function K(e, t, n, r = {}) {
|
|
|
34907
34908
|
e.easeTo(g);
|
|
34908
34909
|
return;
|
|
34909
34910
|
}
|
|
34910
|
-
let _ = e.getBounds().extend(
|
|
34911
|
+
let _ = e.getBounds().extend(he.LngLatBounds.convert(o)), v = e.cameraForBounds(_, {
|
|
34911
34912
|
padding: c,
|
|
34912
34913
|
bearing: n.bearing
|
|
34913
34914
|
});
|
|
@@ -34929,9 +34930,9 @@ function K(e, t, n, r = {}) {
|
|
|
34929
34930
|
}
|
|
34930
34931
|
//#endregion
|
|
34931
34932
|
//#region src/components/Maplibre/useCameraReactions.ts
|
|
34932
|
-
var q =
|
|
34933
|
+
var q = O, cn = 15, J = 24, ln = 20;
|
|
34933
34934
|
function un(e) {
|
|
34934
|
-
return
|
|
34935
|
+
return j(e, T(e, N)).expand(ln);
|
|
34935
34936
|
}
|
|
34936
34937
|
function dn(e, t) {
|
|
34937
34938
|
return Math.min(Math.max(t, e.getMinZoom()), e.getMaxZoom());
|
|
@@ -34939,9 +34940,9 @@ function dn(e, t) {
|
|
|
34939
34940
|
function fn(e, t, n) {
|
|
34940
34941
|
var r;
|
|
34941
34942
|
if (n.length !== 1) return !1;
|
|
34942
|
-
let i = (r = n[0]) == null ? void 0 : r.id, a =
|
|
34943
|
+
let i = (r = n[0]) == null ? void 0 : r.id, a = C.poiMarkerStore.markers.find((e) => e.boothId === i);
|
|
34943
34944
|
if (!a) return !1;
|
|
34944
|
-
let o =
|
|
34945
|
+
let o = g(a.center.x, a.center.y, t.gpsConfig);
|
|
34945
34946
|
return on(e, o, an(J)) || e.easeTo({
|
|
34946
34947
|
center: o,
|
|
34947
34948
|
zoom: dn(e, cn),
|
|
@@ -34951,7 +34952,7 @@ function fn(e, t, n) {
|
|
|
34951
34952
|
}), !0;
|
|
34952
34953
|
}
|
|
34953
34954
|
function pn(e, t, n) {
|
|
34954
|
-
|
|
34955
|
+
re(() => q.moveToBooths, (n) => {
|
|
34955
34956
|
let r = e.current;
|
|
34956
34957
|
if (!n || !r || !t) return;
|
|
34957
34958
|
let i = n.filter((e) => e.rect);
|
|
@@ -34960,57 +34961,57 @@ function pn(e, t, n) {
|
|
|
34960
34961
|
q.moveToBooths = null;
|
|
34961
34962
|
return;
|
|
34962
34963
|
}
|
|
34963
|
-
K(r, un(
|
|
34964
|
+
K(r, un(f.fromUnion(...i.map((e) => e.rect))), t), q.moveToBooths = null;
|
|
34964
34965
|
}
|
|
34965
|
-
}),
|
|
34966
|
+
}), re(() => q.moveToRect, (n) => {
|
|
34966
34967
|
let r = e.current;
|
|
34967
34968
|
!n || !r || !t || (K(r, n, t, { paddingPercent: q.moveToRectPaddingPercent }), q.moveToRect = null, q.moveToRectPaddingPercent = null);
|
|
34968
|
-
}),
|
|
34969
|
+
}), re(() => q.zoomBy, (t) => {
|
|
34969
34970
|
let n = e.current;
|
|
34970
34971
|
!t || !n || (n.flyTo({
|
|
34971
34972
|
zoom: n.getZoom() + (t > 1 ? .5 : -.5),
|
|
34972
34973
|
animate: !0,
|
|
34973
34974
|
duration: 500
|
|
34974
34975
|
}), q.zoomBy = null);
|
|
34975
|
-
}),
|
|
34976
|
-
|
|
34977
|
-
|
|
34978
|
-
|
|
34976
|
+
}), re(() => [
|
|
34977
|
+
O.moveToLocation,
|
|
34978
|
+
C.maplibreStore.cameraPort,
|
|
34979
|
+
C.routeStore.currentPosition
|
|
34979
34980
|
], ([n]) => {
|
|
34980
34981
|
if (!n) return;
|
|
34981
|
-
let r = e.current, i =
|
|
34982
|
+
let r = e.current, i = C.routeStore.currentPosition;
|
|
34982
34983
|
if (!i) {
|
|
34983
|
-
|
|
34984
|
+
O.moveToLocation = !1;
|
|
34984
34985
|
return;
|
|
34985
34986
|
}
|
|
34986
34987
|
if (!r) return;
|
|
34987
34988
|
let { lng: a, lat: o } = i, s = typeof a == "number" && Number.isFinite(a) && typeof o == "number" && Number.isFinite(o);
|
|
34988
|
-
|
|
34989
|
+
O.moveToLocation = !1;
|
|
34989
34990
|
let c;
|
|
34990
34991
|
if (s) c = [a, o];
|
|
34991
34992
|
else {
|
|
34992
34993
|
if (!t) return;
|
|
34993
|
-
c =
|
|
34994
|
+
c = g(i.x, i.y, t.gpsConfig);
|
|
34994
34995
|
}
|
|
34995
34996
|
r.flyTo({
|
|
34996
34997
|
center: c,
|
|
34997
34998
|
animate: !0,
|
|
34998
34999
|
duration: 1e3
|
|
34999
35000
|
});
|
|
35000
|
-
}),
|
|
35001
|
+
}), re(() => O.centerMap, (r) => {
|
|
35001
35002
|
let i = e.current;
|
|
35002
35003
|
if (!(!r || !i || !t)) {
|
|
35003
|
-
if (!(
|
|
35004
|
-
let { rect: e } =
|
|
35005
|
-
layerViewbox:
|
|
35006
|
-
explicitArea:
|
|
35007
|
-
layerRectangle:
|
|
35004
|
+
if (!(O.list.type === "search" && !O.list.text)) {
|
|
35005
|
+
let { rect: e } = k({
|
|
35006
|
+
layerViewbox: C.layerStore.viewboxRectangle,
|
|
35007
|
+
explicitArea: P ? N : null,
|
|
35008
|
+
layerRectangle: C.layerStore.rectangle,
|
|
35008
35009
|
sceneDef: n,
|
|
35009
|
-
svgArea:
|
|
35010
|
+
svgArea: N
|
|
35010
35011
|
});
|
|
35011
35012
|
K(i, e, t);
|
|
35012
35013
|
}
|
|
35013
|
-
|
|
35014
|
+
O.centerMap = !1;
|
|
35014
35015
|
}
|
|
35015
35016
|
});
|
|
35016
35017
|
}
|
|
@@ -35023,7 +35024,7 @@ function hn(e) {
|
|
|
35023
35024
|
function gn(e) {
|
|
35024
35025
|
if (!e || e === "none") return "light";
|
|
35025
35026
|
try {
|
|
35026
|
-
return (0,
|
|
35027
|
+
return (0, me.default)(e).lightness() < mn ? "dark" : "light";
|
|
35027
35028
|
} catch {
|
|
35028
35029
|
return "light";
|
|
35029
35030
|
}
|
|
@@ -35033,77 +35034,69 @@ function _n(e, t) {
|
|
|
35033
35034
|
}
|
|
35034
35035
|
//#endregion
|
|
35035
35036
|
//#region src/components/Maplibre/utils/map-helpers.ts
|
|
35036
|
-
var vn = { style: "https://basemaps.cartocdn.com/gl/positron-gl-style/style.json" }, yn = { style: "https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json" }
|
|
35037
|
-
|
|
35038
|
-
|
|
35039
|
-
minZoom: bn
|
|
35040
|
-
}, Sn = {
|
|
35041
|
-
pitch: 0,
|
|
35042
|
-
maxPitch: 0,
|
|
35043
|
-
minZoom: bn
|
|
35044
|
-
};
|
|
35045
|
-
function Cn(e, t) {
|
|
35046
|
-
e != null && e.getLayer("expofp-map-dim") && (e.setPaintProperty(Pt, "fill-opacity", wn(t)), e.triggerRepaint());
|
|
35037
|
+
var vn = { style: "https://basemaps.cartocdn.com/gl/positron-gl-style/style.json" }, yn = { style: "https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json" };
|
|
35038
|
+
function bn(e, t) {
|
|
35039
|
+
e != null && e.getLayer("expofp-map-dim") && (e.setPaintProperty(Pt, "fill-opacity", xn(t)), e.triggerRepaint());
|
|
35047
35040
|
}
|
|
35048
|
-
function
|
|
35041
|
+
function xn(e) {
|
|
35049
35042
|
return Math.min(Math.max(e, 0), 1);
|
|
35050
35043
|
}
|
|
35051
|
-
function
|
|
35052
|
-
var r, i
|
|
35044
|
+
function Sn(e, t) {
|
|
35045
|
+
var n, r, i;
|
|
35053
35046
|
if (!e) return;
|
|
35054
|
-
e.setMinZoom((
|
|
35055
|
-
let o = t
|
|
35056
|
-
|
|
35057
|
-
pitch:
|
|
35058
|
-
duration:
|
|
35059
|
-
}), l && e.once("moveend", () => e.setMaxPitch(
|
|
35047
|
+
e.setMinZoom((n = t.minZoom) == null ? null : n), e.setMaxZoom((r = t.maxZoom) == null ? null : r), e.setMaxBounds((i = t.maxBounds) == null ? null : i);
|
|
35048
|
+
let { pitch: a, maxPitch: o } = t, s = O.animatePitch, c = e.getPitch(), l = !!(s && a != null && o != null && o < c);
|
|
35049
|
+
l || e.setMaxPitch(o == null ? null : o), !(a == null || c === a) && (s ? (e.easeTo({
|
|
35050
|
+
pitch: a,
|
|
35051
|
+
duration: O.mapSettings.pitchtime
|
|
35052
|
+
}), l && e.once("moveend", () => e.setMaxPitch(o))) : e.jumpTo({ pitch: a }));
|
|
35060
35053
|
}
|
|
35061
|
-
function
|
|
35054
|
+
function Cn() {
|
|
35062
35055
|
var e, t, n;
|
|
35063
|
-
let r = (e = (t =
|
|
35056
|
+
let r = (e = (t = C.fp) == null ? void 0 : t.maplibre) == null ? window.__efpMaplibre : e;
|
|
35064
35057
|
return r != null && r.style ? {
|
|
35065
35058
|
style: r.style,
|
|
35066
35059
|
offline: r.offline
|
|
35067
35060
|
} : r != null && r.styleUrl ? {
|
|
35068
35061
|
style: r.styleUrl,
|
|
35069
35062
|
offline: r.offline
|
|
35070
|
-
} : _n(
|
|
35063
|
+
} : _n(b == null || (n = b.properties) == null || (n = n.config) == null ? void 0 : n.style, S.backgroundColor) === "dark" ? yn : vn;
|
|
35071
35064
|
}
|
|
35072
35065
|
//#endregion
|
|
35073
35066
|
//#region src/components/Maplibre/useDimming.ts
|
|
35074
|
-
function
|
|
35075
|
-
return
|
|
35067
|
+
function wn() {
|
|
35068
|
+
return O.dimmed && !C.poiMarkerStore.dimSuppressed;
|
|
35076
35069
|
}
|
|
35077
|
-
function
|
|
35078
|
-
let n = (0,
|
|
35070
|
+
function Tn(e, t) {
|
|
35071
|
+
let n = (0, I.useRef)(null), r = (0, I.useRef)(null), i = (0, I.useCallback)((e) => {
|
|
35079
35072
|
var t, i;
|
|
35080
|
-
let a =
|
|
35073
|
+
let a = wn();
|
|
35081
35074
|
(t = n.current) == null || t.setTarget(a, e), (i = r.current) == null || i.setTarget(a, e);
|
|
35082
35075
|
}, []);
|
|
35083
|
-
return (0,
|
|
35084
|
-
let i =
|
|
35085
|
-
|
|
35086
|
-
}), a =
|
|
35076
|
+
return (0, I.useEffect)(() => {
|
|
35077
|
+
let i = de((t) => {
|
|
35078
|
+
bn(e.current, t * pe);
|
|
35079
|
+
}), a = de((e) => {
|
|
35087
35080
|
let n = t.current;
|
|
35088
|
-
n &&
|
|
35081
|
+
n && le(n, e * 1) && D(n.rootLayer);
|
|
35089
35082
|
});
|
|
35090
35083
|
return n.current = i, r.current = a, () => {
|
|
35091
35084
|
i.stop(), a.stop(), n.current = null, r.current = null;
|
|
35092
35085
|
};
|
|
35093
|
-
}, [e, t]),
|
|
35086
|
+
}, [e, t]), re(() => wn(), () => i()), {
|
|
35094
35087
|
mapDimAnimatorRef: n,
|
|
35095
35088
|
venueDimAnimatorRef: r,
|
|
35096
35089
|
applyDimmingTarget: i,
|
|
35097
|
-
handleMapDimLayerReady: (0,
|
|
35090
|
+
handleMapDimLayerReady: (0, I.useCallback)((e) => {
|
|
35098
35091
|
var t, r;
|
|
35099
|
-
|
|
35092
|
+
bn(e, ((t = (r = n.current) == null ? void 0 : r.getValue()) == null ? +!!wn() : t) * pe);
|
|
35100
35093
|
}, [])
|
|
35101
35094
|
};
|
|
35102
35095
|
}
|
|
35103
35096
|
//#endregion
|
|
35104
35097
|
//#region src/components/Maplibre/useKioskIdleEvents.ts
|
|
35105
|
-
function
|
|
35106
|
-
(0,
|
|
35098
|
+
function En(e, t) {
|
|
35099
|
+
(0, I.useEffect)(() => {
|
|
35107
35100
|
let n = t.current;
|
|
35108
35101
|
if (!e || !n) return;
|
|
35109
35102
|
let r = !1, i = (e) => {
|
|
@@ -35120,41 +35113,41 @@ function kn(e, t) {
|
|
|
35120
35113
|
}
|
|
35121
35114
|
//#endregion
|
|
35122
35115
|
//#region src/components/Maplibre/utils/layer-defs.ts
|
|
35123
|
-
function
|
|
35116
|
+
function Dn(e, t = /* @__PURE__ */ new Map()) {
|
|
35124
35117
|
var n;
|
|
35125
35118
|
if (e.name) {
|
|
35126
35119
|
var r;
|
|
35127
35120
|
let n = (r = t.get(e.name)) == null ? [] : r;
|
|
35128
35121
|
n.push(e), t.set(e.name, n);
|
|
35129
35122
|
}
|
|
35130
|
-
for (let r of (n = e.children) == null ? [] : n)
|
|
35123
|
+
for (let r of (n = e.children) == null ? [] : n) h(r) && Dn(r, t);
|
|
35131
35124
|
return t;
|
|
35132
35125
|
}
|
|
35133
35126
|
//#endregion
|
|
35134
35127
|
//#region src/components/Maplibre/useLayerVisibilitySync.ts
|
|
35135
|
-
function
|
|
35136
|
-
let r = (0,
|
|
35137
|
-
|
|
35128
|
+
function On(e, t, n) {
|
|
35129
|
+
let r = (0, I.useRef)(null), i = (0, I.useRef)(null);
|
|
35130
|
+
re(() => C.layerStore.layers.map((e) => `${e.name}:${+!!e.visible}`), () => {
|
|
35138
35131
|
var a, o;
|
|
35139
35132
|
if (!e) return;
|
|
35140
35133
|
((a = r.current) == null ? void 0 : a.rootLayer) !== e.rootLayer && (r.current = {
|
|
35141
35134
|
rootLayer: e.rootLayer,
|
|
35142
|
-
defsByName:
|
|
35135
|
+
defsByName: Dn(e.rootLayer)
|
|
35143
35136
|
});
|
|
35144
35137
|
let s = r.current.defsByName, c = [];
|
|
35145
|
-
for (let e of
|
|
35138
|
+
for (let e of C.layerStore.layers) {
|
|
35146
35139
|
let t = s.get(e.name);
|
|
35147
35140
|
if (t != null && t.length) for (let n of t) {
|
|
35148
35141
|
let t = !e.visible;
|
|
35149
35142
|
n.hidden !== t && (n.hidden = t, c.push(n));
|
|
35150
35143
|
}
|
|
35151
35144
|
}
|
|
35152
|
-
c.length &&
|
|
35153
|
-
let
|
|
35154
|
-
if (!
|
|
35155
|
-
i.current =
|
|
35156
|
-
let
|
|
35157
|
-
K(t.current,
|
|
35145
|
+
c.length && D(...c);
|
|
35146
|
+
let l = C.layerStore.layers.find((e) => e.visible && !e.frozen && !e.rootParent && !e.pathway);
|
|
35147
|
+
if (!l || i.current === l.name) return;
|
|
35148
|
+
i.current = l.name;
|
|
35149
|
+
let u = (o = l.viewbox) == null ? l.rect : o;
|
|
35150
|
+
K(t.current, u == null ? null : u, n);
|
|
35158
35151
|
}, void 0, [
|
|
35159
35152
|
e,
|
|
35160
35153
|
t,
|
|
@@ -35163,31 +35156,31 @@ function jn(e, t, n) {
|
|
|
35163
35156
|
}
|
|
35164
35157
|
//#endregion
|
|
35165
35158
|
//#region src/components/Maplibre/usePoiMarkers.ts
|
|
35166
|
-
var
|
|
35167
|
-
|
|
35168
|
-
|
|
35169
|
-
|
|
35170
|
-
|
|
35171
|
-
],
|
|
35172
|
-
function
|
|
35173
|
-
(0,
|
|
35159
|
+
var kn = "expofp-poi", An = "expofp-poi-clusters", jn = "expofp-poi-cluster-count", Mn = "expofp-poi-unclustered", Nn = "expofp-poi-selected", Pn = "expofp-poi-pinhead-image", Fn = [
|
|
35160
|
+
An,
|
|
35161
|
+
jn,
|
|
35162
|
+
Mn,
|
|
35163
|
+
Nn
|
|
35164
|
+
], In = Fn.filter((e) => e !== jn), Ln = (e) => `expofp-poi-icon-${e}`;
|
|
35165
|
+
function Rn(e, t, a) {
|
|
35166
|
+
(0, I.useEffect)(() => {
|
|
35174
35167
|
var o;
|
|
35175
|
-
if (!
|
|
35168
|
+
if (!ee()) return;
|
|
35176
35169
|
let s = t.current;
|
|
35177
35170
|
if (!e || !s || !a) return;
|
|
35178
|
-
let { gpsConfig: c } = a, l = /* @__PURE__ */ new Set(), u = window.devicePixelRatio || 1, d =
|
|
35171
|
+
let { gpsConfig: c } = a, l = /* @__PURE__ */ new Set(), u = window.devicePixelRatio || 1, d = A(36, u, ((o = S.colors) == null || (o = o.booths) == null ? void 0 : o.selected) || "#3b6ef5"), p = (e) => g(e.center.x, e.center.y, c), m = (e, t) => {
|
|
35179
35172
|
s.hasImage(e) && s.removeImage(e), s.addImage(e, t, { pixelRatio: u }), l.add(e);
|
|
35180
35173
|
}, h = (e) => {
|
|
35181
|
-
let t =
|
|
35182
|
-
n.add(
|
|
35174
|
+
let t = C.poiMarkerStore.markers, n = new Set(t.map((e) => Ln(e.boothId)));
|
|
35175
|
+
n.add(Pn);
|
|
35183
35176
|
for (let e of [...l]) n.has(e) || (s.hasImage(e) && s.removeImage(e), l.delete(e));
|
|
35184
35177
|
for (let n of t) {
|
|
35185
|
-
let t =
|
|
35186
|
-
(e || !l.has(t)) &&
|
|
35178
|
+
let t = Ln(n.boothId);
|
|
35179
|
+
(e || !l.has(t)) && m(t, n.icon);
|
|
35187
35180
|
}
|
|
35188
|
-
l.has(
|
|
35181
|
+
l.has(Pn) || m(Pn, d);
|
|
35189
35182
|
}, _ = () => {
|
|
35190
|
-
let e =
|
|
35183
|
+
let e = C.poiMarkerStore.selectedMarkerId, t = C.poiMarkerStore.outdoorFilter, n = !t.active, r = C.poiMarkerStore.markers;
|
|
35191
35184
|
return e === null ? t.active && (r = t.matchingMarkers) : r = r.filter((t) => t.boothId === e), {
|
|
35192
35185
|
cluster: n,
|
|
35193
35186
|
data: {
|
|
@@ -35196,17 +35189,17 @@ function Vn(e, t, a) {
|
|
|
35196
35189
|
type: "Feature",
|
|
35197
35190
|
geometry: {
|
|
35198
35191
|
type: "Point",
|
|
35199
|
-
coordinates:
|
|
35192
|
+
coordinates: p(t)
|
|
35200
35193
|
},
|
|
35201
35194
|
properties: {
|
|
35202
35195
|
boothId: t.boothId,
|
|
35203
|
-
icon:
|
|
35196
|
+
icon: Ln(t.boothId),
|
|
35204
35197
|
pinhead: t.boothId === e
|
|
35205
35198
|
}
|
|
35206
35199
|
}))
|
|
35207
35200
|
}
|
|
35208
35201
|
};
|
|
35209
|
-
},
|
|
35202
|
+
}, v = () => {
|
|
35210
35203
|
var e, t, n;
|
|
35211
35204
|
let r = null;
|
|
35212
35205
|
for (let n of (e = (t = s.getStyle()) == null ? void 0 : t.layers) == null ? [] : e) {
|
|
@@ -35219,17 +35212,17 @@ function Vn(e, t, a) {
|
|
|
35219
35212
|
}
|
|
35220
35213
|
}
|
|
35221
35214
|
return (n = r) == null ? ["Noto Sans Regular"] : n;
|
|
35222
|
-
},
|
|
35223
|
-
for (let e of
|
|
35224
|
-
s.getSource(
|
|
35225
|
-
},
|
|
35226
|
-
if (
|
|
35215
|
+
}, y = null, b = () => {
|
|
35216
|
+
for (let e of Fn) s.getLayer(e) && s.removeLayer(e);
|
|
35217
|
+
s.getSource(kn) && s.removeSource(kn), y = null;
|
|
35218
|
+
}, x = (e, t) => {
|
|
35219
|
+
if (y !== null && y !== t && b(), s.getSource(kn) || (s.addSource(kn, {
|
|
35227
35220
|
type: "geojson",
|
|
35228
35221
|
data: e,
|
|
35229
35222
|
cluster: t,
|
|
35230
35223
|
clusterRadius: 50,
|
|
35231
35224
|
clusterMinPoints: 3
|
|
35232
|
-
}),
|
|
35225
|
+
}), y = t), s.getLayer(An)) return;
|
|
35233
35226
|
let i = ["!", ["has", "point_count"]], a = [
|
|
35234
35227
|
"==",
|
|
35235
35228
|
[
|
|
@@ -35240,9 +35233,9 @@ function Vn(e, t, a) {
|
|
|
35240
35233
|
!0
|
|
35241
35234
|
];
|
|
35242
35235
|
s.addLayer({
|
|
35243
|
-
id:
|
|
35236
|
+
id: An,
|
|
35244
35237
|
type: "circle",
|
|
35245
|
-
source:
|
|
35238
|
+
source: kn,
|
|
35246
35239
|
filter: ["has", "point_count"],
|
|
35247
35240
|
paint: {
|
|
35248
35241
|
"circle-radius": 36 / 2,
|
|
@@ -35252,22 +35245,22 @@ function Vn(e, t, a) {
|
|
|
35252
35245
|
"circle-pitch-alignment": "viewport"
|
|
35253
35246
|
}
|
|
35254
35247
|
}), s.addLayer({
|
|
35255
|
-
id:
|
|
35248
|
+
id: jn,
|
|
35256
35249
|
type: "symbol",
|
|
35257
|
-
source:
|
|
35250
|
+
source: kn,
|
|
35258
35251
|
filter: ["has", "point_count"],
|
|
35259
35252
|
layout: {
|
|
35260
35253
|
"text-field": ["get", "point_count_abbreviated"],
|
|
35261
|
-
"text-font":
|
|
35254
|
+
"text-font": v(),
|
|
35262
35255
|
"text-size": 14,
|
|
35263
35256
|
"text-allow-overlap": !0,
|
|
35264
35257
|
"text-ignore-placement": !0
|
|
35265
35258
|
},
|
|
35266
35259
|
paint: { "text-color": "#ffffff" }
|
|
35267
35260
|
}), s.addLayer({
|
|
35268
|
-
id:
|
|
35261
|
+
id: Mn,
|
|
35269
35262
|
type: "symbol",
|
|
35270
|
-
source:
|
|
35263
|
+
source: kn,
|
|
35271
35264
|
filter: [
|
|
35272
35265
|
"all",
|
|
35273
35266
|
i,
|
|
@@ -35280,35 +35273,35 @@ function Vn(e, t, a) {
|
|
|
35280
35273
|
"icon-ignore-placement": !0
|
|
35281
35274
|
}
|
|
35282
35275
|
}), s.addLayer({
|
|
35283
|
-
id:
|
|
35276
|
+
id: Nn,
|
|
35284
35277
|
type: "symbol",
|
|
35285
|
-
source:
|
|
35278
|
+
source: kn,
|
|
35286
35279
|
filter: [
|
|
35287
35280
|
"all",
|
|
35288
35281
|
i,
|
|
35289
35282
|
a
|
|
35290
35283
|
],
|
|
35291
35284
|
layout: {
|
|
35292
|
-
"icon-image":
|
|
35285
|
+
"icon-image": Pn,
|
|
35293
35286
|
"icon-anchor": "bottom",
|
|
35294
35287
|
"icon-allow-overlap": !0,
|
|
35295
35288
|
"icon-ignore-placement": !0
|
|
35296
35289
|
}
|
|
35297
35290
|
});
|
|
35298
|
-
},
|
|
35299
|
-
if (!s.getLayer(
|
|
35300
|
-
let e =
|
|
35301
|
-
s.setPaintProperty(
|
|
35302
|
-
},
|
|
35291
|
+
}, w = () => {
|
|
35292
|
+
if (!s.getLayer(An)) return;
|
|
35293
|
+
let e = wn() ? 1 - pe : 1;
|
|
35294
|
+
s.setPaintProperty(An, "circle-opacity", e), s.setPaintProperty(An, "circle-stroke-opacity", e), s.setPaintProperty(jn, "text-opacity", e), s.setPaintProperty(Mn, "icon-opacity", e), s.setPaintProperty(Nn, "icon-opacity", e);
|
|
35295
|
+
}, T = (e = !1) => {
|
|
35303
35296
|
var t;
|
|
35304
35297
|
h(e);
|
|
35305
35298
|
let { cluster: n, data: r } = _();
|
|
35306
|
-
|
|
35307
|
-
},
|
|
35299
|
+
x(r, n), (t = s.getSource(kn)) == null || t.setData(r), w();
|
|
35300
|
+
}, E = (e) => {
|
|
35308
35301
|
if (!e.length) return;
|
|
35309
35302
|
let t = an(50);
|
|
35310
|
-
if (e.every((e) => on(s,
|
|
35311
|
-
let n = en(
|
|
35303
|
+
if (e.every((e) => on(s, p(e), t))) return;
|
|
35304
|
+
let n = en(f.fromPoints(e.map((e) => e.center)), c), r = s.cameraForBounds(n, {
|
|
35312
35305
|
padding: t,
|
|
35313
35306
|
bearing: a.bearing
|
|
35314
35307
|
});
|
|
@@ -35319,15 +35312,15 @@ function Vn(e, t, a) {
|
|
|
35319
35312
|
duration: 500,
|
|
35320
35313
|
essential: !0
|
|
35321
35314
|
});
|
|
35322
|
-
},
|
|
35315
|
+
}, D = (e) => {
|
|
35323
35316
|
var t;
|
|
35324
35317
|
let n = (t = e.features) == null || (t = t[0]) == null || (t = t.properties) == null ? void 0 : t.boothId;
|
|
35325
35318
|
if (typeof n != "number") return;
|
|
35326
|
-
let r =
|
|
35327
|
-
r &&
|
|
35328
|
-
},
|
|
35319
|
+
let r = C.boothStore.boothById.get(n);
|
|
35320
|
+
r && C.clickBooth(r);
|
|
35321
|
+
}, O = (e) => {
|
|
35329
35322
|
var t, n, r;
|
|
35330
|
-
let i = (t = e.features) == null ? void 0 : t[0], a = i == null || (n = i.properties) == null ? void 0 : n.cluster_id, o = s.getSource(
|
|
35323
|
+
let i = (t = e.features) == null ? void 0 : t[0], a = i == null || (n = i.properties) == null ? void 0 : n.cluster_id, o = s.getSource(kn);
|
|
35331
35324
|
if (typeof a != "number" || !o || (i == null || (r = i.geometry) == null ? void 0 : r.type) !== "Point") return;
|
|
35332
35325
|
let [c = 0, l = 0] = i.geometry.coordinates;
|
|
35333
35326
|
o.getClusterExpansionZoom(a).then((e) => {
|
|
@@ -35338,23 +35331,23 @@ function Vn(e, t, a) {
|
|
|
35338
35331
|
});
|
|
35339
35332
|
});
|
|
35340
35333
|
};
|
|
35341
|
-
s.on("click",
|
|
35342
|
-
let n =
|
|
35334
|
+
s.on("click", Mn, D), s.on("click", Nn, D), s.on("click", An, O), F.set((e, t) => {
|
|
35335
|
+
let n = In.filter((e) => !!s.getLayer(e));
|
|
35343
35336
|
if (!n.length) return !1;
|
|
35344
|
-
let r = s.project(
|
|
35337
|
+
let r = s.project(g(e, t, c));
|
|
35345
35338
|
return s.queryRenderedFeatures([r.x, r.y], { layers: n }).length > 0;
|
|
35346
35339
|
});
|
|
35347
|
-
let
|
|
35348
|
-
l.clear(),
|
|
35340
|
+
let k = () => {
|
|
35341
|
+
l.clear(), T(!0);
|
|
35349
35342
|
};
|
|
35350
|
-
s.on("style.load",
|
|
35351
|
-
let
|
|
35352
|
-
|
|
35353
|
-
}),
|
|
35354
|
-
return
|
|
35355
|
-
|
|
35343
|
+
s.on("style.load", k);
|
|
35344
|
+
let j = i(() => C.poiMarkerStore.markers, () => T(!0)), M = i(() => C.poiMarkerStore.selectedMarkerId, () => T()), N = i(() => C.poiMarkerStore.outdoorFilter.key, () => {
|
|
35345
|
+
T(), E(C.poiMarkerStore.outdoorFilter.matchingMarkers);
|
|
35346
|
+
}), P = i(() => wn(), () => w());
|
|
35347
|
+
return T(!0), () => {
|
|
35348
|
+
j(), M(), N(), P(), F.set(null), s.off("style.load", k), s.off("click", Mn, D), s.off("click", Nn, D), s.off("click", An, O);
|
|
35356
35349
|
try {
|
|
35357
|
-
|
|
35350
|
+
b();
|
|
35358
35351
|
for (let e of l) s.hasImage(e) && s.removeImage(e);
|
|
35359
35352
|
} catch {}
|
|
35360
35353
|
};
|
|
@@ -35366,14 +35359,14 @@ function Vn(e, t, a) {
|
|
|
35366
35359
|
}
|
|
35367
35360
|
//#endregion
|
|
35368
35361
|
//#region src/components/Maplibre/useWayfindingAndMarkers.ts
|
|
35369
|
-
function
|
|
35370
|
-
(0,
|
|
35362
|
+
function zn(e, t) {
|
|
35363
|
+
(0, I.useEffect)(() => {
|
|
35371
35364
|
if (!e) return;
|
|
35372
35365
|
let n = u({
|
|
35373
35366
|
scene: e,
|
|
35374
|
-
store:
|
|
35367
|
+
store: C,
|
|
35375
35368
|
canvas: t
|
|
35376
|
-
}), r =
|
|
35369
|
+
}), r = ce({ scene: e });
|
|
35377
35370
|
return () => {
|
|
35378
35371
|
n(), r();
|
|
35379
35372
|
};
|
|
@@ -35381,17 +35374,17 @@ function Hn(e, t) {
|
|
|
35381
35374
|
}
|
|
35382
35375
|
//#endregion
|
|
35383
35376
|
//#region src/components/Maplibre/utils/solver.ts
|
|
35384
|
-
var
|
|
35385
|
-
function
|
|
35377
|
+
var Bn = 1e-12, Vn = 3.28084, Hn = 6371e3, Un = 1, Wn = .02;
|
|
35378
|
+
function Gn(e, t) {
|
|
35386
35379
|
var n;
|
|
35387
35380
|
let r, i;
|
|
35388
35381
|
try {
|
|
35389
|
-
r =
|
|
35382
|
+
r = Yn(e), i = "perpendicular";
|
|
35390
35383
|
} catch (t) {
|
|
35391
35384
|
if (!e.p1) throw t;
|
|
35392
35385
|
r = e.p1, i = "explicit-fallback";
|
|
35393
35386
|
}
|
|
35394
|
-
let a =
|
|
35387
|
+
let a = Kn(e);
|
|
35395
35388
|
i === "perpendicular" && a != null && a.inconsistent && console.warn("Maplibre geo: ignoring inconsistent anchor p1; placing venue from the p0->p2 diagonal.", {
|
|
35396
35389
|
angleErrorDeg: a.angleErrorDeg,
|
|
35397
35390
|
sideRatioError: a.ratioError
|
|
@@ -35402,9 +35395,9 @@ function Jn(e, t) {
|
|
|
35402
35395
|
e.p2
|
|
35403
35396
|
], s = [], c = [], l = [];
|
|
35404
35397
|
for (let e of o) {
|
|
35405
|
-
|
|
35406
|
-
let t =
|
|
35407
|
-
|
|
35398
|
+
Xn(e), c.push([e.x, e.y]);
|
|
35399
|
+
let t = he.MercatorCoordinate.fromLngLat([e.lng, e.lat], 0), n = t.meterInMercatorCoordinateUnits();
|
|
35400
|
+
Zn(t.x), Zn(t.y), Zn(n), s.push(n), l.push([t.x, t.y]);
|
|
35408
35401
|
}
|
|
35409
35402
|
let u = [], d = [];
|
|
35410
35403
|
for (let e = 0; e < 3; e++) {
|
|
@@ -35425,7 +35418,7 @@ function Jn(e, t) {
|
|
|
35425
35418
|
1
|
|
35426
35419
|
]), d.push(i);
|
|
35427
35420
|
}
|
|
35428
|
-
let [f, p, m, h, g, _] =
|
|
35421
|
+
let [f, p, m, h, g, _] = rr(u, d), v = (t == null || (n = t.toLowerCase) == null ? void 0 : n.call(t).trim()) === "ft" ? 1 / Vn : 1, y = [
|
|
35429
35422
|
f,
|
|
35430
35423
|
h,
|
|
35431
35424
|
0,
|
|
@@ -35446,34 +35439,34 @@ function Jn(e, t) {
|
|
|
35446
35439
|
if (!y.every(Number.isFinite)) throw Error("Cannot calculate Maplibre transform: geo anchor points produced a non-finite matrix.");
|
|
35447
35440
|
return y;
|
|
35448
35441
|
}
|
|
35449
|
-
function
|
|
35442
|
+
function Kn(e) {
|
|
35450
35443
|
let t = e.p1;
|
|
35451
35444
|
if (!t) return null;
|
|
35452
|
-
let n =
|
|
35445
|
+
let n = qn(e.p0.x, e.p0.y, t.x, t.y, e.p2.x, e.p2.y), r = Jn(e.p0, t, e.p2), i = Math.abs(n.angleDeg - r.angleDeg), a = Number.isFinite(r.axisRatio) && r.axisRatio > 0 ? Math.abs(n.axisRatio / r.axisRatio - 1) : Infinity;
|
|
35453
35446
|
return {
|
|
35454
35447
|
angleErrorDeg: i,
|
|
35455
35448
|
ratioError: a,
|
|
35456
|
-
inconsistent: i >
|
|
35449
|
+
inconsistent: i > Un || a > Wn
|
|
35457
35450
|
};
|
|
35458
35451
|
}
|
|
35459
|
-
function
|
|
35452
|
+
function qn(e, t, n, r, i, a) {
|
|
35460
35453
|
let o = Math.hypot(n - e, r - t), s = Math.hypot(i - e, a - t), c = (n - e) * (i - e) + (r - t) * (a - t), l = o > 0 && s > 0 ? c / (o * s) : NaN;
|
|
35461
35454
|
return {
|
|
35462
35455
|
axisRatio: o > 0 ? s / o : Infinity,
|
|
35463
|
-
angleDeg:
|
|
35456
|
+
angleDeg: $n(Math.acos(Math.max(-1, Math.min(1, l))))
|
|
35464
35457
|
};
|
|
35465
35458
|
}
|
|
35466
|
-
function
|
|
35467
|
-
let r =
|
|
35459
|
+
function Jn(e, t, n) {
|
|
35460
|
+
let r = er(e.lat, e.lng, t.lat, t.lng), i = er(e.lat, e.lng, n.lat, n.lng), a = tr(e.lat, e.lng, t.lat, t.lng), o = tr(e.lat, e.lng, n.lat, n.lng), s = Math.abs(o - a) % 360;
|
|
35468
35461
|
return s > 180 && (s = 360 - s), {
|
|
35469
35462
|
axisRatio: r > 0 ? i / r : Infinity,
|
|
35470
35463
|
angleDeg: s
|
|
35471
35464
|
};
|
|
35472
35465
|
}
|
|
35473
|
-
function
|
|
35466
|
+
function Yn(e) {
|
|
35474
35467
|
let t = e.p2.x - e.p0.x, n = e.p2.y - e.p0.y;
|
|
35475
35468
|
if (t === 0 && n === 0) throw Error("Cannot calculate Maplibre transform: p0 and p2 have identical SVG coordinates.");
|
|
35476
|
-
let r = e.p0.x - n, i = e.p0.y + t, a =
|
|
35469
|
+
let r = e.p0.x - n, i = e.p0.y + t, a = er(e.p0.lat, e.p0.lng, e.p2.lat, e.p2.lng), o = tr(e.p0.lat, e.p0.lng, e.p2.lat, e.p2.lng), [s, c] = nr(e.p0.lat, e.p0.lng, a, o + 90);
|
|
35477
35470
|
return {
|
|
35478
35471
|
x: r,
|
|
35479
35472
|
y: i,
|
|
@@ -35481,36 +35474,36 @@ function Qn(e) {
|
|
|
35481
35474
|
lng: s
|
|
35482
35475
|
};
|
|
35483
35476
|
}
|
|
35484
|
-
function
|
|
35485
|
-
|
|
35477
|
+
function Xn(e) {
|
|
35478
|
+
Zn(e.x), Zn(e.y), Zn(e.lat), Zn(e.lng);
|
|
35486
35479
|
}
|
|
35487
|
-
function
|
|
35480
|
+
function Zn(e) {
|
|
35488
35481
|
if (!Number.isFinite(e)) throw Error("Cannot calculate Maplibre transform: geo anchor points contain invalid coordinates.");
|
|
35489
35482
|
}
|
|
35490
|
-
function
|
|
35483
|
+
function Qn(e) {
|
|
35491
35484
|
return e * Math.PI / 180;
|
|
35492
35485
|
}
|
|
35493
|
-
function
|
|
35486
|
+
function $n(e) {
|
|
35494
35487
|
return e * 180 / Math.PI;
|
|
35495
35488
|
}
|
|
35496
|
-
function
|
|
35497
|
-
let i =
|
|
35498
|
-
return
|
|
35489
|
+
function er(e, t, n, r) {
|
|
35490
|
+
let i = Qn(e), a = Qn(n), o = Qn(n - e), s = Qn(r - t), c = Math.sin(o / 2) * Math.sin(o / 2) + Math.cos(i) * Math.cos(a) * Math.sin(s / 2) * Math.sin(s / 2);
|
|
35491
|
+
return Hn * (2 * Math.atan2(Math.sqrt(c), Math.sqrt(1 - c)));
|
|
35499
35492
|
}
|
|
35500
|
-
function
|
|
35501
|
-
let i =
|
|
35502
|
-
return (
|
|
35493
|
+
function tr(e, t, n, r) {
|
|
35494
|
+
let i = Qn(e), a = Qn(n), o = Qn(r - t), s = Math.sin(o) * Math.cos(a), c = Math.cos(i) * Math.sin(a) - Math.sin(i) * Math.cos(a) * Math.cos(o);
|
|
35495
|
+
return ($n(Math.atan2(s, c)) + 360) % 360;
|
|
35503
35496
|
}
|
|
35504
|
-
function
|
|
35505
|
-
let i = n /
|
|
35506
|
-
return [
|
|
35497
|
+
function nr(e, t, n, r) {
|
|
35498
|
+
let i = n / Hn, a = Qn(r), o = Qn(e), s = Qn(t), c = Math.asin(Math.sin(o) * Math.cos(i) + Math.cos(o) * Math.sin(i) * Math.cos(a));
|
|
35499
|
+
return [$n(s + Math.atan2(Math.sin(a) * Math.sin(i) * Math.cos(o), Math.cos(i) - Math.sin(o) * Math.sin(c))), $n(c)];
|
|
35507
35500
|
}
|
|
35508
|
-
function
|
|
35501
|
+
function rr(e, t) {
|
|
35509
35502
|
let n = e.length, r = e.map((e, n) => [...e, t[n]]);
|
|
35510
35503
|
for (let e = 0; e < n; e++) {
|
|
35511
35504
|
let t = e;
|
|
35512
35505
|
for (let i = e + 1; i < n; i++) Math.abs(r[i][e]) > Math.abs(r[t][e]) && (t = i);
|
|
35513
|
-
if ([r[e], r[t]] = [r[t], r[e]], Math.abs(r[e][e]) <
|
|
35506
|
+
if ([r[e], r[t]] = [r[t], r[e]], Math.abs(r[e][e]) < Bn) throw Error("Cannot calculate Maplibre transform: geo anchor points are collinear or invalid.");
|
|
35514
35507
|
for (let t = e + 1; t < n; t++) {
|
|
35515
35508
|
let i = r[t][e] / r[e][e];
|
|
35516
35509
|
for (let a = e; a <= n; a++) r[t][a] -= i * r[e][a];
|
|
@@ -35526,8 +35519,8 @@ function or(e, t) {
|
|
|
35526
35519
|
}
|
|
35527
35520
|
//#endregion
|
|
35528
35521
|
//#region src/components/Maplibre/MaplibreAdapter.tsx
|
|
35529
|
-
var
|
|
35530
|
-
function
|
|
35522
|
+
var ir = "routes-api.expofp.com", ar = 800;
|
|
35523
|
+
function or(e, t, n) {
|
|
35531
35524
|
return {
|
|
35532
35525
|
getCameraState: () => {
|
|
35533
35526
|
let t = e.getCenter();
|
|
@@ -35546,7 +35539,7 @@ function lr(e, t, n) {
|
|
|
35546
35539
|
zoom: r.zoom,
|
|
35547
35540
|
bearing: (i = r.bearing) == null ? t : i,
|
|
35548
35541
|
pitch: (a = r.pitch) == null ? n() : a,
|
|
35549
|
-
duration:
|
|
35542
|
+
duration: ar,
|
|
35550
35543
|
essential: !0
|
|
35551
35544
|
});
|
|
35552
35545
|
},
|
|
@@ -35556,28 +35549,28 @@ function lr(e, t, n) {
|
|
|
35556
35549
|
}
|
|
35557
35550
|
};
|
|
35558
35551
|
}
|
|
35559
|
-
function
|
|
35560
|
-
|
|
35561
|
-
|
|
35552
|
+
function sr() {
|
|
35553
|
+
C.poiMarkerStore.clear(), a(() => {
|
|
35554
|
+
C.layerStore.layers.forEach((e) => {
|
|
35562
35555
|
e.configured = !1, e.children = [], e.loaded = !1;
|
|
35563
|
-
}),
|
|
35556
|
+
}), C.layerStore.layersLoaded = !1;
|
|
35564
35557
|
});
|
|
35565
35558
|
}
|
|
35566
|
-
var
|
|
35559
|
+
var cr = ne(function({ viewMode: e }) {
|
|
35567
35560
|
var t;
|
|
35568
|
-
let [n, r] = (0,
|
|
35569
|
-
layerViewbox:
|
|
35570
|
-
explicitArea:
|
|
35571
|
-
layerRectangle:
|
|
35561
|
+
let [n, r] = (0, I.useState)(null), [i, a] = (0, I.useState)(!1), o = (0, I.useRef)(null), s = (0, I.useRef)(null), l = (0, I.useRef)(null), u = (0, I.useRef)(null), d = (0, I.useRef)(null), f = (0, I.useMemo)(() => sn(), []), p = (0, I.useMemo)(() => k({
|
|
35562
|
+
layerViewbox: C.layerStore.viewboxRectangle,
|
|
35563
|
+
explicitArea: P ? N : null,
|
|
35564
|
+
layerRectangle: C.layerStore.rectangle,
|
|
35572
35565
|
sceneDef: n,
|
|
35573
|
-
svgArea:
|
|
35574
|
-
}), [n]),
|
|
35566
|
+
svgArea: N
|
|
35567
|
+
}), [n]), m = p.rect, h = (0, I.useMemo)(() => {
|
|
35575
35568
|
if (!f) return null;
|
|
35576
|
-
let e =
|
|
35577
|
-
e &&
|
|
35578
|
-
let n =
|
|
35579
|
-
width:
|
|
35580
|
-
height:
|
|
35569
|
+
let e = w(p.source) ? 0 : T(m, N), t = an(0);
|
|
35570
|
+
e && O.screenSize && (t.left += O.screenSize.width * e, t.right += O.screenSize.width * e, t.top += O.screenSize.height * e, t.bottom += O.screenSize.height * e);
|
|
35571
|
+
let n = O.screenSize ? nn(m, f.gpsConfig, f.bearing, {
|
|
35572
|
+
width: O.screenSize.width,
|
|
35573
|
+
height: O.screenSize.height
|
|
35581
35574
|
}, t) : null;
|
|
35582
35575
|
return n ? {
|
|
35583
35576
|
center: n.center,
|
|
@@ -35587,20 +35580,31 @@ var dr = re(function({ viewMode: e }) {
|
|
|
35587
35580
|
center: f.center,
|
|
35588
35581
|
bearing: f.bearing,
|
|
35589
35582
|
zoom: f.zoom,
|
|
35590
|
-
bounds: en(
|
|
35583
|
+
bounds: en(m, f.gpsConfig),
|
|
35591
35584
|
fitPadding: t,
|
|
35592
35585
|
zoomAdjustment: Gt
|
|
35593
35586
|
};
|
|
35594
35587
|
}, [
|
|
35595
35588
|
f,
|
|
35596
|
-
|
|
35597
|
-
|
|
35598
|
-
]),
|
|
35589
|
+
p,
|
|
35590
|
+
m
|
|
35591
|
+
]), g = (0, I.useMemo)(() => {
|
|
35599
35592
|
var e;
|
|
35600
|
-
return f ?
|
|
35601
|
-
}, [f]),
|
|
35602
|
-
|
|
35603
|
-
|
|
35593
|
+
return f ? Gn(f.gpsConfig, (e = E()) == null ? void 0 : e.getAttribute("units")) : null;
|
|
35594
|
+
}, [f]), b = O.mapSettings.pitchdegrees, D = O.maxPitch, A = (0, I.useMemo)(() => {
|
|
35595
|
+
let t = e === "map2d";
|
|
35596
|
+
return {
|
|
35597
|
+
pitch: t ? 0 : b,
|
|
35598
|
+
maxPitch: t ? 0 : D,
|
|
35599
|
+
minZoom: 12
|
|
35600
|
+
};
|
|
35601
|
+
}, [
|
|
35602
|
+
e,
|
|
35603
|
+
b,
|
|
35604
|
+
D
|
|
35605
|
+
]), j = (0, I.useRef)(A), ee = (0, I.useMemo)(() => Cn(), []), F = (0, I.useMemo)(() => {
|
|
35606
|
+
if (!n || !g) return null;
|
|
35607
|
+
let e = n.rootLayer.children, t = _(e) ? e.filter((e) => e.name.toLowerCase() !== "areamap") : e;
|
|
35604
35608
|
return {
|
|
35605
35609
|
...n,
|
|
35606
35610
|
rootLayer: {
|
|
@@ -35608,81 +35612,81 @@ var dr = re(function({ viewMode: e }) {
|
|
|
35608
35612
|
children: t
|
|
35609
35613
|
},
|
|
35610
35614
|
background: void 0,
|
|
35611
|
-
staticTransform:
|
|
35615
|
+
staticTransform: g
|
|
35612
35616
|
};
|
|
35613
|
-
}, [n,
|
|
35614
|
-
(0,
|
|
35615
|
-
|
|
35616
|
-
}, [
|
|
35617
|
-
if (
|
|
35618
|
-
}, [
|
|
35619
|
-
let { mapDimAnimatorRef:
|
|
35620
|
-
(0,
|
|
35617
|
+
}, [n, g]), ne = (0, I.useRef)(null);
|
|
35618
|
+
(0, I.useEffect)(() => {
|
|
35619
|
+
ne.current = F;
|
|
35620
|
+
}, [F]), (0, I.useEffect)(() => {
|
|
35621
|
+
if (F) return M(F), () => M(void 0);
|
|
35622
|
+
}, [F]);
|
|
35623
|
+
let { mapDimAnimatorRef: re, venueDimAnimatorRef: ce, applyDimmingTarget: le, handleMapDimLayerReady: de } = Tn(o, ne);
|
|
35624
|
+
(0, I.useEffect)(() => {
|
|
35621
35625
|
if (!f) return;
|
|
35622
35626
|
let e = !1;
|
|
35623
|
-
|
|
35627
|
+
sr(), oe().then(({ layers: t, cleanup: n }) => {
|
|
35624
35628
|
if (e) {
|
|
35625
35629
|
n();
|
|
35626
35630
|
return;
|
|
35627
35631
|
}
|
|
35628
35632
|
l.current = n;
|
|
35629
|
-
let i = (0,
|
|
35630
|
-
r(
|
|
35633
|
+
let i = (0, me.default)(S.backgroundColor === "none" ? "#ebebeb" : S.backgroundColor).string();
|
|
35634
|
+
r(x(t, N, i));
|
|
35631
35635
|
}).catch((t) => {
|
|
35632
35636
|
e || console.warn("Maplibre scene configuration failed.", t);
|
|
35633
35637
|
});
|
|
35634
|
-
let t =
|
|
35638
|
+
let t = re.current, n = ce.current;
|
|
35635
35639
|
return () => {
|
|
35636
35640
|
var r;
|
|
35637
|
-
e = !0,
|
|
35641
|
+
e = !0, sr(), (r = l.current) == null || r.call(l), l.current = null, d.current && (C.maplibreStore.clearCameraPortIfCurrent(d.current), d.current = null), o.current = null, s.current = null, u.current = null, a(!1), t == null || t.stop(), n == null || n.stop(), O.sceneDefReady = !1;
|
|
35638
35642
|
};
|
|
35639
35643
|
}, [
|
|
35640
35644
|
f,
|
|
35641
|
-
|
|
35642
|
-
|
|
35645
|
+
re,
|
|
35646
|
+
ce
|
|
35643
35647
|
]);
|
|
35644
|
-
let
|
|
35648
|
+
let pe = (0, I.useCallback)((e, t) => {
|
|
35645
35649
|
var n;
|
|
35646
|
-
o.current = e, s.current = e.getCanvas(), u.current = t, a(!0),
|
|
35647
|
-
let r =
|
|
35650
|
+
o.current = e, s.current = e.getCanvas(), u.current = t, a(!0), e.once("idle", () => Sn(e, j.current));
|
|
35651
|
+
let r = or(e, (n = f == null ? void 0 : f.bearing) == null ? e.getBearing() : n, () => {
|
|
35648
35652
|
var e;
|
|
35649
|
-
return (e =
|
|
35653
|
+
return (e = j.current.pitch) == null ? 0 : e;
|
|
35650
35654
|
});
|
|
35651
|
-
d.current = r,
|
|
35652
|
-
}, [
|
|
35653
|
-
(0,
|
|
35654
|
-
|
|
35655
|
-
}, [
|
|
35656
|
-
enabled:
|
|
35657
|
-
scene:
|
|
35655
|
+
d.current = r, C.maplibreStore.setCameraPort(r), C.fp.getCenterCoordinates = () => ie(s.current), le({ immediate: !0 }), te(), C.layerStore.layersLoaded = !0, C.fp.onFpConfigured && C.fp.onFpConfigured(), O.sceneDefReady = !0, t();
|
|
35656
|
+
}, [le, f]);
|
|
35657
|
+
(0, I.useEffect)(() => {
|
|
35658
|
+
j.current = A, Sn(o.current, A);
|
|
35659
|
+
}, [A]), En(i, o), zn(F, s), Rn(i, o, f), On(F, o, f), pn(o, f, F), ae({
|
|
35660
|
+
enabled: C.layerStore.layersLoaded && O.buildRoute,
|
|
35661
|
+
scene: F == null ? void 0 : F
|
|
35658
35662
|
});
|
|
35659
|
-
let
|
|
35660
|
-
|
|
35661
|
-
permission:
|
|
35662
|
-
scene:
|
|
35663
|
-
dataJsonUrl: `https://${
|
|
35664
|
-
websocketUrl: `wss://${
|
|
35663
|
+
let he = (t = y.busRoutes) != null && t;
|
|
35664
|
+
se({
|
|
35665
|
+
permission: C.layerStore.layersLoaded && he,
|
|
35666
|
+
scene: F == null ? void 0 : F,
|
|
35667
|
+
dataJsonUrl: `https://${ir}/v1/routes?expo=${S.EXPO}`,
|
|
35668
|
+
websocketUrl: `wss://${ir}/locations?expo=${S.EXPO}`
|
|
35665
35669
|
});
|
|
35666
|
-
let
|
|
35667
|
-
console.warn("Maplibre map failed to load; falling back to floorplan mode.", e),
|
|
35670
|
+
let ge = (0, I.useCallback)((e) => {
|
|
35671
|
+
console.warn("Maplibre map failed to load; falling back to floorplan mode.", e), C.maplibreStore.deactivateMaplibre();
|
|
35668
35672
|
}, []);
|
|
35669
|
-
if (!f || !
|
|
35670
|
-
let
|
|
35673
|
+
if (!f || !h || !g || !F) return null;
|
|
35674
|
+
let _e = `${h.center.join(",")}:${h.bearing}:${h.zoom}`;
|
|
35671
35675
|
return /* @__PURE__ */ (0, Mt.jsxs)(Wt, {
|
|
35672
|
-
sceneDef:
|
|
35673
|
-
geoConfig:
|
|
35674
|
-
tileSource:
|
|
35675
|
-
mapOptions:
|
|
35676
|
+
sceneDef: F,
|
|
35677
|
+
geoConfig: h,
|
|
35678
|
+
tileSource: ee,
|
|
35679
|
+
mapOptions: A,
|
|
35676
35680
|
debug: c,
|
|
35677
|
-
onMapReady:
|
|
35678
|
-
onMapDimLayerReady:
|
|
35679
|
-
onMapLoadError:
|
|
35680
|
-
onPointerMissed:
|
|
35681
|
-
children: [/* @__PURE__ */ (0, Mt.jsx)(
|
|
35682
|
-
},
|
|
35681
|
+
onMapReady: pe,
|
|
35682
|
+
onMapDimLayerReady: de,
|
|
35683
|
+
onMapLoadError: ge,
|
|
35684
|
+
onPointerMissed: v,
|
|
35685
|
+
children: [/* @__PURE__ */ (0, Mt.jsx)(ue, {}), c && /* @__PURE__ */ (0, Mt.jsx)(fe, { canvas: s })]
|
|
35686
|
+
}, _e);
|
|
35683
35687
|
});
|
|
35684
35688
|
//#endregion
|
|
35685
|
-
export {
|
|
35689
|
+
export { cr as default };
|
|
35686
35690
|
|
|
35687
35691
|
;/* vite-per-chunk-css */
|
|
35688
35692
|
__vite_inject_css__(".maplibregl-map{-webkit-tap-highlight-color:#0000;font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;position:relative;overflow:hidden}.maplibregl-canvas{position:absolute;top:0;left:0}.maplibregl-map:-webkit-full-screen{width:100%;height:100%}.maplibregl-map:fullscreen{width:100%;height: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;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;z-index:2;position:absolute}.maplibregl-ctrl-top-left{top:0;left:0}.maplibregl-ctrl-top-right{top:0;right: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 #0000001a}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px buttontext}}.maplibregl-ctrl-group button{box-sizing:border-box;cursor:pointer;background-color:#0000;border:0;outline:none;width:29px;height:29px;padding:0;display:block}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{background-position:50%;background-repeat:no-repeat;width:100%;height:100%;display:block}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:#0000}.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:#0000000d}}.maplibregl-ctrl button:not(:disabled):active{background-color:#0000000d}.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:2s linear infinite maplibregl-spin}@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(0)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{cursor:pointer;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;width:88px;height:23px;margin:0 0 -4px -4px;display:block;overflow:hidden}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:#0000;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:#ffffff80;margin:0;padding:0 5px}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{box-sizing:content-box;color:#000;background-color:#fff;border-radius:12px;min-height:20px;margin:10px;padding:2px 24px 2px 0;position:relative}.maplibregl-ctrl-attrib.maplibregl-compact-show{visibility:visible;padding:2px 28px 2px 8px}.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{box-sizing:border-box;cursor:pointer;background-color:#ffffff80;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;outline:none;width:24px;height:24px;display:none;position:absolute;top:0;right:0}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-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:#0000000d}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;right:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;left: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:#000000bf;text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{box-sizing:border-box;color:#333;white-space:nowrap;background-color:#ffffffbf;border:2px solid #333;border-top:#333;padding:0 5px;font-size:10px}.maplibregl-popup{pointer-events:none;will-change:transform;display:flex;position:absolute;top:0;left:0}.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{z-index:1;border:10px solid #0000;width:0;height:0}.maplibregl-popup-anchor-top .maplibregl-popup-tip{border-top:none;border-bottom-color:#fff;align-self:center}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{border-top:none;border-bottom-color:#fff;border-left:none;align-self:flex-start}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{border-top:none;border-bottom-color:#fff;border-right:none;align-self:flex-end}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{border-top-color:#fff;border-bottom:none;align-self:center}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{border-top-color:#fff;border-bottom:none;border-left:none;align-self:flex-start}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{border-top-color:#fff;border-bottom:none;border-right:none;align-self:flex-end}.maplibregl-popup-anchor-left .maplibregl-popup-tip{border-left:none;border-right-color:#fff;align-self:center}.maplibregl-popup-anchor-right .maplibregl-popup-tip{border-left-color:#fff;border-right:none;align-self:center}[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{cursor:pointer;background-color:#0000;border:0;border-radius:0 3px 0 0;position:absolute;top:0;right:0}.maplibregl-popup-close-button:hover{background-color:#0000000d}.maplibregl-popup-content{pointer-events:auto;background:#fff;border-radius:3px;padding:15px 10px;position:relative;box-shadow:0 1px 2px #0000001a}.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;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{will-change:transform;transition:opacity .2s;position:absolute;top:0;left:0}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;border-radius:50%;width:15px;height:15px}.maplibregl-user-location-dot:before{content:\"\";animation:2s infinite maplibregl-user-location-dot-pulse;position:absolute}.maplibregl-user-location-dot:after{box-sizing:border-box;content:\"\";border:2px solid #fff;border-radius:50%;width:19px;height:19px;position:absolute;top:-2px;left:-2px;box-shadow:0 0 3px #00000059}@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%;width:1px;height:1px}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{opacity:.5;background:#fff;border:2px dotted #202020;width:0;height:0;position:absolute;top:0;left:0}.maplibregl-cooperative-gesture-screen{color:#fff;opacity:0;pointer-events:none;z-index:99999;background:#0006;justify-content:center;align-items:center;padding:1rem;font-size:1.4em;line-height:1.2;transition:opacity 1s 1s;display:flex;position:absolute;top:0;bottom:0;left:0;right:0}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity 50ms}.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{z-index:99999;width:100%!important;height:100%!important;position:fixed!important;top:0!important;left:0!important}\n/*$vite$:1*/", "MaplibreAdapter.css", false);
|