@eyeon/map 2.0.39 → 2.0.41

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