@expofp/floorplan 3.35.2 → 3.37.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (98) hide show
  1. package/dist/browser/{Button-BPQnJjoN.js → Button-CNs8VDGG.js} +5 -5
  2. package/dist/browser/{CookieConsent-CYpwXrw0.js → CookieConsent-CcBA-IqC.js} +7 -7
  3. package/dist/browser/{Debug-DJ02jJ5Q.js → Debug-DzeeojOv.js} +7 -7
  4. package/dist/browser/{DebugTools-BCx6s2Fc.js → DebugTools-Cg2kMVuz.js} +6 -6
  5. package/dist/browser/{Demo-EWDcqW4X.js → Demo-DlX2eRc5.js} +9 -9
  6. package/dist/browser/{Free-DKMv19Hs.js → Free-BPXxN14i.js} +9 -9
  7. package/dist/browser/{GalleryContainer-CvjywJze.js → GalleryContainer-D3PtNDq1.js} +10 -10
  8. package/dist/browser/{GpsLoader-DnZOaiOj.js → GpsLoader-MuKCP4hM.js} +29 -29
  9. package/dist/browser/KioskStore-DwJPzK8K.js +251 -0
  10. package/dist/browser/{MaplibreAdapter-DfUBzoCo.js → MaplibreAdapter-DzycfkS9.js} +1108 -1107
  11. package/dist/browser/{ModalContainer-iUxlX_EW.js → ModalContainer-U0c94Gcg.js} +10 -10
  12. package/dist/browser/{PermissionNotice-4GkEdwAt.js → PermissionNotice-DyTh0N80.js} +6 -6
  13. package/dist/browser/{SetKioskMode-r4WLFRA0.js → SetKioskMode-DFNqggA2.js} +13 -13
  14. package/dist/browser/{ShowKiosk-DmmyfPH3.js → ShowKiosk-BuXxL7Re.js} +11 -11
  15. package/dist/browser/{ViewerMenuPanel-G5WeOVxy.js → ViewerMenuPanel--flTFhEB.js} +10 -10
  16. package/dist/browser/{add-debug-secret-listener-cqT9ixCW.js → add-debug-secret-listener-DvCB0ort.js} +1 -1
  17. package/dist/browser/{adopt-global-settings-TiK3bdw8.js → adopt-global-settings-CVQmrlox.js} +9 -9
  18. package/dist/browser/{boolean-editor-gv5KgSFC.js → boolean-editor-Bk6Lfd_2.js} +9 -9
  19. package/dist/browser/{bootIntercom-DSN5Oxb8.js → bootIntercom-iv5wse99.js} +2 -2
  20. package/dist/browser/bundle.json +71 -71
  21. package/dist/browser/{camera-events-BzzhQV7p.js → camera-events-Uyswpptc.js} +1 -1
  22. package/dist/browser/{classnames-DaTJg5Ke.js → classnames-TUIUYS3L.js} +2 -2
  23. package/dist/browser/{client-DXynaRJh.js → client-Bm485HWD.js} +5 -5
  24. package/dist/browser/{components-BJkZsl-J.js → components-DcbtuzgN.js} +1193 -1191
  25. package/dist/browser/{debug-context-DafSJe6V.js → debug-context-CiRcA5z7.js} +5 -5
  26. package/dist/browser/{debug-overlay-Cnht9M1f.js → debug-overlay-BaIOFaoE.js} +10 -10
  27. package/dist/browser/{debug-ui-CfgbL90e.js → debug-ui-B3yO6QTa.js} +6 -6
  28. package/dist/browser/{dimming-BTSxZdFU.js → dimming-y3MYb4O3.js} +262 -262
  29. package/dist/browser/{dist-TUAZaqFf.js → dist-BaXVVYa9.js} +5 -5
  30. package/dist/browser/{dist-CyuhMWuJ.js → dist-DAWn7KI8.js} +6 -6
  31. package/dist/browser/{dist-C5PCsTLB.js → dist-fMLrkr8V.js} +3 -3
  32. package/dist/browser/{efp-debug-init-Dmuf0OD9.js → efp-debug-init-CVDjWVXl.js} +3 -3
  33. package/dist/browser/{enum-editor-DhSd_imG.js → enum-editor-B-vJDdwf.js} +4 -4
  34. package/dist/browser/{es5-DjAesjxT.js → es5-CYKbplUA.js} +2 -2
  35. package/dist/browser/{event-head-CQJFTgLp.js → event-head-BtayW8HA.js} +1 -1
  36. package/dist/browser/{event-not-found-BD8VwBEd.js → event-not-found-B4Tz7V1H.js} +3 -3
  37. package/dist/browser/{exports-BWxS7e8x.js → exports-DTjBGI92.js} +1 -1
  38. package/dist/browser/{favicon-knUtM628.js → favicon-Bq3vaHM_.js} +1 -1
  39. package/dist/browser/{fetch-retry.umd-DW0ekhe-.js → fetch-retry.umd-Cw9OsA-s.js} +2 -2
  40. package/dist/browser/{flex-Di6JEi7f.js → flex-C0jlxRr9.js} +5 -5
  41. package/dist/browser/{floorplan.loader-yNOwUjHQ.js → floorplan.loader-B0b2d8rT.js} +10 -10
  42. package/dist/browser/{floorplan.ready-C1R3whps.js → floorplan.ready-Bi2mkI_V.js} +186 -191
  43. package/dist/browser/{fuse-CklOJAb0.js → fuse-CS-5RDcg.js} +2 -2
  44. package/dist/browser/{i18n-DOTxhE5G.js → i18n-LVijVdMb.js} +5 -5
  45. package/dist/browser/index.js +16 -16
  46. package/dist/browser/{index.module-mXl8MtT3.js → index.module-D7TtIVgi.js} +4 -4
  47. package/dist/browser/{integrateKiosk-b2AMRK5l.js → integrateKiosk-BmVtSyFv.js} +4 -4
  48. package/dist/browser/{is-own-domain-BZ3_6LnT.js → is-own-domain-BL66TBhN.js} +1 -1
  49. package/dist/browser/{is-webview-BwUFYV3U.js → is-webview-DwQBZFcX.js} +1 -1
  50. package/dist/browser/{jsx-runtime-BUFDOCAr.js → jsx-runtime-DS8yJ69h.js} +2 -2
  51. package/dist/browser/{kiosk-record-Dx28-RL0.js → kiosk-record-goZjGV8Y.js} +1 -1
  52. package/dist/browser/{lib-BSoYmy6y.js → lib-dIwLYV0z.js} +3 -3
  53. package/dist/browser/{loadImage-CT_B_63i.js → loadImage-BDk9loud.js} +4 -4
  54. package/dist/browser/{logDeviceInfo-D5aYLPIp.js → logDeviceInfo-227-j__X.js} +9 -9
  55. package/dist/browser/{mobx-DmvJdfvB.js → mobx-D3NRVJz0.js} +4 -4
  56. package/dist/browser/{optional-boolean-editor-DQP8ScA6.js → optional-boolean-editor-BtWARd1i.js} +3 -3
  57. package/dist/browser/{optional-enum-editor-CK8QdwSw.js → optional-enum-editor-CJEQ7pDc.js} +4 -4
  58. package/dist/browser/{optional-string-editor-DXnEx_OV.js → optional-string-editor-Bd6a7i5L.js} +4 -4
  59. package/dist/browser/{particles.min-DTfxDQ63.js → particles.min-CGC94f9R.js} +2 -2
  60. package/dist/browser/{react-BYD9sU4s.js → react-DUWO7pPs.js} +2 -2
  61. package/dist/browser/{react-dom-DcdoI_pK.js → react-dom-C08Q2osf.js} +3 -3
  62. package/dist/browser/{rolldown-runtime-D02yMjJw.js → rolldown-runtime-CooLcCzw.js} +1 -1
  63. package/dist/browser/{scheduler-CHcj0Ili.js → scheduler-DuPfkMc5.js} +2 -2
  64. package/dist/browser/{select-CVLafnyq.js → select-4KfoG4mp.js} +10 -10
  65. package/dist/browser/{settings-DTliQPIF.js → settings-Dbl2f0ow.js} +2 -2
  66. package/dist/browser/{settings-item-CSulAbWO.js → settings-item-CRyyzC8b.js} +6 -6
  67. package/dist/browser/{store-hAR4IdGb.js → store-BcEvlgIF.js} +3695 -3695
  68. package/dist/browser/{string-editor-Bjapa7B7.js → string-editor-lytU5wX-.js} +4 -4
  69. package/dist/browser/{text-field-dygdoVbb.js → text-field-BGvPdsaN.js} +5 -5
  70. package/dist/browser/{theme-mpY9s4gk.js → theme-CxFvVGHQ.js} +8 -8
  71. package/dist/browser/{ui-B7DDzAAp.js → ui-D3H7hMUC.js} +8 -8
  72. package/dist/browser/{useRenderTarget-M5MRh8Ft.js → useRenderTarget-DGSXEfzc.js} +4 -4
  73. package/dist/browser/{viewport-DOv49fSW.js → viewport-BczDYrg4.js} +3 -3
  74. package/dist/esm/components/Kiosk/KioskStore.d.ts +8 -0
  75. package/dist/esm/components/Kiosk/KioskStore.js +1 -1
  76. package/dist/esm/components/Kiosk/kiosk-mode.d.ts +18 -2
  77. package/dist/esm/components/Kiosk/kiosk-mode.js +1 -1
  78. package/dist/esm/components/Map/MapCamera.js +1 -1
  79. package/dist/esm/components/Map/camera-events.d.ts +9 -6
  80. package/dist/esm/components/Map/drawing/config/config-booths.d.ts +2 -2
  81. package/dist/esm/components/Map/drawing/config/config-booths.js +1 -1
  82. package/dist/esm/components/Map/drawing/config/config-load-layer.d.ts +2 -2
  83. package/dist/esm/components/Map/drawing/config/config-load-layer.js +1 -1
  84. package/dist/esm/components/Map/drawing/config/layer-images.d.ts +1 -17
  85. package/dist/esm/components/Map/drawing/config/loadBoothsImages.js +1 -1
  86. package/dist/esm/components/Map/pointer.d.ts +7 -5
  87. package/dist/esm/components/MapControlsContainer.js +1 -1
  88. package/dist/esm/components/Maplibre/MaplibreAdapter.js +1 -1
  89. package/dist/esm/components/Maplibre/useKioskCameraEvents.d.ts +20 -0
  90. package/dist/esm/components/Maplibre/useKioskCameraEvents.js +1 -0
  91. package/dist/esm/intercom/shouldLoad.js +1 -1
  92. package/dist/esm/store/UIState.d.ts +2 -0
  93. package/dist/esm/store/UIState.js +1 -1
  94. package/dist/esm/store/init/init-ui.js +1 -1
  95. package/package.json +10 -10
  96. package/dist/browser/KioskStore-B_QD5WD2.js +0 -241
  97. package/dist/esm/components/Maplibre/useKioskIdleEvents.d.ts +0 -17
  98. package/dist/esm/components/Maplibre/useKioskIdleEvents.js +0 -1
