@map-colonies/react-components 4.10.3 → 4.10.4

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.
@@ -4,23 +4,23 @@ var Qn = (e, n, t) => n in e ? Jn(e, n, { enumerable: !0, configurable: !0, writ
4
4
  var ce = (e, n, t) => (Qn(e, typeof n != "symbol" ? n + "" : n, t), t);
5
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 fe, forwardRef as ei, createContext as Ke, useContext as ze, useRef as Pe, useLayoutEffect as Tn, useCallback as xe } from "react";
8
- import { isValid as Xe, isBefore as ti, format as Pt, endOfDay as ni, isSameDay as Yt } from "date-fns";
7
+ import Ae, { useState as F, useEffect as N, useMemo as fe, forwardRef as ei, createContext as Ke, useContext as We, useRef as Pe, useLayoutEffect as Tn, useCallback as xe } from "react";
8
+ import { isValid as Xe, isBefore as ti, format as Pt, endOfDay as ni, isSameDay as qt } 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";
11
11
  import Pn from "@date-io/date-fns";
12
12
  import { createTheme as ri, makeStyles as it, createStyles as pt } from "@material-ui/core/styles";
13
- import { Box as oi, ThemeProvider as Ft, Popover as si, Paper as Dt, TableRow as lt, TableCell as et, TableSortLabel as ai, IconButton as li, Collapse as ci, TableContainer as di, Table as ui, TableBody as hi, Typography as mi, TablePagination as pi, Input as gi } from "@material-ui/core";
14
- import { useTheme as Vt, ThemeProvider as fi, Button as nt, TextField as ct, Tooltip as dt, Menu as yi, MenuItem as Ct, Icon as He, Dialog as xn, DialogTitle as Dn, DialogContent as In, Drawer as vi, DrawerHeader as Ei, DrawerTitle as Ci, DrawerContent as wi, LinearProgress as bi, Checkbox as Li } from "@map-colonies/react-core";
15
- import { default as dc } from "@material-ui/core/useMediaQuery";
13
+ import { Box as oi, ThemeProvider as Vt, Popover as si, Paper as Dt, TableRow as lt, TableCell as et, TableSortLabel as ai, IconButton as li, Collapse as ci, TableContainer as di, Table as ui, TableBody as hi, Typography as mi, TablePagination as pi, Input as gi } from "@material-ui/core";
14
+ import { useTheme as Gt, ThemeProvider as fi, Button as nt, TextField as ct, Tooltip as dt, Menu as yi, MenuItem as Ct, Icon as $e, Dialog as xn, DialogTitle as Dn, DialogContent as In, Drawer as vi, DrawerHeader as Ei, DrawerTitle as Ci, DrawerContent as wi, LinearProgress as bi, Checkbox as Li } from "@map-colonies/react-core";
15
+ import { default as uc } from "@material-ui/core/useMediaQuery";
16
16
  import Ti, { registerLocale as Si } from "react-datepicker";
17
17
  import Mi from "date-fns/locale/he";
18
18
  import Je from "moment";
19
19
  import _i from "@turf/rewind";
20
20
  import { Map as Pi, View as xi } from "ol";
21
21
  import "ol/ol.css";
22
- import { format as qt } from "ol/coordinate";
23
- import { defaults as Di, FullScreen as Zt } from "ol/control";
22
+ import { format as Zt } from "ol/coordinate";
23
+ import { defaults as Di, FullScreen as Xt } from "ol/control";
24
24
  import wt from "ol/control/MousePosition";
25
25
  import { transform as Ii, get as Oi } from "ol/proj";
26
26
  import { Tile as Ai, Vector as ki } from "ol/layer";
@@ -35,7 +35,7 @@ import { getWidth as Ki, getTopLeft as Yi } from "ol/extent";
35
35
  import qi from "ol/source/TileWMS";
36
36
  import Zi from "ol/source/XYZ";
37
37
  import Xi from "ol/source/VectorTile";
38
- import Xt from "ol-ext/legend/Legend";
38
+ import Jt from "ol-ext/legend/Legend";
39
39
  import Ji from "ol-ext/control/Legend";
40
40
  import "ol-ext/dist/ol-ext.css";
41
41
  import Qi from "@material-ui/core/TableHead";
@@ -45,9 +45,9 @@ 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 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
- import { Entity as hc, PolygonGraphics as mc, GeoJsonDataSource as pc, Math as gc, SceneTransforms as fc, sampleTerrainMostDetailed as yc } from "cesium";
50
- import { get as ie, isEmpty as kt, isNumber as ht, isArray as kr, cloneDeep as Rr, find as nn } from "lodash";
48
+ import { Math as J, SceneMode as ze, Cartesian2 as Ie, Cartographic as Ne, defined as It, Cartesian3 as _e, PerspectiveFrustum as hr, Rectangle as He, UrlTemplateImageryProvider as Ht, WebMapServiceImageryProvider as $t, WebMapTileServiceImageryProvider as zt, Event as Qt, SingleTileImageryProvider as mr, PolylineDashMaterialProperty as pr, ConstantProperty as gr, ConstantPositionProperty as fr, BoundingSphere as Rn, Ellipsoid as Wt, GeographicTilingScheme as yr, Resource as vr, EllipsoidTerrainProvider as Er, CesiumTerrainProvider as Cr, PolylineGraphics as Nn, JulianDate as Qe, PositionProperty as wr, BillboardGraphics as Ot, Color as Ge, PolygonHierarchy as Bn, Scene as br, VerticalOrigin as ut, HorizontalOrigin as Lr, LabelStyle as Fn, HeightReference as At, ScreenSpaceEventType as kt, 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
+ import { Entity as mc, PolygonGraphics as pc, GeoJsonDataSource as gc, Math as fc, SceneTransforms as yc, sampleTerrainMostDetailed as vc } from "cesium";
50
+ import { get as ie, isEmpty as Rt, isNumber as ht, isArray as kr, cloneDeep as Rr, find as nn } from "lodash";
51
51
  import Nr from "@turf/boolean-point-in-polygon";
52
52
  import gt from "@turf/bbox-polygon";
53
53
  import * as Vn from "@turf/helpers";
@@ -68,7 +68,7 @@ import { ChonkyActions as ne, FileHelper as Hn, setChonkyDefaults as Wr, FullFil
68
68
  import { ChonkyIconFA as jr } from "chonky-icon-fontawesome";
69
69
  import Kr from "filesize";
70
70
  import Yr, { components as qr } from "react-select";
71
- var Se = /* @__PURE__ */ ((e) => (e.BOX = "BOX", e.POLYGON = "POLYGON", e.UNKNOWN = "UNKNOWN", e))(Se || {}), De = /* @__PURE__ */ ((e) => (e.HE = "he", e.EN = "en", e.RU = "ru", e))(De || {}), Rt = /* @__PURE__ */ ((e) => (e.TOP_RIGHT = "TOP_RIGHT", e.BOTTOM_LEFT = "BOTTOM_LEFT", e))(Rt || {});
71
+ var Se = /* @__PURE__ */ ((e) => (e.BOX = "BOX", e.POLYGON = "POLYGON", e.UNKNOWN = "UNKNOWN", e))(Se || {}), De = /* @__PURE__ */ ((e) => (e.HE = "he", e.EN = "en", e.RU = "ru", e))(De || {}), Nt = /* @__PURE__ */ ((e) => (e.TOP_RIGHT = "TOP_RIGHT", e.BOTTOM_LEFT = "BOTTOM_LEFT", e))(Nt || {});
72
72
  const he = {
73
73
  // eslint-disable-next-line @typescript-eslint/naming-convention
74
74
  DATE_PICKER: {
@@ -99,9 +99,9 @@ const he = {
99
99
  }, me = (e) => {
100
100
  const { children: n, ...t } = e;
101
101
  return /* @__PURE__ */ l(oi, { ...t, children: n });
102
- }, Wt = (e) => {
102
+ }, Ut = (e) => {
103
103
  const n = e.type === "dark";
104
- return Oe.useMemo(() => Zr(e, n), [n, e]);
104
+ return Ae.useMemo(() => Zr(e, n), [n, e]);
105
105
  }, Zr = (e, n = !1) => ri({
106
106
  palette: {
107
107
  type: n ? "dark" : "light",
@@ -139,7 +139,7 @@ const Xr = 2, Jr = 0.5, Qr = it(
139
139
  })
140
140
  ), eo = (e) => {
141
141
  var Y, k, X, G;
142
- const n = Qr(), t = Vt(), i = Wt(t), [o, r] = F(null), [c, d] = F(null), [h, p] = F(he.DATE_RANGE_PICKER.dateFormat), C = e.controlsLayout ?? he.DATE_RANGE_PICKER.controlsLayout, m = e.disableFuture ?? he.DATE_RANGE_PICKER.disableFuture, b = ((Y = e.local) == null ? void 0 : Y.startPlaceHolderText) ?? he.DATE_RANGE_PICKER.local.startPlaceHolderText, P = ((k = e.local) == null ? void 0 : k.endPlaceHolderText) ?? he.DATE_RANGE_PICKER.local.endPlaceHolderText, S = ((X = e.local) == null ? void 0 : X.setText) ?? he.DATE_RANGE_PICKER.local.setText, Z = (((G = e.local) == null ? void 0 : G.calendarLocale) ?? he.DATE_RANGE_PICKER.local.calendarLocale) === De.HE ? Sn : Mn;
142
+ const n = Qr(), t = Gt(), i = Ut(t), [o, r] = F(null), [c, d] = F(null), [h, p] = F(he.DATE_RANGE_PICKER.dateFormat), C = e.controlsLayout ?? he.DATE_RANGE_PICKER.controlsLayout, m = e.disableFuture ?? he.DATE_RANGE_PICKER.disableFuture, b = ((Y = e.local) == null ? void 0 : Y.startPlaceHolderText) ?? he.DATE_RANGE_PICKER.local.startPlaceHolderText, P = ((k = e.local) == null ? void 0 : k.endPlaceHolderText) ?? he.DATE_RANGE_PICKER.local.endPlaceHolderText, S = ((X = e.local) == null ? void 0 : X.setText) ?? he.DATE_RANGE_PICKER.local.setText, Z = (((G = e.local) == null ? void 0 : G.calendarLocale) ?? he.DATE_RANGE_PICKER.local.calendarLocale) === De.HE ? Sn : Mn;
143
143
  N(() => {
144
144
  r(e.from ?? null);
145
145
  }, [e.from]), N(() => {
@@ -155,7 +155,7 @@ const Xr = 2, Jr = 0.5, Qr = it(
155
155
  to: c && Xe(c) ? c : void 0
156
156
  });
157
157
  };
158
- return /* @__PURE__ */ l(Ft, { theme: i, children: /* @__PURE__ */ l(
158
+ return /* @__PURE__ */ l(Vt, { theme: i, children: /* @__PURE__ */ l(
159
159
  me,
160
160
  {
161
161
  className: `${n.container} drpContainer`,
@@ -207,9 +207,9 @@ const Xr = 2, Jr = 0.5, Qr = it(
207
207
  const { children: n, ...t } = e;
208
208
  return /* @__PURE__ */ l(si, { ...t, children: n });
209
209
  };
210
- const nl = (e) => {
210
+ const il = (e) => {
211
211
  var k, X;
212
- const [n, t] = F(null), [i, o] = F(null), [r, c] = F(he.DATE_RANGE_PICKER.dateFormat), [d, h] = Oe.useState(null), p = (G) => {
212
+ const [n, t] = F(null), [i, o] = F(null), [r, c] = F(he.DATE_RANGE_PICKER.dateFormat), [d, h] = Ae.useState(null), p = (G) => {
213
213
  h(G.currentTarget);
214
214
  }, C = (G) => {
215
215
  G.currentTarget.tagName === "I" ? h(G.currentTarget.previousElementSibling) : h(G.currentTarget);
@@ -258,7 +258,7 @@ const nl = (e) => {
258
258
  }
259
259
  ) })
260
260
  ] });
261
- }, Lt = (e) => typeof e < "u" && e !== null && "startDate" in e && "endDate" in e, il = ({
261
+ }, Lt = (e) => typeof e < "u" && e !== null && "startDate" in e && "endDate" in e, rl = ({
262
262
  endDate: e,
263
263
  startDate: n,
264
264
  setEndDate: t = () => {
@@ -332,7 +332,7 @@ const nl = (e) => {
332
332
  );
333
333
  return N(() => {
334
334
  for (const h of d) {
335
- const p = i.startDate && i.endDate && Yt(h.startDate, i.startDate) && Yt(h.endDate, i.endDate);
335
+ const p = i.startDate && i.endDate && qt(h.startDate, i.startDate) && qt(h.endDate, i.endDate);
336
336
  r ? h.id === r && (p || c(void 0)) : p && c(h.id);
337
337
  }
338
338
  }, [i, r, d]), /* @__PURE__ */ l("div", { className: "shortcutsContainer", children: d.map((h, p) => {
@@ -353,7 +353,7 @@ const nl = (e) => {
353
353
  h.id + p
354
354
  );
355
355
  }) });
356
- }, rl = Oe.forwardRef((e, n) => {
356
+ }, ol = Ae.forwardRef((e, n) => {
357
357
  const {
358
358
  // Time range input props
359
359
  // endTimeInputClassName,
@@ -424,8 +424,8 @@ const nl = (e) => {
424
424
  }
425
425
  ) });
426
426
  });
427
- const ol = (e) => {
428
- const n = Vt(), t = Wt(n), {
427
+ const sl = (e) => {
428
+ const n = Gt(), t = Ut(n), {
429
429
  format: i = he.DATE_PICKER.dateFormat,
430
430
  variant: o = he.DATE_PICKER.variant,
431
431
  disableFuture: r = he.DATE_PICKER.disableFuture,
@@ -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__ */ $(_n, { utils: Pn, locale: P, children: [
443
+ return /* @__PURE__ */ l(Vt, { theme: t, children: /* @__PURE__ */ $(_n, { utils: Pn, locale: P, children: [
444
444
  h && /* @__PURE__ */ l(
445
445
  xt,
446
446
  {
@@ -477,7 +477,7 @@ const ol = (e) => {
477
477
  }
478
478
  })
479
479
  ), so = (e) => {
480
- const n = oo(), [t, i] = Oe.useState(null), { isSelectionEnabled: o, onCancelDraw: r, onStartDraw: c, onReset: d } = e, h = (C) => {
480
+ const n = oo(), [t, i] = Ae.useState(null), { isSelectionEnabled: o, onCancelDraw: r, onStartDraw: c, onReset: d } = e, h = (C) => {
481
481
  i(C.currentTarget);
482
482
  }, p = () => {
483
483
  i(null);
@@ -523,18 +523,18 @@ const ol = (e) => {
523
523
  )
524
524
  ] });
525
525
  };
526
- var Ae = /* @__PURE__ */ ((e) => (e.WGS84 = "EPSG:4326", e.WEB_MERCATOR = "EPSG:3857", e))(Ae || {});
527
- const Nt = 5, Bt = 2, $n = Ke(null), ao = $n.Provider, an = 35, ln = 32, lo = 10, co = (e) => e !== void 0 && e !== Ae.WGS84 ? Ii([an, ln], Ae.WGS84, e) : [an, ln], uo = (e) => {
526
+ var ke = /* @__PURE__ */ ((e) => (e.WGS84 = "EPSG:4326", e.WEB_MERCATOR = "EPSG:3857", e))(ke || {});
527
+ const Bt = 5, Ft = 2, $n = Ke(null), ao = $n.Provider, an = 35, ln = 32, lo = 10, co = (e) => e !== void 0 && e !== ke.WGS84 ? Ii([an, ln], ke.WGS84, e) : [an, ln], uo = (e) => {
528
528
  switch (e) {
529
- case Ae.WEB_MERCATOR:
530
- return (n) => qt(n, "Mercator: {y}m, {x}m", Bt);
531
- case Ae.WGS84:
532
- return (n) => qt(n, "WGS84: {y}°N {x}°E", Nt);
529
+ case ke.WEB_MERCATOR:
530
+ return (n) => Zt(n, "Mercator: {y}m, {x}m", Ft);
531
+ case ke.WGS84:
532
+ return (n) => Zt(n, "WGS84: {y}°N {x}°E", Bt);
533
533
  default:
534
534
  return (n) => "";
535
535
  }
536
536
  }, tt = () => {
537
- const e = ze($n);
537
+ const e = We($n);
538
538
  if (e === null)
539
539
  throw new Error("map context is null, please check the provider");
540
540
  return e;
@@ -542,7 +542,7 @@ const Nt = 5, Bt = 2, $n = Ke(null), ao = $n.Provider, an = 35, ln = 32, lo = 10
542
542
  const n = Pe(null), { allowFullScreen: t, showMousePosition: i, projection: o } = e, [r] = F(
543
543
  new Pi({
544
544
  view: new xi({
545
- projection: o ?? Ae.WGS84
545
+ projection: o ?? ke.WGS84
546
546
  }),
547
547
  controls: Di()
548
548
  })
@@ -558,12 +558,12 @@ const Nt = 5, Bt = 2, $n = Ke(null), ao = $n.Provider, an = 35, ln = 32, lo = 10
558
558
  });
559
559
  };
560
560
  return N(() => {
561
- r.setTarget(n.current), t !== void 0 && t ? r.addControl(new Zt()) : c(Zt, r);
561
+ r.setTarget(n.current), t !== void 0 && t ? r.addControl(new Xt()) : c(Xt, r);
562
562
  }, [r, t]), N(() => {
563
563
  i !== void 0 && i ? (c(wt, r), r.addControl(
564
564
  new wt({
565
- coordinateFormat: uo(o ?? Ae.WGS84),
566
- projection: o ?? Ae.WGS84,
565
+ coordinateFormat: uo(o ?? ke.WGS84),
566
+ projection: o ?? ke.WGS84,
567
567
  undefinedHTML: "&nbsp;"
568
568
  })
569
569
  )) : c(wt, r);
@@ -572,7 +572,7 @@ const Nt = 5, Bt = 2, $n = Ke(null), ao = $n.Provider, an = 35, ln = 32, lo = 10
572
572
  e.children
573
573
  ] });
574
574
  }, zn = Ke(null), mo = zn.Provider, ft = () => {
575
- const e = ze(zn);
575
+ const e = We(zn);
576
576
  if (e === null)
577
577
  throw new Error("tile layer context is null, please check the provider");
578
578
  return e;
@@ -582,7 +582,7 @@ const Nt = 5, Bt = 2, $n = Ke(null), ao = $n.Provider, an = 35, ln = 32, lo = 10
582
582
  t.removeLayer(i);
583
583
  }), [t, i]), /* @__PURE__ */ l(mo, { value: i, children: n });
584
584
  }, Wn = Ke(null), go = Wn.Provider, fo = () => {
585
- const e = ze(Wn);
585
+ const e = We(Wn);
586
586
  if (e === null)
587
587
  throw new Error("vector layer context is null, please check the provider");
588
588
  return e;
@@ -592,7 +592,7 @@ const Nt = 5, Bt = 2, $n = Ke(null), ao = $n.Provider, an = 35, ln = 32, lo = 10
592
592
  n.removeLayer(t);
593
593
  }), [n, t]), /* @__PURE__ */ l(go, { value: t, children: e });
594
594
  }, Un = Ke(null), vo = Un.Provider, Eo = () => {
595
- const e = ze(Un);
595
+ const e = We(Un);
596
596
  if (e === null)
597
597
  throw new Error("vector source context is null, please check the provider");
598
598
  return e;
@@ -680,7 +680,7 @@ const To = (e) => {
680
680
  marginLeft: e.spacing(1)
681
681
  }
682
682
  })
683
- ), sl = (e) => {
683
+ ), al = (e) => {
684
684
  var h;
685
685
  const [n, t] = F(), [i, o] = F(), r = Mo(), c = (p) => {
686
686
  o(p), t(void 0), e.handlePolygonSelected(p);
@@ -721,11 +721,11 @@ const To = (e) => {
721
721
  stroke: dn
722
722
  })
723
723
  ], jn = Ke(null), _o = jn.Provider, Po = () => {
724
- const e = ze(jn);
724
+ const e = We(jn);
725
725
  if (e === null)
726
726
  throw new Error("vector tile layer context is null, please check the provider");
727
727
  return e;
728
- }, al = ({ children: e, options: n, style: t }) => {
728
+ }, ll = ({ children: e, options: n, style: t }) => {
729
729
  const i = tt(), [o] = F(
730
730
  new Hi({
731
731
  ...n,
@@ -737,7 +737,7 @@ const To = (e) => {
737
737
  }), [i, o]), N(() => {
738
738
  o.setStyle(t || un);
739
739
  }, [o, t]), /* @__PURE__ */ l(_o, { value: o, children: e });
740
- }, St = 20, xo = 256, Do = 2, Io = 2, Oo = "REST", ll = (e) => {
740
+ }, St = 20, xo = 256, Do = 2, Io = 2, Oo = "REST", cl = (e) => {
741
741
  const n = Oi(e.projection), t = n.getExtent(), i = new Array(St), o = new Array(St), r = Ki(t) / xo, c = e.heightWidthRatio !== void 0 ? e.heightWidthRatio : Io, d = e.requestEncoding !== void 0 ? e.requestEncoding : Oo;
742
742
  for (let p = 0; p < St; ++p)
743
743
  i[p] = r / Math.pow(Do, p) / c, o[p] = p.toString();
@@ -757,12 +757,12 @@ const To = (e) => {
757
757
  requestEncoding: d,
758
758
  wrapX: e.wrapX !== void 0 ? e.wrapX : !0
759
759
  };
760
- }, cl = (e) => {
760
+ }, dl = (e) => {
761
761
  const n = ft(), { options: t } = e;
762
762
  return N(() => {
763
763
  n.setSource(new Bi(t));
764
764
  }, [n, t]), null;
765
- }, dl = (e) => {
765
+ }, ul = (e) => {
766
766
  const { attributions: n, url: t, params: i, serverType: o, transition: r } = e;
767
767
  return {
768
768
  attributions: n,
@@ -771,42 +771,42 @@ const To = (e) => {
771
771
  serverType: o,
772
772
  transition: r
773
773
  };
774
- }, ul = (e) => {
774
+ }, hl = (e) => {
775
775
  const n = ft(), { options: t } = e;
776
776
  return N(() => {
777
777
  n.setSource(new qi(t));
778
778
  }, [n, t]), null;
779
- }, hl = (e) => {
779
+ }, ml = (e) => {
780
780
  const { attributions: n, url: t } = e;
781
781
  return {
782
782
  attributions: n,
783
783
  url: t
784
784
  };
785
- }, ml = (e) => {
785
+ }, pl = (e) => {
786
786
  const n = ft(), { options: t } = e;
787
787
  return N(() => {
788
788
  n.setSource(new Zi(t));
789
789
  }, [n, t]), null;
790
- }, Ao = Ke(null), pl = () => {
791
- const e = ze(Ao);
790
+ }, Ao = Ke(null), gl = () => {
791
+ const e = We(Ao);
792
792
  if (e === null)
793
793
  throw new Error("vector tile source context is null, please check the provider");
794
794
  return e;
795
- }, gl = (e) => {
795
+ }, fl = (e) => {
796
796
  const { url: n } = e;
797
797
  return {
798
798
  url: n,
799
799
  format: new Fi()
800
800
  };
801
- }, fl = ({ children: e, options: n }) => {
801
+ }, yl = ({ children: e, options: n }) => {
802
802
  const t = Po();
803
803
  return N(() => {
804
804
  t.setSource(new Xi(n));
805
805
  }, [n, t]), null;
806
- }, yl = ({ legendItems: e, title: n, isCollapsed: t }) => {
806
+ }, vl = ({ legendItems: e, title: n, isCollapsed: t }) => {
807
807
  const i = tt();
808
808
  return N(() => {
809
- const o = new Xt({
809
+ const o = new Jt({
810
810
  title: n ?? "",
811
811
  margin: 5,
812
812
  maxWidth: 300
@@ -815,7 +815,7 @@ const To = (e) => {
815
815
  collapsed: t === void 0 ? !0 : t
816
816
  });
817
817
  i.addControl(r);
818
- const c = new Xt({ margin: 4 });
818
+ const c = new Jt({ margin: 4 });
819
819
  return e.forEach((d) => {
820
820
  c.addItem({
821
821
  title: d.title,
@@ -894,7 +894,7 @@ function Bo(e) {
894
894
  c && /* @__PURE__ */ l(lt, { children: /* @__PURE__ */ l(et, { style: { paddingBottom: 0, paddingTop: 0 }, colSpan: C + 1, children: /* @__PURE__ */ l(ci, { in: h, unmountOnExit: !0, timeout: "auto", children: d == null ? void 0 : d(i) }) }) })
895
895
  ] });
896
896
  }
897
- function vl(e) {
897
+ function El(e) {
898
898
  const [n, t] = F(""), [i, o] = F("asc"), {
899
899
  cellsMetadata: r,
900
900
  items: c,
@@ -963,10 +963,10 @@ function vl(e) {
963
963
  )
964
964
  ] });
965
965
  }
966
- const El = (e) => {
966
+ const Cl = (e) => {
967
967
  const { children: n, ...t } = e;
968
968
  return /* @__PURE__ */ l(er, { ...t, children: n });
969
- }, Cl = (e) => {
969
+ }, wl = (e) => {
970
970
  const { children: n, ...t } = e;
971
971
  return /* @__PURE__ */ l(tr, { ...t, children: n });
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)));
@@ -1003,7 +1003,7 @@ const Vo = ({ children: e, locale: n }) => {
1003
1003
  };
1004
1004
  }, [(h = d.layersManager) == null ? void 0 : h.dataLayerList]), /* @__PURE__ */ $(Ce, { children: [
1005
1005
  /* @__PURE__ */ l(
1006
- He,
1006
+ $e,
1007
1007
  {
1008
1008
  icon: /* @__PURE__ */ l("div", { className: "debugPanelIconContainer", children: /* @__PURE__ */ l("svg", { width: "100%", height: "100%", viewBox: "0 0 24 24", children: /* @__PURE__ */ l("path", { d: "M11.99 18.54l-7.37-5.73L3 14.07l9 7 9-7-1.63-1.27-7.38 5.74zM12 16l7.36-5.73L21 9l-9-7-9 7 1.63 1.27L12 16z" }) }) }),
1009
1009
  onClick: () => {
@@ -1020,7 +1020,7 @@ const Vo = ({ children: e, locale: n }) => {
1020
1020
  },
1021
1021
  children: [
1022
1022
  /* @__PURE__ */ l(Dn, { className: "title", children: c }),
1023
- /* @__PURE__ */ l(In, { children: Oe.Children.map(e, (p) => Oe.isValidElement(p) ? Oe.cloneElement(p, { featureTypes: o }) : p) })
1023
+ /* @__PURE__ */ l(In, { children: Ae.Children.map(e, (p) => Ae.isValidElement(p) ? Ae.cloneElement(p, { featureTypes: o }) : p) })
1024
1024
  ]
1025
1025
  }
1026
1026
  ) })
@@ -1055,13 +1055,13 @@ const Go = ({ featureTypes: e, locale: n }) => {
1055
1055
  ] });
1056
1056
  }, Kn = (e, n, t) => {
1057
1057
  let i;
1058
- if (e.scene.mode !== $e.SCENE2D)
1059
- i = e.scene.pickPosition(new Ne(n, t));
1058
+ if (e.scene.mode !== ze.SCENE2D)
1059
+ i = e.scene.pickPosition(new Ie(n, t));
1060
1060
  else {
1061
1061
  const o = e.scene.globe.ellipsoid;
1062
- i = e.camera.pickEllipsoid(new Ne(n, t), o);
1062
+ i = e.camera.pickEllipsoid(new Ie(n, t), o);
1063
1063
  }
1064
- return Re.fromCartesian(i);
1064
+ return Ne.fromCartesian(i);
1065
1065
  }, Ho = (e, n, t) => {
1066
1066
  const i = Kn(e, n, t);
1067
1067
  return {
@@ -1082,7 +1082,7 @@ const Go = ({ featureTypes: e, locale: n }) => {
1082
1082
  } catch {
1083
1083
  return;
1084
1084
  }
1085
- }, Ie = document.createElement("canvas"), Te = Ie.getContext("2d"), mn = (e) => {
1085
+ }, Oe = document.createElement("canvas"), Te = Oe.getContext("2d"), mn = (e) => {
1086
1086
  const i = (e == null ? void 0 : e.data) ?? [];
1087
1087
  for (let o = 3; o < i.length; o += 4)
1088
1088
  if (i[o] < 255)
@@ -1090,20 +1090,20 @@ const Go = ({ featureTypes: e, locale: n }) => {
1090
1090
  return !1;
1091
1091
  }, $o = async (e, n) => (n && n.tileTransparencyCheckedCounter++, new Promise((t, i) => {
1092
1092
  try {
1093
- Te == null || Te.clearRect(0, 0, Ie.width, Ie.height);
1093
+ Te == null || Te.clearRect(0, 0, Oe.width, Oe.height);
1094
1094
  let o;
1095
1095
  if (e instanceof HTMLImageElement)
1096
1096
  o = e;
1097
1097
  else if (e instanceof ImageBitmap) {
1098
- Ie.width = e.width, Ie.height = e.height, Te == null || Te.drawImage(e, 0, 0);
1099
- const r = Te == null ? void 0 : Te.getImageData(0, 0, Ie.width, Ie.height), c = mn(r);
1098
+ Oe.width = e.width, Oe.height = e.height, Te == null || Te.drawImage(e, 0, 0);
1099
+ const r = Te == null ? void 0 : Te.getImageData(0, 0, Oe.width, Oe.height), c = mn(r);
1100
1100
  c && n && (n.tileTransparencyCheckedCounter = n.maxTilesForTransparencyCheck), t(c);
1101
1101
  return;
1102
1102
  } else
1103
1103
  o = new Image(), o.crossOrigin = "anonymous", o.src = e;
1104
1104
  o.onload = () => {
1105
- Ie.width = o.width, Ie.height = o.height, Te == null || Te.drawImage(o, 0, 0);
1106
- const r = Te == null ? void 0 : Te.getImageData(0, 0, Ie.width, Ie.height);
1105
+ Oe.width = o.width, Oe.height = o.height, Te == null || Te.drawImage(o, 0, 0);
1106
+ const r = Te == null ? void 0 : Te.getImageData(0, 0, Oe.width, Oe.height);
1107
1107
  mn(r) ? (n && (n.tileTransparencyCheckedCounter = n.maxTilesForTransparencyCheck), t(!0)) : t(!1);
1108
1108
  };
1109
1109
  } catch (o) {
@@ -1120,16 +1120,25 @@ const Go = ({ featureTypes: e, locale: n }) => {
1120
1120
  J.toDegrees(e.south),
1121
1121
  J.toDegrees(e.east),
1122
1122
  J.toDegrees(e.north)
1123
- ], jo = (e, n = 100) => {
1124
- const t = e.scene, i = e.camera, o = t.mode, r = i.computeViewRectangle(t.globe.ellipsoid);
1125
- if (!Jt(r) || !r) {
1126
- console.error("computeViewRectangle returned invalid rectangle.");
1123
+ ], jo = (e) => {
1124
+ const n = e.scene;
1125
+ let i = e.camera.computeViewRectangle(n.globe.ellipsoid);
1126
+ if (!It(i) || !i) {
1127
+ console.error("cesium native computeViewRectangle returned invalid rectangle, fallback to custom calculation ");
1128
+ const o = new Ie(0, 0), r = n.camera.pickEllipsoid(o, n.globe.ellipsoid), c = new Ie(n.canvas.width, n.canvas.height), d = n.camera.pickEllipsoid(c, n.globe.ellipsoid), h = n.globe.ellipsoid.cartesianToCartographic(r), p = n.globe.ellipsoid.cartesianToCartographic(d);
1129
+ i = new He(h.longitude, p.latitude, p.longitude, h.latitude);
1130
+ }
1131
+ return i;
1132
+ }, Ko = (e, n = 100) => {
1133
+ const t = e.scene, i = e.camera, o = t.mode, r = jo(e);
1134
+ if (!It(r) || !r) {
1135
+ console.error("customComputeViewRectangle returned invalid rectangle.");
1127
1136
  return;
1128
1137
  }
1129
- if (o === $e.SCENE2D)
1138
+ if (o === ze.SCENE2D)
1130
1139
  return r;
1131
1140
  const c = i.positionCartographic;
1132
- if (!Jt(c)) {
1141
+ if (!It(c)) {
1133
1142
  console.error("Camera position is undefined in 3D mode.");
1134
1143
  return;
1135
1144
  }
@@ -1153,14 +1162,14 @@ const Go = ({ featureTypes: e, locale: n }) => {
1153
1162
  const Y = 5e-4;
1154
1163
  m = Math.max(m, Y), b = Math.max(b, Y);
1155
1164
  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
- return new je(
1165
+ return new He(
1157
1166
  J.negativePiToPi(a),
1158
1167
  J.clamp(se, -J.PI_OVER_TWO, J.PI_OVER_TWO),
1159
1168
  J.negativePiToPi(y),
1160
1169
  J.clamp(g, -J.PI_OVER_TWO, J.PI_OVER_TWO)
1161
1170
  );
1162
1171
  }, yt = 3, mt = "hasTransparency";
1163
- function Ut(e, n, t, i, o) {
1172
+ function jt(e, n, t, i, o) {
1164
1173
  return setTimeout(() => {
1165
1174
  var d;
1166
1175
  const r = (d = this.layerListInstance.find(
@@ -1181,7 +1190,7 @@ function Ut(e, n, t, i, o) {
1181
1190
  });
1182
1191
  }, 0), e(n, t, i, o);
1183
1192
  }
1184
- class qn extends Gt {
1193
+ class qn extends Ht {
1185
1194
  constructor(t, i) {
1186
1195
  var o;
1187
1196
  super(t);
@@ -1192,10 +1201,10 @@ class qn extends Gt {
1192
1201
  this.layerListInstance = (o = i.layersManager) == null ? void 0 : o.layerList, this.mapViewer = i;
1193
1202
  }
1194
1203
  requestImage(t, i, o, r) {
1195
- return Ut.call(this, super.requestImage.bind(this), t, i, o, r);
1204
+ return jt.call(this, super.requestImage.bind(this), t, i, o, r);
1196
1205
  }
1197
1206
  }
1198
- class Zn extends Ht {
1207
+ class Zn extends $t {
1199
1208
  constructor(t, i) {
1200
1209
  var o;
1201
1210
  super(t);
@@ -1206,10 +1215,10 @@ class Zn extends Ht {
1206
1215
  this.layerListInstance = (o = i.layersManager) == null ? void 0 : o.layerList, this.mapViewer = i;
1207
1216
  }
1208
1217
  requestImage(t, i, o, r) {
1209
- return Ut.call(this, super.requestImage.bind(this), t, i, o, r);
1218
+ return jt.call(this, super.requestImage.bind(this), t, i, o, r);
1210
1219
  }
1211
1220
  }
1212
- class Xn extends $t {
1221
+ class Xn extends zt {
1213
1222
  constructor(t, i) {
1214
1223
  var o;
1215
1224
  super(t);
@@ -1220,11 +1229,11 @@ class Xn extends $t {
1220
1229
  this.layerListInstance = (o = i.layersManager) == null ? void 0 : o.layerList, this.mapViewer = i;
1221
1230
  }
1222
1231
  requestImage(t, i, o, r) {
1223
- return Ut.call(this, super.requestImage.bind(this), t, i, o, r);
1232
+ return jt.call(this, super.requestImage.bind(this), t, i, o, r);
1224
1233
  }
1225
1234
  }
1226
- const Ko = 1, Yo = -1, pn = "TRANSPARENT_BASE_LAYER";
1227
- class qo {
1235
+ const Yo = 1, qo = -1, pn = "TRANSPARENT_BASE_LAYER";
1236
+ class Zo {
1228
1237
  constructor(n, t, i, o, r) {
1229
1238
  ce(this, "mapViewer");
1230
1239
  ce(this, "legendsList");
@@ -1278,17 +1287,17 @@ class qo {
1278
1287
  let o;
1279
1288
  switch (n.type) {
1280
1289
  case "XYZ_LAYER": {
1281
- const r = n.options, c = this.shouldOptimizedTileRequests ? new qn(r, this.mapViewer) : new Gt(r);
1290
+ const r = n.options, c = this.shouldOptimizedTileRequests ? new qn(r, this.mapViewer) : new Ht(r);
1282
1291
  o = this.mapViewer.imageryLayers.addImageryProvider(c, t);
1283
1292
  break;
1284
1293
  }
1285
1294
  case "WMS_LAYER": {
1286
- const r = n.options, c = this.shouldOptimizedTileRequests ? new Zn(r, this.mapViewer) : new Ht(r);
1295
+ const r = n.options, c = this.shouldOptimizedTileRequests ? new Zn(r, this.mapViewer) : new $t(r);
1287
1296
  o = this.mapViewer.imageryLayers.addImageryProvider(c, t);
1288
1297
  break;
1289
1298
  }
1290
1299
  case "WMTS_LAYER": {
1291
- const r = n.options, c = this.shouldOptimizedTileRequests ? new Xn(r, this.mapViewer) : new $t(r);
1300
+ const r = n.options, c = this.shouldOptimizedTileRequests ? new Xn(r, this.mapViewer) : new zt(r);
1292
1301
  o = this.mapViewer.imageryLayers.addImageryProvider(c, t);
1293
1302
  break;
1294
1303
  }
@@ -1386,7 +1395,7 @@ class qo {
1386
1395
  new mr({
1387
1396
  url: "./assets/img/transparent-tile.png",
1388
1397
  /* eslint-disable @typescript-eslint/no-magic-numbers */
1389
- rectangle: new je(-3.141592653589793, -1.5707963267948966, 3.141592653589793, 1.5707963267948966)
1398
+ rectangle: new He(-3.141592653589793, -1.5707963267948966, 3.141592653589793, 1.5707963267948966)
1390
1399
  /* eslint-enable @typescript-eslint/no-magic-numbers */
1391
1400
  }),
1392
1401
  0
@@ -1416,7 +1425,7 @@ class qo {
1416
1425
  return this.layers.find((t) => t.meta !== void 0 ? t.meta.id === n : !1);
1417
1426
  }
1418
1427
  updateLayersOrder(n, t, i) {
1419
- const o = t > i ? Ko : Yo, r = t < i ? t : i, c = t < i ? i : t;
1428
+ const o = t > i ? Yo : qo, r = t < i ? t : i, c = t < i ? i : t;
1420
1429
  this.layers.forEach((d) => {
1421
1430
  var p;
1422
1431
  if (!ie(d.meta, "parentBasetMapId")) {
@@ -1435,7 +1444,7 @@ class qo {
1435
1444
  try {
1436
1445
  const i = this.mapViewer.camera.computeViewRectangle();
1437
1446
  for (let o = this.layers.length - 1; o >= 0; o--) {
1438
- const r = this.layers[o], c = !kt(i) && !kt(r.rectangle) && je.intersection(i, r.rectangle);
1447
+ const r = this.layers[o], c = !Rt(i) && !Rt(r.rectangle) && He.intersection(i, r.rectangle);
1439
1448
  for (let d = this.layers.length - 1; d >= o; d--) {
1440
1449
  if (((n = r.meta) == null ? void 0 : n.skipRelevancyCheck) === !0) {
1441
1450
  r.meta = { ...r.meta, relevantToExtent: !0 };
@@ -1443,7 +1452,7 @@ class qo {
1443
1452
  }
1444
1453
  const h = this.layers[d], p = ((t = h.meta) == null ? void 0 : t[mt]) === !0;
1445
1454
  if (r !== h)
1446
- if (c instanceof je) {
1455
+ if (c instanceof He) {
1447
1456
  if (st(i, r.rectangle))
1448
1457
  if (st(i, h.rectangle) && !p) {
1449
1458
  r.meta = {
@@ -1473,7 +1482,7 @@ class qo {
1473
1482
  else
1474
1483
  o === this.layers.length - 1 && (r.meta = {
1475
1484
  ...r.meta ?? {},
1476
- relevantToExtent: c instanceof je
1485
+ relevantToExtent: c instanceof He
1477
1486
  });
1478
1487
  }
1479
1488
  }
@@ -1482,10 +1491,10 @@ class qo {
1482
1491
  }
1483
1492
  }
1484
1493
  }
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: [
1494
+ const Xo = /* @__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
1495
  /* @__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
1496
  /* @__PURE__ */ l("circle", { cx: "270.1", cy: "56.3", r: "56.3" })
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 }) => {
1497
+ ] }) }), Jo = ({ onClick: e }) => /* @__PURE__ */ l(me, { onClick: e, className: "mapLegendToggleContainer", children: /* @__PURE__ */ l($e, { icon: Xo, className: "mapLegendIcon" }) }), Qo = ({ legend: { legendImg: e, legendDoc: n, layer: t }, docText: i, imgText: o }) => {
1489
1498
  const r = xe(() => {
1490
1499
  window.open(e, "_blank");
1491
1500
  }, [e]);
@@ -1504,10 +1513,10 @@ const Zo = /* @__PURE__ */ l("svg", { xmlns: "http://www.w3.org/2000/svg", enabl
1504
1513
  /* @__PURE__ */ l("img", { alt: "Map Legend", className: "legendImg", src: e, onClick: r }),
1505
1514
  /* @__PURE__ */ l(me, { className: "legendActionsContainer", children: d() })
1506
1515
  ] });
1507
- }, Qo = ({ legends: e, actionsTexts: { docText: n, imgText: t }, noLegendsText: i }) => {
1508
- const o = xe(() => /* @__PURE__ */ l(me, { className: "noLegendsContainer", children: /* @__PURE__ */ l("h2", { className: "noLegendsMsg", children: i }) }), [i]), r = xe(() => e.length ? e.map((c, d) => /* @__PURE__ */ l(Jo, { legend: c, docText: n, imgText: t }, `${c.layer}_${d}`)) : o(), [e]);
1516
+ }, es = ({ legends: e, actionsTexts: { docText: n, imgText: t }, noLegendsText: i }) => {
1517
+ const o = xe(() => /* @__PURE__ */ l(me, { className: "noLegendsContainer", children: /* @__PURE__ */ l("h2", { className: "noLegendsMsg", children: i }) }), [i]), r = xe(() => e.length ? e.map((c, d) => /* @__PURE__ */ l(Qo, { legend: c, docText: n, imgText: t }, `${c.layer}_${d}`)) : o(), [e]);
1509
1518
  return /* @__PURE__ */ l(me, { className: "mapLegendsList", children: r() });
1510
- }, es = ({
1519
+ }, ts = ({
1511
1520
  isOpen: e,
1512
1521
  toggleSidebar: n,
1513
1522
  title: t = "Map Legends",
@@ -1517,52 +1526,52 @@ const Zo = /* @__PURE__ */ l("svg", { xmlns: "http://www.w3.org/2000/svg", enabl
1517
1526
  }) => e ? /* @__PURE__ */ $(vi, { className: "mapLegendSidebarContainer", modal: !1, dismissible: !0, open: e, children: [
1518
1527
  /* @__PURE__ */ l(Ei, { className: "sidebarHeaderContainer", children: /* @__PURE__ */ l(Ci, { className: "sidebarTitle", children: t }) }),
1519
1528
  /* @__PURE__ */ $(wi, { className: "sidebarContent", children: [
1520
- /* @__PURE__ */ l(He, { onClick: n, className: "mapLegendCloseBtn", icon: { icon: "close", size: "small" } }),
1521
- /* @__PURE__ */ l(Qo, { noLegendsText: i, legends: r, actionsTexts: o })
1529
+ /* @__PURE__ */ l($e, { onClick: n, className: "mapLegendCloseBtn", icon: { icon: "close", size: "small" } }),
1530
+ /* @__PURE__ */ l(es, { noLegendsText: i, legends: r, actionsTexts: o })
1522
1531
  ] })
1523
1532
  ] }) : null;
1524
- class wl extends pr {
1533
+ class bl extends pr {
1525
1534
  }
1526
- class bl extends gr {
1535
+ class Ll extends gr {
1527
1536
  }
1528
- class Ll extends fr {
1537
+ class Tl extends fr {
1529
1538
  }
1530
- class Tl extends Ne {
1539
+ class Sl extends Ie {
1531
1540
  }
1532
- class Sl extends _e {
1541
+ class Ml extends _e {
1533
1542
  }
1534
- class ts extends Re {
1543
+ class ns extends Ne {
1535
1544
  }
1536
- class Ml extends Rn {
1545
+ class _l extends Rn {
1537
1546
  }
1538
- class _l extends zt {
1547
+ class Pl extends Wt {
1539
1548
  }
1540
- class Pl extends yr {
1549
+ class xl extends yr {
1541
1550
  }
1542
- class xl extends je {
1551
+ class Dl extends He {
1543
1552
  }
1544
- class Dl extends vr {
1553
+ class Il extends vr {
1545
1554
  }
1546
- class Il extends Er {
1555
+ class Ol extends Er {
1547
1556
  }
1548
- class Ol extends Cr {
1557
+ class Al extends Cr {
1549
1558
  }
1550
- class Al extends Nn {
1559
+ class kl extends Nn {
1551
1560
  }
1552
- class kl extends Qe {
1561
+ class Rl extends Qe {
1553
1562
  }
1554
- class Rl extends wr {
1563
+ class Nl extends wr {
1555
1564
  }
1556
- class Nl extends It {
1565
+ class Bl extends Ot {
1557
1566
  }
1558
- class Bl extends Ge {
1567
+ class Fl extends Ge {
1559
1568
  }
1560
- class Fl extends Bn {
1569
+ class Vl extends Bn {
1561
1570
  }
1562
- class Vl extends br {
1571
+ class Gl extends br {
1563
1572
  }
1564
- const Gl = ut, Hl = Lr, be = $e, $l = Fn, zl = Ot;
1565
- const ns = it(
1573
+ const Hl = ut, $l = Lr, be = ze, zl = Fn, Wl = At;
1574
+ const is = it(
1566
1575
  (e) => pt({
1567
1576
  mapContainer: {
1568
1577
  width: "60px",
@@ -1570,8 +1579,8 @@ const ns = it(
1570
1579
  border: `${e.palette.background.paper} 2px solid`
1571
1580
  }
1572
1581
  })
1573
- ), is = (e) => {
1574
- const n = we(), { baseMaps: t } = e, [i, o] = F(" "), [r, c] = F(), d = ns();
1582
+ ), rs = (e) => {
1583
+ const n = we(), { baseMaps: t } = e, [i, o] = F(" "), [r, c] = F(), d = is();
1575
1584
  N(() => {
1576
1585
  const p = t == null ? void 0 : t.maps.find((C) => C.isCurrent);
1577
1586
  p && (c(p), o(p.title !== void 0 ? p.title : " "));
@@ -1607,13 +1616,13 @@ const ns = it(
1607
1616
  ) }, p.id)) })
1608
1617
  ] });
1609
1618
  };
1610
- const rs = -1, os = (e) => {
1611
- const n = we(), [t, i] = F(be.SCENE2D), { sceneModes: o } = e, r = (c) => o.findIndex((d) => d === c) > rs;
1619
+ const os = -1, ss = (e) => {
1620
+ const n = we(), [t, i] = F(be.SCENE2D), { sceneModes: o } = e, r = (c) => o.findIndex((d) => d === c) > os;
1612
1621
  return N(() => {
1613
1622
  i(n.scene.mode);
1614
1623
  }, []), /* @__PURE__ */ $(Ce, { children: [
1615
1624
  r(be.SCENE3D) && /* @__PURE__ */ l(
1616
- He,
1625
+ $e,
1617
1626
  {
1618
1627
  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
1628
  onClick: () => {
@@ -1622,7 +1631,7 @@ const rs = -1, os = (e) => {
1622
1631
  }
1623
1632
  ),
1624
1633
  r(be.SCENE2D) && /* @__PURE__ */ l(
1625
- He,
1634
+ $e,
1626
1635
  {
1627
1636
  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
1637
  onClick: () => {
@@ -1631,7 +1640,7 @@ const rs = -1, os = (e) => {
1631
1640
  }
1632
1641
  ),
1633
1642
  r(be.COLUMBUS_VIEW) && /* @__PURE__ */ l(
1634
- He,
1643
+ $e,
1635
1644
  {
1636
1645
  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
1646
  onClick: () => {
@@ -1641,7 +1650,7 @@ const rs = -1, os = (e) => {
1641
1650
  )
1642
1651
  ] });
1643
1652
  };
1644
- const Mt = "ic_settings_24px", ss = (e) => {
1653
+ const Mt = "ic_settings_24px", as = (e) => {
1645
1654
  const [n, t] = F(!1), { sceneModes: i, baseMaps: o, locale: r } = e, c = Pe(null), d = ie(r, "MAP_SETTINGS_DIALOG_TITLE") ?? "Map Settings", h = ie(r, "MAP_SETTINGS_SCENE_MODE_TITLE") ?? "Scene Mode", p = ie(r, "MAP_SETTINGS_BASE_MAP_TITLE") ?? "Base Map";
1646
1655
  return N(() => {
1647
1656
  const C = (m) => {
@@ -1654,7 +1663,7 @@ const Mt = "ic_settings_24px", ss = (e) => {
1654
1663
  };
1655
1664
  }), /* @__PURE__ */ $(Ce, { children: [
1656
1665
  /* @__PURE__ */ l(
1657
- He,
1666
+ $e,
1658
1667
  {
1659
1668
  icon: /* @__PURE__ */ l("div", { className: "settingsIconContainer", children: /* @__PURE__ */ l("svg", { width: "100%", height: "100%", viewBox: "0 0 24 24", id: Mt, x: "288", y: "24", children: /* @__PURE__ */ l("path", { d: "M19.43 12.98c.04-.32.07-.64.07-.98s-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46c-.12-.22-.39-.3-.61-.22l-2.49 1c-.52-.4-1.08-.73-1.69-.98l-.38-2.65A.488.488 0 0 0 14 2h-4c-.25 0-.46.18-.49.42l-.38 2.65c-.61.25-1.17.59-1.69.98l-2.49-1c-.23-.09-.49 0-.61.22l-2 3.46c-.13.22-.07.49.12.64l2.11 1.65c-.04.32-.07.65-.07.98s.03.66.07.98l-2.11 1.65c-.19.15-.24.42-.12.64l2 3.46c.12.22.39.3.61.22l2.49-1c.52.4 1.08.73 1.69.98l.38 2.65c.03.24.24.42.49.42h4c.25 0 .46-.18.49-.42l.38-2.65c.61-.25 1.17-.59 1.69-.98l2.49 1c.23.09.49 0 .61-.22l2-3.46c.12-.22.07-.49-.12-.64l-2.11-1.65zM12 15.5c-1.93 0-3.5-1.57-3.5-3.5s1.57-3.5 3.5-3.5 3.5 1.57 3.5 3.5-1.57 3.5-3.5 3.5z" }) }) }),
1660
1669
  onClick: () => {
@@ -1673,10 +1682,10 @@ const Mt = "ic_settings_24px", ss = (e) => {
1673
1682
  /* @__PURE__ */ l(Dn, { children: d }),
1674
1683
  /* @__PURE__ */ $(In, { children: [
1675
1684
  /* @__PURE__ */ l("h4", { className: "sectionLabel", children: h }),
1676
- /* @__PURE__ */ l(me, { className: "mapScenesContainer", children: /* @__PURE__ */ l(os, { sceneModes: i }) }),
1685
+ /* @__PURE__ */ l(me, { className: "mapScenesContainer", children: /* @__PURE__ */ l(ss, { sceneModes: i }) }),
1677
1686
  /* @__PURE__ */ l(me, { className: "baseMapsContainer", children: o && /* @__PURE__ */ $(Ce, { children: [
1678
1687
  /* @__PURE__ */ l("h4", { className: "sectionLabel", children: p }),
1679
- /* @__PURE__ */ l(is, { baseMaps: o })
1688
+ /* @__PURE__ */ l(rs, { baseMaps: o })
1680
1689
  ] }) })
1681
1690
  ] })
1682
1691
  ]
@@ -1684,7 +1693,7 @@ const Mt = "ic_settings_24px", ss = (e) => {
1684
1693
  ) })
1685
1694
  ] });
1686
1695
  };
1687
- const as = (e) => {
1696
+ const ls = (e) => {
1688
1697
  const n = we(), { enableCompass: t = !0, enableZoomControls: i = !1, lockCompassNavigation: o = !1, locale: r = { DIRECTION: "ltr" } } = e;
1689
1698
  return N(() => {
1690
1699
  if (typeof ie(n, "cesiumNavigation") > "u") {
@@ -1698,7 +1707,7 @@ const as = (e) => {
1698
1707
  }
1699
1708
  }, [n, t, i, r.DIRECTION, o]), null;
1700
1709
  };
1701
- const ls = (e) => {
1710
+ const cs = (e) => {
1702
1711
  const n = we(), t = Pe(null), [i, o] = F({ x: 0, y: 0 });
1703
1712
  return N(() => {
1704
1713
  n.screenSpaceEventHandler.setInputAction((r) => {
@@ -1706,26 +1715,26 @@ const ls = (e) => {
1706
1715
  const c = { ...r.endPosition };
1707
1716
  c.x = Math.ceil(c.x), c.y = Math.ceil(c.y), o(c);
1708
1717
  }
1709
- }, At.MOUSE_MOVE);
1718
+ }, kt.MOUSE_MOVE);
1710
1719
  }, [t, n]), N(() => {
1711
1720
  const r = n.scene.globe.ellipsoid;
1712
1721
  if (i) {
1713
1722
  const c = Yn(n, i.x, i.y);
1714
1723
  if (c) {
1715
- const d = new ts(c.longitude, c.latitude);
1724
+ const d = new ns(c.longitude, c.latitude);
1716
1725
  if (t.current) {
1717
1726
  let h = "";
1718
1727
  switch (e.projection) {
1719
- case Ae.WEB_MERCATOR: {
1728
+ case ke.WEB_MERCATOR: {
1720
1729
  const C = new Tr(r).project(d);
1721
- h = `Mercator: ${C.y.toFixed(Bt)}m, ${C.x.toFixed(
1722
- Bt
1730
+ h = `Mercator: ${C.y.toFixed(Ft)}m, ${C.x.toFixed(
1731
+ Ft
1723
1732
  )}m`, t.current.style.width = "220px";
1724
1733
  break;
1725
1734
  }
1726
- case Ae.WGS84: {
1727
- const p = d.longitude.toFixed(Nt);
1728
- h = `WGS84: ${d.latitude.toFixed(Nt)}°N ${p}°E`, t.current.style.width = "200px";
1735
+ case ke.WGS84: {
1736
+ const p = d.longitude.toFixed(Bt);
1737
+ h = `WGS84: ${d.latitude.toFixed(Bt)}°N ${p}°E`, t.current.style.width = "200px";
1729
1738
  break;
1730
1739
  }
1731
1740
  }
@@ -1768,7 +1777,7 @@ const _t = [
1768
1777
  2e7,
1769
1778
  3e7,
1770
1779
  5e7
1771
- ], cs = (e, n, t, i) => {
1780
+ ], ds = (e, n, t, i) => {
1772
1781
  const o = ie(i, "METERS_UNIT") ?? "m", r = ie(i, "KILOMETERS_UNIT") ?? "km", c = {
1773
1782
  barWidth: void 0,
1774
1783
  distanceLabel: void 0,
@@ -1777,7 +1786,7 @@ const _t = [
1777
1786
  if (h < c.lastLegendUpdate + 250)
1778
1787
  return;
1779
1788
  c.lastLegendUpdate = h;
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);
1789
+ const p = e.scene.canvas.clientWidth, C = e.scene.canvas.clientHeight, m = e.scene.camera.getPickRay(new Ie(p / 2 | 0, C - 1)), b = e.scene.camera.getPickRay(new Ie(1 + p / 2 | 0, C - 1)), P = e.scene.globe, S = P.pick(m, e.scene), H = P.pick(b, e.scene);
1781
1790
  if (!S || !H)
1782
1791
  return;
1783
1792
  const Z = P.ellipsoid.cartesianToCartographic(S), z = P.ellipsoid.cartesianToCartographic(H);
@@ -1791,7 +1800,7 @@ const _t = [
1791
1800
  k >= 1e3 ? X = `${(k / 1e3).toString()} ${r}` : X = `${k.toString()} ${o}`, c.barWidth = k / q | 0, c.distanceLabel = X;
1792
1801
  }
1793
1802
  t(c);
1794
- }, ds = (e) => {
1803
+ }, us = (e) => {
1795
1804
  const n = we(), [t, i] = F({
1796
1805
  barWidth: void 0,
1797
1806
  distanceLabel: void 0,
@@ -1799,7 +1808,7 @@ const _t = [
1799
1808
  });
1800
1809
  N(() => {
1801
1810
  const r = (h) => {
1802
- cs(n, t, i, e.locale);
1811
+ ds(n, t, i, e.locale);
1803
1812
  }, c = new Sr(), d = (h) => {
1804
1813
  n.scene.globe.tilesLoaded && (r(new MouseEvent("mouse")), c.removeAll());
1805
1814
  };
@@ -1833,7 +1842,7 @@ const gn = (e, n) => {
1833
1842
  if (i.getLevelMaximumGeometricError(d) * r / (e * c) < o.maximumScreenSpaceError)
1834
1843
  return d;
1835
1844
  return null;
1836
- }, us = (e, n) => {
1845
+ }, hs = (e, n) => {
1837
1846
  e = e || 10;
1838
1847
  const t = [];
1839
1848
  let i = 1e5, o = 0;
@@ -1852,8 +1861,8 @@ const gn = (e, n) => {
1852
1861
  }
1853
1862
  }
1854
1863
  return t;
1855
- }, hs = ({ locale: e = void 0, valueBy: n = "RENDERED_TILES" }) => {
1856
- const t = we(), i = rt(), [o, r] = F(1), c = us(1, t), d = xe(() => {
1864
+ }, ms = ({ locale: e = void 0, valueBy: n = "RENDERED_TILES" }) => {
1865
+ const t = we(), i = rt(), [o, r] = F(1), c = hs(1, t), d = xe(() => {
1857
1866
  const m = t.camera, b = 0.5;
1858
1867
  let P = 0;
1859
1868
  switch (t.scene.mode) {
@@ -1902,13 +1911,13 @@ const gn = (e, n) => {
1902
1911
  /* @__PURE__ */ l("div", { className: "zoomLevelLabel", children: ie(e, "ZOOM_LABEL") ?? "zoom" })
1903
1912
  ] });
1904
1913
  };
1905
- const ms = () => {
1914
+ const ps = () => {
1906
1915
  const e = we();
1907
1916
  return /* @__PURE__ */ l("div", { className: "zoom-buttons-container", children: [
1908
1917
  { onClick: () => e.camera.zoomIn(), iconPath: "M48 20h-18v-18h-10v18h-18v10h18v18h10v-18h18z" },
1909
1918
  { onClick: () => e.camera.zoomOut(), iconPath: "M2 20h46v10h-46z" }
1910
1919
  ].map((t, i) => /* @__PURE__ */ l(
1911
- He,
1920
+ $e,
1912
1921
  {
1913
1922
  icon: /* @__PURE__ */ l("div", { className: "zoom-button", children: /* @__PURE__ */ l(
1914
1923
  "svg",
@@ -1929,24 +1938,24 @@ const ms = () => {
1929
1938
  i
1930
1939
  )) });
1931
1940
  };
1932
- const fn = 212, yn = 260, ps = 0;
1933
- class Wl extends _r {
1941
+ const fn = 212, yn = 260, gs = 0;
1942
+ class Ul extends _r {
1934
1943
  constructor(t, i) {
1935
1944
  super(t, i);
1936
1945
  ce(this, "layersManager");
1937
1946
  }
1938
1947
  }
1939
- const jt = Ke(null), gs = jt.Provider, we = () => {
1940
- const e = ze(jt);
1948
+ const Kt = Ke(null), fs = Kt.Provider, we = () => {
1949
+ const e = We(Kt);
1941
1950
  if (e === null)
1942
1951
  throw new Error("map context is null, please check the provider");
1943
1952
  return e.mapViewer;
1944
1953
  }, rt = () => {
1945
- const { mapViewer: e, ...n } = ze(jt);
1954
+ const { mapViewer: e, ...n } = We(Kt);
1946
1955
  if (n === null)
1947
1956
  throw new Error("map context viewstate is null, please check the provider");
1948
1957
  return n;
1949
- }, Ul = (e) => {
1958
+ }, jl = (e) => {
1950
1959
  var L, T, O, B, R, j, oe, ye;
1951
1960
  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
1961
  N(() => {
@@ -1972,7 +1981,7 @@ const jt = Ke(null), gs = jt.Provider, we = () => {
1972
1981
  left: `${le - U < V ? U - (V - (le - U)) : U}px`,
1973
1982
  top: `${ve - Q < Le ? Q - (Le - (ve - Q)) : Q}px`
1974
1983
  };
1975
- }, ke = xe(
1984
+ }, Re = xe(
1976
1985
  (U) => {
1977
1986
  if (n.current !== null) {
1978
1987
  const Q = n.current.cesiumElement, V = { x: U.offsetX, y: U.offsetY };
@@ -1985,7 +1994,7 @@ const jt = Ke(null), gs = jt.Provider, we = () => {
1985
1994
  var U;
1986
1995
  if (n.current !== null) {
1987
1996
  const Q = n.current.cesiumElement;
1988
- e.imageryContextMenu && (Q.scene.canvas.removeEventListener("contextmenu", ke), Q.scene.canvas.addEventListener("contextmenu", ke));
1997
+ e.imageryContextMenu && (Q.scene.canvas.removeEventListener("contextmenu", Re), Q.scene.canvas.addEventListener("contextmenu", Re));
1989
1998
  }
1990
1999
  i((U = n.current) == null ? void 0 : U.cesiumElement);
1991
2000
  }, [n, e.imageryContextMenu]);
@@ -1994,7 +2003,7 @@ const jt = Ke(null), gs = jt.Provider, we = () => {
1994
2003
  if (t)
1995
2004
  return {
1996
2005
  mapViewer: t.layersManager ? t : Object.assign(t, {
1997
- layersManager: new qo(
2006
+ layersManager: new Zo(
1998
2007
  t,
1999
2008
  (U = e.legends) == null ? void 0 : U.mapLegendsExtractor,
2000
2009
  () => {
@@ -2019,7 +2028,7 @@ const jt = Ke(null), gs = jt.Provider, we = () => {
2019
2028
  const U = (Q = e.baseMaps) == null ? void 0 : Q.maps.find((ee) => ee.isCurrent);
2020
2029
  U && t && ((V = t.layersManager) == null || V.setBaseMapLayers(U));
2021
2030
  }, [e.baseMaps, t]), N(() => {
2022
- r(e.projection ?? Ae.WGS84);
2031
+ r(e.projection ?? ke.WGS84);
2023
2032
  }, [e.projection]), N(() => {
2024
2033
  X(e.locale);
2025
2034
  }, [e.locale]), N(() => {
@@ -2049,8 +2058,8 @@ const jt = Ke(null), gs = jt.Provider, we = () => {
2049
2058
  height: ee.height
2050
2059
  };
2051
2060
  };
2052
- if (t.scene.mode === $e.SCENE3D) {
2053
- const ee = new Ne(
2061
+ if (t.scene.mode === ze.SCENE3D) {
2062
+ const ee = new Ie(
2054
2063
  // eslint-disable-next-line @typescript-eslint/no-magic-numbers
2055
2064
  t.container.clientWidth / 2,
2056
2065
  // eslint-disable-next-line @typescript-eslint/no-magic-numbers
@@ -2072,7 +2081,7 @@ const jt = Ke(null), gs = jt.Provider, we = () => {
2072
2081
  return V();
2073
2082
  };
2074
2083
  t && (t.camera.moveEnd.addEventListener(() => {
2075
- if (t.scene.mode !== $e.MORPHING) {
2084
+ if (t.scene.mode !== ze.MORPHING) {
2076
2085
  const V = t.camera, ee = {
2077
2086
  position: U(),
2078
2087
  direction: V.direction.clone(),
@@ -2127,22 +2136,22 @@ const jt = Ke(null), gs = jt.Provider, we = () => {
2127
2136
  S && ae && /* @__PURE__ */ l(bi, { style: { position: "absolute", top: 0, height: "10px", zIndex: 4 } }),
2128
2137
  /* @__PURE__ */ $(me, { className: "sideToolsContainer", children: [
2129
2138
  e.debugPanel && /* @__PURE__ */ l(Vo, { locale: k, children: e.debugPanel.wfs && /* @__PURE__ */ l(Go, { locale: k, featureTypes: [] }) }),
2130
- /* @__PURE__ */ l(ss, { sceneModes: K, baseMaps: y, locale: k }),
2131
- /* @__PURE__ */ l(Xo, { onClick: () => x(!D) })
2139
+ /* @__PURE__ */ l(as, { sceneModes: K, baseMaps: y, locale: k }),
2140
+ /* @__PURE__ */ l(Jo, { onClick: () => x(!D) })
2132
2141
  ] }),
2133
2142
  /* @__PURE__ */ $(me, { className: "toolsContainer", children: [
2134
- c && /* @__PURE__ */ l(ls, { projection: o }),
2135
- h && /* @__PURE__ */ l(hs, { locale: k, valueBy: "RENDERED_TILES" }),
2136
- C && /* @__PURE__ */ l(ds, { locale: k }),
2137
- b && /* @__PURE__ */ l(as, { locale: k })
2143
+ c && /* @__PURE__ */ l(cs, { projection: o }),
2144
+ h && /* @__PURE__ */ l(ms, { locale: k, valueBy: "RENDERED_TILES" }),
2145
+ C && /* @__PURE__ */ l(us, { locale: k }),
2146
+ b && /* @__PURE__ */ l(ls, { locale: k })
2138
2147
  ] }),
2139
- A && /* @__PURE__ */ l(ms, {})
2148
+ A && /* @__PURE__ */ l(ps, {})
2140
2149
  ] }),
2141
2150
  document.querySelector(".cesium-viewer")
2142
2151
  ), [y, k, t, o, K, c, C, D, ae]);
2143
- return /* @__PURE__ */ l(ir, { className: "viewer", full: !0, ref: n, ...ue, children: /* @__PURE__ */ $(gs, { value: Me, children: [
2152
+ return /* @__PURE__ */ l(ir, { className: "viewer", full: !0, ref: n, ...ue, children: /* @__PURE__ */ $(fs, { value: Me, children: [
2144
2153
  /* @__PURE__ */ l(
2145
- es,
2154
+ ts,
2146
2155
  {
2147
2156
  title: (L = e.legends) == null ? void 0 : L.title,
2148
2157
  isOpen: D,
@@ -2154,7 +2163,7 @@ const jt = Ke(null), gs = jt.Provider, we = () => {
2154
2163
  ),
2155
2164
  e.children,
2156
2165
  Ee(),
2157
- e.imageryContextMenu && v && f && _ && Oe.cloneElement(e.imageryContextMenu, {
2166
+ e.imageryContextMenu && v && f && _ && Ae.cloneElement(e.imageryContextMenu, {
2158
2167
  data: (R = t == null ? void 0 : t.layersManager) == null ? void 0 : R.findLayerByPOI(
2159
2168
  f.x,
2160
2169
  f.y,
@@ -2170,7 +2179,7 @@ const jt = Ke(null), gs = jt.Provider, we = () => {
2170
2179
  f.y,
2171
2180
  ((j = e.imageryContextMenuSize) == null ? void 0 : j.width) ?? yn,
2172
2181
  ((oe = e.imageryContextMenuSize) == null ? void 0 : oe.height) ?? fn,
2173
- ((ye = e.imageryContextMenuSize) == null ? void 0 : ye.dynamicHeightIncrement) ?? ps
2182
+ ((ye = e.imageryContextMenuSize) == null ? void 0 : ye.dynamicHeightIncrement) ?? gs
2174
2183
  ),
2175
2184
  size: e.imageryContextMenuSize ?? {
2176
2185
  height: fn,
@@ -2182,7 +2191,7 @@ const jt = Ke(null), gs = jt.Provider, we = () => {
2182
2191
  contextEvt: w.current
2183
2192
  })
2184
2193
  ] }) });
2185
- }, fs = 0, jl = (e) => {
2194
+ }, ys = 0, Kl = (e) => {
2186
2195
  const n = we();
2187
2196
  return /* @__PURE__ */ l(
2188
2197
  rr,
@@ -2192,7 +2201,7 @@ const jt = Ke(null), gs = jt.Provider, we = () => {
2192
2201
  e.isZoomTo === !0 && n.zoomTo(t);
2193
2202
  const i = n.scene;
2194
2203
  i.globe.depthTestAgainstTerrain = !0;
2195
- const o = Re.fromCartesian(t.boundingSphere.center), r = e.heightFromGround ?? fs;
2204
+ const o = Ne.fromCartesian(t.boundingSphere.center), r = e.heightFromGround ?? ys;
2196
2205
  if (r) {
2197
2206
  const c = _e.fromRadians(o.longitude, o.latitude, o.height), d = _e.fromRadians(o.longitude, o.latitude, o.height + r), h = _e.subtract(d, c, new _e());
2198
2207
  t.modelMatrix = Pr.fromTranslation(h);
@@ -2217,7 +2226,7 @@ const jt = Ke(null), gs = jt.Provider, we = () => {
2217
2226
  });
2218
2227
  break;
2219
2228
  }
2220
- }, Kl = (e) => {
2229
+ }, Yl = (e) => {
2221
2230
  const { data: n, ...t } = e, i = Rr(n);
2222
2231
  return i && (typeof i.features < "u" ? i.features.forEach((o) => {
2223
2232
  wn(o.geometry);
@@ -2228,19 +2237,19 @@ const jt = Ke(null), gs = jt.Provider, we = () => {
2228
2237
  var o;
2229
2238
  (o = i.layersManager) == null || o.addMetaToLayer(n, n.searchLayerPredicate);
2230
2239
  }, [n, i]), /* @__PURE__ */ l(sr, { ...t });
2231
- }, Yl = (e) => {
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
- return /* @__PURE__ */ l(vt, { ...t, imageryProvider: r });
2234
2240
  }, ql = (e) => {
2235
- const { options: n, ...t } = e, i = we(), { viewState: o } = rt(), r = fe(() => o.shouldOptimizedTileRequests ? new Xn(n, i) : new $t(n), [o.shouldOptimizedTileRequests]);
2241
+ const { options: n, ...t } = e, i = we(), { viewState: o } = rt(), r = fe(() => o.shouldOptimizedTileRequests ? new Zn(n, i) : new $t(n), [o.shouldOptimizedTileRequests]);
2236
2242
  return /* @__PURE__ */ l(vt, { ...t, imageryProvider: r });
2237
2243
  }, Zl = (e) => {
2238
- const { options: n, ...t } = e, i = we(), { viewState: o } = rt(), r = fe(() => o.shouldOptimizedTileRequests ? new qn(n, i) : new Gt(n), [o.shouldOptimizedTileRequests]);
2244
+ const { options: n, ...t } = e, i = we(), { viewState: o } = rt(), r = fe(() => o.shouldOptimizedTileRequests ? new Xn(n, i) : new zt(n), [o.shouldOptimizedTileRequests]);
2239
2245
  return /* @__PURE__ */ l(vt, { ...t, imageryProvider: r });
2240
2246
  }, Xl = (e) => {
2247
+ const { options: n, ...t } = e, i = we(), { viewState: o } = rt(), r = fe(() => o.shouldOptimizedTileRequests ? new qn(n, i) : new Ht(n), [o.shouldOptimizedTileRequests]);
2248
+ return /* @__PURE__ */ l(vt, { ...t, imageryProvider: r });
2249
+ }, Jl = (e) => {
2241
2250
  const { options: n, ...t } = e;
2242
2251
  return /* @__PURE__ */ l(vt, { ...t, imageryProvider: new xr(n) });
2243
- }, ys = "#FFFF00", Jl = (e) => {
2252
+ }, vs = "#FFFF00", Ql = (e) => {
2244
2253
  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
2254
  N(() => {
2246
2255
  Z.current = H.viewState;
@@ -2289,14 +2298,14 @@ const jt = Ke(null), gs = jt.Provider, we = () => {
2289
2298
  }, g = (L) => {
2290
2299
  let T = null, O = null;
2291
2300
  L.setInputAction((B) => {
2292
- if (S.scene.mode === $e.SCENE2D) {
2301
+ if (S.scene.mode === ze.SCENE2D) {
2293
2302
  const j = S.scene.pick(B.endPosition);
2294
2303
  j && j.id && (j.id.polygon || j.id.polyline) ? ie(T, "id") !== ie(j.id, "id") && (T && (T[y(T)].material = O, S.container.style.cursor = "default"), T = j.id, O = T[y(T)].material, T[y(T)].material = G, S.container.style.cursor = "pointer") : T && (T[y(T)].material = O, T = null, S.container.style.cursor = "default");
2295
2304
  } else {
2296
2305
  const j = v(B.endPosition);
2297
2306
  j ? ie(T, "id") !== ie(j, "id") && (T && (T[y(T)].material = O, S.container.style.cursor = "default"), T = j, O = T[y(T)].material, T[y(T)].material = G, S.container.style.cursor = "pointer") : T && (T[y(T)].material = O, T = null, S.container.style.cursor = "default");
2298
2307
  }
2299
- }, At.MOUSE_MOVE);
2308
+ }, kt.MOUSE_MOVE);
2300
2309
  }, w = (L, T) => {
2301
2310
  const O = navigator.hardwareConcurrency || 4;
2302
2311
  let B = Math.ceil(O * 1.5);
@@ -2441,11 +2450,11 @@ const jt = Ke(null), gs = jt.Provider, we = () => {
2441
2450
  T
2442
2451
  ), L.numberReturned && L.numberReturned !== 0 ? pe(++Y.current * d) : Y.current = 0;
2443
2452
  }, pe = xe(async (L = 0) => {
2444
- if (!S || S.scene.mode === $e.MORPHING)
2453
+ if (!S || S.scene.mode === ze.MORPHING)
2445
2454
  return;
2446
- const T = jo(S);
2455
+ const T = Ko(S);
2447
2456
  if (T) {
2448
- if (await ke(), Z.current.currentZoomLevel > 0 && Z.current.currentZoomLevel < h && (s == null ? void 0 : s.entities.values.length) > 0) {
2457
+ if (await Re(), Z.current.currentZoomLevel > 0 && Z.current.currentZoomLevel < h && (s == null ? void 0 : s.entities.values.length) > 0) {
2449
2458
  M();
2450
2459
  return;
2451
2460
  }
@@ -2465,18 +2474,18 @@ const jt = Ke(null), gs = jt.Provider, we = () => {
2465
2474
  }
2466
2475
  }
2467
2476
  }
2468
- }, []), ke = () => new Promise((L) => {
2477
+ }, []), Re = () => new Promise((L) => {
2469
2478
  const T = setInterval(() => {
2470
2479
  S.scene.globe.tilesLoaded && (clearInterval(T), L());
2471
2480
  }, 100);
2472
2481
  }), Me = (L, T, O, B) => {
2473
- const R = L.scene.mode === $e.SCENE2D, j = (V) => {
2482
+ const R = L.scene.mode === ze.SCENE2D, j = (V) => {
2474
2483
  var ee;
2475
2484
  if (V.polygon)
2476
2485
  return {
2477
2486
  type: "Polygon",
2478
2487
  coordinates: [((ee = V.polygon.hierarchy) == null ? void 0 : ee.getValue(Qe.now())).positions.map((le) => {
2479
- const ve = Re.fromCartesian(le), Le = new Re(
2488
+ const ve = Ne.fromCartesian(le), Le = new Ne(
2480
2489
  J.toDegrees(ve.longitude),
2481
2490
  J.toDegrees(ve.latitude),
2482
2491
  R ? 500 : void 0
@@ -2489,13 +2498,13 @@ const jt = Ke(null), gs = jt.Provider, we = () => {
2489
2498
  const le = tn.wgs84ToWindowCoordinates(V, ee);
2490
2499
  if (!le)
2491
2500
  return null;
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);
2501
+ const ve = le.x + ge, Le = le.y + de, Ye = new Ie(ve, le.y), Ue = new Ie(le.x, Le), Be = V.camera.pickEllipsoid(Ye, V.globe.ellipsoid), Fe = V.camera.pickEllipsoid(Ue, V.globe.ellipsoid);
2493
2502
  if (!Be || !Fe)
2494
2503
  return null;
2495
2504
  const qe = _e.distance(ee, Be), Ve = _e.distance(ee, Fe);
2496
2505
  return { widthMeters: qe, heightMeters: Ve };
2497
2506
  }, 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;
2507
+ const de = Wt.WGS84, le = V.latitude, ve = V.longitude, Le = Math.PI / 180 * de.maximumRadius, Ye = Math.PI / 180 * de.maximumRadius, Ue = ge / 2 / Le, Be = ee / 2 / Ye, Fe = le + Ue, qe = le - Ue, Ve = ve + Be, Ze = ve - Be;
2499
2508
  return {
2500
2509
  type: "Polygon",
2501
2510
  coordinates: [
@@ -2520,9 +2529,9 @@ const jt = Ke(null), gs = jt.Provider, we = () => {
2520
2529
  properties: {
2521
2530
  label: ve
2522
2531
  }
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);
2532
+ }), Ye = { width: ve.width, height: ve.height }, [Ue, Be, Fe = 0] = Le.geometry.coordinates, qe = _e.fromDegrees(Ue, Be, Fe), Ve = oe(L.scene, qe, Ye.width, Ye.height);
2524
2533
  if (Ve) {
2525
- const Ze = ye({ longitude: We, latitude: Be }, Ve.widthMeters, Ve.heightMeters), Et = sn(le, {
2534
+ const Ze = ye({ longitude: Ue, latitude: Be }, Ve.widthMeters, Ve.heightMeters), Et = sn(le, {
2526
2535
  type: "Feature",
2527
2536
  properties: {},
2528
2537
  geometry: Ze
@@ -2548,20 +2557,20 @@ const jt = Ke(null), gs = jt.Provider, we = () => {
2548
2557
  clampToGround: !0,
2549
2558
  width: 4
2550
2559
  })), V.billboard)) {
2551
- const de = (ge = V.position) == null ? void 0 : ge.getValue(Qe.now()), le = Re.fromCartesian(de), ve = new Re(
2560
+ const de = (ge = V.position) == null ? void 0 : ge.getValue(Qe.now()), le = Ne.fromCartesian(de), ve = new Ne(
2552
2561
  le.longitude,
2553
2562
  le.latitude,
2554
- R ? 500 : L.scene.sampleHeight(Re.fromCartesian(de))
2563
+ R ? 500 : L.scene.sampleHeight(Ne.fromCartesian(de))
2555
2564
  ), Le = _e.fromRadians(ve.longitude, ve.latitude, ve.height);
2556
- V.position = Le, V.billboard = new It({
2565
+ V.position = Le, V.billboard = new Ot({
2557
2566
  image: "data:image/svg+xml;base64," + btoa(`
2558
2567
  <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16">
2559
- <circle cx="8" cy="8" r="6" fill="${b}33" stroke="${ys}80" stroke-width="2"/>
2568
+ <circle cx="8" cy="8" r="6" fill="${b}33" stroke="${vs}80" stroke-width="2"/>
2560
2569
  </svg>
2561
2570
  `),
2562
2571
  //${color}33 - with opacity 0.2 ; #FFFF0080 - with opacity 0.5
2563
2572
  verticalOrigin: ut.BOTTOM,
2564
- heightReference: Ot.NONE,
2573
+ heightReference: At.NONE,
2565
2574
  // Ensures it's not clamped and floats above
2566
2575
  scale: 1,
2567
2576
  disableDepthTestDistance: Number.POSITIVE_INFINITY
@@ -2575,9 +2584,9 @@ const jt = Ke(null), gs = jt.Provider, we = () => {
2575
2584
  }).then((ee) => {
2576
2585
  ee == null || ee.entities.values.forEach((ge) => {
2577
2586
  var de;
2578
- ge.billboard = new It({
2587
+ ge.billboard = new Ot({
2579
2588
  image: (de = ge.properties) == null ? void 0 : de.label.getValue(Qe.now()).dataURL,
2580
- heightReference: Ot.NONE,
2589
+ heightReference: At.NONE,
2581
2590
  // Ensures it's not clamped and floats above
2582
2591
  scale: 1,
2583
2592
  disableDepthTestDistance: Number.POSITIVE_INFINITY
@@ -2605,11 +2614,11 @@ const jt = Ke(null), gs = jt.Provider, we = () => {
2605
2614
  const T = new Dr(S.scene.canvas);
2606
2615
  return g(T), Z.current.currentZoomLevel > 0 && (pe(), se.current = !0), () => {
2607
2616
  var O;
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));
2617
+ 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(kt.MOUSE_MOVE));
2609
2618
  };
2610
2619
  }, []), null;
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 });
2612
- var Ue = function() {
2620
+ }, Es = (e) => /* @__PURE__ */ l(ar, { ...e }), ec = (e) => /* @__PURE__ */ l(kn, { ...e }), Cs = (e) => /* @__PURE__ */ l(kn, { ...e }), ws = (e) => /* @__PURE__ */ l(lr, { ...e }), bs = (e) => /* @__PURE__ */ l(cr, { ...e }), Ls = (e) => /* @__PURE__ */ l(dr, { ...e }), Ts = (e) => /* @__PURE__ */ l(ur, { ...e });
2621
+ var je = function() {
2613
2622
  var e = E.Ellipsoid.WGS84, n, t = E.Material.fromType(E.Material.ColorType);
2614
2623
  function i(s, a = new E.Color(1, 1, 0, 0.5), y = new E.Color(1, 1, 1, 1)) {
2615
2624
  this._scene = s.scene, t.uniforms.color = a, n = y, this._tooltip = {
@@ -3028,7 +3037,7 @@ var Ue = function() {
3028
3037
  v.remove(f), D.remove(), x.destroy(), g.setVisible(!1), z(u);
3029
3038
  });
3030
3039
  var y = this, u = this._scene, v = u.primitives, g = this._tooltip, w = s ? 3 : 2, f;
3031
- s ? f = new Ue.PolygonPrimitive(a) : f = new Ue.PolylinePrimitive(a), f.asynchronous = !1, v.add(f);
3040
+ s ? f = new je.PolygonPrimitive(a) : f = new je.PolylinePrimitive(a), f.asynchronous = !1, v.add(f);
3032
3041
  var M = [], D = new i.BillboardGroup(this, b), x = new E.ScreenSpaceEventHandler(u.canvas);
3033
3042
  Z(u), x.setInputAction(function(_) {
3034
3043
  if (_.position != null) {
@@ -3079,7 +3088,7 @@ var Ue = function() {
3079
3088
  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
3089
  Z(u);
3081
3090
  function x(_) {
3082
- f == null && (f = new Ue.ExtentPrimitive({
3091
+ f == null && (f = new je.ExtentPrimitive({
3083
3092
  extent: _,
3084
3093
  material: a.material
3085
3094
  }), f.asynchronous = !1, v.add(f)), f.setExtent(_);
@@ -3233,7 +3242,7 @@ var Ue = function() {
3233
3242
  } else
3234
3243
  this._markers != null && (this._markers.remove(), this._editMarkers.remove(), this._markers = null, this._editMarkers = null, this._globeClickhandler.destroy()), this._editMode = !1;
3235
3244
  }
3236
- Ue.PolylinePrimitive.prototype.setEditable = function() {
3245
+ je.PolylinePrimitive.prototype.setEditable = function() {
3237
3246
  if (!this.setEditMode) {
3238
3247
  var u = this;
3239
3248
  u.isPolygon = !1, u.asynchronous = !1, s.registerEditableShape(u), u.setEditMode = y;
@@ -3244,10 +3253,10 @@ var Ue = function() {
3244
3253
  return E.Rectangle.fromCartographicArray(e.cartesianArrayToCartographicArray(this.positions));
3245
3254
  }, se(u), u.setEditMode(!1);
3246
3255
  }
3247
- }, Ue.PolygonPrimitive.prototype.setEditable = function() {
3256
+ }, je.PolygonPrimitive.prototype.setEditable = function() {
3248
3257
  var u = this;
3249
3258
  u.asynchronous = !1, s._scene, s.registerEditableShape(u), u.setEditMode = y, u.setHighlighted = a, se(u), u.setEditMode(!1);
3250
- }, Ue.ExtentPrimitive.prototype.setEditable = function() {
3259
+ }, je.ExtentPrimitive.prototype.setEditable = function() {
3251
3260
  if (!this.setEditMode) {
3252
3261
  var u = this, v = s._scene;
3253
3262
  s.registerEditableShape(u), u.asynchronous = !1, u.setEditMode = function(g) {
@@ -3516,22 +3525,22 @@ var Ue = function() {
3516
3525
  }
3517
3526
  return i;
3518
3527
  }();
3519
- const Ts = 2, Ss = (e, n) => {
3528
+ const Ss = 2, Ms = (e, n) => {
3520
3529
  switch (e) {
3521
3530
  case Se.BOX: {
3522
- if (n.features.length !== Ts)
3531
+ if (n.features.length !== Ss)
3523
3532
  throw new Error(`${e} must have 2 points`);
3524
3533
  const t = nn(n.features, (o) => {
3525
3534
  var r;
3526
- return ((r = o.properties) == null ? void 0 : r.type) === Rt.BOTTOM_LEFT;
3535
+ return ((r = o.properties) == null ? void 0 : r.type) === Nt.BOTTOM_LEFT;
3527
3536
  }), i = nn(n.features, (o) => {
3528
3537
  var r;
3529
- return ((r = o.properties) == null ? void 0 : r.type) === Rt.TOP_RIGHT;
3538
+ return ((r = o.properties) == null ? void 0 : r.type) === Nt.TOP_RIGHT;
3530
3539
  });
3531
3540
  if (i && t) {
3532
3541
  if (t.geometry.coordinates[0] === i.geometry.coordinates[0] && t.geometry.coordinates[1] === i.geometry.coordinates[1])
3533
3542
  throw new Error(`${e} must define BOTTOM_LEFT and TOP_RIGHT different points`);
3534
- return je.fromDegrees(
3543
+ return He.fromDegrees(
3535
3544
  t.geometry.coordinates[0],
3536
3545
  t.geometry.coordinates[1],
3537
3546
  i.geometry.coordinates[0],
@@ -3543,9 +3552,9 @@ const Ts = 2, Ss = (e, n) => {
3543
3552
  default:
3544
3553
  throw new Error(`${e} type geoJSON still not supported`);
3545
3554
  }
3546
- }, Ms = (e) => {
3555
+ }, _s = (e) => {
3547
3556
  const n = e.map((t) => {
3548
- const i = Re.fromCartesian(t);
3557
+ const i = Ne.fromCartesian(t);
3549
3558
  return [J.toDegrees(i.longitude), J.toDegrees(i.latitude)];
3550
3559
  });
3551
3560
  return n.push(n[0]), {
@@ -3556,24 +3565,24 @@ const Ts = 2, Ss = (e, n) => {
3556
3565
  coordinates: [n]
3557
3566
  }
3558
3567
  };
3559
- }, _s = (e) => {
3568
+ }, Ps = (e) => {
3560
3569
  const n = Vn.lineString([
3561
3570
  [J.toDegrees(e.west), J.toDegrees(e.south)],
3562
3571
  [J.toDegrees(e.east), J.toDegrees(e.north)]
3563
3572
  ]);
3564
3573
  return gt(Gn(n));
3565
- }, Ps = (e) => {
3574
+ }, xs = (e) => {
3566
3575
  const n = Vn.lineString([
3567
3576
  [e.west, e.south],
3568
3577
  [e.east, e.north]
3569
3578
  ]);
3570
3579
  return gt(Gn(n)).geometry.coordinates[0].map((i) => _e.fromRadiansArray(i)[0]);
3571
- }, ec = (e) => {
3580
+ }, tc = (e) => {
3572
3581
  const { drawState: n, drawingMaterial: t, drawingVertexColor: i, material: o, hollow: r, outlineWidth: c } = e, d = we(), [h, p] = F();
3573
3582
  N(() => {
3574
3583
  p(
3575
3584
  // eslint-disable-next-line
3576
- new Ue(d, t, i)
3585
+ new je(d, t, i)
3577
3586
  );
3578
3587
  }, []), N(() => {
3579
3588
  if (h) {
@@ -3586,7 +3595,7 @@ const Ts = 2, Ss = (e, n) => {
3586
3595
  n.handler({
3587
3596
  primitive: b,
3588
3597
  type: Se.POLYGON,
3589
- geojson: Ms(b)
3598
+ geojson: _s(b)
3590
3599
  });
3591
3600
  }
3592
3601
  });
@@ -3597,7 +3606,7 @@ const Ts = 2, Ss = (e, n) => {
3597
3606
  n.handler({
3598
3607
  primitive: b,
3599
3608
  type: Se.BOX,
3600
- geojson: _s(b)
3609
+ geojson: Ps(b)
3601
3610
  });
3602
3611
  }
3603
3612
  });
@@ -3611,20 +3620,20 @@ const Ts = 2, Ss = (e, n) => {
3611
3620
  }, [n, h]);
3612
3621
  const C = (m) => {
3613
3622
  try {
3614
- let b = m.coordinates !== void 0 ? m.coordinates : Ss(m.type, m.geojson);
3623
+ let b = m.coordinates !== void 0 ? m.coordinates : Ms(m.type, m.geojson);
3615
3624
  if (r !== !0)
3616
3625
  switch (m.type) {
3617
3626
  case Se.BOX:
3618
- return /* @__PURE__ */ l(ws, { coordinates: b, material: o ?? t });
3627
+ return /* @__PURE__ */ l(bs, { coordinates: b, material: o ?? t });
3619
3628
  case Se.POLYGON:
3620
- return /* @__PURE__ */ l(Cs, { hierarchy: new Bn(b), material: o ?? t });
3629
+ return /* @__PURE__ */ l(ws, { hierarchy: new Bn(b), material: o ?? t });
3621
3630
  default:
3622
3631
  return /* @__PURE__ */ l(Ce, {});
3623
3632
  }
3624
3633
  else {
3625
3634
  switch (m.type) {
3626
3635
  case Se.BOX:
3627
- b = Ps(b);
3636
+ b = xs(b);
3628
3637
  break;
3629
3638
  case Se.POLYGON:
3630
3639
  b = [...b, b[0]];
@@ -3632,14 +3641,14 @@ const Ts = 2, Ss = (e, n) => {
3632
3641
  default:
3633
3642
  return /* @__PURE__ */ l(Ce, {});
3634
3643
  }
3635
- return /* @__PURE__ */ l(Ls, { clampToGround: !0, positions: b, width: c ?? 1, material: o ?? t });
3644
+ return /* @__PURE__ */ l(Ts, { clampToGround: !0, positions: b, width: c ?? 1, material: o ?? t });
3636
3645
  }
3637
3646
  } catch (b) {
3638
3647
  return console.error(b), /* @__PURE__ */ l(Ce, {});
3639
3648
  }
3640
3649
  };
3641
- return /* @__PURE__ */ l(bs, { ...e, children: e.drawings.map((m, b) => /* @__PURE__ */ $(vs, { name: m.name, children: [
3642
- /* @__PURE__ */ $(Es, { children: [
3650
+ return /* @__PURE__ */ l(Ls, { ...e, children: e.drawings.map((m, b) => /* @__PURE__ */ $(Es, { name: m.name, children: [
3651
+ /* @__PURE__ */ $(Cs, { children: [
3643
3652
  /* @__PURE__ */ $("h1", { children: [
3644
3653
  "Drawed Entity ",
3645
3654
  m.name
@@ -3648,19 +3657,19 @@ const Ts = 2, Ss = (e, n) => {
3648
3657
  ] }),
3649
3658
  C(m)
3650
3659
  ] }, m.id)) });
3651
- }, tc = (e) => {
3660
+ }, nc = (e) => {
3652
3661
  const n = we();
3653
3662
  return N(() => {
3654
3663
  n.extend(Or);
3655
3664
  }, [n]), /* @__PURE__ */ l(Ce, {});
3656
- }, xs = -25, bn = 2, nc = (e) => {
3665
+ }, Ds = -25, bn = 2, ic = (e) => {
3657
3666
  const n = we(), t = (r, c = ",") => r.slice(r.indexOf(`
3658
3667
  `) + 1).split(`
3659
3668
  `).map((p) => {
3660
3669
  const C = p.split(c);
3661
3670
  return {
3662
- cartographic: Re.fromDegrees(parseFloat(C[0]), parseFloat(C[1])),
3663
- cartesian: new Ne(parseFloat(C[0]), parseFloat(C[1]))
3671
+ cartographic: Ne.fromDegrees(parseFloat(C[0]), parseFloat(C[1])),
3672
+ cartesian: new Ie(parseFloat(C[0]), parseFloat(C[1]))
3664
3673
  };
3665
3674
  }), i = (r) => {
3666
3675
  var d;
@@ -3668,7 +3677,7 @@ const Ts = 2, Ss = (e, n) => {
3668
3677
  const c = new FileReader();
3669
3678
  c.onload = (h) => {
3670
3679
  var b;
3671
- const p = (b = h.target) == null ? void 0 : b.result, C = t(p), m = zt.WGS84;
3680
+ const p = (b = h.target) == null ? void 0 : b.result, C = t(p), m = Wt.WGS84;
3672
3681
  console.log(`Loaded CSV content:
3673
3682
  `, p), Ar(
3674
3683
  n.terrainProvider,
@@ -3692,7 +3701,7 @@ const Ts = 2, Ss = (e, n) => {
3692
3701
  outlineWidth: 4,
3693
3702
  outlineColor: Ge.BLACK,
3694
3703
  verticalOrigin: ut.BOTTOM,
3695
- pixelOffset: new Ne(0, xs)
3704
+ pixelOffset: new Ie(0, Ds)
3696
3705
  },
3697
3706
  description: `
3698
3707
  Long: ${C[H].cartesian.x} </br>
@@ -3733,7 +3742,7 @@ const Ts = 2, Ss = (e, n) => {
3733
3742
  }
3734
3743
  ) });
3735
3744
  };
3736
- const Ds = 38, Is = 40, Os = 13, As = 14, ks = 27, Rs = 9, Ns = 10, Bs = 100, Fs = (e) => {
3745
+ const Is = 38, Os = 40, As = 13, ks = 14, Rs = 27, Ns = 9, Bs = 10, Fs = 100, Vs = (e) => {
3737
3746
  const [n, t] = F(e.defaultValue ?? ""), [i, o] = F(!1), [r, c] = F({
3738
3747
  helperVisible: !1,
3739
3748
  left: 0,
@@ -3822,7 +3831,7 @@ const Ds = 38, Is = 40, Os = 13, As = 14, ks = 27, Rs = 9, Ns = 10, Bs = 100, Fs
3822
3831
  if (i && f.length && _.length > 2 && M.length) {
3823
3832
  for (let A = 0; A < Math.max(x.length, _.length); ++A)
3824
3833
  if (x[A] !== _[A]) {
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))) {
3834
+ if (A >= 2 && _[A - 1] === M && f.indexOf(_[A - 2]) === -1 && f.indexOf(_[A]) !== -1 && !Rt(h(_.substring(0, A - 2), I - 3, w))) {
3826
3835
  const re = `${_.slice(0, A - 1)}${_.slice(A, A + 1)}${_.slice(A - 1, A)}${_.slice(A + 1)}`;
3827
3836
  return Z(A + 1), d.current !== null && (d.current.value = re), D || z({
3828
3837
  ...r,
@@ -3849,26 +3858,26 @@ const Ds = 38, Is = 40, Os = 13, As = 14, ks = 27, Rs = 9, Ns = 10, Bs = 100, Fs
3849
3858
  const { helperVisible: g, options: w, selection: f } = r, { onKeyDown: M, passThroughEnter: D } = e;
3850
3859
  if (g)
3851
3860
  switch (v.keyCode) {
3852
- case ks:
3861
+ case Rs:
3853
3862
  v.preventDefault(), Y();
3854
3863
  break;
3855
- case Ds:
3864
+ case Is:
3856
3865
  v.preventDefault(), z({
3857
3866
  ...r,
3858
3867
  selection: (w.length + f - 1) % w.length
3859
3868
  });
3860
3869
  break;
3861
- case Is:
3870
+ case Os:
3862
3871
  v.preventDefault(), z({
3863
3872
  ...r,
3864
3873
  selection: (f + 1) % w.length
3865
3874
  });
3866
3875
  break;
3876
+ case ks:
3867
3877
  case As:
3868
- case Os:
3869
3878
  D || v.preventDefault(), H(f);
3870
3879
  break;
3871
- case Rs:
3880
+ case Ns:
3872
3881
  H(f);
3873
3882
  break;
3874
3883
  default:
@@ -3908,15 +3917,15 @@ const Ds = 38, Is = 40, Os = 13, As = 14, ks = 27, Rs = 9, Ns = 10, Bs = 100, Fs
3908
3917
  const D = f.getBoundingClientRect(), x = h(v, g, w);
3909
3918
  if (Object.keys(x).length > 0 && M !== null) {
3910
3919
  const _ = Hr(M, g), I = M.getBoundingClientRect(), { minChars: A, onRequestOptions: re, requestOnlyIfNoOptions: ae, mode: W } = e;
3911
- let te, ue, pe, ke = "unset";
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({
3920
+ let te, ue, pe, Re = "unset";
3921
+ W === "assist" ? (te = f === M ? _.top + M.offsetTop : _.top + D.top, ue = Math.min(_.left + M.offsetLeft - Bs, M.offsetLeft + I.width - Fs)) : (te = D.top + f.offsetHeight, ue = f.offsetLeft, pe = f.offsetLeft - f.offsetWidth, Re = `${D.width}px`), x.matchLength >= A && (x.options.length > 1 || x.options.length === 1 && x.options[0].length !== x.matchLength) ? z({
3913
3922
  ...r,
3914
3923
  value: v,
3915
3924
  helperVisible: !0,
3916
3925
  top: te,
3917
3926
  left: ue,
3918
3927
  right: pe,
3919
- width: ke,
3928
+ width: Re,
3920
3929
  ...x
3921
3930
  }) : ((!ae || !x.options.length) && re(v.substr(x.matchStart, x.matchLength)), Y());
3922
3931
  } else
@@ -3964,13 +3973,13 @@ const Ds = 38, Is = 40, Os = 13, As = 14, ks = 27, Rs = 9, Ns = 10, Bs = 100, Fs
3964
3973
  },
3965
3974
  Me
3966
3975
  );
3967
- }), ke = te === "ltr" ? { left: g + ae } : { right: w + ae };
3968
- return /* @__PURE__ */ l("ul", { className: "react-autocomplete-input", style: { ...ke, top: _ + W, width: A }, children: pe });
3976
+ }), Re = te === "ltr" ? { left: g + ae } : { right: w + ae };
3977
+ return /* @__PURE__ */ l("ul", { className: "react-autocomplete-input", style: { ...Re, top: _ + W, width: A }, children: pe });
3969
3978
  }, { Component: X, ComponentProps: G, defaultValue: K, disabled: se, onBlur: s, value: a, ...y } = e, u = Object.assign({}, y);
3970
3979
  return Object.keys(e).forEach((v) => {
3971
3980
  delete u[v];
3972
3981
  }), /* @__PURE__ */ $(Ce, { children: [
3973
- Oe.cloneElement(X, {
3982
+ Ae.cloneElement(X, {
3974
3983
  disabled: se,
3975
3984
  onBlur: s,
3976
3985
  onChange: m,
@@ -3982,7 +3991,7 @@ const Ds = 38, Is = 40, Os = 13, As = 14, ks = 27, Rs = 9, Ns = 10, Bs = 100, Fs
3982
3991
  }),
3983
3992
  k()
3984
3993
  ] });
3985
- }, Vs = {
3994
+ }, Gs = {
3986
3995
  Component: /* @__PURE__ */ l("textarea", {}),
3987
3996
  ComponentProps: {},
3988
3997
  defaultValue: void 0,
@@ -4013,9 +4022,9 @@ const Ds = 38, Is = 40, Os = 13, As = 14, ks = 27, Rs = 9, Ns = 10, Bs = 100, Fs
4013
4022
  passThroughEnter: !1,
4014
4023
  mode: "assist",
4015
4024
  direction: "ltr"
4016
- }, ic = (e) => {
4025
+ }, rc = (e) => {
4017
4026
  let n = {
4018
- ...Vs,
4027
+ ...Gs,
4019
4028
  ...e
4020
4029
  };
4021
4030
  return e.mode === "autocomplete" && (n = {
@@ -4023,8 +4032,8 @@ const Ds = 38, Is = 40, Os = 13, As = 14, ks = 27, Rs = 9, Ns = 10, Bs = 100, Fs
4023
4032
  trigger: "",
4024
4033
  regex: ".",
4025
4034
  spacer: ""
4026
- }), /* @__PURE__ */ l(Fs, { ...n });
4027
- }, Kt = {
4035
+ }), /* @__PURE__ */ l(Vs, { ...n });
4036
+ }, Yt = {
4028
4037
  formatFileModDate: (e, n) => {
4029
4038
  const t = Hn.getModDate(n);
4030
4039
  return t ? e.formatDate(t, {
@@ -4041,12 +4050,12 @@ const Ds = 38, Is = 40, Os = 13, As = 14, ks = 27, Rs = 9, Ns = 10, Bs = 100, Fs
4041
4050
  });
4042
4051
  return i.symbol === "B" ? `${Math.round(i.value / 10) / 100} KB` : i.symbol === "KB" ? `${Math.round(i.value)} ${i.symbol}` : `${i.value} ${i.symbol.toUpperCase()}`;
4043
4052
  }
4044
- }, Gs = {
4045
- locale: De.EN,
4046
- formatters: { ...Kt }
4047
4053
  }, Hs = {
4054
+ locale: De.EN,
4055
+ formatters: { ...Yt }
4056
+ }, $s = {
4048
4057
  locale: De.RU,
4049
- formatters: { ...Kt },
4058
+ formatters: { ...Yt },
4050
4059
  messages: {
4051
4060
  "chonky.toolbar.searchPlaceholder": "Поиск",
4052
4061
  "chonky.toolbar.visibleFileCount": `{fileCount, plural,
@@ -4084,9 +4093,9 @@ const Ds = 38, Is = 40, Os = 13, As = 14, ks = 27, Rs = 9, Ns = 10, Bs = 100, Fs
4084
4093
  [`chonky.actions.${ne.ToggleHiddenFiles.id}.button.name`]: "Скрытые файлы",
4085
4094
  [`chonky.actions.${ne.ToggleShowFoldersFirst.id}.button.name`]: "Папки в начале"
4086
4095
  }
4087
- }, $s = {
4096
+ }, zs = {
4088
4097
  locale: De.HE,
4089
- formatters: { ...Kt },
4098
+ formatters: { ...Yt },
4090
4099
  messages: {
4091
4100
  "chonky.toolbar.searchPlaceholder": "חיפוש",
4092
4101
  "chonky.toolbar.visibleFileCount": `{fileCount, plural,
@@ -4123,24 +4132,24 @@ const Ds = 38, Is = 40, Os = 13, As = 14, ks = 27, Rs = 9, Ns = 10, Bs = 100, Fs
4123
4132
  [`chonky.actions.${ne.ToggleHiddenFiles.id}.button.name`]: "קבצים נסתרים",
4124
4133
  [`chonky.actions.${ne.ToggleShowFoldersFirst.id}.button.name`]: "הצגת תיקיות בראש הרשימה"
4125
4134
  }
4126
- }, zs = {
4127
- [De.EN]: Gs,
4128
- [De.RU]: Hs,
4129
- [De.HE]: $s
4135
+ }, Ws = {
4136
+ [De.EN]: Hs,
4137
+ [De.RU]: $s,
4138
+ [De.HE]: zs
4130
4139
  };
4131
- class rc extends Hn {
4140
+ class oc extends Hn {
4132
4141
  }
4133
- const oc = ne, Ws = {
4142
+ const sc = ne, Us = {
4134
4143
  listView: ne.EnableListView.id,
4135
4144
  gridView: ne.EnableGridView.id
4136
4145
  };
4137
4146
  Wr({ iconComponent: jr });
4138
- const sc = Oe.memo(
4139
- Oe.forwardRef(
4147
+ const ac = Ae.memo(
4148
+ Ae.forwardRef(
4140
4149
  ({
4141
4150
  theme: e,
4142
4151
  styles: n = { height: "100%", minWidth: "600px" },
4143
- defaultView: t = Ws.listView,
4152
+ defaultView: t = Us.listView,
4144
4153
  readOnlyMode: i = !1,
4145
4154
  locale: o,
4146
4155
  files: r,
@@ -4168,7 +4177,7 @@ const sc = Oe.memo(
4168
4177
  return s = s.startsWith("--") ? s : `--fp-theme-${m(s)}`, se[s] = a, se;
4169
4178
  }, {}) : {}, [e]), [P, S] = F(!1), [H, Z] = F(), [z, q] = F(!1), [Y, k] = F(), [X, G] = F();
4170
4179
  return N(() => {
4171
- e && S(!0), Z(t), i ? q(!0) : k([ne.CreateFolder, ne.DeleteFiles]), o !== void 0 && G(zs[o]);
4180
+ e && S(!0), Z(t), i ? q(!0) : k([ne.CreateFolder, ne.DeleteFiles]), o !== void 0 && G(Ws[o]);
4172
4181
  }, [e, t, i, o]), /* @__PURE__ */ l(
4173
4182
  me,
4174
4183
  {
@@ -4198,18 +4207,18 @@ const sc = Oe.memo(
4198
4207
  );
4199
4208
  }
4200
4209
  )
4201
- ), Us = (e) => /* @__PURE__ */ l(qr.Option, { ...e, children: /* @__PURE__ */ l(Li, { label: e.label, checked: e.isSelected }) }), js = (e) => {
4210
+ ), js = (e) => /* @__PURE__ */ l(qr.Option, { ...e, children: /* @__PURE__ */ l(Li, { label: e.label, checked: e.isSelected }) }), Ks = (e) => {
4202
4211
  const { styles: n } = e;
4203
- return /* @__PURE__ */ l(Yr, { isMulti: !0, components: { Option: Us }, styles: n, isClearable: !0, hideSelectedOptions: !1, closeMenuOnSelect: !1, ...e });
4204
- }, ac = (e) => {
4205
- const { values: n, options: t, onChange: i, placeholder: o, styles: r } = e, c = Vt(), d = Wt(c), [h, p] = F(n);
4206
- return /* @__PURE__ */ l(Ft, { theme: d, children: /* @__PURE__ */ l(
4212
+ return /* @__PURE__ */ l(Yr, { isMulti: !0, components: { Option: js }, styles: n, isClearable: !0, hideSelectedOptions: !1, closeMenuOnSelect: !1, ...e });
4213
+ }, lc = (e) => {
4214
+ const { values: n, options: t, onChange: i, placeholder: o, styles: r } = e, c = Gt(), d = Ut(c), [h, p] = F(n);
4215
+ return /* @__PURE__ */ l(Vt, { theme: d, children: /* @__PURE__ */ l(
4207
4216
  gi,
4208
4217
  {
4209
4218
  multiline: !0,
4210
4219
  fullWidth: !0,
4211
4220
  disableUnderline: !0,
4212
- inputComponent: js,
4221
+ inputComponent: Ks,
4213
4222
  value: h,
4214
4223
  onChange: (m) => {
4215
4224
  p(m), i && i(m);
@@ -4224,114 +4233,114 @@ const sc = Oe.memo(
4224
4233
  ) });
4225
4234
  };
4226
4235
  export {
4227
- ic as Autocomplete,
4228
- Rt as BboxCorner,
4236
+ rc as Autocomplete,
4237
+ Nt as BboxCorner,
4229
4238
  me as Box,
4230
- Bt as COORDINATES_MERCATOR_FRACTION_DIGITS,
4231
- Nt as COORDINATES_WGS_FRACTION_DIGITS,
4232
- jl as Cesium3DTileset,
4233
- Ml as CesiumBoundingSphere,
4234
- Tl as CesiumCartesian2,
4235
- Sl as CesiumCartesian3,
4236
- ts as CesiumCartographic,
4237
- Nl as CesiumCesiumBillboardGraphics,
4238
- hc as CesiumCesiumEntity,
4239
- mc as CesiumCesiumPolygonGraphics,
4240
- Al as CesiumCesiumPolylineGraphics,
4241
- Ol as CesiumCesiumTerrainProvider,
4242
- Bl as CesiumColor,
4243
- Ll as CesiumConstantPositionProperty,
4244
- bl as CesiumConstantProperty,
4245
- bs as CesiumCustomDataSource,
4246
- ec as CesiumDrawingsDataSource,
4247
- _l as CesiumEllipsoid,
4248
- Il as CesiumEllipsoidTerrainProvider,
4249
- vs as CesiumEntity,
4250
- Ql as CesiumEntityDescription,
4251
- Es as CesiumEntityStaticDescription,
4252
- pc as CesiumGeoJsonDataSource,
4253
- Pl as CesiumGeographicTilingScheme,
4254
- Kl as CesiumGeojsonLayer,
4255
- zl as CesiumHeightReference,
4256
- Hl as CesiumHorizontalOrigin,
4239
+ Ft as COORDINATES_MERCATOR_FRACTION_DIGITS,
4240
+ Bt as COORDINATES_WGS_FRACTION_DIGITS,
4241
+ Kl as Cesium3DTileset,
4242
+ _l as CesiumBoundingSphere,
4243
+ Sl as CesiumCartesian2,
4244
+ Ml as CesiumCartesian3,
4245
+ ns as CesiumCartographic,
4246
+ Bl as CesiumCesiumBillboardGraphics,
4247
+ mc as CesiumCesiumEntity,
4248
+ pc as CesiumCesiumPolygonGraphics,
4249
+ kl as CesiumCesiumPolylineGraphics,
4250
+ Al as CesiumCesiumTerrainProvider,
4251
+ Fl as CesiumColor,
4252
+ Tl as CesiumConstantPositionProperty,
4253
+ Ll as CesiumConstantProperty,
4254
+ Ls as CesiumCustomDataSource,
4255
+ tc as CesiumDrawingsDataSource,
4256
+ Pl as CesiumEllipsoid,
4257
+ Ol as CesiumEllipsoidTerrainProvider,
4258
+ Es as CesiumEntity,
4259
+ ec as CesiumEntityDescription,
4260
+ Cs as CesiumEntityStaticDescription,
4261
+ gc as CesiumGeoJsonDataSource,
4262
+ xl as CesiumGeographicTilingScheme,
4263
+ Yl as CesiumGeojsonLayer,
4264
+ Wl as CesiumHeightReference,
4265
+ $l as CesiumHorizontalOrigin,
4257
4266
  vt as CesiumImageryLayer,
4258
- kl as CesiumJulianDate,
4259
- $l as CesiumLabelStyle,
4260
- Ul as CesiumMap,
4261
- gc as CesiumMath,
4262
- Xl as CesiumOSMLayer,
4263
- Cs as CesiumPolygonGraphics,
4264
- Fl as CesiumPolygonHierarchy,
4265
- wl as CesiumPolylineDashMaterialProperty,
4266
- Rl as CesiumPositionProperty,
4267
- xl as CesiumRectangle,
4268
- ws as CesiumRectangleGraphics,
4269
- Dl as CesiumResource,
4270
- Vl as CesiumScene,
4267
+ Rl as CesiumJulianDate,
4268
+ zl as CesiumLabelStyle,
4269
+ jl as CesiumMap,
4270
+ fc as CesiumMath,
4271
+ Jl as CesiumOSMLayer,
4272
+ ws as CesiumPolygonGraphics,
4273
+ Vl as CesiumPolygonHierarchy,
4274
+ bl as CesiumPolylineDashMaterialProperty,
4275
+ Nl as CesiumPositionProperty,
4276
+ Dl as CesiumRectangle,
4277
+ bs as CesiumRectangleGraphics,
4278
+ Il as CesiumResource,
4279
+ Gl as CesiumScene,
4271
4280
  be as CesiumSceneMode,
4272
- fc as CesiumSceneTransforms,
4273
- Gl as CesiumVerticalOrigin,
4274
- Wl as CesiumViewer,
4275
- Jl as CesiumWFSLayer,
4276
- Yl as CesiumWMSLayer,
4277
- ql as CesiumWMTSLayer,
4278
- Zl as CesiumXYZLayer,
4279
- ls as CoordinatesTrackerTool,
4280
- El as CssBaseline,
4281
- rl as DateRangePicker,
4282
- ol as DateTimePicker,
4281
+ yc as CesiumSceneTransforms,
4282
+ Hl as CesiumVerticalOrigin,
4283
+ Ul as CesiumViewer,
4284
+ Ql as CesiumWFSLayer,
4285
+ ql as CesiumWMSLayer,
4286
+ Zl as CesiumWMTSLayer,
4287
+ Xl as CesiumXYZLayer,
4288
+ cs as CoordinatesTrackerTool,
4289
+ Cl as CssBaseline,
4290
+ ol as DateRangePicker,
4291
+ sl as DateTimePicker,
4283
4292
  eo as DateTimeRangePicker,
4284
- nl as DateTimeRangePickerFormControl,
4285
- Ue as DrawHelper,
4293
+ il as DateTimeRangePickerFormControl,
4294
+ je as DrawHelper,
4286
4295
  Lo as DrawInteraction,
4287
4296
  Se as DrawType,
4288
- rc as FileHelper,
4289
- sc as FilePicker,
4290
- oc as FilePickerActions,
4291
- Ws as FilePickerViewObj,
4297
+ oc as FileHelper,
4298
+ ac as FilePicker,
4299
+ sc as FilePickerActions,
4300
+ Us as FilePickerViewObj,
4292
4301
  wo as GeoJSONFeature,
4293
- tc as InspectorTool,
4294
- yl as Legend,
4295
- fl as MVTSource,
4302
+ nc as InspectorTool,
4303
+ vl as Legend,
4304
+ yl as MVTSource,
4296
4305
  ho as Map,
4297
- sl as MapFilterContainer,
4298
- ac as MultiSelection,
4306
+ al as MapFilterContainer,
4307
+ lc as MultiSelection,
4299
4308
  to as Popover,
4300
- Ae as Proj,
4301
- ds as ScaleTrackerTool,
4302
- Cl as ScopedCssBaseline,
4303
- vl as SmartTable,
4309
+ ke as Proj,
4310
+ us as ScaleTrackerTool,
4311
+ wl as ScopedCssBaseline,
4312
+ El as SmartTable,
4304
4313
  De as SupportedLocales,
4305
- nc as TerrainianHeightTool,
4314
+ ic as TerrainianHeightTool,
4306
4315
  po as TileLayer,
4307
4316
  bo as TileOsm,
4308
- ul as TileWMS,
4309
- cl as TileWMTS,
4310
- ml as TileXYZ,
4311
- il as TimeRangeInput,
4317
+ hl as TileWMS,
4318
+ dl as TileWMTS,
4319
+ pl as TileXYZ,
4320
+ rl as TimeRangeInput,
4312
4321
  yo as VectorLayer,
4313
4322
  Co as VectorSource,
4314
- al as VectorTileLayer,
4315
- hs as ZoomLevelTrackerTool,
4316
- yc as cesiumSampleTerrainMostDetailed,
4317
- Kt as defaultFormatters,
4318
- gl as getMVTOptions,
4319
- dl as getWMSOptions,
4320
- ll as getWMTSOptions,
4321
- hl as getXYZOptions,
4323
+ ll as VectorTileLayer,
4324
+ ms as ZoomLevelTrackerTool,
4325
+ vc as cesiumSampleTerrainMostDetailed,
4326
+ Yt as defaultFormatters,
4327
+ fl as getMVTOptions,
4328
+ ul as getWMSOptions,
4329
+ cl as getWMTSOptions,
4330
+ ml as getXYZOptions,
4322
4331
  Lt as isDateRange,
4323
4332
  Zr as mapMcToMuiTheme,
4324
- Ms as polygonToGeoJSON,
4325
- _s as rectangleToGeoJSON,
4326
- Ps as rectangleToPositions,
4333
+ _s as polygonToGeoJSON,
4334
+ Ps as rectangleToGeoJSON,
4335
+ xs as rectangleToPositions,
4327
4336
  we as useCesiumMap,
4328
4337
  rt as useCesiumMapViewstate,
4329
4338
  tt as useMap,
4330
- Wt as useMappedMuiTheme,
4331
- dc as useMediaQuery,
4339
+ Ut as useMappedMuiTheme,
4340
+ uc as useMediaQuery,
4332
4341
  ft as useTileLayer,
4333
4342
  fo as useVectorLayer,
4334
4343
  Eo as useVectorSource,
4335
4344
  Po as useVectorTileLayer,
4336
- pl as useVectorTileSource
4345
+ gl as useVectorTileSource
4337
4346
  };