@expofp/floorplan 3.44.5 → 3.44.7

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 (91) hide show
  1. package/dist/browser/{Button-KOcUyCV4.js → Button-CleQDd3q.js} +5 -5
  2. package/dist/browser/{CookieConsent-Dxa0id06.js → CookieConsent-DBf69NUJ.js} +7 -7
  3. package/dist/browser/{Debug-QyhDw-Qr.js → Debug-B5dACqLH.js} +7 -7
  4. package/dist/browser/{DebugTools-D2W2n6Jn.js → DebugTools-CJqVrNUk.js} +6 -6
  5. package/dist/browser/{Demo-B13KXifC.js → Demo-Bn0xGm2R.js} +9 -9
  6. package/dist/browser/{Free-CX_vMtxZ.js → Free-DdJFphUM.js} +10 -10
  7. package/dist/browser/{GalleryContainer-CM3-49P7.js → GalleryContainer-Dr3XdE_K.js} +11 -11
  8. package/dist/browser/{GpsLoader-4PVGhL1U.js → GpsLoader-x1X6cIIo.js} +13 -13
  9. package/dist/browser/{KioskStore-DTQoQI0q.js → KioskStore-DAX0R23S.js} +9 -9
  10. package/dist/browser/{LayerStore-CazBur3e.js → LayerStore-CchaypH9.js} +16 -16
  11. package/dist/browser/{MaplibreAdapter-Zingiqz4.js → MaplibreAdapter-DTEZ-jxf.js} +17 -17
  12. package/dist/browser/{ModalContainer-CdFZHz2f.js → ModalContainer-Cj8s9wg0.js} +10 -10
  13. package/dist/browser/{PermissionNotice-t6cUGYwh.js → PermissionNotice-CAMpf8J5.js} +6 -6
  14. package/dist/browser/{RouteStore-j54ZGAfi.js → RouteStore-BG2GPSXR.js} +9 -9
  15. package/dist/browser/{SetKioskMode-B6wYtN7b.js → SetKioskMode-B7Dki7mM.js} +11 -11
  16. package/dist/browser/{ShowKiosk-B5wMyYJL.js → ShowKiosk-CrMZ-Nzh.js} +10 -10
  17. package/dist/browser/{UIState-DDYKhzgf.js → UIState-C-Y4d_-F.js} +13 -13
  18. package/dist/browser/{ViewerMenuPanel-BCVS4-Y6.js → ViewerMenuPanel-ByEmJoRl.js} +10 -10
  19. package/dist/browser/{add-debug-secret-listener-Dhq4xAyx.js → add-debug-secret-listener-BGDZfpcC.js} +1 -1
  20. package/dist/browser/{adopt-global-settings-DIBm6FQS.js → adopt-global-settings-Dk05fnXw.js} +9 -9
  21. package/dist/browser/{boolean-editor-Y-xsiI--.js → boolean-editor-o6yCthBy.js} +9 -9
  22. package/dist/browser/{bootIntercom-Cioan8sb.js → bootIntercom-BwnVPXBt.js} +2 -2
  23. package/dist/browser/bundle.json +85 -85
  24. package/dist/browser/{camera-events-BOdD_NLx.js → camera-events-DWOBiqIB.js} +1 -1
  25. package/dist/browser/{classnames-CK71vh8q.js → classnames-CZclRloQ.js} +2 -2
  26. package/dist/browser/{client-CJPzVCkl.js → client-BvQ9Gczi.js} +5 -5
  27. package/dist/browser/{components-F21BHxXy.js → components-nLLOu6UV.js} +48 -48
  28. package/dist/browser/{create-live-plan-nrSyFkZI.js → create-live-plan-CWx504lG.js} +13 -13
  29. package/dist/browser/{debug-context-DwpqAozh.js → debug-context-D39JjNZt.js} +5 -5
  30. package/dist/browser/{debug-overlay-B6KaSOEU.js → debug-overlay-m0mSmVHJ.js} +10 -10
  31. package/dist/browser/{debug-ui-Bf8fXQOS.js → debug-ui-BnyOgnPt.js} +6 -6
  32. package/dist/browser/{dimming-BHvWqTG-.js → dimming-BUP_9LMs.js} +282 -234
  33. package/dist/browser/{dist-39qZTE_8.js → dist-B0uHOfHb.js} +5 -5
  34. package/dist/browser/{dist-C4gjCWf-.js → dist-DLh73aaY.js} +6 -6
  35. package/dist/browser/{dist-e4oHl02a.js → dist-yVxNF_HZ.js} +3 -3
  36. package/dist/browser/{efp-debug-init-CgA5CA8v.js → efp-debug-init-CCymXgr-.js} +3 -3
  37. package/dist/browser/{enum-editor-Clbji3s0.js → enum-editor-Du2N0dRj.js} +4 -4
  38. package/dist/browser/{es5-DS8lovDx.js → es5-l7cNM1JQ.js} +2 -2
  39. package/dist/browser/{event-head-CvwSi2rY.js → event-head-DaeIW6ZC.js} +1 -1
  40. package/dist/browser/{event-not-found-CCc_S9hI.js → event-not-found-CFWIRPAy.js} +3 -3
  41. package/dist/browser/{event-scoped-cache-kTMeUrly.js → event-scoped-cache-793HawJt.js} +2 -2
  42. package/dist/browser/{expofpUrl-CHp0e8cE.js → expofpUrl-BLqQlx4U.js} +1 -1
  43. package/dist/browser/{exports-J1MI3kf7.js → exports-BmgyMAW1.js} +1 -1
  44. package/dist/browser/{favicon-CcNmTUw4.js → favicon-BCSYqkNZ.js} +1 -1
  45. package/dist/browser/{fetch-retry.umd-BgUlFCap.js → fetch-retry.umd-BFKfjB2M.js} +2 -2
  46. package/dist/browser/{flex-vWrExjXE.js → flex-CK3VOHMW.js} +5 -5
  47. package/dist/browser/{floorplan.loader-CUEvFUdv.js → floorplan.loader-C9TjDBmt.js} +12 -12
  48. package/dist/browser/{floorplan.ready-ko8a3n9B.js → floorplan.ready-c_FJgMPD.js} +23 -23
  49. package/dist/browser/{freeBanner-DpKvZQN1.js → freeBanner-DgUUkI2a.js} +2 -2
  50. package/dist/browser/{fuse-Bfm1APV7.js → fuse-BYRtXyUs.js} +2 -2
  51. package/dist/browser/{i18n-DDJS5YMr.js → i18n-D6mkjwGK.js} +6 -6
  52. package/dist/browser/index.js +17 -17
  53. package/dist/browser/{index.module-DsUsijj6.js → index.module-WJQpxtrH.js} +4 -4
  54. package/dist/browser/{init-ui-Bm0UPhlY.js → init-ui-DRwSj40I.js} +9 -9
  55. package/dist/browser/{integrateKiosk-B3aJf8F4.js → integrateKiosk-eGXJsNiO.js} +5 -5
  56. package/dist/browser/{is-debug-De3PeMDZ.js → is-debug-m1W_6MrE.js} +4 -4
  57. package/dist/browser/{is-own-domain-B9xN9-Lx.js → is-own-domain-Bdfz0zQ0.js} +1 -1
  58. package/dist/browser/{is-webview-yWWEgPgd.js → is-webview-B8VsNIoN.js} +1 -1
  59. package/dist/browser/{jsx-runtime-DjD5sUU-.js → jsx-runtime-C1oR0Zi0.js} +2 -2
  60. package/dist/browser/{kiosk-mode-CDwaDIbF.js → kiosk-mode-B1Xr_IyL.js} +3 -3
  61. package/dist/browser/{kiosk-record-DMkGRlUE.js → kiosk-record-BOx9wVlW.js} +1 -1
  62. package/dist/browser/{kioskApi-CQSBvl3I.js → kioskApi-BenqwSpt.js} +7 -7
  63. package/dist/browser/{lib-CJ3OJE3_.js → lib-BMUuspHa.js} +3 -3
  64. package/dist/browser/{loadImage-D8uFT5Sk.js → loadImage-BVv4a2P0.js} +1 -1
  65. package/dist/browser/{logDeviceInfo-CmWBec7t.js → logDeviceInfo-Ca0FCWzJ.js} +9 -9
  66. package/dist/browser/{mobx-BdBndn_p.js → mobx-Dd5eFIow.js} +4 -4
  67. package/dist/browser/{mobx.module-C3w0PP29.js → mobx.module-C48iLaGi.js} +1 -1
  68. package/dist/browser/{optional-boolean-editor-Blvo9Yix.js → optional-boolean-editor-B-42x5e-.js} +3 -3
  69. package/dist/browser/{optional-enum-editor-DU7T8uz0.js → optional-enum-editor-Bxiw2Z8x.js} +4 -4
  70. package/dist/browser/{optional-string-editor-xZMbxEZE.js → optional-string-editor-CqHfXBvX.js} +4 -4
  71. package/dist/browser/{particles.min-D_8wZYXL.js → particles.min-U6rx5JeG.js} +2 -2
  72. package/dist/browser/{react-CV8wM7_O.js → react-C3MD_6wk.js} +2 -2
  73. package/dist/browser/{react-dom-CecEt-x3.js → react-dom-_B4zRwEv.js} +3 -3
  74. package/dist/browser/{rolldown-runtime-BGNEtxPt.js → rolldown-runtime-D2hCdFW8.js} +1 -1
  75. package/dist/browser/{scene-1Y2hzeYv.js → scene-DyfGtdIg.js} +2 -2
  76. package/dist/browser/{scheduler-Di2biGM1.js → scheduler-Bg382KcU.js} +2 -2
  77. package/dist/browser/{select-CJlj5fYs.js → select-D8SjUiUb.js} +10 -10
  78. package/dist/browser/{settings-1yX1j826.js → settings-Bh45PRJm.js} +2 -2
  79. package/dist/browser/{settings-item-B8pw2_WH.js → settings-item-DoHYH97F.js} +6 -6
  80. package/dist/browser/{store-DknI2Sdy.js → store-zbZemYUA.js} +2 -2
  81. package/dist/browser/{string-editor-S6hL0jAM.js → string-editor-23PXPywz.js} +4 -4
  82. package/dist/browser/{text-field-CgCCjJwX.js → text-field-C1dH_sz6.js} +5 -5
  83. package/dist/browser/{theme-2daWarWB.js → theme-CHTbq4Fs.js} +8 -8
  84. package/dist/browser/{ui-CPg_zcyB.js → ui-D2xk_zF-.js} +8 -8
  85. package/dist/browser/{useRenderTarget-CTvYMgqG.js → useRenderTarget-CHnba2yS.js} +4 -4
  86. package/dist/browser/{viewport-B_GD-x9K.js → viewport-Cz5rd5Zn.js} +3 -3
  87. package/dist/browser/{wayfinding-B4_JvPpk.js → wayfinding-CQCzv2e-.js} +5 -5
  88. package/dist/esm/components/Map/drawing/config/booth-badge-anchor.d.ts +121 -0
  89. package/dist/esm/components/Map/drawing/config/booth-badge-anchor.js +1 -0
  90. package/dist/esm/components/Map/drawing/config/config-booth-badge.js +1 -1
  91. package/package.json +10 -10
