@expofp/floorplan 3.31.0 → 3.31.2

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 (78) hide show
  1. package/dist/browser/{Button-CQwO9tIg.js → Button-Qm5P6a8B.js} +5 -5
  2. package/dist/browser/{CookieConsent-C-b_gQuN.js → CookieConsent-BQgXOHAD.js} +7 -7
  3. package/dist/browser/{Debug-fQQyYJXu.js → Debug-_OyHOD_n.js} +7 -7
  4. package/dist/browser/{DebugTools-BCE8StGX.js → DebugTools-COsUbkqm.js} +6 -6
  5. package/dist/browser/{Demo-Cl9GA9tB.js → Demo-5w-XfzMg.js} +9 -9
  6. package/dist/browser/{Free-DI9bpsX5.js → Free-CzygQkMe.js} +9 -9
  7. package/dist/browser/{GalleryContainer-DKLp4FU4.js → GalleryContainer-DPr6Uoag.js} +10 -10
  8. package/dist/browser/{GpsLoader-CiDmup5t.js → GpsLoader-CKcgWjoc.js} +11 -11
  9. package/dist/browser/{KioskStore-BVpFrfzX.js → KioskStore-Bts_Q15s.js} +22 -22
  10. package/dist/browser/{MaplibreAdapter-BJxJxnzx.js → MaplibreAdapter-CJSQAzL9.js} +14 -14
  11. package/dist/browser/{ModalContainer-NXKmni8w.js → ModalContainer-BoCV5wDn.js} +10 -10
  12. package/dist/browser/{PermissionNotice-BkAvCmPD.js → PermissionNotice-BwJotFlI.js} +6 -6
  13. package/dist/browser/{SetKioskMode-CsV-ckXR.js → SetKioskMode-CZt7zsDM.js} +9 -9
  14. package/dist/browser/{ShowKiosk-CqhWjqxE.js → ShowKiosk-CEj4swM7.js} +11 -11
  15. package/dist/browser/{ViewerMenuPanel-CCca0xxk.js → ViewerMenuPanel-CNK1_k0v.js} +9 -9
  16. package/dist/browser/{add-debug-secret-listener-CxE72n53.js → add-debug-secret-listener-Bxqy2klS.js} +1 -1
  17. package/dist/browser/{adopt-global-settings-nxeDDXp1.js → adopt-global-settings-Ad-DbHmA.js} +9 -9
  18. package/dist/browser/{boolean-editor-DPMQ0YU3.js → boolean-editor-D-e8d_tV.js} +9 -9
  19. package/dist/browser/{bootIntercom-DBS2-Ra7.js → bootIntercom-CaU_rORK.js} +2 -2
  20. package/dist/browser/bundle.json +69 -69
  21. package/dist/browser/{camera-events-rGM_y-1M.js → camera-events-CO4VvNb6.js} +1 -1
  22. package/dist/browser/{classnames-CkjzoXiH.js → classnames-BC0VTHvp.js} +2 -2
  23. package/dist/browser/{client-DiPQk1ur.js → client-C1-foycu.js} +5 -5
  24. package/dist/browser/{components-CAI7tVu_.js → components-Bc57XDcm.js} +818 -818
  25. package/dist/browser/{debug-context-Cx6l3A8H.js → debug-context-DCG3rjfQ.js} +5 -5
  26. package/dist/browser/{debug-overlay-BlCwf63z.js → debug-overlay-izq4leLY.js} +10 -10
  27. package/dist/browser/{debug-ui-CL9NYiBY.js → debug-ui-9Swl8RVB.js} +6 -6
  28. package/dist/browser/{dimming-BrddBap-.js → dimming-CuIuLXfY.js} +236 -234
  29. package/dist/browser/{dist-DbtaUrV6.js → dist-B-HF27mM.js} +5 -5
  30. package/dist/browser/{dist-Bdec-Nxs.js → dist-CqLx2IB7.js} +6 -6
  31. package/dist/browser/{dist-JdkIiWfj.js → dist-LEZIV9LY.js} +3 -3
  32. package/dist/browser/{efp-debug-init-DDFZgkyx.js → efp-debug-init-BbQM0wWf.js} +3 -3
  33. package/dist/browser/{enum-editor-BBt11YmB.js → enum-editor-B_c3dXaZ.js} +4 -4
  34. package/dist/browser/{es5-DVB0QLwS.js → es5-BOJ4b1wR.js} +2 -2
  35. package/dist/browser/{event-not-found-hzkyr5mJ.js → event-not-found-BblGd3M4.js} +1 -1
  36. package/dist/browser/{exports-DRumaK8s.js → exports-4LmWfHsz.js} +1 -1
  37. package/dist/browser/{favicon-ByjB1rX0.js → favicon-N0zSgMmJ.js} +1 -1
  38. package/dist/browser/{fetch-retry.umd-CEIMoenq.js → fetch-retry.umd-BWMxV19k.js} +2 -2
  39. package/dist/browser/{flex-CrHBC47v.js → flex-8G6bcMjN.js} +5 -5
  40. package/dist/browser/{floorplan.loader-UtQ5sLSE.js → floorplan.loader-DYkL0M7t.js} +39 -39
  41. package/dist/browser/{floorplan.ready-BBRE91D6.js → floorplan.ready-BOrGaN2O.js} +331 -331
  42. package/dist/browser/{fuse-D9Fc86Mp.js → fuse-BGs9iODw.js} +2 -2
  43. package/dist/browser/{i18n-C3pmOHfm.js → i18n-mT-LTlNt.js} +7 -7
  44. package/dist/browser/index.js +26 -26
  45. package/dist/browser/{index.module-ScroRsV4.js → index.module-BuG-E0rL.js} +4 -4
  46. package/dist/browser/{integrateKiosk-Bp4Usv7I.js → integrateKiosk-VQpGPjET.js} +5 -5
  47. package/dist/browser/{is-webview-B0VkhBwH.js → is-webview-CUtLVmk5.js} +1 -1
  48. package/dist/browser/{jsx-runtime-BV6RRH6M.js → jsx-runtime-B-AyhF86.js} +2 -2
  49. package/dist/browser/{kiosk-record-NHohuRZk.js → kiosk-record-DDbM9sTc.js} +1 -1
  50. package/dist/browser/{lib-D4o7UxhZ.js → lib-C_aiA-wC.js} +3 -3
  51. package/dist/browser/{loadImage-CmTxbx4i.js → loadImage-C-vruA2F.js} +5 -5
  52. package/dist/browser/{logDeviceInfo-BJEg8M4e.js → logDeviceInfo-CnvdcMVO.js} +9 -9
  53. package/dist/browser/mobx-Cd_tthXm.js +43 -0
  54. package/dist/browser/{optional-boolean-editor-DuCfWYyQ.js → optional-boolean-editor-Z2FcQDhV.js} +3 -3
  55. package/dist/browser/{optional-enum-editor-Q-snbPWN.js → optional-enum-editor-BAOKOvG4.js} +4 -4
  56. package/dist/browser/{optional-string-editor-Bd-V93ee.js → optional-string-editor-Dn0b3_8O.js} +4 -4
  57. package/dist/browser/{particles.min-BXxEUmtZ.js → particles.min-BrsBfq49.js} +2 -2
  58. package/dist/browser/{react-yYxHcXya.js → react-C3f8vk_l.js} +2 -2
  59. package/dist/browser/{react-dom-BpJ-AdUf.js → react-dom-CDGcztfz.js} +3 -3
  60. package/dist/browser/{rolldown-runtime-DB1nSOXr.js → rolldown-runtime-CMBxMkJ4.js} +1 -1
  61. package/dist/browser/{scheduler-DgvhfFMA.js → scheduler-BhTLs4jB.js} +2 -2
  62. package/dist/browser/{select-DC3zsJbM.js → select-BTXH5pP8.js} +10 -10
  63. package/dist/browser/{settings-CmbIseSw.js → settings-Djyr8mIQ.js} +2 -2
  64. package/dist/browser/{settings-item-Dp6uSDI5.js → settings-item-CWoIdxX5.js} +6 -6
  65. package/dist/browser/{store-BQJFbecZ.js → store-Bmqv7C8v.js} +2811 -2811
  66. package/dist/browser/{string-editor-DKRik8qD.js → string-editor-BemPBm-5.js} +4 -4
  67. package/dist/browser/{text-field-D3Rb6XM1.js → text-field-D-3HDOH7.js} +5 -5
  68. package/dist/browser/{theme-B-lC93LF.js → theme-CBuB2Qm7.js} +8 -8
  69. package/dist/browser/{ui-D9c3dK9d.js → ui-BnQTapnd.js} +8 -8
  70. package/dist/browser/{useRenderTarget-Cn4JNaNq.js → useRenderTarget-D-TZ6FHU.js} +4 -4
  71. package/dist/browser/{viewport-B7y5otP7.js → viewport-DokNaqbx.js} +2 -2
  72. package/dist/esm/components/Map/MapCamera.js +1 -1
  73. package/dist/esm/components/Map/traffic/useManageTraffic.d.ts +1 -1
  74. package/dist/esm/components/Map/traffic/useManageTraffic.js +1 -1
  75. package/dist/esm/utils/mobx.d.ts +29 -0
  76. package/dist/esm/utils/mobx.js +1 -1
  77. package/package.json +10 -10
  78. package/dist/browser/mobx-LsEeQkKC.js +0 -24
