@eyeon/map 2.0.43 → 2.0.45

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 (39) hide show
  1. package/dist/assets/index.css +1 -1
  2. package/dist/chunks/MapViewer.js +2611 -2598
  3. package/dist/chunks/MapViewer.js.map +1 -1
  4. package/dist/chunks/responsive.js +1741 -1727
  5. package/dist/chunks/responsive.js.map +1 -1
  6. package/dist/chunks/wheelZoom.js +159 -159
  7. package/dist/chunks/wheelZoom.js.map +1 -1
  8. package/dist/core/import/index.d.ts +7 -0
  9. package/dist/core/import/index.d.ts.map +1 -1
  10. package/dist/core/index.js +161 -160
  11. package/dist/core/outdoorDecoration.d.ts +3 -2
  12. package/dist/core/outdoorDecoration.d.ts.map +1 -1
  13. package/dist/core/publish/index.d.ts +3 -3
  14. package/dist/core/publish/index.d.ts.map +1 -1
  15. package/dist/editor/MapEditor.d.ts +8 -1
  16. package/dist/editor/MapEditor.d.ts.map +1 -1
  17. package/dist/editor/canvas/EditorCanvas.d.ts.map +1 -1
  18. package/dist/editor/canvas/OutdoorSvgUnderlay.d.ts +3 -1
  19. package/dist/editor/canvas/OutdoorSvgUnderlay.d.ts.map +1 -1
  20. package/dist/editor/index.css +15 -0
  21. package/dist/editor/index.js +4638 -4527
  22. package/dist/editor/index.js.map +1 -1
  23. package/dist/editor/panels/ClassicMapFooter.d.ts +8 -4
  24. package/dist/editor/panels/ClassicMapFooter.d.ts.map +1 -1
  25. package/dist/editor/panels/LeftRail.d.ts +2 -1
  26. package/dist/editor/panels/LeftRail.d.ts.map +1 -1
  27. package/dist/editor/panels/PreviewOverlay.d.ts +3 -1
  28. package/dist/editor/panels/PreviewOverlay.d.ts.map +1 -1
  29. package/dist/editor/previewDocument.d.ts +2 -0
  30. package/dist/editor/previewDocument.d.ts.map +1 -1
  31. package/dist/viewer/MapViewer.d.ts +5 -0
  32. package/dist/viewer/MapViewer.d.ts.map +1 -1
  33. package/dist/viewer/components/LevelMeshes.d.ts.map +1 -1
  34. package/dist/viewer/components/MapScene.d.ts +6 -1
  35. package/dist/viewer/components/MapScene.d.ts.map +1 -1
  36. package/dist/viewer/components/SvgVectorLayer.d.ts +6 -1
  37. package/dist/viewer/components/SvgVectorLayer.d.ts.map +1 -1
  38. package/dist/viewer/index.js +4 -4
  39. package/package.json +2 -2
