@vcmap/ui 6.0.7 → 6.0.9

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 Kd = Object.defineProperty;
2
2
  var Qd = (i, t, e) => t in i ? Kd(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
3
3
  var h = (i, t, e) => Qd(i, typeof t != "symbol" ? t + "" : t, e);
4
- import { ol$proj$getTransform as $e, ol$proj$get as ef, ol$proj$equivalent as tf, ol$proj$proj4$register as eh, ol$sphere$getDistance as bc, ol$geom$Circle as bt, ol$geom$GeometryCollection as Yi, ol$style$Style as K, ol$style$Fill as et, ol$style$Stroke as Be, ol$style$Text as on, ol$style$Icon as ni, ol$style$Circle as Vi, ol$style$RegularShape as Us, ol$has$DEVICE_PIXEL_RATIO as sf, ol$style$Image as Pc, ol$Feature as ue, ol$extent$containsCoordinate as Qn, ol$Map as rf, ol$interaction$defaults as nf, ol$Observable$unByKey as le, ol$View as cl, ol$easing$inAndOut as af, ol$extent$containsXY as Lc, ol$extent$boundingExtent as Ir, ol$layer$Vector as Ic, ol$geom$SimpleGeometry as of, ol$geom$Point as Ve, ol$geom$LineString as xt, ol$geom$Polygon as ht, ol$geom$MultiPoint as ul, ol$geom$MultiLineString as Fa, ol$geom$MultiPolygon as ks, ol$sphere$offset as Vn, ol$geom$Polygon$fromCircle as Tc, ol$geom$Polygon$circular as lf, ol$colorlike$asColorLike as hf, ol$ImageState as Pn, Feature as Fe, ol$extent$getBottomLeft as dl, ol$extent$getBottomRight as Ac, ol$extent$getTopRight as Dc, ol$extent$getTopLeft as Ga, ol$proj$transform as as, ol$source$Vector as Tr, ol$tilegrid$createXYZ as Nc, ol$TileState as Rc, ol$proj$Projection as cf, ol$tilegrid$TileGrid as Fc, ol$source$TileImage as uf, ol$layer$Tile as Ws, ol$extent$buffer as Gc, ol$extent$getCenter as cs, ol$geom$Polygon$fromExtent as kc, ol$proj$transformExtent as th, ol$format$GeoJSON as zc, ol$extent$getWidth as Go, ol$source$TileWMS as df, ol$source$ImageWMS as ff, ol$format$GML2 as ko, ol$format$WFS as zo, ol$format$GML3 as Ho, ol$extent$createEmpty as zs, ol$structs$LRUCache as gf, ol$extent$createOrUpdateFromCoordinate as mf, ol$render$canvas$Immediate as pf, ol$geom$flat$transform$transform2D as yf, ol$extent$intersects as Hc, ol$geom$SimpleGeometry$transformGeom2D as _f, ol$transform$scale as vf, ol$transform$create as Sf, ol$transform$compose as wf, ol$extent$extend as Ar, ol$source$OSM as Cf, ol$layer$Image as Bc, ol$source$ImageStatic as Mf, ol$source$TileDebug as xf, ol$source$XYZ as Ef, ol$source$VectorTile as Of, ol$layer$VectorTile as bf, ol$tilegrid$WMTS as Pf, ol$source$WMTS as Lf, ol$format$MVT as If, ol$coordinate$equals as Tf, ol$interaction$DragPan as Af, ol$extent$isEmpty as Bo, ol$geom$LinearRing as Df } from "./ol-16e4e2e6.js";
5
- import { Cartesian3 as _, Math as b, Cartographic as ee, Cesium3DTileStyle as ea, Cesium3DTileColorBlendMode as jn, Color as U, TrustedServers as fi, VerticalOrigin as Lt, Cesium3DTileFeature as Xi, Cesium3DTilePointFeature as Zi, Entity as Ji, Material as At, Cartesian2 as H, Matrix3 as Q, Quaternion as ta, Primitive as St, GeometryInstance as Ze, FrustumGeometry as Nf, ColorGeometryInstanceAttribute as Dr, PerInstanceColorAppearance as Hs, FrustumOutlineGeometry as Rf, destroyObject as Ff, EasingFunction as Gf, ConditionsExpression as kf, Expression as zf, HeightReference as Y, ClassificationType as os, NearFarScalar as wr, SplitDirection as we, sampleTerrainMostDetailed as Ys, PolygonOutlineGeometry as Hf, GroundPolylineGeometry as fl, PolylineGeometry as ls, PolygonHierarchy as Vo, PolygonGeometry as Bf, CircleOutlineGeometry as Vf, CircleGeometry as jf, HeadingPitchRoll as us, Matrix4 as G, Transforms as ji, Model as gl, MaterialAppearance as ia, ModelAnimationLoop as $f, CylinderOutlineGeometry as qf, CylinderGeometry as Vc, EllipsoidOutlineGeometry as Uf, EllipsoidGeometry as jc, SphereOutlineGeometry as Wf, SphereGeometry as Yf, BoxOutlineGeometry as Xf, BoxGeometry as ml, LabelStyle as eo, HorizontalOrigin as to, WallGeometry as Zf, WallOutlineGeometry as Jf, ArcType as sa, CatmullRomSpline as $c, ClassificationPrimitive as ka, SceneTransforms as Kf, ShadowMode as za, GroundPrimitive as qc, PolylineMaterialAppearance as ra, GroundPolylinePrimitive as Uc, PrimitiveCollection as $t, BillboardCollection as Qf, LabelCollection as eg, Billboard as Wc, Resource as tg, CesiumTerrainProvider as ih, Cartesian4 as sh, sampleTerrain as ig, Ellipsoid as jo, Clock as sg, DataSourceClock as rg, JulianDate as Yc, KeyboardEventModifier as io, ScreenSpaceEventType as Ni, CesiumWidget as ng, DataSourceDisplay as rh, DataSourceCollection as nh, RequestScheduler as ag, ScreenSpaceEventHandler as og, Ray as Xc, Camera as Zc, ImageryLayer as vs, CustomDataSource as Jc, BoundingSphere as Kc, Intersect as $n, BillboardVisualizer as lg, LabelVisualizer as hg, PointVisualizer as cg, WebMercatorTilingScheme as pl, GeographicTilingScheme as Qc, Rectangle as Et, Cesium3DTileset as na, Composite3DTileContent as ug, ConstantProperty as eu, HeadingPitchRange as dg, BoundingSphereState as ah, OpenStreetMapImageryProvider as fg, SingleTileImageryProvider as gg, TileMapServiceImageryProvider as mg, Event as $o, WebMapServiceImageryProvider as pg, WebMapTileServiceImageryProvider as yg, TileBoundingRegion as _g, QuadtreeTileProvider as vg, QuadtreeTileLoadState as Ln, Visibility as sr, EntityCollection as Sg, CzmlDataSource as wg, QuadtreePrimitive as Cg, Plane as oe, ClippingPlaneCollection as Nr, ClippingPlane as Rr, Globe as Mg, LinearSpline as xg, QuaternionSpline as Eg, IntersectionTests as Og, Matrix2 as oh, CoplanarPolygonGeometry as bg } from "./cesium-987bdd08.js";
6
- const Ss = Symbol("isMatcher"), Pg = Symbol("Integer"), Lg = Symbol("NonEmptyString"), yl = /* @__PURE__ */ new Map();
4
+ import { ol$proj$getTransform as $e, ol$proj$get as ef, ol$proj$equivalent as tf, ol$proj$proj4$register as th, ol$sphere$getDistance as bc, ol$geom$Circle as bt, ol$geom$GeometryCollection as Yi, ol$style$Style as K, ol$style$Fill as et, ol$style$Stroke as Be, ol$style$Text as on, ol$style$Icon as ni, ol$style$Circle as Vi, ol$style$RegularShape as Us, ol$has$DEVICE_PIXEL_RATIO as sf, ol$style$Image as Pc, ol$Feature as ue, ol$extent$containsCoordinate as Qn, ol$Map as rf, ol$interaction$defaults as nf, ol$Observable$unByKey as le, ol$View as ul, ol$easing$inAndOut as af, ol$extent$containsXY as Lc, ol$extent$boundingExtent as Ir, ol$layer$Vector as Ic, ol$geom$SimpleGeometry as of, ol$geom$Point as Ve, ol$geom$LineString as xt, ol$geom$Polygon as ht, ol$geom$MultiPoint as dl, ol$geom$MultiLineString as Fa, ol$geom$MultiPolygon as ks, ol$sphere$offset as Vn, ol$geom$Polygon$fromCircle as Tc, ol$geom$Polygon$circular as lf, ol$colorlike$asColorLike as hf, ol$ImageState as Pn, Feature as Fe, ol$extent$getBottomLeft as fl, ol$extent$getBottomRight as Ac, ol$extent$getTopRight as Dc, ol$extent$getTopLeft as Ga, ol$proj$transform as as, ol$source$Vector as Tr, ol$tilegrid$createXYZ as Nc, ol$TileState as Rc, ol$proj$Projection as cf, ol$tilegrid$TileGrid as Fc, ol$source$TileImage as uf, ol$layer$Tile as Ws, ol$extent$buffer as Gc, ol$extent$getCenter as cs, ol$geom$Polygon$fromExtent as kc, ol$proj$transformExtent as ih, ol$format$GeoJSON as zc, ol$extent$getWidth as ko, ol$source$TileWMS as df, ol$source$ImageWMS as ff, ol$format$GML2 as zo, ol$format$WFS as Ho, ol$format$GML3 as Bo, ol$extent$createEmpty as zs, ol$structs$LRUCache as gf, ol$extent$createOrUpdateFromCoordinate as mf, ol$render$canvas$Immediate as pf, ol$geom$flat$transform$transform2D as yf, ol$extent$intersects as Hc, ol$geom$SimpleGeometry$transformGeom2D as _f, ol$transform$scale as vf, ol$transform$create as Sf, ol$transform$compose as wf, ol$extent$extend as Ar, ol$source$OSM as Cf, ol$layer$Image as Bc, ol$source$ImageStatic as Mf, ol$source$TileDebug as xf, ol$source$XYZ as Ef, ol$source$VectorTile as Of, ol$layer$VectorTile as bf, ol$tilegrid$WMTS as Pf, ol$source$WMTS as Lf, ol$format$MVT as If, ol$coordinate$equals as Tf, ol$interaction$DragPan as Af, ol$extent$isEmpty as Vo, ol$geom$LinearRing as Df } from "./ol-952d4015.js";
5
+ import { Cartesian3 as _, Math as b, Cartographic as ee, Cesium3DTileStyle as ea, Cesium3DTileColorBlendMode as jn, Color as U, TrustedServers as fi, VerticalOrigin as Lt, Cesium3DTileFeature as Xi, Cesium3DTilePointFeature as Zi, Entity as Ji, Material as At, Cartesian2 as H, Matrix3 as Q, Quaternion as ta, Primitive as St, GeometryInstance as Ze, FrustumGeometry as Nf, ColorGeometryInstanceAttribute as Dr, PerInstanceColorAppearance as Hs, FrustumOutlineGeometry as Rf, destroyObject as Ff, EasingFunction as Gf, ConditionsExpression as kf, Expression as zf, HeightReference as Y, ClassificationType as os, NearFarScalar as wr, SplitDirection as we, sampleTerrainMostDetailed as Ys, PolygonOutlineGeometry as Hf, GroundPolylineGeometry as gl, PolylineGeometry as ls, PolygonHierarchy as jo, PolygonGeometry as Bf, CircleOutlineGeometry as Vf, CircleGeometry as jf, HeadingPitchRoll as us, Matrix4 as G, Transforms as ji, Model as ml, MaterialAppearance as ia, ModelAnimationLoop as $f, CylinderOutlineGeometry as qf, CylinderGeometry as Vc, EllipsoidOutlineGeometry as Uf, EllipsoidGeometry as jc, SphereOutlineGeometry as Wf, SphereGeometry as Yf, BoxOutlineGeometry as Xf, BoxGeometry as pl, LabelStyle as eo, HorizontalOrigin as to, WallGeometry as Zf, WallOutlineGeometry as Jf, ArcType as sa, CatmullRomSpline as $c, ClassificationPrimitive as ka, SceneTransforms as Kf, ShadowMode as za, GroundPrimitive as qc, PolylineMaterialAppearance as ra, GroundPolylinePrimitive as Uc, PrimitiveCollection as $t, BillboardCollection as Qf, LabelCollection as eg, Billboard as Wc, Resource as tg, CesiumTerrainProvider as sh, Cartesian4 as rh, sampleTerrain as ig, Ellipsoid as $o, Clock as sg, DataSourceClock as rg, JulianDate as Yc, KeyboardEventModifier as io, ScreenSpaceEventType as Ni, CesiumWidget as ng, DataSourceDisplay as nh, DataSourceCollection as ah, RequestScheduler as ag, ScreenSpaceEventHandler as og, Ray as Xc, Camera as Zc, ImageryLayer as vs, CustomDataSource as Jc, BoundingSphere as Kc, Intersect as $n, BillboardVisualizer as lg, LabelVisualizer as hg, PointVisualizer as cg, WebMercatorTilingScheme as yl, GeographicTilingScheme as Qc, Rectangle as Et, Cesium3DTileset as na, Composite3DTileContent as ug, ConstantProperty as eu, HeadingPitchRange as dg, BoundingSphereState as oh, OpenStreetMapImageryProvider as fg, SingleTileImageryProvider as gg, TileMapServiceImageryProvider as mg, Event as qo, WebMapServiceImageryProvider as pg, WebMapTileServiceImageryProvider as yg, TileBoundingRegion as _g, QuadtreeTileProvider as vg, QuadtreeTileLoadState as Ln, Visibility as sr, EntityCollection as Sg, CzmlDataSource as wg, QuadtreePrimitive as Cg, Plane as oe, ClippingPlaneCollection as Nr, ClippingPlane as Rr, Globe as Mg, LinearSpline as xg, QuaternionSpline as Eg, IntersectionTests as Og, Matrix2 as lh, CoplanarPolygonGeometry as bg } from "./cesium-89f2c7b6.js";
6
+ const Ss = Symbol("isMatcher"), Pg = Symbol("Integer"), Lg = Symbol("NonEmptyString"), _l = /* @__PURE__ */ new Map();
7
7
  [
8
8
  [String, "string"],
9
9
  [Number, "number"],
@@ -12,7 +12,7 @@ const Ss = Symbol("isMatcher"), Pg = Symbol("Integer"), Lg = Symbol("NonEmptyStr
12
12
  [void 0, "undefined"],
13
13
  [Symbol, "symbol"]
14
14
  ].forEach(([i, t]) => {
15
- yl.set(i, t);
15
+ _l.set(i, t);
16
16
  });
17
17
  function Ig(i) {
18
18
  return i == null ? void 0 : i[Ss];
@@ -59,14 +59,14 @@ function Ag(i, t, e) {
59
59
  }
60
60
  return null;
61
61
  }
62
- function qo(i, t, e, s) {
62
+ function Uo(i, t, e, s) {
63
63
  const r = s ? `${s}.` : "";
64
64
  if (!Fr(i))
65
65
  return `Expected ${Ye(i)} to be a plain Object`;
66
66
  let a = !1;
67
67
  const o = Object.keys(t).find((l) => {
68
68
  const c = i[l];
69
- return Fr(t[l]) ? a = qo(c, t[l], e, r + l) : a = e(c, t[l]), a;
69
+ return Fr(t[l]) ? a = Uo(c, t[l], e, r + l) : a = e(c, t[l]), a;
70
70
  });
71
71
  return o ? `${String(a)} in object.${r}${o}` : !1;
72
72
  }
@@ -77,13 +77,13 @@ function Dg(i, t) {
77
77
  return Number.isInteger(i) ? !1 : `expected ${Ye(i)} to be an integer number`;
78
78
  if (t === Lg)
79
79
  return typeof i == "string" && i.length > 0 ? !1 : `expected ${Ye(i)} to be a non-empty string`;
80
- const e = yl.get(t);
80
+ const e = _l.get(t);
81
81
  return e ? typeof i === e ? !1 : `expected ${Ye(i)} to be a ${String(e)}` : null;
82
82
  }
83
83
  function Ha(i) {
84
84
  if (i === null)
85
85
  return "null";
86
- const t = yl.get(i);
86
+ const t = _l.get(i);
87
87
  if (t)
88
88
  return t;
89
89
  const e = i == null ? void 0 : i.className;
@@ -127,11 +127,11 @@ function Xs(i, t) {
127
127
  if (Array.isArray(r))
128
128
  return Ag(s, r, e);
129
129
  if (r === Object)
130
- return qo(s, {}, e);
130
+ return Uo(s, {}, e);
131
131
  if (r instanceof Function)
132
132
  return s instanceof r ? !1 : `Expected ${Ye(s, !0)} to be of Type ${Ha(r)}`;
133
133
  if (typeof r == "object") {
134
- const o = qo(s, r, e);
134
+ const o = Uo(s, r, e);
135
135
  return o || !1;
136
136
  }
137
137
  throw new Error(`Cannot handle pattern ${String(r)}`);
@@ -177,7 +177,7 @@ function Fg(i) {
177
177
  };
178
178
  return t[Ss] = !0, t;
179
179
  }
180
- function lh(i) {
180
+ function hh(i) {
181
181
  const t = (e) => Fr(e) ? Object.values(e).every((r) => ws(r, i)) ? !1 : `Not all values of ${Ye(e)} are of type ${Ha(i)}` : `Expected ${Ye(e)} to be a plain Object`;
182
182
  return t[Ss] = !0, t;
183
183
  }
@@ -189,7 +189,7 @@ function aa(i) {
189
189
  function Gg(i) {
190
190
  i("EPSG:4326", "+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees"), i("EPSG:4269", "+title=NAD83 (long/lat) +proj=longlat +a=6378137.0 +b=6356752.31414036 +ellps=GRS80 +datum=NAD83 +units=degrees"), i("EPSG:3857", "+title=WGS 84 / Pseudo-Mercator +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs"), i.WGS84 = i["EPSG:4326"], i["EPSG:3785"] = i["EPSG:3857"], i.GOOGLE = i["EPSG:3857"], i["EPSG:900913"] = i["EPSG:3857"], i["EPSG:102113"] = i["EPSG:3857"];
191
191
  }
192
- var ds = 1, fs = 2, Fs = 3, kg = 4, Uo = 5, hh = 6378137, zg = 6356752314e-3, ch = 0.0066943799901413165, Cr = 484813681109536e-20, O = Math.PI / 2, Hg = 0.16666666666666666, Bg = 0.04722222222222222, Vg = 0.022156084656084655, T = 1e-10, Ue = 0.017453292519943295, ii = 57.29577951308232, se = Math.PI / 4, Gr = Math.PI * 2, xe = 3.14159265359, Pt = {};
192
+ var ds = 1, fs = 2, Fs = 3, kg = 4, Wo = 5, ch = 6378137, zg = 6356752314e-3, uh = 0.0066943799901413165, Cr = 484813681109536e-20, O = Math.PI / 2, Hg = 0.16666666666666666, Bg = 0.04722222222222222, Vg = 0.022156084656084655, T = 1e-10, Ue = 0.017453292519943295, ii = 57.29577951308232, se = Math.PI / 4, Gr = Math.PI * 2, xe = 3.14159265359, Pt = {};
193
193
  Pt.greenwich = 0;
194
194
  Pt.lisbon = -9.131906111111;
195
195
  Pt.paris = 2.337229166667;
@@ -207,15 +207,15 @@ const jg = {
207
207
  ft: { to_meter: 0.3048 },
208
208
  "us-ft": { to_meter: 1200 / 3937 }
209
209
  };
210
- var uh = /[\s_\-\/\(\)]/g;
210
+ var dh = /[\s_\-\/\(\)]/g;
211
211
  function $i(i, t) {
212
212
  if (i[t])
213
213
  return i[t];
214
- for (var e = Object.keys(i), s = t.toLowerCase().replace(uh, ""), r = -1, n, a; ++r < e.length; )
215
- if (n = e[r], a = n.toLowerCase().replace(uh, ""), a === s)
214
+ for (var e = Object.keys(i), s = t.toLowerCase().replace(dh, ""), r = -1, n, a; ++r < e.length; )
215
+ if (n = e[r], a = n.toLowerCase().replace(dh, ""), a === s)
216
216
  return i[n];
217
217
  }
218
- function Wo(i) {
218
+ function Yo(i) {
219
219
  var t = {}, e = i.split("+").map(function(o) {
220
220
  return o.trim();
221
221
  }).filter(function(o) {
@@ -324,7 +324,7 @@ function Wo(i) {
324
324
  r = e[s], s in a ? (n = a[s], typeof n == "function" ? n(r) : t[n] = r) : t[s] = r;
325
325
  return typeof t.datumCode == "string" && t.datumCode !== "WGS84" && (t.datumCode = t.datumCode.toLowerCase()), t;
326
326
  }
327
- var kr = 1, iu = 2, su = 3, oa = 4, ru = 5, _l = -1, $g = /\s/, qg = /[A-Za-z]/, Ug = /[A-Za-z84_]/, Ba = /[,\]]/, nu = /[\d\.E\-\+]/;
327
+ var kr = 1, iu = 2, su = 3, oa = 4, ru = 5, vl = -1, $g = /\s/, qg = /[A-Za-z]/, Ug = /[A-Za-z84_]/, Ba = /[,\]]/, nu = /[\d\.E\-\+]/;
328
328
  function Ti(i) {
329
329
  if (typeof i != "string")
330
330
  throw new Error("not a string");
@@ -349,7 +349,7 @@ Ti.prototype.readCharicter = function() {
349
349
  return this.afterquote(i);
350
350
  case su:
351
351
  return this.number(i);
352
- case _l:
352
+ case vl:
353
353
  return;
354
354
  }
355
355
  };
@@ -370,7 +370,7 @@ Ti.prototype.afterItem = function(i) {
370
370
  return;
371
371
  }
372
372
  if (i === "]") {
373
- this.level--, this.word !== null && (this.currentObject.push(this.word), this.word = null), this.state = kr, this.currentObject = this.stack.pop(), this.currentObject || (this.state = _l);
373
+ this.level--, this.word !== null && (this.currentObject.push(this.word), this.word = null), this.state = kr, this.currentObject = this.stack.pop(), this.currentObject || (this.state = vl);
374
374
  return;
375
375
  }
376
376
  };
@@ -430,7 +430,7 @@ Ti.prototype.neutral = function(i) {
430
430
  Ti.prototype.output = function() {
431
431
  for (; this.place < this.text.length; )
432
432
  this.readCharicter();
433
- if (this.state === _l)
433
+ if (this.state === vl)
434
434
  return this.root;
435
435
  throw new Error('unable to parse string "' + this.text + '". State is ' + this.state);
436
436
  };
@@ -438,7 +438,7 @@ function Wg(i) {
438
438
  var t = new Ti(i);
439
439
  return t.output();
440
440
  }
441
- function dh(i, t, e) {
441
+ function fh(i, t, e) {
442
442
  Array.isArray(t) && (e.unshift(t), t = null);
443
443
  var s = t ? {} : i, r = e.reduce(function(n, a) {
444
444
  return As(a, n), n;
@@ -511,13 +511,13 @@ function As(i, t) {
511
511
  case "FITTED_CS":
512
512
  case "LOCAL_DATUM":
513
513
  case "DATUM":
514
- i[0] = ["name", i[0]], dh(t, e, i);
514
+ i[0] = ["name", i[0]], fh(t, e, i);
515
515
  return;
516
516
  default:
517
517
  for (s = -1; ++s < i.length; )
518
518
  if (!Array.isArray(i[s]))
519
519
  return As(i, t[e]);
520
- return dh(t, e, i);
520
+ return fh(t, e, i);
521
521
  }
522
522
  }
523
523
  var Yg = 0.017453292519943295;
@@ -594,7 +594,7 @@ function nt(i) {
594
594
  var t = this;
595
595
  if (arguments.length === 2) {
596
596
  var e = arguments[1];
597
- typeof e == "string" ? e.charAt(0) === "+" ? nt[i] = Wo(arguments[1]) : nt[i] = au(arguments[1]) : nt[i] = e;
597
+ typeof e == "string" ? e.charAt(0) === "+" ? nt[i] = Yo(arguments[1]) : nt[i] = au(arguments[1]) : nt[i] = e;
598
598
  } else if (arguments.length === 1) {
599
599
  if (Array.isArray(i))
600
600
  return i.map(function(s) {
@@ -645,14 +645,14 @@ function nm(i) {
645
645
  if (im(t))
646
646
  return nt["EPSG:3857"];
647
647
  var e = sm(t);
648
- return e ? Wo(e) : t;
648
+ return e ? Yo(e) : t;
649
649
  }
650
650
  if (rm(i))
651
- return Wo(i);
651
+ return Yo(i);
652
652
  } else
653
653
  return i;
654
654
  }
655
- function fh(i, t) {
655
+ function gh(i, t) {
656
656
  i = i || {};
657
657
  var e, s;
658
658
  if (!t)
@@ -720,14 +720,14 @@ const cm = {
720
720
  };
721
721
  function um() {
722
722
  }
723
- function gh(i) {
723
+ function mh(i) {
724
724
  return i;
725
725
  }
726
726
  var dm = ["longlat", "identity"];
727
727
  const fm = {
728
728
  init: um,
729
- forward: gh,
730
- inverse: gh,
729
+ forward: mh,
730
+ inverse: mh,
731
731
  names: dm
732
732
  };
733
733
  var gm = [cm, fm], qn = {}, la = [];
@@ -1089,7 +1089,7 @@ Ge.rnb72 = {
1089
1089
  };
1090
1090
  function wm(i, t, e, s, r, n, a) {
1091
1091
  var o = {};
1092
- return i === void 0 || i === "none" ? o.datum_type = Uo : o.datum_type = kg, t && (o.datum_params = t.map(parseFloat), (o.datum_params[0] !== 0 || o.datum_params[1] !== 0 || o.datum_params[2] !== 0) && (o.datum_type = ds), o.datum_params.length > 3 && (o.datum_params[3] !== 0 || o.datum_params[4] !== 0 || o.datum_params[5] !== 0 || o.datum_params[6] !== 0) && (o.datum_type = fs, o.datum_params[3] *= Cr, o.datum_params[4] *= Cr, o.datum_params[5] *= Cr, o.datum_params[6] = o.datum_params[6] / 1e6 + 1)), a && (o.datum_type = Fs, o.grids = a), o.a = e, o.b = s, o.es = r, o.ep2 = n, o;
1092
+ return i === void 0 || i === "none" ? o.datum_type = Wo : o.datum_type = kg, t && (o.datum_params = t.map(parseFloat), (o.datum_params[0] !== 0 || o.datum_params[1] !== 0 || o.datum_params[2] !== 0) && (o.datum_type = ds), o.datum_params.length > 3 && (o.datum_params[3] !== 0 || o.datum_params[4] !== 0 || o.datum_params[5] !== 0 || o.datum_params[6] !== 0) && (o.datum_type = fs, o.datum_params[3] *= Cr, o.datum_params[4] *= Cr, o.datum_params[5] *= Cr, o.datum_params[6] = o.datum_params[6] / 1e6 + 1)), a && (o.datum_type = Fs, o.grids = a), o.a = e, o.b = s, o.es = r, o.ep2 = n, o;
1093
1093
  }
1094
1094
  var lu = {};
1095
1095
  function Cm(i, t) {
@@ -1125,14 +1125,14 @@ function Om(i, t) {
1125
1125
  nFields: i.getInt32(8, t),
1126
1126
  nSubgridFields: i.getInt32(24, t),
1127
1127
  nSubgrids: i.getInt32(40, t),
1128
- shiftType: Yo(i, 56, 64).trim(),
1128
+ shiftType: Xo(i, 56, 64).trim(),
1129
1129
  fromSemiMajorAxis: i.getFloat64(120, t),
1130
1130
  fromSemiMinorAxis: i.getFloat64(136, t),
1131
1131
  toSemiMajorAxis: i.getFloat64(152, t),
1132
1132
  toSemiMinorAxis: i.getFloat64(168, t)
1133
1133
  };
1134
1134
  }
1135
- function Yo(i, t, e) {
1135
+ function Xo(i, t, e) {
1136
1136
  return String.fromCharCode.apply(null, new Uint8Array(i.buffer.slice(t, e)));
1137
1137
  }
1138
1138
  function bm(i, t, e) {
@@ -1159,8 +1159,8 @@ function Pm(i) {
1159
1159
  }
1160
1160
  function Lm(i, t, e) {
1161
1161
  return {
1162
- name: Yo(i, t + 8, t + 16).trim(),
1163
- parent: Yo(i, t + 24, t + 24 + 8).trim(),
1162
+ name: Xo(i, t + 8, t + 16).trim(),
1163
+ parent: Xo(i, t + 24, t + 24 + 8).trim(),
1164
1164
  lowerLatitude: i.getFloat64(t + 72, e),
1165
1165
  upperLatitude: i.getFloat64(t + 88, e),
1166
1166
  lowerLongitude: i.getFloat64(t + 104, e),
@@ -1213,7 +1213,7 @@ function si(i, t) {
1213
1213
  a.ep2,
1214
1214
  o
1215
1215
  );
1216
- fh(this, e), fh(this, s), this.a = n.a, this.b = n.b, this.rf = n.rf, this.sphere = n.sphere, this.es = a.es, this.e = a.e, this.ep2 = a.ep2, this.datum = l, this.init(), t(null, this);
1216
+ gh(this, e), gh(this, s), this.a = n.a, this.b = n.b, this.rf = n.rf, this.sphere = n.sphere, this.es = a.es, this.e = a.e, this.ep2 = a.ep2, this.datum = l, this.init(), t(null, this);
1217
1217
  }
1218
1218
  si.projections = ym;
1219
1219
  si.projections.start();
@@ -1295,26 +1295,26 @@ function In(i) {
1295
1295
  return i === ds || i === fs;
1296
1296
  }
1297
1297
  function Nm(i, t, e) {
1298
- if (Tm(i, t) || i.datum_type === Uo || t.datum_type === Uo)
1298
+ if (Tm(i, t) || i.datum_type === Wo || t.datum_type === Wo)
1299
1299
  return e;
1300
1300
  var s = i.a, r = i.es;
1301
1301
  if (i.datum_type === Fs) {
1302
- var n = mh(i, !1, e);
1302
+ var n = ph(i, !1, e);
1303
1303
  if (n !== 0)
1304
1304
  return;
1305
- s = hh, r = ch;
1305
+ s = ch, r = uh;
1306
1306
  }
1307
1307
  var a = t.a, o = t.b, l = t.es;
1308
- if (t.datum_type === Fs && (a = hh, o = zg, l = ch), r === l && s === a && !In(i.datum_type) && !In(t.datum_type))
1308
+ if (t.datum_type === Fs && (a = ch, o = zg, l = uh), r === l && s === a && !In(i.datum_type) && !In(t.datum_type))
1309
1309
  return e;
1310
1310
  if (e = hu(e, r, s), In(i.datum_type) && (e = Am(e, i.datum_type, i.datum_params)), In(t.datum_type) && (e = Dm(e, t.datum_type, t.datum_params)), e = cu(e, l, a, o), t.datum_type === Fs) {
1311
- var c = mh(t, !0, e);
1311
+ var c = ph(t, !0, e);
1312
1312
  if (c !== 0)
1313
1313
  return;
1314
1314
  }
1315
1315
  return e;
1316
1316
  }
1317
- function mh(i, t, e) {
1317
+ function ph(i, t, e) {
1318
1318
  if (i.grids === null || i.grids.length === 0)
1319
1319
  return console.log("Grid shift grids not found"), -1;
1320
1320
  var s = { x: -e.x, y: e.y }, r = { x: Number.NaN, y: Number.NaN }, n = [];
@@ -1344,14 +1344,14 @@ function Rm(i, t, e) {
1344
1344
  return s;
1345
1345
  var r = { x: i.x, y: i.y };
1346
1346
  r.x -= e.ll[0], r.y -= e.ll[1], r.x = A(r.x - Math.PI) + Math.PI;
1347
- var n = ph(r, e);
1347
+ var n = yh(r, e);
1348
1348
  if (t) {
1349
1349
  if (isNaN(n.x))
1350
1350
  return s;
1351
1351
  n.x = r.x - n.x, n.y = r.y - n.y;
1352
1352
  var a = 9, o = 1e-12, l, c;
1353
1353
  do {
1354
- if (c = ph(n, e), isNaN(c.x)) {
1354
+ if (c = yh(n, e), isNaN(c.x)) {
1355
1355
  console.log("Inverse grid shift iteration failed, presumably at grid edge. Using first approximation.");
1356
1356
  break;
1357
1357
  }
@@ -1364,7 +1364,7 @@ function Rm(i, t, e) {
1364
1364
  isNaN(n.x) || (s.x = i.x + n.x, s.y = i.y + n.y);
1365
1365
  return s;
1366
1366
  }
1367
- function ph(i, t) {
1367
+ function yh(i, t) {
1368
1368
  var e = { x: i.x / t.del[0], y: i.y / t.del[1] }, s = { x: Math.floor(e.x), y: Math.floor(e.y) }, r = { x: e.x - 1 * s.x, y: e.y - 1 * s.y }, n = { x: Number.NaN, y: Number.NaN }, a;
1369
1369
  if (s.x < 0 || s.x >= t.lim[0] || s.y < 0 || s.y >= t.lim[1])
1370
1370
  return n;
@@ -1378,7 +1378,7 @@ function ph(i, t) {
1378
1378
  var d = { x: t.cvs[a][0], y: t.cvs[a][1] }, u = r.x * r.y, f = r.x * (1 - r.y), g = (1 - r.x) * (1 - r.y), m = (1 - r.x) * r.y;
1379
1379
  return n.x = g * o.x + f * l.x + m * d.x + u * c.x, n.y = g * o.y + f * l.y + m * d.y + u * c.y, n;
1380
1380
  }
1381
- function yh(i, t, e) {
1381
+ function _h(i, t, e) {
1382
1382
  var s = e.x, r = e.y, n = e.z || 0, a, o, l, c = {};
1383
1383
  for (l = 0; l < 3; l++)
1384
1384
  if (!(t && l === 2 && e.z === void 0))
@@ -1414,9 +1414,9 @@ function uu(i) {
1414
1414
  return i.length > 2 && (t.z = i[2]), i.length > 3 && (t.m = i[3]), t;
1415
1415
  }
1416
1416
  function Fm(i) {
1417
- _h(i.x), _h(i.y);
1417
+ vh(i.x), vh(i.y);
1418
1418
  }
1419
- function _h(i) {
1419
+ function vh(i) {
1420
1420
  if (typeof Number.isFinite == "function") {
1421
1421
  if (Number.isFinite(i))
1422
1422
  return;
@@ -1437,7 +1437,7 @@ function ha(i, t, e, s) {
1437
1437
  m: e.m
1438
1438
  };
1439
1439
  var n = e.z !== void 0;
1440
- if (Fm(e), i.datum && t.datum && Gm(i, t) && (r = new si("WGS84"), e = ha(i, r, e, s), i = r), s && i.axis !== "enu" && (e = yh(i, !1, e)), i.projName === "longlat")
1440
+ if (Fm(e), i.datum && t.datum && Gm(i, t) && (r = new si("WGS84"), e = ha(i, r, e, s), i = r), s && i.axis !== "enu" && (e = _h(i, !1, e)), i.projName === "longlat")
1441
1441
  e = {
1442
1442
  x: e.x * Ue,
1443
1443
  y: e.y * Ue,
@@ -1462,9 +1462,9 @@ function ha(i, t, e, s) {
1462
1462
  x: e.x / t.to_meter,
1463
1463
  y: e.y / t.to_meter,
1464
1464
  z: e.z || 0
1465
- })), s && t.axis !== "enu" ? yh(t, !0, e) : (e && !n && delete e.z, e);
1465
+ })), s && t.axis !== "enu" ? _h(t, !0, e) : (e && !n && delete e.z, e);
1466
1466
  }
1467
- var vh = si("WGS84");
1467
+ var Sh = si("WGS84");
1468
1468
  function so(i, t, e, s) {
1469
1469
  var r, n, a;
1470
1470
  return Array.isArray(e) ? (r = ha(i, t, e, s) || { x: NaN, y: NaN }, e.length > 2 ? typeof i.name < "u" && i.name === "geocent" || typeof t.name < "u" && t.name === "geocent" ? typeof r.z == "number" ? [r.x, r.y, r.z].concat(e.slice(3)) : [r.x, r.y, e[2]].concat(e.slice(3)) : [r.x, r.y].concat(e.slice(2)) : [r.x, r.y]) : (n = ha(i, t, e, s), a = Object.keys(e), a.length === 2 || a.forEach(function(o) {
@@ -1476,13 +1476,13 @@ function so(i, t, e, s) {
1476
1476
  n[o] = e[o];
1477
1477
  }), n);
1478
1478
  }
1479
- function Sh(i) {
1479
+ function wh(i) {
1480
1480
  return i instanceof si ? i : i.oProj ? i.oProj : si(i);
1481
1481
  }
1482
1482
  function Re(i, t, e) {
1483
- i = Sh(i);
1483
+ i = wh(i);
1484
1484
  var s = !1, r;
1485
- return typeof t > "u" ? (t = i, i = vh, s = !0) : (typeof t.x < "u" || Array.isArray(t)) && (e = t, t = i, i = vh, s = !0), t = Sh(t), e ? so(i, t, e) : (r = {
1485
+ return typeof t > "u" ? (t = i, i = Sh, s = !0) : (typeof t.x < "u" || Array.isArray(t)) && (e = t, t = i, i = Sh, s = !0), t = wh(t), e ? so(i, t, e) : (r = {
1486
1486
  forward: function(n, a) {
1487
1487
  return so(i, t, n, a);
1488
1488
  },
@@ -1491,7 +1491,7 @@ function Re(i, t, e) {
1491
1491
  }
1492
1492
  }, s && (r.oProj = t), r);
1493
1493
  }
1494
- var wh = 6, du = "AJSAJS", fu = "AFAFAF", Ns = 65, ft = 73, Rt = 79, ur = 86, dr = 90;
1494
+ var Ch = 6, du = "AJSAJS", fu = "AFAFAF", Ns = 65, ft = 73, Rt = 79, ur = 86, dr = 90;
1495
1495
  const km = {
1496
1496
  forward: gu,
1497
1497
  inverse: zm,
@@ -1504,17 +1504,17 @@ function gu(i, t) {
1504
1504
  }), t);
1505
1505
  }
1506
1506
  function zm(i) {
1507
- var t = vl(yu(i.toUpperCase()));
1507
+ var t = Sl(yu(i.toUpperCase()));
1508
1508
  return t.lat && t.lon ? [t.lon, t.lat, t.lon, t.lat] : [t.left, t.bottom, t.right, t.top];
1509
1509
  }
1510
1510
  function mu(i) {
1511
- var t = vl(yu(i.toUpperCase()));
1511
+ var t = Sl(yu(i.toUpperCase()));
1512
1512
  return t.lat && t.lon ? [t.lon, t.lat] : [(t.left + t.right) / 2, (t.top + t.bottom) / 2];
1513
1513
  }
1514
1514
  function ro(i) {
1515
1515
  return i * (Math.PI / 180);
1516
1516
  }
1517
- function Ch(i) {
1517
+ function Mh(i) {
1518
1518
  return 180 * (i / Math.PI);
1519
1519
  }
1520
1520
  function Hm(i) {
@@ -1528,19 +1528,19 @@ function Hm(i) {
1528
1528
  zoneLetter: Bm(t)
1529
1529
  };
1530
1530
  }
1531
- function vl(i) {
1531
+ function Sl(i) {
1532
1532
  var t = i.northing, e = i.easting, s = i.zoneLetter, r = i.zoneNumber;
1533
1533
  if (r < 0 || r > 60)
1534
1534
  return null;
1535
1535
  var n = 0.9996, a = 6378137, o = 669438e-8, l, c = (1 - Math.sqrt(1 - o)) / (1 + Math.sqrt(1 - o)), d, u, f, g, m, p, y, v, w, C = e - 5e5, x = t;
1536
1536
  s < "N" && (x -= 1e7), y = (r - 1) * 6 - 180 + 3, l = o / (1 - o), p = x / n, v = p / (a * (1 - o / 4 - 3 * o * o / 64 - 5 * o * o * o / 256)), w = v + (3 * c / 2 - 27 * c * c * c / 32) * Math.sin(2 * v) + (21 * c * c / 16 - 55 * c * c * c * c / 32) * Math.sin(4 * v) + 151 * c * c * c / 96 * Math.sin(6 * v), d = a / Math.sqrt(1 - o * Math.sin(w) * Math.sin(w)), u = Math.tan(w) * Math.tan(w), f = l * Math.cos(w) * Math.cos(w), g = a * (1 - o) / Math.pow(1 - o * Math.sin(w) * Math.sin(w), 1.5), m = C / (d * n);
1537
1537
  var E = w - d * Math.tan(w) / g * (m * m / 2 - (5 + 3 * u + 10 * f - 4 * f * f - 9 * l) * m * m * m * m / 24 + (61 + 90 * u + 298 * f + 45 * u * u - 252 * l - 3 * f * f) * m * m * m * m * m * m / 720);
1538
- E = Ch(E);
1538
+ E = Mh(E);
1539
1539
  var I = (m - (1 + 2 * u + f) * m * m * m / 6 + (5 - 2 * f + 28 * u - 3 * f * f + 8 * l + 24 * u * u) * m * m * m * m * m / 120) / Math.cos(w);
1540
- I = y + Ch(I);
1540
+ I = y + Mh(I);
1541
1541
  var R;
1542
1542
  if (i.accuracy) {
1543
- var D = vl({
1543
+ var D = Sl({
1544
1544
  northing: i.northing + i.accuracy,
1545
1545
  easting: i.easting + i.accuracy,
1546
1546
  zoneLetter: i.zoneLetter,
@@ -1572,8 +1572,8 @@ function jm(i, t, e) {
1572
1572
  return $m(r, n, s);
1573
1573
  }
1574
1574
  function pu(i) {
1575
- var t = i % wh;
1576
- return t === 0 && (t = wh), t;
1575
+ var t = i % Ch;
1576
+ return t === 0 && (t = Ch), t;
1577
1577
  }
1578
1578
  function $m(i, t, e) {
1579
1579
  var s = e - 1, r = du.charCodeAt(s), n = fu.charCodeAt(s), a = r + i - 1, o = n + t, l = !1;
@@ -1727,10 +1727,10 @@ Bs.fromMGRS = function(i) {
1727
1727
  Bs.prototype.toMGRS = function(i) {
1728
1728
  return gu([this.x, this.y], i);
1729
1729
  };
1730
- var Ym = 1, Xm = 0.25, Mh = 0.046875, xh = 0.01953125, Eh = 0.01068115234375, Zm = 0.75, Jm = 0.46875, Km = 0.013020833333333334, Qm = 0.007120768229166667, ep = 0.3645833333333333, tp = 0.005696614583333333, ip = 0.3076171875;
1731
- function Sl(i) {
1730
+ var Ym = 1, Xm = 0.25, xh = 0.046875, Eh = 0.01953125, Oh = 0.01068115234375, Zm = 0.75, Jm = 0.46875, Km = 0.013020833333333334, Qm = 0.007120768229166667, ep = 0.3645833333333333, tp = 0.005696614583333333, ip = 0.3076171875;
1731
+ function wl(i) {
1732
1732
  var t = [];
1733
- t[0] = Ym - i * (Xm + i * (Mh + i * (xh + i * Eh))), t[1] = i * (Zm - i * (Mh + i * (xh + i * Eh)));
1733
+ t[0] = Ym - i * (Xm + i * (xh + i * (Eh + i * Oh))), t[1] = i * (Zm - i * (xh + i * (Eh + i * Oh)));
1734
1734
  var e = i * i;
1735
1735
  return t[2] = e * (Jm - i * (Km + i * Qm)), e *= i, t[3] = e * (ep - i * tp), t[4] = e * i * ip, t;
1736
1736
  }
@@ -1738,7 +1738,7 @@ function Zs(i, t, e, s) {
1738
1738
  return e *= t, t *= t, s[0] * i - e * (s[1] + t * (s[2] + t * (s[3] + t * s[4])));
1739
1739
  }
1740
1740
  var sp = 20;
1741
- function wl(i, t, e) {
1741
+ function Cl(i, t, e) {
1742
1742
  for (var s = 1 / (1 - t), r = i, n = sp; n; --n) {
1743
1743
  var a = Math.sin(r), o = 1 - t * a * a;
1744
1744
  if (o = (Zs(r, a, Math.cos(r), e) - i) * (o * Math.sqrt(o)) * s, r -= o, Math.abs(o) < T)
@@ -1747,7 +1747,7 @@ function wl(i, t, e) {
1747
1747
  return r;
1748
1748
  }
1749
1749
  function rp() {
1750
- this.x0 = this.x0 !== void 0 ? this.x0 : 0, this.y0 = this.y0 !== void 0 ? this.y0 : 0, this.long0 = this.long0 !== void 0 ? this.long0 : 0, this.lat0 = this.lat0 !== void 0 ? this.lat0 : 0, this.es && (this.en = Sl(this.es), this.ml0 = Zs(this.lat0, Math.sin(this.lat0), Math.cos(this.lat0), this.en));
1750
+ this.x0 = this.x0 !== void 0 ? this.x0 : 0, this.y0 = this.y0 !== void 0 ? this.y0 : 0, this.long0 = this.long0 !== void 0 ? this.long0 : 0, this.lat0 = this.lat0 !== void 0 ? this.lat0 : 0, this.es && (this.en = wl(this.es), this.ml0 = Zs(this.lat0, Math.sin(this.lat0), Math.cos(this.lat0), this.en));
1751
1751
  }
1752
1752
  function np(i) {
1753
1753
  var t = i.x, e = i.y, s = A(t - this.long0), r, n, a, o = Math.sin(e), l = Math.cos(e);
@@ -1773,7 +1773,7 @@ function np(i) {
1773
1773
  function ap(i) {
1774
1774
  var t, e, s, r, n = (i.x - this.x0) * (1 / this.a), a = (i.y - this.y0) * (1 / this.a);
1775
1775
  if (this.es)
1776
- if (t = this.ml0 + a / this.k0, e = wl(t, this.es, this.en), Math.abs(e) < O) {
1776
+ if (t = this.ml0 + a / this.k0, e = Cl(t, this.es, this.en), Math.abs(e) < O) {
1777
1777
  var u = Math.sin(e), f = Math.cos(e), g = Math.abs(f) > T ? Math.tan(e) : 0, m = this.ep2 * Math.pow(f, 2), p = Math.pow(m, 2), y = Math.pow(g, 2), v = Math.pow(y, 2);
1778
1778
  t = 1 - this.es * Math.pow(u, 2);
1779
1779
  var w = n * Math.sqrt(t) / this.k0, C = Math.pow(w, 2);
@@ -1810,7 +1810,7 @@ function hp(i) {
1810
1810
  var t = Math.abs(i);
1811
1811
  return t = lp(t * (1 + t / (pt(1, t) + 1))), i < 0 ? -t : t;
1812
1812
  }
1813
- function Cl(i, t) {
1813
+ function Ml(i, t) {
1814
1814
  for (var e = 2 * Math.cos(2 * t), s = i.length - 1, r = i[s], n = 0, a; --s >= 0; )
1815
1815
  a = -n + e * r + i[s], n = r, r = a;
1816
1816
  return t + a * Math.sin(2 * t);
@@ -1835,12 +1835,12 @@ function dp() {
1835
1835
  this.approx && (Un.init.apply(this), this.forward = Un.forward, this.inverse = Un.inverse), this.x0 = this.x0 !== void 0 ? this.x0 : 0, this.y0 = this.y0 !== void 0 ? this.y0 : 0, this.long0 = this.long0 !== void 0 ? this.long0 : 0, this.lat0 = this.lat0 !== void 0 ? this.lat0 : 0, this.cgb = [], this.cbg = [], this.utg = [], this.gtu = [];
1836
1836
  var i = this.es / (1 + Math.sqrt(1 - this.es)), t = i / (2 - i), e = t;
1837
1837
  this.cgb[0] = t * (2 + t * (-2 / 3 + t * (-2 + t * (116 / 45 + t * (26 / 45 + t * (-2854 / 675)))))), this.cbg[0] = t * (-2 + t * (2 / 3 + t * (4 / 3 + t * (-82 / 45 + t * (32 / 45 + t * (4642 / 4725)))))), e = e * t, this.cgb[1] = e * (7 / 3 + t * (-8 / 5 + t * (-227 / 45 + t * (2704 / 315 + t * (2323 / 945))))), this.cbg[1] = e * (5 / 3 + t * (-16 / 15 + t * (-13 / 9 + t * (904 / 315 + t * (-1522 / 945))))), e = e * t, this.cgb[2] = e * (56 / 15 + t * (-136 / 35 + t * (-1262 / 105 + t * (73814 / 2835)))), this.cbg[2] = e * (-26 / 15 + t * (34 / 21 + t * (8 / 5 + t * (-12686 / 2835)))), e = e * t, this.cgb[3] = e * (4279 / 630 + t * (-332 / 35 + t * (-399572 / 14175))), this.cbg[3] = e * (1237 / 630 + t * (-12 / 5 + t * (-24832 / 14175))), e = e * t, this.cgb[4] = e * (4174 / 315 + t * (-144838 / 6237)), this.cbg[4] = e * (-734 / 315 + t * (109598 / 31185)), e = e * t, this.cgb[5] = e * (601676 / 22275), this.cbg[5] = e * (444337 / 155925), e = Math.pow(t, 2), this.Qn = this.k0 / (1 + t) * (1 + e * (1 / 4 + e * (1 / 64 + e / 256))), this.utg[0] = t * (-0.5 + t * (2 / 3 + t * (-37 / 96 + t * (1 / 360 + t * (81 / 512 + t * (-96199 / 604800)))))), this.gtu[0] = t * (0.5 + t * (-2 / 3 + t * (5 / 16 + t * (41 / 180 + t * (-127 / 288 + t * (7891 / 37800)))))), this.utg[1] = e * (-1 / 48 + t * (-1 / 15 + t * (437 / 1440 + t * (-46 / 105 + t * (1118711 / 3870720))))), this.gtu[1] = e * (13 / 48 + t * (-3 / 5 + t * (557 / 1440 + t * (281 / 630 + t * (-1983433 / 1935360))))), e = e * t, this.utg[2] = e * (-17 / 480 + t * (37 / 840 + t * (209 / 4480 + t * (-5569 / 90720)))), this.gtu[2] = e * (61 / 240 + t * (-103 / 140 + t * (15061 / 26880 + t * (167603 / 181440)))), e = e * t, this.utg[3] = e * (-4397 / 161280 + t * (11 / 504 + t * (830251 / 7257600))), this.gtu[3] = e * (49561 / 161280 + t * (-179 / 168 + t * (6601661 / 7257600))), e = e * t, this.utg[4] = e * (-4583 / 161280 + t * (108847 / 3991680)), this.gtu[4] = e * (34729 / 80640 + t * (-3418889 / 1995840)), e = e * t, this.utg[5] = e * (-20648693 / 638668800), this.gtu[5] = e * (212378941 / 319334400);
1838
- var s = Cl(this.cbg, this.lat0);
1838
+ var s = Ml(this.cbg, this.lat0);
1839
1839
  this.Zb = -this.Qn * (s + cp(this.gtu, 2 * s));
1840
1840
  }
1841
1841
  function fp(i) {
1842
1842
  var t = A(i.x - this.long0), e = i.y;
1843
- e = Cl(this.cbg, e);
1843
+ e = Ml(this.cbg, e);
1844
1844
  var s = Math.sin(e), r = Math.cos(e), n = Math.sin(t), a = Math.cos(t);
1845
1845
  e = Math.atan2(s, a * r), t = Math.atan2(n * r, pt(s, r * a)), t = hp(Math.tan(t));
1846
1846
  var o = vu(this.gtu, 2 * e, 2 * t);
@@ -1856,7 +1856,7 @@ function gp(i) {
1856
1856
  var n = vu(this.utg, 2 * e, 2 * t);
1857
1857
  e = e + n[0], t = t + n[1], t = Math.atan(_u(t));
1858
1858
  var a = Math.sin(e), o = Math.cos(e), l = Math.sin(t), c = Math.cos(t);
1859
- e = Math.atan2(a * c, pt(l, c * o)), t = Math.atan2(l, c * o), s = A(t + this.long0), r = Cl(this.cgb, e);
1859
+ e = Math.atan2(a * c, pt(l, c * o)), t = Math.atan2(l, c * o), s = A(t + this.long0), r = Ml(this.cgb, e);
1860
1860
  } else
1861
1861
  s = 1 / 0, r = 1 / 0;
1862
1862
  return i.x = s, i.y = r, i;
@@ -1890,36 +1890,36 @@ const Sp = {
1890
1890
  names: vp,
1891
1891
  dependsOn: yp
1892
1892
  };
1893
- function Ml(i, t) {
1893
+ function xl(i, t) {
1894
1894
  return Math.pow((1 - i) / (1 + i), t);
1895
1895
  }
1896
1896
  var wp = 20;
1897
1897
  function Cp() {
1898
1898
  var i = Math.sin(this.lat0), t = Math.cos(this.lat0);
1899
- t *= t, this.rc = Math.sqrt(1 - this.es) / (1 - this.es * i * i), this.C = Math.sqrt(1 + this.es * t * t / (1 - this.es)), this.phic0 = Math.asin(i / this.C), this.ratexp = 0.5 * this.C * this.e, this.K = Math.tan(0.5 * this.phic0 + se) / (Math.pow(Math.tan(0.5 * this.lat0 + se), this.C) * Ml(this.e * i, this.ratexp));
1899
+ t *= t, this.rc = Math.sqrt(1 - this.es) / (1 - this.es * i * i), this.C = Math.sqrt(1 + this.es * t * t / (1 - this.es)), this.phic0 = Math.asin(i / this.C), this.ratexp = 0.5 * this.C * this.e, this.K = Math.tan(0.5 * this.phic0 + se) / (Math.pow(Math.tan(0.5 * this.lat0 + se), this.C) * xl(this.e * i, this.ratexp));
1900
1900
  }
1901
1901
  function Mp(i) {
1902
1902
  var t = i.x, e = i.y;
1903
- return i.y = 2 * Math.atan(this.K * Math.pow(Math.tan(0.5 * e + se), this.C) * Ml(this.e * Math.sin(e), this.ratexp)) - O, i.x = this.C * t, i;
1903
+ return i.y = 2 * Math.atan(this.K * Math.pow(Math.tan(0.5 * e + se), this.C) * xl(this.e * Math.sin(e), this.ratexp)) - O, i.x = this.C * t, i;
1904
1904
  }
1905
1905
  function xp(i) {
1906
- for (var t = 1e-14, e = i.x / this.C, s = i.y, r = Math.pow(Math.tan(0.5 * s + se) / this.K, 1 / this.C), n = wp; n > 0 && (s = 2 * Math.atan(r * Ml(this.e * Math.sin(i.y), -0.5 * this.e)) - O, !(Math.abs(s - i.y) < t)); --n)
1906
+ for (var t = 1e-14, e = i.x / this.C, s = i.y, r = Math.pow(Math.tan(0.5 * s + se) / this.K, 1 / this.C), n = wp; n > 0 && (s = 2 * Math.atan(r * xl(this.e * Math.sin(i.y), -0.5 * this.e)) - O, !(Math.abs(s - i.y) < t)); --n)
1907
1907
  i.y = s;
1908
1908
  return n ? (i.x = e, i.y = s, i) : null;
1909
1909
  }
1910
1910
  var Ep = ["gauss"];
1911
- const xl = {
1911
+ const El = {
1912
1912
  init: Cp,
1913
1913
  forward: Mp,
1914
1914
  inverse: xp,
1915
1915
  names: Ep
1916
1916
  };
1917
1917
  function Op() {
1918
- xl.init.apply(this), this.rc && (this.sinc0 = Math.sin(this.phic0), this.cosc0 = Math.cos(this.phic0), this.R2 = 2 * this.rc, this.title || (this.title = "Oblique Stereographic Alternative"));
1918
+ El.init.apply(this), this.rc && (this.sinc0 = Math.sin(this.phic0), this.cosc0 = Math.cos(this.phic0), this.R2 = 2 * this.rc, this.title || (this.title = "Oblique Stereographic Alternative"));
1919
1919
  }
1920
1920
  function bp(i) {
1921
1921
  var t, e, s, r;
1922
- return i.x = A(i.x - this.long0), xl.forward.apply(this, [i]), t = Math.sin(i.y), e = Math.cos(i.y), s = Math.cos(i.x), r = this.k0 * this.R2 / (1 + this.sinc0 * t + this.cosc0 * e * s), i.x = r * e * Math.sin(i.x), i.y = r * (this.cosc0 * t - this.sinc0 * e * s), i.x = this.a * i.x + this.x0, i.y = this.a * i.y + this.y0, i;
1922
+ return i.x = A(i.x - this.long0), El.forward.apply(this, [i]), t = Math.sin(i.y), e = Math.cos(i.y), s = Math.cos(i.x), r = this.k0 * this.R2 / (1 + this.sinc0 * t + this.cosc0 * e * s), i.x = r * e * Math.sin(i.x), i.y = r * (this.cosc0 * t - this.sinc0 * e * s), i.x = this.a * i.x + this.x0, i.y = this.a * i.y + this.y0, i;
1923
1923
  }
1924
1924
  function Pp(i) {
1925
1925
  var t, e, s, r, n;
@@ -1928,7 +1928,7 @@ function Pp(i) {
1928
1928
  t = Math.sin(a), e = Math.cos(a), r = Math.asin(e * this.sinc0 + i.y * t * this.cosc0 / n), s = Math.atan2(i.x * t, n * this.cosc0 * e - i.y * this.sinc0 * t);
1929
1929
  } else
1930
1930
  r = this.phic0, s = 0;
1931
- return i.x = s, i.y = r, xl.inverse.apply(this, [i]), i.x = A(i.x + this.long0), i;
1931
+ return i.x = s, i.y = r, El.inverse.apply(this, [i]), i.x = A(i.x + this.long0), i;
1932
1932
  }
1933
1933
  var Lp = ["Stereographic_North_Pole", "Oblique_Stereographic", "sterea", "Oblique Stereographic Alternative", "Double_Stereographic"];
1934
1934
  const Ip = {
@@ -2405,7 +2405,7 @@ const Wy = {
2405
2405
  inverse: qy,
2406
2406
  names: Uy
2407
2407
  };
2408
- var Oh = 20;
2408
+ var bh = 20;
2409
2409
  function Yy() {
2410
2410
  this.temp = this.b / this.a, this.es = 1 - Math.pow(this.temp, 2), this.e = Math.sqrt(this.es), this.e0 = hn(this.es), this.e1 = cn(this.es), this.e2 = un(this.es), this.e3 = dn(this.es), this.ml0 = this.a * lt(this.e0, this.e1, this.e2, this.e3, this.lat0);
2411
2411
  }
@@ -2429,7 +2429,7 @@ function Zy(i) {
2429
2429
  else {
2430
2430
  a = this.lat0 + r / this.a, o = s * s / this.a / this.a + a * a, l = a;
2431
2431
  var d;
2432
- for (n = Oh; n; --n)
2432
+ for (n = bh; n; --n)
2433
2433
  if (d = Math.tan(l), c = -1 * (a * (l * d + 1) - l - 0.5 * (l * l + o) * d) / ((l - a) / d - 1), l += c, Math.abs(c) <= T) {
2434
2434
  e = l;
2435
2435
  break;
@@ -2441,7 +2441,7 @@ function Zy(i) {
2441
2441
  else {
2442
2442
  a = (this.ml0 + r) / this.a, o = s * s / this.a / this.a + a * a, l = a;
2443
2443
  var u, f, g, m, p;
2444
- for (n = Oh; n; --n)
2444
+ for (n = bh; n; --n)
2445
2445
  if (p = this.e * Math.sin(l), u = Math.sqrt(1 - p * p) * Math.tan(l), f = this.a * lt(this.e0, this.e1, this.e2, this.e3, l), g = this.e0 - 2 * this.e1 * Math.cos(2 * l) + 4 * this.e2 * Math.cos(4 * l) - 6 * this.e3 * Math.cos(6 * l), m = f / this.a, c = (a * (u * m + 1) - m - 0.5 * u * (m * m + o)) / (this.es * Math.sin(2 * l) * (m * m + o - 2 * a * m) / (4 * u) + (a - m) * (u * g - 2 / Math.sin(2 * l)) - g), l -= c, Math.abs(c) <= T) {
2446
2446
  e = l;
2447
2447
  break;
@@ -2517,7 +2517,7 @@ const l_ = {
2517
2517
  };
2518
2518
  var h_ = 20;
2519
2519
  function c_() {
2520
- this.sphere ? (this.n = 1, this.m = 0, this.es = 0, this.C_y = Math.sqrt((this.m + 1) / this.n), this.C_x = this.C_y / (this.m + 1)) : this.en = Sl(this.es);
2520
+ this.sphere ? (this.n = 1, this.m = 0, this.es = 0, this.C_y = Math.sqrt((this.m + 1) / this.n), this.C_x = this.C_y / (this.m + 1)) : this.en = wl(this.es);
2521
2521
  }
2522
2522
  function u_(i) {
2523
2523
  var t, e, s = i.x, r = i.y;
@@ -2539,7 +2539,7 @@ function u_(i) {
2539
2539
  }
2540
2540
  function d_(i) {
2541
2541
  var t, e, s, r;
2542
- return i.x -= this.x0, s = i.x / this.a, i.y -= this.y0, t = i.y / this.a, this.sphere ? (t /= this.C_y, s = s / (this.C_x * (this.m + Math.cos(t))), this.m ? t = qi((this.m * t + Math.sin(t)) / this.n) : this.n !== 1 && (t = qi(Math.sin(t) / this.n)), s = A(s + this.long0), t = Ki(t)) : (t = wl(i.y / this.a, this.es, this.en), r = Math.abs(t), r < O ? (r = Math.sin(t), e = this.long0 + i.x * Math.sqrt(1 - this.es * r * r) / (this.a * Math.cos(t)), s = A(e)) : r - T < O && (s = this.long0)), i.x = s, i.y = t, i;
2542
+ return i.x -= this.x0, s = i.x / this.a, i.y -= this.y0, t = i.y / this.a, this.sphere ? (t /= this.C_y, s = s / (this.C_x * (this.m + Math.cos(t))), this.m ? t = qi((this.m * t + Math.sin(t)) / this.n) : this.n !== 1 && (t = qi(Math.sin(t) / this.n)), s = A(s + this.long0), t = Ki(t)) : (t = Cl(i.y / this.a, this.es, this.en), r = Math.abs(t), r < O ? (r = Math.sin(t), e = this.long0 + i.x * Math.sqrt(1 - this.es * r * r) / (this.a * Math.cos(t)), s = A(e)) : r - T < O && (s = this.long0)), i.x = s, i.y = t, i;
2543
2543
  }
2544
2544
  var f_ = ["Sinusoidal", "sinu"];
2545
2545
  const g_ = {
@@ -2726,7 +2726,7 @@ const $_ = {
2726
2726
  inverse: V_,
2727
2727
  names: j_
2728
2728
  };
2729
- var Xo = [
2729
+ var Zo = [
2730
2730
  [1, 22199e-21, -715515e-10, 31103e-10],
2731
2731
  [0.9986, -482243e-9, -24897e-9, -13309e-10],
2732
2732
  [0.9954, -83103e-8, -448605e-10, -986701e-12],
@@ -2786,7 +2786,7 @@ function X_(i) {
2786
2786
  var t = A(i.x - this.long0), e = Math.abs(i.y), s = Math.floor(e * Cu);
2787
2787
  s < 0 ? s = 0 : s >= Rs && (s = Rs - 1), e = ii * (e - q_ * s);
2788
2788
  var r = {
2789
- x: ua(Xo[s], e) * t,
2789
+ x: ua(Zo[s], e) * t,
2790
2790
  y: ua(fr[s], e)
2791
2791
  };
2792
2792
  return i.y < 0 && (r.y = -r.y), r.x = r.x * this.a * Su + this.x0, r.y = r.y * this.a * wu + this.y0, r;
@@ -2797,7 +2797,7 @@ function Z_(i) {
2797
2797
  y: Math.abs(i.y - this.y0) / (this.a * wu)
2798
2798
  };
2799
2799
  if (t.y >= 1)
2800
- t.x /= Xo[Rs][0], t.y = i.y < 0 ? -O : O;
2800
+ t.x /= Zo[Rs][0], t.y = i.y < 0 ? -O : O;
2801
2801
  else {
2802
2802
  var e = Math.floor(t.y * Rs);
2803
2803
  for (e < 0 ? e = 0 : e >= Rs && (e = Rs - 1); ; )
@@ -2810,7 +2810,7 @@ function Z_(i) {
2810
2810
  var s = fr[e], r = 5 * (t.y - s[0]) / (fr[e + 1][0] - s[0]);
2811
2811
  r = W_(function(n) {
2812
2812
  return (ua(s, n) - t.y) / U_(s, n);
2813
- }, r, T, 100), t.x /= ua(Xo[e], r), t.y = (5 * e + r) * Ue, i.y < 0 && (t.y = -t.y);
2813
+ }, r, T, 100), t.x /= ua(Zo[e], r), t.y = (5 * e + r) * Ue, i.y < 0 && (t.y = -t.y);
2814
2814
  }
2815
2815
  return t.x = A(t.x + this.long0), t;
2816
2816
  }
@@ -3010,7 +3010,7 @@ function v0() {
3010
3010
  var i;
3011
3011
  if (this.phi1 = this.lat1, Math.abs(this.phi1) < Hr)
3012
3012
  throw new Error();
3013
- this.es ? (this.en = Sl(this.es), this.m1 = Zs(
3013
+ this.es ? (this.en = wl(this.es), this.m1 = Zs(
3014
3014
  this.phi1,
3015
3015
  this.am1 = Math.sin(this.phi1),
3016
3016
  i = Math.cos(this.phi1),
@@ -3024,7 +3024,7 @@ function S0(i) {
3024
3024
  function w0(i) {
3025
3025
  i.x = (i.x - (this.x0 || 0)) / this.a, i.y = (i.y - (this.y0 || 0)) / this.a;
3026
3026
  var t, e, s, r;
3027
- if (e = pt(i.x, i.y = this.am1 - i.y), r = wl(this.am1 + this.m1 - e, this.es, this.en), (t = Math.abs(r)) < O)
3027
+ if (e = pt(i.x, i.y = this.am1 - i.y), r = Cl(this.am1 + this.m1 - e, this.es, this.en), (t = Math.abs(r)) < O)
3028
3028
  t = Math.sin(r), s = e * Math.atan2(i.x, i.y) * Math.sqrt(1 - this.es * t * t) / Math.cos(r);
3029
3029
  else if (Math.abs(t - O) <= Hr)
3030
3030
  s = 0;
@@ -3062,11 +3062,11 @@ Re.transform = ha;
3062
3062
  Re.mgrs = km;
3063
3063
  Re.version = "__VERSION__";
3064
3064
  O0(Re);
3065
- const fa = $e("EPSG:4326", "EPSG:3857"), El = $e("EPSG:3857", "EPSG:4326");
3066
- let Ol = {
3065
+ const fa = $e("EPSG:4326", "EPSG:3857"), Ol = $e("EPSG:3857", "EPSG:4326");
3066
+ let bl = {
3067
3067
  epsg: "EPSG:4326"
3068
3068
  };
3069
- function bl(i, t = "EPSG:") {
3069
+ function Pl(i, t = "EPSG:") {
3070
3070
  if (i) {
3071
3071
  const e = new RegExp(`^(?:${t})?(\\d+)`, "i"), s = `${i}`.match(e);
3072
3072
  if (s && s[1])
@@ -3078,7 +3078,7 @@ function Mu(i) {
3078
3078
  let t = null;
3079
3079
  if (i.epsg)
3080
3080
  try {
3081
- t = Re(bl(i.epsg));
3081
+ t = Re(Pl(i.epsg));
3082
3082
  } catch {
3083
3083
  t = null;
3084
3084
  }
@@ -3094,8 +3094,8 @@ function xu(i) {
3094
3094
  const t = {
3095
3095
  prefix: i.prefix
3096
3096
  };
3097
- return i.epsg && (t.epsg = bl(i.epsg, i.prefix), t.epsg && (i.proj4 && (t.proj4 = i.proj4, Re.defs(t.epsg, i.proj4), eh(Re)), i.alias && Array.isArray(i.alias) && (t.alias = i.alias, t.alias.forEach((e) => {
3098
- Re.defs(e, Re.defs(t.epsg)), eh(Re);
3097
+ return i.epsg && (t.epsg = Pl(i.epsg, i.prefix), t.epsg && (i.proj4 && (t.proj4 = i.proj4, Re.defs(t.epsg, i.proj4), th(Re)), i.alias && Array.isArray(i.alias) && (t.alias = i.alias, t.alias.forEach((e) => {
3098
+ Re.defs(e, Re.defs(t.epsg)), th(Re);
3099
3099
  })))), t;
3100
3100
  }
3101
3101
  function b0(i) {
@@ -3104,7 +3104,7 @@ function b0(i) {
3104
3104
  proj4: ie(String)
3105
3105
  }), !Mu(i))
3106
3106
  throw new Error("Cannot set invalid projection options as default options");
3107
- Ol = xu(i);
3107
+ bl = xu(i);
3108
3108
  }
3109
3109
  class z {
3110
3110
  constructor(t = { epsg: "" }) {
@@ -3113,7 +3113,7 @@ class z {
3113
3113
  h(this, "_alias");
3114
3114
  h(this, "_prefix");
3115
3115
  const e = xu(t);
3116
- this._proj4 = e.proj4, this._epsg = String(e.epsg), this.proj || (this._epsg = z.parseEPSGCode(Ol.epsg)), this._alias = e.alias, this._prefix = e.prefix;
3116
+ this._proj4 = e.proj4, this._epsg = String(e.epsg), this.proj || (this._epsg = z.parseEPSGCode(bl.epsg)), this._alias = e.alias, this._prefix = e.prefix;
3117
3117
  }
3118
3118
  static get className() {
3119
3119
  return "Projection";
@@ -3167,7 +3167,7 @@ class z {
3167
3167
  * @param inPlace - whether to transform in place
3168
3168
  */
3169
3169
  static mercatorToWgs84(t, e) {
3170
- return El(t, e ? t : void 0, t.length);
3170
+ return Ol(t, e ? t : void 0, t.length);
3171
3171
  }
3172
3172
  /**
3173
3173
  * Fast transform from WGS84 to Web-Mercator
@@ -3190,11 +3190,11 @@ class z {
3190
3190
  * parseEPSGCode('asdasd', 'EPSG:') ==> ''
3191
3191
  */
3192
3192
  static parseEPSGCode(t, e = "EPSG:") {
3193
- return bl(t, e);
3193
+ return Pl(t, e);
3194
3194
  }
3195
3195
  }
3196
3196
  function P0() {
3197
- return new z(Ol);
3197
+ return new z(bl);
3198
3198
  }
3199
3199
  const de = new z({ epsg: 4326 }), W = new z({ epsg: 3857 });
3200
3200
  function P1(i, t, e) {
@@ -3298,7 +3298,7 @@ Yi.prototype.getCoordinates = function() {
3298
3298
  Yi.prototype.setCoordinates = function(t, e) {
3299
3299
  S(t, Array), S(t.length, this.getGeometries().length), this.setGeometries(this.getGeometries().map((s, r) => (s.setCoordinates(t[r], e), s)));
3300
3300
  };
3301
- const bh = {
3301
+ const Ph = {
3302
3302
  XY: 1,
3303
3303
  XYM: 2,
3304
3304
  XYZ: 3,
@@ -3314,7 +3314,7 @@ function N0(i, t) {
3314
3314
  return i;
3315
3315
  if (t === "XYM" && i !== "XYM" || i === "XYM" && t !== "XYM")
3316
3316
  return "XY";
3317
- const e = bh[i], s = bh[t];
3317
+ const e = Ph[i], s = Ph[t];
3318
3318
  return e < s ? i : t;
3319
3319
  }
3320
3320
  Yi.prototype.getLayout = function() {
@@ -3429,12 +3429,12 @@ function H0() {
3429
3429
  return An(z0);
3430
3430
  }
3431
3431
  var B0 = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
3432
- const Ph = {
3432
+ const Lh = {
3433
3433
  randomUUID: B0
3434
3434
  };
3435
3435
  function Xe(i, t, e) {
3436
- if (Ph.randomUUID && !t && !i)
3437
- return Ph.randomUUID();
3436
+ if (Lh.randomUUID && !t && !i)
3437
+ return Lh.randomUUID();
3438
3438
  i = i || {};
3439
3439
  var s = i.random || (i.rng || H0)();
3440
3440
  return s[6] = s[6] & 15 | 64, s[8] = s[8] & 63 | 128, k0(s);
@@ -3535,17 +3535,17 @@ class Lu {
3535
3535
  this.className && (r = `[${this.className}] ${r}`), console[gn.get(e)](r, ...s), e & Ee.ERROR && (console.group(), console.trace(), console.groupEnd());
3536
3536
  }
3537
3537
  }
3538
- const Zo = /* @__PURE__ */ new Map();
3538
+ const Jo = /* @__PURE__ */ new Map();
3539
3539
  let ho;
3540
3540
  function V0() {
3541
3541
  return ho || (ho = new Lu()), ho;
3542
3542
  }
3543
3543
  function j0(i) {
3544
3544
  const t = new Lu(i);
3545
- return Zo.set(i, t), t;
3545
+ return Jo.set(i, t), t;
3546
3546
  }
3547
3547
  function he(i) {
3548
- return i ? Zo.has(i) ? Zo.get(i) : j0(i) : V0();
3548
+ return i ? Jo.has(i) ? Jo.get(i) : j0(i) : V0();
3549
3549
  }
3550
3550
  const Je = Symbol("moduleId");
3551
3551
  var xc;
@@ -3771,7 +3771,7 @@ class Qi {
3771
3771
  return S(t, { type: String }), this.create(t.type, t, ...e);
3772
3772
  }
3773
3773
  }
3774
- const ke = new Qi(), Js = new Qi(), Pl = new Qi(), Ks = new Qi(), mn = new Qi(), Iu = new Qi();
3774
+ const ke = new Qi(), Js = new Qi(), Ll = new Qi(), Ks = new Qi(), mn = new Qi(), Iu = new Qi();
3775
3775
  function ei(i, t, ...e) {
3776
3776
  if (!ws(i, je(Qi, pi)))
3777
3777
  return gr().error(`ObjectCreation failed: no class registry provided for ${String(t.type)}`), null;
@@ -3868,7 +3868,7 @@ function gi(i) {
3868
3868
  const { location: t } = window, e = new URL(i, `${t.protocol}//${t.host}${t.pathname}`);
3869
3869
  return e.host ? e.protocol === t.protocol && e.host === t.host : !0;
3870
3870
  }
3871
- function Ll() {
3871
+ function Il() {
3872
3872
  return he("StyleHelpers");
3873
3873
  }
3874
3874
  var ma;
@@ -3950,7 +3950,7 @@ function W0(i, t) {
3950
3950
  }
3951
3951
  return r.createPattern(s, "repeat");
3952
3952
  }
3953
- function Lh(i) {
3953
+ function Ih(i) {
3954
3954
  function t(e) {
3955
3955
  const s = e.toString(16);
3956
3956
  return s.length === 1 ? `0${s}` : s;
@@ -4036,14 +4036,14 @@ function pa(i) {
4036
4036
  try {
4037
4037
  t = We(t).slice();
4038
4038
  } catch (e) {
4039
- Ll().warning(e.message);
4039
+ Il().warning(e.message);
4040
4040
  }
4041
4041
  return { color: t };
4042
4042
  }
4043
4043
  function Tu(i) {
4044
4044
  return new et(i);
4045
4045
  }
4046
- function Il(i) {
4046
+ function Tl(i) {
4047
4047
  return new Be(i);
4048
4048
  }
4049
4049
  function Br(i) {
@@ -4052,7 +4052,7 @@ function Br(i) {
4052
4052
  try {
4053
4053
  t = We(t).slice();
4054
4054
  } catch (r) {
4055
- Ll().warning(r.message);
4055
+ Il().warning(r.message);
4056
4056
  }
4057
4057
  const e = {
4058
4058
  color: t
@@ -4085,7 +4085,7 @@ function Nu(i) {
4085
4085
  const e = i.getColor() ? We(i.getColor()) : void 0;
4086
4086
  e && (t.color = e);
4087
4087
  } catch (e) {
4088
- Ll().warning(e.message);
4088
+ Il().warning(e.message);
4089
4089
  }
4090
4090
  if (i.getSrc() && (t.src = i.getSrc()), i.getOpacity() != null && (t.opacity = i.getOpacity()), i.getAnchor() && i.getSize()) {
4091
4091
  const e = i.getAnchor()[0] / i.getSize()[0], s = i.getAnchor()[1] / i.getSize()[1];
@@ -4107,7 +4107,7 @@ function Nu(i) {
4107
4107
  }
4108
4108
  function X0(i) {
4109
4109
  if (i.radius) {
4110
- const t = i.fill ? Tu(i.fill) : void 0, e = i.stroke ? Il(i.stroke) : void 0;
4110
+ const t = i.fill ? Tu(i.fill) : void 0, e = i.stroke ? Tl(i.stroke) : void 0;
4111
4111
  return i.points ? new Us({
4112
4112
  fill: t,
4113
4113
  stroke: e,
@@ -4136,7 +4136,7 @@ function X0(i) {
4136
4136
  }
4137
4137
  function N1(i) {
4138
4138
  return new K({
4139
- stroke: i.stroke ? Il(i.stroke) : void 0,
4139
+ stroke: i.stroke ? Tl(i.stroke) : void 0,
4140
4140
  fill: i.fill ? Tu(i.fill) : void 0,
4141
4141
  image: i.image ? X0(i.image) : void 0,
4142
4142
  text: i.text ? Du(i.text) : void 0
@@ -4159,10 +4159,10 @@ function F1(i) {
4159
4159
  if (i.getStroke()) {
4160
4160
  let e = i.getStroke().getWidth();
4161
4161
  e = e > 1 ? 1 : e;
4162
- const s = Lh(We(i.getStroke().getColor()));
4162
+ const s = Ih(We(i.getStroke().getColor()));
4163
4163
  t.textShadow = `-${e}px ${e}px 0 ${s},${e}px ${e}px 0 ${s},${e}px -${e}px 0 ${s},-${e}px -${e}px 0 ${s}`;
4164
4164
  }
4165
- return i.getFill() && (t.color = Lh(We(i.getFill().getColor()))), t;
4165
+ return i.getFill() && (t.color = Ih(We(i.getFill().getColor()))), t;
4166
4166
  }
4167
4167
  const Z0 = new K({}), G1 = [0, 0, 0, 0], Xn = [255, 255, 255, 1], ya = [0, 0, 0, 1];
4168
4168
  function Ru() {
@@ -4230,7 +4230,7 @@ class K0 {
4230
4230
  t.src = s.toDataURL(), this.shapes.push(t);
4231
4231
  }
4232
4232
  }
4233
- const Q0 = new K0(), Ih = {
4233
+ const Q0 = new K0(), Th = {
4234
4234
  fill: new et({ color: [255, 255, 255, 1] }),
4235
4235
  stroke: new Be({ color: [0, 0, 0, 1], width: 1 }),
4236
4236
  radius: 16
@@ -4242,7 +4242,7 @@ const Q0 = new K0(), Ih = {
4242
4242
  { points: 4, angle: Math.PI / 4 },
4243
4243
  { points: 6 }
4244
4244
  ].forEach((i) => {
4245
- const t = i ? Object.assign(i, Ih) : Ih;
4245
+ const t = i ? Object.assign(i, Th) : Th;
4246
4246
  Q0.addImage(t);
4247
4247
  });
4248
4248
  class pn extends et {
@@ -4274,7 +4274,7 @@ class ge extends li {
4274
4274
  fill: e.fill === !1,
4275
4275
  stroke: e.stroke === !1,
4276
4276
  image: e.image === !1
4277
- }, this._fillOptions = null, this._fill = void 0, this._stroke = e.stroke ? Il(e.stroke) : void 0, this._text = void 0, e.text && (this._text = Du(e.text)), this._label = e.label, this.label = this._label, this._cesiumColor = new U(), this._image = void 0, e.image)
4277
+ }, this._fillOptions = null, this._fill = void 0, this._stroke = e.stroke ? Tl(e.stroke) : void 0, this._text = void 0, e.text && (this._text = Du(e.text)), this._label = e.label, this.label = this._label, this._cesiumColor = new U(), this._image = void 0, e.image)
4278
4278
  if (e.image.radius)
4279
4279
  this._image = Fu({ ...e.image });
4280
4280
  else {
@@ -4560,7 +4560,7 @@ function jr(i) {
4560
4560
  (i instanceof Xi || i instanceof Zi) && yn(i) && t ? i.color = t.cesiumFillColor : i instanceof ue && i.changed();
4561
4561
  }
4562
4562
  }
4563
- function Tl(i) {
4563
+ function Al(i) {
4564
4564
  delete i[Mi], va(i), i[Ct] || i[Mt] ? Vr(i) : i[Ie] && jr(i);
4565
4565
  }
4566
4566
  function tv(i) {
@@ -4862,7 +4862,7 @@ class cv {
4862
4862
  return Ff(this);
4863
4863
  }
4864
4864
  }
4865
- function Th(i) {
4865
+ function Ah(i) {
4866
4866
  return !i || !Array.isArray(i) || i.length !== 4 || !Number.isFinite(i[0]) || !Number.isFinite(i[1]) || !Number.isFinite(i[2]) || !Number.isFinite(i[3]) ? !1 : i[0] <= i[2] && i[1] <= i[3];
4867
4867
  }
4868
4868
  class be {
@@ -4883,7 +4883,7 @@ class be {
4883
4883
  * @param options
4884
4884
  */
4885
4885
  static validateOptions(t) {
4886
- return z.validateOptions(t.projection || {}) && Th(t.coordinates);
4886
+ return z.validateOptions(t.projection || {}) && Ah(t.coordinates);
4887
4887
  }
4888
4888
  getCoordinatesInProjection(t, e) {
4889
4889
  if (t.epsg === this.projection.epsg)
@@ -4896,7 +4896,7 @@ class be {
4896
4896
  * @returns true if extent is valid
4897
4897
  */
4898
4898
  isValid() {
4899
- return Th(this.extent);
4899
+ return Ah(this.extent);
4900
4900
  }
4901
4901
  toJSON() {
4902
4902
  return {
@@ -4919,7 +4919,7 @@ function co(i, t, e) {
4919
4919
  const s = i - t - Math.trunc((i - t) / 360) * 360;
4920
4920
  return Math.abs(s) <= e;
4921
4921
  }
4922
- function Ah(i, t, e) {
4922
+ function Dh(i, t, e) {
4923
4923
  return i != null && t != null && i.every((s, r) => Hu(s, t[r], e));
4924
4924
  }
4925
4925
  class It extends Ut {
@@ -5072,7 +5072,7 @@ class It extends Ut {
5072
5072
  * compares the provided Viewpoint with this viewpoint componentwise
5073
5073
  */
5074
5074
  equals(e, s = 0) {
5075
- return e === this || e !== null && Hu(e.distance, this.distance, s) && co(e.heading, this.heading, s) && co(e.pitch, this.pitch, s) && co(e.roll, this.roll, s) && (Ah(e.cameraPosition, this.cameraPosition, s) || Ah(e.groundPosition, this.groundPosition, s));
5075
+ return e === this || e !== null && Hu(e.distance, this.distance, s) && co(e.heading, this.heading, s) && co(e.pitch, this.pitch, s) && co(e.roll, this.roll, s) && (Dh(e.cameraPosition, this.cameraPosition, s) || Dh(e.groundPosition, this.groundPosition, s));
5076
5076
  }
5077
5077
  }
5078
5078
  function uv() {
@@ -5232,19 +5232,19 @@ class jt {
5232
5232
  this._array = [], this.added.destroy(), this.removed.destroy();
5233
5233
  }
5234
5234
  }
5235
- function Dh() {
5235
+ function uo() {
5236
5236
  return he("OverrideCollection");
5237
5237
  }
5238
- const Jo = Symbol("OverrideCollection");
5238
+ const Ko = Symbol("OverrideCollection");
5239
5239
  function yv(i) {
5240
5240
  return i.toJSON ? i.toJSON() : structuredClone(i);
5241
5241
  }
5242
5242
  function _i(i, t, e, s, r, n) {
5243
5243
  S(i, jt);
5244
5244
  const a = i;
5245
- if (a[Jo])
5245
+ if (a[Ko])
5246
5246
  throw new Error("Cannot transform collection, collection already is an OverrideCollection");
5247
- a[Jo] = !0;
5247
+ a[Ko] = !0;
5248
5248
  const o = s || ((u) => u), l = e || yv, c = n || ((u, f, g) => g);
5249
5249
  a.shadowMap = /* @__PURE__ */ new Map(), a.replace = function(f) {
5250
5250
  const g = f[a.uniqueKey], m = a.getByKey(g);
@@ -5267,7 +5267,7 @@ function _i(i, t, e, s, r, n) {
5267
5267
  }, a.parseItems = async function(f, g) {
5268
5268
  Array.isArray(f) && (await Promise.all(f.map(async (p) => {
5269
5269
  const y = await o(p);
5270
- return !y || r && !(y instanceof r) ? (Dh().warning(`Could not load item ${// eslint-disable-next-line @typescript-eslint/ban-ts-comment
5270
+ return !y || r && !(y instanceof r) ? (uo().warning(`Could not load item ${// eslint-disable-next-line @typescript-eslint/ban-ts-comment
5271
5271
  // @ts-ignore
5272
5272
  String(p[a.uniqueKey])} of type ${String(p.type)}`), null) : (y[Je] = g, y);
5273
5273
  }))).filter((p) => p).forEach((p) => {
@@ -5285,7 +5285,7 @@ function _i(i, t, e, s, r, n) {
5285
5285
  if (m) {
5286
5286
  const p = await o(m);
5287
5287
  if (!p) {
5288
- Dh().error("failed to deserialize item");
5288
+ uo().error("failed to deserialize item");
5289
5289
  return;
5290
5290
  }
5291
5291
  p[Je] = m[Je];
@@ -5308,7 +5308,12 @@ function _i(i, t, e, s, r, n) {
5308
5308
  const p = g.filter((y) => y[Je] !== f);
5309
5309
  p.length === 0 ? a.shadowMap.delete(m) : p.length !== g.length && a.shadowMap.set(m, p);
5310
5310
  }), [...a].filter((g) => g[Je] === f).forEach((g) => {
5311
- a.remove(g), g.destroy && g.destroy();
5311
+ if (a.remove(g), g.destroy)
5312
+ try {
5313
+ g.destroy();
5314
+ } catch {
5315
+ uo().error(`Failed to destroy item ${g[a.uniqueKey]}`);
5316
+ }
5312
5317
  });
5313
5318
  }, a.replaced = new L(), a.serializeModule = function(f) {
5314
5319
  return [...a].map((g) => {
@@ -5330,12 +5335,12 @@ function _i(i, t, e, s, r, n) {
5330
5335
  d(), a.shadowMap.clear(), a.replaced.destroy();
5331
5336
  }, a;
5332
5337
  }
5333
- var Ko;
5338
+ var Qo;
5334
5339
  (function(i) {
5335
5340
  i[i.INACTIVE = 1] = "INACTIVE", i[i.ACTIVE = 2] = "ACTIVE", i[i.LOADING = 4] = "LOADING";
5336
- })(Ko || (Ko = {}));
5337
- const ve = Ko;
5338
- class Qo {
5341
+ })(Qo || (Qo = {}));
5342
+ const ve = Qo;
5343
+ class el {
5339
5344
  constructor() {
5340
5345
  h(this, "hiddenObjects", {});
5341
5346
  h(this, "_hiddenObjectFeatures", {});
@@ -5489,7 +5494,7 @@ class st extends Ut {
5489
5494
  return this._url ? typeof this._url == "string" ? this._url : this._url[this._locale] ? this._url[this._locale] : Object.values(this._url)[0] : "";
5490
5495
  }
5491
5496
  set url(e) {
5492
- if (S(e, je(String, lh(String))), this._url !== e) {
5497
+ if (S(e, je(String, hh(String))), this._url !== e) {
5493
5498
  const s = this._url;
5494
5499
  this._url = e, this.reload().catch((r) => {
5495
5500
  this.getLogger().error("failed to reload after URL setting"), this.getLogger().error(String(r)), this._url = s;
@@ -5506,7 +5511,7 @@ class st extends Ut {
5506
5511
  return this._globalHider;
5507
5512
  }
5508
5513
  setGlobalHider(e) {
5509
- S(e, ie(Qo)), e && this.active && e.hideObjects(this.hiddenObjectIds), this._globalHider = e;
5514
+ S(e, ie(el)), e && this.active && e.hideObjects(this.hiddenObjectIds), this._globalHider = e;
5510
5515
  }
5511
5516
  /**
5512
5517
  * Indicates, that this layer is part of an exclusiveGroup
@@ -5540,7 +5545,7 @@ class st extends Ut {
5540
5545
  * @param headers
5541
5546
  */
5542
5547
  set headers(e) {
5543
- S(e, tu(lh(String))), Ke(this._headers, e) || (this._headers = structuredClone(e), this.reload());
5548
+ S(e, tu(hh(String))), Ke(this._headers, e) || (this._headers = structuredClone(e), this.reload());
5544
5549
  }
5545
5550
  /**
5546
5551
  * returns the currently set locale. Can be used to provide locale specific URLs.
@@ -5963,7 +5968,7 @@ const xi = "2.1", mr = {
5963
5968
  cesium3DTile: os.CESIUM_3D_TILE,
5964
5969
  terrain: os.TERRAIN
5965
5970
  };
5966
- function uo(i, t) {
5971
+ function fo(i, t) {
5967
5972
  if (Array.isArray(i)) {
5968
5973
  const e = i.map((s) => k(s)).filter((s) => s != null);
5969
5974
  if (e.length === 4)
@@ -5971,7 +5976,7 @@ function uo(i, t) {
5971
5976
  }
5972
5977
  return t;
5973
5978
  }
5974
- function fo(i, t) {
5979
+ function go(i, t) {
5975
5980
  if (Array.isArray(i)) {
5976
5981
  const e = i.map((s) => k(s)).filter((s) => s != null);
5977
5982
  if (e.length === 3)
@@ -6041,7 +6046,7 @@ class Gt {
6041
6046
  */
6042
6047
  h(this, "propertyChanged");
6043
6048
  const e = Gt.getDefaultOptions();
6044
- this._altitudeMode = Ri(t.altitudeMode, mr, Y.CLAMP_TO_GROUND), this._allowPicking = ce(t.allowPicking, e.allowPicking), this._classificationType = Ri(t.classificationType, pr), this._scaleByDistance = uo(t.scaleByDistance, void 0), this._eyeOffset = fo(t.eyeOffset, void 0), this._heightAboveGround = k(t.heightAboveGround, e.heightAboveGround), this._skirt = k(t.skirt, e.skirt), this._groundLevel = k(t.groundLevel, e.groundLevel), this._extrudedHeight = k(t.extrudedHeight, e.extrudedHeight), this._storeysAboveGround = ne(t.storeysAboveGround, e.storeysAboveGround), this._storeysBelowGround = ne(t.storeysBelowGround, e.storeysBelowGround), this._storeyHeightsAboveGround = Os(t.storeyHeightsAboveGround, e.storeyHeightsAboveGround), this._storeyHeightsBelowGround = Os(t.storeyHeightsBelowGround, e.storeyHeightsBelowGround), this._modelUrl = t.modelUrl ?? e.modelUrl, this._modelScaleX = k(t.modelScaleX, e.modelScaleX), this._modelScaleY = k(t.modelScaleY, e.modelScaleY), this._modelScaleZ = k(t.modelScaleZ, e.modelScaleZ), this._modelHeading = k(t.modelHeading, e.modelHeading), this._modelPitch = k(t.modelPitch, e.modelPitch), this._modelRoll = k(t.modelRoll, e.modelRoll), this._baseUrl = t.baseUrl ?? e.baseUrl, this._modelOptions = t.modelOptions || e.modelOptions, this._modelAutoScale = ce(t.modelAutoScale, e.modelAutoScale), this._primitiveOptions = t.primitiveOptions || e.primitiveOptions, this.propertyChanged = new L();
6049
+ this._altitudeMode = Ri(t.altitudeMode, mr, Y.CLAMP_TO_GROUND), this._allowPicking = ce(t.allowPicking, e.allowPicking), this._classificationType = Ri(t.classificationType, pr), this._scaleByDistance = fo(t.scaleByDistance, void 0), this._eyeOffset = go(t.eyeOffset, void 0), this._heightAboveGround = k(t.heightAboveGround, e.heightAboveGround), this._skirt = k(t.skirt, e.skirt), this._groundLevel = k(t.groundLevel, e.groundLevel), this._extrudedHeight = k(t.extrudedHeight, e.extrudedHeight), this._storeysAboveGround = ne(t.storeysAboveGround, e.storeysAboveGround), this._storeysBelowGround = ne(t.storeysBelowGround, e.storeysBelowGround), this._storeyHeightsAboveGround = Os(t.storeyHeightsAboveGround, e.storeyHeightsAboveGround), this._storeyHeightsBelowGround = Os(t.storeyHeightsBelowGround, e.storeyHeightsBelowGround), this._modelUrl = t.modelUrl ?? e.modelUrl, this._modelScaleX = k(t.modelScaleX, e.modelScaleX), this._modelScaleY = k(t.modelScaleY, e.modelScaleY), this._modelScaleZ = k(t.modelScaleZ, e.modelScaleZ), this._modelHeading = k(t.modelHeading, e.modelHeading), this._modelPitch = k(t.modelPitch, e.modelPitch), this._modelRoll = k(t.modelRoll, e.modelRoll), this._baseUrl = t.baseUrl ?? e.baseUrl, this._modelOptions = t.modelOptions || e.modelOptions, this._modelAutoScale = ce(t.modelAutoScale, e.modelAutoScale), this._primitiveOptions = t.primitiveOptions || e.primitiveOptions, this.propertyChanged = new L();
6045
6050
  }
6046
6051
  /**
6047
6052
  * Returns the default options for VectorProperties
@@ -6109,7 +6114,7 @@ class Gt {
6109
6114
  wr.equals(t, this._scaleByDistance) || (S(t, ie(wr)), this._scaleByDistance = t, this.propertyChanged.raiseEvent(["scaleByDistance"]));
6110
6115
  }
6111
6116
  getScaleByDistance(t) {
6112
- return uo(t.get("olcs_scaleByDistance"), this.scaleByDistance);
6117
+ return fo(t.get("olcs_scaleByDistance"), this.scaleByDistance);
6113
6118
  }
6114
6119
  get eyeOffset() {
6115
6120
  return this._eyeOffset;
@@ -6124,7 +6129,7 @@ class Gt {
6124
6129
  if (s)
6125
6130
  return vv().deprecate("zCoordinateEyeOffset", "use eyeOffset and provide [0,0,value]"), new _(0, 0, k(s, 0));
6126
6131
  }
6127
- return fo(e, this.eyeOffset);
6132
+ return go(e, this.eyeOffset);
6128
6133
  }
6129
6134
  get heightAboveGround() {
6130
6135
  return this._heightAboveGround;
@@ -6388,11 +6393,11 @@ class Gt {
6388
6393
  this._classificationType !== n && (this._classificationType = n, s.push("classificationType"));
6389
6394
  }
6390
6395
  if ("scaleByDistance" in t) {
6391
- const r = uo(t.scaleByDistance, void 0);
6396
+ const r = fo(t.scaleByDistance, void 0);
6392
6397
  wr.equals(r, this._scaleByDistance) || (this._scaleByDistance = r, s.push("scaleByDistance"));
6393
6398
  }
6394
6399
  if ("eyeOffset" in t) {
6395
- const r = fo(t.eyeOffset, void 0);
6400
+ const r = go(t.eyeOffset, void 0);
6396
6401
  _.equals(r, this._eyeOffset) || (this._eyeOffset = r, s.push("eyeOffset"));
6397
6402
  }
6398
6403
  if ("heightAboveGround" in t) {
@@ -6899,7 +6904,7 @@ class Ei extends Ui {
6899
6904
  * aware layers.
6900
6905
  */
6901
6906
  h(this, "_locale");
6902
- this._layerEventListeners = {}, this._zIndexSymbol = Symbol("zIndex"), this.stateChanged = new L(), this.exclusiveManager = new wv(), this._globalHider = new Qo(), this._locale = "en";
6907
+ this._layerEventListeners = {}, this._zIndexSymbol = Symbol("zIndex"), this.stateChanged = new L(), this.exclusiveManager = new wv(), this._globalHider = new el(), this._locale = "en";
6903
6908
  }
6904
6909
  /**
6905
6910
  * Creates a LayerCollection from an iterable of layers, such as an Array.
@@ -6931,7 +6936,7 @@ class Ei extends Ui {
6931
6936
  * @param globalHider
6932
6937
  */
6933
6938
  set globalHider(e) {
6934
- S(e, Qo), this._globalHider = e, this._array.forEach((s) => {
6939
+ S(e, el), this._globalHider = e, this._array.forEach((s) => {
6935
6940
  s.setGlobalHider(this._globalHider);
6936
6941
  });
6937
6942
  }
@@ -7029,11 +7034,11 @@ class Ei extends Ui {
7029
7034
  }), this._layerEventListeners = {}, this.exclusiveManager.destroy(), this._globalHider.destroy(), super.destroy();
7030
7035
  }
7031
7036
  }
7032
- var el;
7037
+ var tl;
7033
7038
  (function(i) {
7034
7039
  i[i.INACTIVE = 1] = "INACTIVE", i[i.ACTIVE = 2] = "ACTIVE", i[i.LOADING = 4] = "LOADING";
7035
- })(el || (el = {}));
7036
- const Ht = el, J = Symbol("vcsLayerName");
7040
+ })(tl || (tl = {}));
7041
+ const Ht = tl, J = Symbol("vcsLayerName");
7037
7042
  function Rh() {
7038
7043
  return he("vcMap");
7039
7044
  }
@@ -7504,7 +7509,7 @@ class Pe extends qr {
7504
7509
  };
7505
7510
  }
7506
7511
  async initialize() {
7507
- this.initialized || (await super.initialize(), this.olMap.setView(new cl({
7512
+ this.initialized || (await super.initialize(), this.olMap.setView(new ul({
7508
7513
  center: [1.2309226203948376e6, 6350766117974091e-9],
7509
7514
  zoom: 13
7510
7515
  })), this.initialized = !0);
@@ -7689,7 +7694,7 @@ function xv(i, t) {
7689
7694
  s && !i.hasFeature(e, s) && i.addFeature(e, s);
7690
7695
  }), t[yr] = Date.now();
7691
7696
  }
7692
- function Al(i, t, e) {
7697
+ function Dl(i, t, e) {
7693
7698
  const s = t.on("addfeature", (r) => {
7694
7699
  if (!r.feature)
7695
7700
  return;
@@ -7748,7 +7753,7 @@ class ju extends qa {
7748
7753
  return this.minResolution && e.setMinResolution(this.minResolution), this.maxResolution && e.setMaxResolution(this.maxResolution), e;
7749
7754
  }
7750
7755
  async activate() {
7751
- this.active || (await super.activate(), this.active && this._featureVisibilityListeners.length === 0 && (this._featureVisibilityListeners = Al(this.featureVisibility, this.source, this.globalHider)));
7756
+ this.active || (await super.activate(), this.active && this._featureVisibilityListeners.length === 0 && (this._featureVisibilityListeners = Dl(this.featureVisibility, this.source, this.globalHider)));
7752
7757
  }
7753
7758
  deactivate() {
7754
7759
  super.deactivate(), this._featureVisibilityListeners.forEach((e) => {
@@ -7783,7 +7788,7 @@ function Wt(i, t) {
7783
7788
  return Ev(i);
7784
7789
  const e = t;
7785
7790
  let s = null;
7786
- return i instanceof Ve ? s = [e] : i instanceof xt ? s = e : i instanceof ht ? s = e.reduce((r, n) => r.concat(n)) : i instanceof ul ? s = e : i instanceof Fa ? s = e.reduce((r, n) => r.concat(n)) : i instanceof ks ? s = e.reduce((r, n) => r.concat(n)).reduce((r, n) => r.concat(n)) : i instanceof bt ? s = e : i instanceof Yi && (s = i.getGeometries().map((r, n) => Wt(r, e == null ? void 0 : e[n])).reduce((r, n) => r.concat(n))), s;
7791
+ return i instanceof Ve ? s = [e] : i instanceof xt ? s = e : i instanceof ht ? s = e.reduce((r, n) => r.concat(n)) : i instanceof dl ? s = e : i instanceof Fa ? s = e.reduce((r, n) => r.concat(n)) : i instanceof ks ? s = e.reduce((r, n) => r.concat(n)).reduce((r, n) => r.concat(n)) : i instanceof bt ? s = e : i instanceof Yi && (s = i.getGeometries().map((r, n) => Wt(r, e == null ? void 0 : e[n])).reduce((r, n) => r.concat(n))), s;
7787
7792
  }
7788
7793
  function $u(i, t) {
7789
7794
  const e = Vn(z.mercatorToWgs84(i), t, Math.PI / 2), s = z.wgs84ToMercator(e), r = i[0] - s[0], n = i[1] - s[1], a = r * r, o = n * n, l = Math.sqrt(a + o);
@@ -7792,7 +7797,7 @@ function $u(i, t) {
7792
7797
  function qu(i) {
7793
7798
  return i instanceof bt ? Tc(i) : (i instanceof ht && i.unset("_vcsGeomType"), i);
7794
7799
  }
7795
- function tl(i) {
7800
+ function il(i) {
7796
7801
  const [t, e] = i[i.length - 1];
7797
7802
  i[0][0] === t && i[0][1] === e || i.push(i[0].slice());
7798
7803
  }
@@ -7887,9 +7892,9 @@ async function B1(i, t, e) {
7887
7892
  else if (Ot(n))
7888
7893
  a != null ? kh(r, a) : await Wu(r, e, n !== Y.CLAMP_TO_TERRAIN ? Y.CLAMP_TO_GROUND : Y.CLAMP_TO_TERRAIN);
7889
7894
  else if (ui(n)) {
7890
- const o = Gl(r);
7895
+ const o = kl(r);
7891
7896
  await Promise.all(o.map(async (l) => {
7892
- const c = Nl(s, l, t);
7897
+ const c = Rl(s, l, t);
7893
7898
  if ({ groundLevel: a } = c, c.clampOrigin) {
7894
7899
  const m = [
7895
7900
  fn(c.clampOrigin)
@@ -7902,7 +7907,7 @@ async function B1(i, t, e) {
7902
7907
  m[2] = a + f;
7903
7908
  };
7904
7909
  u.forEach(g), l.setCoordinates(d, "XYZ");
7905
- })), r instanceof ul ? r.setCoordinates(o.map((l) => l.getCoordinates())) : r instanceof ks ? r.setCoordinates(o.map((l) => l.getCoordinates())) : r instanceof Fa ? r.setCoordinates(o.map((l) => l.getCoordinates())) : r instanceof Yi && r.setGeometries(o);
7910
+ })), r instanceof dl ? r.setCoordinates(o.map((l) => l.getCoordinates())) : r instanceof ks ? r.setCoordinates(o.map((l) => l.getCoordinates())) : r instanceof Fa ? r.setCoordinates(o.map((l) => l.getCoordinates())) : r instanceof Yi && r.setGeometries(o);
7906
7911
  }
7907
7912
  return s.set("olcs_altitudeMode", "absolute"), s.unset("olcs_groundLevel"), s.unset("olcs_heightAboveGround"), s;
7908
7913
  }
@@ -7955,7 +7960,7 @@ function Ot(i) {
7955
7960
  function ui(i) {
7956
7961
  return i === Y.RELATIVE_TO_GROUND || i === Y.RELATIVE_TO_TERRAIN || i === Y.RELATIVE_TO_3D_TILE;
7957
7962
  }
7958
- function Dl(i) {
7963
+ function Nl(i) {
7959
7964
  return i === Y.NONE;
7960
7965
  }
7961
7966
  function Iv(i) {
@@ -7992,11 +7997,11 @@ function Yu(i) {
7992
7997
  }
7993
7998
  return s;
7994
7999
  }
7995
- function Nl(i, t, e) {
8000
+ function Rl(i, t, e) {
7996
8001
  const s = Tv(i, e);
7997
8002
  let r = e.getAltitudeMode(i), n;
7998
8003
  const a = t.getLayout(), o = e.getGroundLevel(i);
7999
- if (vt(a) && Dl(r) && o == null && (r = Y.CLAMP_TO_GROUND), Ot(r)) {
8004
+ if (vt(a) && Nl(r) && o == null && (r = Y.CLAMP_TO_GROUND), Ot(r)) {
8000
8005
  const c = t.getType();
8001
8006
  let d = !1;
8002
8007
  if ((c === "Point" || c === "MultiPoint") && (d = e.renderAs(i) !== "geometry"), s.extruded || d)
@@ -8123,7 +8128,7 @@ function Ju(i, t) {
8123
8128
  function Gv(i, t, e) {
8124
8129
  return Ju(i, e).map((s) => ({
8125
8130
  type: "groundLine",
8126
- geometry: new fl(s),
8131
+ geometry: new gl(s),
8127
8132
  heightInfo: t
8128
8133
  }));
8129
8134
  }
@@ -8139,10 +8144,10 @@ function zv(i, t) {
8139
8144
  const s = [], r = i.getLinearRings(), n = Ua(t);
8140
8145
  for (let a = 0; a < r.length; a++) {
8141
8146
  const l = r[a].getCoordinates().map(n);
8142
- _.equals(l[0], l[l.length - 1]) || l.push(l[0]), a === 0 ? e = l : s.push(new Vo(l));
8147
+ _.equals(l[0], l[l.length - 1]) || l.push(l[0]), a === 0 ? e = l : s.push(new jo(l));
8143
8148
  }
8144
8149
  return {
8145
- polygonHierarchy: new Vo(e, s)
8150
+ polygonHierarchy: new jo(e, s)
8146
8151
  };
8147
8152
  }
8148
8153
  function Ku(i) {
@@ -8157,9 +8162,9 @@ function Ku(i) {
8157
8162
  const n = s * 3 * i.getLinearRingCount();
8158
8163
  return t && t.length >= n && i.getLinearRingCount() ? t.every((a) => Number.isFinite(a)) : !1;
8159
8164
  }
8160
- let go;
8165
+ let mo;
8161
8166
  function Hv() {
8162
- return go || (go = {
8167
+ return mo || (mo = {
8163
8168
  type: "polygon",
8164
8169
  getGeometryOptions: zv,
8165
8170
  createSolidGeometries: Nv,
@@ -8168,7 +8173,7 @@ function Hv() {
8168
8173
  createGroundLineGeometries: Gv,
8169
8174
  createLineGeometries: kv,
8170
8175
  validateGeometry: Ku
8171
- }), go;
8176
+ }), mo;
8172
8177
  }
8173
8178
  function Qu(i, t, e, s) {
8174
8179
  const r = {
@@ -8238,7 +8243,7 @@ function $v(i, t, e) {
8238
8243
  return [
8239
8244
  {
8240
8245
  type: "groundLine",
8241
- geometry: new fl(s),
8246
+ geometry: new gl(s),
8242
8247
  heightInfo: t
8243
8248
  }
8244
8249
  ];
@@ -8268,9 +8273,9 @@ function td(i) {
8268
8273
  const t = i.getFlatCoordinates(), e = i.getStride();
8269
8274
  return t && t.length >= e + 1 && t[e] !== t[0] ? t.every((s) => Number.isFinite(s)) : !1;
8270
8275
  }
8271
- let mo;
8276
+ let po;
8272
8277
  function Wv() {
8273
- return mo || (mo = {
8278
+ return po || (po = {
8274
8279
  type: "circle",
8275
8280
  getGeometryOptions: Uv,
8276
8281
  createSolidGeometries: Bv,
@@ -8279,7 +8284,7 @@ function Wv() {
8279
8284
  createGroundLineGeometries: $v,
8280
8285
  createLineGeometries: qv,
8281
8286
  validateGeometry: td
8282
- }), mo;
8287
+ }), po;
8283
8288
  }
8284
8289
  var gt;
8285
8290
  (function(i) {
@@ -8440,7 +8445,7 @@ function sd(i, t, e, s, r, n, a) {
8440
8445
  const o = bu(n), l = (f) => {
8441
8446
  f.height += n[2], ee.toCartesian(f, void 0, Bh);
8442
8447
  let g = t;
8443
- const m = i[sl];
8448
+ const m = i[rl];
8444
8449
  m != null && (g = new _(m, m, m));
8445
8450
  const p = G.fromScale(g);
8446
8451
  a && G.setTranslation(p, _.multiplyComponents(a, g, new _()), p);
@@ -8466,7 +8471,7 @@ async function Jv(i, t, e, s, r, n, a) {
8466
8471
  const v = u.getColor();
8467
8472
  v && (f = U.fromCssColorString(hf(v)));
8468
8473
  }
8469
- const g = G.multiply(ji.headingPitchRollToFixedFrame(t, c), G.fromScale(l), new G()), m = s.getModelOptions(i), p = await gl.fromGltfAsync({
8474
+ const g = G.multiply(ji.headingPitchRollToFixedFrame(t, c), G.fromScale(l), new G()), m = s.getModelOptions(i), p = await ml.fromGltfAsync({
8470
8475
  asynchronous: !i[pe],
8471
8476
  url: o.url,
8472
8477
  modelMatrix: g,
@@ -8491,10 +8496,10 @@ async function Jv(i, t, e, s, r, n, a) {
8491
8496
  autoScale: o.autoScale
8492
8497
  };
8493
8498
  }
8494
- function po(i, t, e) {
8499
+ function yo(i, t, e) {
8495
8500
  var r, n;
8496
8501
  let s;
8497
- return rs(i, Tt.CYLINDER) ? s = e ? new qf(i.geometryOptions) : new Vc(i.geometryOptions) : rs(i, Tt.ELLIPSOID) && (Array.isArray((r = i.geometryOptions) == null ? void 0 : r.radii) && (i.geometryOptions.radii = _.fromArray(i.geometryOptions.radii)), Array.isArray((n = i.geometryOptions) == null ? void 0 : n.innerRadii) && (i.geometryOptions.innerRadii = _.fromArray(i.geometryOptions.innerRadii)), s = e ? new Uf(i.geometryOptions) : new jc(i.geometryOptions)), rs(i, Tt.SPHERE) && (s = e ? new Wf(i.geometryOptions) : new Yf(i.geometryOptions)), rs(i, Tt.BOX) && (Array.isArray(i.geometryOptions.minimum) && (i.geometryOptions.minimum = _.fromArray(i.geometryOptions.minimum)), Array.isArray(i.geometryOptions.maximum) && (i.geometryOptions.maximum = _.fromArray(i.geometryOptions.maximum)), s = e ? new Xf(i.geometryOptions) : new ml(i.geometryOptions)), s ? new Ze({
8502
+ return rs(i, Tt.CYLINDER) ? s = e ? new qf(i.geometryOptions) : new Vc(i.geometryOptions) : rs(i, Tt.ELLIPSOID) && (Array.isArray((r = i.geometryOptions) == null ? void 0 : r.radii) && (i.geometryOptions.radii = _.fromArray(i.geometryOptions.radii)), Array.isArray((n = i.geometryOptions) == null ? void 0 : n.innerRadii) && (i.geometryOptions.innerRadii = _.fromArray(i.geometryOptions.innerRadii)), s = e ? new Uf(i.geometryOptions) : new jc(i.geometryOptions)), rs(i, Tt.SPHERE) && (s = e ? new Wf(i.geometryOptions) : new Yf(i.geometryOptions)), rs(i, Tt.BOX) && (Array.isArray(i.geometryOptions.minimum) && (i.geometryOptions.minimum = _.fromArray(i.geometryOptions.minimum)), Array.isArray(i.geometryOptions.maximum) && (i.geometryOptions.maximum = _.fromArray(i.geometryOptions.maximum)), s = e ? new Xf(i.geometryOptions) : new pl(i.geometryOptions)), s ? new Ze({
8498
8503
  geometry: s,
8499
8504
  attributes: {
8500
8505
  color: Dr.fromColor(t)
@@ -8544,13 +8549,13 @@ function rd(i, t, e, s, r, n, a) {
8544
8549
  return o.autoScale && (v ? Zv(j, w, g, v) : _.ONE.equals(g) || id(j, g)), ui(a.heightReference) && a.groundLevel == null && sd(j, g, m, a.heightReference, n, s, v), j;
8545
8550
  }, I = [];
8546
8551
  if (u)
8547
- I.push(E(u.alpha < 1 || !!x, [po(o.primitiveOptions, u)], x));
8552
+ I.push(E(u.alpha < 1 || !!x, [yo(o.primitiveOptions, u)], x));
8548
8553
  else if (x) {
8549
8554
  const D = U.TRANSPARENT;
8550
- I.push(E(!0, [po(o.primitiveOptions, D)], x));
8555
+ I.push(E(!0, [yo(o.primitiveOptions, D)], x));
8551
8556
  }
8552
8557
  return f && I.push(E(f.alpha < 1 || !!x, [
8553
- po(o.primitiveOptions, f, !0)
8558
+ yo(o.primitiveOptions, f, !0)
8554
8559
  ])), I.map((D) => ({
8555
8560
  type: "primitive",
8556
8561
  item: D,
@@ -8648,7 +8653,7 @@ function nd(i) {
8648
8653
  }
8649
8654
  function tS(i, t, e, s) {
8650
8655
  const r = i.skirt + i.storeyHeightsBelowGround.reduce((o, l) => o + l, 0) + i.storeyHeightsAboveGround.reduce((o, l) => o + l, 0), n = _.fromDegrees(e[0], e[1], e[2] - r);
8651
- return Rl({ positions: [t, n] }, i, s);
8656
+ return Fl({ positions: [t, n] }, i, s);
8652
8657
  }
8653
8658
  function ad(i, t) {
8654
8659
  const s = Xu(t)(i.getCoordinates());
@@ -8675,7 +8680,7 @@ async function iS(i, t, e, s, r, n) {
8675
8680
  return !Ot(n.heightReference) && n.extruded && e.getStroke() && l.push(...tS(n, o, a, e)), l;
8676
8681
  }
8677
8682
  function Vh(i, t, e) {
8678
- let s = Dl(e) ? L0(t, i) : 0;
8683
+ let s = Nl(e) ? L0(t, i) : 0;
8679
8684
  return s += 90, {
8680
8685
  location: t,
8681
8686
  pitch: s,
@@ -8698,7 +8703,7 @@ function sS(i, t, e, s, r, n) {
8698
8703
  olcs_modelPitch: u.pitch,
8699
8704
  geometry: f,
8700
8705
  olcs_modelAutoScale: !0
8701
- }), m = Nl(g, f, s), p = ad(f, m), y = _.fromDegrees(p[0], p[1], p[2]);
8706
+ }), m = Rl(g, f, s), p = ad(f, m), y = _.fromDegrees(p[0], p[1], p[2]);
8702
8707
  return rd(g, c, y, p, s, r, m);
8703
8708
  }).flat();
8704
8709
  }
@@ -8733,7 +8738,7 @@ function hd(i, t, e) {
8733
8738
  return [
8734
8739
  {
8735
8740
  type: "groundLine",
8736
- geometry: new fl({
8741
+ geometry: new gl({
8737
8742
  ...i,
8738
8743
  width: s
8739
8744
  }),
@@ -8741,7 +8746,7 @@ function hd(i, t, e) {
8741
8746
  }
8742
8747
  ];
8743
8748
  }
8744
- function Rl(i, t, e) {
8749
+ function Fl(i, t, e) {
8745
8750
  const s = k(e.getStroke().getWidth(), 1);
8746
8751
  return [
8747
8752
  {
@@ -8758,15 +8763,15 @@ function cd(i, t) {
8758
8763
  const e = i.getCoordinates(), s = Ua(t);
8759
8764
  return { positions: e.map(s) };
8760
8765
  }
8761
- function Fl(i) {
8766
+ function Gl(i) {
8762
8767
  if (i.getType() !== "LineString")
8763
8768
  return !1;
8764
8769
  const t = i.getFlatCoordinates(), e = i.getStride() * 2;
8765
8770
  return t && t.length >= e ? t.every((s) => Number.isFinite(s)) : !1;
8766
8771
  }
8767
- let yo;
8772
+ let _o;
8768
8773
  function jh() {
8769
- return yo || (yo = {
8774
+ return _o || (_o = {
8770
8775
  type: "lineString",
8771
8776
  getGeometryOptions: cd,
8772
8777
  createSolidGeometries: od,
@@ -8775,9 +8780,9 @@ function jh() {
8775
8780
  return [];
8776
8781
  },
8777
8782
  createGroundLineGeometries: hd,
8778
- createLineGeometries: Rl,
8779
- validateGeometry: Fl
8780
- }), yo;
8783
+ createLineGeometries: Fl,
8784
+ validateGeometry: Gl
8785
+ }), _o;
8781
8786
  }
8782
8787
  function rS(i, t, e) {
8783
8788
  const s = Ua(e);
@@ -8793,8 +8798,8 @@ function nS(i, t) {
8793
8798
  return [];
8794
8799
  },
8795
8800
  createGroundLineGeometries: hd,
8796
- createLineGeometries: Rl,
8797
- validateGeometry: Fl
8801
+ createLineGeometries: Fl,
8802
+ validateGeometry: Gl
8798
8803
  };
8799
8804
  }
8800
8805
  const ti = Symbol("FeatureArcStruct"), $h = Symbol("ArcStyleId");
@@ -8863,16 +8868,16 @@ function cS(i, t, e, s, r, n) {
8863
8868
  ];
8864
8869
  return m;
8865
8870
  }
8866
- function il(i, t, e, s) {
8871
+ function sl(i, t, e, s) {
8867
8872
  t[ti] && t[ti].destroy();
8868
8873
  const r = t.getGeometry(), n = [], a = () => {
8869
8874
  le(n);
8870
8875
  };
8871
8876
  if (n.push(t.on("change:geometry", () => {
8872
- il(i, t, e, s);
8877
+ sl(i, t, e, s);
8873
8878
  })), r instanceof xt) {
8874
8879
  n.push(r.on("change", () => {
8875
- il(i, t, e, s);
8880
+ sl(i, t, e, s);
8876
8881
  }));
8877
8882
  const o = r.getFirstCoordinate(), l = r.getLastCoordinate(), c = Pi(o, l), d = c * i;
8878
8883
  let u = s;
@@ -8944,7 +8949,7 @@ class ud extends Wa {
8944
8949
  }
8945
8950
  _getFeatureArcGeometry(e) {
8946
8951
  var s;
8947
- return (!e[ti] || e[$h] !== this._revisionId) && (il(this._arcFactor, e, this._numberOfSegments, this._offset), e[$h] = this._revisionId), (s = e[ti]) == null ? void 0 : s.geometry;
8952
+ return (!e[ti] || e[$h] !== this._revisionId) && (sl(this._arcFactor, e, this._numberOfSegments, this._offset), e[$h] = this._revisionId), (s = e[ti]) == null ? void 0 : s.geometry;
8948
8953
  }
8949
8954
  _getCloneOptions() {
8950
8955
  const e = super._getCloneOptions();
@@ -8997,7 +9002,7 @@ function dd(i, t, e) {
8997
9002
  const n = document.createElement("canvas"), a = n.getContext("2d");
8998
9003
  a.fillStyle = r, a.fillRect(0, 0, 300, 300), s.material = At.fromType("Wallpaper", {
8999
9004
  image: n,
9000
- anchor: Kf.worldToDrawingBufferCoordinates(i, _.fromDegreesArray(dl(e.getGeometry().getExtent()))[0])
9005
+ anchor: Kf.worldToDrawingBufferCoordinates(i, _.fromDegreesArray(fl(e.getGeometry().getExtent()))[0])
9001
9006
  });
9002
9007
  } else {
9003
9008
  const n = ri(r, [0, 0, 0, 1]);
@@ -9193,22 +9198,22 @@ function wa(i, t, e = 1) {
9193
9198
  s.push(...wa(r, t, e));
9194
9199
  }) : i instanceof K && s.push(i), s;
9195
9200
  }
9196
- function Gl(i) {
9201
+ function kl(i) {
9197
9202
  if (i instanceof Ve || i instanceof ht || i instanceof xt || i instanceof bt)
9198
9203
  return [i];
9199
- if (i instanceof ul)
9204
+ if (i instanceof dl)
9200
9205
  return i.getPoints();
9201
9206
  if (i instanceof ks)
9202
9207
  return i.getPolygons();
9203
9208
  if (i instanceof Fa)
9204
9209
  return i.getLineStrings();
9205
9210
  if (i instanceof Yi)
9206
- return i.getGeometriesArray().map(Gl).flat();
9211
+ return i.getGeometriesArray().map(kl).flat();
9207
9212
  throw new Error("Not an implemented geometry");
9208
9213
  }
9209
9214
  async function wS(i, t, e, s, r) {
9210
9215
  var d, u, f, g;
9211
- const n = Nl(i, t, s);
9216
+ const n = Rl(i, t, s);
9212
9217
  if (t instanceof Ve)
9213
9218
  return !e.getImage() && !((d = e.getText()) != null && d.getText()) || !nd(t) ? [] : await iS(i, t, e, s, r, n);
9214
9219
  let a, o;
@@ -9266,7 +9271,7 @@ async function pd(i, t, e, s) {
9266
9271
  const o = a.getGeometryFunction()(i);
9267
9272
  return o ? {
9268
9273
  style: a,
9269
- geometries: Gl(o)
9274
+ geometries: kl(o)
9270
9275
  } : {
9271
9276
  style: a,
9272
9277
  geometries: []
@@ -9291,13 +9296,13 @@ function Uh(i, t, e, s) {
9291
9296
  let r = s[i];
9292
9297
  return r != null && r > e.length && (r = void 0), e.add(t, r);
9293
9298
  }
9294
- function _o(i, t) {
9299
+ function vo(i, t) {
9295
9300
  for (let e = 0; e < t.length; e++) {
9296
9301
  const s = t.get(e);
9297
- (s instanceof gl || s instanceof Wc) && (s.splitDirection = i);
9302
+ (s instanceof ml || s instanceof Wc) && (s.splitDirection = i);
9298
9303
  }
9299
9304
  }
9300
- const sl = Symbol("Scale"), ES = new _();
9305
+ const rl = Symbol("Scale"), ES = new _();
9301
9306
  function OS(i, t, e) {
9302
9307
  let s = new It({});
9303
9308
  return i.getScene().postRender.addEventListener(() => {
@@ -9310,14 +9315,14 @@ function OS(i, t, e) {
9310
9315
  const o = t.get(a);
9311
9316
  if (!o.isDestroyed()) {
9312
9317
  const { modelMatrix: l } = o, c = G.getTranslation(l, ES), d = i.getCurrentResolutionFromCartesian(c);
9313
- o[sl] !== d && (o.modelMatrix = G.setScale(l, new _(d, d, d), o.modelMatrix), o[sl] = d);
9318
+ o[rl] !== d && (o.modelMatrix = G.setScale(l, new _(d, d, d), o.modelMatrix), o[rl] = d);
9314
9319
  }
9315
9320
  }
9316
9321
  e.value = !1, s = n;
9317
9322
  }
9318
9323
  });
9319
9324
  }
9320
- class kl {
9325
+ class zl {
9321
9326
  constructor(t, e, s) {
9322
9327
  h(this, "primitives", new $t());
9323
9328
  h(this, "scaledPrimitives", new $t());
@@ -9353,7 +9358,7 @@ class kl {
9353
9358
  this.billboards.remove(o);
9354
9359
  })) : a.type === "label" && (o = this.labels.add(a.item), o && (l = () => {
9355
9360
  this.labels.remove(o);
9356
- })), o && (e && yd(t, o), this.splitDirection && (o instanceof gl || o instanceof Wc) && (o.splitDirection = this.splitDirection)), l;
9361
+ })), o && (e && yd(t, o), this.splitDirection && (o instanceof ml || o instanceof Wc) && (o.splitDirection = this.splitDirection)), l;
9357
9362
  }).filter((a) => a != null);
9358
9363
  this._featureItems.set(t, n);
9359
9364
  }
@@ -9384,7 +9389,7 @@ class kl {
9384
9389
  (e = this._convertingFeatures.get(t)) == null || e(!1), this._convertingFeatures.delete(t), (s = this._featureItems.get(t)) == null || s.forEach((r) => r()), this._featureItems.delete(t);
9385
9390
  }
9386
9391
  updateSplitDirection(t) {
9387
- this.splitDirection = t, _o(t, this.primitives), _o(t, this.scaledPrimitives), _o(t, this.billboards);
9392
+ this.splitDirection = t, vo(t, this.primitives), vo(t, this.scaledPrimitives), vo(t, this.billboards);
9388
9393
  }
9389
9394
  clear() {
9390
9395
  this.primitives.removeAll(), this._scaledDirty.value = this.scaledPrimitives.length > 0, this.scaledPrimitives.removeAll(), this.billboards.removeAll(), this.labels.removeAll(), this._featureItems.clear(), this._convertingFeatures.forEach((t) => {
@@ -9441,7 +9446,7 @@ class bS extends es {
9441
9446
  }
9442
9447
  _setupContext(e) {
9443
9448
  const s = this._rootCollection;
9444
- return this._context = new kl(e, s, this.splitDirection), e.addPrimitiveCollection(s), Promise.resolve();
9449
+ return this._context = new zl(e, s, this.splitDirection), e.addPrimitiveCollection(s), Promise.resolve();
9445
9450
  }
9446
9451
  async initialize() {
9447
9452
  this.initialized || (this._scene = this.map.getScene(), this._addListeners(), this._addFeatures(this.source.getFeatures()), await this._setupContext(this.map)), await super.initialize(), this.splitDirection && this.updateSplitDirection(this.splitDirection);
@@ -9480,7 +9485,7 @@ class bS extends es {
9480
9485
  this._featureToAdd.delete(e), await this._addFeature(e);
9481
9486
  }
9482
9487
  async activate() {
9483
- this.active || (await super.activate(), this.active && (this._addFeatures([...this._featureToAdd]), this._featureToAdd.clear(), this._rootCollection.show = !0, this._featureVisibilityListeners.length === 0 && (this._featureVisibilityListeners = Al(this.featureVisibility, this.source, this.globalHider))));
9488
+ this.active || (await super.activate(), this.active && (this._addFeatures([...this._featureToAdd]), this._featureToAdd.clear(), this._rootCollection.show = !0, this._featureVisibilityListeners.length === 0 && (this._featureVisibilityListeners = Dl(this.featureVisibility, this.source, this.globalHider))));
9484
9489
  }
9485
9490
  deactivate() {
9486
9491
  super.deactivate(), this._rootCollection.show = !1, this._featureVisibilityListeners.forEach((e) => {
@@ -9532,9 +9537,9 @@ function Ii(i, t) {
9532
9537
  const bs = {};
9533
9538
  async function Ur(i, t, e) {
9534
9539
  if (!bs[i])
9535
- return bs[i] = await ih.fromUrl(Ii(i, e), t), bs[i];
9540
+ return bs[i] = await sh.fromUrl(Ii(i, e), t), bs[i];
9536
9541
  let s = bs[i];
9537
- return (t.requestVertexNormals !== void 0 && s.requestVertexNormals !== t.requestVertexNormals || t.requestWaterMask !== void 0 && s.requestWaterMask !== t.requestWaterMask) && (bs[i] = await ih.fromUrl(Ii(i, e), t), s = bs[i]), s;
9542
+ return (t.requestVertexNormals !== void 0 && s.requestVertexNormals !== t.requestVertexNormals || t.requestWaterMask !== void 0 && s.requestWaterMask !== t.requestWaterMask) && (bs[i] = await sh.fromUrl(Ii(i, e), t), s = bs[i]), s;
9538
9543
  }
9539
9544
  function Qs(i, t, e, s) {
9540
9545
  const r = e ? $e(e.proj, de.proj) : null, n = t.map((o) => {
@@ -9549,11 +9554,11 @@ function PS(i, t, e) {
9549
9554
  const s = i.tilingScheme.positionToTileXY(e, t, new H());
9550
9555
  return !!i.getTileDataAvailable(s.x, s.y, t);
9551
9556
  }
9552
- let vo = new H(), So = new H();
9557
+ let So = new H(), wo = new H();
9553
9558
  function Wh(i, t = !1) {
9554
9559
  const e = i.slice(), s = Ir(e);
9555
9560
  let n = [
9556
- dl(s),
9561
+ fl(s),
9557
9562
  Ac(s),
9558
9563
  Dc(s),
9559
9564
  Ga(s)
@@ -9567,7 +9572,7 @@ function Wh(i, t = !1) {
9567
9572
  return t === Oe.EAST ? n = [n[3], n[0], n[1], n[2]] : t === Oe.SOUTH ? n = [n[2], n[3], n[0], n[1]] : t === Oe.WEST && (n = [n[1], n[2], n[3], n[0]]), n;
9568
9573
  }
9569
9574
  function or(i, t) {
9570
- return vo = H.fromElements(i[0], i[1], vo), So = H.fromElements(t[0], t[1], So), H.angleBetween(vo, So);
9575
+ return So = H.fromElements(i[0], i[1], So), wo = H.fromElements(t[0], t[1], wo), H.angleBetween(So, wo);
9571
9576
  }
9572
9577
  function Yh(i, t) {
9573
9578
  const [[e, s], [r, n]] = i, [[a, o], [l, c]] = t;
@@ -9868,7 +9873,7 @@ class wd extends NS {
9868
9873
  }
9869
9874
  async activate() {
9870
9875
  var e;
9871
- this.active || (await super.activate(), this.active && (this.olLayer.setVisible(!0), this._featureVisibilityListeners.length === 0 && (this._featureVisibilityListeners = Al(this.featureVisibility, this.source, this.globalHider)), this._addSourceListeners(), this._imageChangedListener = (e = this.map.imageChanged) == null ? void 0 : e.addEventListener(this._onObliqueImageChanged.bind(this)), this._fetchFeaturesInView()));
9876
+ this.active || (await super.activate(), this.active && (this.olLayer.setVisible(!0), this._featureVisibilityListeners.length === 0 && (this._featureVisibilityListeners = Dl(this.featureVisibility, this.source, this.globalHider)), this._addSourceListeners(), this._imageChangedListener = (e = this.map.imageChanged) == null ? void 0 : e.addEventListener(this._onObliqueImageChanged.bind(this)), this._fetchFeaturesInView()));
9872
9877
  }
9873
9878
  async addFeature(e) {
9874
9879
  if (this.active || (this.fetchedFeaturesForImageName = null), this.active && this.currentExtent) {
@@ -9979,10 +9984,10 @@ class wd extends NS {
9979
9984
  }), this._clearCurrentImage(), super.destroy();
9980
9985
  }
9981
9986
  }
9982
- const zl = Symbol("isDefaultImage");
9987
+ const Hl = Symbol("isDefaultImage");
9983
9988
  var Oc;
9984
- Oc = zl;
9985
- class Hl {
9989
+ Oc = Hl;
9990
+ class Bl {
9986
9991
  constructor(t) {
9987
9992
  /**
9988
9993
  * Name of the image
@@ -10054,7 +10059,7 @@ class Hl {
10054
10059
  transformRealWorld2Image(t, e) {
10055
10060
  if (!this.meta.principalPoint)
10056
10061
  return this._transformNoCamera(t, !1, e);
10057
- const s = e || this.averageHeight, r = new sh(t[0], t[1], s, 1), n = G.multiplyByVector(this.pToImage, r, new sh()), a = [n.x / n.z, n.y / n.z], o = [
10062
+ const s = e || this.averageHeight, r = new rh(t[0], t[1], s, 1), n = G.multiplyByVector(this.pToImage, r, new rh()), a = [n.x / n.z, n.y / n.z], o = [
10058
10063
  a[0],
10059
10064
  this.meta.size[1] - a[1]
10060
10065
  ];
@@ -10235,7 +10240,7 @@ function Kh(i, t) {
10235
10240
  (!f.size || f.size[0] === 0 && f.size[1] === 0) && (n[s.height] && n[s.width] ? f.size = [
10236
10241
  n[s.width],
10237
10242
  n[s.height]
10238
- ] : console.error("missing image meta size")), f.tileResolution || (n[s.tileResolution] ? f.tileResolution = n[s.tileResolution] : console.error("missing image meta tileResolution")), r[a - 1] = new Hl({
10243
+ ] : console.error("missing image meta size")), f.tileResolution || (n[s.tileResolution] ? f.tileResolution = n[s.tileResolution] : console.error("missing image meta tileResolution")), r[a - 1] = new Bl({
10239
10244
  name: n[s.name],
10240
10245
  viewDirection: n[s.viewDirection],
10241
10246
  viewDirectionAngle: n[s.viewDirectionAngle],
@@ -10267,7 +10272,7 @@ function GS(i, t) {
10267
10272
  const I = Q.multiply(x, w, new Q()), R = G.fromRotationTranslation(v, _.ZERO, new G()), D = _.fromArray(l), X = G.fromTranslation(_.multiplyByScalar(D, -1, new _()), new G()), te = G.fromRotationTranslation(C, _.ZERO, new G()), j = G.multiply(R, G.multiply(te, X, new G()), new G());
10268
10273
  p.projectionCenter = D, p.pToRealworld = I, p.pToImage = j;
10269
10274
  }
10270
- return new Hl(p);
10275
+ return new Bl(p);
10271
10276
  });
10272
10277
  }
10273
10278
  async function vn(i, t) {
@@ -10282,7 +10287,7 @@ async function ms(i, t) {
10282
10287
  async function kS(i, t) {
10283
10288
  return (await vn(i, t)).arrayBuffer();
10284
10289
  }
10285
- async function Bl(i, t) {
10290
+ async function Vl(i, t) {
10286
10291
  const s = await (await vn(i, t)).blob();
10287
10292
  return URL.createObjectURL(s);
10288
10293
  }
@@ -10473,7 +10478,7 @@ class Qh {
10473
10478
  function Ya(i) {
10474
10479
  return function(e, s) {
10475
10480
  const r = e.getImage(), n = qt(s, i);
10476
- Bl(s, n).then((a) => {
10481
+ Vl(s, n).then((a) => {
10477
10482
  r.src = a, r.onload = () => {
10478
10483
  URL.revokeObjectURL(a);
10479
10484
  };
@@ -10482,15 +10487,15 @@ function Ya(i) {
10482
10487
  });
10483
10488
  };
10484
10489
  }
10485
- let wo = "";
10490
+ let Co = "";
10486
10491
  function zS() {
10487
- if (!wo) {
10492
+ if (!Co) {
10488
10493
  const i = document.createElement("canvas");
10489
10494
  i.height = 512, i.width = 512;
10490
10495
  const t = i.getContext("2d");
10491
- t.fillStyle = "#409D76", t.fillRect(0, 0, 512, 512), t.font = "bold 46px Monospace, Courier New", t.fillStyle = "#424242", t.textAlign = "center", t.fillText("No Image", 256, 256), wo = i.toDataURL("png");
10496
+ t.fillStyle = "#409D76", t.fillRect(0, 0, 512, 512), t.font = "bold 46px Monospace, Courier New", t.fillStyle = "#424242", t.textAlign = "center", t.fillText("No Image", 256, 256), Co = i.toDataURL("png");
10492
10497
  }
10493
- return wo;
10498
+ return Co;
10494
10499
  }
10495
10500
  class HS {
10496
10501
  constructor(t, e) {
@@ -10515,7 +10520,7 @@ class HS {
10515
10520
  units: "pixels",
10516
10521
  extent: r
10517
10522
  }), a = this.maxZoom > 0 ? this.maxZoom : this.tileResolution.length + 4, o = Math.log(2) / Math.log(this.scaleFactor);
10518
- this._view = new cl({
10523
+ this._view = new ul({
10519
10524
  projection: n,
10520
10525
  center: [this.size[0] / 2, this.size[1] / 2],
10521
10526
  constrainOnlyCenter: !0,
@@ -10704,7 +10709,7 @@ class BS {
10704
10709
  let r;
10705
10710
  this._viewCache.has(t.meta) ? r = this._viewCache.get(t.meta) : (r = new HS(t.meta, this._collection.viewOptions), this._viewCache.set(t.meta, r));
10706
10711
  const n = this._currentView;
10707
- this._currentView = r, s && this._currentView.setImageName(this._currentImage.name, this._currentImage[zl]);
10712
+ this._currentView = r, s && this._currentView.setImageName(this._currentImage.name, this._currentImage[Hl]);
10708
10713
  const [a, o] = this._currentImage.meta.size;
10709
10714
  let l = [a / 2, o / 2];
10710
10715
  if (e) {
@@ -10717,7 +10722,7 @@ class BS {
10717
10722
  this._currentView && (t && t === this._currentView || (t && this._olMap.removeLayer(t.layer), this._olMap.getView() && this._olMap.getView().getResolution() && this._currentView.view.setResolution(this._olMap.getView().getResolution()), this._olMap.setView(this._currentView.view), this._olMap.getLayers().insertAt(0, this._currentView.layer)));
10718
10723
  }
10719
10724
  _removeCurrentView() {
10720
- this._currentView && (this._olMap.getView() === this._currentView.view && this._olMap.setView(new cl()), this._olMap.removeLayer(this._currentView.layer));
10725
+ this._currentView && (this._olMap.getView() === this._currentView.view && this._olMap.setView(new ul()), this._olMap.removeLayer(this._currentView.layer));
10721
10726
  }
10722
10727
  /**
10723
10728
  * Sets a new image based on a ground coordinate and a direction.
@@ -10789,7 +10794,7 @@ function lr(i, t, e) {
10789
10794
  function VS(i, t) {
10790
10795
  return i < t ? -1 : i > t ? 1 : 0;
10791
10796
  }
10792
- class rl {
10797
+ class nl {
10793
10798
  constructor(t = 9) {
10794
10799
  this._maxEntries = Math.max(4, t), this._minEntries = Math.max(2, Math.ceil(this._maxEntries * 0.4)), this.clear();
10795
10800
  }
@@ -10804,7 +10809,7 @@ class rl {
10804
10809
  for (; e; ) {
10805
10810
  for (let a = 0; a < e.children.length; a++) {
10806
10811
  const o = e.children[a], l = e.leaf ? r(o) : o;
10807
- Gn(t, l) && (e.leaf ? s.push(o) : Mo(t, l) ? this._all(o, s) : n.push(o));
10812
+ Gn(t, l) && (e.leaf ? s.push(o) : xo(t, l) ? this._all(o, s) : n.push(o));
10808
10813
  }
10809
10814
  e = n.pop();
10810
10815
  }
@@ -10818,7 +10823,7 @@ class rl {
10818
10823
  for (let r = 0; r < e.children.length; r++) {
10819
10824
  const n = e.children[r], a = e.leaf ? this.toBBox(n) : n;
10820
10825
  if (Gn(t, a)) {
10821
- if (e.leaf || Mo(t, a)) return !0;
10826
+ if (e.leaf || xo(t, a)) return !0;
10822
10827
  s.push(n);
10823
10828
  }
10824
10829
  }
@@ -10864,7 +10869,7 @@ class rl {
10864
10869
  if (d !== -1)
10865
10870
  return s.children.splice(d, 1), n.push(s), this._condense(n), this;
10866
10871
  }
10867
- !c && !s.leaf && Mo(s, r) ? (n.push(s), a.push(o), o = 0, l = s, s = s.children[0]) : l ? (o++, s = l.children[o], c = !1) : s = null;
10872
+ !c && !s.leaf && xo(s, r) ? (n.push(s), a.push(o), o = 0, l = s, s = s.children[0]) : l ? (o++, s = l.children[o], c = !1) : s = null;
10868
10873
  }
10869
10874
  return this;
10870
10875
  }
@@ -10911,7 +10916,7 @@ class rl {
10911
10916
  for (; r.push(e), !(e.leaf || r.length - 1 === s); ) {
10912
10917
  let n = 1 / 0, a = 1 / 0, o;
10913
10918
  for (let l = 0; l < e.children.length; l++) {
10914
- const c = e.children[l], d = Co(c), u = US(t, c) - d;
10919
+ const c = e.children[l], d = Mo(c), u = US(t, c) - d;
10915
10920
  u < a ? (a = u, n = d < n ? d : n, o = c) : u === a && d < n && (n = d, o = c);
10916
10921
  }
10917
10922
  e = o || e.children[0];
@@ -10937,7 +10942,7 @@ class rl {
10937
10942
  _chooseSplitIndex(t, e, s) {
10938
10943
  let r, n = 1 / 0, a = 1 / 0;
10939
10944
  for (let o = e; o <= s - e; o++) {
10940
- const l = _r(t, 0, o, this.toBBox), c = _r(t, o, s, this.toBBox), d = WS(l, c), u = Co(l) + Co(c);
10945
+ const l = _r(t, 0, o, this.toBBox), c = _r(t, o, s, this.toBBox), d = WS(l, c), u = Mo(l) + Mo(c);
10941
10946
  d < n ? (n = d, r = o, a = u < a ? u : a) : d === n && u < a && (a = u, r = o);
10942
10947
  }
10943
10948
  return r || s - e;
@@ -10997,7 +11002,7 @@ function $S(i, t) {
10997
11002
  function qS(i, t) {
10998
11003
  return i.minY - t.minY;
10999
11004
  }
11000
- function Co(i) {
11005
+ function Mo(i) {
11001
11006
  return (i.maxX - i.minX) * (i.maxY - i.minY);
11002
11007
  }
11003
11008
  function Fn(i) {
@@ -11010,7 +11015,7 @@ function WS(i, t) {
11010
11015
  const e = Math.max(i.minX, t.minX), s = Math.max(i.minY, t.minY), r = Math.min(i.maxX, t.maxX), n = Math.min(i.maxY, t.maxY);
11011
11016
  return Math.max(0, r - e) * Math.max(0, n - s);
11012
11017
  }
11013
- function Mo(i, t) {
11018
+ function xo(i, t) {
11014
11019
  return i.minX <= t.minX && i.minY <= t.minY && t.maxX <= i.maxX && t.maxY <= i.maxY;
11015
11020
  }
11016
11021
  function Gn(i, t) {
@@ -11272,7 +11277,7 @@ class ps extends Ut {
11272
11277
  name: n.name
11273
11278
  });
11274
11279
  }), r.forEach((n, a) => {
11275
- this._directionTrees.get(a) || this._directionTrees.set(a, new rl()), this._directionTrees.get(a).load(n);
11280
+ this._directionTrees.get(a) || this._directionTrees.set(a, new nl()), this._directionTrees.get(a).load(n);
11276
11281
  }), this._imageFeatureSource) {
11277
11282
  const n = rc(e);
11278
11283
  this._imageFeatureSource.addFeatures(n);
@@ -11442,7 +11447,7 @@ class QS extends ps {
11442
11447
  [t[0] + 100, t[1] - 100, 0],
11443
11448
  [t[0] + 100, t[1] + 100, 0],
11444
11449
  [t[0] - 100, t[1] + 100, 0]
11445
- ], r = new Hl({
11450
+ ], r = new Bl({
11446
11451
  meta: KS,
11447
11452
  viewDirection: Oe.NORTH,
11448
11453
  viewDirectionAngle: 0,
@@ -11450,7 +11455,7 @@ class QS extends ps {
11450
11455
  groundCoordinates: s,
11451
11456
  centerPointOnGround: t
11452
11457
  });
11453
- return r[zl] = !0, r;
11458
+ return r[Hl] = !0, r;
11454
11459
  }
11455
11460
  }
11456
11461
  const ew = {
@@ -11460,12 +11465,12 @@ const ew = {
11460
11465
  [Oe.WEST]: 270,
11461
11466
  [Oe.NADIR]: 0
11462
11467
  }, ac = new QS();
11463
- function xo(i) {
11468
+ function Eo(i) {
11464
11469
  const { heading: t } = i;
11465
11470
  let e = Oe.NORTH;
11466
11471
  return t >= 45 && t < 135 ? e = Oe.EAST : t >= 135 && t < 225 ? e = Oe.SOUTH : t >= 225 && t < 315 && (e = Oe.WEST), e;
11467
11472
  }
11468
- function Eo(i) {
11473
+ function Oo(i) {
11469
11474
  const t = i.groundPosition ?? i.cameraPosition ?? [0, 0, 0];
11470
11475
  return as(t, de.proj, W.proj);
11471
11476
  }
@@ -11557,7 +11562,7 @@ class Ae extends qr {
11557
11562
  }
11558
11563
  async canShowViewpoint(e) {
11559
11564
  if (await this.initialize(), this.collection) {
11560
- const s = xo(e), r = Eo(e);
11565
+ const s = Eo(e), r = Oo(e);
11561
11566
  return this.collection.hasImageAtCoordinate(r, s);
11562
11567
  }
11563
11568
  return !1;
@@ -11571,7 +11576,7 @@ class Ae extends qr {
11571
11576
  if (e) {
11572
11577
  const s = Ir(e.groundCoordinates);
11573
11578
  return new be({
11574
- coordinates: th(s, e.meta.projection.proj, W.proj),
11579
+ coordinates: ih(s, e.meta.projection.proj, W.proj),
11575
11580
  projection: W.toJSON()
11576
11581
  });
11577
11582
  }
@@ -11604,7 +11609,7 @@ class Ae extends qr {
11604
11609
  const r = s || await this.getViewpoint();
11605
11610
  if (this._loadingCollection === e) {
11606
11611
  if (s && this.maintainViewpointOnCollectionChange && this.collection) {
11607
- const a = xo(s), o = Eo(s);
11612
+ const a = Eo(s), o = Oo(s);
11608
11613
  if (!await e.hasImageAtCoordinate(o, a)) {
11609
11614
  this.failedToSetCollection.raiseEvent(e);
11610
11615
  return;
@@ -11660,7 +11665,7 @@ class Ae extends qr {
11660
11665
  async gotoViewpoint(e) {
11661
11666
  if (this.movementApiCallsDisabled || !this.olMap || !this._obliqueProvider || !e.isValid())
11662
11667
  return;
11663
- const s = xo(e), r = Eo(e), { distance: n } = e;
11668
+ const s = Eo(e), r = Oo(e), { distance: n } = e;
11664
11669
  if (await this._obliqueProvider.setView(r, s), this._obliqueProvider.currentImage) {
11665
11670
  const a = TS(this.olMap, this._obliqueProvider.currentImage, n);
11666
11671
  this.olMap.getView().setZoom(a);
@@ -11670,7 +11675,7 @@ class Ae extends qr {
11670
11675
  const s = this.currentImage;
11671
11676
  if (!s || !this.active)
11672
11677
  return !1;
11673
- const n = this.olMap.getView().calculateExtent(this.olMap.getSize()), a = s.transformImage2RealWorld([n[0], n[1]]), o = s.transformImage2RealWorld([n[2], n[3]]), l = [a[0], a[1], o[0], o[1]], c = th(l, s.meta.projection.proj, de.proj);
11678
+ const n = this.olMap.getView().calculateExtent(this.olMap.getSize()), a = s.transformImage2RealWorld([n[0], n[1]]), o = s.transformImage2RealWorld([n[2], n[3]]), l = [a[0], a[1], o[0], o[1]], c = ih(l, s.meta.projection.proj, de.proj);
11674
11679
  return Lc(c, e[0], e[1]);
11675
11680
  }
11676
11681
  toJSON() {
@@ -11760,9 +11765,9 @@ class Yr {
11760
11765
  if (this.mode === Pr.DISTANCE && this.terrainUrl) {
11761
11766
  if (e = this._updateTerrainHeight(s), this._terrainHeight && s.height - this._terrainHeight < this.limit) {
11762
11767
  const r = this._terrainHeight + this.limit;
11763
- ee.toCartesian(new ee(s.longitude, s.latitude, r), jo.WGS84, t.position);
11768
+ ee.toCartesian(new ee(s.longitude, s.latitude, r), $o.WGS84, t.position);
11764
11769
  }
11765
- } else s.height < this.limit && ee.toCartesian(new ee(s.longitude, s.latitude, this.limit), jo.WGS84, t.position);
11770
+ } else s.height < this.limit && ee.toCartesian(new ee(s.longitude, s.latitude, this.limit), $o.WGS84, t.position);
11766
11771
  return e;
11767
11772
  }
11768
11773
  toJSON() {
@@ -12030,9 +12035,9 @@ class B extends ci {
12030
12035
  shadows: !1,
12031
12036
  terrainShadows: za.ENABLED,
12032
12037
  contextOptions: s
12033
- }), this._cesiumWidget.scene.globe.tileCacheSize = this.tileCacheSize, this._cesiumWidget.scene.globe.baseColor = this.globeColor, this.dataSourceDisplay = new rh({
12038
+ }), this._cesiumWidget.scene.globe.tileCacheSize = this.tileCacheSize, this._cesiumWidget.scene.globe.baseColor = this.globeColor, this.dataSourceDisplay = new nh({
12034
12039
  scene: this._cesiumWidget.scene,
12035
- dataSourceCollection: new nh()
12040
+ dataSourceCollection: new ah()
12036
12041
  }), this._cesiumWidget.scene.frameState.creditDisplay.update = () => {
12037
12042
  }, this._cesiumWidget.scene.frameState.creditDisplay.beginFrame = () => {
12038
12043
  }, this._cesiumWidget.scene.frameState.creditDisplay.endFrame = () => {
@@ -12087,7 +12092,7 @@ class B extends ci {
12087
12092
  const a = new Xc(e.position, e.direction), o = this._cesiumWidget.scene.globe.pick(a, this._cesiumWidget.scene);
12088
12093
  if (o) {
12089
12094
  n = _.distance(o, s);
12090
- const d = jo.WGS84.cartesianToCartographic(o);
12095
+ const d = $o.WGS84.cartesianToCartographic(o);
12091
12096
  r = [
12092
12097
  b.toDegrees(d.longitude),
12093
12098
  b.toDegrees(d.latitude),
@@ -12257,7 +12262,7 @@ class B extends ci {
12257
12262
  return this._clusterDataSourceDisplay.dataSources;
12258
12263
  if (!this._cesiumWidget)
12259
12264
  throw new Error("Cannot get Datasource collection from uninitialized map");
12260
- const e = new nh(), s = (r, n, a) => {
12265
+ const e = new ah(), s = (r, n, a) => {
12261
12266
  const { entities: o } = a;
12262
12267
  return [
12263
12268
  new lg(n, o),
@@ -12265,7 +12270,7 @@ class B extends ci {
12265
12270
  new cg(n, o)
12266
12271
  ];
12267
12272
  };
12268
- return this._clusterDataSourceDisplay = new rh({
12273
+ return this._clusterDataSourceDisplay = new nh({
12269
12274
  scene: this._cesiumWidget.scene,
12270
12275
  dataSourceCollection: e,
12271
12276
  visualizersCallback: s
@@ -12508,7 +12513,7 @@ class ct extends Li {
12508
12513
  this.getFeatures().forEach((n) => {
12509
12514
  if (n[yt]) {
12510
12515
  let a;
12511
- r ? (a = !0, n.setStyle(void 0)) : n.getStyle() !== n[yt].style && (a = !0, n.setStyle(n[yt].style)), a && Reflect.has(n, Mi) && Tl(n);
12516
+ r ? (a = !0, n.setStyle(void 0)) : n.getStyle() !== n[yt].style && (a = !0, n.setStyle(n[yt].style)), a && Reflect.has(n, Mi) && Al(n);
12512
12517
  }
12513
12518
  });
12514
12519
  }
@@ -12721,9 +12726,9 @@ class wi {
12721
12726
  }
12722
12727
  }
12723
12728
  const rw = "EPSG:3857";
12724
- let Oo;
12725
- function Vl() {
12726
- return Oo || (Oo = new zc()), Oo;
12729
+ let bo;
12730
+ function jl() {
12731
+ return bo || (bo = new zc()), bo;
12727
12732
  }
12728
12733
  function nw(i) {
12729
12734
  const { crs: t } = i;
@@ -12749,7 +12754,7 @@ function aw(i) {
12749
12754
  }
12750
12755
  function ow(i, t) {
12751
12756
  var s;
12752
- const e = Vl().readGeometry(i, t.formatOptions);
12757
+ const e = jl().readGeometry(i, t.formatOptions);
12753
12758
  return String((s = t.formatOptions) == null ? void 0 : s.featureProjection) === "EPSG:3857" && (e[hi] = !0), Uu(e), new ue({ geometry: e });
12754
12759
  }
12755
12760
  function Od(i, t) {
@@ -12793,7 +12798,7 @@ function lc(i, t) {
12793
12798
  if (!i.geometry)
12794
12799
  return null;
12795
12800
  const e = i.geometry.olcs_radius;
12796
- let s = Vl().readGeometry(i.geometry, t.formatOptions);
12801
+ let s = jl().readGeometry(i.geometry, t.formatOptions);
12797
12802
  if (i.radius && s instanceof Ve) {
12798
12803
  const o = s.getCoordinates();
12799
12804
  s = new bt(o, i.radius);
@@ -12854,17 +12859,17 @@ function Xr(i, t = {}, e = []) {
12854
12859
  } else if (s instanceof ht) {
12855
12860
  const l = s.getCoordinates();
12856
12861
  l.forEach((c) => {
12857
- tl(c);
12862
+ il(c);
12858
12863
  }), s = new ht(l, s.getLayout());
12859
12864
  } else if (s instanceof ks) {
12860
12865
  const l = s.getCoordinates();
12861
12866
  l.forEach((c) => {
12862
12867
  c.forEach((d) => {
12863
- tl(d);
12868
+ il(d);
12864
12869
  });
12865
12870
  }), s = new ks(l, s.getLayout());
12866
12871
  }
12867
- const n = Vl().writeGeometryObject(s, {
12872
+ const n = jl().writeGeometryObject(s, {
12868
12873
  featureProjection: rw,
12869
12874
  rightHanded: !0
12870
12875
  }), a = i.getProperties();
@@ -12889,10 +12894,10 @@ function q1(i, t) {
12889
12894
  return t != null && t.asObject ? r : JSON.stringify(r, void 0, t != null && t.prettyPrint ? 2 : void 0);
12890
12895
  }
12891
12896
  const hw = Xe();
12892
- function jl(i) {
12897
+ function $l(i) {
12893
12898
  i[Je] = hw;
12894
12899
  }
12895
- class nl {
12900
+ class al {
12896
12901
  /**
12897
12902
  * @param config
12898
12903
  */
@@ -12934,7 +12939,7 @@ function cw(i, t) {
12934
12939
  }
12935
12940
  t.vectorProperties && i.vectorProperties.setValues(t.vectorProperties), t.zIndex != null && (i.zIndex = t.zIndex);
12936
12941
  }
12937
- function bo(i, t, e, s) {
12942
+ function Po(i, t, e, s) {
12938
12943
  if (s == null ? t !== e : s !== t)
12939
12944
  throw new Error(`Cannot merge options, values of ${i} do not match`);
12940
12945
  }
@@ -12958,7 +12963,7 @@ class Bi extends Ut {
12958
12963
  h(this, "_moduleRemovedListener", () => {
12959
12964
  });
12960
12965
  const s = Bi.getDefaultConfig();
12961
- this.title = e.title || this.name, this._featureProperty = e.featureProperty || s.featureProperty, this._classRegistryName = e.classRegistryName, this._layerOptions = e.layerOptions || s.layerOptions, this._layer = null, this._featureProperty && (this._layer = new ct(this._layerOptions), jl(this._layer)), this._keyProperty = e.keyProperty || s.keyProperty, this.setCollection(new Ui(this._keyProperty));
12966
+ this.title = e.title || this.name, this._featureProperty = e.featureProperty || s.featureProperty, this._classRegistryName = e.classRegistryName, this._layerOptions = e.layerOptions || s.layerOptions, this._layer = null, this._featureProperty && (this._layer = new ct(this._layerOptions), $l(this._layer)), this._keyProperty = e.keyProperty || s.keyProperty, this.setCollection(new Ui(this._keyProperty));
12962
12967
  }
12963
12968
  static get className() {
12964
12969
  return "Category";
@@ -13031,7 +13036,7 @@ class Bi extends Ut {
13031
13036
  */
13032
13037
  mergeOptions(e) {
13033
13038
  const s = Bi.getDefaultConfig();
13034
- bo("classRegistryName", this._classRegistryName, s.classRegistryName, e.classRegistryName), bo("featureProperty", this._featureProperty, s.featureProperty, e.featureProperty), bo("keyProperty", this._keyProperty, s.keyProperty, e.keyProperty), this.title = e.title || this.title, e.layerOptions && this._layer && cw(this._layer, e.layerOptions);
13039
+ Po("classRegistryName", this._classRegistryName, s.classRegistryName, e.classRegistryName), Po("featureProperty", this._featureProperty, s.featureProperty, e.featureProperty), Po("keyProperty", this._keyProperty, s.keyProperty, e.keyProperty), this.title = e.title || this.title, e.layerOptions && this._layer && cw(this._layer, e.layerOptions);
13035
13040
  }
13036
13041
  /**
13037
13042
  * When setting the category, it MUST use the same uniqueKey as the previous collection (default is "name").
@@ -13045,7 +13050,7 @@ class Bi extends Ut {
13045
13050
  throw new Error("The collections key property does not match the categories key property");
13046
13051
  this._collectionListeners.forEach((s) => {
13047
13052
  s();
13048
- }), this._collection && yi(this._collection), this._layer && this._layer.removeAllFeatures(), this._collection = e[Jo] ? e : _i(e, this._getDynamicModuleId.bind(this), this._serializeItem.bind(this), this._deserializeItem.bind(this)), [...this.collection].forEach((s) => {
13053
+ }), this._collection && yi(this._collection), this._layer && this._layer.removeAllFeatures(), this._collection = e[Ko] ? e : _i(e, this._getDynamicModuleId.bind(this), this._serializeItem.bind(this), this._deserializeItem.bind(this)), [...this.collection].forEach((s) => {
13049
13054
  this._itemAdded(s);
13050
13055
  }), this._collectionListeners = [
13051
13056
  this._collection.added.addEventListener(this._itemAdded.bind(this)),
@@ -13243,7 +13248,7 @@ class js extends Ut {
13243
13248
  this.style = void 0, this.vectorProperties.destroy(), super.destroy();
13244
13249
  }
13245
13250
  }
13246
- class al extends js {
13251
+ class ol extends js {
13247
13252
  /**
13248
13253
  * @param layerName
13249
13254
  * @param options
@@ -13264,14 +13269,14 @@ class al extends js {
13264
13269
  this.tileProvider.destroy(), super.destroy();
13265
13270
  }
13266
13271
  }
13267
- Pl.registerClass(al.className, al);
13272
+ Ll.registerClass(ol.className, ol);
13268
13273
  var it;
13269
13274
  (function(i) {
13270
13275
  i.GEOGRAPHIC = "geographic", i.MERCATOR = "mercator";
13271
13276
  })(it || (it = {}));
13272
13277
  function bd(i) {
13273
13278
  const t = {};
13274
- return i.numberOfLevelZeroTilesX && i.numberOfLevelZeroTilesX > 1 && (t.numberOfLevelZeroTilesX = i.numberOfLevelZeroTilesX), i.numberOfLevelZeroTilesY && i.numberOfLevelZeroTilesY > 1 && (t.numberOfLevelZeroTilesY = i.numberOfLevelZeroTilesY), i.tilingSchema === it.MERCATOR ? new pl(t) : new Qc(t);
13279
+ return i.numberOfLevelZeroTilesX && i.numberOfLevelZeroTilesX > 1 && (t.numberOfLevelZeroTilesX = i.numberOfLevelZeroTilesX), i.numberOfLevelZeroTilesY && i.numberOfLevelZeroTilesY > 1 && (t.numberOfLevelZeroTilesY = i.numberOfLevelZeroTilesY), i.tilingSchema === it.MERCATOR ? new yl(t) : new Qc(t);
13275
13280
  }
13276
13281
  function fw(i, t, e, s = 0) {
13277
13282
  if (!i.isValid())
@@ -13279,7 +13284,7 @@ function fw(i, t, e, s = 0) {
13279
13284
  const r = i.getCoordinatesInProjection(de);
13280
13285
  r[1] < -85 && (r[1] = -85), r[3] > 85 && (r[3] = 85);
13281
13286
  const a = [
13282
- dl(r),
13287
+ fl(r),
13283
13288
  Ac(r),
13284
13289
  Dc(r),
13285
13290
  Ga(r)
@@ -13413,7 +13418,7 @@ function Pd(i, t) {
13413
13418
  return i === "geographic" ? t === "1.3.0" ? "CRS:84" : "EPSG:4326" : "EPSG:3857";
13414
13419
  }
13415
13420
  function Ld(i) {
13416
- const t = i.tilingSchema === "geographic" ? de : W, e = t.proj.getExtent(), s = Go(e), r = i.tilingSchema === it.GEOGRAPHIC ? s / (i.tileSize[0] * 2) : s / i.tileSize[0], n = i.maxLevel + 1, a = [];
13421
+ const t = i.tilingSchema === "geographic" ? de : W, e = t.proj.getExtent(), s = ko(e), r = i.tilingSchema === it.GEOGRAPHIC ? s / (i.tileSize[0] * 2) : s / i.tileSize[0], n = i.maxLevel + 1, a = [];
13417
13422
  for (let c = 0; c < n; ++c)
13418
13423
  a.push(r / 2 ** c);
13419
13424
  const o = {
@@ -13439,7 +13444,7 @@ function gw(i) {
13439
13444
  };
13440
13445
  return fi.contains(i.url) ? t.crossOrigin = "use-credentials" : gi(i.url) || (t.crossOrigin = "anonymous"), i.headers && (t.imageLoadFunction = function(s, r) {
13441
13446
  const n = s.getImage(), a = qt(r, i.headers);
13442
- Bl(r, a).then((o) => {
13447
+ Vl(r, a).then((o) => {
13443
13448
  n.src = o, n.onload = () => {
13444
13449
  URL.revokeObjectURL(o);
13445
13450
  };
@@ -13449,9 +13454,9 @@ function gw(i) {
13449
13454
  }), new ff(t);
13450
13455
  }
13451
13456
  const mw = {
13452
- GML: Ho,
13453
- GML2: ko,
13454
- GML3: Ho
13457
+ GML: Bo,
13458
+ GML2: zo,
13459
+ GML3: Bo
13455
13460
  }, pw = [
13456
13461
  "application/geojson",
13457
13462
  "application/json",
@@ -13460,10 +13465,10 @@ const mw = {
13460
13465
  ];
13461
13466
  function yw(i, t = {}) {
13462
13467
  if (i === "text/xml") {
13463
- const e = t.gmlFormat ? new mw[t.gmlFormat]() : new ko();
13464
- return new zo({ ...t, gmlFormat: e });
13468
+ const e = t.gmlFormat ? new mw[t.gmlFormat]() : new zo();
13469
+ return new Ho({ ...t, gmlFormat: e });
13465
13470
  }
13466
- return pw.includes(i) ? new zc(t) : i === "application/vnd.ogc.gml" ? new ko(t) : i === "application/vnd.ogc.gml/3.1.1" || i === "text/xml; subtype=gml/3.1.1" ? new Ho(t) : null;
13471
+ return pw.includes(i) ? new zc(t) : i === "application/vnd.ogc.gml" ? new zo(t) : i === "application/vnd.ogc.gml/3.1.1" || i === "text/xml; subtype=gml/3.1.1" ? new Bo(t) : null;
13467
13472
  }
13468
13473
  class ys extends js {
13469
13474
  constructor(e, s) {
@@ -13566,7 +13571,7 @@ class ys extends js {
13566
13571
  this._wmsSource = void 0, this.featureFormat = null, this.projection = void 0, this._formatOptions = void 0, super.destroy();
13567
13572
  }
13568
13573
  }
13569
- Pl.registerClass(ys.className, ys);
13574
+ Ll.registerClass(ys.className, ys);
13570
13575
  class ae {
13571
13576
  /**
13572
13577
  * @param [defaultActive=EventType.NONE] - A bitmask representing the default to listen to
@@ -13637,7 +13642,7 @@ class ae {
13637
13642
  destroy() {
13638
13643
  }
13639
13644
  }
13640
- class $l extends ae {
13645
+ class ql extends ae {
13641
13646
  constructor() {
13642
13647
  super(P.ALL, F.ALL, Ne.ALL);
13643
13648
  h(this, "_scratchCartographic", new ee());
@@ -13645,7 +13650,7 @@ class $l extends ae {
13645
13650
  this.setActive();
13646
13651
  }
13647
13652
  async pipe(e) {
13648
- return e.map.className === "CesiumMap" ? this._cesiumHandler(e) : e.map.className === "ObliqueMap" ? $l.obliqueHandler(e) : e;
13653
+ return e.map.className === "CesiumMap" ? this._cesiumHandler(e) : e.map.className === "ObliqueMap" ? ql.obliqueHandler(e) : e;
13649
13654
  }
13650
13655
  _cesiumHandler(e) {
13651
13656
  const r = e.map.getScene();
@@ -13833,7 +13838,7 @@ class ww {
13833
13838
  h(this, "exclusiveAdded");
13834
13839
  h(this, "_boundKeyListener");
13835
13840
  h(this, "_modifierChanged");
13836
- this._positionInteraction = new $l(), this._featureInteraction = new _w(), this._featureProviderInteraction = new vw(), this._interactionChain = new Cs([
13841
+ this._positionInteraction = new ql(), this._featureInteraction = new _w(), this._featureProviderInteraction = new vw(), this._interactionChain = new Cs([
13837
13842
  this._positionInteraction,
13838
13843
  this._featureInteraction,
13839
13844
  this._featureProviderInteraction
@@ -14122,7 +14127,7 @@ class ns extends es {
14122
14127
  let f = u.getProperty("id");
14123
14128
  f || (f = `${e.url}${d}`);
14124
14129
  let g = !0;
14125
- this.featureVisibility.highlightedObjects[f] && !this.featureVisibility.hasHighlightFeature(f, u) && (this.featureVisibility.addHighlightFeature(f, u), c.highlight.push([f, u]), g = !1), this.featureVisibility.hiddenObjects[f] && !this.featureVisibility.hasHiddenFeature(f, u) && (this.featureVisibility.addHiddenFeature(f, u), c.hideLocal.push([f, u])), (r = this.globalHider) != null && r.hiddenObjects[f] && !((n = this.globalHider) != null && n.hasFeature(f, u)) && ((a = this.globalHider) == null || a.addFeature(f, u), c.hideGlobal.push([f, u])), g && this._styleLastUpdated > (e[Gi] ?? 0) && u[Mi] && Tl(u);
14130
+ this.featureVisibility.highlightedObjects[f] && !this.featureVisibility.hasHighlightFeature(f, u) && (this.featureVisibility.addHighlightFeature(f, u), c.highlight.push([f, u]), g = !1), this.featureVisibility.hiddenObjects[f] && !this.featureVisibility.hasHiddenFeature(f, u) && (this.featureVisibility.addHiddenFeature(f, u), c.hideLocal.push([f, u])), (r = this.globalHider) != null && r.hiddenObjects[f] && !((n = this.globalHider) != null && n.hasFeature(f, u)) && ((a = this.globalHider) == null || a.addFeature(f, u), c.hideGlobal.push([f, u])), g && this._styleLastUpdated > (e[Gi] ?? 0) && u[Mi] && Al(u);
14126
14131
  }
14127
14132
  }
14128
14133
  (c.hideLocal.length > 0 || c.hideGlobal.length > 0 || c.highlight.length > 0) && (e[kn] = () => {
@@ -14251,8 +14256,8 @@ class Mw extends es {
14251
14256
  let f, g = 0;
14252
14257
  const m = () => {
14253
14258
  const y = r.getBoundingSphere(s, !0, o);
14254
- if (y !== ah.PENDING) {
14255
- if (y === ah.FAILED) {
14259
+ if (y !== oh.PENDING) {
14260
+ if (y === oh.FAILED) {
14256
14261
  g += 1, g > 3 && f();
14257
14262
  return;
14258
14263
  }
@@ -14414,7 +14419,7 @@ class bw extends er {
14414
14419
  const Ma = new Array(25);
14415
14420
  for (let i = 0; i < Ma.length; i++)
14416
14421
  Ma[i] = 200375083427892e-7 * 2 / 256 / 2 ** (i + 1);
14417
- function ql(i) {
14422
+ function Ul(i) {
14418
14423
  const t = Et.southwest(i), e = Et.northeast(i), s = [
14419
14424
  b.toDegrees(t.longitude),
14420
14425
  b.toDegrees(t.latitude)
@@ -14431,7 +14436,7 @@ class ut extends Ut {
14431
14436
  /**
14432
14437
  * Cesium Webmercator TilingScheme
14433
14438
  */
14434
- h(this, "tilingScheme", new pl());
14439
+ h(this, "tilingScheme", new yl());
14435
14440
  /**
14436
14441
  * sorted baseLevels, maximumLevel first example: [18,17,16]
14437
14442
  */
@@ -14525,7 +14530,7 @@ class ut extends Ut {
14525
14530
  const c = this.idProperty ? l.get(this.idProperty) : null;
14526
14531
  c != null && l.setId(String(c)), l.getId() || l.setId(Xe());
14527
14532
  });
14528
- const o = new rl(a.length);
14533
+ const o = new nl(a.length);
14529
14534
  return o.load(a.map((l) => {
14530
14535
  const c = l.getGeometry();
14531
14536
  if (c) {
@@ -14542,7 +14547,7 @@ class ut extends Ut {
14542
14547
  }).filter((l) => l)), this.tileLoadedEvent.raiseEvent({ tileId: r, rtree: o }), this._trackFeatures(a, r), this.rtreeCache.set(r, o), o;
14543
14548
  }).catch(() => {
14544
14549
  this.getLogger().warning(`Could not load Tile ${r}`);
14545
- const a = new rl();
14550
+ const a = new nl();
14546
14551
  return this.rtreeCache.set(r, a), a;
14547
14552
  });
14548
14553
  this.cache.get(s).set(r, n), this.cache.get(s).canExpireCache() && await Promise.all([
@@ -14603,7 +14608,7 @@ class ut extends Ut {
14603
14608
  async getFeaturesByCoordinate(e, s, r) {
14604
14609
  const n = mf(e);
14605
14610
  Gc(n, s, n);
14606
- const a = El(e), o = ee.fromDegrees(a[0], a[1]), l = this.getBaseLevelForResolution(s, o.latitude), c = await this._getRtreeForBaseTile(l, o, r);
14611
+ const a = Ol(e), o = ee.fromDegrees(a[0], a[1]), l = this.getBaseLevelForResolution(s, o.latitude), c = await this._getRtreeForBaseTile(l, o, r);
14607
14612
  return c ? c.search({
14608
14613
  minX: n[0],
14609
14614
  minY: n[1],
@@ -14626,7 +14631,7 @@ class ut extends Ut {
14626
14631
  if (r === l)
14627
14632
  return c.all().map((d) => d.value);
14628
14633
  {
14629
- const d = ql(a);
14634
+ const d = Ul(a);
14630
14635
  return c.search({
14631
14636
  minX: d[0],
14632
14637
  minY: d[1],
@@ -14829,13 +14834,13 @@ class Tw {
14829
14834
  h(this, "tileProvider");
14830
14835
  h(this, "_tilingScheme");
14831
14836
  h(this, "_tileSize");
14832
- h(this, "_errorEvent", new $o());
14837
+ h(this, "_errorEvent", new qo());
14833
14838
  h(this, "headers");
14834
14839
  h(this, "emptyCanvas");
14835
14840
  h(this, "minLevel", 0);
14836
14841
  h(this, "maxLevel", 26);
14837
14842
  h(this, "_reload");
14838
- this.tileProvider = t.tileProvider, this._tilingScheme = this.tileProvider.tilingScheme, this._tileSize = t.tileSize, this._errorEvent = new $o(), this.emptyCanvas = document.createElement("canvas"), this.emptyCanvas.width = this.tileWidth, this.emptyCanvas.height = this.tileHeight, this.headers = t.headers;
14843
+ this.tileProvider = t.tileProvider, this._tilingScheme = this.tileProvider.tilingScheme, this._tileSize = t.tileSize, this._errorEvent = new qo(), this.emptyCanvas = document.createElement("canvas"), this.emptyCanvas.width = this.tileWidth, this.emptyCanvas.height = this.tileHeight, this.headers = t.headers;
14839
14844
  }
14840
14845
  // eslint-disable-next-line class-methods-use-this
14841
14846
  get _ready() {
@@ -14895,7 +14900,7 @@ class Tw {
14895
14900
  const r = await this.tileProvider.getFeaturesForTile(t, e, s, this.headers);
14896
14901
  if (r.length === 0)
14897
14902
  return this.emptyCanvas;
14898
- const n = this.tileProvider.tilingScheme.tileXYToRectangle(t, e, s), a = ql(n), o = Et.center(n);
14903
+ const n = this.tileProvider.tilingScheme.tileXYToRectangle(t, e, s), a = Ul(n), o = Et.center(n);
14899
14904
  return Iw(r, a, o, this._tileSize);
14900
14905
  }
14901
14906
  }
@@ -14987,7 +14992,7 @@ class Dw extends er {
14987
14992
  const a = this.extent.getCoordinatesInProjection(de);
14988
14993
  a && (s.rectangle = Et.fromDegrees(a[0], a[1], a[2], a[3]));
14989
14994
  }
14990
- this.tilingSchema === "mercator" && (s.tilingScheme = new pl());
14995
+ this.tilingSchema === "mercator" && (s.tilingScheme = new yl());
14991
14996
  const r = new pg(s), n = this.getCesiumLayerOptions();
14992
14997
  return Promise.resolve(new vs(r, n));
14993
14998
  }
@@ -15162,7 +15167,7 @@ var _s;
15162
15167
  (function(i) {
15163
15168
  i[i.VECTOR = 0] = "VECTOR", i[i.CHILD = 1] = "CHILD", i[i.NO_DATA = 2] = "NO_DATA", i[i.DEBUG = 3] = "DEBUG";
15164
15169
  })(_s || (_s = {}));
15165
- function Ul(i, t) {
15170
+ function Wl(i, t) {
15166
15171
  const e = t.tileXYToRectangle(i.x, i.y, i.level);
15167
15172
  return [
15168
15173
  b.toDegrees(e.west),
@@ -15172,7 +15177,7 @@ function Ul(i, t) {
15172
15177
  ];
15173
15178
  }
15174
15179
  function Rw(i, t) {
15175
- const e = Ul(i, t), s = z.wgs84ToMercator([e[0], e[1]]), r = z.wgs84ToMercator([e[2], e[3]]);
15180
+ const e = Wl(i, t), s = z.wgs84ToMercator([e[0], e[1]]), r = z.wgs84ToMercator([e[2], e[3]]);
15176
15181
  return [s[0], s[1], r[0], r[1]];
15177
15182
  }
15178
15183
  function Xa(i, t) {
@@ -15201,7 +15206,7 @@ function Fw(i, t, e) {
15201
15206
  dataRange: [i, r > i ? r : i]
15202
15207
  };
15203
15208
  }
15204
- function ol(i) {
15209
+ function ll(i) {
15205
15210
  return `${i.level}/${i.x}/${i.y}`;
15206
15211
  }
15207
15212
  class Gw {
@@ -15220,9 +15225,9 @@ class Gw {
15220
15225
  set show(t) {
15221
15226
  }
15222
15227
  }
15223
- let Po;
15228
+ let Lo;
15224
15229
  function kw() {
15225
- return Po || (Po = new Gt({})), Po;
15230
+ return Lo || (Lo = new Gt({})), Lo;
15226
15231
  }
15227
15232
  class zw {
15228
15233
  constructor(t, e) {
@@ -15237,7 +15242,7 @@ class zw {
15237
15242
  h(this, "_tileProvider");
15238
15243
  h(this, "_style");
15239
15244
  h(this, "_layerPrimitiveCollection");
15240
- this._tile = t, this._map = e.map, this._tileProvider = e.tileProvider, this._style = e.style, this._layerPrimitiveCollection = e.primitiveCollection, this._vectorContext = new kl(this._map, this._rootCollection, we.NONE), this._rootCollection[J] = e.name, this._rootCollection.show = !1, this._layerPrimitiveCollection.add(this._rootCollection), this.tileBoundingRegion = Xa(t, this._map), this._load().catch(() => {
15245
+ this._tile = t, this._map = e.map, this._tileProvider = e.tileProvider, this._style = e.style, this._layerPrimitiveCollection = e.primitiveCollection, this._vectorContext = new zl(this._map, this._rootCollection, we.NONE), this._rootCollection[J] = e.name, this._rootCollection.show = !1, this._layerPrimitiveCollection.add(this._rootCollection), this.tileBoundingRegion = Xa(t, this._map), this._load().catch(() => {
15241
15246
  this.state = He.FAILED;
15242
15247
  });
15243
15248
  }
@@ -15245,7 +15250,7 @@ class zw {
15245
15250
  this.state = He.LOADING;
15246
15251
  const t = this._map.getScene();
15247
15252
  this.state = He.PROCESSING;
15248
- const e = Ul(this._tile, this._tileProvider.tilingScheme), s = new Fe({
15253
+ const e = Wl(this._tile, this._tileProvider.tilingScheme), s = new Fe({
15249
15254
  geometry: new Ve(z.wgs84ToMercator(cs(e))),
15250
15255
  olcs_altitudeMode: "relativeToGround",
15251
15256
  olcs_heightAboveGround: 5
@@ -15267,7 +15272,7 @@ class zw {
15267
15272
  this._rootCollection.show = t;
15268
15273
  }
15269
15274
  freeResources() {
15270
- he("VcsDebugTile").log(`freeing resources: ${ol(this._tile)}`), this.destroy();
15275
+ he("VcsDebugTile").log(`freeing resources: ${ll(this._tile)}`), this.destroy();
15271
15276
  }
15272
15277
  destroy() {
15273
15278
  this._vectorContext.destroy(), this._layerPrimitiveCollection.remove(this._rootCollection), this._tile.data = void 0;
@@ -15303,7 +15308,7 @@ class Bw {
15303
15308
  h(this, "_vectorProperties");
15304
15309
  h(this, "_layerPrimitiveCollection");
15305
15310
  h(this, "_isDestroyed");
15306
- this._tile = t, this._map = e.map, this._tileProvider = e.tileProvider, this._style = e.style, this._vectorProperties = e.vectorProperties, this._layerPrimitiveCollection = e.primitiveCollection, this._vectorContext = new kl(e.map, this._rootCollection, e.splitDirection), this._rootCollection[J] = e.name, this._rootCollection.show = !1, e.primitiveCollection.add(this._rootCollection), this.tileBoundingRegion = Xa(t, e.map), this._load().catch(() => {
15311
+ this._tile = t, this._map = e.map, this._tileProvider = e.tileProvider, this._style = e.style, this._vectorProperties = e.vectorProperties, this._layerPrimitiveCollection = e.primitiveCollection, this._vectorContext = new zl(e.map, this._rootCollection, e.splitDirection), this._rootCollection[J] = e.name, this._rootCollection.show = !1, e.primitiveCollection.add(this._rootCollection), this.tileBoundingRegion = Xa(t, e.map), this._load().catch(() => {
15307
15312
  this.state = He.FAILED;
15308
15313
  }), this._isDestroyed = !1;
15309
15314
  }
@@ -15343,7 +15348,7 @@ class jw {
15343
15348
  constructor(t, e, s) {
15344
15349
  h(this, "quadtree");
15345
15350
  h(this, "tilingScheme");
15346
- h(this, "errorEvent", new $o());
15351
+ h(this, "errorEvent", new qo());
15347
15352
  h(this, "_destroyed", !1);
15348
15353
  h(this, "_levelZeroMaximumError");
15349
15354
  h(this, "_tileOptions");
@@ -15373,7 +15378,7 @@ class jw {
15373
15378
  _withinDataRange(t) {
15374
15379
  if (t.level >= this._dataRange[0] && t.level <= this._dataRange[1]) {
15375
15380
  if (this._extentWgs84) {
15376
- const e = Ul(t, this.tilingScheme);
15381
+ const e = Wl(t, this.tilingScheme);
15377
15382
  return Hc(e, this._extentWgs84);
15378
15383
  }
15379
15384
  return !0;
@@ -15396,7 +15401,7 @@ class jw {
15396
15401
  endUpdate(t) {
15397
15402
  var e;
15398
15403
  (e = this.quadtree) == null || e.forEachLoadedTile((s) => {
15399
- s.data && (s.data.show = this._showingTiles.has(ol(s)));
15404
+ s.data && (s.data.show = this._showingTiles.has(ll(s)));
15400
15405
  }), this._showingTiles.clear();
15401
15406
  }
15402
15407
  getLevelMaximumGeometricError(t) {
@@ -15436,7 +15441,7 @@ class jw {
15436
15441
  let e = t;
15437
15442
  for (; ((s = e == null ? void 0 : e.data) == null ? void 0 : s.type) === _s.CHILD; )
15438
15443
  e = e.parent;
15439
- e != null && e.data && this._showingTiles.add(ol(e));
15444
+ e != null && e.data && this._showingTiles.add(ll(e));
15440
15445
  }
15441
15446
  computeDistanceToTile(t, e) {
15442
15447
  var s;
@@ -15991,7 +15996,7 @@ class Wi extends ct {
15991
15996
  this._twoDimStaticSource.getFeatures().forEach((a) => {
15992
15997
  if (a[yt]) {
15993
15998
  let o;
15994
- n ? (o = !0, a.setStyle(void 0)) : a.getStyle() !== a[yt].style && (o = !0, a.setStyle(a[yt].style)), o && Reflect.has(a, Mi) && Tl(a);
15999
+ n ? (o = !0, a.setStyle(void 0)) : a.getStyle() !== a[yt].style && (o = !0, a.setStyle(a[yt].style)), o && Reflect.has(a, Mi) && Al(a);
15995
16000
  }
15996
16001
  }), r && (this.changeTracker.track(), this.changeTracker.changed.raiseEvent());
15997
16002
  }
@@ -16083,7 +16088,7 @@ class Wi extends ct {
16083
16088
  }
16084
16089
  }
16085
16090
  ke.registerClass(Wi.className, Wi);
16086
- const Lo = Symbol("featureFromOptions");
16091
+ const Io = Symbol("featureFromOptions");
16087
16092
  class Jr extends ct {
16088
16093
  constructor(e) {
16089
16094
  const s = Jr.getDefaultOptions();
@@ -16110,7 +16115,7 @@ class Jr extends ct {
16110
16115
  }
16111
16116
  async reload() {
16112
16117
  if (this._dataFetchedPromise) {
16113
- const e = this.getFeatures().filter((s) => s[Lo]);
16118
+ const e = this.getFeatures().filter((s) => s[Io]);
16114
16119
  this.removeAllFeatures(), this.source.addFeatures(e), this._dataFetchedPromise = null, await this.fetchData();
16115
16120
  }
16116
16121
  return super.reload();
@@ -16125,7 +16130,7 @@ class Jr extends ct {
16125
16130
  type: "FeatureCollection",
16126
16131
  features: this._featuresToLoad
16127
16132
  }), this.getFeatures().forEach((e) => {
16128
- e[Lo] = !0;
16133
+ e[Io] = !0;
16129
16134
  }), this._featuresToLoad = void 0), this.url) {
16130
16135
  const e = qt(this.url, this.headers);
16131
16136
  this._dataFetchedPromise = ms(this.url, e).then((s) => this._parseGeojsonData(s)).catch((s) => (this.getLogger().warning(`Could not send request for loading layer content (${String(s)})`), Promise.reject(s)));
@@ -16148,7 +16153,7 @@ class Jr extends ct {
16148
16153
  if (this.projection.equals(r) ? delete e.projection : e.projection = this.projection.toJSON(), Array.isArray(this._featuresToLoad))
16149
16154
  e.features = this._featuresToLoad.slice();
16150
16155
  else {
16151
- const n = this.getFeatures().filter((a) => a[Lo]);
16156
+ const n = this.getFeatures().filter((a) => a[Io]);
16152
16157
  n.length > 0 && (e.features = n.map((a) => Xr(a, { writeStyle: !0, writeId: !0 })));
16153
16158
  }
16154
16159
  return e;
@@ -16309,7 +16314,7 @@ class Yw extends Sn {
16309
16314
  };
16310
16315
  return fi.contains(e.url) ? e.crossOrigin = "use-credentials" : gi(this.url) || (e.crossOrigin = "anonymous"), this.headers && (e.imageLoadFunction = (s, r) => {
16311
16316
  const n = qt(r, this.headers);
16312
- Bl(r, n).then((a) => {
16317
+ Vl(r, n).then((a) => {
16313
16318
  const o = s.getImage();
16314
16319
  o.src = a, o.onload = () => {
16315
16320
  URL.revokeObjectURL(a);
@@ -16502,8 +16507,8 @@ class Kw extends Sn {
16502
16507
  }
16503
16508
  getOLLayer() {
16504
16509
  const e = this.tilingSchema === it.GEOGRAPHIC ? de : W, s = e.proj.getExtent();
16505
- let r = Go(s) / this.tileSize[0];
16506
- this.numberOfLevelZeroTilesX > 1 && (r /= this.numberOfLevelZeroTilesX), this.tilingSchema === it.GEOGRAPHIC && (r = Go(s) / (this.tileSize[0] * 2));
16510
+ let r = ko(s) / this.tileSize[0];
16511
+ this.numberOfLevelZeroTilesX > 1 && (r /= this.numberOfLevelZeroTilesX), this.tilingSchema === it.GEOGRAPHIC && (r = ko(s) / (this.tileSize[0] * 2));
16507
16512
  const n = this.maxLevel + 1, a = new Array(n).fill(void 0).map((f, g) => r / 2 ** g), o = this.extent.getCoordinatesInProjection(e), l = {
16508
16513
  origin: Ga(s),
16509
16514
  extent: o,
@@ -16783,7 +16788,7 @@ class Pa extends ut {
16783
16788
  this.locale !== e && (super.locale = e, this.url.includes("{locale}") && this.clearCache());
16784
16789
  }
16785
16790
  async loader(e, s, r, n) {
16786
- const a = this.tilingScheme.tileXYToRectangle(e, s, r), o = Td(this.url, e, s, r, a, this.locale), l = ql(a), c = cs(l), d = qt(this.url, n), u = await kS(o, d), f = this._MVTFormat.readFeatures(u), g = (l[2] - l[0]) / 4096, m = -((l[3] - l[1]) / 4096);
16791
+ const a = this.tilingScheme.tileXYToRectangle(e, s, r), o = Td(this.url, e, s, r, a, this.locale), l = Ul(a), c = cs(l), d = qt(this.url, n), u = await kS(o, d), f = this._MVTFormat.readFeatures(u), g = (l[2] - l[0]) / 4096, m = -((l[3] - l[1]) / 4096);
16787
16792
  return f.forEach((p) => {
16788
16793
  const v = p.getGeometry().getFlatCoordinates(), w = v.length;
16789
16794
  for (let C = 0; C < w; C++)
@@ -16998,7 +17003,7 @@ class sn extends Li {
16998
17003
  async initialize() {
16999
17004
  this.initialized || (this._tileLoadEventListener = this.tileProvider.tileLoadedEvent.addEventListener((e) => this._handleTileLoaded(e)), this._vectorPropertiesChangedListener = this.vectorProperties.propertyChanged.addEventListener(() => {
17000
17005
  this.reload();
17001
- }), this._renderer === "image" && (this.featureProvider = new al(this.name, {
17006
+ }), this._renderer === "image" && (this.featureProvider = new ol(this.name, {
17002
17007
  // XXX this overwrites
17003
17008
  style: this.style,
17004
17009
  tileProvider: this.tileProvider,
@@ -17131,7 +17136,7 @@ class Ia extends ct {
17131
17136
  h(this, "getFeaturesOptions");
17132
17137
  h(this, "wfsFormat");
17133
17138
  h(this, "_dataFetchedPromise");
17134
- this.featureType = Array.isArray(e.featureType) ? e.featureType : [e.featureType], this.featureNS = e.featureNS, this.featurePrefix = e.featurePrefix, this.getFeaturesOptions = e.getFeatureOptions || {}, this.version = e.version, this.wfsFormat = new zo({
17139
+ this.featureType = Array.isArray(e.featureType) ? e.featureType : [e.featureType], this.featureNS = e.featureNS, this.featurePrefix = e.featurePrefix, this.getFeaturesOptions = e.getFeatureOptions || {}, this.version = e.version, this.wfsFormat = new Ho({
17135
17140
  featureNS: this.featureNS,
17136
17141
  featureType: this.featureType,
17137
17142
  version: this.version
@@ -17154,7 +17159,7 @@ class Ia extends ct {
17154
17159
  return this.initialized || await this.fetchData(), super.initialize();
17155
17160
  }
17156
17161
  async reload() {
17157
- return this.wfsFormat = new zo({
17162
+ return this.wfsFormat = new Ho({
17158
17163
  featureNS: this.featureNS,
17159
17164
  featureType: this.featureType,
17160
17165
  version: this.version
@@ -17363,7 +17368,7 @@ class nn extends Dt {
17363
17368
  }
17364
17369
  }
17365
17370
  ke.registerClass(nn.className, nn);
17366
- function Io() {
17371
+ function To() {
17367
17372
  return he("ClippingObject");
17368
17373
  }
17369
17374
  const zn = Symbol("ClippingObjectGlobe");
@@ -17447,7 +17452,7 @@ class Hn {
17447
17452
  });
17448
17453
  else {
17449
17454
  const n = this.layerNames.indexOf(t.name);
17450
- Io().warning(`layer ${t.name} cannot have a ClippingObject applied`), this.layerNames.splice(n, 1);
17455
+ To().warning(`layer ${t.name} cannot have a ClippingObject applied`), this.layerNames.splice(n, 1);
17451
17456
  }
17452
17457
  } else this.targets.has(t.name) && (this.targets.delete(t.name), this.targetsUpdated.raiseEvent());
17453
17458
  else if (this.entities.find((s) => s.layerName === t.name)) {
@@ -17455,7 +17460,7 @@ class Hn {
17455
17460
  const r = e.getVisualizationsForLayer(t), n = r ? [...r][0] : null;
17456
17461
  if (!n) {
17457
17462
  const a = this.layerNames.indexOf(t.name);
17458
- Io().warning(`layer ${t.name} cannot have a ClippingObject applied`), this.layerNames.splice(a, 1);
17463
+ To().warning(`layer ${t.name} cannot have a ClippingObject applied`), this.layerNames.splice(a, 1);
17459
17464
  return;
17460
17465
  }
17461
17466
  this.entities.filter((a) => a.layerName === t.name).forEach((a) => {
@@ -17466,7 +17471,7 @@ class Hn {
17466
17471
  this.targets.set(o, l), s = !0;
17467
17472
  else {
17468
17473
  const c = this.entities.indexOf(a);
17469
- Io().warning(`could not find entity with id ${a.entityId} in layer ${a.layerName}`), this.entities.splice(c, 1);
17474
+ To().warning(`could not find entity with id ${a.entityId} in layer ${a.layerName}`), this.entities.splice(c, 1);
17470
17475
  }
17471
17476
  } else this.targets.has(o) && (this.targets.delete(o), s = !0);
17472
17477
  }), s && this.targetsUpdated.raiseEvent();
@@ -17574,7 +17579,7 @@ function Z1(i, t = {}, e = void 0) {
17574
17579
  const a = Wt(r);
17575
17580
  if (a.length < 2 || a[0][0] === a[1][0] && a[0][1] === a[1][1])
17576
17581
  return null;
17577
- n === "Polygon" ? (tl(a), bv(a)) : n === "LineString" && a.length === 2 && t.createEndingPlanes && s.push(...rC(a)), t.createVerticalPlanes && s.push(...sC(a)), i.get("olcs_altitudeMode") === "absolute" && (t.createBottomPlane || t.createTopPlane) && s.push(...dc(i, a, t));
17582
+ n === "Polygon" ? (il(a), bv(a)) : n === "LineString" && a.length === 2 && t.createEndingPlanes && s.push(...rC(a)), t.createVerticalPlanes && s.push(...sC(a)), i.get("olcs_altitudeMode") === "absolute" && (t.createBottomPlane || t.createTopPlane) && s.push(...dc(i, a, t));
17578
17583
  }
17579
17584
  return e && s.forEach((a) => {
17580
17585
  const o = oe.transform(a, e);
@@ -17939,12 +17944,12 @@ class Ta {
17939
17944
  }), this.qualityLevelChanged.destroy();
17940
17945
  }
17941
17946
  }
17942
- const Wl = Symbol("alreadySnapped");
17947
+ const Yl = Symbol("alreadySnapped");
17943
17948
  var $s;
17944
17949
  (function(i) {
17945
17950
  i.CREATE = "create", i.EDIT_GEOMETRY = "editGeometry", i.EDIT_FEATURES = "editFeatures", i.SELECT = "selectFeatures";
17946
17951
  })($s || ($s = {}));
17947
- function Yl(i) {
17952
+ function Xl(i) {
17948
17953
  const t = new ct({
17949
17954
  projection: W.toJSON(),
17950
17955
  vectorProperties: {
@@ -17974,7 +17979,7 @@ function Yl(i) {
17974
17979
  }
17975
17980
  }
17976
17981
  });
17977
- return jl(t), i.add(t), t.activate(), t;
17982
+ return $l(t), i.add(t), t.activate(), t;
17978
17983
  }
17979
17984
  function Ja(i, t) {
17980
17985
  const e = new Cs(), s = new L(), r = i.addExclusiveInteraction(e, () => {
@@ -18161,7 +18166,7 @@ async function gC(i, t) {
18161
18166
  const s = e.clone();
18162
18167
  s.heading = 0, s.pitch = -90, e && !e.equals(s) && (t.fixedNorthOrientation && (e.heading = 0), e.pitch = -90, e.animate = !0, e.duration = 1, e.groundPosition && (e.cameraPosition = null), await i.gotoViewpoint(e));
18163
18168
  }
18164
- class Xl extends jt {
18169
+ class Zl extends jt {
18165
18170
  constructor() {
18166
18171
  super();
18167
18172
  h(this, "_activeMap", null);
@@ -18216,7 +18221,7 @@ class Xl extends jt {
18216
18221
  * Creates a MapCollection from an iterable of maps, such as an Array.
18217
18222
  */
18218
18223
  static from(e) {
18219
- const s = new Xl();
18224
+ const s = new Zl();
18220
18225
  if (e)
18221
18226
  for (const r of e)
18222
18227
  s.add(r);
@@ -18943,9 +18948,9 @@ class kd {
18943
18948
  h(this, "_categoryItemClassRegistry");
18944
18949
  h(this, "_tileProviderClassRegistry");
18945
18950
  h(this, "_featureProviderClassRegistry");
18946
- this._id = (t == null ? void 0 : t._id) || Xe(), this.name = t.name ?? this._id, this.description = t.description, this.properties = t.properties, this._defaultDynamicModule = new nl({ _id: MC }), this._dynamicModule = this._defaultDynamicModule;
18951
+ this._id = (t == null ? void 0 : t._id) || Xe(), this.name = t.name ?? this._id, this.description = t.description, this.properties = t.properties, this._defaultDynamicModule = new al({ _id: MC }), this._dynamicModule = this._defaultDynamicModule;
18947
18952
  const e = () => this._dynamicModule._id;
18948
- this._dynamicModuleIdChanged = new L(), this._locale = mC(), this._localeChanged = new L(), this._mapClassRegistry = new pi(Ks), this._maps = _i(new Xl(), e, void 0, dv.bind(null, this), ci), this._layerClassRegistry = new pi(ke), this._layers = _i(this._maps.layerCollection, e, mv.bind(null, this), gv.bind(null, this), st, pv), this._layers.locale = this.locale, this._obliqueCollections = _i(new jt(), e, void 0, (s) => new ps(s), ps), this._viewpoints = _i(new jt(), e, void 0, fv, It), this._styleClassRegistry = new pi(mn), this._styles = _i(new jt(), e, void 0, (s) => ei(this._styleClassRegistry, s), li), this._modules = new Ui("_id"), this._modules.add(this._dynamicModule), this._hiddenObjects = pC(e, this._layers.globalHider), this._flights = _i(new CC(this), e, void 0, (s) => new qs(s)), this._categoryClassRegistry = new pi(Iu), this._categories = new uw(this), this._displayQuality = new Ta(this), this._destroyed = new L(), this._moduleMutationChain = { running: !1, items: [] }, this._categoryItemClassRegistry = new pi(new Qi()), this._tileProviderClassRegistry = new pi(Js), this._featureProviderClassRegistry = new pi(Pl), Da.set(this._id, this);
18953
+ this._dynamicModuleIdChanged = new L(), this._locale = mC(), this._localeChanged = new L(), this._mapClassRegistry = new pi(Ks), this._maps = _i(new Zl(), e, void 0, dv.bind(null, this), ci), this._layerClassRegistry = new pi(ke), this._layers = _i(this._maps.layerCollection, e, mv.bind(null, this), gv.bind(null, this), st, pv), this._layers.locale = this.locale, this._obliqueCollections = _i(new jt(), e, void 0, (s) => new ps(s), ps), this._viewpoints = _i(new jt(), e, void 0, fv, It), this._styleClassRegistry = new pi(mn), this._styles = _i(new jt(), e, void 0, (s) => ei(this._styleClassRegistry, s), li), this._modules = new Ui("_id"), this._modules.add(this._dynamicModule), this._hiddenObjects = pC(e, this._layers.globalHider), this._flights = _i(new CC(this), e, void 0, (s) => new qs(s)), this._categoryClassRegistry = new pi(Iu), this._categories = new uw(this), this._displayQuality = new Ta(this), this._destroyed = new L(), this._moduleMutationChain = { running: !1, items: [] }, this._categoryItemClassRegistry = new pi(new Qi()), this._tileProviderClassRegistry = new pi(Js), this._featureProviderClassRegistry = new pi(Ll), Da.set(this._id, this);
18949
18954
  }
18950
18955
  get id() {
18951
18956
  return this._id;
@@ -19064,7 +19069,7 @@ class kd {
19064
19069
  * @param module
19065
19070
  */
19066
19071
  async addModule(t) {
19067
- S(t, nl);
19072
+ S(t, al);
19068
19073
  const e = async () => {
19069
19074
  try {
19070
19075
  if (this._modules.hasKey(t._id)) {
@@ -19164,14 +19169,14 @@ function sM(i) {
19164
19169
  }
19165
19170
  window.vcs = window.vcs || {};
19166
19171
  window.vcs.apps = Da;
19167
- window.vcs.createModuleFromConfig = (i) => new nl(i);
19172
+ window.vcs.createModuleFromConfig = (i) => new al(i);
19168
19173
  function zd(i) {
19169
19174
  if (!i)
19170
19175
  return !1;
19171
19176
  const t = i.getType();
19172
- return t === "LineString" ? Fl(i) : t === "Polygon" ? Ku(i) : t === "Point" ? nd(i) : t === "Circle" ? td(i) : !1;
19177
+ return t === "LineString" ? Gl(i) : t === "Polygon" ? Ku(i) : t === "Point" ? nd(i) : t === "Circle" ? td(i) : !1;
19173
19178
  }
19174
- const Zl = Symbol("Vertex"), wn = Symbol("VertexIndex"), Te = Symbol("Handler"), Oi = Symbol("MouseOver"), Jl = [
19179
+ const Jl = Symbol("Vertex"), wn = Symbol("VertexIndex"), Te = Symbol("Handler"), Oi = Symbol("MouseOver"), Kl = [
19175
19180
  "olcs_altitudeMode",
19176
19181
  "olcs_groundLevel",
19177
19182
  "olcs_heightAboveGround"
@@ -19194,7 +19199,7 @@ function Hd(i, t, e) {
19194
19199
  }
19195
19200
  function tr(i) {
19196
19201
  const t = {};
19197
- return Jl.forEach((e) => {
19202
+ return Kl.forEach((e) => {
19198
19203
  const s = i.get(e);
19199
19204
  s != null && (t[e] = s);
19200
19205
  }), t;
@@ -19206,10 +19211,10 @@ function ir(i, t, e) {
19206
19211
  geometry: s,
19207
19212
  ...t
19208
19213
  });
19209
- return r[Zl] = !0, r[wn] = e, r[_n] = !0, r[pe] = !0, r;
19214
+ return r[Jl] = !0, r[wn] = e, r[_n] = !0, r[pe] = !0, r;
19210
19215
  }
19211
19216
  function Cn(i) {
19212
- return i instanceof ue && !!i[Zl];
19217
+ return i instanceof ue && !!i[Jl];
19213
19218
  }
19214
19219
  function Mn(i) {
19215
19220
  let t = !1;
@@ -19228,7 +19233,7 @@ function Mn(i) {
19228
19233
  layout: t ? "XY" : "XYZ"
19229
19234
  };
19230
19235
  }
19231
- let Me = new H(), Kt = new H(), To = new H(), ot = new _(), De = new _(), Ao = new _();
19236
+ let Me = new H(), Kt = new H(), Ao = new H(), ot = new _(), De = new _(), Do = new _();
19232
19237
  function an(i, t, e) {
19233
19238
  Me = H.fromElements(t[0] - i[0], t[1] - i[1], Me), Me.equals(H.ZERO) && (Me = H.fromElements(1, 1, Me)), Me = H.normalize(Me, Me), Kt = H.fromElements(e[0] - i[0], e[1] - i[1], Kt);
19234
19239
  const s = H.dot(Me, Kt);
@@ -19239,14 +19244,14 @@ function an(i, t, e) {
19239
19244
  ];
19240
19245
  }
19241
19246
  function xC(i, t, e, s) {
19242
- ot = _.fromElements(t[0] - i[0], t[1] - i[1], t[2] - i[2], ot), De = _.fromElements(e[0] - i[0], e[1] - i[1], e[2] - i[2], De), Ao = _.fromElements(e[0] - t[0], e[1] - t[1], e[2] - e[2], Ao);
19247
+ ot = _.fromElements(t[0] - i[0], t[1] - i[1], t[2] - i[2], ot), De = _.fromElements(e[0] - i[0], e[1] - i[1], e[2] - i[2], De), Do = _.fromElements(e[0] - t[0], e[1] - t[1], e[2] - e[2], Do);
19243
19248
  const r = _.magnitude(ot);
19244
- return r < _.magnitude(De) || r < _.magnitude(Ao) ? !1 : (ot = _.normalize(ot, ot), De = _.normalize(De, De), ot.equalsEpsilon(De, s || b.EPSILON5));
19249
+ return r < _.magnitude(De) || r < _.magnitude(Do) ? !1 : (ot = _.normalize(ot, ot), De = _.normalize(De, De), ot.equalsEpsilon(De, s || b.EPSILON5));
19245
19250
  }
19246
19251
  function EC(i, t, e, s) {
19247
- Me = H.fromElements(t[0] - i[0], t[1] - i[1], Me), Kt = H.fromElements(e[0] - i[0], e[1] - i[1], Kt), To = H.fromElements(e[0] - t[0], e[1] - t[1], To);
19252
+ Me = H.fromElements(t[0] - i[0], t[1] - i[1], Me), Kt = H.fromElements(e[0] - i[0], e[1] - i[1], Kt), Ao = H.fromElements(e[0] - t[0], e[1] - t[1], Ao);
19248
19253
  const r = H.magnitude(Me);
19249
- return r < H.magnitude(Kt) || r < H.magnitude(To) ? !1 : (Me = H.normalize(Me, Me), Kt = H.normalize(Kt, Kt), Me.equalsEpsilon(Kt, s || b.EPSILON5));
19254
+ return r < H.magnitude(Kt) || r < H.magnitude(Ao) ? !1 : (Me = H.normalize(Me, Me), Kt = H.normalize(Kt, Kt), Me.equalsEpsilon(Kt, s || b.EPSILON5));
19250
19255
  }
19251
19256
  function Bd(i, t) {
19252
19257
  return ot = wt(i, ot), De = t.globe.ellipsoid.geodeticSurfaceNormal(ot, De), De = _.cross(t.camera.rightWC, De, De), De = _.normalize(De, De), oe.fromPointNormal(ot, De);
@@ -19334,32 +19339,32 @@ class bC extends ae {
19334
19339
  }
19335
19340
  }
19336
19341
  const Ka = ["orthogonal", "parallel", "vertex", "edge"];
19337
- let Do = new H(), Xt = new H();
19342
+ let No = new H(), Xt = new H();
19338
19343
  const PC = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABkCAYAAAA2VDb+AAACmElEQVR4Xu2a3zHFQBjFz60AFeDNGypABcaTVzqgAlSADuiACuiADtCBDpgzk525Yyb5cpNNzibOvt652f1+3/n+bbIA8IP6tWj4bRY/0UADsAIcArUEnANmkemCGHcSdBJ0EnQSrCPgKuAqMHMCngU8DHka9DjsVtitsFtht8JuhWsIeBaYeScMt8Juhd0KuxV2K+xWuJ7ANoDPOZfCqAzSdgJ4AvAK4HluMNoA+GszYdxXQCbPowuAZDRBXE49RPoASCAeANxMFUQOAAnEXaWISYVFTgA0nInyBMD3VCjkBpCqBiG8TwHCEACS3ecAmB+KXhGAfQCHAM4A7HawhOXyosP/RvtLBGD5RoggrgEcrHi6opWwCoBkdxcQxULoAiCBoLRvW6qBVeGoxMTYBwBtpxrYEa61AFEkhL4AaPdWBaFNkuRgxQmzmJUDAI1Zr5qgNhDYNjOZFrFyAVgFAkOB5bWIe4acAFI4sAOMcgLzBrtF+coNgAbtVeEQQWBV4OwgXUMAoEGM8avAsiIS4lAAaDsN3AwgMBdIh6YhAbBHeAkAyGeFIQHQdia74wYI8jAYGgAT4lugAlYDgpKsoQG0yQWP1bg9WwBRRWBjtCGxHhjl+wDOCh+BgQQguUccIwRoO0td05wga4rGAhBVA75g4bX66GssAFEekPUDEQCOrjnWDoDThgd9qW6QIwA5jC/6GQYQfCVWtPdyHM4KsAKavxPMobKin8EQKOaGVkFq+d2fYn/5ngYgd4H4AFaA2AHy7a0AuQvEB7ACxA6Qb28FyF0gPoAVIHaAfHsrQO4C8QGsALED5NtbAXIXiA9gBYgdIN/eCpC7QHwAK0DsAPn2VoDcBeIDWAFiB8i3twLkLhAf4N8r4Bch+4Nf5+N6mQAAAABJRU5ErkJggg==";
19339
- let No;
19344
+ let Ro;
19340
19345
  function LC() {
19341
- return No || (No = new K({
19346
+ return Ro || (Ro = new K({
19342
19347
  image: new ni({
19343
19348
  src: PC,
19344
19349
  scale: 0.25,
19345
19350
  anchor: [0.5, 1]
19346
19351
  })
19347
- })), No;
19352
+ })), Ro;
19348
19353
  }
19349
19354
  const IC = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEwAACxMBAJqcGAAAAd1JREFUeJzt00EKwkAQRcFEPGyOpKfVE/iyiDIzWLVv+DS8bQMAAAAAAAAAAAAAAAAAAAAAAAAAAID/so8esIDj4v3jKys+m33f0gRy7nXx/tc/nn3f0m6jB8DMBAJBIBAEAkEgEAQCQSAQBAJBIBAEAkEgEAQCQSAQBAJBIBAEAkEgEAQCQSAQBAJBIBAEAkEgEAQCQSAQBAJBIBAEAkEgEAQCQSAQBAJBIBAEAkEgEAQCQSAQBAJBIBAEAkEgEAQCQSAQBAJBIBAEAkEgEAQCQSAQBAJBIBAEAkEgEAQCQSAQBAJBIBAEAkEgEAQCQSAQBAJBIBAEAkEgEAQCQSAQBAJBIBAEAkEgEAQCQSAQBAJBIBAEAkEgEAQCQSAQBAJBIBAEAkEgEAQCQSAQBAJBIBAEAkEgEAQCQSAQBAJBIBAEAkEgEAQCQSAQBAJBIBAEAkEgEAQCQSAQBAJBIBAEAkEgEAQCQSAQBAJBIBAEAkEgEAQCQSAQBAJBIBAEAkEgEAQCQSAQBAJBIBAEAkEgEAQCQSAQBAJBIBAEAkEgEAQCQSAQBAJBIBAEAkEgEAQCQSAQBAJBIBDuowcs4Dl6wInZ9wEAAAAAAAAAAAAAAAAAAAAAAAAAAAALeQNcNQZTV+qErgAAAABJRU5ErkJggg==";
19350
- let Ro;
19355
+ let Fo;
19351
19356
  function TC() {
19352
- return Ro || (Ro = new K({
19357
+ return Fo || (Fo = new K({
19353
19358
  image: new ni({
19354
19359
  src: IC,
19355
19360
  scale: 0.1,
19356
19361
  anchor: [0.5, 1]
19357
19362
  })
19358
- })), Ro;
19363
+ })), Fo;
19359
19364
  }
19360
- let Fo;
19365
+ let Go;
19361
19366
  function AC() {
19362
- return Fo || (Fo = new K({
19367
+ return Go || (Go = new K({
19363
19368
  image: new Us({
19364
19369
  radius: 6,
19365
19370
  points: 4,
@@ -19371,13 +19376,13 @@ function AC() {
19371
19376
  width: 1
19372
19377
  })
19373
19378
  })
19374
- })), Fo;
19379
+ })), Go;
19375
19380
  }
19376
19381
  const Ft = b.toRadians(5);
19377
19382
  function DC(i, t, e) {
19378
- Do = H.fromElements(t[0] - i[0], t[1] - i[1], Do);
19379
- const s = oh.fromArray([0, 1, -1, 0]);
19380
- Xt = oh.multiplyByVector(s, Do, Xt), Xt = H.normalize(Xt, Xt), Xt = H.multiplyByScalar(Xt, 1e-4, Xt);
19383
+ No = H.fromElements(t[0] - i[0], t[1] - i[1], No);
19384
+ const s = lh.fromArray([0, 1, -1, 0]);
19385
+ Xt = lh.multiplyByVector(s, No, Xt), Xt = H.normalize(Xt, Xt), Xt = H.multiplyByScalar(Xt, 1e-4, Xt);
19381
19386
  const r = [
19382
19387
  Xt.x + t[0],
19383
19388
  Xt.y + t[1],
@@ -19437,7 +19442,7 @@ function ki(i, t, e, s, r, n, a = !0, o = !0, l = Y.CLAMP_TO_GROUND) {
19437
19442
  if (c != null && c.snapped && d(c.snapped, i) <= n)
19438
19443
  return c;
19439
19444
  }
19440
- function Kl(i, t, e, s = !0, r = !0, n = Y.CLAMP_TO_GROUND) {
19445
+ function Ql(i, t, e, s = !0, r = !0, n = Y.CLAMP_TO_GROUND) {
19441
19446
  let a = 1 / 0, o;
19442
19447
  const l = t.length === 2 || Ot(n) ? oi : Ou;
19443
19448
  return s && i.forEach((c) => {
@@ -19459,7 +19464,7 @@ function Kl(i, t, e, s = !0, r = !0, n = Y.CLAMP_TO_GROUND) {
19459
19464
  });
19460
19465
  })), o;
19461
19466
  }
19462
- function Ql(i, t, e) {
19467
+ function eh(i, t, e) {
19463
19468
  const s = i.map((r) => {
19464
19469
  let n;
19465
19470
  if ((r == null ? void 0 : r.type) === "orthogonal" && r.otherVertexIndex > -1)
@@ -19580,14 +19585,14 @@ class zC extends ae {
19580
19585
  var s, r, n;
19581
19586
  if ((s = this._removeFeatures) == null || s.call(this), e.type === P.CLICK && ((r = e.chainEnded) == null || r.addEventListener(() => {
19582
19587
  this._coordinatesDirty = !0;
19583
- })), !e[Wl] && e.key !== F.CTRL && this._coordinates.length >= 3) {
19588
+ })), !e[Yl] && e.key !== F.CTRL && this._coordinates.length >= 3) {
19584
19589
  const a = new Array(2), o = (e.map.getCurrentResolution(e.positionOrPixel) * 12) ** 2;
19585
- if (this._snappingGeometry && (a[0] = Kl([this._snappingGeometry], e.positionOrPixel, o, this._snapToVertex, this._snapToEdge, this._scratchLayer.vectorProperties.altitudeMode)), !a[0] && (this._snapOrthogonal || this._snapParallel) && (a[0] = ki(e.positionOrPixel, this._coordinates.at(-2), this._coordinates.at(-3), this._bearings, this._coordinates.length - 2, o, this._snapOrthogonal, this._snapParallel, this._scratchLayer.vectorProperties.altitudeMode), this._isPolygon)) {
19590
+ if (this._snappingGeometry && (a[0] = Ql([this._snappingGeometry], e.positionOrPixel, o, this._snapToVertex, this._snapToEdge, this._scratchLayer.vectorProperties.altitudeMode)), !a[0] && (this._snapOrthogonal || this._snapParallel) && (a[0] = ki(e.positionOrPixel, this._coordinates.at(-2), this._coordinates.at(-3), this._bearings, this._coordinates.length - 2, o, this._snapOrthogonal, this._snapParallel, this._scratchLayer.vectorProperties.altitudeMode), this._isPolygon)) {
19586
19591
  const c = ((n = a[0]) == null ? void 0 : n.snapped) ?? e.positionOrPixel;
19587
19592
  a[1] = ki(c, this._coordinates.at(0), this._coordinates.at(1), this._bearings, 0, o, this._snapOrthogonal, this._snapParallel, this._scratchLayer.vectorProperties.altitudeMode);
19588
19593
  }
19589
19594
  const l = Vd(a, this._coordinates, o);
19590
- l && (e.positionOrPixel.length > l.length ? l[2] = e.positionOrPixel[2] : e.positionOrPixel.length < l.length && l.pop(), e.positionOrPixel = l, this._removeFeatures = Ql(a, this._coordinates, this._scratchLayer));
19595
+ l && (e.positionOrPixel.length > l.length ? l[2] = e.positionOrPixel[2] : e.positionOrPixel.length < l.length && l.pop(), e.positionOrPixel = l, this._removeFeatures = eh(a, this._coordinates, this._scratchLayer));
19591
19596
  }
19592
19597
  return Promise.resolve(e);
19593
19598
  }
@@ -19628,10 +19633,10 @@ class jd extends ae {
19628
19633
  }).filter((d) => {
19629
19634
  const u = d[$r] ?? d;
19630
19635
  return this._filter(u);
19631
- }).map((d) => d.getGeometry()), c = Kl(l, r, a, this._snapToVertex, this._snapToEdge, this._scratchLayer.vectorProperties.altitudeMode);
19636
+ }).map((d) => d.getGeometry()), c = Ql(l, r, a, this._snapToVertex, this._snapToEdge, this._scratchLayer.vectorProperties.altitudeMode);
19632
19637
  if (c) {
19633
19638
  const d = c.snapped;
19634
- r.length > d.length ? d[2] = r[2] : r.length < d.length && d.pop(), e.positionOrPixel = d, e[Wl] = !0, this._removeFeatures = Ql([c], [c.snapped], this._scratchLayer);
19639
+ r.length > d.length ? d[2] = r[2] : r.length < d.length && d.pop(), e.positionOrPixel = d, e[Yl] = !0, this._removeFeatures = eh([c], [c.snapped], this._scratchLayer);
19635
19640
  }
19636
19641
  }
19637
19642
  return Promise.resolve(e);
@@ -19752,7 +19757,7 @@ function oM(i, t, e, s, r) {
19752
19757
  var Z, Ce;
19753
19758
  S(i, kd), S(t, ct), S(e, aa(Le));
19754
19759
  let n = ((Z = r == null ? void 0 : r.snapTo) == null ? void 0 : Z.slice()) ?? Ka.slice();
19755
- const a = !(r != null && r.hideSegmentLength), { interactionChain: o, removed: l, destroy: c } = Ja(i.maps.eventHandler), d = Yl(i.layers), u = new L(), f = new L(), g = new L();
19760
+ const a = !(r != null && r.hideSegmentLength), { interactionChain: o, removed: l, destroy: c } = Ja(i.maps.eventHandler), d = Xl(i.layers), u = new L(), f = new L(), g = new L();
19756
19761
  let m = !1, p = null, y = null, v = null, w = null, C = null, x = ((Ce = r == null ? void 0 : r.initialSnapToLayers) == null ? void 0 : Ce.slice()) ?? [
19757
19762
  t
19758
19763
  ], E = !1, I = s;
@@ -20011,7 +20016,7 @@ function YC(i, t, e, s, r) {
20011
20016
  function Zt(i, t, e, s = !1) {
20012
20017
  let r, n, a;
20013
20018
  i === M.X ? (r = new _(1, b.EPSILON8, 0), n = U.RED, a = G.fromRotationTranslation(Q.fromRotationY(Math.PI / 2), new _(1, 0, 0))) : i === M.Y ? (r = new _(b.EPSILON8, 1, 0), n = U.GREEN, a = G.fromRotationTranslation(Q.multiply(Q.fromRotationY(Math.PI / 2), Q.fromRotationX(-(Math.PI / 2)), new Q()), new _(0, 1, 0))) : (r = new _(b.EPSILON8, b.EPSILON8, 1), n = U.BLUE, a = G.fromRotationTranslation(Q.IDENTITY.clone(), new _(0, 0, 1))), n = s ? En : n;
20014
- const o = e === me.SCALE ? new ml({
20019
+ const o = e === me.SCALE ? new pl({
20015
20020
  minimum: new _(-0.1, -0.1, -0.1),
20016
20021
  maximum: new _(0.1, 0.1, 0.1)
20017
20022
  }) : new Vc({
@@ -20067,7 +20072,7 @@ function is(i, t, e = !1) {
20067
20072
  geometryInstances: [
20068
20073
  new Ze({
20069
20074
  geometry: new bg({
20070
- polygonHierarchy: new Vo(s)
20075
+ polygonHierarchy: new jo(s)
20071
20076
  })
20072
20077
  })
20073
20078
  ],
@@ -20076,13 +20081,13 @@ function is(i, t, e = !1) {
20076
20081
  });
20077
20082
  return e || (n[Te] = i), n;
20078
20083
  }
20079
- function ll(i, t = !1) {
20084
+ function hl(i, t = !1) {
20080
20085
  const e = t ? En : U.GAINSBORO, s = new St({
20081
20086
  allowPicking: !t,
20082
20087
  asynchronous: !1,
20083
20088
  geometryInstances: [
20084
20089
  new Ze({
20085
- geometry: new ml({
20090
+ geometry: new pl({
20086
20091
  minimum: new _(0.2, 0.2, 0.2),
20087
20092
  maximum: new _(0.4, 0.4, 0.4)
20088
20093
  })
@@ -20098,7 +20103,7 @@ function XC(i) {
20098
20103
  return (e, s, r) => {
20099
20104
  t && (i.remove(t), t = void 0), e !== M.NONE && (t = new $t(), Na(e) ? Zt(e, s, r, !0).forEach((n) => {
20100
20105
  t.add(n);
20101
- }) : Ra(e) ? t.add(is(e, s, !0)) : $C(e) && t.add(ll(s, !0)), i.add(t));
20106
+ }) : Ra(e) ? t.add(is(e, s, !0)) : $C(e) && t.add(hl(s, !0)), i.add(t));
20102
20107
  };
20103
20108
  }
20104
20109
  function ZC(i, t) {
@@ -20121,7 +20126,7 @@ function ZC(i, t) {
20121
20126
  ...Zt(M.X, s, t),
20122
20127
  ...Zt(M.Y, s, t)
20123
20128
  ];
20124
- r.push(...Zt(M.Z, s, t), ll(s)), g.push(...r), g.forEach((m) => {
20129
+ r.push(...Zt(M.Z, s, t), hl(s)), g.push(...r), g.forEach((m) => {
20125
20130
  Sr(m), e.add(m);
20126
20131
  });
20127
20132
  } else t === me.EXTRUDE && Zt(M.Z, s, t).forEach((g) => {
@@ -20162,7 +20167,7 @@ function ZC(i, t) {
20162
20167
  set greyOutZ(g) {
20163
20168
  g !== f && (f = g, r.forEach((m) => {
20164
20169
  e.remove(m);
20165
- }), r.splice(0), t === me.TRANSLATE ? r.push(...Zt(M.Z, s, t, g), is(M.XZ, s, g), is(M.YZ, s, g)) : t === me.ROTATE ? g || r.push(cr(M.X, s, g), cr(M.Y, s, g)) : t === me.SCALE && (g ? r.push(is(M.XY, s)) : r.push(...Zt(M.Z, s, t, g), ll(s))), r.forEach((m) => {
20170
+ }), r.splice(0), t === me.TRANSLATE ? r.push(...Zt(M.Z, s, t, g), is(M.XZ, s, g), is(M.YZ, s, g)) : t === me.ROTATE ? g || r.push(cr(M.X, s, g), cr(M.Y, s, g)) : t === me.SCALE && (g ? r.push(is(M.XY, s)) : r.push(...Zt(M.Z, s, t, g), hl(s))), r.forEach((m) => {
20166
20171
  Sr(m), e.add(m);
20167
20172
  }));
20168
20173
  },
@@ -20222,7 +20227,7 @@ function JC(i, t) {
20222
20227
  }
20223
20228
  };
20224
20229
  }
20225
- function hl(i, t, e) {
20230
+ function cl(i, t, e) {
20226
20231
  let s, r, n = 0;
20227
20232
  i === M.X ? (s = U.RED.toCssColorString(), r = [
20228
20233
  [0, 0],
@@ -20273,7 +20278,7 @@ function KC(i) {
20273
20278
  return (s, r, n, a) => {
20274
20279
  if (t && (i.removeFeaturesById(t), t = void 0), s !== M.NONE) {
20275
20280
  let o = [];
20276
- Na(s) ? o = hl(s, r, e) : Ra(s) && (o = [$d(e)]), o.forEach((l) => {
20281
+ Na(s) ? o = cl(s, r, e) : Ra(s) && (o = [$d(e)]), o.forEach((l) => {
20277
20282
  l.getGeometry().applyTransform((c, d, u = 2) => {
20278
20283
  const f = c.length;
20279
20284
  for (let g = 0; g < f; g += u)
@@ -20287,8 +20292,8 @@ function KC(i) {
20287
20292
  function QC(i, t, e) {
20288
20293
  let s = [0, 0], r = 1, n = [];
20289
20294
  e === me.TRANSLATE || e === me.SCALE ? n = [
20290
- ...hl(M.X, e),
20291
- ...hl(M.Y, e),
20295
+ ...cl(M.X, e),
20296
+ ...cl(M.Y, e),
20292
20297
  $d()
20293
20298
  ] : e === me.ROTATE && (n = [
20294
20299
  new Fe({
@@ -20359,7 +20364,7 @@ function e1(i, t, e) {
20359
20364
  const f = ui(u);
20360
20365
  a = f, r = r || f;
20361
20366
  }
20362
- r = r || Ot(u), n = n || vt(d.getLayout()) || Ot(u) || ui(u) && i.vectorProperties.getHeightAboveGround(c) != null || Dl(u) && i.vectorProperties.getGroundLevel(c) != null;
20367
+ r = r || Ot(u), n = n || vt(d.getLayout()) || Ot(u) || ui(u) && i.vectorProperties.getHeightAboveGround(c) != null || Nl(u) && i.vectorProperties.getGroundLevel(c) != null;
20363
20368
  }), e.length === 1 && (t === me.ROTATE || t === me.SCALE) && ((l = e[0].getGeometry()) == null ? void 0 : l.getType()) === "Point" && i.vectorProperties.renderAs(e[0]) !== "geometry" && (n = !1), {
20364
20369
  center: s.getCenter(),
20365
20370
  calculateHeight: r,
@@ -20444,7 +20449,7 @@ class qd extends ae {
20444
20449
  this.setActive();
20445
20450
  }
20446
20451
  pipe(e) {
20447
- return this.reset(), e.feature && (e.feature[Zl] || e.feature[Te]) && (e.map.className === "CesiumMap" ? this._clear = r1(e.map) : this._clear = s1(e.map)), Promise.resolve(e);
20452
+ return this.reset(), e.feature && (e.feature[Jl] || e.feature[Te]) && (e.map.className === "CesiumMap" ? this._clear = r1(e.map) : this._clear = s1(e.map)), Promise.resolve(e);
20448
20453
  }
20449
20454
  reset() {
20450
20455
  this._clear(), this._clear = () => {
@@ -20778,7 +20783,7 @@ function lM(i, t, e, s = me.TRANSLATE) {
20778
20783
  Z.set("olcs_allowPicking", V);
20779
20784
  });
20780
20785
  });
20781
- const d = Yl(i.layers), { interactionChain: u, removed: f, destroy: g } = Ja(i.maps.eventHandler, e), { exclusiveInteractionId: m } = i.maps.eventHandler, p = i.maps.eventHandler.addExclusiveInteraction(c, () => f.raiseEvent(), 0, m), y = new u1();
20786
+ const d = Xl(i.layers), { interactionChain: u, removed: f, destroy: g } = Ja(i.maps.eventHandler, e), { exclusiveInteractionId: m } = i.maps.eventHandler, p = i.maps.eventHandler.addExclusiveInteraction(c, () => f.raiseEvent(), 0, m), y = new u1();
20782
20787
  u.addInteraction(y), u.addInteraction(new c1(n));
20783
20788
  const v = new qd();
20784
20789
  u.addInteraction(v);
@@ -20813,7 +20818,7 @@ function lM(i, t, e, s = me.TRANSLATE) {
20813
20818
  const _e = zs();
20814
20819
  n.forEach((dt) => {
20815
20820
  Ar(_e, dt.getGeometry().getExtent());
20816
- }), Bo(_e) || ($ = cs(_e));
20821
+ }), Vo(_e) || ($ = cs(_e));
20817
20822
  }
20818
20823
  n.forEach((_e) => {
20819
20824
  (_e[kt] ?? _e.getGeometry()).rotate(V, $);
@@ -20832,7 +20837,7 @@ function lM(i, t, e, s = me.TRANSLATE) {
20832
20837
  const dt = zs();
20833
20838
  n.forEach((mi) => {
20834
20839
  Ar(dt, mi.getGeometry().getExtent());
20835
- }), Bo(dt) || (_e = cs(dt));
20840
+ }), Vo(dt) || (_e = cs(dt));
20836
20841
  }
20837
20842
  n.forEach((dt) => {
20838
20843
  (dt[kt] ?? dt.getGeometry()).scale(V, Z, _e);
@@ -20882,7 +20887,7 @@ function lM(i, t, e, s = me.TRANSLATE) {
20882
20887
  let Nt = [];
20883
20888
  const Ai = () => {
20884
20889
  le(Nt), Nt = n.map((V) => V.on("propertychange", ({ key: Z }) => {
20885
- Jl.includes(Z) && (x == null || x.setFeatures(n));
20890
+ Kl.includes(Z) && (x == null || x.setFeatures(n));
20886
20891
  }));
20887
20892
  }, Ms = /* @__PURE__ */ new Map(), bn = () => {
20888
20893
  C(), g(), j(), rt(), l(), le(Nt), n.forEach((V) => {
@@ -21028,7 +21033,7 @@ class Yd extends ae {
21028
21033
  }
21029
21034
  pipe(e) {
21030
21035
  var s, r;
21031
- if ((s = this._removeFeatures) == null || s.call(this), e[Wl])
21036
+ if ((s = this._removeFeatures) == null || s.call(this), e[Yl])
21032
21037
  return this._lastCoordinate = void 0, this._snappingGeometry = void 0, Promise.resolve(e);
21033
21038
  if (e.type === P.DRAGEND && this._lastCoordinate)
21034
21039
  e.positionOrPixel = this._lastCoordinate, this._lastCoordinate = void 0;
@@ -21036,7 +21041,7 @@ class Yd extends ae {
21036
21041
  const n = e.feature[wn];
21037
21042
  e.type === P.DRAGSTART && this._setCoordinates(n);
21038
21043
  const a = new Array(2), o = (e.map.getCurrentResolution(e.positionOrPixel) * 12) ** 2, l = e.positionOrPixel;
21039
- if (this._snappingGeometry && (a[0] = Kl([this._snappingGeometry], e.positionOrPixel, o, this._snapToVertex, this._snapToEdge, this._scratchLayer.vectorProperties.altitudeMode)), !a[0] && (this._snapOrthogonal || this._snapParallel)) {
21044
+ if (this._snappingGeometry && (a[0] = Ql([this._snappingGeometry], e.positionOrPixel, o, this._snapToVertex, this._snapToEdge, this._scratchLayer.vectorProperties.altitudeMode)), !a[0] && (this._snapOrthogonal || this._snapParallel)) {
21040
21045
  const d = this._bearings.map((u, f) => f === n || f === n - 1 || this._isPolygon && n === 0 && f === this._bearings.length - 1 ? -1 : u);
21041
21046
  if (n > 1 ? a[0] = ki(l, this._coordinates[n - 1], this._coordinates[n - 2], d, n - 1, o, this._snapOrthogonal, this._snapParallel, this._scratchLayer.vectorProperties.altitudeMode) : this._isPolygon && (n === 1 ? a[0] = ki(l, this._coordinates[n - 1], this._coordinates.at(-1), d, n - 1, o, this._snapOrthogonal, this._snapParallel, this._scratchLayer.vectorProperties.altitudeMode) : a[0] = ki(l, this._coordinates.at(-1), this._coordinates.at(-2), d, this._coordinates.length - 1, o, this._snapOrthogonal, this._snapParallel, this._scratchLayer.vectorProperties.altitudeMode)), this._coordinates.length > 2) {
21042
21047
  const u = ((r = a[0]) == null ? void 0 : r.snapped) ?? l;
@@ -21044,7 +21049,7 @@ class Yd extends ae {
21044
21049
  }
21045
21050
  }
21046
21051
  const c = Vd(a, this._coordinates, o);
21047
- c ? (l.length > c.length ? c[2] = e.positionOrPixel[2] : l.length < c.length && c.pop(), e.positionOrPixel = c, this._removeFeatures = Ql(a, this._coordinates, this._scratchLayer), this._lastCoordinate = e.positionOrPixel) : this._lastCoordinate = void 0;
21052
+ c ? (l.length > c.length ? c[2] = e.positionOrPixel[2] : l.length < c.length && c.pop(), e.positionOrPixel = c, this._removeFeatures = eh(a, this._coordinates, this._scratchLayer), this._lastCoordinate = e.positionOrPixel) : this._lastCoordinate = void 0;
21048
21053
  }
21049
21054
  return Promise.resolve(e);
21050
21055
  }
@@ -21236,7 +21241,7 @@ function w1(i, t, e) {
21236
21241
  }
21237
21242
  function hM(i, t, e, s = {}) {
21238
21243
  var X, te;
21239
- const { interactionChain: r, removed: n, destroy: a } = Ja(i.maps.eventHandler, e), o = Yl(i.layers), l = new qd();
21244
+ const { interactionChain: r, removed: n, destroy: a } = Ja(i.maps.eventHandler, e), o = Xl(i.layers), l = new qd();
21240
21245
  r.addInteraction(l);
21241
21246
  const c = new bC(s.denyRemoval);
21242
21247
  r.addInteraction(c);
@@ -21253,7 +21258,7 @@ function hM(i, t, e, s = {}) {
21253
21258
  function E(j) {
21254
21259
  if (C(), x && le(x), j) {
21255
21260
  x = j.on("propertychange", ({ key: Nt }) => {
21256
- Jl.includes(Nt) && E(j);
21261
+ Kl.includes(Nt) && E(j);
21257
21262
  }), f = j, f[pe] = !0;
21258
21263
  const N = j[kt] ?? j.getGeometry(), rt = N.getType();
21259
21264
  o.vectorProperties.altitudeMode = t.vectorProperties.getAltitudeMode(j), rt === Le.Polygon ? N.get("_vcsGeomType") === Le.BBox ? u = v1(j, o, s) : N.getLinearRingCount() === 1 && (u = S1(j, o, t.vectorProperties, s, p)) : rt === Le.LineString ? u = y1(j, o, t.vectorProperties, s, p) : rt === Le.Point ? u = w1(j, o, t) : rt === Le.Circle && (u = _1(j, o, s)), u ? (g = new jd(m, o, (Nt) => Nt !== j, p, P.DRAGEVENTS), u.interactionChain.addInteraction(g, 0), r.addInteraction(u.interactionChain), v()) : (he("EditGeometrySession").warning(`Geometry of type ${rt} is currently not supported`), f[pe] = !1, f = null);
@@ -21567,7 +21572,7 @@ async function uM(i, t) {
21567
21572
  altitudeMode: "absolute"
21568
21573
  }
21569
21574
  });
21570
- jl(r);
21575
+ $l(r);
21571
21576
  let n;
21572
21577
  const [a] = t.maps.getByType(B.className);
21573
21578
  a && (n = a.getScene(), n && !n.primitives.contains(s) && n.primitives.add(s)), t.layers.add(r);
@@ -21596,7 +21601,7 @@ async function uM(i, t) {
21596
21601
  }
21597
21602
  r.addFeatures(f);
21598
21603
  const g = r.getSource().getExtent();
21599
- e = El(g, g, 2);
21604
+ e = Ol(g, g, 2);
21600
21605
  };
21601
21606
  o();
21602
21607
  const l = [
@@ -21633,7 +21638,7 @@ async function uM(i, t) {
21633
21638
  destroy: d,
21634
21639
  async zoomToExtent() {
21635
21640
  var g;
21636
- if (!i.isValid() || Bo(e))
21641
+ if (!i.isValid() || Vo(e))
21637
21642
  return;
21638
21643
  const f = It.createViewpointFromExtent(e);
21639
21644
  f && await ((g = t.maps.activeMap) == null ? void 0 : g.gotoViewpoint(f));
@@ -21663,7 +21668,7 @@ export {
21663
21668
  lC as ClippingObjectManager,
21664
21669
  U1 as ClusterContext,
21665
21670
  jt as Collection,
21666
- $l as CoordinateAtPixel,
21671
+ ql as CoordinateAtPixel,
21667
21672
  uC as CreateBBoxInteraction,
21668
21673
  cC as CreateCircleInteraction,
21669
21674
  hC as CreateLineStringInteraction,
@@ -21698,7 +21703,7 @@ export {
21698
21703
  qs as FlightInstance,
21699
21704
  Jr as GeoJSONLayer,
21700
21705
  Le as GeometryType,
21701
- Qo as GlobalHider,
21706
+ el as GlobalHider,
21702
21707
  Ui as IndexedCollection,
21703
21708
  Wd as InsertVertexInteraction,
21704
21709
  Cs as InteractionChain,
@@ -21710,14 +21715,14 @@ export {
21710
21715
  jd as LayerSnapping,
21711
21716
  ve as LayerState,
21712
21717
  Pa as MVTTileProvider,
21713
- Xl as MapCollection,
21718
+ Zl as MapCollection,
21714
21719
  qd as MapInteractionController,
21715
21720
  Ht as MapState,
21716
21721
  pn as ModelFill,
21717
21722
  F as ModificationKeyType,
21718
21723
  ps as ObliqueCollection,
21719
21724
  Qh as ObliqueDataSet,
21720
- Hl as ObliqueImage,
21725
+ Bl as ObliqueImage,
21721
21726
  Zn as ObliqueImageMeta,
21722
21727
  Ae as ObliqueMap,
21723
21728
  BS as ObliqueProvider,
@@ -21758,7 +21763,7 @@ export {
21758
21763
  en as TerrainLayer,
21759
21764
  W1 as TileDebugOpenlayersImpl,
21760
21765
  ut as TileProvider,
21761
- al as TileProviderFeatureProvider,
21766
+ ol as TileProviderFeatureProvider,
21762
21767
  it as TilingScheme,
21763
21768
  bw as TmsCesiumImpl,
21764
21769
  Xw as TmsOpenlayersImpl,
@@ -21773,7 +21778,7 @@ export {
21773
21778
  zw as VcsDebugTile,
21774
21779
  L as VcsEvent,
21775
21780
  ci as VcsMap,
21776
- nl as VcsModule,
21781
+ al as VcsModule,
21777
21782
  Hw as VcsNoDataTile,
21778
21783
  Ut as VcsObject,
21779
21784
  jw as VcsQuadtreeTileProvider,
@@ -21781,7 +21786,7 @@ export {
21781
21786
  _s as VcsTileType,
21782
21787
  Bw as VcsVectorTile,
21783
21788
  bS as VectorCesiumImpl,
21784
- kl as VectorContext,
21789
+ zl as VectorContext,
21785
21790
  ct as VectorLayer,
21786
21791
  wd as VectorObliqueImpl,
21787
21792
  ju as VectorOpenlayersImpl,
@@ -21801,7 +21806,7 @@ export {
21801
21806
  Nw as WmtsCesiumImpl,
21802
21807
  Kw as WmtsOpenlayersImpl,
21803
21808
  br as actuallyIsCircle,
21804
- Wl as alreadySnapped,
21809
+ Yl as alreadySnapped,
21805
21810
  ze as alreadyTransformedToImage,
21806
21811
  hi as alreadyTransformedToMercator,
21807
21812
  mc as anchorFromGeojsonFeature,
@@ -21828,7 +21833,7 @@ export {
21828
21833
  pd as convert,
21829
21834
  qu as convertGeometryToPolygon,
21830
21835
  P1 as coordinateAtDistance,
21831
- Ah as coordinateEqualsEpsilon,
21836
+ Dh as coordinateEqualsEpsilon,
21832
21837
  Lr as copyClippingPlanesToCollection,
21833
21838
  QC as create2DHandlers,
21834
21839
  ZC as create3DHandlers,
@@ -21867,14 +21872,14 @@ export {
21867
21872
  Vu as embedIconsInStyle,
21868
21873
  G1 as emptyColor,
21869
21874
  Z0 as emptyStyle,
21870
- tl as enforceEndingVertex,
21875
+ il as enforceEndingVertex,
21871
21876
  bv as enforceRightHand,
21872
21877
  Q1 as exportFlightAsGeoJson,
21873
21878
  eM as exportFlightPathAsGeoJson,
21874
21879
  ti as featureArcStruct,
21875
21880
  yn as featureExists,
21876
- Lo as featureFromOptions,
21877
- Pl as featureProviderClassRegistry,
21881
+ Io as featureFromOptions,
21882
+ Ll as featureProviderClassRegistry,
21878
21883
  Bt as featureStoreStateSymbol,
21879
21884
  Pv as from2Dto3DLayout,
21880
21885
  z1 as from3Dto2DLayout,
@@ -21914,9 +21919,9 @@ export {
21914
21919
  Ev as getFlatCoordinatesFromSimpleGeometry,
21915
21920
  Rd as getFlightPathCoordinatesFromInstance,
21916
21921
  yw as getFormat,
21917
- Kl as getGeometrySnapResult,
21922
+ Ql as getGeometrySnapResult,
21918
21923
  Qs as getHeightFromTerrainProvider,
21919
- Nl as getHeightInfo,
21924
+ Rl as getHeightInfo,
21920
21925
  X0 as getImageStyleFromOptions,
21921
21926
  Nu as getImageStyleOptions,
21922
21927
  eS as getLabelOptions,
@@ -21943,7 +21948,7 @@ export {
21943
21948
  zh as getStoreyHeights,
21944
21949
  Lv as getStoreyOptions,
21945
21950
  mt as getStringColor,
21946
- Il as getStrokeFromOptions,
21951
+ Tl as getStrokeFromOptions,
21947
21952
  Br as getStrokeOptions,
21948
21953
  N1 as getStyleFromOptions,
21949
21954
  R1 as getStyleOptions,
@@ -21952,15 +21957,15 @@ export {
21952
21957
  Ur as getTerrainProviderForUrl,
21953
21958
  Du as getTextFromOptions,
21954
21959
  Au as getTextOptions,
21955
- ol as getTileHash,
21960
+ ll as getTileHash,
21956
21961
  Ya as getTileLoadFunction,
21957
21962
  Rw as getTileWebMercatorExtent,
21958
- Ul as getTileWgs84Extent,
21963
+ Wl as getTileWgs84Extent,
21959
21964
  bd as getTilingScheme,
21960
21965
  Td as getURL,
21961
21966
  sM as getVcsAppById,
21962
21967
  Cd as getVersionFromImageJson,
21963
- xo as getViewDirectionFromViewpoint,
21968
+ Eo as getViewDirectionFromViewpoint,
21964
21969
  Ld as getWMSSource,
21965
21970
  ad as getWgs84CoordinatesForPoint,
21966
21971
  TS as getZoom,
@@ -21978,10 +21983,10 @@ export {
21978
21983
  Na as is1DAxis,
21979
21984
  Ra as is2DAxis,
21980
21985
  vt as is2DLayout,
21981
- Dl as isAbsoluteHeightReference,
21986
+ Nl as isAbsoluteHeightReference,
21982
21987
  Ot as isClampedHeightReference,
21983
21988
  hs as isMobile,
21984
- Jo as isOverrideCollection,
21989
+ Ko as isOverrideCollection,
21985
21990
  dw as isProvidedFeature,
21986
21991
  ui as isRelativeHeightReference,
21987
21992
  gi as isSameOrigin,
@@ -21991,14 +21996,14 @@ export {
21991
21996
  ke as layerClassRegistry,
21992
21997
  _i as makeOverrideCollection,
21993
21998
  Ks as mapClassRegistry,
21994
- jl as markVolatile,
21999
+ $l as markVolatile,
21995
22000
  Cv as maxZIndex,
21996
22001
  AS as mercatorGeometryToImageGeometry,
21997
22002
  W as mercatorProjection,
21998
22003
  Ma as mercatorResolutionsToLevel,
21999
22004
  wt as mercatorToCartesian,
22000
22005
  Ua as mercatorToCartesianTransformerForHeightInfo,
22001
- El as mercatorToWgs84Transformer,
22006
+ Ol as mercatorToWgs84Transformer,
22002
22007
  Xu as mercatorToWgs84TransformerForHeightInfo,
22003
22008
  Je as moduleIdSymbol,
22004
22009
  Yn as modulo,
@@ -22006,10 +22011,10 @@ export {
22006
22011
  kt as obliqueGeometry,
22007
22012
  _d as obliqueViewDirectionNames,
22008
22013
  U0 as olColorToCesiumColor,
22009
- Lh as olColorToHex,
22014
+ Ih as olColorToHex,
22010
22015
  $r as originalFeatureSymbol,
22011
22016
  Mi as originalStyle,
22012
- fo as parseCartesian3,
22017
+ go as parseCartesian3,
22013
22018
  We as parseColor,
22014
22019
  yC as parseFlightOptionsFromGeoJson,
22015
22020
  A1 as parseFont,
@@ -22017,14 +22022,14 @@ export {
22017
22022
  Kh as parseImageData,
22018
22023
  FS as parseImageMeta,
22019
22024
  GS as parseLegacyImageData,
22020
- uo as parseNearFarScalar,
22025
+ fo as parseNearFarScalar,
22021
22026
  Os as parseStoreyHeights,
22022
22027
  H1 as placeGeometryOnSurface,
22023
22028
  aM as placeGeometryOnTerrain,
22024
22029
  EC as pointOnLine2D,
22025
22030
  xC as pointOnLine3D,
22026
22031
  Hu as propertyEqualsEpsilon,
22027
- ql as rectangleToExtent,
22032
+ Ul as rectangleToExtent,
22028
22033
  Gh as removeEndingVertex,
22029
22034
  Uu as removeEndingVertexFromGeometry,
22030
22035
  kS as requestArrayBuffer,
@@ -22035,11 +22040,11 @@ export {
22035
22040
  b0 as setDefaultProjectionOptions,
22036
22041
  Zh as setNewGeometry,
22037
22042
  yd as setReferenceForPicking,
22038
- Ql as setSnappingFeatures,
22039
- _o as setSplitDirectionOnPrimitives,
22043
+ eh as setSnappingFeatures,
22044
+ vo as setSplitDirectionOnPrimitives,
22040
22045
  fS as setupClampedPrimitive,
22041
22046
  OS as setupScalingPrimitiveCollection,
22042
- Yl as setupScratchLayer,
22047
+ Xl as setupScratchLayer,
22043
22048
  Q0 as shapeCategory,
22044
22049
  Ka as snapTypes,
22045
22050
  Wh as sortRealWordEdgeCoordinates,
@@ -22050,7 +22055,7 @@ export {
22050
22055
  cM as startSelectFeaturesSession,
22051
22056
  mn as styleClassRegistry,
22052
22057
  iv as synchronizeFeatureVisibility,
22053
- Al as synchronizeFeatureVisibilityWithSource,
22058
+ Dl as synchronizeFeatureVisibilityWithSource,
22054
22059
  Js as tileProviderClassRegistry,
22055
22060
  Y1 as tiledLayerLoaded,
22056
22061
  Lw as toContext,
@@ -22062,7 +22067,7 @@ export {
22062
22067
  aw as updateLegacyFeature,
22063
22068
  td as validateCircle,
22064
22069
  T1 as validateHexColor,
22065
- Fl as validateLineString,
22070
+ Gl as validateLineString,
22066
22071
  nd as validatePoint,
22067
22072
  Ku as validatePolygon,
22068
22073
  Hh as validateStoreys,
@@ -22071,7 +22076,7 @@ export {
22071
22076
  xi as vcsMetaVersion,
22072
22077
  yt as vectorStyleSymbol,
22073
22078
  wn as vertexIndexSymbol,
22074
- Zl as vertexSymbol,
22079
+ Jl as vertexSymbol,
22075
22080
  hw as volatileModuleId,
22076
22081
  de as wgs84Projection,
22077
22082
  fa as wgs84ToMercatorTransformer,