@expofp/floorplan 3.45.11 → 3.45.13

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.
Files changed (94) hide show
  1. package/dist/browser/{Button-wvbcVeFB.js → Button-RHSLdZ8P.js} +5 -5
  2. package/dist/browser/{CookieConsent-Culs9sI1.js → CookieConsent-tlDN9k4r.js} +7 -7
  3. package/dist/browser/{Debug-BM8bkKs4.js → Debug-8l7GSED6.js} +7 -7
  4. package/dist/browser/{DebugTools-fmsxTLzp.js → DebugTools-ipof0w8h.js} +6 -6
  5. package/dist/browser/{Demo-C3o1FEbw.js → Demo-CwZivFF-.js} +9 -9
  6. package/dist/browser/{Free-D1AZmJe7.js → Free-D4gNZ4RA.js} +10 -10
  7. package/dist/browser/{GalleryContainer-Bbj-p43R.js → GalleryContainer-B8L8n_4E.js} +11 -11
  8. package/dist/browser/{GpsLoader-BNqyoowH.js → GpsLoader-u9Gln6H7.js} +13 -13
  9. package/dist/browser/{KioskStore-BiM1CrZM.js → KioskStore-BWf8YM7M.js} +10 -10
  10. package/dist/browser/{LayerStore-CYhUcBJN.js → LayerStore-CrWyrBRa.js} +825 -819
  11. package/dist/browser/{MaplibreAdapter-Cr1b2MUz.js → MaplibreAdapter-Cd-gdHxM.js} +144 -144
  12. package/dist/browser/{ModalContainer-bhF8uauy.js → ModalContainer-DVKprzvo.js} +10 -10
  13. package/dist/browser/{PermissionNotice-Cp33Dup_.js → PermissionNotice-BMQHGUs9.js} +6 -6
  14. package/dist/browser/{RouteStore-BnA20xcN.js → RouteStore-BiUI1Uef.js} +127 -127
  15. package/dist/browser/{SetKioskMode-DlEk89q8.js → SetKioskMode-Bt9Ap5HU.js} +14 -14
  16. package/dist/browser/{ShowKiosk-C_2hw-6E.js → ShowKiosk-rsxj5Ort.js} +10 -10
  17. package/dist/browser/{UIState-B9mFI9_m.js → UIState-DgWaz-eQ.js} +89 -89
  18. package/dist/browser/{ViewerMenuPanel-DlXU3ixM.js → ViewerMenuPanel-6oBbHGtm.js} +11 -11
  19. package/dist/browser/{add-debug-secret-listener-xal_XewS.js → add-debug-secret-listener-CrdHdOJy.js} +1 -1
  20. package/dist/browser/{adopt-global-settings-BDiKKjee.js → adopt-global-settings-zscIy9Gm.js} +9 -9
  21. package/dist/browser/{boolean-editor-Sma15U6s.js → boolean-editor-CKqy8Ity.js} +9 -9
  22. package/dist/browser/{bootIntercom-CvT_A8p8.js → bootIntercom-B98qYnKB.js} +2 -2
  23. package/dist/browser/bundle.json +85 -85
  24. package/dist/browser/{camera-events-DtEEOjHJ.js → camera-events-CT_HBink.js} +1 -1
  25. package/dist/browser/{classnames-DOWh55m7.js → classnames-jjUCCpoy.js} +2 -2
  26. package/dist/browser/{client-Bq8KC_Gd.js → client-CWN8yeUz.js} +5 -5
  27. package/dist/browser/{components-DAgPmGLN.js → components-BYuTjlcn.js} +239 -245
  28. package/dist/browser/{create-live-plan-CyeXLvG9.js → create-live-plan-DplxEMws.js} +73 -73
  29. package/dist/browser/{debug-context-DgfLIP_z.js → debug-context-DswaH7mN.js} +5 -5
  30. package/dist/browser/{debug-overlay-DjhkoXTh.js → debug-overlay-khJHt49U.js} +10 -10
  31. package/dist/browser/{debug-ui-C5Ov9nWP.js → debug-ui-BEApU0Hr.js} +6 -6
  32. package/dist/browser/{dist-D7R1HRT6.js → dist-BsTWH7q7.js} +5 -5
  33. package/dist/browser/{dist-D8q30ciB.js → dist-CgdNmEoc.js} +3 -3
  34. package/dist/browser/{dist-BPgTae9z.js → dist-q2Ip5e-y.js} +6 -6
  35. package/dist/browser/{efp-debug-init-CI7-9-EF.js → efp-debug-init-DBQbSv4u.js} +3 -3
  36. package/dist/browser/{enum-editor-DgdrIT6p.js → enum-editor-CxeGNBqb.js} +4 -4
  37. package/dist/browser/{es5-CKWQYgqj.js → es5-C4CifKWw.js} +2 -2
  38. package/dist/browser/{event-head-CGnPGf8r.js → event-head-D1EKVWKM.js} +1 -1
  39. package/dist/browser/{event-not-found-BczHwPfj.js → event-not-found-DcLfsbev.js} +3 -3
  40. package/dist/browser/{event-scoped-cache-D2VS2gfE.js → event-scoped-cache-BbzF7HuS.js} +2 -2
  41. package/dist/browser/{expofpUrl-BjxV_NsI.js → expofpUrl-BkFfQVWT.js} +1 -1
  42. package/dist/browser/{exports-Ck0hSnNP.js → exports-CJmfzEbr.js} +1 -1
  43. package/dist/browser/{favicon-DXRCQyX8.js → favicon-C17ZDAmX.js} +1 -1
  44. package/dist/browser/{fetch-retry.umd-BpErXOBo.js → fetch-retry.umd-KfV_kX2J.js} +2 -2
  45. package/dist/browser/{flex-BQOoxB4K.js → flex-BlLYvxBy.js} +5 -5
  46. package/dist/browser/{floorplan.loader-BevvQXsH.js → floorplan.loader-BZfuR9KC.js} +12 -12
  47. package/dist/browser/{floorplan.ready-CfjIq-tD.js → floorplan.ready-CuozrQJq.js} +30 -30
  48. package/dist/browser/{framing-rect-DMoOdaT6.js → framing-rect-_cN7Jp0z.js} +355 -363
  49. package/dist/browser/{freeBanner-BLUQe1wS.js → freeBanner-DC2vjpf5.js} +2 -2
  50. package/dist/browser/{fuse-ZrYQLa2i.js → fuse-BYQPvbIk.js} +2 -2
  51. package/dist/browser/{i18n-BLaFErhY.js → i18n-BDc7lWFh.js} +6 -6
  52. package/dist/browser/index.js +17 -17
  53. package/dist/browser/{index.module-Cgw9eIFs.js → index.module-DUgyUoBP.js} +4 -4
  54. package/dist/browser/{init-ui-C168qd--.js → init-ui-xCaP1iGt.js} +13 -13
  55. package/dist/browser/{integrateKiosk-CItUrjqr.js → integrateKiosk-pm7XEmxW.js} +5 -5
  56. package/dist/browser/{is-debug-5Wx1pzmC.js → is-debug-Bk6Ww-mR.js} +4 -4
  57. package/dist/browser/{is-own-domain-CQwNRlOP.js → is-own-domain-DtyPiuBK.js} +1 -1
  58. package/dist/browser/{is-webview-M2z00we8.js → is-webview-DpsVH2Y1.js} +1 -1
  59. package/dist/browser/{jsx-runtime-BUD3cKrd.js → jsx-runtime-ClNfOC6f.js} +2 -2
  60. package/dist/browser/{kiosk-mode-oR6Qku6R.js → kiosk-mode-CHV9ESCa.js} +3 -3
  61. package/dist/browser/{kiosk-record-B4TPlUVM.js → kiosk-record-WGoZsWrI.js} +1 -1
  62. package/dist/browser/{kioskApi-Bjbnt2QJ.js → kioskApi-CbDD11ug.js} +7 -7
  63. package/dist/browser/{lib-DCkZiNTx.js → lib-CyCGPKo7.js} +3 -3
  64. package/dist/browser/{loadImage-CsHBlWDX.js → loadImage-w_zuSX7Q.js} +1 -1
  65. package/dist/browser/{logDeviceInfo-CBp39wle.js → logDeviceInfo-DladzOhP.js} +9 -9
  66. package/dist/browser/{mobx-BKuZa-uE.js → mobx-DRjOCpOl.js} +4 -4
  67. package/dist/browser/{mobx.module-DLfbGzOu.js → mobx.module-Cv_4Fqn4.js} +1 -1
  68. package/dist/browser/{optional-boolean-editor-C_nG8KPk.js → optional-boolean-editor-CX8YBA0h.js} +3 -3
  69. package/dist/browser/{optional-enum-editor-Cz65owXN.js → optional-enum-editor-BxGv8bpn.js} +4 -4
  70. package/dist/browser/{optional-string-editor-CiixI5VU.js → optional-string-editor-DqMnNBXu.js} +4 -4
  71. package/dist/browser/{particles.min-Dg9rhGQw.js → particles.min-ejj5e5kU.js} +2 -2
  72. package/dist/browser/{react-9fRUfYcQ.js → react-Dw5YXa-Y.js} +2 -2
  73. package/dist/browser/{react-dom-BnQ0aR5T.js → react-dom-Dd8g1448.js} +3 -3
  74. package/dist/browser/{rolldown-runtime-DW9kw2-Z.js → rolldown-runtime-BDjyEY82.js} +1 -1
  75. package/dist/browser/{scene-CfgUV6qo.js → scene-BuSOJ1kI.js} +9 -9
  76. package/dist/browser/{scheduler-2CNHK3J9.js → scheduler-2PunDhbX.js} +2 -2
  77. package/dist/browser/{select-DhztBWaW.js → select-BZ4woGJi.js} +10 -10
  78. package/dist/browser/{settings-CQJfzF0P.js → settings-BQ58wk59.js} +2 -2
  79. package/dist/browser/{settings-item-C8z-VDRo.js → settings-item-DkAN7SK-.js} +6 -6
  80. package/dist/browser/{store-CToL6ro6.js → store-Djiw0f15.js} +2 -2
  81. package/dist/browser/{string-editor-CfDpSKQj.js → string-editor-BxjGvgq8.js} +4 -4
  82. package/dist/browser/{text-field-Cc4OOu_O.js → text-field-1Qf6vcza.js} +5 -5
  83. package/dist/browser/{theme-DyT10pAe.js → theme-BY0D9YiW.js} +8 -8
  84. package/dist/browser/{ui-oWcLvPG5.js → ui-DFokN_S5.js} +8 -8
  85. package/dist/browser/{useRenderTarget-QHju4vdT.js → useRenderTarget-Bh-xmMgH.js} +4 -4
  86. package/dist/browser/{viewport-DtGAyX5m.js → viewport-BUn4KlO1.js} +3 -3
  87. package/dist/browser/{wayfinding-xq3uzwvp.js → wayfinding-BHyh7Wne.js} +228 -228
  88. package/dist/esm/components/Exhibitor.js +1 -1
  89. package/dist/esm/components/Map/drawing/config/config-markers.js +1 -1
  90. package/dist/esm/components/Map/traffic/useManageTraffic.js +1 -1
  91. package/dist/esm/engine/utils/rotation.d.ts +8 -0
  92. package/dist/esm/engine/utils/rotation.js +1 -1
  93. package/dist/esm/store/RouteStore.d.ts +1 -1
  94. package/package.json +11 -10