@@ -1,52 +1,52 @@
1
- import Ee from "ngraph.graph";
2
- import Le from "ngraph.path";
3
- const Lt = "transparent", Dt = "#94a3b8", Ne = 0.28, Kt = 32, Te = 48, mt = 56;
4
- function W(t) {
5
- const e = (t ?? "").trim().toLowerCase();
6
- return e === Lt || e === "none";
7
- }
8
- function Yt(t) {
9
- const e = t.replace("#", "").trim();
10
- if (e.length === 3) {
1
+ import Ln from "ngraph.graph";
2
+ import Nn from "ngraph.path";
3
+ const Ne = "transparent", De = "#94a3b8", Tn = 0.28, Ke = 32, Mn = 48, pe = 56;
4
+ function W(e) {
5
+ const n = (e ?? "").trim().toLowerCase();
6
+ return n === Ne || n === "none";
7
+ }
8
+ function Ye(e) {
9
+ const n = e.replace("#", "").trim();
10
+ if (n.length === 3) {
11
11
  const i = [
12
- parseInt(e[0] + e[0], 16),
13
- parseInt(e[1] + e[1], 16),
14
- parseInt(e[2] + e[2], 16)
12
+ parseInt(n[0] + n[0], 16),
13
+ parseInt(n[1] + n[1], 16),
14
+ parseInt(n[2] + n[2], 16)
15
15
  ];
16
16
  return i.some((c) => Number.isNaN(c)) ? null : i;
17
17
  }
18
- if (e.length !== 6) return null;
19
- const n = parseInt(e.slice(0, 2), 16), r = parseInt(e.slice(2, 4), 16), o = parseInt(e.slice(4, 6), 16);
20
- return [n, r, o].some((i) => Number.isNaN(i)) ? null : [n, r, o];
18
+ if (n.length !== 6) return null;
19
+ const t = parseInt(n.slice(0, 2), 16), r = parseInt(n.slice(2, 4), 16), o = parseInt(n.slice(4, 6), 16);
20
+ return [t, r, o].some((i) => Number.isNaN(i)) ? null : [t, r, o];
21
21
  }
22
- function $t(t, e, n) {
22
+ function Be(e, n, t) {
23
23
  const r = (o) => Math.max(0, Math.min(255, Math.round(o))).toString(16).padStart(2, "0");
24
- return `#${r(t)}${r(e)}${r(n)}`;
24
+ return `#${r(e)}${r(n)}${r(t)}`;
25
25
  }
26
- function lo(t, e = Dt) {
27
- const n = W(t) ? e : t, r = Yt(n) ?? Yt(e);
28
- return r ? Me(r) : Dt;
26
+ function fo(e, n = De) {
27
+ const t = W(e) ? n : e, r = Ye(t) ?? Ye(n);
28
+ return r ? wn(r) : De;
29
29
  }
30
- function Me([t, e, n]) {
31
- const r = Math.max(t, e, n);
32
- if (r < Te)
33
- return $t(t + mt, e + mt, n + mt);
34
- let o = 1 - Ne, i = t * o, c = e * o, a = n * o;
35
- return r - Math.max(i, c, a) < Kt && (o = (r - Kt) / r, i = t * o, c = e * o, a = n * o), $t(i, c, a);
30
+ function wn([e, n, t]) {
31
+ const r = Math.max(e, n, t);
32
+ if (r < Mn)
33
+ return Be(e + pe, n + pe, t + pe);
34
+ let o = 1 - Tn, i = e * o, c = n * o, a = t * o;
35
+ return r - Math.max(i, c, a) < Ke && (o = (r - Ke) / r, i = e * o, c = n * o, a = t * o), Be(i, c, a);
36
36
  }
37
- const ce = "#E9F7FC", we = [
37
+ const an = "#E9F7FC", Pn = [
38
38
  "green-area",
39
39
  "water-area",
40
40
  "parking-lane",
41
41
  "parking-icon",
42
42
  "walking-path"
43
- ], Pe = {
43
+ ], Fn = {
44
44
  "green-area": "GREEN_AREA_COLOR",
45
45
  "water-area": "WATER_COLOR",
46
46
  "parking-lane": "PARKING_LANE_COLOR",
47
47
  "parking-icon": "PARKING_ICON_COLOR",
48
48
  "walking-path": "WALKABLE_COLOR"
49
- }, Fe = 2, ae = {
49
+ }, Dn = 2, ln = {
50
50
  "green-area": {
51
51
  fill: "#C4DDAB",
52
52
  // Same band as other artwork. Parking lanes are pulled under green areas
@@ -70,16 +70,16 @@ const ce = "#E9F7FC", we = [
70
70
  extrudeHeight: 1
71
71
  },
72
72
  "walking-path": {
73
- fill: ce,
73
+ fill: an,
74
74
  renderOrder: 2,
75
75
  extrudeHeight: 1
76
76
  }
77
77
  };
78
- function U(t) {
79
- const e = ae[t];
80
- return e.fill ?? e.stroke ?? "";
78
+ function U(e) {
79
+ const n = ln[e];
80
+ return n.fill ?? n.stroke ?? "";
81
81
  }
82
- function De() {
82
+ function Kn() {
83
83
  return {
84
84
  GREEN_AREA_COLOR: U("green-area"),
85
85
  WATER_COLOR: U("water-area"),
@@ -88,101 +88,101 @@ function De() {
88
88
  WALKABLE_COLOR: U("walking-path")
89
89
  };
90
90
  }
91
- const pt = {
91
+ const xe = {
92
92
  amenity: "#444444",
93
93
  kiosk: "#444444",
94
94
  connector: "#0763b1"
95
- }, uo = {
95
+ }, ho = {
96
96
  amenity: "AMENITY_ICON_COLOR",
97
97
  kiosk: "KIOSK_ICON_COLOR",
98
98
  connector: "CONNECTOR_ICON_COLOR"
99
99
  };
100
- function Ke() {
100
+ function Yn() {
101
101
  return {
102
- AMENITY_ICON_COLOR: pt.amenity,
103
- KIOSK_ICON_COLOR: pt.kiosk,
104
- CONNECTOR_ICON_COLOR: pt.connector
102
+ AMENITY_ICON_COLOR: xe.amenity,
103
+ KIOSK_ICON_COLOR: xe.kiosk,
104
+ CONNECTOR_ICON_COLOR: xe.connector
105
105
  };
106
106
  }
107
- function le(t) {
108
- return t.toLowerCase().replace(/[-_]+/g, " ").replace(/\s+/g, " ").trim();
107
+ function un(e) {
108
+ return e.toLowerCase().replace(/[-_]+/g, " ").replace(/\s+/g, " ").trim();
109
109
  }
110
- function Ye(t, e) {
111
- const n = le(e);
112
- return !!(t === n || t.startsWith(`${n} `) || t === `${n}s` || t.startsWith(`${n}s `));
110
+ function Bn(e, n) {
111
+ const t = un(n);
112
+ return !!(e === t || e.startsWith(`${t} `) || e === `${t}s` || e.startsWith(`${t}s `));
113
113
  }
114
- function ut(t) {
115
- if (!t) return null;
116
- const e = le(t);
114
+ function de(e) {
117
115
  if (!e) return null;
118
- const n = [...we].sort((r, o) => o.length - r.length);
119
- for (const r of n)
120
- if (Ye(e, r)) return r;
116
+ const n = un(e);
117
+ if (!n) return null;
118
+ const t = [...Pn].sort((r, o) => o.length - r.length);
119
+ for (const r of t)
120
+ if (Bn(n, r)) return r;
121
121
  return null;
122
122
  }
123
- function $e(t, e, n) {
124
- const r = Pe[e];
125
- if (!r) return t;
126
- const o = n == null ? void 0 : n[r];
127
- return typeof o != "string" ? t : W(o) ? t.fill ? { ...t, fill: "transparent" } : t.stroke ? { ...t, stroke: "transparent" } : t : o.trim() ? t.fill ? { ...t, fill: o } : t.stroke ? { ...t, stroke: o } : t : t;
123
+ function $n(e, n, t) {
124
+ const r = Fn[n];
125
+ if (!r) return e;
126
+ const o = t == null ? void 0 : t[r];
127
+ return typeof o != "string" ? e : W(o) ? e.fill ? { ...e, fill: "transparent" } : e.stroke ? { ...e, stroke: "transparent" } : e : o.trim() ? e.fill ? { ...e, fill: o } : e.stroke ? { ...e, stroke: o } : e : e;
128
128
  }
129
- function ft(t, e) {
130
- const n = ut(t);
131
- return n ? $e(ae[n], n, e) : null;
129
+ function he(e, n) {
130
+ const t = de(e);
131
+ return t ? $n(ln[t], t, n) : null;
132
132
  }
133
- function fo(t) {
134
- var e;
135
- return ((e = ft(t)) == null ? void 0 : e.renderOrder) ?? Fe;
133
+ function yo(e) {
134
+ var n;
135
+ return ((n = he(e)) == null ? void 0 : n.renderOrder) ?? Dn;
136
136
  }
137
- function it(t) {
138
- return ut(t) === "parking-lane";
137
+ function ce(e) {
138
+ return de(e) === "parking-lane";
139
139
  }
140
- function st(t) {
141
- return ut(t) === "parking-icon";
140
+ function ae(e) {
141
+ return de(e) === "parking-icon";
142
142
  }
143
- function Rt(t) {
144
- return ut(t) === "green-area";
143
+ function Ce(e) {
144
+ return de(e) === "green-area";
145
145
  }
146
- function ho(t, e) {
147
- const n = st(t.layerName), r = st(e.layerName);
148
- if (n !== r) return n ? 1 : -1;
149
- const o = it(t.layerName), i = it(e.layerName), c = Rt(t.layerName), a = Rt(e.layerName);
150
- return o && a ? -1 : c && i ? 1 : t.index - e.index;
146
+ function mo(e, n) {
147
+ const t = ae(e.layerName), r = ae(n.layerName);
148
+ if (t !== r) return t ? 1 : -1;
149
+ const o = ce(e.layerName), i = ce(n.layerName), c = Ce(e.layerName), a = Ce(n.layerName);
150
+ return o && a ? -1 : c && i ? 1 : e.index - n.index;
151
151
  }
152
- function yo(t, e) {
153
- const n = t.map((s, f) => ({
152
+ function po(e, n) {
153
+ const t = e.map((s, f) => ({
154
154
  item: s,
155
155
  index: f,
156
- layerName: e(s)
157
- })), r = n.filter((s) => st(s.layerName)), o = n.filter((s) => it(s.layerName)), i = n.filter(
158
- (s) => !st(s.layerName) && !it(s.layerName)
159
- ), c = i.findIndex((s) => Rt(s.layerName));
156
+ layerName: n(s)
157
+ })), r = t.filter((s) => ae(s.layerName)), o = t.filter((s) => ce(s.layerName)), i = t.filter(
158
+ (s) => !ae(s.layerName) && !ce(s.layerName)
159
+ ), c = i.findIndex((s) => Ce(s.layerName));
160
160
  return [...c >= 0 ? [
161
161
  ...i.slice(0, c),
162
162
  ...o,
163
163
  ...i.slice(c)
164
164
  ] : [...i, ...o].sort((s, f) => s.index - f.index), ...r].map((s) => s.item);
165
165
  }
166
- function Be(t, e) {
167
- const n = (e == null ? void 0 : e.omitStaticLayers) === !0, r = /* @__PURE__ */ new Set();
168
- for (const o of t) {
166
+ function zn(e, n) {
167
+ const t = (n == null ? void 0 : n.omitStaticLayers) === !0, r = /* @__PURE__ */ new Set();
168
+ for (const o of e) {
169
169
  const i = o.sourceSvgId;
170
- i && (n && ft(i) || r.add(i));
170
+ i && (t && he(i) || r.add(i));
171
171
  }
172
172
  return r;
173
173
  }
174
- function mo(t) {
175
- return Be(
176
- t.flatMap((e) => [...e.shapes]),
174
+ function xo(e) {
175
+ return zn(
176
+ e.flatMap((n) => [...n.shapes]),
177
177
  { omitStaticLayers: !0 }
178
178
  );
179
179
  }
180
- const po = ["escalator", "elevator"];
181
- function Ge(t) {
182
- return t === "escalator" || t === "elevator";
180
+ const bo = ["escalator", "elevator"];
181
+ function Gn(e) {
182
+ return e === "escalator" || e === "elevator";
183
183
  }
184
- function ze(t) {
185
- return t === "google" ? "google" : "transparent";
184
+ function Xn(e) {
185
+ return e === "google" ? "google" : "transparent";
186
186
  }
187
187
  const V = {
188
188
  MAP_STYLE: "2D",
@@ -203,26 +203,26 @@ const V = {
203
203
  OVERLAY_COLOR: "#000000",
204
204
  OVERLAY_OPACITY: 0.15,
205
205
  PARKING_ZONE_COLOR: "#cbd5e1",
206
- ...De(),
207
- ...Ke(),
206
+ ...Kn(),
207
+ ...Yn(),
208
208
  KIOSK_SIZE: 12,
209
209
  ZOOM_STEP: 0.5,
210
210
  CAMERA_MAX_DISTANCE: 2e3,
211
211
  CAMERA_MIN_DISTANCE: 50
212
- }, Xe = "#f5f5f5", He = /* @__PURE__ */ new Set(["#f8fafc", "#f1efea"]), Ue = "#86efac", Ve = "#7dd3fc", We = "#e2e8f0", Ze = 500, je = 100;
213
- function ue(t) {
214
- const e = typeof t == "number" ? t : Number(t);
215
- return !Number.isFinite(e) || e <= 0 ? 0 : Math.min(e, Ze);
212
+ }, Hn = "#f5f5f5", Un = /* @__PURE__ */ new Set(["#f8fafc", "#f1efea"]), Vn = "#86efac", Wn = "#7dd3fc", Zn = "#e2e8f0", jn = 500, qn = 100;
213
+ function fn(e) {
214
+ const n = typeof e == "number" ? e : Number(e);
215
+ return !Number.isFinite(n) || n <= 0 ? 0 : Math.min(n, jn);
216
216
  }
217
- function qe(t) {
218
- const e = typeof t == "number" ? t : Number(t);
219
- return !Number.isFinite(e) || e <= 0 ? V.ROUTE_THICKNESS : Math.min(e, je);
217
+ function Qn(e) {
218
+ const n = typeof e == "number" ? e : Number(e);
219
+ return !Number.isFinite(n) || n <= 0 ? V.ROUTE_THICKNESS : Math.min(n, qn);
220
220
  }
221
- function Qe(...t) {
222
- const e = Object.assign({}, V, ...t.filter(Boolean));
223
- return e.SURROUNDINGS = ze(e.SURROUNDINGS), e.MAP_BACKGROUND_COLOR.toLowerCase() === Xe && (e.MAP_BACKGROUND_COLOR = V.MAP_BACKGROUND_COLOR), He.has(e.WALKABLE_COLOR.toLowerCase()) && (e.WALKABLE_COLOR = ce), e.GREEN_AREA_COLOR.toLowerCase() === Ue && (e.GREEN_AREA_COLOR = V.GREEN_AREA_COLOR), e.WATER_COLOR.toLowerCase() === Ve && (e.WATER_COLOR = V.WATER_COLOR), e.STORE_DEFAULT_COLOR.toLowerCase() === We && (e.STORE_DEFAULT_COLOR = V.STORE_DEFAULT_COLOR), e.STORE_RADIUS = ue(e.STORE_RADIUS), e.ROUTE_THICKNESS = qe(e.ROUTE_THICKNESS), e;
221
+ function Jn(...e) {
222
+ const n = Object.assign({}, V, ...e.filter(Boolean));
223
+ return n.SURROUNDINGS = Xn(n.SURROUNDINGS), n.MAP_BACKGROUND_COLOR.toLowerCase() === Hn && (n.MAP_BACKGROUND_COLOR = V.MAP_BACKGROUND_COLOR), Un.has(n.WALKABLE_COLOR.toLowerCase()) && (n.WALKABLE_COLOR = an), n.GREEN_AREA_COLOR.toLowerCase() === Vn && (n.GREEN_AREA_COLOR = V.GREEN_AREA_COLOR), n.WATER_COLOR.toLowerCase() === Wn && (n.WATER_COLOR = V.WATER_COLOR), n.STORE_DEFAULT_COLOR.toLowerCase() === Zn && (n.STORE_DEFAULT_COLOR = V.STORE_DEFAULT_COLOR), n.STORE_RADIUS = fn(n.STORE_RADIUS), n.ROUTE_THICKNESS = Qn(n.ROUTE_THICKNESS), n;
224
224
  }
225
- const Je = [
225
+ const et = [
226
226
  "unit",
227
227
  "amenity",
228
228
  "kiosk_screen",
@@ -230,82 +230,82 @@ const Je = [
230
230
  "entrance",
231
231
  "parking_zone",
232
232
  "custom"
233
- ], Ct = 1e4, xo = 2.5, tn = {
233
+ ], ve = 1e4, Io = 2.5, nt = {
234
234
  lat: 39.8283,
235
235
  lng: -98.5795,
236
236
  zoom: 4,
237
237
  heading: 0
238
238
  };
239
- function en(t) {
240
- if (!t || typeof t != "object") return null;
241
- const e = t, n = Number(e.lat), r = Number(e.lng), o = Number(e.zoom), i = Number(e.heading);
242
- if (![n, r, o, i].every((l) => Number.isFinite(l)) || n < -90 || n > 90 || r < -180 || r > 180 || o < 1 || o > 21) return null;
243
- const c = (i % 360 + 360) % 360, a = Number(e.anchorZoom), s = Number(e.anchorX), f = Number(e.anchorY), y = Number.isFinite(a) && a > 0 ? {
239
+ function tt(e) {
240
+ if (!e || typeof e != "object") return null;
241
+ const n = e, t = Number(n.lat), r = Number(n.lng), o = Number(n.zoom), i = Number(n.heading);
242
+ if (![t, r, o, i].every((l) => Number.isFinite(l)) || t < -90 || t > 90 || r < -180 || r > 180 || o < 1 || o > 21) return null;
243
+ const c = (i % 360 + 360) % 360, a = Number(n.anchorZoom), s = Number(n.anchorX), f = Number(n.anchorY), y = Number.isFinite(a) && a > 0 ? {
244
244
  anchorZoom: Math.round(a * 1e3) / 1e3,
245
245
  anchorX: Number.isFinite(s) ? s : 0,
246
246
  anchorY: Number.isFinite(f) ? f : 0
247
247
  } : {};
248
248
  return {
249
- lat: n,
249
+ lat: t,
250
250
  lng: r,
251
251
  zoom: Math.round(o * 100) / 100,
252
252
  heading: Math.round(c * 10) / 10,
253
253
  ...y
254
254
  };
255
255
  }
256
- function fe(t, e) {
257
- return Math.abs(t.lat - e.lat) < 2e-5 && Math.abs(t.lng - e.lng) < 2e-5 && Math.abs(t.zoom - e.zoom) < 1e-3 && Math.abs(t.heading - e.heading) < 0.05;
256
+ function dn(e, n) {
257
+ return Math.abs(e.lat - n.lat) < 2e-5 && Math.abs(e.lng - n.lng) < 2e-5 && Math.abs(e.zoom - n.zoom) < 1e-3 && Math.abs(e.heading - n.heading) < 0.05;
258
258
  }
259
- function nn(t, e) {
260
- const n = t.anchorZoom != null && t.anchorZoom > 0, r = e.anchorZoom != null && e.anchorZoom > 0;
261
- return n !== r ? !1 : !n || !r || t.anchorZoom == null || e.anchorZoom == null ? !0 : Math.abs(t.anchorZoom - e.anchorZoom) < 1e-3 && Math.abs((t.anchorX ?? 0) - (e.anchorX ?? 0)) < 0.05 && Math.abs((t.anchorY ?? 0) - (e.anchorY ?? 0)) < 0.05;
259
+ function rt(e, n) {
260
+ const t = e.anchorZoom != null && e.anchorZoom > 0, r = n.anchorZoom != null && n.anchorZoom > 0;
261
+ return t !== r ? !1 : !t || !r || e.anchorZoom == null || n.anchorZoom == null ? !0 : Math.abs(e.anchorZoom - n.anchorZoom) < 1e-3 && Math.abs((e.anchorX ?? 0) - (n.anchorX ?? 0)) < 0.05 && Math.abs((e.anchorY ?? 0) - (n.anchorY ?? 0)) < 0.05;
262
262
  }
263
- function bo(t, e) {
264
- return fe(t, e) && nn(t, e);
263
+ function go(e, n) {
264
+ return dn(e, n) && rt(e, n);
265
265
  }
266
- function Io(t) {
267
- return fe(t, tn);
266
+ function _o(e) {
267
+ return dn(e, nt);
268
268
  }
269
- const ct = "entrance", go = 24, rn = 8;
270
- function on(t) {
269
+ const le = "entrance", ko = 24, ot = 8;
270
+ function it(e) {
271
271
  var o;
272
- if (!t) return !1;
273
- const e = t.trim();
274
- return e ? e === ct ? !0 : ((o = (e.split(/[?#]/, 1)[0] ?? e).split("/").filter(Boolean).pop()) == null ? void 0 : o.toLowerCase()) === ct : !1;
275
- }
276
- function sn(t) {
277
- var e;
278
- return t.kind !== "entrance" ? !1 : on((e = t.label) == null ? void 0 : e.imageKey) ? !0 : t.origin === "manual" && !t.sourceSvgId;
279
- }
280
- function de(t) {
281
- var e;
282
- return !sn(t) || ((e = t.label) == null ? void 0 : e.imageKey) === ct ? t.label : {
283
- ...t.label ?? {},
284
- imageKey: ct
272
+ if (!e) return !1;
273
+ const n = e.trim();
274
+ return n ? n === le ? !0 : ((o = (n.split(/[?#]/, 1)[0] ?? n).split("/").filter(Boolean).pop()) == null ? void 0 : o.toLowerCase()) === le : !1;
275
+ }
276
+ function st(e) {
277
+ var n;
278
+ return e.kind !== "entrance" ? !1 : it((n = e.label) == null ? void 0 : n.imageKey) ? !0 : e.origin === "manual" && !e.sourceSvgId;
279
+ }
280
+ function hn(e) {
281
+ var n;
282
+ return !st(e) || ((n = e.label) == null ? void 0 : n.imageKey) === le ? e.label : {
283
+ ...e.label ?? {},
284
+ imageKey: le
285
285
  };
286
286
  }
287
- function _o(t, e, n) {
288
- const r = e != null ? { ...t, ...e } : { ...t ?? {} };
289
- return de({
290
- ...n,
291
- kind: n.kind ?? "unit",
287
+ function Oo(e, n, t) {
288
+ const r = n != null ? { ...e, ...n } : { ...e ?? {} };
289
+ return hn({
290
+ ...t,
291
+ kind: t.kind ?? "unit",
292
292
  label: r
293
293
  }) ?? r;
294
294
  }
295
- function Oo(t) {
296
- return Math.max(rn, t);
295
+ function Ao(e) {
296
+ return Math.max(ot, e);
297
297
  }
298
- const ko = ["left", "center", "right"], cn = "center";
299
- function Ao(t) {
300
- return t === "left" || t === "right" ? t : cn;
298
+ const So = ["left", "center", "right"], ct = "center";
299
+ function Ro(e) {
300
+ return e === "left" || e === "right" ? e : ct;
301
301
  }
302
- function So(t, e) {
303
- return e === "left" ? t.minX : e === "right" ? t.maxX : (t.minX + t.maxX) / 2;
302
+ function Co(e, n) {
303
+ return n === "left" ? e.minX : n === "right" ? e.maxX : (e.minX + e.maxX) / 2;
304
304
  }
305
- function Ro(t) {
306
- return t === "left" ? "start" : t === "right" ? "end" : "middle";
305
+ function vo(e) {
306
+ return e === "left" ? "start" : e === "right" ? "end" : "middle";
307
307
  }
308
- const dt = 12, an = dt, ln = 4, un = [
308
+ const ye = 12, at = ye, lt = 4, ut = [
309
309
  "retail_name",
310
310
  "retail_logo",
311
311
  "retail_text",
@@ -314,60 +314,60 @@ const dt = 12, an = dt, ln = 4, un = [
314
314
  "connector",
315
315
  "custom_text",
316
316
  "custom_image"
317
- ], fn = new Set(un);
318
- function Z(t, e) {
319
- const n = typeof t == "number" ? t : Number(t);
320
- return Number.isFinite(n) ? n : e;
321
- }
322
- const dn = /^(?:|[+\-]|[+\-]?\.(?:0*)?)$/;
323
- function hn(t) {
324
- const e = t.trim();
325
- if (dn.test(e))
317
+ ], ft = new Set(ut);
318
+ function j(e, n) {
319
+ const t = typeof e == "number" ? e : Number(e);
320
+ return Number.isFinite(t) ? t : n;
321
+ }
322
+ const dt = /^(?:|[+\-]|[+\-]?\.(?:0*)?)$/;
323
+ function ht(e) {
324
+ const n = e.trim();
325
+ if (dt.test(n))
326
326
  return { render: 0, complete: !1 };
327
- const n = Number(e);
328
- return Number.isFinite(n) ? { render: n, complete: !0 } : { render: 0, complete: !1 };
327
+ const t = Number(n);
328
+ return Number.isFinite(t) ? { render: t, complete: !0 } : { render: 0, complete: !1 };
329
329
  }
330
- function Co(t) {
331
- const e = hn(t);
332
- return e.complete ? { display: String(e.render), render: e.render } : { display: "0", render: 0 };
330
+ function Eo(e) {
331
+ const n = ht(e);
332
+ return n.complete ? { display: String(n.render), render: n.render } : { display: "0", render: 0 };
333
333
  }
334
- function D(t) {
335
- if (t == null) return null;
336
- const e = String(t).trim();
337
- return e || null;
334
+ function K(e) {
335
+ if (e == null) return null;
336
+ const n = String(e).trim();
337
+ return n || null;
338
338
  }
339
- function yn(t) {
340
- if (t == null) return null;
341
- const e = String(t);
342
- return e === "" ? null : e;
339
+ function yt(e) {
340
+ if (e == null) return null;
341
+ const n = String(e);
342
+ return n === "" ? null : n;
343
343
  }
344
- function xt(t) {
345
- if (t == null || t === "") return null;
346
- const e = Number(t);
347
- return Number.isFinite(e) ? e : null;
344
+ function be(e) {
345
+ if (e == null || e === "") return null;
346
+ const n = Number(e);
347
+ return Number.isFinite(n) ? n : null;
348
348
  }
349
- function mn(t) {
350
- return typeof t == "string" && fn.has(t);
349
+ function mt(e) {
350
+ return typeof e == "string" && ft.has(e);
351
351
  }
352
- function Nt(t) {
353
- return t === "amenity" ? "amenity" : t === "kiosk_screen" ? "kiosk" : t === "connector" ? "connector" : t === "custom" ? "custom_text" : "retail_name";
352
+ function Te(e) {
353
+ return e === "amenity" ? "amenity" : e === "kiosk_screen" ? "kiosk" : e === "connector" ? "connector" : e === "custom" ? "custom_text" : "retail_name";
354
354
  }
355
- function pn(t) {
356
- const e = t == null ? void 0 : t.trim();
357
- if (!e) return !1;
355
+ function pt(e) {
356
+ const n = e == null ? void 0 : e.trim();
357
+ if (!n) return !1;
358
358
  try {
359
- const n = new URL(e);
360
- return n.protocol === "http:" || n.protocol === "https:";
359
+ const t = new URL(n);
360
+ return t.protocol === "http:" || t.protocol === "https:";
361
361
  } catch {
362
362
  return !1;
363
363
  }
364
364
  }
365
- function vo(t) {
366
- return t === "amenity" ? "amenity" : t === "kiosk_screen" ? "kiosk" : t === "unit" || t === "parking_zone" ? "retailer" : "none";
365
+ function Lo(e) {
366
+ return e === "amenity" ? "amenity" : e === "kiosk_screen" ? "kiosk" : e === "unit" || e === "parking_zone" ? "retailer" : "none";
367
367
  }
368
- function Eo(t, e) {
368
+ function No(e, n) {
369
369
  return {
370
- shapeId: t,
370
+ shapeId: e,
371
371
  targetType: "none",
372
372
  retailerId: null,
373
373
  amenityId: null,
@@ -376,8 +376,8 @@ function Eo(t, e) {
376
376
  unitNumber: null,
377
377
  customLabel: null,
378
378
  customImageKey: null,
379
- layerType: Nt(e),
380
- size: dt,
379
+ layerType: Te(n),
380
+ size: ye,
381
381
  rotate: 0,
382
382
  offsetX: 0,
383
383
  offsetY: 0,
@@ -385,229 +385,229 @@ function Eo(t, e) {
385
385
  textColor: null
386
386
  };
387
387
  }
388
- function Lo(t, e = "unit") {
389
- const n = t.layerType ?? t.layer_type, r = t.unitStatus ?? t.unit_status ?? "vacant";
388
+ function To(e, n = "unit") {
389
+ const t = e.layerType ?? e.layer_type, r = e.unitStatus ?? e.unit_status ?? "vacant";
390
390
  return {
391
- shapeId: Z(
392
- t.shapeId ?? t.shape_id,
391
+ shapeId: j(
392
+ e.shapeId ?? e.shape_id,
393
393
  0
394
394
  ),
395
- targetType: t.targetType ?? t.target_type ?? "none",
396
- retailerId: xt(
397
- t.retailerId ?? t.retailer_id
395
+ targetType: e.targetType ?? e.target_type ?? "none",
396
+ retailerId: be(
397
+ e.retailerId ?? e.retailer_id
398
398
  ),
399
- amenityId: xt(
400
- t.amenityId ?? t.amenity_id
399
+ amenityId: be(
400
+ e.amenityId ?? e.amenity_id
401
401
  ),
402
- kioskId: xt(
403
- t.kioskId ?? t.kiosk_id
402
+ kioskId: be(
403
+ e.kioskId ?? e.kiosk_id
404
404
  ),
405
405
  unitStatus: r || "vacant",
406
- unitNumber: D(
407
- t.unitNumber ?? t.unit_number
406
+ unitNumber: K(
407
+ e.unitNumber ?? e.unit_number
408
408
  ),
409
- customLabel: yn(
410
- t.customLabel ?? t.custom_label
409
+ customLabel: yt(
410
+ e.customLabel ?? e.custom_label
411
411
  ),
412
- customImageKey: D(
413
- t.customImageKey ?? t.custom_image_key
412
+ customImageKey: K(
413
+ e.customImageKey ?? e.custom_image_key
414
414
  ),
415
- layerType: mn(n) ? n : Nt(e),
416
- size: Z(t.size, dt),
417
- rotate: Z(t.rotate, 0),
418
- offsetX: Z(
419
- t.offsetX ?? t.offset_x,
415
+ layerType: mt(t) ? t : Te(n),
416
+ size: j(e.size, ye),
417
+ rotate: j(e.rotate, 0),
418
+ offsetX: j(
419
+ e.offsetX ?? e.offset_x,
420
420
  0
421
421
  ),
422
- offsetY: Z(
423
- t.offsetY ?? t.offset_y,
422
+ offsetY: j(
423
+ e.offsetY ?? e.offset_y,
424
424
  0
425
425
  ),
426
- bgColor: D(
427
- t.bgColor ?? t.bg_color
426
+ bgColor: K(
427
+ e.bgColor ?? e.bg_color
428
428
  ),
429
- textColor: D(
430
- t.textColor ?? t.text_color
429
+ textColor: K(
430
+ e.textColor ?? e.text_color
431
431
  ),
432
- align: xn(t.align)
432
+ align: xt(e.align)
433
433
  };
434
434
  }
435
- function xn(t) {
436
- if (t === "left" || t === "right" || t === "center") return t;
435
+ function xt(e) {
436
+ if (e === "left" || e === "right" || e === "center") return e;
437
437
  }
438
- function No(t, e) {
439
- const n = (t.location ?? "").trim();
440
- return e && n && n !== "-" ? `${t.name} (${n})` : t.name;
438
+ function Mo(e, n) {
439
+ const t = (e.location ?? "").trim();
440
+ return n && t && t !== "-" ? `${e.name} (${t})` : e.name;
441
441
  }
442
- function Bt(t, e) {
442
+ function $e(e, n) {
443
443
  var r;
444
- const n = (r = t == null ? void 0 : t.bgColor) == null ? void 0 : r.trim();
445
- return W(n) ? "transparent" : n || e;
444
+ const t = (r = e == null ? void 0 : e.bgColor) == null ? void 0 : r.trim();
445
+ return W(t) ? "transparent" : t || n;
446
446
  }
447
- function Tt(t) {
448
- return t === "amenity" || t === "kiosk_screen" || t === "connector";
447
+ function Me(e) {
448
+ return e === "amenity" || e === "kiosk_screen" || e === "connector";
449
449
  }
450
- function To(t, e) {
451
- return Tt(t) ? Lt : e;
450
+ function wo(e, n) {
451
+ return Me(e) ? Ne : n;
452
452
  }
453
- function Mo(t, e) {
453
+ function Po(e, n) {
454
454
  var r;
455
- const n = (r = t == null ? void 0 : t.textColor) == null ? void 0 : r.trim();
456
- return W(n) ? "transparent" : n || e;
455
+ const t = (r = e == null ? void 0 : e.textColor) == null ? void 0 : r.trim();
456
+ return W(t) ? "transparent" : t || n;
457
457
  }
458
- function bn(t, e, n) {
459
- const r = (t == null ? void 0 : t.layerType) ?? (n ? Nt(n) : void 0);
460
- return r === "kiosk" ? e.KIOSK_ICON_COLOR : r === "amenity" ? e.AMENITY_ICON_COLOR : r === "connector" ? e.CONNECTOR_ICON_COLOR : e.STORE_TEXT_COLOR;
458
+ function bt(e, n, t) {
459
+ const r = (e == null ? void 0 : e.layerType) ?? (t ? Te(t) : void 0);
460
+ return r === "kiosk" ? n.KIOSK_ICON_COLOR : r === "amenity" ? n.AMENITY_ICON_COLOR : r === "connector" ? n.CONNECTOR_ICON_COLOR : n.STORE_TEXT_COLOR;
461
461
  }
462
- function wo(t, e, n, r) {
462
+ function Fo(e, n, t, r) {
463
463
  var i;
464
- const o = (i = n ?? (t == null ? void 0 : t.textColor)) == null ? void 0 : i.trim();
465
- return W(o) ? "transparent" : o || bn(t, e, r);
464
+ const o = (i = t ?? (e == null ? void 0 : e.textColor)) == null ? void 0 : i.trim();
465
+ return W(o) ? "transparent" : o || bt(e, n, r);
466
466
  }
467
- function Po(t) {
468
- const e = t.trim();
469
- if (!e || !/^\d+$/.test(e)) return null;
470
- const n = Number(e);
471
- return Number.isSafeInteger(n) && n > 0 ? n : null;
467
+ function Do(e) {
468
+ const n = e.trim();
469
+ if (!n || !/^\d+$/.test(n)) return null;
470
+ const t = Number(n);
471
+ return Number.isSafeInteger(t) && t > 0 ? t : null;
472
472
  }
473
- function Fo(t, e) {
473
+ function Ko(e, n) {
474
474
  var o;
475
- const n = e == null ? void 0 : e.trim();
476
- if (n) return n;
477
- const r = (o = t == null ? void 0 : t.customLabel) == null ? void 0 : o.trim();
478
- return r || ((t == null ? void 0 : t.amenityId) != null ? `Amenity ${t.amenityId}` : null);
475
+ const t = n == null ? void 0 : n.trim();
476
+ if (t) return t;
477
+ const r = (o = e == null ? void 0 : e.customLabel) == null ? void 0 : o.trim();
478
+ return r || ((e == null ? void 0 : e.amenityId) != null ? `Amenity ${e.amenityId}` : null);
479
479
  }
480
- function Do(t, e) {
480
+ function Yo(e, n) {
481
481
  var o;
482
- const n = (o = t == null ? void 0 : t.customLabel) == null ? void 0 : o.trim();
483
- if (n) return n;
484
- const r = e == null ? void 0 : e.trim();
485
- return r || ((t == null ? void 0 : t.kioskId) != null ? `Kiosk ${t.kioskId}` : null);
482
+ const t = (o = e == null ? void 0 : e.customLabel) == null ? void 0 : o.trim();
483
+ if (t) return t;
484
+ const r = n == null ? void 0 : n.trim();
485
+ return r || ((e == null ? void 0 : e.kioskId) != null ? `Kiosk ${e.kioskId}` : null);
486
486
  }
487
- function T(t) {
488
- var e, n, r;
489
- return t ? t.targetType === "retailer" ? t.retailerId != null : t.targetType === "amenity" ? t.amenityId != null || !!((e = t.customLabel) != null && e.trim()) : t.targetType === "kiosk" ? t.kioskId != null || !!((n = t.customLabel) != null && n.trim()) : t.targetType === "none" && t.layerType === "custom_text" ? !!((r = t.customLabel) != null && r.trim()) : t.targetType === "none" && t.layerType === "custom_image" ? pn(t.customImageKey) : !1 : !1;
487
+ function M(e) {
488
+ var n, t, r;
489
+ return e ? e.targetType === "retailer" ? e.retailerId != null : e.targetType === "amenity" ? e.amenityId != null || !!((n = e.customLabel) != null && n.trim()) : e.targetType === "kiosk" ? e.kioskId != null || !!((t = e.customLabel) != null && t.trim()) : e.targetType === "none" && e.layerType === "custom_text" ? !!((r = e.customLabel) != null && r.trim()) : e.targetType === "none" && e.layerType === "custom_image" ? pt(e.customImageKey) : !1 : !1;
490
490
  }
491
- const In = /* @__PURE__ */ new Set([
491
+ const It = /* @__PURE__ */ new Set([
492
492
  "unit",
493
493
  "parking_zone",
494
494
  "amenity",
495
495
  "kiosk_screen",
496
496
  "custom"
497
497
  ]);
498
- function he(t, e, n) {
498
+ function yn(e, n, t) {
499
499
  var r, o;
500
- return t.kind === "label" ? t.label : t.kind === "entrance" ? de(t) ?? t.label : t.kind === "connector" || (e == null ? void 0 : e.layerType) === "connector" ? e ? zt(
501
- { style: t.style ?? {}, label: t.label },
502
- e,
503
- n
504
- ).label : t.label : In.has(t.kind) ? !e || !T(e) ? !((r = t.label) != null && r.text) && !((o = t.label) != null && o.imageKey) ? t.label : {
505
- ...t.label,
500
+ return e.kind === "label" ? e.label : e.kind === "entrance" ? hn(e) ?? e.label : e.kind === "connector" || (n == null ? void 0 : n.layerType) === "connector" ? n ? Ge(
501
+ { style: e.style ?? {}, label: e.label },
502
+ n,
503
+ t
504
+ ).label : e.label : It.has(e.kind) ? !n || !M(n) ? !((r = e.label) != null && r.text) && !((o = e.label) != null && o.imageKey) ? e.label : {
505
+ ...e.label,
506
506
  text: void 0,
507
507
  imageKey: void 0
508
- } : zt(
509
- { style: t.style ?? {}, label: t.label },
510
- e,
511
- n
512
- ).label : t.label;
513
- }
514
- function gn(t, e) {
515
- if (T(t)) {
516
- if (t.layerType === "retail_text" || t.layerType === "custom_text")
517
- return t.customLabel ?? void 0;
518
- if (t.layerType === "retail_name")
519
- return (e == null ? void 0 : e.name) ?? t.customLabel ?? void 0;
508
+ } : Ge(
509
+ { style: e.style ?? {}, label: e.label },
510
+ n,
511
+ t
512
+ ).label : e.label;
513
+ }
514
+ function gt(e, n) {
515
+ if (M(e)) {
516
+ if (e.layerType === "retail_text" || e.layerType === "custom_text")
517
+ return e.customLabel ?? void 0;
518
+ if (e.layerType === "retail_name")
519
+ return (n == null ? void 0 : n.name) ?? e.customLabel ?? void 0;
520
520
  }
521
521
  }
522
- function ye(t, e, n) {
523
- if (!(!T(t) || !t) && !(t.layerType !== "retail_logo" && t.layerType !== "custom_image"))
524
- return On(t, e) ?? D(n == null ? void 0 : n.imageKey) ?? void 0;
522
+ function mn(e, n, t) {
523
+ if (!(!M(e) || !e) && !(e.layerType !== "retail_logo" && e.layerType !== "custom_image"))
524
+ return kt(e, n) ?? K(t == null ? void 0 : t.imageKey) ?? void 0;
525
525
  }
526
- function Ko(t, e) {
527
- var n, r;
528
- if (!(!T(t) || !t)) {
529
- if (t.layerType === "kiosk") return "kiosk";
530
- if (t.layerType === "amenity")
531
- return ((n = e == null ? void 0 : e.find((o) => o.id === t.amenityId)) == null ? void 0 : n.code) ?? ((r = t.customLabel) == null ? void 0 : r.trim()) ?? void 0;
526
+ function Bo(e, n) {
527
+ var t, r;
528
+ if (!(!M(e) || !e)) {
529
+ if (e.layerType === "kiosk") return "kiosk";
530
+ if (e.layerType === "amenity")
531
+ return ((t = n == null ? void 0 : n.find((o) => o.id === e.amenityId)) == null ? void 0 : t.code) ?? ((r = e.customLabel) == null ? void 0 : r.trim()) ?? void 0;
532
532
  }
533
533
  }
534
- function _n(t, e) {
535
- const n = Number.isFinite(t) && t > 0 ? t : dt;
536
- return (e == null ? void 0 : e.layerType) === "retail_logo" || (e == null ? void 0 : e.layerType) === "custom_image" ? n * ln : n;
534
+ function _t(e, n) {
535
+ const t = Number.isFinite(e) && e > 0 ? e : ye;
536
+ return (n == null ? void 0 : n.layerType) === "retail_logo" || (n == null ? void 0 : n.layerType) === "custom_image" ? t * lt : t;
537
537
  }
538
- function Yo(t) {
539
- const e = t.assignment, n = t.label;
538
+ function $o(e) {
539
+ const n = e.assignment, t = e.label;
540
540
  return {
541
- size: _n(
542
- (e == null ? void 0 : e.size) ?? (n == null ? void 0 : n.size) ?? an
541
+ size: _t(
542
+ (n == null ? void 0 : n.size) ?? (t == null ? void 0 : t.size) ?? at
543
543
  ),
544
- rotate: (e == null ? void 0 : e.rotate) ?? (n == null ? void 0 : n.rotate) ?? 0,
545
- offsetX: (e == null ? void 0 : e.offsetX) ?? (n == null ? void 0 : n.offsetX) ?? 0,
546
- offsetY: (e == null ? void 0 : e.offsetY) ?? (n == null ? void 0 : n.offsetY) ?? 0,
547
- iconColor: (e == null ? void 0 : e.textColor) ?? (n == null ? void 0 : n.color) ?? null
544
+ rotate: (n == null ? void 0 : n.rotate) ?? (t == null ? void 0 : t.rotate) ?? 0,
545
+ offsetX: (n == null ? void 0 : n.offsetX) ?? (t == null ? void 0 : t.offsetX) ?? 0,
546
+ offsetY: (n == null ? void 0 : n.offsetY) ?? (t == null ? void 0 : t.offsetY) ?? 0,
547
+ iconColor: (n == null ? void 0 : n.textColor) ?? (t == null ? void 0 : t.color) ?? null
548
548
  };
549
549
  }
550
- function $o(t, e) {
551
- var n;
552
- return T(t) ? (t == null ? void 0 : t.layerType) === "kiosk" || (t == null ? void 0 : t.layerType) === "amenity" || ye(t, null, e) ? !0 : !!((n = e == null ? void 0 : e.text) != null && n.trim()) : !1;
553
- }
554
- function On(t, e) {
555
- if (T(t)) {
556
- if (t.layerType === "retail_logo")
557
- return D(e == null ? void 0 : e.logoKey) ?? D(e == null ? void 0 : e.logoUrl) ?? D(t.customImageKey) ?? void 0;
558
- if (t.layerType === "custom_image")
559
- return D(t.customImageKey) ?? void 0;
550
+ function zo(e, n) {
551
+ var t;
552
+ return M(e) ? (e == null ? void 0 : e.layerType) === "kiosk" || (e == null ? void 0 : e.layerType) === "amenity" || mn(e, null, n) ? !0 : !!((t = n == null ? void 0 : n.text) != null && t.trim()) : !1;
553
+ }
554
+ function kt(e, n) {
555
+ if (M(e)) {
556
+ if (e.layerType === "retail_logo")
557
+ return K(n == null ? void 0 : n.logoKey) ?? K(n == null ? void 0 : n.logoUrl) ?? K(e.customImageKey) ?? void 0;
558
+ if (e.layerType === "custom_image")
559
+ return K(e.customImageKey) ?? void 0;
560
560
  }
561
561
  }
562
- function bt(t) {
563
- if (t.length === 0) return "";
564
- const e = t[0];
565
- return t.every((n) => n === e) ? e : "";
562
+ function Ie(e) {
563
+ if (e.length === 0) return "";
564
+ const n = e[0];
565
+ return e.every((t) => t === n) ? n : "";
566
566
  }
567
- function Gt(t) {
568
- if (t.length === 0) return !1;
569
- const e = t[0];
570
- return t.some((n) => n !== e);
567
+ function ze(e) {
568
+ if (e.length === 0) return !1;
569
+ const n = e[0];
570
+ return e.some((t) => t !== n);
571
571
  }
572
- function Bo(t) {
573
- const e = t.map((r) => r.bgColor ?? ""), n = t.map((r) => r.textColor ?? "");
572
+ function Go(e) {
573
+ const n = e.map((r) => r.bgColor ?? ""), t = e.map((r) => r.textColor ?? "");
574
574
  return {
575
- size: bt(t.map((r) => r.size)),
576
- bgColor: bt(e),
577
- textColor: bt(n),
578
- bgColorMixed: Gt(e),
579
- textColorMixed: Gt(n)
575
+ size: Ie(e.map((r) => r.size)),
576
+ bgColor: Ie(n),
577
+ textColor: Ie(t),
578
+ bgColorMixed: ze(n),
579
+ textColorMixed: ze(t)
580
580
  };
581
581
  }
582
- function Go(t, e) {
582
+ function Xo(e, n) {
583
583
  return {
584
- ...t,
585
- ...e.size != null ? { size: e.size } : {},
586
- ...e.bgColor !== void 0 ? { bgColor: e.bgColor } : {},
587
- ...e.textColor !== void 0 ? { textColor: e.textColor } : {}
584
+ ...e,
585
+ ...n.size != null ? { size: n.size } : {},
586
+ ...n.bgColor !== void 0 ? { bgColor: n.bgColor } : {},
587
+ ...n.textColor !== void 0 ? { textColor: n.textColor } : {}
588
588
  };
589
589
  }
590
- function zt(t, e, n) {
591
- const r = ye(e, n, t.label), o = T(e) ? r ? void 0 : gn(e, n) ?? t.label.text : void 0;
590
+ function Ge(e, n, t) {
591
+ const r = mn(n, t, e.label), o = M(n) ? r ? void 0 : gt(n, t) ?? e.label.text : void 0;
592
592
  return {
593
593
  style: {
594
- ...t.style,
595
- fill: e.bgColor ?? void 0
594
+ ...e.style,
595
+ fill: n.bgColor ?? void 0
596
596
  },
597
597
  label: {
598
- ...t.label,
598
+ ...e.label,
599
599
  text: o,
600
600
  imageKey: r,
601
- size: Number.isFinite(e.size) ? e.size : 0,
602
- rotate: Number.isFinite(e.rotate) ? e.rotate : 0,
603
- offsetX: Number.isFinite(e.offsetX) ? e.offsetX : 0,
604
- offsetY: Number.isFinite(e.offsetY) ? e.offsetY : 0,
605
- color: e.textColor ?? void 0,
606
- ...e.align ? { align: e.align } : {}
601
+ size: Number.isFinite(n.size) ? n.size : 0,
602
+ rotate: Number.isFinite(n.rotate) ? n.rotate : 0,
603
+ offsetX: Number.isFinite(n.offsetX) ? n.offsetX : 0,
604
+ offsetY: Number.isFinite(n.offsetY) ? n.offsetY : 0,
605
+ color: n.textColor ?? void 0,
606
+ ...n.align ? { align: n.align } : {}
607
607
  }
608
608
  };
609
609
  }
610
- const kn = [
610
+ const Ot = [
611
611
  "floorplate",
612
612
  "walkable",
613
613
  "decor",
@@ -616,150 +616,150 @@ const kn = [
616
616
  "water",
617
617
  "parking_zone"
618
618
  ];
619
- function An(t) {
620
- return t === "void";
619
+ function At(e) {
620
+ return e === "void";
621
621
  }
622
- function zo(t) {
623
- return kn.includes(t);
622
+ function Ho(e) {
623
+ return Ot.includes(e);
624
624
  }
625
- function me(t) {
626
- return An(t.kind) && !t.orphanedAt;
625
+ function pn(e) {
626
+ return At(e.kind) && !e.orphanedAt;
627
627
  }
628
- function Sn(t) {
629
- return (t.shapes ?? []).some(me);
628
+ function St(e) {
629
+ return (e.shapes ?? []).some(pn);
630
630
  }
631
- function Xo(t) {
632
- var n;
633
- const e = [];
634
- for (const r of t.shapes ?? [])
635
- if (me(r))
636
- for (const o of ((n = r.geometry) == null ? void 0 : n.polygons) ?? [])
637
- o.length >= 3 && e.push(o);
638
- return e;
639
- }
640
- function Xt(t) {
641
- let e = 0;
642
- for (let n = 0, r = t.length - 1; n < t.length; r = n++)
643
- e += t[r].x * t[n].y - t[n].x * t[r].y;
644
- return e / 2;
645
- }
646
- function Rn(t) {
647
- return t.slice().reverse();
648
- }
649
- function Cn(t, e) {
650
- const n = Xt(t), r = Xt(e);
651
- return n === 0 || r === 0 ? e : Math.sign(n) === Math.sign(r) ? Rn(e) : e;
652
- }
653
- function Ht(t) {
654
- let e = 1 / 0, n = 1 / 0, r = -1 / 0, o = -1 / 0;
655
- for (const i of t)
656
- i.x < e && (e = i.x), i.y < n && (n = i.y), i.x > r && (r = i.x), i.y > o && (o = i.y);
657
- return { minX: e, minY: n, maxX: r, maxY: o };
658
- }
659
- function vn(t, e) {
660
- const n = Ht(t), r = Ht(e);
661
- return n.minX <= r.maxX && n.maxX >= r.minX && n.minY <= r.maxY && n.maxY >= r.minY;
662
- }
663
- function Ho(t, e) {
664
- return e.filter((n) => n.length >= 3 && vn(t, n)).map((n) => Cn(t, n));
665
- }
666
- const Uo = "#e8eef4", Vo = "#64748b", Wo = "#475569";
667
- function En(t, e) {
668
- return t.ordering - e.ordering || t.levelIndex - e.levelIndex;
669
- }
670
- function X(t) {
671
- return t.kind === "outdoor";
672
- }
673
- function Ln(t, e) {
674
- const n = t.filter(X), r = e == null ? null : t.find((o) => o.id === e) ?? null;
675
- return !r || X(r) || n.some((o) => o.id === r.id) ? n : [...n, r];
676
- }
677
- function Nn(t, e) {
678
- if (e == null) return [];
679
- const n = ht(t), r = n.findIndex((c) => c.id === e);
631
+ function Uo(e) {
632
+ var t;
633
+ const n = [];
634
+ for (const r of e.shapes ?? [])
635
+ if (pn(r))
636
+ for (const o of ((t = r.geometry) == null ? void 0 : t.polygons) ?? [])
637
+ o.length >= 3 && n.push(o);
638
+ return n;
639
+ }
640
+ function Xe(e) {
641
+ let n = 0;
642
+ for (let t = 0, r = e.length - 1; t < e.length; r = t++)
643
+ n += e[r].x * e[t].y - e[t].x * e[r].y;
644
+ return n / 2;
645
+ }
646
+ function Rt(e) {
647
+ return e.slice().reverse();
648
+ }
649
+ function Ct(e, n) {
650
+ const t = Xe(e), r = Xe(n);
651
+ return t === 0 || r === 0 ? n : Math.sign(t) === Math.sign(r) ? Rt(n) : n;
652
+ }
653
+ function He(e) {
654
+ let n = 1 / 0, t = 1 / 0, r = -1 / 0, o = -1 / 0;
655
+ for (const i of e)
656
+ i.x < n && (n = i.x), i.y < t && (t = i.y), i.x > r && (r = i.x), i.y > o && (o = i.y);
657
+ return { minX: n, minY: t, maxX: r, maxY: o };
658
+ }
659
+ function vt(e, n) {
660
+ const t = He(e), r = He(n);
661
+ return t.minX <= r.maxX && t.maxX >= r.minX && t.minY <= r.maxY && t.maxY >= r.minY;
662
+ }
663
+ function Vo(e, n) {
664
+ return n.filter((t) => t.length >= 3 && vt(e, t)).map((t) => Ct(e, t));
665
+ }
666
+ const Wo = "#e8eef4", Zo = "#64748b", jo = "#475569";
667
+ function Et(e, n) {
668
+ return e.ordering - n.ordering || e.levelIndex - n.levelIndex;
669
+ }
670
+ function X(e) {
671
+ return e.kind === "outdoor";
672
+ }
673
+ function Lt(e, n) {
674
+ const t = e.filter(X), r = n == null ? null : e.find((o) => o.id === n) ?? null;
675
+ return !r || X(r) || t.some((o) => o.id === r.id) ? t : [...t, r];
676
+ }
677
+ function Nt(e, n) {
678
+ if (n == null) return [];
679
+ const t = me(e), r = t.findIndex((c) => c.id === n);
680
680
  if (r < 0) return [];
681
681
  const o = [];
682
- let i = n[r];
683
- for (let c = r; c < n.length - 1 && Sn(i); c++) {
684
- const a = n[c + 1];
682
+ let i = t[r];
683
+ for (let c = r; c < t.length - 1 && St(i); c++) {
684
+ const a = t[c + 1];
685
685
  if (!a) break;
686
686
  o.unshift(a), i = a;
687
687
  }
688
688
  return o;
689
689
  }
690
- function Zo(t, e) {
691
- return Nn(t, e).at(-1) ?? null;
690
+ function qo(e, n) {
691
+ return Nt(e, n).at(-1) ?? null;
692
692
  }
693
- function jo(t, e, n) {
694
- const r = t.find((i) => i.id === n);
695
- if (!r || !X(r)) return n;
696
- const o = e == null ? null : t.find((i) => i.id === e) ?? null;
697
- return o && !X(o) ? o.id : wn(t) ?? n;
693
+ function Qo(e, n, t) {
694
+ const r = e.find((i) => i.id === t);
695
+ if (!r || !X(r)) return t;
696
+ const o = n == null ? null : e.find((i) => i.id === n) ?? null;
697
+ return o && !X(o) ? o.id : wt(e) ?? t;
698
698
  }
699
- function ht(t) {
700
- return t.filter((e) => e.kind === "floor").slice().sort(En);
699
+ function me(e) {
700
+ return e.filter((n) => n.kind === "floor").slice().sort(Et);
701
701
  }
702
- function qo(t) {
703
- return ht(t);
702
+ function Jo(e) {
703
+ return me(e);
704
704
  }
705
- function Qo(t) {
706
- return ht(t).length > 1;
705
+ function ei(e) {
706
+ return me(e).length > 1;
707
707
  }
708
- function Tn(t) {
709
- return t.some((e) => e.kind === "floor");
708
+ function Tt(e) {
709
+ return e.some((n) => n.kind === "floor");
710
710
  }
711
- function Mn(t) {
712
- return t.some(X);
711
+ function Mt(e) {
712
+ return e.some(X);
713
713
  }
714
- const Jo = "This map doesn’t have any floors yet.";
715
- function wn(t) {
716
- var e, n;
717
- return ((e = ht(t).at(-1)) == null ? void 0 : e.id) ?? ((n = t[0]) == null ? void 0 : n.id) ?? null;
714
+ const ni = "This map doesn’t have any floors yet.";
715
+ function wt(e) {
716
+ var n, t;
717
+ return ((n = me(e).at(-1)) == null ? void 0 : n.id) ?? ((t = e[0]) == null ? void 0 : t.id) ?? null;
718
718
  }
719
- function Ut(t) {
719
+ function Ue(e) {
720
720
  return {
721
- minX: t.x,
722
- minY: t.y,
723
- maxX: t.x + t.width,
724
- maxY: t.y + t.height,
725
- cx: t.x + t.width / 2,
726
- cy: t.y + t.height / 2,
727
- size: Math.max(t.width, t.height, 100)
721
+ minX: e.x,
722
+ minY: e.y,
723
+ maxX: e.x + e.width,
724
+ maxY: e.y + e.height,
725
+ cx: e.x + e.width / 2,
726
+ cy: e.y + e.height / 2,
727
+ size: Math.max(e.width, e.height, 100)
728
728
  };
729
729
  }
730
- function Pn(t, e) {
731
- const n = e.scale || 1, r = (e.rotate || 0) * Math.PI / 180, o = Math.cos(r), i = Math.sin(r), c = t.x * n, a = t.y * n;
730
+ function Pt(e, n) {
731
+ const t = n.scale || 1, r = (n.rotate || 0) * Math.PI / 180, o = Math.cos(r), i = Math.sin(r), c = e.x * t, a = e.y * t;
732
732
  return {
733
- x: c * o - a * i + (e.translateX || 0),
734
- y: c * i + a * o + (e.translateY || 0)
733
+ x: c * o - a * i + (n.translateX || 0),
734
+ y: c * i + a * o + (n.translateY || 0)
735
735
  };
736
736
  }
737
- function Fn(t, e) {
738
- const n = [
739
- { x: t.minX, y: t.minY },
740
- { x: t.maxX, y: t.minY },
741
- { x: t.minX, y: t.maxY },
742
- { x: t.maxX, y: t.maxY }
743
- ].map((a) => e ? Pn(a, e) : a), r = Math.min(
744
- n[0].x,
745
- n[1].x,
746
- n[2].x,
747
- n[3].x
737
+ function Ft(e, n) {
738
+ const t = [
739
+ { x: e.minX, y: e.minY },
740
+ { x: e.maxX, y: e.minY },
741
+ { x: e.minX, y: e.maxY },
742
+ { x: e.maxX, y: e.maxY }
743
+ ].map((a) => n ? Pt(a, n) : a), r = Math.min(
744
+ t[0].x,
745
+ t[1].x,
746
+ t[2].x,
747
+ t[3].x
748
748
  ), o = Math.min(
749
- n[0].y,
750
- n[1].y,
751
- n[2].y,
752
- n[3].y
749
+ t[0].y,
750
+ t[1].y,
751
+ t[2].y,
752
+ t[3].y
753
753
  ), i = Math.max(
754
- n[0].x,
755
- n[1].x,
756
- n[2].x,
757
- n[3].x
754
+ t[0].x,
755
+ t[1].x,
756
+ t[2].x,
757
+ t[3].x
758
758
  ), c = Math.max(
759
- n[0].y,
760
- n[1].y,
761
- n[2].y,
762
- n[3].y
759
+ t[0].y,
760
+ t[1].y,
761
+ t[2].y,
762
+ t[3].y
763
763
  );
764
764
  return {
765
765
  minX: r,
@@ -771,43 +771,43 @@ function Fn(t, e) {
771
771
  size: Math.max(i - r, c - o, 100)
772
772
  };
773
773
  }
774
- function Vt(t, e) {
775
- const n = Math.min(t.minX, e.minX), r = Math.min(t.minY, e.minY), o = Math.max(t.maxX, e.maxX), i = Math.max(t.maxY, e.maxY);
774
+ function Ve(e, n) {
775
+ const t = Math.min(e.minX, n.minX), r = Math.min(e.minY, n.minY), o = Math.max(e.maxX, n.maxX), i = Math.max(e.maxY, n.maxY);
776
776
  return {
777
- minX: n,
777
+ minX: t,
778
778
  minY: r,
779
779
  maxX: o,
780
780
  maxY: i,
781
- cx: (n + o) / 2,
781
+ cx: (t + o) / 2,
782
782
  cy: (r + i) / 2,
783
- size: Math.max(o - n, i - r, 100)
783
+ size: Math.max(o - t, i - r, 100)
784
784
  };
785
785
  }
786
- function ti(t, e, n) {
787
- let r = n ? Ut(n) : null;
788
- for (const o of Ln(t, e)) {
786
+ function ti(e, n, t) {
787
+ let r = t ? Ue(t) : null;
788
+ for (const o of Lt(e, n)) {
789
789
  if (o.viewbox) {
790
- const i = Ut(o.viewbox);
791
- r = r ? Vt(r, i) : i;
790
+ const i = Ue(o.viewbox);
791
+ r = r ? Ve(r, i) : i;
792
792
  }
793
793
  for (const i of o.shapes) {
794
- const c = Fn(i.bbox);
795
- r = r ? Vt(r, c) : c;
794
+ const c = Ft(i.bbox);
795
+ r = r ? Ve(r, c) : c;
796
796
  }
797
797
  }
798
798
  return r ?? { minX: 0, minY: 0, maxX: 500, maxY: 500, cx: 250, cy: 250, size: 500 };
799
799
  }
800
- function ei(t, e) {
801
- if (!t && !e) return { x: 0, y: 0, width: 1e3, height: 800 };
802
- if (!t) return e;
803
- if (!e) return t;
804
- const n = Math.min(t.x, e.x), r = Math.min(t.y, e.y), o = Math.max(t.x + t.width, e.x + e.width), i = Math.max(t.y + t.height, e.y + e.height);
805
- return { x: n, y: r, width: o - n, height: i - r };
800
+ function ri(e, n) {
801
+ if (!e && !n) return { x: 0, y: 0, width: 1e3, height: 800 };
802
+ if (!e) return n;
803
+ if (!n) return e;
804
+ const t = Math.min(e.x, n.x), r = Math.min(e.y, n.y), o = Math.max(e.x + e.width, n.x + n.width), i = Math.max(e.y + e.height, n.y + n.height);
805
+ return { x: t, y: r, width: o - t, height: i - r };
806
806
  }
807
- function ni(t) {
808
- return t === "PORTAL" ? "editor" : "viewer";
807
+ function oi(e) {
808
+ return e === "PORTAL" ? "editor" : "viewer";
809
809
  }
810
- const It = {
810
+ const ge = {
811
811
  search: !1,
812
812
  amenities: !1,
813
813
  floors: !0,
@@ -817,67 +817,67 @@ const It = {
817
817
  storeModal: !1,
818
818
  sidebar: !1,
819
819
  hoverTooltip: !1
820
- }, Dn = {
820
+ }, Dt = {
821
821
  /** v1 WP_SITE / MapBox HOST WEBSITE. */
822
- WEBSITE: { ...It, sidebar: !0, hoverTooltip: !0 },
822
+ WEBSITE: { ...ge, sidebar: !0, hoverTooltip: !0 },
823
823
  /** Assign mode: click shapes, no public directory chrome. */
824
- PORTAL_ASSIGN: It,
824
+ PORTAL_ASSIGN: ge,
825
825
  DISPLAY_APP: {
826
- ...It,
826
+ ...ge,
827
827
  kioskOrigin: !0,
828
828
  hoverTooltip: !0
829
829
  }
830
830
  };
831
- function pe(t) {
832
- return Dn[t];
831
+ function xn(e) {
832
+ return Dt[e];
833
833
  }
834
- function ri(t) {
835
- return t !== "WEBSITE";
834
+ function ii(e) {
835
+ return e !== "WEBSITE";
836
836
  }
837
- function oi(t) {
838
- return t !== "PORTAL";
837
+ function si(e) {
838
+ return e !== "PORTAL";
839
839
  }
840
- function Kn(t) {
841
- return t === "WEBSITE" || t === "DISPLAY_APP";
840
+ function Kt(e) {
841
+ return e === "WEBSITE" || e === "DISPLAY_APP";
842
842
  }
843
- function ii(t, e) {
844
- return Tn(e) ? !0 : Kn(t) ? !1 : Mn(e);
843
+ function ci(e, n) {
844
+ return Tt(n) ? !0 : Kt(e) ? !1 : Mt(n);
845
845
  }
846
- function Wt(...t) {
847
- for (const e of t) {
848
- const n = e == null ? void 0 : e.trim();
849
- if (n) return n;
846
+ function We(...e) {
847
+ for (const n of e) {
848
+ const t = n == null ? void 0 : n.trim();
849
+ if (t) return t;
850
850
  }
851
851
  return null;
852
852
  }
853
- function si(t) {
854
- return pe(t).hoverTooltip;
853
+ function ai(e) {
854
+ return xn(e).hoverTooltip;
855
855
  }
856
- function ci(t, e = [], n = []) {
856
+ function li(e, n = [], t = []) {
857
857
  var r, o, i, c, a, s, f;
858
- if (t.kind === "unit") {
859
- const y = (r = t.assignment) == null ? void 0 : r.retailerId, l = y != null ? e.find((b) => b.id === y) : void 0;
860
- return Wt(
858
+ if (e.kind === "unit") {
859
+ const y = (r = e.assignment) == null ? void 0 : r.retailerId, l = y != null ? n.find((b) => b.id === y) : void 0;
860
+ return We(
861
861
  l == null ? void 0 : l.name,
862
- (o = t.assignment) == null ? void 0 : o.customLabel,
863
- (i = t.label) == null ? void 0 : i.text
862
+ (o = e.assignment) == null ? void 0 : o.customLabel,
863
+ (i = e.label) == null ? void 0 : i.text
864
864
  );
865
865
  }
866
- if (t.kind === "amenity") {
867
- const y = (c = t.assignment) == null ? void 0 : c.amenityId, l = (s = (a = t.assignment) == null ? void 0 : a.customLabel) == null ? void 0 : s.trim(), b = y != null ? n.find((h) => h.id === y) : void 0, u = l ? n.find((h) => h.code === l) : void 0;
868
- return Wt(b == null ? void 0 : b.name, u == null ? void 0 : u.name, l, (f = t.label) == null ? void 0 : f.text);
866
+ if (e.kind === "amenity") {
867
+ const y = (c = e.assignment) == null ? void 0 : c.amenityId, l = (s = (a = e.assignment) == null ? void 0 : a.customLabel) == null ? void 0 : s.trim(), b = y != null ? t.find((d) => d.id === y) : void 0, u = l ? t.find((d) => d.code === l) : void 0;
868
+ return We(b == null ? void 0 : b.name, u == null ? void 0 : u.name, l, (f = e.label) == null ? void 0 : f.text);
869
869
  }
870
870
  return null;
871
871
  }
872
- function Yn(t, e, n) {
872
+ function Yt(e, n, t) {
873
873
  var r;
874
- return t === "DISPLAY_APP" && e != null && n.kind === "kiosk_screen" && !n.orphanedAt && ((r = n.assignment) == null ? void 0 : r.kioskId) === e;
874
+ return e === "DISPLAY_APP" && n != null && t.kind === "kiosk_screen" && !t.orphanedAt && ((r = t.assignment) == null ? void 0 : r.kioskId) === n;
875
875
  }
876
- function ai(t, e, n) {
876
+ function ui(e, n, t) {
877
877
  var r;
878
- for (const o of t.levels) {
878
+ for (const o of e.levels) {
879
879
  const i = o.shapes.find(
880
- (c) => Yn(e, n, c)
880
+ (c) => Yt(n, t, c)
881
881
  );
882
882
  if (i)
883
883
  return {
@@ -888,293 +888,293 @@ function ai(t, e, n) {
888
888
  }
889
889
  return null;
890
890
  }
891
- function li(t) {
891
+ function fi(e) {
892
892
  var o, i;
893
- const e = ((o = t.kioskOrigin) == null ? void 0 : o.anchorId) ?? null;
894
- if (t.kind === "chrome")
893
+ const n = ((o = e.kioskOrigin) == null ? void 0 : o.anchorId) ?? null;
894
+ if (e.kind === "chrome")
895
895
  return {
896
- fromAnchorId: e,
896
+ fromAnchorId: n,
897
897
  toAnchorId: null,
898
898
  nextLevelId: null,
899
899
  resetCamera: !0
900
900
  };
901
- const n = ((i = t.kioskOrigin) == null ? void 0 : i.levelId) ?? t.defaultLevelId, r = n != null && n !== t.activeLevelId;
901
+ const t = ((i = e.kioskOrigin) == null ? void 0 : i.levelId) ?? e.defaultLevelId, r = t != null && t !== e.activeLevelId;
902
902
  return {
903
- fromAnchorId: e,
903
+ fromAnchorId: n,
904
904
  toAnchorId: null,
905
- nextLevelId: r ? n : null,
905
+ nextLevelId: r ? t : null,
906
906
  resetCamera: !r
907
907
  };
908
908
  }
909
- function ui(t, e) {
910
- const n = /* @__PURE__ */ new Map();
911
- for (const o of e) {
909
+ function di(e, n) {
910
+ const t = /* @__PURE__ */ new Map();
911
+ for (const o of n) {
912
912
  if (o.connectorId == null) continue;
913
- let i = n.get(o.connectorId);
914
- i || (i = /* @__PURE__ */ new Set(), n.set(o.connectorId, i)), i.add(o.levelId);
913
+ let i = t.get(o.connectorId);
914
+ i || (i = /* @__PURE__ */ new Set(), t.set(o.connectorId, i)), i.add(o.levelId);
915
915
  }
916
916
  const r = {
917
917
  escalator: !1,
918
918
  elevator: !1
919
919
  };
920
- for (const o of t) {
920
+ for (const o of e) {
921
921
  if (o.kind !== "escalator" && o.kind !== "elevator") continue;
922
- const i = n.get(o.id);
922
+ const i = t.get(o.id);
923
923
  !i || i.size < 2 || (r[o.kind] = !0);
924
924
  }
925
925
  return r;
926
926
  }
927
- function fi(t, e) {
927
+ function hi(e, n) {
928
928
  var r;
929
- if (!t || e == null) return null;
930
- const n = (r = t.graph) == null ? void 0 : r.nodes.find((o) => o.id === e);
931
- if (n) return n.levelId;
932
- for (const o of t.levels ?? [])
933
- if (o.anchors.some((i) => i.id === e)) return o.id;
929
+ if (!e || n == null) return null;
930
+ const t = (r = e.graph) == null ? void 0 : r.nodes.find((o) => o.id === n);
931
+ if (t) return t.levelId;
932
+ for (const o of e.levels ?? [])
933
+ if (o.anchors.some((i) => i.id === n)) return o.id;
934
934
  return null;
935
935
  }
936
- function di(t) {
937
- const { fromLevelId: e, toLevelId: n, availability: r } = t;
938
- return e == null || n == null || e === n ? !1 : r.escalator && r.elevator;
936
+ function yi(e) {
937
+ const { fromLevelId: n, toLevelId: t, availability: r } = e;
938
+ return n == null || t == null || n === t ? !1 : r.escalator && r.elevator;
939
939
  }
940
- function hi(t, e) {
941
- return t.map((n) => ({ x: n.x, y: e - n.y }));
940
+ function mi(e, n) {
941
+ return e.map((t) => ({ x: t.x, y: n - t.y }));
942
942
  }
943
- function N(t, e) {
944
- const n = t.x - e.x, r = t.y - e.y;
945
- return Math.hypot(n, r);
943
+ function T(e, n) {
944
+ const t = e.x - n.x, r = e.y - n.y;
945
+ return Math.hypot(t, r);
946
946
  }
947
- function $n(t) {
948
- if (t.length === 0)
947
+ function Bt(e) {
948
+ if (e.length === 0)
949
949
  return { minX: 0, minY: 0, maxX: 0, maxY: 0 };
950
- let e = t[0].x, n = t[0].y, r = t[0].x, o = t[0].y;
951
- for (let i = 1; i < t.length; i++) {
952
- const c = t[i];
953
- c.x < e && (e = c.x), c.y < n && (n = c.y), c.x > r && (r = c.x), c.y > o && (o = c.y);
950
+ let n = e[0].x, t = e[0].y, r = e[0].x, o = e[0].y;
951
+ for (let i = 1; i < e.length; i++) {
952
+ const c = e[i];
953
+ c.x < n && (n = c.x), c.y < t && (t = c.y), c.x > r && (r = c.x), c.y > o && (o = c.y);
954
954
  }
955
- return { minX: e, minY: n, maxX: r, maxY: o };
955
+ return { minX: n, minY: t, maxX: r, maxY: o };
956
956
  }
957
- function yi(t, e) {
957
+ function pi(e, n) {
958
958
  return {
959
- minX: Math.min(t.minX, e.minX),
960
- minY: Math.min(t.minY, e.minY),
961
- maxX: Math.max(t.maxX, e.maxX),
962
- maxY: Math.max(t.maxY, e.maxY)
959
+ minX: Math.min(e.minX, n.minX),
960
+ minY: Math.min(e.minY, n.minY),
961
+ maxX: Math.max(e.maxX, n.maxX),
962
+ maxY: Math.max(e.maxY, n.maxY)
963
963
  };
964
964
  }
965
- function Bn(t) {
966
- if (t.length === 0) return { x: 0, y: 0 };
967
- let e = 0, n = 0;
968
- for (const r of t)
969
- e += r.x, n += r.y;
970
- return { x: e / t.length, y: n / t.length };
971
- }
972
- function Gn(t, e) {
973
- let n = !1;
974
- for (let r = 0, o = e.length - 1; r < e.length; o = r++) {
975
- const i = e[r].x, c = e[r].y, a = e[o].x, s = e[o].y;
976
- c > t.y != s > t.y && t.x < (a - i) * (t.y - c) / (s - c + Number.EPSILON) + i && (n = !n);
965
+ function $t(e) {
966
+ if (e.length === 0) return { x: 0, y: 0 };
967
+ let n = 0, t = 0;
968
+ for (const r of e)
969
+ n += r.x, t += r.y;
970
+ return { x: n / e.length, y: t / e.length };
971
+ }
972
+ function zt(e, n) {
973
+ let t = !1;
974
+ for (let r = 0, o = n.length - 1; r < n.length; o = r++) {
975
+ const i = n[r].x, c = n[r].y, a = n[o].x, s = n[o].y;
976
+ c > e.y != s > e.y && e.x < (a - i) * (e.y - c) / (s - c + Number.EPSILON) + i && (t = !t);
977
977
  }
978
- return n;
978
+ return t;
979
979
  }
980
- function mi(t, e) {
981
- return e.some((n) => Gn(t, n));
980
+ function xi(e, n) {
981
+ return n.some((t) => zt(e, t));
982
982
  }
983
- function at(t, e, n) {
984
- const r = n.x - e.x, o = n.y - e.y, i = r * r + o * o;
983
+ function ue(e, n, t) {
984
+ const r = t.x - n.x, o = t.y - n.y, i = r * r + o * o;
985
985
  if (i === 0)
986
- return { point: { ...e }, t: 0, distance: N(t, e) };
987
- let c = ((t.x - e.x) * r + (t.y - e.y) * o) / i;
986
+ return { point: { ...n }, t: 0, distance: T(e, n) };
987
+ let c = ((e.x - n.x) * r + (e.y - n.y) * o) / i;
988
988
  c = Math.max(0, Math.min(1, c));
989
- const a = { x: e.x + c * r, y: e.y + c * o };
990
- return { point: a, t: c, distance: N(t, a) };
991
- }
992
- function pi(t, e) {
993
- if (e.length < 2) return null;
994
- let n = null;
995
- for (let r = 0; r < e.length - 1; r++) {
996
- const o = at(t, e[r], e[r + 1]);
997
- (!n || o.distance < n.distance) && (n = { point: o.point, segmentIndex: r, distance: o.distance });
989
+ const a = { x: n.x + c * r, y: n.y + c * o };
990
+ return { point: a, t: c, distance: T(e, a) };
991
+ }
992
+ function bi(e, n) {
993
+ if (n.length < 2) return null;
994
+ let t = null;
995
+ for (let r = 0; r < n.length - 1; r++) {
996
+ const o = ue(e, n[r], n[r + 1]);
997
+ (!t || o.distance < t.distance) && (t = { point: o.point, segmentIndex: r, distance: o.distance });
998
998
  }
999
- return n;
999
+ return t;
1000
1000
  }
1001
- function lt(t, e, n, r, o = 8) {
1001
+ function fe(e, n, t, r, o = 8) {
1002
1002
  const i = [];
1003
1003
  for (let c = 0; c <= o; c++) {
1004
1004
  const a = c / o, s = 1 - a;
1005
1005
  i.push({
1006
- x: s * s * s * t.x + 3 * s * s * a * e.x + 3 * s * a * a * n.x + a * a * a * r.x,
1007
- y: s * s * s * t.y + 3 * s * s * a * e.y + 3 * s * a * a * n.y + a * a * a * r.y
1006
+ x: s * s * s * e.x + 3 * s * s * a * n.x + 3 * s * a * a * t.x + a * a * a * r.x,
1007
+ y: s * s * s * e.y + 3 * s * s * a * n.y + 3 * s * a * a * t.y + a * a * a * r.y
1008
1008
  });
1009
1009
  }
1010
1010
  return i;
1011
1011
  }
1012
- function Zt(t, e, n, r = 6) {
1012
+ function Ze(e, n, t, r = 6) {
1013
1013
  const o = [];
1014
1014
  for (let i = 0; i <= r; i++) {
1015
1015
  const c = i / r, a = 1 - c;
1016
1016
  o.push({
1017
- x: a * a * t.x + 2 * a * c * e.x + c * c * n.x,
1018
- y: a * a * t.y + 2 * a * c * e.y + c * c * n.y
1017
+ x: a * a * e.x + 2 * a * c * n.x + c * c * t.x,
1018
+ y: a * a * e.y + 2 * a * c * n.y + c * c * t.y
1019
1019
  });
1020
1020
  }
1021
1021
  return o;
1022
1022
  }
1023
- const zn = 8;
1024
- function Xn(t, e, n, r, o, i, c) {
1025
- if (t.x === c.x && t.y === c.y) return [{ ...t }];
1026
- let a = Math.abs(e), s = Math.abs(n);
1023
+ const Gt = 8;
1024
+ function Xt(e, n, t, r, o, i, c) {
1025
+ if (e.x === c.x && e.y === c.y) return [{ ...e }];
1026
+ let a = Math.abs(n), s = Math.abs(t);
1027
1027
  if (a === 0 || s === 0 || !Number.isFinite(a) || !Number.isFinite(s))
1028
- return [{ ...t }, { ...c }];
1029
- const f = r % 360 * Math.PI / 180, y = Math.cos(f), l = Math.sin(f), b = (t.x - c.x) / 2, u = (t.y - c.y) / 2, h = y * b + l * u, d = -l * b + y * u, m = h * h / (a * a) + d * d / (s * s);
1028
+ return [{ ...e }, { ...c }];
1029
+ const f = r % 360 * Math.PI / 180, y = Math.cos(f), l = Math.sin(f), b = (e.x - c.x) / 2, u = (e.y - c.y) / 2, d = y * b + l * u, h = -l * b + y * u, m = d * d / (a * a) + h * h / (s * s);
1030
1030
  if (m > 1) {
1031
- const P = Math.sqrt(m);
1032
- a *= P, s *= P;
1031
+ const F = Math.sqrt(m);
1032
+ a *= F, s *= F;
1033
1033
  }
1034
- const x = a * a, I = s * s, p = x * I - x * d * d - I * h * h, g = x * d * d + I * h * h, _ = Math.sqrt(Math.max(0, p / g)) * (o === i ? -1 : 1), A = _ * a * d / s, k = -_ * s * h / a, S = y * A - l * k + (t.x + c.x) / 2, v = l * A + y * k + (t.y + c.y) / 2, C = (h - A) / a, K = (d - k) / s, M = (-h - A) / a, Y = (-d - k) / s, E = Math.atan2(K, C);
1035
- let R = Math.atan2(C * Y - K * M, C * M + K * Y);
1034
+ const p = a * a, I = s * s, k = p * I - p * h * h - I * d * d, x = p * h * h + I * d * d, g = Math.sqrt(Math.max(0, k / x)) * (o === i ? -1 : 1), _ = g * a * h / s, A = -g * s * d / a, S = y * _ - l * A + (e.x + c.x) / 2, C = l * _ + y * A + (e.y + c.y) / 2, Y = (d - _) / a, v = (h - A) / s, z = (-d - _) / a, L = (-h - A) / s, B = Math.atan2(v, Y);
1035
+ let R = Math.atan2(Y * L - v * z, Y * z + v * L);
1036
1036
  !i && R > 0 ? R -= 2 * Math.PI : i && R < 0 && (R += 2 * Math.PI);
1037
- const $ = Math.abs(R) / (Math.PI / 2) * zn, B = Math.max(1, Math.round($)), w = [{ ...t }];
1038
- for (let P = 1; P <= B; P++) {
1039
- const Q = E + R * P / B, J = Math.cos(Q), Ft = Math.sin(Q);
1040
- w.push({
1041
- x: S + a * y * J - s * l * Ft,
1042
- y: v + a * l * J + s * y * Ft
1037
+ const E = Math.abs(R) / (Math.PI / 2) * Gt, w = Math.max(1, Math.round(E)), P = [{ ...e }];
1038
+ for (let F = 1; F <= w; F++) {
1039
+ const Z = B + R * F / w, ee = Math.cos(Z), ne = Math.sin(Z);
1040
+ P.push({
1041
+ x: S + a * y * ee - s * l * ne,
1042
+ y: C + a * l * ee + s * y * ne
1043
1043
  });
1044
1044
  }
1045
- return w[w.length - 1] = { ...c }, w;
1046
- }
1047
- const Hn = /[\s,]/;
1048
- function xe(t) {
1049
- const e = [];
1050
- let n = 0, r = "", o = 0;
1051
- for (; n < t.length; ) {
1052
- const i = t[n];
1053
- if (Hn.test(i)) {
1054
- n++;
1045
+ return P[P.length - 1] = { ...c }, P;
1046
+ }
1047
+ const Ht = /[\s,]/;
1048
+ function bn(e) {
1049
+ const n = [];
1050
+ let t = 0, r = "", o = 0;
1051
+ for (; t < e.length; ) {
1052
+ const i = e[t];
1053
+ if (Ht.test(i)) {
1054
+ t++;
1055
1055
  continue;
1056
1056
  }
1057
1057
  if (i >= "a" && i <= "z" || i >= "A" && i <= "Z") {
1058
- r = i, o = 0, e.push(i), n++;
1058
+ r = i, o = 0, n.push(i), t++;
1059
1059
  continue;
1060
1060
  }
1061
1061
  const c = r === "A" || r === "a" ? o % 7 : -1;
1062
1062
  if ((c === 3 || c === 4) && (i === "0" || i === "1")) {
1063
- e.push(i), n++, o++;
1063
+ n.push(i), t++, o++;
1064
1064
  continue;
1065
1065
  }
1066
- const a = n;
1066
+ const a = t;
1067
1067
  let s = 0;
1068
- for ((i === "+" || i === "-") && n++; n < t.length && t[n] >= "0" && t[n] <= "9"; )
1069
- n++, s++;
1070
- if (t[n] === ".")
1071
- for (n++; n < t.length && t[n] >= "0" && t[n] <= "9"; )
1072
- n++, s++;
1073
- if (s > 0 && (t[n] === "e" || t[n] === "E")) {
1074
- const f = n;
1075
- if (n++, (t[n] === "+" || t[n] === "-") && n++, n < t.length && t[n] >= "0" && t[n] <= "9")
1076
- for (; n < t.length && t[n] >= "0" && t[n] <= "9"; ) n++;
1068
+ for ((i === "+" || i === "-") && t++; t < e.length && e[t] >= "0" && e[t] <= "9"; )
1069
+ t++, s++;
1070
+ if (e[t] === ".")
1071
+ for (t++; t < e.length && e[t] >= "0" && e[t] <= "9"; )
1072
+ t++, s++;
1073
+ if (s > 0 && (e[t] === "e" || e[t] === "E")) {
1074
+ const f = t;
1075
+ if (t++, (e[t] === "+" || e[t] === "-") && t++, t < e.length && e[t] >= "0" && e[t] <= "9")
1076
+ for (; t < e.length && e[t] >= "0" && e[t] <= "9"; ) t++;
1077
1077
  else
1078
- n = f;
1078
+ t = f;
1079
1079
  }
1080
1080
  if (s === 0) {
1081
- n = a + 1;
1081
+ t = a + 1;
1082
1082
  continue;
1083
1083
  }
1084
- e.push(t.slice(a, n)), o++;
1084
+ n.push(e.slice(a, t)), o++;
1085
1085
  }
1086
- return e;
1086
+ return n;
1087
1087
  }
1088
- function be(t) {
1089
- const e = xe(t), n = [];
1088
+ function In(e) {
1089
+ const n = bn(e), t = [];
1090
1090
  let r = [], o = 0, i = 0, c = 0, a = 0, s = null, f = 0, y = "";
1091
- const l = () => Number(e[f++]);
1092
- for (; f < e.length; ) {
1093
- const b = e[f];
1091
+ const l = () => Number(n[f++]);
1092
+ for (; f < n.length; ) {
1093
+ const b = n[f];
1094
1094
  switch (/[a-zA-Z]/.test(b) && (y = b, f++), y) {
1095
1095
  case "M":
1096
1096
  case "m": {
1097
- const u = y === "m", h = l(), d = l();
1098
- o = u ? o + h : h, i = u ? i + d : d, r.length > 0 && n.push(r), r = [{ x: o, y: i }], c = o, a = i, s = null, y = u ? "l" : "L";
1097
+ const u = y === "m", d = l(), h = l();
1098
+ o = u ? o + d : d, i = u ? i + h : h, r.length > 0 && t.push(r), r = [{ x: o, y: i }], c = o, a = i, s = null, y = u ? "l" : "L";
1099
1099
  break;
1100
1100
  }
1101
1101
  case "L":
1102
1102
  case "l": {
1103
- const u = y === "l", h = l(), d = l();
1104
- o = u ? o + h : h, i = u ? i + d : d, r.push({ x: o, y: i }), s = null;
1103
+ const u = y === "l", d = l(), h = l();
1104
+ o = u ? o + d : d, i = u ? i + h : h, r.push({ x: o, y: i }), s = null;
1105
1105
  break;
1106
1106
  }
1107
1107
  case "H":
1108
1108
  case "h": {
1109
- const u = y === "h", h = l();
1110
- o = u ? o + h : h, r.push({ x: o, y: i }), s = null;
1109
+ const u = y === "h", d = l();
1110
+ o = u ? o + d : d, r.push({ x: o, y: i }), s = null;
1111
1111
  break;
1112
1112
  }
1113
1113
  case "V":
1114
1114
  case "v": {
1115
- const u = y === "v", h = l();
1116
- i = u ? i + h : h, r.push({ x: o, y: i }), s = null;
1115
+ const u = y === "v", d = l();
1116
+ i = u ? i + d : d, r.push({ x: o, y: i }), s = null;
1117
1117
  break;
1118
1118
  }
1119
1119
  case "C":
1120
1120
  case "c": {
1121
- const u = y === "c", h = u ? o + l() : l(), d = u ? i + l() : l(), m = u ? o + l() : l(), x = u ? i + l() : l(), I = u ? o + l() : l(), p = u ? i + l() : l(), g = lt(
1121
+ const u = y === "c", d = u ? o + l() : l(), h = u ? i + l() : l(), m = u ? o + l() : l(), p = u ? i + l() : l(), I = u ? o + l() : l(), k = u ? i + l() : l(), x = fe(
1122
1122
  { x: o, y: i },
1123
- { x: h, y: d },
1124
- { x: m, y: x },
1125
- { x: I, y: p }
1123
+ { x: d, y: h },
1124
+ { x: m, y: p },
1125
+ { x: I, y: k }
1126
1126
  );
1127
- r.push(...g.slice(1)), s = { x: m, y: x }, o = I, i = p;
1127
+ r.push(...x.slice(1)), s = { x: m, y: p }, o = I, i = k;
1128
1128
  break;
1129
1129
  }
1130
1130
  case "Q":
1131
1131
  case "q": {
1132
- const u = y === "q", h = u ? o + l() : l(), d = u ? i + l() : l(), m = u ? o + l() : l(), x = u ? i + l() : l(), I = Zt(
1132
+ const u = y === "q", d = u ? o + l() : l(), h = u ? i + l() : l(), m = u ? o + l() : l(), p = u ? i + l() : l(), I = Ze(
1133
1133
  { x: o, y: i },
1134
- { x: h, y: d },
1135
- { x: m, y: x }
1134
+ { x: d, y: h },
1135
+ { x: m, y: p }
1136
1136
  );
1137
- r.push(...I.slice(1)), s = { x: h, y: d }, o = m, i = x;
1137
+ r.push(...I.slice(1)), s = { x: d, y: h }, o = m, i = p;
1138
1138
  break;
1139
1139
  }
1140
1140
  case "S":
1141
1141
  case "s": {
1142
- const u = y === "s", h = s ? 2 * o - s.x : o, d = s ? 2 * i - s.y : i, m = u ? o + l() : l(), x = u ? i + l() : l(), I = u ? o + l() : l(), p = u ? i + l() : l(), g = lt(
1142
+ const u = y === "s", d = s ? 2 * o - s.x : o, h = s ? 2 * i - s.y : i, m = u ? o + l() : l(), p = u ? i + l() : l(), I = u ? o + l() : l(), k = u ? i + l() : l(), x = fe(
1143
1143
  { x: o, y: i },
1144
- { x: h, y: d },
1145
- { x: m, y: x },
1146
- { x: I, y: p }
1144
+ { x: d, y: h },
1145
+ { x: m, y: p },
1146
+ { x: I, y: k }
1147
1147
  );
1148
- r.push(...g.slice(1)), s = { x: m, y: x }, o = I, i = p;
1148
+ r.push(...x.slice(1)), s = { x: m, y: p }, o = I, i = k;
1149
1149
  break;
1150
1150
  }
1151
1151
  case "T":
1152
1152
  case "t": {
1153
- const u = y === "t", h = s ? 2 * o - s.x : o, d = s ? 2 * i - s.y : i, m = u ? o + l() : l(), x = u ? i + l() : l(), I = Zt(
1153
+ const u = y === "t", d = s ? 2 * o - s.x : o, h = s ? 2 * i - s.y : i, m = u ? o + l() : l(), p = u ? i + l() : l(), I = Ze(
1154
1154
  { x: o, y: i },
1155
- { x: h, y: d },
1156
- { x: m, y: x }
1155
+ { x: d, y: h },
1156
+ { x: m, y: p }
1157
1157
  );
1158
- r.push(...I.slice(1)), s = { x: h, y: d }, o = m, i = x;
1158
+ r.push(...I.slice(1)), s = { x: d, y: h }, o = m, i = p;
1159
1159
  break;
1160
1160
  }
1161
1161
  case "A":
1162
1162
  case "a": {
1163
- const u = y === "a", h = l(), d = l(), m = l(), x = l() !== 0, I = l() !== 0, p = u ? o + l() : l(), g = u ? i + l() : l(), _ = Xn(
1163
+ const u = y === "a", d = l(), h = l(), m = l(), p = l() !== 0, I = l() !== 0, k = u ? o + l() : l(), x = u ? i + l() : l(), g = Xt(
1164
1164
  { x: o, y: i },
1165
- h,
1166
1165
  d,
1166
+ h,
1167
1167
  m,
1168
- x,
1168
+ p,
1169
1169
  I,
1170
- { x: p, y: g }
1170
+ { x: k, y: x }
1171
1171
  );
1172
- r.push(..._.slice(1)), s = null, o = p, i = g;
1172
+ r.push(...g.slice(1)), s = null, o = k, i = x;
1173
1173
  break;
1174
1174
  }
1175
1175
  case "Z":
1176
1176
  case "z": {
1177
- r.push({ x: c, y: a }), n.push(r), r = [], o = c, i = a, s = null;
1177
+ r.push({ x: c, y: a }), t.push(r), r = [], o = c, i = a, s = null;
1178
1178
  break;
1179
1179
  }
1180
1180
  default:
@@ -1182,124 +1182,124 @@ function be(t) {
1182
1182
  break;
1183
1183
  }
1184
1184
  }
1185
- return r.length > 0 && n.push(r), n;
1185
+ return r.length > 0 && t.push(r), t;
1186
1186
  }
1187
- function Un(t) {
1188
- const e = t.match(
1187
+ function Ut(e) {
1188
+ const n = e.match(
1189
1189
  /^\s*M\s*(-?\d*\.?\d+(?:e[-+]?\d+)?)[\s,]+(-?\d*\.?\d+(?:e[-+]?\d+)?)/i
1190
1190
  );
1191
- if (!e) return null;
1192
- const n = Number(e[1]), r = Number(e[2]);
1193
- return Number.isFinite(n) && Number.isFinite(r) ? { x: n, y: r } : null;
1191
+ if (!n) return null;
1192
+ const t = Number(n[1]), r = Number(n[2]);
1193
+ return Number.isFinite(t) && Number.isFinite(r) ? { x: t, y: r } : null;
1194
1194
  }
1195
- function Vn(t) {
1195
+ function Vt(e) {
1196
1196
  var o, i;
1197
- const e = (o = t.paths[0]) == null ? void 0 : o.d;
1198
- if (!e || t.polygons.length === 0) return !1;
1199
- const n = Un(e), r = (i = t.polygons[0]) == null ? void 0 : i[0];
1200
- return !n || !r ? !1 : Math.abs(n.x - r.x) > 0.01 || Math.abs(n.y - r.y) > 0.01;
1201
- }
1202
- function Ie(t) {
1203
- if (!Vn(t)) return t;
1204
- const e = t.paths.flatMap((n) => be(n.d));
1205
- return e.length === 0 ? t : { paths: t.paths, polygons: e };
1206
- }
1207
- function Wn(t) {
1208
- const e = t.map((r) => ({
1197
+ const n = (o = e.paths[0]) == null ? void 0 : o.d;
1198
+ if (!n || e.polygons.length === 0) return !1;
1199
+ const t = Ut(n), r = (i = e.polygons[0]) == null ? void 0 : i[0];
1200
+ return !t || !r ? !1 : Math.abs(t.x - r.x) > 0.01 || Math.abs(t.y - r.y) > 0.01;
1201
+ }
1202
+ function gn(e) {
1203
+ if (!Vt(e)) return e;
1204
+ const n = e.paths.flatMap((t) => In(t.d));
1205
+ return n.length === 0 ? e : { paths: e.paths, polygons: n };
1206
+ }
1207
+ function Wt(e) {
1208
+ const n = e.map((r) => ({
1209
1209
  d: r,
1210
1210
  closed: /z/i.test(r)
1211
- })), n = t.flatMap((r) => be(r));
1212
- return { paths: e, polygons: n };
1211
+ })), t = e.flatMap((r) => In(r));
1212
+ return { paths: n, polygons: t };
1213
1213
  }
1214
- function Mt(t) {
1215
- const e = t.polygons.flat();
1216
- return $n(e);
1214
+ function we(e) {
1215
+ const n = e.polygons.flat();
1216
+ return Bt(n);
1217
1217
  }
1218
- function Zn(t) {
1219
- return Bn(t.polygons.flat());
1218
+ function Zt(e) {
1219
+ return $t(e.polygons.flat());
1220
1220
  }
1221
- function xi(t, e, n = 0, r = [15, 45, 90]) {
1222
- const o = e.x - t.x, i = e.y - t.y, c = Math.hypot(o, i);
1223
- if (c === 0) return { ...e };
1224
- const s = Math.atan2(i, o) * 180 / Math.PI - n;
1221
+ function Ii(e, n, t = 0, r = [15, 45, 90]) {
1222
+ const o = n.x - e.x, i = n.y - e.y, c = Math.hypot(o, i);
1223
+ if (c === 0) return { ...n };
1224
+ const s = Math.atan2(i, o) * 180 / Math.PI - t;
1225
1225
  let f = s, y = 1 / 0;
1226
1226
  for (const b of r) {
1227
- const u = Math.round(s / b) * b, h = Math.abs(s - u);
1228
- h < y && (y = h, f = u);
1227
+ const u = Math.round(s / b) * b, d = Math.abs(s - u);
1228
+ d < y && (y = d, f = u);
1229
1229
  }
1230
- const l = (f + n) * Math.PI / 180;
1230
+ const l = (f + t) * Math.PI / 180;
1231
1231
  return {
1232
- x: t.x + Math.cos(l) * c,
1233
- y: t.y + Math.sin(l) * c
1232
+ x: e.x + Math.cos(l) * c,
1233
+ y: e.y + Math.sin(l) * c
1234
1234
  };
1235
1235
  }
1236
- function bi(t, e) {
1237
- return Math.atan2(e.y - t.y, e.x - t.x) * 180 / Math.PI;
1236
+ function gi(e, n) {
1237
+ return Math.atan2(n.y - e.y, n.x - e.x) * 180 / Math.PI;
1238
1238
  }
1239
- function jn(t) {
1240
- if (!t) return null;
1241
- const e = t.trim().split(/[\s,]+/).map(Number);
1242
- return e.length !== 4 || e.some((n) => Number.isNaN(n)) ? null : { x: e[0], y: e[1], width: e[2], height: e[3] };
1239
+ function jt(e) {
1240
+ if (!e) return null;
1241
+ const n = e.trim().split(/[\s,]+/).map(Number);
1242
+ return n.length !== 4 || n.some((t) => Number.isNaN(t)) ? null : { x: n[0], y: n[1], width: n[2], height: n[3] };
1243
1243
  }
1244
- function z(t, e, n) {
1245
- return { x: t.x + (e.x - t.x) * n, y: t.y + (e.y - t.y) * n };
1244
+ function G(e, n, t) {
1245
+ return { x: e.x + (n.x - e.x) * t, y: e.y + (n.y - e.y) * t };
1246
1246
  }
1247
- function tt(t, e) {
1248
- return { x: t.x + e.x, y: t.y + e.y };
1247
+ function te(e, n) {
1248
+ return { x: e.x + n.x, y: e.y + n.y };
1249
1249
  }
1250
- function jt(t, e) {
1251
- return { x: t.x - e.x, y: t.y - e.y };
1250
+ function je(e, n) {
1251
+ return { x: e.x - n.x, y: e.y - n.y };
1252
1252
  }
1253
- function gt(t, e) {
1254
- return { x: t.x * e, y: t.y * e };
1253
+ function _e(e, n) {
1254
+ return { x: e.x * n, y: e.y * n };
1255
1255
  }
1256
- function q(t) {
1257
- const e = t == null ? void 0 : t.curve;
1258
- if (!(e != null && e.c1) || !(e != null && e.c2)) return null;
1259
- const n = Number(e.c1.x), r = Number(e.c1.y), o = Number(e.c2.x), i = Number(e.c2.y);
1260
- return [n, r, o, i].every((c) => Number.isFinite(c)) ? {
1261
- c1: { x: n, y: r },
1256
+ function Q(e) {
1257
+ const n = e == null ? void 0 : e.curve;
1258
+ if (!(n != null && n.c1) || !(n != null && n.c2)) return null;
1259
+ const t = Number(n.c1.x), r = Number(n.c1.y), o = Number(n.c2.x), i = Number(n.c2.y);
1260
+ return [t, r, o, i].every((c) => Number.isFinite(c)) ? {
1261
+ c1: { x: t, y: r },
1262
1262
  c2: { x: o, y: i }
1263
1263
  } : null;
1264
1264
  }
1265
- function Ii(t) {
1266
- const e = q(t);
1267
- return e || ([t == null ? void 0 : t.c1_x, t == null ? void 0 : t.c1_y, t == null ? void 0 : t.c2_x, t == null ? void 0 : t.c2_y].some(
1265
+ function _i(e) {
1266
+ const n = Q(e);
1267
+ return n || ([e == null ? void 0 : e.c1_x, e == null ? void 0 : e.c1_y, e == null ? void 0 : e.c2_x, e == null ? void 0 : e.c2_y].some(
1268
1268
  (r) => r == null || !Number.isFinite(Number(r))
1269
1269
  ) ? null : {
1270
- c1: { x: Number(t.c1_x), y: Number(t.c1_y) },
1271
- c2: { x: Number(t.c2_x), y: Number(t.c2_y) }
1270
+ c1: { x: Number(e.c1_x), y: Number(e.c1_y) },
1271
+ c2: { x: Number(e.c2_x), y: Number(e.c2_y) }
1272
1272
  });
1273
1273
  }
1274
- function qn(t) {
1274
+ function qt(e) {
1275
1275
  return {
1276
- c1: { x: t.c2.x, y: t.c2.y },
1277
- c2: { x: t.c1.x, y: t.c1.y }
1276
+ c1: { x: e.c2.x, y: e.c2.y },
1277
+ c2: { x: e.c1.x, y: e.c1.y }
1278
1278
  };
1279
1279
  }
1280
- function gi(t, e, n) {
1281
- const r = z(t, e, 0.5), o = gt(jt(n, r), 4 / 3), i = jt(e, t);
1280
+ function ki(e, n, t) {
1281
+ const r = G(e, n, 0.5), o = _e(je(t, r), 4 / 3), i = je(n, e);
1282
1282
  return {
1283
- c1: tt(tt(t, gt(i, 1 / 3)), o),
1284
- c2: tt(tt(t, gt(i, 2 / 3)), o)
1283
+ c1: te(te(e, _e(i, 1 / 3)), o),
1284
+ c2: te(te(e, _e(i, 2 / 3)), o)
1285
1285
  };
1286
1286
  }
1287
- function _i(t, e, n) {
1288
- return e === 1 ? { ...t, c1: { x: n.x, y: n.y } } : { ...t, c2: { x: n.x, y: n.y } };
1287
+ function Oi(e, n, t) {
1288
+ return n === 1 ? { ...e, c1: { x: t.x, y: t.y } } : { ...e, c2: { x: t.x, y: t.y } };
1289
1289
  }
1290
- function Oi(t, e, n) {
1291
- const r = q(t);
1290
+ function Ai(e, n, t) {
1291
+ const r = Q(e);
1292
1292
  if (!r) return null;
1293
- const o = t.fromAnchorId === e, i = t.toAnchorId === e;
1293
+ const o = e.fromAnchorId === n, i = e.toAnchorId === n;
1294
1294
  return !o && !i ? null : {
1295
- c1: o ? { x: r.c1.x + n.x, y: r.c1.y + n.y } : { x: r.c1.x, y: r.c1.y },
1296
- c2: i ? { x: r.c2.x + n.x, y: r.c2.y + n.y } : { x: r.c2.x, y: r.c2.y }
1295
+ c1: o ? { x: r.c1.x + t.x, y: r.c1.y + t.y } : { x: r.c1.x, y: r.c1.y },
1296
+ c2: i ? { x: r.c2.x + t.x, y: r.c2.y + t.y } : { x: r.c2.x, y: r.c2.y }
1297
1297
  };
1298
1298
  }
1299
- function ki(t, e, n) {
1300
- const r = q(t);
1299
+ function Si(e, n, t) {
1300
+ const r = Q(e);
1301
1301
  if (!r) return null;
1302
- const o = e.get(t.fromAnchorId), i = e.get(t.toAnchorId), c = n.get(t.fromAnchorId), a = n.get(t.toAnchorId);
1302
+ const o = n.get(e.fromAnchorId), i = n.get(e.toAnchorId), c = t.get(e.fromAnchorId), a = t.get(e.toAnchorId);
1303
1303
  return !o || !i || !c || !a ? r : {
1304
1304
  c1: {
1305
1305
  x: r.c1.x + c.x - o.x,
@@ -1311,27 +1311,27 @@ function ki(t, e, n) {
1311
1311
  }
1312
1312
  };
1313
1313
  }
1314
- function Ai(t, e, n) {
1315
- return n ? `M ${t.x} ${t.y} C ${n.c1.x} ${n.c1.y} ${n.c2.x} ${n.c2.y} ${e.x} ${e.y}` : `M ${t.x} ${t.y} L ${e.x} ${e.y}`;
1314
+ function Ri(e, n, t) {
1315
+ return t ? `M ${e.x} ${e.y} C ${t.c1.x} ${t.c1.y} ${t.c2.x} ${t.c2.y} ${n.x} ${n.y}` : `M ${e.x} ${e.y} L ${n.x} ${n.y}`;
1316
1316
  }
1317
- function ge(t, e, n) {
1318
- if (!n) return N(t, e);
1319
- const r = lt(t, n.c1, n.c2, e, 16);
1317
+ function _n(e, n, t) {
1318
+ if (!t) return T(e, n);
1319
+ const r = fe(e, t.c1, t.c2, n, 16);
1320
1320
  let o = 0;
1321
1321
  for (let i = 1; i < r.length; i += 1)
1322
- o += N(r[i - 1], r[i]);
1322
+ o += T(r[i - 1], r[i]);
1323
1323
  return o;
1324
1324
  }
1325
- function Qn(t, e, n, r) {
1326
- if (!r) return at(t, e, n);
1327
- const o = lt(e, r.c1, r.c2, n, 24), i = Math.max(o.length - 1, 1);
1325
+ function Qt(e, n, t, r) {
1326
+ if (!r) return ue(e, n, t);
1327
+ const o = fe(n, r.c1, r.c2, t, 24), i = Math.max(o.length - 1, 1);
1328
1328
  let c = {
1329
- point: { x: e.x, y: e.y },
1329
+ point: { x: n.x, y: n.y },
1330
1330
  t: 0,
1331
- distance: N(t, e)
1331
+ distance: T(e, n)
1332
1332
  };
1333
1333
  for (let a = 1; a < o.length; a += 1) {
1334
- const s = at(t, o[a - 1], o[a]);
1334
+ const s = ue(e, o[a - 1], o[a]);
1335
1335
  s.distance < c.distance && (c = {
1336
1336
  point: s.point,
1337
1337
  t: (a - 1 + s.t) / i,
@@ -1340,32 +1340,32 @@ function Qn(t, e, n, r) {
1340
1340
  }
1341
1341
  return c;
1342
1342
  }
1343
- function Jn(t, e, n, r, o) {
1344
- const i = z(t, e, o), c = z(e, n, o), a = z(n, r, o), s = z(i, c, o), f = z(c, a, o), y = z(s, f, o);
1343
+ function Jt(e, n, t, r, o) {
1344
+ const i = G(e, n, o), c = G(n, t, o), a = G(t, r, o), s = G(i, c, o), f = G(c, a, o), y = G(s, f, o);
1345
1345
  return {
1346
1346
  left: { c1: i, c2: s },
1347
1347
  right: { c1: f, c2: a },
1348
1348
  point: y
1349
1349
  };
1350
1350
  }
1351
- function Si(t, e, n, r) {
1352
- if (!n)
1353
- return { point: at(r, t, e).point, left: null, right: null };
1354
- const o = Qn(r, t, e, n), i = Math.min(1, Math.max(0, o.t)), c = Jn(t, n.c1, n.c2, e, i);
1351
+ function Ci(e, n, t, r) {
1352
+ if (!t)
1353
+ return { point: ue(r, e, n).point, left: null, right: null };
1354
+ const o = Qt(r, e, n, t), i = Math.min(1, Math.max(0, o.t)), c = Jt(e, t.c1, t.c2, n, i);
1355
1355
  return { point: c.point, left: c.left, right: c.right };
1356
1356
  }
1357
- function tr(t, e, n) {
1358
- const r = t.connectorId ?? e.connectorId;
1359
- return r == null ? void 0 : n.get(r);
1357
+ function er(e, n, t) {
1358
+ const r = e.connectorId ?? n.connectorId;
1359
+ return r == null ? void 0 : t.get(r);
1360
1360
  }
1361
- function er(t, e, n, r) {
1361
+ function nr(e, n, t, r) {
1362
1362
  var o;
1363
- return e.levelId === n.levelId ? !0 : t.kind !== "connector" ? !1 : Ge(
1364
- (o = tr(e, n, r)) == null ? void 0 : o.kind
1363
+ return n.levelId === t.levelId ? !0 : e.kind !== "connector" ? !1 : Gn(
1364
+ (o = er(n, t, r)) == null ? void 0 : o.kind
1365
1365
  );
1366
1366
  }
1367
- function nr(t, e, n = []) {
1368
- const r = Ee(), o = new Map(t.map((f) => [f.id, f])), i = new Map(n.map((f) => [f.id, f])), c = t.map((f) => ({
1367
+ function tr(e, n, t = []) {
1368
+ const r = Ln(), o = new Map(e.map((f) => [f.id, f])), i = new Map(t.map((f) => [f.id, f])), c = e.map((f) => ({
1369
1369
  id: f.id,
1370
1370
  levelId: f.levelId,
1371
1371
  x: f.x,
@@ -1377,235 +1377,235 @@ function nr(t, e, n = []) {
1377
1377
  for (const f of c)
1378
1378
  r.addNode(f.id, f);
1379
1379
  const a = [];
1380
- for (const f of e) {
1380
+ for (const f of n) {
1381
1381
  const y = o.get(f.fromAnchorId), l = o.get(f.toAnchorId);
1382
- if (!y || !l || !er(f, y, l, i)) continue;
1383
- const b = q(f);
1382
+ if (!y || !l || !nr(f, y, l, i)) continue;
1383
+ const b = Q(f);
1384
1384
  let u = f.weight;
1385
- u == null && (u = ge(y, l, b), y.levelId !== l.levelId && (u += Ct));
1386
- let h = f.accessible;
1385
+ u == null && (u = _n(y, l, b), y.levelId !== l.levelId && (u += ve));
1386
+ let d = f.accessible;
1387
1387
  if (f.kind === "connector" && y.connectorId != null) {
1388
1388
  const m = i.get(y.connectorId);
1389
- m && (h = m.accessible);
1389
+ m && (d = m.accessible);
1390
1390
  }
1391
- const d = {
1391
+ const h = {
1392
1392
  id: f.id,
1393
1393
  from: f.fromAnchorId,
1394
1394
  to: f.toAnchorId,
1395
1395
  weight: u,
1396
1396
  directed: f.directed,
1397
- accessible: h,
1397
+ accessible: d,
1398
1398
  kind: f.kind,
1399
1399
  curve: b
1400
1400
  };
1401
- a.push(d), r.addLink(f.fromAnchorId, f.toAnchorId, d), f.directed || r.addLink(f.toAnchorId, f.fromAnchorId, d);
1401
+ a.push(h), r.addLink(f.fromAnchorId, f.toAnchorId, h), f.directed || r.addLink(f.toAnchorId, f.fromAnchorId, h);
1402
1402
  }
1403
- const s = new Map(n.map((f) => [f.id, f.kind]));
1403
+ const s = new Map(t.map((f) => [f.id, f.kind]));
1404
1404
  return { graph: r, nodes: c, edges: a, anchorById: o, connectorKindById: s };
1405
1405
  }
1406
- function rr(t, e, n, r) {
1407
- const o = t.anchorById.get(e), i = t.anchorById.get(n);
1406
+ function rr(e, n, t, r) {
1407
+ const o = e.anchorById.get(n), i = e.anchorById.get(t);
1408
1408
  if (!o || !i || o.levelId === i.levelId) return !1;
1409
1409
  const c = o.connectorId ?? i.connectorId;
1410
- return c == null ? !0 : t.connectorKindById.get(c) !== r;
1410
+ return c == null ? !0 : e.connectorKindById.get(c) !== r;
1411
1411
  }
1412
- function or(t, e, n, r = {}) {
1413
- const { graph: o, anchorById: i } = t;
1414
- if (!i.has(e) || !i.has(n))
1412
+ function or(e, n, t, r = {}) {
1413
+ const { graph: o, anchorById: i } = e;
1414
+ if (!i.has(n) || !i.has(t))
1415
1415
  return null;
1416
- const a = Le.nba(o, {
1416
+ const a = Nn.nba(o, {
1417
1417
  oriented: !0,
1418
- distance(h, d, m) {
1419
- const x = m.data;
1418
+ distance(d, h, m) {
1419
+ const p = m.data;
1420
1420
  return r.verticalTransport && rr(
1421
- t,
1422
- h.id,
1421
+ e,
1423
1422
  d.id,
1423
+ h.id,
1424
1424
  r.verticalTransport
1425
- ) || r.accessibleOnly && x && !x.accessible ? Number.POSITIVE_INFINITY : (x == null ? void 0 : x.weight) ?? 1;
1425
+ ) || r.accessibleOnly && p && !p.accessible ? Number.POSITIVE_INFINITY : (p == null ? void 0 : p.weight) ?? 1;
1426
1426
  },
1427
- heuristic(h, d) {
1428
- const m = i.get(h.id), x = i.get(d.id);
1429
- if (!m || !x) return 0;
1430
- let I = N(m, x);
1431
- return m.levelId !== x.levelId && (I += Ct), I;
1427
+ heuristic(d, h) {
1428
+ const m = i.get(d.id), p = i.get(h.id);
1429
+ if (!m || !p) return 0;
1430
+ let I = T(m, p);
1431
+ return m.levelId !== p.levelId && (I += ve), I;
1432
1432
  }
1433
- }).find(e, n);
1433
+ }).find(n, t);
1434
1434
  if (!a || a.length === 0) return null;
1435
- const f = a.reverse().map((h) => h.id), y = [], l = [], b = [];
1435
+ const f = a.reverse().map((d) => d.id), y = [], l = [], b = [];
1436
1436
  let u = 0;
1437
- for (let h = 0; h < f.length; h++) {
1438
- const d = i.get(f[h]);
1439
- if (y.push({ x: d.x, y: d.y, levelId: d.levelId }), h > 0) {
1440
- const m = f[h - 1], x = i.get(m), I = ir(t, m, f[h]);
1441
- l.push(I), u += ge(x, d, I), x.levelId !== d.levelId && (u += Ct, b.push({
1442
- fromLevelId: x.levelId,
1443
- toLevelId: d.levelId,
1444
- connectorId: d.connectorId ?? x.connectorId
1437
+ for (let d = 0; d < f.length; d++) {
1438
+ const h = i.get(f[d]);
1439
+ if (y.push({ x: h.x, y: h.y, levelId: h.levelId }), d > 0) {
1440
+ const m = f[d - 1], p = i.get(m), I = ir(e, m, f[d]);
1441
+ l.push(I), u += _n(p, h, I), p.levelId !== h.levelId && (u += ve, b.push({
1442
+ fromLevelId: p.levelId,
1443
+ toLevelId: h.levelId,
1444
+ connectorId: h.connectorId ?? p.connectorId
1445
1445
  }));
1446
1446
  }
1447
1447
  }
1448
1448
  return { anchorIds: f, points: y, curves: l, totalWeight: u, levelChanges: b };
1449
1449
  }
1450
- function ir(t, e, n) {
1451
- const r = t.edges.find(
1452
- (i) => i.from === e && i.to === n || !i.directed && i.from === n && i.to === e
1453
- ), o = q(r);
1454
- return !o || !r ? null : r.from === e ? o : qn(o);
1450
+ function ir(e, n, t) {
1451
+ const r = e.edges.find(
1452
+ (i) => i.from === n && i.to === t || !i.directed && i.from === t && i.to === n
1453
+ ), o = Q(r);
1454
+ return !o || !r ? null : r.from === n ? o : qt(o);
1455
1455
  }
1456
- function vt(t) {
1457
- const e = /* @__PURE__ */ new Set(), n = [];
1458
- for (const r of t)
1459
- !Number.isFinite(r) || e.has(r) || (e.add(r), n.push(r));
1460
- return n;
1456
+ function Ee(e) {
1457
+ const n = /* @__PURE__ */ new Set(), t = [];
1458
+ for (const r of e)
1459
+ !Number.isFinite(r) || n.has(r) || (n.add(r), t.push(r));
1460
+ return t;
1461
1461
  }
1462
- function Ri(t, e) {
1463
- return t.filter((n) => n.shapeId === e).map((n) => n.id);
1462
+ function vi(e, n) {
1463
+ return e.filter((t) => t.shapeId === n).map((t) => t.id);
1464
1464
  }
1465
- function sr(t, e) {
1466
- const n = [];
1467
- for (const r of t) {
1465
+ function sr(e, n) {
1466
+ const t = [];
1467
+ for (const r of e) {
1468
1468
  const o = /* @__PURE__ */ new Set();
1469
1469
  for (const i of r.shapes)
1470
- e(i) && o.add(i.id);
1470
+ n(i) && o.add(i.id);
1471
1471
  if (o.size !== 0)
1472
1472
  for (const i of r.anchors)
1473
- i.shapeId != null && o.has(i.shapeId) && n.push(i.id);
1473
+ i.shapeId != null && o.has(i.shapeId) && t.push(i.id);
1474
1474
  }
1475
- return n;
1476
- }
1477
- function cr(t, e) {
1478
- const n = t.anchorById.get(e);
1479
- if (!n) return [];
1480
- if (n.shapeId == null) return [e];
1481
- const r = t.nodes.filter((o) => o.shapeId === n.shapeId).map((o) => o.id);
1482
- return r.length > 0 ? r : [e];
1483
- }
1484
- function qt(t, e) {
1485
- const n = /* @__PURE__ */ new Set();
1486
- for (const r of vt(e))
1487
- for (const o of cr(t, r))
1488
- n.add(o);
1489
- return [...n];
1490
- }
1491
- function ar(t, e, n, r = {}) {
1492
- const o = vt(e), i = vt(n);
1475
+ return t;
1476
+ }
1477
+ function cr(e, n) {
1478
+ const t = e.anchorById.get(n);
1479
+ if (!t) return [];
1480
+ if (t.shapeId == null) return [n];
1481
+ const r = e.nodes.filter((o) => o.shapeId === t.shapeId).map((o) => o.id);
1482
+ return r.length > 0 ? r : [n];
1483
+ }
1484
+ function qe(e, n) {
1485
+ const t = /* @__PURE__ */ new Set();
1486
+ for (const r of Ee(n))
1487
+ for (const o of cr(e, r))
1488
+ t.add(o);
1489
+ return [...t];
1490
+ }
1491
+ function ar(e, n, t, r = {}) {
1492
+ const o = Ee(n), i = Ee(t);
1493
1493
  if (o.length === 0 || i.length === 0) return null;
1494
1494
  let c = null;
1495
1495
  for (const a of o)
1496
1496
  for (const s of i) {
1497
- const f = or(t, a, s, r);
1497
+ const f = or(e, a, s, r);
1498
1498
  f && (!c || f.totalWeight < c.totalWeight) && (c = f);
1499
1499
  }
1500
1500
  return c;
1501
1501
  }
1502
- function lr(t, e, n, r = {}) {
1502
+ function lr(e, n, t, r = {}) {
1503
1503
  return ar(
1504
- t,
1505
- qt(t, e),
1506
- qt(t, n),
1504
+ e,
1505
+ qe(e, n),
1506
+ qe(e, t),
1507
1507
  r
1508
1508
  );
1509
1509
  }
1510
- function ur(t, e, n, r = {}) {
1510
+ function ur(e, n, t, r = {}) {
1511
1511
  return lr(
1512
+ e,
1513
+ [n],
1512
1514
  t,
1513
- [e],
1514
- n,
1515
1515
  r
1516
1516
  );
1517
1517
  }
1518
- function O(t) {
1519
- if (typeof t != "string") return null;
1520
- const e = t.trim();
1521
- return e || null;
1518
+ function O(e) {
1519
+ if (typeof e != "string") return null;
1520
+ const n = e.trim();
1521
+ return n || null;
1522
1522
  }
1523
- function et(t) {
1524
- const e = typeof t == "number" ? t : Number(t);
1525
- return Number.isFinite(e) && e > 0 ? e : null;
1523
+ function re(e) {
1524
+ const n = typeof e == "number" ? e : Number(e);
1525
+ return Number.isFinite(n) && n > 0 ? n : null;
1526
1526
  }
1527
- function nt(t) {
1528
- return !t || typeof t != "object" ? null : O(t.url);
1527
+ function oe(e) {
1528
+ return !e || typeof e != "object" ? null : O(e.url);
1529
1529
  }
1530
- function Ci(t, e) {
1530
+ function Ei(e, n) {
1531
1531
  var r;
1532
- const n = pe(t);
1533
- return !e || !n.storeModal && !n.sidebar ? !1 : e.kind === "unit" ? ((r = e.assignment) == null ? void 0 : r.retailerId) != null : e.kind === "amenity" ? T(e.assignment) : !1;
1532
+ const t = xn(e);
1533
+ return !n || !t.storeModal && !t.sidebar ? !1 : n.kind === "unit" ? ((r = n.assignment) == null ? void 0 : r.retailerId) != null : n.kind === "amenity" ? M(n.assignment) : !1;
1534
1534
  }
1535
- function vi(t) {
1536
- return t === "directions";
1535
+ function Li(e) {
1536
+ return e === "directions";
1537
1537
  }
1538
- function fr(t, e) {
1539
- for (const n of t.levels) {
1540
- const r = n.shapes.find((o) => o.id === e);
1541
- if (r) return { level: n, shape: r };
1538
+ function fr(e, n) {
1539
+ for (const t of e.levels) {
1540
+ const r = t.shapes.find((o) => o.id === n);
1541
+ if (r) return { level: t, shape: r };
1542
1542
  }
1543
1543
  return null;
1544
1544
  }
1545
- function dr(t, e) {
1545
+ function dr(e, n) {
1546
1546
  var r, o, i, c;
1547
- const n = ((r = t.assignment) == null ? void 0 : r.amenityId) != null ? e == null ? void 0 : e.find((a) => a.id === t.assignment.amenityId) : void 0;
1548
- return O((o = t.assignment) == null ? void 0 : o.customLabel) || O(n == null ? void 0 : n.name) || O((i = t.label) == null ? void 0 : i.text) || O((c = t.assignment) == null ? void 0 : c.unitNumber) || t.key;
1547
+ const t = ((r = e.assignment) == null ? void 0 : r.amenityId) != null ? n == null ? void 0 : n.find((a) => a.id === e.assignment.amenityId) : void 0;
1548
+ return O((o = e.assignment) == null ? void 0 : o.customLabel) || O(t == null ? void 0 : t.name) || O((i = e.label) == null ? void 0 : i.text) || O((c = e.assignment) == null ? void 0 : c.unitNumber) || e.key;
1549
1549
  }
1550
- function wt(t, e, n) {
1550
+ function Pe(e, n, t) {
1551
1551
  var i;
1552
- const r = e.anchors.find((c) => c.shapeId === n);
1552
+ const r = n.anchors.find((c) => c.shapeId === t);
1553
1553
  if (r) return r.id;
1554
- const o = (i = t.graph) == null ? void 0 : i.nodes.find(
1555
- (c) => c.shapeId === n && c.levelId === e.id
1554
+ const o = (i = e.graph) == null ? void 0 : i.nodes.find(
1555
+ (c) => c.shapeId === t && c.levelId === n.id
1556
1556
  );
1557
1557
  return (o == null ? void 0 : o.id) ?? null;
1558
1558
  }
1559
- function Ei(t, e) {
1559
+ function Ni(e, n) {
1560
1560
  var o, i;
1561
- const n = fr(t, e);
1562
- if (!n) return null;
1563
- const r = n.shape.kind === "amenity" ? "amenity" : "store";
1561
+ const t = fr(e, n);
1562
+ if (!t) return null;
1563
+ const r = t.shape.kind === "amenity" ? "amenity" : "store";
1564
1564
  return {
1565
- shapeId: e,
1566
- levelId: n.level.id,
1567
- anchorId: wt(t, n.level, e),
1565
+ shapeId: n,
1566
+ levelId: t.level.id,
1567
+ anchorId: Pe(e, t.level, n),
1568
1568
  kind: r,
1569
- retailerId: ((o = n.shape.assignment) == null ? void 0 : o.retailerId) ?? null,
1570
- amenityId: ((i = n.shape.assignment) == null ? void 0 : i.amenityId) ?? null,
1571
- name: dr(n.shape, t.amenities),
1572
- isExterior: X(n.level)
1569
+ retailerId: ((o = t.shape.assignment) == null ? void 0 : o.retailerId) ?? null,
1570
+ amenityId: ((i = t.shape.assignment) == null ? void 0 : i.amenityId) ?? null,
1571
+ name: dr(t.shape, e.amenities),
1572
+ isExterior: X(t.level)
1573
1573
  };
1574
1574
  }
1575
- const _e = "Directions are unavailable for this location.", Li = "No route is available between these locations.";
1576
- function hr(t) {
1577
- return t ? t.isExterior || t.anchorId == null : !0;
1575
+ const kn = "Directions are unavailable for this location.", Ti = "No route is available between these locations.";
1576
+ function hr(e) {
1577
+ return e ? e.isExterior || e.anchorId == null : !0;
1578
1578
  }
1579
- function Ni(t, e) {
1580
- const n = hr(e), r = t !== "DISPLAY_APP";
1579
+ function Mi(e, n) {
1580
+ const t = hr(n), r = e !== "DISPLAY_APP";
1581
1581
  return {
1582
- showFromRetailers: r && !n,
1582
+ showFromRetailers: r && !t,
1583
1583
  showMapIt: r,
1584
- mapItDisabled: n,
1585
- mapItTooltip: r && n ? _e : null
1584
+ mapItDisabled: t,
1585
+ mapItTooltip: r && t ? kn : null
1586
1586
  };
1587
1587
  }
1588
- function yr(t) {
1589
- const e = /* @__PURE__ */ new Map();
1590
- for (const n of t ?? [])
1591
- (n == null ? void 0 : n.id) != null && e.set(n.id, n);
1592
- return e;
1588
+ function yr(e) {
1589
+ const n = /* @__PURE__ */ new Map();
1590
+ for (const t of e ?? [])
1591
+ (t == null ? void 0 : t.id) != null && n.set(t.id, t);
1592
+ return n;
1593
1593
  }
1594
- function mr(t, e) {
1595
- var n, r;
1596
- return O(t == null ? void 0 : t.logoUrl) || O(t == null ? void 0 : t.logoKey) || O((n = e.label) == null ? void 0 : n.imageKey) || O((r = e.assignment) == null ? void 0 : r.customImageKey);
1594
+ function mr(e, n) {
1595
+ var t, r;
1596
+ return O(e == null ? void 0 : e.logoUrl) || O(e == null ? void 0 : e.logoKey) || O((t = n.label) == null ? void 0 : t.imageKey) || O((r = n.assignment) == null ? void 0 : r.customImageKey);
1597
1597
  }
1598
- function Ti(t, e) {
1598
+ function wi(e, n) {
1599
1599
  var c, a, s, f;
1600
- const n = yr(e ?? t.retailers), r = /* @__PURE__ */ new Map();
1601
- for (const y of n.values())
1600
+ const t = yr(n ?? e.retailers), r = /* @__PURE__ */ new Map();
1601
+ for (const y of t.values())
1602
1602
  y.globalRetailerId != null && r.set(y.globalRetailerId, (r.get(y.globalRetailerId) ?? 0) + 1);
1603
1603
  const o = [], i = /* @__PURE__ */ new Set();
1604
- for (const y of t.levels)
1604
+ for (const y of e.levels)
1605
1605
  for (const l of y.shapes) {
1606
1606
  const b = (c = l.assignment) == null ? void 0 : c.retailerId;
1607
1607
  if (b == null || l.kind !== "unit") continue;
1608
- const u = n.get(b);
1608
+ const u = t.get(b);
1609
1609
  i.add(b), o.push({
1610
1610
  id: b,
1611
1611
  name: O(u == null ? void 0 : u.name) || O((a = l.label) == null ? void 0 : a.text) || O((s = l.assignment) == null ? void 0 : s.customLabel) || `Store ${b}`,
@@ -1619,10 +1619,10 @@ function Ti(t, e) {
1619
1619
  shapeId: l.id,
1620
1620
  levelId: y.id,
1621
1621
  levelName: y.name,
1622
- anchorId: wt(t, y, l.id)
1622
+ anchorId: Pe(e, y, l.id)
1623
1623
  });
1624
1624
  }
1625
- for (const y of n.values()) {
1625
+ for (const y of t.values()) {
1626
1626
  if (i.has(y.id)) continue;
1627
1627
  const l = O(y.name);
1628
1628
  l && o.push({
@@ -1646,50 +1646,50 @@ function Ti(t, e) {
1646
1646
  return b !== 0 ? b : y.levelName.localeCompare(l.levelName);
1647
1647
  });
1648
1648
  }
1649
- function Mi(t, e, n) {
1650
- if (n != null) {
1651
- const r = t.find((o) => o.shapeId === n);
1649
+ function Pi(e, n, t) {
1650
+ if (t != null) {
1651
+ const r = e.find((o) => o.shapeId === t);
1652
1652
  if (r) return r;
1653
1653
  }
1654
- return t.find((r) => r.id === e && r.anchorId != null) ?? t.find((r) => r.id === e);
1655
- }
1656
- function wi(t, e) {
1657
- const n = /* @__PURE__ */ new Map();
1658
- for (const r of t)
1659
- r.globalRetailerId != null && n.set(r.globalRetailerId, (n.get(r.globalRetailerId) ?? 0) + 1);
1660
- return t.filter((r) => r.id !== e && r.anchorId != null).map((r) => {
1661
- const o = r.globalRetailerId != null && (n.get(r.globalRetailerId) ?? 0) > 1 && r.location;
1654
+ return e.find((r) => r.id === n && r.anchorId != null) ?? e.find((r) => r.id === n);
1655
+ }
1656
+ function Fi(e, n) {
1657
+ const t = /* @__PURE__ */ new Map();
1658
+ for (const r of e)
1659
+ r.globalRetailerId != null && t.set(r.globalRetailerId, (t.get(r.globalRetailerId) ?? 0) + 1);
1660
+ return e.filter((r) => r.id !== n && r.anchorId != null).map((r) => {
1661
+ const o = r.globalRetailerId != null && (t.get(r.globalRetailerId) ?? 0) > 1 && r.location;
1662
1662
  return {
1663
1663
  value: String(r.id),
1664
1664
  label: o ? `${r.name} (${r.location})` : r.name
1665
1665
  };
1666
1666
  });
1667
1667
  }
1668
- function Pi(t, e) {
1669
- return (t == null ? void 0 : t.anchorId) == null || (e == null ? void 0 : e.anchorId) == null ? null : {
1670
- fromAnchorId: t.anchorId,
1671
- toAnchorId: e.anchorId,
1672
- toLevelId: e.levelId
1668
+ function Di(e, n) {
1669
+ return (e == null ? void 0 : e.anchorId) == null || (n == null ? void 0 : n.anchorId) == null ? null : {
1670
+ fromAnchorId: e.anchorId,
1671
+ toAnchorId: n.anchorId,
1672
+ toLevelId: n.levelId
1673
1673
  };
1674
1674
  }
1675
- function Fi(t, e) {
1676
- const n = e.trim().toLowerCase();
1677
- return n ? t.filter(
1675
+ function Ki(e, n) {
1676
+ const t = n.trim().toLowerCase();
1677
+ return t ? e.filter(
1678
1678
  (r) => {
1679
1679
  var o;
1680
- return r.name.toLowerCase().includes(n) || (((o = r.location) == null ? void 0 : o.toLowerCase().includes(n)) ?? !1) || r.levelName.toLowerCase().includes(n);
1680
+ return r.name.toLowerCase().includes(t) || (((o = r.location) == null ? void 0 : o.toLowerCase().includes(t)) ?? !1) || r.levelName.toLowerCase().includes(t);
1681
1681
  }
1682
1682
  ) : [];
1683
1683
  }
1684
- function Di(t, e) {
1684
+ function Yi(e, n) {
1685
1685
  var o;
1686
- const n = t.amenities.find((i) => i.id === e);
1687
- if (!n) return null;
1686
+ const t = e.amenities.find((i) => i.id === n);
1687
+ if (!t) return null;
1688
1688
  const r = [];
1689
- for (const i of t.levels)
1689
+ for (const i of e.levels)
1690
1690
  for (const c of i.shapes) {
1691
- if (c.kind !== "amenity" || ((o = c.assignment) == null ? void 0 : o.amenityId) !== e) continue;
1692
- const a = wt(t, i, c.id);
1691
+ if (c.kind !== "amenity" || ((o = c.assignment) == null ? void 0 : o.amenityId) !== n) continue;
1692
+ const a = Pe(e, i, c.id);
1693
1693
  r.push({
1694
1694
  levelId: i.id,
1695
1695
  name: i.name,
@@ -1698,54 +1698,54 @@ function Di(t, e) {
1698
1698
  });
1699
1699
  }
1700
1700
  return {
1701
- amenityId: e,
1702
- name: n.name,
1703
- code: n.code,
1701
+ amenityId: n,
1702
+ name: t.name,
1703
+ code: t.code,
1704
1704
  floors: r
1705
1705
  };
1706
1706
  }
1707
- function Ki(t, e) {
1708
- return e ? e.floors.some((n) => {
1709
- if (n.anchorId == null) return !1;
1710
- const r = t.levels.find((o) => o.id === n.levelId);
1707
+ function Bi(e, n) {
1708
+ return n ? n.floors.some((t) => {
1709
+ if (t.anchorId == null) return !1;
1710
+ const r = e.levels.find((o) => o.id === t.levelId);
1711
1711
  return r != null && !X(r);
1712
1712
  }) : !1;
1713
1713
  }
1714
- function Yi(t) {
1714
+ function $i(e) {
1715
1715
  return {
1716
- showFromRetailers: t,
1716
+ showFromRetailers: e,
1717
1717
  showMapIt: !0,
1718
- mapItDisabled: !t,
1719
- mapItTooltip: t ? null : _e
1718
+ mapItDisabled: !e,
1719
+ mapItTooltip: e ? null : kn
1720
1720
  };
1721
1721
  }
1722
- function $i(t, e) {
1722
+ function zi(e, n) {
1723
1723
  return sr(
1724
- t.levels,
1725
- (n) => {
1724
+ e.levels,
1725
+ (t) => {
1726
1726
  var r;
1727
- return n.kind === "amenity" && ((r = n.assignment) == null ? void 0 : r.amenityId) === e;
1727
+ return t.kind === "amenity" && ((r = t.assignment) == null ? void 0 : r.amenityId) === n;
1728
1728
  }
1729
1729
  );
1730
1730
  }
1731
- function pr(t, e, n, r) {
1732
- if (e == null || n.length === 0) return null;
1731
+ function pr(e, n, t, r) {
1732
+ if (n == null || t.length === 0) return null;
1733
1733
  const o = ur(
1734
- t,
1735
1734
  e,
1736
- [...n],
1735
+ n,
1736
+ [...t],
1737
1737
  r
1738
1738
  ), i = o == null ? void 0 : o.anchorIds.at(-1);
1739
- return i == null ? null : { fromAnchorId: e, toAnchorId: i };
1739
+ return i == null ? null : { fromAnchorId: n, toAnchorId: i };
1740
1740
  }
1741
- function xr(t, e, n, r, o) {
1742
- if (e.length === 0) return null;
1743
- const i = new Set(e), c = i.has(n), a = i.has(r);
1741
+ function xr(e, n, t, r, o) {
1742
+ if (n.length === 0) return null;
1743
+ const i = new Set(n), c = i.has(t), a = i.has(r);
1744
1744
  if (c === a) return null;
1745
1745
  const f = pr(
1746
- t,
1747
- c ? r : n,
1748
1746
  e,
1747
+ c ? r : t,
1748
+ n,
1749
1749
  o
1750
1750
  );
1751
1751
  return f ? c ? {
@@ -1753,128 +1753,128 @@ function xr(t, e, n, r, o) {
1753
1753
  toAnchorId: f.fromAnchorId
1754
1754
  } : f : null;
1755
1755
  }
1756
- function Bi(t) {
1757
- let e = t.fromAnchorId, n = t.toAnchorId;
1756
+ function Gi(e) {
1757
+ let n = e.fromAnchorId, t = e.toAnchorId;
1758
1758
  const r = (i, c) => {
1759
- const a = t.levelOf(i), s = t.levelOf(c);
1759
+ const a = e.levelOf(i), s = e.levelOf(c);
1760
1760
  return a != null && s != null && a !== s;
1761
1761
  };
1762
- if (t.allowChoice && t.compiled && e != null && n != null && t.amenityAnchorIds.length > 0 && r(e, n)) {
1762
+ if (e.allowChoice && e.compiled && n != null && t != null && e.amenityAnchorIds.length > 0 && r(n, t)) {
1763
1763
  const i = xr(
1764
- t.compiled,
1765
- t.amenityAnchorIds,
1766
- e,
1764
+ e.compiled,
1765
+ e.amenityAnchorIds,
1767
1766
  n,
1767
+ t,
1768
1768
  {
1769
- accessibleOnly: t.accessibleOnly,
1770
- verticalTransport: t.verticalTransport
1769
+ accessibleOnly: e.accessibleOnly,
1770
+ verticalTransport: e.verticalTransport
1771
1771
  }
1772
1772
  );
1773
- i && (e = i.fromAnchorId, n = i.toAnchorId);
1773
+ i && (n = i.fromAnchorId, t = i.toAnchorId);
1774
1774
  }
1775
- const o = { accessibleOnly: t.accessibleOnly };
1776
- return t.allowChoice && r(e, n) && (o.verticalTransport = t.verticalTransport), { fromAnchorId: e, toAnchorId: n, options: o };
1775
+ const o = { accessibleOnly: e.accessibleOnly };
1776
+ return e.allowChoice && r(n, t) && (o.verticalTransport = e.verticalTransport), { fromAnchorId: n, toAnchorId: t, options: o };
1777
1777
  }
1778
- function Gi(t) {
1779
- const e = t.replace(/\D/g, "").slice(-10);
1780
- return e.length === 10 ? `${e.slice(0, 3)}.${e.slice(3, 6)}.${e.slice(-4)}` : t;
1778
+ function Xi(e) {
1779
+ const n = e.replace(/\D/g, "").slice(-10);
1780
+ return n.length === 10 ? `${n.slice(0, 3)}.${n.slice(3, 6)}.${n.slice(-4)}` : e;
1781
1781
  }
1782
- function zi(t) {
1783
- if (!t || typeof t != "object") return null;
1784
- const e = t, n = e.global_retailer && typeof e.global_retailer == "object" ? e.global_retailer : null, r = et(e.id);
1782
+ function Hi(e) {
1783
+ if (!e || typeof e != "object") return null;
1784
+ const n = e, t = n.global_retailer && typeof n.global_retailer == "object" ? n.global_retailer : null, r = re(n.id);
1785
1785
  if (r == null) return null;
1786
- const o = O(n == null ? void 0 : n.name) || O(e.name) || `Retailer ${r}`;
1786
+ const o = O(t == null ? void 0 : t.name) || O(n.name) || `Retailer ${r}`;
1787
1787
  return {
1788
1788
  id: r,
1789
1789
  name: o,
1790
- location: O(e.location),
1791
- phone: O(e.retailer_phone) || O(e.phone),
1792
- description: O(n == null ? void 0 : n.description) || O(e.description) || O(e.local_description),
1793
- logoUrl: nt(n == null ? void 0 : n.media) || nt(n == null ? void 0 : n.featured_image) || nt(e.media) || nt(e.featured_image) || O(e.logoUrl) || O(e.logo),
1794
- logoKey: O(e.logoKey),
1795
- globalRetailerId: et(n == null ? void 0 : n.id) || et(e.global_retailer_id) || et(e.globalRetailerId),
1796
- slug: O(n == null ? void 0 : n.slug) || O(e.slug)
1790
+ location: O(n.location),
1791
+ phone: O(n.retailer_phone) || O(n.phone),
1792
+ description: O(t == null ? void 0 : t.description) || O(n.description) || O(n.local_description),
1793
+ logoUrl: oe(t == null ? void 0 : t.media) || oe(t == null ? void 0 : t.featured_image) || oe(n.media) || oe(n.featured_image) || O(n.logoUrl) || O(n.logo),
1794
+ logoKey: O(n.logoKey),
1795
+ globalRetailerId: re(t == null ? void 0 : t.id) || re(n.global_retailer_id) || re(n.globalRetailerId),
1796
+ slug: O(t == null ? void 0 : t.slug) || O(n.slug)
1797
1797
  };
1798
1798
  }
1799
- function Xi(t, e, n = !1) {
1799
+ function Ui(e, n, t = !1) {
1800
1800
  var c;
1801
- const r = (c = t.slug) == null ? void 0 : c.trim(), o = e == null ? void 0 : e.trim();
1801
+ const r = (c = e.slug) == null ? void 0 : c.trim(), o = n == null ? void 0 : n.trim();
1802
1802
  if (!r || !o) return null;
1803
1803
  const i = `${o.replace(/\/+$/, "")}/${encodeURIComponent(r)}`;
1804
- return n && t.multipleLocations ? `${i}/${t.id}` : i;
1804
+ return t && e.multipleLocations ? `${i}/${e.id}` : i;
1805
1805
  }
1806
- function Oe(t) {
1807
- return t === "WEBSITE" || t === "DISPLAY_APP";
1806
+ function On(e) {
1807
+ return e === "WEBSITE" || e === "DISPLAY_APP";
1808
1808
  }
1809
- function br(t) {
1810
- return t === "PORTAL_ASSIGN";
1809
+ function br(e) {
1810
+ return e === "PORTAL_ASSIGN";
1811
1811
  }
1812
- function Ir(t) {
1813
- return Oe(t);
1812
+ function Ir(e) {
1813
+ return On(e);
1814
1814
  }
1815
- function Hi(t, e) {
1816
- return Ir(e) ? T(t.assignment) : !0;
1815
+ function Vi(e, n) {
1816
+ return Ir(n) ? M(e.assignment) : !0;
1817
1817
  }
1818
- function gr(t) {
1819
- const e = (t.sourceSvgId ?? t.key ?? "").trim().toLowerCase().replace(/_/g, "-");
1820
- return e === "escalator" || e.startsWith("escalator-") ? "escalator" : e === "elevator" || e.startsWith("elevator-") ? "elevator" : null;
1818
+ function gr(e) {
1819
+ const n = (e.sourceSvgId ?? e.key ?? "").trim().toLowerCase().replace(/_/g, "-");
1820
+ return n === "escalator" || n.startsWith("escalator-") ? "escalator" : n === "elevator" || n.startsWith("elevator-") ? "elevator" : null;
1821
1821
  }
1822
- function _r(t, e) {
1823
- return gr(t) ? e.has(t.id) : t.kind === "amenity" || t.kind === "kiosk_screen" ? T(t.assignment) : !0;
1822
+ function _r(e, n) {
1823
+ return gr(e) ? n.has(e.id) : e.kind === "amenity" || e.kind === "kiosk_screen" ? M(e.assignment) : !0;
1824
1824
  }
1825
- function Ui(t, e, n) {
1826
- return Oe(e) ? _r(t, n) : !0;
1825
+ function Wi(e, n, t) {
1826
+ return On(n) ? _r(e, t) : !0;
1827
1827
  }
1828
- const ke = "#e2e8f0";
1829
- function Vi(t) {
1830
- if (!t) return !1;
1831
- const e = t.toLowerCase();
1832
- return e === "amenity" || e.startsWith("amenity-");
1833
- }
1834
- function Or(t) {
1835
- var n;
1836
- return ((n = t == null ? void 0 : t.GREEN_AREA_COLOR) == null ? void 0 : n.trim()) || U("green-area");
1837
- }
1838
- function kr(t, e) {
1839
- return t === "amenity" ? Or(e) : ke;
1840
- }
1841
- function Ar(t, e, n, r) {
1842
- if (t === "walkable") return e.WALKABLE_COLOR;
1843
- if (Tt(t))
1844
- return Bt(r, Lt);
1845
- if (t === "unit" || t === "custom")
1846
- return Bt(r, e.STORE_DEFAULT_COLOR);
1847
- if (n) return n;
1848
- switch (t) {
1828
+ const An = "#e2e8f0";
1829
+ function Zi(e) {
1830
+ if (!e) return !1;
1831
+ const n = e.toLowerCase();
1832
+ return n === "amenity" || n.startsWith("amenity-");
1833
+ }
1834
+ function kr(e) {
1835
+ var t;
1836
+ return ((t = e == null ? void 0 : e.GREEN_AREA_COLOR) == null ? void 0 : t.trim()) || U("green-area");
1837
+ }
1838
+ function Or(e, n) {
1839
+ return e === "amenity" ? kr(n) : An;
1840
+ }
1841
+ function Ar(e, n, t, r) {
1842
+ if (e === "walkable") return n.WALKABLE_COLOR;
1843
+ if (Me(e))
1844
+ return $e(r, Ne);
1845
+ if (e === "unit" || e === "custom")
1846
+ return $e(r, n.STORE_DEFAULT_COLOR);
1847
+ if (t) return t;
1848
+ switch (e) {
1849
1849
  case "wall":
1850
1850
  case "boundary":
1851
- return e.WALL_COLOR;
1851
+ return n.WALL_COLOR;
1852
1852
  case "parking_zone":
1853
- return e.PARKING_ZONE_COLOR;
1853
+ return n.PARKING_ZONE_COLOR;
1854
1854
  case "green_area":
1855
- return e.GREEN_AREA_COLOR;
1855
+ return n.GREEN_AREA_COLOR;
1856
1856
  case "water":
1857
- return e.WATER_COLOR;
1857
+ return n.WATER_COLOR;
1858
1858
  case "floorplate":
1859
- return e.BASE_COLOR;
1859
+ return n.BASE_COLOR;
1860
1860
  case "void":
1861
1861
  return "#00000000";
1862
1862
  default:
1863
- return ke;
1863
+ return An;
1864
1864
  }
1865
1865
  }
1866
- function Wi(t, e, n, r, o) {
1867
- const i = Ar(t, e, r, o);
1868
- return br(n) && Tt(t) && W(i) ? kr(t, e) : i;
1866
+ function ji(e, n, t, r, o) {
1867
+ const i = Ar(e, n, r, o);
1868
+ return br(t) && Me(e) && W(i) ? Or(e, n) : i;
1869
1869
  }
1870
- function Zi(t, e) {
1871
- return t === "amenity" ? 1 : e ?? 1;
1870
+ function qi(e, n) {
1871
+ return e === "amenity" ? 1 : n ?? 1;
1872
1872
  }
1873
- function Sr(t) {
1874
- return /^https?:\/\//i.test(t.trim());
1873
+ function Sr(e) {
1874
+ return /^https?:\/\//i.test(e.trim());
1875
1875
  }
1876
- function ji(t, e) {
1877
- return !e || !Sr(t) ? t : e + encodeURIComponent(t);
1876
+ function Qi(e, n) {
1877
+ return !n || !Sr(e) ? e : n + encodeURIComponent(e);
1878
1878
  }
1879
1879
  const Rr = {
1880
1880
  fill: "fill",
@@ -1884,48 +1884,48 @@ const Rr = {
1884
1884
  "stroke-opacity": "stroke-opacity",
1885
1885
  opacity: "opacity"
1886
1886
  };
1887
- function Cr(t) {
1888
- const e = {};
1889
- for (const n of t.split(";")) {
1890
- const r = n.indexOf(":");
1887
+ function Cr(e) {
1888
+ const n = {};
1889
+ for (const t of e.split(";")) {
1890
+ const r = t.indexOf(":");
1891
1891
  if (r === -1) continue;
1892
- const o = n.slice(0, r).trim().toLowerCase(), i = n.slice(r + 1).trim();
1893
- o && i && (e[o] = i);
1892
+ const o = t.slice(0, r).trim().toLowerCase(), i = t.slice(r + 1).trim();
1893
+ o && i && (n[o] = i);
1894
1894
  }
1895
- return e;
1895
+ return n;
1896
1896
  }
1897
- function vr(t) {
1898
- const e = /* @__PURE__ */ new Map(), n = t.replace(/\/\*[\s\S]*?\*\//g, "");
1899
- for (const r of n.matchAll(/([^{]+)\{([^}]*)\}/g)) {
1897
+ function vr(e) {
1898
+ const n = /* @__PURE__ */ new Map(), t = e.replace(/\/\*[\s\S]*?\*\//g, "");
1899
+ for (const r of t.matchAll(/([^{]+)\{([^}]*)\}/g)) {
1900
1900
  const o = r[1].split(",").map((c) => c.trim()), i = Cr(r[2]);
1901
1901
  for (const c of o) {
1902
1902
  const a = c.match(/^\.([a-zA-Z0-9_-]+)$/);
1903
1903
  if (!a) continue;
1904
1904
  const s = a[1];
1905
- e.set(s, {
1906
- ...e.get(s) || {},
1905
+ n.set(s, {
1906
+ ...n.get(s) || {},
1907
1907
  ...i
1908
1908
  });
1909
1909
  }
1910
1910
  }
1911
- return e;
1912
- }
1913
- function Er(t, e) {
1914
- const n = {};
1915
- for (const r of t.split(/\s+/).map((o) => o.trim()).filter(Boolean))
1916
- Object.assign(n, e.get(r) || {});
1917
1911
  return n;
1918
1912
  }
1919
- function Lr(t) {
1920
- const e = [], n = t.replace(/<!--[\s\S]*?-->/g, "");
1921
- for (const o of n.matchAll(/<style\b[^>]*>([\s\S]*?)<\/style>/gi))
1922
- e.push(o[1]);
1923
- if (e.length === 0) return t;
1913
+ function Er(e, n) {
1914
+ const t = {};
1915
+ for (const r of e.split(/\s+/).map((o) => o.trim()).filter(Boolean))
1916
+ Object.assign(t, n.get(r) || {});
1917
+ return t;
1918
+ }
1919
+ function Lr(e) {
1920
+ const n = [], t = e.replace(/<!--[\s\S]*?-->/g, "");
1921
+ for (const o of t.matchAll(/<style\b[^>]*>([\s\S]*?)<\/style>/gi))
1922
+ n.push(o[1]);
1923
+ if (n.length === 0) return e;
1924
1924
  const r = /* @__PURE__ */ new Map();
1925
- for (const o of e)
1925
+ for (const o of n)
1926
1926
  for (const [i, c] of vr(o))
1927
1927
  r.set(i, { ...r.get(i) || {}, ...c });
1928
- return r.size === 0 ? t : t.replace(
1928
+ return r.size === 0 ? e : e.replace(
1929
1929
  /<(path|polygon|polyline|line|rect|g|circle|ellipse)\b([^>]*)>/gi,
1930
1930
  (o, i, c) => {
1931
1931
  const a = /\/\s*$/.test(c), s = c.replace(/\/\s*$/, ""), f = s.match(/\bclass\s*=\s*["']([^"']*)["']/i);
@@ -1933,175 +1933,175 @@ function Lr(t) {
1933
1933
  const y = Er(f[1], r);
1934
1934
  let l = s;
1935
1935
  for (const [b, u] of Object.entries(y)) {
1936
- const h = Rr[b];
1937
- h && (new RegExp(`\\b${h}\\s*=`, "i").test(l) || (l += ` ${h}="${u}"`));
1936
+ const d = Rr[b];
1937
+ d && (new RegExp(`\\b${d}\\s*=`, "i").test(l) || (l += ` ${d}="${u}"`));
1938
1938
  }
1939
1939
  return `<${i}${l}${a ? " /" : ""}>`;
1940
1940
  }
1941
1941
  );
1942
1942
  }
1943
- function Qt(t) {
1943
+ function Qe(e) {
1944
1944
  var a, s, f, y, l;
1945
- const e = {}, n = (a = t.match(/\bfill\s*=\s*["']([^"']*)["']/i)) == null ? void 0 : a[1], r = (s = t.match(/\bstroke\s*=\s*["']([^"']*)["']/i)) == null ? void 0 : s[1], o = (f = t.match(/\bstroke-width\s*=\s*["']?(-?[\d.]+)/i)) == null ? void 0 : f[1], i = (y = t.match(/\bopacity\s*=\s*["']?(-?[\d.]+)/i)) == null ? void 0 : y[1], c = (l = t.match(/\bfill-opacity\s*=\s*["']?(-?[\d.]+)/i)) == null ? void 0 : l[1];
1946
- return n && n.toLowerCase() !== "none" && (e.fill = n), r && r.toLowerCase() !== "none" && (e.stroke = r), o != null && !Number.isNaN(Number(o)) && (e.strokeWidth = Number(o)), i != null && !Number.isNaN(Number(i)) ? e.opacity = Number(i) : c != null && !Number.isNaN(Number(c)) && (e.opacity = Number(c)), e;
1945
+ const n = {}, t = (a = e.match(/\bfill\s*=\s*["']([^"']*)["']/i)) == null ? void 0 : a[1], r = (s = e.match(/\bstroke\s*=\s*["']([^"']*)["']/i)) == null ? void 0 : s[1], o = (f = e.match(/\bstroke-width\s*=\s*["']?(-?[\d.]+)/i)) == null ? void 0 : f[1], i = (y = e.match(/\bopacity\s*=\s*["']?(-?[\d.]+)/i)) == null ? void 0 : y[1], c = (l = e.match(/\bfill-opacity\s*=\s*["']?(-?[\d.]+)/i)) == null ? void 0 : l[1];
1946
+ return t && t.toLowerCase() !== "none" && (n.fill = t), r && r.toLowerCase() !== "none" && (n.stroke = r), o != null && !Number.isNaN(Number(o)) && (n.strokeWidth = Number(o)), i != null && !Number.isNaN(Number(i)) ? n.opacity = Number(i) : c != null && !Number.isNaN(Number(c)) && (n.opacity = Number(c)), n;
1947
1947
  }
1948
- function _t(t, e) {
1948
+ function ke(e, n) {
1949
1949
  return {
1950
- fill: e.fill ?? t.fill,
1951
- stroke: e.stroke ?? t.stroke,
1952
- strokeWidth: e.strokeWidth ?? t.strokeWidth,
1953
- opacity: e.opacity ?? t.opacity
1950
+ fill: n.fill ?? e.fill,
1951
+ stroke: n.stroke ?? e.stroke,
1952
+ strokeWidth: n.strokeWidth ?? e.strokeWidth,
1953
+ opacity: n.opacity ?? e.opacity
1954
1954
  };
1955
1955
  }
1956
- const Et = { a: 1, b: 0, c: 0, d: 1, e: 0, f: 0 };
1957
- function j(t, e) {
1956
+ const Le = { a: 1, b: 0, c: 0, d: 1, e: 0, f: 0 };
1957
+ function q(e, n) {
1958
1958
  return {
1959
- a: t.a * e.a + t.c * e.b,
1960
- b: t.b * e.a + t.d * e.b,
1961
- c: t.a * e.c + t.c * e.d,
1962
- d: t.b * e.c + t.d * e.d,
1963
- e: t.a * e.e + t.c * e.f + t.e,
1964
- f: t.b * e.e + t.d * e.f + t.f
1959
+ a: e.a * n.a + e.c * n.b,
1960
+ b: e.b * n.a + e.d * n.b,
1961
+ c: e.a * n.c + e.c * n.d,
1962
+ d: e.b * n.c + e.d * n.d,
1963
+ e: e.a * n.e + e.c * n.f + e.e,
1964
+ f: e.b * n.e + e.d * n.f + e.f
1965
1965
  };
1966
1966
  }
1967
- function Nr(t, e) {
1967
+ function Nr(e, n) {
1968
1968
  return {
1969
- x: t.a * e.x + t.c * e.y + t.e,
1970
- y: t.b * e.x + t.d * e.y + t.f
1969
+ x: e.a * n.x + e.c * n.y + e.e,
1970
+ y: e.b * n.x + e.d * n.y + e.f
1971
1971
  };
1972
1972
  }
1973
- function Tr(t, e = 1e-9) {
1974
- return Math.abs(t.a - 1) < e && Math.abs(t.b) < e && Math.abs(t.c) < e && Math.abs(t.d - 1) < e && Math.abs(t.e) < e && Math.abs(t.f) < e;
1973
+ function Tr(e, n = 1e-9) {
1974
+ return Math.abs(e.a - 1) < n && Math.abs(e.b) < n && Math.abs(e.c) < n && Math.abs(e.d - 1) < n && Math.abs(e.e) < n && Math.abs(e.f) < n;
1975
1975
  }
1976
- function Ot(t, e) {
1977
- return { a: 1, b: 0, c: 0, d: 1, e: t, f: e };
1976
+ function Oe(e, n) {
1977
+ return { a: 1, b: 0, c: 0, d: 1, e, f: n };
1978
1978
  }
1979
- function Mr(t) {
1980
- const e = t * Math.PI / 180, n = Math.cos(e), r = Math.sin(e);
1981
- return { a: n, b: r, c: -r, d: n, e: 0, f: 0 };
1979
+ function Mr(e) {
1980
+ const n = e * Math.PI / 180, t = Math.cos(n), r = Math.sin(n);
1981
+ return { a: t, b: r, c: -r, d: t, e: 0, f: 0 };
1982
1982
  }
1983
- function wr(t, e) {
1984
- switch (t) {
1983
+ function wr(e, n) {
1984
+ switch (e) {
1985
1985
  case "matrix":
1986
- return e.length < 6 ? null : { a: e[0], b: e[1], c: e[2], d: e[3], e: e[4], f: e[5] };
1986
+ return n.length < 6 ? null : { a: n[0], b: n[1], c: n[2], d: n[3], e: n[4], f: n[5] };
1987
1987
  case "translate":
1988
- return e.length < 1 ? null : Ot(e[0], e[1] ?? 0);
1988
+ return n.length < 1 ? null : Oe(n[0], n[1] ?? 0);
1989
1989
  case "scale": {
1990
- if (e.length < 1) return null;
1991
- const n = e[0], r = e[1] ?? n;
1992
- return { a: n, b: 0, c: 0, d: r, e: 0, f: 0 };
1990
+ if (n.length < 1) return null;
1991
+ const t = n[0], r = n[1] ?? t;
1992
+ return { a: t, b: 0, c: 0, d: r, e: 0, f: 0 };
1993
1993
  }
1994
1994
  case "rotate": {
1995
- if (e.length < 1) return null;
1996
- const n = Mr(e[0]);
1997
- if (e.length < 3) return n;
1998
- const r = e[1], o = e[2];
1999
- return j(
2000
- j(Ot(r, o), n),
2001
- Ot(-r, -o)
1995
+ if (n.length < 1) return null;
1996
+ const t = Mr(n[0]);
1997
+ if (n.length < 3) return t;
1998
+ const r = n[1], o = n[2];
1999
+ return q(
2000
+ q(Oe(r, o), t),
2001
+ Oe(-r, -o)
2002
2002
  );
2003
2003
  }
2004
2004
  case "skewx":
2005
- return e.length < 1 ? null : { a: 1, b: 0, c: Math.tan(e[0] * Math.PI / 180), d: 1, e: 0, f: 0 };
2005
+ return n.length < 1 ? null : { a: 1, b: 0, c: Math.tan(n[0] * Math.PI / 180), d: 1, e: 0, f: 0 };
2006
2006
  case "skewy":
2007
- return e.length < 1 ? null : { a: 1, b: Math.tan(e[0] * Math.PI / 180), c: 0, d: 1, e: 0, f: 0 };
2007
+ return n.length < 1 ? null : { a: 1, b: Math.tan(n[0] * Math.PI / 180), c: 0, d: 1, e: 0, f: 0 };
2008
2008
  default:
2009
2009
  return null;
2010
2010
  }
2011
2011
  }
2012
- const Jt = /([a-zA-Z]+)\s*\(([^)]*)\)/g;
2013
- function te(t) {
2014
- if (!t) return Et;
2015
- let e = Et;
2016
- Jt.lastIndex = 0;
2017
- let n;
2018
- for (; (n = Jt.exec(t)) !== null; ) {
2019
- const r = n[1].toLowerCase(), o = n[2].trim().split(/[\s,]+/).filter(Boolean).map(Number);
2012
+ const Je = /([a-zA-Z]+)\s*\(([^)]*)\)/g;
2013
+ function en(e) {
2014
+ if (!e) return Le;
2015
+ let n = Le;
2016
+ Je.lastIndex = 0;
2017
+ let t;
2018
+ for (; (t = Je.exec(e)) !== null; ) {
2019
+ const r = t[1].toLowerCase(), o = t[2].trim().split(/[\s,]+/).filter(Boolean).map(Number);
2020
2020
  if (o.some((c) => Number.isNaN(c))) continue;
2021
2021
  const i = wr(r, o);
2022
- i && (e = j(e, i));
2022
+ i && (n = q(n, i));
2023
2023
  }
2024
- return e;
2024
+ return n;
2025
2025
  }
2026
- function H(t) {
2027
- if (!Number.isFinite(t)) return "0";
2028
- const e = Math.round(t * 1e4) / 1e4;
2029
- return Object.is(e, -0) ? "0" : String(e);
2026
+ function H(e) {
2027
+ if (!Number.isFinite(e)) return "0";
2028
+ const n = Math.round(e * 1e4) / 1e4;
2029
+ return Object.is(n, -0) ? "0" : String(n);
2030
2030
  }
2031
- function Pr(t, e, n, r) {
2032
- const o = r * Math.PI / 180, i = Math.cos(o), c = Math.sin(o), a = i * e, s = c * e, f = -c * n, y = i * n, l = t.a * a + t.c * s, b = t.b * a + t.d * s, u = t.a * f + t.c * y, h = t.b * f + t.d * y, d = (l + h) / 2, m = (l - h) / 2, x = (b + u) / 2, I = (b - u) / 2, p = Math.hypot(d, I), g = Math.hypot(m, x), _ = Math.abs(p + g), A = Math.abs(p - g), k = Math.atan2(x, m), v = (Math.atan2(I, d) + k) / 2 * (180 / Math.PI);
2033
- return { rx: _, ry: A, phiDeg: v };
2031
+ function Pr(e, n, t, r) {
2032
+ const o = r * Math.PI / 180, i = Math.cos(o), c = Math.sin(o), a = i * n, s = c * n, f = -c * t, y = i * t, l = e.a * a + e.c * s, b = e.b * a + e.d * s, u = e.a * f + e.c * y, d = e.b * f + e.d * y, h = (l + d) / 2, m = (l - d) / 2, p = (b + u) / 2, I = (b - u) / 2, k = Math.hypot(h, I), x = Math.hypot(m, p), g = Math.abs(k + x), _ = Math.abs(k - x), A = Math.atan2(p, m), C = (Math.atan2(I, h) + A) / 2 * (180 / Math.PI);
2033
+ return { rx: g, ry: _, phiDeg: C };
2034
2034
  }
2035
- function Fr(t, e) {
2036
- if (!t || Tr(e)) return t;
2037
- const n = xe(t), r = [], o = e.a * e.d - e.b * e.c < 0;
2035
+ function Fr(e, n) {
2036
+ if (!e || Tr(n)) return e;
2037
+ const t = bn(e), r = [], o = n.a * n.d - n.b * n.c < 0;
2038
2038
  let i = 0, c = "", a = 0, s = 0, f = 0, y = 0;
2039
2039
  const l = () => {
2040
- const h = Number(n[i++]);
2041
- return Number.isNaN(h) ? 0 : h;
2042
- }, b = (h, ...d) => {
2043
- r.push(h + (d.length ? " " + d.map(H).join(" ") : ""));
2044
- }, u = (h, d) => {
2045
- const m = Nr(e, { x: h, y: d });
2040
+ const d = Number(t[i++]);
2041
+ return Number.isNaN(d) ? 0 : d;
2042
+ }, b = (d, ...h) => {
2043
+ r.push(d + (h.length ? " " + h.map(H).join(" ") : ""));
2044
+ }, u = (d, h) => {
2045
+ const m = Nr(n, { x: d, y: h });
2046
2046
  return [m.x, m.y];
2047
2047
  };
2048
- for (; i < n.length; ) {
2049
- const h = n[i];
2050
- switch (/[a-zA-Z]/.test(h) && (c = h, i++), c) {
2048
+ for (; i < t.length; ) {
2049
+ const d = t[i];
2050
+ switch (/[a-zA-Z]/.test(d) && (c = d, i++), c) {
2051
2051
  case "M":
2052
2052
  case "m": {
2053
- const d = c === "m", m = l(), x = l();
2054
- a = d ? a + m : m, s = d ? s + x : x, f = a, y = s, b("M", ...u(a, s)), c = d ? "l" : "L";
2053
+ const h = c === "m", m = l(), p = l();
2054
+ a = h ? a + m : m, s = h ? s + p : p, f = a, y = s, b("M", ...u(a, s)), c = h ? "l" : "L";
2055
2055
  break;
2056
2056
  }
2057
2057
  case "L":
2058
2058
  case "l": {
2059
- const d = c === "l", m = l(), x = l();
2060
- a = d ? a + m : m, s = d ? s + x : x, b("L", ...u(a, s));
2059
+ const h = c === "l", m = l(), p = l();
2060
+ a = h ? a + m : m, s = h ? s + p : p, b("L", ...u(a, s));
2061
2061
  break;
2062
2062
  }
2063
2063
  case "H":
2064
2064
  case "h": {
2065
- const d = c === "h", m = l();
2066
- a = d ? a + m : m, b("L", ...u(a, s));
2065
+ const h = c === "h", m = l();
2066
+ a = h ? a + m : m, b("L", ...u(a, s));
2067
2067
  break;
2068
2068
  }
2069
2069
  case "V":
2070
2070
  case "v": {
2071
- const d = c === "v", m = l();
2072
- s = d ? s + m : m, b("L", ...u(a, s));
2071
+ const h = c === "v", m = l();
2072
+ s = h ? s + m : m, b("L", ...u(a, s));
2073
2073
  break;
2074
2074
  }
2075
2075
  case "C":
2076
2076
  case "c": {
2077
- const d = c === "c", m = d ? a + l() : l(), x = d ? s + l() : l(), I = d ? a + l() : l(), p = d ? s + l() : l(), g = d ? a + l() : l(), _ = d ? s + l() : l();
2078
- b("C", ...u(m, x), ...u(I, p), ...u(g, _)), a = g, s = _;
2077
+ const h = c === "c", m = h ? a + l() : l(), p = h ? s + l() : l(), I = h ? a + l() : l(), k = h ? s + l() : l(), x = h ? a + l() : l(), g = h ? s + l() : l();
2078
+ b("C", ...u(m, p), ...u(I, k), ...u(x, g)), a = x, s = g;
2079
2079
  break;
2080
2080
  }
2081
2081
  case "S":
2082
2082
  case "s": {
2083
- const d = c === "s", m = d ? a + l() : l(), x = d ? s + l() : l(), I = d ? a + l() : l(), p = d ? s + l() : l();
2084
- b("S", ...u(m, x), ...u(I, p)), a = I, s = p;
2083
+ const h = c === "s", m = h ? a + l() : l(), p = h ? s + l() : l(), I = h ? a + l() : l(), k = h ? s + l() : l();
2084
+ b("S", ...u(m, p), ...u(I, k)), a = I, s = k;
2085
2085
  break;
2086
2086
  }
2087
2087
  case "Q":
2088
2088
  case "q": {
2089
- const d = c === "q", m = d ? a + l() : l(), x = d ? s + l() : l(), I = d ? a + l() : l(), p = d ? s + l() : l();
2090
- b("Q", ...u(m, x), ...u(I, p)), a = I, s = p;
2089
+ const h = c === "q", m = h ? a + l() : l(), p = h ? s + l() : l(), I = h ? a + l() : l(), k = h ? s + l() : l();
2090
+ b("Q", ...u(m, p), ...u(I, k)), a = I, s = k;
2091
2091
  break;
2092
2092
  }
2093
2093
  case "T":
2094
2094
  case "t": {
2095
- const d = c === "t", m = d ? a + l() : l(), x = d ? s + l() : l();
2096
- b("T", ...u(m, x)), a = m, s = x;
2095
+ const h = c === "t", m = h ? a + l() : l(), p = h ? s + l() : l();
2096
+ b("T", ...u(m, p)), a = m, s = p;
2097
2097
  break;
2098
2098
  }
2099
2099
  case "A":
2100
2100
  case "a": {
2101
- const d = c === "a", m = l(), x = l(), I = l(), p = l(), g = l(), _ = d ? a + l() : l(), A = d ? s + l() : l(), k = Pr(e, m, x, I), [S, v] = u(_, A);
2101
+ const h = c === "a", m = l(), p = l(), I = l(), k = l(), x = l(), g = h ? a + l() : l(), _ = h ? s + l() : l(), A = Pr(n, m, p, I), [S, C] = u(g, _);
2102
2102
  r.push(
2103
- `A ${H(k.rx)} ${H(k.ry)} ${H(k.phiDeg)} ${p ? 1 : 0} ${(g ? 1 : 0) ^ (o ? 1 : 0)} ${H(S)} ${H(v)}`
2104
- ), a = _, s = A;
2103
+ `A ${H(A.rx)} ${H(A.ry)} ${H(A.phiDeg)} ${k ? 1 : 0} ${(x ? 1 : 0) ^ (o ? 1 : 0)} ${H(S)} ${H(C)}`
2104
+ ), a = g, s = _;
2105
2105
  break;
2106
2106
  }
2107
2107
  case "Z":
@@ -2164,236 +2164,242 @@ const Dr = [
2164
2164
  { prefix: "elevator-", kind: "connector" },
2165
2165
  { prefix: "stairs-", kind: "connector" }
2166
2166
  ];
2167
- function ee(t) {
2168
- const e = yt(t);
2169
- return e === "route path" || e.startsWith("route path ");
2167
+ function nn(e) {
2168
+ const n = J(e);
2169
+ return n === "route path" || n.startsWith("route path ");
2170
+ }
2171
+ function Sn(e) {
2172
+ return /^routes?( \d+)?$/.test(J(e));
2170
2173
  }
2171
- function Ae(t) {
2172
- return /^routes?( \d+)?$/.test(yt(t));
2174
+ function Yr(e) {
2175
+ return /^background( \d+)?$/.test(J(e));
2173
2176
  }
2174
- function ne(t, e) {
2175
- const n = t.toLowerCase();
2176
- return n === "line" || n === "polyline" ? !0 : !(n !== "path" || !e || /[zZ]/.test(e) || /[csqtaCSQTA]/.test(e));
2177
+ function tn(e, n) {
2178
+ const t = e.toLowerCase();
2179
+ return t === "line" || t === "polyline" ? !0 : !(t !== "path" || !n || /[zZ]/.test(n) || /[csqtaCSQTA]/.test(n));
2177
2180
  }
2178
- const Yr = [
2179
- ...Je,
2181
+ const Br = [
2182
+ ...et,
2180
2183
  "walkable",
2181
2184
  "void"
2182
2185
  ], $r = 8;
2183
- function Br(t, e = "floor") {
2184
- if (Ce(t))
2186
+ function zr(e, n = "floor") {
2187
+ if (vn(e))
2185
2188
  return { kind: null, guessed: !1 };
2186
- const n = t.toLowerCase(), r = e === "base" ? Kr : Dr;
2189
+ const t = e.toLowerCase(), r = n === "base" ? Kr : Dr;
2187
2190
  for (const { prefix: o, kind: i } of r)
2188
- if (n === o || n.startsWith(o))
2191
+ if (t === o || t.startsWith(o))
2189
2192
  return { kind: i, guessed: !1 };
2190
- return n.startsWith("interactive") ? { kind: "unit", guessed: !0 } : { kind: null, guessed: !1 };
2193
+ return t.startsWith("interactive") ? { kind: "unit", guessed: !0 } : { kind: null, guessed: !1 };
2191
2194
  }
2192
- function yt(t) {
2193
- return t.toLowerCase().replace(/[-_]+/g, " ").replace(/\s+/g, " ").trim();
2195
+ function J(e) {
2196
+ return e.toLowerCase().replace(/[-_]+/g, " ").replace(/\s+/g, " ").trim();
2194
2197
  }
2195
- function Pt(t) {
2196
- return /non[-_ ]?interactive/i.test(t);
2198
+ function Fe(e) {
2199
+ return /non[-_ ]?interactive/i.test(e);
2197
2200
  }
2198
- function Se(t) {
2199
- return Pt(t) ? !1 : /^interactive( items)?( \d+)?$/.test(yt(t));
2201
+ function Rn(e) {
2202
+ return Fe(e) ? !1 : /^interactive( items)?( \d+)?$/.test(J(e));
2200
2203
  }
2201
- function Re(t) {
2202
- const e = yt(t);
2203
- return e === "stores" || e === "store layer" || e === "units" || e === "unit layer";
2204
+ function Cn(e) {
2205
+ const n = J(e);
2206
+ return n === "stores" || n === "store layer" || n === "units" || n === "unit layer";
2204
2207
  }
2205
- function Ce(t) {
2206
- return Se(t) || Pt(t) || Re(t) || Ae(t);
2208
+ function vn(e) {
2209
+ return Rn(e) || Fe(e) || Cn(e) || Sn(e);
2207
2210
  }
2208
- function kt(t) {
2209
- return t.interactiveContainer || t.nonInteractiveContainer || t.storeFolder || t.routeContainer;
2211
+ function Ae(e) {
2212
+ return e.interactiveContainer || e.nonInteractiveContainer || e.storeFolder || e.routeContainer;
2210
2213
  }
2211
- function F(t, e) {
2212
- const n = t.match(new RegExp(`\\b${e}\\s*=\\s*["']([^"']*)["']`, "i"));
2213
- return n ? n[1] : null;
2214
+ function D(e, n) {
2215
+ const t = e.match(new RegExp(`\\b${n}\\s*=\\s*["']([^"']*)["']`, "i"));
2216
+ return t ? t[1] : null;
2214
2217
  }
2215
- function G(t, e) {
2216
- const n = t.match(new RegExp(`\\b${e}\\s*=\\s*["']?(-?[\\d.]+)`, "i"));
2217
- return n ? Number(n[1]) : 0;
2218
+ function $(e, n) {
2219
+ const t = e.match(new RegExp(`\\b${n}\\s*=\\s*["']?(-?[\\d.]+)`, "i"));
2220
+ return t ? Number(t[1]) : 0;
2218
2221
  }
2219
- function re(t) {
2220
- return /\bdata-interactive\s*=\s*["']?(true|1|yes)/i.test(t);
2222
+ function rn(e) {
2223
+ return /\bdata-interactive\s*=\s*["']?(true|1|yes)/i.test(e);
2221
2224
  }
2222
- function Gr(t) {
2223
- return [F(t, "id"), F(t, "data-name")].filter(
2224
- (e) => !!e
2225
+ function Gr(e) {
2226
+ return [D(e, "id"), D(e, "data-name")].filter(
2227
+ (n) => !!n
2225
2228
  );
2226
2229
  }
2227
- function zr(t) {
2228
- return t.some(Pt) ? { interactiveContainer: !1, nonInteractiveContainer: !0, storeFolder: !1 } : t.some(Se) ? { interactiveContainer: !0, nonInteractiveContainer: !1, storeFolder: !1 } : t.some(Re) ? { interactiveContainer: !1, nonInteractiveContainer: !1, storeFolder: !0 } : { interactiveContainer: !1, nonInteractiveContainer: !1, storeFolder: !1 };
2229
- }
2230
- function Xr(t) {
2231
- const e = t.trim().split(/[\s,]+/).map(Number);
2232
- if (e.length < 4) return "";
2233
- let n = `M ${e[0]} ${e[1]}`;
2234
- for (let r = 2; r < e.length; r += 2)
2235
- n += ` L ${e[r]} ${e[r + 1]}`;
2236
- return n += " Z", n;
2237
- }
2238
- function Hr(t, e, n, r) {
2239
- return `M ${t} ${e} L ${n} ${r}`;
2240
- }
2241
- function Ur(t, e) {
2242
- if (t === "path")
2243
- return F(e, "d") ?? void 0;
2244
- if (t === "polygon" || t === "polyline") {
2245
- const n = F(e, "points");
2246
- return n ? Xr(n) : void 0;
2230
+ function Xr(e) {
2231
+ return e.some(Fe) ? { interactiveContainer: !1, nonInteractiveContainer: !0, storeFolder: !1 } : e.some(Rn) ? { interactiveContainer: !0, nonInteractiveContainer: !1, storeFolder: !1 } : e.some(Cn) ? { interactiveContainer: !1, nonInteractiveContainer: !1, storeFolder: !0 } : { interactiveContainer: !1, nonInteractiveContainer: !1, storeFolder: !1 };
2232
+ }
2233
+ function Hr(e) {
2234
+ const n = e.trim().split(/[\s,]+/).map(Number);
2235
+ if (n.length < 4) return "";
2236
+ let t = `M ${n[0]} ${n[1]}`;
2237
+ for (let r = 2; r < n.length; r += 2)
2238
+ t += ` L ${n[r]} ${n[r + 1]}`;
2239
+ return t += " Z", t;
2240
+ }
2241
+ function Ur(e, n, t, r) {
2242
+ return `M ${e} ${n} L ${t} ${r}`;
2243
+ }
2244
+ function Vr(e, n) {
2245
+ if (e === "path")
2246
+ return D(n, "d") ?? void 0;
2247
+ if (e === "polygon" || e === "polyline") {
2248
+ const t = D(n, "points");
2249
+ return t ? Hr(t) : void 0;
2247
2250
  }
2248
- if (t === "line")
2249
- return Hr(
2250
- G(e, "x1"),
2251
- G(e, "y1"),
2252
- G(e, "x2"),
2253
- G(e, "y2")
2251
+ if (e === "line")
2252
+ return Ur(
2253
+ $(n, "x1"),
2254
+ $(n, "y1"),
2255
+ $(n, "x2"),
2256
+ $(n, "y2")
2254
2257
  );
2255
- if (t === "rect") {
2256
- const n = G(e, "x"), r = G(e, "y"), o = G(e, "width"), i = G(e, "height");
2257
- return `M ${n} ${r} L ${n + o} ${r} L ${n + o} ${r + i} L ${n} ${r + i} Z`;
2258
+ if (e === "rect") {
2259
+ const t = $(n, "x"), r = $(n, "y"), o = $(n, "width"), i = $(n, "height");
2260
+ return `M ${t} ${r} L ${t + o} ${r} L ${t + o} ${r + i} L ${t} ${r + i} Z`;
2258
2261
  }
2259
2262
  }
2260
- function Vr(t) {
2261
- const e = Lr(t).replace(/<!--[\s\S]*?-->/g, ""), n = e.match(/viewBox\s*=\s*["']([^"']+)["']/i), r = jn(n == null ? void 0 : n[1]), o = [], i = [], c = [], a = [];
2263
+ function Wr(e) {
2264
+ const n = Lr(e).replace(/<!--[\s\S]*?-->/g, ""), t = n.match(/viewBox\s*=\s*["']([^"']+)["']/i), r = jt(t == null ? void 0 : t[1]), o = [], i = [], c = [], a = [];
2262
2265
  let s = 0;
2263
- const f = () => a.some((p) => p.routeContainer), y = () => {
2266
+ const f = () => a.some((x) => x.routeContainer), y = () => a.some((x) => x.inBackground), l = () => {
2264
2267
  for (let g = a.length - 1; g >= 0; g--) {
2265
2268
  const _ = a[g].style;
2266
2269
  if (_.fill || _.stroke || _.strokeWidth != null || _.opacity != null)
2267
2270
  break;
2268
2271
  }
2269
- let p = {};
2272
+ let x = {};
2270
2273
  for (const g of a)
2271
- p = _t(p, g.style);
2272
- return p;
2273
- }, l = () => {
2274
- for (let p = a.length - 1; p >= 0; p--) {
2275
- if (a[p].nonInteractiveContainer) return !1;
2276
- if (a[p].interactiveContainer || a[p].storeFolder) return !0;
2274
+ x = ke(x, g.style);
2275
+ return x;
2276
+ }, b = () => {
2277
+ for (let x = a.length - 1; x >= 0; x--) {
2278
+ if (a[x].nonInteractiveContainer) return !1;
2279
+ if (a[x].interactiveContainer || a[x].storeFolder) return !0;
2277
2280
  }
2278
2281
  return !1;
2279
- }, b = () => a.length > 0 ? a[a.length - 1].matrix : Et, u = () => {
2280
- for (let p = a.length - 1; p >= 0; p--) {
2281
- const g = a[p];
2282
- if (!kt(g) && g.id) {
2282
+ }, u = () => a.length > 0 ? a[a.length - 1].matrix : Le, d = () => {
2283
+ for (let x = a.length - 1; x >= 0; x--) {
2284
+ const g = a[x];
2285
+ if (!Ae(g) && g.id) {
2283
2286
  g.hasNamedChild = !0;
2284
2287
  return;
2285
2288
  }
2286
2289
  }
2287
2290
  }, h = () => {
2288
- for (let p = a.length - 1; p >= 0; p--) {
2289
- const g = a[p];
2290
- if (!kt(g) && g.id)
2291
+ for (let x = a.length - 1; x >= 0; x--) {
2292
+ const g = a[x];
2293
+ if (!Ae(g) && g.id)
2291
2294
  return g;
2292
2295
  }
2293
2296
  return null;
2294
- }, d = (p) => {
2295
- if (p.routeContainer) {
2296
- for (const g of p.collectedPaths)
2297
- ne("path", g) && m("path", g);
2297
+ }, m = (x) => {
2298
+ if (x.routeContainer) {
2299
+ for (const g of x.collectedPaths)
2300
+ tn("path", g) && p("path", g);
2298
2301
  return;
2299
2302
  }
2300
- kt(p) || !p.id || p.collectedPaths.length === 0 || (p.hasNamedChild && c.push(
2301
- `Group ${p.id} mixes named children with ${p.collectedPaths.length} unnamed path(s); the unnamed paths were merged into a single shape "${p.id}" — give them ids if they are separate shapes`
2303
+ Ae(x) || !x.id || x.collectedPaths.length === 0 || (x.hasNamedChild && c.push(
2304
+ `Group ${x.id} mixes named children with ${x.collectedPaths.length} unnamed path(s); the unnamed paths were merged into a single shape "${x.id}" — give them ids if they are separate shapes`
2302
2305
  ), o.push({
2303
- id: p.id,
2306
+ id: x.id,
2304
2307
  tag: "g",
2305
- d: p.collectedPaths.join(" "),
2306
- interactive: p.inInteractive,
2307
- style: _t(y(), p.style)
2308
+ d: x.collectedPaths.join(" "),
2309
+ interactive: x.inInteractive,
2310
+ style: ke(l(), x.style),
2311
+ inBackground: x.inBackground
2308
2312
  }));
2309
- }, m = (p, g) => {
2313
+ }, p = (x, g) => {
2310
2314
  if (!g) return;
2311
- const _ = p === "polyline" || p === "polygon" || p === "path" ? g.replace(/\s*Z\s*$/i, "") : g;
2315
+ const _ = x === "polyline" || x === "polygon" || x === "path" ? g.replace(/\s*Z\s*$/i, "") : g;
2312
2316
  i.includes(_) || i.push(_);
2313
- }, x = /<(\/?)(path|polygon|polyline|line|rect|g)\b([^>]*)(\/?)>/gi;
2314
- let I;
2315
- for (; (I = x.exec(e)) !== null; ) {
2316
- const p = I[1] === "/", g = I[2].toLowerCase(), _ = I[3] ?? "", A = I[4] === "/" || /\/\s*$/.test(_);
2317
- if (p) {
2317
+ }, I = /<(\/?)(path|polygon|polyline|line|rect|g)\b([^>]*)(\/?)>/gi;
2318
+ let k;
2319
+ for (; (k = I.exec(n)) !== null; ) {
2320
+ const x = k[1] === "/", g = k[2].toLowerCase(), _ = k[3] ?? "", A = k[4] === "/" || /\/\s*$/.test(_);
2321
+ if (x) {
2318
2322
  if (g === "g") {
2319
- const R = a.pop();
2320
- R && d(R);
2323
+ const E = a.pop();
2324
+ E && m(E);
2321
2325
  }
2322
2326
  continue;
2323
2327
  }
2324
2328
  if (g === "g") {
2325
- const R = F(_, "id"), $ = Gr(_), { interactiveContainer: B, nonInteractiveContainer: w, storeFolder: P } = zr($), Q = l();
2326
- R && u();
2327
- const J = {
2328
- id: R,
2329
- interactiveContainer: B,
2330
- nonInteractiveContainer: w,
2331
- storeFolder: P,
2332
- inInteractive: B || P || re(_) || Q && !w,
2329
+ const E = D(_, "id"), w = Gr(_), { interactiveContainer: P, nonInteractiveContainer: F, storeFolder: Z } = Xr(w), ee = b();
2330
+ E && d();
2331
+ const ne = {
2332
+ id: E,
2333
+ interactiveContainer: P,
2334
+ nonInteractiveContainer: F,
2335
+ storeFolder: Z,
2336
+ inInteractive: P || Z || rn(_) || ee && !F,
2333
2337
  collectedPaths: [],
2334
- style: Qt(_),
2335
- matrix: j(b(), te(F(_, "transform"))),
2338
+ style: Qe(_),
2339
+ matrix: q(u(), en(D(_, "transform"))),
2336
2340
  hasNamedChild: !1,
2337
- routeContainer: $.some(Ae) || f()
2341
+ routeContainer: w.some(Sn) || f(),
2342
+ inBackground: w.some(Yr) || y()
2338
2343
  };
2339
- A || a.push(J);
2344
+ A || a.push(ne);
2340
2345
  continue;
2341
2346
  }
2342
- const k = F(_, "id"), S = Ur(g, _), v = j(b(), te(F(_, "transform"))), C = S && Fr(S, v), K = re(_) || l(), M = _t(y(), Qt(_)), Y = F(_, "data-name");
2347
+ const S = D(_, "id"), C = Vr(g, _), Y = q(u(), en(D(_, "transform"))), v = C && Fr(C, Y), z = rn(_) || b(), L = ke(l(), Qe(_)), B = D(_, "data-name");
2343
2348
  if (f()) {
2344
- ne(g, S) && m(g, C);
2349
+ tn(g, C) && p(g, v);
2345
2350
  continue;
2346
2351
  }
2347
- if (k != null && ee(k) || Y != null && ee(Y))
2352
+ if (S != null && nn(S) || B != null && nn(B))
2348
2353
  continue;
2349
- if (k) {
2350
- u(), C && o.push({ id: k, tag: g, d: C, interactive: K, style: M });
2354
+ if (S) {
2355
+ d(), v && o.push({ id: S, tag: g, d: v, interactive: z, style: L, inBackground: y() });
2351
2356
  continue;
2352
2357
  }
2353
- if (!C) continue;
2354
- const E = h();
2355
- E ? (E.collectedPaths.push(C), !E.style.fill && M.fill && (E.style = M)) : K && (s += 1, o.push({
2358
+ if (!v) continue;
2359
+ const R = h();
2360
+ R ? (R.collectedPaths.push(v), !R.style.fill && L.fill && (R.style = L)) : z && (s += 1, o.push({
2356
2361
  id: `interactive-anon-${s}`,
2357
2362
  tag: g,
2358
- d: C,
2363
+ d: v,
2359
2364
  interactive: !0,
2360
- style: M
2365
+ style: L,
2366
+ inBackground: y()
2361
2367
  }));
2362
2368
  }
2363
2369
  for (; a.length > 0; )
2364
- d(a.pop());
2370
+ m(a.pop());
2365
2371
  return { viewbox: r, elements: o, routePathDs: i, warnings: c };
2366
2372
  }
2367
- function Wr(t) {
2368
- return t.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-|-$/g, "").slice(0, 80);
2373
+ function Zr(e) {
2374
+ return e.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-|-$/g, "").slice(0, 80);
2369
2375
  }
2370
- function Zr(t, e) {
2376
+ function jr(e, n) {
2371
2377
  var o, i, c, a;
2372
- const n = ft(e), r = {};
2373
- return n != null && n.fill ? r.fill = n.fill : (o = t.style) != null && o.fill && (r.fill = t.style.fill), n != null && n.stroke ? r.stroke = n.stroke : (i = t.style) != null && i.stroke && (r.stroke = t.style.stroke), (n == null ? void 0 : n.strokeWidth) != null ? r.strokeWidth = n.strokeWidth : ((c = t.style) == null ? void 0 : c.strokeWidth) != null && (r.strokeWidth = t.style.strokeWidth), ((a = t.style) == null ? void 0 : a.opacity) != null && (r.opacity = t.style.opacity), (n == null ? void 0 : n.extrudeHeight) != null && (r.extrudeHeight = n.extrudeHeight), r;
2378
+ const t = he(n), r = {};
2379
+ return t != null && t.fill ? r.fill = t.fill : (o = e.style) != null && o.fill && (r.fill = e.style.fill), t != null && t.stroke ? r.stroke = t.stroke : (i = e.style) != null && i.stroke && (r.stroke = e.style.stroke), (t == null ? void 0 : t.strokeWidth) != null ? r.strokeWidth = t.strokeWidth : ((c = e.style) == null ? void 0 : c.strokeWidth) != null && (r.strokeWidth = e.style.strokeWidth), ((a = e.style) == null ? void 0 : a.opacity) != null && (r.opacity = e.style.opacity), (t == null ? void 0 : t.extrudeHeight) != null && (r.extrudeHeight = t.extrudeHeight), r;
2374
2380
  }
2375
- function jr(t, e) {
2376
- return t == null && e == null ? !0 : t == null || e == null ? !1 : Math.abs(t.x - e.x) < 0.01 && Math.abs(t.y - e.y) < 0.01 && Math.abs(t.width - e.width) < 0.01 && Math.abs(t.height - e.height) < 0.01;
2381
+ function qr(e, n) {
2382
+ return e == null && n == null ? !0 : e == null || n == null ? !1 : Math.abs(e.x - n.x) < 0.01 && Math.abs(e.y - n.y) < 0.01 && Math.abs(e.width - n.width) < 0.01 && Math.abs(e.height - n.height) < 0.01;
2377
2383
  }
2378
- function qi(t, e = "floor", n = {}) {
2379
- const r = Vr(t), o = [], i = [], c = [], a = [...r.warnings], s = [];
2384
+ function Ji(e, n = "floor", t = {}) {
2385
+ const r = Wr(e), o = [], i = [], c = [], a = [...r.warnings], s = [];
2380
2386
  let f = 0, y = 0, l = 0;
2381
- const b = n.previousViewbox != null && r.viewbox != null && !jr(n.previousViewbox, r.viewbox);
2387
+ const b = t.previousViewbox != null && r.viewbox != null && !qr(t.previousViewbox, r.viewbox);
2382
2388
  b && a.push(
2383
2389
  "SVG viewBox differs from the stored artboard — re-upload blocked until the designer restores the original viewBox"
2384
2390
  );
2385
2391
  for (const u of r.elements) {
2386
- if (Ce(u.id)) continue;
2387
- let { kind: h, guessed: d } = Br(u.id, e);
2388
- u.interactive && !h && (h = "unit", d = !0);
2392
+ if (vn(u.id)) continue;
2393
+ let { kind: d, guessed: h } = zr(u.id, n);
2394
+ u.interactive && !d && (d = "unit", h = !0);
2389
2395
  const m = {
2390
2396
  sourceSvgId: u.id,
2391
- kind: h,
2392
- guessed: d
2397
+ kind: d,
2398
+ guessed: h
2393
2399
  };
2394
- if (!h)
2395
- if (i.push(u.id), e === "floor")
2396
- h = "decor", m.kind = "decor", m.message = "No matching prefix; imported as decor (floor mode)";
2400
+ if (!d)
2401
+ if (i.push(u.id), n === "floor")
2402
+ d = "decor", m.kind = "decor", m.message = "No matching prefix; imported as decor (floor mode)";
2397
2403
  else {
2398
2404
  m.message = "No matching prefix; skipped (outdoor decor stays in SVG)", o.push(m);
2399
2405
  continue;
@@ -2402,28 +2408,28 @@ function qi(t, e = "floor", n = {}) {
2402
2408
  a.push(`Element ${u.id} has no drawable geometry`);
2403
2409
  continue;
2404
2410
  }
2405
- if (e === "base") {
2406
- const p = ft(u.id) != null;
2407
- if (!(!p && (Yr.includes(h) || !!u.interactive))) {
2411
+ if (n === "base") {
2412
+ const k = he(u.id) != null;
2413
+ if (!(!k && (Br.includes(d) || !!u.interactive))) {
2408
2414
  o.push({
2409
2415
  ...m,
2410
- message: p ? "Static decoration — rendered from outdoor SVG" : "Decoration — not persisted; rendered from outdoor SVG"
2416
+ message: k ? "Static decoration — rendered from outdoor SVG" : "Decoration — not persisted; rendered from outdoor SVG"
2411
2417
  });
2412
2418
  continue;
2413
2419
  }
2414
2420
  }
2415
- d && (c.push(m), m.message = m.message ?? "Guessed kind from interactive/fallback rule"), o.push(m), h === "walkable" && f++, h === "void" && y++, h === "unit" && l++;
2416
- const x = Wn([u.d]), I = Mt(x);
2421
+ h && (c.push(m), m.message = m.message ?? "Guessed kind from interactive/fallback rule"), o.push(m), d === "walkable" && f++, d === "void" && y++, d === "unit" && l++;
2422
+ const p = Wt([u.d]), I = we(p);
2417
2423
  s.push({
2418
- key: Wr(u.id),
2419
- kind: h,
2420
- geometry: x,
2424
+ key: Zr(u.id),
2425
+ kind: d,
2426
+ geometry: p,
2421
2427
  bbox: I,
2422
2428
  sourceSvgId: u.id,
2423
- style: Zr(u, u.id)
2429
+ style: jr(u, u.id)
2424
2430
  });
2425
2431
  }
2426
- return e === "floor" && f === 0 && a.push(
2432
+ return n === "floor" && f === 0 && a.push(
2427
2433
  "No walkable layer found — auto-skeleton will be unavailable for this level"
2428
2434
  ), {
2429
2435
  report: {
@@ -2441,11 +2447,11 @@ function qi(t, e = "floor", n = {}) {
2441
2447
  viewBoxChanged: b
2442
2448
  };
2443
2449
  }
2444
- function Qi(t, e, n, r = {}) {
2450
+ function es(e, n, t, r = {}) {
2445
2451
  const o = r.driftThreshold ?? $r, i = new Map(
2446
- e.filter((s) => s.sourceSvgId).map((s) => [s.sourceSvgId, s])
2452
+ n.filter((s) => s.sourceSvgId).map((s) => [s.sourceSvgId, s])
2447
2453
  ), c = /* @__PURE__ */ new Set(), a = [];
2448
- for (const s of t) {
2454
+ for (const s of e) {
2449
2455
  const f = i.get(s.sourceSvgId);
2450
2456
  if (c.add(s.sourceSvgId), !f)
2451
2457
  a.push({
@@ -2466,7 +2472,7 @@ function Qi(t, e, n, r = {}) {
2466
2472
  else {
2467
2473
  let y = "unchanged";
2468
2474
  if (f.bbox) {
2469
- const l = (f.bbox.minX + f.bbox.maxX) / 2, b = (f.bbox.minY + f.bbox.maxY) / 2, u = Zn(s.geometry);
2475
+ const l = (f.bbox.minX + f.bbox.maxX) / 2, b = (f.bbox.minY + f.bbox.maxY) / 2, u = Zt(s.geometry);
2470
2476
  Math.hypot(u.x - l, u.y - b) > o && (y = "moved");
2471
2477
  }
2472
2478
  a.push({
@@ -2480,7 +2486,7 @@ function Qi(t, e, n, r = {}) {
2480
2486
  });
2481
2487
  }
2482
2488
  }
2483
- for (const s of e)
2489
+ for (const s of n)
2484
2490
  s.sourceSvgId && !c.has(s.sourceSvgId) && a.push({
2485
2491
  sourceSvgId: s.sourceSvgId,
2486
2492
  change: "removed",
@@ -2490,97 +2496,97 @@ function Qi(t, e, n, r = {}) {
2490
2496
  });
2491
2497
  return {
2492
2498
  items: a,
2493
- shapes: t,
2494
- viewbox: n
2499
+ shapes: e,
2500
+ viewbox: t
2495
2501
  };
2496
2502
  }
2497
- const L = 1e-6, qr = 15 * Math.PI / 180, Qr = 1e-3, rt = Math.PI * 2;
2498
- function oe(t, e) {
2499
- return Math.abs(t.x - e.x) < L && Math.abs(t.y - e.y) < L;
2503
+ const N = 1e-6, Qr = 15 * Math.PI / 180, Jr = 1e-3, ie = Math.PI * 2;
2504
+ function on(e, n) {
2505
+ return Math.abs(e.x - n.x) < N && Math.abs(e.y - n.y) < N;
2500
2506
  }
2501
- function At(t, e) {
2502
- return { x: t.x + e.x, y: t.y + e.y };
2507
+ function Se(e, n) {
2508
+ return { x: e.x + n.x, y: e.y + n.y };
2503
2509
  }
2504
- function ie(t, e) {
2505
- return { x: t.x - e.x, y: t.y - e.y };
2510
+ function sn(e, n) {
2511
+ return { x: e.x - n.x, y: e.y - n.y };
2506
2512
  }
2507
- function ot(t, e) {
2508
- return { x: t.x * e, y: t.y * e };
2513
+ function se(e, n) {
2514
+ return { x: e.x * n, y: e.y * n };
2509
2515
  }
2510
- function St(t, e, n) {
2516
+ function Re(e, n, t) {
2511
2517
  return {
2512
- x: t.x + Math.cos(n) * e,
2513
- y: t.y + Math.sin(n) * e
2518
+ x: e.x + Math.cos(t) * n,
2519
+ y: e.y + Math.sin(t) * n
2514
2520
  };
2515
2521
  }
2516
- function Jr(t) {
2517
- const e = [];
2518
- for (const n of t) {
2519
- const r = e[e.length - 1];
2520
- r && oe(r, n) || e.push(n);
2522
+ function eo(e) {
2523
+ const n = [];
2524
+ for (const t of e) {
2525
+ const r = n[n.length - 1];
2526
+ r && on(r, t) || n.push(t);
2521
2527
  }
2522
- return e.length >= 2 && oe(e[0], e[e.length - 1]) && e.pop(), e;
2528
+ return n.length >= 2 && on(n[0], n[n.length - 1]) && n.pop(), n;
2523
2529
  }
2524
- function Ji(t, e) {
2525
- const n = ue(e), r = Jr(t);
2526
- if (r.length < 3 || n <= 0) return t;
2530
+ function ns(e, n) {
2531
+ const t = fn(n), r = eo(e);
2532
+ if (r.length < 3 || t <= 0) return e;
2527
2533
  const o = r.length, i = new Array(o), c = new Array(o), a = new Array(o), s = new Array(o), f = new Array(o).fill(0), y = new Array(o).fill(0), l = new Array(o).fill(!1);
2528
2534
  for (let u = 0; u < o; u++) {
2529
- const h = r[(u - 1 + o) % o], d = r[u], m = r[(u + 1) % o], x = N(h, d), I = N(d, m);
2530
- if (a[u] = I, x < L || I < L) {
2535
+ const d = r[(u - 1 + o) % o], h = r[u], m = r[(u + 1) % o], p = T(d, h), I = T(h, m);
2536
+ if (a[u] = I, p < N || I < N) {
2531
2537
  i[u] = { x: 1, y: 0 }, c[u] = { x: 1, y: 0 }, s[u] = 0;
2532
2538
  continue;
2533
2539
  }
2534
- i[u] = ot(ie(d, h), 1 / x), c[u] = ot(ie(m, d), 1 / I);
2535
- const p = i[u].x * c[u].y - i[u].y * c[u].x, g = i[u].x * c[u].x + i[u].y * c[u].y;
2536
- s[u] = Math.atan2(p, g);
2537
- const _ = Math.abs(s[u]);
2538
- if (_ < qr) continue;
2539
- const A = Math.PI - _, k = Math.tan(A / 2);
2540
- if (k < L || A <= L || A >= Math.PI - L) continue;
2541
- const S = n / k;
2540
+ i[u] = se(sn(h, d), 1 / p), c[u] = se(sn(m, h), 1 / I);
2541
+ const k = i[u].x * c[u].y - i[u].y * c[u].x, x = i[u].x * c[u].x + i[u].y * c[u].y;
2542
+ s[u] = Math.atan2(k, x);
2543
+ const g = Math.abs(s[u]);
2544
+ if (g < Qr) continue;
2545
+ const _ = Math.PI - g, A = Math.tan(_ / 2);
2546
+ if (A < N || _ <= N || _ >= Math.PI - N) continue;
2547
+ const S = t / A;
2542
2548
  f[u] = S, y[u] = S, l[u] = !0;
2543
2549
  }
2544
2550
  for (let u = 0; u < o; u++) {
2545
- const h = (u + 1) % o, d = y[u] + f[h], m = Math.max(0, a[u] - Qr);
2546
- if (d <= m || d <= L) continue;
2547
- const x = m / d;
2548
- y[u] *= x, f[h] *= x;
2551
+ const d = (u + 1) % o, h = y[u] + f[d], m = Math.max(0, a[u] - Jr);
2552
+ if (h <= m || h <= N) continue;
2553
+ const p = m / h;
2554
+ y[u] *= p, f[d] *= p;
2549
2555
  }
2550
2556
  const b = [];
2551
2557
  for (let u = 0; u < o; u++) {
2552
- const h = r[u], d = Math.min(f[u], y[u]), m = Math.abs(s[u]), x = Math.PI - m, I = d * Math.tan(x / 2);
2553
- if (!l[u] || I < L || d < L) {
2554
- b.push({ ...h });
2558
+ const d = r[u], h = Math.min(f[u], y[u]), m = Math.abs(s[u]), p = Math.PI - m, I = h * Math.tan(p / 2);
2559
+ if (!l[u] || I < N || h < N) {
2560
+ b.push({ ...d });
2555
2561
  continue;
2556
2562
  }
2557
- const p = At(h, ot(i[u], -d)), g = At(h, ot(c[u], d)), _ = s[u] > 0 ? 1 : -1, A = At(p, {
2558
- x: -i[u].y * _ * I,
2559
- y: i[u].x * _ * I
2560
- }), k = Math.atan2(p.y - A.y, p.x - A.x), S = Math.atan2(g.y - A.y, g.x - A.x), v = (S - k + rt) % rt, C = (k - S + rt) % rt, K = St(A, I, k + v / 2), M = St(A, I, k - C / 2), Y = N(K, h) <= N(M, h), E = Y ? v : C, R = Math.max(8, Math.min(28, Math.ceil(E * I / 2)));
2561
- for (let $ = 0; $ <= R; $++) {
2562
- const B = $ / R, w = Y ? k + E * B : k - E * B;
2563
- b.push(St(A, I, w));
2563
+ const k = Se(d, se(i[u], -h)), x = Se(d, se(c[u], h)), g = s[u] > 0 ? 1 : -1, _ = Se(k, {
2564
+ x: -i[u].y * g * I,
2565
+ y: i[u].x * g * I
2566
+ }), A = Math.atan2(k.y - _.y, k.x - _.x), S = Math.atan2(x.y - _.y, x.x - _.x), C = (S - A + ie) % ie, Y = (A - S + ie) % ie, v = Re(_, I, A + C / 2), z = Re(_, I, A - Y / 2), L = T(v, d) <= T(z, d), B = L ? C : Y, R = Math.max(8, Math.min(28, Math.ceil(B * I / 2)));
2567
+ for (let E = 0; E <= R; E++) {
2568
+ const w = E / R, P = L ? A + B * w : A - B * w;
2569
+ b.push(Re(_, I, P));
2564
2570
  }
2565
2571
  }
2566
2572
  return b;
2567
2573
  }
2568
- function ts(t) {
2569
- const e = Qe(t.theme), n = new Map(
2570
- t.assignments.map((s) => [s.shapeId, s])
2574
+ function ts(e) {
2575
+ const n = Jn(e.theme), t = new Map(
2576
+ e.assignments.map((s) => [s.shapeId, s])
2571
2577
  ), r = new Map(
2572
- (t.retailers ?? []).map((s) => [s.id, s])
2573
- ), o = t.resolveSvgUrl ?? ((s) => s), i = t.levels.filter((s) => s.isActive).sort((s, f) => s.ordering - f.ordering).map((s) => {
2574
- const f = t.shapes.filter((l) => l.levelId === s.id).map((l) => {
2575
- const b = Ie(l.geometry), u = n.get(l.id) ?? null, h = (u == null ? void 0 : u.retailerId) != null ? r.get(u.retailerId) ?? null : null, d = h && !t.persistMediaKeys ? { ...h, logoKey: null } : h;
2578
+ (e.retailers ?? []).map((s) => [s.id, s])
2579
+ ), o = e.resolveSvgUrl ?? ((s) => s), i = e.levels.filter((s) => s.isActive).sort((s, f) => s.ordering - f.ordering).map((s) => {
2580
+ const f = e.shapes.filter((l) => l.levelId === s.id).map((l) => {
2581
+ const b = gn(l.geometry), u = t.get(l.id) ?? null, d = (u == null ? void 0 : u.retailerId) != null ? r.get(u.retailerId) ?? null : null, h = d && !e.persistMediaKeys ? { ...d, logoKey: null } : d;
2576
2582
  return {
2577
2583
  ...l,
2578
2584
  geometry: b,
2579
- bbox: b === l.geometry ? l.bbox : Mt(b),
2585
+ bbox: b === l.geometry ? l.bbox : we(b),
2580
2586
  assignment: u,
2581
- label: he(l, u, d)
2587
+ label: yn(l, u, h)
2582
2588
  };
2583
- }), y = t.anchors.filter((l) => l.levelId === s.id);
2589
+ }), y = e.anchors.filter((l) => l.levelId === s.id);
2584
2590
  return {
2585
2591
  id: s.id,
2586
2592
  buildingId: s.buildingId,
@@ -2594,430 +2600,438 @@ function ts(t) {
2594
2600
  shapes: f,
2595
2601
  anchors: y
2596
2602
  };
2597
- }), { nodes: c, edges: a } = nr(
2598
- t.anchors,
2599
- t.edges,
2600
- t.connectors
2603
+ }), { nodes: c, edges: a } = tr(
2604
+ e.anchors,
2605
+ e.edges,
2606
+ e.connectors
2601
2607
  );
2602
2608
  return {
2603
2609
  version: 2,
2604
- revisionId: t.revisionId,
2605
- revisionNumber: t.revisionNumber,
2606
- centerId: t.centerId,
2607
- mapId: t.mapId,
2608
- theme: e,
2609
- baseSvgUrl: t.baseSvgUrl,
2610
- baseViewbox: t.baseViewbox,
2611
- buildings: t.buildings,
2610
+ revisionId: e.revisionId,
2611
+ revisionNumber: e.revisionNumber,
2612
+ centerId: e.centerId,
2613
+ mapId: e.mapId,
2614
+ theme: n,
2615
+ baseSvgUrl: e.baseSvgUrl,
2616
+ baseViewbox: e.baseViewbox,
2617
+ buildings: e.buildings,
2612
2618
  levels: i,
2613
- connectors: t.connectors,
2614
- amenities: t.amenities.filter((s) => s.isActive),
2615
- retailers: (t.retailers ?? []).map(
2616
- (s) => to(s, !!t.persistMediaKeys)
2619
+ connectors: e.connectors,
2620
+ amenities: e.amenities.filter((s) => s.isActive),
2621
+ retailers: (e.retailers ?? []).map(
2622
+ (s) => no(s, !!e.persistMediaKeys)
2617
2623
  ),
2618
2624
  graph: { nodes: c, edges: a },
2619
- responsiveOverrides: t.responsiveOverrides,
2620
- georeference: en(t.georeference),
2621
- publishedAt: t.publishedAt ?? (/* @__PURE__ */ new Date()).toISOString()
2625
+ responsiveOverrides: e.responsiveOverrides,
2626
+ georeference: tt(e.georeference),
2627
+ publishedAt: e.publishedAt ?? (/* @__PURE__ */ new Date()).toISOString()
2622
2628
  };
2623
2629
  }
2624
- function to(t, e) {
2630
+ function no(e, n) {
2625
2631
  return {
2626
- id: t.id,
2627
- name: t.name,
2628
- location: t.location ?? null,
2629
- logoUrl: e ? null : t.logoUrl ?? null,
2630
- logoKey: e ? t.logoKey ?? null : null,
2631
- phone: t.phone ?? null,
2632
- description: t.description ?? null,
2633
- globalRetailerId: t.globalRetailerId ?? null
2632
+ id: e.id,
2633
+ name: e.name,
2634
+ location: e.location ?? null,
2635
+ logoUrl: n ? null : e.logoUrl ?? null,
2636
+ logoKey: n ? e.logoKey ?? null : null,
2637
+ phone: e.phone ?? null,
2638
+ description: e.description ?? null,
2639
+ globalRetailerId: e.globalRetailerId ?? null
2634
2640
  };
2635
2641
  }
2636
- function es(t) {
2637
- let e = !1;
2638
- const n = t.levels.map((r) => {
2639
- let o = !1;
2640
- const i = r.shapes.map((c) => {
2641
- const a = Ie(c.geometry), s = he(c, c.assignment), f = a !== c.geometry, y = s !== c.label;
2642
- return !f && !y ? c : (o = !0, {
2643
- ...c,
2644
- geometry: a,
2645
- bbox: f ? Mt(a) : c.bbox,
2646
- label: s
2642
+ function to(e, n) {
2643
+ return e === n ? !0 : !e || !n ? !1 : e.text === n.text && e.imageKey === n.imageKey && e.size === n.size && e.rotate === n.rotate && e.offsetX === n.offsetX && e.offsetY === n.offsetY && e.color === n.color && e.align === n.align && e.autoFit === n.autoFit;
2644
+ }
2645
+ function rs(e) {
2646
+ const n = new Map(
2647
+ (e.retailers ?? []).map((o) => [o.id, o])
2648
+ );
2649
+ let t = !1;
2650
+ const r = e.levels.map((o) => {
2651
+ let i = !1;
2652
+ const c = o.shapes.map((a) => {
2653
+ var d;
2654
+ const s = gn(a.geometry), f = (d = a.assignment) == null ? void 0 : d.retailerId, y = f != null ? n.get(f) ?? null : null, l = yn(a, a.assignment, y), b = s !== a.geometry, u = !to(l, a.label);
2655
+ return !b && !u ? a : (i = !0, {
2656
+ ...a,
2657
+ geometry: s,
2658
+ bbox: b ? we(s) : a.bbox,
2659
+ label: u ? l : a.label
2647
2660
  });
2648
2661
  });
2649
- return o ? (e = !0, { ...r, shapes: i }) : r;
2662
+ return i ? (t = !0, { ...o, shapes: c }) : o;
2650
2663
  });
2651
- return e ? { ...t, levels: n } : t;
2664
+ return t ? { ...e, levels: r } : e;
2652
2665
  }
2653
- const ns = [
2666
+ const os = [
2654
2667
  "admin_portal",
2655
2668
  "desktop",
2656
2669
  "tablet",
2657
2670
  "mobile",
2658
2671
  "display_app"
2659
- ], rs = [
2672
+ ], is = [
2660
2673
  { id: "admin_portal", label: "Admin Portal" },
2661
2674
  { id: "desktop", label: "Desktop" },
2662
2675
  { id: "tablet", label: "Tablet" },
2663
2676
  { id: "mobile", label: "Mobile" },
2664
2677
  { id: "display_app", label: "Kiosk App" }
2665
- ], eo = 1024, no = 767;
2666
- function os(t) {
2667
- return t === "admin_portal" || t === "display_app" || t === "desktop" || t === "tablet" || t === "mobile";
2678
+ ], ro = 1024, oo = 767;
2679
+ function ss(e) {
2680
+ return e === "admin_portal" || e === "display_app" || e === "desktop" || e === "tablet" || e === "mobile";
2668
2681
  }
2669
- function is(t, e) {
2670
- return t === "PORTAL_ASSIGN" ? "admin_portal" : t === "DISPLAY_APP" ? "display_app" : e > eo ? "desktop" : e > no ? "tablet" : "mobile";
2682
+ function cs(e, n) {
2683
+ return e === "PORTAL_ASSIGN" ? "admin_portal" : e === "DISPLAY_APP" ? "display_app" : n > ro ? "desktop" : n > oo ? "tablet" : "mobile";
2671
2684
  }
2672
- function ro(t, e) {
2673
- return `${t ?? "none"}:${e}`;
2685
+ function io(e, n) {
2686
+ return `${e ?? "none"}:${n}`;
2674
2687
  }
2675
- function ss(t, e, n) {
2676
- return `${n ? "capture" : "viewer"}:${ro(t, e)}`;
2688
+ function as(e, n, t) {
2689
+ return `${t ? "capture" : "viewer"}:${io(e, n)}`;
2677
2690
  }
2678
- function se(t) {
2679
- return t ? t.x === 0 && t.y === 0 && t.z === 0 : !0;
2691
+ function cn(e) {
2692
+ return e ? e.x === 0 && e.y === 0 && e.z === 0 : !0;
2680
2693
  }
2681
- function ve(t) {
2682
- var n;
2683
- if (!t) return !0;
2684
- const e = (n = t.camera) == null ? void 0 : n.zoom;
2685
- return typeof e == "number" && Number.isFinite(e) && e > 0 ? !1 : se(t.camera) && se(t.controls);
2686
- }
2687
- function cs(t, e, n) {
2688
- if (!(t != null && t.length) || e == null) return null;
2689
- const r = t.find(
2690
- (o) => o.levelId === e && o.device === n
2694
+ function En(e) {
2695
+ var t;
2696
+ if (!e) return !0;
2697
+ const n = (t = e.camera) == null ? void 0 : t.zoom;
2698
+ return typeof n == "number" && Number.isFinite(n) && n > 0 ? !1 : cn(e.camera) && cn(e.controls);
2699
+ }
2700
+ function ls(e, n, t) {
2701
+ if (!(e != null && e.length) || n == null) return null;
2702
+ const r = e.find(
2703
+ (o) => o.levelId === n && o.device === t
2691
2704
  );
2692
- return !r || ve(r) ? null : r;
2705
+ return !r || En(r) ? null : r;
2693
2706
  }
2694
- function as(t) {
2695
- const e = t.camera.zoom;
2707
+ function us(e) {
2708
+ const n = e.camera.zoom;
2696
2709
  return {
2697
- zoom: typeof e == "number" && Number.isFinite(e) && e > 0 ? e : 0,
2698
- position: [t.camera.x, t.camera.y, t.camera.z],
2699
- target: [t.controls.x, t.controls.y, t.controls.z]
2710
+ zoom: typeof n == "number" && Number.isFinite(n) && n > 0 ? n : 0,
2711
+ position: [e.camera.x, e.camera.y, e.camera.z],
2712
+ target: [e.controls.x, e.controls.y, e.controls.z]
2700
2713
  };
2701
2714
  }
2702
- function ls(t) {
2715
+ function fs(e) {
2703
2716
  return {
2704
2717
  camera: {
2705
- x: t.position[0],
2706
- y: t.position[1],
2707
- z: t.position[2],
2708
- zoom: t.zoom
2718
+ x: e.position[0],
2719
+ y: e.position[1],
2720
+ z: e.position[2],
2721
+ zoom: e.zoom
2709
2722
  },
2710
2723
  controls: {
2711
- x: t.target[0],
2712
- y: t.target[1],
2713
- z: t.target[2]
2724
+ x: e.target[0],
2725
+ y: e.target[1],
2726
+ z: e.target[2]
2714
2727
  }
2715
2728
  };
2716
2729
  }
2717
- const oo = {
2730
+ const so = {
2718
2731
  x: 0,
2719
2732
  y: 0,
2720
2733
  z: 0,
2721
2734
  zoom: 0
2722
- }, io = { x: 0, y: 0, z: 0 };
2723
- function us(t, e) {
2735
+ }, co = { x: 0, y: 0, z: 0 };
2736
+ function ds(e, n) {
2724
2737
  return {
2725
- levelId: t,
2726
- device: e,
2727
- camera: { ...oo },
2728
- controls: { ...io }
2738
+ levelId: e,
2739
+ device: n,
2740
+ camera: { ...so },
2741
+ controls: { ...co }
2729
2742
  };
2730
2743
  }
2731
- function so(t, e) {
2732
- const n = {
2733
- id: e.id ?? 0,
2734
- mapId: e.mapId ?? 0,
2735
- levelId: e.levelId,
2736
- device: e.device,
2737
- camera: e.camera,
2738
- controls: e.controls
2739
- }, r = t.findIndex(
2740
- (i) => i.levelId === e.levelId && i.device === e.device
2744
+ function ao(e, n) {
2745
+ const t = {
2746
+ id: n.id ?? 0,
2747
+ mapId: n.mapId ?? 0,
2748
+ levelId: n.levelId,
2749
+ device: n.device,
2750
+ camera: n.camera,
2751
+ controls: n.controls
2752
+ }, r = e.findIndex(
2753
+ (i) => i.levelId === n.levelId && i.device === n.device
2741
2754
  );
2742
- if (r < 0) return [...t, n];
2743
- const o = t.slice();
2755
+ if (r < 0) return [...e, t];
2756
+ const o = e.slice();
2744
2757
  return o[r] = {
2745
- ...t[r],
2746
- ...n,
2747
- id: e.id ?? t[r].id,
2748
- mapId: e.mapId ?? t[r].mapId
2758
+ ...e[r],
2759
+ ...t,
2760
+ id: n.id ?? e[r].id,
2761
+ mapId: n.mapId ?? e[r].mapId
2749
2762
  }, o;
2750
2763
  }
2751
- function fs(t, e) {
2752
- let n = t;
2753
- for (const r of e) {
2754
- if (ve(r)) {
2755
- n = n.filter(
2764
+ function hs(e, n) {
2765
+ let t = e;
2766
+ for (const r of n) {
2767
+ if (En(r)) {
2768
+ t = t.filter(
2756
2769
  (o) => !(o.levelId === r.levelId && o.device === r.device)
2757
2770
  );
2758
2771
  continue;
2759
2772
  }
2760
- n = so(n, r);
2773
+ t = ao(t, r);
2761
2774
  }
2762
- return n;
2775
+ return t;
2763
2776
  }
2764
2777
  export {
2765
- bn as $,
2766
- un as A,
2767
- Fo as B,
2768
- an as C,
2769
- dt as D,
2770
- oo as E,
2771
- Ct as F,
2772
- Or as G,
2773
- fi as H,
2774
- uo as I,
2775
- bi as J,
2776
- Go as K,
2777
- ko as L,
2778
- Jo as M,
2779
- Pn as N,
2780
- Uo as O,
2778
+ bt as $,
2779
+ ut as A,
2780
+ Ko as B,
2781
+ at as C,
2782
+ ye as D,
2783
+ so as E,
2784
+ ve as F,
2785
+ kr as G,
2786
+ hi as H,
2787
+ ho as I,
2788
+ gi as J,
2789
+ Xo as K,
2790
+ So as L,
2791
+ ni as M,
2792
+ Pt as N,
2793
+ Wo as O,
2781
2794
  Nr as P,
2782
- Xn as Q,
2783
- eo as R,
2784
- kn as S,
2785
- Lt as T,
2786
- lt as U,
2787
- po as V,
2788
- ce as W,
2789
- Zt as X,
2790
- hn as Y,
2791
- gn as Z,
2792
- T as _,
2793
- go as a,
2794
- sn as a$,
2795
- ye as a0,
2796
- _n as a1,
2797
- $o as a2,
2798
- To as a3,
2799
- Ko as a4,
2800
- zt as a5,
2801
- $n as a6,
2802
- yi as a7,
2803
- gi as a8,
2795
+ Xt as Q,
2796
+ ro as R,
2797
+ Ot as S,
2798
+ Ne as T,
2799
+ fe as U,
2800
+ bo as V,
2801
+ an as W,
2802
+ Ze as X,
2803
+ ht as Y,
2804
+ gt as Z,
2805
+ M as _,
2806
+ ko as a,
2807
+ cn as a$,
2808
+ mn as a0,
2809
+ _t as a1,
2810
+ zo as a2,
2811
+ wo as a3,
2812
+ Bo as a4,
2813
+ Ge as a5,
2814
+ Bt as a6,
2815
+ pi as a7,
2816
+ ki as a8,
2804
2817
  ti as a9,
2805
- Ji as aA,
2818
+ ns as aA,
2806
2819
  ur as aB,
2807
2820
  or as aC,
2808
2821
  fr as aD,
2809
- cs as aE,
2822
+ ls as aE,
2810
2823
  ar as aF,
2811
2824
  lr as aG,
2812
- ai as aH,
2813
- hi as aI,
2814
- qo as aJ,
2815
- ht as aK,
2816
- Gi as aL,
2817
- Mt as aM,
2818
- Zn as aN,
2819
- Tn as aO,
2820
- Mn as aP,
2821
- Cn as aQ,
2822
- Ho as aR,
2823
- qi as aS,
2825
+ ui as aH,
2826
+ mi as aI,
2827
+ Jo as aJ,
2828
+ me as aK,
2829
+ Xi as aL,
2830
+ we as aM,
2831
+ Zt as aN,
2832
+ Tt as aO,
2833
+ Mt as aP,
2834
+ Ct as aQ,
2835
+ Vo as aR,
2836
+ Ji as aS,
2824
2837
  Lr as aT,
2825
- me as aU,
2826
- Vi as aV,
2827
- mn as aW,
2828
- Io as aX,
2829
- os as aY,
2830
- ve as aZ,
2831
- se as a_,
2832
- Wn as aa,
2833
- Bo as ab,
2834
- de as ac,
2835
- Bn as ad,
2836
- Oo as ae,
2837
- qe as af,
2838
- ue as ag,
2839
- Br as ah,
2840
- Co as ai,
2841
- En as aj,
2842
- ho as ak,
2838
+ pn as aU,
2839
+ Zi as aV,
2840
+ mt as aW,
2841
+ Yr as aX,
2842
+ _o as aY,
2843
+ ss as aZ,
2844
+ En as a_,
2845
+ Wt as aa,
2846
+ Go as ab,
2847
+ hn as ac,
2848
+ $t as ad,
2849
+ Ao as ae,
2850
+ Qn as af,
2851
+ fn as ag,
2852
+ zr as ah,
2853
+ Eo as ai,
2854
+ Et as aj,
2855
+ mo as ak,
2843
2856
  ts as al,
2844
- nr as am,
2845
- Yo as an,
2846
- lo as ao,
2847
- Nt as ap,
2848
- vo as aq,
2849
- wn as ar,
2850
- is as as,
2851
- Qi as at,
2852
- ki as au,
2853
- N as av,
2854
- us as aw,
2855
- Eo as ax,
2856
- Vt as ay,
2857
- qt as az,
2858
- cn as b,
2859
- Bt as b$,
2860
- on as b0,
2861
- Vn as b1,
2862
- pn as b2,
2863
- Tr as b3,
2864
- Se as b4,
2865
- Ce as b5,
2866
- oi as b6,
2867
- Pt as b7,
2868
- X as b8,
2869
- Ae as b9,
2870
- le as bA,
2871
- es as bB,
2872
- zi as bC,
2873
- fo as bD,
2874
- mo as bE,
2875
- as as bF,
2876
- Yt as bG,
2877
- Po as bH,
2878
- en as bI,
2879
- Lo as bJ,
2880
- Vr as bK,
2881
- te as bL,
2882
- jn as bM,
2883
- be as bN,
2884
- Gn as bO,
2885
- mi as bP,
2886
- Ht as bQ,
2887
- Xt as bR,
2888
- vn as bS,
2889
- ls as bT,
2890
- Qn as bU,
2891
- at as bV,
2892
- he as bW,
2893
- Qt as bX,
2894
- ji as bY,
2895
- ft as bZ,
2896
- ut as b_,
2897
- ne as ba,
2898
- ee as bb,
2899
- zo as bc,
2900
- Re as bd,
2901
- W as be,
2902
- Tt as bf,
2903
- Ge as bg,
2904
- Yn as bh,
2905
- An as bi,
2906
- Do as bj,
2907
- So as bk,
2908
- Ro as bl,
2909
- Sn as bm,
2910
- ni as bn,
2911
- sr as bo,
2912
- _o as bp,
2913
- _t as bq,
2914
- fs as br,
2915
- Qe as bs,
2916
- _i as bt,
2917
- j as bu,
2918
- pi as bv,
2919
- Zo as bw,
2920
- Ie as bx,
2921
- Ao as by,
2922
- yt as bz,
2857
+ tr as am,
2858
+ $o as an,
2859
+ fo as ao,
2860
+ Te as ap,
2861
+ Lo as aq,
2862
+ wt as ar,
2863
+ cs as as,
2864
+ es as at,
2865
+ Si as au,
2866
+ T as av,
2867
+ ds as aw,
2868
+ No as ax,
2869
+ Ve as ay,
2870
+ qe as az,
2871
+ ct as b,
2872
+ de as b$,
2873
+ st as b0,
2874
+ it as b1,
2875
+ Vt as b2,
2876
+ pt as b3,
2877
+ Tr as b4,
2878
+ Rn as b5,
2879
+ vn as b6,
2880
+ si as b7,
2881
+ Fe as b8,
2882
+ X as b9,
2883
+ J as bA,
2884
+ un as bB,
2885
+ rs as bC,
2886
+ Hi as bD,
2887
+ yo as bE,
2888
+ xo as bF,
2889
+ us as bG,
2890
+ Ye as bH,
2891
+ Do as bI,
2892
+ tt as bJ,
2893
+ To as bK,
2894
+ Wr as bL,
2895
+ en as bM,
2896
+ jt as bN,
2897
+ In as bO,
2898
+ zt as bP,
2899
+ xi as bQ,
2900
+ He as bR,
2901
+ Xe as bS,
2902
+ vt as bT,
2903
+ fs as bU,
2904
+ Qt as bV,
2905
+ ue as bW,
2906
+ yn as bX,
2907
+ Qe as bY,
2908
+ Qi as bZ,
2909
+ he as b_,
2910
+ Sn as ba,
2911
+ tn as bb,
2912
+ nn as bc,
2913
+ Ho as bd,
2914
+ Cn as be,
2915
+ W as bf,
2916
+ Me as bg,
2917
+ Gn as bh,
2918
+ Yt as bi,
2919
+ At as bj,
2920
+ Yo as bk,
2921
+ Co as bl,
2922
+ vo as bm,
2923
+ St as bn,
2924
+ oi as bo,
2925
+ sr as bp,
2926
+ Oo as bq,
2927
+ ke as br,
2928
+ hs as bs,
2929
+ Jn as bt,
2930
+ Oi as bu,
2931
+ q as bv,
2932
+ bi as bw,
2933
+ qo as bx,
2934
+ gn as by,
2935
+ Ro as bz,
2923
2936
  V as c,
2924
- Bi as c$,
2925
- wo as c0,
2926
- Mo as c1,
2927
- Ar as c2,
2928
- Wi as c3,
2929
- ro as c4,
2930
- ss as c5,
2931
- No as c6,
2932
- Nn as c7,
2933
- qn as c8,
2934
- Rn as c9,
2935
- so as cA,
2936
- ui as cB,
2937
- Ut as cC,
2938
- ri as cD,
2937
+ Ni as c$,
2938
+ $e as c0,
2939
+ Fo as c1,
2940
+ Po as c2,
2941
+ Ar as c3,
2942
+ ji as c4,
2943
+ io as c5,
2944
+ as as c6,
2945
+ Mo as c7,
2946
+ Nt as c8,
2947
+ qt as c9,
2948
+ eo as cA,
2949
+ ao as cB,
2950
+ di as cC,
2951
+ Ue as cD,
2939
2952
  ii as cE,
2940
- pe as cF,
2941
- Oe as cG,
2942
- Ir as cH,
2943
- ci as cI,
2944
- jo as cJ,
2945
- Ln as cK,
2946
- Kn as cL,
2947
- li as cM,
2948
- _r as cN,
2949
- Zi as cO,
2950
- Hi as cP,
2951
- Ui as cQ,
2952
- si as cR,
2953
- br as cS,
2954
- Xo as cT,
2955
- $i as cU,
2956
- Di as cV,
2957
- xr as cW,
2958
- Ki as cX,
2959
- Yi as cY,
2960
- Ci as cZ,
2953
+ ci as cF,
2954
+ xn as cG,
2955
+ On as cH,
2956
+ Ir as cI,
2957
+ li as cJ,
2958
+ Qo as cK,
2959
+ Lt as cL,
2960
+ Kt as cM,
2961
+ fi as cN,
2962
+ _r as cO,
2963
+ qi as cP,
2964
+ Vi as cQ,
2965
+ Wi as cR,
2966
+ ai as cS,
2967
+ br as cT,
2968
+ Uo as cU,
2969
+ zi as cV,
2970
+ Yi as cW,
2971
+ xr as cX,
2972
+ Bi as cY,
2973
+ $i as cZ,
2961
2974
  Ei as c_,
2962
- $t as ca,
2963
- Ii as cb,
2964
- q as cc,
2965
- ge as cd,
2966
- Ai as ce,
2967
- bo as cf,
2968
- Fn as cg,
2969
- Ri as ch,
2970
- Oi as ci,
2971
- Sr as cj,
2972
- Qo as ck,
2973
- cr as cl,
2974
- xi as cm,
2975
- yo as cn,
2976
- Si as co,
2977
- kr as cp,
2978
- Ke as cq,
2979
- U as cr,
2980
- De as cs,
2981
- ze as ct,
2982
- Be as cu,
2983
- xe as cv,
2984
- Fr as cw,
2985
- ei as cx,
2986
- vt as cy,
2987
- Jr as cz,
2988
- xo as d,
2989
- hr as d0,
2990
- wi as d1,
2991
- Ni as d2,
2992
- vi as d3,
2993
- pr as d4,
2994
- Pi as d5,
2995
- Mi as d6,
2996
- Ti as d7,
2997
- Fi as d8,
2998
- Xi as d9,
2999
- di as da,
3000
- _e as e,
3001
- io as f,
3002
- ct as g,
3003
- Et as h,
2975
+ Rt as ca,
2976
+ Be as cb,
2977
+ _i as cc,
2978
+ Q as cd,
2979
+ _n as ce,
2980
+ Ri as cf,
2981
+ go as cg,
2982
+ Ft as ch,
2983
+ vi as ci,
2984
+ Ai as cj,
2985
+ Sr as ck,
2986
+ ei as cl,
2987
+ cr as cm,
2988
+ Ii as cn,
2989
+ po as co,
2990
+ Ci as cp,
2991
+ Or as cq,
2992
+ Yn as cr,
2993
+ U as cs,
2994
+ Kn as ct,
2995
+ Xn as cu,
2996
+ zn as cv,
2997
+ bn as cw,
2998
+ Fr as cx,
2999
+ ri as cy,
3000
+ Ee as cz,
3001
+ Io as d,
3002
+ Gi as d0,
3003
+ hr as d1,
3004
+ Fi as d2,
3005
+ Mi as d3,
3006
+ Li as d4,
3007
+ pr as d5,
3008
+ Di as d6,
3009
+ Pi as d7,
3010
+ wi as d8,
3011
+ Ki as d9,
3012
+ Ui as da,
3013
+ yi as db,
3014
+ kn as e,
3015
+ co as f,
3016
+ le as g,
3017
+ Le as h,
3004
3018
  $r as i,
3005
- Yr as j,
3006
- Je as k,
3007
- rn as l,
3008
- Wo as m,
3009
- Vo as n,
3010
- Fe as o,
3011
- ns as p,
3012
- rs as q,
3013
- no as r,
3014
- ln as s,
3015
- Li as t,
3016
- ke as u,
3017
- pt as v,
3018
- we as w,
3019
- ae as x,
3020
- Pe as y,
3021
- er as z
3019
+ Br as j,
3020
+ et as k,
3021
+ ot as l,
3022
+ jo as m,
3023
+ Zo as n,
3024
+ Dn as o,
3025
+ os as p,
3026
+ is as q,
3027
+ oo as r,
3028
+ lt as s,
3029
+ Ti as t,
3030
+ An as u,
3031
+ xe as v,
3032
+ Pn as w,
3033
+ ln as x,
3034
+ Fn as y,
3035
+ nr as z
3022
3036
  };
3023
3037
  //# sourceMappingURL=responsive.js.map