@expofp/floorplan 3.45.11 → 3.45.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (94) hide show
  1. package/dist/browser/{Button-wvbcVeFB.js → Button-RHSLdZ8P.js} +5 -5
  2. package/dist/browser/{CookieConsent-Culs9sI1.js → CookieConsent-tlDN9k4r.js} +7 -7
  3. package/dist/browser/{Debug-BM8bkKs4.js → Debug-8l7GSED6.js} +7 -7
  4. package/dist/browser/{DebugTools-fmsxTLzp.js → DebugTools-ipof0w8h.js} +6 -6
  5. package/dist/browser/{Demo-C3o1FEbw.js → Demo-CwZivFF-.js} +9 -9
  6. package/dist/browser/{Free-D1AZmJe7.js → Free-D4gNZ4RA.js} +10 -10
  7. package/dist/browser/{GalleryContainer-Bbj-p43R.js → GalleryContainer-B8L8n_4E.js} +11 -11
  8. package/dist/browser/{GpsLoader-BNqyoowH.js → GpsLoader-u9Gln6H7.js} +13 -13
  9. package/dist/browser/{KioskStore-BiM1CrZM.js → KioskStore-BWf8YM7M.js} +10 -10
  10. package/dist/browser/{LayerStore-CYhUcBJN.js → LayerStore-CrWyrBRa.js} +825 -819
  11. package/dist/browser/{MaplibreAdapter-Cr1b2MUz.js → MaplibreAdapter-Cd-gdHxM.js} +144 -144
  12. package/dist/browser/{ModalContainer-bhF8uauy.js → ModalContainer-DVKprzvo.js} +10 -10
  13. package/dist/browser/{PermissionNotice-Cp33Dup_.js → PermissionNotice-BMQHGUs9.js} +6 -6
  14. package/dist/browser/{RouteStore-BnA20xcN.js → RouteStore-BiUI1Uef.js} +127 -127
  15. package/dist/browser/{SetKioskMode-DlEk89q8.js → SetKioskMode-Bt9Ap5HU.js} +14 -14
  16. package/dist/browser/{ShowKiosk-C_2hw-6E.js → ShowKiosk-rsxj5Ort.js} +10 -10
  17. package/dist/browser/{UIState-B9mFI9_m.js → UIState-DgWaz-eQ.js} +89 -89
  18. package/dist/browser/{ViewerMenuPanel-DlXU3ixM.js → ViewerMenuPanel-6oBbHGtm.js} +11 -11
  19. package/dist/browser/{add-debug-secret-listener-xal_XewS.js → add-debug-secret-listener-CrdHdOJy.js} +1 -1
  20. package/dist/browser/{adopt-global-settings-BDiKKjee.js → adopt-global-settings-zscIy9Gm.js} +9 -9
  21. package/dist/browser/{boolean-editor-Sma15U6s.js → boolean-editor-CKqy8Ity.js} +9 -9
  22. package/dist/browser/{bootIntercom-CvT_A8p8.js → bootIntercom-B98qYnKB.js} +2 -2
  23. package/dist/browser/bundle.json +85 -85
  24. package/dist/browser/{camera-events-DtEEOjHJ.js → camera-events-CT_HBink.js} +1 -1
  25. package/dist/browser/{classnames-DOWh55m7.js → classnames-jjUCCpoy.js} +2 -2
  26. package/dist/browser/{client-Bq8KC_Gd.js → client-CWN8yeUz.js} +5 -5
  27. package/dist/browser/{components-DAgPmGLN.js → components-BYuTjlcn.js} +239 -245
  28. package/dist/browser/{create-live-plan-CyeXLvG9.js → create-live-plan-DplxEMws.js} +73 -73
  29. package/dist/browser/{debug-context-DgfLIP_z.js → debug-context-DswaH7mN.js} +5 -5
  30. package/dist/browser/{debug-overlay-DjhkoXTh.js → debug-overlay-khJHt49U.js} +10 -10
  31. package/dist/browser/{debug-ui-C5Ov9nWP.js → debug-ui-BEApU0Hr.js} +6 -6
  32. package/dist/browser/{dist-D7R1HRT6.js → dist-BsTWH7q7.js} +5 -5
  33. package/dist/browser/{dist-D8q30ciB.js → dist-CgdNmEoc.js} +3 -3
  34. package/dist/browser/{dist-BPgTae9z.js → dist-q2Ip5e-y.js} +6 -6
  35. package/dist/browser/{efp-debug-init-CI7-9-EF.js → efp-debug-init-DBQbSv4u.js} +3 -3
  36. package/dist/browser/{enum-editor-DgdrIT6p.js → enum-editor-CxeGNBqb.js} +4 -4
  37. package/dist/browser/{es5-CKWQYgqj.js → es5-C4CifKWw.js} +2 -2
  38. package/dist/browser/{event-head-CGnPGf8r.js → event-head-D1EKVWKM.js} +1 -1
  39. package/dist/browser/{event-not-found-BczHwPfj.js → event-not-found-DcLfsbev.js} +3 -3
  40. package/dist/browser/{event-scoped-cache-D2VS2gfE.js → event-scoped-cache-BbzF7HuS.js} +2 -2
  41. package/dist/browser/{expofpUrl-BjxV_NsI.js → expofpUrl-BkFfQVWT.js} +1 -1
  42. package/dist/browser/{exports-Ck0hSnNP.js → exports-CJmfzEbr.js} +1 -1
  43. package/dist/browser/{favicon-DXRCQyX8.js → favicon-C17ZDAmX.js} +1 -1
  44. package/dist/browser/{fetch-retry.umd-BpErXOBo.js → fetch-retry.umd-KfV_kX2J.js} +2 -2
  45. package/dist/browser/{flex-BQOoxB4K.js → flex-BlLYvxBy.js} +5 -5
  46. package/dist/browser/{floorplan.loader-BevvQXsH.js → floorplan.loader-BZfuR9KC.js} +12 -12
  47. package/dist/browser/{floorplan.ready-CfjIq-tD.js → floorplan.ready-CuozrQJq.js} +30 -30
  48. package/dist/browser/{framing-rect-DMoOdaT6.js → framing-rect-_cN7Jp0z.js} +355 -363
  49. package/dist/browser/{freeBanner-BLUQe1wS.js → freeBanner-DC2vjpf5.js} +2 -2
  50. package/dist/browser/{fuse-ZrYQLa2i.js → fuse-BYQPvbIk.js} +2 -2
  51. package/dist/browser/{i18n-BLaFErhY.js → i18n-BDc7lWFh.js} +6 -6
  52. package/dist/browser/index.js +17 -17
  53. package/dist/browser/{index.module-Cgw9eIFs.js → index.module-DUgyUoBP.js} +4 -4
  54. package/dist/browser/{init-ui-C168qd--.js → init-ui-xCaP1iGt.js} +13 -13
  55. package/dist/browser/{integrateKiosk-CItUrjqr.js → integrateKiosk-pm7XEmxW.js} +5 -5
  56. package/dist/browser/{is-debug-5Wx1pzmC.js → is-debug-Bk6Ww-mR.js} +4 -4
  57. package/dist/browser/{is-own-domain-CQwNRlOP.js → is-own-domain-DtyPiuBK.js} +1 -1
  58. package/dist/browser/{is-webview-M2z00we8.js → is-webview-DpsVH2Y1.js} +1 -1
  59. package/dist/browser/{jsx-runtime-BUD3cKrd.js → jsx-runtime-ClNfOC6f.js} +2 -2
  60. package/dist/browser/{kiosk-mode-oR6Qku6R.js → kiosk-mode-CHV9ESCa.js} +3 -3
  61. package/dist/browser/{kiosk-record-B4TPlUVM.js → kiosk-record-WGoZsWrI.js} +1 -1
  62. package/dist/browser/{kioskApi-Bjbnt2QJ.js → kioskApi-CbDD11ug.js} +7 -7
  63. package/dist/browser/{lib-DCkZiNTx.js → lib-CyCGPKo7.js} +3 -3
  64. package/dist/browser/{loadImage-CsHBlWDX.js → loadImage-w_zuSX7Q.js} +1 -1
  65. package/dist/browser/{logDeviceInfo-CBp39wle.js → logDeviceInfo-DladzOhP.js} +9 -9
  66. package/dist/browser/{mobx-BKuZa-uE.js → mobx-DRjOCpOl.js} +4 -4
  67. package/dist/browser/{mobx.module-DLfbGzOu.js → mobx.module-Cv_4Fqn4.js} +1 -1
  68. package/dist/browser/{optional-boolean-editor-C_nG8KPk.js → optional-boolean-editor-CX8YBA0h.js} +3 -3
  69. package/dist/browser/{optional-enum-editor-Cz65owXN.js → optional-enum-editor-BxGv8bpn.js} +4 -4
  70. package/dist/browser/{optional-string-editor-CiixI5VU.js → optional-string-editor-DqMnNBXu.js} +4 -4
  71. package/dist/browser/{particles.min-Dg9rhGQw.js → particles.min-ejj5e5kU.js} +2 -2
  72. package/dist/browser/{react-9fRUfYcQ.js → react-Dw5YXa-Y.js} +2 -2
  73. package/dist/browser/{react-dom-BnQ0aR5T.js → react-dom-Dd8g1448.js} +3 -3
  74. package/dist/browser/{rolldown-runtime-DW9kw2-Z.js → rolldown-runtime-BDjyEY82.js} +1 -1
  75. package/dist/browser/{scene-CfgUV6qo.js → scene-BuSOJ1kI.js} +9 -9
  76. package/dist/browser/{scheduler-2CNHK3J9.js → scheduler-2PunDhbX.js} +2 -2
  77. package/dist/browser/{select-DhztBWaW.js → select-BZ4woGJi.js} +10 -10
  78. package/dist/browser/{settings-CQJfzF0P.js → settings-BQ58wk59.js} +2 -2
  79. package/dist/browser/{settings-item-C8z-VDRo.js → settings-item-DkAN7SK-.js} +6 -6
  80. package/dist/browser/{store-CToL6ro6.js → store-Djiw0f15.js} +2 -2
  81. package/dist/browser/{string-editor-CfDpSKQj.js → string-editor-BxjGvgq8.js} +4 -4
  82. package/dist/browser/{text-field-Cc4OOu_O.js → text-field-1Qf6vcza.js} +5 -5
  83. package/dist/browser/{theme-DyT10pAe.js → theme-BY0D9YiW.js} +8 -8
  84. package/dist/browser/{ui-oWcLvPG5.js → ui-DFokN_S5.js} +8 -8
  85. package/dist/browser/{useRenderTarget-QHju4vdT.js → useRenderTarget-Bh-xmMgH.js} +4 -4
  86. package/dist/browser/{viewport-DtGAyX5m.js → viewport-BUn4KlO1.js} +3 -3
  87. package/dist/browser/{wayfinding-xq3uzwvp.js → wayfinding-BHyh7Wne.js} +228 -228
  88. package/dist/esm/components/Exhibitor.js +1 -1
  89. package/dist/esm/components/Map/drawing/config/config-markers.js +1 -1
  90. package/dist/esm/components/Map/traffic/useManageTraffic.js +1 -1
  91. package/dist/esm/engine/utils/rotation.d.ts +8 -0
  92. package/dist/esm/engine/utils/rotation.js +1 -1
  93. package/dist/esm/store/RouteStore.d.ts +1 -1
  94. package/package.json +11 -10