@@ -2,29 +2,29 @@ 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.45.11" };
5
+ e.SENTRY_RELEASE = { id: "3.45.13" };
6
6
  var t = new e.Error().stack;
7
- t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "9e49a9a3-9320-40a0-a82a-63406aecd0ed", e._sentryDebugIdIdentifier = "sentry-dbid-9e49a9a3-9320-40a0-a82a-63406aecd0ed");
7
+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "1a4db182-bd1a-4d9d-a8c0-b23a26f1091e", e._sentryDebugIdIdentifier = "sentry-dbid-1a4db182-bd1a-4d9d-a8c0-b23a26f1091e");
8
8
  } catch {}
9
9
  })();
10
- import { r as e, t } from "./rolldown-runtime-DW9kw2-Z.js";
11
- import { F as n, P as r, h as i, s as a } from "./i18n-BLaFErhY.js";
12
- import { t as o } from "./react-9fRUfYcQ.js";
13
- import { t as s } from "./jsx-runtime-BUD3cKrd.js";
14
- import { t as c } from "./is-debug-5Wx1pzmC.js";
15
- import { i as l, l as u, u as d } from "./mobx.module-DLfbGzOu.js";
16
- import { t as f } from "./index.module-Cgw9eIFs.js";
17
- import { l as p, u as m } from "./store-CToL6ro6.js";
18
- import { i as h } from "./mobx-BKuZa-uE.js";
19
- import { n as g, t as _ } from "./expofpUrl-BjxV_NsI.js";
20
- import { Bt as v, Kt as y, Ut as b, Vt as x, Zt as S, a as C, c as w, ct as T, ht as E, l as D, mt as O, o as k, pt as A, q as j, s as M, st as N, u as ee, vt as te, w as ne, y as re, zt as ie } from "./LayerStore-CYhUcBJN.js";
21
- import { g as ae, h as oe, n as se, p as ce } from "./wayfinding-xq3uzwvp.js";
22
- import { t as le } from "./camera-events-DtEEOjHJ.js";
23
- import { t as ue } from "./viewport-DtGAyX5m.js";
24
- import { a as de, c as fe, n as pe, o as me, s as he } from "./scene-CfgUV6qo.js";
25
- import { a as ge, c as _e, d as ve, i as ye, l as be, n as xe, o as Se, r as Ce, s as we, t as Te, u as Ee } from "./framing-rect-DMoOdaT6.js";
10
+ import { r as e, t } from "./rolldown-runtime-BDjyEY82.js";
11
+ import { F as n, P as r, h as i, s as a } from "./i18n-BDc7lWFh.js";
12
+ import { t as o } from "./react-Dw5YXa-Y.js";
13
+ import { t as s } from "./jsx-runtime-ClNfOC6f.js";
14
+ import { t as c } from "./is-debug-Bk6Ww-mR.js";
15
+ import { i as l, l as u, u as d } from "./mobx.module-Cv_4Fqn4.js";
16
+ import { t as f } from "./index.module-DUgyUoBP.js";
17
+ import { l as p, u as m } from "./store-Djiw0f15.js";
18
+ import { i as h } from "./mobx-DRjOCpOl.js";
19
+ import { n as g, t as _ } from "./expofpUrl-BkFfQVWT.js";
20
+ import { Bt as v, Ht as y, Qt as b, Vt as x, Wt as S, a as C, c as w, ct as T, gt as E, ht as D, l as O, lt as k, mt as A, o as j, q as M, qt as ee, s as te, u as N, w as ne, y as re, yt as ie } from "./LayerStore-CrWyrBRa.js";
21
+ import { g as ae, h as oe, n as se, p as ce } from "./wayfinding-BHyh7Wne.js";
22
+ import { t as le } from "./camera-events-CT_HBink.js";
23
+ import { t as ue } from "./viewport-BUn4KlO1.js";
24
+ import { a as de, c as fe, n as pe, o as me, s as he } from "./scene-BuSOJ1kI.js";
25
+ import { a as ge, c as _e, d as ve, i as ye, l as be, n as xe, o as Se, r as Ce, s as we, t as Te, u as Ee } from "./framing-rect-_cN7Jp0z.js";
26
26
  //#region ../../node_modules/.pnpm/maplibre-gl@5.24.0/node_modules/maplibre-gl/dist/maplibre-gl.css