@@ -1,83 +1,180 @@
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.44.5" };
4
+ e.SENTRY_RELEASE = { id: "3.44.7" };
5
5
  var t = new e.Error().stack;
6
- t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "ec8bca9e-cd7b-4c91-b41a-57c0cc1e3a25", e._sentryDebugIdIdentifier = "sentry-dbid-ec8bca9e-cd7b-4c91-b41a-57c0cc1e3a25");
6
+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "29c29777-ce0b-4875-b12b-f9b4bb1518a2", e._sentryDebugIdIdentifier = "sentry-dbid-29c29777-ce0b-4875-b12b-f9b4bb1518a2");
7
7
  } catch {}
8
8
  })();
9
- import { r as e } from "./rolldown-runtime-BGNEtxPt.js";
10
- import { g as t } from "./i18n-DDJS5YMr.js";
11
- import { t as n } from "./react-CV8wM7_O.js";
12
- import { l as r } from "./mobx.module-C3w0PP29.js";
13
- import { t as i } from "./loadImage-D8uFT5Sk.js";
14
- import { r as a } from "./debug-context-DwpqAozh.js";
15
- import { a as o, l as s, t as c, u as l } from "./store-DknI2Sdy.js";
16
- import { $ as u, Bt as d, D as f, Et as p, Ft as m, G as h, Ht as g, J as _, Kt as v, Nt as y, Rt as b, Vt as x, W as S, Wt as C, X as w, Y as T, _t as E, b as D, d as ee, dt as O, f as k, gt as A, i as j, it as M, kt as N, nt as te, q as ne, qt as P, rt as re, t as F, vt as I, wt as ie, x as L, xt as R } from "./LayerStore-CazBur3e.js";
17
- import { _ as ae, l as oe } from "./wayfinding-B4_JvPpk.js";
18
- import { i as z, n as se } from "./viewport-B_GD-x9K.js";
19
- import { r as ce } from "./scene-1Y2hzeYv.js";
9
+ import { r as e } from "./rolldown-runtime-D2hCdFW8.js";
10
+ import { g as t } from "./i18n-D6mkjwGK.js";
11
+ import { t as n } from "./react-C3MD_6wk.js";
12
+ import { l as r } from "./mobx.module-C48iLaGi.js";
13
+ import { t as i } from "./loadImage-BVv4a2P0.js";
14
+ import { r as a } from "./debug-context-D39JjNZt.js";
15
+ import { a as o, l as s, t as c, u as l } from "./store-zbZemYUA.js";
16
+ import { $ as u, Bt as d, D as f, Et as p, Ft as m, G as h, Ht as g, J as _, Kt as v, Nt as y, Rt as b, Vt as x, W as S, Wt as C, X as w, Y as T, _t as E, b as D, d as O, dt as k, f as A, gt as j, i as M, it as N, kt as P, nt as ee, q as te, qt as F, rt as ne, t as re, vt as I, wt as ie, x as ae, xt as oe } from "./LayerStore-CchaypH9.js";
17
+ import { _ as se, l as ce } from "./wayfinding-CQCzv2e-.js";
18
+ import { i as le, n as ue } from "./viewport-Cz5rd5Zn.js";
19
+ import { r as de } from "./scene-DyfGtdIg.js";
20
20
  //#region src/components/Map/traffic/trafficLayers.ts