@@ -1,78 +1,78 @@
1
1
  (function() {
2
2
  try {
3
3
  var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
4
- e.SENTRY_RELEASE = { id: "3.31.0" };
4
+ e.SENTRY_RELEASE = { id: "3.31.2" };
5
5
  var t = new e.Error().stack;
6
- t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "0872822e-16dd-4fc5-96e1-94730e10fc77", e._sentryDebugIdIdentifier = "sentry-dbid-0872822e-16dd-4fc5-96e1-94730e10fc77");
6
+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "eabb47de-1cb3-46d4-b963-bf1a3e14049c", e._sentryDebugIdIdentifier = "sentry-dbid-eabb47de-1cb3-46d4-b963-bf1a3e14049c");
7
7
  } catch {}
8
8
  })();
9
- import { r as e } from "./rolldown-runtime-DB1nSOXr.js";
10
- import { A as t, v as n } from "./i18n-C3pmOHfm.js";
11
- import { t as r } from "./react-yYxHcXya.js";
12
- import { t as i } from "./loadImage-CmTxbx4i.js";
13
- import { $t as a, A as o, An as s, Bt as c, Cn as l, Ct as u, Dn as d, En as f, Et as p, Fn as m, Gt as h, Jt as g, Kt as _, M as v, Mn as y, Mt as b, Nn as x, O as S, Ot as C, Pn as w, Qt as T, Tn as E, Tt as D, U as O, Xt as k, Yt as A, Zt as ee, a as j, an as te, bn as M, bt as N, c as P, en as F, fn as I, j as L, jn as ne, k as re, kn as ie, l as ae, rn as R, t as oe, wt as se, x as ce, zt as le } from "./store-BQJFbecZ.js";
14
- import { i as ue, n as de } from "./viewport-B7y5otP7.js";
9
+ import { r as e } from "./rolldown-runtime-CMBxMkJ4.js";
10
+ import { j as t, v as n } from "./i18n-mT-LTlNt.js";
11
+ import { t as r } from "./react-C3f8vk_l.js";
12
+ import { t as i } from "./loadImage-C-vruA2F.js";
13
+ import { $t as a, A as o, An as s, Bt as c, Cn as l, Ct as u, Dn as d, En as f, Et as p, Fn as m, Gt as h, Jt as g, Kt as _, M as v, Mn as y, Mt as b, Nn as x, O as S, Ot as C, Pn as w, Qt as T, Tn as E, Tt as D, U as O, Xt as k, Yt as ee, Zt as te, a as A, an as ne, bn as j, bt as M, c as N, en as P, fn as F, j as I, jn as re, k as ie, kn as ae, l as oe, rn as L, t as se, wt as ce, x as le, zt as R } from "./store-Bmqv7C8v.js";
14
+ import { i as ue, n as de } from "./viewport-DokNaqbx.js";
15
15
  //#region src/components/Map/traffic/trafficLayers.ts