27
- var P = /* @__PURE__ */ e(o(), 1), De = /* @__PURE__ */ e(te(), 1), Oe = (/* @__PURE__ */ t(((e, t) => {
27
+ var P = /* @__PURE__ */ e(o(), 1), De = /* @__PURE__ */ e(ie(), 1), Oe = (/* @__PURE__ */ t(((e, t) => {
28
28
  (function(n, r) {
29
29
  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());
30
30
  })(e, (function() {
@@ -323,17 +323,17 @@ var P = /* @__PURE__ */ e(o(), 1), De = /* @__PURE__ */ e(te(), 1), Oe = (/* @__
323
323
  function M(e, t, n) {
324
324
  return e * (1 - n) + t * n;
325
325
  }
326
- function N(e) {
326
+ function ee(e) {
327
327
  if (e <= 0) return 0;
328
328
  if (e >= 1) return 1;
329
329
  let t = e * e, n = t * e;
330
330
  return 4 * (e < .5 ? n : 3 * (e - t) + n - .75);
331
331
  }
332
- function ee(e, t, n, r) {
332
+ function te(e, t, n, r) {
333
333
  let i = new o(e, t, n, r);
334
334
  return (e) => i.solve(e);
335
335
  }
336
- let te = ee(.25, .1, .25, 1);
336
+ let N = te(.25, .1, .25, 1);
337
337
  function ne(e, t, n) {
338
338
  return Math.min(n, Math.max(t, e));
339
339
  }
@@ -8323,7 +8323,7 @@ var P = /* @__PURE__ */ e(o(), 1), De = /* @__PURE__ */ e(te(), 1), Oe = (/* @__
8323
8323
  if (r < this.begin) return a.possiblyEvaluate(e, t, n);
8324
8324
  {
8325
8325
  let o = (r - this.begin) / (this.end - this.begin);
8326
- return this.property.interpolate(a.possiblyEvaluate(e, t, n), i, N(o));
8326
+ return this.property.interpolate(a.possiblyEvaluate(e, t, n), i, ee(o));
8327
8327
  }
8328
8328
  }
8329
8329
  return i;
@@ -17396,7 +17396,7 @@ var P = /* @__PURE__ */ e(o(), 1), De = /* @__PURE__ */ e(te(), 1), Oe = (/* @__
17396
17396
  (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;
17397
17397
  }
17398
17398
  let E = u.x1, D = u.y1, O = u.x2 - E, k = u.y2 - D, A = (e, i, a, c) => {
17399
- 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, _), te = new n(u / s, f / s), ne = new n(g / s, A / s), re = t * Math.PI / 180;
17399
+ 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), ee = new n(p, _), te = new n(l, _), N = new n(u / s, f / s), ne = new n(g / s, A / s), re = t * Math.PI / 180;
17400
17400
  if (re) {
17401
17401
  let e = Math.sin(re), t = Math.cos(re), n = [
17402
17402
  t,
@@ -17404,14 +17404,14 @@ var P = /* @__PURE__ */ e(o(), 1), De = /* @__PURE__ */ e(te(), 1), Oe = (/* @__
17404
17404
  e,
17405
17405
  t
17406
17406
  ];
17407
- j._matMult(n), M._matMult(n), ee._matMult(n), N._matMult(n);
17407
+ j._matMult(n), M._matMult(n), te._matMult(n), ee._matMult(n);
17408
17408
  }
17409
17409
  let ie = e.stretch + e.fixed, ae = i.stretch + i.fixed;
17410
17410
  return {
17411
17411
  tl: j,
17412
17412
  tr: M,
17413
- bl: ee,
17414
- br: N,
17413
+ bl: te,
17414
+ br: ee,
17415
17415
  tex: {
17416
17416
  x: o.paddedRect.x + 1 + ie,
17417
17417
  y: o.paddedRect.y + 1 + ae,
@@ -17421,7 +17421,7 @@ var P = /* @__PURE__ */ e(o(), 1), De = /* @__PURE__ */ e(te(), 1), Oe = (/* @__
17421
17421
  writingMode: void 0,
17422
17422
  glyphOffset: [0, 0],
17423
17423
  sectionIndex: 0,
17424
- pixelOffsetTL: te,
17424
+ pixelOffsetTL: N,
17425
17425
  pixelOffsetBR: ne,
17426
17426
  minFontScaleX: C / s / O,
17427
17427
  minFontScaleY: T / s / k,
@@ -17681,9 +17681,9 @@ var P = /* @__PURE__ */ e(o(), 1), De = /* @__PURE__ */ e(te(), 1), Oe = (/* @__
17681
17681
  ];
17682
17682
  }(m, n, d, t.tilePixelRatio), w = m.get("text-max-angle") / 180 * Math.PI, T = m.get("text-rotation-alignment") !== "viewport" && m.get("symbol-placement") !== "point", E = m.get("icon-rotation-alignment") === "map" && m.get("symbol-placement") !== "point", D = m.get("symbol-placement"), k = x / 2, A = m.get("icon-text-fit"), j;
17683
17683
  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, _)));
17684
- let M = d ? f.line.getGranularityForZoomLevel(d.z) : 1, N = (c, f) => {
17684
+ let M = d ? f.line.getGranularityForZoomLevel(d.z) : 1, ee = (c, f) => {
17685
17685
  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) {
17686
- let E = t.addToLineVertexArray(n, r), D, O, k, A, j = 0, M = 0, N = 0, ee = 0, te = -1, ne = -1, re = {}, ie = _s("");
17686
+ let E = t.addToLineVertexArray(n, r), D, O, k, A, j = 0, M = 0, ee = 0, te = 0, N = -1, ne = -1, re = {}, ie = _s("");
17687
17687
  if (t.allowVerticalPlacement && i.vertical) {
17688
17688
  let e = c.layout.get("text-rotate").evaluate(x, {}, w) + 90;
17689
17689
  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));
@@ -17692,7 +17692,7 @@ var P = /* @__PURE__ */ e(o(), 1), De = /* @__PURE__ */ e(te(), 1), Oe = (/* @__
17692
17692
  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;
17693
17693
  O = new yh(l, n, u, d, f, a, _, v, !1, r), j = 4 * o.length;
17694
17694
  let m = t.iconSizeData, h = null;
17695
- m.kind === "source" ? (h = [128 * c.layout.get("icon-size").evaluate(x, {})], h[0] > df && ue(`${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) && ue(`${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), te = 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), ne = t.icon.placedSymbolArray.length - 1);
17695
+ m.kind === "source" ? (h = [128 * c.layout.get("icon-size").evaluate(x, {})], h[0] > df && ue(`${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) && ue(`${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), N = 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), ne = t.icon.placedSymbolArray.length - 1);
17696
17696
  }
17697
17697
  let ae = Object.keys(i.horizontal);
17698
17698
  for (let r of ae) {
@@ -17703,9 +17703,9 @@ var P = /* @__PURE__ */ e(o(), 1), De = /* @__PURE__ */ e(te(), 1), Oe = (/* @__
17703
17703
  D = new yh(l, n, u, d, f, a, p, m, h, e);
17704
17704
  }
17705
17705
  let s = a.positionedLines.length === 1;
17706
- if (N += Ah(t, n, a, o, c, h, x, g, E, i.vertical ? e.ax.horizontal : e.ax.horizontalOnly, s ? ae : [r], re, te, S, w), s) break;
17706
+ if (ee += Ah(t, n, a, o, c, h, x, g, E, i.vertical ? e.ax.horizontal : e.ax.horizontalOnly, s ? ae : [r], re, N, S, w), s) break;
17707
17707
  }
17708
- i.vertical && (ee += Ah(t, n, i.vertical, o, c, h, x, g, E, e.ax.vertical, ["vertical"], re, ne, S, w));
17708
+ i.vertical && (te += Ah(t, n, i.vertical, o, c, h, x, g, E, e.ax.vertical, ["vertical"], re, ne, S, w));
17709
17709
  let oe = D ? D.boxStartIndex : t.collisionBoxArray.length, se = D ? D.boxEndIndex : t.collisionBoxArray.length, ce = k ? k.boxStartIndex : t.collisionBoxArray.length, le = k ? k.boxEndIndex : t.collisionBoxArray.length, de = O ? O.boxStartIndex : t.collisionBoxArray.length, fe = O ? O.boxEndIndex : t.collisionBoxArray.length, pe = A ? A.boxStartIndex : t.collisionBoxArray.length, me = A ? A.boxEndIndex : t.collisionBoxArray.length, he = -1, ge = (e, t) => e != null && e.circleDiameter ? Math.max(e.circleDiameter, t) : t;
17710
17710
  he = ge(D, he), he = ge(k, he), he = ge(O, he), he = ge(A, he);
17711
17711
  let _e = +(he > -1);
@@ -17718,7 +17718,7 @@ var P = /* @__PURE__ */ e(o(), 1), De = /* @__PURE__ */ e(te(), 1), Oe = (/* @__
17718
17718
  }
17719
17719
  return [r, t.length];
17720
17720
  }(t.textAnchorOffsets, ve);
17721
- t.symbolInstances.emplaceBack(n.x, n.y, re.right >= 0 ? re.right : -1, re.center >= 0 ? re.center : -1, re.left >= 0 ? re.left : -1, re.vertical || -1, te, ne, ie, oe, se, ce, le, de, fe, pe, me, u, N, ee, j, M, _e, 0, p, he, ye, be);
17721
+ t.symbolInstances.emplaceBack(n.x, n.y, re.right >= 0 ? re.right : -1, re.center >= 0 ? re.center : -1, re.left >= 0 ? re.left : -1, re.vertical || -1, N, ne, ie, oe, se, ce, le, de, fe, pe, me, u, ee, te, j, M, _e, 0, p, he, ye, be);
17722
17722
  }(t, f, c, r, i, a, j, t.layers[0], t.collisionBoxArray, n.index, n.sourceLayerIndex, t.index, v, [
17723
17723
  S,
17724
17724
  S,
@@ -17728,22 +17728,22 @@ var P = /* @__PURE__ */ e(o(), 1), De = /* @__PURE__ */ e(te(), 1), Oe = (/* @__
17728
17728
  };
17729
17729
  if (D === "line") for (let e of eh(n.geometry, 0, 0, O, O)) {
17730
17730
  let n = yl(e, M), a = fh(n, x, w, r.vertical || g, i, 24, y, t.overscaling, O);
17731
- for (let e of a) g && Mh(t, g.text, k, e) || N(n, e);
17731
+ for (let e of a) g && Mh(t, g.text, k, e) || ee(n, e);
17732
17732
  }
17733
17733
  else if (D === "line-center") {
17734
17734
  for (let e of n.geometry) if (e.length > 1) {
17735
17735
  let t = yl(e, M), n = dh(t, w, r.vertical || g, i, 24, y);
17736
- n && N(t, n);
17736
+ n && ee(t, n);
17737
17737
  }
17738
17738
  } else if (n.type === "Polygon") for (let e of sr(n.geometry, 0)) {
17739
17739
  let t = xh(e, 16);
17740
- N(yl(e[0], M, !0), new oh(t.x, t.y, 0));
17740
+ ee(yl(e[0], M, !0), new oh(t.x, t.y, 0));
17741
17741
  }
17742
17742
  else if (n.type === "LineString") for (let e of n.geometry) {
17743
17743
  let t = yl(e, M);
17744
- N(t, new oh(t[0].x, t[0].y, 0));
17744
+ ee(t, new oh(t[0].x, t[0].y, 0));
17745
17745
  }
17746
- else if (n.type === "Point") for (let e of n.geometry) for (let t of e) N([t], new oh(t.x, t.y, 0));
17746
+ else if (n.type === "Point") for (let e of n.geometry) for (let t of e) ee([t], new oh(t.x, t.y, 0));
17747
17747
  }
17748
17748
  function Ah(e, t, r, i, a, o, s, c, l, u, d, f, p, m, h) {
17749
17749
  let g = function(e, t, r, i, a, o, s, c) {
@@ -18388,7 +18388,7 @@ var P = /* @__PURE__ */ e(o(), 1), De = /* @__PURE__ */ e(te(), 1), Oe = (/* @__
18388
18388
  };
18389
18389
  }, e.bn = function(e, t) {
18390
18390
  return e.roll == t.roll && e.pitch == t.pitch && e.bearing == t.bearing;
18391
- }, e.bo = U, e.bp = Cs, e.bq = hl, e.br = gl, e.bs = pl, e.bt = M, e.bu = N, e.bv = Yt, e.bw = function(e, t, n, r, i) {
18391
+ }, e.bo = U, e.bp = Cs, e.bq = hl, e.br = gl, e.bs = pl, e.bt = M, e.bu = ee, e.bv = Yt, e.bw = function(e, t, n, r, i) {
18392
18392
  return M(r, i, ne((e - t) / (n - t), 0, 1));
18393
18393
  }, e.bx = function(e, t, n, r) {
18394
18394
  return e[0] = t[0] + n[0] * r, e[1] = t[1] + n[1] * r, e[2] = t[2] + n[2] * r, e;
@@ -18593,11 +18593,11 @@ var P = /* @__PURE__ */ e(o(), 1), De = /* @__PURE__ */ e(te(), 1), Oe = (/* @__
18593
18593
  }, e.ch = class extends uo {}, e.ci = class extends jo {}, e.cj = function(e, t) {
18594
18594
  return e[0] === t[0] && e[1] === t[1] && e[2] === t[2] && e[3] === t[3] && e[4] === t[4] && e[5] === t[5] && e[6] === t[6] && e[7] === t[7] && e[8] === t[8] && e[9] === t[9] && e[10] === t[10] && e[11] === t[11] && e[12] === t[12] && e[13] === t[13] && e[14] === t[14] && e[15] === t[15];
18595
18595
  }, e.ck = function(e, t) {
18596
- var n = e[0], r = e[1], i = e[2], a = e[3], o = e[4], s = e[5], c = e[6], l = e[7], u = e[8], f = e[9], p = e[10], m = e[11], h = e[12], g = e[13], _ = e[14], v = e[15], y = t[0], b = t[1], x = t[2], S = t[3], C = t[4], w = t[5], T = t[6], E = t[7], D = t[8], O = t[9], k = t[10], A = t[11], j = t[12], M = t[13], N = t[14], ee = t[15];
18597
- return Math.abs(n - y) <= d * Math.max(1, Math.abs(n), Math.abs(y)) && Math.abs(r - b) <= d * Math.max(1, Math.abs(r), Math.abs(b)) && Math.abs(i - x) <= d * Math.max(1, Math.abs(i), Math.abs(x)) && Math.abs(a - S) <= d * Math.max(1, Math.abs(a), Math.abs(S)) && Math.abs(o - C) <= d * Math.max(1, Math.abs(o), Math.abs(C)) && Math.abs(s - w) <= d * Math.max(1, Math.abs(s), Math.abs(w)) && Math.abs(c - T) <= d * Math.max(1, Math.abs(c), Math.abs(T)) && Math.abs(l - E) <= d * Math.max(1, Math.abs(l), Math.abs(E)) && Math.abs(u - D) <= d * Math.max(1, Math.abs(u), Math.abs(D)) && Math.abs(f - O) <= d * Math.max(1, Math.abs(f), Math.abs(O)) && Math.abs(p - k) <= d * Math.max(1, Math.abs(p), Math.abs(k)) && Math.abs(m - A) <= d * Math.max(1, Math.abs(m), Math.abs(A)) && Math.abs(h - j) <= d * Math.max(1, Math.abs(h), Math.abs(j)) && Math.abs(g - M) <= d * Math.max(1, Math.abs(g), Math.abs(M)) && Math.abs(_ - N) <= d * Math.max(1, Math.abs(_), Math.abs(N)) && Math.abs(v - ee) <= d * Math.max(1, Math.abs(v), Math.abs(ee));
18596
+ var n = e[0], r = e[1], i = e[2], a = e[3], o = e[4], s = e[5], c = e[6], l = e[7], u = e[8], f = e[9], p = e[10], m = e[11], h = e[12], g = e[13], _ = e[14], v = e[15], y = t[0], b = t[1], x = t[2], S = t[3], C = t[4], w = t[5], T = t[6], E = t[7], D = t[8], O = t[9], k = t[10], A = t[11], j = t[12], M = t[13], ee = t[14], te = t[15];
18597
+ return Math.abs(n - y) <= d * Math.max(1, Math.abs(n), Math.abs(y)) && Math.abs(r - b) <= d * Math.max(1, Math.abs(r), Math.abs(b)) && Math.abs(i - x) <= d * Math.max(1, Math.abs(i), Math.abs(x)) && Math.abs(a - S) <= d * Math.max(1, Math.abs(a), Math.abs(S)) && Math.abs(o - C) <= d * Math.max(1, Math.abs(o), Math.abs(C)) && Math.abs(s - w) <= d * Math.max(1, Math.abs(s), Math.abs(w)) && Math.abs(c - T) <= d * Math.max(1, Math.abs(c), Math.abs(T)) && Math.abs(l - E) <= d * Math.max(1, Math.abs(l), Math.abs(E)) && Math.abs(u - D) <= d * Math.max(1, Math.abs(u), Math.abs(D)) && Math.abs(f - O) <= d * Math.max(1, Math.abs(f), Math.abs(O)) && Math.abs(p - k) <= d * Math.max(1, Math.abs(p), Math.abs(k)) && Math.abs(m - A) <= d * Math.max(1, Math.abs(m), Math.abs(A)) && Math.abs(h - j) <= d * Math.max(1, Math.abs(h), Math.abs(j)) && Math.abs(g - M) <= d * Math.max(1, Math.abs(g), Math.abs(M)) && Math.abs(_ - ee) <= d * Math.max(1, Math.abs(_), Math.abs(ee)) && Math.abs(v - te) <= d * Math.max(1, Math.abs(v), Math.abs(te));
18598
18598
  }, e.cl = function(e, t) {
18599
18599
  return e[0] = t[0], e[1] = t[1], e[2] = t[2], e[3] = t[3], e[4] = t[4], e[5] = t[5], e[6] = t[6], e[7] = t[7], e[8] = t[8], e[9] = t[9], e[10] = t[10], e[11] = t[11], e[12] = t[12], e[13] = t[13], e[14] = t[14], e[15] = t[15], e;
18600
- }, e.cm = (e) => e.type === "circle", e.cn = (e) => e.type === "heatmap", e.co = (e) => e.type === "line", e.cp = (e) => e.type === "fill", e.cq = (e) => e.type === "fill-extrusion", e.cr = (e) => e.type === "hillshade", e.cs = (e) => e.type === "color-relief", e.ct = (e) => e.type === "background", e.cu = (e) => e.type === "custom", e.cv = ee, e.cw = function(e, t, n) {
18600
+ }, e.cm = (e) => e.type === "circle", e.cn = (e) => e.type === "heatmap", e.co = (e) => e.type === "line", e.cp = (e) => e.type === "fill", e.cq = (e) => e.type === "fill-extrusion", e.cr = (e) => e.type === "hillshade", e.cs = (e) => e.type === "color-relief", e.ct = (e) => e.type === "background", e.cu = (e) => e.type === "custom", e.cv = te, e.cw = function(e, t, n) {
18601
18601
  if (t <= 0) return e;
18602
18602
  let r = 1 / t;
18603
18603
  return n === void 0 || Math.abs(n) < 1e-10 ? Math.round(e * r) / r : (n > 0 ? Math.ceil(e * r - 1e-9) : Math.floor(e * r + 1e-10)) / r;
@@ -18605,7 +18605,7 @@ var P = /* @__PURE__ */ e(o(), 1), De = /* @__PURE__ */ e(te(), 1), Oe = (/* @__
18605
18605
  let r = D(t.x - n.x, t.y - n.y), i = D(e.x - n.x, e.y - n.y);
18606
18606
  var a, o;
18607
18607
  return xe(Math.atan2(r[0] * i[1] - r[1] * i[0], (a = r)[0] * (o = i)[0] + a[1] * o[1]));
18608
- }, e.cy = te, e.cz = function(e, t) {
18608
+ }, e.cy = N, e.cz = function(e, t) {
18609
18609
  var n;
18610
18610
  if (!Ce[t]) return !1;
18611
18611
  let r = e == null ? void 0 : e.target, i = ((n = r == null ? void 0 : r.ownerDocument) == null ? void 0 : n.defaultView) || window;
@@ -20266,9 +20266,9 @@ var P = /* @__PURE__ */ e(o(), 1), De = /* @__PURE__ */ e(te(), 1), Oe = (/* @__
20266
20266
  return Object.keys(this.active).length;
20267
20267
  }
20268
20268
  }
20269
- let M = Math.floor(s.hardwareConcurrency / 2), N, ee;
20270
- function te() {
20271
- return N || (N = new j()), N;
20269
+ let M = Math.floor(s.hardwareConcurrency / 2), ee, te;
20270
+ function N() {
20271
+ return ee || (ee = new j()), ee;
20272
20272
  }
20273
20273
  j.workerCount = t.L(globalThis) ? Math.max(Math.min(M, 3), 1) : 1;
20274
20274
  class ne {
@@ -20304,7 +20304,7 @@ var P = /* @__PURE__ */ e(o(), 1), De = /* @__PURE__ */ e(te(), 1), Oe = (/* @__
20304
20304
  }
20305
20305
  }
20306
20306
  function re() {
20307
- return ee || (ee = new ne(te(), t.M), ee.registerMessageHandler("GR", ((e, n, r) => t.m(n, r)))), ee;
20307
+ return te || (te = new ne(N(), t.M), te.registerMessageHandler("GR", ((e, n, r) => t.m(n, r)))), te;
20308
20308
  }
20309
20309
  function ie(e, n) {
20310
20310
  let r = t.O();
@@ -23041,7 +23041,7 @@ var P = /* @__PURE__ */ e(o(), 1), De = /* @__PURE__ */ e(te(), 1), Oe = (/* @__
23041
23041
  var w, A;
23042
23042
  if (n[e.crossTileID]) return;
23043
23043
  if (d) return void (this.placements[e.crossTileID] = new Ct(!1, !1, !1));
23044
- let j = !1, M = !1, N = !0, ee = null, te = {
23044
+ let j = !1, M = !1, ee = !0, te = null, N = {
23045
23045
  box: null,
23046
23046
  placeable: !1,
23047
23047
  offscreen: null,
@@ -23059,8 +23059,8 @@ var P = /* @__PURE__ */ e(o(), 1), De = /* @__PURE__ */ e(te(), 1), Oe = (/* @__
23059
23059
  return r;
23060
23060
  }, a = (n, r) => {
23061
23061
  if (i.allowVerticalPlacement && e.numVerticalGlyphVertices > 0 && f.verticalTextBox) {
23062
- for (let e of i.writingModes) if (e === t.ax.vertical ? (te = r(), ne = te) : te = n(), te != null && te.placeable) break;
23063
- } else te = n();
23062
+ for (let e of i.writingModes) if (e === t.ax.vertical ? (N = r(), ne = N) : N = n(), N != null && N.placeable) break;
23063
+ } else N = n();
23064
23064
  }, l = e.textAnchorOffsetStartIndex, d = e.textAnchorOffsetEndIndex;
23065
23065
  if (d === l) {
23066
23066
  let r = (t, n) => {
@@ -23073,7 +23073,7 @@ var P = /* @__PURE__ */ e(o(), 1), De = /* @__PURE__ */ e(te(), 1), Oe = (/* @__
23073
23073
  box: null,
23074
23074
  offscreen: null
23075
23075
  };
23076
- })), n(te == null ? void 0 : te.placeable);
23076
+ })), n(N == null ? void 0 : N.placeable);
23077
23077
  } else {
23078
23078
  let p = t.aM[(A = (w = this.prevPlacement) == null ? void 0 : w.variableOffsets[e.crossTileID]) == null ? void 0 : A.anchor], h = (t, n, a) => {
23079
23079
  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";
@@ -23083,7 +23083,7 @@ var P = /* @__PURE__ */ e(o(), 1), De = /* @__PURE__ */ e(te(), 1), Oe = (/* @__
23083
23083
  let r = i.textAnchorOffsets.get(n);
23084
23084
  if (p && r.textAnchor !== p) continue;
23085
23085
  let l = this.attemptAnchorPlacement(r, t, f, h, g, x, S, u, D, c, m, T, e, i, a, o, s, v, O);
23086
- if (l && (b = l.placedGlyphBoxes, b != null && b.placeable)) return j = !0, ee = l.shift, b;
23086
+ if (l && (b = l.placedGlyphBoxes, b != null && b.placeable)) return j = !0, te = l.shift, b;
23087
23087
  }
23088
23088
  p ? p = null : T = _;
23089
23089
  }
@@ -23096,33 +23096,33 @@ var P = /* @__PURE__ */ e(o(), 1), De = /* @__PURE__ */ e(te(), 1), Oe = (/* @__
23096
23096
  };
23097
23097
  a((() => h(le, f.iconBox, t.ax.horizontal)), (() => {
23098
23098
  let n = f.verticalTextBox;
23099
- return i.allowVerticalPlacement && !(te != null && te.placeable) && e.numVerticalGlyphVertices > 0 && n ? h(n, f.verticalIconBox, t.ax.vertical) : {
23099
+ return i.allowVerticalPlacement && !(N != null && N.placeable) && e.numVerticalGlyphVertices > 0 && n ? h(n, f.verticalIconBox, t.ax.vertical) : {
23100
23100
  box: null,
23101
23101
  occluded: !0,
23102
23102
  offscreen: null
23103
23103
  };
23104
- })), te && (j = te.placeable, N = te.offscreen);
23105
- let g = n(te == null ? void 0 : te.placeable);
23104
+ })), N && (j = N.placeable, ee = N.offscreen);
23105
+ let g = n(N == null ? void 0 : N.placeable);
23106
23106
  if (!j && this.prevPlacement) {
23107
23107
  let t = this.prevPlacement.variableOffsets[e.crossTileID];
23108
23108
  t && (this.variableOffsets[e.crossTileID] = t, this.markUsedJustification(i, t.anchor, e, g));
23109
23109
  }
23110
23110
  }
23111
23111
  }
23112
- if (re = te, j = re == null ? void 0 : re.placeable, N = re == null ? void 0 : re.offscreen, e.useRuntimeCollisionCircles && e.centerJustifiedTextSymbolIndex >= 0) {
23112
+ if (re = N, j = re == null ? void 0 : re.placeable, ee = re == null ? void 0 : re.offscreen, e.useRuntimeCollisionCircles && e.centerJustifiedTextSymbolIndex >= 0) {
23113
23113
  let n = i.text.placedSymbolArray.get(e.centerJustifiedTextSymbolIndex), s = t.ay(i.textSizeData, p, n), u = a.get("text-padding");
23114
- ie = this.collisionIndex.placeCollisionCircles(_, n, i.lineVertexArray, i.glyphOffsetArray, s, c, l, r, S, m.predicate, e.collisionCircleDiameter, u, o, O), ie.circles.length && ie.collisionDetected && !r && t.w("Collisions detected, but collision boxes are not shown"), j = v || ie.circles.length > 0 && !ie.collisionDetected, N && (N = ie.offscreen);
23114
+ ie = this.collisionIndex.placeCollisionCircles(_, n, i.lineVertexArray, i.glyphOffsetArray, s, c, l, r, S, m.predicate, e.collisionCircleDiameter, u, o, O), ie.circles.length && ie.collisionDetected && !r && t.w("Collisions detected, but collision boxes are not shown"), j = v || ie.circles.length > 0 && !ie.collisionDetected, ee && (ee = ie.offscreen);
23115
23115
  }
23116
23116
  if (f.iconFeatureIndex && (ce = f.iconFeatureIndex), f.iconBox) {
23117
- let e = (e) => this.collisionIndex.placeCollisionBox(e, y, u, D, c, S, x, s, m.predicate, O, C && ee ? ee : void 0, k);
23118
- ne && ne.placeable && f.verticalIconBox ? (ae = e(f.verticalIconBox), M = ae.placeable) : (ae = e(f.iconBox), M = ae.placeable), N && (N = ae.offscreen);
23117
+ let e = (e) => this.collisionIndex.placeCollisionBox(e, y, u, D, c, S, x, s, m.predicate, O, C && te ? te : void 0, k);
23118
+ ne && ne.placeable && f.verticalIconBox ? (ae = e(f.verticalIconBox), M = ae.placeable) : (ae = e(f.iconBox), M = ae.placeable), ee && (ee = ae.offscreen);
23119
23119
  }
23120
23120
  let ue = h || e.numHorizontalGlyphVertices === 0 && e.numVerticalGlyphVertices === 0, de = g || e.numIconVertices === 0;
23121
23121
  ue || de ? de ? ue || M && (M = j) : j = M && j : M = j = M && j;
23122
23122
  let fe = M && ae.placeable;
23123
23123
  if (j && re.placeable && this.collisionIndex.insertCollisionBox(re.box, _, a.get("text-ignore-placement"), i.bucketInstanceId, ne && ne.placeable && se ? se : oe, m.ID), fe && this.collisionIndex.insertCollisionBox(ae.box, y, a.get("icon-ignore-placement"), i.bucketInstanceId, ce, m.ID), ie && j && this.collisionIndex.insertCollisionCircles(ie.circles, _, a.get("text-ignore-placement"), i.bucketInstanceId, oe, m.ID), r && this.storeCollisionData(i.bucketInstanceId, b, f, re, ae, ie), e.crossTileID === 0) throw Error("symbolInstance.crossTileID can't be 0");
23124
23124
  if (i.bucketInstanceId === 0) throw Error("bucket.bucketInstanceId can't be 0");
23125
- this.placements[e.crossTileID] = new Ct((j || T) && !(re != null && re.occluded), (M || E) && !(ae != null && ae.occluded), N || i.justReloaded), n[e.crossTileID] = !0;
23125
+ this.placements[e.crossTileID] = new Ct((j || T) && !(re != null && re.occluded), (M || E) && !(ae != null && ae.occluded), ee || i.justReloaded), n[e.crossTileID] = !0;
23126
23126
  };
23127
23127
  if (w) {
23128
23128
  if (e.symbolInstanceStart !== 0) throw Error("bucket.bucketInstanceId should be 0");
@@ -26530,7 +26530,7 @@ var P = /* @__PURE__ */ e(o(), 1), De = /* @__PURE__ */ e(te(), 1), Oe = (/* @__
26530
26530
  let t = this.tileManagers[e].getSource().type;
26531
26531
  t !== "vector" && t !== "geojson" || this.tileManagers[e].reload();
26532
26532
  }
26533
- }, this.map = e, this.dispatcher = new ne(te(), 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);
26533
+ }, this.map = e, this.dispatcher = new ne(N(), 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);
26534
26534
  let a = ((r = e._container) == null ? void 0 : r.lang) || typeof document < "u" && ((i = document.documentElement) == null ? void 0 : i.lang) || void 0;
26535
26535
  this.glyphManager = new C(e._requestManager, n.localIdeographFontFamily, a), this.lineAtlas = new k(256, 512), this.crossTileSymbolIndex = new Bt(), this._setInitialValues(), this._resetUpdates(), this.dispatcher.broadcast("SR", t.bO()), Oe().on(Ee, this._rtlPluginLoaded), this.on("data", ((e) => {
26536
26536
  if (e.dataType !== "source" || e.sourceDataType !== "metadata") return;
@@ -28693,11 +28693,11 @@ var P = /* @__PURE__ */ e(o(), 1), De = /* @__PURE__ */ e(te(), 1), Oe = (/* @__
28693
28693
  if (!l) continue;
28694
28694
  let d = a ? l.text : l.icon;
28695
28695
  if (!(d != null && d.segments.get().length) || !d.hasVisibleVertices) continue;
28696
- 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, te, ne = [0, 0], re = null;
28697
- if (a) N = i.glyphAtlasTexture, ee = _.LINEAR, M = i.glyphAtlasTexture.size, l.iconsInText && (ne = i.imageAtlasTexture.size, re = i.imageAtlasTexture, te = T || e.options.rotating || e.options.zooming || g.kind === "composite" || g.kind === "camera" ? _.LINEAR : _.NEAREST);
28696
+ 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, ee, te, N, ne = [0, 0], re = null;
28697
+ if (a) ee = i.glyphAtlasTexture, te = _.LINEAR, M = i.glyphAtlasTexture.size, l.iconsInText && (ne = i.imageAtlasTexture.size, re = i.imageAtlasTexture, N = T || e.options.rotating || e.options.zooming || g.kind === "composite" || g.kind === "camera" ? _.LINEAR : _.NEAREST);
28698
28698
  else {
28699
28699
  let t = r.layout.get("icon-size").constantOr(0) !== 1 || l.iconsNeedLinear;
28700
- N = i.imageAtlasTexture, ee = h || e.options.rotating || e.options.zooming || t || T ? _.LINEAR : _.NEAREST, M = i.imageAtlasTexture.size;
28700
+ ee = i.imageAtlasTexture, te = h || e.options.rotating || e.options.zooming || t || T ? _.LINEAR : _.NEAREST, M = i.imageAtlasTexture.size;
28701
28701
  }
28702
28702
  let ie = t.aK(i, 1, e.transform.zoom), ae = et(y, e.transform, ie), oe = tt(b, y, e.transform, ie), se = t.aL(v, i, o, s), ce = v.getProjectionData({
28703
28703
  overscaledTileID: c,
@@ -28717,10 +28717,10 @@ var P = /* @__PURE__ */ e(o(), 1), De = /* @__PURE__ */ e(te(), 1), Oe = (/* @__
28717
28717
  buffers: d,
28718
28718
  uniformValues: me,
28719
28719
  projectionData: ce,
28720
- atlasTexture: N,
28720
+ atlasTexture: ee,
28721
28721
  atlasTextureIcon: re,
28722
- atlasInterpolation: ee,
28723
- atlasInterpolationIcon: te,
28722
+ atlasInterpolation: te,
28723
+ atlasInterpolationIcon: N,
28724
28724
  isSDF: h,
28725
28725
  hasHalo: pe
28726
28726
  };
@@ -33723,8 +33723,8 @@ var P = /* @__PURE__ */ e(o(), 1), De = /* @__PURE__ */ e(te(), 1), Oe = (/* @__
33723
33723
  we[e] = t;
33724
33724
  })(e, n);
33725
33725
  })), e.clearPrewarmedResources = function() {
33726
- let e = N;
33727
- 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()"));
33726
+ let e = ee;
33727
+ e && (e.isPreloaded() && e.numActive() === 1 ? (e.release(A), ee = 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()"));
33728
33728
  }, e.createTileMesh = pn, e.getGlobalDispatcher = re, e.getMaxParallelImageRequests = function() {
33729
33729
  return t.c.MAX_PARALLEL_IMAGE_REQUESTS;
33730
33730
  }, e.getRTLTextPluginStatus = function() {
@@ -33740,7 +33740,7 @@ var P = /* @__PURE__ */ e(o(), 1), De = /* @__PURE__ */ e(te(), 1), Oe = (/* @__
33740
33740
  }, e.isTimeFrozen = function() {
33741
33741
  return c.isFrozen();
33742
33742
  }, e.now = l, e.prewarm = function() {
33743
- te().acquire(A);
33743
+ N().acquire(A);
33744
33744
  }, e.restoreNow = function() {
33745
33745
  c.restoreNow();
33746
33746
  }, e.setMaxParallelImageRequests = function(e) {
@@ -33941,12 +33941,12 @@ var Ge = /*#__PURE__*/ He(Ue, 9, 1), Ke = /*#__PURE__*/ He(We, 5, 1), qe = funct
33941
33941
  var y = j >> 4;
33942
33942
  if (y < 16) T[D++] = y;
33943
33943
  else {
33944
- var M = 0, N = 0;
33945
- for (y == 16 ? (N = 3 + Je(e, d, 3), d += 2, M = T[D - 1]) : y == 17 ? (N = 3 + Je(e, d, 7), d += 3) : y == 18 && (N = 11 + Je(e, d, 127), d += 7); N--;) T[D++] = M;
33944
+ var M = 0, ee = 0;
33945
+ for (y == 16 ? (ee = 3 + Je(e, d, 3), d += 2, M = T[D - 1]) : y == 17 ? (ee = 3 + Je(e, d, 7), d += 3) : y == 18 && (ee = 11 + Je(e, d, 127), d += 7); ee--;) T[D++] = M;
33946
33946
  }
33947
33947
  }
33948
- var ee = T.subarray(0, S), te = T.subarray(S);
33949
- h = qe(ee), g = qe(te), p = He(ee, h, 1), m = He(te, g, 1);
33948
+ var te = T.subarray(0, S), N = T.subarray(S);
33949
+ h = qe(te), g = qe(N), p = He(te, h, 1), m = He(N, g, 1);
33950
33950
  } else Qe(1);
33951
33951
  if (d > _) {
33952
33952
  c && Qe(0);
@@ -33972,10 +33972,10 @@ var Ge = /*#__PURE__*/ He(Ue, 9, 1), Ke = /*#__PURE__*/ He(We, 5, 1), qe = funct
33972
33972
  }
33973
33973
  var ce = m[R(e, d) & re], le = ce >> 4;
33974
33974
  ce || Qe(3), d += ce & 15;
33975
- var te = ze[le];
33975
+ var N = ze[le];
33976
33976
  if (le > 3) {
33977
33977
  var se = Ne[le];
33978
- te += R(e, d) & (1 << se) - 1, d += se;
33978
+ N += R(e, d) & (1 << se) - 1, d += se;
33979
33979
  }
33980
33980
  if (d > _) {
33981
33981
  c && Qe(0);
@@ -33983,11 +33983,11 @@ var Ge = /*#__PURE__*/ He(Ue, 9, 1), Ke = /*#__PURE__*/ He(We, 5, 1), qe = funct
33983
33983
  }
33984
33984
  s && l(f + 131072);
33985
33985
  var ue = f + oe;
33986
- if (f < te) {
33987
- var de = a - te, fe = Math.min(te, ue);
33986
+ if (f < N) {
33987
+ var de = a - N, fe = Math.min(N, ue);
33988
33988
  for (de + f < 0 && Qe(3); f < fe; ++f) n[f] = r[de + f];
33989
33989
  }
33990
- for (; f < ue; ++f) n[f] = n[f - te];
33990
+ for (; f < ue; ++f) n[f] = n[f - N];
33991
33991
  }
33992
33992
  }
33993
33993
  t.l = p, t.p = ie, t.b = f, t.f = u, p && (u = 1, t.m = h, t.d = m, t.n = g);
@@ -34798,7 +34798,7 @@ function an({ sceneDef: e, geoConfig: t, tileSource: n, mapOptions: r, debug: i,
34798
34798
  u.off("style.load", b), u.off("styleimagemissing", d), u.remove();
34799
34799
  };
34800
34800
  };
34801
- return i ? T().then(() => {
34801
+ return i ? k().then(() => {
34802
34802
  a || s();
34803
34803
  }) : s(), () => {
34804
34804
  a = !0, o == null || o(), f(void 0);
@@ -34812,7 +34812,7 @@ function an({ sceneDef: e, geoConfig: t, tileSource: n, mapOptions: r, debug: i,
34812
34812
  width: "100%",
34813
34813
  height: "100%"
34814
34814
  },
34815
- children: d && /* @__PURE__ */ (0, Wt.jsx)(N, {
34815
+ children: d && /* @__PURE__ */ (0, Wt.jsx)(T, {
34816
34816
  ...d,
34817
34817
  scene: e,
34818
34818
  debug: i,
@@ -34951,7 +34951,7 @@ function vn(e, t, n, r = {}) {
34951
34951
  //#region src/components/Maplibre/useCameraReactions.ts
34952
34952
  var yn = m, bn = 15, xn = 24, Sn = 20;
34953
34953
  function Cn(e) {
34954
- return de(e, he(e, x())).expand(Sn);
34954
+ return de(e, he(e, y())).expand(Sn);
34955
34955
  }
34956
34956
  function wn(e, t) {
34957
34957
  return Math.min(Math.max(t, e.getMinZoom()), e.getMaxZoom());
@@ -34980,13 +34980,13 @@ function En(e, t, n) {
34980
34980
  yn.moveToBooths = null;
34981
34981
  return;
34982
34982
  }
34983
- vn(r, Cn(S.fromUnion(...i.map((e) => e.rect))), t), yn.moveToBooths = null;
34983
+ vn(r, Cn(b.fromUnion(...i.map((e) => e.rect))), t), yn.moveToBooths = null;
34984
34984
  }
34985
34985
  }), h(() => yn.moveToRect, (n) => {
34986
34986
  var r;
34987
34987
  let i = e.current;
34988
34988
  if (!n || !i || !t) return;
34989
- let { width: a, height: o } = n.size, s = a > 0 && o > 0 ? xe(n) : n, c = (r = yn.moveToRectPaddingPercent) == null ? he(n, x()) : r;
34989
+ let { width: a, height: o } = n.size, s = a > 0 && o > 0 ? xe(n) : n, c = (r = yn.moveToRectPaddingPercent) == null ? he(n, y()) : r;
34990
34990
  vn(i, de(s, c / (1 - 2 * c)), t, { padding: 0 }), yn.moveToRect = null, yn.moveToRectPaddingPercent = null;
34991
34991
  }), h(() => yn.zoomBy, (t) => {
34992
34992
  let n = e.current;
@@ -35026,10 +35026,10 @@ function En(e, t, n) {
35026
35026
  if (!(m.list.type === "search" && !m.list.text)) {
35027
35027
  let { rect: e } = fe({
35028
35028
  layerViewbox: p.layerStore.viewboxRectangle,
35029
- explicitArea: b() ? x() : null,
35029
+ explicitArea: S() ? y() : null,
35030
35030
  layerRectangle: p.layerStore.rectangle,
35031
35031
  sceneDef: n,
35032
- svgArea: x()
35032
+ svgArea: y()
35033
35033
  });
35034
35034
  vn(i, e, t);
35035
35035
  }
@@ -35222,7 +35222,7 @@ function Zn() {
35222
35222
  } : r != null && r.styleUrl ? {
35223
35223
  style: r.styleUrl,
35224
35224
  offline: r.offline
35225
- } : Gn((n = ae()) == null || (n = n.properties) == null || (n = n.config) == null ? void 0 : n.style, ie.backgroundColor) === "dark" ? qn : Kn;
35225
+ } : Gn((n = ae()) == null || (n = n.properties) == null || (n = n.config) == null ? void 0 : n.style, v.backgroundColor) === "dark" ? qn : Kn;
35226
35226
  }
35227
35227
  //#endregion
35228
35228
  //#region src/components/Maplibre/useDimming.ts
@@ -35282,7 +35282,7 @@ function tr(e, t = /* @__PURE__ */ new Map()) {
35282
35282
  let n = (r = t.get(e.name)) == null ? [] : r;
35283
35283
  n.push(e), t.set(e.name, n);
35284
35284
  }
35285
- for (let r of (n = e.children) == null ? [] : n) O(r) && tr(r, t);
35285
+ for (let r of (n = e.children) == null ? [] : n) D(r) && tr(r, t);
35286
35286
  return t;
35287
35287
  }
35288
35288
  //#endregion
@@ -35330,7 +35330,7 @@ function fr(e, t, i) {
35330
35330
  if (!C()) return;
35331
35331
  let o = t.current;
35332
35332
  if (!e || !o || !i) return;
35333
- let { gpsConfig: s } = i, c = /* @__PURE__ */ new Set(), l = window.devicePixelRatio || 1, d = k(40, l, ((a = ie.colors) == null || (a = a.booths) == null ? void 0 : a.selected) || "#3b6ef5"), f = D(M, 40, l).tipOffset, m = D(w, 40, l).tipOffset, h = (e) => ce(e.center.x, e.center.y, s), g = (e, t) => {
35333
+ let { gpsConfig: s } = i, c = /* @__PURE__ */ new Set(), l = window.devicePixelRatio || 1, d = j(40, l, ((a = v.colors) == null || (a = a.booths) == null ? void 0 : a.selected) || "#3b6ef5"), f = O(te, 40, l).tipOffset, m = O(w, 40, l).tipOffset, h = (e) => ce(e.center.x, e.center.y, s), g = (e, t) => {
35334
35334
  o.hasImage(e) && o.removeImage(e), o.addImage(e, t, { pixelRatio: l }), c.add(e);
35335
35335
  }, _ = (e) => {
35336
35336
  let t = p.poiMarkerStore.markers, n = new Set(t.map((e) => dr(e.boothId)));
@@ -35341,7 +35341,7 @@ function fr(e, t, i) {
35341
35341
  (e || !c.has(t)) && g(t, n.icon);
35342
35342
  }
35343
35343
  c.has(cr) || g(cr, d);
35344
- }, v = () => {
35344
+ }, y = () => {
35345
35345
  let e = p.poiMarkerStore.selectedMarkerId, t = p.poiMarkerStore.outdoorFilter, n = !t.active, r = p.poiMarkerStore.markers;
35346
35346
  return e === null ? t.active && (r = t.matchingMarkers) : r = r.filter((t) => t.boothId === e), {
35347
35347
  cluster: n,
@@ -35361,7 +35361,7 @@ function fr(e, t, i) {
35361
35361
  }))
35362
35362
  }
35363
35363
  };
35364
- }, y = () => {
35364
+ }, x = () => {
35365
35365
  var e, t, n;
35366
35366
  let r = null;
35367
35367
  for (let n of (e = (t = o.getStyle()) == null ? void 0 : t.layers) == null ? [] : e) {
@@ -35374,17 +35374,17 @@ function fr(e, t, i) {
35374
35374
  }
35375
35375
  }
35376
35376
  return (n = r) == null ? ["Noto Sans Regular"] : n;
35377
- }, b = null, x = () => {
35377
+ }, S = null, T = () => {
35378
35378
  for (let e of lr) o.getLayer(e) && o.removeLayer(e);
35379
- o.getSource(rr) && o.removeSource(rr), b = null;
35380
- }, T = (e, t) => {
35381
- if (b !== null && b !== t && x(), o.getSource(rr) || (o.addSource(rr, {
35379
+ o.getSource(rr) && o.removeSource(rr), S = null;
35380
+ }, E = (e, t) => {
35381
+ if (S !== null && S !== t && T(), o.getSource(rr) || (o.addSource(rr, {
35382
35382
  type: "geojson",
35383
35383
  data: e,
35384
35384
  cluster: t,
35385
35385
  clusterRadius: 50,
35386
35386
  clusterMinPoints: 3
35387
- }), b = t), o.getLayer(ir)) return;
35387
+ }), S = t), o.getLayer(ir)) return;
35388
35388
  let i = ["!", ["has", "point_count"]], a = [
35389
35389
  "==",
35390
35390
  [
@@ -35413,7 +35413,7 @@ function fr(e, t, i) {
35413
35413
  filter: ["has", "point_count"],
35414
35414
  layout: {
35415
35415
  "text-field": ["get", "point_count_abbreviated"],
35416
- "text-font": y(),
35416
+ "text-font": x(),
35417
35417
  "text-size": 14,
35418
35418
  "text-allow-overlap": !0,
35419
35419
  "text-ignore-placement": !0
@@ -35452,20 +35452,20 @@ function fr(e, t, i) {
35452
35452
  "icon-ignore-placement": !0
35453
35453
  }
35454
35454
  });
35455
- }, E = () => {
35455
+ }, D = () => {
35456
35456
  if (!o.getLayer(ir)) return;
35457
35457
  let e = Qn() ? 1 - _e : 1;
35458
35458
  o.setPaintProperty(ir, "circle-opacity", e), o.setPaintProperty(ir, "circle-stroke-opacity", e), o.setPaintProperty(ar, "text-opacity", e), o.setPaintProperty(or, "icon-opacity", e), o.setPaintProperty(sr, "icon-opacity", e);
35459
- }, O = (e = !1) => {
35459
+ }, k = (e = !1) => {
35460
35460
  var t;
35461
35461
  _(e);
35462
- let { cluster: n, data: r } = v();
35463
- T(r, n), (t = o.getSource(rr)) == null || t.setData(r), E();
35462
+ let { cluster: n, data: r } = y();
35463
+ E(r, n), (t = o.getSource(rr)) == null || t.setData(r), D();
35464
35464
  }, A = (e) => {
35465
35465
  if (!e.length) return;
35466
35466
  let t = hn(50);
35467
35467
  if (e.every((e) => gn(o, h(e), t))) return;
35468
- let n = fn(S.fromPoints(e.map((e) => e.center)), s), r = o.cameraForBounds(n, {
35468
+ let n = fn(b.fromPoints(e.map((e) => e.center)), s), r = o.cameraForBounds(n, {
35469
35469
  padding: t,
35470
35470
  bearing: i.bearing
35471
35471
  });
@@ -35476,13 +35476,13 @@ function fr(e, t, i) {
35476
35476
  duration: 500,
35477
35477
  essential: !0
35478
35478
  });
35479
- }, j = (e) => {
35479
+ }, M = (e) => {
35480
35480
  var t;
35481
35481
  let n = (t = e.features) == null || (t = t[0]) == null || (t = t.properties) == null ? void 0 : t.boothId;
35482
35482
  if (typeof n != "number") return;
35483
35483
  let r = p.boothStore.boothById.get(n);
35484
35484
  r && p.clickBooth(r);
35485
- }, N = (e) => {
35485
+ }, ee = (e) => {
35486
35486
  var t, n, r;
35487
35487
  let i = (t = e.features) == null ? void 0 : t[0], a = i == null || (n = i.properties) == null ? void 0 : n.cluster_id, s = o.getSource(rr);
35488
35488
  if (typeof a != "number" || !s || (i == null || (r = i.geometry) == null ? void 0 : r.type) !== "Point") return;
@@ -35495,23 +35495,23 @@ function fr(e, t, i) {
35495
35495
  });
35496
35496
  });
35497
35497
  };
35498
- o.on("click", or, j), o.on("click", sr, j), o.on("click", ir, N), ne.set((e, t) => {
35498
+ o.on("click", or, M), o.on("click", sr, M), o.on("click", ir, ee), ne.set((e, t) => {
35499
35499
  let n = ur.filter((e) => !!o.getLayer(e));
35500
35500
  if (!n.length) return !1;
35501
35501
  let r = o.getCanvas().getBoundingClientRect();
35502
35502
  return o.queryRenderedFeatures([e - r.left, t - r.top], { layers: n }).length > 0;
35503
35503
  });
35504
- let ee = () => {
35505
- c.clear(), O(!0);
35504
+ let N = () => {
35505
+ c.clear(), k(!0);
35506
35506
  };
35507
- o.on("style.load", ee);
35508
- let te = u(() => p.poiMarkerStore.markers, () => O(!0)), re = u(() => p.poiMarkerStore.selectedMarkerId, () => O()), ae = u(() => p.poiMarkerStore.outdoorFilter.key, () => {
35509
- O(), A(p.poiMarkerStore.outdoorFilter.matchingMarkers);
35510
- }), oe = u(() => Qn(), () => E());
35511
- return O(!0), () => {
35512
- te(), re(), ae(), oe(), ne.set(null), o.off("style.load", ee), o.off("click", or, j), o.off("click", sr, j), o.off("click", ir, N);
35507
+ o.on("style.load", N);
35508
+ let re = u(() => p.poiMarkerStore.markers, () => k(!0)), ie = u(() => p.poiMarkerStore.selectedMarkerId, () => k()), ae = u(() => p.poiMarkerStore.outdoorFilter.key, () => {
35509
+ k(), A(p.poiMarkerStore.outdoorFilter.matchingMarkers);
35510
+ }), oe = u(() => Qn(), () => D());
35511
+ return k(!0), () => {
35512
+ re(), ie(), ae(), oe(), ne.set(null), o.off("style.load", N), o.off("click", or, M), o.off("click", sr, M), o.off("click", ir, ee);
35513
35513
  try {
35514
- x();
35514
+ T();
35515
35515
  for (let e of c) o.hasImage(e) && o.removeImage(e);
35516
35516
  } catch {}
35517
35517
  };
@@ -35724,15 +35724,15 @@ var Fr = () => m.overlayPosition === "bottom", Ir = f(function({ viewMode: e })
35724
35724
  var t;
35725
35725
  let [n, r] = (0, P.useState)(null), [i, a] = (0, P.useState)(!1), o = (0, P.useRef)(null), s = (0, P.useRef)(null), d = (0, P.useRef)(null), f = (0, P.useRef)(null), h = (0, P.useRef)(null), g = (0, P.useMemo)(() => _n(), []), _ = (0, P.useMemo)(() => fe({
35726
35726
  layerViewbox: p.layerStore.viewboxRectangle,
35727
- explicitArea: b() ? x() : null,
35727
+ explicitArea: S() ? y() : null,
35728
35728
  layerRectangle: p.layerStore.rectangle,
35729
35729
  sceneDef: n,
35730
- svgArea: x()
35731
- }), [n]), S = _.rect, C = (0, P.useMemo)(() => {
35730
+ svgArea: y()
35731
+ }), [n]), b = _.rect, C = (0, P.useMemo)(() => {
35732
35732
  if (!g) return null;
35733
- let e = me(_.source) ? 0 : he(S, x()), t = hn(0);
35733
+ let e = me(_.source) ? 0 : he(b, y()), t = hn(0);
35734
35734
  e && m.screenSize && (t.left += m.screenSize.width * e, t.right += m.screenSize.width * e, t.top += m.screenSize.height * e, t.bottom += m.screenSize.height * e);
35735
- let n = m.screenSize ? mn(S, g.gpsConfig, g.bearing, {
35735
+ let n = m.screenSize ? mn(b, g.gpsConfig, g.bearing, {
35736
35736
  width: m.screenSize.width,
35737
35737
  height: m.screenSize.height
35738
35738
  }, t) : null;
@@ -35744,17 +35744,17 @@ var Fr = () => m.overlayPosition === "bottom", Ir = f(function({ viewMode: e })
35744
35744
  center: g.center,
35745
35745
  bearing: g.bearing,
35746
35746
  zoom: g.zoom,
35747
- bounds: fn(S, g.gpsConfig),
35747
+ bounds: fn(b, g.gpsConfig),
35748
35748
  fitPadding: t,
35749
35749
  zoomAdjustment: on
35750
35750
  };
35751
35751
  }, [
35752
35752
  g,
35753
35753
  _,
35754
- S
35754
+ b
35755
35755
  ]), w = (0, P.useMemo)(() => {
35756
35756
  var e;
35757
- return g ? yr(g.gpsConfig, (e = v()) == null ? void 0 : e.getAttribute("units")) : null;
35757
+ return g ? yr(g.gpsConfig, (e = x()) == null ? void 0 : e.getAttribute("units")) : null;
35758
35758
  }, [g]), T = m.mapSettings.pitchdegrees, D = m.maxPitch, O = (0, P.useMemo)(() => {
35759
35759
  let t = e === "map2d";
35760
35760
  return {
@@ -35766,7 +35766,7 @@ var Fr = () => m.overlayPosition === "bottom", Ir = f(function({ viewMode: e })
35766
35766
  e,
35767
35767
  T,
35768
35768
  D
35769
- ]), k = (0, P.useRef)(O), A = (0, P.useMemo)(() => Zn(), []), M = (0, P.useMemo)(() => {
35769
+ ]), k = (0, P.useRef)(O), A = (0, P.useMemo)(() => Zn(), []), j = (0, P.useMemo)(() => {
35770
35770
  if (!n || !w) return null;
35771
35771
  let e = n.rootLayer.children, t = E(e) ? e.filter((e) => e.name.toLowerCase() !== "areamap") : e;
35772
35772
  return {
@@ -35778,13 +35778,13 @@ var Fr = () => m.overlayPosition === "bottom", Ir = f(function({ viewMode: e })
35778
35778
  background: void 0,
35779
35779
  staticTransform: w
35780
35780
  };
35781
- }, [n, w]), N = (0, P.useRef)(null);
35781
+ }, [n, w]), te = (0, P.useRef)(null);
35782
35782
  (0, P.useEffect)(() => {
35783
- N.current = M;
35784
- }, [M]), (0, P.useEffect)(() => {
35785
- if (M) return pe(M), () => pe(void 0);
35786
- }, [M]);
35787
- let { mapDimAnimatorRef: te, venueDimAnimatorRef: ne, applyDimmingTarget: ae, handleMapDimLayerReady: oe } = $n(o, N);
35783
+ te.current = j;
35784
+ }, [j]), (0, P.useEffect)(() => {
35785
+ if (j) return pe(j), () => pe(void 0);
35786
+ }, [j]);
35787
+ let { mapDimAnimatorRef: ne, venueDimAnimatorRef: ie, applyDimmingTarget: ae, handleMapDimLayerReady: oe } = $n(o, te);
35788
35788
  (0, P.useEffect)(() => {
35789
35789
  if (!g) return;
35790
35790
  let e = !1;
@@ -35794,20 +35794,20 @@ var Fr = () => m.overlayPosition === "bottom", Ir = f(function({ viewMode: e })
35794
35794
  return;
35795
35795
  }
35796
35796
  d.current = n;
35797
- let i = (0, De.default)(ie.backgroundColor === "none" ? "#ebebeb" : ie.backgroundColor).string();
35798
- r(j(t, x(), i));
35797
+ let i = (0, De.default)(v.backgroundColor === "none" ? "#ebebeb" : v.backgroundColor).string();
35798
+ r(M(t, y(), i));
35799
35799
  }).catch((t) => {
35800
35800
  e || console.warn("Maplibre scene configuration failed.", t);
35801
35801
  });
35802
- let t = te.current, n = ne.current;
35802
+ let t = ne.current, n = ie.current;
35803
35803
  return () => {
35804
35804
  var r;
35805
35805
  e = !0, Pr(), (r = d.current) == null || r.call(d), d.current = null, h.current && (p.maplibreStore.clearCameraPortIfCurrent(h.current), h.current = null), o.current = null, s.current = null, f.current = null, a(!1), t == null || t.stop(), n == null || n.stop(), m.sceneDefReady = !1;
35806
35806
  };
35807
35807
  }, [
35808
35808
  g,
35809
- te,
35810
- ne
35809
+ ne,
35810
+ ie
35811
35811
  ]);
35812
35812
  let se = (0, P.useCallback)((e, t) => {
35813
35813
  var n;
@@ -35827,28 +35827,28 @@ var Fr = () => m.overlayPosition === "bottom", Ir = f(function({ viewMode: e })
35827
35827
  var e;
35828
35828
  return (e = k.current.pitch) == null ? 0 : e;
35829
35829
  });
35830
- h.current = i, p.maplibreStore.setCameraPort(i), p.fp.getCenterCoordinates = () => ue(s.current), ae({ immediate: !0 }), ee(), p.layerStore.layersLoaded = !0, p.fp.onFpConfigured && p.fp.onFpConfigured(), m.sceneDefReady = !0, t();
35830
+ h.current = i, p.maplibreStore.setCameraPort(i), p.fp.getCenterCoordinates = () => ue(s.current), ae({ immediate: !0 }), N(), p.layerStore.layersLoaded = !0, p.fp.onFpConfigured && p.fp.onFpConfigured(), m.sceneDefReady = !0, t();
35831
35831
  }, [ae, g]);
35832
35832
  (0, P.useEffect)(() => {
35833
35833
  k.current = O, Xn(o.current, O);
35834
- }, [O]), er(i, o), pr(M, s), fr(i, o, g), nr(M, o, g), En(o, g, M), ye({
35834
+ }, [O]), er(i, o), pr(j, s), fr(i, o, g), nr(j, o, g), En(o, g, j), ye({
35835
35835
  enabled: p.layerStore.layersLoaded && m.buildRoute,
35836
- scene: M == null ? void 0 : M
35836
+ scene: j == null ? void 0 : j
35837
35837
  });
35838
- let ce = (t = y.busRoutes) != null && t;
35838
+ let ce = (t = ee.busRoutes) != null && t;
35839
35839
  Ce({
35840
35840
  permission: p.layerStore.layersLoaded && ce,
35841
- scene: M == null ? void 0 : M,
35842
- dataJsonUrl: `https://${jr}/v1/routes?expo=${ie.EXPO}`,
35843
- websocketUrl: `wss://${jr}/locations?expo=${ie.EXPO}`
35841
+ scene: j == null ? void 0 : j,
35842
+ dataJsonUrl: `https://${jr}/v1/routes?expo=${v.EXPO}`,
35843
+ websocketUrl: `wss://${jr}/locations?expo=${v.EXPO}`
35844
35844
  });
35845
35845
  let le = (0, P.useCallback)((e) => {
35846
35846
  console.warn("Maplibre map failed to load; falling back to floorplan mode.", e), p.maplibreStore.deactivateMaplibre();
35847
35847
  }, []);
35848
- if (!g || !C || !w || !M) return null;
35848
+ if (!g || !C || !w || !j) return null;
35849
35849
  let de = `${C.center.join(",")}:${C.bearing}:${C.zoom}`;
35850
35850
  return /* @__PURE__ */ (0, Wt.jsxs)(an, {
35851
- sceneDef: M,
35851
+ sceneDef: j,
35852
35852
  geoConfig: C,
35853
35853
  tileSource: A,
35854
35854
  mapOptions: O,