@map-colonies/react-components 4.10.2 → 4.10.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,9 +2,9 @@
2
2
  var Jn = Object.defineProperty;
3
3
  var Qn = (e, n, t) => n in e ? Jn(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
4
4
  var ce = (e, n, t) => (Qn(e, typeof n != "symbol" ? n + "" : n, t), t);
5
- import { jsx as l, jsxs as z, Fragment as Ee } from "react/jsx-runtime";
5
+ import { jsx as l, jsxs as $, Fragment as Ce } from "react/jsx-runtime";
6
6
  import * as Ln from "react";
7
- import Oe, { useState as F, useEffect as N, useMemo as be, forwardRef as ei, createContext as Ke, useContext as ze, useRef as Pe, useLayoutEffect as Tn, useCallback as xe } from "react";
7
+ import Oe, { useState as F, useEffect as N, useMemo as fe, forwardRef as ei, createContext as Ke, useContext as ze, useRef as Pe, useLayoutEffect as Tn, useCallback as xe } from "react";
8
8
  import { isValid as Xe, isBefore as ti, format as Pt, endOfDay as ni, isSameDay as Yt } from "date-fns";
9
9
  import { he as Sn, enUS as Mn } from "date-fns/locale";
10
10
  import { MuiPickersUtilsProvider as _n, KeyboardDateTimePicker as xt, KeyboardDatePicker as ii } from "@material-ui/pickers";
@@ -45,7 +45,7 @@ import tr from "@material-ui/core/ScopedCssBaseline";
45
45
  import { createPortal as nr } from "react-dom";
46
46
  import { Viewer as ir, Cesium3DTileset as rr, GeoJsonDataSource as or, ImageryLayer as sr, Entity as ar, EntityDescription as kn, PolygonGraphics as lr, RectangleGraphics as cr, CustomDataSource as dr, PolylineGraphics as ur } from "resium";
47
47
  import * as E from "cesium";
48
- import { Math as Q, SceneMode as $e, Cartesian2 as Ne, Cartographic as Re, defined as Jt, Cartesian3 as _e, PerspectiveFrustum as hr, Rectangle as je, UrlTemplateImageryProvider as Gt, WebMapServiceImageryProvider as Ht, WebMapTileServiceImageryProvider as $t, Event as Qt, SingleTileImageryProvider as mr, PolylineDashMaterialProperty as pr, ConstantProperty as gr, ConstantPositionProperty as fr, BoundingSphere as Rn, Ellipsoid as zt, GeographicTilingScheme as yr, Resource as vr, EllipsoidTerrainProvider as Er, CesiumTerrainProvider as Cr, PolylineGraphics as Nn, JulianDate as Qe, PositionProperty as wr, BillboardGraphics as It, Color as Ge, PolygonHierarchy as Bn, Scene as br, VerticalOrigin as ut, HorizontalOrigin as Lr, LabelStyle as Fn, HeightReference as Ot, ScreenSpaceEventType as At, WebMercatorProjection as Tr, EventHelper as Sr, EllipsoidGeodesic as Mr, Viewer as _r, Matrix4 as Pr, OpenStreetMapImageryProvider as xr, GeoJsonDataSource as en, ScreenSpaceEventHandler as Dr, SceneTransforms as tn, PolygonGraphics as Ir, viewerCesiumInspectorMixin as Or, sampleTerrainMostDetailed as Ar } from "cesium";
48
+ import { Math as J, SceneMode as $e, Cartesian2 as Ne, Cartographic as Re, defined as Jt, Cartesian3 as _e, PerspectiveFrustum as hr, Rectangle as je, UrlTemplateImageryProvider as Gt, WebMapServiceImageryProvider as Ht, WebMapTileServiceImageryProvider as $t, Event as Qt, SingleTileImageryProvider as mr, PolylineDashMaterialProperty as pr, ConstantProperty as gr, ConstantPositionProperty as fr, BoundingSphere as Rn, Ellipsoid as zt, GeographicTilingScheme as yr, Resource as vr, EllipsoidTerrainProvider as Er, CesiumTerrainProvider as Cr, PolylineGraphics as Nn, JulianDate as Qe, PositionProperty as wr, BillboardGraphics as It, Color as Ge, PolygonHierarchy as Bn, Scene as br, VerticalOrigin as ut, HorizontalOrigin as Lr, LabelStyle as Fn, HeightReference as Ot, ScreenSpaceEventType as At, WebMercatorProjection as Tr, EventHelper as Sr, EllipsoidGeodesic as Mr, Viewer as _r, Matrix4 as Pr, OpenStreetMapImageryProvider as xr, GeoJsonDataSource as en, ScreenSpaceEventHandler as Dr, SceneTransforms as tn, PolygonGraphics as Ir, viewerCesiumInspectorMixin as Or, sampleTerrainMostDetailed as Ar } from "cesium";
49
49
  import { Entity as hc, PolygonGraphics as mc, GeoJsonDataSource as pc, Math as gc, SceneTransforms as fc, sampleTerrainMostDetailed as yc } from "cesium";
50
50
  import { get as ie, isEmpty as kt, isNumber as ht, isArray as kr, cloneDeep as Rr, find as nn } from "lodash";
51
51
  import Nr from "@turf/boolean-point-in-polygon";
@@ -147,7 +147,7 @@ const Xr = 2, Jr = 0.5, Qr = it(
147
147
  }, [e.to]), N(() => {
148
148
  p(e.dateFormat ?? he.DATE_RANGE_PICKER.dateFormat);
149
149
  }, [e.dateFormat]);