21
- var le = "traffic_route", ue = "traffic_route_stop", B = "traffic_vehicles", de = "build_route_lines", fe = "build_route_dots", pe = 5;
22
- function me() {
21
+ var L = "traffic_route", fe = "traffic_route_stop", R = "traffic_vehicles", pe = "build_route_lines", me = "build_route_dots", he = 5;
22
+ function ge() {
23
23
  let e = [];
24
- for (let t = 0; t < pe; t++) e.push({
25
- name: he(t),
24
+ for (let t = 0; t < he; t++) e.push({
25
+ name: _e(t),
26
26
  children: []
27
27
  }), e.push({
28
- name: ge(t),
28
+ name: ve(t),
29
29
  children: []
30
30
  });
31
31
  return e.push({
32
- name: B,
32
+ name: R,
33
33
  children: []
34
34
  }), e.push({
35
- name: de,
35
+ name: pe,
36
36
  children: []
37
37
  }), e.push({
38
- name: fe,
38
+ name: me,
39
39
  children: []
40
40
  }), e;
41
41
  }
42
- function he(e) {
43
- return `${le}_${e + 1}`;
42
+ function _e(e) {
43
+ return `${L}_${e + 1}`;
44
44
  }
45
- function ge(e) {
46
- return `${ue}_${e + 1}`;
45
+ function ve(e) {
46
+ return `${fe}_${e + 1}`;
47
47
  }
48
- function _e() {
49
- return RegExp(`^${le}_\\d+$`);
48
+ function ye() {
49
+ return RegExp(`^${L}_\\d+$`);
50
50
  }
51
- function ve() {
52
- return RegExp(`^${ue}_\\d+$`);
51
+ function be() {
52
+ return RegExp(`^${fe}_\\d+$`);
53
53
  }
54
54
  //#endregion
55
- //#region src/components/Map/drawing/config/config-booth-badge-eligibility.ts
56
- var ye = /* @__PURE__ */ e(A(), 1);
57
- function be(e) {
58
- return e.hideExhibitorBoothNumber || e.hideBoothBadges || !e.hasExhibitors ? !1 : e.noLabels || !e.hideLogoInBooth && e.hasLogoInBooth;
59
- }
60
- //#endregion
61
- //#region src/components/Map/drawing/config/config-booth-badge.ts
62
- var xe = .5, Se = .3, Ce = 15, we = 24, Te = 30, Ee = 12, De = .8, Oe = document.createElement("canvas").getContext("2d");
63
- function ke(e) {
64
- return e.length <= Ce ? e : e.slice(0, Ce - 1) + "…";
65
- }
66
- function Ae(e) {
67
- var t, n;
68
- if (!((t = e.paths) != null && t.length)) return [];
69
- let r = ((n = e.layer) == null ? void 0 : n.name) || "", i = [];
70
- for (let t of e.paths) for (let e of N(t.index, r)) i.push(e);
71
- return i;
72
- }
73
- function je(e) {
74
- let t = Ae(e);
75
- return t.length ? b.fromPoints(t.flat().map(([e, t]) => ({
76
- x: e,
77
- y: t
78
- }))) : null;
55
+ //#region src/components/Map/drawing/config/booth-badge-anchor.ts
56
+ var xe = /* @__PURE__ */ e(j(), 1), Se = .5, Ce = .3, we = 10, Te = 8, Ee = 50, z = class e {
57
+ constructor(e, t, n, r) {
58
+ this.booth = e, this.triangles = t, this.border = n, this.source = r, this.fits = [], this.prefetchRotation = 0, this.polygon = void 0, this.bbox = void 0, this.vertices = null, this.polygon = Oe(t), this.bbox = De(t);
59
+ }
60
+ fit(e, t) {
61
+ let n = this.fits[e];
62
+ return n || (this.fits[e] = n = this.compute(e, t)), n;
63
+ }
64
+ prefetch(t) {
65
+ e.idle.has(this) || (this.prefetchRotation = t, e.idle.add(this), e.scheduleIdle());
66
+ }
67
+ cancelPrefetch() {
68
+ e.idle.delete(this);
69
+ }
70
+ static scheduleIdle() {
71
+ e.idleScheduled || !e.idle.size || (e.idleScheduled = !0, typeof requestIdleCallback == "function" ? requestIdleCallback(e.runIdle) : setTimeout(() => e.runIdle({ timeRemaining: () => Te }), Ee));
72
+ }
73
+ static runIdle(t) {
74
+ e.idleScheduled = !1;
75
+ let n = performance.now() + Te;
76
+ for (let r of e.idle) {
77
+ if (t.timeRemaining() <= 0 || performance.now() >= n) break;
78
+ r.prefetchNext() || e.idle.delete(r);
79
+ }
80
+ e.scheduleIdle();
81
+ }
82
+ prefetchNext() {
83
+ for (let e = 1; e < 4; e++) if (!this.fits[e]) return this.fit(e, this.prefetchRotation + e * Math.PI / 2), e < 3;
84
+ return !1;
85
+ }
86
+ compute(e, t) {
87
+ let n = e === 0 || e === 3 ? 1 : -1, r = e === 0 || e === 1 ? 1 : -1, i = this.findAnchor(n, r), a = this.clampScale(i.x, i.y, this.rectMaxScale(e % 2 == 1), t);
88
+ return {
89
+ x: i.x,
90
+ y: i.y,
91
+ maxScale: a
92
+ };
93
+ }
94
+ rectMaxScale(e) {
95
+ let t = this.booth.rect.size.width, n = this.booth.rect.size.height, r = e ? n : t, i = e ? t : n;
96
+ return Math.min(r > 0 ? r * Se / this.source.x : Infinity, i > 0 ? i * Ce / this.source.y : Infinity);
97
+ }
98
+ findAnchor(e, t) {
99
+ var n;
100
+ let { booth: r, border: i, bbox: a } = this;
101
+ if (a) {
102
+ let n = e > 0 ? a.min.x : a.max.x, r = t > 0 ? a.min.y : a.max.y, o = [];
103
+ for (let [a, s] of this.distinctVertices()) {
104
+ let c = a + i * e, l = s + i * t, u = Math.abs(c - n) + Math.abs(l - r);
105
+ u < Infinity && o.push({
106
+ x: c,
107
+ y: l,
108
+ score: u,
109
+ order: o.length
110
+ });
111
+ }
112
+ o.sort((e, t) => e.score - t.score || e.order - t.order);
113
+ for (let e of o) {
114
+ let t = {
115
+ x: e.x,
116
+ y: e.y
117
+ };
118
+ if (this.polygon.containsPoint(t)) return t;
119
+ }
120
+ }
121
+ let o = e > 0 ? r.rect.min.x + i : r.rect.max.x - i, s = t > 0 ? r.rect.min.y + i : r.rect.max.y - i, c = (n = r.rotate) == null ? 0 : n;
122
+ return c ? v({
123
+ x: o,
124
+ y: s
125
+ }, c, r.rect.center) : {
126
+ x: o,
127
+ y: s
128
+ };
129
+ }
130
+ clampScale(e, t, n, r) {
131
+ let { polygon: i, source: a } = this;
132
+ if (!this.triangles.length) return n;
133
+ let o = {
134
+ x: e,
135
+ y: t
136
+ };
137
+ if (!i.containsPoint(o)) return n;
138
+ let s = 0, c = n;
139
+ for (let n = 0; n < we; n++) {
140
+ let n = (s + c) / 2, l = a.x * n, u = a.y * n;
141
+ i.containsPoint(v({
142
+ x: e + l,
143
+ y: t
144
+ }, r, o)) && i.containsPoint(v({
145
+ x: e,
146
+ y: t + u
147
+ }, r, o)) && i.containsPoint(v({
148
+ x: e + l,
149
+ y: t + u
150
+ }, r, o)) ? s = n : c = n;
151
+ }
152
+ return s;
153
+ }
154
+ distinctVertices() {
155
+ if (this.vertices) return this.vertices;
156
+ let e = /* @__PURE__ */ new Set(), t = [];
157
+ for (let n of this.triangles) for (let r of n) {
158
+ let n = `${r[0]},${r[1]}`;
159
+ e.has(n) || (e.add(n), t.push([r[0], r[1]]));
160
+ }
161
+ return this.vertices = t;
162
+ }
163
+ };
164
+ z.idle = /* @__PURE__ */ new Set(), z.idleScheduled = !1;
165
+ function De(e) {
166
+ if (!e.length) return null;
167
+ let t = Infinity, n = Infinity, r = -Infinity, i = -Infinity;
168
+ for (let a of e) for (let [e, o] of a) e < t && (t = e), o < n && (n = o), e > r && (r = e), o > i && (i = o);
169
+ return b.fromMinMax({
170
+ x: t,
171
+ y: n
172
+ }, {
173
+ x: r,
174
+ y: i
175
+ });
79
176
  }
80
- function Me(e) {
177
+ function Oe(e) {
81
178
  let t = [], n = [];
82
179
  for (let r of e) {
83
180
  let e = t.length;
@@ -98,151 +195,102 @@ function Me(e) {
98
195
  }
99
196
  return new g(t, n);
100
197
  }
101
- function V(e, t, n) {
102
- return n.containsPoint({
103
- x: e,
104
- y: t
105
- });
106
- }
107
- function Ne(e, t, n, r, i, a, o, s) {
108
- if (!e.length || !V(n, r, t)) return o;
109
- let c = {
110
- x: n,
111
- y: r
112
- }, l = 0, u = o;
113
- for (let e = 0; e < 10; e++) {
114
- let e = (l + u) / 2, o = i * e, d = a * e;
115
- [
116
- v({
117
- x: n + o,
118
- y: r
119
- }, s, c),
120
- v({
121
- x: n,
122
- y: r + d
123
- }, s, c),
124
- v({
125
- x: n + o,
126
- y: r + d
127
- }, s, c)
128
- ].every((e) => V(e.x, e.y, t)) ? l = e : u = e;
129
- }
130
- return l;
198
+ //#endregion
199
+ //#region src/components/Map/drawing/config/config-booth-badge-eligibility.ts
200
+ function ke(e) {
201
+ return e.hideExhibitorBoothNumber || e.hideBoothBadges || !e.hasExhibitors ? !1 : e.noLabels || !e.hideLogoInBooth && e.hasLogoInBooth;
131
202
  }
132
- function Pe(e) {
133
- var t;
134
- return (t = je(e)) == null ? e.rect : t;
203
+ //#endregion
204
+ //#region src/components/Map/drawing/config/config-booth-badge.ts
205
+ var Ae = 15, je = 24, Me = 30, Ne = 12, Pe = .8, Fe = document.createElement("canvas").getContext("2d");
206
+ function Ie(e) {
207
+ return e.length <= Ae ? e : e.slice(0, Ae - 1) + "…";
135
208
  }
136
- function Fe(e, t, n, r, i, a) {
137
- var o;
138
- if (t.length) {
139
- let o = Pe(e), s = {
140
- x: i > 0 ? o.min.x : o.max.x,
141
- y: a > 0 ? o.min.y : o.max.y
142
- }, c = /* @__PURE__ */ new Set(), l = null, u = Infinity;
143
- for (let e of t) for (let t of e) {
144
- let e = `${t[0]},${t[1]}`;
145
- if (c.has(e)) continue;
146
- c.add(e);
147
- let o = t[0] + r * i, d = t[1] + r * a;
148
- if (V(o, d, n)) {
149
- let e = Math.abs(o - s.x) + Math.abs(d - s.y);
150
- e < u && (u = e, l = {
151
- x: o,
152
- y: d
153
- });
154
- }
155
- }
156
- if (l) return l;
157
- }
158
- let s = i > 0 ? e.rect.min.x + r : e.rect.max.x - r, c = a > 0 ? e.rect.min.y + r : e.rect.max.y - r, l = (o = e.rotate) == null ? 0 : o;
159
- return l ? v({
160
- x: s,
161
- y: c
162
- }, l, e.rect.center) : {
163
- x: s,
164
- y: c
165
- };
209
+ function Le(e) {
210
+ var t, n;
211
+ if (!((t = e.paths) != null && t.length)) return [];
212
+ let r = ((n = e.layer) == null ? void 0 : n.name) || "", i = [];
213
+ for (let t of e.paths) for (let e of P(t.index, r)) i.push(e);
214
+ return i;
166
215
  }
167
- function H(e) {
216
+ function B(e) {
168
217
  return e && e !== "none" ? e : void 0;
169
218
  }
170
- function Ie(e) {
219
+ function Re(e) {
171
220
  var t;
172
- let n = H(e.borderColor) || H(p.boothBorderColor) || p.colors.booths.default;
173
- return ((t = e.paths) == null ? void 0 : t.length) > 1 && H(e.paths[e.paths.length - 1].color) || n;
221
+ let n = B(e.borderColor) || B(p.boothBorderColor) || p.colors.booths.default;
222
+ return ((t = e.paths) == null ? void 0 : t.length) > 1 && B(e.paths[e.paths.length - 1].color) || n;
174
223
  }
175
- function Le(e) {
224
+ function ze(e) {
176
225
  var t;
177
- let n = ke(e.title || e.name), i = Ie(e), a = ce((0, ye.default)(i).hex()), o = ee();
178
- Oe.font = ie(Te, o);
179
- let s = Oe.measureText(n).width, u = Math.ceil(s + Ee * 2), d = (e.borderWidth || c.borderWidth) / 2, f = u * De, p = 54 * De, m = e.rect.size.width, h = e.rect.size.height, g = (e) => {
180
- let t = e ? h : m, n = e ? m : h;
181
- return Math.min(t > 0 ? t * xe / f : Infinity, n > 0 ? n * Se / p : Infinity);
182
- }, y = Ae(e), b = Me(y), S = (t = e.rotate) == null ? 0 : t, C = 0, E = 0, D = 0, A = 0, j = () => {
183
- let t = Fe(e, y, b, d, C === 0 || C === 3 ? 1 : -1, C === 0 || C === 1 ? 1 : -1);
184
- E = t.x, D = t.y;
185
- let n = g(C === 1 || C === 3);
186
- A = Ne(y, b, E, D, f, p, n, S);
226
+ let n = Ie(e.title || e.name), i = Re(e), a = de((0, xe.default)(i).hex()), o = O();
227
+ Fe.font = ie(Me, o);
228
+ let s = Fe.measureText(n).width, u = Math.ceil(s + Ne * 2), d = (e.borderWidth || c.borderWidth) / 2, f = u * Pe, p = 54 * Pe, m = new z(e, Le(e), d, {
229
+ x: f,
230
+ y: p
231
+ }), h = (t = e.rotate) == null ? 0 : t, g = 0, y = 0, b = 0, S = 0, C = () => {
232
+ let e = m.fit(g, h);
233
+ y = e.x, b = e.y, S = e.maxScale;
187
234
  };
188
- j();
189
- let M = (t, n) => {
235
+ C();
236
+ let E = (t, n) => {
190
237
  let r = t / 2, i = n / 2;
191
238
  return new x(v({
192
- x: E + r,
193
- y: D + i
194
- }, S, {
195
- x: E,
196
- y: D
239
+ x: y + r,
240
+ y: b + i
241
+ }, h, {
242
+ x: y,
243
+ y: b
197
244
  }), {
198
245
  x: t,
199
246
  y: n
200
- }, S, e.elevation);
201
- }, N = k(o, w()), P = ne(M(1, 1), i);
202
- P.hidden = !0, P.dim = e.skipDim ? 0 : void 0;
203
- let F = _(T([[n], []], a, 0, [N, N]), M(1, 1), [0, 0], {
247
+ }, h, e.elevation);
248
+ }, D = A(o, w()), j = te(E(1, 1), i);
249
+ j.hidden = !0, j.dim = e.skipDim ? 0 : void 0;
250
+ let M = _(T([[n], []], a, 0, [D, D]), E(1, 1), [0, 0], {
204
251
  horizontal: "center",
205
252
  vertical: "center"
206
253
  });
207
- F.hidden = !0, F.dim = e.skipDim ? 0 : void 0;
208
- let I = {
254
+ M.hidden = !0, M.dim = e.skipDim ? 0 : void 0;
255
+ let N = {
209
256
  booth: e,
210
257
  anchor: {
211
- x: E,
212
- y: D
258
+ x: y,
259
+ y: b
213
260
  },
214
261
  source: {
215
262
  x: f,
216
263
  y: p
217
264
  },
218
- rotation: S,
219
- maxScale: A,
220
- bg: P,
221
- text: F
222
- }, L = new Re(I);
223
- P.onScale = ({ pixelSize: e }) => L.layOutBg(e), F.onScale = ({ pixelSize: e }) => L.layOutText(e);
224
- let R = [];
225
- return R.push(r(() => e.skipDim, (e) => {
226
- P.dim = e ? 0 : void 0, F.dim = e ? 0 : void 0, O(P, F);
227
- })), R.push(r(() => {
265
+ rotation: h,
266
+ maxScale: S,
267
+ bg: j,
268
+ text: M
269
+ }, P = new Be(N);
270
+ j.onScale = ({ pixelSize: e }) => P.layOutBg(e), M.onScale = ({ pixelSize: e }) => P.layOutText(e);
271
+ let F = [];
272
+ return F.push(r(() => e.skipDim, (e) => {
273
+ j.dim = e ? 0 : void 0, M.dim = e ? 0 : void 0, k(j, M);
274
+ })), F.push(r(() => {
228
275
  var t, n;
229
276
  return (t = (n = e.layer) == null ? void 0 : n.visible) == null || t;
230
277
  }, (e) => {
231
- P.hidden = !e, F.hidden = !e, O(P, F);
232
- })), R.push(r(() => l.mapSettings, ({ roll: e }) => {
233
- re(e == null ? 0 : e) && (P.onRoll = ({ roll: e, pixelSize: t }) => {
234
- let n = te(e, S);
235
- if (n !== 0) return S += n * Math.PI / 2, C = ((C + n) % 4 + 4) % 4, j(), I.anchor.x = E, I.anchor.y = D, I.rotation = S, I.maxScale = A, [...L.layOutBg(t), ...L.layOutText(t)];
278
+ j.hidden = !e, M.hidden = !e, k(j, M);
279
+ })), F.push(r(() => l.mapSettings, ({ roll: t }) => {
280
+ var n;
281
+ ne(t == null ? 0 : t) && (m.prefetch((n = e.rotate) == null ? 0 : n), j.onRoll = ({ roll: e, pixelSize: t }) => {
282
+ let n = ee(e, h);
283
+ if (n !== 0) return h += n * Math.PI / 2, g = ((g + n) % 4 + 4) % 4, C(), N.anchor.x = y, N.anchor.y = b, N.rotation = h, N.maxScale = S, [...P.layOutBg(t), ...P.layOutText(t)];
236
284
  });
237
- }, { fireImmediately: !0 })), {
238
- bg: P,
239
- text: F,
285
+ }, { fireImmediately: !0 }), () => m.cancelPrefetch()), {
286
+ bg: j,
287
+ text: M,
240
288
  dispose: () => {
241
- R.forEach((e) => e()), R.length = 0;
289
+ F.forEach((e) => e()), F.length = 0;
242
290
  }
243
291
  };
244
292
  }
245
- var Re = class {
293
+ var Be = class {
246
294
  constructor(e) {
247
295
  this.placement = e;
248
296
  }
@@ -252,7 +300,7 @@ var Re = class {
252
300
  }
253
301
  layOutText(e) {
254
302
  let { text: t, maxScale: n } = this.placement;
255
- return t.lines[0].fontSize = we * Math.min(e, n), t.bounds = this.rectScaled(e), t.hidden = this.isHidden(), t.hidden ? [] : [t];
303
+ return t.lines[0].fontSize = je * Math.min(e, n), t.bounds = this.rectScaled(e), t.hidden = this.isHidden(), t.hidden ? [] : [t];
256
304
  }
257
305
  rectScaled(e) {
258
306
  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;
@@ -269,9 +317,9 @@ var Re = class {
269
317
  return !!(e.layer && !e.layer.visible);
270
318
  }
271
319
  };
272
- function ze(e, t) {
320
+ function Ve(e, t) {
273
321
  let n = [], r = [], i = [];
274
- for (let e of t) if (e instanceof u && be({
322
+ for (let e of t) if (e instanceof u && ke({
275
323
  hideExhibitorBoothNumber: y.hideExhibitorBoothNumber,
276
324
  hideBoothBadges: y.hideBoothBadges,
277
325
  hideLogoInBooth: l.hideLogoInBooth,
@@ -279,7 +327,7 @@ function ze(e, t) {
279
327
  hasExhibitors: e.exhibitors.length > 0,
280
328
  hasLogoInBooth: e.exhibitors.some((e) => e.logoInBooth && e.logo)
281
329
  })) {
282
- let { bg: t, text: a, dispose: o } = Le(e);
330
+ let { bg: t, text: a, dispose: o } = ze(e);
283
331
  n.push(t), r.push(a), i.push(o);
284
332
  }
285
333
  let a = () => {
@@ -304,7 +352,7 @@ function ze(e, t) {
304
352
  }
305
353
  //#endregion
306
354
  //#region src/components/Map/drawing/config/config-markers.ts
307
- var Be = "_selected", Ve = "markers";
355
+ var V = "_selected", H = "markers";
308
356
  function He(e, t) {
309
357
  let { center: n, rotation: r, elevation: i } = e.bounds, { width: a, height: o } = e.source;
310
358
  return e.bounds = I(n.x, n.y, a, o, t, r, i), [e];
@@ -313,8 +361,8 @@ function Ue(e) {
313
361
  U = e;
314
362
  }
315
363
  function We(e) {
316
- let { scene: t } = e, n = [], i = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map(), c = [], u = t.rootLayer.children.find((e) => e.name === Ve);
317
- u.onScale = ({ pixelSize: e }) => Ue(e), D(Ge), O(u);
364
+ let { scene: t } = e, n = [], i = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map(), c = [], u = t.rootLayer.children.find((e) => e.name === H);
365
+ u.onScale = ({ pixelSize: e }) => Ue(e), D(Ge), k(u);
318
366
  async function d(e) {
319
367
  let t = [];
320
368
  e.forEach((e) => {
@@ -345,7 +393,7 @@ function We(e) {
345
393
  function m(e, t, n) {
346
394
  let r = a.get(e);
347
395
  if (r) return r;
348
- let i = R(t.img, t.width, t.height, n);
396
+ let i = oe(t.img, t.width, t.height, n);
349
397
  return a.set(e, i), i;
350
398
  }
351
399
  function h() {
@@ -385,7 +433,7 @@ function We(e) {
385
433
  hidden: !(f && e.active),
386
434
  origin: g
387
435
  }),
388
- id: `${e.id}${Be}`,
436
+ id: `${e.id}${V}`,
389
437
  scale: l,
390
438
  screenSpace: t
391
439
  };
@@ -401,7 +449,7 @@ function We(e) {
401
449
  let e = s.routeStore.markersData.markers;
402
450
  e.length && e.forEach((e) => {
403
451
  var t, n;
404
- let r = c.find((t) => t.id === e.id), i = c.find((t) => t.id === `${e.id}${Be}`);
452
+ let r = c.find((t) => t.id === e.id), i = c.find((t) => t.id === `${e.id}${V}`);
405
453
  if (!r || !i) return;
406
454
  let a = (t = (n = o.findLayer(e.z)) == null ? void 0 : n.visible) == null || t;
407
455
  e.active ? (r.hidden = !0, i.hidden = !(a && e.active)) : (r.hidden = !a, i.hidden = !0);
@@ -409,16 +457,16 @@ function We(e) {
409
457
  }
410
458
  return n.push(r(() => [s.routeStore.selectedMarkers, s.layerStore.visible], () => {
411
459
  if (!s.routeStore.markersData.markers.length) {
412
- g(), O(u);
460
+ g(), k(u);
413
461
  return;
414
462
  }
415
- _(), O(...c);
463
+ _(), k(...c);
416
464
  })), n.push(r(() => s.routeStore.markersData.markers, () => {
417
465
  d(s.routeStore.markersData.icons).then(() => {
418
- h(), O(u);
466
+ h(), k(u);
419
467
  });
420
468
  }, { fireImmediately: !0 })), function() {
421
- n.forEach((e) => e()), n.length = 0, u.onScale = void 0, D(), U = 1, O(u);
469
+ n.forEach((e) => e()), n.length = 0, u.onScale = void 0, D(), U = 1, k(u);
422
470
  };
423
471
  }
424
472
  function Ge(e, t) {
@@ -457,19 +505,19 @@ function Je() {
457
505
  let n = [...t], r = t.indexOf(e);
458
506
  n.splice(r, 1), t = [e, ...n];
459
507
  }
460
- let n = t.filter((e) => !e.rootParent).map((e) => j(e));
508
+ let n = t.filter((e) => !e.rootParent).map((e) => M(e));
461
509
  return Promise.all(n).then((e) => {
462
- let t = h(Ve, []);
510
+ let t = h(H, []);
463
511
  t.overlay = l.is3DView;
464
- let n = oe({ overlay: l.is3DView }), r = [], i = [];
512
+ let n = ce({ overlay: l.is3DView }), r = [], i = [];
465
513
  for (let t of e.flat()) f(t.name) ? (t.dim = 0, i.push(t)) : r.push(t);
466
- let { layer: a, cleanup: o } = ze("root", c.booths);
514
+ let { layer: a, cleanup: o } = Ve("root", c.booths);
467
515
  return {
468
516
  layers: [
469
517
  ...r,
470
518
  ...a ? [a] : [],
471
519
  ...i,
472
- ...me(),
520
+ ...ge(),
473
521
  t,
474
522
  n
475
523
  ],
@@ -479,15 +527,15 @@ function Je() {
479
527
  }
480
528
  //#endregion
481
529
  //#region src/components/Map/MapCursorCoords.tsx
482
- var W = /* @__PURE__ */ e(n(), 1), Ye = 2;
483
- function Xe(e) {
484
- let { canvas: t } = e, n = M(), r = a(), i = (0, W.useCallback)(() => r("cursor", void 0), [r]), o = (0, W.useEffectEvent)((e) => {
530
+ var W = /* @__PURE__ */ e(n(), 1), G = 2;
531
+ function Ye(e) {
532
+ let { canvas: t } = e, n = N(), r = a(), i = (0, W.useCallback)(() => r("cursor", void 0), [r]), o = (0, W.useEffectEvent)((e) => {
485
533
  if (!e.isPrimary) return;
486
534
  let t = n.canvasToPlan({
487
535
  x: e.offsetX,
488
536
  y: e.offsetY
489
537
  });
490
- r("cursor", t ? Qe(t, Ze()) : void 0);
538
+ r("cursor", t ? Ze(t, Xe()) : void 0);
491
539
  });
492
540
  return (0, W.useEffect)(() => {
493
541
  let e = t.current;
@@ -498,25 +546,25 @@ function Xe(e) {
498
546
  };
499
547
  }, [t, i]), null;
500
548
  }
501
- function Ze() {
502
- let e = s.layerStore.layers.find((e) => e.visible && (e.mode === F.TurnedOn || e.mode === F.TurnedOff));
549
+ function Xe() {
550
+ let e = s.layerStore.layers.find((e) => e.visible && (e.mode === re.TurnedOn || e.mode === re.TurnedOff));
503
551
  return (e == null ? void 0 : e.name) || null;
504
552
  }
505
- function Qe(e, t) {
506
- let n = `[${e.x.toFixed(Ye)}, ${e.y.toFixed(Ye)}]`;
553
+ function Ze(e, t) {
554
+ let n = `[${e.x.toFixed(G)}, ${e.y.toFixed(G)}]`;
507
555
  return t ? `${n} · layer ${t}` : n;
508
556
  }
509
557
  //#endregion
510
558
  //#region src/components/Map/MapViewport.tsx
511
- function $e() {
512
- let e = M(), t = (0, W.useRef)({ api: e }), [n] = (0, W.useState)(() => se(t));
559
+ function Qe() {
560
+ let e = N(), t = (0, W.useRef)({ api: e }), [n] = (0, W.useState)(() => ue(t));
513
561
  return (0, W.useLayoutEffect)(() => {
514
562
  t.current = { api: e };
515
- }), (0, W.useEffect)(() => (z(n), () => z(void 0)), [n]), null;
563
+ }), (0, W.useEffect)(() => (le(n), () => le(void 0)), [n]), null;
516
564
  }
517
565
  //#endregion
518
566
  //#region src/components/Map/traffic/UpdateQueue.ts
519
- var et = class {
567
+ var $e = class {
520
568
  constructor() {
521
569
  this.queue = [], this.isProcessing = !1, this.rafId = null, this.CHUNK_SIZE = 100, this.TIME_BUDGET = 4;
522
570
  }
@@ -558,7 +606,7 @@ var et = class {
558
606
  destroy() {
559
607
  this.rafId !== null && (cancelAnimationFrame(this.rafId), this.rafId = null), this.queue = [], this.isProcessing = !1;
560
608
  }
561
- }, G = 49, K = `hsl(257, 76%, ${G}%)`, tt = `hsl(339.903, 82%, ${G}%)`, nt = `hsl(257, 76%, ${Math.round(G * 1.82)}%)`, q = 4, rt = q, it = "U", at = "R", ot = "S", st = "P", ct = class {
609
+ }, K = 49, et = `hsl(257, 76%, ${K}%)`, tt = `hsl(339.903, 82%, ${K}%)`, nt = `hsl(257, 76%, ${Math.round(K * 1.82)}%)`, q = 4, rt = q, it = "U", at = "R", ot = "S", st = "P", ct = class {
562
610
  constructor() {
563
611
  this._state = [[]], this.index = 0, this.pointHashSet = /* @__PURE__ */ new Set(), this.locked = !1, this.storageKey = "expofp_build_route_state", this._selected = 0;
564
612
  }
@@ -701,12 +749,12 @@ Enable/Disable Preview: Press ${st}.
701
749
  }
702
750
  };
703
751
  function lt({ enabled: e, scene: t }) {
704
- let n = (0, W.useRef)(!1), r = (0, W.useRef)(), i = (0, W.useMemo)(() => E(q, K), []), a = (0, W.useMemo)(() => E(q, tt), []), o = (0, W.useMemo)(() => new ct(), []), s = (0, W.useRef)(new et()), c = (0, W.useMemo)(() => {
752
+ let n = (0, W.useRef)(!1), r = (0, W.useRef)(), i = (0, W.useMemo)(() => E(q, et), []), a = (0, W.useMemo)(() => E(q, tt), []), o = (0, W.useMemo)(() => new ct(), []), s = (0, W.useRef)(new $e()), c = (0, W.useMemo)(() => {
705
753
  if (!t) return {};
706
754
  let e = t.rootLayer.children;
707
755
  return {
708
- linesLayer: e.find((e) => e.name === de),
709
- pointsLayer: e.find((e) => e.name === fe)
756
+ linesLayer: e.find((e) => e.name === pe),
757
+ pointsLayer: e.find((e) => e.name === me)
710
758
  };
711
759
  }, [t]), l = (0, W.useCallback)(() => {
712
760
  if (!c || !i || !a) return;
@@ -728,11 +776,11 @@ function lt({ enabled: e, scene: t }) {
728
776
  p0: t,
729
777
  p1: n
730
778
  },
731
- color: u ? K : nt,
779
+ color: u ? et : nt,
732
780
  width: rt
733
781
  });
734
782
  }
735
- d.length ? e.children = d : e.children.length = 0, s.current.add(() => O(t, e)), o.instruct(), o.log(JSON.stringify(o.points));
783
+ d.length ? e.children = d : e.children.length = 0, s.current.add(() => k(t, e)), o.instruct(), o.log(JSON.stringify(o.points));
736
784
  }, [
737
785
  o,
738
786
  c,
@@ -779,8 +827,8 @@ function lt({ enabled: e, scene: t }) {
779
827
  let { pointsLayer: i } = c;
780
828
  return r.current = (t = (n = m()) == null ? void 0 : n.state().pixelSize) == null ? 1 : t, o.execute(() => {
781
829
  o.restore(), l();
782
- }), i.onScale = ({ pixelSize: e }) => d(e), s.current.add(() => O(i)), L(f), window.addEventListener("keyup", u), () => {
783
- window.removeEventListener("keyup", u), L(), i.onScale = void 0, s.current.destroy();
830
+ }), i.onScale = ({ pixelSize: e }) => d(e), s.current.add(() => k(i)), ae(f), window.addEventListener("keyup", u), () => {
831
+ window.removeEventListener("keyup", u), ae(), i.onScale = void 0, s.current.destroy();
784
832
  };
785
833
  }, [
786
834
  e,
@@ -796,7 +844,7 @@ function lt({ enabled: e, scene: t }) {
796
844
  //#region src/components/Map/traffic/useManageTraffic.ts
797
845
  var J = 2, ut = J * 3.5, Y = J * 12, dt = Y * .7, ft = 8, pt = "transport_locations", mt = 150, ht = "#a4aab6", gt = 1e3, _t = 2e4, vt = 500;
798
846
  function yt({ permission: e, scene: n, dataJsonUrl: r, websocketUrl: a }) {
799
- let o = (0, W.useRef)(window.devicePixelRatio), s = (0, W.useRef)(/* @__PURE__ */ new Map()), c = (0, W.useRef)(/* @__PURE__ */ new Map()), l = (0, W.useRef)(null), u = (0, W.useRef)(null), d = (0, W.useRef)(0), f = (0, W.useRef)(1), p = (0, W.useRef)(new et()), h = (0, W.useRef)(/* @__PURE__ */ new Map()), g = (0, W.useRef)(gt), _ = (0, W.useRef)(/* @__PURE__ */ new Map()), v = (0, W.useRef)(void 0);
847
+ let o = (0, W.useRef)(window.devicePixelRatio), s = (0, W.useRef)(/* @__PURE__ */ new Map()), c = (0, W.useRef)(/* @__PURE__ */ new Map()), l = (0, W.useRef)(null), u = (0, W.useRef)(null), d = (0, W.useRef)(0), f = (0, W.useRef)(1), p = (0, W.useRef)(new $e()), h = (0, W.useRef)(/* @__PURE__ */ new Map()), g = (0, W.useRef)(gt), _ = (0, W.useRef)(/* @__PURE__ */ new Map()), v = (0, W.useRef)(void 0);
800
848
  (0, W.useEffect)(() => {
801
849
  if (!e || !n) return;
802
850
  let y = !1, b, x = n.rootLayer.children, S = c.current, C = s.current, w = p.current;
@@ -824,7 +872,7 @@ function yt({ permission: e, scene: n, dataJsonUrl: r, websocketUrl: a }) {
824
872
  scale: window.devicePixelRatio
825
873
  }));
826
874
  });
827
- let p = _e(), g = x.filter((e) => p.test(e.name)), v = ve(), b = x.filter((e) => v.test(e.name));
875
+ let p = ye(), g = x.filter((e) => p.test(e.name)), v = be(), b = x.filter((e) => v.test(e.name));
828
876
  a.routes.slice(0, g.length).forEach(({ id: e, color: t, path: n, stops: r, hiddenPoints: i }, a) => {
829
877
  h.current.set(e, n);
830
878
  let s = g[a];
@@ -842,7 +890,7 @@ function yt({ permission: e, scene: n, dataJsonUrl: r, websocketUrl: a }) {
842
890
  width: J
843
891
  });
844
892
  }
845
- s.children.length && w.add(() => O(s));
893
+ s.children.length && w.add(() => k(s));
846
894
  }
847
895
  let u = b[a], d = l.get(t);
848
896
  u && d && r != null && r.length && (r.forEach((e) => {
@@ -850,14 +898,14 @@ function yt({ permission: e, scene: n, dataJsonUrl: r, websocketUrl: a }) {
850
898
  source: d,
851
899
  bounds: I(e.x, e.y, d.width, d.height, o.current)
852
900
  });
853
- }), u.children.length && w.add(() => O(u)));
901
+ }), u.children.length && w.add(() => k(u)));
854
902
  });
855
- let T = x.find((e) => e.name === B);
903
+ let T = x.find((e) => e.name === R);
856
904
  if (!T) {
857
- console.warn(`useManageTraffic: the scene has no "${B}" layer`);
905
+ console.warn(`useManageTraffic: the scene has no "${R}" layer`);
858
906
  return;
859
907
  }
860
- let k = /* @__PURE__ */ new Map();
908
+ let A = /* @__PURE__ */ new Map();
861
909
  T.onScale = ({ pixelSize: e }) => {
862
910
  o.current = bt(e);
863
911
  let t = [];
@@ -873,8 +921,8 @@ function yt({ permission: e, scene: n, dataJsonUrl: r, websocketUrl: a }) {
873
921
  e.bounds = I(e.bounds.center.x, e.bounds.center.y, n.width, n.height, o.current, e.bounds.rotation), t.push(e);
874
922
  }
875
923
  return t;
876
- }, w.add(() => O(T)), c.forEach((e, t) => {
877
- k.set(t, Ct({
924
+ }, w.add(() => k(T)), c.forEach((e, t) => {
925
+ A.set(t, Ct({
878
926
  id: t,
879
927
  width: Y,
880
928
  height: Y,
@@ -882,17 +930,17 @@ function yt({ permission: e, scene: n, dataJsonUrl: r, websocketUrl: a }) {
882
930
  scale: window.devicePixelRatio
883
931
  }));
884
932
  });
885
- let A = Ct({
933
+ let j = Ct({
886
934
  id: "orphan",
887
935
  width: Y,
888
936
  height: Y,
889
937
  color: ht,
890
938
  scale: window.devicePixelRatio
891
- }), j = null;
939
+ }), M = null;
892
940
  try {
893
941
  let e = await i(`${t}icons/bus-white.svg`);
894
942
  if (y) return;
895
- j = R(e, dt, dt, window.devicePixelRatio);
943
+ M = oe(e, dt, dt, window.devicePixelRatio);
896
944
  } catch (e) {
897
945
  console.error(e);
898
946
  }
@@ -912,21 +960,21 @@ function yt({ permission: e, scene: n, dataJsonUrl: r, websocketUrl: a }) {
912
960
  }
913
961
  let d = C.get(e), f = (l = C.get(Z(e))) == null ? null : l;
914
962
  if (c && d && f) {
915
- d.hidden = !0, f.hidden = !0, w.add(() => O(d, f));
963
+ d.hidden = !0, f.hidden = !0, w.add(() => k(d, f));
916
964
  return;
917
965
  }
918
966
  if (_.current.set(e, performance.now()), !d) {
919
967
  var p;
920
- let i = (p = k.get(r)) == null ? A : p, c = {
968
+ let i = (p = A.get(r)) == null ? j : p, c = {
921
969
  source: i,
922
970
  bounds: I(t, n, i.width, i.height, o.current, 0)
923
971
  };
924
- if (C.set(e, c), j) {
972
+ if (C.set(e, c), M) {
925
973
  let r = Z(e), i = {
926
- source: j,
927
- bounds: I(t, n, j.width, j.height, o.current, 0)
974
+ source: M,
975
+ bounds: I(t, n, M.width, M.height, o.current, 0)
928
976
  };
929
- j.setAttribute("id", r), C.set(r, i), a.push(c, i);
977
+ M.setAttribute("id", r), C.set(r, i), a.push(c, i);
930
978
  } else a.push(c);
931
979
  s = !0;
932
980
  return;
@@ -961,11 +1009,11 @@ function yt({ permission: e, scene: n, dataJsonUrl: r, websocketUrl: a }) {
961
1009
  });
962
1010
  S.set(e, t);
963
1011
  }
964
- }), s && w.add(() => O(T));
1012
+ }), s && w.add(() => k(T));
965
1013
  } catch (e) {
966
1014
  console.error("handleSocketMessage", e);
967
1015
  }
968
- }, d.current = performance.now(), E(), window.addEventListener("online", D), ee(a.config ? (Number(a.config.vehicle_inactive_interval) || 20) * 1e3 : _t);
1016
+ }, d.current = performance.now(), E(), window.addEventListener("online", D), O(a.config ? (Number(a.config.vehicle_inactive_interval) || 20) * 1e3 : _t);
969
1017
  } catch (e) {
970
1018
  console.warn(e);
971
1019
  }
@@ -982,7 +1030,7 @@ function yt({ permission: e, scene: n, dataJsonUrl: r, websocketUrl: a }) {
982
1030
  function D() {
983
1031
  E();
984
1032
  }
985
- function ee(e) {
1033
+ function O(e) {
986
1034
  clearInterval(v.current), !y && (v.current = window.setInterval(() => {
987
1035
  let t = performance.now(), n = [], r = [];
988
1036
  _.current.forEach((i, a) => {
@@ -991,14 +1039,14 @@ function yt({ permission: e, scene: n, dataJsonUrl: r, websocketUrl: a }) {
991
1039
  o && (o.hidden = !0, r.push(o), n.push(a));
992
1040
  let s = Z(a), c = C.get(s);
993
1041
  c && (c.hidden = !0, r.push(c), n.push(s));
994
- }), r.length && w.add(() => O(...r)), n.forEach((e) => _.current.delete(e));
1042
+ }), r.length && w.add(() => k(...r)), n.forEach((e) => _.current.delete(e));
995
1043
  }, e));
996
1044
  }
997
1045
  return () => {
998
1046
  y = !0, clearTimeout(b);
999
1047
  let e = l.current;
1000
1048
  e && (e.onopen = null, e.onmessage = null, e.onclose = null, e.close(), l.current = null), u.current = null;
1001
- let t = x.find((e) => e.name === B);
1049
+ let t = x.find((e) => e.name === R);
1002
1050
  t && (t.onScale = void 0), S.forEach((e) => e == null ? void 0 : e()), S.clear(), C.clear(), w.destroy(), window.removeEventListener("online", D), clearInterval(v.current);
1003
1051
  };
1004
1052
  }, [
@@ -1012,7 +1060,7 @@ function bt(e) {
1012
1060
  return Math.min(e || window.devicePixelRatio, ft);
1013
1061
  }
1014
1062
  function xt(e, t) {
1015
- return ae(e, t);
1063
+ return se(e, t);
1016
1064
  }
1017
1065
  function St({ radius: e, scale: t, color: n }) {
1018
1066
  let r = document.createElement("canvas"), i = r.getContext("2d");
@@ -1039,8 +1087,8 @@ function wt({ updateQueue: e, vehicle: t, vehicleFinery: n, x: r, y: i, scale: a
1039
1087
  if (t.bounds = I(r, i, s.width, s.height, a, o), t.hidden = !1, n) {
1040
1088
  var c, l;
1041
1089
  let o = (c = (l = m()) == null ? void 0 : l.state().roll) == null ? 0 : c, s = n.source;
1042
- n.bounds = I(r, i, s.width, s.height, a, P(o)), n.hidden = !1, e.add(() => O(n, t));
1043
- } else e.add(() => O(t));
1090
+ n.bounds = I(r, i, s.width, s.height, a, F(o)), n.hidden = !1, e.add(() => k(n, t));
1091
+ } else e.add(() => k(t));
1044
1092
  }
1045
1093
  function Q(e, t, n) {
1046
1094
  return {
@@ -1093,7 +1141,7 @@ function Ot(e, t, n, r) {
1093
1141
  n({
1094
1142
  x: h.x + (g.x - h.x) * v,
1095
1143
  y: h.y + (g.y - h.y) * v,
1096
- angle: ae(h, g)
1144
+ angle: se(h, g)
1097
1145
  }), d < 1 ? a = requestAnimationFrame(c) : r && r();
1098
1146
  };
1099
1147
  return a = requestAnimationFrame(c), () => {
@@ -1151,4 +1199,4 @@ function Pt(e) {
1151
1199
  return e < .5 ? 4 * e * e * e : 1 - (-2 * e + 2) ** 3 / 2;
1152
1200
  }
1153
1201
  //#endregion
1154
- export { lt as a, Je as c, yt as i, We as l, jt as n, $e as o, Mt as r, Xe as s, kt as t };
1202
+ export { lt as a, Je as c, yt as i, We as l, jt as n, Qe as o, Mt as r, Ye as s, kt as t };