16
- var z = "traffic_route", fe = "traffic_route_stop", B = "traffic_vehicles", pe = "build_route_lines", me = "build_route_dots", he = 5;
17
- function ge() {
16
+ var fe = "traffic_route", pe = "traffic_route_stop", z = "traffic_vehicles", me = "build_route_lines", he = "build_route_dots", ge = 5;
17
+ function _e() {
18
18
  let e = [];
19
- for (let t = 0; t < he; t++) e.push({
20
- name: _e(t),
19
+ for (let t = 0; t < ge; t++) e.push({
20
+ name: ve(t),
21
21
  children: []
22
22
  }), e.push({
23
- name: ve(t),
23
+ name: ye(t),
24
24
  children: []
25
25
  });
26
26
  return e.push({
27
- name: B,
27
+ name: z,
28
28
  children: []
29
29
  }), e.push({
30
- name: pe,
30
+ name: me,
31
31
  children: []
32
32
  }), e.push({
33
- name: me,
33
+ name: he,
34
34
  children: []
35
35
  }), e;
36
36
  }
37
- function _e(e) {
38
- return `${z}_${e + 1}`;
39
- }
40
37
  function ve(e) {
41
38
  return `${fe}_${e + 1}`;
42
39
  }
43
- function ye() {
44
- return RegExp(`^${z}_\\d+$`);
40
+ function ye(e) {
41
+ return `${pe}_${e + 1}`;
45
42
  }
46
43
  function be() {
47
44
  return RegExp(`^${fe}_\\d+$`);
48
45
  }
46
+ function xe() {
47
+ return RegExp(`^${pe}_\\d+$`);
48
+ }
49
49
  //#endregion
50
50
  //#region src/components/Map/drawing/config/config-booth-badge-eligibility.ts
51
- var xe = /* @__PURE__ */ e(f(), 1);
52
- function Se(e) {
51
+ var Se = /* @__PURE__ */ e(f(), 1);
52
+ function Ce(e) {
53
53
  return e.hideExhibitorBoothNumber || e.hideBoothBadges || !e.hasExhibitors ? !1 : e.noLabels || !e.hideLogoInBooth && e.hasLogoInBooth;
54
54
  }
55
55
  //#endregion
56
56
  //#region src/components/Map/drawing/config/config-booth-badge.ts
57
- var Ce = .5, we = .3, Te = 15, Ee = 24, De = 30, Oe = 12, ke = .8, Ae = document.createElement("canvas").getContext("2d");
58
- function je(e) {
59
- return e.length <= Te ? e : e.slice(0, Te - 1) + "…";
57
+ var we = .5, Te = .3, Ee = 15, De = 24, Oe = 30, ke = 12, B = .8, V = document.createElement("canvas").getContext("2d");
58
+ function Ae(e) {
59
+ return e.length <= Ee ? e : e.slice(0, Ee - 1) + "…";
60
60
  }
61
- function Me(e) {
61
+ function H(e) {
62
62
  var t, n;
63
63
  if (!((t = e.paths) != null && t.length)) return [];
64
64
  let r = ((n = e.layer) == null ? void 0 : n.name) || "", i = [];
65
- for (let t of e.paths) for (let e of M(t.index, r)) i.push(e);
65
+ for (let t of e.paths) for (let e of j(t.index, r)) i.push(e);
66
66
  return i;
67
67
  }
68
- function Ne(e) {
69
- let t = Me(e);
70
- return t.length ? ie.fromPoints(t.flat().map(([e, t]) => ({
68
+ function je(e) {
69
+ let t = H(e);
70
+ return t.length ? ae.fromPoints(t.flat().map(([e, t]) => ({
71
71
  x: e,
72
72
  y: t
73
73
  }))) : null;
74
74
  }
75
- function Pe(e) {
75
+ function Me(e) {
76
76
  let t = [], n = [];
77
77
  for (let r of e) {
78
78
  let e = t.length;
@@ -93,14 +93,14 @@ function Pe(e) {
93
93
  }
94
94
  return new y(t, n);
95
95
  }
96
- function V(e, t, n) {
96
+ function U(e, t, n) {
97
97
  return n.containsPoint({
98
98
  x: e,
99
99
  y: t
100
100
  });
101
101
  }
102
- function Fe(e, t, n, r, i, a, o, s) {
103
- if (!e.length || !V(n, r, t)) return o;
102
+ function Ne(e, t, n, r, i, a, o, s) {
103
+ if (!e.length || !U(n, r, t)) return o;
104
104
  let c = {
105
105
  x: n,
106
106
  y: r
@@ -120,18 +120,18 @@ function Fe(e, t, n, r, i, a, o, s) {
120
120
  x: n + o,
121
121
  y: r + d
122
122
  }, s, c)
123
- ].every((e) => V(e.x, e.y, t)) ? l = e : u = e;
123
+ ].every((e) => U(e.x, e.y, t)) ? l = e : u = e;
124
124
  }
125
125
  return l;
126
126
  }
127
- function Ie(e) {
127
+ function Pe(e) {
128
128
  var t;
129
- return (t = Ne(e)) == null ? e.rect : t;
129
+ return (t = je(e)) == null ? e.rect : t;
130
130
  }
131
- function Le(e, t, n, r, i, a) {
131
+ function Fe(e, t, n, r, i, a) {
132
132
  var o;
133
133
  if (t.length) {
134
- let o = Ie(e), s = {
134
+ let o = Pe(e), s = {
135
135
  x: i > 0 ? o.min.x : o.max.x,
136
136
  y: a > 0 ? o.min.y : o.max.y
137
137
  }, c = /* @__PURE__ */ new Set(), l = null, u = Infinity;
@@ -140,7 +140,7 @@ function Le(e, t, n, r, i, a) {
140
140
  if (c.has(e)) continue;
141
141
  c.add(e);
142
142
  let o = t[0] + r * i, d = t[1] + r * a;
143
- if (V(o, d, n)) {
143
+ if (U(o, d, n)) {
144
144
  let e = Math.abs(o - s.x) + Math.abs(d - s.y);
145
145
  e < u && (u = e, l = {
146
146
  x: o,
@@ -159,31 +159,31 @@ function Le(e, t, n, r, i, a) {
159
159
  y: c
160
160
  };
161
161
  }
162
- function H(e) {
162
+ function W(e) {
163
163
  return e && e !== "none" ? e : void 0;
164
164
  }
165
- function Re(e) {
165
+ function Ie(e) {
166
166
  var t;
167
- let n = H(e.borderColor) || H(l.boothBorderColor) || l.colors.booths.default;
168
- return ((t = e.paths) == null ? void 0 : t.length) > 1 && H(e.paths[e.paths.length - 1].color) || n;
167
+ let n = W(e.borderColor) || W(l.boothBorderColor) || l.colors.booths.default;
168
+ return ((t = e.paths) == null ? void 0 : t.length) > 1 && W(e.paths[e.paths.length - 1].color) || n;
169
169
  }
170
- function ze(e) {
170
+ function Le(e) {
171
171
  var t;
172
- let r = je(e.title || e.name), i = Re(e), a = ce((0, xe.default)(i).hex()), o = u();
173
- Ae.font = te(De, o);
174
- let s = Ae.measureText(r).width, c = Math.ceil(s + Oe * 2), l = (e.borderWidth || oe.borderWidth) / 2, d = c * ke, f = 54 * ke, m = e.rect.size.width, h = e.rect.size.height, _ = (e) => {
172
+ let r = Ae(e.title || e.name), i = Ie(e), a = le((0, Se.default)(i).hex()), o = u();
173
+ V.font = ne(Oe, o);
174
+ let s = V.measureText(r).width, c = Math.ceil(s + ke * 2), l = (e.borderWidth || se.borderWidth) / 2, d = c * B, f = 54 * B, m = e.rect.size.width, h = e.rect.size.height, _ = (e) => {
175
175
  let t = e ? h : m, n = e ? m : h;
176
- return Math.min(t > 0 ? t * Ce / d : Infinity, n > 0 ? n * we / f : Infinity);
177
- }, v = Me(e), y = Pe(v), x = (t = e.rotate) == null ? 0 : t, S = 0, C = 0, T = 0, E = 0, O = () => {
178
- let t = Le(e, v, y, l, S === 0 || S === 3 ? 1 : -1, S === 0 || S === 1 ? 1 : -1);
176
+ return Math.min(t > 0 ? t * we / d : Infinity, n > 0 ? n * Te / f : Infinity);
177
+ }, v = H(e), y = Me(v), x = (t = e.rotate) == null ? 0 : t, S = 0, C = 0, T = 0, E = 0, O = () => {
178
+ let t = Fe(e, v, y, l, S === 0 || S === 3 ? 1 : -1, S === 0 || S === 1 ? 1 : -1);
179
179
  C = t.x, T = t.y;
180
180
  let n = _(S === 1 || S === 3);
181
- E = Fe(v, y, C, T, d, f, n, x);
181
+ E = Ne(v, y, C, T, d, f, n, x);
182
182
  };
183
183
  O();
184
- let j = (t, n) => {
184
+ let A = (t, n) => {
185
185
  let r = t / 2, i = n / 2;
186
- return new ne(w({
186
+ return new re(w({
187
187
  x: C + r,
188
188
  y: T + i
189
189
  }, x, {
@@ -193,14 +193,14 @@ function ze(e) {
193
193
  x: t,
194
194
  y: n
195
195
  }, x, e.elevation);
196
- }, M = se(o, ee()), N = g(j(1, 1), i);
197
- N.hidden = !0, N.dim = e.skipDim ? 0 : void 0;
198
- let P = A(k([[r], []], a, 0, [M, M]), j(1, 1), [0, 0], {
196
+ }, j = ce(o, te()), M = g(A(1, 1), i);
197
+ M.hidden = !0, M.dim = e.skipDim ? 0 : void 0;
198
+ let N = ee(k([[r], []], a, 0, [j, j]), A(1, 1), [0, 0], {
199
199
  horizontal: "center",
200
200
  vertical: "center"
201
201
  });
202
- P.hidden = !0, P.dim = e.skipDim ? 0 : void 0;
203
- let F = {
202
+ N.hidden = !0, N.dim = e.skipDim ? 0 : void 0;
203
+ let P = {
204
204
  booth: e,
205
205
  anchor: {
206
206
  x: C,
@@ -212,32 +212,32 @@ function ze(e) {
212
212
  },
213
213
  rotation: x,
214
214
  maxScale: E,
215
- bg: N,
216
- text: P
217
- }, I = new Be(F);
218
- N.onScale = ({ pixelSize: e }) => I.layOutBg(e), P.onScale = ({ pixelSize: e }) => I.layOutText(e);
219
- let L = [];
220
- return L.push(n(() => e.skipDim, (e) => {
221
- N.dim = e ? 0 : void 0, P.dim = e ? 0 : void 0, b(N, P);
222
- })), L.push(n(() => {
215
+ bg: M,
216
+ text: N
217
+ }, F = new Re(P);
218
+ M.onScale = ({ pixelSize: e }) => F.layOutBg(e), N.onScale = ({ pixelSize: e }) => F.layOutText(e);
219
+ let I = [];
220
+ return I.push(n(() => e.skipDim, (e) => {
221
+ M.dim = e ? 0 : void 0, N.dim = e ? 0 : void 0, b(M, N);
222
+ })), I.push(n(() => {
223
223
  var t, n;
224
224
  return (t = (n = e.layer) == null ? void 0 : n.visible) == null || t;
225
225
  }, (e) => {
226
- N.hidden = !e, P.hidden = !e, b(N, P);
227
- })), L.push(n(() => ae.mapSettings, ({ roll: e }) => {
228
- D(e == null ? 0 : e) && (N.onRoll = ({ roll: e, pixelSize: t }) => {
226
+ M.hidden = !e, N.hidden = !e, b(M, N);
227
+ })), I.push(n(() => oe.mapSettings, ({ roll: e }) => {
228
+ D(e == null ? 0 : e) && (M.onRoll = ({ roll: e, pixelSize: t }) => {
229
229
  let n = p(e, x);
230
- if (n !== void 0) return x += n, S = (S + (n > 0 ? 1 : 3)) % 4, O(), F.anchor.x = C, F.anchor.y = T, F.rotation = x, F.maxScale = E, [...I.layOutBg(t), ...I.layOutText(t)];
230
+ if (n !== void 0) return x += n, S = (S + (n > 0 ? 1 : 3)) % 4, O(), P.anchor.x = C, P.anchor.y = T, P.rotation = x, P.maxScale = E, [...F.layOutBg(t), ...F.layOutText(t)];
231
231
  });
232
232
  }, { fireImmediately: !0 })), {
233
- bg: N,
234
- text: P,
233
+ bg: M,
234
+ text: N,
235
235
  dispose: () => {
236
- L.forEach((e) => e()), L.length = 0;
236
+ I.forEach((e) => e()), I.length = 0;
237
237
  }
238
238
  };
239
239
  }
240
- var Be = class {
240
+ var Re = class {
241
241
  constructor(e) {
242
242
  this.placement = e;
243
243
  }
@@ -247,11 +247,11 @@ var Be = class {
247
247
  }
248
248
  layOutText(e) {
249
249
  let { text: t, maxScale: n } = this.placement;
250
- return t.lines[0].fontSize = Ee * Math.min(e, n), t.bounds = this.rectScaled(e), t.hidden = this.isHidden(), t.hidden ? [] : [t];
250
+ return t.lines[0].fontSize = De * Math.min(e, n), t.bounds = this.rectScaled(e), t.hidden = this.isHidden(), t.hidden ? [] : [t];
251
251
  }
252
252
  rectScaled(e) {
253
253
  let { anchor: t, booth: n, source: r, rotation: i, maxScale: a } = this.placement, o = Math.min(e, a), s = r.x * o, c = r.y * o;
254
- return new ne(w({
254
+ return new re(w({
255
255
  x: t.x + s / 2,
256
256
  y: t.y + c / 2
257
257
  }, i, t), {
@@ -264,17 +264,17 @@ var Be = class {
264
264
  return !!(e.layer && !e.layer.visible);
265
265
  }
266
266
  };
267
- function Ve(e, t) {
267
+ function ze(e, t) {
268
268
  let n = [], r = [], i = [];
269
- for (let e of t) if (e instanceof I && Se({
269
+ for (let e of t) if (e instanceof F && Ce({
270
270
  hideExhibitorBoothNumber: E.hideExhibitorBoothNumber,
271
271
  hideBoothBadges: E.hideBoothBadges,
272
- hideLogoInBooth: ae.hideLogoInBooth,
272
+ hideLogoInBooth: oe.hideLogoInBooth,
273
273
  noLabels: e.noLabels,
274
274
  hasExhibitors: e.exhibitors.length > 0,
275
275
  hasLogoInBooth: e.exhibitors.some((e) => e.logoInBooth && e.logo)
276
276
  })) {
277
- let { bg: t, text: a, dispose: o } = ze(e);
277
+ let { bg: t, text: a, dispose: o } = Le(e);
278
278
  n.push(t), r.push(a), i.push(o);
279
279
  }
280
280
  let a = () => {
@@ -299,17 +299,17 @@ function Ve(e, t) {
299
299
  }
300
300
  //#endregion
301
301
  //#region src/components/Map/drawing/config/config-markers.ts
302
- var He = "_selected", Ue = "markers";
303
- function We(e, t) {
302
+ var Be = "_selected", Ve = "markers";
303
+ function He(e, t) {
304
304
  let { center: n, rotation: r } = e.bounds, { width: i, height: o } = e.source;
305
305
  return e.bounds = a(n.x, n.y, i, o, t, r), [e];
306
306
  }
307
- function Ge(e) {
308
- Xe = e;
307
+ function Ue(e) {
308
+ Je = e;
309
309
  }
310
- function Ke(e) {
311
- let { scene: t } = e, r = [], i = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map(), s = [], c = t.rootLayer.children.find((e) => e.name === Ue);
312
- c.onScale = ({ pixelSize: e }) => Ge(e), le(qe), b(c);
310
+ function We(e) {
311
+ let { scene: t } = e, r = [], i = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map(), s = [], c = t.rootLayer.children.find((e) => e.name === Ve);
312
+ c.onScale = ({ pixelSize: e }) => Ue(e), R(Ge), b(c);
313
313
  async function l(e) {
314
314
  let t = [];
315
315
  e.forEach((e) => {
@@ -331,29 +331,29 @@ function Ke(e) {
331
331
  }), await Promise.all(t);
332
332
  }
333
333
  let u = (e) => {
334
- e.onScale = ({ pixelSize: t }) => We(e, t);
334
+ e.onScale = ({ pixelSize: t }) => He(e, t);
335
335
  }, d = (e) => {
336
336
  e.onRoll = ({ roll: t }) => {
337
337
  if (t !== e.bounds.rotation) return e.bounds.rotate(t - e.bounds.rotation, e.bounds), [e];
338
338
  };
339
339
  };
340
340
  function f() {
341
- let e = P.routeStore.markersData.markers;
341
+ let e = N.routeStore.markersData.markers;
342
342
  e.length && (s = [], e.forEach((e) => {
343
343
  var t, n;
344
344
  let r = i.get(e.icon);
345
345
  if (!r) return;
346
346
  let c = r.scale || window.devicePixelRatio, l = e.icon;
347
347
  if (!o.has(l)) {
348
- let e = R(r.img, r.width, r.height, c);
348
+ let e = L(r.img, r.width, r.height, c);
349
349
  o.set(l, e);
350
350
  }
351
351
  let u = o.get(l), d = i.get(e.selectedIcon), f = e.selectedIcon;
352
352
  if (!o.has(f)) {
353
- let e = R(d.img, d.width, d.height, c);
353
+ let e = L(d.img, d.width, d.height, c);
354
354
  o.set(f, e);
355
355
  }
356
- let p = o.get(f), m = (t = (n = j.findLayer(e.z)) == null ? void 0 : n.visible) == null || t, g = a(e.x, e.y, u.width, u.height, 1, 0), _ = a(e.x, e.y, p.width, p.height, 1, 0), v;
356
+ let p = o.get(f), m = (t = (n = A.findLayer(e.z)) == null ? void 0 : n.visible) == null || t, g = a(e.x, e.y, u.width, u.height, 1, 0), _ = a(e.x, e.y, p.width, p.height, 1, 0), v;
357
357
  switch (e.position) {
358
358
  case "lefttop":
359
359
  v = [0, 0];
@@ -378,7 +378,7 @@ function Ke(e) {
378
378
  hidden: !(m && e.active),
379
379
  origin: v
380
380
  }),
381
- id: `${e.id}${He}`,
381
+ id: `${e.id}${Be}`,
382
382
  scale: c
383
383
  };
384
384
  s.push(y, b);
@@ -390,46 +390,46 @@ function Ke(e) {
390
390
  c.children = [], s = [];
391
391
  }
392
392
  function m() {
393
- let e = P.routeStore.markersData.markers;
393
+ let e = N.routeStore.markersData.markers;
394
394
  e.length && e.forEach((e) => {
395
395
  var t, n;
396
- let r = s.find((t) => t.id === e.id), i = s.find((t) => t.id === `${e.id}${He}`);
396
+ let r = s.find((t) => t.id === e.id), i = s.find((t) => t.id === `${e.id}${Be}`);
397
397
  if (!r) return;
398
- let a = (t = (n = j.findLayer(e.z)) == null ? void 0 : n.visible) == null || t;
398
+ let a = (t = (n = A.findLayer(e.z)) == null ? void 0 : n.visible) == null || t;
399
399
  e.active ? (r.hidden = !0, i.hidden = !(a && e.active)) : (r.hidden = !a, i.hidden = !0);
400
400
  });
401
401
  }
402
- return r.push(n(() => [P.routeStore.selectedMarkers, P.layerStore.visible], () => {
403
- if (!P.routeStore.markersData.markers.length) {
402
+ return r.push(n(() => [N.routeStore.selectedMarkers, N.layerStore.visible], () => {
403
+ if (!N.routeStore.markersData.markers.length) {
404
404
  p(), b(c);
405
405
  return;
406
406
  }
407
407
  m(), b(...s);
408
- })), r.push(n(() => P.routeStore.markersData.markers, () => {
409
- l(P.routeStore.markersData.icons).then(() => {
408
+ })), r.push(n(() => N.routeStore.markersData.markers, () => {
409
+ l(N.routeStore.markersData.icons).then(() => {
410
410
  f(), b(c);
411
411
  });
412
412
  }, { fireImmediately: !0 })), function() {
413
- r.forEach((e) => e()), r.length = 0, c.onScale = void 0, le(), b(c);
413
+ r.forEach((e) => e()), r.length = 0, c.onScale = void 0, R(), b(c);
414
414
  };
415
415
  }
416
- function qe(e, t) {
417
- return Je(e, t, Xe);
416
+ function Ge(e, t) {
417
+ return Ke(e, t, Je);
418
418
  }
419
- function Je(e, t, n) {
420
- for (let r of P.routeStore.markersData.markers) {
421
- let i = P.routeStore.markersData.icons.find((e) => e.name === r.icon);
419
+ function Ke(e, t, n) {
420
+ for (let r of N.routeStore.markersData.markers) {
421
+ let i = N.routeStore.markersData.icons.find((e) => e.name === r.icon);
422
422
  if (!i) continue;
423
423
  let a = i.width * n * devicePixelRatio, o = i.height * n * devicePixelRatio;
424
- if (Ye(e, t, r.x, r.y, a, o)) {
425
- let e = P.layerStore.findLayer(r.z);
424
+ if (qe(e, t, r.x, r.y, a, o)) {
425
+ let e = N.layerStore.findLayer(r.z);
426
426
  if (!e || e && e.visible) return r;
427
427
  }
428
428
  }
429
429
  return null;
430
430
  }
431
- function Ye(e, t, n, r, i, a) {
432
- return ie.fromCenter({
431
+ function qe(e, t, n, r, i, a) {
432
+ return ae.fromCenter({
433
433
  x: n,
434
434
  y: r
435
435
  }, {
@@ -440,26 +440,26 @@ function Ye(e, t, n, r, i, a) {
440
440
  y: t
441
441
  });
442
442
  }
443
- var Xe = 1;
443
+ var Je = 1;
444
444
  //#endregion
445
445
  //#region src/components/Map/drawing/config/config-all.ts
446
- function Ze() {
447
- let { defaultLayer: e } = P.layerStore, { layers: t } = P.layerStore;
446
+ function Ye() {
447
+ let { defaultLayer: e } = N.layerStore, { layers: t } = N.layerStore;
448
448
  if (e) {
449
449
  let n = [...t], r = t.indexOf(e);
450
450
  n.splice(r, 1), t = [e, ...n];
451
451
  }
452
- let n = t.filter((e) => !e.rootParent).map((e) => N(e));
452
+ let n = t.filter((e) => !e.rootParent).map((e) => M(e));
453
453
  return Promise.all(n).then((e) => {
454
- let t = _(L, [], { dim: 0 }), n = _(o, [], { dim: 0 }), r = _(Ue, []), i = _(v, [], { dim: 0 }), a = _(re, [], { dim: 0 }), s = _(S, [], { dim: 0 }), c = [], l = [];
455
- for (let t of e.flat()) F(t.name) ? (t.dim = 0, l.push(t)) : c.push(t);
456
- let { layer: u, cleanup: d } = Ve("root", P.boothStore.booths);
454
+ let t = _(I, [], { dim: 0 }), n = _(o, [], { dim: 0 }), r = _(Ve, []), i = _(v, [], { dim: 0 }), a = _(ie, [], { dim: 0 }), s = _(S, [], { dim: 0 }), c = [], l = [];
455
+ for (let t of e.flat()) P(t.name) ? (t.dim = 0, l.push(t)) : c.push(t);
456
+ let { layer: u, cleanup: d } = ze("root", N.boothStore.booths);
457
457
  return {
458
458
  layers: [
459
459
  ...c,
460
460
  ...u ? [u] : [],
461
461
  ...l,
462
- ...ge(),
462
+ ..._e(),
463
463
  r,
464
464
  i,
465
465
  n,
@@ -473,16 +473,16 @@ function Ze() {
473
473
  }
474
474
  //#endregion
475
475
  //#region src/components/Map/MapViewport.tsx
476
- var U = /* @__PURE__ */ e(r(), 1);
477
- function Qe() {
478
- let e = C(), t = (0, U.useRef)({ api: e }), [n] = (0, U.useState)(() => de(t));
479
- return (0, U.useLayoutEffect)(() => {
476
+ var G = /* @__PURE__ */ e(r(), 1);
477
+ function Xe() {
478
+ let e = C(), t = (0, G.useRef)({ api: e }), [n] = (0, G.useState)(() => de(t));
479
+ return (0, G.useLayoutEffect)(() => {
480
480
  t.current = { api: e };
481
- }), (0, U.useEffect)(() => (ue(n), () => ue(void 0)), [n]), null;
481
+ }), (0, G.useEffect)(() => (ue(n), () => ue(void 0)), [n]), null;
482
482
  }
483
483
  //#endregion
484
484
  //#region src/components/Map/traffic/UpdateQueue.ts
485
- var W = class {
485
+ var Ze = class {
486
486
  constructor() {
487
487
  this.queue = [], this.isProcessing = !1, this.rafId = null, this.CHUNK_SIZE = 100, this.TIME_BUDGET = 4;
488
488
  }
@@ -524,7 +524,7 @@ var W = class {
524
524
  destroy() {
525
525
  this.rafId !== null && (cancelAnimationFrame(this.rafId), this.rafId = null), this.queue = [], this.isProcessing = !1;
526
526
  }
527
- }, G = 49, $e = `hsl(257, 76%, ${G}%)`, et = `hsl(339.903, 82%, ${G}%)`, tt = `hsl(257, 76%, ${Math.round(G * 1.82)}%)`, K = 4, nt = K, rt = "U", it = "R", at = "S", ot = "P", st = class {
527
+ }, K = 49, Qe = `hsl(257, 76%, ${K}%)`, $e = `hsl(339.903, 82%, ${K}%)`, et = `hsl(257, 76%, ${Math.round(K * 1.82)}%)`, q = 4, tt = q, nt = "U", rt = "R", it = "S", at = "P", ot = class {
528
528
  constructor() {
529
529
  this._state = [[]], this.index = 0, this.pointHashSet = /* @__PURE__ */ new Set(), this.locked = !1, this.storageKey = "expofp_build_route_state", this._selected = 0;
530
530
  }
@@ -563,10 +563,10 @@ var W = class {
563
563
  instruct() {
564
564
  this.log(`How to Build a Route:
565
565
  Add Point: Click on the map.
566
- Apply Smoothing: Press ${it}.
567
- Apply Simplification: Press ${at}.
568
- Undo: Press ${rt}.
569
- Enable/Disable Preview: Press ${ot}.
566
+ Apply Smoothing: Press ${rt}.
567
+ Apply Simplification: Press ${it}.
568
+ Undo: Press ${nt}.
569
+ Enable/Disable Preview: Press ${at}.
570
570
  `, 16);
571
571
  }
572
572
  applyChaikinSmoothing(e, t, n) {
@@ -666,15 +666,15 @@ Enable/Disable Preview: Press ${ot}.
666
666
  this._selected = Math.max(0, Math.min(e, this.points.length - 1));
667
667
  }
668
668
  };
669
- function ct({ enabled: e, scene: t }) {
670
- let n = (0, U.useRef)(!1), r = (0, U.useRef)(), i = (0, U.useMemo)(() => T(K, $e), []), o = (0, U.useMemo)(() => T(K, et), []), s = (0, U.useMemo)(() => new st(), []), l = (0, U.useRef)(new W()), u = (0, U.useMemo)(() => {
669
+ function st({ enabled: e, scene: t }) {
670
+ let n = (0, G.useRef)(!1), r = (0, G.useRef)(), i = (0, G.useMemo)(() => T(q, Qe), []), o = (0, G.useMemo)(() => T(q, $e), []), s = (0, G.useMemo)(() => new ot(), []), l = (0, G.useRef)(new Ze()), u = (0, G.useMemo)(() => {
671
671
  if (!t) return {};
672
672
  let e = t.rootLayer.children;
673
673
  return {
674
- linesLayer: e.find((e) => e.name === pe),
675
- pointsLayer: e.find((e) => e.name === me)
674
+ linesLayer: e.find((e) => e.name === me),
675
+ pointsLayer: e.find((e) => e.name === he)
676
676
  };
677
- }, [t]), d = (0, U.useCallback)(() => {
677
+ }, [t]), d = (0, G.useCallback)(() => {
678
678
  if (!u || !i || !o) return;
679
679
  let { linesLayer: e, pointsLayer: t } = u;
680
680
  if (!e || !t) return;
@@ -694,8 +694,8 @@ function ct({ enabled: e, scene: t }) {
694
694
  p0: t,
695
695
  p1: n
696
696
  },
697
- color: d ? $e : tt,
698
- width: nt
697
+ color: d ? Qe : et,
698
+ width: tt
699
699
  });
700
700
  }
701
701
  f.length ? e.children = f : e.children.length = 0, l.current.add(() => b(t, e)), s.instruct(), s.log(JSON.stringify(s.points));
@@ -704,25 +704,25 @@ function ct({ enabled: e, scene: t }) {
704
704
  u,
705
705
  i,
706
706
  o
707
- ]), f = (0, U.useCallback)((e) => {
707
+ ]), f = (0, G.useCallback)((e) => {
708
708
  let t = e.key.toUpperCase();
709
709
  s.execute(() => {
710
710
  switch (t) {
711
- case rt:
711
+ case nt:
712
712
  e.preventDefault(), s.undo(), n.current = !1, d();
713
713
  break;
714
- case it:
714
+ case rt:
715
715
  e.preventDefault(), s.applySmoothing(), n.current = !1, d();
716
716
  break;
717
- case at:
717
+ case it:
718
718
  e.preventDefault(), s.applySimplification(), n.current = !1, d();
719
719
  break;
720
- case ot:
720
+ case at:
721
721
  e.preventDefault(), n.current = !n.current, d();
722
722
  break;
723
723
  }
724
724
  });
725
- }, [s, d]), p = (0, U.useCallback)((e) => {
725
+ }, [s, d]), p = (0, G.useCallback)((e) => {
726
726
  r.current = e;
727
727
  let { pointsLayer: t } = u;
728
728
  if (!t) return [];
@@ -731,7 +731,7 @@ function ct({ enabled: e, scene: t }) {
731
731
  let e = t.children;
732
732
  for (let t of e) t.bounds = a(t.bounds.center.x, t.bounds.center.y, t.source.width, t.source.height, r.current), n.push(t);
733
733
  }), n;
734
- }, [u, s]), m = (0, U.useCallback)((e) => {
734
+ }, [u, s]), m = (0, G.useCallback)((e) => {
735
735
  s.execute(() => {
736
736
  s.add({
737
737
  x: e.x,
@@ -739,7 +739,7 @@ function ct({ enabled: e, scene: t }) {
739
739
  }), s.select(s.points.length - 1), d();
740
740
  });
741
741
  }, [s, d]);
742
- (0, U.useEffect)(() => {
742
+ (0, G.useEffect)(() => {
743
743
  var t, n;
744
744
  if (!e || !(u != null && u.pointsLayer)) return;
745
745
  let { pointsLayer: i } = u;
@@ -760,38 +760,40 @@ function ct({ enabled: e, scene: t }) {
760
760
  }
761
761
  //#endregion
762
762
  //#region src/components/Map/traffic/useManageTraffic.ts
763
- var q = 2, lt = q * 3.5, J = q * 12, ut = J * .7, dt = 8, ft = "transport_locations", pt = 150, Y = "#a4aab6", mt = 1e3, ht = 2e4, gt = 500;
763
+ var J = 2, ct = J * 3.5, Y = J * 12, lt = Y * .7, ut = 8, dt = "transport_locations", ft = 150, pt = "#a4aab6", mt = 1e3, ht = 2e4, gt = 500;
764
764
  function _t({ permission: e, scene: n, dataJsonUrl: r, websocketUrl: o }) {
765
- let s = (0, U.useRef)(window.devicePixelRatio), c = (0, U.useRef)(/* @__PURE__ */ new Map()), l = (0, U.useRef)(/* @__PURE__ */ new Map()), u = (0, U.useRef)(), d = (0, U.useRef)(), f = (0, U.useRef)(performance.now()), p = (0, U.useRef)(1), m = (0, U.useRef)(new W()), h = (0, U.useRef)(/* @__PURE__ */ new Map()), g = (0, U.useRef)(mt), _ = (0, U.useRef)(/* @__PURE__ */ new Map()), v = (0, U.useRef)();
766
- (0, U.useEffect)(() => {
767
- async function y() {
768
- if (!(!e || !n)) try {
769
- var o, u;
770
- let e;
765
+ let s = (0, G.useRef)(window.devicePixelRatio), c = (0, G.useRef)(/* @__PURE__ */ new Map()), l = (0, G.useRef)(/* @__PURE__ */ new Map()), u = (0, G.useRef)(null), d = (0, G.useRef)(null), f = (0, G.useRef)(0), p = (0, G.useRef)(1), m = (0, G.useRef)(new Ze()), h = (0, G.useRef)(/* @__PURE__ */ new Map()), g = (0, G.useRef)(mt), _ = (0, G.useRef)(/* @__PURE__ */ new Map()), v = (0, G.useRef)(void 0);
766
+ (0, G.useEffect)(() => {
767
+ if (!e || !n) return;
768
+ let y = !1, x, S = n.rootLayer.children, C = l.current, w = c.current, T = m.current;
769
+ async function E() {
770
+ try {
771
+ var e, n;
772
+ let o;
771
773
  try {
772
- let t = await fetch(r, {
774
+ let e = await fetch(r, {
773
775
  method: "GET",
774
776
  headers: { "Content-Type": "application/json" }
775
777
  });
776
- if (!t.ok || t.status === 204) return;
777
- e = await t.json();
778
+ if (!e.ok || e.status === 204) return;
779
+ o = await e.json();
778
780
  } catch (e) {
779
781
  console.warn("useManageTraffic failed to get JSON", e);
780
782
  }
781
- if (!e || e != null && e.disabled || e != null && e.error) return;
782
- s.current = vt((o = (u = O()) == null ? void 0 : u.state().pixelSize) == null ? window.devicePixelRatio : o);
783
- let g = new Map(e.routes.map(({ id: e, color: t }) => [e, t])), v = n.rootLayer.children, y = /* @__PURE__ */ new Map();
784
- g.forEach((e) => {
785
- y.set(e, bt({
786
- radius: lt,
783
+ if (!o || o.disabled || o.error) return;
784
+ s.current = vt((e = (n = O()) == null ? void 0 : n.state().pixelSize) == null ? window.devicePixelRatio : e);
785
+ let l = new Map(o.routes.map(({ id: e, color: t }) => [e, t])), u = /* @__PURE__ */ new Map();
786
+ l.forEach((e) => {
787
+ u.set(e, bt({
788
+ radius: ct,
787
789
  color: e,
788
790
  scale: window.devicePixelRatio
789
791
  }));
790
792
  });
791
- let S = ye(), w = v.filter((e) => S.test(e.name)), T = be(), E = v.filter((e) => T.test(e.name));
792
- e.routes.slice(0, w.length).forEach(({ id: e, color: t, path: n, stops: r, hiddenPoints: i }, o) => {
793
+ let m = be(), g = S.filter((e) => m.test(e.name)), v = xe(), y = S.filter((e) => v.test(e.name));
794
+ o.routes.slice(0, g.length).forEach(({ id: e, color: t, path: n, stops: r, hiddenPoints: i }, o) => {
793
795
  h.current.set(e, n);
794
- let c = w[o];
796
+ let c = g[o];
795
797
  if (c) {
796
798
  var l;
797
799
  let e = new Map((l = i == null ? void 0 : i.map((e) => [$(e), e])) == null ? [] : l);
@@ -803,50 +805,52 @@ function _t({ permission: e, scene: n, dataJsonUrl: r, websocketUrl: o }) {
803
805
  p1: a
804
806
  },
805
807
  color: t,
806
- width: q
808
+ width: J
807
809
  });
808
810
  }
809
- c.children.length && m.current.add(() => b(c));
810
- }
811
- let u = E[o];
812
- if (u && r != null && r.length) {
813
- let e = y.get(t);
814
- r.forEach((t) => {
815
- u.children.push({
816
- source: e,
817
- bounds: a(t.x, t.y, e.width, e.height, s.current)
818
- });
819
- }), u.children.length && m.current.add(() => b(u));
811
+ c.children.length && T.add(() => b(c));
820
812
  }
813
+ let d = y[o], f = u.get(t);
814
+ d && f && r != null && r.length && (r.forEach((e) => {
815
+ d.children.push({
816
+ source: f,
817
+ bounds: a(e.x, e.y, f.width, f.height, s.current)
818
+ });
819
+ }), d.children.length && T.add(() => b(d)));
821
820
  });
822
- let D = v.find((e) => e.name === B), k = /* @__PURE__ */ new Map();
823
- D.onScale = ({ pixelSize: e }) => {
821
+ let x = S.find((e) => e.name === z);
822
+ if (!x) {
823
+ console.warn(`useManageTraffic: the scene has no "${z}" layer`);
824
+ return;
825
+ }
826
+ let E = /* @__PURE__ */ new Map();
827
+ x.onScale = ({ pixelSize: e }) => {
824
828
  s.current = vt(e);
825
829
  let t = [];
826
- for (let e of E) {
830
+ for (let e of y) {
827
831
  let n = e.children;
828
832
  for (let e of n) e.bounds = a(e.bounds.center.x, e.bounds.center.y, e.source.width, e.source.height, s.current, e.bounds.rotation), t.push(e);
829
833
  }
830
834
  for (let e of c.current.values()) e.bounds = a(e.bounds.center.x, e.bounds.center.y, e.source.width, e.source.height, s.current, e.bounds.rotation), t.push(e);
831
835
  return t;
832
- }, m.current.add(() => b(D)), g.forEach((e, t) => {
833
- k.set(t, xt({
836
+ }, T.add(() => b(x)), l.forEach((e, t) => {
837
+ E.set(t, xt({
834
838
  id: t,
835
- width: J,
836
- height: J,
839
+ width: Y,
840
+ height: Y,
837
841
  color: e,
838
842
  scale: window.devicePixelRatio
839
843
  }));
840
- }), k.set(Y, xt({
844
+ });
845
+ let te = xt({
841
846
  id: "orphan",
842
- width: J,
843
- height: J,
844
- color: Y,
847
+ width: Y,
848
+ height: Y,
849
+ color: pt,
845
850
  scale: window.devicePixelRatio
846
- }));
847
- let A = null;
851
+ }), A = null;
848
852
  try {
849
- A = R(await i(`${t}icons/bus-white.svg`), ut, ut, window.devicePixelRatio);
853
+ A = L(await i(`${t}icons/bus-white.svg`), lt, lt, window.devicePixelRatio);
850
854
  } catch (e) {
851
855
  console.error(e);
852
856
  }
@@ -854,45 +858,43 @@ function _t({ permission: e, scene: n, dataJsonUrl: r, websocketUrl: o }) {
854
858
  try {
855
859
  var t;
856
860
  let n = JSON.parse(e.data);
857
- if (n.type !== ft) return;
861
+ if (n.type !== dt) return;
858
862
  let r = e.timeStamp || performance.now();
859
863
  p.current = Math.round(r - f.current), f.current = r;
860
- let i = Math.max((t = p.current) == null ? gt : t, gt), o = l.current, u = c.current, d = D.children, g = m.current, v = !1;
861
- n.data.forEach(({ id: e, x: t, y: n, route_id: r, hidden: c }) => {
862
- if (o.has(e)) {
863
- var l;
864
- (l = o.get(e)) == null || l(), o.delete(e);
864
+ let i = Math.max((t = p.current) == null ? gt : t, gt), o = x.children, c = !1;
865
+ n.data.forEach(({ id: e, x: t, y: n, route_id: r, hidden: l }) => {
866
+ var u;
867
+ if (C.has(e)) {
868
+ var d;
869
+ (d = C.get(e)) == null || d(), C.delete(e);
865
870
  }
866
- if (c && u.has(e) && u.has(Z(e))) {
867
- let t = u.get(e);
868
- t.hidden = !0;
869
- let n = u.get(Z(e));
870
- n.hidden = !0, g.add(() => b(t, n));
871
+ let f = w.get(e), p = (u = w.get(Z(e))) == null ? null : u;
872
+ if (l && f && p) {
873
+ f.hidden = !0, p.hidden = !0, T.add(() => b(f, p));
871
874
  return;
872
875
  }
873
- if (_.current.set(e, performance.now()), !u.has(e)) {
874
- let i = k.get(r) || k.get(Y), o = {
875
- id: e,
876
+ if (_.current.set(e, performance.now()), !f) {
877
+ var m;
878
+ let i = (m = E.get(r)) == null ? te : m, l = {
876
879
  source: i,
877
880
  bounds: a(t, n, i.width, i.height, s.current, 0)
878
881
  };
879
- if (u.set(e, o), A) {
882
+ if (w.set(e, l), A) {
880
883
  let r = Z(e), i = {
881
- id: r,
882
884
  source: A,
883
885
  bounds: a(t, n, A.width, A.height, s.current, 0)
884
886
  };
885
- A.setAttribute("id", r), u.set(r, i), d.push(o, i);
886
- } else d.push(o);
887
- v = !0;
887
+ A.setAttribute("id", r), w.set(r, i), o.push(l, i);
888
+ } else o.push(l);
889
+ c = !0;
888
890
  return;
889
891
  }
890
- let f = u.get(e), p = u.get(Z(e)), m = f.bounds.center, y = Tt(m, {
892
+ let g = f.bounds.center, v = Tt(g, {
891
893
  x: t,
892
894
  y: n
893
895
  }, h.current.get(r));
894
- if (y.reduce((e, t, n) => n === 0 ? e : e + X(y[n - 1], t), 0) >= pt || document.hidden) St({
895
- updateQueue: g,
896
+ if (v.reduce((e, t, n) => n === 0 ? e : e + X(v[n - 1], t), 0) >= ft || document.hidden) St({
897
+ updateQueue: T,
896
898
  vehicle: f,
897
899
  vehicleFinery: p,
898
900
  x: t,
@@ -904,9 +906,9 @@ function _t({ permission: e, scene: n, dataJsonUrl: r, websocketUrl: o }) {
904
906
  })
905
907
  });
906
908
  else {
907
- let t = Et(y, i, (e) => {
909
+ let t = Et(v, i, (e) => {
908
910
  St({
909
- updateQueue: g,
911
+ updateQueue: T,
910
912
  vehicle: f,
911
913
  vehicleFinery: p,
912
914
  x: e.x,
@@ -915,46 +917,46 @@ function _t({ permission: e, scene: n, dataJsonUrl: r, websocketUrl: o }) {
915
917
  angle: e.angle
916
918
  });
917
919
  });
918
- o.set(e, t);
920
+ C.set(e, t);
919
921
  }
920
- }), v && g.add(() => b(D));
922
+ }), c && T.add(() => b(x));
921
923
  } catch (e) {
922
924
  console.error("handleSocketMessage", e);
923
925
  }
924
- }, x(), C(e.config ? (Number(e.config.vehicle_inactive_interval) || 20) * 1e3 : ht);
926
+ }, f.current = performance.now(), D(), window.addEventListener("online", k), ee(o.config ? (Number(o.config.vehicle_inactive_interval) || 20) * 1e3 : ht);
925
927
  } catch (e) {
926
928
  console.warn(e);
927
929
  }
928
930
  }
929
- y();
930
- function x() {
931
+ E();
932
+ function D() {
931
933
  var e, t;
932
- ((e = u.current) == null ? void 0 : e.readyState) === WebSocket.OPEN || ((t = u.current) == null ? void 0 : t.readyState) === WebSocket.CONNECTING || (u.current = new WebSocket(o), u.current.onmessage = d.current, u.current.onopen = () => {
934
+ y || ((e = u.current) == null ? void 0 : e.readyState) === WebSocket.OPEN || ((t = u.current) == null ? void 0 : t.readyState) === WebSocket.CONNECTING || (u.current = new WebSocket(o), u.current.onmessage = d.current, u.current.onopen = () => {
933
935
  g.current = mt;
934
936
  }, u.current.onclose = () => {
935
- navigator.onLine && (setTimeout(x, g.current), g.current = Math.min(g.current * 2, 3e4));
937
+ y || !navigator.onLine || (x = window.setTimeout(D, g.current), g.current = Math.min(g.current * 2, 3e4));
936
938
  });
937
939
  }
938
- function S() {
939
- x();
940
+ function k() {
941
+ D();
940
942
  }
941
- window.addEventListener("online", S);
942
- function C(e) {
943
+ function ee(e) {
943
944
  clearInterval(v.current), v.current = window.setInterval(() => {
944
945
  let t = performance.now(), n = [], r = [];
945
946
  _.current.forEach((i, a) => {
946
947
  if (t - i < e) return;
947
- let o = c.current.get(a);
948
+ let o = w.get(a);
948
949
  o && (o.hidden = !0, r.push(o), n.push(a));
949
- let s = Z(a), l = c.current.get(s);
950
- l && (l.hidden = !0, r.push(l), n.push(s));
951
- }), r.length && m.current.add(() => b(...r)), n.forEach((e) => _.current.delete(e));
950
+ let s = Z(a), c = w.get(s);
951
+ c && (c.hidden = !0, r.push(c), n.push(s));
952
+ }), r.length && T.add(() => b(...r)), n.forEach((e) => _.current.delete(e));
952
953
  }, e);
953
954
  }
954
955
  return () => {
955
956
  var e;
956
- let t = n == null || (e = n.rootLayer.children) == null ? void 0 : e.find((e) => e.name === B);
957
- t && (t.onScale = void 0), l.current.forEach((e) => e == null ? void 0 : e()), l.current.clear(), c.current.clear(), m.current.destroy(), window.removeEventListener("online", S), clearInterval(v.current);
957
+ y = !0, clearTimeout(x), (e = u.current) == null || e.close(), u.current = null;
958
+ let t = S.find((e) => e.name === z);
959
+ t && (t.onScale = void 0), C.forEach((e) => e == null ? void 0 : e()), C.clear(), w.clear(), T.destroy(), window.removeEventListener("online", k), clearInterval(v.current);
958
960
  };
959
961
  }, [
960
962
  e,
@@ -964,7 +966,7 @@ function _t({ permission: e, scene: n, dataJsonUrl: r, websocketUrl: o }) {
964
966
  ]);
965
967
  }
966
968
  function vt(e) {
967
- return Math.min(e || window.devicePixelRatio, dt);
969
+ return Math.min(e || window.devicePixelRatio, ut);
968
970
  }
969
971
  function yt(e, t) {
970
972
  return d(e, t);
@@ -1105,4 +1107,4 @@ function Mt(e) {
1105
1107
  return e < .5 ? 4 * e * e * e : 1 - (-2 * e + 2) ** 3 / 2;
1106
1108
  }
1107
1109
  //#endregion
1108
- export { ct as a, Ke as c, _t as i, kt as n, Qe as o, At as r, Ze as s, Dt as t };
1110
+ export { st as a, We as c, _t as i, kt as n, Xe as o, At as r, Ye as s, Dt as t };