@@ -1,38 +1,38 @@
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.45.11" };
4
+ e.SENTRY_RELEASE = { id: "3.45.13" };
5
5
  var t = new e.Error().stack;
6
- t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "7944985c-b8b1-41fc-b3d5-1caac786053b", e._sentryDebugIdIdentifier = "sentry-dbid-7944985c-b8b1-41fc-b3d5-1caac786053b");
6
+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "859e3db6-e7a2-4092-a448-61d436d2d8d2", e._sentryDebugIdIdentifier = "sentry-dbid-859e3db6-e7a2-4092-a448-61d436d2d8d2");
7
7
  } catch {}
8
8
  })();
9
- import { r as e, t } from "./rolldown-runtime-DW9kw2-Z.js";
10
- import { o as n } from "./is-debug-5Wx1pzmC.js";
11
- import { i as r, l as i } from "./mobx.module-DLfbGzOu.js";
12
- import { Dt as a, Gt as o, Ot as s, St as c, Tt as l, Wt as u, Zt as d, bt as f, cn as p, en as m, in as h, kt as g, ln as _, nn as v, on as y, pt as b, rn as x, rt as S, sn as C, vt as w, wt as T, yt as E } from "./LayerStore-CYhUcBJN.js";
9
+ import { r as e, t } from "./rolldown-runtime-BDjyEY82.js";
10
+ import { o as n } from "./is-debug-Bk6Ww-mR.js";
11
+ import { i as r, l as i } from "./mobx.module-Cv_4Fqn4.js";
12
+ import { At as a, Ct as o, Et as s, Gt as c, Kt as l, Ot as u, Qt as d, Tt as f, an as p, bt as m, cn as h, in as g, kt as _, ln as v, mt as y, rn as b, rt as x, sn as S, tn as C, un as w, xt as T, yt as E } from "./LayerStore-CrWyrBRa.js";
13
13
  //#region ../geometry/src/lib/geo.ts
14
14
  var D = 6371e3;
15
15
  function O(e, t) {
16
- let n = y(e.lat), r = y(t.lat), i = y(t.lat - e.lat), a = y(t.lng - e.lng), o = Math.sin(i / 2) * Math.sin(i / 2) + Math.cos(n) * Math.cos(r) * Math.sin(a / 2) * Math.sin(a / 2);
16
+ let n = S(e.lat), r = S(t.lat), i = S(t.lat - e.lat), a = S(t.lng - e.lng), o = Math.sin(i / 2) * Math.sin(i / 2) + Math.cos(n) * Math.cos(r) * Math.sin(a / 2) * Math.sin(a / 2);
17
17
  return D * (2 * Math.atan2(Math.sqrt(o), Math.sqrt(1 - o)));
18
18
  }
19
19
  function k(e, t) {
20
- let n = y(e.lat), r = y(t.lat), i = y(t.lng - e.lng), a = Math.sin(i) * Math.cos(r), o = Math.cos(n) * Math.sin(r) - Math.sin(n) * Math.cos(r) * Math.cos(i);
21
- return (_(Math.atan2(a, o)) + 360) % 360;
20
+ let n = S(e.lat), r = S(t.lat), i = S(t.lng - e.lng), a = Math.sin(i) * Math.cos(r), o = Math.cos(n) * Math.sin(r) - Math.sin(n) * Math.cos(r) * Math.cos(i);
21
+ return (w(Math.atan2(a, o)) + 360) % 360;
22
22
  }
23
23
  function A(e, t, n) {
24
- let r = t / D, i = y(n), a = y(e.lat), o = y(e.lng), s = Math.asin(Math.sin(a) * Math.cos(r) + Math.cos(a) * Math.sin(r) * Math.cos(i)), c = o + Math.atan2(Math.sin(i) * Math.sin(r) * Math.cos(a), Math.cos(r) - Math.sin(a) * Math.sin(s));
24
+ let r = t / D, i = S(n), a = S(e.lat), o = S(e.lng), s = Math.asin(Math.sin(a) * Math.cos(r) + Math.cos(a) * Math.sin(r) * Math.cos(i)), c = o + Math.atan2(Math.sin(i) * Math.sin(r) * Math.cos(a), Math.cos(r) - Math.sin(a) * Math.sin(s));
25
25
  return {
26
- lat: _(s),
27
- lng: _(p(c))
26
+ lat: w(s),
27
+ lng: w(v(c))
28
28
  };
29
29
  }
30
30
  function j(e, t, n) {
31
- let r = n.local.x - t.local.x, i = n.local.y - t.local.y, a = Math.sqrt(r * r + i * i), o = e.x - t.local.x, s = e.y - t.local.y, c = Math.sqrt(o * o + s * s), l = _(Math.atan2(i, r)), u = _(Math.atan2(s, o)) - l, d = (a === 0 ? 0 : c / a) * O(t.geo, n.geo), f = k(t.geo, n.geo);
31
+ let r = n.local.x - t.local.x, i = n.local.y - t.local.y, a = Math.sqrt(r * r + i * i), o = e.x - t.local.x, s = e.y - t.local.y, c = Math.sqrt(o * o + s * s), l = w(Math.atan2(i, r)), u = w(Math.atan2(s, o)) - l, d = (a === 0 ? 0 : c / a) * O(t.geo, n.geo), f = k(t.geo, n.geo);
32
32
  return A(t.geo, d, f + u);
33
33
  }