@@ -1,79 +1,79 @@
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.35.2" };
4
+ e.SENTRY_RELEASE = { id: "3.37.0" };
5
5
  var t = new e.Error().stack;
6
- t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "31372662-8194-47d1-9788-5b793bf9eb4e", e._sentryDebugIdIdentifier = "sentry-dbid-31372662-8194-47d1-9788-5b793bf9eb4e");
6
+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "12dd4ab4-bbff-4b70-bb8f-1273a0ff2f53", e._sentryDebugIdIdentifier = "sentry-dbid-12dd4ab4-bbff-4b70-bb8f-1273a0ff2f53");
7
7
  } catch {}
8
8
  })();
9
- import { r as e } from "./rolldown-runtime-D02yMjJw.js";
10
- import { j as t, v as n } from "./i18n-DOTxhE5G.js";
11
- import { t as r } from "./react-BYD9sU4s.js";
12
- import { t as i } from "./loadImage-CT_B_63i.js";
13
- import { r as a } from "./debug-context-DafSJe6V.js";
14
- import { A as o, An as s, Cn as c, Ct as l, Dn as u, En as d, Gt as f, Ht as p, It as m, Jt as h, Kt as g, Lt as _, Mn as v, On as y, Sn as b, St as x, Tt as S, Ut as C, Xt as w, Yt as T, Zt as E, _n as D, _t as O, a as k, bn as A, bt as ee, c as j, en as M, ht as N, jn as P, jt as F, kn as I, l as te, ln as L, nn as ne, qt as re, t as ie, wn as ae, x as oe, xt as se, z as R } from "./store-hAR4IdGb.js";
15
- import { i as ce, n as le } from "./viewport-DOv49fSW.js";
9
+ import { r as e } from "./rolldown-runtime-CooLcCzw.js";
10
+ import { j as t, v as n } from "./i18n-LVijVdMb.js";
11
+ import { t as r } from "./react-DUWO7pPs.js";
12
+ import { t as i } from "./loadImage-BDk9loud.js";
13
+ import { r as a } from "./debug-context-CiRcA5z7.js";
14
+ import { $t as o, A as s, An as c, Ct as l, Dn as u, En as d, Et as f, Fn as p, Gt as m, In as h, Kt as g, Mn as _, Nn as v, Nt as y, On as b, Pn as x, Qt as S, Rt as C, Wt as w, Xt as T, Yt as E, Zt as D, a as O, bt as k, c as A, en as j, in as M, jn as N, l as ee, on as te, pn as P, qt as F, t as ne, tn as I, vt as L, wn as R, wt as re, x as ie, xn as z, z as B, zt as ae } from "./store-BcEvlgIF.js";
15
+ import { i as oe, n as se } from "./viewport-BczDYrg4.js";
16
16
  //#region src/components/Map/traffic/trafficLayers.ts
