@aapicoits/powermap-web-sdk 1.2.2 → 1.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,9 +1,9 @@
1
1
  var Fo = Object.defineProperty;
2
- var Ro = (o, e, t) => e in o ? Fo(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
3
- var Ie = (o, e, t) => Ro(o, typeof e != "symbol" ? e + "" : e, t);
4
- import Y from "maplibre-gl";
2
+ var Oo = (o, e, t) => e in o ? Fo(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
3
+ var Ie = (o, e, t) => Oo(o, typeof e != "symbol" ? e + "" : e, t);
4
+ import z from "maplibre-gl";
5
5
  import * as G from "three";
6
- import { TrianglesDrawMode as Oo, TriangleFanDrawMode as wt, TriangleStripDrawMode as Jr, Loader as Qo, LoaderUtils as Oe, FileLoader as Xr, MeshPhysicalMaterial as ge, Vector2 as Zr, Color as xe, LinearSRGBColorSpace as he, SRGBColorSpace as Qe, SpotLight as Go, PointLight as Uo, DirectionalLight as Yo, Matrix4 as We, Vector3 as Be, Quaternion as _r, InstancedMesh as Ho, InstancedBufferAttribute as zo, Object3D as $r, TextureLoader as jo, ImageBitmapLoader as Ko, BufferAttribute as lt, InterleavedBuffer as Vo, InterleavedBufferAttribute as qo, LinearMipmapLinearFilter as eo, NearestMipmapLinearFilter as Wo, LinearMipmapNearestFilter as Jo, NearestMipmapNearestFilter as Xo, LinearFilter as to, NearestFilter as Zo, RepeatWrapping as vt, MirroredRepeatWrapping as _o, ClampToEdgeWrapping as $o, PointsMaterial as ei, Material as ct, LineBasicMaterial as ti, MeshStandardMaterial as ro, DoubleSide as ri, MeshBasicMaterial as Re, PropertyBinding as oi, BufferGeometry as ii, SkinnedMesh as ni, Mesh as si, LineSegments as ai, Line as li, LineLoop as ci, Points as ui, Group as ut, PerspectiveCamera as di, MathUtils as pi, OrthographicCamera as hi, Skeleton as gi, AnimationClip as fi, Bone as mi, InterpolateDiscrete as Ai, InterpolateLinear as oo, Texture as Xt, VectorKeyframeTrack as Zt, NumberKeyframeTrack as _t, QuaternionKeyframeTrack as $t, ColorManagement as er, FrontSide as yi, Interpolant as bi, Box3 as wi, Sphere as vi } from "three";
6
+ import { TrianglesDrawMode as Ro, TriangleFanDrawMode as wt, TriangleStripDrawMode as Jr, Loader as Qo, LoaderUtils as Re, FileLoader as Xr, MeshPhysicalMaterial as ge, Vector2 as Zr, Color as xe, LinearSRGBColorSpace as he, SRGBColorSpace as Qe, SpotLight as Go, PointLight as Uo, DirectionalLight as Yo, Matrix4 as We, Vector3 as Be, Quaternion as _r, InstancedMesh as Ho, InstancedBufferAttribute as zo, Object3D as $r, TextureLoader as jo, ImageBitmapLoader as Ko, BufferAttribute as lt, InterleavedBuffer as Vo, InterleavedBufferAttribute as qo, LinearMipmapLinearFilter as eo, NearestMipmapLinearFilter as Wo, LinearMipmapNearestFilter as Jo, NearestMipmapNearestFilter as Xo, LinearFilter as to, NearestFilter as Zo, RepeatWrapping as vt, MirroredRepeatWrapping as _o, ClampToEdgeWrapping as $o, PointsMaterial as ei, Material as ct, LineBasicMaterial as ti, MeshStandardMaterial as ro, DoubleSide as ri, MeshBasicMaterial as Oe, PropertyBinding as oi, BufferGeometry as ii, SkinnedMesh as ni, Mesh as si, LineSegments as ai, Line as li, LineLoop as ci, Points as ui, Group as ut, PerspectiveCamera as di, MathUtils as pi, OrthographicCamera as hi, Skeleton as gi, AnimationClip as fi, Bone as mi, InterpolateDiscrete as Ai, InterpolateLinear as oo, Texture as Xt, VectorKeyframeTrack as Zt, NumberKeyframeTrack as _t, QuaternionKeyframeTrack as $t, ColorManagement as er, FrontSide as yi, Interpolant as bi, Box3 as wi, Sphere as vi } from "three";
7
7
  const C = {
8
8
  INVALID_PARAMETERS: "INVALID_PARAMETERS",
9
9
  AUTHENTICATION_FAILED: "AUTHENTICATION_FAILED",
@@ -203,64 +203,72 @@ class Bi {
203
203
  t.startsWith("http") || (r = `${e.mapBaseUrl || "https://maps.powermap.live"}/api/v2/map/vtile/styles?name=${t}`);
204
204
  const i = typeof e.container == "string" ? document.getElementById(e.container) : e.container;
205
205
  if (i && (i.classList.add("powermap-sdk"), e.previewOnly && i.classList.add("pm-preview-only")), !document.getElementById("powermap-sdk-styles")) {
206
- const a = document.createElement("style");
207
- a.id = "powermap-sdk-styles", a.textContent = `
206
+ const s = document.createElement("style");
207
+ s.id = "powermap-sdk-styles", s.textContent = `
208
208
  ${Mi}
209
209
  ${Ii}
210
- `, document.head.appendChild(a);
210
+ `, document.head.appendChild(s);
211
211
  }
212
212
  if (!document.getElementById("pm-font-awesome")) {
213
- const a = document.createElement("link");
214
- a.id = "pm-font-awesome", a.rel = "stylesheet", a.href = "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css", document.head.appendChild(a);
213
+ const s = document.createElement("link");
214
+ s.id = "pm-font-awesome", s.rel = "stylesheet", s.href = "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css", document.head.appendChild(s);
215
215
  }
216
216
  try {
217
- this.map = new Y.Map({
217
+ this.map = new z.Map({
218
218
  container: e.container,
219
219
  style: r,
220
220
  center: e.center || [100.5018, 13.7563],
221
221
  zoom: e.zoom || 14,
222
222
  attributionControl: !1,
223
223
  interactive: !e.previewOnly,
224
- transformRequest: (a, l) => this.authManager.transformRequest(a, l)
224
+ transformRequest: (s, a) => this.authManager.transformRequest(s, a)
225
225
  });
226
- } catch (a) {
227
- throw new w(`Failed to initialize Visual Engine: ${a.message}`, C.UNKNOWN, "map", { originalError: a });
228
- }
229
- const n = '<a href="https://www.powermap.in.th/en/PowerM/map" target="_blank" class="pm-attrib-link">&copy; PowerMAP </a>', s = '<a href="https://maplibre.org/" target="_blank" class="ml-attrib-link">&copy; MapLibre</a>';
230
- this.map.addControl(new Y.AttributionControl({
231
- compact: !1,
232
- customAttribution: `${n} ${s}`
233
- })), this.map.on("load", () => {
226
+ } catch (s) {
227
+ throw new w(`Failed to initialize Visual Engine: ${s.message}`, C.UNKNOWN, "map", { originalError: s });
228
+ }
229
+ class n {
230
+ onAdd(a) {
231
+ this.container = document.createElement("div"), this.container.className = "maplibregl-ctrl maplibregl-ctrl-attrib", this.container.style.display = "flex", this.container.style.alignItems = "center", this.container.style.gap = "8px", this.container.style.padding = "0 5px", this.container.style.backgroundColor = "rgba(255,255,255,0.7)", this.container.style.borderRadius = "4px", this.container.style.fontSize = "12px";
232
+ const l = document.createElement("a");
233
+ l.href = "https://www.powermap.in.th/en/PowerM/map", l.target = "_blank", l.className = "pm-attrib-link", l.innerHTML = '<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAioAAABcCAYAAABA1J5GAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAInNJREFUeNrsXd9x3DjSx6r0bu7TPV2ZjkB0BKIiEDcCUxGYjkBUBKYjWCqCpSIwFcHSERxV93RPR0VwHzBfU4IgkMRfEpzprpryrobENID+8+sG0DgnSEgO6T/FPy5nvh7+Uf3nF44SEhISEpIq/YZDgGQARj7SfxL4pPQTw0eHOvrp4d+WAphHHFkkJCQkpFmgcluWF/SfHBwQAUfS3pXlvUpj/76KP9B/MvhE8OeWfup//uyfFNu4hPff8EDf1+EhBwc68tCwjyoPglP+zvGyJg3gxF+c+pbZCDoOo2xkBqBEtb+HeaL9fDDk8QvwaEz0t6+2+m2OcsrHkyEf1vIqGwPa7s8d2LNiTkdAhquNeGsFve5N53gF+ZMR4/fGkse/OJvsgzrK4zdP9s/3+Prkffc+7DcOpLDOFDPRb04By68ZgHAByjgliCUFCncLAKOaEYYDD7SNOR6uGSia4aGg7//QnOSfAHpCoRY+zRrAhVPQNcegh3msaB+fNXi9BrBjQ6lJdgeMcOao/5kFWPufrXxNAJX/kfBpdu5gWbINiN8RnLMxv7fU01tmYz3zG+noo8DfB+ivV9toGmgo8P+3Z2fPlsV/98T77n3YGYCUP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94jwYiZqQt9a06wNd73ElN0auO86jTn6ReTVi0cdig3kXZuPCflLZnQ7NjjA0Ak6rkS/oS9GQjod4lOv4KySUAAU0snJ4t/ktUp14ipDNrWxe+k7pHAJgQoS0mk5h5/kdSkrdXEiAAnJQA5vuYi6cJhNQUKggoSEtGPnwN8Sq30jNBKSIzlkSz7jEoDyhkqk0yXco4KEdBrOgb8ltifbn5hBOl2q4V8Xp3yQEKggISEdkXPgT8zgOj3SFoCZv628DKhgHxICFSQkpA2dA1vySeF/K9yXgrSRHLJiffxt5bgvBUmJsOAbEtLxE19wrMLhQNqIYk4OaxwOJFX6PwEGABPHpS4f6ul+AAAAAElFTkSuQmCC" alt="PowerMAP" style="height: 12px; width: auto; vertical-align: middle;">';
234
+ const c = document.createElement("a");
235
+ return c.href = "https://maplibre.org/", c.target = "_blank", c.className = "ml-attrib-link", c.innerHTML = "&copy; MapLibre", c.style.color = "#333", c.style.textDecoration = "none", c.style.transform = "translateY(-2px)", this.container.appendChild(l), this.container.appendChild(c), this.container;
236
+ }
237
+ onRemove() {
238
+ this.container.parentNode.removeChild(this.container);
239
+ }
240
+ }
241
+ this.map.addControl(new n(), "bottom-right"), this.map.on("load", () => {
234
242
  this.eventBus.emit("mapLoaded", { map: this.map });
235
- }), this.map.on("click", async (a) => {
243
+ }), this.map.on("click", async (s) => {
236
244
  if (this.context.origin) {
237
- const l = pe(a.lngLat.lng, a.lngLat.lat, this.context.origin);
238
- a.x = l.x, a.y = l.y;
245
+ const a = pe(s.lngLat.lng, s.lngLat.lat, this.context.origin);
246
+ s.x = a.x, s.y = a.y;
239
247
  }
240
- this.eventBus.emit("mapClick", a);
248
+ this.eventBus.emit("mapClick", s);
241
249
  try {
242
- const c = ["poi_level_1", "poi_pa", "poi_pa_label"].filter((d) => this.map.getLayer(d));
243
- if (c.length === 0) return;
244
- const u = this.map.queryRenderedFeatures(a.point, {
245
- layers: c
250
+ const l = ["poi_level_1", "poi_pa", "poi_pa_label"].filter((u) => this.map.getLayer(u));
251
+ if (l.length === 0) return;
252
+ const c = this.map.queryRenderedFeatures(s.point, {
253
+ layers: l
246
254
  });
247
- u.length > 0 && this.eventBus.emit("poiClick", {
248
- feature: u[0],
249
- lngLat: a.lngLat,
250
- point: a.point,
251
- originalEvent: a
255
+ c.length > 0 && this.eventBus.emit("poiClick", {
256
+ feature: c[0],
257
+ lngLat: s.lngLat,
258
+ point: s.point,
259
+ originalEvent: s
252
260
  });
253
261
  } catch {
254
262
  }
255
- }), this.map.on("contextmenu", async (a) => {
263
+ }), this.map.on("contextmenu", async (s) => {
256
264
  if (this.context.origin) {
257
- const l = pe(a.lngLat.lng, a.lngLat.lat, this.context.origin);
258
- a.x = l.x, a.y = l.y;
265
+ const a = pe(s.lngLat.lng, s.lngLat.lat, this.context.origin);
266
+ s.x = a.x, s.y = a.y;
259
267
  }
260
- this.eventBus.emit("mapLongClick", a);
261
- }), this.map.on("error", (a) => {
262
- const l = a.error ? a.error.message : a.message || "Map rendering error", c = new w(l, C.API_REQUEST_FAILED, "map", { originalEvent: a });
263
- this.eventBus.emit("error", c);
268
+ this.eventBus.emit("mapLongClick", s);
269
+ }), this.map.on("error", (s) => {
270
+ const a = s.error ? s.error.message : s.message || "Map rendering error", l = new w(a, C.API_REQUEST_FAILED, "map", { originalEvent: s });
271
+ this.eventBus.emit("error", l);
264
272
  });
265
273
  }
266
274
  setStyle(e) {
@@ -275,7 +283,7 @@ class Bi {
275
283
  setNavigationControl(e = !0) {
276
284
  if (!this.map || this.context.options.previewOnly || (this.navControl && (this.map.removeControl(this.navControl), this.navControl = null), e === !1)) return;
277
285
  const t = typeof e == "object" ? e : {}, r = t.position || "top-right";
278
- this.navControl = new Y.NavigationControl({
286
+ this.navControl = new z.NavigationControl({
279
287
  showCompass: t.showCompass !== void 0 ? t.showCompass : !0,
280
288
  showZoom: t.showZoom !== void 0 ? t.showZoom : !0,
281
289
  visualizePitch: t.visualizePitch !== void 0 ? t.visualizePitch : !0
@@ -292,7 +300,7 @@ class Bi {
292
300
  setFullscreenControl(e = !0) {
293
301
  if (!this.map || this.context.options.previewOnly || (this.fullscreenControl && (this.map.removeControl(this.fullscreenControl), this.fullscreenControl = null), e === !1)) return;
294
302
  const t = typeof e == "object" ? e : {}, r = t.position || "top-right";
295
- this.fullscreenControl = new Y.FullscreenControl(t), this.map.addControl(this.fullscreenControl, r);
303
+ this.fullscreenControl = new z.FullscreenControl(t), this.map.addControl(this.fullscreenControl, r);
296
304
  const i = this.fullscreenControl._container;
297
305
  i && (i.classList.add("pm-ctrl-group"), i.querySelectorAll("button").forEach((s) => {
298
306
  s.classList.add("pm-ctrl-button"), s.classList.contains("maplibregl-ctrl-fullscreen") && s.classList.add("pm-ctrl-fullscreen"), s.classList.contains("maplibregl-ctrl-shrink") && s.classList.add("pm-ctrl-shrink");
@@ -429,7 +437,7 @@ class Si {
429
437
  closeOnClick: !0,
430
438
  className: "pm-popup powermap-custom-popup"
431
439
  }, s = typeof t.popupContent == "string" ? t.popupContent : this._formatPopupHTML(t.popupContent);
432
- new Y.Popup(n).setLngLat(e).setHTML(s).addTo(r);
440
+ new z.Popup(n).setLngLat(e).setHTML(s).addTo(r);
433
441
  }
434
442
  // Access mapManager via context to allow lazy loading
435
443
  get mapManager() {
@@ -474,14 +482,14 @@ class Si {
474
482
  rotationAlignment: e.rotationAlignment || "auto"
475
483
  };
476
484
  console.log("[MarkerManager] Creating marker:", { id: e.id, anchor: i.anchor, position: e.position });
477
- const n = new Y.Marker(i).setLngLat(e.position).addTo(t);
485
+ const n = new z.Marker(i).setLngLat(e.position).addTo(t);
478
486
  if (e.id && this.markerMap.set(e.id, n), e.popupContent) {
479
487
  const s = e.color ? [0, -36] : 25, a = e.popupOptions || {
480
488
  offset: e.popupOffset !== void 0 ? e.popupOffset : s,
481
489
  closeButton: !0,
482
490
  closeOnClick: !0,
483
491
  className: "pm-popup powermap-custom-popup"
484
- }, l = typeof e.popupContent == "string" ? e.popupContent : this._formatPopupHTML(e.popupContent), c = new Y.Popup(a).setHTML(l);
492
+ }, l = typeof e.popupContent == "string" ? e.popupContent : this._formatPopupHTML(e.popupContent), c = new z.Popup(a).setHTML(l);
485
493
  n.setPopup(c);
486
494
  }
487
495
  return r.addEventListener("click", (s) => {
@@ -822,7 +830,7 @@ class Li {
822
830
  "line-opacity": r.opacity
823
831
  }
824
832
  }));
825
- const i = e.geometry.coordinates, n = i.reduce((s, a) => s.extend(a), new Y.LngLatBounds(i[0], i[0]));
833
+ const i = e.geometry.coordinates, n = i.reduce((s, a) => s.extend(a), new z.LngLatBounds(i[0], i[0]));
826
834
  t.fitBounds(n, { padding: 50 });
827
835
  }
828
836
  clearRoutes() {
@@ -957,7 +965,7 @@ const Z = {
957
965
  }, re = {
958
966
  HOT: "mapbox-gl-draw-hot",
959
967
  COLD: "mapbox-gl-draw-cold"
960
- }, O = {
968
+ }, R = {
961
969
  ADD: "add",
962
970
  MOVE: "move",
963
971
  DRAG: "drag",
@@ -1001,7 +1009,7 @@ const Z = {
1001
1009
  FEATURE: "feature",
1002
1010
  MIDPOINT: "midpoint",
1003
1011
  VERTEX: "vertex"
1004
- }, H = {
1012
+ }, Y = {
1005
1013
  ACTIVE: "true",
1006
1014
  INACTIVE: "false"
1007
1015
  }, io = [
@@ -1020,9 +1028,9 @@ const Z = {
1020
1028
  LAT_RENDERED_MIN: Et,
1021
1029
  LNG_MAX: Fi,
1022
1030
  LNG_MIN: Ni,
1023
- activeStates: H,
1031
+ activeStates: Y,
1024
1032
  classes: Z,
1025
- cursors: O,
1033
+ cursors: R,
1026
1034
  events: W,
1027
1035
  geojsonTypes: M,
1028
1036
  interactions: io,
@@ -1042,15 +1050,15 @@ function so(o) {
1042
1050
  return !o.originalEvent || !o.originalEvent.shiftKey ? !1 : o.originalEvent.button === 0;
1043
1051
  }
1044
1052
  function Me(o) {
1045
- return !o.featureTarget || !o.featureTarget.properties ? !1 : o.featureTarget.properties.active === H.ACTIVE && o.featureTarget.properties.meta === j.FEATURE;
1053
+ return !o.featureTarget || !o.featureTarget.properties ? !1 : o.featureTarget.properties.active === Y.ACTIVE && o.featureTarget.properties.meta === j.FEATURE;
1046
1054
  }
1047
- function Rt(o) {
1048
- return !o.featureTarget || !o.featureTarget.properties ? !1 : o.featureTarget.properties.active === H.INACTIVE && o.featureTarget.properties.meta === j.FEATURE;
1055
+ function Ot(o) {
1056
+ return !o.featureTarget || !o.featureTarget.properties ? !1 : o.featureTarget.properties.active === Y.INACTIVE && o.featureTarget.properties.meta === j.FEATURE;
1049
1057
  }
1050
1058
  function et(o) {
1051
1059
  return o.featureTarget === void 0;
1052
1060
  }
1053
- function Ot(o) {
1061
+ function Rt(o) {
1054
1062
  return !o.featureTarget || !o.featureTarget.properties ? !1 : o.featureTarget.properties.meta === j.FEATURE;
1055
1063
  }
1056
1064
  function Ye(o) {
@@ -1085,10 +1093,10 @@ function uo(o) {
1085
1093
  const e = o.key || String.fromCharCode(o.keyCode);
1086
1094
  return e >= "0" && e <= "9";
1087
1095
  }
1088
- function Ri() {
1096
+ function Oi() {
1089
1097
  return !0;
1090
1098
  }
1091
- const Oi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1099
+ const Ri = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1092
1100
  __proto__: null,
1093
1101
  isActiveFeature: Me,
1094
1102
  isBackspaceKey: Mt,
@@ -1099,12 +1107,12 @@ const Oi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1099
1107
  isDigitKey: uo,
1100
1108
  isEnterKey: rt,
1101
1109
  isEscapeKey: tt,
1102
- isFeature: Ot,
1103
- isInactiveFeature: Rt,
1110
+ isFeature: Rt,
1111
+ isInactiveFeature: Ot,
1104
1112
  isOfMetaType: $e,
1105
1113
  isShiftDown: Xe,
1106
1114
  isShiftMousedown: so,
1107
- isTrue: Ri,
1115
+ isTrue: Oi,
1108
1116
  isVertex: Ye,
1109
1117
  noTarget: et
1110
1118
  }, Symbol.toStringTag, { value: "Module" }));
@@ -1232,8 +1240,8 @@ function mo(o, e, t, r) {
1232
1240
  }), go(l);
1233
1241
  }
1234
1242
  function qe(o, e) {
1235
- const t = Le.click(o, null, e), r = { mouse: O.NONE };
1236
- return t[0] && (r.mouse = t[0].properties.active === H.ACTIVE ? O.MOVE : O.POINTER, r.feature = t[0].properties.meta), e.events.currentModeName().indexOf("draw") !== -1 && (r.mouse = O.ADD), e.ui.queueMapClasses(r), e.ui.updateMapClasses(), t[0];
1243
+ const t = Le.click(o, null, e), r = { mouse: R.NONE };
1244
+ return t[0] && (r.mouse = t[0].properties.active === Y.ACTIVE ? R.MOVE : R.POINTER, r.feature = t[0].properties.meta), e.events.currentModeName().indexOf("draw") !== -1 && (r.mouse = R.ADD), e.ui.queueMapClasses(r), e.ui.updateMapClasses(), t[0];
1237
1245
  }
1238
1246
  function Gt(o, e) {
1239
1247
  const t = o.x - e.x, r = o.y - e.y;
@@ -1384,7 +1392,7 @@ J.prototype.internal = function(o) {
1384
1392
  id: this.id,
1385
1393
  meta: j.FEATURE,
1386
1394
  "meta:type": this.type,
1387
- active: H.INACTIVE,
1395
+ active: Y.INACTIVE,
1388
1396
  mode: o
1389
1397
  };
1390
1398
  if (this.ctx.options.userProperties)
@@ -1689,7 +1697,7 @@ function _i(o) {
1689
1697
  h({
1690
1698
  point: p.point,
1691
1699
  time: (/* @__PURE__ */ new Date()).getTime()
1692
- }) ? (o.ui.queueMapClasses({ mouse: O.DRAG }), s.drag(p)) : p.originalEvent.stopPropagation();
1700
+ }) ? (o.ui.queueMapClasses({ mouse: R.DRAG }), s.drag(p)) : p.originalEvent.stopPropagation();
1693
1701
  }, i.mousedrag = function(p) {
1694
1702
  i.drag(p, (h) => !Bt(t, h));
1695
1703
  }, i.touchdrag = function(p) {
@@ -2552,7 +2560,7 @@ function Te(o, e, t, r) {
2552
2560
  meta: j.VERTEX,
2553
2561
  parent: o,
2554
2562
  coord_path: t,
2555
- active: r ? H.ACTIVE : H.INACTIVE
2563
+ active: r ? Y.ACTIVE : Y.INACTIVE
2556
2564
  },
2557
2565
  geometry: {
2558
2566
  type: M.POINT,
@@ -3223,7 +3231,7 @@ P.onStop = function() {
3223
3231
  se.enable(this);
3224
3232
  };
3225
3233
  P.onMouseMove = function(o, e) {
3226
- return Ot(e) && o.dragMoving && this.fireUpdate(), this.stopExtendedInteractions(o), !0;
3234
+ return Rt(e) && o.dragMoving && this.fireUpdate(), this.stopExtendedInteractions(o), !0;
3227
3235
  };
3228
3236
  P.onMouseOut = function(o) {
3229
3237
  return o.dragMoving ? this.fireUpdate() : !0;
@@ -3231,7 +3239,7 @@ P.onMouseOut = function(o) {
3231
3239
  P.onTap = P.onClick = function(o, e) {
3232
3240
  if (et(e)) return this.clickAnywhere(o, e);
3233
3241
  if ($e(j.VERTEX)(e)) return this.clickOnVertex(o, e);
3234
- if (Ot(e)) return this.clickOnFeature(o, e);
3242
+ if (Rt(e)) return this.clickOnFeature(o, e);
3235
3243
  };
3236
3244
  P.clickAnywhere = function(o) {
3237
3245
  const e = this.getSelectedIds();
@@ -3242,7 +3250,7 @@ P.clickOnVertex = function(o, e) {
3242
3250
  featureId: e.featureTarget.properties.parent,
3243
3251
  coordPath: e.featureTarget.properties.coord_path,
3244
3252
  startPos: e.lngLat
3245
- }), this.updateUIClasses({ mouse: O.MOVE });
3253
+ }), this.updateUIClasses({ mouse: R.MOVE });
3246
3254
  };
3247
3255
  P.startOnActiveFeature = function(o, e) {
3248
3256
  this.stopExtendedInteractions(o), this.map.dragPan.disable(), this.doRender(e.featureTarget.properties.id), o.canDragMove = !0, o.dragMoveLocation = e.lngLat;
@@ -3254,7 +3262,7 @@ P.clickOnFeature = function(o, e) {
3254
3262
  return this.changeMode(B.DIRECT_SELECT, {
3255
3263
  featureId: i
3256
3264
  });
3257
- n && t ? (this.deselect(i), this.updateUIClasses({ mouse: O.POINTER }), r.length === 1 && se.enable(this)) : !n && t ? (this.select(i), this.updateUIClasses({ mouse: O.MOVE })) : !n && !t && (r.forEach((s) => this.doRender(s)), this.setSelected(i), this.updateUIClasses({ mouse: O.MOVE })), this.doRender(i);
3265
+ n && t ? (this.deselect(i), this.updateUIClasses({ mouse: R.POINTER }), r.length === 1 && se.enable(this)) : !n && t ? (this.select(i), this.updateUIClasses({ mouse: R.MOVE })) : !n && !t && (r.forEach((s) => this.doRender(s)), this.setSelected(i), this.updateUIClasses({ mouse: R.MOVE })), this.doRender(i);
3258
3266
  };
3259
3267
  P.onMouseDown = function(o, e) {
3260
3268
  if (o.initialDragPanState = this.map.dragPan.isEnabled(), Me(e)) return this.startOnActiveFeature(o, e);
@@ -3271,7 +3279,7 @@ P.onDrag = function(o, e) {
3271
3279
  if (this.drawConfig.boxSelect && o.canBoxSelect) return this.whileBoxSelect(o, e);
3272
3280
  };
3273
3281
  P.whileBoxSelect = function(o, e) {
3274
- o.boxSelecting = !0, this.updateUIClasses({ mouse: O.ADD }), o.boxSelectElement || (o.boxSelectElement = document.createElement("div"), o.boxSelectElement.classList.add(Z.BOX_SELECT), this.map.getContainer().appendChild(o.boxSelectElement));
3282
+ o.boxSelecting = !0, this.updateUIClasses({ mouse: R.ADD }), o.boxSelectElement || (o.boxSelectElement = document.createElement("div"), o.boxSelectElement.classList.add(Z.BOX_SELECT), this.map.getContainer().appendChild(o.boxSelectElement));
3275
3283
  const t = Yt(e.originalEvent, this.map.getContainer()), r = Math.min(o.boxSelectStartLocation.x, t.x), i = Math.max(o.boxSelectStartLocation.x, t.x), n = Math.min(o.boxSelectStartLocation.y, t.y), s = Math.max(o.boxSelectStartLocation.y, t.y), a = `translate(${r}px, ${n}px)`;
3276
3284
  o.boxSelectElement.style.transform = a, o.boxSelectElement.style.WebkitTransform = a, o.boxSelectElement.style.width = `${i - r}px`, o.boxSelectElement.style.height = `${s - n}px`;
3277
3285
  };
@@ -3291,12 +3299,12 @@ P.onTouchEnd = P.onMouseUp = function(o, e) {
3291
3299
  o.boxSelectStartLocation,
3292
3300
  Yt(e.originalEvent, this.map.getContainer())
3293
3301
  ], r = this.featuresAt(null, t, "click"), i = this.getUniqueIds(r).filter((n) => !this.isSelected(n));
3294
- i.length && (this.select(i), i.forEach((n) => this.doRender(n)), this.updateUIClasses({ mouse: O.MOVE }));
3302
+ i.length && (this.select(i), i.forEach((n) => this.doRender(n)), this.updateUIClasses({ mouse: R.MOVE }));
3295
3303
  }
3296
3304
  this.stopExtendedInteractions(o);
3297
3305
  };
3298
3306
  P.toDisplayFeatures = function(o, e, t) {
3299
- e.properties.active = this.isSelected(e.properties.id) ? H.ACTIVE : H.INACTIVE, t(e), this.fireActionable(), !(e.properties.active !== H.ACTIVE || e.geometry.type === M.POINT) && st(e).forEach(t);
3307
+ e.properties.active = this.isSelected(e.properties.id) ? Y.ACTIVE : Y.INACTIVE, t(e), this.fireActionable(), !(e.properties.active !== Y.ACTIVE || e.geometry.type === M.POINT) && st(e).forEach(t);
3300
3308
  };
3301
3309
  P.onTrash = function() {
3302
3310
  this.deleteFeature(this.getSelectedIds()), this.fireActionable();
@@ -3430,18 +3438,18 @@ D.onStop = function() {
3430
3438
  se.enable(this), this.clearSelectedCoordinates();
3431
3439
  };
3432
3440
  D.toDisplayFeatures = function(o, e, t) {
3433
- o.featureId === e.properties.id ? (e.properties.active = H.ACTIVE, t(e), st(e, {
3441
+ o.featureId === e.properties.id ? (e.properties.active = Y.ACTIVE, t(e), st(e, {
3434
3442
  map: this.map,
3435
3443
  midpoints: !0,
3436
3444
  selectedPaths: o.selectedCoordPaths
3437
- }).forEach(t)) : (e.properties.active = H.INACTIVE, t(e)), this.fireActionable(o);
3445
+ }).forEach(t)) : (e.properties.active = Y.INACTIVE, t(e)), this.fireActionable(o);
3438
3446
  };
3439
3447
  D.onTrash = function(o) {
3440
3448
  o.selectedCoordPaths.sort((e, t) => t.localeCompare(e, "en", { numeric: !0 })).forEach((e) => o.feature.removeCoordinate(e)), this.fireUpdate(), o.selectedCoordPaths = [], this.clearSelectedCoordinates(), this.fireActionable(o), o.feature.isValid() === !1 && (this.deleteFeature([o.featureId]), this.changeMode(B.SIMPLE_SELECT, {}));
3441
3449
  };
3442
3450
  D.onMouseMove = function(o, e) {
3443
3451
  const t = Me(e), r = ko(e), i = Bo(e), n = o.selectedCoordPaths.length === 0;
3444
- return t && n ? this.updateUIClasses({ mouse: O.MOVE }) : r && !n ? this.updateUIClasses({ mouse: O.MOVE }) : this.updateUIClasses({ mouse: O.NONE }), (r || t || i) && o.dragMoving && this.fireUpdate(), this.stopDragging(o), !0;
3452
+ return t && n ? this.updateUIClasses({ mouse: R.MOVE }) : r && !n ? this.updateUIClasses({ mouse: R.MOVE }) : this.updateUIClasses({ mouse: R.NONE }), (r || t || i) && o.dragMoving && this.fireUpdate(), this.stopDragging(o), !0;
3445
3453
  };
3446
3454
  D.onMouseOut = function(o) {
3447
3455
  return o.dragMoving && this.fireUpdate(), !0;
@@ -3463,13 +3471,13 @@ D.onDrag = function(o, e) {
3463
3471
  D.onClick = function(o, e) {
3464
3472
  if (et(e)) return this.clickNoTarget(o, e);
3465
3473
  if (Me(e)) return this.clickActiveFeature(o, e);
3466
- if (Rt(e)) return this.clickInactive(o, e);
3474
+ if (Ot(e)) return this.clickInactive(o, e);
3467
3475
  this.stopDragging(o);
3468
3476
  };
3469
3477
  D.onTap = function(o, e) {
3470
3478
  if (et(e)) return this.clickNoTarget(o, e);
3471
3479
  if (Me(e)) return this.clickActiveFeature(o, e);
3472
- if (Rt(e)) return this.clickInactive(o, e);
3480
+ if (Ot(e)) return this.clickInactive(o, e);
3473
3481
  };
3474
3482
  D.onTouchEnd = D.onMouseUp = function(o) {
3475
3483
  o.dragMoving && this.fireUpdate(), this.stopDragging(o);
@@ -3484,7 +3492,7 @@ ue.onSetup = function() {
3484
3492
  coordinates: []
3485
3493
  }
3486
3494
  });
3487
- return this.addFeature(o), this.clearSelectedFeatures(), this.updateUIClasses({ mouse: O.ADD }), this.activateUIButton(_.POINT), this.setActionableState({
3495
+ return this.addFeature(o), this.clearSelectedFeatures(), this.updateUIClasses({ mouse: R.ADD }), this.activateUIButton(_.POINT), this.setActionableState({
3488
3496
  trash: !0
3489
3497
  }), { point: o };
3490
3498
  };
@@ -3492,7 +3500,7 @@ ue.stopDrawingAndRemove = function(o) {
3492
3500
  this.deleteFeature([o.point.id], { silent: !0 }), this.changeMode(B.SIMPLE_SELECT);
3493
3501
  };
3494
3502
  ue.onTap = ue.onClick = function(o, e) {
3495
- this.updateUIClasses({ mouse: O.MOVE }), o.point.updateCoordinate("", e.lngLat.lng, e.lngLat.lat), this.fire(W.CREATE, {
3503
+ this.updateUIClasses({ mouse: R.MOVE }), o.point.updateCoordinate("", e.lngLat.lng, e.lngLat.lat), this.fire(W.CREATE, {
3496
3504
  features: [o.point.toGeoJSON()]
3497
3505
  }), this.changeMode(B.SIMPLE_SELECT, { featureIds: [o.point.id] });
3498
3506
  };
@@ -3501,7 +3509,7 @@ ue.onStop = function(o) {
3501
3509
  };
3502
3510
  ue.toDisplayFeatures = function(o, e, t) {
3503
3511
  const r = e.properties.id === o.point.id;
3504
- if (e.properties.active = r ? H.ACTIVE : H.INACTIVE, !r) return t(e);
3512
+ if (e.properties.active = r ? Y.ACTIVE : Y.INACTIVE, !r) return t(e);
3505
3513
  };
3506
3514
  ue.onTrash = ue.stopDrawingAndRemove;
3507
3515
  ue.onKeyUp = function(o, e) {
@@ -3521,7 +3529,7 @@ ae.onSetup = function() {
3521
3529
  coordinates: [[]]
3522
3530
  }
3523
3531
  });
3524
- return this.addFeature(o), this.clearSelectedFeatures(), se.disable(this), this.updateUIClasses({ mouse: O.ADD }), this.activateUIButton(_.POLYGON), this.setActionableState({
3532
+ return this.addFeature(o), this.clearSelectedFeatures(), se.disable(this), this.updateUIClasses({ mouse: R.ADD }), this.activateUIButton(_.POLYGON), this.setActionableState({
3525
3533
  trash: !0
3526
3534
  }), {
3527
3535
  polygon: o,
@@ -3531,13 +3539,13 @@ ae.onSetup = function() {
3531
3539
  ae.clickAnywhere = function(o, e) {
3532
3540
  if (o.currentVertexPosition > 0 && Ze(e, o.polygon.coordinates[0][o.currentVertexPosition - 1]))
3533
3541
  return this.changeMode(B.SIMPLE_SELECT, { featureIds: [o.polygon.id] });
3534
- this.updateUIClasses({ mouse: O.ADD }), o.polygon.updateCoordinate(`0.${o.currentVertexPosition}`, e.lngLat.lng, e.lngLat.lat), o.currentVertexPosition++, o.polygon.updateCoordinate(`0.${o.currentVertexPosition}`, e.lngLat.lng, e.lngLat.lat);
3542
+ this.updateUIClasses({ mouse: R.ADD }), o.polygon.updateCoordinate(`0.${o.currentVertexPosition}`, e.lngLat.lng, e.lngLat.lat), o.currentVertexPosition++, o.polygon.updateCoordinate(`0.${o.currentVertexPosition}`, e.lngLat.lng, e.lngLat.lat);
3535
3543
  };
3536
3544
  ae.clickOnVertex = function(o) {
3537
3545
  return this.changeMode(B.SIMPLE_SELECT, { featureIds: [o.polygon.id] });
3538
3546
  };
3539
3547
  ae.onMouseMove = function(o, e) {
3540
- o.polygon.updateCoordinate(`0.${o.currentVertexPosition}`, e.lngLat.lng, e.lngLat.lat), Ye(e) && this.updateUIClasses({ mouse: O.POINTER });
3548
+ o.polygon.updateCoordinate(`0.${o.currentVertexPosition}`, e.lngLat.lng, e.lngLat.lat), Ye(e) && this.updateUIClasses({ mouse: R.POINTER });
3541
3549
  };
3542
3550
  ae.onTap = ae.onClick = function(o, e) {
3543
3551
  return Ye(e) ? this.clickOnVertex(o, e) : this.clickAnywhere(o, e);
@@ -3546,13 +3554,13 @@ ae.onKeyUp = function(o, e) {
3546
3554
  tt(e) ? (this.deleteFeature([o.polygon.id], { silent: !0 }), this.changeMode(B.SIMPLE_SELECT)) : rt(e) && this.changeMode(B.SIMPLE_SELECT, { featureIds: [o.polygon.id] });
3547
3555
  };
3548
3556
  ae.onStop = function(o) {
3549
- this.updateUIClasses({ mouse: O.NONE }), se.enable(this), this.activateUIButton(), this.getFeature(o.polygon.id) !== void 0 && (o.polygon.removeCoordinate(`0.${o.currentVertexPosition}`), o.polygon.isValid() ? this.fire(W.CREATE, {
3557
+ this.updateUIClasses({ mouse: R.NONE }), se.enable(this), this.activateUIButton(), this.getFeature(o.polygon.id) !== void 0 && (o.polygon.removeCoordinate(`0.${o.currentVertexPosition}`), o.polygon.isValid() ? this.fire(W.CREATE, {
3550
3558
  features: [o.polygon.toGeoJSON()]
3551
3559
  }) : (this.deleteFeature([o.polygon.id], { silent: !0 }), this.changeMode(B.SIMPLE_SELECT, {}, { silent: !0 })));
3552
3560
  };
3553
3561
  ae.toDisplayFeatures = function(o, e, t) {
3554
3562
  const r = e.properties.id === o.polygon.id;
3555
- if (e.properties.active = r ? H.ACTIVE : H.INACTIVE, !r) return t(e);
3563
+ if (e.properties.active = r ? Y.ACTIVE : Y.INACTIVE, !r) return t(e);
3556
3564
  if (e.geometry.coordinates.length === 0) return;
3557
3565
  const i = e.geometry.coordinates[0].length;
3558
3566
  if (!(i < 3)) {
@@ -3608,7 +3616,7 @@ le.onSetup = function(o) {
3608
3616
  coordinates: []
3609
3617
  }
3610
3618
  }), r = 0, this.addFeature(t);
3611
- return this.clearSelectedFeatures(), se.disable(this), this.updateUIClasses({ mouse: O.ADD }), this.activateUIButton(_.LINE), this.setActionableState({
3619
+ return this.clearSelectedFeatures(), se.disable(this), this.updateUIClasses({ mouse: R.ADD }), this.activateUIButton(_.LINE), this.setActionableState({
3612
3620
  trash: !0
3613
3621
  }), {
3614
3622
  line: t,
@@ -3619,13 +3627,13 @@ le.onSetup = function(o) {
3619
3627
  le.clickAnywhere = function(o, e) {
3620
3628
  if (o.currentVertexPosition > 0 && Ze(e, o.line.coordinates[o.currentVertexPosition - 1]) || o.direction === "backwards" && Ze(e, o.line.coordinates[o.currentVertexPosition + 1]))
3621
3629
  return this.changeMode(B.SIMPLE_SELECT, { featureIds: [o.line.id] });
3622
- this.updateUIClasses({ mouse: O.ADD }), o.line.updateCoordinate(o.currentVertexPosition, e.lngLat.lng, e.lngLat.lat), o.direction === "forward" ? (o.currentVertexPosition++, o.line.updateCoordinate(o.currentVertexPosition, e.lngLat.lng, e.lngLat.lat)) : o.line.addCoordinate(0, e.lngLat.lng, e.lngLat.lat);
3630
+ this.updateUIClasses({ mouse: R.ADD }), o.line.updateCoordinate(o.currentVertexPosition, e.lngLat.lng, e.lngLat.lat), o.direction === "forward" ? (o.currentVertexPosition++, o.line.updateCoordinate(o.currentVertexPosition, e.lngLat.lng, e.lngLat.lat)) : o.line.addCoordinate(0, e.lngLat.lng, e.lngLat.lat);
3623
3631
  };
3624
3632
  le.clickOnVertex = function(o) {
3625
3633
  return this.changeMode(B.SIMPLE_SELECT, { featureIds: [o.line.id] });
3626
3634
  };
3627
3635
  le.onMouseMove = function(o, e) {
3628
- o.line.updateCoordinate(o.currentVertexPosition, e.lngLat.lng, e.lngLat.lat), Ye(e) && this.updateUIClasses({ mouse: O.POINTER });
3636
+ o.line.updateCoordinate(o.currentVertexPosition, e.lngLat.lng, e.lngLat.lat), Ye(e) && this.updateUIClasses({ mouse: R.POINTER });
3629
3637
  };
3630
3638
  le.onTap = le.onClick = function(o, e) {
3631
3639
  if (Ye(e)) return this.clickOnVertex(o, e);
@@ -3644,7 +3652,7 @@ le.onTrash = function(o) {
3644
3652
  };
3645
3653
  le.toDisplayFeatures = function(o, e, t) {
3646
3654
  const r = e.properties.id === o.line.id;
3647
- if (e.properties.active = r ? H.ACTIVE : H.INACTIVE, !r) return t(e);
3655
+ if (e.properties.active = r ? Y.ACTIVE : Y.INACTIVE, !r) return t(e);
3648
3656
  e.geometry.coordinates.length < 2 || (e.properties.meta = j.FEATURE, t(Te(
3649
3657
  o.line.id,
3650
3658
  e.geometry.coordinates[o.direction === "forward" ? e.geometry.coordinates.length - 2 : 1],
@@ -3686,7 +3694,7 @@ const So = {
3686
3694
  combine_features: !1,
3687
3695
  uncombine_features: !1
3688
3696
  };
3689
- function Rr(o, e) {
3697
+ function Or(o, e) {
3690
3698
  return o.map((t) => t.source ? t : Object.assign({}, t, {
3691
3699
  id: `${t.id}.${e}`,
3692
3700
  source: e === "hot" ? re.HOT : re.COLD
@@ -3694,7 +3702,7 @@ function Rr(o, e) {
3694
3702
  }
3695
3703
  function wn(o = {}) {
3696
3704
  let e = Object.assign({}, o);
3697
- return o.controls || (e.controls = {}), o.displayControlsDefault === !1 ? e.controls = Object.assign({}, bn, o.controls) : e.controls = Object.assign({}, yn, o.controls), e = Object.assign({}, An, e), e.styles = Rr(e.styles, "cold").concat(Rr(e.styles, "hot")), e;
3705
+ return o.controls || (e.controls = {}), o.displayControlsDefault === !1 ? e.controls = Object.assign({}, bn, o.controls) : e.controls = Object.assign({}, yn, o.controls), e = Object.assign({}, An, e), e.styles = Or(e.styles, "cold").concat(Or(e.styles, "hot")), e;
3698
3706
  }
3699
3707
  var vn = function o(e, t) {
3700
3708
  if (e === t) return !0;
@@ -3721,7 +3729,7 @@ var vn = function o(e, t) {
3721
3729
  }
3722
3730
  return e !== e && t !== t;
3723
3731
  };
3724
- const Or = /* @__PURE__ */ po(vn);
3732
+ const Rr = /* @__PURE__ */ po(vn);
3725
3733
  var Cn = xn, En = {
3726
3734
  Point: "geometry",
3727
3735
  MultiPoint: "geometry",
@@ -3809,7 +3817,7 @@ function kn(o, e) {
3809
3817
  o.store.add(l, { silent: t });
3810
3818
  } else {
3811
3819
  const a = o.store.get(s.id), l = a.properties;
3812
- a.properties = s.properties, Or(l, s.properties) || o.store.featureChanged(a.id, { silent: t }), Or(a.getCoordinates(), s.geometry.coordinates) || a.incomingCoords(s.geometry.coordinates);
3820
+ a.properties = s.properties, Rr(l, s.properties) || o.store.featureChanged(a.id, { silent: t }), Rr(a.getCoordinates(), s.geometry.coordinates) || a.incomingCoords(s.geometry.coordinates);
3813
3821
  }
3814
3822
  return s.id;
3815
3823
  });
@@ -3843,7 +3851,7 @@ function kn(o, e) {
3843
3851
  }
3844
3852
  const Bn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3845
3853
  __proto__: null,
3846
- CommonSelectors: Oi,
3854
+ CommonSelectors: Ri,
3847
3855
  ModeHandler: Lt,
3848
3856
  StringSet: oe,
3849
3857
  constrainFeatureMovement: zt,
@@ -4029,7 +4037,7 @@ class Fn {
4029
4037
  return null;
4030
4038
  }
4031
4039
  }
4032
- class Rn {
4040
+ class On {
4033
4041
  /**
4034
4042
  * @param {Object} eventBus - Shared SDK event bus
4035
4043
  */
@@ -4259,7 +4267,7 @@ class Rn {
4259
4267
  ), console.log("featureId:", e.featureId), console.log("source: ", e.source), console.log("format: ", e.format), e.geometry && console.log("geometry: ", e.geometry), e.properties && Object.keys(e.properties).length > 0 && console.log("props: ", e.properties), console.groupEnd();
4260
4268
  }
4261
4269
  }
4262
- class On {
4270
+ class Rn {
4263
4271
  /**
4264
4272
  * @param {Function} getAllFeatures - Function that returns all current GeoJSON features (array)
4265
4273
  */
@@ -4693,7 +4701,7 @@ Ie(Ee, "REQUIRED_PROPERTIES", {
4693
4701
  detail: ["category"]
4694
4702
  });
4695
4703
  function Yr(o, e) {
4696
- if (e === Oo)
4704
+ if (e === Ro)
4697
4705
  return console.warn("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Geometry already defined as triangles."), o;
4698
4706
  if (e === wt || e === Jr) {
4699
4707
  let t = o.getIndex();
@@ -4761,10 +4769,10 @@ class Qn extends Qo {
4761
4769
  if (this.resourcePath !== "")
4762
4770
  s = this.resourcePath;
4763
4771
  else if (this.path !== "") {
4764
- const c = Oe.extractUrlBase(e);
4765
- s = Oe.resolveURL(c, this.path);
4772
+ const c = Re.extractUrlBase(e);
4773
+ s = Re.resolveURL(c, this.path);
4766
4774
  } else
4767
- s = Oe.extractUrlBase(e);
4775
+ s = Re.extractUrlBase(e);
4768
4776
  this.manager.itemStart(e);
4769
4777
  const a = function(c) {
4770
4778
  i ? i(c) : console.error(c), n.manager.itemError(e), n.manager.itemEnd(e);
@@ -4954,7 +4962,7 @@ class Yn {
4954
4962
  this.name = S.KHR_MATERIALS_UNLIT;
4955
4963
  }
4956
4964
  getMaterialType() {
4957
- return Re;
4965
+ return Oe;
4958
4966
  }
4959
4967
  extendParams(e, t, r) {
4960
4968
  const i = [];
@@ -5729,7 +5737,7 @@ class ms {
5729
5737
  return Promise.resolve(this.extensions[S.KHR_BINARY_GLTF].body);
5730
5738
  const i = this.options;
5731
5739
  return new Promise(function(n, s) {
5732
- r.load(Oe.resolveURL(t.uri, i.path), n, void 0, function() {
5740
+ r.load(Re.resolveURL(t.uri, i.path), n, void 0, function() {
5733
5741
  s(new Error('THREE.GLTFLoader: Failed to load buffer "' + t.uri + '".'));
5734
5742
  });
5735
5743
  });
@@ -5825,7 +5833,7 @@ class ms {
5825
5833
  t.isImageBitmapLoader === !0 && (g = function(f) {
5826
5834
  const A = new Xt(f);
5827
5835
  A.needsUpdate = !0, p(A);
5828
- }), t.load(Oe.resolveURL(d, n.path), g, void 0, h);
5836
+ }), t.load(Re.resolveURL(d, n.path), g, void 0, h);
5829
5837
  });
5830
5838
  }).then(function(d) {
5831
5839
  return c === !0 && a.revokeObjectURL(l), d.userData.mimeType = s.mimeType || gs(s.uri), d;
@@ -5913,15 +5921,15 @@ class ms {
5913
5921
  }
5914
5922
  n.doubleSided === !0 && (a.side = ri);
5915
5923
  const u = n.alphaMode || mt.OPAQUE;
5916
- if (u === mt.BLEND ? (a.transparent = !0, a.depthWrite = !1) : (a.transparent = !1, u === mt.MASK && (a.alphaTest = n.alphaCutoff !== void 0 ? n.alphaCutoff : 0.5)), n.normalTexture !== void 0 && s !== Re && (c.push(t.assignTexture(a, "normalMap", n.normalTexture)), a.normalScale = new Zr(1, 1), n.normalTexture.scale !== void 0)) {
5924
+ if (u === mt.BLEND ? (a.transparent = !0, a.depthWrite = !1) : (a.transparent = !1, u === mt.MASK && (a.alphaTest = n.alphaCutoff !== void 0 ? n.alphaCutoff : 0.5)), n.normalTexture !== void 0 && s !== Oe && (c.push(t.assignTexture(a, "normalMap", n.normalTexture)), a.normalScale = new Zr(1, 1), n.normalTexture.scale !== void 0)) {
5917
5925
  const d = n.normalTexture.scale;
5918
5926
  a.normalScale.set(d, d);
5919
5927
  }
5920
- if (n.occlusionTexture !== void 0 && s !== Re && (c.push(t.assignTexture(a, "aoMap", n.occlusionTexture)), n.occlusionTexture.strength !== void 0 && (a.aoMapIntensity = n.occlusionTexture.strength)), n.emissiveFactor !== void 0 && s !== Re) {
5928
+ if (n.occlusionTexture !== void 0 && s !== Oe && (c.push(t.assignTexture(a, "aoMap", n.occlusionTexture)), n.occlusionTexture.strength !== void 0 && (a.aoMapIntensity = n.occlusionTexture.strength)), n.emissiveFactor !== void 0 && s !== Oe) {
5921
5929
  const d = n.emissiveFactor;
5922
5930
  a.emissive = new xe().setRGB(d[0], d[1], d[2], he);
5923
5931
  }
5924
- return n.emissiveTexture !== void 0 && s !== Re && c.push(t.assignTexture(a, "emissiveMap", n.emissiveTexture, Qe)), Promise.all(c).then(function() {
5932
+ return n.emissiveTexture !== void 0 && s !== Oe && c.push(t.assignTexture(a, "emissiveMap", n.emissiveTexture, Qe)), Promise.all(c).then(function() {
5925
5933
  const d = new s(a);
5926
5934
  return n.name && (d.name = n.name), Ae(d, n), t.associations.set(d, { materials: e }), n.extensions && ve(i, d, n), d;
5927
5935
  });
@@ -6341,7 +6349,7 @@ class ys {
6341
6349
  }
6342
6350
  ensureAnchor(e) {
6343
6351
  if (this.anchorMercator) return;
6344
- const t = Y.MercatorCoordinate.fromLngLat(e, 0);
6352
+ const t = z.MercatorCoordinate.fromLngLat(e, 0);
6345
6353
  this.anchorMercator = { x: t.x, y: t.y, z: t.z || 0 }, this.anchorMeterScale = t.meterInMercatorCoordinateUnits(), this.anchorLngLat = e;
6346
6354
  }
6347
6355
  resetAnchor() {
@@ -6349,7 +6357,7 @@ class ys {
6349
6357
  }
6350
6358
  lngLatToLocal(e) {
6351
6359
  if (!this.anchorMercator) return [0, 0];
6352
- const t = Y.MercatorCoordinate.fromLngLat(e, 0), r = (t.x - this.anchorMercator.x) / this.anchorMeterScale, i = -(t.y - this.anchorMercator.y) / this.anchorMeterScale;
6360
+ const t = z.MercatorCoordinate.fromLngLat(e, 0), r = (t.x - this.anchorMercator.x) / this.anchorMeterScale, i = -(t.y - this.anchorMercator.y) / this.anchorMeterScale;
6353
6361
  return [r, i];
6354
6362
  }
6355
6363
  addModel(e, t, r = 1, i = "model", n = 0) {
@@ -6426,7 +6434,7 @@ class ys {
6426
6434
  }
6427
6435
  recenterAnchor(e) {
6428
6436
  if (!e) return;
6429
- const t = Y.MercatorCoordinate.fromLngLat(e, 0);
6437
+ const t = z.MercatorCoordinate.fromLngLat(e, 0);
6430
6438
  this.anchorMercator = { x: t.x, y: t.y, z: t.z || 0 }, this.anchorMeterScale = t.meterInMercatorCoordinateUnits(), this.anchorLngLat = e, this.models.forEach((r) => {
6431
6439
  if (r.lngLat) {
6432
6440
  const [i, n] = this.lngLatToLocal(r.lngLat);
@@ -6608,7 +6616,7 @@ class _e {
6608
6616
  const t = document.createElement("link");
6609
6617
  t.id = "pm-font-awesome", t.rel = "stylesheet", t.href = "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css", document.head.appendChild(t);
6610
6618
  }
6611
- this._extrudeState = null, this._rotateState = null, this._cloneState = null, this._overlay = null, this._extrudeMarker = null, this.clipboard = null, this.USER_3D_SOURCE_ID = "pm-user-3d-buildings", this.USER_3D_LAYER_ID = "pm-user-3d-buildings-fill", this.store = new Rn(this.eventBus), this._onMapClick = this._onMapClick.bind(this), this._onMapMouseMove = this._onMapMouseMove.bind(this), this._onCloneMapClick = this._onCloneMapClick.bind(this), this._onOverlayMouseDown = this._onOverlayMouseDown.bind(this), this._onOverlayMouseMove = this._onOverlayMouseMove.bind(this), this._onOverlayMouseUp = this._onOverlayMouseUp.bind(this), this.mapManager.getMap() ? this.initDraw(this.mapManager.getMap()) : this.eventBus.on("mapLoaded", ({ map: t }) => {
6619
+ this._extrudeState = null, this._rotateState = null, this._cloneState = null, this._overlay = null, this._extrudeMarker = null, this.clipboard = null, this.USER_3D_SOURCE_ID = "pm-user-3d-buildings", this.USER_3D_LAYER_ID = "pm-user-3d-buildings-fill", this.store = new On(this.eventBus), this._onMapClick = this._onMapClick.bind(this), this._onMapMouseMove = this._onMapMouseMove.bind(this), this._onCloneMapClick = this._onCloneMapClick.bind(this), this._onOverlayMouseDown = this._onOverlayMouseDown.bind(this), this._onOverlayMouseMove = this._onOverlayMouseMove.bind(this), this._onOverlayMouseUp = this._onOverlayMouseUp.bind(this), this.mapManager.getMap() ? this.initDraw(this.mapManager.getMap()) : this.eventBus.on("mapLoaded", ({ map: t }) => {
6612
6620
  this.initDraw(t);
6613
6621
  });
6614
6622
  }
@@ -7056,7 +7064,7 @@ class _e {
7056
7064
  * map.geometry.query().byKind('beacon').byFloor(1).toArray();
7057
7065
  */
7058
7066
  query() {
7059
- return new On(() => this.draw ? this.draw.getAll().features : []);
7067
+ return new Rn(() => this.draw ? this.draw.getAll().features : []);
7060
7068
  }
7061
7069
  /**
7062
7070
  * Retrieve geometry data as GeoJSON.
@@ -7507,7 +7515,7 @@ class _e {
7507
7515
  y.className = p, y.style.fontSize = "16px", y.style.color = l, m.appendChild(y), h.appendChild(m);
7508
7516
  const b = document.createElement("div");
7509
7517
  b.className = "pm-indoor-marker-label", b.textContent = d || "", b.style.fontSize = "11px", b.style.fontWeight = "600", b.style.fontFamily = "var(--pm-font-family), system-ui, sans-serif", b.style.color = "#ffffff", b.style.textShadow = "-1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000, 0px 2px 4px rgba(0,0,0,0.8)", b.style.padding = "2px 6px", b.style.whiteSpace = "nowrap", b.style.pointerEvents = "none", b.style.display = d ? "block" : "none", h.appendChild(b);
7510
- const E = e.geometry.coordinates, x = new Y.Marker({ element: h, anchor: "center" }).setLngLat(E).addTo(t);
7518
+ const E = e.geometry.coordinates, x = new z.Marker({ element: h, anchor: "center" }).setLngLat(E).addTo(t);
7511
7519
  this._beaconPoiMarkers.set(e.id, x);
7512
7520
  }
7513
7521
  /**
@@ -7940,7 +7948,7 @@ class xs {
7940
7948
  <label>ORDINAL (LEVEL)</label>
7941
7949
  <select id="pm-prop-input-ordinal">
7942
7950
  <option value="">-- select level --</option>
7943
- ${this.geometryManager.draw.getAll().features.filter((v) => (v.properties.user_kind || v.properties.kind) === "floor" && v.id !== e.id).map((v) => v.properties.user_ordinal || v.properties.ordinal || 0).filter((v, T, R) => R.indexOf(v) === T).sort((v, T) => v - T).map((v) => `<option value="${v}" ${v === u ? "selected" : ""}>Level ${v}</option>`).join("")}
7951
+ ${this.geometryManager.draw.getAll().features.filter((v) => (v.properties.user_kind || v.properties.kind) === "floor" && v.id !== e.id).map((v) => v.properties.user_ordinal || v.properties.ordinal || 0).filter((v, T, O) => O.indexOf(v) === T).sort((v, T) => v - T).map((v) => `<option value="${v}" ${v === u ? "selected" : ""}>Level ${v}</option>`).join("")}
7944
7952
  </select>
7945
7953
  </div>
7946
7954
  </div>
@@ -8039,18 +8047,18 @@ class xs {
8039
8047
  const I = this.container.querySelector("#pm-prop-input-ordinal");
8040
8048
  if (I) {
8041
8049
  const v = (T) => {
8042
- let R = parseInt(T.target.value, 10);
8043
- isNaN(R) && (R = 0), this._updateProperty("ordinal", R);
8050
+ let O = parseInt(T.target.value, 10);
8051
+ isNaN(O) && (O = 0), this._updateProperty("ordinal", O);
8044
8052
  const U = this.container.querySelector("#pm-coords-section");
8045
8053
  U && (U.style.display = r !== "floor" ? "block" : "none");
8046
- const z = this.geometryManager.draw.get(this.activeFeatureId);
8047
- if (z && z.geometry.type === "Point") {
8054
+ const H = this.geometryManager.draw.get(this.activeFeatureId);
8055
+ if (H && H.geometry.type === "Point") {
8048
8056
  const K = this.geometryManager.draw.getAll().features.find(
8049
- (ee) => (ee.properties.user_kind || ee.properties.kind) === "floor" && (ee.properties.user_ordinal === R || ee.properties.ordinal === R)
8057
+ (ee) => (ee.properties.user_kind || ee.properties.kind) === "floor" && (ee.properties.user_ordinal === O || ee.properties.ordinal === O)
8050
8058
  );
8051
8059
  if (K)
8052
8060
  try {
8053
- const De = me(K).geometry.coordinates, [ze, No] = z.geometry.coordinates, { x: Vt, y: qt } = pe(ze, No, De);
8061
+ const De = me(K).geometry.coordinates, [ze, No] = H.geometry.coordinates, { x: Vt, y: qt } = pe(ze, No, De);
8054
8062
  this._updateProperty("x", Vt), this._updateProperty("y", qt);
8055
8063
  const Wt = this.container.querySelector("#pm-prop-display-x"), Jt = this.container.querySelector("#pm-prop-display-y");
8056
8064
  Wt && (Wt.textContent = Vt.toFixed(2)), Jt && (Jt.textContent = qt.toFixed(2));
@@ -8066,11 +8074,11 @@ class xs {
8066
8074
  const Q = this.container.querySelector("#pm-prop-input-restricted");
8067
8075
  if (Q && Q.addEventListener("change", (v) => this._updateProperty("restricted", v.target.checked)), f) {
8068
8076
  this.container.querySelectorAll(".pm-color-item").forEach((T) => {
8069
- T.onclick = (R) => {
8070
- const U = R.currentTarget.dataset.color;
8077
+ T.onclick = (O) => {
8078
+ const U = O.currentTarget.dataset.color;
8071
8079
  this._updateProperty("color", U), this.container.querySelectorAll(".pm-color-item").forEach((K) => K.classList.remove("active")), T.classList.add("active");
8072
- const z = this.container.querySelector("#pm-prop-custom-color");
8073
- z && (z.value = U);
8080
+ const H = this.container.querySelector("#pm-prop-custom-color");
8081
+ H && (H.value = U);
8074
8082
  const ie = this.geometryManager.draw.get(this.activeFeatureId);
8075
8083
  this._updateIconGridColors(ie);
8076
8084
  };
@@ -8078,13 +8086,13 @@ class xs {
8078
8086
  const v = this.container.querySelector("#pm-prop-custom-color");
8079
8087
  v && v.addEventListener("change", (T) => {
8080
8088
  this._updateProperty("color", T.target.value);
8081
- const R = this.geometryManager.draw.get(this.activeFeatureId);
8082
- this._render(R);
8089
+ const O = this.geometryManager.draw.get(this.activeFeatureId);
8090
+ this._render(O);
8083
8091
  }), this.container.querySelectorAll(".pm-icon-item").forEach((T) => {
8084
- T.onclick = (R) => {
8085
- const U = R.currentTarget.dataset.icon;
8086
- this._updateProperty("icon", U), this.container.querySelectorAll(".pm-icon-item").forEach((z) => z.classList.remove("active")), T.classList.add("active"), this.container.querySelectorAll(".pm-icon-item").forEach((z) => {
8087
- const ie = z.classList.contains("active"), K = z.querySelector("i");
8092
+ T.onclick = (O) => {
8093
+ const U = O.currentTarget.dataset.icon;
8094
+ this._updateProperty("icon", U), this.container.querySelectorAll(".pm-icon-item").forEach((H) => H.classList.remove("active")), T.classList.add("active"), this.container.querySelectorAll(".pm-icon-item").forEach((H) => {
8095
+ const ie = H.classList.contains("active"), K = H.querySelector("i");
8088
8096
  K && (K.style.color = ie ? "#ffffff" : "rgba(255,255,255,0.6)");
8089
8097
  });
8090
8098
  };
@@ -8095,17 +8103,17 @@ class xs {
8095
8103
  if (v.preventDefault(), v.stopPropagation(), !this.activeFeatureId) return;
8096
8104
  const T = `prop_${Math.random().toString(36).substr(2, 5)}`;
8097
8105
  this._updateProperty(T, "value");
8098
- const R = this.geometryManager.draw.get(this.activeFeatureId);
8099
- if (R) {
8100
- this._render(R);
8106
+ const O = this.geometryManager.draw.get(this.activeFeatureId);
8107
+ if (O) {
8108
+ this._render(O);
8101
8109
  const U = this.container.querySelector(".pm-prop-body");
8102
8110
  U && setTimeout(() => {
8103
8111
  U.scrollTop = U.scrollHeight;
8104
8112
  }, 50);
8105
8113
  }
8106
8114
  }), this.container.querySelectorAll(".pm-custom-prop-row").forEach((v) => {
8107
- const T = v.dataset.key, R = v.querySelector(".pm-prop-custom-key"), U = v.querySelector(".pm-prop-custom-val"), z = v.querySelector(".pm-btn-remove-prop");
8108
- R && R.addEventListener("change", (ie) => {
8115
+ const T = v.dataset.key, O = v.querySelector(".pm-prop-custom-key"), U = v.querySelector(".pm-prop-custom-val"), H = v.querySelector(".pm-btn-remove-prop");
8116
+ O && O.addEventListener("change", (ie) => {
8109
8117
  const K = ie.target.value.trim();
8110
8118
  if (K && K !== T) {
8111
8119
  const ee = U.value, De = this.geometryManager.draw.get(this.activeFeatureId);
@@ -8117,7 +8125,7 @@ class xs {
8117
8125
  }
8118
8126
  }), U && U.addEventListener("input", (ie) => {
8119
8127
  this._updateProperty(T, ie.target.value);
8120
- }), z && z.addEventListener("click", (ie) => {
8128
+ }), H && H.addEventListener("click", (ie) => {
8121
8129
  ie.preventDefault(), ie.stopPropagation();
8122
8130
  const K = this.geometryManager.draw.get(this.activeFeatureId);
8123
8131
  if (K) {
@@ -8367,14 +8375,14 @@ class Ms {
8367
8375
  if (Q) {
8368
8376
  const X = Q.getAll().features.find(
8369
8377
  (v) => {
8370
- var T, R, U, z;
8371
- return (((T = v.properties) == null ? void 0 : T.user_kind) || ((R = v.properties) == null ? void 0 : R.kind)) === "floor" && (((U = v.properties) == null ? void 0 : U.user_ordinal) === I || ((z = v.properties) == null ? void 0 : z.ordinal) === I);
8378
+ var T, O, U, H;
8379
+ return (((T = v.properties) == null ? void 0 : T.user_kind) || ((O = v.properties) == null ? void 0 : O.kind)) === "floor" && (((U = v.properties) == null ? void 0 : U.user_ordinal) === I || ((H = v.properties) == null ? void 0 : H.ordinal) === I);
8372
8380
  }
8373
8381
  );
8374
8382
  if (X)
8375
8383
  try {
8376
- const v = me(X), { x: T, y: R } = pe(t.geometry.coordinates[0], t.geometry.coordinates[1], v.geometry.coordinates);
8377
- r.innerHTML = `<span style="font-size:12px; font-weight:600; color:#64748b;">X</span> ${T.toFixed(2)}&nbsp;&nbsp;<span style="font-size:12px; font-weight:600; color:#64748b;">Y</span> ${R.toFixed(2)}<span style="font-size:10px; margin-left:3px; color:#cbd5e1;">ม.</span>`, F = !0;
8384
+ const v = me(X), { x: T, y: O } = pe(t.geometry.coordinates[0], t.geometry.coordinates[1], v.geometry.coordinates);
8385
+ r.innerHTML = `<span style="font-size:12px; font-weight:600; color:#64748b;">X</span> ${T.toFixed(2)}&nbsp;&nbsp;<span style="font-size:12px; font-weight:600; color:#64748b;">Y</span> ${O.toFixed(2)}<span style="font-size:10px; margin-left:3px; color:#cbd5e1;">ม.</span>`, F = !0;
8378
8386
  } catch {
8379
8387
  }
8380
8388
  }
@@ -9407,7 +9415,7 @@ class Fs {
9407
9415
  }
9408
9416
  }
9409
9417
  }
9410
- class Rs {
9418
+ class Os {
9411
9419
  /**
9412
9420
  * @param {Object} context - Shared SDK context (needs authManager)
9413
9421
  */
@@ -9488,7 +9496,7 @@ class Rs {
9488
9496
  return await i.json();
9489
9497
  }
9490
9498
  }
9491
- class Os {
9499
+ class Rs {
9492
9500
  constructor(e) {
9493
9501
  var t, r;
9494
9502
  this.context = e, this.map = (t = this.context.mapManager) == null ? void 0 : t.getMap(), this.routeData = null, this.activeFloorId = null, this.markers = { start: null, end: null }, this.backendUrl = (r = this.context.options) != null && r.baseUrl ? this.context.options.baseUrl + "/api/v2/indoor" : "https://maps.powermap.live/api/v2/indoor";
@@ -9542,7 +9550,7 @@ class Os {
9542
9550
  if (m.length > 1) {
9543
9551
  const y = m.reduce(
9544
9552
  (b, E) => b.extend(E),
9545
- new Y.LngLatBounds(m[0], m[0])
9553
+ new z.LngLatBounds(m[0], m[0])
9546
9554
  );
9547
9555
  this._getMap() && this._getMap().fitBounds(y, { padding: 60, duration: 1e3 });
9548
9556
  }
@@ -9639,7 +9647,7 @@ class Os {
9639
9647
  this.markers.start.setLngLat([e.lng, e.lat]);
9640
9648
  else {
9641
9649
  const i = document.createElement("div");
9642
- i.className = "pm-routing-marker pm-routing-marker-start", i.style.width = "24px", i.style.height = "24px", i.style.backgroundColor = "#10b981", i.style.borderRadius = "50%", i.style.border = "3px solid white", i.style.boxShadow = "0 2px 4px rgba(0,0,0,0.3)", i.style.zIndex = "1", this.markers.start = new Y.Marker({ element: i, draggable: !0 }).setLngLat([e.lng, e.lat]).addTo(r), this.markers.start.on("dragend", () => {
9650
+ i.className = "pm-routing-marker pm-routing-marker-start", i.style.width = "24px", i.style.height = "24px", i.style.backgroundColor = "#10b981", i.style.borderRadius = "50%", i.style.border = "3px solid white", i.style.boxShadow = "0 2px 4px rgba(0,0,0,0.3)", i.style.zIndex = "1", this.markers.start = new z.Marker({ element: i, draggable: !0 }).setLngLat([e.lng, e.lat]).addTo(r), this.markers.start.on("dragend", () => {
9643
9651
  const n = this.markers.start.getLngLat();
9644
9652
  r.fire("indoor-routing-marker-dragend", { markerType: "origin", lngLat: n, floorId: this.markers.start.getElement().dataset.floorId });
9645
9653
  });
@@ -9651,7 +9659,7 @@ class Os {
9651
9659
  this.markers.end.setLngLat([t.lng, t.lat]);
9652
9660
  else {
9653
9661
  const i = document.createElement("div");
9654
- i.className = "pm-routing-marker pm-routing-marker-end", i.style.width = "24px", i.style.height = "24px", i.style.backgroundColor = "#ef4444", i.style.borderRadius = "50%", i.style.border = "3px solid white", i.style.boxShadow = "0 2px 4px rgba(0,0,0,0.3)", i.style.zIndex = "1", this.markers.end = new Y.Marker({ element: i, draggable: !0 }).setLngLat([t.lng, t.lat]).addTo(r), this.markers.end.on("dragend", () => {
9662
+ i.className = "pm-routing-marker pm-routing-marker-end", i.style.width = "24px", i.style.height = "24px", i.style.backgroundColor = "#ef4444", i.style.borderRadius = "50%", i.style.border = "3px solid white", i.style.boxShadow = "0 2px 4px rgba(0,0,0,0.3)", i.style.zIndex = "1", this.markers.end = new z.Marker({ element: i, draggable: !0 }).setLngLat([t.lng, t.lat]).addTo(r), this.markers.end.on("dragend", () => {
9655
9663
  const n = this.markers.end.getLngLat();
9656
9664
  r.fire("indoor-routing-marker-dragend", { markerType: "destination", lngLat: n, floorId: this.markers.end.getElement().dataset.floorId });
9657
9665
  });
@@ -9677,7 +9685,7 @@ class Qs {
9677
9685
  * @param {Object} context - Shared SDK context
9678
9686
  */
9679
9687
  constructor(e) {
9680
- this.context = e, this.eventBus = e.eventBus, this.api = new Rs(e), this.router = new Os(e), this.currentFloor = 0, this._isTransitioning = !1, this.layerGroups = {
9688
+ this.context = e, this.eventBus = e.eventBus, this.api = new Os(e), this.router = new Rs(e), this.currentFloor = 0, this._isTransitioning = !1, this.layerGroups = {
9681
9689
  poi: ["pm-draw-special-point-inactive", "pm-draw-special-point-active"],
9682
9690
  beacon: ["pm-draw-special-point-inactive", "pm-draw-special-point-active"],
9683
9691
  walkway: ["pm-draw-line-active", "pm-draw-line-static", "pm-draw-point-vertex", "pm-draw-point-mid"],
@@ -10301,7 +10309,7 @@ class Us {
10301
10309
  const l = document.createElement("div");
10302
10310
  l.className = "pm-focus-marker-container", l.dataset.floorId = e.floorId || (this.router ? this.router.activeFloorId : "");
10303
10311
  const c = document.createElement("div");
10304
- c.className = "pm-focus-marker", l.appendChild(c), this._focusMarker = new Y.Marker({
10312
+ c.className = "pm-focus-marker", l.appendChild(c), this._focusMarker = new z.Marker({
10305
10313
  element: l,
10306
10314
  anchor: "center"
10307
10315
  }).setLngLat([s, a]).addTo(this._map);
@@ -10598,7 +10606,7 @@ class Ys {
10598
10606
  }
10599
10607
  _fitRouteBounds(e) {
10600
10608
  if (!this._map || !e.coordinates || e.coordinates.length === 0) return;
10601
- const t = new Y.LngLatBounds(e.coordinates[0], e.coordinates[0]);
10609
+ const t = new z.LngLatBounds(e.coordinates[0], e.coordinates[0]);
10602
10610
  for (const r of e.coordinates)
10603
10611
  t.extend(r);
10604
10612
  this._map.fitBounds(t, { padding: 80, maxZoom: 18 });
@@ -10691,7 +10699,7 @@ class Ys {
10691
10699
  const n = document.createElement("div");
10692
10700
  n.className = "pm-focus-marker-container";
10693
10701
  const s = document.createElement("div");
10694
- s.className = "pm-focus-marker", n.appendChild(s), this._focusMarker = new Y.Marker({
10702
+ s.className = "pm-focus-marker", n.appendChild(s), this._focusMarker = new z.Marker({
10695
10703
  element: n,
10696
10704
  anchor: "center"
10697
10705
  }).setLngLat([r, i]).addTo(this._map);