34
34
  function ee(e, t, n) {
35
- let r = O(t.geo, n.geo), i = k(t.geo, n.geo), a = O(t.geo, e), o = k(t.geo, e) - i, s = r === 0 ? 0 : a / r, c = n.local.x - t.local.x, l = n.local.y - t.local.y, u = Math.sqrt(c * c + l * l), d = Math.atan2(l, c), f = C(u * s, d + y(o));
35
+ let r = O(t.geo, n.geo), i = k(t.geo, n.geo), a = O(t.geo, e), o = k(t.geo, e) - i, s = r === 0 ? 0 : a / r, c = n.local.x - t.local.x, l = n.local.y - t.local.y, u = Math.sqrt(c * c + l * l), d = Math.atan2(l, c), f = h(u * s, d + S(o));
36
36
  return {
37
37
  x: t.local.x + f.x,
38
38
  y: t.local.y + f.y
@@ -40,20 +40,20 @@ function ee(e, t, n) {
40
40
  }
41
41
  //#endregion
42
42
  //#region ../geometry/src/lib/line.ts
43
- function te(e) {
44
- return x(e.p0, e.p1);
43
+ function M(e) {
44
+ return g(e.p0, e.p1);
45
45
  }
46
- function ne(e, t) {
47
- return h(e.p0, e.p1, .5, t);
46
+ function te(e, t) {
47
+ return p(e.p0, e.p1, .5, t);
48
48
  }
49
- function M(e, t) {
49
+ function N(e, t) {
50
50
  return Math.atan2(t.y - e.y, t.x - e.x);
51
51
  }
52
- function N(e, t, n) {
52
+ function P(e, t, n) {
53
53
  var r;
54
54
  let i = e.p0.x, a = e.p0.y, o = e.p1.x, s = e.p1.y, c = t.x, l = t.y, u = o - i, d = s - a, f = u * u + d * d, p;
55
55
  f === 0 ? p = 0 : (p = ((c - i) * u + (l - a) * d) / f, p = p < 0 ? 0 : p > 1 ? 1 : p);
56
- let m = (n == null ? new v() : n).set(i + u * p, a + d * p, (r = e.elevation) == null ? 0 : r), h = x({
56
+ let m = (n == null ? new b() : n).set(i + u * p, a + d * p, (r = e.elevation) == null ? 0 : r), h = g({
57
57
  x: c,
58
58
  y: l
59
59
  }, m);
@@ -65,21 +65,21 @@ function N(e, t, n) {
65
65
  }
66
66
  //#endregion
67
67
  //#region src/data/fpGeo.ts
68
- function P() {
69
- return u().__fpGeo;
68
+ function F() {
69
+ return c().__fpGeo;
70
70
  }
71
71
  //#endregion
72
72
  //#region src/utils/planBearing.ts
73
- function re(e) {
73
+ function ne(e) {
74
74
  return (180 - 180 / Math.PI * Math.log(Math.tan(Math.PI / 4 + e * Math.PI / 360))) / 360;
75
75
  }
76
- function ie(e, t) {
77
- let n = (Math.atan2(re(t.lat) - re(e.lat), (t.lng - e.lng) / 360) - Math.atan2(t.y - e.y, t.x - e.x)) * 180 / Math.PI % 360;
76
+ function re(e, t) {
77
+ let n = (Math.atan2(ne(t.lat) - ne(e.lat), (t.lng - e.lng) / 360) - Math.atan2(t.y - e.y, t.x - e.x)) * 180 / Math.PI % 360;
78
78
  return Number.isFinite(n) ? (n + 360) % 360 : NaN;
79
79
  }
80
80
  //#endregion
81
81
  //#region src/utils/gps.ts
82
- function F(e) {
82
+ function I(e) {
83
83
  return [{
84
84
  local: {
85
85
  x: e.p0.x,
@@ -100,47 +100,47 @@ function F(e) {
100
100
  }
101
101
  }];
102
102
  }
103
- function I(e) {
103
+ function L(e) {
104
104
  return typeof e == "number" && Number.isFinite(e);
105
105
  }
106
- function ae({ lat: e, lng: t, angle: r }, i) {
107
- if (!(I(e) && I(t))) return null;
106
+ function ie({ lat: e, lng: t, angle: r }, i) {
107
+ if (!(L(e) && L(t))) return null;
108
108
  let { p0: a, p2: o } = i, s = O(a, o);
109
- if (!I(s) || s <= 0) return n.warn("Invalid GPS config: zero or negative distance", {
109
+ if (!L(s) || s <= 0) return n.warn("Invalid GPS config: zero or negative distance", {
110
110
  fullGpsDistance: s,
111
111
  p0: a,
112
112
  p2: o
113
113
  }), null;
114
- let [c, l] = F(i), u = ee({
114
+ let [c, l] = I(i), u = ee({
115
115
  lat: e,
116
116
  lng: t
117
117
  }, c, l);
118
- return te({
118
+ return M({
119
119
  p0: u,
120
- p1: ne({
120
+ p1: te({
121
121
  p0: a,
122
122
  p1: o
123
123
  })
124
- }) > 5 * x(a, o) ? (n.warn("Current position too far"), null) : {
124
+ }) > 5 * g(a, o) ? (n.warn("Current position too far"), null) : {
125
125
  ...u,
126
126
  angle: r
127
127
  };
128
128
  }
129
- function oe(e, t, n) {
130
- let [r, i] = F(n), { lat: a, lng: o } = j({
129
+ function ae(e, t, n) {
130
+ let [r, i] = I(n), { lat: a, lng: o } = j({
131
131
  x: e,
132
132
  y: t
133
133
  }, r, i);
134
134
  return [o, a];
135
135
  }
136
- function se(e) {
136
+ function oe(e) {
137
137
  var t, n;
138
- let r = (t = P()) == null || (t = t.properties) == null ? void 0 : t.config, i = r ? ie(r.p0, r.p2) : NaN, a = Number.isFinite(i) ? i : (n = r == null ? void 0 : r.bearing) == null ? 0 : n;
138
+ let r = (t = F()) == null || (t = t.properties) == null ? void 0 : t.config, i = r ? re(r.p0, r.p2) : NaN, a = Number.isFinite(i) ? i : (n = r == null ? void 0 : r.bearing) == null ? 0 : n;
139
139
  return (e == null ? void 0 : e.angle) === null ? 0 : (((e.angle - a) % 360 + 360) % 360 - 90 + 360) % 360;
140
140
  }
141
141
  //#endregion
142
142
  //#region ../wayfinding/src/core/graph/buildGraph.ts
143
- function ce(e, t, n) {
143
+ function se(e, t, n) {
144
144
  var r, i;
145
145
  return t.build(e.getLines(), {
146
146
  oriented: (r = n.oriented) == null || r,
@@ -153,7 +153,7 @@ function ce(e, t, n) {
153
153
  }
154
154
  //#endregion
155
155
  //#region ../../node_modules/.pnpm/ngraph.events@1.4.0/node_modules/ngraph.events/dist/ngraph.events.cjs
156
- var le = /* @__PURE__ */ t(((e, t) => {
156
+ var ce = /* @__PURE__ */ t(((e, t) => {
157
157
  function n(e) {
158
158
  i(e);
159
159
  let t = r(e);
@@ -202,12 +202,12 @@ var le = /* @__PURE__ */ t(((e, t) => {
202
202
  for (let n = 0; n < t.length; ++n) if (e.hasOwnProperty(t[n])) throw Error("Subject cannot be eventified, since it already has property '" + t[n] + "'");
203
203
  }
204
204
  t.exports = n;
205
- })), ue = /* @__PURE__ */ e((/* @__PURE__ */ t(((e, t) => {
205
+ })), le = /* @__PURE__ */ e((/* @__PURE__ */ t(((e, t) => {
206
206
  t.exports = r;
207
- var n = le();
207
+ var n = ce();
208
208
  function r(e) {
209
209
  if (e = e || {}, "uniqueLinkId" in e && (console.warn("ngraph.graph: Starting from version 0.14 `uniqueLinkId` is deprecated.\nUse `multigraph` option instead\n", "\n", "Note: there is also change in default behavior: From now on each graph\nis considered to be not a multigraph by default (each edge is unique)."), e.multigraph = e.uniqueLinkId), e.multigraph === void 0 && (e.multigraph = !1), typeof Map != "function") throw Error("ngraph.graph requires `Map` to be defined. Please polyfill it before using ngraph");
210
- var t = /* @__PURE__ */ new Map(), r = [], l = {}, u = 0, d = e.multigraph ? E : T, f = [], p = P, m = P, h = P, g = P, _ = {
210
+ var t = /* @__PURE__ */ new Map(), r = [], l = {}, u = 0, d = e.multigraph ? E : T, f = [], p = F, m = F, h = F, g = F, _ = {
211
211
  addNode: x,
212
212
  addLink: w,
213
213
  removeLink: A,
@@ -218,9 +218,9 @@ var le = /* @__PURE__ */ t(((e, t) => {
218
218
  getLinksCount: O,
219
219
  getNodesCount: D,
220
220
  getLinks: k,
221
- forEachNode: F,
222
- forEachLinkedNode: ne,
223
- forEachLink: te,
221
+ forEachNode: I,
222
+ forEachLinkedNode: te,
223
+ forEachLink: M,
224
224
  beginUpdate: h,
225
225
  endUpdate: g,
226
226
  clear: ee,
@@ -233,7 +233,7 @@ var le = /* @__PURE__ */ t(((e, t) => {
233
233
  var e = _.on;
234
234
  _.on = t;
235
235
  function t() {
236
- return _.beginUpdate = h = re, _.endUpdate = g = ie, p = y, m = b, _.on = e, e.apply(_, arguments);
236
+ return _.beginUpdate = h = ne, _.endUpdate = g = re, p = y, m = b, _.on = e, e.apply(_, arguments);
237
237
  }
238
238
  }
239
239
  function y(e, t) {
@@ -313,38 +313,38 @@ var le = /* @__PURE__ */ t(((e, t) => {
313
313
  return null;
314
314
  }
315
315
  function ee() {
316
- h(), F(function(e) {
316
+ h(), I(function(e) {
317
317
  C(e.id);
318
318
  }), g();
319
319
  }
320
- function te(e) {
320
+ function M(e) {
321
321
  var t, n;
322
322
  if (typeof e == "function") for (t = 0, n = r.length; t < n; ++t) e(r[t]);
323
323
  }
324
- function ne(e, t, n) {
324
+ function te(e, t, n) {
325
325
  var r = S(e);
326
- if (r && r.links && typeof t == "function") return n ? N(r.links, e, t) : M(r.links, e, t);
326
+ if (r && r.links && typeof t == "function") return n ? P(r.links, e, t) : N(r.links, e, t);
327
327
  }
328
- function M(e, n, r) {
328
+ function N(e, n, r) {
329
329
  for (var i, a = 0; a < e.length; ++a) {
330
330
  var o = e[a], s = o.fromId === n ? o.toId : o.fromId;
331
331
  if (i = r(t.get(s), o), i) return !0;
332
332
  }
333
333
  }
334
- function N(e, n, r) {
334
+ function P(e, n, r) {
335
335
  for (var i, a = 0; a < e.length; ++a) {
336
336
  var o = e[a];
337
337
  if (o.fromId === n && (i = r(t.get(o.toId), o), i)) return !0;
338
338
  }
339
339
  }
340
- function P() {}
341
- function re() {
340
+ function F() {}
341
+ function ne() {
342
342
  u += 1;
343
343
  }
344
- function ie() {
344
+ function re() {
345
345
  --u, u === 0 && f.length > 0 && (_.fire("changed", f), f.length = 0);
346
346
  }
347
- function F(e) {
347
+ function I(e) {
348
348
  if (typeof e != "function") throw Error("Function is expected to iterate over graph nodes. You passed " + e);
349
349
  for (var n = t.values(), r = n.next(); !r.done;) {
350
350
  if (e(r.value)) return !0;
@@ -371,28 +371,28 @@ var le = /* @__PURE__ */ t(((e, t) => {
371
371
  function c(e, t) {
372
372
  return e.toString() + "👉 " + t.toString();
373
373
  }
374
- })))(), 1), L = (e) => {
374
+ })))(), 1), R = (e) => {
375
375
  var t;
376
376
  return `${(t = e.layer) == null ? "" : t}_${e.x}_${e.y}`;
377
- }, de = 1, R = (e, t) => {
377
+ }, ue = 1, z = (e, t) => {
378
378
  var n, r;
379
- return ((n = e.layer) == null ? "" : n) === ((r = t.layer) == null ? "" : r) && x(e, t) <= de;
380
- }, fe = (e, t, n) => R(e.p0, t) && R(e.p1, n) || R(e.p0, n) && R(e.p1, t);
381
- function pe(e, t, n) {
382
- return e.find((e) => fe(e, t, n));
379
+ return ((n = e.layer) == null ? "" : n) === ((r = t.layer) == null ? "" : r) && g(e, t) <= ue;
380
+ }, de = (e, t, n) => z(e.p0, t) && z(e.p1, n) || z(e.p0, n) && z(e.p1, t);
381
+ function fe(e, t, n) {
382
+ return e.find((e) => de(e, t, n));
383
383
  }
384
- var me = y(5);
385
- function he(e, t) {
384
+ var pe = S(5);
385
+ function me(e, t) {
386
386
  if (e.virtual !== t.virtual) return !1;
387
- let n = M(e.p0, e.p1), r = M(t.p0, t.p1), i = Math.abs(r - n);
388
- return i > Math.PI && (i = 2 * Math.PI - i), i <= me;
387
+ let n = N(e.p0, e.p1), r = N(t.p0, t.p1), i = Math.abs(r - n);
388
+ return i > Math.PI && (i = 2 * Math.PI - i), i <= pe;
389
389
  }
390
- function ge(e, t) {
390
+ function he(e, t) {
391
391
  let n = [];
392
392
  for (let r = 1; r < e.length; r++) {
393
- let i = e[r - 1], a = e[r], o = pe(t, i, a);
393
+ let i = e[r - 1], a = e[r], o = fe(t, i, a);
394
394
  if (!o) {
395
- console.warn(`WF: buildRouteSegments — no line found between ${L(i)} and ${L(a)}`);
395
+ console.warn(`WF: buildRouteSegments — no line found between ${R(i)} and ${R(a)}`);
396
396
  continue;
397
397
  }
398
398
  let s = {
@@ -400,7 +400,7 @@ function ge(e, t) {
400
400
  p1: a,
401
401
  virtual: o.virtual
402
402
  }, c = n[n.length - 1];
403
- c && he(c, s) ? n[n.length - 1] = {
403
+ c && me(c, s) ? n[n.length - 1] = {
404
404
  ...c,
405
405
  p1: s.p1
406
406
  } : n.push(s);
@@ -409,79 +409,79 @@ function ge(e, t) {
409
409
  }
410
410
  //#endregion
411
411
  //#region ../wayfinding/src/core/graph/constants.ts
412
- var _e = 1e4, ve = 1.01;
412
+ var ge = 1e4, _e = 1.01;
413
413
  //#endregion
414
414
  //#region ../wayfinding/src/core/graph/linkCost.ts
415
- function ye(e) {
416
- return x(e.p0, e.p1) / (e.weight || 4);
415
+ function ve(e) {
416
+ return g(e.p0, e.p1) / (e.weight || 4);
417
417
  }
418
- function be(e) {
418
+ function ye(e) {
419
419
  var t, n;
420
420
  return ((t = e.p0.layer) == null ? "" : t) !== ((n = e.p1.layer) == null ? "" : n);
421
421
  }
422
- function xe(e) {
423
- return e.virtual ? e.virtualLength == null ? be(e) ? _e : 0 : e.virtualLength : ye(e);
422
+ function be(e) {
423
+ return e.virtual ? e.virtualLength == null ? ye(e) ? ge : 0 : e.virtualLength : ve(e);
424
424
  }
425
425
  //#endregion
426
426
  //#region ../wayfinding/src/core/graph/buildNGraph.ts
427
- function Se(e, t) {
428
- let { oriented: n, onlyAccessible: r } = t, i = (0, ue.default)();
427
+ function xe(e, t) {
428
+ let { oriented: n, onlyAccessible: r } = t, i = (0, le.default)();
429
429
  for (let t of e) {
430
430
  if (r && t.unaccessible) continue;
431
- let e = L(t.p0), a = L(t.p1), o = xe(t);
431
+ let e = R(t.p0), a = R(t.p1), o = be(t);
432
432
  i.addLink(e, a, { distance: o }), n && !t.unidirection && i.addLink(a, e, { distance: o });
433
433
  }
434
434
  return i;
435
435
  }
436
436
  //#endregion
437
437
  //#region ../wayfinding/src/core/graph/utils/a-star/defaultSettings.js
438
- var Ce = [];
439
- typeof Object.freeze == "function" && Object.freeze(Ce);
440
- var z = {
441
- heuristic: we,
442
- distance: Te,
443
- blocked: Ee,
444
- compareFScore: De,
445
- NO_PATH: Ce,
446
- setHeapIndex: Oe,
447
- setH1: je,
448
- setH2: Me,
449
- compareF1Score: ke,
450
- compareF2Score: Ae
438
+ var Se = [];
439
+ typeof Object.freeze == "function" && Object.freeze(Se);
440
+ var B = {
441
+ heuristic: Ce,
442
+ distance: we,
443
+ blocked: Te,
444
+ compareFScore: Ee,
445
+ NO_PATH: Se,
446
+ setHeapIndex: De,
447
+ setH1: Ae,
448
+ setH2: je,
449
+ compareF1Score: Oe,
450
+ compareF2Score: ke
451
451
  };
452
- function we() {
452
+ function Ce() {
453
453
  return 0;
454
454
  }
455
- function Te() {
455
+ function we() {
456
456
  return 1;
457
457
  }
458
- function Ee() {
458
+ function Te() {
459
459
  return !1;
460
460
  }
461
- function De(e, t) {
461
+ function Ee(e, t) {
462
462
  return e.fScore - t.fScore;
463
463
  }
464
- function Oe(e, t) {
464
+ function De(e, t) {
465
465
  e.heapIndex = t;
466
466
  }
467
- function ke(e, t) {
467
+ function Oe(e, t) {
468
468
  return e.f1 - t.f1;
469
469
  }
470
- function Ae(e, t) {
470
+ function ke(e, t) {
471
471
  return e.f2 - t.f2;
472
472
  }
473
- function je(e, t) {
473
+ function Ae(e, t) {
474
474
  e.h1 = t;
475
475
  }
476
- function Me(e, t) {
476
+ function je(e, t) {
477
477
  e.h2 = t;
478
478
  }
479
479
  //#endregion
480
480
  //#region ../wayfinding/src/core/graph/utils/a-star/makeSearchStatePool.js
481
- function Ne(e) {
481
+ function Me(e) {
482
482
  this.node = e, this.parent = null, this.closed = !1, this.open = 0, this.distanceToSource = Infinity, this.fScore = Infinity, this.heapIndex = -1;
483
483
  }
484
- function Pe() {
484
+ function Ne() {
485
485
  let e = 0, t = [];
486
486
  return {
487
487
  createNewState: r,
@@ -492,21 +492,21 @@ function Pe() {
492
492
  }
493
493
  function r(n) {
494
494
  let r = t[e];
495
- return r ? (r.node = n, r.parent = null, r.closed = !1, r.open = 0, r.distanceToSource = Infinity, r.fScore = Infinity, r.heapIndex = -1) : (r = new Ne(n), t[e] = r), e++, r;
495
+ return r ? (r.node = n, r.parent = null, r.closed = !1, r.open = 0, r.distanceToSource = Infinity, r.fScore = Infinity, r.heapIndex = -1) : (r = new Me(n), t[e] = r), e++, r;
496
496
  }
497
497
  }
498
498
  //#endregion
499
499
  //#region ../wayfinding/src/core/graph/utils/a-star/NodeHeap.js
500
- function B(e, t) {
501
- if (!(this instanceof B)) return new B(e, t);
502
- if (Array.isArray(e) || (t = e, e = []), t = t || {}, this.data = e || [], this.length = this.data.length, this.compare = t.compare || Ie, this.setNodeId = t.setNodeId || Fe, this.length > 0) for (let e = this.length >> 1; e >= 0; e--) this._down(e);
500
+ function V(e, t) {
501
+ if (!(this instanceof V)) return new V(e, t);
502
+ if (Array.isArray(e) || (t = e, e = []), t = t || {}, this.data = e || [], this.length = this.data.length, this.compare = t.compare || Fe, this.setNodeId = t.setNodeId || Pe, this.length > 0) for (let e = this.length >> 1; e >= 0; e--) this._down(e);
503
503
  if (t.setNodeId) for (let e = 0; e < this.length; ++e) this.setNodeId(this.data[e], e);
504
504
  }
505
- function Fe() {}
506
- function Ie(e, t) {
505
+ function Pe() {}
506
+ function Fe(e, t) {
507
507
  return e - t;
508
508
  }
509
- B.prototype = {
509
+ V.prototype = {
510
510
  push: function(e) {
511
511
  this.data.push(e), this.setNodeId(e, this.length), this.length++, this._up(this.length - 1);
512
512
  },
@@ -542,16 +542,16 @@ B.prototype = {
542
542
  };
543
543
  //#endregion
544
544
  //#region ../wayfinding/src/core/graph/utils/a-star/a-star.js
545
- var Le = z.NO_PATH;
546
- function Re(e, t) {
545
+ var Ie = B.NO_PATH;
546
+ function Le(e, t) {
547
547
  t = t || {};
548
548
  let n = t.oriented, r = t.blocked;
549
- r || (r = z.blocked);
549
+ r || (r = B.blocked);
550
550
  let i = t.heuristic;
551
- i || (i = z.heuristic);
551
+ i || (i = B.heuristic);
552
552
  let a = t.distance;
553
- a || (a = z.distance);
554
- let o = Pe();
553
+ a || (a = B.distance);
554
+ let o = Ne();
555
555
  return { find: s };
556
556
  function s(t, s) {
557
557
  let c = e.getNode(t);
@@ -559,17 +559,17 @@ function Re(e, t) {
559
559
  let l = e.getNode(s);
560
560
  if (!l) throw Error("toId is not defined in this graph: " + s);
561
561
  o.reset();
562
- let u = /* @__PURE__ */ new Map(), d = new B({
563
- compare: z.compareFScore,
564
- setNodeId: z.setHeapIndex
562
+ let u = /* @__PURE__ */ new Map(), d = new V({
563
+ compare: B.compareFScore,
564
+ setNodeId: B.setHeapIndex
565
565
  }), f = o.createNewState(c);
566
566
  u.set(t, f), f.fScore = i(c, l), f.distanceToSource = 0, d.push(f), f.open = 1;
567
567
  let p;
568
568
  for (; d.length > 0;) {
569
- if (p = d.pop(), ze(p, l)) return Be(p);
569
+ if (p = d.pop(), Re(p, l)) return ze(p);
570
570
  p.closed = !0, e.forEachLinkedNode(p.node.id, m, n);
571
571
  }
572
- return Le;
572
+ return Ie;
573
573
  function m(e, t) {
574
574
  let n = u.get(e.id);
575
575
  if (n || (n = o.createNewState(e), u.set(e.id, n)), n.closed || (n.open === 0 && (d.push(n), n.open = 1), r(e, p.node, t))) return;
@@ -578,17 +578,17 @@ function Re(e, t) {
578
578
  }
579
579
  }
580
580
  }
581
- function ze(e, t) {
581
+ function Re(e, t) {
582
582
  return e.node === t;
583
583
  }
584
- function Be(e) {
584
+ function ze(e) {
585
585
  let t = [e.node], n = e.parent;
586
586
  for (; n;) t.push(n.node), n = n.parent;
587
587
  return t;
588
588
  }
589
589
  //#endregion
590
590
  //#region ../wayfinding/src/core/graph/pathfinder/parseNodeId.ts
591
- function V(e) {
591
+ function H(e) {
592
592
  let t = e.lastIndexOf("_"), n = e.lastIndexOf("_", t - 1);
593
593
  if (n === -1) throw Error(`WF: invalid node ID format "${e}", expected "{layer}_{x}_{y}"`);
594
594
  return [
@@ -599,35 +599,35 @@ function V(e) {
599
599
  }
600
600
  //#endregion
601
601
  //#region ../wayfinding/src/core/graph/pathfinder/aStarPathFinder.ts
602
- function Ve() {
602
+ function Be() {
603
603
  return function(e, t, n) {
604
604
  let r = 1;
605
605
  if (t.parent) {
606
- let [, n, i] = V(t.parent.node.id), [, a, o] = V(t.node.id), [, s, c] = V(e.id);
607
- M({
606
+ let [, n, i] = H(t.parent.node.id), [, a, o] = H(t.node.id), [, s, c] = H(e.id);
607
+ N({
608
608
  x: n,
609
609
  y: i
610
610
  }, {
611
611
  x: a,
612
612
  y: o
613
- }) !== M({
613
+ }) !== N({
614
614
  x: a,
615
615
  y: o
616
616
  }, {
617
617
  x: s,
618
618
  y: c
619
- }) && (r = ve);
619
+ }) && (r = _e);
620
620
  }
621
621
  return r * n.data.distance;
622
622
  };
623
623
  }
624
- function He() {
624
+ function Ve() {
625
625
  let e = null, t = null;
626
626
  return {
627
627
  build(n, r) {
628
- t = Se(n, r), e = Re(t, {
628
+ t = xe(n, r), e = Le(t, {
629
629
  oriented: r.oriented,
630
- distance: Ve()
630
+ distance: Be()
631
631
  });
632
632
  },
633
633
  hasNode(e) {
@@ -637,7 +637,7 @@ function He() {
637
637
  if (!e) return [];
638
638
  let r = e.find(t, n);
639
639
  return r.length ? r.map((e) => {
640
- let [t, n, r] = V(e.id);
640
+ let [t, n, r] = H(e.id);
641
641
  return {
642
642
  id: e.id,
643
643
  layer: t,
@@ -650,10 +650,10 @@ function He() {
650
650
  }
651
651
  //#endregion
652
652
  //#region ../wayfinding/src/core/graph/graphCache.ts
653
- function Ue() {
653
+ function He() {
654
654
  let e = null, t = !1;
655
655
  return { getOrBuild(n, r) {
656
- return e && t === r ? e : (e = ce(n, He(), {
656
+ return e && t === r ? e : (e = se(n, Ve(), {
657
657
  oriented: !0,
658
658
  onlyAccessible: r
659
659
  }), t = r, e);
@@ -661,71 +661,71 @@ function Ue() {
661
661
  }
662
662
  //#endregion
663
663
  //#region ../wayfinding/src/core/routing/getRouteLength.ts
664
- function H(e) {
665
- return e.reduce((e, t) => e + x(t.p0, t.p1), 0);
664
+ function U(e) {
665
+ return e.reduce((e, t) => e + g(t.p0, t.p1), 0);
666
666
  }
667
667
  //#endregion
668
668
  //#region ../wayfinding/src/core/graph/findShortestPath.ts
669
- function We(e, t, n) {
669
+ function Ue(e, t, n) {
670
670
  return {
671
671
  layer: e,
672
672
  x: t,
673
673
  y: n
674
674
  };
675
675
  }
676
- function Ge(e, t) {
676
+ function We(e, t) {
677
677
  let n = 0;
678
678
  for (let r = 1; r < e.length; r++) {
679
- let i = pe(t, e[r - 1], e[r]);
680
- i && (n += xe(i));
679
+ let i = fe(t, e[r - 1], e[r]);
680
+ i && (n += be(i));
681
681
  }
682
682
  return n;
683
683
  }
684
- function Ke(e, t, n) {
684
+ function Ge(e, t, n) {
685
685
  let r = e.dataSource.getLines(), i = null, a = Infinity;
686
686
  for (let o of t) for (let t of n) {
687
- let n = L(o), s = L(t);
687
+ let n = R(o), s = R(t);
688
688
  if (!e.finder.hasNode(n) || !e.finder.hasNode(s)) {
689
689
  console.debug(`WF. findShortestPath: node not in graph, skipping pair ${n} → ${s}`);
690
690
  continue;
691
691
  }
692
692
  let c = e.finder.find(n, s);
693
693
  if (!c.length) continue;
694
- let l = c.map((e) => We(e.layer, e.x, e.y)), u = ge(l, r);
694
+ let l = c.map((e) => Ue(e.layer, e.x, e.y)), u = he(l, r);
695
695
  if (!u.length) continue;
696
- let d = Ge(l, r);
696
+ let d = We(l, r);
697
697
  d < a && (a = d, i = {
698
698
  lines: u,
699
- distance: H(u)
699
+ distance: U(u)
700
700
  });
701
701
  }
702
702
  return i;
703
703
  }
704
704
  //#endregion
705
705
  //#region ../wayfinding/src/core/routing/routeResult.ts
706
- var U = () => ({
706
+ var W = () => ({
707
707
  lines: [],
708
708
  totalDistance: 0
709
709
  });
710
710
  //#endregion
711
711
  //#region ../wayfinding/src/core/routing/buildRoute.ts
712
- function W(e, t, n) {
713
- if (!t.length || !n.length) return U();
714
- let r = Ke(e, t, n);
712
+ function Ke(e, t, n) {
713
+ if (!t.length || !n.length) return W();
714
+ let r = Ge(e, t, n);
715
715
  return r ? {
716
716
  lines: r.lines,
717
717
  totalDistance: r.distance
718
- } : U();
718
+ } : W();
719
719
  }
720
720
  //#endregion
721
721
  //#region ../wayfinding/src/core/routing/buildMultiPointRoute.ts
722
722
  function qe(e, t) {
723
- if (t.length < 2) return U();
723
+ if (t.length < 2) return W();
724
724
  let n = t.filter((e, n) => n === 0 || n === t.length - 1 || e.length > 0);
725
- if (n.length < 2) return U();
726
- if (n.length === 2) return W(e, n[0], n[1]);
725
+ if (n.length < 2) return W();
726
+ if (n.length === 2) return Ke(e, n[0], n[1]);
727
727
  let r = [];
728
- for (let t = 0; t < n.length - 1; t++) r.push(W(e, n[t], n[t + 1]));
728
+ for (let t = 0; t < n.length - 1; t++) r.push(Ke(e, n[t], n[t + 1]));
729
729
  return {
730
730
  lines: r.flatMap((e) => e.lines),
731
731
  totalDistance: r.reduce((e, t) => e + t.totalDistance, 0)
@@ -783,7 +783,7 @@ function $e(e, t) {
783
783
  //#endregion
784
784
  //#region ../wayfinding/src/core/geometry/projectPointOnSegment.ts
785
785
  function et(e, t, n) {
786
- let { projected: r, distance: i, t: a } = N({
786
+ let { projected: r, distance: i, t: a } = P({
787
787
  p0: t,
788
788
  p1: n
789
789
  }, e);
@@ -892,14 +892,14 @@ function ut(e, t, n) {
892
892
  return t && (r = ct(r, t)), n && (r = lt(r, n)), r;
893
893
  }
894
894
  function dt(e) {
895
- let t = Ue();
895
+ let t = He();
896
896
  return {
897
897
  buildRoute(n, r, i) {
898
898
  var a;
899
- let o = t.getOrBuild(e, (a = i == null ? void 0 : i.accessible) != null && a), s = ot(o, n), c = ot(o, r), l = W(o, s.candidates, c.candidates), u = !!s.offGraphEntry || !!c.offGraphEntry, d = ut(l.lines, s.offGraphEntry, c.offGraphEntry);
899
+ let o = t.getOrBuild(e, (a = i == null ? void 0 : i.accessible) != null && a), s = ot(o, n), c = ot(o, r), l = Ke(o, s.candidates, c.candidates), u = !!s.offGraphEntry || !!c.offGraphEntry, d = ut(l.lines, s.offGraphEntry, c.offGraphEntry);
900
900
  return {
901
901
  lines: d,
902
- distance: u ? H(d) : l.totalDistance
902
+ distance: u ? U(d) : l.totalDistance
903
903
  };
904
904
  },
905
905
  buildWaypointsRoute(n, r) {
@@ -911,7 +911,7 @@ function dt(e) {
911
911
  let a = t.getOrBuild(e, (i = r == null ? void 0 : r.accessible) != null && i), o = (r != null && r.fastest ? Ze(n) : n).map((e) => ot(a, e)), s = qe(a, o.map((e) => e.candidates)), c = o[0].offGraphEntry, l = o[o.length - 1].offGraphEntry, u = !!c || !!l, d = ut(s.lines, c, l);
912
912
  return {
913
913
  lines: d,
914
- distance: u ? H(d) : s.totalDistance
914
+ distance: u ? U(d) : s.totalDistance
915
915
  };
916
916
  }
917
917
  };
@@ -920,7 +920,7 @@ function dt(e) {
920
920
  //#region ../wayfinding/src/core/rendering/computeTrailPoints.ts
921
921
  var ft = .4, pt = 8;
922
922
  function mt(e, t, n = pt, r = ft) {
923
- let i = x(t, e);
923
+ let i = g(t, e);
924
924
  if (i === 0 || n <= 0) return [];
925
925
  let a = Math.max(Math.ceil(i / n) + 1, 2), o = {
926
926
  x: (e.x + t.x) / 2,
@@ -988,7 +988,7 @@ function xt(e) {
988
988
  //#region ../wayfinding/src/core/position/gpsThreshold.ts
989
989
  var St = 7.5, Ct = 15, wt = 20;
990
990
  function Tt(e, t) {
991
- let { p0: n, p2: r } = t, i = O(n, r), a = x(n, r);
991
+ let { p0: n, p2: r } = t, i = O(n, r), a = g(n, r);
992
992
  return !i || !a ? 0 : a / i * e;
993
993
  }
994
994
  var Et = (e) => {
@@ -1011,7 +1011,7 @@ function kt(e) {
1011
1011
  //#region ../wayfinding/src/core/position/distanceToRoute.ts
1012
1012
  function At(e, t, n, r, i, a) {
1013
1013
  let o = i - n, s = a - r, c = e - n, l = t - r, u = o * o + s * s;
1014
- if (u === 0) return x({
1014
+ if (u === 0) return g({
1015
1015
  x: e,
1016
1016
  y: t
1017
1017
  }, {
@@ -1021,7 +1021,7 @@ function At(e, t, n, r, i, a) {
1021
1021
  let d = (c * o + l * s) / u;
1022
1022
  d < 0 ? d = 0 : d > 1 && (d = 1);
1023
1023
  let f = n + d * o, p = r + d * s;
1024
- return x({
1024
+ return g({
1025
1025
  x: e,
1026
1026
  y: t
1027
1027
  }, {
@@ -1054,7 +1054,7 @@ function Nt(e, t, { snapThreshold: n }) {
1054
1054
  if (!r) return { snapped: !1 };
1055
1055
  let i = e.layer || null, a = Infinity, o = null, s = 0, c = i == null;
1056
1056
  for (let n = 0; n < r; n++) {
1057
- let r = t[n], { p0: l, p1: u } = r, d = x(l, u);
1057
+ let r = t[n], { p0: l, p1: u } = r, d = g(l, u);
1058
1058
  if (d === 0) continue;
1059
1059
  if (i != null && String(l.layer) !== i) {
1060
1060
  s += d;
@@ -1159,33 +1159,33 @@ function Lt(e, t, n, r = !1) {
1159
1159
  }
1160
1160
  function f(n, a, o, l = o.rotation) {
1161
1161
  var d, f, p;
1162
- let h = c(o), g = Ft(o.canvas, o.width, o.height), _ = (d = o.screenSpace) == null ? r : d;
1163
- e.touchLayer(h);
1164
- let v = {
1162
+ let m = c(o), h = Ft(o.canvas, o.width, o.height), g = (d = o.screenSpace) == null ? r : d;
1163
+ e.touchLayer(m);
1164
+ let _ = {
1165
1165
  source: o.canvas,
1166
- bounds: new m({
1166
+ bounds: new C({
1167
1167
  x: o.x,
1168
1168
  y: o.y
1169
1169
  }, Rt, l),
1170
1170
  hidden: (f = o.hidden) != null && f,
1171
1171
  dim: +!!o.dimmed,
1172
1172
  origin: o.origin,
1173
- screenSpace: _
1173
+ screenSpace: g
1174
1174
  };
1175
- o.cardinalSnap && !_ && t.attachCardinalSnap(v), v.onScale = ({ pixelSize: e }) => It(v, g, e), h.children.push(v);
1176
- let y = {
1177
- imageDef: v,
1178
- layer: h,
1175
+ o.cardinalSnap && !g && t.attachCardinalSnap(_), _.onScale = ({ pixelSize: e }) => It(_, h, e), m.children.push(_);
1176
+ let v = {
1177
+ imageDef: _,
1178
+ layer: m,
1179
1179
  callback: (p = o.onClick) == null ? null : p
1180
1180
  };
1181
- return i.set(n, y), s.set(v, y), u(a, n), y;
1181
+ return i.set(n, v), s.set(_, v), u(a, n), v;
1182
1182
  }
1183
1183
  function p(t, n, r, a) {
1184
1184
  var o;
1185
1185
  let c = r.layer.children, l = c.indexOf(r.imageDef), u = (o = a.rotation) == null ? r.imageDef.bounds.rotation : o;
1186
1186
  r.imageDef.hidden = !0, e.touchDef(r.imageDef), l >= 0 && c.splice(l, 1), e.touchLayer(r.layer), i.delete(t), s.delete(r.imageDef), d(t), f(t, n, a, u);
1187
1187
  }
1188
- function h(t, r, i, a) {
1188
+ function m(t, r, i, a) {
1189
1189
  var o, s, l;
1190
1190
  if (i.layer !== c(a)) throw Error(`renderer: icon "${t}" cannot move between layers (was onTop=${i.layer === n.currentPosition}, got onTop=${!!a.onTop})`);
1191
1191
  if (i.imageDef.source !== a.canvas) {
@@ -1195,7 +1195,7 @@ function Lt(e, t, n, r = !1) {
1195
1195
  let u = i.imageDef.bounds, d = (o = a.rotation) == null ? u.rotation : o;
1196
1196
  u.set(a.x, a.y, u.size.x, u.size.y, d, u.elevation), i.imageDef.hidden = (s = a.hidden) != null && s, i.imageDef.dim = +!!a.dimmed, i.callback = (l = a.onClick) == null ? null : l, e.touchDef(i.imageDef);
1197
1197
  }
1198
- function g(t) {
1198
+ function h(t) {
1199
1199
  t.imageDef.hidden = !0, t.callback = null, e.touchDef(t.imageDef);
1200
1200
  }
1201
1201
  return {
@@ -1203,11 +1203,11 @@ function Lt(e, t, n, r = !1) {
1203
1203
  let r = l(e, n);
1204
1204
  if (t === null) {
1205
1205
  let e = i.get(r);
1206
- e && g(e);
1206
+ e && h(e);
1207
1207
  return;
1208
1208
  }
1209
1209
  let a = i.get(r);
1210
- a ? h(r, e, a, t) : f(r, e, t);
1210
+ a ? m(r, e, a, t) : f(r, e, t);
1211
1211
  },
1212
1212
  clearIcons(e) {
1213
1213
  let t = typeof e == "string" ? [e] : e;
@@ -1215,12 +1215,12 @@ function Lt(e, t, n, r = !1) {
1215
1215
  let t = a.get(e);
1216
1216
  if (t) for (let e of t) {
1217
1217
  let t = i.get(e);
1218
- t && g(t);
1218
+ t && h(t);
1219
1219
  }
1220
1220
  }
1221
1221
  },
1222
1222
  hideAll() {
1223
- for (let e of i.values()) g(e);
1223
+ for (let e of i.values()) h(e);
1224
1224
  },
1225
1225
  destroy() {
1226
1226
  for (let t of i.values()) {
@@ -1458,7 +1458,7 @@ function Kt(e, t) {
1458
1458
  if (a.length > d) {
1459
1459
  let n = a.slice(d).map((e) => ({
1460
1460
  source: c,
1461
- bounds: new m({
1461
+ bounds: new C({
1462
1462
  x: e.x,
1463
1463
  y: e.y
1464
1464
  }, l)
@@ -1603,7 +1603,7 @@ var rn = "current-position", an = "position";
1603
1603
  function on({ renderer: e, iconProvider: t }) {
1604
1604
  return {
1605
1605
  place(n, r) {
1606
- let i = Number.isFinite(n.heading), a = i ? "current_arrow" : "current", o = i ? y(n.heading) : void 0, s = t.getIcon(a);
1606
+ let i = Number.isFinite(n.heading), a = i ? "current_arrow" : "current", o = i ? S(n.heading) : void 0, s = t.getIcon(a);
1607
1607
  e.setIcon(an, {
1608
1608
  canvas: s.canvas,
1609
1609
  width: s.width,
@@ -1686,7 +1686,7 @@ function dn(e, t, n, r, i) {
1686
1686
  snapped: !0,
1687
1687
  snappedPoint: e.p0,
1688
1688
  snappedLine: e,
1689
- distance: H(t)
1689
+ distance: U(t)
1690
1690
  };
1691
1691
  }
1692
1692
  if (un(e, r, a)) {
@@ -1751,7 +1751,7 @@ function hn({ routeLines: e, currentRouteLayer: t, snap: n }) {
1751
1751
  if (!(n != null && n.snapped)) return {
1752
1752
  passed: [],
1753
1753
  remaining: i(r),
1754
- distance: H(r)
1754
+ distance: U(r)
1755
1755
  };
1756
1756
  let { passed: a, remaining: o } = Pt(r, n.snappedPoint), s = o !== r && o.length > 0 && o[0].p0.layer === n.snappedPoint.layer ? [{
1757
1757
  ...o[0],
@@ -1948,12 +1948,12 @@ function Sn({ engine: e, renderer: t, iconProvider: n, floorContext: r, snapThre
1948
1948
  waypoints: i,
1949
1949
  accessible: a
1950
1950
  });
1951
- if (!o.length) return M(), !1;
1951
+ if (!o.length) return N(), !1;
1952
1952
  b = !1, g = n, _ = r, h = o, O();
1953
1953
  let { lines: s } = j(), l = A();
1954
- return k(), D(l), l && E(l, !0), c(l ? y : H(s)), t.flush(), !0;
1954
+ return k(), D(l), l && E(l, !0), c(l ? y : U(s)), t.flush(), !0;
1955
1955
  }
1956
- function te(e) {
1956
+ function M(e) {
1957
1957
  let n = v !== null;
1958
1958
  if (v = e, !e) {
1959
1959
  x = !1, p.hideIcon(), D(null), n && k(), E(), c(y), t.flush();
@@ -1963,24 +1963,24 @@ function Sn({ engine: e, renderer: t, iconProvider: n, floorContext: r, snapThre
1963
1963
  let r = A();
1964
1964
  k(), D(r), r && E(r, !0), c(y), t.flush();
1965
1965
  }
1966
- function ne() {
1966
+ function te() {
1967
1967
  O();
1968
1968
  let e = A();
1969
1969
  k(), D(e), e && E(e, !0), h.length && j(), c(y), t.flush();
1970
1970
  }
1971
- function M() {
1971
+ function N() {
1972
1972
  b = !1, h = [], g = null, _ = null, y = 0, u.hide(), f.clear(), p.clearTrail(), m.clear(), s([], new d()), c(0), t.flush();
1973
1973
  }
1974
- function N() {
1975
- M(), v = null, t.destroy();
1974
+ function P() {
1975
+ N(), v = null, t.destroy();
1976
1976
  }
1977
1977
  return {
1978
1978
  setRoute: ee,
1979
- onPositionChanged: te,
1980
- onFloorChanged: ne,
1979
+ onPositionChanged: M,
1980
+ onFloorChanged: te,
1981
1981
  shouldReroute: w,
1982
- clearRoute: M,
1983
- destroy: N
1982
+ clearRoute: N,
1983
+ destroy: P
1984
1984
  };
1985
1985
  }
1986
1986
  //#endregion
@@ -2042,7 +2042,7 @@ function En(e, t, n) {
2042
2042
  //#region src/wayfinding/adapters/boothToEndpoint.ts
2043
2043
  function Dn(e) {
2044
2044
  var t, n;
2045
- let r = e.rect, i = m.fromMinMax(r.min, r.max, e.rotate).corners();
2045
+ let r = e.rect, i = C.fromMinMax(r.min, r.max, e.rotate).corners();
2046
2046
  return {
2047
2047
  x: r.center.x,
2048
2048
  y: r.center.y,
@@ -2055,9 +2055,9 @@ function Dn(e) {
2055
2055
  var On = "#00A2FF", kn = "#FF9F06", J = 34, An = 4, jn = 56;
2056
2056
  function Y(e, t, n, r, i, a) {
2057
2057
  let o = e.get(t);
2058
- return o ? (o.id = t, l(o, n, r, i)) : a();
2058
+ return o ? (o.id = t, s(o, n, r, i)) : a();
2059
2059
  }
2060
- function X(e, t = g(e)) {
2060
+ function X(e, t = a(e)) {
2061
2061
  return {
2062
2062
  canvas: e,
2063
2063
  width: t.width,
@@ -2066,16 +2066,16 @@ function X(e, t = g(e)) {
2066
2066
  }
2067
2067
  function Mn(e) {
2068
2068
  var t, n;
2069
- let { iconMap: r, pixelRatio: i } = e, o = (t = e.sourceColor) == null ? On : t, s = (n = e.destinationColor) == null ? kn : n, l = /* @__PURE__ */ new Map();
2070
- l.set("destination", X(Y(r, "destination", J, J, i, () => a(i, s)))), l.set("source", X(Y(r, "departure", J, J, i, () => T(i, o)))), l.set("source_inactive", X(Y(r, "departure_inactive", J, J, i, () => T(i, o))));
2071
- let u = T(i, o);
2072
- u.id = "current-location", l.set("current", X(u));
2073
- let d = Y(r, "transition", J, J, i, () => T(i, o));
2074
- return l.set("transition", X(d)), l.set("transition_up", X(Y(r, "transition_up", jn, J, i, () => d))), l.set("transition_down", X(Y(r, "transition_down", jn, J, i, () => d))), l.set("transition_entry", X(Y(r, "departure", J, J, i, () => T(i, o)))), l.set("current_arrow", X(Y(r, "direction", J, J, i, () => f(i, o)))), l.set("trail", X(c(An, "#b5b7bc"), {
2075
- width: E(An),
2076
- height: E(An)
2069
+ let { iconMap: r, pixelRatio: i } = e, a = (t = e.sourceColor) == null ? On : t, s = (n = e.destinationColor) == null ? kn : n, c = /* @__PURE__ */ new Map();
2070
+ c.set("destination", X(Y(r, "destination", J, J, i, () => u(i, s)))), c.set("source", X(Y(r, "departure", J, J, i, () => f(i, a)))), c.set("source_inactive", X(Y(r, "departure_inactive", J, J, i, () => f(i, a))));
2071
+ let l = f(i, a);
2072
+ l.id = "current-location", c.set("current", X(l));
2073
+ let d = Y(r, "transition", J, J, i, () => f(i, a));
2074
+ return c.set("transition", X(d)), c.set("transition_up", X(Y(r, "transition_up", jn, J, i, () => d))), c.set("transition_down", X(Y(r, "transition_down", jn, J, i, () => d))), c.set("transition_entry", X(Y(r, "departure", J, J, i, () => f(i, a)))), c.set("current_arrow", X(Y(r, "direction", J, J, i, () => T(i, a)))), c.set("trail", X(o(An, "#b5b7bc"), {
2075
+ width: m(An),
2076
+ height: m(An)
2077
2077
  })), { getIcon(e) {
2078
- let t = l.get(e);
2078
+ let t = c.get(e);
2079
2079
  if (!t) throw Error(`Unknown icon: ${e}`);
2080
2080
  return t;
2081
2081
  } };
@@ -2108,17 +2108,17 @@ function Fn() {
2108
2108
  return {
2109
2109
  getLines: () => {
2110
2110
  var e, t;
2111
- return (e = (t = o()) == null ? void 0 : t.lines) == null ? [] : e;
2111
+ return (e = (t = l()) == null ? void 0 : t.lines) == null ? [] : e;
2112
2112
  },
2113
2113
  getLineEnds: () => {
2114
2114
  var e, t;
2115
- return (e = (t = o()) == null ? void 0 : t.lineEnds) == null ? [] : e;
2115
+ return (e = (t = l()) == null ? void 0 : t.lineEnds) == null ? [] : e;
2116
2116
  }
2117
2117
  };
2118
2118
  }
2119
2119
  //#endregion
2120
2120
  //#region src/utils/math.ts
2121
- var In = /* @__PURE__ */ e(w(), 1);
2121
+ var In = /* @__PURE__ */ e(E(), 1);
2122
2122
  function Z(e, t) {
2123
2123
  return e * (1 - t / 100);
2124
2124
  }
@@ -2130,9 +2130,9 @@ function Vn(e, t) {
2130
2130
  if (r) {
2131
2131
  r.id = "kiosk";
2132
2132
  let e = t ? t / 100 : 1;
2133
- return l(r, Z(Ln * e, zn), Z(Rn * e, zn), n);
2133
+ return s(r, Z(Ln * e, zn), Z(Rn * e, zn), n);
2134
2134
  }
2135
- return f(n, (0, In.default)(Bn).hex());
2135
+ return T(n, (0, In.default)(Bn).hex());
2136
2136
  }
2137
2137
  //#endregion
2138
2138
  //#region src/wayfinding/adapters/positionInput.ts
@@ -2243,7 +2243,7 @@ function qn({ wayfinding: e, kioskIconMap: t }) {
2243
2243
  return n.set(r, a), a;
2244
2244
  };
2245
2245
  return (t, n, i) => {
2246
- var a;
2246
+ var o;
2247
2247
  if (!t) {
2248
2248
  e.setIcon(Gn, null), e.flush();
2249
2249
  return;
@@ -2252,13 +2252,13 @@ function qn({ wayfinding: e, kioskIconMap: t }) {
2252
2252
  e.setIcon(Gn, null), e.flush();
2253
2253
  return;
2254
2254
  }
2255
- let o = r(t.iconSizePercent);
2255
+ let s = r(t.iconSizePercent);
2256
2256
  e.setIcon(Gn, {
2257
- canvas: o,
2258
- ...g(o),
2257
+ canvas: s,
2258
+ ...a(s),
2259
2259
  x: t.x,
2260
2260
  y: t.y,
2261
- rotation: y((a = t.heading) == null ? 0 : a),
2261
+ rotation: S((o = t.heading) == null ? 0 : o),
2262
2262
  screenSpace: !1
2263
2263
  }), e.flush();
2264
2264
  };
@@ -2268,7 +2268,7 @@ function qn({ wayfinding: e, kioskIconMap: t }) {
2268
2268
  var Q = "yah", Jn = "#ff4343", Yn = 64, Xn = 90, Zn = 32;
2269
2269
  function Qn(e, t) {
2270
2270
  let n = e.get(Q);
2271
- return n ? (n.id = Q, l(n, Z(Yn, Zn), Z(Xn, Zn), t)) : s(t, Jn);
2271
+ return n ? (n.id = Q, s(n, Z(Yn, Zn), Z(Xn, Zn), t)) : _(t, Jn);
2272
2272
  }
2273
2273
  function $n({ wayfinding: e, iconMap: t, pixelRatio: n, floorContext: r }) {
2274
2274
  let i = Qn(t, n);
@@ -2280,7 +2280,7 @@ function $n({ wayfinding: e, iconMap: t, pixelRatio: n, floorContext: r }) {
2280
2280
  let n = r.isLayerVisible(t.layer);
2281
2281
  e.setIcon(Q, {
2282
2282
  canvas: i,
2283
- ...g(i),
2283
+ ...a(i),
2284
2284
  x: t.x,
2285
2285
  y: t.y,
2286
2286
  hidden: !n,
@@ -2304,11 +2304,11 @@ function nr(e, t, n) {
2304
2304
  }
2305
2305
  function rr(e) {
2306
2306
  let { scene: t, store: n, canvas: r } = e, i = nn(t.rootLayer), { wayfinding: a, dispose: o } = ir(n, i, {
2307
- attachCardinalSnap: S,
2308
- update: b
2307
+ attachCardinalSnap: x,
2308
+ update: y
2309
2309
  }), s = i.icons;
2310
- return s.onClick = (e) => or(a, e), s.onPointerMove = (e) => sr(a, r, e), s.onPointerOut = () => sr(a, r), b(s), () => {
2311
- s.onClick = void 0, s.onPointerMove = void 0, s.onPointerOut = void 0, r.current && (r.current.style.cursor = ""), b(s), o();
2310
+ return s.onClick = (e) => or(a, e), s.onPointerMove = (e) => sr(a, r, e), s.onPointerOut = () => sr(a, r), y(s), () => {
2311
+ s.onClick = void 0, s.onPointerMove = void 0, s.onPointerOut = void 0, r.current && (r.current.style.cursor = ""), y(s), o();
2312
2312
  };
2313
2313
  }
2314
2314
  function ir(e, t, n) {
@@ -2322,7 +2322,7 @@ function ir(e, t, n) {
2322
2322
  iconProvider: a,
2323
2323
  floorContext: o,
2324
2324
  layers: t,
2325
- gpsConfig: (r = P()) == null || (r = r.properties) == null ? void 0 : r.config,
2325
+ gpsConfig: (r = F()) == null || (r = r.properties) == null ? void 0 : r.config,
2326
2326
  screenSpaceIcons: e.uiState.is3DView,
2327
2327
  onTransitionClick: (t) => {
2328
2328
  t.role === "exit" && e.layerStore.updateVisibility(t.targetLayer, !0);
@@ -2371,4 +2371,4 @@ function sr(e, t, n) {
2371
2371
  r.style.cursor = i ? "pointer" : "";
2372
2372
  }
2373
2373
  //#endregion
2374
- export { M as _, wn as a, rn as c, se as d, ae as f, P as g, ie as h, Dn as i, tn as l, I as m, rr as n, Tn as o, oe as p, er as r, En as s, nr as t, Xe as u, O as v };
2374
+ export { N as _, wn as a, rn as c, oe as d, ie as f, F as g, re as h, Dn as i, tn as l, L as m, rr as n, Tn as o, ae as p, er as r, En as s, nr as t, Xe as u, O as v };