@mapxus/mapxus-map-jp 10.2.0 → 10.2.1

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.
package/es/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { c as hr, P as _r, C as fe, a as Et, b as M, O as A, d as K, e as fi, V as re, B as me, f as fr, A as Re, g as $, h as be, i as yt, S as pr, j as gr, R as yr, k as mr } from "./languages-CigHNOt-.mjs";
1
+ import { c as hr, P as _r, C as fe, a as Et, b as M, O as A, d as K, e as fi, V as re, B as me, f as fr, A as Re, g as $, h as be, i as yt, S as pr, j as gr, R as yr, k as mr } from "./languages-CQg7Rb5x.mjs";
2
2
  import xt from "maplibre-gl";
3
3
  import { dispatch as mt } from "d3-dispatch";
4
4
  import { TinyEmitter as br } from "tiny-emitter";
@@ -21,20 +21,20 @@ function pi(t) {
21
21
  const {
22
22
  buildingId: e,
23
23
  labelCenter: { lat: i, lon: r },
24
- floors: s,
25
- name: n,
24
+ floors: n,
25
+ name: s,
26
26
  venueId: o,
27
27
  defaultFloor: a
28
- } = t, l = Object.entries(n).reduce((h, [f, p]) => {
28
+ } = t, l = Object.entries(s).reduce((c, [f, p]) => {
29
29
  const _ = f === "default" ? "name" : `name:${f}`;
30
- return Object.assign(h, { [_]: p });
31
- }, {}), { codes: d, ids: u, ordinals: c } = s.reduce(
32
- (h, f) => {
30
+ return Object.assign(c, { [_]: p });
31
+ }, {}), { codes: d, ids: u, ordinals: h } = n.reduce(
32
+ (c, f) => {
33
33
  const { id: p, code: _, ordinal: g } = f;
34
34
  return {
35
- codes: h.codes ? `${h.codes},${_}` : _,
36
- ids: h.ids ? `${h.ids},${p}` : p,
37
- ordinals: `${h.ordinals}` ? `${h.ordinals},${g}` : `${g}`
35
+ codes: c.codes ? `${c.codes},${_}` : _,
36
+ ids: c.ids ? `${c.ids},${p}` : p,
37
+ ordinals: `${c.ordinals}` ? `${c.ordinals},${g}` : `${g}`
38
38
  };
39
39
  },
40
40
  {
@@ -51,7 +51,7 @@ function pi(t) {
51
51
  label_center: `${r},${i}`,
52
52
  level_ids: u,
53
53
  level_names: d,
54
- ordinals: c,
54
+ ordinals: h,
55
55
  "ref:venue": o,
56
56
  ...l,
57
57
  ...a ? { default_displayed_floor: a } : {}
@@ -65,8 +65,8 @@ function It(t) {
65
65
  address: e,
66
66
  buildings: i,
67
67
  id: r,
68
- name: s,
69
- type: n,
68
+ name: n,
69
+ type: s,
70
70
  labelCenter: { lon: o, lat: a },
71
71
  defaultBuilding: l,
72
72
  sharedFloors: d
@@ -76,12 +76,12 @@ function It(t) {
76
76
  "addr:street": y.street,
77
77
  "addr:housenumber": y.housenumber
78
78
  } : { [`addr:street:${g}`]: y.street }
79
- ), {}), c = Object.entries(s).reduce((_, [g, y]) => {
79
+ ), {}), h = Object.entries(n).reduce((_, [g, y]) => {
80
80
  const v = g === "default" ? "name" : `name:${g}`;
81
81
  return Object.assign(_, { [v]: y });
82
- }, {}), h = l ? i.find((_) => _.id === l)?.defaultFloor : null, f = l ? {
82
+ }, {}), c = l ? i.find((_) => _.id === l)?.defaultFloor : null, f = l ? {
83
83
  default_displayed_building: l,
84
- ...h ? { default_displayed_ordinal: h } : {}
84
+ ...c ? { default_displayed_ordinal: c } : {}
85
85
  } : {}, p = d?.length ? {
86
86
  shared_level_ids: d.map(({ id: _ }) => _).join(","),
87
87
  shared_level_ordinals: d.map(({ ordinal: _ }) => _).join(",")
@@ -90,9 +90,9 @@ function It(t) {
90
90
  layer: { id: "mapxus-venue-fill" },
91
91
  properties: {
92
92
  ...u,
93
- ...c,
93
+ ...h,
94
94
  id: r,
95
- venue: n,
95
+ venue: s,
96
96
  label_center: `${o},${a}`,
97
97
  building_ids: i.map(({ id: _ }) => _).join(),
98
98
  ...f,
@@ -123,8 +123,8 @@ class At extends Error {
123
123
  status;
124
124
  constructor(e, i) {
125
125
  super(e);
126
- const { status: r, name: s } = i;
127
- r !== void 0 && (this.status = r), s !== void 0 && (this.name = s);
126
+ const { status: r, name: n } = i;
127
+ r !== void 0 && (this.status = r), n !== void 0 && (this.name = n);
128
128
  }
129
129
  }
130
130
  function Br(t, e = 30) {
@@ -208,8 +208,8 @@ class yi {
208
208
  const {
209
209
  center: i,
210
210
  distance: r,
211
- keywords: s = "",
212
- offset: n = A,
211
+ keywords: n = "",
212
+ offset: s = A,
213
213
  page: o = M
214
214
  } = e;
215
215
  if (!Z(i))
@@ -221,7 +221,7 @@ class yi {
221
221
  "Invalid distance parameter. Expected a positive number and no more than 10000."
222
222
  );
223
223
  const a = new URLSearchParams();
224
- a.set("center", i.join(",")), a.set("distance", String(Math.round(r))), a.set("offset", String(n)), a.set("page", String(o)), m(s) && a.set("keywords", s);
224
+ a.set("center", i.join(",")), a.set("distance", String(Math.round(r))), a.set("offset", String(s)), a.set("page", String(o)), m(n) && a.set("keywords", n);
225
225
  const l = `${K}?${a.toString()}`;
226
226
  return this._filterPoiProperties(l, q);
227
227
  }
@@ -234,8 +234,8 @@ class yi {
234
234
  const {
235
235
  bounds: i,
236
236
  offset: r = A,
237
- page: s = M,
238
- keywords: n,
237
+ page: n = M,
238
+ keywords: s,
239
239
  orderBy: o
240
240
  } = e;
241
241
  if (!ue(i))
@@ -243,7 +243,7 @@ class yi {
243
243
  "'bounds' must be an array of two arrays, each containing two numbers."
244
244
  );
245
245
  const a = new URLSearchParams();
246
- a.set("bbox", i.flat().join()), a.set("offset", String(r)), a.set("page", String(s)), m(n) && a.set("keywords", n), o && a.set("orderBy", o);
246
+ a.set("bbox", i.flat().join()), a.set("offset", String(r)), a.set("page", String(n)), m(s) && a.set("keywords", s), o && a.set("orderBy", o);
247
247
  const l = `${K}?${a.toString()}`;
248
248
  return this._filterPoiProperties(l, q);
249
249
  }
@@ -256,14 +256,14 @@ class yi {
256
256
  const {
257
257
  buildingId: i,
258
258
  offset: r = A,
259
- page: s = M,
260
- keywords: n,
259
+ page: n = M,
260
+ keywords: s,
261
261
  orderBy: o
262
262
  } = e;
263
263
  if (!m(i))
264
264
  throw new Error("'buildingId' must be a non-empty string.");
265
265
  const a = new URLSearchParams();
266
- a.set("buildingId", i), a.set("offset", String(r)), a.set("page", String(s)), m(n) && a.set("keywords", n), o && a.set("orderBy", o);
266
+ a.set("buildingId", i), a.set("offset", String(r)), a.set("page", String(n)), m(s) && a.set("keywords", s), o && a.set("orderBy", o);
267
267
  const l = `${K}?${a.toString()}`;
268
268
  return this._filterPoiProperties(
269
269
  l,
@@ -279,14 +279,14 @@ class yi {
279
279
  const {
280
280
  venueId: i,
281
281
  offset: r = A,
282
- page: s = M,
283
- keywords: n,
282
+ page: n = M,
283
+ keywords: s,
284
284
  orderBy: o
285
285
  } = e;
286
286
  if (!m(i))
287
287
  throw new Error("'venueId' must be a non-empty string.");
288
288
  const a = new URLSearchParams();
289
- a.set("venueId", i), a.set("offset", String(r)), a.set("page", String(s)), m(n) && a.set("keywords", n), o && a.set("orderBy", o);
289
+ a.set("venueId", i), a.set("offset", String(r)), a.set("page", String(n)), m(s) && a.set("keywords", s), o && a.set("orderBy", o);
290
290
  const l = `${K}?${a.toString()}`;
291
291
  return this._filterPoiProperties(l, q);
292
292
  }
@@ -297,15 +297,15 @@ class yi {
297
297
  */
298
298
  searchByFloors(e) {
299
299
  let i = null, r = null;
300
- const s = "floorIds" in e ? k(e.floorIds) : null, n = "sharedFloorIds" in e ? k(e.sharedFloorIds) : null;
301
- if (s ? (i = "floorId", r = s) : n && (i = "sharedFloorId", r = n), !i || !r)
300
+ const n = "floorIds" in e ? k(e.floorIds) : null, s = "sharedFloorIds" in e ? k(e.sharedFloorIds) : null;
301
+ if (n ? (i = "floorId", r = n) : s && (i = "sharedFloorId", r = s), !i || !r)
302
302
  throw new Error(
303
303
  "Either 'floorIds' or 'sharedFloorIds' must be a non-empty array."
304
304
  );
305
305
  const { offset: o = A, page: a = M, keywords: l, orderBy: d } = e, u = new URLSearchParams();
306
306
  u.set("offset", String(o)), u.set("page", String(a)), u.set(i, r), m(l) && u.set("keywords", l), d && u.set("orderBy", d);
307
- const c = `${K}?${u.toString()}`;
308
- return this._filterPoiProperties(c, q);
307
+ const h = `${K}?${u.toString()}`;
308
+ return this._filterPoiProperties(h, q);
309
309
  }
310
310
  /**
311
311
  * Search surrounding POIs based on the user's location and orientation.
@@ -315,14 +315,14 @@ class yi {
315
315
  const {
316
316
  center: i,
317
317
  angle: r,
318
- distance: s,
319
- distanceSearchType: n = gi.POINT
318
+ distance: n,
319
+ distanceSearchType: s = gi.POINT
320
320
  } = e;
321
321
  if (!Z(i))
322
322
  throw new Error(
323
323
  "Invalid center parameter. Expected an array of two numbers."
324
324
  );
325
- if (!de(s) || s > 100)
325
+ if (!de(n) || n > 100)
326
326
  throw new Error(
327
327
  "Invalid distance parameter. Expected a positive number and cannot exceed 100."
328
328
  );
@@ -347,7 +347,7 @@ class yi {
347
347
  throw new Error(
348
348
  "Either 'ordinal', 'floorId', or 'buildingId' must be provided."
349
349
  );
350
- o.set("center", i.join()), o.set("angle", String(Math.round(r))), o.set("distance", String(s)), o.set("distanceSearchType", n);
350
+ o.set("center", i.join()), o.set("angle", String(Math.round(r))), o.set("distance", String(n)), o.set("distanceSearchType", s);
351
351
  const a = `${Et}/orientation?${o.toString()}`;
352
352
  return (await qe.getHttpSession()).request(a);
353
353
  }
@@ -356,7 +356,7 @@ class yi {
356
356
  * @param {TSearchByCategoryOptions} options
357
357
  */
358
358
  searchByCategory(e) {
359
- const { center: i, distance: r, page: s = M, offset: n = A } = e;
359
+ const { center: i, distance: r, page: n = M, offset: s = A } = e;
360
360
  if (!Z(i))
361
361
  throw new Error(
362
362
  "Invalid center parameter. Expected an array of two numbers."
@@ -377,7 +377,7 @@ class yi {
377
377
  throw new Error(
378
378
  "Either 'category' or 'excludedCategories' must be provided."
379
379
  );
380
- o.set("center", i.join(",")), o.set("distance", String(r)), o.set("page", String(s)), o.set("offset", String(n));
380
+ o.set("center", i.join(",")), o.set("distance", String(r)), o.set("page", String(n)), o.set("offset", String(s));
381
381
  const a = `${K}?${o.toString()}`;
382
382
  return this._filterPoiProperties(a, q);
383
383
  }
@@ -397,40 +397,40 @@ class yi {
397
397
  }
398
398
  search(e) {
399
399
  const i = new URLSearchParams();
400
- Object.entries(e).forEach(([s, n]) => {
401
- switch (s) {
400
+ Object.entries(e).forEach(([n, s]) => {
401
+ switch (n) {
402
402
  case "bounds":
403
- ue(n) && i.set("bbox", n.flat().join());
403
+ ue(s) && i.set("bbox", s.flat().join());
404
404
  break;
405
405
  case "center":
406
- Z(n) && i.set("center", n.join());
406
+ Z(s) && i.set("center", s.join());
407
407
  break;
408
408
  case "excludedCategories":
409
- const o = k(n);
409
+ const o = k(s);
410
410
  o && i.set("excludeCategories", o);
411
411
  break;
412
412
  case "floorIds":
413
- const a = k(n);
413
+ const a = k(s);
414
414
  a && i.set("floorId", a);
415
415
  break;
416
416
  case "sharedFloorIds":
417
- const l = k(n);
417
+ const l = k(s);
418
418
  l && i.set("sharedFloorId", l);
419
419
  break;
420
420
  default:
421
- i.set(s, String(n));
421
+ i.set(n, String(s));
422
422
  }
423
423
  });
424
424
  const r = `${K}?${i.toString()}`;
425
425
  return this._filterPoiProperties(r, q);
426
426
  }
427
427
  async _filterPoiProperties(e, i) {
428
- const s = await (await qe.getHttpSession()).request(e), n = s.result.pois.map(i);
428
+ const n = await (await qe.getHttpSession()).request(e), s = n.result.pois.map(i);
429
429
  return {
430
- ...s,
430
+ ...n,
431
431
  result: {
432
- ...s.result,
433
- pois: n
432
+ ...n.result,
433
+ pois: s
434
434
  }
435
435
  };
436
436
  }
@@ -461,7 +461,7 @@ class mi {
461
461
  const r = `${re}/${i}`;
462
462
  return this._filterVenueProperties(
463
463
  r,
464
- ne
464
+ se
465
465
  );
466
466
  }
467
467
  /**
@@ -472,8 +472,8 @@ class mi {
472
472
  const {
473
473
  center: i,
474
474
  distance: r,
475
- keywords: s = "",
476
- offset: n = A,
475
+ keywords: n = "",
476
+ offset: s = A,
477
477
  page: o = M
478
478
  } = e;
479
479
  if (!Z(i))
@@ -485,11 +485,11 @@ class mi {
485
485
  "Invalid distance parameter. Expected a positive number and no more than 10000."
486
486
  );
487
487
  const a = new URLSearchParams();
488
- a.set("center", i.join(",")), a.set("distance", String(r)), a.set("offset", String(n)), a.set("page", String(o)), m(s) && a.set("keywords", s);
488
+ a.set("center", i.join(",")), a.set("distance", String(r)), a.set("offset", String(s)), a.set("page", String(o)), m(n) && a.set("keywords", n);
489
489
  const l = `${re}?${a.toString()}`;
490
490
  return this._filterVenueProperties(
491
491
  l,
492
- ne
492
+ se
493
493
  );
494
494
  }
495
495
  /**
@@ -497,17 +497,17 @@ class mi {
497
497
  * @param {ISearchByBoundsOptions} options
498
498
  */
499
499
  searchByBounds(e) {
500
- const { keywords: i, bounds: r, offset: s = A, page: n = M } = e;
500
+ const { keywords: i, bounds: r, offset: n = A, page: s = M } = e;
501
501
  if (!ue(r))
502
502
  throw new Error(
503
503
  "'bounds' must be an array of two arrays, each containing two numbers."
504
504
  );
505
505
  const o = new URLSearchParams();
506
- o.set("bbox", r.flat().join()), o.set("offset", String(s)), o.set("page", String(n)), m(i) && o.set("keywords", i);
506
+ o.set("bbox", r.flat().join()), o.set("offset", String(n)), o.set("page", String(s)), m(i) && o.set("keywords", i);
507
507
  const a = `${re}?${o.toString()}`;
508
508
  return this._filterVenueProperties(
509
509
  a,
510
- ne
510
+ se
511
511
  );
512
512
  }
513
513
  /**
@@ -515,12 +515,12 @@ class mi {
515
515
  * @param {ISearchByKeywordsOptions} options
516
516
  */
517
517
  searchByGlobal(e) {
518
- const { keywords: i, offset: r = A, page: s = M } = e, n = new URLSearchParams();
519
- n.set("offset", String(r)), n.set("page", String(s)), m(i) && n.set("keywords", i);
520
- const o = `${re}?${n.toString()}`;
518
+ const { keywords: i, offset: r = A, page: n = M } = e, s = new URLSearchParams();
519
+ s.set("offset", String(r)), s.set("page", String(n)), m(i) && s.set("keywords", i);
520
+ const o = `${re}?${s.toString()}`;
521
521
  return this._filterVenueProperties(
522
522
  o,
523
- ne
523
+ se
524
524
  );
525
525
  }
526
526
  searchBySharedFloorId(e) {
@@ -529,32 +529,32 @@ class mi {
529
529
  const i = `${re}/shared_floors/${e}`;
530
530
  return this._filterVenueProperties(
531
531
  i,
532
- ne
532
+ se
533
533
  );
534
534
  }
535
535
  search(e) {
536
536
  const i = new URLSearchParams();
537
- Object.entries(e).forEach(([s, n]) => {
538
- s === "bounds" ? i.set("bbox", n.flat().join()) : s === "center" ? i.set("center", n.join()) : i.set(s, String(n));
537
+ Object.entries(e).forEach(([n, s]) => {
538
+ n === "bounds" ? i.set("bbox", s.flat().join()) : n === "center" ? i.set("center", s.join()) : i.set(n, String(s));
539
539
  });
540
540
  const r = `${re}?${i.toString()}`;
541
541
  return this._filterVenueProperties(
542
542
  r,
543
- ne
543
+ se
544
544
  );
545
545
  }
546
546
  async _filterVenueProperties(e, i) {
547
- const s = await (await xr.getHttpSession()).request(e), n = s.result.venues.map(i);
547
+ const n = await (await xr.getHttpSession()).request(e), s = n.result.venues.map(i);
548
548
  return {
549
- ...s,
549
+ ...n,
550
550
  result: {
551
- ...s.result,
552
- venues: n
551
+ ...n.result,
552
+ venues: s
553
553
  }
554
554
  };
555
555
  }
556
556
  }
557
- function ne(t) {
557
+ function se(t) {
558
558
  return He(t, Er);
559
559
  }
560
560
  const Or = [
@@ -582,7 +582,7 @@ class bi {
582
582
  const r = `${me}/${i}`;
583
583
  return this._filterBuildingProperties(
584
584
  r,
585
- se
585
+ ne
586
586
  );
587
587
  }
588
588
  /**
@@ -593,8 +593,8 @@ class bi {
593
593
  const {
594
594
  center: i,
595
595
  distance: r,
596
- keywords: s = "",
597
- offset: n = A,
596
+ keywords: n = "",
597
+ offset: s = A,
598
598
  page: o = M
599
599
  } = e;
600
600
  if (!Z(i))
@@ -606,11 +606,11 @@ class bi {
606
606
  "Invalid distance parameter. Expected a positive number and no more than 10000."
607
607
  );
608
608
  const a = new URLSearchParams();
609
- a.set("center", i.join(",")), a.set("distance", String(r)), a.set("offset", String(n)), a.set("page", String(o)), m(s) && a.set("keywords", s);
609
+ a.set("center", i.join(",")), a.set("distance", String(r)), a.set("offset", String(s)), a.set("page", String(o)), m(n) && a.set("keywords", n);
610
610
  const l = `${me}?${a.toString()}`;
611
611
  return this._filterBuildingProperties(
612
612
  l,
613
- se
613
+ ne
614
614
  );
615
615
  }
616
616
  /**
@@ -618,17 +618,17 @@ class bi {
618
618
  * @param {ISearchByBoundsOptions} options
619
619
  */
620
620
  searchByBounds(e) {
621
- const { bounds: i, offset: r = A, page: s = M, keywords: n } = e;
621
+ const { bounds: i, offset: r = A, page: n = M, keywords: s } = e;
622
622
  if (!ue(i))
623
623
  throw new Error(
624
624
  "'bounds' must be an array of two arrays, each containing two numbers."
625
625
  );
626
626
  const o = new URLSearchParams();
627
- o.set("bbox", i.flat().join()), o.set("offset", String(r)), o.set("page", String(s)), m(n) && o.set("keywords", n);
627
+ o.set("bbox", i.flat().join()), o.set("offset", String(r)), o.set("page", String(n)), m(s) && o.set("keywords", s);
628
628
  const a = `${me}?${o.toString()}`;
629
629
  return this._filterBuildingProperties(
630
630
  a,
631
- se
631
+ ne
632
632
  );
633
633
  }
634
634
  /**
@@ -636,12 +636,12 @@ class bi {
636
636
  * @param {ISearchByKeywordsOptions} options
637
637
  */
638
638
  searchByGlobal(e) {
639
- const { keywords: i, offset: r = A, page: s = M } = e, n = new URLSearchParams();
640
- n.set("searchGlobal", String(!0)), n.set("offset", String(r)), n.set("page", String(s)), m(i) && n.set("keywords", i);
641
- const o = `${me}?${n.toString()}`;
639
+ const { keywords: i, offset: r = A, page: n = M } = e, s = new URLSearchParams();
640
+ s.set("searchGlobal", String(!0)), s.set("offset", String(r)), s.set("page", String(n)), m(i) && s.set("keywords", i);
641
+ const o = `${me}?${s.toString()}`;
642
642
  return this._filterBuildingProperties(
643
643
  o,
644
- se
644
+ ne
645
645
  );
646
646
  }
647
647
  /**
@@ -654,32 +654,32 @@ class bi {
654
654
  const i = `${fr}/floors/${e}`;
655
655
  return this._filterBuildingProperties(
656
656
  i,
657
- se
657
+ ne
658
658
  );
659
659
  }
660
660
  search(e) {
661
661
  const i = new URLSearchParams();
662
- Object.entries(e).forEach(([s, n]) => {
663
- s === "bounds" ? i.set("bbox", n.flat().join()) : s === "center" ? i.set("center", n.join()) : i.set(s, String(n));
662
+ Object.entries(e).forEach(([n, s]) => {
663
+ n === "bounds" ? i.set("bbox", s.flat().join()) : n === "center" ? i.set("center", s.join()) : i.set(n, String(s));
664
664
  });
665
665
  const r = `${me}?${i.toString()}`;
666
666
  return this._filterBuildingProperties(
667
667
  r,
668
- se
668
+ ne
669
669
  );
670
670
  }
671
671
  async _filterBuildingProperties(e, i) {
672
- const s = await (await $r.getHttpSession()).request(e), n = s.result.buildings.map(i);
672
+ const n = await (await $r.getHttpSession()).request(e), s = n.result.buildings.map(i);
673
673
  return {
674
- ...s,
674
+ ...n,
675
675
  result: {
676
- ...s.result,
677
- buildings: n
676
+ ...n.result,
677
+ buildings: s
678
678
  }
679
679
  };
680
680
  }
681
681
  }
682
- function se(t) {
682
+ function ne(t) {
683
683
  return He(t, Or);
684
684
  }
685
685
  const vi = new bi(), Si = new mi(), Mr = new yi();
@@ -741,8 +741,8 @@ function Hr(t) {
741
741
  var r = !0;
742
742
  } catch {
743
743
  }
744
- var s = Dr.call(t);
745
- return r && (e ? t[ve] = i : delete t[ve]), s;
744
+ var n = Dr.call(t);
745
+ return r && (e ? t[ve] = i : delete t[ve]), n;
746
746
  }
747
747
  var Nr = Object.prototype, Ur = Nr.toString;
748
748
  function jr(t) {
@@ -760,10 +760,10 @@ function Ce(t) {
760
760
  return typeof t == "symbol" || he(t) && pe(t) == zr;
761
761
  }
762
762
  function Gr(t, e, i) {
763
- for (var r = -1, s = t.length; ++r < s; ) {
764
- var n = t[r], o = e(n);
763
+ for (var r = -1, n = t.length; ++r < n; ) {
764
+ var s = t[r], o = e(s);
765
765
  if (o != null && (a === void 0 ? o === o && !Ce(o) : i(o, a)))
766
- var a = o, l = n;
766
+ var a = o, l = s;
767
767
  }
768
768
  return l;
769
769
  }
@@ -810,42 +810,42 @@ j.prototype.delete = Xr;
810
810
  j.prototype.get = Qr;
811
811
  j.prototype.has = Zr;
812
812
  j.prototype.set = Jr;
813
- function en() {
813
+ function es() {
814
814
  this.__data__ = new j(), this.size = 0;
815
815
  }
816
- function tn(t) {
816
+ function ts(t) {
817
817
  var e = this.__data__, i = e.delete(t);
818
818
  return this.size = e.size, i;
819
819
  }
820
- function rn(t) {
820
+ function is(t) {
821
821
  return this.__data__.get(t);
822
822
  }
823
- function nn(t) {
823
+ function rs(t) {
824
824
  return this.__data__.has(t);
825
825
  }
826
826
  function _e(t) {
827
827
  var e = typeof t;
828
828
  return t != null && (e == "object" || e == "function");
829
829
  }
830
- var sn = "[object AsyncFunction]", on = "[object Function]", an = "[object GeneratorFunction]", ln = "[object Proxy]";
830
+ var ss = "[object AsyncFunction]", ns = "[object Function]", os = "[object GeneratorFunction]", as = "[object Proxy]";
831
831
  function Pi(t) {
832
832
  if (!_e(t))
833
833
  return !1;
834
834
  var e = pe(t);
835
- return e == on || e == an || e == sn || e == ln;
835
+ return e == ns || e == os || e == ss || e == as;
836
836
  }
837
837
  var ze = R["__core-js_shared__"], Rt = (function() {
838
838
  var t = /[^.]+$/.exec(ze && ze.keys && ze.keys.IE_PROTO || "");
839
839
  return t ? "Symbol(src)_1." + t : "";
840
840
  })();
841
- function dn(t) {
841
+ function ls(t) {
842
842
  return !!Rt && Rt in t;
843
843
  }
844
- var un = Function.prototype, cn = un.toString;
844
+ var ds = Function.prototype, us = ds.toString;
845
845
  function te(t) {
846
846
  if (t != null) {
847
847
  try {
848
- return cn.call(t);
848
+ return us.call(t);
849
849
  } catch {
850
850
  }
851
851
  try {
@@ -855,48 +855,48 @@ function te(t) {
855
855
  }
856
856
  return "";
857
857
  }
858
- var hn = /[\\^$.*+?()[\]{}|]/g, _n = /^\[object .+?Constructor\]$/, fn = Function.prototype, pn = Object.prototype, gn = fn.toString, yn = pn.hasOwnProperty, mn = RegExp(
859
- "^" + gn.call(yn).replace(hn, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
858
+ var cs = /[\\^$.*+?()[\]{}|]/g, hs = /^\[object .+?Constructor\]$/, _s = Function.prototype, fs = Object.prototype, ps = _s.toString, gs = fs.hasOwnProperty, ys = RegExp(
859
+ "^" + ps.call(gs).replace(cs, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
860
860
  );
861
- function bn(t) {
862
- if (!_e(t) || dn(t))
861
+ function ms(t) {
862
+ if (!_e(t) || ls(t))
863
863
  return !1;
864
- var e = Pi(t) ? mn : _n;
864
+ var e = Pi(t) ? ys : hs;
865
865
  return e.test(te(t));
866
866
  }
867
- function vn(t, e) {
867
+ function bs(t, e) {
868
868
  return t?.[e];
869
869
  }
870
870
  function ge(t, e) {
871
- var i = vn(t, e);
872
- return bn(i) ? i : void 0;
871
+ var i = bs(t, e);
872
+ return ms(i) ? i : void 0;
873
873
  }
874
874
  var Be = ge(R, "Map"), Pe = ge(Object, "create");
875
- function Sn() {
875
+ function vs() {
876
876
  this.__data__ = Pe ? Pe(null) : {}, this.size = 0;
877
877
  }
878
- function In(t) {
878
+ function Ss(t) {
879
879
  var e = this.has(t) && delete this.__data__[t];
880
880
  return this.size -= e ? 1 : 0, e;
881
881
  }
882
- var Ln = "__lodash_hash_undefined__", wn = Object.prototype, Bn = wn.hasOwnProperty;
883
- function Pn(t) {
882
+ var Is = "__lodash_hash_undefined__", Ls = Object.prototype, ws = Ls.hasOwnProperty;
883
+ function Bs(t) {
884
884
  var e = this.__data__;
885
885
  if (Pe) {
886
886
  var i = e[t];
887
- return i === Ln ? void 0 : i;
887
+ return i === Is ? void 0 : i;
888
888
  }
889
- return Bn.call(e, t) ? e[t] : void 0;
889
+ return ws.call(e, t) ? e[t] : void 0;
890
890
  }
891
- var Fn = Object.prototype, Cn = Fn.hasOwnProperty;
892
- function En(t) {
891
+ var Ps = Object.prototype, Fs = Ps.hasOwnProperty;
892
+ function Cs(t) {
893
893
  var e = this.__data__;
894
- return Pe ? e[t] !== void 0 : Cn.call(e, t);
894
+ return Pe ? e[t] !== void 0 : Fs.call(e, t);
895
895
  }
896
- var xn = "__lodash_hash_undefined__";
897
- function On(t, e) {
896
+ var Es = "__lodash_hash_undefined__";
897
+ function xs(t, e) {
898
898
  var i = this.__data__;
899
- return this.size += this.has(t) ? 0 : 1, i[t] = Pe && e === void 0 ? xn : e, this;
899
+ return this.size += this.has(t) ? 0 : 1, i[t] = Pe && e === void 0 ? Es : e, this;
900
900
  }
901
901
  function ee(t) {
902
902
  var e = -1, i = t == null ? 0 : t.length;
@@ -905,37 +905,37 @@ function ee(t) {
905
905
  this.set(r[0], r[1]);
906
906
  }
907
907
  }
908
- ee.prototype.clear = Sn;
909
- ee.prototype.delete = In;
910
- ee.prototype.get = Pn;
911
- ee.prototype.has = En;
912
- ee.prototype.set = On;
913
- function $n() {
908
+ ee.prototype.clear = vs;
909
+ ee.prototype.delete = Ss;
910
+ ee.prototype.get = Bs;
911
+ ee.prototype.has = Cs;
912
+ ee.prototype.set = xs;
913
+ function Os() {
914
914
  this.size = 0, this.__data__ = {
915
915
  hash: new ee(),
916
916
  map: new (Be || j)(),
917
917
  string: new ee()
918
918
  };
919
919
  }
920
- function Mn(t) {
920
+ function $s(t) {
921
921
  var e = typeof t;
922
922
  return e == "string" || e == "number" || e == "symbol" || e == "boolean" ? t !== "__proto__" : t === null;
923
923
  }
924
924
  function je(t, e) {
925
925
  var i = t.__data__;
926
- return Mn(e) ? i[typeof e == "string" ? "string" : "hash"] : i.map;
926
+ return $s(e) ? i[typeof e == "string" ? "string" : "hash"] : i.map;
927
927
  }
928
- function An(t) {
928
+ function Ms(t) {
929
929
  var e = je(this, t).delete(t);
930
930
  return this.size -= e ? 1 : 0, e;
931
931
  }
932
- function Tn(t) {
932
+ function As(t) {
933
933
  return je(this, t).get(t);
934
934
  }
935
- function kn(t) {
935
+ function Ts(t) {
936
936
  return je(this, t).has(t);
937
937
  }
938
- function Rn(t, e) {
938
+ function ks(t, e) {
939
939
  var i = je(this, t), r = i.size;
940
940
  return i.set(t, e), this.size += i.size == r ? 0 : 1, this;
941
941
  }
@@ -946,17 +946,17 @@ function V(t) {
946
946
  this.set(r[0], r[1]);
947
947
  }
948
948
  }
949
- V.prototype.clear = $n;
950
- V.prototype.delete = An;
951
- V.prototype.get = Tn;
952
- V.prototype.has = kn;
953
- V.prototype.set = Rn;
954
- var Dn = 200;
955
- function Hn(t, e) {
949
+ V.prototype.clear = Os;
950
+ V.prototype.delete = Ms;
951
+ V.prototype.get = As;
952
+ V.prototype.has = Ts;
953
+ V.prototype.set = ks;
954
+ var Rs = 200;
955
+ function Ds(t, e) {
956
956
  var i = this.__data__;
957
957
  if (i instanceof j) {
958
958
  var r = i.__data__;
959
- if (!Be || r.length < Dn - 1)
959
+ if (!Be || r.length < Rs - 1)
960
960
  return r.push([t, e]), this.size = ++i.size, this;
961
961
  i = this.__data__ = new V(r);
962
962
  }
@@ -966,16 +966,16 @@ function N(t) {
966
966
  var e = this.__data__ = new j(t);
967
967
  this.size = e.size;
968
968
  }
969
- N.prototype.clear = en;
970
- N.prototype.delete = tn;
971
- N.prototype.get = rn;
972
- N.prototype.has = nn;
973
- N.prototype.set = Hn;
974
- var Nn = "__lodash_hash_undefined__";
975
- function Un(t) {
976
- return this.__data__.set(t, Nn), this;
969
+ N.prototype.clear = es;
970
+ N.prototype.delete = ts;
971
+ N.prototype.get = is;
972
+ N.prototype.has = rs;
973
+ N.prototype.set = Ds;
974
+ var Hs = "__lodash_hash_undefined__";
975
+ function Ns(t) {
976
+ return this.__data__.set(t, Hs), this;
977
977
  }
978
- function jn(t) {
978
+ function Us(t) {
979
979
  return this.__data__.has(t);
980
980
  }
981
981
  function Fe(t) {
@@ -983,9 +983,9 @@ function Fe(t) {
983
983
  for (this.__data__ = new V(); ++e < i; )
984
984
  this.add(t[e]);
985
985
  }
986
- Fe.prototype.add = Fe.prototype.push = Un;
987
- Fe.prototype.has = jn;
988
- function Vn(t, e) {
986
+ Fe.prototype.add = Fe.prototype.push = Ns;
987
+ Fe.prototype.has = Us;
988
+ function js(t, e) {
989
989
  for (var i = -1, r = t == null ? 0 : t.length; ++i < r; )
990
990
  if (e(t[i], i, t))
991
991
  return !0;
@@ -994,45 +994,45 @@ function Vn(t, e) {
994
994
  function Fi(t, e) {
995
995
  return t.has(e);
996
996
  }
997
- var qn = 1, zn = 2;
998
- function Ci(t, e, i, r, s, n) {
999
- var o = i & qn, a = t.length, l = e.length;
997
+ var Vs = 1, qs = 2;
998
+ function Ci(t, e, i, r, n, s) {
999
+ var o = i & Vs, a = t.length, l = e.length;
1000
1000
  if (a != l && !(o && l > a))
1001
1001
  return !1;
1002
- var d = n.get(t), u = n.get(e);
1002
+ var d = s.get(t), u = s.get(e);
1003
1003
  if (d && u)
1004
1004
  return d == e && u == t;
1005
- var c = -1, h = !0, f = i & zn ? new Fe() : void 0;
1006
- for (n.set(t, e), n.set(e, t); ++c < a; ) {
1007
- var p = t[c], _ = e[c];
1005
+ var h = -1, c = !0, f = i & qs ? new Fe() : void 0;
1006
+ for (s.set(t, e), s.set(e, t); ++h < a; ) {
1007
+ var p = t[h], _ = e[h];
1008
1008
  if (r)
1009
- var g = o ? r(_, p, c, e, t, n) : r(p, _, c, t, e, n);
1009
+ var g = o ? r(_, p, h, e, t, s) : r(p, _, h, t, e, s);
1010
1010
  if (g !== void 0) {
1011
1011
  if (g)
1012
1012
  continue;
1013
- h = !1;
1013
+ c = !1;
1014
1014
  break;
1015
1015
  }
1016
1016
  if (f) {
1017
- if (!Vn(e, function(y, v) {
1018
- if (!Fi(f, v) && (p === y || s(p, y, i, r, n)))
1017
+ if (!js(e, function(y, v) {
1018
+ if (!Fi(f, v) && (p === y || n(p, y, i, r, s)))
1019
1019
  return f.push(v);
1020
1020
  })) {
1021
- h = !1;
1021
+ c = !1;
1022
1022
  break;
1023
1023
  }
1024
- } else if (!(p === _ || s(p, _, i, r, n))) {
1025
- h = !1;
1024
+ } else if (!(p === _ || n(p, _, i, r, s))) {
1025
+ c = !1;
1026
1026
  break;
1027
1027
  }
1028
1028
  }
1029
- return n.delete(t), n.delete(e), h;
1029
+ return s.delete(t), s.delete(e), c;
1030
1030
  }
1031
1031
  var Dt = R.Uint8Array;
1032
- function Gn(t) {
1032
+ function zs(t) {
1033
1033
  var e = -1, i = Array(t.size);
1034
- return t.forEach(function(r, s) {
1035
- i[++e] = [s, r];
1034
+ return t.forEach(function(r, n) {
1035
+ i[++e] = [n, r];
1036
1036
  }), i;
1037
1037
  }
1038
1038
  function Lt(t) {
@@ -1041,118 +1041,118 @@ function Lt(t) {
1041
1041
  i[++e] = r;
1042
1042
  }), i;
1043
1043
  }
1044
- var Yn = 1, Wn = 2, Kn = "[object Boolean]", Xn = "[object Date]", Qn = "[object Error]", Zn = "[object Map]", Jn = "[object Number]", es = "[object RegExp]", ts = "[object Set]", is = "[object String]", rs = "[object Symbol]", ns = "[object ArrayBuffer]", ss = "[object DataView]", Ht = Y ? Y.prototype : void 0, Ge = Ht ? Ht.valueOf : void 0;
1045
- function os(t, e, i, r, s, n, o) {
1044
+ var Gs = 1, Ys = 2, Ws = "[object Boolean]", Ks = "[object Date]", Xs = "[object Error]", Qs = "[object Map]", Zs = "[object Number]", Js = "[object RegExp]", en = "[object Set]", tn = "[object String]", rn = "[object Symbol]", sn = "[object ArrayBuffer]", nn = "[object DataView]", Ht = Y ? Y.prototype : void 0, Ge = Ht ? Ht.valueOf : void 0;
1045
+ function on(t, e, i, r, n, s, o) {
1046
1046
  switch (i) {
1047
- case ss:
1047
+ case nn:
1048
1048
  if (t.byteLength != e.byteLength || t.byteOffset != e.byteOffset)
1049
1049
  return !1;
1050
1050
  t = t.buffer, e = e.buffer;
1051
- case ns:
1052
- return !(t.byteLength != e.byteLength || !n(new Dt(t), new Dt(e)));
1053
- case Kn:
1054
- case Xn:
1055
- case Jn:
1051
+ case sn:
1052
+ return !(t.byteLength != e.byteLength || !s(new Dt(t), new Dt(e)));
1053
+ case Ws:
1054
+ case Ks:
1055
+ case Zs:
1056
1056
  return Bi(+t, +e);
1057
- case Qn:
1057
+ case Xs:
1058
1058
  return t.name == e.name && t.message == e.message;
1059
- case es:
1060
- case is:
1059
+ case Js:
1060
+ case tn:
1061
1061
  return t == e + "";
1062
- case Zn:
1063
- var a = Gn;
1064
- case ts:
1065
- var l = r & Yn;
1062
+ case Qs:
1063
+ var a = zs;
1064
+ case en:
1065
+ var l = r & Gs;
1066
1066
  if (a || (a = Lt), t.size != e.size && !l)
1067
1067
  return !1;
1068
1068
  var d = o.get(t);
1069
1069
  if (d)
1070
1070
  return d == e;
1071
- r |= Wn, o.set(t, e);
1072
- var u = Ci(a(t), a(e), r, s, n, o);
1071
+ r |= Ys, o.set(t, e);
1072
+ var u = Ci(a(t), a(e), r, n, s, o);
1073
1073
  return o.delete(t), u;
1074
- case rs:
1074
+ case rn:
1075
1075
  if (Ge)
1076
1076
  return Ge.call(t) == Ge.call(e);
1077
1077
  }
1078
1078
  return !1;
1079
1079
  }
1080
- function as(t, e) {
1081
- for (var i = -1, r = e.length, s = t.length; ++i < r; )
1082
- t[s + i] = e[i];
1080
+ function an(t, e) {
1081
+ for (var i = -1, r = e.length, n = t.length; ++i < r; )
1082
+ t[n + i] = e[i];
1083
1083
  return t;
1084
1084
  }
1085
1085
  var U = Array.isArray;
1086
- function ls(t, e, i) {
1086
+ function ln(t, e, i) {
1087
1087
  var r = e(t);
1088
- return U(t) ? r : as(r, i(t));
1088
+ return U(t) ? r : an(r, i(t));
1089
1089
  }
1090
- function ds(t, e) {
1091
- for (var i = -1, r = t == null ? 0 : t.length, s = 0, n = []; ++i < r; ) {
1090
+ function dn(t, e) {
1091
+ for (var i = -1, r = t == null ? 0 : t.length, n = 0, s = []; ++i < r; ) {
1092
1092
  var o = t[i];
1093
- e(o, i, t) && (n[s++] = o);
1093
+ e(o, i, t) && (s[n++] = o);
1094
1094
  }
1095
- return n;
1095
+ return s;
1096
1096
  }
1097
- function us() {
1097
+ function un() {
1098
1098
  return [];
1099
1099
  }
1100
- var cs = Object.prototype, hs = cs.propertyIsEnumerable, Nt = Object.getOwnPropertySymbols, _s = Nt ? function(t) {
1101
- return t == null ? [] : (t = Object(t), ds(Nt(t), function(e) {
1102
- return hs.call(t, e);
1100
+ var cn = Object.prototype, hn = cn.propertyIsEnumerable, Nt = Object.getOwnPropertySymbols, _n = Nt ? function(t) {
1101
+ return t == null ? [] : (t = Object(t), dn(Nt(t), function(e) {
1102
+ return hn.call(t, e);
1103
1103
  }));
1104
- } : us;
1105
- function fs(t, e) {
1104
+ } : un;
1105
+ function fn(t, e) {
1106
1106
  for (var i = -1, r = Array(t); ++i < t; )
1107
1107
  r[i] = e(i);
1108
1108
  return r;
1109
1109
  }
1110
- var ps = "[object Arguments]";
1110
+ var pn = "[object Arguments]";
1111
1111
  function Ut(t) {
1112
- return he(t) && pe(t) == ps;
1112
+ return he(t) && pe(t) == pn;
1113
1113
  }
1114
- var Ei = Object.prototype, gs = Ei.hasOwnProperty, ys = Ei.propertyIsEnumerable, xi = Ut(/* @__PURE__ */ (function() {
1114
+ var Ei = Object.prototype, gn = Ei.hasOwnProperty, yn = Ei.propertyIsEnumerable, xi = Ut(/* @__PURE__ */ (function() {
1115
1115
  return arguments;
1116
1116
  })()) ? Ut : function(t) {
1117
- return he(t) && gs.call(t, "callee") && !ys.call(t, "callee");
1117
+ return he(t) && gn.call(t, "callee") && !yn.call(t, "callee");
1118
1118
  };
1119
- function ms() {
1119
+ function mn() {
1120
1120
  return !1;
1121
1121
  }
1122
- var Oi = typeof exports == "object" && exports && !exports.nodeType && exports, jt = Oi && typeof module == "object" && module && !module.nodeType && module, bs = jt && jt.exports === Oi, Vt = bs ? R.Buffer : void 0, vs = Vt ? Vt.isBuffer : void 0, lt = vs || ms, Ss = 9007199254740991, Is = /^(?:0|[1-9]\d*)$/;
1122
+ var Oi = typeof exports == "object" && exports && !exports.nodeType && exports, jt = Oi && typeof module == "object" && module && !module.nodeType && module, bn = jt && jt.exports === Oi, Vt = bn ? R.Buffer : void 0, vn = Vt ? Vt.isBuffer : void 0, lt = vn || mn, Sn = 9007199254740991, In = /^(?:0|[1-9]\d*)$/;
1123
1123
  function $i(t, e) {
1124
1124
  var i = typeof t;
1125
- return e = e ?? Ss, !!e && (i == "number" || i != "symbol" && Is.test(t)) && t > -1 && t % 1 == 0 && t < e;
1125
+ return e = e ?? Sn, !!e && (i == "number" || i != "symbol" && In.test(t)) && t > -1 && t % 1 == 0 && t < e;
1126
1126
  }
1127
- var Ls = 9007199254740991;
1127
+ var Ln = 9007199254740991;
1128
1128
  function wt(t) {
1129
- return typeof t == "number" && t > -1 && t % 1 == 0 && t <= Ls;
1129
+ return typeof t == "number" && t > -1 && t % 1 == 0 && t <= Ln;
1130
1130
  }
1131
- var ws = "[object Arguments]", Bs = "[object Array]", Ps = "[object Boolean]", Fs = "[object Date]", Cs = "[object Error]", Es = "[object Function]", xs = "[object Map]", Os = "[object Number]", $s = "[object Object]", Ms = "[object RegExp]", As = "[object Set]", Ts = "[object String]", ks = "[object WeakMap]", Rs = "[object ArrayBuffer]", Ds = "[object DataView]", Hs = "[object Float32Array]", Ns = "[object Float64Array]", Us = "[object Int8Array]", js = "[object Int16Array]", Vs = "[object Int32Array]", qs = "[object Uint8Array]", zs = "[object Uint8ClampedArray]", Gs = "[object Uint16Array]", Ys = "[object Uint32Array]", S = {};
1132
- S[Hs] = S[Ns] = S[Us] = S[js] = S[Vs] = S[qs] = S[zs] = S[Gs] = S[Ys] = !0;
1133
- S[ws] = S[Bs] = S[Rs] = S[Ps] = S[Ds] = S[Fs] = S[Cs] = S[Es] = S[xs] = S[Os] = S[$s] = S[Ms] = S[As] = S[Ts] = S[ks] = !1;
1134
- function Ws(t) {
1131
+ var wn = "[object Arguments]", Bn = "[object Array]", Pn = "[object Boolean]", Fn = "[object Date]", Cn = "[object Error]", En = "[object Function]", xn = "[object Map]", On = "[object Number]", $n = "[object Object]", Mn = "[object RegExp]", An = "[object Set]", Tn = "[object String]", kn = "[object WeakMap]", Rn = "[object ArrayBuffer]", Dn = "[object DataView]", Hn = "[object Float32Array]", Nn = "[object Float64Array]", Un = "[object Int8Array]", jn = "[object Int16Array]", Vn = "[object Int32Array]", qn = "[object Uint8Array]", zn = "[object Uint8ClampedArray]", Gn = "[object Uint16Array]", Yn = "[object Uint32Array]", S = {};
1132
+ S[Hn] = S[Nn] = S[Un] = S[jn] = S[Vn] = S[qn] = S[zn] = S[Gn] = S[Yn] = !0;
1133
+ S[wn] = S[Bn] = S[Rn] = S[Pn] = S[Dn] = S[Fn] = S[Cn] = S[En] = S[xn] = S[On] = S[$n] = S[Mn] = S[An] = S[Tn] = S[kn] = !1;
1134
+ function Wn(t) {
1135
1135
  return he(t) && wt(t.length) && !!S[pe(t)];
1136
1136
  }
1137
- function Ks(t) {
1137
+ function Kn(t) {
1138
1138
  return function(e) {
1139
1139
  return t(e);
1140
1140
  };
1141
1141
  }
1142
- var Mi = typeof exports == "object" && exports && !exports.nodeType && exports, we = Mi && typeof module == "object" && module && !module.nodeType && module, Xs = we && we.exports === Mi, Ye = Xs && Li.process, qt = (function() {
1142
+ var Mi = typeof exports == "object" && exports && !exports.nodeType && exports, we = Mi && typeof module == "object" && module && !module.nodeType && module, Xn = we && we.exports === Mi, Ye = Xn && Li.process, qt = (function() {
1143
1143
  try {
1144
1144
  var t = we && we.require && we.require("util").types;
1145
1145
  return t || Ye && Ye.binding && Ye.binding("util");
1146
1146
  } catch {
1147
1147
  }
1148
- })(), zt = qt && qt.isTypedArray, Ai = zt ? Ks(zt) : Ws, Qs = Object.prototype, Zs = Qs.hasOwnProperty;
1149
- function Js(t, e) {
1150
- var i = U(t), r = !i && xi(t), s = !i && !r && lt(t), n = !i && !r && !s && Ai(t), o = i || r || s || n, a = o ? fs(t.length, String) : [], l = a.length;
1148
+ })(), zt = qt && qt.isTypedArray, Ai = zt ? Kn(zt) : Wn, Qn = Object.prototype, Zn = Qn.hasOwnProperty;
1149
+ function Jn(t, e) {
1150
+ var i = U(t), r = !i && xi(t), n = !i && !r && lt(t), s = !i && !r && !n && Ai(t), o = i || r || n || s, a = o ? fn(t.length, String) : [], l = a.length;
1151
1151
  for (var d in t)
1152
- Zs.call(t, d) && !(o && // Safari 9 has enumerable `arguments.length` in strict mode.
1152
+ Zn.call(t, d) && !(o && // Safari 9 has enumerable `arguments.length` in strict mode.
1153
1153
  (d == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
1154
- s && (d == "offset" || d == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
1155
- n && (d == "buffer" || d == "byteLength" || d == "byteOffset") || // Skip index properties.
1154
+ n && (d == "offset" || d == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
1155
+ s && (d == "buffer" || d == "byteLength" || d == "byteOffset") || // Skip index properties.
1156
1156
  $i(d, l))) && a.push(d);
1157
1157
  return a;
1158
1158
  }
@@ -1166,55 +1166,55 @@ function io(t, e) {
1166
1166
  return t(e(i));
1167
1167
  };
1168
1168
  }
1169
- var ro = io(Object.keys, Object), no = Object.prototype, so = no.hasOwnProperty;
1169
+ var ro = io(Object.keys, Object), so = Object.prototype, no = so.hasOwnProperty;
1170
1170
  function oo(t) {
1171
1171
  if (!to(t))
1172
1172
  return ro(t);
1173
1173
  var e = [];
1174
1174
  for (var i in Object(t))
1175
- so.call(t, i) && i != "constructor" && e.push(i);
1175
+ no.call(t, i) && i != "constructor" && e.push(i);
1176
1176
  return e;
1177
1177
  }
1178
1178
  function ao(t) {
1179
1179
  return t != null && wt(t.length) && !Pi(t);
1180
1180
  }
1181
1181
  function Ti(t) {
1182
- return ao(t) ? Js(t) : oo(t);
1182
+ return ao(t) ? Jn(t) : oo(t);
1183
1183
  }
1184
1184
  function Gt(t) {
1185
- return ls(t, Ti, _s);
1185
+ return ln(t, Ti, _n);
1186
1186
  }
1187
1187
  var lo = 1, uo = Object.prototype, co = uo.hasOwnProperty;
1188
- function ho(t, e, i, r, s, n) {
1188
+ function ho(t, e, i, r, n, s) {
1189
1189
  var o = i & lo, a = Gt(t), l = a.length, d = Gt(e), u = d.length;
1190
1190
  if (l != u && !o)
1191
1191
  return !1;
1192
- for (var c = l; c--; ) {
1193
- var h = a[c];
1194
- if (!(o ? h in e : co.call(e, h)))
1192
+ for (var h = l; h--; ) {
1193
+ var c = a[h];
1194
+ if (!(o ? c in e : co.call(e, c)))
1195
1195
  return !1;
1196
1196
  }
1197
- var f = n.get(t), p = n.get(e);
1197
+ var f = s.get(t), p = s.get(e);
1198
1198
  if (f && p)
1199
1199
  return f == e && p == t;
1200
1200
  var _ = !0;
1201
- n.set(t, e), n.set(e, t);
1202
- for (var g = o; ++c < l; ) {
1203
- h = a[c];
1204
- var y = t[h], v = e[h];
1201
+ s.set(t, e), s.set(e, t);
1202
+ for (var g = o; ++h < l; ) {
1203
+ c = a[h];
1204
+ var y = t[c], v = e[c];
1205
1205
  if (r)
1206
- var B = o ? r(v, y, h, e, t, n) : r(y, v, h, t, e, n);
1207
- if (!(B === void 0 ? y === v || s(y, v, i, r, n) : B)) {
1206
+ var B = o ? r(v, y, c, e, t, s) : r(y, v, c, t, e, s);
1207
+ if (!(B === void 0 ? y === v || n(y, v, i, r, s) : B)) {
1208
1208
  _ = !1;
1209
1209
  break;
1210
1210
  }
1211
- g || (g = h == "constructor");
1211
+ g || (g = c == "constructor");
1212
1212
  }
1213
1213
  if (_ && !g) {
1214
1214
  var C = t.constructor, w = e.constructor;
1215
1215
  C != w && "constructor" in t && "constructor" in e && !(typeof C == "function" && C instanceof C && typeof w == "function" && w instanceof w) && (_ = !1);
1216
1216
  }
1217
- return n.delete(t), n.delete(e), _;
1217
+ return s.delete(t), s.delete(e), _;
1218
1218
  }
1219
1219
  var dt = ge(R, "DataView"), ut = ge(R, "Promise"), ce = ge(R, "Set"), ct = ge(R, "WeakMap"), Yt = "[object Map]", _o = "[object Object]", Wt = "[object Promise]", Kt = "[object Set]", Xt = "[object WeakMap]", Qt = "[object DataView]", fo = te(dt), po = te(Be), go = te(ut), yo = te(ce), mo = te(ct), z = pe;
1220
1220
  (dt && z(new dt(new ArrayBuffer(1))) != Qt || Be && z(new Be()) != Yt || ut && z(ut.resolve()) != Wt || ce && z(new ce()) != Kt || ct && z(new ct()) != Xt) && (z = function(t) {
@@ -1235,48 +1235,48 @@ var dt = ge(R, "DataView"), ut = ge(R, "Promise"), ce = ge(R, "Set"), ct = ge(R,
1235
1235
  return e;
1236
1236
  });
1237
1237
  var bo = 1, Zt = "[object Arguments]", Jt = "[object Array]", Oe = "[object Object]", vo = Object.prototype, ei = vo.hasOwnProperty;
1238
- function So(t, e, i, r, s, n) {
1238
+ function So(t, e, i, r, n, s) {
1239
1239
  var o = U(t), a = U(e), l = o ? Jt : z(t), d = a ? Jt : z(e);
1240
1240
  l = l == Zt ? Oe : l, d = d == Zt ? Oe : d;
1241
- var u = l == Oe, c = d == Oe, h = l == d;
1242
- if (h && lt(t)) {
1241
+ var u = l == Oe, h = d == Oe, c = l == d;
1242
+ if (c && lt(t)) {
1243
1243
  if (!lt(e))
1244
1244
  return !1;
1245
1245
  o = !0, u = !1;
1246
1246
  }
1247
- if (h && !u)
1248
- return n || (n = new N()), o || Ai(t) ? Ci(t, e, i, r, s, n) : os(t, e, l, i, r, s, n);
1247
+ if (c && !u)
1248
+ return s || (s = new N()), o || Ai(t) ? Ci(t, e, i, r, n, s) : on(t, e, l, i, r, n, s);
1249
1249
  if (!(i & bo)) {
1250
- var f = u && ei.call(t, "__wrapped__"), p = c && ei.call(e, "__wrapped__");
1250
+ var f = u && ei.call(t, "__wrapped__"), p = h && ei.call(e, "__wrapped__");
1251
1251
  if (f || p) {
1252
1252
  var _ = f ? t.value() : t, g = p ? e.value() : e;
1253
- return n || (n = new N()), s(_, g, i, r, n);
1253
+ return s || (s = new N()), n(_, g, i, r, s);
1254
1254
  }
1255
1255
  }
1256
- return h ? (n || (n = new N()), ho(t, e, i, r, s, n)) : !1;
1256
+ return c ? (s || (s = new N()), ho(t, e, i, r, n, s)) : !1;
1257
1257
  }
1258
- function Bt(t, e, i, r, s) {
1259
- return t === e ? !0 : t == null || e == null || !he(t) && !he(e) ? t !== t && e !== e : So(t, e, i, r, Bt, s);
1258
+ function Bt(t, e, i, r, n) {
1259
+ return t === e ? !0 : t == null || e == null || !he(t) && !he(e) ? t !== t && e !== e : So(t, e, i, r, Bt, n);
1260
1260
  }
1261
1261
  var Io = 1, Lo = 2;
1262
1262
  function wo(t, e, i, r) {
1263
- var s = i.length, n = s;
1263
+ var n = i.length, s = n;
1264
1264
  if (t == null)
1265
- return !n;
1266
- for (t = Object(t); s--; ) {
1267
- var o = i[s];
1265
+ return !s;
1266
+ for (t = Object(t); n--; ) {
1267
+ var o = i[n];
1268
1268
  if (o[2] ? o[1] !== t[o[0]] : !(o[0] in t))
1269
1269
  return !1;
1270
1270
  }
1271
- for (; ++s < n; ) {
1272
- o = i[s];
1271
+ for (; ++n < s; ) {
1272
+ o = i[n];
1273
1273
  var a = o[0], l = t[a], d = o[1];
1274
1274
  if (o[2]) {
1275
1275
  if (l === void 0 && !(a in t))
1276
1276
  return !1;
1277
1277
  } else {
1278
- var u = new N(), c;
1279
- if (!(c === void 0 ? Bt(d, l, Io | Lo, r, u) : c))
1278
+ var u = new N(), h;
1279
+ if (!(h === void 0 ? Bt(d, l, Io | Lo, r, u) : h))
1280
1280
  return !1;
1281
1281
  }
1282
1282
  }
@@ -1287,8 +1287,8 @@ function ki(t) {
1287
1287
  }
1288
1288
  function Bo(t) {
1289
1289
  for (var e = Ti(t), i = e.length; i--; ) {
1290
- var r = e[i], s = t[r];
1291
- e[i] = [r, s, ki(s)];
1290
+ var r = e[i], n = t[r];
1291
+ e[i] = [r, n, ki(n)];
1292
1292
  }
1293
1293
  return e;
1294
1294
  }
@@ -1315,11 +1315,11 @@ function Ft(t, e) {
1315
1315
  if (typeof t != "function" || e != null && typeof e != "function")
1316
1316
  throw new TypeError(Eo);
1317
1317
  var i = function() {
1318
- var r = arguments, s = e ? e.apply(this, r) : r[0], n = i.cache;
1319
- if (n.has(s))
1320
- return n.get(s);
1318
+ var r = arguments, n = e ? e.apply(this, r) : r[0], s = i.cache;
1319
+ if (s.has(n))
1320
+ return s.get(n);
1321
1321
  var o = t.apply(this, r);
1322
- return i.cache = n.set(s, o) || n, o;
1322
+ return i.cache = s.set(n, o) || s, o;
1323
1323
  };
1324
1324
  return i.cache = new (Ft.Cache || V)(), i;
1325
1325
  }
@@ -1333,14 +1333,14 @@ function Oo(t) {
1333
1333
  }
1334
1334
  var $o = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Mo = /\\(\\)?/g, Ao = Oo(function(t) {
1335
1335
  var e = [];
1336
- return t.charCodeAt(0) === 46 && e.push(""), t.replace($o, function(i, r, s, n) {
1337
- e.push(s ? n.replace(Mo, "$1") : r || i);
1336
+ return t.charCodeAt(0) === 46 && e.push(""), t.replace($o, function(i, r, n, s) {
1337
+ e.push(n ? s.replace(Mo, "$1") : r || i);
1338
1338
  }), e;
1339
1339
  });
1340
1340
  function To(t, e) {
1341
- for (var i = -1, r = t == null ? 0 : t.length, s = Array(r); ++i < r; )
1342
- s[i] = e(t[i], i, t);
1343
- return s;
1341
+ for (var i = -1, r = t == null ? 0 : t.length, n = Array(r); ++i < r; )
1342
+ n[i] = e(t[i], i, t);
1343
+ return n;
1344
1344
  }
1345
1345
  var ti = Y ? Y.prototype : void 0, ii = ti ? ti.toString : void 0;
1346
1346
  function Di(t) {
@@ -1380,13 +1380,13 @@ function Ro(t, e) {
1380
1380
  }
1381
1381
  function Do(t, e, i) {
1382
1382
  e = Ni(e, t);
1383
- for (var r = -1, s = e.length, n = !1; ++r < s; ) {
1383
+ for (var r = -1, n = e.length, s = !1; ++r < n; ) {
1384
1384
  var o = Ve(e[r]);
1385
- if (!(n = t != null && i(t, o)))
1385
+ if (!(s = t != null && i(t, o)))
1386
1386
  break;
1387
1387
  t = t[o];
1388
1388
  }
1389
- return n || ++r != s ? n : (s = t == null ? 0 : t.length, !!s && wt(s) && $i(o, s) && (U(t) || xi(t)));
1389
+ return s || ++r != n ? s : (n = t == null ? 0 : t.length, !!n && wt(n) && $i(o, n) && (U(t) || xi(t)));
1390
1390
  }
1391
1391
  function Ho(t, e) {
1392
1392
  return t != null && Do(t, e, Ro);
@@ -1431,10 +1431,10 @@ class Ko {
1431
1431
  this._isMaskMode = e, this._hiddenBuildings = [], this._history = G.getInstance();
1432
1432
  }
1433
1433
  getLayeredData(e) {
1434
- const { selectedVenueId: i, venueMap: r, buildingMap: s, sharedFloorMap: n } = e, o = [], a = [], l = [], d = [], u = [], c = [], h = [...r.values()], f = i ? [
1434
+ const { selectedVenueId: i, venueMap: r, buildingMap: n, sharedFloorMap: s } = e, o = [], a = [], l = [], d = [], u = [], h = [], c = [...r.values()], f = i ? [
1435
1435
  r.get(i),
1436
- ...h.filter((p) => p.properties.id !== i)
1437
- ] : h;
1436
+ ...c.filter((p) => p.properties.id !== i)
1437
+ ] : c;
1438
1438
  for (const p of f) {
1439
1439
  if (!p || !p.properties) continue;
1440
1440
  const {
@@ -1452,7 +1452,7 @@ class Ko {
1452
1452
  type: "building"
1453
1453
  }));
1454
1454
  else {
1455
- const { ordinal: I, buildingId: T } = Xo(E, s);
1455
+ const { ordinal: I, buildingId: T } = Xo(E, n);
1456
1456
  if (!I) continue;
1457
1457
  P = I, this._history.setHistoryOrdinal(_, P), this._history.setHistoryBuildingUnit(_, {
1458
1458
  id: T,
@@ -1460,7 +1460,7 @@ class Ko {
1460
1460
  });
1461
1461
  }
1462
1462
  E.forEach((I) => {
1463
- const T = s.get(I), O = Qo(
1463
+ const T = n.get(I), O = Qo(
1464
1464
  T,
1465
1465
  P
1466
1466
  );
@@ -1474,12 +1474,12 @@ class Ko {
1474
1474
  venueId: _
1475
1475
  }), w && a.push(O)) : d.push(I);
1476
1476
  }), L(v).forEach((I) => {
1477
- const T = n.get(I), { ordinal: O, persistence: D } = T?.properties || {}, W = D === "true" && 0 <= O && O <= P, ie = O === P, xe = W || ie, ye = {
1477
+ const T = s.get(I), { ordinal: O, persistence: D } = T?.properties || {}, W = D === "true" && 0 <= O && O <= P, ie = O === P, xe = W || ie, ye = {
1478
1478
  level: I,
1479
1479
  overlap: b.get(I) ?? null,
1480
1480
  venueId: _
1481
1481
  };
1482
- xe ? this._isMaskMode ? w ? (o.push(ye), W && l.push(I), ie && a.push(I)) : c.push(I) : (o.push(ye), w && ie && a.push(I), W && l.push(I)) : d.push(I);
1482
+ xe ? this._isMaskMode ? w ? (o.push(ye), W && l.push(I), ie && a.push(I)) : h.push(I) : (o.push(ye), w && ie && a.push(I), W && l.push(I)) : d.push(I);
1483
1483
  });
1484
1484
  }
1485
1485
  return this._hiddenBuildings = d, {
@@ -1487,7 +1487,7 @@ class Ko {
1487
1487
  selectedLevelIds: a,
1488
1488
  alwaysDisplayedSharedLevelIds: l,
1489
1489
  maskBuildingIds: u,
1490
- maskSharedFloorIds: c
1490
+ maskSharedFloorIds: h
1491
1491
  };
1492
1492
  }
1493
1493
  getHiddenBuildings() {
@@ -1495,33 +1495,33 @@ class Ko {
1495
1495
  }
1496
1496
  }
1497
1497
  function Xo(t, e) {
1498
- const i = t.find((n) => e.has(n)) ?? t[0] ?? null, r = i ? e.get(i) : null;
1498
+ const i = t.find((s) => e.has(s)) ?? t[0] ?? null, r = i ? e.get(i) : null;
1499
1499
  return { ordinal: r ? Vi(r) : null, buildingId: i };
1500
1500
  }
1501
1501
  function Vi(t) {
1502
1502
  if (!t || !t.properties)
1503
1503
  return null;
1504
- const { level_ids: e, ordinals: i, default_displayed_floor: r } = t.properties, s = L(i);
1505
- let n = null;
1504
+ const { level_ids: e, ordinals: i, default_displayed_floor: r } = t.properties, n = L(i);
1505
+ let s = null;
1506
1506
  if (r) {
1507
1507
  const o = L(e).findIndex(
1508
1508
  (a) => a === r
1509
1509
  );
1510
- n = s[o] ?? null;
1510
+ s = n[o] ?? null;
1511
1511
  }
1512
- return n || (n = Wo(s, (o) => Math.abs(Number(o) - 0.1))), n;
1512
+ return s || (s = Wo(n, (o) => Math.abs(Number(o) - 0.1))), s;
1513
1513
  }
1514
1514
  function Qo(t, e) {
1515
1515
  if (!t || !t.properties) return null;
1516
- const { level_ids: i, ordinals: r } = t.properties, s = L(r).findIndex((n) => n === e);
1517
- return L(i)[s] ?? null;
1516
+ const { level_ids: i, ordinals: r } = t.properties, n = L(r).findIndex((s) => s === e);
1517
+ return L(i)[n] ?? null;
1518
1518
  }
1519
1519
  function Zo(t) {
1520
1520
  const e = /* @__PURE__ */ new Map();
1521
1521
  if (!t) return e;
1522
1522
  for (const i of L(t, "/")) {
1523
- const [r, s] = L(i, ":");
1524
- e.set(r, L(s));
1523
+ const [r, n] = L(i, ":");
1524
+ e.set(r, L(n));
1525
1525
  }
1526
1526
  return e;
1527
1527
  }
@@ -1552,15 +1552,15 @@ class Jo {
1552
1552
  this._fitBoundsTimer && (clearTimeout(this._fitBoundsTimer), this._fitBoundsTimer = null);
1553
1553
  const e = this._isAnimated ? { animate: !0, duration: 500 } : { animate: !1 }, i = this._isAnimated ? 500 : 0;
1554
1554
  return new Promise((r) => {
1555
- const s = () => {
1556
- this._maplibre.off("idle", s), r(!0);
1555
+ const n = () => {
1556
+ this._maplibre.off("idle", n), r(!0);
1557
1557
  };
1558
- this._maplibre.on("idle", s), this._maplibre.fitBounds(this._bounds, {
1558
+ this._maplibre.on("idle", n), this._maplibre.fitBounds(this._bounds, {
1559
1559
  ...e,
1560
1560
  padding: this._boundsPadding,
1561
1561
  bearing: this._maplibre.getBearing()
1562
1562
  }), this._fitBoundsTimer = setTimeout(() => {
1563
- this._maplibre.off("idle", s), this._fitBoundsTimer = null, r(!0);
1563
+ this._maplibre.off("idle", n), this._fitBoundsTimer = null, r(!0);
1564
1564
  }, i + 200);
1565
1565
  });
1566
1566
  }
@@ -1580,7 +1580,7 @@ var ia = /^\s+/;
1580
1580
  function ra(t) {
1581
1581
  return t && t.slice(0, ta(t) + 1).replace(ia, "");
1582
1582
  }
1583
- var ri = NaN, na = /^[-+]0x[0-9a-f]+$/i, sa = /^0b[01]+$/i, oa = /^0o[0-7]+$/i, aa = parseInt;
1583
+ var ri = NaN, sa = /^[-+]0x[0-9a-f]+$/i, na = /^0b[01]+$/i, oa = /^0o[0-7]+$/i, aa = parseInt;
1584
1584
  function Ne(t) {
1585
1585
  if (typeof t == "number")
1586
1586
  return t;
@@ -1593,29 +1593,29 @@ function Ne(t) {
1593
1593
  if (typeof t != "string")
1594
1594
  return t === 0 ? t : +t;
1595
1595
  t = ra(t);
1596
- var i = sa.test(t);
1597
- return i || oa.test(t) ? aa(t.slice(2), i ? 2 : 8) : na.test(t) ? ri : +t;
1596
+ var i = na.test(t);
1597
+ return i || oa.test(t) ? aa(t.slice(2), i ? 2 : 8) : sa.test(t) ? ri : +t;
1598
1598
  }
1599
1599
  var la = "Expected a function", da = Math.max, ua = Math.min;
1600
1600
  function qi(t, e, i) {
1601
- var r, s, n, o, a, l, d = 0, u = !1, c = !1, h = !0;
1601
+ var r, n, s, o, a, l, d = 0, u = !1, h = !1, c = !0;
1602
1602
  if (typeof t != "function")
1603
1603
  throw new TypeError(la);
1604
- e = Ne(e) || 0, _e(i) && (u = !!i.leading, c = "maxWait" in i, n = c ? da(Ne(i.maxWait) || 0, e) : n, h = "trailing" in i ? !!i.trailing : h);
1604
+ e = Ne(e) || 0, _e(i) && (u = !!i.leading, h = "maxWait" in i, s = h ? da(Ne(i.maxWait) || 0, e) : s, c = "trailing" in i ? !!i.trailing : c);
1605
1605
  function f(b) {
1606
- var E = r, x = s;
1607
- return r = s = void 0, d = b, o = t.apply(x, E), o;
1606
+ var E = r, x = n;
1607
+ return r = n = void 0, d = b, o = t.apply(x, E), o;
1608
1608
  }
1609
1609
  function p(b) {
1610
1610
  return d = b, a = setTimeout(y, e), u ? f(b) : o;
1611
1611
  }
1612
1612
  function _(b) {
1613
1613
  var E = b - l, x = b - d, P = e - E;
1614
- return c ? ua(P, n - x) : P;
1614
+ return h ? ua(P, s - x) : P;
1615
1615
  }
1616
1616
  function g(b) {
1617
1617
  var E = b - l, x = b - d;
1618
- return l === void 0 || E >= e || E < 0 || c && x >= n;
1618
+ return l === void 0 || E >= e || E < 0 || h && x >= s;
1619
1619
  }
1620
1620
  function y() {
1621
1621
  var b = We();
@@ -1624,20 +1624,20 @@ function qi(t, e, i) {
1624
1624
  a = setTimeout(y, _(b));
1625
1625
  }
1626
1626
  function v(b) {
1627
- return a = void 0, h && r ? f(b) : (r = s = void 0, o);
1627
+ return a = void 0, c && r ? f(b) : (r = n = void 0, o);
1628
1628
  }
1629
1629
  function B() {
1630
- a !== void 0 && clearTimeout(a), d = 0, r = l = s = a = void 0;
1630
+ a !== void 0 && clearTimeout(a), d = 0, r = l = n = a = void 0;
1631
1631
  }
1632
1632
  function C() {
1633
1633
  return a === void 0 ? o : v(We());
1634
1634
  }
1635
1635
  function w() {
1636
1636
  var b = We(), E = g(b);
1637
- if (r = arguments, s = this, l = b, E) {
1637
+ if (r = arguments, n = this, l = b, E) {
1638
1638
  if (a === void 0)
1639
1639
  return p(l);
1640
- if (c)
1640
+ if (h)
1641
1641
  return clearTimeout(a), a = setTimeout(y, e), f(l);
1642
1642
  }
1643
1643
  return a === void 0 && (a = setTimeout(y, e)), o;
@@ -1645,16 +1645,16 @@ function qi(t, e, i) {
1645
1645
  return w.cancel = B, w.flush = C, w;
1646
1646
  }
1647
1647
  function ca(t, e, i, r) {
1648
- for (var s = t.length, n = i + -1; ++n < s; )
1649
- if (e(t[n], n, t))
1650
- return n;
1648
+ for (var n = t.length, s = i + -1; ++s < n; )
1649
+ if (e(t[s], s, t))
1650
+ return s;
1651
1651
  return -1;
1652
1652
  }
1653
1653
  function ha(t) {
1654
1654
  return t !== t;
1655
1655
  }
1656
1656
  function _a(t, e, i) {
1657
- for (var r = i - 1, s = t.length; ++r < s; )
1657
+ for (var r = i - 1, n = t.length; ++r < n; )
1658
1658
  if (t[r] === e)
1659
1659
  return r;
1660
1660
  return -1;
@@ -1672,23 +1672,23 @@ var ya = 1 / 0, ma = ce && 1 / Lt(new ce([, -0]))[1] == ya ? function(t) {
1672
1672
  return new ce(t);
1673
1673
  } : ga, ba = 200;
1674
1674
  function va(t, e, i) {
1675
- var r = -1, s = pa, n = t.length, o = !0, a = [], l = a;
1676
- if (n >= ba) {
1675
+ var r = -1, n = pa, s = t.length, o = !0, a = [], l = a;
1676
+ if (s >= ba) {
1677
1677
  var d = e ? null : ma(t);
1678
1678
  if (d)
1679
1679
  return Lt(d);
1680
- o = !1, s = Fi, l = new Fe();
1680
+ o = !1, n = Fi, l = new Fe();
1681
1681
  } else
1682
1682
  l = e ? [] : a;
1683
1683
  e:
1684
- for (; ++r < n; ) {
1685
- var u = t[r], c = e ? e(u) : u;
1686
- if (u = u !== 0 ? u : 0, o && c === c) {
1687
- for (var h = l.length; h--; )
1688
- if (l[h] === c)
1684
+ for (; ++r < s; ) {
1685
+ var u = t[r], h = e ? e(u) : u;
1686
+ if (u = u !== 0 ? u : 0, o && h === h) {
1687
+ for (var c = l.length; c--; )
1688
+ if (l[c] === h)
1689
1689
  continue e;
1690
- e && l.push(c), a.push(u);
1691
- } else s(l, c, i) || (l !== a && l.push(c), a.push(u));
1690
+ e && l.push(h), a.push(u);
1691
+ } else n(l, h, i) || (l !== a && l.push(h), a.push(u));
1692
1692
  }
1693
1693
  return a;
1694
1694
  }
@@ -1700,7 +1700,7 @@ function J(t) {
1700
1700
  var e = ++Sa;
1701
1701
  return Hi(t) + e;
1702
1702
  }
1703
- const Se = "Indoor_selectedFloorChanged", Me = "Indoor_selectedBuildingChanged", ht = "Indoor_mapxusMapLoaded", ni = "Indoor_maplibreMapLoaded", Ke = "mapxus-venue-fill", oe = "mapxus-building-line", si = "mapxus-level-fill", Xe = "mapxus-shared-level-fill", Qe = "highlight-mapxus_level", Ze = "highlight-mapxus_shared_level";
1703
+ const Se = "Indoor_selectedFloorChanged", Me = "Indoor_selectedBuildingChanged", ht = "Indoor_mapxusMapLoaded", si = "Indoor_maplibreMapLoaded", Ke = "mapxus-venue-fill", oe = "mapxus-building-line", ni = "mapxus-level-fill", Xe = "mapxus-shared-level-fill", Qe = "highlight-mapxus_level", Ze = "highlight-mapxus_shared_level";
1704
1704
  class Gi extends br {
1705
1705
  _map;
1706
1706
  _features = [];
@@ -1759,23 +1759,23 @@ class Gi extends br {
1759
1759
  const {
1760
1760
  map: i,
1761
1761
  startWithIndoorView: r,
1762
- outdoorMapShown: s,
1763
- selectedHighlightStyle: n,
1762
+ outdoorMapShown: n,
1763
+ selectedHighlightStyle: s,
1764
1764
  fitBounds: o,
1765
1765
  boundsPadding: a,
1766
1766
  maskNonSelectedAreas: l,
1767
1767
  enableIndoorClickSelection: d,
1768
1768
  enableOutdoorClickSelection: u,
1769
- floorSwitchScope: c
1769
+ floorSwitchScope: h
1770
1770
  } = e;
1771
- this.layeredHandler = new Ko(l), this.dragPanHandler = new Jo(i, a), this._map = i, this._enableIndoorClickSelection = d, this._enableOutdoorClickSelection = u, this._startWithIndoorView = r, this._outdoorMapShown = s, this._isMaskMode = l, this._fitBounds = o, this._floorSwitchScope = c, this._selectedHighlightStyle = n ? Object.assign(
1771
+ this.layeredHandler = new Ko(l), this.dragPanHandler = new Jo(i, a), this._map = i, this._enableIndoorClickSelection = d, this._enableOutdoorClickSelection = u, this._startWithIndoorView = r, this._outdoorMapShown = n, this._isMaskMode = l, this._fitBounds = o, this._floorSwitchScope = h, this._selectedHighlightStyle = s ? Object.assign(
1772
1772
  {},
1773
1773
  De,
1774
- n
1774
+ s
1775
1775
  ) : De, this._bindMaplibreEventListeners();
1776
1776
  }
1777
1777
  destroy() {
1778
- this._isDestroyed || (this._isDestroyed = !0, this._dispatch.on(`.${Se}`, null), this.off(Me), this.off(ni), this.off(ht), this._debounceRendering?.cancel(), this._abortQueryFeature && (this._abortQueryFeature(), this._abortQueryFeature = null));
1778
+ this._isDestroyed || (this._isDestroyed = !0, this._dispatch.on(`.${Se}`, null), this.off(Me), this.off(si), this.off(ht), this._debounceRendering?.cancel(), this._abortQueryFeature && (this._abortQueryFeature(), this._abortQueryFeature = null));
1779
1779
  }
1780
1780
  /**
1781
1781
  * @deprecated
@@ -1834,10 +1834,10 @@ class Gi extends br {
1834
1834
  * @param options
1835
1835
  */
1836
1836
  getFeaturesById(e, i) {
1837
- const { layerIds: r, filter: s } = i || {}, n = this._queryRenderedFeatures(r);
1838
- if (!n.length) return [];
1839
- const o = s ? (a) => a.properties.id === e && s(a) : (a) => a.properties.id === e;
1840
- return n.filter(o);
1837
+ const { layerIds: r, filter: n } = i || {}, s = this._queryRenderedFeatures(r);
1838
+ if (!s.length) return [];
1839
+ const o = n ? (a) => a.properties.id === e && n(a) : (a) => a.properties.id === e;
1840
+ return s.filter(o);
1841
1841
  }
1842
1842
  /**
1843
1843
  * Switch floor by ordinal.
@@ -1869,8 +1869,8 @@ class Gi extends br {
1869
1869
  ])
1870
1870
  if (this._map.getLayer(i))
1871
1871
  if (e) {
1872
- const { lineColor: r, lineOpacity: s, lineWidth: n, lineOffset: o } = this._selectedHighlightStyle, a = oi(n, o);
1873
- this._map.setPaintProperty(i, "line-color", r), this._map.setPaintProperty(i, "line-opacity", s), this._map.setPaintProperty(i, "line-width", n), this._map.setPaintProperty(i, "line-offset", a);
1872
+ const { lineColor: r, lineOpacity: n, lineWidth: s, lineOffset: o } = this._selectedHighlightStyle, a = oi(s, o);
1873
+ this._map.setPaintProperty(i, "line-color", r), this._map.setPaintProperty(i, "line-opacity", n), this._map.setPaintProperty(i, "line-width", s), this._map.setPaintProperty(i, "line-offset", a);
1874
1874
  } else
1875
1875
  this._map.setPaintProperty(i, "line-opacity", 0);
1876
1876
  }
@@ -1894,8 +1894,8 @@ class Gi extends br {
1894
1894
  if (!e || !e.properties)
1895
1895
  this.dragPanHandler.setCenter(null), this._clear();
1896
1896
  else {
1897
- const { floorId: s, featureIncomplete: n } = i || {};
1898
- this._featureIncomplete = n ?? this._featureIncomplete;
1897
+ const { floorId: n, featureIncomplete: s } = i || {};
1898
+ this._featureIncomplete = s ?? this._featureIncomplete;
1899
1899
  const {
1900
1900
  id: o,
1901
1901
  "ref:venue": a,
@@ -1906,7 +1906,7 @@ class Gi extends br {
1906
1906
  this._curBuildingFeature = e, this._curBuildingId = o, this._history.addVisitedBuildingUnit({
1907
1907
  id: o,
1908
1908
  type: "building"
1909
- }), this.dragPanHandler.setCenter(d), this._curVenueId !== a && (this._curVenueId = a, this._curVenueFeature = await this._queryVenueFeature(a)), r = this._getBuildingDisplayedOrdinal(e, s);
1909
+ }), this.dragPanHandler.setCenter(d), this._curVenueId !== a && (this._curVenueId = a, this._curVenueFeature = await this._queryVenueFeature(a)), r = this._getBuildingDisplayedOrdinal(e, n);
1910
1910
  }
1911
1911
  await this.switchFloorByOrdinal(r), this.emit(
1912
1912
  Me,
@@ -1920,11 +1920,11 @@ class Gi extends br {
1920
1920
  async selectSharedFloor(e, i, r) {
1921
1921
  if (e.id === this._curSharedLevelId)
1922
1922
  return;
1923
- const { id: s, ordinal: n } = e;
1924
- this._isSelectSharedFloor = !0, this._curBuildingId = null, this._curBuildingFeature = null, this._sharedFloor = e, this._curSharedLevelId = s, this._featureIncomplete = r?.featureIncomplete ?? this._featureIncomplete;
1923
+ const { id: n, ordinal: s } = e;
1924
+ this._isSelectSharedFloor = !0, this._curBuildingId = null, this._curBuildingFeature = null, this._sharedFloor = e, this._curSharedLevelId = n, this._featureIncomplete = r?.featureIncomplete ?? this._featureIncomplete;
1925
1925
  const { label_center: o, id: a } = i.properties, l = L(o).map((d) => parseFloat(d));
1926
- this._curVenueId = a, this._curVenueFeature = i, this.dragPanHandler.setCenter(l), this._history.addVisitedBuildingUnit({ id: s, type: "sharedFloor" }), this._history.setHistoryOrdinal(a, n), this._history.setHistoryBuildingUnit(a, {
1927
- id: s,
1926
+ this._curVenueId = a, this._curVenueFeature = i, this.dragPanHandler.setCenter(l), this._history.addVisitedBuildingUnit({ id: n, type: "sharedFloor" }), this._history.setHistoryOrdinal(a, s), this._history.setHistoryBuildingUnit(a, {
1927
+ id: n,
1928
1928
  type: "sharedFloor"
1929
1929
  }), this._dragPan === !0 && (this._fitBounds ? await this.dragPanHandler.fitBounds() : await this.panToVenueCenter()), this._dispatch.call(Se, null, {
1930
1930
  venue: this.venue,
@@ -1959,19 +1959,19 @@ class Gi extends br {
1959
1959
  }
1960
1960
  }
1961
1961
  async _waitForFeatureLoaded(e) {
1962
- const i = () => this._isDestroyed ? (this._abortQueryFeature?.(), !0) : !!e(), { promise: r, abort: s } = Br(i);
1963
- this._abortQueryFeature = s;
1962
+ const i = () => this._isDestroyed ? (this._abortQueryFeature?.(), !0) : !!e(), { promise: r, abort: n } = Br(i);
1963
+ this._abortQueryFeature = n;
1964
1964
  try {
1965
1965
  await Promise.race([
1966
1966
  r,
1967
- new Promise((n, o) => {
1967
+ new Promise((s, o) => {
1968
1968
  this._abortQueryFeature = () => {
1969
1969
  o(new Error("Aborted")), this._abortQueryFeature = null;
1970
1970
  };
1971
1971
  })
1972
1972
  ]);
1973
- } catch (n) {
1974
- console.warn(n);
1973
+ } catch (s) {
1974
+ console.warn(s);
1975
1975
  return;
1976
1976
  }
1977
1977
  }
@@ -1989,26 +1989,26 @@ class Gi extends br {
1989
1989
  }) : "name" in e.floor && await this.selectSharedFloor(e.floor, e.venue));
1990
1990
  }
1991
1991
  queryIndoorInfoByPoint(e) {
1992
- const i = this._map.unproject(e), r = this._queryVisibleFeature(e), s = {
1992
+ const i = this._map.unproject(e), r = this._queryVisibleFeature(e), n = {
1993
1993
  coordinate: i,
1994
1994
  venue: null,
1995
1995
  building: null,
1996
1996
  floor: null
1997
1997
  };
1998
- if (!r) return s;
1999
- const { sourceLayer: n } = r;
2000
- let o = s;
2001
- if (n === "mapxus_level") {
1998
+ if (!r) return n;
1999
+ const { sourceLayer: s } = r;
2000
+ let o = n;
2001
+ if (s === "mapxus_level") {
2002
2002
  const a = r.properties?.["ref:building"], l = this.getFeaturesById(a)?.[0];
2003
2003
  if (l) {
2004
2004
  const d = l.properties?.["ref:venue"], u = this.getFeaturesById(d)?.[0];
2005
2005
  if (u) {
2006
- const { id: c, name: h, ordinal: f } = r.properties;
2006
+ const { id: h, name: c, ordinal: f } = r.properties;
2007
2007
  o = {
2008
2008
  coordinate: i,
2009
2009
  venue: u,
2010
2010
  building: l,
2011
- floor: { id: c, code: h, ordinal: f }
2011
+ floor: { id: h, code: c, ordinal: f }
2012
2012
  };
2013
2013
  } else
2014
2014
  console.warn(
@@ -2016,16 +2016,16 @@ class Gi extends br {
2016
2016
  a
2017
2017
  );
2018
2018
  }
2019
- } else if (n === "mapxus_shared_level") {
2019
+ } else if (s === "mapxus_shared_level") {
2020
2020
  const {
2021
2021
  id: a,
2022
2022
  ordinal: l,
2023
2023
  name: d,
2024
2024
  "ref:venue": u
2025
- } = r.properties || {}, c = this.getFeaturesById(u)?.[0];
2026
- c ? o = {
2025
+ } = r.properties || {}, h = this.getFeaturesById(u)?.[0];
2026
+ h ? o = {
2027
2027
  coordinate: i,
2028
- venue: c,
2028
+ venue: h,
2029
2029
  building: null,
2030
2030
  floor: {
2031
2031
  id: a,
@@ -2049,7 +2049,7 @@ class Gi extends br {
2049
2049
  }
2050
2050
  _bindMaplibreEventListeners() {
2051
2051
  this._map.once("styledata", () => this.updateCustomLayers()), this._map.once("idle", () => {
2052
- this.emit(ni), (!this._startWithIndoorView || this._map.getZoom() < 14) && this._dispatchIndoorMapLoaded();
2052
+ this.emit(si), (!this._startWithIndoorView || this._map.getZoom() < 14) && this._dispatchIndoorMapLoaded();
2053
2053
  }), this._map.on(
2054
2054
  "sourcedata",
2055
2055
  this._debounceRendering = qi(
@@ -2067,14 +2067,14 @@ class Gi extends br {
2067
2067
  );
2068
2068
  }
2069
2069
  _getBuildingFloorByOrdinal(e, i) {
2070
- let r = null, s = null;
2070
+ let r = null, n = null;
2071
2071
  if (e?.properties) {
2072
- const { ordinals: n, level_names: o, level_ids: a } = e.properties, l = L(n).findIndex(
2072
+ const { ordinals: s, level_names: o, level_ids: a } = e.properties, l = L(s).findIndex(
2073
2073
  (d) => d === i
2074
2074
  );
2075
- r = L(o)[l] ?? null, s = L(a)[l] ?? null;
2075
+ r = L(o)[l] ?? null, n = L(a)[l] ?? null;
2076
2076
  }
2077
- return { code: r, id: s, ordinal: i };
2077
+ return { code: r, id: n, ordinal: i };
2078
2078
  }
2079
2079
  _isCurrentFeature(e) {
2080
2080
  const i = e?.properties?.id ?? null, r = this._isSelectSharedFloor ? this._curSharedLevelId : this._curBuildingId;
@@ -2096,7 +2096,7 @@ class Gi extends br {
2096
2096
  if (this._map.getLayer(e)) continue;
2097
2097
  const i = e.split("_")[1], r = this._map.getLayer(i);
2098
2098
  if (!r) continue;
2099
- const { source: s, sourceLayer: n } = r, o = e === Re ? this._middleLayers[0] : this._lowerLayers[0];
2099
+ const { source: n, sourceLayer: s } = r, o = e === Re ? this._middleLayers[0] : this._lowerLayers[0];
2100
2100
  let a = {
2101
2101
  "fill-opacity": 0
2102
2102
  };
@@ -2113,8 +2113,8 @@ class Gi extends br {
2113
2113
  this._map.addLayer(
2114
2114
  {
2115
2115
  id: e,
2116
- source: s,
2117
- "source-layer": n,
2116
+ source: n,
2117
+ "source-layer": s,
2118
2118
  type: "fill",
2119
2119
  paint: a
2120
2120
  },
@@ -2179,24 +2179,24 @@ class Gi extends br {
2179
2179
  );
2180
2180
  if (!i) {
2181
2181
  const r = this._originIndoorLayers.findIndex(
2182
- ({ id: s }) => s === this._upperLayers[this._upperLayers.length - 1].id
2182
+ ({ id: n }) => n === this._upperLayers[this._upperLayers.length - 1].id
2183
2183
  );
2184
2184
  i = this._originIndoorLayers[r + 1];
2185
2185
  }
2186
- for (const { layerId: r, sourceLayer: s } of e) {
2186
+ for (const { layerId: r, sourceLayer: n } of e) {
2187
2187
  if (this._map.getLayer(r)) continue;
2188
- const { lineWidth: n, lineOpacity: o, lineColor: a, lineOffset: l } = this._selectedHighlightStyle, d = oi(n, l);
2188
+ const { lineWidth: s, lineOpacity: o, lineColor: a, lineOffset: l } = this._selectedHighlightStyle, d = oi(s, l);
2189
2189
  this._map.addLayer(
2190
2190
  {
2191
2191
  id: r,
2192
2192
  source: "indoor-planet",
2193
- "source-layer": s,
2193
+ "source-layer": n,
2194
2194
  type: "line",
2195
2195
  filter: ["==", "id", ""],
2196
2196
  // 默认不可见
2197
2197
  paint: {
2198
2198
  "line-offset": d,
2199
- "line-width": n,
2199
+ "line-width": s,
2200
2200
  "line-color": a,
2201
2201
  "line-opacity": o
2202
2202
  }
@@ -2225,12 +2225,12 @@ class Gi extends br {
2225
2225
  this._upperLayers = r.filter(
2226
2226
  ({ type: a }) => wa(a)
2227
2227
  );
2228
- const s = this._originIndoorLayers.slice(i), n = s.findIndex(
2228
+ const n = this._originIndoorLayers.slice(i), s = n.findIndex(
2229
2229
  ({ type: a, "source-layer": l }) => !Je(l, a)
2230
2230
  );
2231
- if (n > -1) {
2232
- this._commonPoiLayers = s.slice(0, n);
2233
- const a = s.slice(n).filter(
2231
+ if (s > -1) {
2232
+ this._commonPoiLayers = n.slice(0, s);
2233
+ const a = n.slice(s).filter(
2234
2234
  ({ "source-layer": l }) => l === "mapxus_section"
2235
2235
  );
2236
2236
  this._sectionFillLineLayers = a.filter(
@@ -2239,7 +2239,7 @@ class Gi extends br {
2239
2239
  ({ type: l }) => l === "symbol"
2240
2240
  );
2241
2241
  } else
2242
- this._commonPoiLayers = [...s], this._sectionSymbolLayers = r.filter(
2242
+ this._commonPoiLayers = [...n], this._sectionSymbolLayers = r.filter(
2243
2243
  ({ type: a, "source-layer": l }) => l === "mapxus_section" && a === "symbol"
2244
2244
  );
2245
2245
  const o = this._upperLayers[0];
@@ -2253,19 +2253,19 @@ class Gi extends br {
2253
2253
  }
2254
2254
  _copySharedFloorBackgroundLayers() {
2255
2255
  if (!!!this._upperLayers.find(
2256
- (s) => s.id === $.split("_")[1]
2256
+ (n) => n.id === $.split("_")[1]
2257
2257
  )) return;
2258
2258
  const i = this._upperLayers.filter(
2259
- ({ "source-layer": s, type: n }) => !_t(s, n) && !et(n)
2259
+ ({ "source-layer": n, type: s }) => !_t(n, s) && !et(s)
2260
2260
  ), r = this._middleLayers[0] || this._upperLayers[0];
2261
2261
  this._lowerLayers = [
2262
2262
  ...i,
2263
2263
  ...this._commonPoiLayers
2264
- ].map((s) => {
2265
- const n = `${s.id}-shared-bg`;
2266
- let o = this._map.getLayer(n);
2267
- return o || (o = Object.assign({}, s, {
2268
- id: n
2264
+ ].map((n) => {
2265
+ const s = `${n.id}-shared-bg`;
2266
+ let o = this._map.getLayer(s);
2267
+ return o || (o = Object.assign({}, n, {
2268
+ id: s
2269
2269
  }), this._map.addLayer(o, r.id)), o;
2270
2270
  });
2271
2271
  }
@@ -2273,29 +2273,29 @@ class Gi extends br {
2273
2273
  this._features = this._getIndoorFeatures();
2274
2274
  const e = zi(
2275
2275
  this._features,
2276
- (n) => n.layer.id + ":" + n.properties.id
2277
- ), i = [], r = [], s = [];
2278
- for (const n of e) {
2279
- const o = n.layer.id;
2280
- o === Ke ? i.push(n) : o === oe ? r.push(n) : o === $ && s.push(n);
2276
+ (s) => s.layer.id + ":" + s.properties.id
2277
+ ), i = [], r = [], n = [];
2278
+ for (const s of e) {
2279
+ const o = s.layer.id;
2280
+ o === Ke ? i.push(s) : o === oe ? r.push(s) : o === $ && n.push(s);
2281
2281
  }
2282
2282
  this._allVenuesMap = new Map(
2283
- i.map((n) => [n.properties.id, n])
2283
+ i.map((s) => [s.properties.id, s])
2284
2284
  ), this._allBuildingsMap = new Map(
2285
- r.map((n) => [n.properties.id, n])
2285
+ r.map((s) => [s.properties.id, s])
2286
2286
  ), this._allSharedLevelsMap = new Map(
2287
- s.map((n) => [n.properties.id, n])
2287
+ n.map((s) => [s.properties.id, s])
2288
2288
  );
2289
2289
  }
2290
2290
  _calExcludedPoisInMiddle() {
2291
2291
  const e = this._map.querySourceFeatures("indoor-planet", {
2292
2292
  sourceLayer: "mapxus_place"
2293
- }), i = (s) => s ? L(s).some((o) => this._upperLevels.has(o)) : !1, r = e.filter((s) => {
2294
- const n = s.properties["ref:level"] || s.properties["ref:shared_level"];
2295
- return this._middleLevels.has(n) ? i(s.properties.overlap) : !1;
2293
+ }), i = (n) => n ? L(n).some((o) => this._upperLevels.has(o)) : !1, r = e.filter((n) => {
2294
+ const s = n.properties["ref:level"] || n.properties["ref:shared_level"];
2295
+ return this._middleLevels.has(s) ? i(n.properties.overlap) : !1;
2296
2296
  });
2297
2297
  this._excludedPoisInMiddle = r.map(
2298
- (s) => s.properties["osm:ref"]
2298
+ (n) => n.properties["osm:ref"]
2299
2299
  );
2300
2300
  }
2301
2301
  _updateSelectedFeatures() {
@@ -2319,8 +2319,8 @@ class Gi extends br {
2319
2319
  displayedLevels: e,
2320
2320
  selectedLevelIds: i,
2321
2321
  alwaysDisplayedSharedLevelIds: r,
2322
- maskBuildingIds: s,
2323
- maskSharedFloorIds: n
2322
+ maskBuildingIds: n,
2323
+ maskSharedFloorIds: s
2324
2324
  } = this.layeredHandler.getLayeredData({
2325
2325
  selectedVenueId: this._curVenueId,
2326
2326
  venueMap: this._allVenuesMap,
@@ -2331,32 +2331,32 @@ class Gi extends br {
2331
2331
  e,
2332
2332
  i,
2333
2333
  r
2334
- ), this._isMaskMode && (this._maskBuildings.clear(), this._maskSharedFloors.clear(), s.forEach((o) => {
2334
+ ), this._isMaskMode && (this._maskBuildings.clear(), this._maskSharedFloors.clear(), n.forEach((o) => {
2335
2335
  this._maskBuildings.add(o);
2336
- }), n.forEach((o) => {
2336
+ }), s.forEach((o) => {
2337
2337
  this._maskSharedFloors.add(o);
2338
2338
  }));
2339
2339
  }
2340
2340
  _layerSelectedLevels(e, i) {
2341
2341
  for (const r of i) {
2342
2342
  this._upperLevels.add(r), this._zIndexHistory.set(r, !0);
2343
- const s = e.find(
2344
- ({ level: n, overlap: o }) => n === r && !!o
2343
+ const n = e.find(
2344
+ ({ level: s, overlap: o }) => s === r && !!o
2345
2345
  );
2346
- if (s)
2347
- for (const n of s.overlap)
2348
- this._zIndexHistory.get(n) && this._zIndexHistory.delete(n);
2346
+ if (n)
2347
+ for (const s of n.overlap)
2348
+ this._zIndexHistory.get(s) && this._zIndexHistory.delete(s);
2349
2349
  }
2350
2350
  }
2351
2351
  _layerUnselectedLevels(e, i, r) {
2352
- for (const s of e) {
2353
- if (i.includes(s.level)) continue;
2354
- const { level: n, overlap: o, venueId: a } = s, l = this._zIndexHistory.get(n), d = !o || !o.some((c) => this._upperLevels.has(c)), u = r.includes(n);
2352
+ for (const n of e) {
2353
+ if (i.includes(n.level)) continue;
2354
+ const { level: s, overlap: o, venueId: a } = n, l = this._zIndexHistory.get(s), d = !o || !o.some((h) => this._upperLevels.has(h)), u = r.includes(s);
2355
2355
  if (a === this._curVenueId && u) {
2356
- this._lowerLevels.add(n), this._zIndexHistory.delete(n);
2356
+ this._lowerLevels.add(s), this._zIndexHistory.delete(s);
2357
2357
  continue;
2358
2358
  }
2359
- l ? this._upperLevels.add(n) : l === !1 ? this._middleLevels.add(n) : u ? this._lowerLevels.add(n) : d ? (this._upperLevels.add(n), this._zIndexHistory.set(n, !0)) : (this._middleLevels.add(n), this._zIndexHistory.set(n, !1));
2359
+ l ? this._upperLevels.add(s) : l === !1 ? this._middleLevels.add(s) : u ? this._lowerLevels.add(s) : d ? (this._upperLevels.add(s), this._zIndexHistory.set(s, !0)) : (this._middleLevels.add(s), this._zIndexHistory.set(s, !1));
2360
2360
  }
2361
2361
  }
2362
2362
  _filterLayers() {
@@ -2380,21 +2380,21 @@ class Gi extends br {
2380
2380
  }
2381
2381
  _filterIndoorLayers(e, i) {
2382
2382
  let r;
2383
- for (const s of i) {
2383
+ for (const n of i) {
2384
2384
  const {
2385
- id: n,
2385
+ id: s,
2386
2386
  filter: o,
2387
2387
  type: a,
2388
2388
  "source-layer": l
2389
- } = s, d = o ? [o] : [], u = n.includes("-shared-bg"), c = [...this._maskBuildings], h = [...this._maskSharedFloors];
2389
+ } = n, d = o ? [o] : [], u = s.includes("-shared-bg"), h = [...this._maskBuildings], c = [...this._maskSharedFloors];
2390
2390
  ai(l, a) ? r = [
2391
2391
  "all",
2392
- _t(l, a) ? ["!in", "ref:building", ...c] : ["!in", "id", ...h],
2392
+ _t(l, a) ? ["!in", "ref:building", ...h] : ["!in", "id", ...c],
2393
2393
  ["in", "id", ...e],
2394
2394
  ...d
2395
2395
  ] : u ? r = [
2396
2396
  "all",
2397
- ["!in", "ref:shared_level", ...h],
2397
+ ["!in", "ref:shared_level", ...c],
2398
2398
  ["in", "ref:shared_level", ...e],
2399
2399
  ...d
2400
2400
  ] : (r = [
@@ -2403,7 +2403,7 @@ class Gi extends br {
2403
2403
  "any",
2404
2404
  [
2405
2405
  "all",
2406
- ["!in", "ref:building", ...c],
2406
+ ["!in", "ref:building", ...h],
2407
2407
  ["in", "ref:level", ...e]
2408
2408
  ],
2409
2409
  // unit,section,gate in normal level
@@ -2412,7 +2412,7 @@ class Gi extends br {
2412
2412
  [
2413
2413
  "!in",
2414
2414
  "ref:shared_level",
2415
- ...h
2415
+ ...c
2416
2416
  ],
2417
2417
  ["in", "ref:shared_level", ...e]
2418
2418
  ]
@@ -2436,7 +2436,7 @@ class Gi extends br {
2436
2436
  ...this._excludedPoisInMiddle
2437
2437
  ]
2438
2438
  ]
2439
- ])), this._map.setFilter(n, r);
2439
+ ])), this._map.setFilter(s, r);
2440
2440
  }
2441
2441
  }
2442
2442
  async _queryVenueFeature(e) {
@@ -2456,9 +2456,9 @@ class Gi extends br {
2456
2456
  if (!e || !e.properties) return null;
2457
2457
  const {
2458
2458
  "ref:venue": r,
2459
- level_ids: s,
2460
- ordinals: n
2461
- } = e.properties, o = L(s), a = L(n);
2459
+ level_ids: n,
2460
+ ordinals: s
2461
+ } = e.properties, o = L(n), a = L(s);
2462
2462
  if (i) {
2463
2463
  const d = o.findIndex((u) => u === i);
2464
2464
  return a[d] ?? null;
@@ -2489,36 +2489,36 @@ class Gi extends br {
2489
2489
  }
2490
2490
  _queryVisibleFeature(e) {
2491
2491
  const r = [
2492
- si,
2492
+ ni,
2493
2493
  Xe,
2494
- `${si}-overlap-copy`,
2494
+ `${ni}-overlap-copy`,
2495
2495
  `${Xe}-overlap-copy`,
2496
2496
  `${Xe}-shared-bg`,
2497
2497
  ...this._isMaskMode ? [$, be] : []
2498
2498
  ].filter(
2499
2499
  (o) => !!this._map.getLayer(o)
2500
- ), s = this._map.queryRenderedFeatures(e, {
2500
+ ), n = this._map.queryRenderedFeatures(e, {
2501
2501
  layers: r
2502
2502
  });
2503
- let n = null;
2503
+ let s = null;
2504
2504
  for (const o of r) {
2505
- const a = s.find((l) => l.layer.id === o);
2505
+ const a = n.find((l) => l.layer.id === o);
2506
2506
  if (a) {
2507
- n = a;
2507
+ s = a;
2508
2508
  break;
2509
2509
  }
2510
2510
  }
2511
- return n && Ia(n.sourceLayer, n.layer.type) && (this._maskBuildings.has(n.properties?.id) || (n = null)), n;
2511
+ return s && Ia(s.sourceLayer, s.layer.type) && (this._maskBuildings.has(s.properties?.id) || (s = null)), s;
2512
2512
  }
2513
2513
  _queryRenderedFeatures(e) {
2514
- const i = (e || []).filter((n) => this._map.getLayer(n));
2514
+ const i = (e || []).filter((s) => this._map.getLayer(s));
2515
2515
  if (e && e.length > 0 && i.length === 0)
2516
2516
  return [];
2517
- const r = i.length ? { layers: i } : {}, s = this._map.getCanvas().getBoundingClientRect();
2517
+ const r = i.length ? { layers: i } : {}, n = this._map.getCanvas().getBoundingClientRect();
2518
2518
  return this._map.queryRenderedFeatures(
2519
2519
  [
2520
2520
  [0, 0],
2521
- [s.width, s.height]
2521
+ [n.width, n.height]
2522
2522
  ],
2523
2523
  r
2524
2524
  );
@@ -2529,8 +2529,8 @@ class Gi extends br {
2529
2529
  _changeOtherVenuesHistory(e) {
2530
2530
  const i = [...this._allVenuesMap.values()];
2531
2531
  for (const r of i) {
2532
- const s = r.properties.id;
2533
- s !== this._curVenueId && this._history.setHistoryOrdinal(s, e);
2532
+ const n = r.properties.id;
2533
+ n !== this._curVenueId && this._history.setHistoryOrdinal(n, e);
2534
2534
  }
2535
2535
  }
2536
2536
  }
@@ -2616,33 +2616,33 @@ class Yi {
2616
2616
  }
2617
2617
  );
2618
2618
  if (i.length === 0) return;
2619
- const r = i[0], s = L(r.properties["ref:sections"]), n = !!r.properties["ref:shared_level"], o = { coordinate: e.lngLat, poi: r };
2620
- if (s.length > 0) {
2619
+ const r = i[0], n = L(r.properties["ref:sections"]), s = !!r.properties["ref:shared_level"], o = { coordinate: e.lngLat, poi: r };
2620
+ if (n.length > 0) {
2621
2621
  const a = this._map.querySourceFeatures(
2622
2622
  "indoor-planet",
2623
2623
  {
2624
2624
  sourceLayer: "mapxus_section"
2625
2625
  }
2626
2626
  );
2627
- o.sections = s.map((l) => {
2627
+ o.sections = n.map((l) => {
2628
2628
  const d = a.find(
2629
2629
  (p) => p.properties.id === l
2630
2630
  ), {
2631
2631
  id: u,
2632
- section: c = "",
2633
- correlation_id: h
2632
+ section: h = "",
2633
+ correlation_id: c
2634
2634
  } = d?.properties || {}, f = li(
2635
2635
  d?.properties
2636
2636
  );
2637
2637
  return {
2638
2638
  id: u,
2639
- category: c,
2639
+ category: h,
2640
2640
  sectionName: f,
2641
- ...h && { correlationId: h }
2641
+ ...c && { correlationId: c }
2642
2642
  };
2643
2643
  });
2644
2644
  }
2645
- if (n) {
2645
+ if (s) {
2646
2646
  const a = r.properties["ref:shared_level"], { floor: l, venue: d } = this._queryIndoorFeaturesBySharedFloor(a);
2647
2647
  o.floor = l, o.venue = d;
2648
2648
  } else {
@@ -2660,12 +2660,12 @@ class Yi {
2660
2660
  );
2661
2661
  if (!r)
2662
2662
  return { floor: null, venue: null };
2663
- const s = r.properties["ref:venue"], n = i.find(
2664
- (d) => d.layer.id === "mapxus-venue-fill" && d.properties.id === s
2663
+ const n = r.properties["ref:venue"], s = i.find(
2664
+ (d) => d.layer.id === "mapxus-venue-fill" && d.properties.id === n
2665
2665
  ) ?? null, { id: o, ordinal: a } = r.properties, l = li(r.properties);
2666
2666
  return {
2667
2667
  floor: { id: o, ordinal: a, name: l },
2668
- venue: n
2668
+ venue: s
2669
2669
  };
2670
2670
  }
2671
2671
  _queryIndoorFeaturesByFloor(e) {
@@ -2681,8 +2681,8 @@ class Yi {
2681
2681
  if (!r)
2682
2682
  return { floor: null, building: null, venue: null };
2683
2683
  const {
2684
- id: s,
2685
- ordinal: n,
2684
+ id: n,
2685
+ ordinal: s,
2686
2686
  name: o,
2687
2687
  "ref:building": a
2688
2688
  } = r.properties || {}, l = i.find(
@@ -2691,7 +2691,7 @@ class Yi {
2691
2691
  (u) => u.layer.id === "mapxus-venue-fill" && u.properties.id === l?.properties?.["ref:venue"]
2692
2692
  ) ?? null;
2693
2693
  return {
2694
- floor: { id: s, ordinal: n, code: o },
2694
+ floor: { id: n, ordinal: s, code: o },
2695
2695
  building: l,
2696
2696
  venue: d
2697
2697
  };
@@ -2699,8 +2699,8 @@ class Yi {
2699
2699
  }
2700
2700
  function li(t) {
2701
2701
  return t ? Object.keys(t).filter((i) => i.includes("name")).reduce((i, r) => {
2702
- const [, s] = L(r, ":");
2703
- return s ? i[s] = t[r] : i.default = t[r], i;
2702
+ const [, n] = L(r, ":");
2703
+ return n ? i[n] = t[r] : i.default = t[r], i;
2704
2704
  }, {}) : { default: "" };
2705
2705
  }
2706
2706
  function Ee(t) {
@@ -2750,9 +2750,9 @@ class Wi {
2750
2750
  this._visible = e, e ? this._$showLayout() : this._$hideLayout();
2751
2751
  }
2752
2752
  changePosition(e, i, r) {
2753
- const s = document.querySelector(
2753
+ const n = document.querySelector(
2754
2754
  `.maplibregl-ctrl-${e}`
2755
- ), n = s.querySelector(
2755
+ ), s = n.querySelector(
2756
2756
  ".maplibregl-ctrl-building-filter"
2757
2757
  );
2758
2758
  if (e !== i) {
@@ -2760,13 +2760,13 @@ class Wi {
2760
2760
  const o = document.querySelector(
2761
2761
  `.maplibregl-ctrl-${i}`
2762
2762
  );
2763
- n && (s.removeChild(n), Number.isFinite(r) ? o.insertBefore(
2764
- n,
2763
+ s && (n.removeChild(s), Number.isFinite(r) ? o.insertBefore(
2764
+ s,
2765
2765
  o.children[r]
2766
- ) : o.append(n), this._updateBuildingListLayout(i));
2767
- } else Number.isFinite(r) && s.children[r] !== n && (s.removeChild(n), s.insertBefore(
2768
- n,
2769
- s.children[r]
2766
+ ) : o.append(s), this._updateBuildingListLayout(i));
2767
+ } else Number.isFinite(r) && n.children[r] !== s && (n.removeChild(s), n.insertBefore(
2768
+ s,
2769
+ n.children[r]
2770
2770
  ));
2771
2771
  }
2772
2772
  _bindEvents() {
@@ -2807,13 +2807,13 @@ class Wi {
2807
2807
  layers: ["mapxus-building-line"]
2808
2808
  }) : [];
2809
2809
  for (const r of i) {
2810
- const { properties: s } = r, { id: n, name: o } = s, a = s?.[`name:${this._language}`] ?? o;
2811
- this._features.find((l) => l.properties.id === n) || (this._features.push(r), this._$buildingList.appendChild(
2810
+ const { properties: n } = r, { id: s, name: o } = n, a = n?.[`name:${this._language}`] ?? o;
2811
+ this._features.find((l) => l.properties.id === s) || (this._features.push(r), this._$buildingList.appendChild(
2812
2812
  this._buildingNameCreate(
2813
2813
  "p",
2814
2814
  a,
2815
- n,
2816
- n === this._map.building?.properties?.id
2815
+ s,
2816
+ s === this._map.building?.properties?.id
2817
2817
  )
2818
2818
  ));
2819
2819
  }
@@ -2823,18 +2823,18 @@ class Wi {
2823
2823
  this._$buildingList.replaceChildren();
2824
2824
  }
2825
2825
  _setBuildingListHeight(e) {
2826
- const s = e.map((n) => {
2827
- const o = n?.properties?.[`name:${this._language}`] ?? n?.properties?.name;
2826
+ const n = e.map((s) => {
2827
+ const o = s?.properties?.[`name:${this._language}`] ?? s?.properties?.name;
2828
2828
  return o ? Math.ceil(o.length * 8 / 107) : 0;
2829
- }).reduce((n, o) => n + o, 0);
2830
- this._listHeight = s * 26 + e.length * 8, this._$buildingList.style.height = this._$listContainer.style.height = `${this._listHeight >= 208 ? 208 : this._listHeight}px`;
2829
+ }).reduce((s, o) => s + o, 0);
2830
+ this._listHeight = n * 26 + e.length * 8, this._$buildingList.style.height = this._$listContainer.style.height = `${this._listHeight >= 208 ? 208 : this._listHeight}px`;
2831
2831
  }
2832
- _buildingNameCreate(e, i, r, s) {
2833
- const n = F(
2832
+ _buildingNameCreate(e, i, r, n) {
2833
+ const s = F(
2834
2834
  e,
2835
- `mapxus-building-name${s ? " active" : ""}`
2835
+ `mapxus-building-name${n ? " active" : ""}`
2836
2836
  );
2837
- return n.dataset.id = r, n.innerText = i, this._buildingNameClickEvent(n), n;
2837
+ return s.dataset.id = r, s.innerText = i, this._buildingNameClickEvent(s), s;
2838
2838
  }
2839
2839
  _toggleList(e) {
2840
2840
  this._isListShown = e, this._$listContainer.style.display = e ? "block" : "none";
@@ -2916,8 +2916,8 @@ class Xi {
2916
2916
  _debounceScroll;
2917
2917
  _clearScrollEventListener;
2918
2918
  constructor(e, i) {
2919
- const { style: r, enabled: s = !0, language: n } = i;
2920
- this._indoor = e, this._language = n, this._style = r ? Object.assign({}, Mt, r) : Mt, this._isEnabled = s, this._addIndoorEventListeners();
2919
+ const { style: r, enabled: n = !0, language: s } = i;
2920
+ this._indoor = e, this._language = s, this._style = r ? Object.assign({}, Mt, r) : Mt, this._isEnabled = n, this._addIndoorEventListeners();
2921
2921
  }
2922
2922
  onAdd(e) {
2923
2923
  return this._maplibre = e, this._addMapMoveEventListener(), this._container = F(
@@ -2949,9 +2949,9 @@ class Xi {
2949
2949
  this._ordinal = e, this._dragPan = i ?? !0, await this._indoor.switchFloorByOrdinal(e), this._updateSelectorStatus(e), this._scrollCenterActiveFloor();
2950
2950
  }
2951
2951
  changePosition(e, i, r) {
2952
- const s = document.querySelector(
2952
+ const n = document.querySelector(
2953
2953
  `.maplibregl-ctrl-${e}`
2954
- ), n = s.querySelector(
2954
+ ), s = n.querySelector(
2955
2955
  ".mapxus-ctrl-floors"
2956
2956
  );
2957
2957
  if (e !== i) {
@@ -2959,13 +2959,13 @@ class Xi {
2959
2959
  const o = document.querySelector(
2960
2960
  `.maplibregl-ctrl-${i}`
2961
2961
  );
2962
- n && (s.removeChild(n), Number.isFinite(r) ? o.insertBefore(
2963
- n,
2962
+ s && (n.removeChild(s), Number.isFinite(r) ? o.insertBefore(
2963
+ s,
2964
2964
  o.children[r]
2965
- ) : o.append(n), this._show(), this._scrollCenterActiveFloor());
2966
- } else Number.isFinite(r) && s.children[r] !== n && (s.removeChild(n), s.insertBefore(
2967
- n,
2968
- s.children[r]
2965
+ ) : o.append(s), this._show(), this._scrollCenterActiveFloor());
2966
+ } else Number.isFinite(r) && n.children[r] !== s && (n.removeChild(s), n.insertBefore(
2967
+ s,
2968
+ n.children[r]
2969
2969
  ), this._show(), this._scrollCenterActiveFloor());
2970
2970
  }
2971
2971
  setStyle(e) {
@@ -2988,20 +2988,20 @@ class Xi {
2988
2988
  this._clearState(), this._visible && this._hide(), this._componentDidMount && this._clearFloors();
2989
2989
  }
2990
2990
  _renderBuildingFloors(e, i) {
2991
- const { level_names: r, ordinals: s, id: n } = e.properties;
2992
- this._buildingId = n, this._floorNames = r.split(",").reverse(), this._ordinals = s.split(",").reverse(), this._ordinal = i, this._calcSelectorLayout(), this._render();
2993
- const o = this._indoor.getFeaturesById(n, {
2991
+ const { level_names: r, ordinals: n, id: s } = e.properties;
2992
+ this._buildingId = s, this._floorNames = r.split(",").reverse(), this._ordinals = n.split(",").reverse(), this._ordinal = i, this._calcSelectorLayout(), this._render();
2993
+ const o = this._indoor.getFeaturesById(s, {
2994
2994
  filter: (a) => a.layer.id === "mapxus-building-line"
2995
2995
  })[0];
2996
2996
  this._checkIfShowFloorSelector(o);
2997
2997
  }
2998
2998
  _renderSharedLevelFloor(e) {
2999
- const { name: i, ordinal: r, id: s } = e;
2999
+ const { name: i, ordinal: r, id: n } = e;
3000
3000
  this._floorNames = [i[this._language] || i.default], this._ordinals = [r], this._ordinal = r, this._calcSelectorLayout(), this._render();
3001
- const n = this._indoor.getFeaturesById(s, {
3001
+ const s = this._indoor.getFeaturesById(n, {
3002
3002
  layerIds: [$]
3003
3003
  })[0];
3004
- this._checkIfShowFloorSelector(n);
3004
+ this._checkIfShowFloorSelector(s);
3005
3005
  }
3006
3006
  _checkIfShowFloorSelector(e) {
3007
3007
  this.enabled && (this._dragPan !== !1 || this._dragPan === !1 && e) && (this._show(), this._scrollCenterActiveFloor());
@@ -3039,9 +3039,9 @@ class Xi {
3039
3039
  );
3040
3040
  }
3041
3041
  _$expandedSelector(e, i) {
3042
- const { itemSize: r, itemCount: s, defaultFolded: n, backgroundColor: o } = this._style, a = F(
3042
+ const { itemSize: r, itemCount: n, defaultFolded: s, backgroundColor: o } = this._style, a = F(
3043
3043
  "div",
3044
- `mapxus-ctrl-floors-expanded ${n ? "hidden" : ""}`,
3044
+ `mapxus-ctrl-floors-expanded ${s ? "hidden" : ""}`,
3045
3045
  e
3046
3046
  );
3047
3047
  if (this._floorNames.length > 1) {
@@ -3057,14 +3057,14 @@ class Xi {
3057
3057
  "mapxus-ctrl-floors-wrapper",
3058
3058
  a
3059
3059
  );
3060
- return l.style.backgroundColor = o, this._floorNames.length > s && (this._$arrowBtnUp = this._$createScrollButton(l, "up"), this._$arrowBtnUp.onclick = () => this._handleScroll("up")), this._$innerFloors = F(
3060
+ return l.style.backgroundColor = o, this._floorNames.length > n && (this._$arrowBtnUp = this._$createScrollButton(l, "up"), this._$arrowBtnUp.onclick = () => this._handleScroll("up")), this._$innerFloors = F(
3061
3061
  "div",
3062
3062
  "mapxus-ctrl-floors-inner",
3063
3063
  l
3064
3064
  ), Object.assign(this._$innerFloors.style, {
3065
- maxHeight: `${r * s}px`,
3065
+ maxHeight: `${r * n}px`,
3066
3066
  width: `${r}px`
3067
- }), this._$createFloors(this._$innerFloors), this._floorNames.length > s && (this._$arrowBtnDown = this._$createScrollButton(l, "down"), this._$arrowBtnDown.onclick = () => this._handleScroll("down"), this._$innerFloors.addEventListener(
3067
+ }), this._$createFloors(this._$innerFloors), this._floorNames.length > n && (this._$arrowBtnDown = this._$createScrollButton(l, "down"), this._$arrowBtnDown.onclick = () => this._handleScroll("down"), this._$innerFloors.addEventListener(
3068
3068
  "scroll",
3069
3069
  this._debounceScroll = qi((d) => {
3070
3070
  d.stopPropagation(), this._resetArrowBtnStatus(this._$innerFloors.scrollTop);
@@ -3077,8 +3077,8 @@ class Xi {
3077
3077
  _$foldedSelector(e, i) {
3078
3078
  const {
3079
3079
  itemSize: r,
3080
- activeFontColor: s,
3081
- activeBackgroundColor: n,
3080
+ activeFontColor: n,
3081
+ activeBackgroundColor: s,
3082
3082
  defaultFolded: o
3083
3083
  } = this._style, a = F(
3084
3084
  "div",
@@ -3089,8 +3089,8 @@ class Xi {
3089
3089
  width: `${r}px`,
3090
3090
  height: `${r}px`,
3091
3091
  lineHeight: `${r}px`,
3092
- color: s,
3093
- backgroundColor: n
3092
+ color: n,
3093
+ backgroundColor: s
3094
3094
  }), a;
3095
3095
  }
3096
3096
  _clearFloors() {
@@ -3105,13 +3105,13 @@ class Xi {
3105
3105
  }
3106
3106
  _$createFloors(e) {
3107
3107
  const { fontColor: i, itemSize: r } = this._style;
3108
- let s;
3109
- this._floorNames.forEach((n, o) => {
3110
- s = F("div", "mapxus-ctrl-floors-floor", e), s.dataset.floor = n, s.dataset.ordinal = this._ordinals[o], s.innerText = n, Object.assign(s.style, {
3108
+ let n;
3109
+ this._floorNames.forEach((s, o) => {
3110
+ n = F("div", "mapxus-ctrl-floors-floor", e), n.dataset.floor = s, n.dataset.ordinal = this._ordinals[o], n.innerText = s, Object.assign(n.style, {
3111
3111
  color: i,
3112
3112
  height: `${r}px`,
3113
3113
  lineHeight: `${r}px`
3114
- }), s.dataset.ordinal === this._ordinal && (this._$activeFloor = s, this._resetActiveFloor(!0), this._$selectorFolded.innerText = n), s.onclick = async (a) => {
3114
+ }), n.dataset.ordinal === this._ordinal && (this._$activeFloor = n, this._resetActiveFloor(!0), this._$selectorFolded.innerText = s), n.onclick = async (a) => {
3115
3115
  this._indoor.setDragPan("restrict"), this._indoor.dragPanHandler.setAnimated(!0), await this.switchByOrdinal(
3116
3116
  a.target.dataset.ordinal
3117
3117
  );
@@ -3122,8 +3122,8 @@ class Xi {
3122
3122
  const i = this._floorNames[this._ordinals.indexOf(e)];
3123
3123
  this._$activeFloor && this._resetActiveFloor(!1);
3124
3124
  for (const r of this._$innerFloors.children) {
3125
- const s = r;
3126
- s.dataset.ordinal === e && (this._$activeFloor = s, this._resetActiveFloor(!0));
3125
+ const n = r;
3126
+ n.dataset.ordinal === e && (this._$activeFloor = n, this._resetActiveFloor(!0));
3127
3127
  }
3128
3128
  this._$selectorFolded.innerText = i;
3129
3129
  }
@@ -3134,11 +3134,11 @@ class Xi {
3134
3134
  const {
3135
3135
  activeBackgroundColor: i,
3136
3136
  backgroundColor: r,
3137
- activeFontColor: s,
3138
- fontColor: n
3137
+ activeFontColor: n,
3138
+ fontColor: s
3139
3139
  } = this._style;
3140
3140
  Object.assign(this._$activeFloor.style, {
3141
- color: e ? s : n,
3141
+ color: e ? n : s,
3142
3142
  backgroundColor: e ? i : r,
3143
3143
  fontWeight: e ? "bold" : "normal",
3144
3144
  cursor: e ? "auto" : "pointer"
@@ -3156,11 +3156,11 @@ class Xi {
3156
3156
  _handleScroll(e) {
3157
3157
  const i = this._$innerFloors.scrollTop, { itemSize: r } = this._style;
3158
3158
  if (e === "up") {
3159
- const s = i - r * 2;
3160
- this._$innerFloors.scrollTop = s < 0 ? 0 : s;
3159
+ const n = i - r * 2;
3160
+ this._$innerFloors.scrollTop = n < 0 ? 0 : n;
3161
3161
  } else if (e === "down") {
3162
- const s = i + r * 2;
3163
- this._$innerFloors.scrollTop = s > this._maxScrollTop ? this._maxScrollTop : s;
3162
+ const n = i + r * 2;
3163
+ this._$innerFloors.scrollTop = n > this._maxScrollTop ? this._maxScrollTop : n;
3164
3164
  }
3165
3165
  }
3166
3166
  _expandSelector(e) {
@@ -3255,9 +3255,9 @@ class Aa {
3255
3255
  let i = !1;
3256
3256
  this._$icon.addEventListener("click", r), this._removeClickEventListener = () => this._$icon.removeEventListener("click", r);
3257
3257
  function r() {
3258
- i = !i, s();
3258
+ i = !i, n();
3259
3259
  }
3260
- function s() {
3260
+ function n() {
3261
3261
  i ? e.classList.remove("hidden") : e.classList.add("hidden");
3262
3262
  }
3263
3263
  }
@@ -3393,7 +3393,7 @@ class rr {
3393
3393
  return this._isEnabled;
3394
3394
  }
3395
3395
  }
3396
- class nr {
3396
+ class sr {
3397
3397
  _indoor;
3398
3398
  _isEnabled = !0;
3399
3399
  constructor(e) {
@@ -3409,7 +3409,7 @@ class nr {
3409
3409
  return this._isEnabled;
3410
3410
  }
3411
3411
  }
3412
- const it = "Map_mapClick", rt = "Map_pointClick", nt = "Map_isRenderComplete", Ie = "Map_isDestroyed", X = fe.getInstance();
3412
+ const it = "Map_mapClick", rt = "Map_pointClick", st = "Map_isRenderComplete", Ie = "Map_isDestroyed", X = fe.getInstance();
3413
3413
  let ka = class {
3414
3414
  _map;
3415
3415
  _indoor;
@@ -3421,7 +3421,7 @@ let ka = class {
3421
3421
  _dispatch = mt(
3422
3422
  it,
3423
3423
  rt,
3424
- nt,
3424
+ st,
3425
3425
  Ie
3426
3426
  );
3427
3427
  _fitBounds;
@@ -3451,7 +3451,7 @@ let ka = class {
3451
3451
  * @param callback
3452
3452
  */
3453
3453
  renderComplete(e) {
3454
- const i = J(`${nt}.`);
3454
+ const i = J(`${st}.`);
3455
3455
  this._dispatch.on(i, e);
3456
3456
  }
3457
3457
  /**
@@ -3513,10 +3513,10 @@ let ka = class {
3513
3513
  if (this._language === e) return;
3514
3514
  this._language = e;
3515
3515
  const i = this._map?.getStyle()?.layers || [];
3516
- for (const { id: r, type: s } of i) {
3517
- if (!this._map.getLayer(r) || s !== "symbol") continue;
3518
- const n = this._map.getLayoutProperty(r, "text-field");
3519
- !n || typeof n == "string" || this._map.setLayoutProperty(r, "text-field", [
3516
+ for (const { id: r, type: n } of i) {
3517
+ if (!this._map.getLayer(r) || n !== "symbol") continue;
3518
+ const s = this._map.getLayoutProperty(r, "text-field");
3519
+ !s || typeof s == "string" || this._map.setLayoutProperty(r, "text-field", [
3520
3520
  "coalesce",
3521
3521
  ["get", `name:${e}`],
3522
3522
  ["get", "name"],
@@ -3553,29 +3553,29 @@ let ka = class {
3553
3553
  * @returns
3554
3554
  */
3555
3555
  queryIndoorFeaturesByPoint(e) {
3556
- const { x: i, y: r } = e, s = this._map.queryRenderedFeatures([i, r], {
3556
+ const { x: i, y: r } = e, n = this._map.queryRenderedFeatures([i, r], {
3557
3557
  layers: [
3558
3558
  "mapxus-venue-fill",
3559
3559
  "mapxus-building-line",
3560
3560
  Re,
3561
3561
  $
3562
3562
  ]
3563
- }), n = s.find(
3563
+ }), s = n.find(
3564
3564
  (o) => o.layer.id === "mapxus-venue-fill"
3565
3565
  );
3566
- if (n) {
3566
+ if (s) {
3567
3567
  const o = this._history.getHistoryOrdinal(
3568
- n.properties.id
3569
- ), a = s.find(
3568
+ s.properties.id
3569
+ ), a = n.find(
3570
3570
  (l) => l.properties?.ordinal === o
3571
3571
  );
3572
3572
  if (a) {
3573
3573
  if (a.sourceLayer === "mapxus_shared_level")
3574
- return { venue: n, sharedLevel: a };
3575
- const l = s.find(
3574
+ return { venue: s, sharedLevel: a };
3575
+ const l = n.find(
3576
3576
  (d) => d.properties.id === a.properties["ref:building"]
3577
3577
  );
3578
- return { venue: n, building: l, level: a };
3578
+ return { venue: s, building: l, level: a };
3579
3579
  }
3580
3580
  }
3581
3581
  return null;
@@ -3587,7 +3587,7 @@ let ka = class {
3587
3587
  * @param ordinal
3588
3588
  */
3589
3589
  getIndoorFeaturesByCoordinates(e, i) {
3590
- const r = this._map.project(e), s = this._map.queryRenderedFeatures(r, {
3590
+ const r = this._map.project(e), n = this._map.queryRenderedFeatures(r, {
3591
3591
  layers: [
3592
3592
  "mapxus-venue-fill",
3593
3593
  "mapxus-building-line",
@@ -3595,15 +3595,15 @@ let ka = class {
3595
3595
  "mapxus-level-fill-overlap-copy"
3596
3596
  ]
3597
3597
  });
3598
- if (s.length === 0)
3598
+ if (n.length === 0)
3599
3599
  return { venue: null, building: null, level: null };
3600
- const o = s.filter(
3600
+ const o = n.filter(
3601
3601
  (d) => d.layer.id.includes("mapxus-level-fill")
3602
3602
  ).find((d) => Number.isFinite(i) ? d.properties.ordinal === i + "" : d.layer.id.startsWith("mapxus-level-fill"));
3603
3603
  if (!o)
3604
3604
  return { venue: null, building: null, level: null };
3605
- const a = s.find((d) => d.properties.id === o.properties["ref:building"]);
3606
- return { venue: s.find((d) => d.properties.id === a.properties["ref:venue"]), building: a, level: o };
3605
+ const a = n.find((d) => d.properties.id === o.properties["ref:building"]);
3606
+ return { venue: n.find((d) => d.properties.id === a.properties["ref:venue"]), building: a, level: o };
3607
3607
  }
3608
3608
  /**
3609
3609
  * Query rendered features from bbox by id. One id may correspond to multiple features,
@@ -3630,93 +3630,116 @@ let ka = class {
3630
3630
  * Default is true.
3631
3631
  */
3632
3632
  async selectFloorById(e, i) {
3633
- const { dragPan: r = !0, animate: s = !0, fitBounds: n } = i || {}, o = n ?? this._fitBounds, a = async () => {
3634
- const l = await ci(e), { maxLat: d, maxLon: u, minLat: c, minLon: h } = l?.bbox || {};
3635
- this._indoor.dragPanHandler.setBounds([
3636
- h,
3637
- c,
3638
- u,
3639
- d
3640
- ]);
3633
+ const { dragPan: r = !0, animate: n = !0, fitBounds: s } = i || {}, o = s ?? this._fitBounds, a = async () => {
3634
+ try {
3635
+ const l = await ci(e);
3636
+ if (l?.bbox) {
3637
+ const { maxLat: d, maxLon: u, minLat: h, minLon: c } = l.bbox;
3638
+ return this._indoor.dragPanHandler.setBounds([
3639
+ c,
3640
+ h,
3641
+ u,
3642
+ d
3643
+ ]), !0;
3644
+ }
3645
+ return !1;
3646
+ } catch (l) {
3647
+ return console.error(
3648
+ "Failed to fetch bounds for floor:",
3649
+ e,
3650
+ l
3651
+ ), !1;
3652
+ }
3641
3653
  };
3642
- if (this._indoor.setDragPan(r), this._indoor.setFitBounds(o), this._indoor.dragPanHandler.setAnimated(s), e === this.floor?.id) {
3654
+ if (this._indoor.setDragPan(r), this._indoor.setFitBounds(o), this._indoor.dragPanHandler.setAnimated(n), e === this.floor?.id) {
3643
3655
  if (!r) return;
3644
- o ? (this._indoor.dragPanHandler.getBounds() || await a(), await this._indoor.dragPanHandler.fitBounds()) : this._indoor.dragPanHandler.panToCenter();
3656
+ if (o) {
3657
+ if (!this._indoor.dragPanHandler.getBounds() && !await a())
3658
+ return;
3659
+ await this._indoor.dragPanHandler.fitBounds();
3660
+ } else
3661
+ this._indoor.dragPanHandler.panToCenter();
3645
3662
  } else {
3646
- let l = !1, d = (this._map.getLayer("mapxus-building-line") ? this._map.queryRenderedFeatures({
3663
+ let l = !1, d = !1, u = (this._map.getLayer("mapxus-building-line") ? this._map.queryRenderedFeatures({
3647
3664
  layers: ["mapxus-building-line"]
3648
3665
  }) : []).find(
3649
3666
  (c) => c.properties?.level_ids?.includes(e)
3650
3667
  ) ?? null;
3651
- if (d && d.properties?.id === this.building?.properties?.id) {
3652
- o && !this._indoor.dragPanHandler.getBounds() && await a();
3653
- const { level_ids: c, ordinals: h } = d.properties, f = L(c).indexOf(e), p = L(h)[f] ?? null;
3654
- await this._floorsControl.switchByOrdinal(p, r);
3655
- } else {
3656
- if (d)
3657
- o && await a();
3658
- else {
3659
- const c = await ci(e), { maxLat: h, maxLon: f, minLat: p, minLon: _ } = c.bbox;
3660
- l = !0, d = c.feature, this._indoor.dragPanHandler.setBounds([
3668
+ if (!u)
3669
+ try {
3670
+ const c = await ci(e), { maxLat: f, maxLon: p, minLat: _, minLon: g } = c.bbox;
3671
+ d = !0, l = !0, u = c.feature, this._indoor.dragPanHandler.setBounds([
3672
+ g,
3661
3673
  _,
3662
3674
  p,
3663
- f,
3664
- h
3675
+ f
3665
3676
  ]);
3677
+ } catch (c) {
3678
+ console.error(
3679
+ "Failed to fetch building feature for floor:",
3680
+ e,
3681
+ c
3682
+ );
3683
+ return;
3666
3684
  }
3667
- await this._indoor.selectBuilding(d ?? null, {
3685
+ if (o && !d && !await a())
3686
+ return;
3687
+ if (!!(u && u.properties?.id === this.building?.properties?.id)) {
3688
+ const { level_ids: c, ordinals: f } = u.properties, p = L(c).indexOf(e), _ = L(f)[p] ?? null;
3689
+ await this._floorsControl.switchByOrdinal(_, r);
3690
+ } else
3691
+ await this._indoor.selectBuilding(u, {
3668
3692
  floorId: e,
3669
3693
  featureIncomplete: l
3670
3694
  });
3671
- }
3672
3695
  }
3673
3696
  }
3674
3697
  async selectSharedFloorById(e, i) {
3675
- const { dragPan: r = !0, animate: s = !0, fitBounds: n } = i || {}, o = n ?? this._fitBounds, a = async () => {
3676
- const l = await Ra(e), { maxLat: d, maxLon: u, minLat: c, minLon: h } = l?.bbox || {};
3698
+ const { dragPan: r = !0, animate: n = !0, fitBounds: s } = i || {}, o = s ?? this._fitBounds, a = async () => {
3699
+ const l = await Ra(e), { maxLat: d, maxLon: u, minLat: h, minLon: c } = l?.bbox || {};
3677
3700
  this._indoor.dragPanHandler.setBounds([
3678
- h,
3679
3701
  c,
3702
+ h,
3680
3703
  u,
3681
3704
  d
3682
3705
  ]);
3683
3706
  };
3684
- if (this._indoor.setDragPan(r), this._indoor.setFitBounds(o), this._indoor.dragPanHandler.setAnimated(s), e === this.floor?.id) {
3707
+ if (this._indoor.setDragPan(r), this._indoor.setFitBounds(o), this._indoor.dragPanHandler.setAnimated(n), e === this.floor?.id) {
3685
3708
  if (!r) return;
3686
3709
  o ? (this._indoor.dragPanHandler.getBounds() || await a(), await this._indoor.dragPanHandler.fitBounds()) : this._indoor.dragPanHandler.panToCenter();
3687
3710
  } else {
3688
3711
  let l = !1, d, u;
3689
- const c = (this._map.getLayer($) ? this._map.queryRenderedFeatures({
3712
+ const h = (this._map.getLayer($) ? this._map.queryRenderedFeatures({
3690
3713
  layers: [$]
3691
3714
  }) : []).find(
3692
- (h) => h.properties?.id === e
3715
+ (c) => c.properties?.id === e
3693
3716
  ) ?? null;
3694
- if (c)
3717
+ if (h)
3695
3718
  o && await a();
3696
3719
  else {
3697
- const h = await Ii(e);
3698
- u = It(h), l = !0;
3699
- const { maxLat: f, maxLon: p, minLat: _, minLon: g } = h?.bbox || {};
3720
+ const c = await Ii(e);
3721
+ u = It(c), l = !0;
3722
+ const { maxLat: f, maxLon: p, minLat: _, minLon: g } = c?.bbox || {};
3700
3723
  this._indoor.dragPanHandler.setBounds([
3701
3724
  g,
3702
3725
  _,
3703
3726
  p,
3704
3727
  f
3705
3728
  ]);
3706
- const y = h.sharedFloors.find(
3729
+ const y = c.sharedFloors.find(
3707
3730
  ({ id: w }) => w === e
3708
3731
  ), { id: v, name: B, ordinal: C } = y;
3709
3732
  d = { id: v, name: B, ordinal: C + "" };
3710
3733
  }
3711
3734
  if (!l) {
3712
3735
  const {
3713
- id: h,
3736
+ id: c,
3714
3737
  name: f,
3715
3738
  ordinal: p,
3716
3739
  "ref:venue": _
3717
- } = c.properties || {};
3740
+ } = h.properties || {};
3718
3741
  d = {
3719
- id: h,
3742
+ id: c,
3720
3743
  name: typeof f == "string" ? { default: f } : f,
3721
3744
  ordinal: p
3722
3745
  }, u = (this._map.getLayer("mapxus-venue-fill") ? this._map.queryRenderedFeatures({
@@ -3741,16 +3764,16 @@ let ka = class {
3741
3764
  * Default is true.
3742
3765
  */
3743
3766
  async selectBuildingById(e, i) {
3744
- const { dragPan: r = !0, animate: s = !0, fitBounds: n } = i || {}, o = n ?? this._fitBounds, a = async () => {
3745
- const l = await ot(e), { maxLat: d, maxLon: u, minLat: c, minLon: h } = l?.bbox || {};
3767
+ const { dragPan: r = !0, animate: n = !0, fitBounds: s } = i || {}, o = s ?? this._fitBounds, a = async () => {
3768
+ const l = await ot(e), { maxLat: d, maxLon: u, minLat: h, minLon: c } = l?.bbox || {};
3746
3769
  this._indoor.dragPanHandler.setBounds([
3747
- h,
3748
3770
  c,
3771
+ h,
3749
3772
  u,
3750
3773
  d
3751
3774
  ]);
3752
3775
  };
3753
- if (this._indoor.setDragPan(r), this._indoor.setFitBounds(o), this._indoor.dragPanHandler.setAnimated(s), e === this.building?.properties?.id) {
3776
+ if (this._indoor.setDragPan(r), this._indoor.setFitBounds(o), this._indoor.dragPanHandler.setAnimated(n), e === this.building?.properties?.id) {
3754
3777
  if (!r) return;
3755
3778
  o ? (this._indoor.dragPanHandler.getBounds() || await a(), await this._indoor.dragPanHandler.fitBounds()) : this._indoor.dragPanHandler.panToCenter();
3756
3779
  } else {
@@ -3762,12 +3785,12 @@ let ka = class {
3762
3785
  if (d)
3763
3786
  o && await a();
3764
3787
  else {
3765
- const u = await ot(e), { maxLat: c, maxLon: h, minLat: f, minLon: p } = u?.bbox || {};
3788
+ const u = await ot(e), { maxLat: h, maxLon: c, minLat: f, minLon: p } = u?.bbox || {};
3766
3789
  d = pi(u), l = !0, this._indoor.dragPanHandler.setBounds([
3767
3790
  p,
3768
3791
  f,
3769
- h,
3770
- c
3792
+ c,
3793
+ h
3771
3794
  ]);
3772
3795
  }
3773
3796
  await this._indoor?.selectBuilding(d, {
@@ -3786,38 +3809,38 @@ let ka = class {
3786
3809
  await this._indoor?.selectBuilding(null);
3787
3810
  return;
3788
3811
  }
3789
- const { dragPan: s = !0, animate: n = !0, fitBounds: o } = i || {}, a = o ?? this._fitBounds, l = async () => {
3790
- const d = await at(e), { maxLat: u, maxLon: c, minLat: h, minLon: f } = d?.bbox || {};
3812
+ const { dragPan: n = !0, animate: s = !0, fitBounds: o } = i || {}, a = o ?? this._fitBounds, l = async () => {
3813
+ const d = await at(e), { maxLat: u, maxLon: h, minLat: c, minLon: f } = d?.bbox || {};
3791
3814
  this._indoor.dragPanHandler.setBounds([
3792
3815
  f,
3793
- h,
3794
3816
  c,
3817
+ h,
3795
3818
  u
3796
3819
  ]);
3797
3820
  };
3798
- if (this._indoor.setDragPan(s), this._indoor.setFitBounds(a), this._indoor.dragPanHandler.setAnimated(n), e === this.venue?.properties?.id) {
3799
- if (!s) return;
3821
+ if (this._indoor.setDragPan(n), this._indoor.setFitBounds(a), this._indoor.dragPanHandler.setAnimated(s), e === this.venue?.properties?.id) {
3822
+ if (!n) return;
3800
3823
  a ? (this._indoor.dragPanHandler.getBounds() || await l(), await this._indoor.dragPanHandler.fitBounds()) : this._indoor.dragPanHandler.panToCenter();
3801
3824
  } else {
3802
3825
  const d = this._history.getHistoryBuildingUnit(e);
3803
3826
  if (d) {
3804
- const { id: u, type: c } = d;
3805
- c === "building" ? await this.selectBuildingById(u, i) : await this.selectSharedFloorById(u, i);
3827
+ const { id: u, type: h } = d;
3828
+ h === "building" ? await this.selectBuildingById(u, i) : await this.selectSharedFloorById(u, i);
3806
3829
  } else {
3807
3830
  const u = (this._map.getLayer("mapxus-venue-fill") ? this._map.queryRenderedFeatures({
3808
3831
  layers: ["mapxus-venue-fill"]
3809
3832
  }) : []).find(
3810
- (h) => h.properties?.id === e
3833
+ (c) => c.properties?.id === e
3811
3834
  ) ?? null;
3812
- let c;
3835
+ let h;
3813
3836
  if (u) {
3814
- const { default_displayed_building: h, building_ids: f } = u.properties;
3815
- c = h || L(f)[0];
3837
+ const { default_displayed_building: c, building_ids: f } = u.properties;
3838
+ h = c || L(f)[0];
3816
3839
  } else {
3817
- const h = await at(e);
3818
- c = h.defaultBuilding || h.buildings[0]?.id;
3840
+ const c = await at(e);
3841
+ h = c.defaultBuilding || c.buildings[0]?.id;
3819
3842
  }
3820
- await this.selectBuildingById(c, i);
3843
+ await this.selectBuildingById(h, i);
3821
3844
  }
3822
3845
  }
3823
3846
  }
@@ -3882,15 +3905,15 @@ let ka = class {
3882
3905
  const {
3883
3906
  map: i,
3884
3907
  poiId: r,
3885
- sharedFloorId: s,
3886
- floorId: n,
3908
+ sharedFloorId: n,
3909
+ floorId: s,
3887
3910
  buildingId: o,
3888
3911
  venueId: a,
3889
3912
  theme: l = Zi.MAPXUS_DEFAULT,
3890
3913
  floorSelectorEnabled: d,
3891
3914
  buildingSelectorEnabled: u,
3892
- outdoorMapShown: c = !0,
3893
- collapseCopyright: h = !1,
3915
+ outdoorMapShown: h = !0,
3916
+ collapseCopyright: c = !1,
3894
3917
  maskNonSelectedAreas: f = !1,
3895
3918
  fitBuildingBounds: p,
3896
3919
  fitBounds: _,
@@ -3907,8 +3930,8 @@ let ka = class {
3907
3930
  } = e;
3908
3931
  this._map = i, this._fitBounds = _ ?? p ?? !1, this._indoor = new Gi({
3909
3932
  map: this._map,
3910
- startWithIndoorView: !!(a || o || n || r || s),
3911
- outdoorMapShown: c,
3933
+ startWithIndoorView: !!(a || o || s || r || n),
3934
+ outdoorMapShown: h,
3912
3935
  fitBounds: this._fitBounds,
3913
3936
  boundsPadding: g,
3914
3937
  maskNonSelectedAreas: f,
@@ -3916,7 +3939,7 @@ let ka = class {
3916
3939
  enableIndoorClickSelection: E,
3917
3940
  enableOutdoorClickSelection: x,
3918
3941
  floorSwitchScope: P
3919
- }), this._poi = new Yi(this._map), this._transformRequestHandler = w, this._resourceRequestTransform(), this._installRtlTextPlugin(), this._setStyle(tt(l)), X.setTheme(l), this._checkMapZoom(), h ? this._attributionControl = new Aa() : (this._attributionControl = new Ma({
3942
+ }), this._poi = new Yi(this._map), this._transformRequestHandler = w, this._resourceRequestTransform(), this._installRtlTextPlugin(), this._setStyle(tt(l)), X.setTheme(l), this._checkMapZoom(), c ? this._attributionControl = new Aa() : (this._attributionControl = new Ma({
3920
3943
  theme: l
3921
3944
  }), this._addControl(new Oa({ enabled: b }))), this._addControl(this._attributionControl), this._addControl(
3922
3945
  this._buildingFilterControl = new Wi(
@@ -3929,10 +3952,10 @@ let ka = class {
3929
3952
  style: v,
3930
3953
  enabled: d
3931
3954
  })
3932
- ), r ? this._selectPoiById(r) : n ? this.selectFloorById(n, { animate: !1 }) : o ? this.selectBuildingById(o, { animate: !1 }) : a ? this.selectVenueById(a, { animate: !1 }) : s && this.selectSharedFloorById(s, { animate: !1 }), this.switchOutdoor = new ir(this._indoor), this.switchBuilding = new tr(this._indoor), this.outdoorClickSelection = new nr(this._indoor), this.indoorClickSelection = new rr(this._indoor), this.buildingSelector = new Ji(
3955
+ ), r ? this._selectPoiById(r) : s ? this.selectFloorById(s, { animate: !1 }) : o ? this.selectBuildingById(o, { animate: !1 }) : a ? this.selectVenueById(a, { animate: !1 }) : n && this.selectSharedFloorById(n, { animate: !1 }), this.switchOutdoor = new ir(this._indoor), this.switchBuilding = new tr(this._indoor), this.outdoorClickSelection = new sr(this._indoor), this.indoorClickSelection = new rr(this._indoor), this.buildingSelector = new Ji(
3933
3956
  this._buildingFilterControl
3934
3957
  ), this.floorSelector = new er(this._floorsControl), this._map.once("styledata", () => this.setLanguage(B)), this._map.on("remove", () => this._destroy()), this._map.on("error", (I) => this._updatePermission(I)), this._indoor.once(ht, () => {
3935
- C && this._map.on("moveend", () => this._selectCenterBuilding()), this._bindMapClickListener(), this._dispatch.call(nt);
3958
+ C && this._map.on("moveend", () => this._selectCenterBuilding()), this._bindMapClickListener(), this._dispatch.call(st);
3936
3959
  });
3937
3960
  }
3938
3961
  _setStyle(e, i) {
@@ -3946,10 +3969,10 @@ let ka = class {
3946
3969
  }
3947
3970
  async _selectPoiById(e) {
3948
3971
  try {
3949
- const i = await Tr(e), { lon: r, lat: s } = i.location;
3972
+ const i = await Tr(e), { lon: r, lat: n } = i.location;
3950
3973
  "floorId" in i ? await this.selectFloorById(i.floorId, { animate: !1 }) : "sharedFloorId" in i && await this.selectSharedFloorById(i.sharedFloorId, {
3951
3974
  animate: !1
3952
- }), this._map.panTo([r, s], { animate: !1 });
3975
+ }), this._map.panTo([r, n], { animate: !1 });
3953
3976
  } catch (i) {
3954
3977
  this._dispatchErrorGlobal("initError", i);
3955
3978
  }
@@ -3958,14 +3981,14 @@ let ka = class {
3958
3981
  _resourceRequestTransform() {
3959
3982
  this._map.setTransformRequest(
3960
3983
  (e, i) => {
3961
- const { host: r } = new URL(e), s = r.includes("map-api") && r.includes("mapxus"), n = vr();
3962
- return s ? {
3984
+ const { host: r } = new URL(e), n = r.includes("map-api") && r.includes("mapxus"), s = vr();
3985
+ return n ? {
3963
3986
  url: e,
3964
3987
  headers: {
3965
3988
  "Content-Type": "application/json",
3966
3989
  sdkVersion: `web-${$t.MapSDK}/${gr}`,
3967
- identifier: n.identifier,
3968
- token: n.token
3990
+ identifier: s.identifier,
3991
+ token: s.token
3969
3992
  }
3970
3993
  } : this._transformRequestHandler ? this._transformRequestHandler(e, i) : { url: e };
3971
3994
  }
@@ -3988,10 +4011,10 @@ let ka = class {
3988
4011
  if (!e.size) return;
3989
4012
  let i = e.entries().next().value[1];
3990
4013
  const r = this._history.getVisitedBuildingUnits().reverse();
3991
- for (const s of r) {
3992
- const { id: n } = s;
3993
- if (e.get(n)) {
3994
- i = s;
4014
+ for (const n of r) {
4015
+ const { id: s } = n;
4016
+ if (e.get(s)) {
4017
+ i = n;
3995
4018
  break;
3996
4019
  }
3997
4020
  }
@@ -4002,14 +4025,14 @@ let ka = class {
4002
4025
  * @returns Map<buildingId, buildingFeature>
4003
4026
  */
4004
4027
  _getCenterBuildingUnitsMap() {
4005
- const e = this._map.getCanvas().getBoundingClientRect(), i = e.width / 4, r = e.height / 4, s = [i, r], n = [
4028
+ const e = this._map.getCanvas().getBoundingClientRect(), i = e.width / 4, r = e.height / 4, n = [i, r], s = [
4006
4029
  e.width - i,
4007
4030
  e.height - r
4008
4031
  ], o = [
4009
4032
  "mapxus-building-line",
4010
4033
  $
4011
4034
  ].filter((u) => this._map.getLayer(u)), a = this._map.queryRenderedFeatures(
4012
- [s, n],
4035
+ [n, s],
4013
4036
  {
4014
4037
  layers: o
4015
4038
  }
@@ -4018,12 +4041,12 @@ let ka = class {
4018
4041
  );
4019
4042
  return new globalThis.Map(
4020
4043
  d.map((u) => {
4021
- const { properties: c } = u;
4044
+ const { properties: h } = u;
4022
4045
  return [
4023
- `${c.id}`,
4046
+ `${h.id}`,
4024
4047
  {
4025
- id: c.id,
4026
- type: c.building ? "building" : "sharedFloor"
4048
+ id: h.id,
4049
+ type: h.building ? "building" : "sharedFloor"
4027
4050
  }
4028
4051
  ];
4029
4052
  })
@@ -4031,18 +4054,18 @@ let ka = class {
4031
4054
  }
4032
4055
  _bindMapClickListener() {
4033
4056
  this._map.on("click", async (e) => {
4034
- const { point: i, lngLat: r } = e, s = this._indoor.queryIndoorInfoByPoint(i);
4035
- await this._indoor.selectByClickMap(s), this._dispatch.call(rt, null, {
4057
+ const { point: i, lngLat: r } = e, n = this._indoor.queryIndoorInfoByPoint(i);
4058
+ await this._indoor.selectByClickMap(n), this._dispatch.call(rt, null, {
4036
4059
  point: i,
4037
4060
  coordinate: r
4038
- }), this._dispatch.call(it, null, s);
4061
+ }), this._dispatch.call(it, null, n);
4039
4062
  });
4040
4063
  }
4041
4064
  _dispatchErrorGlobal(e, i) {
4042
4065
  const r = X.getGlobalDispatcher();
4043
4066
  if (!r) return;
4044
- const s = i.response?.status || i.status || "unknown", n = i.response?.data?.message || i.message || "unknown";
4045
- r.call(e, null, { status: s, message: n });
4067
+ const n = i.response?.status || i.status || "unknown", s = i.response?.data?.message || i.message || "unknown";
4068
+ r.call(e, null, { status: n, message: s });
4046
4069
  }
4047
4070
  _installRtlTextPlugin() {
4048
4071
  xt.getRTLTextPluginStatus() === "unavailable" && xt.setRTLTextPlugin(
@@ -4162,29 +4185,29 @@ class Da {
4162
4185
  * update: Array of features to update, the new properties will replace the old ones.
4163
4186
  */
4164
4187
  updateData(e) {
4165
- const i = !!(e.remove && e.remove.length), r = !!(e.add && e.add.length), s = !!(e.update && e.update.length), n = this._maplibreMap.getSource(
4188
+ const i = !!(e.remove && e.remove.length), r = !!(e.add && e.add.length), n = !!(e.update && e.update.length), s = this._maplibreMap.getSource(
4166
4189
  this._sourceId
4167
4190
  );
4168
- if (!i && !r && !s || !n) return;
4191
+ if (!i && !r && !n || !s) return;
4169
4192
  const o = {};
4170
4193
  i && (o.remove = e.remove), r && (o.add = e.add.map(
4171
4194
  (a) => this._createIconFeature(a)
4172
- )), s && (o.update = e.update.map((a) => {
4173
- const l = this._createIconFeature(a), { id: d, geometry: u, properties: c } = l;
4195
+ )), n && (o.update = e.update.map((a) => {
4196
+ const l = this._createIconFeature(a), { id: d, geometry: u, properties: h } = l;
4174
4197
  return {
4175
4198
  id: d,
4176
4199
  ...u && { newGeometry: u },
4177
- ...c && {
4178
- addOrUpdateProperties: Object.entries(c).map(
4179
- ([h, f]) => ({
4180
- key: h,
4200
+ ...h && {
4201
+ addOrUpdateProperties: Object.entries(h).map(
4202
+ ([c, f]) => ({
4203
+ key: c,
4181
4204
  value: f
4182
4205
  })
4183
4206
  )
4184
4207
  },
4185
- ...!u && !c && { removeAllProperties: !0 }
4208
+ ...!u && !h && { removeAllProperties: !0 }
4186
4209
  };
4187
- })), n.updateData(o);
4210
+ })), s.updateData(o);
4188
4211
  }
4189
4212
  /**
4190
4213
  * Remove marker[s] layer and source.
@@ -4198,13 +4221,13 @@ class Da {
4198
4221
  * @param callback
4199
4222
  */
4200
4223
  on(e, i) {
4201
- const r = (n) => this._handleEventListener(n, i), { unsubscribe: s } = this._maplibreMap.on(
4224
+ const r = (s) => this._handleEventListener(s, i), { unsubscribe: n } = this._maplibreMap.on(
4202
4225
  e,
4203
4226
  this._layerId,
4204
4227
  r
4205
4228
  );
4206
4229
  return {
4207
- off: s
4230
+ off: n
4208
4231
  };
4209
4232
  }
4210
4233
  /**
@@ -4286,7 +4309,7 @@ class Da {
4286
4309
  */
4287
4310
  setOpacityByVenue(e, i, r) {
4288
4311
  if (this._maplibreMap.getLayer(this._layerId)) {
4289
- const s = [
4312
+ const n = [
4290
4313
  "case",
4291
4314
  [
4292
4315
  "all",
@@ -4305,7 +4328,7 @@ class Da {
4305
4328
  this._maplibreMap.setPaintProperty(
4306
4329
  this._layerId,
4307
4330
  "icon-opacity",
4308
- s
4331
+ n
4309
4332
  );
4310
4333
  }
4311
4334
  }
@@ -4320,7 +4343,7 @@ class Da {
4320
4343
  */
4321
4344
  setOpacityByBuilding(e, i, r) {
4322
4345
  if (this._maplibreMap.getLayer(this._layerId)) {
4323
- const s = [
4346
+ const n = [
4324
4347
  "case",
4325
4348
  [
4326
4349
  "all",
@@ -4339,7 +4362,7 @@ class Da {
4339
4362
  this._maplibreMap.setPaintProperty(
4340
4363
  this._layerId,
4341
4364
  "icon-opacity",
4342
- s
4365
+ n
4343
4366
  );
4344
4367
  }
4345
4368
  }
@@ -4382,17 +4405,17 @@ class Da {
4382
4405
  });
4383
4406
  }
4384
4407
  _handleEventListener(e, i) {
4385
- const { point: r } = e, s = this._maplibreMap.queryRenderedFeatures(r, {
4408
+ const { point: r } = e, n = this._maplibreMap.queryRenderedFeatures(r, {
4386
4409
  layers: [this._layerId]
4387
4410
  });
4388
- i(s[0]);
4411
+ i(n[0]);
4389
4412
  }
4390
4413
  }
4391
4414
  function Ae(t) {
4392
4415
  var e = t == null ? 0 : t.length;
4393
4416
  return e ? t[e - 1] : void 0;
4394
4417
  }
4395
- const st = {
4418
+ const nt = {
4396
4419
  indoorLineColor: "#45b1cc",
4397
4420
  outdoorLineColor: "#8183ba",
4398
4421
  dashedLineColor: "#969696",
@@ -4413,11 +4436,11 @@ const st = {
4413
4436
  size: 0.25,
4414
4437
  spacing: 1
4415
4438
  }
4416
- }, Te = "mmws-source-line-solid", ae = "mmws-layer-line-solid", le = "mmws-layer-icon-line-symbol", ft = "mmws-source-line-dashed", Q = "mmws-layer-line-dashed", pt = "mmws-source-icon-connector", sr = "mmws-layer-icon-connector", ke = "mmws-source-icon-marker", gt = "mmws-layer-icon-marker", hi = [
4439
+ }, Te = "mmws-source-line-solid", ae = "mmws-layer-line-solid", le = "mmws-layer-icon-line-symbol", ft = "mmws-source-line-dashed", Q = "mmws-layer-line-dashed", pt = "mmws-source-icon-connector", nr = "mmws-layer-icon-connector", ke = "mmws-source-icon-marker", gt = "mmws-layer-icon-marker", hi = [
4417
4440
  ae,
4418
4441
  le,
4419
4442
  Q,
4420
- sr,
4443
+ nr,
4421
4444
  gt
4422
4445
  ], Ha = [
4423
4446
  Te,
@@ -4427,7 +4450,7 @@ const st = {
4427
4450
  ];
4428
4451
  class Na {
4429
4452
  _maplibreMap;
4430
- _routeStyle = st;
4453
+ _routeStyle = nt;
4431
4454
  _styleDiffs = {};
4432
4455
  _filterBy = "venue";
4433
4456
  _curVenue = null;
@@ -4522,23 +4545,23 @@ class Na {
4522
4545
  render(e, i) {
4523
4546
  if (!this._renderBoundaryLayer) {
4524
4547
  const d = this._maplibreMap.getStyle(), u = vt(d);
4525
- let c = u.find(
4526
- ({ type: h, id: f }) => !f.includes("-overlap-copy") && h === "fill-extrusion"
4548
+ let h = u.find(
4549
+ ({ type: c, id: f }) => !f.includes("-overlap-copy") && c === "fill-extrusion"
4527
4550
  );
4528
- c || (c = u.find(
4529
- (h) => h.type === "symbol" && h?.["source-layer"] === "mapxus_place"
4530
- )), this._renderBoundaryLayer = c?.id;
4551
+ h || (h = u.find(
4552
+ (c) => c.type === "symbol" && c?.["source-layer"] === "mapxus_place"
4553
+ )), this._renderBoundaryLayer = h?.id;
4531
4554
  }
4532
4555
  const {
4533
4556
  instructions: r,
4534
- points: { coordinates: s }
4557
+ points: { coordinates: n }
4535
4558
  } = e, {
4536
- lineFeatures: n,
4559
+ lineFeatures: s,
4537
4560
  connectorFeatures: o,
4538
4561
  dashedLineFeatures: a,
4539
4562
  markerFeatures: l
4540
- } = this._classifyFeatures(r, s, i);
4541
- this._renderSolidLines(n), this._renderLineSymbols(Te, le), this._routeStyle.disableDashedLine !== !0 && this._renderDashedLines(a), this._renderConnectors(o), this._renderMarkers(l);
4563
+ } = this._classifyFeatures(r, n, i);
4564
+ this._renderSolidLines(s), this._renderLineSymbols(Te, le), this._routeStyle.disableDashedLine !== !0 && this._renderDashedLines(a), this._renderConnectors(o), this._renderMarkers(l);
4542
4565
  }
4543
4566
  /**
4544
4567
  * Remove route from the map.
@@ -4567,7 +4590,7 @@ class Na {
4567
4590
  this._filterBy = "building", this._curBuilding = e ?? null, this._curOrdinal = i ?? null, this._filterRouteOpacity();
4568
4591
  }
4569
4592
  _classifyFeatures(e, i, r) {
4570
- const s = [], n = [], o = [], a = [], l = [];
4593
+ const n = [], s = [], o = [], a = [], l = [];
4571
4594
  e.forEach((x, P) => {
4572
4595
  const {
4573
4596
  venue_id: I,
@@ -4581,9 +4604,9 @@ class Na {
4581
4604
  if (ja(W))
4582
4605
  l.push(x);
4583
4606
  else if (Ua(W)) {
4584
- P !== 0 && P !== e.length - 1 && n.push(
4607
+ P !== 0 && P !== e.length - 1 && s.push(
4585
4608
  this._createIconFeature(
4586
- `connector-${n.length}`,
4609
+ `connector-${s.length}`,
4587
4610
  i[xe],
4588
4611
  {
4589
4612
  ...H({
@@ -4604,9 +4627,9 @@ class Na {
4604
4627
  floor_id: ur,
4605
4628
  ordinal: cr
4606
4629
  } = Ct;
4607
- n.push(
4630
+ s.push(
4608
4631
  this._createIconFeature(
4609
- `connector-${n.length}`,
4632
+ `connector-${s.length}`,
4610
4633
  i[ye],
4611
4634
  {
4612
4635
  ...H({
@@ -4621,9 +4644,9 @@ class Na {
4621
4644
  );
4622
4645
  }
4623
4646
  } else
4624
- s.push(
4647
+ n.push(
4625
4648
  this._createLineFeature(
4626
- `solid-line-${s.length}`,
4649
+ `solid-line-${n.length}`,
4627
4650
  i.slice(xe, ye + 1),
4628
4651
  H({
4629
4652
  venue_id: I,
@@ -4637,8 +4660,8 @@ class Na {
4637
4660
  });
4638
4661
  const d = e[0], {
4639
4662
  venue_id: u,
4640
- building_id: c,
4641
- floor_id: h,
4663
+ building_id: h,
4664
+ floor_id: c,
4642
4665
  ordinal: f
4643
4666
  } = d, p = e[e.length - 1], {
4644
4667
  venue_id: _,
@@ -4652,8 +4675,8 @@ class Na {
4652
4675
  [w, B],
4653
4676
  H({
4654
4677
  venue_id: u,
4655
- building_id: c,
4656
- floor_id: h,
4678
+ building_id: h,
4679
+ floor_id: c,
4657
4680
  ordinal: f
4658
4681
  })
4659
4682
  )
@@ -4712,8 +4735,8 @@ class Na {
4712
4735
  {
4713
4736
  ...H({
4714
4737
  venue_id: u,
4715
- building_id: c,
4716
- floor_id: h,
4738
+ building_id: h,
4739
+ floor_id: c,
4717
4740
  ordinal: f,
4718
4741
  markerType: "from"
4719
4742
  }),
@@ -4738,8 +4761,8 @@ class Na {
4738
4761
  }
4739
4762
  )
4740
4763
  ), {
4741
- lineFeatures: s,
4742
- connectorFeatures: n,
4764
+ lineFeatures: n,
4765
+ connectorFeatures: s,
4743
4766
  dashedLineFeatures: o,
4744
4767
  markerFeatures: a
4745
4768
  };
@@ -4793,7 +4816,7 @@ class Na {
4793
4816
  });
4794
4817
  }
4795
4818
  _renderConnectors(e) {
4796
- this._addCollectionSource(pt, e), this._addIconLayer(pt, sr);
4819
+ this._addCollectionSource(pt, e), this._addIconLayer(pt, nr);
4797
4820
  }
4798
4821
  _renderMarkers(e) {
4799
4822
  this._addCollectionSource(ke, e), this._addIconLayer(ke, gt, {
@@ -4873,29 +4896,29 @@ class Na {
4873
4896
  _updateStyleProperties(e) {
4874
4897
  if (this._styleDiffs = or(
4875
4898
  this._routeStyle,
4876
- e ?? st
4899
+ e ?? nt
4877
4900
  ), !e)
4878
- this._routeStyle = st;
4901
+ this._routeStyle = nt;
4879
4902
  else if (Object.keys(this._styleDiffs).length) {
4880
4903
  const i = {
4881
4904
  ...this._routeStyle.lineSymbol,
4882
4905
  ...this._styleDiffs.lineSymbol ?? {}
4883
4906
  }, r = this._styleDiffs.markers;
4884
- let s = this._routeStyle.markers;
4885
- const n = {
4907
+ let n = this._routeStyle.markers;
4908
+ const s = {
4886
4909
  outdoorLineOpacity: (this._styleDiffs.outdoorLineOpacity > 1 ? 1 : this._styleDiffs.outdoorLineOpacity < 0 ? 0 : this._styleDiffs.outdoorLineOpacity) ?? this._routeStyle.outdoorLineOpacity
4887
4910
  }, o = {
4888
4911
  inactiveRouteOpacity: (this._styleDiffs.inactiveRouteOpacity > 1 ? 1 : this._styleDiffs.inactiveRouteOpacity < 0 ? 0 : this._styleDiffs.inactiveRouteOpacity) ?? this._routeStyle.inactiveRouteOpacity
4889
4912
  };
4890
- r && Object.keys(r).length && (s = {
4891
- ...s,
4913
+ r && Object.keys(r).length && (n = {
4914
+ ...n,
4892
4915
  ...r
4893
4916
  }), this._routeStyle = {
4894
4917
  ...this._routeStyle,
4895
4918
  ...this._styleDiffs,
4896
- ...n,
4919
+ ...s,
4897
4920
  ...o,
4898
- markers: s,
4921
+ markers: n,
4899
4922
  lineSymbol: i
4900
4923
  };
4901
4924
  }
@@ -4903,9 +4926,9 @@ class Na {
4903
4926
  async _loadMarkerIcons() {
4904
4927
  const { markers: e, lineSymbol: i } = this._styleDiffs;
4905
4928
  if (i?.image && await Le(this._maplibreMap, i.image), e && Object.keys(e).length) {
4906
- const { from: r, to: s, stops: n } = e;
4907
- if (r && await Le(this._maplibreMap, r), s && await Le(this._maplibreMap, s), n && n.length) {
4908
- const o = n.filter((a) => !!a);
4929
+ const { from: r, to: n, stops: s } = e;
4930
+ if (r && await Le(this._maplibreMap, r), n && await Le(this._maplibreMap, n), s && s.length) {
4931
+ const o = s.filter((a) => !!a);
4909
4932
  o.length && await Promise.all(
4910
4933
  o.map((a) => Le(this._maplibreMap, a))
4911
4934
  );
@@ -4918,27 +4941,27 @@ class Na {
4918
4941
  indoorLineColor: e,
4919
4942
  outdoorLineColor: i,
4920
4943
  dashedLineColor: r,
4921
- shuttleBusLineColor: s,
4922
- lineWidth: n,
4944
+ shuttleBusLineColor: n,
4945
+ lineWidth: s,
4923
4946
  dashedLineWidth: o,
4924
4947
  disableDashedLine: a,
4925
4948
  inactiveRouteOpacity: l,
4926
4949
  outdoorLineOpacity: d,
4927
4950
  markerIconSize: u,
4928
- markers: c,
4929
- lineSymbol: h
4951
+ markers: h,
4952
+ lineSymbol: c
4930
4953
  } = this._styleDiffs;
4931
- if ((e || i || s) && this._maplibreMap.setPaintProperty(ae, "line-color", [
4954
+ if ((e || i || n) && this._maplibreMap.setPaintProperty(ae, "line-color", [
4932
4955
  "case",
4933
4956
  ["==", ["get", "isShuttleBus"], "1"],
4934
4957
  this._routeStyle.shuttleBusLineColor,
4935
4958
  ["==", ["get", "floor_id"], null],
4936
4959
  this._routeStyle.outdoorLineColor,
4937
4960
  this._routeStyle.indoorLineColor
4938
- ]), n !== void 0 && n + "" && this._maplibreMap.setPaintProperty(
4961
+ ]), s !== void 0 && s + "" && this._maplibreMap.setPaintProperty(
4939
4962
  ae,
4940
4963
  "line-width",
4941
- n
4964
+ s
4942
4965
  ), typeof a == "boolean" ? a ? this._maplibreMap.setPaintProperty(
4943
4966
  Q,
4944
4967
  "line-color",
@@ -4963,8 +4986,8 @@ class Na {
4963
4986
  gt,
4964
4987
  "icon-size",
4965
4988
  u
4966
- ), c && Object.keys(c).length) {
4967
- const { from: f, to: p, stops: _ } = c, g = this._maplibreMap.getSource(
4989
+ ), h && Object.keys(h).length) {
4990
+ const { from: f, to: p, stops: _ } = h, g = this._maplibreMap.getSource(
4968
4991
  ke
4969
4992
  ), y = await g.getData();
4970
4993
  y.features = y.features.map((v) => {
@@ -4976,8 +4999,8 @@ class Na {
4976
4999
  return v;
4977
5000
  }), g.setData(y);
4978
5001
  }
4979
- if (h) {
4980
- const { image: f, size: p, spacing: _ } = h;
5002
+ if (c) {
5003
+ const { image: f, size: p, spacing: _ } = c;
4981
5004
  f !== void 0 && this._maplibreMap.setLayoutProperty(
4982
5005
  le,
4983
5006
  "icon-image",
@@ -5077,20 +5100,20 @@ function Va(t) {
5077
5100
  function or(t, e) {
5078
5101
  const i = {};
5079
5102
  for (const r in e) {
5080
- const s = t[r], n = e[r];
5103
+ const n = t[r], s = e[r];
5081
5104
  if (r === "markers" || r === "lineSymbol")
5082
- if (Array.isArray(n)) {
5083
- const o = n.slice(1, n.length - 1);
5105
+ if (Array.isArray(s)) {
5106
+ const o = s.slice(1, s.length - 1);
5084
5107
  i[r] = {
5085
- from: n[0],
5086
- to: Ae(n),
5087
- stops: o.length ? o : [n[0]]
5108
+ from: s[0],
5109
+ to: Ae(s),
5110
+ stops: o.length ? o : [s[0]]
5088
5111
  };
5089
5112
  } else {
5090
- const o = or(s, n);
5113
+ const o = or(n, s);
5091
5114
  Object.keys(o).length && (i[r] = o);
5092
5115
  }
5093
- else n + "" != s + "" && (i[r] = r === "stops" ? n ?? [null] : n);
5116
+ else s + "" != n + "" && (i[r] = r === "stops" ? s ?? [null] : s);
5094
5117
  }
5095
5118
  return i;
5096
5119
  }
@@ -5104,7 +5127,7 @@ class za {
5104
5127
  * @param options {IRouteSearchOptions}
5105
5128
  */
5106
5129
  async search(e) {
5107
- const { points: i, vehicle: r = ar.FOOT, locale: s = "en" } = e;
5130
+ const { points: i, vehicle: r = ar.FOOT, locale: n = "en" } = e;
5108
5131
  if (!(i && i.length > 1 && i.length < 6))
5109
5132
  throw new Error(
5110
5133
  "Parameter error. It must be 1 < {points.length} < 6"
@@ -5116,7 +5139,7 @@ class za {
5116
5139
  body: JSON.stringify({
5117
5140
  points: i,
5118
5141
  vehicle: r,
5119
- locale: s
5142
+ locale: n
5120
5143
  })
5121
5144
  });
5122
5145
  }
@@ -5169,7 +5192,7 @@ const tl = {
5169
5192
  /** @deprecated */
5170
5193
  SwitchOutdoorHandler: ir,
5171
5194
  IndoorClickSelection: rr,
5172
- OutdoorClickSelection: nr,
5195
+ OutdoorClickSelection: sr,
5173
5196
  VenuesService: mi,
5174
5197
  BuildingsService: bi,
5175
5198
  PoisService: yi,
@@ -5191,7 +5214,7 @@ export {
5191
5214
  ka as Map,
5192
5215
  Da as Marker,
5193
5216
  gi as OrientationDistanceSearchType,
5194
- nr as OutdoorClickSelection,
5217
+ sr as OutdoorClickSelection,
5195
5218
  Yi as Poi,
5196
5219
  Fr as PoisOrderBy,
5197
5220
  yi as PoisService,