17
- var ue = "traffic_route", de = "traffic_route_stop", z = "traffic_vehicles", fe = "build_route_lines", pe = "build_route_dots", me = 5;
18
- function he() {
17
+ var ce = "traffic_route", le = "traffic_route_stop", V = "traffic_vehicles", ue = "build_route_lines", de = "build_route_dots", fe = 5;
18
+ function pe() {
19
19
  let e = [];
20
- for (let t = 0; t < me; t++) e.push({
21
- name: ge(t),
20
+ for (let t = 0; t < fe; t++) e.push({
21
+ name: me(t),
22
22
  children: []
23
23
  }), e.push({
24
- name: _e(t),
24
+ name: he(t),
25
25
  children: []
26
26
  });
27
27
  return e.push({
28
- name: z,
28
+ name: V,
29
29
  children: []
30
30
  }), e.push({
31
- name: fe,
31
+ name: ue,
32
32
  children: []
33
33
  }), e.push({
34
- name: pe,
34
+ name: de,
35
35
  children: []
36
36
  }), e;
37
37
  }
38
- function ge(e) {
39
- return `${ue}_${e + 1}`;
38
+ function me(e) {
39
+ return `${ce}_${e + 1}`;
40
40
  }
41
- function _e(e) {
42
- return `${de}_${e + 1}`;
41
+ function he(e) {
42
+ return `${le}_${e + 1}`;
43
43
  }
44
- function ve() {
45
- return RegExp(`^${ue}_\\d+$`);
44
+ function ge() {
45
+ return RegExp(`^${ce}_\\d+$`);
46
46
  }
47
- function ye() {
48
- return RegExp(`^${de}_\\d+$`);
47
+ function _e() {
48
+ return RegExp(`^${le}_\\d+$`);
49
49
  }
50
50
  //#endregion
51
51
  //#region src/components/Map/drawing/config/config-booth-badge-eligibility.ts
52
- var be = /* @__PURE__ */ e(c(), 1);
53
- function xe(e) {
52
+ var ve = /* @__PURE__ */ e(u(), 1);
53
+ function ye(e) {
54
54
  return e.hideExhibitorBoothNumber || e.hideBoothBadges || !e.hasExhibitors ? !1 : e.noLabels || !e.hideLogoInBooth && e.hasLogoInBooth;
55
55
  }
56
56
  //#endregion
57
57
  //#region src/components/Map/drawing/config/config-booth-badge.ts
58
- var Se = .5, Ce = .3, we = 15, Te = 24, Ee = 30, De = 12, Oe = .8, ke = document.createElement("canvas").getContext("2d");
59
- function Ae(e) {
60
- return e.length <= we ? e : e.slice(0, we - 1) + "…";
58
+ var be = .5, xe = .3, Se = 15, Ce = 24, we = 30, Te = 12, Ee = .8, De = document.createElement("canvas").getContext("2d");
59
+ function Oe(e) {
60
+ return e.length <= Se ? e : e.slice(0, Se - 1) + "…";
61
61
  }
62
- function je(e) {
62
+ function ke(e) {
63
63
  var t, n;
64
64
  if (!((t = e.paths) != null && t.length)) return [];
65
65
  let r = ((n = e.layer) == null ? void 0 : n.name) || "", i = [];
66
- for (let t of e.paths) for (let e of D(t.index, r)) i.push(e);
66
+ for (let t of e.paths) for (let e of z(t.index, r)) i.push(e);
67
67
  return i;
68
68
  }
69
- function Me(e) {
70
- let t = je(e);
71
- return t.length ? d.fromPoints(t.flat().map(([e, t]) => ({
69
+ function Ae(e) {
70
+ let t = ke(e);
71
+ return t.length ? c.fromPoints(t.flat().map(([e, t]) => ({
72
72
  x: e,
73
73
  y: t
74
74
  }))) : null;
75
75
  }
76
- function Ne(e) {
76
+ function je(e) {
77
77
  let t = [], n = [];
78
78
  for (let r of e) {
79
79
  let e = t.length;
@@ -92,16 +92,16 @@ function Ne(e) {
92
92
  e + 2
93
93
  ]);
94
94
  }
95
- return new I(t, n);
95
+ return new v(t, n);
96
96
  }
97
- function B(e, t, n) {
97
+ function H(e, t, n) {
98
98
  return n.containsPoint({
99
99
  x: e,
100
100
  y: t
101
101
  });
102
102
  }
103
- function Pe(e, t, n, r, i, a, o, s) {
104
- if (!e.length || !B(n, r, t)) return o;
103
+ function Me(e, t, n, r, i, a, o, s) {
104
+ if (!e.length || !H(n, r, t)) return o;
105
105
  let c = {
106
106
  x: n,
107
107
  y: r
@@ -109,30 +109,30 @@ function Pe(e, t, n, r, i, a, o, s) {
109
109
  for (let e = 0; e < 10; e++) {
110
110
  let e = (l + u) / 2, o = i * e, d = a * e;
111
111
  [
112
- P({
112
+ p({
113
113
  x: n + o,
114
114
  y: r
115
115
  }, s, c),
116
- P({
116
+ p({
117
117
  x: n,
118
118
  y: r + d
119
119
  }, s, c),
120
- P({
120
+ p({
121
121
  x: n + o,
122
122
  y: r + d
123
123
  }, s, c)
124
- ].every((e) => B(e.x, e.y, t)) ? l = e : u = e;
124
+ ].every((e) => H(e.x, e.y, t)) ? l = e : u = e;
125
125
  }
126
126
  return l;
127
127
  }
128
- function Fe(e) {
128
+ function Ne(e) {
129
129
  var t;
130
- return (t = Me(e)) == null ? e.rect : t;
130
+ return (t = Ae(e)) == null ? e.rect : t;
131
131
  }
132
- function Ie(e, t, n, r, i, a) {
132
+ function Pe(e, t, n, r, i, a) {
133
133
  var o;
134
134
  if (t.length) {
135
- let o = Fe(e), s = {
135
+ let o = Ne(e), s = {
136
136
  x: i > 0 ? o.min.x : o.max.x,
137
137
  y: a > 0 ? o.min.y : o.max.y
138
138
  }, c = /* @__PURE__ */ new Set(), l = null, u = Infinity;
@@ -141,7 +141,7 @@ function Ie(e, t, n, r, i, a) {
141
141
  if (c.has(e)) continue;
142
142
  c.add(e);
143
143
  let o = t[0] + r * i, d = t[1] + r * a;
144
- if (B(o, d, n)) {
144
+ if (H(o, d, n)) {
145
145
  let e = Math.abs(o - s.x) + Math.abs(d - s.y);
146
146
  e < u && (u = e, l = {
147
147
  x: o,
@@ -152,7 +152,7 @@ function Ie(e, t, n, r, i, a) {
152
152
  if (l) return l;
153
153
  }
154
154
  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;
155
- return l ? P({
155
+ return l ? p({
156
156
  x: s,
157
157
  y: c
158
158
  }, l, e.rect.center) : {
@@ -160,85 +160,85 @@ function Ie(e, t, n, r, i, a) {
160
160
  y: c
161
161
  };
162
162
  }
163
- function V(e) {
163
+ function U(e) {
164
164
  return e && e !== "none" ? e : void 0;
165
165
  }
166
- function Le(e) {
166
+ function Fe(e) {
167
167
  var t;
168
- let n = V(e.borderColor) || V(A.boothBorderColor) || A.colors.booths.default;
169
- return ((t = e.paths) == null ? void 0 : t.length) > 1 && V(e.paths[e.paths.length - 1].color) || n;
168
+ let n = U(e.borderColor) || U(R.boothBorderColor) || R.colors.booths.default;
169
+ return ((t = e.paths) == null ? void 0 : t.length) > 1 && U(e.paths[e.paths.length - 1].color) || n;
170
170
  }
171
- function Re(e) {
171
+ function Ie(e) {
172
172
  var t;
173
- let r = Ae(e.title || e.name), i = Le(e), a = oe((0, be.default)(i).hex()), o = ee();
174
- ke.font = ne(Ee, o);
175
- let s = ke.measureText(r).width, c = Math.ceil(s + De * 2), u = (e.borderWidth || ie.borderWidth) / 2, d = c * Oe, p = 54 * Oe, m = e.rect.size.width, _ = e.rect.size.height, v = (e) => {
176
- let t = e ? _ : m, n = e ? m : _;
177
- return Math.min(t > 0 ? t * Se / d : Infinity, n > 0 ? n * Ce / p : Infinity);
178
- }, b = je(e), S = Ne(b), C = (t = e.rotate) == null ? 0 : t, w = 0, T = 0, E = 0, D = 0, O = () => {
179
- let t = Ie(e, b, S, u, w === 0 || w === 3 ? 1 : -1, w === 0 || w === 1 ? 1 : -1);
180
- T = t.x, E = t.y;
181
- let n = v(w === 1 || w === 3);
182
- D = Pe(b, S, T, E, d, p, n, C);
173
+ let r = Oe(e.title || e.name), i = Fe(e), a = ie((0, ve.default)(i).hex()), o = l();
174
+ De.font = te(we, o);
175
+ let s = De.measureText(r).width, c = Math.ceil(s + Te * 2), u = (e.borderWidth || ne.borderWidth) / 2, d = c * Ee, f = 54 * Ee, h = e.rect.size.width, g = e.rect.size.height, v = (e) => {
176
+ let t = e ? g : h, n = e ? h : g;
177
+ return Math.min(t > 0 ? t * be / d : Infinity, n > 0 ? n * xe / f : Infinity);
178
+ }, b = ke(e), x = je(b), C = (t = e.rotate) == null ? 0 : t, O = 0, k = 0, A = 0, j = 0, M = () => {
179
+ let t = Pe(e, b, x, u, O === 0 || O === 3 ? 1 : -1, O === 0 || O === 1 ? 1 : -1);
180
+ k = t.x, A = t.y;
181
+ let n = v(O === 1 || O === 3);
182
+ j = Me(b, x, k, A, d, f, n, C);
183
183
  };
184
- O();
185
- let k = (t, n) => {
184
+ M();
185
+ let N = (t, n) => {
186
186
  let r = t / 2, i = n / 2;
187
- return new y(P({
188
- x: T + r,
189
- y: E + i
187
+ return new _(p({
188
+ x: k + r,
189
+ y: A + i
190
190
  }, C, {
191
- x: T,
192
- y: E
191
+ x: k,
192
+ y: A
193
193
  }), {
194
194
  x: t,
195
195
  y: n
196
196
  }, C, e.elevation);
197
- }, A = se(o, h()), j = f(k(1, 1), i);
198
- j.hidden = !0, j.dim = e.skipDim ? 0 : void 0;
199
- let M = g(re([[r], []], a, 0, [A, A]), k(1, 1), [0, 0], {
197
+ }, P = re(o, S()), F = E(N(1, 1), i);
198
+ F.hidden = !0, F.dim = e.skipDim ? 0 : void 0;
199
+ let I = T(D([[r], []], a, 0, [P, P]), N(1, 1), [0, 0], {
200
200
  horizontal: "center",
201
201
  vertical: "center"
202
202
  });
203
- M.hidden = !0, M.dim = e.skipDim ? 0 : void 0;
204
- let N = {
203
+ I.hidden = !0, I.dim = e.skipDim ? 0 : void 0;
204
+ let L = {
205
205
  booth: e,
206
206
  anchor: {
207
- x: T,
208
- y: E
207
+ x: k,
208
+ y: A
209
209
  },
210
210
  source: {
211
211
  x: d,
212
- y: p
212
+ y: f
213
213
  },
214
214
  rotation: C,
215
- maxScale: D,
216
- bg: j,
217
- text: M
218
- }, I = new ze(N);
219
- j.onScale = ({ pixelSize: e }) => I.layOutBg(e), M.onScale = ({ pixelSize: e }) => I.layOutText(e);
220
- let L = [];
221
- return L.push(n(() => e.skipDim, (e) => {
222
- j.dim = e ? 0 : void 0, M.dim = e ? 0 : void 0, F(j, M);
223
- })), L.push(n(() => {
215
+ maxScale: j,
216
+ bg: F,
217
+ text: I
218
+ }, R = new Le(L);
219
+ F.onScale = ({ pixelSize: e }) => R.layOutBg(e), I.onScale = ({ pixelSize: e }) => R.layOutText(e);
220
+ let z = [];
221
+ return z.push(n(() => e.skipDim, (e) => {
222
+ F.dim = e ? 0 : void 0, I.dim = e ? 0 : void 0, y(F, I);
223
+ })), z.push(n(() => {
224
224
  var t, n;
225
225
  return (t = (n = e.layer) == null ? void 0 : n.visible) == null || t;
226
226
  }, (e) => {
227
- j.hidden = !e, M.hidden = !e, F(j, M);
228
- })), L.push(n(() => te.mapSettings, ({ roll: e }) => {
229
- l(e == null ? 0 : e) && (j.onRoll = ({ roll: e, pixelSize: t }) => {
230
- let n = x(e, C);
231
- if (n !== 0) return C += n * Math.PI / 2, w = ((w + n) % 4 + 4) % 4, O(), N.anchor.x = T, N.anchor.y = E, N.rotation = C, N.maxScale = D, [...I.layOutBg(t), ...I.layOutText(t)];
227
+ F.hidden = !e, I.hidden = !e, y(F, I);
228
+ })), z.push(n(() => ee.mapSettings, ({ roll: e }) => {
229
+ m(e == null ? 0 : e) && (F.onRoll = ({ roll: e, pixelSize: t }) => {
230
+ let n = w(e, C);
231
+ if (n !== 0) return C += n * Math.PI / 2, O = ((O + n) % 4 + 4) % 4, M(), L.anchor.x = k, L.anchor.y = A, L.rotation = C, L.maxScale = j, [...R.layOutBg(t), ...R.layOutText(t)];
232
232
  });
233
233
  }, { fireImmediately: !0 })), {
234
- bg: j,
235
- text: M,
234
+ bg: F,
235
+ text: I,
236
236
  dispose: () => {
237
- L.forEach((e) => e()), L.length = 0;
237
+ z.forEach((e) => e()), z.length = 0;
238
238
  }
239
239
  };
240
240
  }
241
- var ze = class {
241
+ var Le = class {
242
242
  constructor(e) {
243
243
  this.placement = e;
244
244
  }
@@ -248,11 +248,11 @@ var ze = class {
248
248
  }
249
249
  layOutText(e) {
250
250
  let { text: t, maxScale: n } = this.placement;
251
- return t.lines[0].fontSize = Te * Math.min(e, n), t.bounds = this.rectScaled(e), t.hidden = this.isHidden(), t.hidden ? [] : [t];
251
+ return t.lines[0].fontSize = Ce * Math.min(e, n), t.bounds = this.rectScaled(e), t.hidden = this.isHidden(), t.hidden ? [] : [t];
252
252
  }
253
253
  rectScaled(e) {
254
254
  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;
255
- return new y(P({
255
+ return new _(p({
256
256
  x: t.x + s / 2,
257
257
  y: t.y + c / 2
258
258
  }, i, t), {
@@ -265,17 +265,17 @@ var ze = class {
265
265
  return !!(e.layer && !e.layer.visible);
266
266
  }
267
267
  };
268
- function Be(e, t) {
268
+ function Re(e, t) {
269
269
  let n = [], r = [], i = [];
270
- for (let e of t) if (e instanceof L && xe({
271
- hideExhibitorBoothNumber: b.hideExhibitorBoothNumber,
272
- hideBoothBadges: b.hideBoothBadges,
273
- hideLogoInBooth: te.hideLogoInBooth,
270
+ for (let e of t) if (e instanceof P && ye({
271
+ hideExhibitorBoothNumber: d.hideExhibitorBoothNumber,
272
+ hideBoothBadges: d.hideBoothBadges,
273
+ hideLogoInBooth: ee.hideLogoInBooth,
274
274
  noLabels: e.noLabels,
275
275
  hasExhibitors: e.exhibitors.length > 0,
276
276
  hasLogoInBooth: e.exhibitors.some((e) => e.logoInBooth && e.logo)
277
277
  })) {
278
- let { bg: t, text: a, dispose: o } = Re(e);
278
+ let { bg: t, text: a, dispose: o } = Ie(e);
279
279
  n.push(t), r.push(a), i.push(o);
280
280
  }
281
281
  let a = () => {
@@ -300,17 +300,17 @@ function Be(e, t) {
300
300
  }
301
301
  //#endregion
302
302
  //#region src/components/Map/drawing/config/config-markers.ts
303
- var H = "_selected", U = "markers";
303
+ var ze = "_selected", Be = "markers";
304
304
  function Ve(e, t) {
305
305
  let { center: n, rotation: r } = e.bounds, { width: i, height: a } = e.source;
306
- return e.bounds = w(n.x, n.y, i, a, t, r), [e];
306
+ return e.bounds = j(n.x, n.y, i, a, t, r), [e];
307
307
  }
308
308
  function He(e) {
309
309
  qe = e;
310
310
  }
311
311
  function Ue(e) {
312
- let { scene: t } = e, r = [], i = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map(), o = [], s = t.rootLayer.children.find((e) => e.name === U);
313
- s.onScale = ({ pixelSize: e }) => He(e), m(We), F(s);
312
+ let { scene: t } = e, r = [], i = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map(), o = [], s = t.rootLayer.children.find((e) => e.name === Be);
313
+ s.onScale = ({ pixelSize: e }) => He(e), C(We), y(s);
314
314
  async function c(e) {
315
315
  let t = [];
316
316
  e.forEach((e) => {
@@ -339,7 +339,7 @@ function Ue(e) {
339
339
  };
340
340
  };
341
341
  function d() {
342
- let e = j.routeStore.markersData.markers;
342
+ let e = A.routeStore.markersData.markers;
343
343
  e.length && (o = [], e.forEach((e) => {
344
344
  var t, n;
345
345
  let r = i.get(e.icon);
@@ -354,7 +354,7 @@ function Ue(e) {
354
354
  let e = M(u.img, u.width, u.height, s);
355
355
  a.set(d, e);
356
356
  }
357
- let f = a.get(d), m = (t = (n = k.findLayer(e.z)) == null ? void 0 : n.visible) == null || t, h = w(e.x, e.y, l.width, l.height, 1, 0), g = w(e.x, e.y, f.width, f.height, 1, 0), _;
357
+ let f = a.get(d), p = (t = (n = O.findLayer(e.z)) == null ? void 0 : n.visible) == null || t, m = j(e.x, e.y, l.width, l.height, 1, 0), h = j(e.x, e.y, f.width, f.height, 1, 0), _;
358
358
  switch (e.position) {
359
359
  case "lefttop":
360
360
  _ = [0, 0];
@@ -368,18 +368,18 @@ function Ue(e) {
368
368
  default: _ = [.5, .5];
369
369
  }
370
370
  let v = {
371
- ...p(l, h, {
372
- hidden: !m,
371
+ ...g(l, m, {
372
+ hidden: !p,
373
373
  origin: _
374
374
  }),
375
375
  id: e.id,
376
376
  scale: s
377
377
  }, y = {
378
- ...p(f, g, {
379
- hidden: !(m && e.active),
378
+ ...g(f, h, {
379
+ hidden: !(p && e.active),
380
380
  origin: _
381
381
  }),
382
- id: `${e.id}${H}`,
382
+ id: `${e.id}${ze}`,
383
383
  scale: s
384
384
  };
385
385
  o.push(v, y);
@@ -390,47 +390,47 @@ function Ue(e) {
390
390
  function f() {
391
391
  s.children = [], o = [];
392
392
  }
393
- function h() {
394
- let e = j.routeStore.markersData.markers;
393
+ function p() {
394
+ let e = A.routeStore.markersData.markers;
395
395
  e.length && e.forEach((e) => {
396
396
  var t, n;
397
- let r = o.find((t) => t.id === e.id), i = o.find((t) => t.id === `${e.id}${H}`);
397
+ let r = o.find((t) => t.id === e.id), i = o.find((t) => t.id === `${e.id}${ze}`);
398
398
  if (!r) return;
399
- let a = (t = (n = k.findLayer(e.z)) == null ? void 0 : n.visible) == null || t;
399
+ let a = (t = (n = O.findLayer(e.z)) == null ? void 0 : n.visible) == null || t;
400
400
  e.active ? (r.hidden = !0, i.hidden = !(a && e.active)) : (r.hidden = !a, i.hidden = !0);
401
401
  });
402
402
  }
403
- return r.push(n(() => [j.routeStore.selectedMarkers, j.layerStore.visible], () => {
404
- if (!j.routeStore.markersData.markers.length) {
405
- f(), F(s);
403
+ return r.push(n(() => [A.routeStore.selectedMarkers, A.layerStore.visible], () => {
404
+ if (!A.routeStore.markersData.markers.length) {
405
+ f(), y(s);
406
406
  return;
407
407
  }
408
- h(), F(...o);
409
- })), r.push(n(() => j.routeStore.markersData.markers, () => {
410
- c(j.routeStore.markersData.icons).then(() => {
411
- d(), F(s);
408
+ p(), y(...o);
409
+ })), r.push(n(() => A.routeStore.markersData.markers, () => {
410
+ c(A.routeStore.markersData.icons).then(() => {
411
+ d(), y(s);
412
412
  });
413
413
  }, { fireImmediately: !0 })), function() {
414
- r.forEach((e) => e()), r.length = 0, s.onScale = void 0, m(), F(s);
414
+ r.forEach((e) => e()), r.length = 0, s.onScale = void 0, C(), y(s);
415
415
  };
416
416
  }
417
417
  function We(e, t) {
418
418
  return Ge(e, t, qe);
419
419
  }
420
420
  function Ge(e, t, n) {
421
- for (let r of j.routeStore.markersData.markers) {
422
- let i = j.routeStore.markersData.icons.find((e) => e.name === r.icon);
421
+ for (let r of A.routeStore.markersData.markers) {
422
+ let i = A.routeStore.markersData.icons.find((e) => e.name === r.icon);
423
423
  if (!i) continue;
424
424
  let a = i.width * n * devicePixelRatio, o = i.height * n * devicePixelRatio;
425
425
  if (Ke(e, t, r.x, r.y, a, o)) {
426
- let e = j.layerStore.findLayer(r.z);
426
+ let e = A.layerStore.findLayer(r.z);
427
427
  if (!e || e && e.visible) return r;
428
428
  }
429
429
  }
430
430
  return null;
431
431
  }
432
432
  function Ke(e, t, n, r, i, a) {
433
- return d.fromCenter({
433
+ return c.fromCenter({
434
434
  x: n,
435
435
  y: r
436
436
  }, {
@@ -445,40 +445,40 @@ var qe = 1;
445
445
  //#endregion
446
446
  //#region src/components/Map/drawing/config/config-all.ts
447
447
  function Je() {
448
- let { defaultLayer: e } = j.layerStore, { layers: t } = j.layerStore;
448
+ let { defaultLayer: e } = A.layerStore, { layers: t } = A.layerStore;
449
449
  if (e) {
450
450
  let n = [...t], r = t.indexOf(e);
451
451
  n.splice(r, 1), t = [e, ...n];
452
452
  }
453
- let n = t.filter((e) => !e.rootParent).map((e) => O(e));
453
+ let n = t.filter((e) => !e.rootParent).map((e) => k(e));
454
454
  return Promise.all(n).then((e) => {
455
- let t = C(U, []), n = o(), r = [], i = [];
456
- for (let t of e.flat()) E(t.name) ? (t.dim = 0, i.push(t)) : r.push(t);
457
- let { layer: a, cleanup: s } = Be("root", j.boothStore.booths);
455
+ let t = F(Be, []), n = s(), r = [], i = [];
456
+ for (let t of e.flat()) I(t.name) ? (t.dim = 0, i.push(t)) : r.push(t);
457
+ let { layer: a, cleanup: o } = Re("root", A.boothStore.booths);
458
458
  return {
459
459
  layers: [
460
460
  ...r,
461
461
  ...a ? [a] : [],
462
462
  ...i,
463
- ...he(),
463
+ ...pe(),
464
464
  t,
465
465
  n
466
466
  ],
467
- cleanup: s
467
+ cleanup: o
468
468
  };
469
469
  });
470
470
  }
471
471
  //#endregion
472
472
  //#region src/components/Map/MapCursorCoords.tsx
473
- var W = /* @__PURE__ */ e(r(), 1), Ye = 2;
474
- function Xe(e) {
475
- let { canvas: t } = e, n = S(), r = a(), i = (0, W.useCallback)(() => r("cursor", void 0), [r]), o = (0, W.useEffectEvent)((e) => {
473
+ var W = /* @__PURE__ */ e(r(), 1), G = 2;
474
+ function Ye(e) {
475
+ let { canvas: t } = e, n = f(), r = a(), i = (0, W.useCallback)(() => r("cursor", void 0), [r]), o = (0, W.useEffectEvent)((e) => {
476
476
  if (!e.isPrimary) return;
477
477
  let t = n.canvasToPlan({
478
478
  x: e.offsetX,
479
479
  y: e.offsetY
480
480
  });
481
- r("cursor", t ? Qe(t, Ze()) : void 0);
481
+ r("cursor", t ? Ze(t, Xe()) : void 0);
482
482
  });
483
483
  return (0, W.useEffect)(() => {
484
484
  let e = t.current;
@@ -489,25 +489,25 @@ function Xe(e) {
489
489
  };
490
490
  }, [t, i]), null;
491
491
  }
492
- function Ze() {
493
- let e = j.layerStore.layers.find((e) => e.visible && (e.mode === N.TurnedOn || e.mode === N.TurnedOff));
492
+ function Xe() {
493
+ let e = A.layerStore.layers.find((e) => e.visible && (e.mode === L.TurnedOn || e.mode === L.TurnedOff));
494
494
  return (e == null ? void 0 : e.name) || null;
495
495
  }
496
- function Qe(e, t) {
497
- let n = `[${e.x.toFixed(Ye)}, ${e.y.toFixed(Ye)}]`;
496
+ function Ze(e, t) {
497
+ let n = `[${e.x.toFixed(G)}, ${e.y.toFixed(G)}]`;
498
498
  return t ? `${n} · layer ${t}` : n;
499
499
  }
500
500
  //#endregion
501
501
  //#region src/components/Map/MapViewport.tsx
502
- function $e() {
503
- let e = S(), t = (0, W.useRef)({ api: e }), [n] = (0, W.useState)(() => le(t));
502
+ function Qe() {
503
+ let e = f(), t = (0, W.useRef)({ api: e }), [n] = (0, W.useState)(() => se(t));
504
504
  return (0, W.useLayoutEffect)(() => {
505
505
  t.current = { api: e };
506
- }), (0, W.useEffect)(() => (ce(n), () => ce(void 0)), [n]), null;
506
+ }), (0, W.useEffect)(() => (oe(n), () => oe(void 0)), [n]), null;
507
507
  }
508
508
  //#endregion
509
509
  //#region src/components/Map/traffic/UpdateQueue.ts
510
- var et = class {
510
+ var $e = class {
511
511
  constructor() {
512
512
  this.queue = [], this.isProcessing = !1, this.rafId = null, this.CHUNK_SIZE = 100, this.TIME_BUDGET = 4;
513
513
  }
@@ -549,7 +549,7 @@ var et = class {
549
549
  destroy() {
550
550
  this.rafId !== null && (cancelAnimationFrame(this.rafId), this.rafId = null), this.queue = [], this.isProcessing = !1;
551
551
  }
552
- }, G = 49, tt = `hsl(257, 76%, ${G}%)`, nt = `hsl(339.903, 82%, ${G}%)`, rt = `hsl(257, 76%, ${Math.round(G * 1.82)}%)`, K = 4, it = K, at = "U", ot = "R", st = "S", ct = "P", lt = class {
552
+ }, 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 {
553
553
  constructor() {
554
554
  this._state = [[]], this.index = 0, this.pointHashSet = /* @__PURE__ */ new Set(), this.locked = !1, this.storageKey = "expofp_build_route_state", this._selected = 0;
555
555
  }
@@ -588,10 +588,10 @@ var et = class {
588
588
  instruct() {
589
589
  this.log(`How to Build a Route:
590
590
  Add Point: Click on the map.
591
- Apply Smoothing: Press ${ot}.
592
- Apply Simplification: Press ${st}.
593
- Undo: Press ${at}.
594
- Enable/Disable Preview: Press ${ct}.
591
+ Apply Smoothing: Press ${at}.
592
+ Apply Simplification: Press ${ot}.
593
+ Undo: Press ${it}.
594
+ Enable/Disable Preview: Press ${st}.
595
595
  `, 16);
596
596
  }
597
597
  applyChaikinSmoothing(e, t, n) {
@@ -653,7 +653,7 @@ Enable/Disable Preview: Press ${ct}.
653
653
  let r = e.x, i = e.y, a = t.x, o = t.y, s = n.x, c = n.y;
654
654
  return Math.abs((c - o) * r - (s - a) * i + s * o - c * a) / (Math.sqrt((c - o) ** 2 + (s - a) ** 2) || 1e-10);
655
655
  }, r = (e, t, n, r) => {
656
- let i = u({
656
+ let i = N({
657
657
  p0: e,
658
658
  p1: t
659
659
  }, {
@@ -691,106 +691,106 @@ Enable/Disable Preview: Press ${ct}.
691
691
  this._selected = Math.max(0, Math.min(e, this.points.length - 1));
692
692
  }
693
693
  };
694
- function ut({ enabled: e, scene: t }) {
695
- let n = (0, W.useRef)(!1), r = (0, W.useRef)(), i = (0, W.useMemo)(() => T(K, tt), []), a = (0, W.useMemo)(() => T(K, nt), []), o = (0, W.useMemo)(() => new lt(), []), s = (0, W.useRef)(new et()), c = (0, W.useMemo)(() => {
694
+ function lt({ enabled: e, scene: t }) {
695
+ let n = (0, W.useRef)(!1), r = (0, W.useRef)(), i = (0, W.useMemo)(() => o(q, et), []), a = (0, W.useMemo)(() => o(q, tt), []), s = (0, W.useMemo)(() => new ct(), []), c = (0, W.useRef)(new $e()), l = (0, W.useMemo)(() => {
696
696
  if (!t) return {};
697
697
  let e = t.rootLayer.children;
698
698
  return {
699
- linesLayer: e.find((e) => e.name === fe),
700
- pointsLayer: e.find((e) => e.name === pe)
699
+ linesLayer: e.find((e) => e.name === ue),
700
+ pointsLayer: e.find((e) => e.name === de)
701
701
  };
702
- }, [t]), l = (0, W.useCallback)(() => {
703
- if (!c || !i || !a) return;
704
- let { linesLayer: e, pointsLayer: t } = c;
702
+ }, [t]), u = (0, W.useCallback)(() => {
703
+ if (!l || !i || !a) return;
704
+ let { linesLayer: e, pointsLayer: t } = l;
705
705
  if (!e || !t) return;
706
- let l = o.points, u = n.current;
707
- u ? t.children.length = 0 : t.children = l.map(({ x: e, y: t }, n) => {
708
- let s = n == o.selected ? a : i;
706
+ let o = s.points, u = n.current;
707
+ u ? t.children.length = 0 : t.children = o.map(({ x: e, y: t }, n) => {
708
+ let o = n == s.selected ? a : i;
709
709
  return {
710
- source: s,
711
- bounds: w(e, t, s.width, s.height, r.current)
710
+ source: o,
711
+ bounds: j(e, t, o.width, o.height, r.current)
712
712
  };
713
713
  });
714
714
  let d = [];
715
- for (let e = 1; e < l.length; e++) {
716
- let t = l[e - 1], n = l[e];
715
+ for (let e = 1; e < o.length; e++) {
716
+ let t = o[e - 1], n = o[e];
717
717
  d.push({
718
718
  points: {
719
719
  p0: t,
720
720
  p1: n
721
721
  },
722
- color: u ? tt : rt,
723
- width: it
722
+ color: u ? et : nt,
723
+ width: rt
724
724
  });
725
725
  }
726
- d.length ? e.children = d : e.children.length = 0, s.current.add(() => F(t, e)), o.instruct(), o.log(JSON.stringify(o.points));
726
+ d.length ? e.children = d : e.children.length = 0, c.current.add(() => y(t, e)), s.instruct(), s.log(JSON.stringify(s.points));
727
727
  }, [
728
- o,
729
- c,
728
+ s,
729
+ l,
730
730
  i,
731
731
  a
732
- ]), u = (0, W.useCallback)((e) => {
732
+ ]), d = (0, W.useCallback)((e) => {
733
733
  let t = e.key.toUpperCase();
734
- o.execute(() => {
734
+ s.execute(() => {
735
735
  switch (t) {
736
+ case it:
737
+ e.preventDefault(), s.undo(), n.current = !1, u();
738
+ break;
736
739
  case at:
737
- e.preventDefault(), o.undo(), n.current = !1, l();
740
+ e.preventDefault(), s.applySmoothing(), n.current = !1, u();
738
741
  break;
739
742
  case ot:
740
- e.preventDefault(), o.applySmoothing(), n.current = !1, l();
743
+ e.preventDefault(), s.applySimplification(), n.current = !1, u();
741
744
  break;
742
745
  case st:
743
- e.preventDefault(), o.applySimplification(), n.current = !1, l();
744
- break;
745
- case ct:
746
- e.preventDefault(), n.current = !n.current, l();
746
+ e.preventDefault(), n.current = !n.current, u();
747
747
  break;
748
748
  }
749
749
  });
750
- }, [o, l]), d = (0, W.useCallback)((e) => {
750
+ }, [s, u]), f = (0, W.useCallback)((e) => {
751
751
  r.current = e;
752
- let { pointsLayer: t } = c;
752
+ let { pointsLayer: t } = l;
753
753
  if (!t) return [];
754
754
  let n = [];
755
- return o.execute(() => {
755
+ return s.execute(() => {
756
756
  let e = t.children;
757
- for (let t of e) t.bounds = w(t.bounds.center.x, t.bounds.center.y, t.source.width, t.source.height, r.current), n.push(t);
757
+ for (let t of e) t.bounds = j(t.bounds.center.x, t.bounds.center.y, t.source.width, t.source.height, r.current), n.push(t);
758
758
  }), n;
759
- }, [c, o]), f = (0, W.useCallback)((e) => {
760
- o.execute(() => {
761
- o.add({
759
+ }, [l, s]), p = (0, W.useCallback)((e) => {
760
+ s.execute(() => {
761
+ s.add({
762
762
  x: e.x,
763
763
  y: e.y
764
- }), o.select(o.points.length - 1), l();
764
+ }), s.select(s.points.length - 1), u();
765
765
  });
766
- }, [o, l]);
766
+ }, [s, u]);
767
767
  (0, W.useEffect)(() => {
768
768
  var t, n;
769
- if (!e || !(c != null && c.pointsLayer)) return;
770
- let { pointsLayer: i } = c;
771
- return r.current = (t = (n = R()) == null ? void 0 : n.state().pixelSize) == null ? 1 : t, o.execute(() => {
772
- o.restore(), l();
773
- }), i.onScale = ({ pixelSize: e }) => d(e), s.current.add(() => F(i)), _(f), window.addEventListener("keyup", u), () => {
774
- window.removeEventListener("keyup", u), _(), i.onScale = void 0, s.current.destroy();
769
+ if (!e || !(l != null && l.pointsLayer)) return;
770
+ let { pointsLayer: i } = l;
771
+ return r.current = (t = (n = B()) == null ? void 0 : n.state().pixelSize) == null ? 1 : t, s.execute(() => {
772
+ s.restore(), u();
773
+ }), i.onScale = ({ pixelSize: e }) => f(e), c.current.add(() => y(i)), ae(p), window.addEventListener("keyup", d), () => {
774
+ window.removeEventListener("keyup", d), ae(), i.onScale = void 0, c.current.destroy();
775
775
  };
776
776
  }, [
777
777
  e,
778
- c,
779
- o,
780
778
  l,
779
+ s,
780
+ u,
781
+ p,
781
782
  f,
782
- d,
783
- u
783
+ d
784
784
  ]);
785
785
  }
786
786
  //#endregion
787
787
  //#region src/components/Map/traffic/useManageTraffic.ts
788
- var q = 2, dt = q * 3.5, J = q * 12, Y = J * .7, ft = 8, pt = "transport_locations", mt = 150, ht = "#a4aab6", gt = 1e3, _t = 2e4, vt = 500;
788
+ 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;
789
789
  function yt({ permission: e, scene: n, dataJsonUrl: r, websocketUrl: a }) {
790
- 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()), m = (0, W.useRef)(/* @__PURE__ */ new Map()), h = (0, W.useRef)(gt), g = (0, W.useRef)(/* @__PURE__ */ new Map()), _ = (0, W.useRef)(void 0);
790
+ 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()), m = (0, W.useRef)(/* @__PURE__ */ new Map()), h = (0, W.useRef)(gt), g = (0, W.useRef)(/* @__PURE__ */ new Map()), _ = (0, W.useRef)(void 0);
791
791
  (0, W.useEffect)(() => {
792
792
  if (!e || !n) return;
793
- let v = !1, y, b = n.rootLayer.children, x = c.current, S = s.current, C = p.current;
793
+ let v = !1, b, x = n.rootLayer.children, S = c.current, C = s.current, w = p.current;
794
794
  async function T() {
795
795
  try {
796
796
  var e, n;
@@ -806,16 +806,16 @@ function yt({ permission: e, scene: n, dataJsonUrl: r, websocketUrl: a }) {
806
806
  console.warn("useManageTraffic failed to get JSON", e);
807
807
  }
808
808
  if (!a || a.disabled || a.error) return;
809
- o.current = bt((e = (n = R()) == null ? void 0 : n.state().pixelSize) == null ? window.devicePixelRatio : e);
809
+ o.current = bt((e = (n = B()) == null ? void 0 : n.state().pixelSize) == null ? window.devicePixelRatio : e);
810
810
  let c = new Map(a.routes.map(({ id: e, color: t }) => [e, t])), l = /* @__PURE__ */ new Map();
811
811
  c.forEach((e) => {
812
812
  l.set(e, St({
813
- radius: dt,
813
+ radius: ut,
814
814
  color: e,
815
815
  scale: window.devicePixelRatio
816
816
  }));
817
817
  });
818
- let p = ve(), h = b.filter((e) => p.test(e.name)), _ = ye(), v = b.filter((e) => _.test(e.name));
818
+ let p = ge(), h = x.filter((e) => p.test(e.name)), _ = _e(), v = x.filter((e) => _.test(e.name));
819
819
  a.routes.slice(0, h.length).forEach(({ id: e, color: t, path: n, stops: r, hiddenPoints: i }, a) => {
820
820
  m.current.set(e, n);
821
821
  let s = h[a];
@@ -830,52 +830,52 @@ function yt({ permission: e, scene: n, dataJsonUrl: r, websocketUrl: a }) {
830
830
  p1: a
831
831
  },
832
832
  color: t,
833
- width: q
833
+ width: J
834
834
  });
835
835
  }
836
- s.children.length && C.add(() => F(s));
836
+ s.children.length && w.add(() => y(s));
837
837
  }
838
838
  let u = v[a], d = l.get(t);
839
839
  u && d && r != null && r.length && (r.forEach((e) => {
840
840
  u.children.push({
841
841
  source: d,
842
- bounds: w(e.x, e.y, d.width, d.height, o.current)
842
+ bounds: j(e.x, e.y, d.width, d.height, o.current)
843
843
  });
844
- }), u.children.length && C.add(() => F(u)));
844
+ }), u.children.length && w.add(() => y(u)));
845
845
  });
846
- let y = b.find((e) => e.name === z);
847
- if (!y) {
848
- console.warn(`useManageTraffic: the scene has no "${z}" layer`);
846
+ let b = x.find((e) => e.name === V);
847
+ if (!b) {
848
+ console.warn(`useManageTraffic: the scene has no "${V}" layer`);
849
849
  return;
850
850
  }
851
851
  let T = /* @__PURE__ */ new Map();
852
- y.onScale = ({ pixelSize: e }) => {
852
+ b.onScale = ({ pixelSize: e }) => {
853
853
  o.current = bt(e);
854
854
  let t = [];
855
855
  for (let e of v) {
856
856
  let n = e.children;
857
- for (let e of n) e.bounds = w(e.bounds.center.x, e.bounds.center.y, e.source.width, e.source.height, o.current, e.bounds.rotation), t.push(e);
857
+ for (let e of n) e.bounds = j(e.bounds.center.x, e.bounds.center.y, e.source.width, e.source.height, o.current, e.bounds.rotation), t.push(e);
858
858
  }
859
- for (let e of s.current.values()) e.bounds = w(e.bounds.center.x, e.bounds.center.y, e.source.width, e.source.height, o.current, e.bounds.rotation), t.push(e);
859
+ for (let e of s.current.values()) e.bounds = j(e.bounds.center.x, e.bounds.center.y, e.source.width, e.source.height, o.current, e.bounds.rotation), t.push(e);
860
860
  return t;
861
- }, C.add(() => F(y)), c.forEach((e, t) => {
861
+ }, w.add(() => y(b)), c.forEach((e, t) => {
862
862
  T.set(t, Ct({
863
863
  id: t,
864
- width: J,
865
- height: J,
864
+ width: Y,
865
+ height: Y,
866
866
  color: e,
867
867
  scale: window.devicePixelRatio
868
868
  }));
869
869
  });
870
870
  let k = Ct({
871
871
  id: "orphan",
872
- width: J,
873
- height: J,
872
+ width: Y,
873
+ height: Y,
874
874
  color: ht,
875
875
  scale: window.devicePixelRatio
876
876
  }), A = null;
877
877
  try {
878
- A = M(await i(`${t}icons/bus-white.svg`), Y, Y, window.devicePixelRatio);
878
+ A = M(await i(`${t}icons/bus-white.svg`), dt, dt, window.devicePixelRatio);
879
879
  } catch (e) {
880
880
  console.error(e);
881
881
  }
@@ -886,30 +886,30 @@ function yt({ permission: e, scene: n, dataJsonUrl: r, websocketUrl: a }) {
886
886
  if (n.type !== pt) return;
887
887
  let r = e.timeStamp || performance.now();
888
888
  f.current = Math.round(r - d.current), d.current = r;
889
- let i = Math.max((t = f.current) == null ? vt : t, vt), a = y.children, s = !1;
889
+ let i = Math.max((t = f.current) == null ? vt : t, vt), a = b.children, s = !1;
890
890
  n.data.forEach(({ id: e, x: t, y: n, route_id: r, hidden: c }) => {
891
891
  var l;
892
- if (x.has(e)) {
892
+ if (S.has(e)) {
893
893
  var u;
894
- (u = x.get(e)) == null || u(), x.delete(e);
894
+ (u = S.get(e)) == null || u(), S.delete(e);
895
895
  }
896
- let d = S.get(e), f = (l = S.get(Z(e))) == null ? null : l;
896
+ let d = C.get(e), f = (l = C.get(Z(e))) == null ? null : l;
897
897
  if (c && d && f) {
898
- d.hidden = !0, f.hidden = !0, C.add(() => F(d, f));
898
+ d.hidden = !0, f.hidden = !0, w.add(() => y(d, f));
899
899
  return;
900
900
  }
901
901
  if (g.current.set(e, performance.now()), !d) {
902
902
  var p;
903
903
  let i = (p = T.get(r)) == null ? k : p, c = {
904
904
  source: i,
905
- bounds: w(t, n, i.width, i.height, o.current, 0)
905
+ bounds: j(t, n, i.width, i.height, o.current, 0)
906
906
  };
907
- if (S.set(e, c), A) {
907
+ if (C.set(e, c), A) {
908
908
  let r = Z(e), i = {
909
909
  source: A,
910
- bounds: w(t, n, A.width, A.height, o.current, 0)
910
+ bounds: j(t, n, A.width, A.height, o.current, 0)
911
911
  };
912
- A.setAttribute("id", r), S.set(r, i), a.push(c, i);
912
+ A.setAttribute("id", r), C.set(r, i), a.push(c, i);
913
913
  } else a.push(c);
914
914
  s = !0;
915
915
  return;
@@ -919,7 +919,7 @@ function yt({ permission: e, scene: n, dataJsonUrl: r, websocketUrl: a }) {
919
919
  y: n
920
920
  }, m.current.get(r));
921
921
  if (_.reduce((e, t, n) => n === 0 ? e : e + X(_[n - 1], t), 0) >= mt || document.hidden) wt({
922
- updateQueue: C,
922
+ updateQueue: w,
923
923
  vehicle: d,
924
924
  vehicleFinery: f,
925
925
  x: t,
@@ -933,7 +933,7 @@ function yt({ permission: e, scene: n, dataJsonUrl: r, websocketUrl: a }) {
933
933
  else {
934
934
  let t = Ot(_, i, (e) => {
935
935
  wt({
936
- updateQueue: C,
936
+ updateQueue: w,
937
937
  vehicle: d,
938
938
  vehicleFinery: f,
939
939
  x: e.x,
@@ -942,9 +942,9 @@ function yt({ permission: e, scene: n, dataJsonUrl: r, websocketUrl: a }) {
942
942
  angle: e.angle
943
943
  });
944
944
  });
945
- x.set(e, t);
945
+ S.set(e, t);
946
946
  }
947
- }), s && C.add(() => F(y));
947
+ }), s && w.add(() => y(b));
948
948
  } catch (e) {
949
949
  console.error("handleSocketMessage", e);
950
950
  }
@@ -959,7 +959,7 @@ function yt({ permission: e, scene: n, dataJsonUrl: r, websocketUrl: a }) {
959
959
  v || ((e = l.current) == null ? void 0 : e.readyState) === WebSocket.OPEN || ((t = l.current) == null ? void 0 : t.readyState) === WebSocket.CONNECTING || (l.current = new WebSocket(a), l.current.onmessage = u.current, l.current.onopen = () => {
960
960
  h.current = gt;
961
961
  }, l.current.onclose = () => {
962
- v || !navigator.onLine || (y = window.setTimeout(E, h.current), h.current = Math.min(h.current * 2, 3e4));
962
+ v || !navigator.onLine || (b = window.setTimeout(E, h.current), h.current = Math.min(h.current * 2, 3e4));
963
963
  });
964
964
  }
965
965
  function D() {
@@ -970,18 +970,18 @@ function yt({ permission: e, scene: n, dataJsonUrl: r, websocketUrl: a }) {
970
970
  let t = performance.now(), n = [], r = [];
971
971
  g.current.forEach((i, a) => {
972
972
  if (t - i < e) return;
973
- let o = S.get(a);
973
+ let o = C.get(a);
974
974
  o && (o.hidden = !0, r.push(o), n.push(a));
975
- let s = Z(a), c = S.get(s);
975
+ let s = Z(a), c = C.get(s);
976
976
  c && (c.hidden = !0, r.push(c), n.push(s));
977
- }), r.length && C.add(() => F(...r)), n.forEach((e) => g.current.delete(e));
977
+ }), r.length && w.add(() => y(...r)), n.forEach((e) => g.current.delete(e));
978
978
  }, e);
979
979
  }
980
980
  return () => {
981
981
  var e;
982
- v = !0, clearTimeout(y), (e = l.current) == null || e.close(), l.current = null;
983
- let t = b.find((e) => e.name === z);
984
- t && (t.onScale = void 0), x.forEach((e) => e == null ? void 0 : e()), x.clear(), S.clear(), C.destroy(), window.removeEventListener("online", D), clearInterval(_.current);
982
+ v = !0, clearTimeout(b), (e = l.current) == null || e.close(), l.current = null;
983
+ let t = x.find((e) => e.name === V);
984
+ t && (t.onScale = void 0), S.forEach((e) => e == null ? void 0 : e()), S.clear(), C.clear(), w.destroy(), window.removeEventListener("online", D), clearInterval(_.current);
985
985
  };
986
986
  }, [
987
987
  e,
@@ -994,7 +994,7 @@ function bt(e) {
994
994
  return Math.min(e || window.devicePixelRatio, ft);
995
995
  }
996
996
  function xt(e, t) {
997
- return ae(e, t);
997
+ return b(e, t);
998
998
  }
999
999
  function St({ radius: e, scale: t, color: n }) {
1000
1000
  let r = document.createElement("canvas"), i = r.getContext("2d");
@@ -1011,17 +1011,17 @@ function Ct({ id: e, width: t, height: n, color: r, scale: i }) {
1011
1011
  return h.shadowColor = "rgba(16, 24, 40, 0.2)", h.shadowBlur = d / 2, h.beginPath(), h.arc(v, y, o, Math.PI, 0, !1), h.bezierCurveTo(v + o, y + s * .3, v + c * o, b, v, b), h.bezierCurveTo(v - c * o, b, v - o, y + s * .3, v - o, y), h.closePath(), h.fillStyle = r, h.fill(), h.strokeStyle = "#FFFFFF", h.lineWidth = a, h.stroke(), h.restore(), m;
1012
1012
  }
1013
1013
  function X(e, t) {
1014
- return s(e, t);
1014
+ return x(e, t);
1015
1015
  }
1016
1016
  function Z(e) {
1017
1017
  return `${e}_finery`;
1018
1018
  }
1019
1019
  function wt({ updateQueue: e, vehicle: t, vehicleFinery: n, x: r, y: i, scale: a, angle: o }) {
1020
- if (t.bounds = w(r, i, t.source.width, t.source.height, a, o), t.hidden = !1, n) {
1020
+ if (t.bounds = j(r, i, t.source.width, t.source.height, a, o), t.hidden = !1, n) {
1021
1021
  var s, c;
1022
- let o = (s = (c = R()) == null ? void 0 : c.state().roll) == null ? 0 : s;
1023
- n.bounds = w(r, i, n.source.width, n.source.height, a, v(o)), n.hidden = !1, e.add(() => F(n, t));
1024
- } else e.add(() => F(t));
1022
+ let o = (s = (c = B()) == null ? void 0 : c.state().roll) == null ? 0 : s;
1023
+ n.bounds = j(r, i, n.source.width, n.source.height, a, h(o)), n.hidden = !1, e.add(() => y(n, t));
1024
+ } else e.add(() => y(t));
1025
1025
  }
1026
1026
  function Q(e, t, n) {
1027
1027
  return {
@@ -1060,24 +1060,24 @@ function Dt(e, t, n) {
1060
1060
  }
1061
1061
  function Ot(e, t, n, r) {
1062
1062
  if (e.length < 2) return () => {};
1063
- let i = null, a, o = [], c = 0;
1063
+ let i = null, a, o = [], s = 0;
1064
1064
  for (let t = 0; t < e.length - 1; t++) {
1065
- let n = s(e[t], e[t + 1]);
1066
- o.push(n), c += n;
1065
+ let n = x(e[t], e[t + 1]);
1066
+ o.push(n), s += n;
1067
1067
  }
1068
- let l = (s) => {
1069
- i || (i = s);
1070
- let u = s - i, d = Math.min(u / t, 1), f = d * c, p = 0, m = 0;
1068
+ let c = (l) => {
1069
+ i || (i = l);
1070
+ let u = l - i, d = Math.min(u / t, 1), f = d * s, p = 0, m = 0;
1071
1071
  for (; m < o.length && p + o[m] < f;) p += o[m], m++;
1072
1072
  m >= o.length && (m = o.length - 1);
1073
1073
  let h = e[m], g = e[Math.min(m + 1, e.length - 1)], _ = o[m] || 0, v = _ === 0 ? 0 : (f - p) / _;
1074
1074
  n({
1075
1075
  x: h.x + (g.x - h.x) * v,
1076
1076
  y: h.y + (g.y - h.y) * v,
1077
- angle: ae(h, g)
1078
- }), d < 1 ? a = requestAnimationFrame(l) : r && r();
1077
+ angle: b(h, g)
1078
+ }), d < 1 ? a = requestAnimationFrame(c) : r && r();
1079
1079
  };
1080
- return a = requestAnimationFrame(l), () => {
1080
+ return a = requestAnimationFrame(c), () => {
1081
1081
  a && cancelAnimationFrame(a);
1082
1082
  };
1083
1083
  }
@@ -1132,4 +1132,4 @@ function Pt(e) {
1132
1132
  return e < .5 ? 4 * e * e * e : 1 - (-2 * e + 2) ** 3 / 2;
1133
1133
  }
1134
1134
  //#endregion
1135
- export { ut as a, Je as c, yt as i, Ue as l, jt as n, $e as o, Mt as r, Xe as s, kt as t };
1135
+ export { lt as a, Je as c, yt as i, Ue as l, jt as n, Qe as o, Mt as r, Ye as s, kt as t };