150
- const W = Boolean(
150
+ const z = Boolean(
151
151
  Xe(o) && !c || Xe(c) && !o || o && c && Xe(o) && Xe(c) && ti(o, c)
152
152
  ), q = () => {
153
153
  e.onChange({
@@ -162,7 +162,7 @@ const Xr = 2, Jr = 0.5, Qr = it(
162
162
  display: "flex",
163
163
  flexDirection: C,
164
164
  width: C === "column" ? e.contentWidth : "unset",
165
- children: /* @__PURE__ */ z(_n, { utils: Pn, locale: Z, children: [
165
+ children: /* @__PURE__ */ $(_n, { utils: Pn, locale: Z, children: [
166
166
  /* @__PURE__ */ l(
167
167
  xt,
168
168
  {
@@ -196,7 +196,7 @@ const Xr = 2, Jr = 0.5, Qr = it(
196
196
  className: `${n.setButton} ${n.margin}`,
197
197
  raised: !0,
198
198
  onClick: q,
199
- disabled: !W,
199
+ disabled: !z,
200
200
  children: S
201
201
  }
202
202
  ) })
@@ -223,8 +223,8 @@ const nl = (e) => {
223
223
  }, [e.to]), N(() => {
224
224
  c(e.dateFormat ?? he.DATE_RANGE_PICKER.dateFormat);
225
225
  }, [e.dateFormat]);
226
- const S = ((k = e.local) == null ? void 0 : k.startPlaceHolderText) ?? he.DATE_RANGE_PICKER.local.startPlaceHolderText, H = ((X = e.local) == null ? void 0 : X.endPlaceHolderText) ?? he.DATE_RANGE_PICKER.local.endPlaceHolderText, Z = e.renderAsButton === void 0 ? he.DATE_RANGE_PICKER.renderAsButton : e.renderAsButton, W = e.offset === void 0 ? he.DATE_RANGE_PICKER.offset : e.offset, q = e.disableFuture === void 0 ? he.DATE_RANGE_PICKER.disableFuture : e.disableFuture, Y = be(() => `${n ? Pt(n, r) : S} - ${i ? Pt(i, r) : H}`, [n, i, r, S, H]);
227
- return /* @__PURE__ */ z(Ee, { children: [
226
+ const S = ((k = e.local) == null ? void 0 : k.startPlaceHolderText) ?? he.DATE_RANGE_PICKER.local.startPlaceHolderText, H = ((X = e.local) == null ? void 0 : X.endPlaceHolderText) ?? he.DATE_RANGE_PICKER.local.endPlaceHolderText, Z = e.renderAsButton === void 0 ? he.DATE_RANGE_PICKER.renderAsButton : e.renderAsButton, z = e.offset === void 0 ? he.DATE_RANGE_PICKER.offset : e.offset, q = e.disableFuture === void 0 ? he.DATE_RANGE_PICKER.disableFuture : e.disableFuture, Y = fe(() => `${n ? Pt(n, r) : S} - ${i ? Pt(i, r) : H}`, [n, i, r, S, H]);
227
+ return /* @__PURE__ */ $(Ce, { children: [
228
228
  Z ? /* @__PURE__ */ l(nt, { style: { width: e.width }, raised: !0, onClick: p, className: "drpOpener", children: Y }) : /* @__PURE__ */ l(
229
229
  ct,
230
230
  {
@@ -244,7 +244,7 @@ const nl = (e) => {
244
244
  eo,
245
245
  {
246
246
  controlsLayout: P,
247
- contentWidth: ((d == null ? void 0 : d.clientWidth) ?? 0) - W,
247
+ contentWidth: ((d == null ? void 0 : d.clientWidth) ?? 0) - z,
248
248
  dateFormat: r,
249
249
  disableFuture: q,
250
250
  minDate: e.minDate,
@@ -272,7 +272,7 @@ const nl = (e) => {
272
272
  startTimeInputClassName: h = "",
273
273
  startTimeLabel: p = "",
274
274
  startTimeWrapperClassName: C = ""
275
- }) => /* @__PURE__ */ z("div", { className: `timeRangeWrapper ${d}`, children: [
275
+ }) => /* @__PURE__ */ $("div", { className: `timeRangeWrapper ${d}`, children: [
276
276
  /* @__PURE__ */ l("div", { className: `startTimeWrapper ${C}`, children: /* @__PURE__ */ l(
277
277
  ct,
278
278
  {
@@ -326,7 +326,7 @@ const nl = (e) => {
326
326
  ), io = ({ setStartDate: e = () => {
327
327
  }, setEndDate: n = () => {
328
328
  }, shortcuts: t, dateRange: i, onShortcut: o }) => {
329
- const [r, c] = F(), d = be(
329
+ const [r, c] = F(), d = fe(
330
330
  () => t.map((h) => h instanceof Function ? h() : h),
331
331
  [t]
332
332
  );
@@ -374,14 +374,14 @@ const nl = (e) => {
374
374
  // withTimeRange,
375
375
  withShortcuts: p,
376
376
  locale: C = "en"
377
- } = e, [m, b] = F(null), [P, S] = F(null), [H, Z] = F(!1), W = r ? { startDate: m, endDate: P } : m;
377
+ } = e, [m, b] = F(null), [P, S] = F(null), [H, Z] = F(!1), z = r ? { startDate: m, endDate: P } : m;
378
378
  N(() => {
379
379
  C === "he" && Si("he", Mi);
380
380
  }, [C]), N(() => {
381
381
  var k, X;
382
382
  ((k = e.startDate) == null ? void 0 : k.toString()) !== (m == null ? void 0 : m.toString()) && b(e.startDate), ((X = e.endDate) == null ? void 0 : X.toString()) !== (P == null ? void 0 : P.toString()) && S(e.endDate);
383
383
  }, [e.startDate, e.endDate, m, P]);
384
- const q = be(() => {
384
+ const q = fe(() => {
385
385
  let k = "pickerContainer" + (C === "he" ? " pickerContainer-rtl" : "");
386
386
  return p && r && (k += " pickerContainer-withShortcuts"), k;
387
387
  }, [C, p, r]), Y = h ? {
@@ -396,9 +396,9 @@ const nl = (e) => {
396
396
  ref: n,
397
397
  onClickOutside: () => Z(!1),
398
398
  open: H,
399
- startDate: Lt(W) ? m : void 0,
399
+ startDate: Lt(z) ? m : void 0,
400
400
  selected: m,
401
- endDate: Lt(W) ? P : void 0,
401
+ endDate: Lt(z) ? P : void 0,
402
402
  monthsShown: e.monthsShown ?? 2,
403
403
  calendarClassName: `pickerCalendar ${t}`,
404
404
  weekDayClassName: (k) => `pickerWeek ${(i == null ? void 0 : i(k)) ?? ""}`,
@@ -416,9 +416,9 @@ const nl = (e) => {
416
416
  } }),
417
417
  showTimeInput: !!(p && r),
418
418
  timeInputLabel: "",
419
- customTimeInput: p && Lt(W) && /* @__PURE__ */ l(io, { onShortcut: (k) => {
419
+ customTimeInput: p && Lt(z) && /* @__PURE__ */ l(io, { onShortcut: (k) => {
420
420
  c == null || c(k), Z(!1);
421
- }, shortcuts: p, setEndDate: S, setStartDate: b, dateRange: W }),
421
+ }, shortcuts: p, setEndDate: S, setStartDate: b, dateRange: z }),
422
422
  showMonthYearDropdown: void 0,
423
423
  ...Y
424
424
  }
@@ -440,7 +440,7 @@ const ol = (e) => {
440
440
  }, P = b === De.HE ? Sn : Mn, S = (H) => {
441
441
  d(H);
442
442
  };
443
- return /* @__PURE__ */ l(Ft, { theme: t, children: /* @__PURE__ */ z(_n, { utils: Pn, locale: P, children: [
443
+ return /* @__PURE__ */ l(Ft, { theme: t, children: /* @__PURE__ */ $(_n, { utils: Pn, locale: P, children: [
444
444
  h && /* @__PURE__ */ l(
445
445
  xt,
446
446
  {
@@ -482,9 +482,9 @@ const ol = (e) => {
482
482
  }, p = () => {
483
483
  i(null);
484
484
  };
485
- return o ? /* @__PURE__ */ l(dt, { content: "Cancel the ongoing draw", align: "bottomLeft", children: /* @__PURE__ */ l(nt, { className: n.drawingButton, raised: !0, onClick: r, children: "Cancel Draw" }) }) : /* @__PURE__ */ z(me, { position: "relative", children: [
485
+ return o ? /* @__PURE__ */ l(dt, { content: "Cancel the ongoing draw", align: "bottomLeft", children: /* @__PURE__ */ l(nt, { className: n.drawingButton, raised: !0, onClick: r, children: "Cancel Draw" }) }) : /* @__PURE__ */ $(me, { position: "relative", children: [
486
486
  /* @__PURE__ */ l(dt, { content: "draw an Area of interest to limit the search", align: "bottomLeft", children: /* @__PURE__ */ l(nt, { className: n.drawingButton, raised: !0, onClick: h, children: "Draw AOI" }) }),
487
- /* @__PURE__ */ z(
487
+ /* @__PURE__ */ $(
488
488
  yi,
489
489
  {
490
490
  className: n.fullWidth,
@@ -567,7 +567,7 @@ const Nt = 5, Bt = 2, $n = Ke(null), ao = $n.Provider, an = 35, ln = 32, lo = 10
567
567
  undefinedHTML: " "
568
568
  })
569
569
  )) : c(wt, r);
570
- }, [r, i, o]), /* @__PURE__ */ z(ao, { value: r, children: [
570
+ }, [r, i, o]), /* @__PURE__ */ $(ao, { value: r, children: [
571
571
  /* @__PURE__ */ l("div", { className: "map", ref: n }),
572
572
  e.children
573
573
  ] });
@@ -649,7 +649,7 @@ const To = (e) => {
649
649
  const i = _i(t);
650
650
  e.onPolygonSelection(i);
651
651
  };
652
- return /* @__PURE__ */ z(ho, { allowFullScreen: !0, showMousePosition: !0, children: [
652
+ return /* @__PURE__ */ $(ho, { allowFullScreen: !0, showMousePosition: !0, children: [
653
653
  /* @__PURE__ */ l(po, { children: /* @__PURE__ */ l(bo, {}) }),
654
654
  e.selectionPolygon && /* @__PURE__ */ l(yo, { children: /* @__PURE__ */ l(Co, { children: /* @__PURE__ */ l(wo, { geometry: e.selectionPolygon }) }) }),
655
655
  e.children,
@@ -687,9 +687,9 @@ const To = (e) => {
687
687
  }, d = () => {
688
688
  o(void 0), e.handlePolygonReset();
689
689
  };
690
- return /* @__PURE__ */ z("div", { className: r.map, children: [
691
- /* @__PURE__ */ z("div", { className: `${r.absolute}`, children: [
692
- /* @__PURE__ */ z(Dt, { className: r.filtersContainer, children: [
690
+ return /* @__PURE__ */ $("div", { className: r.map, children: [
691
+ /* @__PURE__ */ $("div", { className: `${r.absolute}`, children: [
692
+ /* @__PURE__ */ $(Dt, { className: r.filtersContainer, children: [
693
693
  /* @__PURE__ */ l(
694
694
  so,
695
695
  {
@@ -825,13 +825,13 @@ const To = (e) => {
825
825
  }), o.addItem(c), () => {
826
826
  i.removeControl(r);
827
827
  };
828
- }, [i, e, n, t]), /* @__PURE__ */ l(Ee, {});
828
+ }, [i, e, n, t]), /* @__PURE__ */ l(Ce, {});
829
829
  };
830
830
  function ko(e) {
831
831
  const { headCells: n, order: t, orderBy: i, onRequestSort: o, isCollapseable: r } = e, c = (d) => (h) => {
832
832
  o(h, d);
833
833
  };
834
- return /* @__PURE__ */ l(Qi, { children: /* @__PURE__ */ z(lt, { children: [
834
+ return /* @__PURE__ */ l(Qi, { children: /* @__PURE__ */ $(lt, { children: [
835
835
  r && /* @__PURE__ */ l(et, {}),
836
836
  n.map((d) => /* @__PURE__ */ l(
837
837
  et,
@@ -866,8 +866,8 @@ const Ro = An(
866
866
  );
867
867
  function Bo(e) {
868
868
  const { cellsMetadata: n, isRowSelected: t, item: i, onRowSelected: o, rowIndex: r, isCollapseable: c, collapsedElement: d } = e, [h, p] = F(!1), C = n.length;
869
- return /* @__PURE__ */ z(Ee, { children: [
870
- /* @__PURE__ */ z(lt, { hover: !0, selected: t, onClick: () => {
869
+ return /* @__PURE__ */ $(Ce, { children: [
870
+ /* @__PURE__ */ $(lt, { hover: !0, selected: t, onClick: () => {
871
871
  o == null || o(r);
872
872
  }, children: [
873
873
  c && /* @__PURE__ */ l(et, { padding: "checkbox", children: /* @__PURE__ */ l(
@@ -909,8 +909,8 @@ function vl(e) {
909
909
  handleChangePage: H,
910
910
  handleChangeRowsPerPage: Z
911
911
  } = e;
912
- return /* @__PURE__ */ z(di, { component: Dt, children: [
913
- /* @__PURE__ */ z(ui, { size: m ? "small" : "medium", children: [
912
+ return /* @__PURE__ */ $(di, { component: Dt, children: [
913
+ /* @__PURE__ */ $(ui, { size: m ? "small" : "medium", children: [
914
914
  /* @__PURE__ */ l(
915
915
  ko,
916
916
  {
@@ -924,7 +924,7 @@ function vl(e) {
924
924
  isCollapseable: p
925
925
  }
926
926
  ),
927
- /* @__PURE__ */ z(hi, { children: [
927
+ /* @__PURE__ */ $(hi, { children: [
928
928
  c.map((q, Y) => /* @__PURE__ */ l(
929
929
  Bo,
930
930
  {
@@ -972,7 +972,7 @@ const El = (e) => {
972
972
  }, hn = (e) => e * Math.PI / 180, ot = (e) => e * (180 / Math.PI), Fo = (e) => 0.05 * (5916575505e-1 / Math.pow(2, e - 1) / 2) * (Math.cos(hn(85.362 / 2)) / Math.sin(hn(85.362 / 2)));
973
973
  const Vo = ({ children: e, locale: n }) => {
974
974
  var h;
975
- const [t, i] = F(!1), [o, r] = F([]), c = be(() => ie(n, "DEBUG_PANEL_TITLE") ?? "Debugger Tool", [n]), d = Ce();
975
+ const [t, i] = F(!1), [o, r] = F([]), c = fe(() => ie(n, "DEBUG_PANEL_TITLE") ?? "Debugger Tool", [n]), d = we();
976
976
  return N(() => {
977
977
  if (!d.layersManager)
978
978
  return;
@@ -981,16 +981,16 @@ const Vo = ({ children: e, locale: n }) => {
981
981
  C.forEach((S) => {
982
982
  if (m !== void 0 && m !== S.meta.id)
983
983
  return;
984
- const { options: H, meta: Z } = S, { zoomLevel: W } = H, { id: q, items: Y, total: k, cache: X, currentZoomLevel: G, featureStructure: K } = Z;
984
+ const { options: H, meta: Z } = S, { zoomLevel: z } = H, { id: q, items: Y, total: k, cache: X, currentZoomLevel: G, featureStructure: K } = Z;
985
985
  r((se) => {
986
986
  const s = se.findIndex((a) => a.id === q);
987
987
  if (s >= 0) {
988
- if (JSON.stringify(se[s]) !== JSON.stringify({ id: q, items: Y, total: k, cache: X, currentZoomLevel: G, featureStructure: K, zoomLevel: W })) {
988
+ if (JSON.stringify(se[s]) !== JSON.stringify({ id: q, items: Y, total: k, cache: X, currentZoomLevel: G, featureStructure: K, zoomLevel: z })) {
989
989
  const a = [...se];
990
- return a[s] = { id: q, items: Y, total: k, cache: X, currentZoomLevel: G, featureStructure: K, zoomLevel: W }, a;
990
+ return a[s] = { id: q, items: Y, total: k, cache: X, currentZoomLevel: G, featureStructure: K, zoomLevel: z }, a;
991
991
  }
992
992
  } else
993
- return [...se, { id: q, items: Y, total: k, cache: X, currentZoomLevel: G, featureStructure: K, zoomLevel: W }];
993
+ return [...se, { id: q, items: Y, total: k, cache: X, currentZoomLevel: G, featureStructure: K, zoomLevel: z }];
994
994
  return se;
995
995
  });
996
996
  });
@@ -1001,7 +1001,7 @@ const Vo = ({ children: e, locale: n }) => {
1001
1001
  var C;
1002
1002
  (C = d.layersManager) == null || C.removeDataLayerUpdatedListener(p);
1003
1003
  };
1004
- }, [(h = d.layersManager) == null ? void 0 : h.dataLayerList]), /* @__PURE__ */ z(Ee, { children: [
1004
+ }, [(h = d.layersManager) == null ? void 0 : h.dataLayerList]), /* @__PURE__ */ $(Ce, { children: [
1005
1005
  /* @__PURE__ */ l(
1006
1006
  He,
1007
1007
  {
@@ -1011,7 +1011,7 @@ const Vo = ({ children: e, locale: n }) => {
1011
1011
  }
1012
1012
  }
1013
1013
  ),
1014
- t && /* @__PURE__ */ l("div", { className: "debugPanel", children: /* @__PURE__ */ z(
1014
+ t && /* @__PURE__ */ l("div", { className: "debugPanel", children: /* @__PURE__ */ $(
1015
1015
  xn,
1016
1016
  {
1017
1017
  open: t,
@@ -1027,20 +1027,20 @@ const Vo = ({ children: e, locale: n }) => {
1027
1027
  ] });
1028
1028
  };
1029
1029
  const Go = ({ featureTypes: e, locale: n }) => {
1030
- const t = be(() => ie(n, "WFS_TITLE") ?? "Data Layers", [n]), i = be(() => ie(n, "WFS_CACHE") ?? "Cache", [n]), o = be(() => ie(n, "WFS_EXTENT") ?? "Extent", [n]), r = be(() => ie(n, "NO_DATA_LAYERS") ?? "No layers found", [n]), c = be(() => /* @__PURE__ */ l(me, { className: "title", children: t }), [t]), d = be(() => /* @__PURE__ */ l(Ee, { children: e.length > 0 ? e.map((h, p) => /* @__PURE__ */ z(me, { className: "featureType", children: [
1031
- /* @__PURE__ */ l(dt, { content: `${h.featureStructure.aliasLayerName} ${h.id} (${String(h.zoomLevel)})`, children: /* @__PURE__ */ z(me, { className: `name ${h.currentZoomLevel < h.zoomLevel ? "warning blinking" : h.total === -1 ? "error blinking" : ""}`, children: [
1030
+ const t = fe(() => ie(n, "WFS_TITLE") ?? "Data Layers", [n]), i = fe(() => ie(n, "WFS_CACHE") ?? "Cache", [n]), o = fe(() => ie(n, "WFS_EXTENT") ?? "Extent", [n]), r = fe(() => ie(n, "NO_DATA_LAYERS") ?? "No layers found", [n]), c = fe(() => /* @__PURE__ */ l(me, { className: "title", children: t }), [t]), d = fe(() => /* @__PURE__ */ l(Ce, { children: e.length > 0 ? e.map((h, p) => /* @__PURE__ */ $(me, { className: "featureType", children: [
1031
+ /* @__PURE__ */ l(dt, { content: `${h.featureStructure.aliasLayerName} ${h.id} (${String(h.zoomLevel)})`, children: /* @__PURE__ */ $(me, { className: `name ${h.currentZoomLevel < h.zoomLevel ? "warning blinking" : h.total === -1 ? "error blinking" : ""}`, children: [
1032
1032
  h.featureStructure.aliasLayerName,
1033
1033
  " (",
1034
1034
  String(h.zoomLevel),
1035
1035
  "):"
1036
1036
  ] }) }),
1037
- /* @__PURE__ */ z(me, { className: "info", children: [
1038
- /* @__PURE__ */ z(me, { children: [
1037
+ /* @__PURE__ */ $(me, { className: "info", children: [
1038
+ /* @__PURE__ */ $(me, { children: [
1039
1039
  i,
1040
1040
  ": ",
1041
1041
  h.cache ?? 0
1042
1042
  ] }),
1043
- h.total > 0 && /* @__PURE__ */ z(me, { className: "spacer", children: [
1043
+ h.total > 0 && /* @__PURE__ */ $(me, { className: "spacer", children: [
1044
1044
  o,
1045
1045
  ": ",
1046
1046
  h.items,
@@ -1049,7 +1049,7 @@ const Go = ({ featureTypes: e, locale: n }) => {
1049
1049
  ] })
1050
1050
  ] })
1051
1051
  ] }, p)) : /* @__PURE__ */ l(me, { children: r }) }), [e]);
1052
- return /* @__PURE__ */ z(me, { className: "wfsContainer", children: [
1052
+ return /* @__PURE__ */ $(me, { className: "wfsContainer", children: [
1053
1053
  c,
1054
1054
  d
1055
1055
  ] });
@@ -1069,15 +1069,15 @@ const Go = ({ featureTypes: e, locale: n }) => {
1069
1069
  properties: {},
1070
1070
  geometry: {
1071
1071
  type: "Point",
1072
- coordinates: [Q.toDegrees(i.longitude), Q.toDegrees(i.latitude)]
1072
+ coordinates: [J.toDegrees(i.longitude), J.toDegrees(i.latitude)]
1073
1073
  }
1074
1074
  };
1075
1075
  }, Yn = (e, n, t) => {
1076
1076
  try {
1077
1077
  const i = Kn(e, n, t);
1078
1078
  return {
1079
- longitude: Q.toDegrees(i.longitude),
1080
- latitude: Q.toDegrees(i.latitude)
1079
+ longitude: J.toDegrees(i.longitude),
1080
+ latitude: J.toDegrees(i.latitude)
1081
1081
  };
1082
1082
  } catch {
1083
1083
  return;
@@ -1113,13 +1113,13 @@ const Go = ({ featureTypes: e, locale: n }) => {
1113
1113
  const { west: t, east: i, north: o, south: r } = e, { west: c, east: d, north: h, south: p } = n;
1114
1114
  return t >= c && i <= d && o <= h && r >= p;
1115
1115
  }, zo = (e, n) => Fr(e, gt(n)), Wo = (e) => {
1116
- const n = (Q.toDegrees(e.west) + Q.toDegrees(e.east)) / 2, t = (Q.toDegrees(e.south) + Q.toDegrees(e.north)) / 2;
1116
+ const n = (J.toDegrees(e.west) + J.toDegrees(e.east)) / 2, t = (J.toDegrees(e.south) + J.toDegrees(e.north)) / 2;
1117
1117
  return Br([n, t]);
1118
1118
  }, Uo = (e) => [
1119
- Q.toDegrees(e.west),
1120
- Q.toDegrees(e.south),
1121
- Q.toDegrees(e.east),
1122
- Q.toDegrees(e.north)
1119
+ J.toDegrees(e.west),
1120
+ J.toDegrees(e.south),
1121
+ J.toDegrees(e.east),
1122
+ J.toDegrees(e.north)
1123
1123
  ], jo = (e, n = 100) => {
1124
1124
  const t = e.scene, i = e.camera, o = t.mode, r = i.computeViewRectangle(t.globe.ellipsoid);
1125
1125
  if (!Jt(r) || !r) {
@@ -1134,7 +1134,7 @@ const Go = ({ featureTypes: e, locale: n }) => {
1134
1134
  return;
1135
1135
  }
1136
1136
  const d = c.latitude, h = c.longitude;
1137
- if (d < -Q.PI_OVER_TWO || d > Q.PI_OVER_TWO || h < -Q.PI || h > Q.PI) {
1137
+ if (d < -J.PI_OVER_TWO || d > J.PI_OVER_TWO || h < -J.PI || h > J.PI) {
1138
1138
  console.error("Invalid latitude or longitude values.");
1139
1139
  return;
1140
1140
  }
@@ -1148,16 +1148,16 @@ const Go = ({ featureTypes: e, locale: n }) => {
1148
1148
  const Z = i.pitch;
1149
1149
  if (Z === void 0)
1150
1150
  return;
1151
- const W = Math.PI / 4, q = Math.max(0, 1 - Math.abs(Z) / W);
1151
+ const z = Math.PI / 4, q = Math.max(0, 1 - Math.abs(Z) / z);
1152
1152
  m *= q, b *= q;
1153
1153
  const Y = 5e-4;
1154
1154
  m = Math.max(m, Y), b = Math.max(b, Y);
1155
- const k = c.latitude - m, X = c.latitude + m, G = c.longitude - b, K = c.longitude + b, se = Q.clamp(k, r.south, r.north), s = Q.clamp(X, r.south, r.north), a = Q.clamp(G, r.west, r.east), y = Q.clamp(K, r.west, r.east), u = Math.min(1, Z / Q.PI_OVER_TWO), v = r.north - (r.north - r.south) * u, g = Math.min(s, v);
1155
+ const k = c.latitude - m, X = c.latitude + m, G = c.longitude - b, K = c.longitude + b, se = J.clamp(k, r.south, r.north), s = J.clamp(X, r.south, r.north), a = J.clamp(G, r.west, r.east), y = J.clamp(K, r.west, r.east), u = Math.min(1, Z / J.PI_OVER_TWO), v = r.north - (r.north - r.south) * u, g = Math.min(s, v);
1156
1156
  return new je(
1157
- Q.negativePiToPi(a),
1158
- Q.clamp(se, -Q.PI_OVER_TWO, Q.PI_OVER_TWO),
1159
- Q.negativePiToPi(y),
1160
- Q.clamp(g, -Q.PI_OVER_TWO, Q.PI_OVER_TWO)
1157
+ J.negativePiToPi(a),
1158
+ J.clamp(se, -J.PI_OVER_TWO, J.PI_OVER_TWO),
1159
+ J.negativePiToPi(y),
1160
+ J.clamp(g, -J.PI_OVER_TWO, J.PI_OVER_TWO)
1161
1161
  );
1162
1162
  }, yt = 3, mt = "hasTransparency";
1163
1163
  function Ut(e, n, t, i, o) {
@@ -1482,7 +1482,7 @@ class qo {
1482
1482
  }
1483
1483
  }
1484
1484
  }
1485
- const Zo = /* @__PURE__ */ l("svg", { xmlns: "http://www.w3.org/2000/svg", enableBackground: "new 0 0 24 24", height: "24", width: "24", viewBox: "0 0 612 612", children: /* @__PURE__ */ z("g", { xmlns: "http://www.w3.org/2000/svg", children: [
1485
+ const Zo = /* @__PURE__ */ l("svg", { xmlns: "http://www.w3.org/2000/svg", enableBackground: "new 0 0 24 24", height: "24", width: "24", viewBox: "0 0 612 612", children: /* @__PURE__ */ $("g", { xmlns: "http://www.w3.org/2000/svg", children: [
1486
1486
  /* @__PURE__ */ l("path", { d: "M322.4,173.9l-129,16.2l-4.6,21.4l25.3,4.7c16.5,3.9,19.8,9.9,16.2,26.4l-41.5,195.3c-10.9,50.5,5.9,74.3,45.5,74.3 c30.7,0,66.3-14.2,82.5-33.6l4.9-23.4c-11.3,9.9-27.7,13.9-38.6,13.9c-15.5,0-21.1-10.9-17.1-30L322.4,173.9z" }),
1487
1487
  /* @__PURE__ */ l("circle", { cx: "270.1", cy: "56.3", r: "56.3" })
1488
1488
  ] }) }), Xo = ({ onClick: e }) => /* @__PURE__ */ l(me, { onClick: e, className: "mapLegendToggleContainer", children: /* @__PURE__ */ l(He, { icon: Zo, className: "mapLegendIcon" }) }), Jo = ({ legend: { legendImg: e, legendDoc: n, layer: t }, docText: i, imgText: o }) => {
@@ -1499,7 +1499,7 @@ const Zo = /* @__PURE__ */ l("svg", { xmlns: "http://www.w3.org/2000/svg", enabl
1499
1499
  typeof e == "string" && /* @__PURE__ */ l("a", { className: "legendAction", href: e, target: "_blank", rel: "noreferrer", children: o }),
1500
1500
  typeof n == "string" && /* @__PURE__ */ l("a", { className: "legendAction", href: n, target: "_blank", rel: "noreferrer", children: i })
1501
1501
  ], [e, o, n, i]);
1502
- return /* @__PURE__ */ z(me, { className: "mapLegend", children: [
1502
+ return /* @__PURE__ */ $(me, { className: "mapLegend", children: [
1503
1503
  c(),
1504
1504
  /* @__PURE__ */ l("img", { alt: "Map Legend", className: "legendImg", src: e, onClick: r }),
1505
1505
  /* @__PURE__ */ l(me, { className: "legendActionsContainer", children: d() })
@@ -1514,9 +1514,9 @@ const Zo = /* @__PURE__ */ l("svg", { xmlns: "http://www.w3.org/2000/svg", enabl
1514
1514
  noLegendsText: i = "No legends to display...",
1515
1515
  actionsTexts: o = { docText: "Docs", imgText: "View Image" },
1516
1516
  legends: r = []
1517
- }) => e ? /* @__PURE__ */ z(vi, { className: "mapLegendSidebarContainer", modal: !1, dismissible: !0, open: e, children: [
1517
+ }) => e ? /* @__PURE__ */ $(vi, { className: "mapLegendSidebarContainer", modal: !1, dismissible: !0, open: e, children: [
1518
1518
  /* @__PURE__ */ l(Ei, { className: "sidebarHeaderContainer", children: /* @__PURE__ */ l(Ci, { className: "sidebarTitle", children: t }) }),
1519
- /* @__PURE__ */ z(wi, { className: "sidebarContent", children: [
1519
+ /* @__PURE__ */ $(wi, { className: "sidebarContent", children: [
1520
1520
  /* @__PURE__ */ l(He, { onClick: n, className: "mapLegendCloseBtn", icon: { icon: "close", size: "small" } }),
1521
1521
  /* @__PURE__ */ l(Qo, { noLegendsText: i, legends: r, actionsTexts: o })
1522
1522
  ] })
@@ -1561,7 +1561,7 @@ class Fl extends Bn {
1561
1561
  }
1562
1562
  class Vl extends br {
1563
1563
  }
1564
- const Gl = ut, Hl = Lr, we = $e, $l = Fn, zl = Ot;
1564
+ const Gl = ut, Hl = Lr, be = $e, $l = Fn, zl = Ot;
1565
1565
  const ns = it(
1566
1566
  (e) => pt({
1567
1567
  mapContainer: {
@@ -1571,7 +1571,7 @@ const ns = it(
1571
1571
  }
1572
1572
  })
1573
1573
  ), is = (e) => {
1574
- const n = Ce(), { baseMaps: t } = e, [i, o] = F(" "), [r, c] = F(), d = ns();
1574
+ const n = we(), { baseMaps: t } = e, [i, o] = F(" "), [r, c] = F(), d = ns();
1575
1575
  N(() => {
1576
1576
  const p = t == null ? void 0 : t.maps.find((C) => C.isCurrent);
1577
1577
  p && (c(p), o(p.title !== void 0 ? p.title : " "));
@@ -1586,7 +1586,7 @@ const ns = it(
1586
1586
  }));
1587
1587
  }
1588
1588
  };
1589
- return /* @__PURE__ */ z(Ee, { children: [
1589
+ return /* @__PURE__ */ $(Ce, { children: [
1590
1590
  /* @__PURE__ */ l("label", { className: "mapLabel", children: i }),
1591
1591
  /* @__PURE__ */ l("ul", { className: "mapSelector", children: t == null ? void 0 : t.maps.map((p) => /* @__PURE__ */ l("li", { className: `mapContainer ${d.mapContainer} ${p === r ? "mapContainerSelected" : ""}`, children: /* @__PURE__ */ l(
1592
1592
  "img",
@@ -1608,34 +1608,34 @@ const ns = it(
1608
1608
  ] });
1609
1609
  };
1610
1610
  const rs = -1, os = (e) => {
1611
- const n = Ce(), [t, i] = F(we.SCENE2D), { sceneModes: o } = e, r = (c) => o.findIndex((d) => d === c) > rs;
1611
+ const n = we(), [t, i] = F(be.SCENE2D), { sceneModes: o } = e, r = (c) => o.findIndex((d) => d === c) > rs;
1612
1612
  return N(() => {
1613
1613
  i(n.scene.mode);
1614
- }, []), /* @__PURE__ */ z(Ee, { children: [
1615
- r(we.SCENE3D) && /* @__PURE__ */ l(
1614
+ }, []), /* @__PURE__ */ $(Ce, { children: [
1615
+ r(be.SCENE3D) && /* @__PURE__ */ l(
1616
1616
  He,
1617
1617
  {
1618
- icon: /* @__PURE__ */ l("div", { className: `mapViewIcon ${t === we.SCENE3D ? "mapViewCurrent" : ""}`, children: /* @__PURE__ */ l("svg", { width: "100%", height: "100%", viewBox: "0 0 64 64", children: /* @__PURE__ */ l("path", { d: "m 32.401392,4.9330437 c -7.087603,0 -14.096095,2.884602 -19.10793,7.8946843 -5.0118352,5.010083 -7.9296167,11.987468 -7.9296167,19.072999 0,7.085531 2.9177815,14.097848 7.9296167,19.107931 4.837653,4.835961 11.541408,7.631372 18.374354,7.82482 0.05712,0.01231 0.454119,0.139729 0.454119,0.139729 l 0.03493,-0.104797 c 0.08246,7.84e-4 0.162033,0.03493 0.244525,0.03493 0.08304,0 0.161515,-0.03414 0.244526,-0.03493 l 0.03493,0.104797 c 0,0 0.309474,-0.129487 0.349323,-0.139729 6.867765,-0.168094 13.582903,-2.965206 18.444218,-7.82482 2.558195,-2.5573 4.551081,-5.638134 5.903547,-8.977584 1.297191,-3.202966 2.02607,-6.661489 2.02607,-10.130347 0,-6.237309 -2.366261,-12.31219 -6.322734,-17.116794 -0.0034,-0.02316 0.0049,-0.04488 0,-0.06986 -0.01733,-0.08745 -0.104529,-0.278855 -0.104797,-0.279458 -5.31e-4,-0.0012 -0.522988,-0.628147 -0.523984,-0.62878 -3.47e-4,-2.2e-4 -0.133444,-0.03532 -0.244525,-0.06987 C 51.944299,13.447603 51.751076,13.104317 51.474391,12.827728 46.462556,7.8176457 39.488996,4.9330437 32.401392,4.9330437 z m -2.130866,3.5281554 0.104797,9.6762289 c -4.111695,-0.08361 -7.109829,-0.423664 -9.257041,-0.943171 1.198093,-2.269271 2.524531,-4.124404 3.91241,-5.414496 2.167498,-2.0147811 3.950145,-2.8540169 5.239834,-3.3185619 z m 2.794579,0 c 1.280302,0.4754953 3.022186,1.3285948 5.065173,3.2486979 1.424667,1.338973 2.788862,3.303645 3.982275,5.728886 -2.29082,0.403367 -5.381258,0.621049 -8.942651,0.698645 L 33.065105,8.4611991 z m 5.728886,0.2445256 c 4.004072,1.1230822 7.793098,3.1481363 10.724195,6.0782083 0.03468,0.03466 0.07033,0.06991 0.104797,0.104797 -0.45375,0.313891 -0.923054,0.663002 -1.956205,1.082899 -0.647388,0.263114 -1.906242,0.477396 -2.829511,0.733577 -1.382296,-2.988132 -3.027146,-5.368585 -4.785716,-7.0213781 -0.422866,-0.397432 -0.835818,-0.6453247 -1.25756,-0.9781032 z m -15.33525,0.7685092 c -0.106753,0.09503 -0.207753,0.145402 -0.31439,0.244526 -1.684973,1.5662541 -3.298068,3.8232211 -4.680919,6.5672591 -0.343797,-0.14942 -1.035052,-0.273198 -1.292493,-0.419186 -0.956528,-0.542427 -1.362964,-1.022024 -1.537018,-1.292493 -0.0241,-0.03745 -0.01868,-0.0401 -0.03493,-0.06986 2.250095,-2.163342 4.948824,-3.869984 7.859752,-5.0302421 z m -9.641296,7.0912431 c 0.464973,0.571618 0.937729,1.169056 1.956205,1.746612 0.349907,0.198425 1.107143,0.335404 1.537018,0.523983 -1.20166,3.172984 -1.998037,7.051901 -2.165798,11.772162 C 14.256557,30.361384 12.934823,30.161483 12.280427,29.90959 10.644437,29.279855 9.6888882,28.674891 9.1714586,28.267775 8.6540289,27.860658 8.6474751,27.778724 8.6474751,27.778724 l -0.069864,0.03493 C 9.3100294,23.691285 11.163248,19.798527 13.817445,16.565477 z m 37.552149,0.523984 c 2.548924,3.289983 4.265057,7.202594 4.890513,11.318043 -0.650428,0.410896 -1.756876,1.001936 -3.563088,1.606882 -1.171552,0.392383 -3.163859,0.759153 -4.960377,1.117832 -0.04367,-4.752703 -0.784809,-8.591423 -1.88634,-11.807094 0.917574,-0.263678 2.170552,-0.486495 2.864443,-0.76851 1.274693,-0.518066 2.003942,-1.001558 2.654849,-1.467153 z m -31.439008,2.619917 c 2.487341,0.672766 5.775813,1.137775 10.479669,1.222628 l 0.104797,10.689263 0,0.03493 0,0.733577 c -5.435005,-0.09059 -9.512219,-0.519044 -12.610536,-1.117831 0.106127,-4.776683 0.879334,-8.55791 2.02607,-11.562569 z m 23.264866,0.31439 c 1.073459,3.067541 1.833795,6.821314 1.816476,11.702298 -3.054474,0.423245 -7.062018,0.648559 -11.702298,0.698644 l 0,-0.838373 -0.104796,-10.654331 c 4.082416,-0.0864 7.404468,-0.403886 9.990618,-0.908238 z M 8.2632205,30.922625 c 0.7558676,0.510548 1.5529563,1.013339 3.0041715,1.57195 0.937518,0.360875 2.612202,0.647642 3.91241,0.978102 0.112814,3.85566 0.703989,7.107756 1.606883,9.920754 -1.147172,-0.324262 -2.644553,-0.640648 -3.423359,-0.978102 -1.516688,-0.657177 -2.386627,-1.287332 -2.864443,-1.71168 -0.477816,-0.424347 -0.489051,-0.489051 -0.489051,-0.489051 L 9.8002387,40.319395 C 8.791691,37.621767 8.1584238,34.769583 8.1584238,31.900727 c 0,-0.330153 0.090589,-0.648169 0.1047967,-0.978102 z m 48.2763445,0.419186 c 0.0047,0.188973 0.06986,0.36991 0.06986,0.558916 0,2.938869 -0.620228,5.873558 -1.676747,8.628261 -0.07435,0.07583 -0.06552,0.07411 -0.454119,0.349323 -0.606965,0.429857 -1.631665,1.042044 -3.318562,1.676747 -1.208528,0.454713 -3.204964,0.850894 -5.135038,1.25756 0.84593,-2.765726 1.41808,-6.005357 1.606883,-9.815957 2.232369,-0.413371 4.483758,-0.840201 5.938479,-1.327425 1.410632,-0.472457 2.153108,-0.89469 2.96924,-1.327425 z m -38.530252,2.864443 c 3.208141,0.56697 7.372279,0.898588 12.575603,0.978103 l 0.174662,9.885821 c -4.392517,-0.06139 -8.106722,-0.320566 -10.863925,-0.803441 -1.051954,-2.664695 -1.692909,-6.043794 -1.88634,-10.060483 z m 26.793022,0.31439 c -0.246298,3.923551 -0.877762,7.263679 -1.816476,9.885822 -2.561957,0.361954 -5.766249,0.560708 -9.431703,0.62878 l -0.174661,-9.815957 c 4.491734,-0.04969 8.334769,-0.293032 11.42284,-0.698645 z M 12.035901,44.860585 c 0.09977,0.04523 0.105535,0.09465 0.209594,0.139729 1.337656,0.579602 3.441099,1.058072 5.589157,1.537018 1.545042,3.399208 3.548524,5.969402 5.589157,7.789888 -3.034411,-1.215537 -5.871615,-3.007978 -8.174142,-5.309699 -1.245911,-1.245475 -2.271794,-2.662961 -3.213766,-4.156936 z m 40.69605,0 c -0.941972,1.493975 -1.967855,2.911461 -3.213765,4.156936 -2.74253,2.741571 -6.244106,4.696717 -9.955686,5.868615 0.261347,-0.241079 0.507495,-0.394491 0.768509,-0.663713 1.674841,-1.727516 3.320792,-4.181056 4.645987,-7.265904 2.962447,-0.503021 5.408965,-1.122293 7.161107,-1.781544 0.284034,-0.106865 0.337297,-0.207323 0.593848,-0.31439 z m -31.404076,2.305527 c 2.645807,0.376448 5.701178,0.649995 9.466635,0.698645 l 0.139729,7.789888 c -1.38739,-0.480844 -3.316218,-1.29837 -5.659022,-3.388427 -1.388822,-1.238993 -2.743668,-3.0113 -3.947342,-5.100106 z m 20.365491,0.104797 c -1.04872,2.041937 -2.174337,3.779068 -3.353494,4.995309 -1.853177,1.911459 -3.425515,2.82679 -4.611055,3.353494 l -0.139729,-7.789887 c 3.13091,-0.05714 5.728238,-0.278725 8.104278,-0.558916 z" }) }) }),
1618
+ icon: /* @__PURE__ */ l("div", { className: `mapViewIcon ${t === be.SCENE3D ? "mapViewCurrent" : ""}`, children: /* @__PURE__ */ l("svg", { width: "100%", height: "100%", viewBox: "0 0 64 64", children: /* @__PURE__ */ l("path", { d: "m 32.401392,4.9330437 c -7.087603,0 -14.096095,2.884602 -19.10793,7.8946843 -5.0118352,5.010083 -7.9296167,11.987468 -7.9296167,19.072999 0,7.085531 2.9177815,14.097848 7.9296167,19.107931 4.837653,4.835961 11.541408,7.631372 18.374354,7.82482 0.05712,0.01231 0.454119,0.139729 0.454119,0.139729 l 0.03493,-0.104797 c 0.08246,7.84e-4 0.162033,0.03493 0.244525,0.03493 0.08304,0 0.161515,-0.03414 0.244526,-0.03493 l 0.03493,0.104797 c 0,0 0.309474,-0.129487 0.349323,-0.139729 6.867765,-0.168094 13.582903,-2.965206 18.444218,-7.82482 2.558195,-2.5573 4.551081,-5.638134 5.903547,-8.977584 1.297191,-3.202966 2.02607,-6.661489 2.02607,-10.130347 0,-6.237309 -2.366261,-12.31219 -6.322734,-17.116794 -0.0034,-0.02316 0.0049,-0.04488 0,-0.06986 -0.01733,-0.08745 -0.104529,-0.278855 -0.104797,-0.279458 -5.31e-4,-0.0012 -0.522988,-0.628147 -0.523984,-0.62878 -3.47e-4,-2.2e-4 -0.133444,-0.03532 -0.244525,-0.06987 C 51.944299,13.447603 51.751076,13.104317 51.474391,12.827728 46.462556,7.8176457 39.488996,4.9330437 32.401392,4.9330437 z m -2.130866,3.5281554 0.104797,9.6762289 c -4.111695,-0.08361 -7.109829,-0.423664 -9.257041,-0.943171 1.198093,-2.269271 2.524531,-4.124404 3.91241,-5.414496 2.167498,-2.0147811 3.950145,-2.8540169 5.239834,-3.3185619 z m 2.794579,0 c 1.280302,0.4754953 3.022186,1.3285948 5.065173,3.2486979 1.424667,1.338973 2.788862,3.303645 3.982275,5.728886 -2.29082,0.403367 -5.381258,0.621049 -8.942651,0.698645 L 33.065105,8.4611991 z m 5.728886,0.2445256 c 4.004072,1.1230822 7.793098,3.1481363 10.724195,6.0782083 0.03468,0.03466 0.07033,0.06991 0.104797,0.104797 -0.45375,0.313891 -0.923054,0.663002 -1.956205,1.082899 -0.647388,0.263114 -1.906242,0.477396 -2.829511,0.733577 -1.382296,-2.988132 -3.027146,-5.368585 -4.785716,-7.0213781 -0.422866,-0.397432 -0.835818,-0.6453247 -1.25756,-0.9781032 z m -15.33525,0.7685092 c -0.106753,0.09503 -0.207753,0.145402 -0.31439,0.244526 -1.684973,1.5662541 -3.298068,3.8232211 -4.680919,6.5672591 -0.343797,-0.14942 -1.035052,-0.273198 -1.292493,-0.419186 -0.956528,-0.542427 -1.362964,-1.022024 -1.537018,-1.292493 -0.0241,-0.03745 -0.01868,-0.0401 -0.03493,-0.06986 2.250095,-2.163342 4.948824,-3.869984 7.859752,-5.0302421 z m -9.641296,7.0912431 c 0.464973,0.571618 0.937729,1.169056 1.956205,1.746612 0.349907,0.198425 1.107143,0.335404 1.537018,0.523983 -1.20166,3.172984 -1.998037,7.051901 -2.165798,11.772162 C 14.256557,30.361384 12.934823,30.161483 12.280427,29.90959 10.644437,29.279855 9.6888882,28.674891 9.1714586,28.267775 8.6540289,27.860658 8.6474751,27.778724 8.6474751,27.778724 l -0.069864,0.03493 C 9.3100294,23.691285 11.163248,19.798527 13.817445,16.565477 z m 37.552149,0.523984 c 2.548924,3.289983 4.265057,7.202594 4.890513,11.318043 -0.650428,0.410896 -1.756876,1.001936 -3.563088,1.606882 -1.171552,0.392383 -3.163859,0.759153 -4.960377,1.117832 -0.04367,-4.752703 -0.784809,-8.591423 -1.88634,-11.807094 0.917574,-0.263678 2.170552,-0.486495 2.864443,-0.76851 1.274693,-0.518066 2.003942,-1.001558 2.654849,-1.467153 z m -31.439008,2.619917 c 2.487341,0.672766 5.775813,1.137775 10.479669,1.222628 l 0.104797,10.689263 0,0.03493 0,0.733577 c -5.435005,-0.09059 -9.512219,-0.519044 -12.610536,-1.117831 0.106127,-4.776683 0.879334,-8.55791 2.02607,-11.562569 z m 23.264866,0.31439 c 1.073459,3.067541 1.833795,6.821314 1.816476,11.702298 -3.054474,0.423245 -7.062018,0.648559 -11.702298,0.698644 l 0,-0.838373 -0.104796,-10.654331 c 4.082416,-0.0864 7.404468,-0.403886 9.990618,-0.908238 z M 8.2632205,30.922625 c 0.7558676,0.510548 1.5529563,1.013339 3.0041715,1.57195 0.937518,0.360875 2.612202,0.647642 3.91241,0.978102 0.112814,3.85566 0.703989,7.107756 1.606883,9.920754 -1.147172,-0.324262 -2.644553,-0.640648 -3.423359,-0.978102 -1.516688,-0.657177 -2.386627,-1.287332 -2.864443,-1.71168 -0.477816,-0.424347 -0.489051,-0.489051 -0.489051,-0.489051 L 9.8002387,40.319395 C 8.791691,37.621767 8.1584238,34.769583 8.1584238,31.900727 c 0,-0.330153 0.090589,-0.648169 0.1047967,-0.978102 z m 48.2763445,0.419186 c 0.0047,0.188973 0.06986,0.36991 0.06986,0.558916 0,2.938869 -0.620228,5.873558 -1.676747,8.628261 -0.07435,0.07583 -0.06552,0.07411 -0.454119,0.349323 -0.606965,0.429857 -1.631665,1.042044 -3.318562,1.676747 -1.208528,0.454713 -3.204964,0.850894 -5.135038,1.25756 0.84593,-2.765726 1.41808,-6.005357 1.606883,-9.815957 2.232369,-0.413371 4.483758,-0.840201 5.938479,-1.327425 1.410632,-0.472457 2.153108,-0.89469 2.96924,-1.327425 z m -38.530252,2.864443 c 3.208141,0.56697 7.372279,0.898588 12.575603,0.978103 l 0.174662,9.885821 c -4.392517,-0.06139 -8.106722,-0.320566 -10.863925,-0.803441 -1.051954,-2.664695 -1.692909,-6.043794 -1.88634,-10.060483 z m 26.793022,0.31439 c -0.246298,3.923551 -0.877762,7.263679 -1.816476,9.885822 -2.561957,0.361954 -5.766249,0.560708 -9.431703,0.62878 l -0.174661,-9.815957 c 4.491734,-0.04969 8.334769,-0.293032 11.42284,-0.698645 z M 12.035901,44.860585 c 0.09977,0.04523 0.105535,0.09465 0.209594,0.139729 1.337656,0.579602 3.441099,1.058072 5.589157,1.537018 1.545042,3.399208 3.548524,5.969402 5.589157,7.789888 -3.034411,-1.215537 -5.871615,-3.007978 -8.174142,-5.309699 -1.245911,-1.245475 -2.271794,-2.662961 -3.213766,-4.156936 z m 40.69605,0 c -0.941972,1.493975 -1.967855,2.911461 -3.213765,4.156936 -2.74253,2.741571 -6.244106,4.696717 -9.955686,5.868615 0.261347,-0.241079 0.507495,-0.394491 0.768509,-0.663713 1.674841,-1.727516 3.320792,-4.181056 4.645987,-7.265904 2.962447,-0.503021 5.408965,-1.122293 7.161107,-1.781544 0.284034,-0.106865 0.337297,-0.207323 0.593848,-0.31439 z m -31.404076,2.305527 c 2.645807,0.376448 5.701178,0.649995 9.466635,0.698645 l 0.139729,7.789888 c -1.38739,-0.480844 -3.316218,-1.29837 -5.659022,-3.388427 -1.388822,-1.238993 -2.743668,-3.0113 -3.947342,-5.100106 z m 20.365491,0.104797 c -1.04872,2.041937 -2.174337,3.779068 -3.353494,4.995309 -1.853177,1.911459 -3.425515,2.82679 -4.611055,3.353494 l -0.139729,-7.789887 c 3.13091,-0.05714 5.728238,-0.278725 8.104278,-0.558916 z" }) }) }),
1619
1619
  onClick: () => {
1620
- n.scene.morphTo3D(), i(we.SCENE3D);
1620
+ n.scene.morphTo3D(), i(be.SCENE3D);
1621
1621
  }
1622
1622
  }
1623
1623
  ),
1624
- r(we.SCENE2D) && /* @__PURE__ */ l(
1624
+ r(be.SCENE2D) && /* @__PURE__ */ l(
1625
1625
  He,
1626
1626
  {
1627
- icon: /* @__PURE__ */ l("div", { className: `mapViewIcon ${t === we.SCENE2D ? "mapViewCurrent" : ""}`, children: /* @__PURE__ */ l("svg", { width: "100%", height: "100%", viewBox: "0 0 64 64", children: /* @__PURE__ */ l("path", { d: "m 2.9825053,17.550598 0,1.368113 0,26.267766 0,1.368113 1.36811,0 54.9981397,0 1.36811,0 0,-1.368113 0,-26.267766 0,-1.368113 -1.36811,0 -54.9981397,0 -1.36811,0 z m 2.73623,2.736226 10.3292497,0 0,10.466063 -10.3292497,0 0,-10.466063 z m 13.0654697,0 11.69737,0 0,10.466063 -11.69737,0 0,-10.466063 z m 14.43359,0 11.69737,0 0,10.466063 -11.69737,0 0,-10.466063 z m 14.43359,0 10.32926,0 0,10.466063 -10.32926,0 0,-10.466063 z m -41.9326497,13.202288 10.3292497,0 0,10.329252 -10.3292497,0 0,-10.329252 z m 13.0654697,0 11.69737,0 0,10.329252 -11.69737,0 0,-10.329252 z m 14.43359,0 11.69737,0 0,10.329252 -11.69737,0 0,-10.329252 z m 14.43359,0 10.32926,0 0,10.329252 -10.32926,0 0,-10.329252 z" }) }) }),
1627
+ icon: /* @__PURE__ */ l("div", { className: `mapViewIcon ${t === be.SCENE2D ? "mapViewCurrent" : ""}`, children: /* @__PURE__ */ l("svg", { width: "100%", height: "100%", viewBox: "0 0 64 64", children: /* @__PURE__ */ l("path", { d: "m 2.9825053,17.550598 0,1.368113 0,26.267766 0,1.368113 1.36811,0 54.9981397,0 1.36811,0 0,-1.368113 0,-26.267766 0,-1.368113 -1.36811,0 -54.9981397,0 -1.36811,0 z m 2.73623,2.736226 10.3292497,0 0,10.466063 -10.3292497,0 0,-10.466063 z m 13.0654697,0 11.69737,0 0,10.466063 -11.69737,0 0,-10.466063 z m 14.43359,0 11.69737,0 0,10.466063 -11.69737,0 0,-10.466063 z m 14.43359,0 10.32926,0 0,10.466063 -10.32926,0 0,-10.466063 z m -41.9326497,13.202288 10.3292497,0 0,10.329252 -10.3292497,0 0,-10.329252 z m 13.0654697,0 11.69737,0 0,10.329252 -11.69737,0 0,-10.329252 z m 14.43359,0 11.69737,0 0,10.329252 -11.69737,0 0,-10.329252 z m 14.43359,0 10.32926,0 0,10.329252 -10.32926,0 0,-10.329252 z" }) }) }),
1628
1628
  onClick: () => {
1629
- n.scene.morphTo2D(), i(we.SCENE2D);
1629
+ n.scene.morphTo2D(), i(be.SCENE2D);
1630
1630
  }
1631
1631
  }
1632
1632
  ),
1633
- r(we.COLUMBUS_VIEW) && /* @__PURE__ */ l(
1633
+ r(be.COLUMBUS_VIEW) && /* @__PURE__ */ l(
1634
1634
  He,
1635
1635
  {
1636
- icon: /* @__PURE__ */ l("div", { className: `mapViewIcon ${t === we.COLUMBUS_VIEW ? "mapViewCurrent" : ""}`, children: /* @__PURE__ */ l("svg", { width: "100%", height: "100%", viewBox: "0 0 64 64", children: /* @__PURE__ */ l("path", { d: "m 14.723969,17.675598 -0.340489,0.817175 -11.1680536,26.183638 -0.817175,1.872692 2.076986,0 54.7506996,0 2.07698,0 -0.81717,-1.872692 -11.16805,-26.183638 -0.34049,-0.817175 -0.91933,0 -32.414586,0 -0.919322,0 z m 1.838643,2.723916 6.196908,0 -2.928209,10.418977 -7.729111,0 4.460412,-10.418977 z m 9.02297,0 4.903049,0 0,10.418977 -7.831258,0 2.928209,-10.418977 z m 7.626964,0 5.584031,0 2.62176,10.418977 -8.205791,0 0,-10.418977 z m 8.410081,0 5.51593,0 4.46042,10.418977 -7.38863,0 -2.58772,-10.418977 z m -30.678091,13.142892 8.103649,0 -2.89416,10.282782 -9.6018026,0 4.3923136,-10.282782 z m 10.929711,0 8.614384,0 0,10.282782 -11.508544,0 2.89416,-10.282782 z m 11.338299,0 8.852721,0 2.58772,10.282782 -11.440441,0 0,-10.282782 z m 11.678781,0 7.86531,0 4.39231,10.282782 -9.6699,0 -2.58772,-10.282782 z" }) }) }),
1636
+ icon: /* @__PURE__ */ l("div", { className: `mapViewIcon ${t === be.COLUMBUS_VIEW ? "mapViewCurrent" : ""}`, children: /* @__PURE__ */ l("svg", { width: "100%", height: "100%", viewBox: "0 0 64 64", children: /* @__PURE__ */ l("path", { d: "m 14.723969,17.675598 -0.340489,0.817175 -11.1680536,26.183638 -0.817175,1.872692 2.076986,0 54.7506996,0 2.07698,0 -0.81717,-1.872692 -11.16805,-26.183638 -0.34049,-0.817175 -0.91933,0 -32.414586,0 -0.919322,0 z m 1.838643,2.723916 6.196908,0 -2.928209,10.418977 -7.729111,0 4.460412,-10.418977 z m 9.02297,0 4.903049,0 0,10.418977 -7.831258,0 2.928209,-10.418977 z m 7.626964,0 5.584031,0 2.62176,10.418977 -8.205791,0 0,-10.418977 z m 8.410081,0 5.51593,0 4.46042,10.418977 -7.38863,0 -2.58772,-10.418977 z m -30.678091,13.142892 8.103649,0 -2.89416,10.282782 -9.6018026,0 4.3923136,-10.282782 z m 10.929711,0 8.614384,0 0,10.282782 -11.508544,0 2.89416,-10.282782 z m 11.338299,0 8.852721,0 2.58772,10.282782 -11.440441,0 0,-10.282782 z m 11.678781,0 7.86531,0 4.39231,10.282782 -9.6699,0 -2.58772,-10.282782 z" }) }) }),
1637
1637
  onClick: () => {
1638
- n.scene.morphToColumbusView(), i(we.COLUMBUS_VIEW);
1638
+ n.scene.morphToColumbusView(), i(be.COLUMBUS_VIEW);
1639
1639
  }
1640
1640
  }
1641
1641
  )
@@ -1652,7 +1652,7 @@ const Mt = "ic_settings_24px", ss = (e) => {
1652
1652
  return document.addEventListener("click", C, !1), () => {
1653
1653
  document.removeEventListener("click", C, !1);
1654
1654
  };
1655
- }), /* @__PURE__ */ z(Ee, { children: [
1655
+ }), /* @__PURE__ */ $(Ce, { children: [
1656
1656
  /* @__PURE__ */ l(
1657
1657
  He,
1658
1658
  {
@@ -1662,7 +1662,7 @@ const Mt = "ic_settings_24px", ss = (e) => {
1662
1662
  }
1663
1663
  }
1664
1664
  ),
1665
- n && /* @__PURE__ */ l("div", { className: "settingsDialogPortal", ref: c, children: /* @__PURE__ */ z(
1665
+ n && /* @__PURE__ */ l("div", { className: "settingsDialogPortal", ref: c, children: /* @__PURE__ */ $(
1666
1666
  xn,
1667
1667
  {
1668
1668
  open: n,
@@ -1671,10 +1671,10 @@ const Mt = "ic_settings_24px", ss = (e) => {
1671
1671
  },
1672
1672
  children: [
1673
1673
  /* @__PURE__ */ l(Dn, { children: d }),
1674
- /* @__PURE__ */ z(In, { children: [
1674
+ /* @__PURE__ */ $(In, { children: [
1675
1675
  /* @__PURE__ */ l("h4", { className: "sectionLabel", children: h }),
1676
1676
  /* @__PURE__ */ l(me, { className: "mapScenesContainer", children: /* @__PURE__ */ l(os, { sceneModes: i }) }),
1677
- /* @__PURE__ */ l(me, { className: "baseMapsContainer", children: o && /* @__PURE__ */ z(Ee, { children: [
1677
+ /* @__PURE__ */ l(me, { className: "baseMapsContainer", children: o && /* @__PURE__ */ $(Ce, { children: [
1678
1678
  /* @__PURE__ */ l("h4", { className: "sectionLabel", children: p }),
1679
1679
  /* @__PURE__ */ l(is, { baseMaps: o })
1680
1680
  ] }) })
@@ -1685,7 +1685,7 @@ const Mt = "ic_settings_24px", ss = (e) => {
1685
1685
  ] });
1686
1686
  };
1687
1687
  const as = (e) => {
1688
- const n = Ce(), { enableCompass: t = !0, enableZoomControls: i = !1, lockCompassNavigation: o = !1, locale: r = { DIRECTION: "ltr" } } = e;
1688
+ const n = we(), { enableCompass: t = !0, enableZoomControls: i = !1, lockCompassNavigation: o = !1, locale: r = { DIRECTION: "ltr" } } = e;
1689
1689
  return N(() => {
1690
1690
  if (typeof ie(n, "cesiumNavigation") > "u") {
1691
1691
  n.extend(Vr, {
@@ -1699,7 +1699,7 @@ const as = (e) => {
1699
1699
  }, [n, t, i, r.DIRECTION, o]), null;
1700
1700
  };
1701
1701
  const ls = (e) => {
1702
- const n = Ce(), t = Pe(null), [i, o] = F({ x: 0, y: 0 });
1702
+ const n = we(), t = Pe(null), [i, o] = F({ x: 0, y: 0 });
1703
1703
  return N(() => {
1704
1704
  n.screenSpaceEventHandler.setInputAction((r) => {
1705
1705
  if (r != null && r.endPosition) {
@@ -1780,8 +1780,8 @@ const _t = [
1780
1780
  const p = e.scene.canvas.clientWidth, C = e.scene.canvas.clientHeight, m = e.scene.camera.getPickRay(new Ne(p / 2 | 0, C - 1)), b = e.scene.camera.getPickRay(new Ne(1 + p / 2 | 0, C - 1)), P = e.scene.globe, S = P.pick(m, e.scene), H = P.pick(b, e.scene);
1781
1781
  if (!S || !H)
1782
1782
  return;
1783
- const Z = P.ellipsoid.cartesianToCartographic(S), W = P.ellipsoid.cartesianToCartographic(H);
1784
- d.setEndPoints(Z, W);
1783
+ const Z = P.ellipsoid.cartesianToCartographic(S), z = P.ellipsoid.cartesianToCartographic(H);
1784
+ d.setEndPoints(Z, z);
1785
1785
  const q = d.surfaceDistance, Y = 100;
1786
1786
  let k;
1787
1787
  for (let X = _t.length - 1; !ht(k) && X >= 0; --X)
@@ -1792,7 +1792,7 @@ const _t = [
1792
1792
  }
1793
1793
  t(c);
1794
1794
  }, ds = (e) => {
1795
- const n = Ce(), [t, i] = F({
1795
+ const n = we(), [t, i] = F({
1796
1796
  barWidth: void 0,
1797
1797
  distanceLabel: void 0,
1798
1798
  lastLegendUpdate: -1
@@ -1812,7 +1812,7 @@ const _t = [
1812
1812
  };
1813
1813
  }, [n, e.locale, t]);
1814
1814
  const o = (r) => 5 + (125 - r) / 2;
1815
- return /* @__PURE__ */ l("div", { className: "scalePosition", children: ht(t.barWidth) && /* @__PURE__ */ z(Ee, { children: [
1815
+ return /* @__PURE__ */ l("div", { className: "scalePosition", children: ht(t.barWidth) && /* @__PURE__ */ $(Ce, { children: [
1816
1816
  /* @__PURE__ */ l("div", { className: "scale-tracker-label", children: /* @__PURE__ */ l("bdi", { children: t.distanceLabel }) }),
1817
1817
  /* @__PURE__ */ l(
1818
1818
  "div",
@@ -1853,17 +1853,17 @@ const gn = (e, n) => {
1853
1853
  }
1854
1854
  return t;
1855
1855
  }, hs = ({ locale: e = void 0, valueBy: n = "RENDERED_TILES" }) => {
1856
- const t = Ce(), i = rt(), [o, r] = F(1), c = us(1, t), d = xe(() => {
1856
+ const t = we(), i = rt(), [o, r] = F(1), c = us(1, t), d = xe(() => {
1857
1857
  const m = t.camera, b = 0.5;
1858
1858
  let P = 0;
1859
1859
  switch (t.scene.mode) {
1860
- case we.SCENE3D:
1860
+ case be.SCENE3D:
1861
1861
  P = t.scene.mapProjection.ellipsoid.cartesianToCartographic(m.positionWC).height;
1862
1862
  break;
1863
- case we.SCENE2D:
1863
+ case be.SCENE2D:
1864
1864
  P = (m.frustum.right - m.frustum.left) * b;
1865
1865
  break;
1866
- case we.COLUMBUS_VIEW:
1866
+ case be.COLUMBUS_VIEW:
1867
1867
  P = m.position.z;
1868
1868
  break;
1869
1869
  default:
@@ -1879,7 +1879,7 @@ const gn = (e, n) => {
1879
1879
  t.scene.globe._surface.forEachRenderedTile(function(b) {
1880
1880
  m = Math.max(m, b.level);
1881
1881
  }), r(m), i.setViewState && i.setViewState((b) => ({ ...b, currentZoomLevel: m }));
1882
- }, [t]), C = be(
1882
+ }, [t]), C = fe(
1883
1883
  () => ({
1884
1884
  CALCULATION: d,
1885
1885
  RENDERED_TILES: h
@@ -1897,13 +1897,13 @@ const gn = (e, n) => {
1897
1897
  console.log('CESIUM camera "moveEnd"(from zoom tracker) remove listener failed', b);
1898
1898
  }
1899
1899
  };
1900
- }, [t, C]), /* @__PURE__ */ z("div", { className: "zoomLevel", children: [
1900
+ }, [t, C]), /* @__PURE__ */ $("div", { className: "zoomLevel", children: [
1901
1901
  /* @__PURE__ */ l("div", { className: "zoomLevelValue", children: o }),
1902
1902
  /* @__PURE__ */ l("div", { className: "zoomLevelLabel", children: ie(e, "ZOOM_LABEL") ?? "zoom" })
1903
1903
  ] });
1904
1904
  };
1905
1905
  const ms = () => {
1906
- const e = Ce();
1906
+ const e = we();
1907
1907
  return /* @__PURE__ */ l("div", { className: "zoom-buttons-container", children: [
1908
1908
  { onClick: () => e.camera.zoomIn(), iconPath: "M48 20h-18v-18h-10v18h-18v10h18v18h10v-18h18z" },
1909
1909
  { onClick: () => e.camera.zoomOut(), iconPath: "M2 20h46v10h-46z" }
@@ -1936,7 +1936,7 @@ class Wl extends _r {
1936
1936
  ce(this, "layersManager");
1937
1937
  }
1938
1938
  }
1939
- const jt = Ke(null), gs = jt.Provider, Ce = () => {
1939
+ const jt = Ke(null), gs = jt.Provider, we = () => {
1940
1940
  const e = ze(jt);
1941
1941
  if (e === null)
1942
1942
  throw new Error("map context is null, please check the provider");
@@ -1947,8 +1947,8 @@ const jt = Ke(null), gs = jt.Provider, Ce = () => {
1947
1947
  throw new Error("map context viewstate is null, please check the provider");
1948
1948
  return n;
1949
1949
  }, Ul = (e) => {
1950
- var L, T, O, B, R, j, oe, fe;
1951
- const n = Pe(null), [t, i] = F(), [o, r] = F(), [c, d] = F(), [h, p] = F(), [C, m] = F(), [b, P] = F(), [S, H] = F(), [Z, W] = F(!1), [q, Y] = F(!1), [k, X] = F(), G = Pe(), [K, se] = F(), [s, a] = F([]), [y, u] = F(), [v, g] = F(!1), w = Pe(), [f, M] = F(void 0), [D, x] = F(!1), [_, I] = F(), [A, re] = F(), ae = be(() => Z || q, [Z, q]), [$, te] = F();
1950
+ var L, T, O, B, R, j, oe, ye;
1951
+ const n = Pe(null), [t, i] = F(), [o, r] = F(), [c, d] = F(), [h, p] = F(), [C, m] = F(), [b, P] = F(), [S, H] = F(), [Z, z] = F(!1), [q, Y] = F(!1), [k, X] = F(), G = Pe(), [K, se] = F(), [s, a] = F([]), [y, u] = F(), [v, g] = F(!1), w = Pe(), [f, M] = F(void 0), [D, x] = F(!1), [_, I] = F(), [A, re] = F(), ae = fe(() => Z || q, [Z, q]), [W, te] = F();
1952
1952
  N(() => {
1953
1953
  te({
1954
1954
  currentZoomLevel: -1,
@@ -1966,17 +1966,17 @@ const jt = Ke(null), gs = jt.Provider, Ce = () => {
1966
1966
  sceneModePicker: !1,
1967
1967
  imageryProvider: !1,
1968
1968
  ...e
1969
- }, pe = (U, J, V, ee, ge) => {
1970
- const de = t.container, le = de.clientWidth, ye = de.clientHeight, Le = ee + ge;
1969
+ }, pe = (U, Q, V, ee, ge) => {
1970
+ const de = t.container, le = de.clientWidth, ve = de.clientHeight, Le = ee + ge;
1971
1971
  return {
1972
1972
  left: `${le - U < V ? U - (V - (le - U)) : U}px`,
1973
- top: `${ye - J < Le ? J - (Le - (ye - J)) : J}px`
1973
+ top: `${ve - Q < Le ? Q - (Le - (ve - Q)) : Q}px`
1974
1974
  };
1975
1975
  }, ke = xe(
1976
1976
  (U) => {
1977
1977
  if (n.current !== null) {
1978
- const J = n.current.cesiumElement, V = { x: U.offsetX, y: U.offsetY };
1979
- g(!1), M(V), I(Yn(J, V.x, V.y)), g(!0), w.current = U;
1978
+ const Q = n.current.cesiumElement, V = { x: U.offsetX, y: U.offsetY };
1979
+ g(!1), M(V), I(Yn(Q, V.x, V.y)), g(!0), w.current = U;
1980
1980
  }
1981
1981
  },
1982
1982
  [n]
@@ -1984,39 +1984,39 @@ const jt = Ke(null), gs = jt.Provider, Ce = () => {
1984
1984
  N(() => {
1985
1985
  var U;
1986
1986
  if (n.current !== null) {
1987
- const J = n.current.cesiumElement;
1988
- e.imageryContextMenu && (J.scene.canvas.removeEventListener("contextmenu", ke), J.scene.canvas.addEventListener("contextmenu", ke));
1987
+ const Q = n.current.cesiumElement;
1988
+ e.imageryContextMenu && (Q.scene.canvas.removeEventListener("contextmenu", ke), Q.scene.canvas.addEventListener("contextmenu", ke));
1989
1989
  }
1990
1990
  i((U = n.current) == null ? void 0 : U.cesiumElement);
1991
1991
  }, [n, e.imageryContextMenu]);
1992
- const Me = be(() => {
1992
+ const Me = fe(() => {
1993
1993
  var U;
1994
1994
  if (t)
1995
1995
  return {
1996
- mapViewer: Object.assign(t, {
1996
+ mapViewer: t.layersManager ? t : Object.assign(t, {
1997
1997
  layersManager: new qo(
1998
1998
  t,
1999
1999
  (U = e.legends) == null ? void 0 : U.mapLegendsExtractor,
2000
2000
  () => {
2001
- var J;
2002
- a((J = t.layersManager) == null ? void 0 : J.legendsList);
2001
+ var V;
2002
+ a((V = t.layersManager) == null ? void 0 : V.legendsList);
2003
2003
  },
2004
2004
  e.layerManagerFootprintMetaFieldPath,
2005
- $ == null ? void 0 : $.shouldOptimizedTileRequests
2005
+ W == null ? void 0 : W.shouldOptimizedTileRequests
2006
2006
  )
2007
2007
  }),
2008
- viewState: $,
2008
+ viewState: W,
2009
2009
  setViewState: te
2010
2010
  };
2011
- }, [e.useOptimizedTileRequests, e.legends, e.layerManagerFootprintMetaFieldPath, t, $ == null ? void 0 : $.shouldOptimizedTileRequests]);
2011
+ }, [e.useOptimizedTileRequests, e.legends, e.layerManagerFootprintMetaFieldPath, t, W]);
2012
2012
  N(() => {
2013
2013
  se(
2014
- e.sceneModes ?? [we.SCENE2D, we.SCENE3D, we.COLUMBUS_VIEW]
2014
+ e.sceneModes ?? [be.SCENE2D, be.SCENE3D, be.COLUMBUS_VIEW]
2015
2015
  );
2016
2016
  }, [e.sceneModes]), N(() => {
2017
- var J, V;
2017
+ var Q, V;
2018
2018
  u(e.baseMaps);
2019
- const U = (J = e.baseMaps) == null ? void 0 : J.maps.find((ee) => ee.isCurrent);
2019
+ const U = (Q = e.baseMaps) == null ? void 0 : Q.maps.find((ee) => ee.isCurrent);
2020
2020
  U && t && ((V = t.layersManager) == null || V.setBaseMapLayers(U));
2021
2021
  }, [e.baseMaps, t]), N(() => {
2022
2022
  r(e.projection ?? Ae.WGS84);
@@ -2033,7 +2033,7 @@ const jt = Ke(null), gs = jt.Provider, Ce = () => {
2033
2033
  }, [e.showCompass]), N(() => {
2034
2034
  H(e.showLoadingProgress ?? !0);
2035
2035
  }, [e.showLoadingProgress]), N(() => {
2036
- var J;
2036
+ var Q;
2037
2037
  const U = () => {
2038
2038
  if (t === void 0)
2039
2039
  return {
@@ -2084,8 +2084,8 @@ const jt = Ke(null), gs = jt.Provider, Ce = () => {
2084
2084
  G.current = ee;
2085
2085
  }
2086
2086
  }), S && (t.scene.globe.tileLoadProgressEvent.addEventListener(function() {
2087
- t.scene.globe.tilesLoaded ? W(!1) : W(!0);
2088
- }), (J = t.layersManager) == null || J.addDataLayerUpdatedListener(() => {
2087
+ t.scene.globe.tilesLoaded ? z(!1) : z(!0);
2088
+ }), (Q = t.layersManager) == null || Q.addDataLayerUpdatedListener(() => {
2089
2089
  var ee;
2090
2090
  let V = !1;
2091
2091
  (ee = t.layersManager) == null || ee.dataLayerList.forEach((ge) => {
@@ -2098,9 +2098,9 @@ const jt = Ke(null), gs = jt.Provider, Ce = () => {
2098
2098
  }, [t]), N(() => {
2099
2099
  const U = () => {
2100
2100
  if (t && G.current) {
2101
- const J = G.current;
2101
+ const Q = G.current;
2102
2102
  t.camera.flyTo({
2103
- destination: _e.fromDegrees(J.position.longitude, J.position.latitude, J.position.height),
2103
+ destination: _e.fromDegrees(Q.position.longitude, Q.position.latitude, Q.position.height),
2104
2104
  duration: 0
2105
2105
  });
2106
2106
  }
@@ -2114,23 +2114,23 @@ const jt = Ke(null), gs = jt.Provider, Ce = () => {
2114
2114
  }
2115
2115
  };
2116
2116
  }, [t]), N(() => {
2117
- const U = e.zoom, J = e.center;
2118
- t && ht(U) && kr(J) && t.camera.flyTo({
2119
- destination: _e.fromDegrees(J[0], J[1], Fo(U)),
2117
+ const U = e.zoom, Q = e.center;
2118
+ t && ht(U) && kr(Q) && t.camera.flyTo({
2119
+ destination: _e.fromDegrees(Q[0], Q[1], Fo(U)),
2120
2120
  duration: 0
2121
2121
  });
2122
2122
  }, [e.zoom, e.center, t]), N(() => {
2123
2123
  re(e.displayZoomButtons ?? !0);
2124
2124
  }, [e.displayZoomButtons]);
2125
- const ve = xe(() => t && nr(
2126
- /* @__PURE__ */ z(Ee, { children: [
2125
+ const Ee = xe(() => t && nr(
2126
+ /* @__PURE__ */ $(Ce, { children: [
2127
2127
  S && ae && /* @__PURE__ */ l(bi, { style: { position: "absolute", top: 0, height: "10px", zIndex: 4 } }),
2128
- /* @__PURE__ */ z(me, { className: "sideToolsContainer", children: [
2128
+ /* @__PURE__ */ $(me, { className: "sideToolsContainer", children: [
2129
2129
  e.debugPanel && /* @__PURE__ */ l(Vo, { locale: k, children: e.debugPanel.wfs && /* @__PURE__ */ l(Go, { locale: k, featureTypes: [] }) }),
2130
2130
  /* @__PURE__ */ l(ss, { sceneModes: K, baseMaps: y, locale: k }),
2131
2131
  /* @__PURE__ */ l(Xo, { onClick: () => x(!D) })
2132
2132
  ] }),
2133
- /* @__PURE__ */ z(me, { className: "toolsContainer", children: [
2133
+ /* @__PURE__ */ $(me, { className: "toolsContainer", children: [
2134
2134
  c && /* @__PURE__ */ l(ls, { projection: o }),
2135
2135
  h && /* @__PURE__ */ l(hs, { locale: k, valueBy: "RENDERED_TILES" }),
2136
2136
  C && /* @__PURE__ */ l(ds, { locale: k }),
@@ -2140,7 +2140,7 @@ const jt = Ke(null), gs = jt.Provider, Ce = () => {
2140
2140
  ] }),
2141
2141
  document.querySelector(".cesium-viewer")
2142
2142
  ), [y, k, t, o, K, c, C, D, ae]);
2143
- return /* @__PURE__ */ l(ir, { className: "viewer", full: !0, ref: n, ...ue, children: /* @__PURE__ */ z(gs, { value: Me, children: [
2143
+ return /* @__PURE__ */ l(ir, { className: "viewer", full: !0, ref: n, ...ue, children: /* @__PURE__ */ $(gs, { value: Me, children: [
2144
2144
  /* @__PURE__ */ l(
2145
2145
  es,
2146
2146
  {
@@ -2153,7 +2153,7 @@ const jt = Ke(null), gs = jt.Provider, Ce = () => {
2153
2153
  }
2154
2154
  ),
2155
2155
  e.children,
2156
- ve(),
2156
+ Ee(),
2157
2157
  e.imageryContextMenu && v && f && _ && Oe.cloneElement(e.imageryContextMenu, {
2158
2158
  data: (R = t == null ? void 0 : t.layersManager) == null ? void 0 : R.findLayerByPOI(
2159
2159
  f.x,
@@ -2170,7 +2170,7 @@ const jt = Ke(null), gs = jt.Provider, Ce = () => {
2170
2170
  f.y,
2171
2171
  ((j = e.imageryContextMenuSize) == null ? void 0 : j.width) ?? yn,
2172
2172
  ((oe = e.imageryContextMenuSize) == null ? void 0 : oe.height) ?? fn,
2173
- ((fe = e.imageryContextMenuSize) == null ? void 0 : fe.dynamicHeightIncrement) ?? ps
2173
+ ((ye = e.imageryContextMenuSize) == null ? void 0 : ye.dynamicHeightIncrement) ?? ps
2174
2174
  ),
2175
2175
  size: e.imageryContextMenuSize ?? {
2176
2176
  height: fn,
@@ -2183,7 +2183,7 @@ const jt = Ke(null), gs = jt.Provider, Ce = () => {
2183
2183
  })
2184
2184
  ] }) });
2185
2185
  }, fs = 0, jl = (e) => {
2186
- const n = Ce();
2186
+ const n = we();
2187
2187
  return /* @__PURE__ */ l(
2188
2188
  rr,
2189
2189
  {
@@ -2223,25 +2223,25 @@ const jt = Ke(null), gs = jt.Provider, Ce = () => {
2223
2223
  wn(o.geometry);
2224
2224
  }) : wn(i)), /* @__PURE__ */ l(or, { data: i, ...t });
2225
2225
  }, vt = (e) => {
2226
- const { meta: n, ...t } = e, i = Ce();
2226
+ const { meta: n, ...t } = e, i = we();
2227
2227
  return Tn(() => {
2228
2228
  var o;
2229
2229
  (o = i.layersManager) == null || o.addMetaToLayer(n, n.searchLayerPredicate);
2230
2230
  }, [n, i]), /* @__PURE__ */ l(sr, { ...t });
2231
2231
  }, Yl = (e) => {
2232
- const { options: n, ...t } = e, i = Ce(), { viewState: o } = rt(), r = o.shouldOptimizedTileRequests ? new Zn(n, i) : new Ht(n);
2232
+ const { options: n, ...t } = e, i = we(), { viewState: o } = rt(), r = fe(() => o.shouldOptimizedTileRequests ? new Zn(n, i) : new Ht(n), [o.shouldOptimizedTileRequests]);
2233
2233
  return /* @__PURE__ */ l(vt, { ...t, imageryProvider: r });
2234
2234
  }, ql = (e) => {
2235
- const { options: n, ...t } = e, i = Ce(), { viewState: o } = rt(), r = o.shouldOptimizedTileRequests ? new Xn(n, i) : new $t(n);
2235
+ const { options: n, ...t } = e, i = we(), { viewState: o } = rt(), r = fe(() => o.shouldOptimizedTileRequests ? new Xn(n, i) : new $t(n), [o.shouldOptimizedTileRequests]);
2236
2236
  return /* @__PURE__ */ l(vt, { ...t, imageryProvider: r });
2237
2237
  }, Zl = (e) => {
2238
- const { options: n, ...t } = e, i = Ce(), { viewState: o } = rt(), r = o.shouldOptimizedTileRequests ? new qn(n, i) : new Gt(n);
2238
+ const { options: n, ...t } = e, i = we(), { viewState: o } = rt(), r = fe(() => o.shouldOptimizedTileRequests ? new qn(n, i) : new Gt(n), [o.shouldOptimizedTileRequests]);
2239
2239
  return /* @__PURE__ */ l(vt, { ...t, imageryProvider: r });
2240
2240
  }, Xl = (e) => {
2241
2241
  const { options: n, ...t } = e;
2242
2242
  return /* @__PURE__ */ l(vt, { ...t, imageryProvider: new xr(n) });
2243
2243
  }, ys = "#FFFF00", Jl = (e) => {
2244
- const { options: n, meta: t, visualizationHandler: i } = e, { url: o, featureType: r, style: c, pageSize: d, zoomLevel: h, maxCacheSize: p, keyField: C, labeling: m } = n, { color: b, hover: P } = c, S = Ce(), H = rt(), Z = Pe(H.viewState), W = Pe(/* @__PURE__ */ new Map()), q = Pe(/* @__PURE__ */ new Set()), Y = Pe(0), [k, X] = F(t), G = be(() => Ge.fromCssColorString(P ?? "#24AEE9").withAlpha(0.5), [P]), K = be(() => `wfs_${r}_${rn()}`, [r]), se = Pe(!1);
2244
+ const { options: n, meta: t, visualizationHandler: i } = e, { url: o, featureType: r, style: c, pageSize: d, zoomLevel: h, maxCacheSize: p, keyField: C, labeling: m } = n, { color: b, hover: P } = c, S = we(), H = rt(), Z = Pe(H.viewState), z = Pe(/* @__PURE__ */ new Map()), q = Pe(/* @__PURE__ */ new Set()), Y = Pe(0), [k, X] = F(t), G = fe(() => Ge.fromCssColorString(P ?? "#24AEE9").withAlpha(0.5), [P]), K = fe(() => `wfs_${r}_${rn()}`, [r]), se = Pe(!1);
2245
2245
  N(() => {
2246
2246
  Z.current = H.viewState;
2247
2247
  }, [H.viewState]);
@@ -2249,10 +2249,10 @@ const jt = Ke(null), gs = jt.Provider, Ce = () => {
2249
2249
  const T = [], O = t.featureStructure;
2250
2250
  if (O && O.fields)
2251
2251
  for (const R of O.fields) {
2252
- const { fieldName: j, aliasFieldName: oe } = R, fe = oe, U = L[j] ?? "N/A";
2252
+ const { fieldName: j, aliasFieldName: oe } = R, ye = oe, U = L[j] ?? "N/A";
2253
2253
  T.push(`
2254
2254
  <tr>
2255
- <td><strong>${fe}:</strong></td>
2255
+ <td><strong>${ye}:</strong></td>
2256
2256
  <td>${U}</td>
2257
2257
  </tr>
2258
2258
  `);
@@ -2282,8 +2282,8 @@ const jt = Ke(null), gs = jt.Provider, Ce = () => {
2282
2282
  const oe = tn.wgs84ToWindowCoordinates(S.scene, j);
2283
2283
  if (!oe)
2284
2284
  return { entity: R, distance: Number.MAX_VALUE };
2285
- const fe = L.x - oe.x, U = L.y - oe.y, J = Math.sqrt(fe * fe + U * U);
2286
- return { entity: R, distance: J };
2285
+ const ye = L.x - oe.x, U = L.y - oe.y, Q = Math.sqrt(ye * ye + U * U);
2286
+ return { entity: R, distance: Q };
2287
2287
  });
2288
2288
  return B.sort((R, j) => j.distance - R.distance), B[0].entity;
2289
2289
  }, g = (L) => {
@@ -2334,16 +2334,16 @@ const jt = Ke(null), gs = jt.Provider, Ce = () => {
2334
2334
  }, O = L.split(`
2335
2335
  `), B = (m == null ? void 0 : m.fontSize) ?? T.fontSize, R = (m == null ? void 0 : m.padding) ?? T.padding, j = B + 2;
2336
2336
  _.clearRect(0, 0, x.width, x.height), _.font = `${B}px ${(m == null ? void 0 : m.fontName) ?? T.fontName}`;
2337
- const oe = Math.max(...O.map((J) => _.measureText(J).width)), fe = document.createElement("canvas");
2338
- fe.width = oe + R * 2, fe.height = j * O.length + R * 2;
2339
- const U = fe.getContext("2d");
2340
- return U.font = `${B}px ${(m == null ? void 0 : m.fontName) ?? T.fontName}`, U.fillStyle = (m == null ? void 0 : m.fillStyle) ?? T.fillStyle, U.strokeStyle = (m == null ? void 0 : m.strokeStyle) ?? T.strokeStyle, U.lineWidth = (m == null ? void 0 : m.lineWidth) ?? T.lineWidth, O.forEach((J, V) => {
2337
+ const oe = Math.max(...O.map((Q) => _.measureText(Q).width)), ye = document.createElement("canvas");
2338
+ ye.width = oe + R * 2, ye.height = j * O.length + R * 2;
2339
+ const U = ye.getContext("2d");
2340
+ return U.font = `${B}px ${(m == null ? void 0 : m.fontName) ?? T.fontName}`, U.fillStyle = (m == null ? void 0 : m.fillStyle) ?? T.fillStyle, U.strokeStyle = (m == null ? void 0 : m.strokeStyle) ?? T.strokeStyle, U.lineWidth = (m == null ? void 0 : m.lineWidth) ?? T.lineWidth, O.forEach((Q, V) => {
2341
2341
  const ee = R + (V + 1) * j - 4;
2342
- U.strokeText(J, R, ee), U.fillText(J, R, ee);
2342
+ U.strokeText(Q, R, ee), U.fillText(Q, R, ee);
2343
2343
  }), {
2344
- dataURL: fe.toDataURL(),
2345
- width: fe.width,
2346
- height: fe.height
2344
+ dataURL: ye.toDataURL(),
2345
+ width: ye.width,
2346
+ height: ye.height
2347
2347
  };
2348
2348
  }, A = (L) => m == null ? void 0 : m.text.pattern.replace(/\$\{([^}]+)\}/g, (O, B) => {
2349
2349
  const R = m.text.fields.find((oe) => oe.name === B);
@@ -2381,13 +2381,13 @@ const jt = Ke(null), gs = jt.Provider, Ce = () => {
2381
2381
  },
2382
2382
  { concurrency: w(L.length, "cpu") }
2383
2383
  ), O;
2384
- }, ae = (L, T) => Array.from(W.current.values()).filter((O) => JSON.stringify(O.parentBBox) !== JSON.stringify(L)).reduce(
2384
+ }, ae = (L, T) => Array.from(z.current.values()).filter((O) => JSON.stringify(O.parentBBox) !== JSON.stringify(L)).reduce(
2385
2385
  (O, B) => {
2386
2386
  const R = zo(T, B.bbox);
2387
2387
  return R > O.distance ? { id: B.id, key: B.bbox.join(","), distance: R } : O;
2388
2388
  },
2389
2389
  { id: "", key: "", distance: -1 / 0 }
2390
- ), $ = async (L) => {
2390
+ ), W = async (L) => {
2391
2391
  const T = [];
2392
2392
  await bt(
2393
2393
  s.entities.values,
@@ -2410,18 +2410,18 @@ const jt = Ke(null), gs = jt.Provider, Ce = () => {
2410
2410
  const O = ae(L, T);
2411
2411
  if (O.id === "")
2412
2412
  break;
2413
- await $(O.id), O.key && W.current.delete(O.key);
2413
+ await W(O.id), O.key && z.current.delete(O.key);
2414
2414
  }
2415
2415
  }, ue = async (L, T, O, B) => {
2416
2416
  let R = "", j = "", oe = [];
2417
- if (L.numberReturned && L.numberReturned !== 0 && (L.bbox && (j = L.bbox.join(","), W.current.has(j) || (R = rn())), oe = await re(L.features, R), L.bbox && oe.length > 0 && !W.current.has(j) && W.current.set(j, {
2417
+ if (L.numberReturned && L.numberReturned !== 0 && (L.bbox && (j = L.bbox.join(","), z.current.has(j) || (R = rn())), oe = await re(L.features, R), L.bbox && oe.length > 0 && !z.current.has(j) && z.current.set(j, {
2418
2418
  id: R,
2419
2419
  parentBBox: T,
2420
2420
  bbox: L.bbox,
2421
2421
  timestamp: L.timeStamp,
2422
2422
  items: oe.length
2423
2423
  })), f(L.numberReturned !== 0 ? O + L.numberReturned : L.numberMatched, L.numberMatched), oe.length === 0) {
2424
- L.numberReturned && L.numberReturned !== 0 ? pe(++Y.current * d) : (Y.current = 0, ve(
2424
+ L.numberReturned && L.numberReturned !== 0 ? pe(++Y.current * d) : (Y.current = 0, Ee(
2425
2425
  S,
2426
2426
  s,
2427
2427
  s.entities.values.map((U) => U.id),
@@ -2430,11 +2430,11 @@ const jt = Ke(null), gs = jt.Provider, Ce = () => {
2430
2430
  return;
2431
2431
  }
2432
2432
  await te(T, B);
2433
- const fe = {
2433
+ const ye = {
2434
2434
  type: "FeatureCollection",
2435
2435
  features: oe
2436
2436
  };
2437
- await s.process(fe, { describe: a }), S.scene.requestRender(), ve(
2437
+ await s.process(ye, { describe: a }), S.scene.requestRender(), Ee(
2438
2438
  S,
2439
2439
  s,
2440
2440
  oe.map((U) => U.id),
@@ -2476,9 +2476,9 @@ const jt = Ke(null), gs = jt.Provider, Ce = () => {
2476
2476
  return {
2477
2477
  type: "Polygon",
2478
2478
  coordinates: [((ee = V.polygon.hierarchy) == null ? void 0 : ee.getValue(Qe.now())).positions.map((le) => {
2479
- const ye = Re.fromCartesian(le), Le = new Re(
2480
- Q.toDegrees(ye.longitude),
2481
- Q.toDegrees(ye.latitude),
2479
+ const ve = Re.fromCartesian(le), Le = new Re(
2480
+ J.toDegrees(ve.longitude),
2481
+ J.toDegrees(ve.latitude),
2482
2482
  R ? 500 : void 0
2483
2483
  //viewer.scene.sampleHeight(Cartographic.fromCartesian(position))
2484
2484
  );
@@ -2489,13 +2489,13 @@ const jt = Ke(null), gs = jt.Provider, Ce = () => {
2489
2489
  const le = tn.wgs84ToWindowCoordinates(V, ee);
2490
2490
  if (!le)
2491
2491
  return null;
2492
- const ye = le.x + ge, Le = le.y + de, Ye = new Ne(ye, le.y), We = new Ne(le.x, Le), Be = V.camera.pickEllipsoid(Ye, V.globe.ellipsoid), Fe = V.camera.pickEllipsoid(We, V.globe.ellipsoid);
2492
+ const ve = le.x + ge, Le = le.y + de, Ye = new Ne(ve, le.y), We = new Ne(le.x, Le), Be = V.camera.pickEllipsoid(Ye, V.globe.ellipsoid), Fe = V.camera.pickEllipsoid(We, V.globe.ellipsoid);
2493
2493
  if (!Be || !Fe)
2494
2494
  return null;
2495
2495
  const qe = _e.distance(ee, Be), Ve = _e.distance(ee, Fe);
2496
2496
  return { widthMeters: qe, heightMeters: Ve };
2497
- }, fe = (V, ee, ge) => {
2498
- const de = zt.WGS84, le = V.latitude, ye = V.longitude, Le = Math.PI / 180 * de.maximumRadius, Ye = Math.PI / 180 * de.maximumRadius, We = ge / 2 / Le, Be = ee / 2 / Ye, Fe = le + We, qe = le - We, Ve = ye + Be, Ze = ye - Be;
2497
+ }, ye = (V, ee, ge) => {
2498
+ const de = zt.WGS84, le = V.latitude, ve = V.longitude, Le = Math.PI / 180 * de.maximumRadius, Ye = Math.PI / 180 * de.maximumRadius, We = ge / 2 / Le, Be = ee / 2 / Ye, Fe = le + We, qe = le - We, Ve = ve + Be, Ze = ve - Be;
2499
2499
  return {
2500
2500
  type: "Polygon",
2501
2501
  coordinates: [
@@ -2509,25 +2509,25 @@ const jt = Ke(null), gs = jt.Provider, Ce = () => {
2509
2509
  ]
2510
2510
  ]
2511
2511
  };
2512
- }, U = (V, ee) => on(V) / on(ee), J = [];
2512
+ }, U = (V, ee) => on(V) / on(ee), Q = [];
2513
2513
  if (T == null || T.entities.values.forEach((V) => {
2514
2514
  var ee, ge;
2515
2515
  if (B && m && R)
2516
2516
  try {
2517
2517
  const de = gt(B), le = sn(j(V), de);
2518
2518
  if (le) {
2519
- const ye = (ee = V.properties) == null ? void 0 : ee.label.getValue(Qe.now()), Le = Gr(le, {
2519
+ const ve = (ee = V.properties) == null ? void 0 : ee.label.getValue(Qe.now()), Le = Gr(le, {
2520
2520
  properties: {
2521
- label: ye
2521
+ label: ve
2522
2522
  }
2523
- }), Ye = { width: ye.width, height: ye.height }, [We, Be, Fe = 0] = Le.geometry.coordinates, qe = _e.fromDegrees(We, Be, Fe), Ve = oe(L.scene, qe, Ye.width, Ye.height);
2523
+ }), Ye = { width: ve.width, height: ve.height }, [We, Be, Fe = 0] = Le.geometry.coordinates, qe = _e.fromDegrees(We, Be, Fe), Ve = oe(L.scene, qe, Ye.width, Ye.height);
2524
2524
  if (Ve) {
2525
- const Ze = fe({ longitude: We, latitude: Be }, Ve.widthMeters, Ve.heightMeters), Et = sn(le, {
2525
+ const Ze = ye({ longitude: We, latitude: Be }, Ve.widthMeters, Ve.heightMeters), Et = sn(le, {
2526
2526
  type: "Feature",
2527
2527
  properties: {},
2528
2528
  geometry: Ze
2529
2529
  });
2530
- U(Et == null ? void 0 : Et.geometry, Ze) > 0.7 && J.push(Le);
2530
+ U(Et == null ? void 0 : Et.geometry, Ze) > 0.7 && Q.push(Le);
2531
2531
  }
2532
2532
  }
2533
2533
  } catch {
@@ -2548,11 +2548,11 @@ const jt = Ke(null), gs = jt.Provider, Ce = () => {
2548
2548
  clampToGround: !0,
2549
2549
  width: 4
2550
2550
  })), V.billboard)) {
2551
- const de = (ge = V.position) == null ? void 0 : ge.getValue(Qe.now()), le = Re.fromCartesian(de), ye = new Re(
2551
+ const de = (ge = V.position) == null ? void 0 : ge.getValue(Qe.now()), le = Re.fromCartesian(de), ve = new Re(
2552
2552
  le.longitude,
2553
2553
  le.latitude,
2554
2554
  R ? 500 : L.scene.sampleHeight(Re.fromCartesian(de))
2555
- ), Le = _e.fromRadians(ye.longitude, ye.latitude, ye.height);
2555
+ ), Le = _e.fromRadians(ve.longitude, ve.latitude, ve.height);
2556
2556
  V.position = Le, V.billboard = new It({
2557
2557
  image: "data:image/svg+xml;base64," + btoa(`
2558
2558
  <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16">
@@ -2571,7 +2571,7 @@ const jt = Ke(null), gs = jt.Provider, Ce = () => {
2571
2571
  const V = new en(`${m == null ? void 0 : m.dataSourcePrefix}${T.name}`);
2572
2572
  L.dataSources.add(V), V.load({
2573
2573
  type: "FeatureCollection",
2574
- features: J
2574
+ features: Q
2575
2575
  }).then((ee) => {
2576
2576
  ee == null || ee.entities.values.forEach((ge) => {
2577
2577
  var de;
@@ -2585,12 +2585,12 @@ const jt = Ke(null), gs = jt.Provider, Ce = () => {
2585
2585
  });
2586
2586
  });
2587
2587
  }
2588
- }, ve = (L, T, O, B) => {
2588
+ }, Ee = (L, T, O, B) => {
2589
2589
  i ? i(L, T, O, B) : Me(L, T, O, B);
2590
2590
  };
2591
2591
  return N(() => {
2592
2592
  const L = S.dataSources.getByName(K)[0];
2593
- L && ve(S, L, [], void 0);
2593
+ L && Ee(S, L, [], void 0);
2594
2594
  }, [S.scene.mode]), N(() => {
2595
2595
  S.layersManager && S.layersManager.dataLayerList.length > 0 && S.layersManager.findDataLayerById(t.id) !== void 0 && S.layersManager.addMetaToDataLayer(k);
2596
2596
  }, [k]), N(() => {
@@ -2605,7 +2605,7 @@ const jt = Ke(null), gs = jt.Provider, Ce = () => {
2605
2605
  const T = new Dr(S.scene.canvas);
2606
2606
  return g(T), Z.current.currentZoomLevel > 0 && (pe(), se.current = !0), () => {
2607
2607
  var O;
2608
- ie(S, "_cesiumWidget") !== void 0 && (q.current.clear(), W.current.clear(), S.dataSources.remove(S.dataSources.getByName(`${m == null ? void 0 : m.dataSourcePrefix}${s.name}`)[0]), S.dataSources.remove(s, !0), (O = S.layersManager) == null || O.removeDataLayer(t.id), S.scene.camera.moveEnd.removeEventListener(L), T.removeInputAction(At.MOUSE_MOVE));
2608
+ ie(S, "_cesiumWidget") !== void 0 && (q.current.clear(), z.current.clear(), S.dataSources.remove(S.dataSources.getByName(`${m == null ? void 0 : m.dataSourcePrefix}${s.name}`)[0]), S.dataSources.remove(s, !0), (O = S.layersManager) == null || O.removeDataLayer(t.id), S.scene.camera.moveEnd.removeEventListener(L), T.removeInputAction(At.MOUSE_MOVE));
2609
2609
  };
2610
2610
  }, []), null;
2611
2611
  }, vs = (e) => /* @__PURE__ */ l(ar, { ...e }), Ql = (e) => /* @__PURE__ */ l(kn, { ...e }), Es = (e) => /* @__PURE__ */ l(kn, { ...e }), Cs = (e) => /* @__PURE__ */ l(lr, { ...e }), ws = (e) => /* @__PURE__ */ l(cr, { ...e }), bs = (e) => /* @__PURE__ */ l(dr, { ...e }), Ls = (e) => /* @__PURE__ */ l(ur, { ...e });
@@ -3025,7 +3025,7 @@ var Ue = function() {
3025
3025
  this.startDrawingPolyshape(!1, a);
3026
3026
  }, i.prototype.startDrawingPolyshape = function(s, a) {
3027
3027
  this.startDrawing(function() {
3028
- v.remove(f), D.remove(), x.destroy(), g.setVisible(!1), W(u);
3028
+ v.remove(f), D.remove(), x.destroy(), g.setVisible(!1), z(u);
3029
3029
  });
3030
3030
  var y = this, u = this._scene, v = u.primitives, g = this._tooltip, w = s ? 3 : 2, f;
3031
3031
  s ? f = new Ue.PolygonPrimitive(a) : f = new Ue.PolylinePrimitive(a), f.asynchronous = !1, v.add(f);
@@ -3053,7 +3053,7 @@ var Ue = function() {
3053
3053
  if (M.length < w + 2)
3054
3054
  return;
3055
3055
  var A = u.camera.pickEllipsoid(I, e);
3056
- A && (W(u), y.stopDrawing(), typeof a.callback == "function" && (M.length - 1, a.callback(M)));
3056
+ A && (z(u), y.stopDrawing(), typeof a.callback == "function" && (M.length - 1, a.callback(M)));
3057
3057
  }
3058
3058
  }, E.ScreenSpaceEventType.LEFT_DOUBLE_CLICK);
3059
3059
  };
@@ -3068,13 +3068,13 @@ var Ue = function() {
3068
3068
  function Z(s) {
3069
3069
  s && (s.canvas.style.cursor = "crosshair");
3070
3070
  }
3071
- function W(s) {
3071
+ function z(s) {
3072
3072
  s && (s.canvas.style.cursor = "");
3073
3073
  }
3074
3074
  i.prototype.startDrawingExtent = function(a) {
3075
3075
  var a = G(a, r);
3076
3076
  this.startDrawing(function() {
3077
- f != null && v.remove(f), M != null && M.remove(), D.destroy(), g.setVisible(!1), W(u);
3077
+ f != null && v.remove(f), M != null && M.remove(), D.destroy(), g.setVisible(!1), z(u);
3078
3078
  });
3079
3079
  var y = this, u = this._scene, v = this._scene.primitives, g = this._tooltip, w = null, f = null, M = null, D = new E.ScreenSpaceEventHandler(u.canvas);
3080
3080
  Z(u);
@@ -3171,34 +3171,34 @@ var Ue = function() {
3171
3171
  s.setEdited(this);
3172
3172
  var v = s._scene, g = this;
3173
3173
  if (this._markers == null) {
3174
- let A = function($, te) {
3175
- var ue = $ - 1 < 0 ? te.length - 1 : $ - 1;
3176
- ue < f.countBillboards() && (f.getBillboard(ue).position = ae(ue)), ue = $, ue < f.countBillboards() && (f.getBillboard(ue).position = ae(ue));
3174
+ let A = function(W, te) {
3175
+ var ue = W - 1 < 0 ? te.length - 1 : W - 1;
3176
+ ue < f.countBillboards() && (f.getBillboard(ue).position = ae(ue)), ue = W, ue < f.countBillboards() && (f.getBillboard(ue).position = ae(ue));
3177
3177
  }, re = function() {
3178
3178
  g.executeListeners({
3179
3179
  name: "onEdited",
3180
3180
  positions: g.positions
3181
3181
  });
3182
- }, ae = function($) {
3182
+ }, ae = function(W) {
3183
3183
  var te = g.positions;
3184
3184
  return e.cartographicToCartesian(
3185
3185
  new E.EllipsoidGeodesic(
3186
- e.cartesianToCartographic(te[$]),
3187
- e.cartesianToCartographic(te[$ < te.length - 1 ? $ + 1 : 0])
3186
+ e.cartesianToCartographic(te[W]),
3187
+ e.cartesianToCartographic(te[W < te.length - 1 ? W + 1 : 0])
3188
3188
  ).interpolateUsingFraction(0.5)
3189
3189
  );
3190
3190
  };
3191
3191
  var w = new i.BillboardGroup(s, P), f = new i.BillboardGroup(s, S), M = {
3192
3192
  dragHandlers: {
3193
- onDrag: function($, te) {
3194
- g.positions[$] = te, A($, g.positions), g._createPrimitive = !0;
3193
+ onDrag: function(W, te) {
3194
+ g.positions[W] = te, A(W, g.positions), g._createPrimitive = !0;
3195
3195
  },
3196
- onDragEnd: function($, te) {
3196
+ onDragEnd: function(W, te) {
3197
3197
  g._createPrimitive = !0, re();
3198
3198
  }
3199
3199
  },
3200
- onDoubleClick: function($) {
3201
- g.positions.length < 4 || (g.positions.splice($, 1), g._createPrimitive = !0, w.removeBillboard($), f.removeBillboard($), A($, g.positions), re());
3200
+ onDoubleClick: function(W) {
3201
+ g.positions.length < 4 || (g.positions.splice(W, 1), g._createPrimitive = !0, w.removeBillboard(W), f.removeBillboard(W), A(W, g.positions), re());
3202
3202
  },
3203
3203
  tooltip: function() {
3204
3204
  if (g.positions.length > 3)
@@ -3210,13 +3210,13 @@ var Ue = function() {
3210
3210
  D.push(ae(x));
3211
3211
  var I = {
3212
3212
  dragHandlers: {
3213
- onDragStart: function($, te) {
3214
- this.index = $ + 1, g.positions.splice(this.index, 0, te), g._createPrimitive = !0;
3213
+ onDragStart: function(W, te) {
3214
+ this.index = W + 1, g.positions.splice(this.index, 0, te), g._createPrimitive = !0;
3215
3215
  },
3216
- onDrag: function($, te) {
3216
+ onDrag: function(W, te) {
3217
3217
  g.positions[this.index] = te, g._createPrimitive = !0;
3218
3218
  },
3219
- onDragEnd: function($, te) {
3219
+ onDragEnd: function(W, te) {
3220
3220
  w.insertBillboard(this.index, te, M), f.getBillboard(this.index - 1).position = ae(this.index - 1), f.insertBillboard(this.index, ae(this.index), I), g._createPrimitive = !0, re();
3221
3221
  }
3222
3222
  },
@@ -3224,8 +3224,8 @@ var Ue = function() {
3224
3224
  return "Drag to create a new point";
3225
3225
  }
3226
3226
  };
3227
- f.addBillboards(D, I), this._editMarkers = f, this._globeClickhandler = new E.ScreenSpaceEventHandler(v.canvas), this._globeClickhandler.setInputAction(function($) {
3228
- var te = v.pick($.position);
3227
+ f.addBillboards(D, I), this._editMarkers = f, this._globeClickhandler = new E.ScreenSpaceEventHandler(v.canvas), this._globeClickhandler.setInputAction(function(W) {
3228
+ var te = v.pick(W.position);
3229
3229
  te && te.primitive || g.setEditMode(!1);
3230
3230
  }, E.ScreenSpaceEventType.LEFT_CLICK), w.setOnTop(), f.setOnTop();
3231
3231
  }
@@ -3546,7 +3546,7 @@ const Ts = 2, Ss = (e, n) => {
3546
3546
  }, Ms = (e) => {
3547
3547
  const n = e.map((t) => {
3548
3548
  const i = Re.fromCartesian(t);
3549
- return [Q.toDegrees(i.longitude), Q.toDegrees(i.latitude)];
3549
+ return [J.toDegrees(i.longitude), J.toDegrees(i.latitude)];
3550
3550
  });
3551
3551
  return n.push(n[0]), {
3552
3552
  type: "Feature",
@@ -3558,8 +3558,8 @@ const Ts = 2, Ss = (e, n) => {
3558
3558
  };
3559
3559
  }, _s = (e) => {
3560
3560
  const n = Vn.lineString([
3561
- [Q.toDegrees(e.west), Q.toDegrees(e.south)],
3562
- [Q.toDegrees(e.east), Q.toDegrees(e.north)]
3561
+ [J.toDegrees(e.west), J.toDegrees(e.south)],
3562
+ [J.toDegrees(e.east), J.toDegrees(e.north)]
3563
3563
  ]);
3564
3564
  return gt(Gn(n));
3565
3565
  }, Ps = (e) => {
@@ -3569,7 +3569,7 @@ const Ts = 2, Ss = (e, n) => {
3569
3569
  ]);
3570
3570
  return gt(Gn(n)).geometry.coordinates[0].map((i) => _e.fromRadiansArray(i)[0]);
3571
3571
  }, ec = (e) => {
3572
- const { drawState: n, drawingMaterial: t, drawingVertexColor: i, material: o, hollow: r, outlineWidth: c } = e, d = Ce(), [h, p] = F();
3572
+ const { drawState: n, drawingMaterial: t, drawingVertexColor: i, material: o, hollow: r, outlineWidth: c } = e, d = we(), [h, p] = F();
3573
3573
  N(() => {
3574
3574
  p(
3575
3575
  // eslint-disable-next-line
@@ -3619,7 +3619,7 @@ const Ts = 2, Ss = (e, n) => {
3619
3619
  case Se.POLYGON:
3620
3620
  return /* @__PURE__ */ l(Cs, { hierarchy: new Bn(b), material: o ?? t });
3621
3621
  default:
3622
- return /* @__PURE__ */ l(Ee, {});
3622
+ return /* @__PURE__ */ l(Ce, {});
3623
3623
  }
3624
3624
  else {
3625
3625
  switch (m.type) {
@@ -3630,17 +3630,17 @@ const Ts = 2, Ss = (e, n) => {
3630
3630
  b = [...b, b[0]];
3631
3631
  break;
3632
3632
  default:
3633
- return /* @__PURE__ */ l(Ee, {});
3633
+ return /* @__PURE__ */ l(Ce, {});
3634
3634
  }
3635
3635
  return /* @__PURE__ */ l(Ls, { clampToGround: !0, positions: b, width: c ?? 1, material: o ?? t });
3636
3636
  }
3637
3637
  } catch (b) {
3638
- return console.error(b), /* @__PURE__ */ l(Ee, {});
3638
+ return console.error(b), /* @__PURE__ */ l(Ce, {});
3639
3639
  }
3640
3640
  };
3641
- return /* @__PURE__ */ l(bs, { ...e, children: e.drawings.map((m, b) => /* @__PURE__ */ z(vs, { name: m.name, children: [
3642
- /* @__PURE__ */ z(Es, { children: [
3643
- /* @__PURE__ */ z("h1", { children: [
3641
+ return /* @__PURE__ */ l(bs, { ...e, children: e.drawings.map((m, b) => /* @__PURE__ */ $(vs, { name: m.name, children: [
3642
+ /* @__PURE__ */ $(Es, { children: [
3643
+ /* @__PURE__ */ $("h1", { children: [
3644
3644
  "Drawed Entity ",
3645
3645
  m.name
3646
3646
  ] }),
@@ -3649,12 +3649,12 @@ const Ts = 2, Ss = (e, n) => {
3649
3649
  C(m)
3650
3650
  ] }, m.id)) });
3651
3651
  }, tc = (e) => {
3652
- const n = Ce();
3652
+ const n = we();
3653
3653
  return N(() => {
3654
3654
  n.extend(Or);
3655
- }, [n]), /* @__PURE__ */ l(Ee, {});
3655
+ }, [n]), /* @__PURE__ */ l(Ce, {});
3656
3656
  }, xs = -25, bn = 2, nc = (e) => {
3657
- const n = Ce(), t = (r, c = ",") => r.slice(r.indexOf(`
3657
+ const n = we(), t = (r, c = ",") => r.slice(r.indexOf(`
3658
3658
  `) + 1).split(`
3659
3659
  `).map((p) => {
3660
3660
  const C = p.split(c);
@@ -3721,7 +3721,7 @@ const Ts = 2, Ss = (e, n) => {
3721
3721
  const p = new Blob([h], { type: "text/csv;charset=utf-8;" }), C = document.createElement("a"), m = URL.createObjectURL(p);
3722
3722
  C.setAttribute("href", m), C.setAttribute("download", r), C.style.visibility = "hidden", document.body.appendChild(C), C.click(), document.body.removeChild(C);
3723
3723
  };
3724
- return /* @__PURE__ */ l(Ee, { children: /* @__PURE__ */ l(
3724
+ return /* @__PURE__ */ l(Ce, { children: /* @__PURE__ */ l(
3725
3725
  "input",
3726
3726
  {
3727
3727
  type: "file",
@@ -3771,32 +3771,32 @@ const Ds = 38, Is = 40, Os = 13, As = 14, ks = 27, Rs = 9, Ns = 10, Bs = 100, Fs
3771
3771
  const A = p(_, x);
3772
3772
  let re = {};
3773
3773
  for (let ae = 0; ae < A.length; ae++) {
3774
- const { triggerStr: $, triggerMatch: te, triggerLength: ue } = A[ae];
3774
+ const { triggerStr: W, triggerMatch: te, triggerLength: ue } = A[ae];
3775
3775
  for (let pe = g - 1; pe >= 0; --pe) {
3776
3776
  const Me = v.substring(pe, g).match(x);
3777
- let ve = -1;
3777
+ let Ee = -1;
3778
3778
  if (ue > 0) {
3779
3779
  const L = te ? pe : pe - ue + 1;
3780
- if (L < 0 || (C($, v, L) && (ve = L + ue), !Me && ve < 0))
3780
+ if (L < 0 || (C(W, v, L) && (Ee = L + ue), !Me && Ee < 0))
3781
3781
  break;
3782
3782
  } else {
3783
3783
  if (Me && pe > 0)
3784
3784
  continue;
3785
- if (ve = pe === 0 && Me ? 0 : pe + 1, g - ve === 0)
3785
+ if (Ee = pe === 0 && Me ? 0 : pe + 1, g - Ee === 0)
3786
3786
  break;
3787
3787
  }
3788
- if (ve >= 0) {
3789
- const L = I[$];
3788
+ if (Ee >= 0) {
3789
+ const L = I[W];
3790
3790
  if (!Array.isArray(L))
3791
3791
  continue;
3792
- const T = v.substring(ve, g), O = L.filter((j) => {
3792
+ const T = v.substring(Ee, g), O = L.filter((j) => {
3793
3793
  const oe = j.toLowerCase().indexOf(T.toLowerCase());
3794
3794
  return oe !== -1 && (M || oe === 0);
3795
- }), B = $, R = T.length;
3795
+ }), B = W, R = T.length;
3796
3796
  re = {
3797
3797
  ...re,
3798
3798
  trigger: B,
3799
- matchStart: ve,
3799
+ matchStart: Ee,
3800
3800
  matchLength: R,
3801
3801
  options: O
3802
3802
  };
@@ -3810,10 +3810,10 @@ const Ds = 38, Is = 40, Os = 13, As = 14, ks = 27, Rs = 9, Ns = 10, Bs = 100, Fs
3810
3810
  triggerLength: f.length
3811
3811
  })), C = (v, g, w) => !v || !v.length || g.substr(w, v.length) === v, m = (v) => {
3812
3812
  const { onChange: g, options: w, spaceRemovers: f, spacer: M, value: D } = e, x = n, _ = v.target.value, I = $r(b(v.target)).end;
3813
- if (_.length || W({
3813
+ if (_.length || z({
3814
3814
  ...r,
3815
3815
  helperVisible: !1
3816
- }), t(_), W({
3816
+ }), t(_), z({
3817
3817
  ...r,
3818
3818
  caret: I,
3819
3819
  value: v.target.value
@@ -3824,7 +3824,7 @@ const Ds = 38, Is = 40, Os = 13, As = 14, ks = 27, Rs = 9, Ns = 10, Bs = 100, Fs
3824
3824
  if (x[A] !== _[A]) {
3825
3825
  if (A >= 2 && _[A - 1] === M && f.indexOf(_[A - 2]) === -1 && f.indexOf(_[A]) !== -1 && !kt(h(_.substring(0, A - 2), I - 3, w))) {
3826
3826
  const re = `${_.slice(0, A - 1)}${_.slice(A, A + 1)}${_.slice(A - 1, A)}${_.slice(A + 1)}`;
3827
- return Z(A + 1), d.current !== null && (d.current.value = re), D || W({
3827
+ return Z(A + 1), d.current !== null && (d.current.value = re), D || z({
3828
3828
  ...r,
3829
3829
  value: re
3830
3830
  }), g(re);
@@ -3853,13 +3853,13 @@ const Ds = 38, Is = 40, Os = 13, As = 14, ks = 27, Rs = 9, Ns = 10, Bs = 100, Fs
3853
3853
  v.preventDefault(), Y();
3854
3854
  break;
3855
3855
  case Ds:
3856
- v.preventDefault(), W({
3856
+ v.preventDefault(), z({
3857
3857
  ...r,
3858
3858
  selection: (w.length + f - 1) % w.length
3859
3859
  });
3860
3860
  break;
3861
3861
  case Is:
3862
- v.preventDefault(), W({
3862
+ v.preventDefault(), z({
3863
3863
  ...r,
3864
3864
  selection: (f + 1) % w.length
3865
3865
  });
@@ -3878,21 +3878,21 @@ const Ds = 38, Is = 40, Os = 13, As = 14, ks = 27, Rs = 9, Ns = 10, Bs = 100, Fs
3878
3878
  else
3879
3879
  M(v);
3880
3880
  }, S = () => {
3881
- W({
3881
+ z({
3882
3882
  ...r,
3883
3883
  helperVisible: !1
3884
3884
  });
3885
3885
  }, H = (v) => {
3886
- const { spacer: g, onSelect: w, changeOnSelect: f } = e, { matchStart: M, matchLength: D, options: x, trigger: _ } = r, I = x[v], A = n, re = A.substring(0, M - _.length), ae = A.substring(M + D), $ = { target: d.current }, te = f(_, I);
3887
- $.target !== null && ($.target.value = `${re}${te}${g}${ae}`), m($), $.target !== null && w($.target.value), Y(), Z(re.length + te.length + 1), o(!0);
3886
+ const { spacer: g, onSelect: w, changeOnSelect: f } = e, { matchStart: M, matchLength: D, options: x, trigger: _ } = r, I = x[v], A = n, re = A.substring(0, M - _.length), ae = A.substring(M + D), W = { target: d.current }, te = f(_, I);
3887
+ W.target !== null && (W.target.value = `${re}${te}${g}${ae}`), m(W), W.target !== null && w(W.target.value), Y(), Z(re.length + te.length + 1), o(!0);
3888
3888
  }, Z = (v) => {
3889
- W({
3889
+ z({
3890
3890
  ...r,
3891
3891
  caret: v
3892
3892
  });
3893
3893
  const g = b(d.current);
3894
3894
  zr(g, v);
3895
- }, W = (v) => {
3895
+ }, z = (v) => {
3896
3896
  setTimeout(() => {
3897
3897
  c({
3898
3898
  ...v
@@ -3907,9 +3907,9 @@ const Ds = 38, Is = 40, Os = 13, As = 14, ks = 27, Rs = 9, Ns = 10, Bs = 100, Fs
3907
3907
  return;
3908
3908
  const D = f.getBoundingClientRect(), x = h(v, g, w);
3909
3909
  if (Object.keys(x).length > 0 && M !== null) {
3910
- const _ = Hr(M, g), I = M.getBoundingClientRect(), { minChars: A, onRequestOptions: re, requestOnlyIfNoOptions: ae, mode: $ } = e;
3910
+ const _ = Hr(M, g), I = M.getBoundingClientRect(), { minChars: A, onRequestOptions: re, requestOnlyIfNoOptions: ae, mode: W } = e;
3911
3911
  let te, ue, pe, ke = "unset";
3912
- $ === "assist" ? (te = f === M ? _.top + M.offsetTop : _.top + D.top, ue = Math.min(_.left + M.offsetLeft - Ns, M.offsetLeft + I.width - Bs)) : (te = D.top + f.offsetHeight, ue = f.offsetLeft, pe = f.offsetLeft - f.offsetWidth, ke = `${D.width}px`), x.matchLength >= A && (x.options.length > 1 || x.options.length === 1 && x.options[0].length !== x.matchLength) ? W({
3912
+ W === "assist" ? (te = f === M ? _.top + M.offsetTop : _.top + D.top, ue = Math.min(_.left + M.offsetLeft - Ns, M.offsetLeft + I.width - Bs)) : (te = D.top + f.offsetHeight, ue = f.offsetLeft, pe = f.offsetLeft - f.offsetWidth, ke = `${D.width}px`), x.matchLength >= A && (x.options.length > 1 || x.options.length === 1 && x.options[0].length !== x.matchLength) ? z({
3913
3913
  ...r,
3914
3914
  value: v,
3915
3915
  helperVisible: !0,
@@ -3923,7 +3923,7 @@ const Ds = 38, Is = 40, Os = 13, As = 14, ks = 27, Rs = 9, Ns = 10, Bs = 100, Fs
3923
3923
  Y();
3924
3924
  }, Y = () => {
3925
3925
  setTimeout(() => {
3926
- W({
3926
+ z({
3927
3927
  ...r,
3928
3928
  helperVisible: !1,
3929
3929
  selection: 0
@@ -3933,27 +3933,27 @@ const Ds = 38, Is = 40, Os = 13, As = 14, ks = 27, Rs = 9, Ns = 10, Bs = 100, Fs
3933
3933
  const { helperVisible: v, left: g, right: w, matchStart: f, matchLength: M, options: D, selection: x, top: _, value: I, width: A } = r;
3934
3934
  if (!v)
3935
3935
  return null;
3936
- const { maxOptions: re, offsetX: ae, offsetY: $, direction: te } = e;
3936
+ const { maxOptions: re, offsetX: ae, offsetY: W, direction: te } = e;
3937
3937
  if (D.length === 0)
3938
3938
  return null;
3939
3939
  if (x >= D.length)
3940
- return W({
3940
+ return z({
3941
3941
  ...r,
3942
3942
  selection: 0
3943
3943
  }), null;
3944
- const ue = re === 0 ? D.length : re, pe = D.slice(0, ue).map((Me, ve) => {
3944
+ const ue = re === 0 ? D.length : re, pe = D.slice(0, ue).map((Me, Ee) => {
3945
3945
  const L = Me.toLowerCase().indexOf(I.substr(f, M).toLowerCase());
3946
- return /* @__PURE__ */ z(
3946
+ return /* @__PURE__ */ $(
3947
3947
  "li",
3948
3948
  {
3949
- className: ve === x ? "active" : void 0,
3949
+ className: Ee === x ? "active" : void 0,
3950
3950
  onClick: () => {
3951
- H(ve);
3951
+ H(Ee);
3952
3952
  },
3953
3953
  onMouseEnter: () => {
3954
- W({
3954
+ z({
3955
3955
  ...r,
3956
- selection: ve
3956
+ selection: Ee
3957
3957
  });
3958
3958
  },
3959
3959
  children: [
@@ -3965,11 +3965,11 @@ const Ds = 38, Is = 40, Os = 13, As = 14, ks = 27, Rs = 9, Ns = 10, Bs = 100, Fs
3965
3965
  Me
3966
3966
  );
3967
3967
  }), ke = te === "ltr" ? { left: g + ae } : { right: w + ae };
3968
- return /* @__PURE__ */ l("ul", { className: "react-autocomplete-input", style: { ...ke, top: _ + $, width: A }, children: pe });
3968
+ return /* @__PURE__ */ l("ul", { className: "react-autocomplete-input", style: { ...ke, top: _ + W, width: A }, children: pe });
3969
3969
  }, { Component: X, ComponentProps: G, defaultValue: K, disabled: se, onBlur: s, value: a, ...y } = e, u = Object.assign({}, y);
3970
3970
  return Object.keys(e).forEach((v) => {
3971
3971
  delete u[v];
3972
- }), /* @__PURE__ */ z(Ee, { children: [
3972
+ }), /* @__PURE__ */ $(Ce, { children: [
3973
3973
  Oe.cloneElement(X, {
3974
3974
  disabled: se,
3975
3975
  onBlur: s,
@@ -4163,10 +4163,10 @@ const sc = Oe.memo(
4163
4163
  }
4164
4164
  }
4165
4165
  })();
4166
- const m = (K) => K.replace(/([A-Z])/g, (se) => "-" + se.toLowerCase()), b = be(() => e !== void 0 ? Object.keys(e).reduce((se, s) => {
4166
+ const m = (K) => K.replace(/([A-Z])/g, (se) => "-" + se.toLowerCase()), b = fe(() => e !== void 0 ? Object.keys(e).reduce((se, s) => {
4167
4167
  const a = e[s];
4168
4168
  return s = s.startsWith("--") ? s : `--fp-theme-${m(s)}`, se[s] = a, se;
4169
- }, {}) : {}, [e]), [P, S] = F(!1), [H, Z] = F(), [W, q] = F(!1), [Y, k] = F(), [X, G] = F();
4169
+ }, {}) : {}, [e]), [P, S] = F(!1), [H, Z] = F(), [z, q] = F(!1), [Y, k] = F(), [X, G] = F();
4170
4170
  return N(() => {
4171
4171
  e && S(!0), Z(t), i ? q(!0) : k([ne.CreateFolder, ne.DeleteFiles]), o !== void 0 && G(zs[o]);
4172
4172
  }, [e, t, i, o]), /* @__PURE__ */ l(
@@ -4187,7 +4187,7 @@ const sc = Oe.memo(
4187
4187
  },
4188
4188
  thumbnailGenerator: C,
4189
4189
  defaultFileViewActionId: H,
4190
- disableDragAndDrop: W,
4190
+ disableDragAndDrop: z,
4191
4191
  fileActions: Y,
4192
4192
  darkMode: P,
4193
4193
  i18n: X,
@@ -4268,7 +4268,7 @@ export {
4268
4268
  ws as CesiumRectangleGraphics,
4269
4269
  Dl as CesiumResource,
4270
4270
  Vl as CesiumScene,
4271
- we as CesiumSceneMode,
4271
+ be as CesiumSceneMode,
4272
4272
  fc as CesiumSceneTransforms,
4273
4273
  Gl as CesiumVerticalOrigin,
4274
4274
  Wl as CesiumViewer,
@@ -4324,7 +4324,7 @@ export {
4324
4324
  Ms as polygonToGeoJSON,
4325
4325
  _s as rectangleToGeoJSON,
4326
4326
  Ps as rectangleToPositions,
4327
- Ce as useCesiumMap,
4327
+ we as useCesiumMap,
4328
4328
  rt as useCesiumMapViewstate,
4329
4329
  tt as useMap,
4330
4330
  Wt as useMappedMuiTheme,