@map-colonies/react-components 4.7.3 → 4.8.0

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.
@@ -3,63 +3,64 @@ var En = Object.defineProperty;
3
3
  var Cn = (e, n, t) => n in e ? En(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
4
4
  var X = (e, n, t) => (Cn(e, typeof n != "symbol" ? n + "" : n, t), t);
5
5
  import { jsx as l, jsxs as N, Fragment as oe } from "react/jsx-runtime";
6
- import * as $t from "react";
7
- import Ee, { useState as D, useEffect as I, useMemo as Be, forwardRef as wn, createContext as Me, useContext as Pe, useRef as Se, useLayoutEffect as Wt, useCallback as pe } from "react";
8
- import { isValid as Ie, isBefore as Tn, format as wt, endOfDay as bn, isSameDay as Tt } from "date-fns";
9
- import { he as Ut, enUS as jt } from "date-fns/locale";
10
- import { MuiPickersUtilsProvider as Kt, KeyboardDateTimePicker as rt, KeyboardDatePicker as Ln } from "@material-ui/pickers";
11
- import qt from "@date-io/date-fns";
12
- import { createTheme as Sn, makeStyles as Fe, createStyles as Ke } from "@material-ui/core/styles";
13
- import { Box as _n, ThemeProvider as Yt, Popover as Mn, Paper as ot, TableRow as $e, TableCell as Ae, TableSortLabel as Pn, IconButton as xn, Collapse as In, TableContainer as Dn, Table as On, TableBody as An, Typography as kn, TablePagination as Rn } from "@material-ui/core";
14
- import { useTheme as Xt, ThemeProvider as Nn, Button as Ne, TextField as We, Tooltip as st, Menu as Bn, MenuItem as Ze, Icon as _e, Dialog as Fn, DialogTitle as Hn, DialogContent as Gn, Drawer as Vn, DrawerHeader as zn, DrawerTitle as $n, DrawerContent as Wn, LinearProgress as Un } from "@map-colonies/react-core";
15
- import { default as Qa } from "@material-ui/core/useMediaQuery";
16
- import jn, { registerLocale as Kn } from "react-datepicker";
17
- import qn from "date-fns/locale/he";
18
- import De from "moment";
19
- import Yn from "@turf/rewind";
20
- import { Map as Xn, View as Zn } from "ol";
6
+ import * as jt from "react";
7
+ import Ee, { useState as O, useEffect as I, useMemo as Be, forwardRef as wn, createContext as Me, useContext as Pe, useRef as Le, useLayoutEffect as Kt, useCallback as pe } from "react";
8
+ import { isValid as Ie, isBefore as bn, format as St, endOfDay as Tn, isSameDay as Lt } from "date-fns";
9
+ import { he as qt, enUS as Yt } from "date-fns/locale";
10
+ import { MuiPickersUtilsProvider as Xt, KeyboardDateTimePicker as rt, KeyboardDatePicker as Sn } from "@material-ui/pickers";
11
+ import Zt from "@date-io/date-fns";
12
+ import { createTheme as Ln, makeStyles as Fe, createStyles as Ke } from "@material-ui/core/styles";
13
+ import { Box as _n, ThemeProvider as mt, Popover as Mn, Paper as ot, TableRow as $e, TableCell as Ae, TableSortLabel as Pn, IconButton as xn, Collapse as In, TableContainer as On, Table as Dn, TableBody as An, Typography as kn, TablePagination as Rn, Input as Nn } from "@material-ui/core";
14
+ import { useTheme as pt, ThemeProvider as Bn, Button as Ne, TextField as We, Tooltip as st, Menu as Fn, MenuItem as Ze, Icon as _e, Dialog as Hn, DialogTitle as Gn, DialogContent as Vn, Drawer as zn, DrawerHeader as $n, DrawerTitle as Wn, DrawerContent as Un, LinearProgress as jn, Checkbox as Kn } from "@map-colonies/react-core";
15
+ import { default as al } from "@material-ui/core/useMediaQuery";
16
+ import qn, { registerLocale as Yn } from "react-datepicker";
17
+ import Xn from "date-fns/locale/he";
18
+ import Oe from "moment";
19
+ import Zn from "@turf/rewind";
20
+ import { Map as Jn, View as Qn } from "ol";
21
21
  import "ol/ol.css";
22
- import { format as bt } from "ol/coordinate";
23
- import { defaults as Jn, FullScreen as Lt } from "ol/control";
22
+ import { format as _t } from "ol/coordinate";
23
+ import { defaults as ei, FullScreen as Mt } from "ol/control";
24
24
  import Je from "ol/control/MousePosition";
25
- import { transform as Qn, get as ei } from "ol/proj";
26
- import { Tile as ti, Vector as ni } from "ol/layer";
27
- import { Vector as ii, OSM as ri, WMTS as oi } from "ol/source";
28
- import { GeoJSON as Zt, MVT as si } from "ol/format";
29
- import { Draw as ai } from "ol/interaction";
30
- import { createBox as li } from "ol/interaction/Draw";
31
- import ci from "ol/layer/VectorTile";
32
- import { Fill as di, Stroke as ui, Style as hi, Circle as mi } from "ol/style";
33
- import pi from "ol/tilegrid/WMTS";
34
- import { getWidth as gi, getTopLeft as fi } from "ol/extent";
35
- import yi from "ol/source/TileWMS";
36
- import vi from "ol/source/XYZ";
37
- import Ei from "ol/source/VectorTile";
38
- import St from "ol-ext/legend/Legend";
39
- import Ci from "ol-ext/control/Legend";
25
+ import { transform as ti, get as ni } from "ol/proj";
26
+ import { Tile as ii, Vector as ri } from "ol/layer";
27
+ import { Vector as oi, OSM as si, WMTS as ai } from "ol/source";
28
+ import { GeoJSON as Jt, MVT as li } from "ol/format";
29
+ import { Draw as ci } from "ol/interaction";
30
+ import { createBox as di } from "ol/interaction/Draw";
31
+ import ui from "ol/layer/VectorTile";
32
+ import { Fill as hi, Stroke as mi, Style as pi, Circle as gi } from "ol/style";
33
+ import fi from "ol/tilegrid/WMTS";
34
+ import { getWidth as yi, getTopLeft as vi } from "ol/extent";
35
+ import Ei from "ol/source/TileWMS";
36
+ import Ci from "ol/source/XYZ";
37
+ import wi from "ol/source/VectorTile";
38
+ import Pt from "ol-ext/legend/Legend";
39
+ import bi from "ol-ext/control/Legend";
40
40
  import "ol-ext/dist/ol-ext.css";
41
- import wi from "@material-ui/core/TableHead";
42
- import { createSvgIcon as Jt } from "@material-ui/core/utils";
43
- import Ti from "@material-ui/core/CssBaseline";
44
- import bi from "@material-ui/core/ScopedCssBaseline";
45
- import { createPortal as Li } from "react-dom";
46
- import { Viewer as Si, Cesium3DTileset as _i, GeoJsonDataSource as Mi, ImageryLayer as Pi, Entity as xi, EntityDescription as Qt, PolygonGraphics as Ii, RectangleGraphics as Di, CustomDataSource as Oi, PolylineGraphics as Ai } from "resium";
41
+ import Ti from "@material-ui/core/TableHead";
42
+ import { createSvgIcon as Qt } from "@material-ui/core/utils";
43
+ import Si from "@material-ui/core/CssBaseline";
44
+ import Li from "@material-ui/core/ScopedCssBaseline";
45
+ import { createPortal as _i } from "react-dom";
46
+ import { Viewer as Mi, Cesium3DTileset as Pi, GeoJsonDataSource as xi, ImageryLayer as Ii, Entity as Oi, EntityDescription as en, PolygonGraphics as Di, RectangleGraphics as Ai, CustomDataSource as ki, PolylineGraphics as Ri } from "resium";
47
47
  import * as g from "cesium";
48
- import { Math as fe, SceneMode as Le, Cartesian2 as Ce, Cartographic as He, PolylineDashMaterialProperty as ki, ConstantProperty as Ri, ConstantPositionProperty as Ni, Cartesian3 as ve, BoundingSphere as Bi, Ellipsoid as en, GeographicTilingScheme as Fi, Rectangle as Oe, Resource as Hi, EllipsoidTerrainProvider as Gi, CesiumTerrainProvider as Vi, VerticalOrigin as at, HorizontalOrigin as zi, LabelStyle as tn, ScreenSpaceEventType as $i, WebMercatorProjection as Wi, EventHelper as Ui, EllipsoidGeodesic as ji, UrlTemplateImageryProvider as mt, WebMapServiceImageryProvider as pt, WebMapTileServiceImageryProvider as gt, Event as Ki, SingleTileImageryProvider as qi, Viewer as Yi, Matrix4 as Xi, OpenStreetMapImageryProvider as Zi, Color as lt, PolygonHierarchy as Ji, viewerCesiumInspectorMixin as Qi, sampleTerrainMostDetailed as er } from "cesium";
49
- import { Math as tl, sampleTerrainMostDetailed as nl } from "cesium";
50
- import { get as Z, isNumber as Ue, isEmpty as ct, isArray as tr, cloneDeep as nr, find as _t } from "lodash";
51
- import ir from "@turf/boolean-point-in-polygon";
48
+ import { Math as fe, SceneMode as Se, Cartesian2 as Ce, Cartographic as He, PolylineDashMaterialProperty as Ni, ConstantProperty as Bi, ConstantPositionProperty as Fi, Cartesian3 as ve, BoundingSphere as Hi, Ellipsoid as tn, GeographicTilingScheme as Gi, Rectangle as De, Resource as Vi, EllipsoidTerrainProvider as zi, CesiumTerrainProvider as $i, VerticalOrigin as at, HorizontalOrigin as Wi, LabelStyle as nn, ScreenSpaceEventType as Ui, WebMercatorProjection as ji, EventHelper as Ki, EllipsoidGeodesic as qi, UrlTemplateImageryProvider as gt, WebMapServiceImageryProvider as ft, WebMapTileServiceImageryProvider as yt, Event as Yi, SingleTileImageryProvider as Xi, Viewer as Zi, Matrix4 as Ji, OpenStreetMapImageryProvider as Qi, Color as lt, PolygonHierarchy as er, viewerCesiumInspectorMixin as tr, sampleTerrainMostDetailed as nr } from "cesium";
49
+ import { Math as cl, sampleTerrainMostDetailed as dl } from "cesium";
50
+ import { get as Z, isNumber as Ue, isEmpty as ct, isArray as ir, cloneDeep as rr, find as xt } from "lodash";
51
+ import or from "@turf/boolean-point-in-polygon";
52
52
  import "@map-colonies/react-core/dist/linear-progress/styles";
53
- import rr from "@cmcleese/cesium-navigation";
53
+ import sr from "@cmcleese/cesium-navigation";
54
54
  import "@cmcleese/cesium-navigation/dist/index.css";
55
- import * as nn from "@turf/helpers";
56
- import rn from "@turf/bbox";
57
- import on from "@turf/bbox-polygon";
58
- import or from "textarea-caret";
59
- import sr, { setCaretPosition as ar } from "get-input-selection";
60
- import { ChonkyActions as F, FileHelper as sn, setChonkyDefaults as lr, FullFileBrowser as cr } from "chonky";
61
- import { ChonkyIconFA as dr } from "chonky-icon-fontawesome";
62
- import ur from "filesize";
55
+ import * as rn from "@turf/helpers";
56
+ import on from "@turf/bbox";
57
+ import sn from "@turf/bbox-polygon";
58
+ import ar from "textarea-caret";
59
+ import lr, { setCaretPosition as cr } from "get-input-selection";
60
+ import { ChonkyActions as F, FileHelper as an, setChonkyDefaults as dr, FullFileBrowser as ur } from "chonky";
61
+ import { ChonkyIconFA as hr } from "chonky-icon-fontawesome";
62
+ import mr from "filesize";
63
+ import pr, { components as gr } from "react-select";
63
64
  var le = /* @__PURE__ */ ((e) => (e.BOX = "BOX", e.POLYGON = "POLYGON", e.UNKNOWN = "UNKNOWN", e))(le || {}), he = /* @__PURE__ */ ((e) => (e.HE = "he", e.EN = "en", e.RU = "ru", e))(he || {}), dt = /* @__PURE__ */ ((e) => (e.TOP_RIGHT = "TOP_RIGHT", e.BOTTOM_LEFT = "BOTTOM_LEFT", e))(dt || {});
64
65
  const J = {
65
66
  // eslint-disable-next-line @typescript-eslint/naming-convention
@@ -91,10 +92,10 @@ const J = {
91
92
  }, de = (e) => {
92
93
  const { children: n, ...t } = e;
93
94
  return /* @__PURE__ */ l(_n, { ...t, children: n });
94
- }, an = (e) => {
95
+ }, vt = (e) => {
95
96
  const n = e.type === "dark";
96
- return Ee.useMemo(() => hr(e, n), [n, e]);
97
- }, hr = (e, n = !1) => Sn({
97
+ return Ee.useMemo(() => fr(e, n), [n, e]);
98
+ }, fr = (e, n = !1) => Ln({
98
99
  palette: {
99
100
  type: n ? "dark" : "light",
100
101
  primary: {
@@ -116,22 +117,22 @@ const J = {
116
117
  }
117
118
  }
118
119
  });
119
- const mr = 2, pr = 0.5, gr = Fe(
120
+ const yr = 2, vr = 0.5, Er = Fe(
120
121
  (e) => Ke({
121
122
  container: {
122
- padding: e.spacing(mr),
123
+ padding: e.spacing(yr),
123
124
  alignItems: "center"
124
125
  },
125
126
  setButton: {
126
127
  marginTop: e.spacing(1)
127
128
  },
128
129
  margin: {
129
- marginLeft: e.spacing(pr)
130
+ marginLeft: e.spacing(vr)
130
131
  }
131
132
  })
132
- ), fr = (e) => {
133
- var j, O, z, k;
134
- const n = gr(), t = Xt(), i = an(t), [o, r] = D(null), [c, u] = D(null), [m, p] = D(J.DATE_RANGE_PICKER.dateFormat), v = e.controlsLayout ?? J.DATE_RANGE_PICKER.controlsLayout, L = e.disableFuture ?? J.DATE_RANGE_PICKER.disableFuture, w = ((j = e.local) == null ? void 0 : j.startPlaceHolderText) ?? J.DATE_RANGE_PICKER.local.startPlaceHolderText, P = ((O = e.local) == null ? void 0 : O.endPlaceHolderText) ?? J.DATE_RANGE_PICKER.local.endPlaceHolderText, A = ((z = e.local) == null ? void 0 : z.setText) ?? J.DATE_RANGE_PICKER.local.setText, Y = (((k = e.local) == null ? void 0 : k.calendarLocale) ?? J.DATE_RANGE_PICKER.local.calendarLocale) === he.HE ? Ut : jt;
133
+ ), Cr = (e) => {
134
+ var j, D, z, k;
135
+ const n = Er(), t = pt(), i = vt(t), [o, r] = O(null), [c, u] = O(null), [m, p] = O(J.DATE_RANGE_PICKER.dateFormat), v = e.controlsLayout ?? J.DATE_RANGE_PICKER.controlsLayout, T = e.disableFuture ?? J.DATE_RANGE_PICKER.disableFuture, w = ((j = e.local) == null ? void 0 : j.startPlaceHolderText) ?? J.DATE_RANGE_PICKER.local.startPlaceHolderText, P = ((D = e.local) == null ? void 0 : D.endPlaceHolderText) ?? J.DATE_RANGE_PICKER.local.endPlaceHolderText, A = ((z = e.local) == null ? void 0 : z.setText) ?? J.DATE_RANGE_PICKER.local.setText, Y = (((k = e.local) == null ? void 0 : k.calendarLocale) ?? J.DATE_RANGE_PICKER.local.calendarLocale) === he.HE ? qt : Yt;
135
136
  I(() => {
136
137
  r(e.from ?? null);
137
138
  }, [e.from]), I(() => {
@@ -140,21 +141,21 @@ const mr = 2, pr = 0.5, gr = Fe(
140
141
  p(e.dateFormat ?? J.DATE_RANGE_PICKER.dateFormat);
141
142
  }, [e.dateFormat]);
142
143
  const G = Boolean(
143
- Ie(o) && !c || Ie(c) && !o || o && c && Ie(o) && Ie(c) && Tn(o, c)
144
+ Ie(o) && !c || Ie(c) && !o || o && c && Ie(o) && Ie(c) && bn(o, c)
144
145
  ), U = () => {
145
146
  e.onChange({
146
147
  from: o && Ie(o) ? o : void 0,
147
148
  to: c && Ie(c) ? c : void 0
148
149
  });
149
150
  };
150
- return /* @__PURE__ */ l(Yt, { theme: i, children: /* @__PURE__ */ l(
151
+ return /* @__PURE__ */ l(mt, { theme: i, children: /* @__PURE__ */ l(
151
152
  de,
152
153
  {
153
154
  className: `${n.container} drpContainer`,
154
155
  display: "flex",
155
156
  flexDirection: v,
156
157
  width: v === "column" ? e.contentWidth : "unset",
157
- children: /* @__PURE__ */ N(Kt, { utils: qt, locale: Y, children: [
158
+ children: /* @__PURE__ */ N(Xt, { utils: Zt, locale: Y, children: [
158
159
  /* @__PURE__ */ l(
159
160
  rt,
160
161
  {
@@ -162,7 +163,7 @@ const mr = 2, pr = 0.5, gr = Fe(
162
163
  placeholder: w,
163
164
  onChange: ($) => r($),
164
165
  value: o,
165
- disableFuture: L,
166
+ disableFuture: T,
166
167
  format: m,
167
168
  maxDate: e.maxDate,
168
169
  minDate: e.minDate
@@ -176,13 +177,13 @@ const mr = 2, pr = 0.5, gr = Fe(
176
177
  className: n.margin,
177
178
  onChange: ($) => u($),
178
179
  value: c,
179
- disableFuture: L,
180
+ disableFuture: T,
180
181
  format: m,
181
182
  maxDate: e.maxDate,
182
183
  minDate: e.minDate
183
184
  }
184
185
  ),
185
- /* @__PURE__ */ l(Nn, { options: t, children: /* @__PURE__ */ l(
186
+ /* @__PURE__ */ l(Bn, { options: t, children: /* @__PURE__ */ l(
186
187
  Ne,
187
188
  {
188
189
  className: `${n.setButton} ${n.margin}`,
@@ -195,17 +196,17 @@ const mr = 2, pr = 0.5, gr = Fe(
195
196
  ] })
196
197
  }
197
198
  ) });
198
- }, yr = (e) => {
199
+ }, wr = (e) => {
199
200
  const { children: n, ...t } = e;
200
201
  return /* @__PURE__ */ l(Mn, { ...t, children: n });
201
202
  };
202
- const ea = (e) => {
203
- var O, z;
204
- const [n, t] = D(null), [i, o] = D(null), [r, c] = D(J.DATE_RANGE_PICKER.dateFormat), [u, m] = Ee.useState(null), p = (k) => {
203
+ const aa = (e) => {
204
+ var D, z;
205
+ const [n, t] = O(null), [i, o] = O(null), [r, c] = O(J.DATE_RANGE_PICKER.dateFormat), [u, m] = Ee.useState(null), p = (k) => {
205
206
  m(k.currentTarget);
206
207
  }, v = (k) => {
207
208
  k.currentTarget.tagName === "I" ? m(k.currentTarget.previousElementSibling) : m(k.currentTarget);
208
- }, L = () => {
209
+ }, T = () => {
209
210
  m(null);
210
211
  }, w = Boolean(u), P = e.controlsLayout ?? "column";
211
212
  I(() => {
@@ -215,7 +216,7 @@ const ea = (e) => {
215
216
  }, [e.to]), I(() => {
216
217
  c(e.dateFormat ?? J.DATE_RANGE_PICKER.dateFormat);
217
218
  }, [e.dateFormat]);
218
- const A = ((O = e.local) == null ? void 0 : O.startPlaceHolderText) ?? J.DATE_RANGE_PICKER.local.startPlaceHolderText, H = ((z = e.local) == null ? void 0 : z.endPlaceHolderText) ?? J.DATE_RANGE_PICKER.local.endPlaceHolderText, Y = e.renderAsButton === void 0 ? J.DATE_RANGE_PICKER.renderAsButton : e.renderAsButton, G = e.offset === void 0 ? J.DATE_RANGE_PICKER.offset : e.offset, U = e.disableFuture === void 0 ? J.DATE_RANGE_PICKER.disableFuture : e.disableFuture, j = Be(() => `${n ? wt(n, r) : A} - ${i ? wt(i, r) : H}`, [n, i, r, A, H]);
219
+ const A = ((D = e.local) == null ? void 0 : D.startPlaceHolderText) ?? J.DATE_RANGE_PICKER.local.startPlaceHolderText, H = ((z = e.local) == null ? void 0 : z.endPlaceHolderText) ?? J.DATE_RANGE_PICKER.local.endPlaceHolderText, Y = e.renderAsButton === void 0 ? J.DATE_RANGE_PICKER.renderAsButton : e.renderAsButton, G = e.offset === void 0 ? J.DATE_RANGE_PICKER.offset : e.offset, U = e.disableFuture === void 0 ? J.DATE_RANGE_PICKER.disableFuture : e.disableFuture, j = Be(() => `${n ? St(n, r) : A} - ${i ? St(i, r) : H}`, [n, i, r, A, H]);
219
220
  return /* @__PURE__ */ N(oe, { children: [
220
221
  Y ? /* @__PURE__ */ l(Ne, { style: { width: e.width }, raised: !0, onClick: p, className: "drpOpener", children: j }) : /* @__PURE__ */ l(
221
222
  We,
@@ -232,8 +233,8 @@ const ea = (e) => {
232
233
  }
233
234
  }
234
235
  ),
235
- /* @__PURE__ */ l(yr, { open: w, anchorEl: u, onClose: L, anchorOrigin: { vertical: "bottom", horizontal: "left" }, keepMounted: !0, children: /* @__PURE__ */ l(
236
- fr,
236
+ /* @__PURE__ */ l(wr, { open: w, anchorEl: u, onClose: T, anchorOrigin: { vertical: "bottom", horizontal: "left" }, keepMounted: !0, children: /* @__PURE__ */ l(
237
+ Cr,
237
238
  {
238
239
  controlsLayout: P,
239
240
  contentWidth: ((u == null ? void 0 : u.clientWidth) ?? 0) - G,
@@ -245,12 +246,12 @@ const ea = (e) => {
245
246
  from: n ?? void 0,
246
247
  to: i ?? void 0,
247
248
  onChange: ({ from: k, to: $ }) => {
248
- t(k ?? null), o($ ?? null), e.onChange({ from: k, to: $ }), L();
249
+ t(k ?? null), o($ ?? null), e.onChange({ from: k, to: $ }), T();
249
250
  }
250
251
  }
251
252
  ) })
252
253
  ] });
253
- }, Qe = (e) => typeof e < "u" && e !== null && "startDate" in e && "endDate" in e, ta = ({
254
+ }, Qe = (e) => typeof e < "u" && e !== null && "startDate" in e && "endDate" in e, la = ({
254
255
  endDate: e,
255
256
  startDate: n,
256
257
  setEndDate: t = () => {
@@ -273,9 +274,9 @@ const ea = (e) => {
273
274
  className: `timeRangeInput ${m}`,
274
275
  name: "start-time",
275
276
  type: "time",
276
- value: De(n).format("HH:mm"),
277
- onChange: (L) => {
278
- const w = De(n), P = De(L.currentTarget.value, "HH:mm"), A = w.set({
277
+ value: Oe(n).format("HH:mm"),
278
+ onChange: (T) => {
279
+ const w = Oe(n), P = Oe(T.currentTarget.value, "HH:mm"), A = w.set({
279
280
  hours: P.get("hours"),
280
281
  minutes: P.get("minutes")
281
282
  });
@@ -291,9 +292,9 @@ const ea = (e) => {
291
292
  className: `timeRangeInput ${o}`,
292
293
  name: "end-time",
293
294
  type: "time",
294
- value: De(e).format("HH:mm"),
295
- onChange: (L) => {
296
- const w = De(e), P = De(L.currentTarget.value, "HH:mm"), A = w.set({
295
+ value: Oe(e).format("HH:mm"),
296
+ onChange: (T) => {
297
+ const w = Oe(e), P = Oe(T.currentTarget.value, "HH:mm"), A = w.set({
297
298
  hours: P.get("hours"),
298
299
  minutes: P.get("minutes")
299
300
  });
@@ -301,7 +302,7 @@ const ea = (e) => {
301
302
  }
302
303
  }
303
304
  ) })
304
- ] }), vr = wn(
305
+ ] }), br = wn(
305
306
  ({ value: e, onClick: n, onInputClick: t, ...i }, o) => /* @__PURE__ */ l(
306
307
  We,
307
308
  {
@@ -315,16 +316,16 @@ const ea = (e) => {
315
316
  value: e
316
317
  }
317
318
  )
318
- ), Er = ({ setStartDate: e = () => {
319
+ ), Tr = ({ setStartDate: e = () => {
319
320
  }, setEndDate: n = () => {
320
321
  }, shortcuts: t, dateRange: i, onShortcut: o }) => {
321
- const [r, c] = D(), u = Be(
322
+ const [r, c] = O(), u = Be(
322
323
  () => t.map((m) => m instanceof Function ? m() : m),
323
324
  [t]
324
325
  );
325
326
  return I(() => {
326
327
  for (const m of u) {
327
- const p = i.startDate && i.endDate && Tt(m.startDate, i.startDate) && Tt(m.endDate, i.endDate);
328
+ const p = i.startDate && i.endDate && Lt(m.startDate, i.startDate) && Lt(m.endDate, i.endDate);
328
329
  r ? m.id === r && (p || c(void 0)) : p && c(m.id);
329
330
  }
330
331
  }, [i, r, u]), /* @__PURE__ */ l("div", { className: "shortcutsContainer", children: u.map((m, p) => {
@@ -336,7 +337,7 @@ const ea = (e) => {
336
337
  {
337
338
  type: "button",
338
339
  className: `shortcut ${r === m.id ? "selected" : ""}`,
339
- onClick: (L) => {
340
+ onClick: (T) => {
340
341
  v(), o == null || o({ startDate: m.startDate, endDate: m.endDate });
341
342
  },
342
343
  outlined: !0,
@@ -345,7 +346,7 @@ const ea = (e) => {
345
346
  m.id + p
346
347
  );
347
348
  }) });
348
- }, na = Ee.forwardRef((e, n) => {
349
+ }, ca = Ee.forwardRef((e, n) => {
349
350
  const {
350
351
  // Time range input props
351
352
  // endTimeInputClassName,
@@ -366,58 +367,58 @@ const ea = (e) => {
366
367
  // withTimeRange,
367
368
  withShortcuts: p,
368
369
  locale: v = "en"
369
- } = e, [L, w] = D(null), [P, A] = D(null), [H, Y] = D(!1), G = r ? { startDate: L, endDate: P } : L;
370
+ } = e, [T, w] = O(null), [P, A] = O(null), [H, Y] = O(!1), G = r ? { startDate: T, endDate: P } : T;
370
371
  I(() => {
371
- v === "he" && Kn("he", qn);
372
+ v === "he" && Yn("he", Xn);
372
373
  }, [v]), I(() => {
373
- var O, z;
374
- ((O = e.startDate) == null ? void 0 : O.toString()) !== (L == null ? void 0 : L.toString()) && w(e.startDate), ((z = e.endDate) == null ? void 0 : z.toString()) !== (P == null ? void 0 : P.toString()) && A(e.endDate);
375
- }, [e.startDate, e.endDate, L, P]);
374
+ var D, z;
375
+ ((D = e.startDate) == null ? void 0 : D.toString()) !== (T == null ? void 0 : T.toString()) && w(e.startDate), ((z = e.endDate) == null ? void 0 : z.toString()) !== (P == null ? void 0 : P.toString()) && A(e.endDate);
376
+ }, [e.startDate, e.endDate, T, P]);
376
377
  const U = Be(() => {
377
- let O = "pickerContainer" + (v === "he" ? " pickerContainer-rtl" : "");
378
- return p && r && (O += " pickerContainer-withShortcuts"), O;
378
+ let D = "pickerContainer" + (v === "he" ? " pickerContainer-rtl" : "");
379
+ return p && r && (D += " pickerContainer-withShortcuts"), D;
379
380
  }, [v, p, r]), j = m ? {
380
381
  showMonthDropdown: !0,
381
382
  showYearDropdown: !0,
382
383
  dropdownMode: "select"
383
384
  } : {};
384
385
  return /* @__PURE__ */ l("div", { className: U, style: { direction: v === "he" ? "rtl" : "ltr" }, children: /* @__PURE__ */ l(
385
- jn,
386
+ qn,
386
387
  {
387
388
  ...e,
388
389
  ref: n,
389
390
  onClickOutside: () => Y(!1),
390
391
  open: H,
391
- startDate: Qe(G) ? L : void 0,
392
- selected: L,
392
+ startDate: Qe(G) ? T : void 0,
393
+ selected: T,
393
394
  endDate: Qe(G) ? P : void 0,
394
395
  monthsShown: e.monthsShown ?? 2,
395
396
  calendarClassName: `pickerCalendar ${t}`,
396
- weekDayClassName: (O) => `pickerWeek ${(i == null ? void 0 : i(O)) ?? ""}`,
397
- dayClassName: (O) => `pickerDay ${(i == null ? void 0 : i(O)) ?? ""}`,
398
- monthClassName: (O) => `pickerMonth ${(o == null ? void 0 : o(O)) ?? ""}`,
399
- onChange: (O, z) => {
400
- if (Array.isArray(O)) {
401
- const [k, $] = O;
402
- w(k), A($), c == null || c({ startDate: k, endDate: $ && bn($) }, z);
397
+ weekDayClassName: (D) => `pickerWeek ${(i == null ? void 0 : i(D)) ?? ""}`,
398
+ dayClassName: (D) => `pickerDay ${(i == null ? void 0 : i(D)) ?? ""}`,
399
+ monthClassName: (D) => `pickerMonth ${(o == null ? void 0 : o(D)) ?? ""}`,
400
+ onChange: (D, z) => {
401
+ if (Array.isArray(D)) {
402
+ const [k, $] = D;
403
+ w(k), A($), c == null || c({ startDate: k, endDate: $ && Tn($) }, z);
403
404
  } else
404
- w(O), c == null || c(O, z);
405
+ w(D), c == null || c(D, z);
405
406
  },
406
- customInput: /* @__PURE__ */ l(vr, { name: u, onInputClick: () => {
407
+ customInput: /* @__PURE__ */ l(br, { name: u, onInputClick: () => {
407
408
  Y(!0);
408
409
  } }),
409
410
  showTimeInput: !!(p && r),
410
411
  timeInputLabel: "",
411
- customTimeInput: p && Qe(G) && /* @__PURE__ */ l(Er, { onShortcut: (O) => {
412
- c == null || c(O), Y(!1);
412
+ customTimeInput: p && Qe(G) && /* @__PURE__ */ l(Tr, { onShortcut: (D) => {
413
+ c == null || c(D), Y(!1);
413
414
  }, shortcuts: p, setEndDate: A, setStartDate: w, dateRange: G }),
414
415
  showMonthYearDropdown: void 0,
415
416
  ...j
416
417
  }
417
418
  ) });
418
419
  });
419
- const ia = (e) => {
420
- const n = Xt(), t = an(n), {
420
+ const da = (e) => {
421
+ const n = pt(), t = vt(n), {
421
422
  format: i = J.DATE_PICKER.dateFormat,
422
423
  variant: o = J.DATE_PICKER.variant,
423
424
  disableFuture: r = J.DATE_PICKER.disableFuture,
@@ -426,18 +427,18 @@ const ia = (e) => {
426
427
  showTime: m = J.DATE_PICKER.showTime,
427
428
  value: p,
428
429
  ...v
429
- } = e, { placeHolderText: L = J.DATE_PICKER.local.placeHolderText, calendarLocale: w } = c ?? {
430
+ } = e, { placeHolderText: T = J.DATE_PICKER.local.placeHolderText, calendarLocale: w } = c ?? {
430
431
  placeHolderText: J.DATE_PICKER.local.placeHolderText,
431
432
  calendarLocale: he.EN
432
- }, P = w === he.HE ? Ut : jt, A = (H) => {
433
+ }, P = w === he.HE ? qt : Yt, A = (H) => {
433
434
  u(H);
434
435
  };
435
- return /* @__PURE__ */ l(Yt, { theme: t, children: /* @__PURE__ */ N(Kt, { utils: qt, locale: P, children: [
436
+ return /* @__PURE__ */ l(mt, { theme: t, children: /* @__PURE__ */ N(Xt, { utils: Zt, locale: P, children: [
436
437
  m && /* @__PURE__ */ l(
437
438
  rt,
438
439
  {
439
440
  variant: o,
440
- placeholder: L,
441
+ placeholder: T,
441
442
  onChange: A,
442
443
  value: p,
443
444
  disableFuture: r,
@@ -446,10 +447,10 @@ const ia = (e) => {
446
447
  }
447
448
  ),
448
449
  !m && /* @__PURE__ */ l(
449
- Ln,
450
+ Sn,
450
451
  {
451
452
  variant: o,
452
- placeholder: L,
453
+ placeholder: T,
453
454
  onChange: A,
454
455
  value: p,
455
456
  disableFuture: r,
@@ -458,18 +459,18 @@ const ia = (e) => {
458
459
  }
459
460
  )
460
461
  ] }) });
461
- }, Cr = 18, wr = Fe(
462
+ }, Sr = 18, Lr = Fe(
462
463
  (e) => Ke({
463
464
  drawingButton: {
464
- width: e.spacing(Cr)
465
+ width: e.spacing(Sr)
465
466
  },
466
467
  fullWidth: {
467
468
  width: "100%",
468
469
  marginTop: "36px"
469
470
  }
470
471
  })
471
- ), Tr = (e) => {
472
- const n = wr(), [t, i] = Ee.useState(null), { isSelectionEnabled: o, onCancelDraw: r, onStartDraw: c, onReset: u } = e, m = (v) => {
472
+ ), _r = (e) => {
473
+ const n = Lr(), [t, i] = Ee.useState(null), { isSelectionEnabled: o, onCancelDraw: r, onStartDraw: c, onReset: u } = e, m = (v) => {
473
474
  i(v.currentTarget);
474
475
  }, p = () => {
475
476
  i(null);
@@ -477,7 +478,7 @@ const ia = (e) => {
477
478
  return o ? /* @__PURE__ */ l(st, { content: "Cancel the ongoing draw", align: "bottomLeft", children: /* @__PURE__ */ l(Ne, { className: n.drawingButton, raised: !0, onClick: r, children: "Cancel Draw" }) }) : /* @__PURE__ */ N(de, { position: "relative", children: [
478
479
  /* @__PURE__ */ l(st, { content: "draw an Area of interest to limit the search", align: "bottomLeft", children: /* @__PURE__ */ l(Ne, { className: n.drawingButton, raised: !0, onClick: m, children: "Draw AOI" }) }),
479
480
  /* @__PURE__ */ N(
480
- Bn,
481
+ Fn,
481
482
  {
482
483
  className: n.fullWidth,
483
484
  open: Boolean(t),
@@ -516,12 +517,12 @@ const ia = (e) => {
516
517
  ] });
517
518
  };
518
519
  var ge = /* @__PURE__ */ ((e) => (e.WGS84 = "EPSG:4326", e.WEB_MERCATOR = "EPSG:3857", e))(ge || {});
519
- const ut = 5, ht = 2, ln = Me(null), br = ln.Provider, Mt = 35, Pt = 32, Lr = 10, Sr = (e) => e !== void 0 && e !== ge.WGS84 ? Qn([Mt, Pt], ge.WGS84, e) : [Mt, Pt], _r = (e) => {
520
+ const ut = 5, ht = 2, ln = Me(null), Mr = ln.Provider, It = 35, Ot = 32, Pr = 10, xr = (e) => e !== void 0 && e !== ge.WGS84 ? ti([It, Ot], ge.WGS84, e) : [It, Ot], Ir = (e) => {
520
521
  switch (e) {
521
522
  case ge.WEB_MERCATOR:
522
- return (n) => bt(n, "Mercator: {y}m, {x}m", ht);
523
+ return (n) => _t(n, "Mercator: {y}m, {x}m", ht);
523
524
  case ge.WGS84:
524
- return (n) => bt(n, "WGS84: {y}°N {x}°E", ut);
525
+ return (n) => _t(n, "WGS84: {y}°N {x}°E", ut);
525
526
  default:
526
527
  return (n) => "";
527
528
  }
@@ -530,19 +531,19 @@ const ut = 5, ht = 2, ln = Me(null), br = ln.Provider, Mt = 35, Pt = 32, Lr = 10
530
531
  if (e === null)
531
532
  throw new Error("map context is null, please check the provider");
532
533
  return e;
533
- }, Mr = (e) => {
534
- const n = Se(null), { allowFullScreen: t, showMousePosition: i, projection: o } = e, [r] = D(
535
- new Xn({
536
- view: new Zn({
534
+ }, Or = (e) => {
535
+ const n = Le(null), { allowFullScreen: t, showMousePosition: i, projection: o } = e, [r] = O(
536
+ new Jn({
537
+ view: new Qn({
537
538
  projection: o ?? ge.WGS84
538
539
  }),
539
- controls: Jn()
540
+ controls: ei()
540
541
  })
541
542
  );
542
543
  I(() => {
543
- r.getView().setCenter(e.center ?? Sr(e.projection));
544
+ r.getView().setCenter(e.center ?? xr(e.projection));
544
545
  }, [r, e.center, e.projection]), I(() => {
545
- r.getView().setZoom(e.zoom ?? Lr);
546
+ r.getView().setZoom(e.zoom ?? Pr);
546
547
  }, [r, e.zoom, e.projection]);
547
548
  const c = (u, m) => {
548
549
  m.getControls().forEach((v) => {
@@ -550,65 +551,65 @@ const ut = 5, ht = 2, ln = Me(null), br = ln.Provider, Mt = 35, Pt = 32, Lr = 10
550
551
  });
551
552
  };
552
553
  return I(() => {
553
- r.setTarget(n.current), t !== void 0 && t ? r.addControl(new Lt()) : c(Lt, r);
554
+ r.setTarget(n.current), t !== void 0 && t ? r.addControl(new Mt()) : c(Mt, r);
554
555
  }, [r, t]), I(() => {
555
556
  i !== void 0 && i ? (c(Je, r), r.addControl(
556
557
  new Je({
557
- coordinateFormat: _r(o ?? ge.WGS84),
558
+ coordinateFormat: Ir(o ?? ge.WGS84),
558
559
  projection: o ?? ge.WGS84,
559
560
  undefinedHTML: "&nbsp;"
560
561
  })
561
562
  )) : c(Je, r);
562
- }, [r, i, o]), /* @__PURE__ */ N(br, { value: r, children: [
563
+ }, [r, i, o]), /* @__PURE__ */ N(Mr, { value: r, children: [
563
564
  /* @__PURE__ */ l("div", { className: "map", ref: n }),
564
565
  e.children
565
566
  ] });
566
- }, cn = Me(null), Pr = cn.Provider, qe = () => {
567
+ }, cn = Me(null), Dr = cn.Provider, qe = () => {
567
568
  const e = Pe(cn);
568
569
  if (e === null)
569
570
  throw new Error("tile layer context is null, please check the provider");
570
571
  return e;
571
- }, xr = ({ options: e, children: n }) => {
572
- const t = ke(), [i] = D(new ti(e));
572
+ }, Ar = ({ options: e, children: n }) => {
573
+ const t = ke(), [i] = O(new ii(e));
573
574
  return I(() => (t.addLayer(i), () => {
574
575
  t.removeLayer(i);
575
- }), [t, i]), /* @__PURE__ */ l(Pr, { value: i, children: n });
576
- }, dn = Me(null), Ir = dn.Provider, Dr = () => {
576
+ }), [t, i]), /* @__PURE__ */ l(Dr, { value: i, children: n });
577
+ }, dn = Me(null), kr = dn.Provider, Rr = () => {
577
578
  const e = Pe(dn);
578
579
  if (e === null)
579
580
  throw new Error("vector layer context is null, please check the provider");
580
581
  return e;
581
- }, Or = ({ children: e }) => {
582
- const n = ke(), [t] = D(new ni());
582
+ }, Nr = ({ children: e }) => {
583
+ const n = ke(), [t] = O(new ri());
583
584
  return I(() => (n.addLayer(t), () => {
584
585
  n.removeLayer(t);
585
- }), [n, t]), /* @__PURE__ */ l(Ir, { value: t, children: e });
586
- }, un = Me(null), Ar = un.Provider, kr = () => {
586
+ }), [n, t]), /* @__PURE__ */ l(kr, { value: t, children: e });
587
+ }, un = Me(null), Br = un.Provider, Fr = () => {
587
588
  const e = Pe(un);
588
589
  if (e === null)
589
590
  throw new Error("vector source context is null, please check the provider");
590
591
  return e;
591
- }, Rr = ({ children: e }) => {
592
- const n = Dr(), [t] = D(new ii());
592
+ }, Hr = ({ children: e }) => {
593
+ const n = Rr(), [t] = O(new oi());
593
594
  return I(() => {
594
595
  n.setSource(t);
595
- }, [t, n]), /* @__PURE__ */ l(Ar, { value: t, children: e });
596
- }, Nr = ({ geometry: e, fitOptions: n, fit: t, featureStyle: i }) => {
597
- const o = kr(), r = ke();
598
- return Wt(() => {
599
- const u = new Zt().readFeature(e);
596
+ }, [t, n]), /* @__PURE__ */ l(Br, { value: t, children: e });
597
+ }, Gr = ({ geometry: e, fitOptions: n, fit: t, featureStyle: i }) => {
598
+ const o = Fr(), r = ke();
599
+ return Kt(() => {
600
+ const u = new Jt().readFeature(e);
600
601
  return t && o.on("addfeature", function() {
601
602
  r.getView().fit(o.getExtent(), n);
602
603
  }), i && u.setStyle(i), o.addFeature(u), () => {
603
604
  o.removeFeature(u);
604
605
  };
605
606
  }, [e, o, t]), null;
606
- }, Br = (e) => {
607
+ }, Vr = (e) => {
607
608
  const n = qe();
608
609
  return I(() => {
609
- n.setSource(new ri());
610
+ n.setSource(new si());
610
611
  }, [n]), null;
611
- }, Fr = ({ drawType: e, onPolygonSelected: n }) => {
612
+ }, zr = ({ drawType: e, onPolygonSelected: n }) => {
612
613
  const t = ke();
613
614
  return I(() => {
614
615
  const i = {
@@ -617,7 +618,7 @@ const ut = 5, ht = 2, ln = Me(null), br = ln.Provider, Mt = 35, Pt = 32, Lr = 10
617
618
  };
618
619
  switch (e) {
619
620
  case le.BOX:
620
- i.geometryFunction = li();
621
+ i.geometryFunction = di();
621
622
  break;
622
623
  case le.POLYGON:
623
624
  i.type = "Polygon";
@@ -625,10 +626,10 @@ const ut = 5, ht = 2, ln = Me(null), br = ln.Provider, Mt = 35, Pt = 32, Lr = 10
625
626
  default:
626
627
  return;
627
628
  }
628
- const o = new ai(i);
629
+ const o = new ci(i);
629
630
  t.addInteraction(o);
630
631
  const r = (c) => {
631
- const m = new Zt().writeGeometryObject(c.feature.getGeometry());
632
+ const m = new Jt().writeGeometryObject(c.feature.getGeometry());
632
633
  n == null || n(m);
633
634
  };
634
635
  return o.on("drawend", r), () => {
@@ -636,18 +637,18 @@ const ut = 5, ht = 2, ln = Me(null), br = ln.Provider, Mt = 35, Pt = 32, Lr = 10
636
637
  };
637
638
  }, [n, e, t]), null;
638
639
  };
639
- const Hr = (e) => {
640
+ const $r = (e) => {
640
641
  const n = (t) => {
641
- const i = Yn(t);
642
+ const i = Zn(t);
642
643
  e.onPolygonSelection(i);
643
644
  };
644
- return /* @__PURE__ */ N(Mr, { allowFullScreen: !0, showMousePosition: !0, children: [
645
- /* @__PURE__ */ l(xr, { children: /* @__PURE__ */ l(Br, {}) }),
646
- e.selectionPolygon && /* @__PURE__ */ l(Or, { children: /* @__PURE__ */ l(Rr, { children: /* @__PURE__ */ l(Nr, { geometry: e.selectionPolygon }) }) }),
645
+ return /* @__PURE__ */ N(Or, { allowFullScreen: !0, showMousePosition: !0, children: [
646
+ /* @__PURE__ */ l(Ar, { children: /* @__PURE__ */ l(Vr, {}) }),
647
+ e.selectionPolygon && /* @__PURE__ */ l(Nr, { children: /* @__PURE__ */ l(Hr, { children: /* @__PURE__ */ l(Gr, { geometry: e.selectionPolygon }) }) }),
647
648
  e.children,
648
- e.drawType !== void 0 && /* @__PURE__ */ l(Fr, { drawType: e.drawType, onPolygonSelected: n })
649
+ e.drawType !== void 0 && /* @__PURE__ */ l(zr, { drawType: e.drawType, onPolygonSelected: n })
649
650
  ] });
650
- }, et = 1.5, Gr = 80, Vr = Fe(
651
+ }, et = 1.5, Wr = 80, Ur = Fe(
651
652
  (e) => Ke({
652
653
  map: {
653
654
  height: "100%",
@@ -662,7 +663,7 @@ const Hr = (e) => {
662
663
  },
663
664
  contentContainer: {
664
665
  marginTop: e.spacing(et),
665
- width: e.spacing(Gr)
666
+ width: e.spacing(Wr)
666
667
  },
667
668
  filtersContainer: {
668
669
  display: "flex",
@@ -672,9 +673,9 @@ const Hr = (e) => {
672
673
  marginLeft: e.spacing(1)
673
674
  }
674
675
  })
675
- ), ra = (e) => {
676
+ ), ua = (e) => {
676
677
  var m;
677
- const [n, t] = D(), [i, o] = D(), r = Vr(), c = (p) => {
678
+ const [n, t] = O(), [i, o] = O(), r = Ur(), c = (p) => {
678
679
  o(p), t(void 0), e.handlePolygonSelected(p);
679
680
  }, u = () => {
680
681
  o(void 0), e.handlePolygonReset();
@@ -683,7 +684,7 @@ const Hr = (e) => {
683
684
  /* @__PURE__ */ N("div", { className: `${r.absolute}`, children: [
684
685
  /* @__PURE__ */ N(ot, { className: r.filtersContainer, children: [
685
686
  /* @__PURE__ */ l(
686
- Tr,
687
+ _r,
687
688
  {
688
689
  onCancelDraw: () => t(void 0),
689
690
  onReset: u,
@@ -695,44 +696,44 @@ const Hr = (e) => {
695
696
  ] }),
696
697
  /* @__PURE__ */ l(ot, { color: "red", className: `${r.contentContainer}`, children: e.children })
697
698
  ] }),
698
- /* @__PURE__ */ l(Hr, { children: e.mapContent, onPolygonSelection: c, drawType: n, selectionPolygon: i })
699
+ /* @__PURE__ */ l($r, { children: e.mapContent, onPolygonSelection: c, drawType: n, selectionPolygon: i })
699
700
  ] });
700
- }, xt = new di({
701
+ }, Dt = new hi({
701
702
  color: "rgba(255,255,255,0.4)"
702
- }), It = new ui({
703
+ }), At = new mi({
703
704
  color: "#3399CC",
704
705
  width: 1.25
705
- }), Dt = [
706
- new hi({
707
- image: new mi({
708
- fill: xt,
709
- stroke: It,
706
+ }), kt = [
707
+ new pi({
708
+ image: new gi({
709
+ fill: Dt,
710
+ stroke: At,
710
711
  radius: 5
711
712
  }),
712
- fill: xt,
713
- stroke: It
713
+ fill: Dt,
714
+ stroke: At
714
715
  })
715
- ], hn = Me(null), zr = hn.Provider, $r = () => {
716
+ ], hn = Me(null), jr = hn.Provider, Kr = () => {
716
717
  const e = Pe(hn);
717
718
  if (e === null)
718
719
  throw new Error("vector tile layer context is null, please check the provider");
719
720
  return e;
720
- }, oa = ({ children: e, options: n, style: t }) => {
721
- const i = ke(), [o] = D(
722
- new ci({
721
+ }, ha = ({ children: e, options: n, style: t }) => {
722
+ const i = ke(), [o] = O(
723
+ new ui({
723
724
  ...n,
724
- style: t || Dt
725
+ style: t || kt
725
726
  })
726
727
  );
727
728
  return I(() => (i.addLayer(o), () => {
728
729
  i.removeLayer(o);
729
730
  }), [i, o]), I(() => {
730
- o.setStyle(t || Dt);
731
- }, [o, t]), /* @__PURE__ */ l(zr, { value: o, children: e });
732
- }, tt = 20, Wr = 256, Ur = 2, jr = 2, Kr = "REST", sa = (e) => {
733
- const n = ei(e.projection), t = n.getExtent(), i = new Array(tt), o = new Array(tt), r = gi(t) / Wr, c = e.heightWidthRatio !== void 0 ? e.heightWidthRatio : jr, u = e.requestEncoding !== void 0 ? e.requestEncoding : Kr;
731
+ o.setStyle(t || kt);
732
+ }, [o, t]), /* @__PURE__ */ l(jr, { value: o, children: e });
733
+ }, tt = 20, qr = 256, Yr = 2, Xr = 2, Zr = "REST", ma = (e) => {
734
+ const n = ni(e.projection), t = n.getExtent(), i = new Array(tt), o = new Array(tt), r = yi(t) / qr, c = e.heightWidthRatio !== void 0 ? e.heightWidthRatio : Xr, u = e.requestEncoding !== void 0 ? e.requestEncoding : Zr;
734
735
  for (let p = 0; p < tt; ++p)
735
- i[p] = r / Math.pow(Ur, p) / c, o[p] = p.toString();
736
+ i[p] = r / Math.pow(Yr, p) / c, o[p] = p.toString();
736
737
  return {
737
738
  attributions: e.attributions,
738
739
  url: e.url,
@@ -740,8 +741,8 @@ const Hr = (e) => {
740
741
  matrixSet: e.matrixSet,
741
742
  format: e.format,
742
743
  projection: n,
743
- tileGrid: new pi({
744
- origin: fi(t),
744
+ tileGrid: new fi({
745
+ origin: vi(t),
745
746
  resolutions: i,
746
747
  matrixIds: o
747
748
  }),
@@ -749,12 +750,12 @@ const Hr = (e) => {
749
750
  requestEncoding: u,
750
751
  wrapX: e.wrapX !== void 0 ? e.wrapX : !0
751
752
  };
752
- }, aa = (e) => {
753
+ }, pa = (e) => {
753
754
  const n = qe(), { options: t } = e;
754
755
  return I(() => {
755
- n.setSource(new oi(t));
756
+ n.setSource(new ai(t));
756
757
  }, [n, t]), null;
757
- }, la = (e) => {
758
+ }, ga = (e) => {
758
759
  const { attributions: n, url: t, params: i, serverType: o, transition: r } = e;
759
760
  return {
760
761
  attributions: n,
@@ -763,51 +764,51 @@ const Hr = (e) => {
763
764
  serverType: o,
764
765
  transition: r
765
766
  };
766
- }, ca = (e) => {
767
+ }, fa = (e) => {
767
768
  const n = qe(), { options: t } = e;
768
769
  return I(() => {
769
- n.setSource(new yi(t));
770
+ n.setSource(new Ei(t));
770
771
  }, [n, t]), null;
771
- }, da = (e) => {
772
+ }, ya = (e) => {
772
773
  const { attributions: n, url: t } = e;
773
774
  return {
774
775
  attributions: n,
775
776
  url: t
776
777
  };
777
- }, ua = (e) => {
778
+ }, va = (e) => {
778
779
  const n = qe(), { options: t } = e;
779
780
  return I(() => {
780
- n.setSource(new vi(t));
781
+ n.setSource(new Ci(t));
781
782
  }, [n, t]), null;
782
- }, qr = Me(null), ha = () => {
783
- const e = Pe(qr);
783
+ }, Jr = Me(null), Ea = () => {
784
+ const e = Pe(Jr);
784
785
  if (e === null)
785
786
  throw new Error("vector tile source context is null, please check the provider");
786
787
  return e;
787
- }, ma = (e) => {
788
+ }, Ca = (e) => {
788
789
  const { url: n } = e;
789
790
  return {
790
791
  url: n,
791
- format: new si()
792
+ format: new li()
792
793
  };
793
- }, pa = ({ children: e, options: n }) => {
794
- const t = $r();
794
+ }, wa = ({ children: e, options: n }) => {
795
+ const t = Kr();
795
796
  return I(() => {
796
- t.setSource(new Ei(n));
797
+ t.setSource(new wi(n));
797
798
  }, [n, t]), null;
798
- }, ga = ({ legendItems: e, title: n, isCollapsed: t }) => {
799
+ }, ba = ({ legendItems: e, title: n, isCollapsed: t }) => {
799
800
  const i = ke();
800
801
  return I(() => {
801
- const o = new St({
802
+ const o = new Pt({
802
803
  title: n ?? "",
803
804
  margin: 5,
804
805
  maxWidth: 300
805
- }), r = new Ci({
806
+ }), r = new bi({
806
807
  legend: o,
807
808
  collapsed: t === void 0 ? !0 : t
808
809
  });
809
810
  i.addControl(r);
810
- const c = new St({ margin: 4 });
811
+ const c = new Pt({ margin: 4 });
811
812
  return e.forEach((u) => {
812
813
  c.addItem({
813
814
  title: u.title,
@@ -819,11 +820,11 @@ const Hr = (e) => {
819
820
  };
820
821
  }, [i, e, n, t]), /* @__PURE__ */ l(oe, {});
821
822
  };
822
- function Yr(e) {
823
+ function Qr(e) {
823
824
  const { headCells: n, order: t, orderBy: i, onRequestSort: o, isCollapseable: r } = e, c = (u) => (m) => {
824
825
  o(m, u);
825
826
  };
826
- return /* @__PURE__ */ l(wi, { children: /* @__PURE__ */ N($e, { children: [
827
+ return /* @__PURE__ */ l(Ti, { children: /* @__PURE__ */ N($e, { children: [
827
828
  r && /* @__PURE__ */ l(Ae, {}),
828
829
  n.map((u) => /* @__PURE__ */ l(
829
830
  Ae,
@@ -845,19 +846,19 @@ function Yr(e) {
845
846
  ))
846
847
  ] }) });
847
848
  }
848
- const Xr = Jt(
849
- /* @__PURE__ */ $t.createElement("path", {
849
+ const eo = Qt(
850
+ /* @__PURE__ */ jt.createElement("path", {
850
851
  d: "M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"
851
852
  }),
852
853
  "KeyboardArrowDown"
853
- ), Zr = Jt(
854
- /* @__PURE__ */ $t.createElement("path", {
854
+ ), to = Qt(
855
+ /* @__PURE__ */ jt.createElement("path", {
855
856
  d: "M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"
856
857
  }),
857
858
  "KeyboardArrowUp"
858
859
  );
859
- function Jr(e) {
860
- const { cellsMetadata: n, isRowSelected: t, item: i, onRowSelected: o, rowIndex: r, isCollapseable: c, collapsedElement: u } = e, [m, p] = D(!1), v = n.length;
860
+ function no(e) {
861
+ const { cellsMetadata: n, isRowSelected: t, item: i, onRowSelected: o, rowIndex: r, isCollapseable: c, collapsedElement: u } = e, [m, p] = O(!1), v = n.length;
861
862
  return /* @__PURE__ */ N(oe, { children: [
862
863
  /* @__PURE__ */ N($e, { hover: !0, selected: t, onClick: () => {
863
864
  o == null || o(r);
@@ -870,7 +871,7 @@ function Jr(e) {
870
871
  onClick: (w) => {
871
872
  w.stopPropagation(), p(!m);
872
873
  },
873
- children: m ? /* @__PURE__ */ l(Zr, {}) : /* @__PURE__ */ l(Xr, {})
874
+ children: m ? /* @__PURE__ */ l(to, {}) : /* @__PURE__ */ l(eo, {})
874
875
  }
875
876
  ) }),
876
877
  n.map((w) => /* @__PURE__ */ l(
@@ -886,30 +887,30 @@ function Jr(e) {
886
887
  c && /* @__PURE__ */ l($e, { children: /* @__PURE__ */ l(Ae, { style: { paddingBottom: 0, paddingTop: 0 }, colSpan: v + 1, children: /* @__PURE__ */ l(In, { in: m, unmountOnExit: !0, timeout: "auto", children: u == null ? void 0 : u(i) }) }) })
887
888
  ] });
888
889
  }
889
- function fa(e) {
890
- const [n, t] = D(""), [i, o] = D("asc"), {
890
+ function Ta(e) {
891
+ const [n, t] = O(""), [i, o] = O("asc"), {
891
892
  cellsMetadata: r,
892
893
  items: c,
893
894
  onRequestSort: u,
894
895
  onRowSelected: m,
895
896
  isCollapseable: p,
896
897
  collapsedElement: v,
897
- isDense: L,
898
+ isDense: T,
898
899
  page: w,
899
900
  rowsPerPage: P,
900
901
  count: A,
901
902
  handleChangePage: H,
902
903
  handleChangeRowsPerPage: Y
903
904
  } = e;
904
- return /* @__PURE__ */ N(Dn, { component: ot, children: [
905
- /* @__PURE__ */ N(On, { size: L ? "small" : "medium", children: [
905
+ return /* @__PURE__ */ N(On, { component: ot, children: [
906
+ /* @__PURE__ */ N(Dn, { size: T ? "small" : "medium", children: [
906
907
  /* @__PURE__ */ l(
907
- Yr,
908
+ Qr,
908
909
  {
909
910
  headCells: r,
910
911
  onRequestSort: (U, j) => {
911
- const O = n === j && i === "asc";
912
- o(O ? "desc" : "asc"), t(j), u(j, O ? "desc" : "asc");
912
+ const D = n === j && i === "asc";
913
+ o(D ? "desc" : "asc"), t(j), u(j, D ? "desc" : "asc");
913
914
  },
914
915
  order: i,
915
916
  orderBy: n,
@@ -918,7 +919,7 @@ function fa(e) {
918
919
  ),
919
920
  /* @__PURE__ */ N(An, { children: [
920
921
  c.map((U, j) => /* @__PURE__ */ l(
921
- Jr,
922
+ no,
922
923
  {
923
924
  item: U,
924
925
  rowIndex: j,
@@ -934,7 +935,7 @@ function fa(e) {
934
935
  $e,
935
936
  {
936
937
  style: {
937
- height: (L ? 33 : 53) * (P - c.length)
938
+ height: (T ? 33 : 53) * (P - c.length)
938
939
  },
939
940
  children: /* @__PURE__ */ l(Ae, { colSpan: p ? r.length + 1 : r.length, children: c.length === 0 && /* @__PURE__ */ l(kn, { align: "center", children: "No results :(" }) })
940
941
  }
@@ -955,23 +956,23 @@ function fa(e) {
955
956
  )
956
957
  ] });
957
958
  }
958
- const ya = (e) => {
959
+ const Sa = (e) => {
959
960
  const { children: n, ...t } = e;
960
- return /* @__PURE__ */ l(Ti, { ...t, children: n });
961
- }, va = (e) => {
961
+ return /* @__PURE__ */ l(Si, { ...t, children: n });
962
+ }, La = (e) => {
962
963
  const { children: n, ...t } = e;
963
- return /* @__PURE__ */ l(bi, { ...t, children: n });
964
- }, Ot = (e) => e * Math.PI / 180, Ge = (e) => e * (180 / Math.PI), Qr = (e) => 0.05 * (5916575505e-1 / Math.pow(2, e - 1) / 2) * (Math.cos(Ot(85.362 / 2)) / Math.sin(Ot(85.362 / 2)));
964
+ return /* @__PURE__ */ l(Li, { ...t, children: n });
965
+ }, Rt = (e) => e * Math.PI / 180, Ge = (e) => e * (180 / Math.PI), io = (e) => 0.05 * (5916575505e-1 / Math.pow(2, e - 1) / 2) * (Math.cos(Rt(85.362 / 2)) / Math.sin(Rt(85.362 / 2)));
965
966
  const mn = (e, n, t) => {
966
967
  let i;
967
- if (e.scene.mode !== Le.SCENE2D)
968
+ if (e.scene.mode !== Se.SCENE2D)
968
969
  i = e.scene.pickPosition(new Ce(n, t));
969
970
  else {
970
971
  const o = e.scene.globe.ellipsoid;
971
972
  i = e.camera.pickEllipsoid(new Ce(n, t), o);
972
973
  }
973
974
  return He.fromCartesian(i);
974
- }, eo = (e, n, t) => {
975
+ }, ro = (e, n, t) => {
975
976
  const i = mn(e, n, t);
976
977
  return {
977
978
  type: "Feature",
@@ -992,52 +993,52 @@ const mn = (e, n, t) => {
992
993
  return;
993
994
  }
994
995
  };
995
- class Ea extends ki {
996
+ class _a extends Ni {
996
997
  }
997
- class Ca extends Ri {
998
+ class Ma extends Bi {
998
999
  }
999
- class wa extends Ni {
1000
+ class Pa extends Fi {
1000
1001
  }
1001
- class Ta extends Ce {
1002
+ class xa extends Ce {
1002
1003
  }
1003
- class ba extends ve {
1004
+ class Ia extends ve {
1004
1005
  }
1005
- class to extends He {
1006
+ class oo extends He {
1006
1007
  }
1007
- class La extends Bi {
1008
+ class Oa extends Hi {
1008
1009
  }
1009
- class Sa extends en {
1010
+ class Da extends tn {
1010
1011
  }
1011
- class _a extends Fi {
1012
+ class Aa extends Gi {
1012
1013
  }
1013
- class Ma extends Oe {
1014
+ class ka extends De {
1014
1015
  }
1015
- class Pa extends Hi {
1016
+ class Ra extends Vi {
1016
1017
  }
1017
- class xa extends Gi {
1018
+ class Na extends zi {
1018
1019
  }
1019
- class Ia extends Vi {
1020
+ class Ba extends $i {
1020
1021
  }
1021
- const Da = at, Oa = zi, Aa = tn, no = (e) => {
1022
- const n = se(), t = Se(null), [i, o] = D({ x: 0, y: 0 });
1022
+ const Fa = at, Ha = Wi, Ga = nn, so = (e) => {
1023
+ const n = se(), t = Le(null), [i, o] = O({ x: 0, y: 0 });
1023
1024
  return I(() => {
1024
1025
  n.screenSpaceEventHandler.setInputAction((r) => {
1025
1026
  if (r != null && r.endPosition) {
1026
1027
  const c = { ...r.endPosition };
1027
1028
  c.x = Math.ceil(c.x), c.y = Math.ceil(c.y), o(c);
1028
1029
  }
1029
- }, $i.MOUSE_MOVE);
1030
+ }, Ui.MOUSE_MOVE);
1030
1031
  }, [t, n]), I(() => {
1031
1032
  const r = n.scene.globe.ellipsoid;
1032
1033
  if (i) {
1033
1034
  const c = pn(n, i.x, i.y);
1034
1035
  if (c) {
1035
- const u = new to(c.longitude, c.latitude);
1036
+ const u = new oo(c.longitude, c.latitude);
1036
1037
  if (t.current) {
1037
1038
  let m = "";
1038
1039
  switch (e.projection) {
1039
1040
  case ge.WEB_MERCATOR: {
1040
- const v = new Wi(r).project(u);
1041
+ const v = new ji(r).project(u);
1041
1042
  m = `Mercator: ${v.y.toFixed(ht)}m, ${v.x.toFixed(
1042
1043
  ht
1043
1044
  )}m`, t.current.style.width = "220px";
@@ -1088,39 +1089,39 @@ const nt = [
1088
1089
  2e7,
1089
1090
  3e7,
1090
1091
  5e7
1091
- ], io = (e, n, t, i) => {
1092
+ ], ao = (e, n, t, i) => {
1092
1093
  const o = Z(i, "METERS_UNIT") ?? "m", r = Z(i, "KILOMETERS_UNIT") ?? "km", c = {
1093
1094
  barWidth: void 0,
1094
1095
  distanceLabel: void 0,
1095
1096
  lastLegendUpdate: n.lastLegendUpdate
1096
- }, u = new ji(), m = new Date().getTime();
1097
+ }, u = new qi(), m = new Date().getTime();
1097
1098
  if (m < c.lastLegendUpdate + 250)
1098
1099
  return;
1099
1100
  c.lastLegendUpdate = m;
1100
- const p = e.scene.canvas.clientWidth, v = e.scene.canvas.clientHeight, L = e.scene.camera.getPickRay(new Ce(p / 2 | 0, v - 1)), w = e.scene.camera.getPickRay(new Ce(1 + p / 2 | 0, v - 1)), P = e.scene.globe, A = P.pick(L, e.scene), H = P.pick(w, e.scene);
1101
+ const p = e.scene.canvas.clientWidth, v = e.scene.canvas.clientHeight, T = e.scene.camera.getPickRay(new Ce(p / 2 | 0, v - 1)), w = e.scene.camera.getPickRay(new Ce(1 + p / 2 | 0, v - 1)), P = e.scene.globe, A = P.pick(T, e.scene), H = P.pick(w, e.scene);
1101
1102
  if (!A || !H)
1102
1103
  return;
1103
1104
  const Y = P.ellipsoid.cartesianToCartographic(A), G = P.ellipsoid.cartesianToCartographic(H);
1104
1105
  u.setEndPoints(Y, G);
1105
1106
  const U = u.surfaceDistance, j = 100;
1106
- let O;
1107
- for (let z = nt.length - 1; !Ue(O) && z >= 0; --z)
1108
- nt[z] / U < j && (O = nt[z]);
1109
- if (Ue(O)) {
1107
+ let D;
1108
+ for (let z = nt.length - 1; !Ue(D) && z >= 0; --z)
1109
+ nt[z] / U < j && (D = nt[z]);
1110
+ if (Ue(D)) {
1110
1111
  let z = "";
1111
- O >= 1e3 ? z = `${(O / 1e3).toString()} ${r}` : z = `${O.toString()} ${o}`, c.barWidth = O / U | 0, c.distanceLabel = z;
1112
+ D >= 1e3 ? z = `${(D / 1e3).toString()} ${r}` : z = `${D.toString()} ${o}`, c.barWidth = D / U | 0, c.distanceLabel = z;
1112
1113
  }
1113
1114
  t(c);
1114
- }, ro = (e) => {
1115
- const n = se(), [t, i] = D({
1115
+ }, lo = (e) => {
1116
+ const n = se(), [t, i] = O({
1116
1117
  barWidth: void 0,
1117
1118
  distanceLabel: void 0,
1118
1119
  lastLegendUpdate: -1
1119
1120
  });
1120
1121
  I(() => {
1121
1122
  const r = (m) => {
1122
- io(n, t, i, e.locale);
1123
- }, c = new Ui(), u = (m) => {
1123
+ ao(n, t, i, e.locale);
1124
+ }, c = new Ki(), u = (m) => {
1124
1125
  n.scene.globe.tilesLoaded && (r(new MouseEvent("mouse")), c.removeAll());
1125
1126
  };
1126
1127
  return c.add(n.scene.globe.tileLoadProgressEvent, u), n.camera.moveEnd.addEventListener(r), () => {
@@ -1147,29 +1148,29 @@ const nt = [
1147
1148
  )
1148
1149
  ] }) });
1149
1150
  }, re = {
1150
- MORPHING: Le.MORPHING,
1151
- COLUMBUS_VIEW: Le.COLUMBUS_VIEW,
1152
- SCENE2D: Le.SCENE2D,
1153
- SCENE3D: Le.SCENE3D
1151
+ MORPHING: Se.MORPHING,
1152
+ COLUMBUS_VIEW: Se.COLUMBUS_VIEW,
1153
+ SCENE2D: Se.SCENE2D,
1154
+ SCENE3D: Se.SCENE3D
1154
1155
  };
1155
- const At = (e, n) => {
1156
+ const Nt = (e, n) => {
1156
1157
  const i = Z(n.scene.globe, "_surface.tileProvider"), o = i._quadtree, r = n.canvas.height, c = Z(n.camera.frustum, "sseDenominator") ?? 1;
1157
1158
  for (let u = 0; u <= 19; u++)
1158
1159
  if (i.getLevelMaximumGeometricError(u) * r / (e * c) < o.maximumScreenSpaceError)
1159
1160
  return u;
1160
1161
  return null;
1161
- }, oo = (e, n) => {
1162
+ }, co = (e, n) => {
1162
1163
  e = e || 10;
1163
1164
  const t = [];
1164
1165
  let i = 1e5, o = 0;
1165
1166
  for (let r = 1e8; r > i; r = r - i) {
1166
- const c = At(r, n);
1167
+ const c = Nt(r, n);
1167
1168
  if (c === null)
1168
1169
  break;
1169
1170
  if (c !== o) {
1170
1171
  let u = r, m = r + i;
1171
1172
  for (; m - u > e; )
1172
- r = u + (m - u) / 2, At(r, n) === c ? u = r : m = r;
1173
+ r = u + (m - u) / 2, Nt(r, n) === c ? u = r : m = r;
1173
1174
  t.push({
1174
1175
  level: c,
1175
1176
  height: Math.round(r)
@@ -1177,16 +1178,16 @@ const At = (e, n) => {
1177
1178
  }
1178
1179
  }
1179
1180
  return t;
1180
- }, so = ({ locale: e = void 0, valueBy: n = "RENDERED_TILES" }) => {
1181
- const t = se(), [i, o] = D(1), r = oo(1, t), c = pe(() => {
1182
- const v = t.camera, L = 0.5;
1181
+ }, uo = ({ locale: e = void 0, valueBy: n = "RENDERED_TILES" }) => {
1182
+ const t = se(), [i, o] = O(1), r = co(1, t), c = pe(() => {
1183
+ const v = t.camera, T = 0.5;
1183
1184
  let w = 0;
1184
1185
  switch (t.scene.mode) {
1185
1186
  case re.SCENE3D:
1186
1187
  w = t.scene.mapProjection.ellipsoid.cartesianToCartographic(v.positionWC).height;
1187
1188
  break;
1188
1189
  case re.SCENE2D:
1189
- w = (v.frustum.right - v.frustum.left) * L;
1190
+ w = (v.frustum.right - v.frustum.left) * T;
1190
1191
  break;
1191
1192
  case re.COLUMBUS_VIEW:
1192
1193
  w = v.position.z;
@@ -1201,8 +1202,8 @@ const At = (e, n) => {
1201
1202
  }
1202
1203
  }, [t, r]), u = pe(() => {
1203
1204
  let v = 0;
1204
- t.scene.globe._surface.forEachRenderedTile(function(L) {
1205
- v = Math.max(v, L.level);
1205
+ t.scene.globe._surface.forEachRenderedTile(function(T) {
1206
+ v = Math.max(v, T.level);
1206
1207
  }), o(v), t.currentZoomLevel = v;
1207
1208
  }, [t]), p = Be(() => ({
1208
1209
  CALCULATION: c,
@@ -1215,8 +1216,8 @@ const At = (e, n) => {
1215
1216
  return t.camera.moveEnd.addEventListener(p), () => {
1216
1217
  try {
1217
1218
  typeof Z(t, "_cesiumWidget") < "u" && (t.camera.moveEnd.removeEventListener(p), v());
1218
- } catch (L) {
1219
- console.log('CESIUM camera "moveEnd"(from zoom tracker) remove listener failed', L);
1219
+ } catch (T) {
1220
+ console.log('CESIUM camera "moveEnd"(from zoom tracker) remove listener failed', T);
1220
1221
  }
1221
1222
  };
1222
1223
  }, [t, p]), /* @__PURE__ */ N("div", { className: "zoomLevel", children: [
@@ -1224,8 +1225,8 @@ const At = (e, n) => {
1224
1225
  /* @__PURE__ */ l("div", { className: "zoomLevelLabel", children: Z(e, "ZOOM_LABEL") ?? "zoom" })
1225
1226
  ] });
1226
1227
  };
1227
- const ao = -1, lo = (e) => {
1228
- const n = se(), [t, i] = D(), { sceneModes: o } = e, r = (c) => o.findIndex((u) => u === c) > ao;
1228
+ const ho = -1, mo = (e) => {
1229
+ const n = se(), [t, i] = O(), { sceneModes: o } = e, r = (c) => o.findIndex((u) => u === c) > ho;
1229
1230
  return I(() => {
1230
1231
  i(n.scene.mode);
1231
1232
  }, []), /* @__PURE__ */ N(oe, { children: [
@@ -1258,7 +1259,7 @@ const ao = -1, lo = (e) => {
1258
1259
  )
1259
1260
  ] });
1260
1261
  };
1261
- const co = Fe(
1262
+ const po = Fe(
1262
1263
  (e) => Ke({
1263
1264
  mapContainer: {
1264
1265
  width: "60px",
@@ -1266,18 +1267,18 @@ const co = Fe(
1266
1267
  border: `${e.palette.background.paper} 2px solid`
1267
1268
  }
1268
1269
  })
1269
- ), uo = (e) => {
1270
- const n = se(), { baseMaps: t } = e, [i, o] = D(" "), [r, c] = D(), u = co();
1270
+ ), go = (e) => {
1271
+ const n = se(), { baseMaps: t } = e, [i, o] = O(" "), [r, c] = O(), u = po();
1271
1272
  I(() => {
1272
1273
  const p = t == null ? void 0 : t.maps.find((v) => v.isCurrent);
1273
1274
  p && (c(p), o(p.title !== void 0 ? p.title : " "));
1274
1275
  }, [t]);
1275
1276
  const m = (p) => {
1276
- var v, L;
1277
+ var v, T;
1277
1278
  if (t) {
1278
1279
  (v = n.layersManager) == null || v.removeBaseMapLayers();
1279
1280
  const w = t.maps.find((P) => P.id === p);
1280
- w && ((L = n.layersManager) == null || L.setBaseMapLayers(w), c(w), t.maps.forEach((P) => {
1281
+ w && ((T = n.layersManager) == null || T.setBaseMapLayers(w), c(w), t.maps.forEach((P) => {
1281
1282
  P.isCurrent = w === P;
1282
1283
  }));
1283
1284
  }
@@ -1303,12 +1304,12 @@ const co = Fe(
1303
1304
  ) }, p.id)) })
1304
1305
  ] });
1305
1306
  };
1306
- const it = "ic_settings_24px", ho = (e) => {
1307
- const [n, t] = D(!1), { sceneModes: i, baseMaps: o, locale: r } = e, c = Se(null), u = Z(r, "MAP_SETTINGS_DIALOG_TITLE") ?? "Map Settings", m = Z(r, "MAP_SETTINGS_SCENE_MODE_TITLE") ?? "Scene Mode", p = Z(r, "MAP_SETTINGS_BASE_MAP_TITLE") ?? "Base Map";
1307
+ const it = "ic_settings_24px", fo = (e) => {
1308
+ const [n, t] = O(!1), { sceneModes: i, baseMaps: o, locale: r } = e, c = Le(null), u = Z(r, "MAP_SETTINGS_DIALOG_TITLE") ?? "Map Settings", m = Z(r, "MAP_SETTINGS_SCENE_MODE_TITLE") ?? "Scene Mode", p = Z(r, "MAP_SETTINGS_BASE_MAP_TITLE") ?? "Base Map";
1308
1309
  return I(() => {
1309
- const v = (L) => {
1310
+ const v = (T) => {
1310
1311
  var A;
1311
- const w = L.target, P = Z(c, "current");
1312
+ const w = T.target, P = Z(c, "current");
1312
1313
  P && !P.contains(w) && w.id !== it && ((A = w.parentElement) == null ? void 0 : A.id) !== it && (document.removeEventListener("click", v, !1), t(!1));
1313
1314
  };
1314
1315
  return document.addEventListener("click", v, !1), () => {
@@ -1325,20 +1326,20 @@ const it = "ic_settings_24px", ho = (e) => {
1325
1326
  }
1326
1327
  ),
1327
1328
  n && /* @__PURE__ */ l("div", { id: "dialog-portal-example", className: "settingsDialogPortal", ref: c, children: /* @__PURE__ */ N(
1328
- Fn,
1329
+ Hn,
1329
1330
  {
1330
1331
  open: n,
1331
1332
  onClosed: () => {
1332
1333
  t(!1);
1333
1334
  },
1334
1335
  children: [
1335
- /* @__PURE__ */ l(Hn, { children: u }),
1336
- /* @__PURE__ */ N(Gn, { children: [
1336
+ /* @__PURE__ */ l(Gn, { children: u }),
1337
+ /* @__PURE__ */ N(Vn, { children: [
1337
1338
  /* @__PURE__ */ l("h4", { className: "sectionLabel", children: m }),
1338
- /* @__PURE__ */ l(de, { className: "mapScenesContainer", children: /* @__PURE__ */ l(lo, { sceneModes: i }) }),
1339
+ /* @__PURE__ */ l(de, { className: "mapScenesContainer", children: /* @__PURE__ */ l(mo, { sceneModes: i }) }),
1339
1340
  /* @__PURE__ */ l(de, { className: "baseMapsContainer", children: o && /* @__PURE__ */ N(oe, { children: [
1340
1341
  /* @__PURE__ */ l("h4", { className: "sectionLabel", children: p }),
1341
- /* @__PURE__ */ l(uo, { baseMaps: o })
1342
+ /* @__PURE__ */ l(go, { baseMaps: o })
1342
1343
  ] }) })
1343
1344
  ] })
1344
1345
  ]
@@ -1346,7 +1347,7 @@ const it = "ic_settings_24px", ho = (e) => {
1346
1347
  ) })
1347
1348
  ] });
1348
1349
  };
1349
- const mo = () => {
1350
+ const yo = () => {
1350
1351
  const e = se();
1351
1352
  return /* @__PURE__ */ l("div", { className: "zoom-buttons-container", children: [
1352
1353
  { onClick: () => e.camera.zoomIn(), iconPath: "M48 20h-18v-18h-10v18h-18v10h18v18h10v-18h18z" },
@@ -1372,10 +1373,10 @@ const mo = () => {
1372
1373
  }
1373
1374
  )) });
1374
1375
  };
1375
- const po = /* @__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__ */ N("g", { xmlns: "http://www.w3.org/2000/svg", children: [
1376
+ const vo = /* @__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__ */ N("g", { xmlns: "http://www.w3.org/2000/svg", children: [
1376
1377
  /* @__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" }),
1377
1378
  /* @__PURE__ */ l("circle", { cx: "270.1", cy: "56.3", r: "56.3" })
1378
- ] }) }), go = ({ onClick: e }) => /* @__PURE__ */ l(de, { onClick: e, className: "mapLegendToggleContainer", children: /* @__PURE__ */ l(_e, { icon: po, className: "mapLegendIcon" }) }), fo = ({ legend: { legendImg: e, legendDoc: n, layer: t }, docText: i, imgText: o }) => {
1379
+ ] }) }), Eo = ({ onClick: e }) => /* @__PURE__ */ l(de, { onClick: e, className: "mapLegendToggleContainer", children: /* @__PURE__ */ l(_e, { icon: vo, className: "mapLegendIcon" }) }), Co = ({ legend: { legendImg: e, legendDoc: n, layer: t }, docText: i, imgText: o }) => {
1379
1380
  const r = pe(() => {
1380
1381
  window.open(e, "_blank");
1381
1382
  }, [e]);
@@ -1394,29 +1395,29 @@ const po = /* @__PURE__ */ l("svg", { xmlns: "http://www.w3.org/2000/svg", enabl
1394
1395
  /* @__PURE__ */ l("img", { alt: "Map Legend", className: "legendImg", src: e, onClick: r }),
1395
1396
  /* @__PURE__ */ l(de, { className: "legendActionsContainer", children: u() })
1396
1397
  ] });
1397
- }, yo = ({ legends: e, actionsTexts: { docText: n, imgText: t }, noLegendsText: i }) => {
1398
- const o = pe(() => /* @__PURE__ */ l(de, { className: "noLegendsContainer", children: /* @__PURE__ */ l("h2", { className: "noLegendsMsg", children: i }) }), [i]), r = pe(() => e.length ? e.map((c, u) => /* @__PURE__ */ l(fo, { legend: c, docText: n, imgText: t }, `${c.layer}_${u}`)) : o(), [e]);
1398
+ }, wo = ({ legends: e, actionsTexts: { docText: n, imgText: t }, noLegendsText: i }) => {
1399
+ const o = pe(() => /* @__PURE__ */ l(de, { className: "noLegendsContainer", children: /* @__PURE__ */ l("h2", { className: "noLegendsMsg", children: i }) }), [i]), r = pe(() => e.length ? e.map((c, u) => /* @__PURE__ */ l(Co, { legend: c, docText: n, imgText: t }, `${c.layer}_${u}`)) : o(), [e]);
1399
1400
  return /* @__PURE__ */ l(de, { className: "mapLegendsList", children: r() });
1400
- }, vo = ({
1401
+ }, bo = ({
1401
1402
  isOpen: e,
1402
1403
  toggleSidebar: n,
1403
1404
  title: t = "Map Legends",
1404
1405
  noLegendsText: i = "No legends to display...",
1405
1406
  actionsTexts: o = { docText: "Docs", imgText: "View Image" },
1406
1407
  legends: r = []
1407
- }) => e ? /* @__PURE__ */ N(Vn, { className: "mapLegendSidebarContainer", modal: !1, dismissible: !0, open: e, children: [
1408
- /* @__PURE__ */ l(zn, { className: "sidebarHeaderContainer", children: /* @__PURE__ */ l($n, { className: "sidebarTitle", children: t }) }),
1409
- /* @__PURE__ */ N(Wn, { className: "sidebarContent", children: [
1408
+ }) => e ? /* @__PURE__ */ N(zn, { className: "mapLegendSidebarContainer", modal: !1, dismissible: !0, open: e, children: [
1409
+ /* @__PURE__ */ l($n, { className: "sidebarHeaderContainer", children: /* @__PURE__ */ l(Wn, { className: "sidebarTitle", children: t }) }),
1410
+ /* @__PURE__ */ N(Un, { className: "sidebarContent", children: [
1410
1411
  /* @__PURE__ */ l(_e, { onClick: n, className: "mapLegendCloseBtn", icon: { icon: "close", size: "small" } }),
1411
- /* @__PURE__ */ l(yo, { noLegendsText: i, legends: r, actionsTexts: o })
1412
+ /* @__PURE__ */ l(wo, { noLegendsText: i, legends: r, actionsTexts: o })
1412
1413
  ] })
1413
- ] }) : null, me = document.createElement("canvas"), ie = me.getContext("2d"), kt = (e) => {
1414
+ ] }) : null, me = document.createElement("canvas"), ie = me.getContext("2d"), Bt = (e) => {
1414
1415
  const i = (e == null ? void 0 : e.data) ?? [];
1415
1416
  for (let o = 3; o < i.length; o += 4)
1416
1417
  if (i[o] < 255)
1417
1418
  return !0;
1418
1419
  return !1;
1419
- }, Eo = async (e, n) => (n && n.tileTransparencyCheckedCounter++, new Promise((t, i) => {
1420
+ }, To = async (e, n) => (n && n.tileTransparencyCheckedCounter++, new Promise((t, i) => {
1420
1421
  try {
1421
1422
  ie == null || ie.clearRect(0, 0, me.width, me.height);
1422
1423
  let o;
@@ -1424,7 +1425,7 @@ const po = /* @__PURE__ */ l("svg", { xmlns: "http://www.w3.org/2000/svg", enabl
1424
1425
  o = e;
1425
1426
  else if (e instanceof ImageBitmap) {
1426
1427
  me.width = e.width, me.height = e.height, ie == null || ie.drawImage(e, 0, 0);
1427
- const r = ie == null ? void 0 : ie.getImageData(0, 0, me.width, me.height), c = kt(r);
1428
+ const r = ie == null ? void 0 : ie.getImageData(0, 0, me.width, me.height), c = Bt(r);
1428
1429
  c && n && (n.tileTransparencyCheckedCounter = n.maxTilesForTransparencyCheck), t(c);
1429
1430
  return;
1430
1431
  } else
@@ -1432,7 +1433,7 @@ const po = /* @__PURE__ */ l("svg", { xmlns: "http://www.w3.org/2000/svg", enabl
1432
1433
  o.onload = () => {
1433
1434
  me.width = o.width, me.height = o.height, ie == null || ie.drawImage(o, 0, 0);
1434
1435
  const r = ie == null ? void 0 : ie.getImageData(0, 0, me.width, me.height);
1435
- kt(r) ? (n && (n.tileTransparencyCheckedCounter = n.maxTilesForTransparencyCheck), t(!0)) : t(!1);
1436
+ Bt(r) ? (n && (n.tileTransparencyCheckedCounter = n.maxTilesForTransparencyCheck), t(!0)) : t(!1);
1436
1437
  };
1437
1438
  } catch (o) {
1438
1439
  console.error("Could not determine image transparency. Error => ", o), i(o);
@@ -1441,7 +1442,7 @@ const po = /* @__PURE__ */ l("svg", { xmlns: "http://www.w3.org/2000/svg", enabl
1441
1442
  const { west: t, east: i, north: o, south: r } = e, { west: c, east: u, north: m, south: p } = n;
1442
1443
  return t >= c && i <= u && o <= m && r >= p;
1443
1444
  }, Ye = 3, je = "hasTransparency";
1444
- function ft(e, n, t, i, o) {
1445
+ function Et(e, n, t, i, o) {
1445
1446
  return setTimeout(() => {
1446
1447
  var u;
1447
1448
  const r = (u = this.layerListInstance.find(
@@ -1452,7 +1453,7 @@ function ft(e, n, t, i, o) {
1452
1453
  }
1453
1454
  /* eslint-enable */
1454
1455
  )) == null ? void 0 : u.meta, c = Z(r, je) === !0;
1455
- this.tileTransparencyCheckedCounter < Ye && !c && Eo(o == null ? void 0 : o.url, this).then((m) => {
1456
+ this.tileTransparencyCheckedCounter < Ye && !c && To(o == null ? void 0 : o.url, this).then((m) => {
1456
1457
  var p;
1457
1458
  (p = this.mapViewer.layersManager) == null || p.addMetaToLayer(
1458
1459
  { [je]: m },
@@ -1462,7 +1463,7 @@ function ft(e, n, t, i, o) {
1462
1463
  });
1463
1464
  }, 0), e(n, t, i, o);
1464
1465
  }
1465
- class gn extends mt {
1466
+ class gn extends gt {
1466
1467
  constructor(t, i) {
1467
1468
  var o;
1468
1469
  super(t);
@@ -1473,10 +1474,10 @@ class gn extends mt {
1473
1474
  this.layerListInstance = (o = i.layersManager) == null ? void 0 : o.layerList, this.mapViewer = i;
1474
1475
  }
1475
1476
  requestImage(t, i, o, r) {
1476
- return ft.call(this, super.requestImage.bind(this), t, i, o, r);
1477
+ return Et.call(this, super.requestImage.bind(this), t, i, o, r);
1477
1478
  }
1478
1479
  }
1479
- class fn extends pt {
1480
+ class fn extends ft {
1480
1481
  constructor(t, i) {
1481
1482
  var o;
1482
1483
  super(t);
@@ -1487,10 +1488,10 @@ class fn extends pt {
1487
1488
  this.layerListInstance = (o = i.layersManager) == null ? void 0 : o.layerList, this.mapViewer = i;
1488
1489
  }
1489
1490
  requestImage(t, i, o, r) {
1490
- return ft.call(this, super.requestImage.bind(this), t, i, o, r);
1491
+ return Et.call(this, super.requestImage.bind(this), t, i, o, r);
1491
1492
  }
1492
1493
  }
1493
- class yn extends gt {
1494
+ class yn extends yt {
1494
1495
  constructor(t, i) {
1495
1496
  var o;
1496
1497
  super(t);
@@ -1501,11 +1502,11 @@ class yn extends gt {
1501
1502
  this.layerListInstance = (o = i.layersManager) == null ? void 0 : o.layerList, this.mapViewer = i;
1502
1503
  }
1503
1504
  requestImage(t, i, o, r) {
1504
- return ft.call(this, super.requestImage.bind(this), t, i, o, r);
1505
+ return Et.call(this, super.requestImage.bind(this), t, i, o, r);
1505
1506
  }
1506
1507
  }
1507
- const Co = 1, wo = -1, Rt = "TRANSPARENT_BASE_LAYER";
1508
- class To {
1508
+ const So = 1, Lo = -1, Ft = "TRANSPARENT_BASE_LAYER";
1509
+ class _o {
1509
1510
  constructor(n, t, i, o) {
1510
1511
  X(this, "mapViewer");
1511
1512
  X(this, "legendsList");
@@ -1513,7 +1514,7 @@ class To {
1513
1514
  X(this, "layers");
1514
1515
  X(this, "legendsExtractor");
1515
1516
  X(this, "layerManagerFootprintMetaFieldPath");
1516
- this.mapViewer = n, this.layers = this.mapViewer.imageryLayers._layers, this.legendsList = [], this.legendsExtractor = t, this.layerUpdated = new Ki(), this.layerManagerFootprintMetaFieldPath = o, i && this.layerUpdated.addEventListener(i, this), this.mapViewer.shouldOptimizedTileRequests && (this.layerUpdated.addEventListener((r) => {
1517
+ this.mapViewer = n, this.layers = this.mapViewer.imageryLayers._layers, this.legendsList = [], this.legendsExtractor = t, this.layerUpdated = new Yi(), this.layerManagerFootprintMetaFieldPath = o, i && this.layerUpdated.addEventListener(i, this), this.mapViewer.shouldOptimizedTileRequests && (this.layerUpdated.addEventListener((r) => {
1517
1518
  const c = Object.keys(r);
1518
1519
  c.length === 1 && c[0] === je && (this.markRelevantLayersForExtent(), this.hideNonRelevantLayers());
1519
1520
  }), this.mapViewer.imageryLayers.layerRemoved.addEventListener(() => {
@@ -1540,23 +1541,23 @@ class To {
1540
1541
  setBaseMapLayers(n) {
1541
1542
  n.baseRasteLayers.sort((i, o) => i.zIndex - o.zIndex).forEach((i, o) => {
1542
1543
  this.addRasterLayer(i, o, n.id);
1543
- }), this.mapViewer.shouldOptimizedTileRequests && (this.removeLayer(Rt), this.addTransparentImageryProvider());
1544
+ }), this.mapViewer.shouldOptimizedTileRequests && (this.removeLayer(Ft), this.addTransparentImageryProvider());
1544
1545
  }
1545
1546
  addRasterLayer(n, t, i) {
1546
1547
  let o;
1547
1548
  switch (n.type) {
1548
1549
  case "XYZ_LAYER": {
1549
- const r = n.options, c = this.mapViewer.shouldOptimizedTileRequests ? new gn(r, this.mapViewer) : new mt(r);
1550
+ const r = n.options, c = this.mapViewer.shouldOptimizedTileRequests ? new gn(r, this.mapViewer) : new gt(r);
1550
1551
  o = this.mapViewer.imageryLayers.addImageryProvider(c, t);
1551
1552
  break;
1552
1553
  }
1553
1554
  case "WMS_LAYER": {
1554
- const r = n.options, c = this.mapViewer.shouldOptimizedTileRequests ? new fn(r, this.mapViewer) : new pt(r);
1555
+ const r = n.options, c = this.mapViewer.shouldOptimizedTileRequests ? new fn(r, this.mapViewer) : new ft(r);
1555
1556
  o = this.mapViewer.imageryLayers.addImageryProvider(c, t);
1556
1557
  break;
1557
1558
  }
1558
1559
  case "WMTS_LAYER": {
1559
- const r = n.options, c = this.mapViewer.shouldOptimizedTileRequests ? new yn(r, this.mapViewer) : new gt(r);
1560
+ const r = n.options, c = this.mapViewer.shouldOptimizedTileRequests ? new yn(r, this.mapViewer) : new yt(r);
1560
1561
  o = this.mapViewer.imageryLayers.addImageryProvider(c, t);
1561
1562
  break;
1562
1563
  }
@@ -1628,10 +1629,10 @@ class To {
1628
1629
  }
1629
1630
  findLayerByPOI(n, t, i = !0) {
1630
1631
  if (this.layerManagerFootprintMetaFieldPath) {
1631
- const o = eo(this.mapViewer, n, t);
1632
+ const o = ro(this.mapViewer, n, t);
1632
1633
  return this.layers.filter((u) => !Z(u.meta, "parentBasetMapId")).filter((u) => {
1633
1634
  const m = Z(u.meta, this.layerManagerFootprintMetaFieldPath);
1634
- return m !== void 0 ? ir(o.geometry, {
1635
+ return m !== void 0 ? or(o.geometry, {
1635
1636
  type: "Feature",
1636
1637
  properties: {},
1637
1638
  geometry: m
@@ -1645,16 +1646,16 @@ class To {
1645
1646
  }
1646
1647
  addTransparentImageryProvider() {
1647
1648
  const n = this.mapViewer.imageryLayers.addImageryProvider(
1648
- new qi({
1649
+ new Xi({
1649
1650
  url: "./assets/img/transparent-tile.png",
1650
1651
  /* eslint-disable @typescript-eslint/no-magic-numbers */
1651
- rectangle: new Oe(-3.141592653589793, -1.5707963267948966, 3.141592653589793, 1.5707963267948966)
1652
+ rectangle: new De(-3.141592653589793, -1.5707963267948966, 3.141592653589793, 1.5707963267948966)
1652
1653
  /* eslint-enable @typescript-eslint/no-magic-numbers */
1653
1654
  }),
1654
1655
  0
1655
1656
  );
1656
1657
  n.meta = {
1657
- id: Rt,
1658
+ id: Ft,
1658
1659
  skipRelevancyCheck: !0,
1659
1660
  parentBasetMapId: "TRANSPARENT_LAYER"
1660
1661
  };
@@ -1669,7 +1670,7 @@ class To {
1669
1670
  return this.layers.find((t) => t.meta !== void 0 ? t.meta.id === n : !1);
1670
1671
  }
1671
1672
  updateLayersOrder(n, t, i) {
1672
- const o = t > i ? Co : wo, r = t < i ? t : i, c = t < i ? i : t;
1673
+ const o = t > i ? So : Lo, r = t < i ? t : i, c = t < i ? i : t;
1673
1674
  this.layers.forEach((u) => {
1674
1675
  var p;
1675
1676
  if (!Z(u.meta, "parentBasetMapId")) {
@@ -1688,7 +1689,7 @@ class To {
1688
1689
  try {
1689
1690
  const i = this.mapViewer.camera.computeViewRectangle();
1690
1691
  for (let o = this.layers.length - 1; o >= 0; o--) {
1691
- const r = this.layers[o], c = !ct(i) && !ct(r.rectangle) && Oe.intersection(i, r.rectangle);
1692
+ const r = this.layers[o], c = !ct(i) && !ct(r.rectangle) && De.intersection(i, r.rectangle);
1692
1693
  for (let u = this.layers.length - 1; u >= o; u--) {
1693
1694
  if (((n = r.meta) == null ? void 0 : n.skipRelevancyCheck) === !0) {
1694
1695
  r.meta = { ...r.meta, relevantToExtent: !0 };
@@ -1696,7 +1697,7 @@ class To {
1696
1697
  }
1697
1698
  const m = this.layers[u], p = ((t = m.meta) == null ? void 0 : t[je]) === !0;
1698
1699
  if (r !== m)
1699
- if (c instanceof Oe) {
1700
+ if (c instanceof De) {
1700
1701
  if (Ve(i, r.rectangle))
1701
1702
  if (Ve(i, m.rectangle) && !p) {
1702
1703
  r.meta = {
@@ -1726,7 +1727,7 @@ class To {
1726
1727
  else
1727
1728
  o === this.layers.length - 1 && (r.meta = {
1728
1729
  ...r.meta ?? {},
1729
- relevantToExtent: c instanceof Oe
1730
+ relevantToExtent: c instanceof De
1730
1731
  });
1731
1732
  }
1732
1733
  }
@@ -1735,11 +1736,11 @@ class To {
1735
1736
  }
1736
1737
  }
1737
1738
  }
1738
- const bo = (e) => {
1739
+ const Mo = (e) => {
1739
1740
  const n = se(), { enableCompass: t = !0, enableZoomControls: i = !1, lockCompassNavigation: o = !1, locale: r = { DIRECTION: "ltr" } } = e;
1740
1741
  return I(() => {
1741
1742
  if (typeof Z(n, "cesiumNavigation") > "u") {
1742
- n.extend(rr, {
1743
+ n.extend(sr, {
1743
1744
  enableCompass: t,
1744
1745
  enableZoomControls: i,
1745
1746
  enableDistanceLegend: !1
@@ -1748,8 +1749,8 @@ const bo = (e) => {
1748
1749
  c && r.DIRECTION && c.classList.add(r.DIRECTION);
1749
1750
  }
1750
1751
  }, [n, t, i, r.DIRECTION, o]), null;
1751
- }, Nt = 212, Bt = 260, Lo = 0;
1752
- class ka extends Yi {
1752
+ }, Ht = 212, Gt = 260, Po = 0;
1753
+ class Va extends Zi {
1753
1754
  constructor(t, i) {
1754
1755
  super(t, i);
1755
1756
  X(this, "layersManager");
@@ -1763,14 +1764,14 @@ class ka extends Yi {
1763
1764
  this.useOptimizedTileRequests = t;
1764
1765
  }
1765
1766
  }
1766
- const vn = Me(null), So = vn.Provider, se = () => {
1767
+ const vn = Me(null), xo = vn.Provider, se = () => {
1767
1768
  const e = Pe(vn);
1768
1769
  if (e === null)
1769
1770
  throw new Error("map context is null, please check the provider");
1770
1771
  return e;
1771
- }, Ra = (e) => {
1772
+ }, za = (e) => {
1772
1773
  var V, Q, ne, ye, ue, ae, ce, Re;
1773
- const n = Se(null), [t, i] = D(), [o, r] = D(), [c, u] = D(), [m, p] = D(), [v, L] = D(), [w, P] = D(), [A, H] = D(), [Y, G] = D(!1), [U, j] = D(), O = Se(), [z, k] = D(), [$, te] = D([]), [s, a] = D(), [E, d] = D(!1), y = Se(), [h, C] = D(void 0), [f, T] = D(!1), [_, S] = D(), [b, M] = D(), x = {
1774
+ const n = Le(null), [t, i] = O(), [o, r] = O(), [c, u] = O(), [m, p] = O(), [v, T] = O(), [w, P] = O(), [A, H] = O(), [Y, G] = O(!1), [U, j] = O(), D = Le(), [z, k] = O(), [$, te] = O([]), [s, a] = O(), [E, d] = O(!1), y = Le(), [h, C] = O(void 0), [f, b] = O(!1), [_, L] = O(), [S, M] = O(), x = {
1774
1775
  fullscreenButton: !0,
1775
1776
  timeline: !1,
1776
1777
  animation: !1,
@@ -1781,17 +1782,17 @@ const vn = Me(null), So = vn.Provider, se = () => {
1781
1782
  sceneModePicker: !1,
1782
1783
  imageryProvider: !1,
1783
1784
  ...e
1784
- }, W = (K, B, ee, we, Te) => {
1785
- const xe = t.container, vt = xe.clientWidth, Et = xe.clientHeight, Ct = we + Te;
1785
+ }, W = (K, B, ee, we, be) => {
1786
+ const xe = t.container, wt = xe.clientWidth, bt = xe.clientHeight, Tt = we + be;
1786
1787
  return {
1787
- left: `${vt - K < ee ? K - (ee - (vt - K)) : K}px`,
1788
- top: `${Et - B < Ct ? B - (Ct - (Et - B)) : B}px`
1788
+ left: `${wt - K < ee ? K - (ee - (wt - K)) : K}px`,
1789
+ top: `${bt - B < Tt ? B - (Tt - (bt - B)) : B}px`
1789
1790
  };
1790
1791
  }, q = pe(
1791
1792
  (K) => {
1792
1793
  if (n.current !== null) {
1793
1794
  const B = n.current.cesiumElement, ee = { x: K.offsetX, y: K.offsetY };
1794
- d(!1), C(ee), S(pn(B, ee.x, ee.y)), d(!0), y.current = K;
1795
+ d(!1), C(ee), L(pn(B, ee.x, ee.y)), d(!0), y.current = K;
1795
1796
  }
1796
1797
  },
1797
1798
  [n]
@@ -1805,7 +1806,7 @@ const vn = Me(null), So = vn.Provider, se = () => {
1805
1806
  i((K = n.current) == null ? void 0 : K.cesiumElement);
1806
1807
  }, [n, e.imageryContextMenu]), I(() => {
1807
1808
  var K;
1808
- t && (t.shouldOptimizedTileRequests = e.useOptimizedTileRequests ?? !1, t.layersManager = new To(
1809
+ t && (t.shouldOptimizedTileRequests = e.useOptimizedTileRequests ?? !1, t.layersManager = new _o(
1809
1810
  t,
1810
1811
  (K = e.legends) == null ? void 0 : K.mapLegendsExtractor,
1811
1812
  () => {
@@ -1832,7 +1833,7 @@ const vn = Me(null), So = vn.Provider, se = () => {
1832
1833
  }, [e.showMousePosition]), I(() => {
1833
1834
  p(e.showZoomLevel ?? !0);
1834
1835
  }, [e.showZoomLevel]), I(() => {
1835
- L(e.showScale ?? !0);
1836
+ T(e.showScale ?? !0);
1836
1837
  }, [e.showScale]), I(() => {
1837
1838
  P(e.showCompass ?? !0);
1838
1839
  }, [e.showCompass]), I(() => {
@@ -1853,20 +1854,20 @@ const vn = Me(null), So = vn.Provider, se = () => {
1853
1854
  height: ee.height
1854
1855
  };
1855
1856
  };
1856
- if (t.scene.mode === Le.SCENE3D) {
1857
+ if (t.scene.mode === Se.SCENE3D) {
1857
1858
  const ee = new Ce(
1858
1859
  // eslint-disable-next-line @typescript-eslint/no-magic-numbers
1859
1860
  t.container.clientWidth / 2,
1860
1861
  // eslint-disable-next-line @typescript-eslint/no-magic-numbers
1861
1862
  t.container.clientHeight / 2
1862
- ), we = t.scene.camera.getPickRay(ee), Te = t.scene.globe.pick(we, t.scene);
1863
- if (!Te)
1863
+ ), we = t.scene.camera.getPickRay(ee), be = t.scene.globe.pick(we, t.scene);
1864
+ if (!be)
1864
1865
  return {
1865
1866
  longitude: 0,
1866
1867
  latitude: 0,
1867
1868
  height: 0
1868
1869
  };
1869
- const xe = t.scene.globe.ellipsoid.cartesianToCartographic(Te);
1870
+ const xe = t.scene.globe.ellipsoid.cartesianToCartographic(be);
1870
1871
  return xe !== void 0 ? {
1871
1872
  longitude: Ge(xe.longitude),
1872
1873
  latitude: Ge(xe.latitude),
@@ -1876,7 +1877,7 @@ const vn = Me(null), So = vn.Provider, se = () => {
1876
1877
  return B();
1877
1878
  };
1878
1879
  t && (t.camera.moveEnd.addEventListener(() => {
1879
- if (t.scene.mode !== Le.MORPHING) {
1880
+ if (t.scene.mode !== Se.MORPHING) {
1880
1881
  const B = t.camera, ee = {
1881
1882
  position: K(),
1882
1883
  direction: B.direction.clone(),
@@ -1885,15 +1886,15 @@ const vn = Me(null), So = vn.Provider, se = () => {
1885
1886
  transform: B.transform.clone(),
1886
1887
  frustum: B.frustum.clone()
1887
1888
  };
1888
- O.current = ee;
1889
+ D.current = ee;
1889
1890
  }
1890
1891
  }), A && t.scene.globe.tileLoadProgressEvent.addEventListener(function() {
1891
1892
  t.scene.globe.tilesLoaded === !0 ? G(!1) : G(!0);
1892
1893
  }));
1893
1894
  }, [t]), I(() => {
1894
1895
  const K = () => {
1895
- if (t && O.current) {
1896
- const B = O.current;
1896
+ if (t && D.current) {
1897
+ const B = D.current;
1897
1898
  t.camera.flyTo({
1898
1899
  destination: ve.fromDegrees(B.position.longitude, B.position.latitude, B.position.height),
1899
1900
  duration: 0
@@ -1910,37 +1911,37 @@ const vn = Me(null), So = vn.Provider, se = () => {
1910
1911
  };
1911
1912
  }, [t]), I(() => {
1912
1913
  const K = e.zoom, B = e.center;
1913
- t && Ue(K) && tr(B) && t.camera.flyTo({
1914
- destination: ve.fromDegrees(B[0], B[1], Qr(K)),
1914
+ t && Ue(K) && ir(B) && t.camera.flyTo({
1915
+ destination: ve.fromDegrees(B[0], B[1], io(K)),
1915
1916
  duration: 0
1916
1917
  });
1917
1918
  }, [e.zoom, e.center, t]), I(() => {
1918
1919
  M(e.displayZoomButtons ?? !0);
1919
1920
  }, [e.displayZoomButtons]);
1920
- const R = pe(() => t && Li(
1921
+ const R = pe(() => t && _i(
1921
1922
  /* @__PURE__ */ N(oe, { children: [
1922
- A && Y && /* @__PURE__ */ l(Un, { style: { position: "absolute", top: 0, height: "10px", zIndex: 4 } }),
1923
+ A && Y && /* @__PURE__ */ l(jn, { style: { position: "absolute", top: 0, height: "10px", zIndex: 4 } }),
1923
1924
  /* @__PURE__ */ N(de, { className: "sideToolsContainer", children: [
1924
- /* @__PURE__ */ l(ho, { sceneModes: z, baseMaps: s, locale: U }),
1925
- /* @__PURE__ */ l(go, { onClick: () => T(!f) })
1925
+ /* @__PURE__ */ l(fo, { sceneModes: z, baseMaps: s, locale: U }),
1926
+ /* @__PURE__ */ l(Eo, { onClick: () => b(!f) })
1926
1927
  ] }),
1927
1928
  /* @__PURE__ */ N(de, { className: "toolsContainer", children: [
1928
- c && /* @__PURE__ */ l(no, { projection: o }),
1929
- m && /* @__PURE__ */ l(so, { locale: U, valueBy: "RENDERED_TILES" }),
1930
- v && /* @__PURE__ */ l(ro, { locale: U }),
1931
- w && /* @__PURE__ */ l(bo, { locale: U })
1929
+ c && /* @__PURE__ */ l(so, { projection: o }),
1930
+ m && /* @__PURE__ */ l(uo, { locale: U, valueBy: "RENDERED_TILES" }),
1931
+ v && /* @__PURE__ */ l(lo, { locale: U }),
1932
+ w && /* @__PURE__ */ l(Mo, { locale: U })
1932
1933
  ] }),
1933
- b && /* @__PURE__ */ l(mo, {})
1934
+ S && /* @__PURE__ */ l(yo, {})
1934
1935
  ] }),
1935
1936
  document.querySelector(".cesium-viewer")
1936
1937
  ), [s, U, t, o, z, c, v, f, Y]);
1937
- return /* @__PURE__ */ l(Si, { className: "viewer", full: !0, ref: n, ...x, children: /* @__PURE__ */ N(So, { value: t, children: [
1938
+ return /* @__PURE__ */ l(Mi, { className: "viewer", full: !0, ref: n, ...x, children: /* @__PURE__ */ N(xo, { value: t, children: [
1938
1939
  /* @__PURE__ */ l(
1939
- vo,
1940
+ bo,
1940
1941
  {
1941
1942
  title: (V = e.legends) == null ? void 0 : V.title,
1942
1943
  isOpen: f,
1943
- toggleSidebar: () => T(!f),
1944
+ toggleSidebar: () => b(!f),
1944
1945
  noLegendsText: (Q = e.legends) == null ? void 0 : Q.emptyText,
1945
1946
  legends: ((ne = e.legends) == null ? void 0 : ne.legendsList) ?? $,
1946
1947
  actionsTexts: (ye = e.legends) == null ? void 0 : ye.actionsTexts
@@ -1962,13 +1963,13 @@ const vn = Me(null), So = vn.Provider, se = () => {
1962
1963
  style: W(
1963
1964
  h.x,
1964
1965
  h.y,
1965
- ((ae = e.imageryContextMenuSize) == null ? void 0 : ae.width) ?? Bt,
1966
- ((ce = e.imageryContextMenuSize) == null ? void 0 : ce.height) ?? Nt,
1967
- ((Re = e.imageryContextMenuSize) == null ? void 0 : Re.dynamicHeightIncrement) ?? Lo
1966
+ ((ae = e.imageryContextMenuSize) == null ? void 0 : ae.width) ?? Gt,
1967
+ ((ce = e.imageryContextMenuSize) == null ? void 0 : ce.height) ?? Ht,
1968
+ ((Re = e.imageryContextMenuSize) == null ? void 0 : Re.dynamicHeightIncrement) ?? Po
1968
1969
  ),
1969
1970
  size: e.imageryContextMenuSize ?? {
1970
- height: Nt,
1971
- width: Bt
1971
+ height: Ht,
1972
+ width: Gt
1972
1973
  },
1973
1974
  handleClose: () => {
1974
1975
  d(!E);
@@ -1976,66 +1977,66 @@ const vn = Me(null), So = vn.Provider, se = () => {
1976
1977
  contextEvt: y.current
1977
1978
  })
1978
1979
  ] }) });
1979
- }, _o = 0, Na = (e) => {
1980
+ }, Io = 0, $a = (e) => {
1980
1981
  const n = se();
1981
1982
  return /* @__PURE__ */ l(
1982
- _i,
1983
+ Pi,
1983
1984
  {
1984
1985
  ...e,
1985
1986
  onReady: (t) => {
1986
1987
  e.isZoomTo === !0 && n.zoomTo(t);
1987
1988
  const i = n.scene;
1988
1989
  i.globe.depthTestAgainstTerrain = !0;
1989
- const o = He.fromCartesian(t.boundingSphere.center), r = e.heightFromGround ?? _o;
1990
+ const o = He.fromCartesian(t.boundingSphere.center), r = e.heightFromGround ?? Io;
1990
1991
  if (r) {
1991
1992
  const c = ve.fromRadians(o.longitude, o.latitude, o.height), u = ve.fromRadians(o.longitude, o.latitude, o.height + r), m = ve.subtract(u, c, new ve());
1992
- t.modelMatrix = Xi.fromTranslation(m);
1993
+ t.modelMatrix = Ji.fromTranslation(m);
1993
1994
  }
1994
1995
  }
1995
1996
  }
1996
1997
  );
1997
- }, ze = 180, Ft = 1e-3, Ht = (e) => Math.abs(e) / e, Gt = (e) => {
1998
- ze - Math.abs(e[0]) < Ft && (e[0] = Ht(e[0]) * (ze - 1)), ze / 2 - Math.abs(e[1]) < Ft && (e[1] = Ht(e[1]) * (ze / 2 - 1));
1999
- }, Vt = (e) => {
1998
+ }, ze = 180, Vt = 1e-3, zt = (e) => Math.abs(e) / e, $t = (e) => {
1999
+ ze - Math.abs(e[0]) < Vt && (e[0] = zt(e[0]) * (ze - 1)), ze / 2 - Math.abs(e[1]) < Vt && (e[1] = zt(e[1]) * (ze / 2 - 1));
2000
+ }, Wt = (e) => {
2000
2001
  switch (e.type) {
2001
2002
  case "LineString":
2002
2003
  e.coordinates.forEach((n) => {
2003
- Gt(n);
2004
+ $t(n);
2004
2005
  });
2005
2006
  break;
2006
2007
  case "Polygon":
2007
2008
  e.coordinates.forEach((n) => {
2008
2009
  n.forEach((t) => {
2009
- Gt(t);
2010
+ $t(t);
2010
2011
  });
2011
2012
  });
2012
2013
  break;
2013
2014
  }
2014
- }, Ba = (e) => {
2015
- const { data: n, ...t } = e, i = nr(n);
2015
+ }, Wa = (e) => {
2016
+ const { data: n, ...t } = e, i = rr(n);
2016
2017
  return i && (typeof i.features < "u" ? i.features.forEach((o) => {
2017
- Vt(o.geometry);
2018
- }) : Vt(i)), /* @__PURE__ */ l(Mi, { data: i, ...t });
2018
+ Wt(o.geometry);
2019
+ }) : Wt(i)), /* @__PURE__ */ l(xi, { data: i, ...t });
2019
2020
  }, Xe = (e) => {
2020
2021
  const { meta: n, ...t } = e, i = se();
2021
- return Wt(() => {
2022
+ return Kt(() => {
2022
2023
  var o;
2023
2024
  (o = i.layersManager) == null || o.addMetaToLayer(n, n.searchLayerPredicate);
2024
- }, [n, i]), /* @__PURE__ */ l(Pi, { ...t });
2025
- }, Fa = (e) => {
2026
- const { options: n, ...t } = e, i = se(), o = i.shouldOptimizedTileRequests ? new fn(n, i) : new pt(n);
2025
+ }, [n, i]), /* @__PURE__ */ l(Ii, { ...t });
2026
+ }, Ua = (e) => {
2027
+ const { options: n, ...t } = e, i = se(), o = i.shouldOptimizedTileRequests ? new fn(n, i) : new ft(n);
2027
2028
  return /* @__PURE__ */ l(Xe, { ...t, imageryProvider: o });
2028
- }, Ha = (e) => {
2029
- const { options: n, ...t } = e, i = se(), o = i.shouldOptimizedTileRequests ? new yn(n, i) : new gt(n);
2029
+ }, ja = (e) => {
2030
+ const { options: n, ...t } = e, i = se(), o = i.shouldOptimizedTileRequests ? new yn(n, i) : new yt(n);
2030
2031
  return /* @__PURE__ */ l(Xe, { ...t, imageryProvider: o });
2031
- }, Ga = (e) => {
2032
- const { options: n, ...t } = e, i = se(), o = i.shouldOptimizedTileRequests ? new gn(n, i) : new mt(n);
2032
+ }, Ka = (e) => {
2033
+ const { options: n, ...t } = e, i = se(), o = i.shouldOptimizedTileRequests ? new gn(n, i) : new gt(n);
2033
2034
  return /* @__PURE__ */ l(Xe, { ...t, imageryProvider: o });
2034
- }, Va = (e) => {
2035
+ }, qa = (e) => {
2035
2036
  const { options: n, ...t } = e;
2036
- return /* @__PURE__ */ l(Xe, { ...t, imageryProvider: new Zi(n) });
2037
- }, Mo = (e) => /* @__PURE__ */ l(xi, { ...e }), za = (e) => /* @__PURE__ */ l(Qt, { ...e }), Po = (e) => /* @__PURE__ */ l(Qt, { ...e }), xo = (e) => /* @__PURE__ */ l(Ii, { ...e }), Io = (e) => /* @__PURE__ */ l(Di, { ...e }), Do = (e) => /* @__PURE__ */ l(Oi, { ...e }), Oo = (e) => /* @__PURE__ */ l(Ai, { ...e });
2038
- var be = function() {
2037
+ return /* @__PURE__ */ l(Xe, { ...t, imageryProvider: new Qi(n) });
2038
+ }, Oo = (e) => /* @__PURE__ */ l(Oi, { ...e }), Ya = (e) => /* @__PURE__ */ l(en, { ...e }), Do = (e) => /* @__PURE__ */ l(en, { ...e }), Ao = (e) => /* @__PURE__ */ l(Di, { ...e }), ko = (e) => /* @__PURE__ */ l(Ai, { ...e }), Ro = (e) => /* @__PURE__ */ l(ki, { ...e }), No = (e) => /* @__PURE__ */ l(Ri, { ...e });
2039
+ var Te = function() {
2039
2040
  var e = g.Ellipsoid.WGS84, n, t = g.Material.fromType(g.Material.ColorType);
2040
2041
  function i(s, a = new g.Color(1, 1, 0, 0.5), E = new g.Color(1, 1, 1, 1)) {
2041
2042
  this._scene = s.scene, t.uniforms.color = a, n = E, this._tooltip = {
@@ -2118,7 +2119,7 @@ var be = function() {
2118
2119
  aboveGround: !1
2119
2120
  }),
2120
2121
  material: t
2121
- }), L = function() {
2122
+ }), T = function() {
2122
2123
  function s() {
2123
2124
  }
2124
2125
  return s.prototype.initialiseOptions = function(a) {
@@ -2184,7 +2185,7 @@ var be = function() {
2184
2185
  throw new g.DeveloperError("Extent is required");
2185
2186
  a = k(a, r), this.initialiseOptions(a), this.setExtent(a.extent);
2186
2187
  }
2187
- return s.prototype = new L(), s.prototype.setExtent = function(a) {
2188
+ return s.prototype = new T(), s.prototype.setExtent = function(a) {
2188
2189
  this.setAttribute("extent", a);
2189
2190
  }, s.prototype.getExtent = function() {
2190
2191
  return this.getAttribute("extent");
@@ -2207,7 +2208,7 @@ var be = function() {
2207
2208
  function s(a) {
2208
2209
  a = k(a, r), this.initialiseOptions(a), this.isPolygon = !0;
2209
2210
  }
2210
- return s.prototype = new L(), s.prototype.setPositions = function(a) {
2211
+ return s.prototype = new T(), s.prototype.setPositions = function(a) {
2211
2212
  this.setAttribute("positions", a);
2212
2213
  }, s.prototype.getPositions = function() {
2213
2214
  return this.getAttribute("positions");
@@ -2232,7 +2233,7 @@ var be = function() {
2232
2233
  throw new g.DeveloperError("Center and radius are required");
2233
2234
  a = k(a, r), this.initialiseOptions(a), this.setRadius(a.radius);
2234
2235
  }
2235
- return s.prototype = new L(), s.prototype.setCenter = function(a) {
2236
+ return s.prototype = new T(), s.prototype.setCenter = function(a) {
2236
2237
  this.setAttribute("center", a);
2237
2238
  }, s.prototype.setRadius = function(a) {
2238
2239
  this.setAttribute("radius", Math.max(0.1, a));
@@ -2263,7 +2264,7 @@ var be = function() {
2263
2264
  throw new g.DeveloperError("Center and semi major and semi minor axis are required");
2264
2265
  a = k(a, p), this.initialiseOptions(a);
2265
2266
  }
2266
- return s.prototype = new L(), s.prototype.setCenter = function(a) {
2267
+ return s.prototype = new T(), s.prototype.setCenter = function(a) {
2267
2268
  this.setAttribute("center", a);
2268
2269
  }, s.prototype.setSemiMajorAxis = function(a) {
2269
2270
  a < this.getSemiMinorAxis() || this.setAttribute("semiMajorAxis", a);
@@ -2304,7 +2305,7 @@ var be = function() {
2304
2305
  function s(a) {
2305
2306
  a = k(a, v), this.initialiseOptions(a);
2306
2307
  }
2307
- return s.prototype = new L(), s.prototype.setPositions = function(a) {
2308
+ return s.prototype = new T(), s.prototype.setPositions = function(a) {
2308
2309
  this.setAttribute("positions", a);
2309
2310
  }, s.prototype.setWidth = function(a) {
2310
2311
  this.setAttribute("width", a);
@@ -2363,30 +2364,30 @@ var be = function() {
2363
2364
  let h = function(f) {
2364
2365
  y.enableRotate = f;
2365
2366
  }, C = function() {
2366
- for (var f = 0, T = d._orderedBillboards.length; f < T && d._orderedBillboards[f] != E; ++f)
2367
+ for (var f = 0, b = d._orderedBillboards.length; f < b && d._orderedBillboards[f] != E; ++f)
2367
2368
  ;
2368
2369
  return f;
2369
2370
  };
2370
2371
  var d = this, y = this._scene.screenSpaceCameraController;
2371
2372
  if (a.dragHandlers) {
2372
2373
  var d = this;
2373
- $(E, "leftDown", function(T) {
2374
+ $(E, "leftDown", function(b) {
2374
2375
  function _(M) {
2375
2376
  E.position = M;
2376
2377
  for (var x = 0, W = d._orderedBillboards.length; x < W && d._orderedBillboards[x] != E; ++x)
2377
2378
  ;
2378
2379
  a.dragHandlers.onDrag && a.dragHandlers.onDrag(C(), M);
2379
2380
  }
2380
- function S(M) {
2381
- b.destroy(), h(!0), a.dragHandlers.onDragEnd && a.dragHandlers.onDragEnd(C(), M);
2381
+ function L(M) {
2382
+ S.destroy(), h(!0), a.dragHandlers.onDragEnd && a.dragHandlers.onDragEnd(C(), M);
2382
2383
  }
2383
- var b = new g.ScreenSpaceEventHandler(d._scene.canvas);
2384
- b.setInputAction(function(M) {
2384
+ var S = new g.ScreenSpaceEventHandler(d._scene.canvas);
2385
+ S.setInputAction(function(M) {
2385
2386
  var x = d._scene.camera.pickEllipsoid(M.endPosition, e);
2386
- x ? _(x) : S(x);
2387
- }, g.ScreenSpaceEventType.MOUSE_MOVE), b.setInputAction(function(M) {
2388
- S(d._scene.camera.pickEllipsoid(M.position, e));
2389
- }, g.ScreenSpaceEventType.LEFT_UP), h(!1), a.dragHandlers.onDragStart && a.dragHandlers.onDragStart(C(), d._scene.camera.pickEllipsoid(T, e));
2387
+ x ? _(x) : L(x);
2388
+ }, g.ScreenSpaceEventType.MOUSE_MOVE), S.setInputAction(function(M) {
2389
+ L(d._scene.camera.pickEllipsoid(M.position, e));
2390
+ }, g.ScreenSpaceEventType.LEFT_UP), h(!1), a.dragHandlers.onDragStart && a.dragHandlers.onDragStart(C(), d._scene.camera.pickEllipsoid(b, e));
2390
2391
  });
2391
2392
  }
2392
2393
  a.onDoubleClick && $(E, "leftDoubleClick", function(f) {
@@ -2430,17 +2431,17 @@ var be = function() {
2430
2431
  var y = this._tooltip, h = new i.BillboardGroup(this, a), C = new g.ScreenSpaceEventHandler(d.canvas);
2431
2432
  C.setInputAction(function(f) {
2432
2433
  if (f.position != null) {
2433
- var T = d.camera.pickEllipsoid(f.position, e);
2434
- T && (h.addBillboard(T), E.stopDrawing(), a.callback(T));
2434
+ var b = d.camera.pickEllipsoid(f.position, e);
2435
+ b && (h.addBillboard(b), E.stopDrawing(), a.callback(b));
2435
2436
  }
2436
2437
  }, g.ScreenSpaceEventType.LEFT_CLICK), C.setInputAction(function(f) {
2437
- var T = f.endPosition;
2438
- if (T != null) {
2439
- var _ = d.camera.pickEllipsoid(T, e);
2438
+ var b = f.endPosition;
2439
+ if (b != null) {
2440
+ var _ = d.camera.pickEllipsoid(b, e);
2440
2441
  _ ? y.showAt(
2441
- T,
2442
+ b,
2442
2443
  "<p>Click to add your marker. Position is: </p>" + j(e.cartesianToCartographic(_))
2443
- ) : y.showAt(T, "<p>Click on the globe to add your marker.</p>");
2444
+ ) : y.showAt(b, "<p>Click on the globe to add your marker.</p>");
2444
2445
  }
2445
2446
  }, g.ScreenSpaceEventType.MOUSE_MOVE);
2446
2447
  }, i.prototype.startDrawingPolygon = function(a) {
@@ -2451,35 +2452,35 @@ var be = function() {
2451
2452
  this.startDrawingPolyshape(!1, a);
2452
2453
  }, i.prototype.startDrawingPolyshape = function(s, a) {
2453
2454
  this.startDrawing(function() {
2454
- y.remove(f), _.remove(), S.destroy(), h.setVisible(!1), G(d);
2455
+ y.remove(f), _.remove(), L.destroy(), h.setVisible(!1), G(d);
2455
2456
  });
2456
2457
  var E = this, d = this._scene, y = d.primitives, h = this._tooltip, C = s ? 3 : 2, f;
2457
- s ? f = new be.PolygonPrimitive(a) : f = new be.PolylinePrimitive(a), f.asynchronous = !1, y.add(f);
2458
- var T = [], _ = new i.BillboardGroup(this, w), S = new g.ScreenSpaceEventHandler(d.canvas);
2459
- Y(d), S.setInputAction(function(b) {
2460
- if (b.position != null) {
2461
- var M = d.camera.pickEllipsoid(b.position, e);
2462
- M && (T.length == 0 && (T.push(M.clone()), _.addBillboard(T[0])), T.length >= C && (f.positions = T, f._createPrimitive = !0), T.push(M), _.addBillboard(M));
2458
+ s ? f = new Te.PolygonPrimitive(a) : f = new Te.PolylinePrimitive(a), f.asynchronous = !1, y.add(f);
2459
+ var b = [], _ = new i.BillboardGroup(this, w), L = new g.ScreenSpaceEventHandler(d.canvas);
2460
+ Y(d), L.setInputAction(function(S) {
2461
+ if (S.position != null) {
2462
+ var M = d.camera.pickEllipsoid(S.position, e);
2463
+ M && (b.length == 0 && (b.push(M.clone()), _.addBillboard(b[0])), b.length >= C && (f.positions = b, f._createPrimitive = !0), b.push(M), _.addBillboard(M));
2463
2464
  }
2464
- }, g.ScreenSpaceEventType.LEFT_CLICK), S.setInputAction(function(b) {
2465
- var M = b.endPosition;
2465
+ }, g.ScreenSpaceEventType.LEFT_CLICK), L.setInputAction(function(S) {
2466
+ var M = S.endPosition;
2466
2467
  if (M != null)
2467
- if (T.length == 0)
2468
+ if (b.length == 0)
2468
2469
  h.showAt(M, "<p>Click to add first point</p>");
2469
2470
  else {
2470
2471
  var x = d.camera.pickEllipsoid(M, e);
2471
- x && (T.pop(), x.y += 1 + Math.random(), T.push(x), T.length >= C && (f.positions = T, f._createPrimitive = !0), _.getBillboard(T.length - 1).position = x, h.showAt(
2472
+ x && (b.pop(), x.y += 1 + Math.random(), b.push(x), b.length >= C && (f.positions = b, f._createPrimitive = !0), _.getBillboard(b.length - 1).position = x, h.showAt(
2472
2473
  M,
2473
- "<p>Click to add new point (" + T.length + ")</p>" + (T.length > C ? "<p>Double click to finish drawing</p>" : "")
2474
+ "<p>Click to add new point (" + b.length + ")</p>" + (b.length > C ? "<p>Double click to finish drawing</p>" : "")
2474
2475
  ));
2475
2476
  }
2476
- }, g.ScreenSpaceEventType.MOUSE_MOVE), S.setInputAction(function(b) {
2477
- var M = b.position;
2477
+ }, g.ScreenSpaceEventType.MOUSE_MOVE), L.setInputAction(function(S) {
2478
+ var M = S.position;
2478
2479
  if (M != null) {
2479
- if (T.length < C + 2)
2480
+ if (b.length < C + 2)
2480
2481
  return;
2481
2482
  var x = d.camera.pickEllipsoid(M, e);
2482
- x && (G(d), E.stopDrawing(), typeof a.callback == "function" && (T.length - 1, a.callback(T)));
2483
+ x && (G(d), E.stopDrawing(), typeof a.callback == "function" && (b.length - 1, a.callback(b)));
2483
2484
  }
2484
2485
  }, g.ScreenSpaceEventType.LEFT_DOUBLE_CLICK);
2485
2486
  };
@@ -2500,31 +2501,31 @@ var be = function() {
2500
2501
  i.prototype.startDrawingExtent = function(a) {
2501
2502
  var a = k(a, r);
2502
2503
  this.startDrawing(function() {
2503
- f != null && y.remove(f), T != null && T.remove(), _.destroy(), h.setVisible(!1), G(d);
2504
+ f != null && y.remove(f), b != null && b.remove(), _.destroy(), h.setVisible(!1), G(d);
2504
2505
  });
2505
- var E = this, d = this._scene, y = this._scene.primitives, h = this._tooltip, C = null, f = null, T = null, _ = new g.ScreenSpaceEventHandler(d.canvas);
2506
+ var E = this, d = this._scene, y = this._scene.primitives, h = this._tooltip, C = null, f = null, b = null, _ = new g.ScreenSpaceEventHandler(d.canvas);
2506
2507
  Y(d);
2507
- function S(b) {
2508
- f == null && (f = new be.ExtentPrimitive({
2509
- extent: b,
2508
+ function L(S) {
2509
+ f == null && (f = new Te.ExtentPrimitive({
2510
+ extent: S,
2510
2511
  material: a.material
2511
- }), f.asynchronous = !1, y.add(f)), f.setExtent(b);
2512
- var M = H(b);
2513
- T == null ? (T = new i.BillboardGroup(E, w), T.addBillboards(M)) : T.updateBillboardsPositions(M);
2512
+ }), f.asynchronous = !1, y.add(f)), f.setExtent(S);
2513
+ var M = H(S);
2514
+ b == null ? (b = new i.BillboardGroup(E, w), b.addBillboards(M)) : b.updateBillboardsPositions(M);
2514
2515
  }
2515
- _.setInputAction(function(b) {
2516
- if (b.position != null) {
2517
- var M = d.camera.pickEllipsoid(b.position, e);
2516
+ _.setInputAction(function(S) {
2517
+ if (S.position != null) {
2518
+ var M = d.camera.pickEllipsoid(S.position, e);
2518
2519
  if (M)
2519
2520
  if (f == null) {
2520
2521
  C = e.cartesianToCartographic(M);
2521
2522
  var x = U(C, C);
2522
- S(x);
2523
+ L(x);
2523
2524
  } else
2524
2525
  E.stopDrawing(), typeof a.callback == "function" && a.callback(U(C, e.cartesianToCartographic(M)));
2525
2526
  }
2526
- }, g.ScreenSpaceEventType.LEFT_DOWN), _.setInputAction(function(b) {
2527
- var M = b.endPosition;
2527
+ }, g.ScreenSpaceEventType.LEFT_DOWN), _.setInputAction(function(S) {
2528
+ var M = S.endPosition;
2528
2529
  if (M != null)
2529
2530
  if (f == null)
2530
2531
  h.showAt(M, "<p>Click to start drawing rectangle</p>");
@@ -2532,34 +2533,34 @@ var be = function() {
2532
2533
  var x = d.camera.pickEllipsoid(M, e);
2533
2534
  if (x) {
2534
2535
  var W = U(C, e.cartesianToCartographic(x));
2535
- S(W), h.showAt(M, "<p>Drag to change rectangle extent</p><p>Click again to finish drawing</p>");
2536
+ L(W), h.showAt(M, "<p>Drag to change rectangle extent</p><p>Click again to finish drawing</p>");
2536
2537
  }
2537
2538
  }
2538
2539
  }, g.ScreenSpaceEventType.MOUSE_MOVE);
2539
2540
  }, i.prototype.startDrawingCircle = function(a) {
2540
2541
  var a = k(a, r);
2541
2542
  this.startDrawing(function() {
2542
- C != null && y.remove(C), f.remove(), T.destroy(), h.setVisible(!1);
2543
+ C != null && y.remove(C), f.remove(), b.destroy(), h.setVisible(!1);
2543
2544
  });
2544
- var E = this, d = this._scene, y = this._scene.primitives, h = this._tooltip, C = null, f = null, T = new g.ScreenSpaceEventHandler(d.canvas);
2545
- T.setInputAction(function(_) {
2545
+ var E = this, d = this._scene, y = this._scene.primitives, h = this._tooltip, C = null, f = null, b = new g.ScreenSpaceEventHandler(d.canvas);
2546
+ b.setInputAction(function(_) {
2546
2547
  if (_.position != null) {
2547
- var S = d.camera.pickEllipsoid(_.position, e);
2548
- S && (C == null ? (C = new i.CirclePrimitive({
2549
- center: S,
2548
+ var L = d.camera.pickEllipsoid(_.position, e);
2549
+ L && (C == null ? (C = new i.CirclePrimitive({
2550
+ center: L,
2550
2551
  radius: 0,
2551
2552
  asynchronous: !1,
2552
2553
  material: a.material
2553
- }), y.add(C), f = new i.BillboardGroup(E, w), f.addBillboards([S])) : (typeof a.callback == "function" && a.callback(C.getCenter(), C.getRadius()), E.stopDrawing()));
2554
+ }), y.add(C), f = new i.BillboardGroup(E, w), f.addBillboards([L])) : (typeof a.callback == "function" && a.callback(C.getCenter(), C.getRadius()), E.stopDrawing()));
2554
2555
  }
2555
- }, g.ScreenSpaceEventType.LEFT_DOWN), T.setInputAction(function(_) {
2556
- var S = _.endPosition;
2557
- if (S != null)
2556
+ }, g.ScreenSpaceEventType.LEFT_DOWN), b.setInputAction(function(_) {
2557
+ var L = _.endPosition;
2558
+ if (L != null)
2558
2559
  if (C == null)
2559
- h.showAt(S, "<p>Click to start drawing the circle</p>");
2560
+ h.showAt(L, "<p>Click to start drawing the circle</p>");
2560
2561
  else {
2561
- var b = d.camera.pickEllipsoid(S, e);
2562
- b && (C.setRadius(g.Cartesian3.distance(C.getCenter(), b)), f.updateBillboardsPositions(b), h.showAt(S, "<p>Move mouse to change circle radius</p><p>Click again to finish drawing</p>"));
2562
+ var S = d.camera.pickEllipsoid(L, e);
2563
+ S && (C.setRadius(g.Cartesian3.distance(C.getCenter(), S)), f.updateBillboardsPositions(S), h.showAt(L, "<p>Move mouse to change circle radius</p><p>Click again to finish drawing</p>"));
2563
2564
  }
2564
2565
  }, g.ScreenSpaceEventType.MOUSE_MOVE);
2565
2566
  }, i.prototype.enhancePrimitives = function() {
@@ -2573,18 +2574,18 @@ var be = function() {
2573
2574
  s._scene.screenSpaceCameraController.enableRotate = C;
2574
2575
  }
2575
2576
  $(d, "leftDown", function(C) {
2576
- function f(S) {
2577
- d.position = S, y.executeListeners({ name: "drag", positions: S });
2577
+ function f(L) {
2578
+ d.position = L, y.executeListeners({ name: "drag", positions: L });
2578
2579
  }
2579
- function T(S) {
2580
- _.destroy(), h(!0), y.executeListeners({ name: "dragEnd", positions: S });
2580
+ function b(L) {
2581
+ _.destroy(), h(!0), y.executeListeners({ name: "dragEnd", positions: L });
2581
2582
  }
2582
2583
  var _ = new g.ScreenSpaceEventHandler(s._scene.canvas);
2583
- _.setInputAction(function(S) {
2584
- var b = s._scene.camera.pickEllipsoid(S.endPosition, e);
2585
- b ? f(b) : T(b);
2586
- }, g.ScreenSpaceEventType.MOUSE_MOVE), _.setInputAction(function(S) {
2587
- T(s._scene.camera.pickEllipsoid(S.position, e));
2584
+ _.setInputAction(function(L) {
2585
+ var S = s._scene.camera.pickEllipsoid(L.endPosition, e);
2586
+ S ? f(S) : b(S);
2587
+ }, g.ScreenSpaceEventType.MOUSE_MOVE), _.setInputAction(function(L) {
2588
+ b(s._scene.camera.pickEllipsoid(L.position, e));
2588
2589
  }, g.ScreenSpaceEventType.LEFT_UP), h(!1);
2589
2590
  }), te(d);
2590
2591
  };
@@ -2614,7 +2615,7 @@ var be = function() {
2614
2615
  ).interpolateUsingFraction(0.5)
2615
2616
  );
2616
2617
  };
2617
- var C = new i.BillboardGroup(s, P), f = new i.BillboardGroup(s, A), T = {
2618
+ var C = new i.BillboardGroup(s, P), f = new i.BillboardGroup(s, A), b = {
2618
2619
  dragHandlers: {
2619
2620
  onDrag: function(R, V) {
2620
2621
  h.positions[R] = V, x(R, h.positions), h._createPrimitive = !0;
@@ -2631,9 +2632,9 @@ var be = function() {
2631
2632
  return "Double click to remove this point";
2632
2633
  }
2633
2634
  };
2634
- C.addBillboards(h.positions, T), this._markers = C;
2635
- for (var _ = [], S = 0, b = h.positions.length + (this.isPolygon ? 0 : -1); S < b; S++)
2636
- _.push(q(S));
2635
+ C.addBillboards(h.positions, b), this._markers = C;
2636
+ for (var _ = [], L = 0, S = h.positions.length + (this.isPolygon ? 0 : -1); L < S; L++)
2637
+ _.push(q(L));
2637
2638
  var M = {
2638
2639
  dragHandlers: {
2639
2640
  onDragStart: function(R, V) {
@@ -2643,7 +2644,7 @@ var be = function() {
2643
2644
  h.positions[this.index] = V, h._createPrimitive = !0;
2644
2645
  },
2645
2646
  onDragEnd: function(R, V) {
2646
- C.insertBillboard(this.index, V, T), f.getBillboard(this.index - 1).position = q(this.index - 1), f.insertBillboard(this.index, q(this.index), M), h._createPrimitive = !0, W();
2647
+ C.insertBillboard(this.index, V, b), f.getBillboard(this.index - 1).position = q(this.index - 1), f.insertBillboard(this.index, q(this.index), M), h._createPrimitive = !0, W();
2647
2648
  }
2648
2649
  },
2649
2650
  tooltip: function() {
@@ -2659,7 +2660,7 @@ var be = function() {
2659
2660
  } else
2660
2661
  this._markers != null && (this._markers.remove(), this._editMarkers.remove(), this._markers = null, this._editMarkers = null, this._globeClickhandler.destroy()), this._editMode = !1;
2661
2662
  }
2662
- be.PolylinePrimitive.prototype.setEditable = function() {
2663
+ Te.PolylinePrimitive.prototype.setEditable = function() {
2663
2664
  if (!this.setEditMode) {
2664
2665
  var d = this;
2665
2666
  d.isPolygon = !1, d.asynchronous = !1, s.registerEditableShape(d), d.setEditMode = E;
@@ -2670,17 +2671,17 @@ var be = function() {
2670
2671
  return g.Rectangle.fromCartographicArray(e.cartesianArrayToCartographicArray(this.positions));
2671
2672
  }, te(d), d.setEditMode(!1);
2672
2673
  }
2673
- }, be.PolygonPrimitive.prototype.setEditable = function() {
2674
+ }, Te.PolygonPrimitive.prototype.setEditable = function() {
2674
2675
  var d = this;
2675
2676
  d.asynchronous = !1, s._scene, s.registerEditableShape(d), d.setEditMode = E, d.setHighlighted = a, te(d), d.setEditMode(!1);
2676
- }, be.ExtentPrimitive.prototype.setEditable = function() {
2677
+ }, Te.ExtentPrimitive.prototype.setEditable = function() {
2677
2678
  if (!this.setEditMode) {
2678
2679
  var d = this, y = s._scene;
2679
2680
  s.registerEditableShape(d), d.asynchronous = !1, d.setEditMode = function(h) {
2680
2681
  if (this._editMode != h)
2681
2682
  if (s.disableAllHighlights(), h) {
2682
2683
  if (s.setEdited(this), this._markers == null) {
2683
- let T = function() {
2684
+ let b = function() {
2684
2685
  d.executeListeners({
2685
2686
  name: "onEdited",
2686
2687
  extent: d.extent
@@ -2688,12 +2689,12 @@ var be = function() {
2688
2689
  };
2689
2690
  var C = new i.BillboardGroup(s, P), f = {
2690
2691
  dragHandlers: {
2691
- onDrag: function(_, S) {
2692
- var b = C.getBillboard((_ + 2) % 4).position;
2693
- d.setExtent(U(e.cartesianToCartographic(b), e.cartesianToCartographic(S))), C.updateBillboardsPositions(H(d.extent));
2692
+ onDrag: function(_, L) {
2693
+ var S = C.getBillboard((_ + 2) % 4).position;
2694
+ d.setExtent(U(e.cartesianToCartographic(S), e.cartesianToCartographic(L))), C.updateBillboardsPositions(H(d.extent));
2694
2695
  },
2695
- onDragEnd: function(_, S) {
2696
- T();
2696
+ onDragEnd: function(_, L) {
2697
+ b();
2697
2698
  }
2698
2699
  },
2699
2700
  tooltip: function() {
@@ -2701,8 +2702,8 @@ var be = function() {
2701
2702
  }
2702
2703
  };
2703
2704
  C.addBillboards(H(d.extent), f), this._markers = C, this._globeClickhandler = new g.ScreenSpaceEventHandler(y.canvas), this._globeClickhandler.setInputAction(function(_) {
2704
- var S = y.pick(_.position);
2705
- S && !S.isDestroyed() && S.primitive || d.setEditMode(!1);
2705
+ var L = y.pick(_.position);
2706
+ L && !L.isDestroyed() && L.primitive || d.setEditMode(!1);
2706
2707
  }, g.ScreenSpaceEventType.LEFT_CLICK), C.setOnTop();
2707
2708
  }
2708
2709
  this._editMode = !0;
@@ -2728,7 +2729,7 @@ var be = function() {
2728
2729
  d.getRotation() + Math.PI / 2,
2729
2730
  Math.PI / 2
2730
2731
  ).splice(0, 4);
2731
- }, S = function() {
2732
+ }, L = function() {
2732
2733
  d.executeListeners({
2733
2734
  name: "onEdited",
2734
2735
  center: d.getCenter(),
@@ -2737,22 +2738,22 @@ var be = function() {
2737
2738
  rotation: 0
2738
2739
  });
2739
2740
  };
2740
- var f = new i.BillboardGroup(s, P), T = {
2741
+ var f = new i.BillboardGroup(s, P), b = {
2741
2742
  dragHandlers: {
2742
- onDrag: function(b, M) {
2743
+ onDrag: function(S, M) {
2743
2744
  var x = g.Cartesian3.distance(d.getCenter(), M);
2744
- b % 2 == 0 ? d.setSemiMajorAxis(x) : d.setSemiMinorAxis(x), f.updateBillboardsPositions(_());
2745
+ S % 2 == 0 ? d.setSemiMajorAxis(x) : d.setSemiMinorAxis(x), f.updateBillboardsPositions(_());
2745
2746
  },
2746
- onDragEnd: function(b, M) {
2747
- S();
2747
+ onDragEnd: function(S, M) {
2748
+ L();
2748
2749
  }
2749
2750
  },
2750
2751
  tooltip: function() {
2751
2752
  return "Drag to change the excentricity and radius";
2752
2753
  }
2753
2754
  };
2754
- f.addBillboards(_(), T), this._markers = f, this._globeClickhandler = new g.ScreenSpaceEventHandler(y.canvas), this._globeClickhandler.setInputAction(function(b) {
2755
- var M = y.pick(b.position);
2755
+ f.addBillboards(_(), b), this._markers = f, this._globeClickhandler = new g.ScreenSpaceEventHandler(y.canvas), this._globeClickhandler.setInputAction(function(S) {
2756
+ var M = y.pick(S.position);
2756
2757
  M && M.primitive || C.setEditMode(!1);
2757
2758
  }, g.ScreenSpaceEventType.LEFT_CLICK), f.setOnTop();
2758
2759
  }
@@ -2783,28 +2784,28 @@ var be = function() {
2783
2784
  if (this._markers == null) {
2784
2785
  let _ = function() {
2785
2786
  return C.getCircleCartesianCoordinates(g.Math.PI_OVER_TWO);
2786
- }, S = function() {
2787
+ }, L = function() {
2787
2788
  d.executeListeners({
2788
2789
  name: "onEdited",
2789
2790
  center: d.getCenter(),
2790
2791
  radius: d.getRadius()
2791
2792
  });
2792
2793
  };
2793
- var f = new i.BillboardGroup(s, P), T = {
2794
+ var f = new i.BillboardGroup(s, P), b = {
2794
2795
  dragHandlers: {
2795
- onDrag: function(b, M) {
2796
+ onDrag: function(S, M) {
2796
2797
  d.setRadius(g.Cartesian3.distance(d.getCenter(), M)), f.updateBillboardsPositions(_());
2797
2798
  },
2798
- onDragEnd: function(b, M) {
2799
- S();
2799
+ onDragEnd: function(S, M) {
2800
+ L();
2800
2801
  }
2801
2802
  },
2802
2803
  tooltip: function() {
2803
2804
  return "Drag to change the radius";
2804
2805
  }
2805
2806
  };
2806
- f.addBillboards(_(), T), this._markers = f, this._globeClickhandler = new g.ScreenSpaceEventHandler(y.canvas), this._globeClickhandler.setInputAction(function(b) {
2807
- var M = y.pick(b.position);
2807
+ f.addBillboards(_(), b), this._markers = f, this._globeClickhandler = new g.ScreenSpaceEventHandler(y.canvas), this._globeClickhandler.setInputAction(function(S) {
2808
+ var M = y.pick(S.position);
2808
2809
  M && M.primitive || C.setEditMode(!1);
2809
2810
  }, g.ScreenSpaceEventType.LEFT_CLICK), f.setOnTop();
2810
2811
  }
@@ -2833,13 +2834,13 @@ var be = function() {
2833
2834
  z(E, d);
2834
2835
  var y = this, h = document.createElement("DIV");
2835
2836
  h.className = "toolbar", E.container.appendChild(h);
2836
- function C(_, S, b, M) {
2837
+ function C(_, L, S, M) {
2837
2838
  var x = document.createElement("DIV");
2838
- x.className = "button", x.title = b, h.appendChild(x), x.onclick = M;
2839
+ x.className = "button", x.title = S, h.appendChild(x), x.onclick = M;
2839
2840
  var W = document.createElement("SPAN");
2840
2841
  x.appendChild(W);
2841
2842
  var q = document.createElement("IMG");
2842
- return q.src = S, W.appendChild(q), x;
2843
+ return q.src = L, W.appendChild(q), x;
2843
2844
  }
2844
2845
  var f = a._scene;
2845
2846
  C("marker", E.markerIcon, "Click to start drawing a 2D marker", function() {
@@ -2877,17 +2878,17 @@ var be = function() {
2877
2878
  });
2878
2879
  }), C("circle", E.circleIcon, "Click to start drawing a Circle", function() {
2879
2880
  a.startDrawingCircle({
2880
- callback: function(_, S) {
2881
+ callback: function(_, L) {
2881
2882
  y.executeListeners({
2882
2883
  name: "circleCreated",
2883
2884
  center: _,
2884
- radius: S
2885
+ radius: L
2885
2886
  });
2886
2887
  }
2887
2888
  });
2888
2889
  });
2889
- var T = document.createElement("DIV");
2890
- T.className = "divider", h.appendChild(T), C("clear", E.clearIcon, "Remove all primitives", function() {
2890
+ var b = document.createElement("DIV");
2891
+ b.className = "divider", h.appendChild(b), C("clear", E.clearIcon, "Remove all primitives", function() {
2891
2892
  f.primitives.removeAll();
2892
2893
  }), te(this);
2893
2894
  }
@@ -2904,26 +2905,26 @@ var be = function() {
2904
2905
  function j(s, a) {
2905
2906
  return s.longitude.toFixed(a || 3) + ", " + s.latitude.toFixed(a || 3);
2906
2907
  }
2907
- function O(s, a) {
2908
+ function D(s, a) {
2908
2909
  if (s == null || typeof s != "object" || s.constructor != Object && s.constructor != Array)
2909
2910
  return s;
2910
2911
  if (s.constructor == Date || s.constructor == RegExp || s.constructor == Function || s.constructor == String || s.constructor == Number || s.constructor == Boolean)
2911
2912
  return new s.constructor(s);
2912
2913
  a = a || new s.constructor();
2913
2914
  for (var E in s)
2914
- a[E] = typeof a[E] > "u" ? O(s[E], null) : a[E];
2915
+ a[E] = typeof a[E] > "u" ? D(s[E], null) : a[E];
2915
2916
  return a;
2916
2917
  }
2917
2918
  function z(s, a) {
2918
2919
  s = s || {};
2919
2920
  var E;
2920
2921
  for (E in a)
2921
- s[E] === void 0 && (s[E] = O(a[E]));
2922
+ s[E] === void 0 && (s[E] = D(a[E]));
2922
2923
  }
2923
2924
  function k(s, a) {
2924
- var E = O(s), d;
2925
+ var E = D(s), d;
2925
2926
  for (d in a)
2926
- E[d] === void 0 && (E[d] = O(a[d]));
2927
+ E[d] === void 0 && (E[d] = D(a[d]));
2927
2928
  return E;
2928
2929
  }
2929
2930
  function $(s, a, E) {
@@ -2942,22 +2943,22 @@ var be = function() {
2942
2943
  }
2943
2944
  return i;
2944
2945
  }();
2945
- const Ao = 2, ko = (e, n) => {
2946
+ const Bo = 2, Fo = (e, n) => {
2946
2947
  switch (e) {
2947
2948
  case le.BOX: {
2948
- if (n.features.length !== Ao)
2949
+ if (n.features.length !== Bo)
2949
2950
  throw new Error(`${e} must have 2 points`);
2950
- const t = _t(n.features, (o) => {
2951
+ const t = xt(n.features, (o) => {
2951
2952
  var r;
2952
2953
  return ((r = o.properties) == null ? void 0 : r.type) === dt.BOTTOM_LEFT;
2953
- }), i = _t(n.features, (o) => {
2954
+ }), i = xt(n.features, (o) => {
2954
2955
  var r;
2955
2956
  return ((r = o.properties) == null ? void 0 : r.type) === dt.TOP_RIGHT;
2956
2957
  });
2957
2958
  if (i && t) {
2958
2959
  if (t.geometry.coordinates[0] === i.geometry.coordinates[0] && t.geometry.coordinates[1] === i.geometry.coordinates[1])
2959
2960
  throw new Error(`${e} must define BOTTOM_LEFT and TOP_RIGHT different points`);
2960
- return Oe.fromDegrees(
2961
+ return De.fromDegrees(
2961
2962
  t.geometry.coordinates[0],
2962
2963
  t.geometry.coordinates[1],
2963
2964
  i.geometry.coordinates[0],
@@ -2969,7 +2970,7 @@ const Ao = 2, ko = (e, n) => {
2969
2970
  default:
2970
2971
  throw new Error(`${e} type geoJSON still not supported`);
2971
2972
  }
2972
- }, Ro = (e) => {
2973
+ }, Ho = (e) => {
2973
2974
  const n = e.map((t) => {
2974
2975
  const i = He.fromCartesian(t);
2975
2976
  return [fe.toDegrees(i.longitude), fe.toDegrees(i.latitude)];
@@ -2982,51 +2983,51 @@ const Ao = 2, ko = (e, n) => {
2982
2983
  coordinates: [n]
2983
2984
  }
2984
2985
  };
2985
- }, No = (e) => {
2986
- const n = nn.lineString([
2986
+ }, Go = (e) => {
2987
+ const n = rn.lineString([
2987
2988
  [fe.toDegrees(e.west), fe.toDegrees(e.south)],
2988
2989
  [fe.toDegrees(e.east), fe.toDegrees(e.north)]
2989
2990
  ]);
2990
- return on(rn(n));
2991
- }, Bo = (e) => {
2992
- const n = nn.lineString([
2991
+ return sn(on(n));
2992
+ }, Vo = (e) => {
2993
+ const n = rn.lineString([
2993
2994
  [e.west, e.south],
2994
2995
  [e.east, e.north]
2995
2996
  ]);
2996
- return on(rn(n)).geometry.coordinates[0].map((i) => ve.fromRadiansArray(i)[0]);
2997
+ return sn(on(n)).geometry.coordinates[0].map((i) => ve.fromRadiansArray(i)[0]);
2997
2998
  };
2998
- class $a extends lt {
2999
+ class Xa extends lt {
2999
3000
  }
3000
- const Wa = (e) => {
3001
- const { drawState: n, drawingMaterial: t, drawingVertexColor: i, material: o, hollow: r, outlineWidth: c } = e, u = se(), [m, p] = D();
3001
+ const Za = (e) => {
3002
+ const { drawState: n, drawingMaterial: t, drawingVertexColor: i, material: o, hollow: r, outlineWidth: c } = e, u = se(), [m, p] = O();
3002
3003
  I(() => {
3003
3004
  p(
3004
3005
  // eslint-disable-next-line
3005
- new be(u, t, i)
3006
+ new Te(u, t, i)
3006
3007
  );
3007
3008
  }, []), I(() => {
3008
3009
  if (m) {
3009
- const L = m;
3010
+ const T = m;
3010
3011
  if (n.drawing)
3011
3012
  switch (n.type) {
3012
3013
  case le.POLYGON:
3013
- u.scene.globe.depthTestAgainstTerrain = !1, L.startDrawingPolygon({
3014
+ u.scene.globe.depthTestAgainstTerrain = !1, T.startDrawingPolygon({
3014
3015
  callback: (w) => {
3015
3016
  n.handler({
3016
3017
  primitive: w,
3017
3018
  type: le.POLYGON,
3018
- geojson: Ro(w)
3019
+ geojson: Ho(w)
3019
3020
  });
3020
3021
  }
3021
3022
  });
3022
3023
  break;
3023
3024
  case le.BOX:
3024
- u.scene.globe.depthTestAgainstTerrain = !1, L.startDrawingExtent({
3025
+ u.scene.globe.depthTestAgainstTerrain = !1, T.startDrawingExtent({
3025
3026
  callback: (w) => {
3026
3027
  n.handler({
3027
3028
  primitive: w,
3028
3029
  type: le.BOX,
3029
- geojson: No(w)
3030
+ geojson: Go(w)
3030
3031
  });
3031
3032
  }
3032
3033
  });
@@ -3035,25 +3036,25 @@ const Wa = (e) => {
3035
3036
  throw new Error(`[CESIUM DRAW]: ${n.type} unrecognized primitive to draw.`);
3036
3037
  }
3037
3038
  else
3038
- L.stopDrawing(), u.scene.globe.depthTestAgainstTerrain = !0;
3039
+ T.stopDrawing(), u.scene.globe.depthTestAgainstTerrain = !0;
3039
3040
  }
3040
3041
  }, [n, m]);
3041
- const v = (L) => {
3042
+ const v = (T) => {
3042
3043
  try {
3043
- let w = L.coordinates !== void 0 ? L.coordinates : ko(L.type, L.geojson);
3044
+ let w = T.coordinates !== void 0 ? T.coordinates : Fo(T.type, T.geojson);
3044
3045
  if (r !== !0)
3045
- switch (L.type) {
3046
+ switch (T.type) {
3046
3047
  case le.BOX:
3047
- return /* @__PURE__ */ l(Io, { coordinates: w, material: o ?? t });
3048
+ return /* @__PURE__ */ l(ko, { coordinates: w, material: o ?? t });
3048
3049
  case le.POLYGON:
3049
- return /* @__PURE__ */ l(xo, { hierarchy: new Ji(w), material: o ?? t });
3050
+ return /* @__PURE__ */ l(Ao, { hierarchy: new er(w), material: o ?? t });
3050
3051
  default:
3051
3052
  return /* @__PURE__ */ l(oe, {});
3052
3053
  }
3053
3054
  else {
3054
- switch (L.type) {
3055
+ switch (T.type) {
3055
3056
  case le.BOX:
3056
- w = Bo(w);
3057
+ w = Vo(w);
3057
3058
  break;
3058
3059
  case le.POLYGON:
3059
3060
  w = [...w, w[0]];
@@ -3061,28 +3062,28 @@ const Wa = (e) => {
3061
3062
  default:
3062
3063
  return /* @__PURE__ */ l(oe, {});
3063
3064
  }
3064
- return /* @__PURE__ */ l(Oo, { clampToGround: !0, positions: w, width: c ?? 1, material: o ?? t });
3065
+ return /* @__PURE__ */ l(No, { clampToGround: !0, positions: w, width: c ?? 1, material: o ?? t });
3065
3066
  }
3066
3067
  } catch (w) {
3067
3068
  return console.error(w), /* @__PURE__ */ l(oe, {});
3068
3069
  }
3069
3070
  };
3070
- return /* @__PURE__ */ l(Do, { ...e, children: e.drawings.map((L, w) => /* @__PURE__ */ N(Mo, { name: L.name, children: [
3071
- /* @__PURE__ */ N(Po, { children: [
3071
+ return /* @__PURE__ */ l(Ro, { ...e, children: e.drawings.map((T, w) => /* @__PURE__ */ N(Oo, { name: T.name, children: [
3072
+ /* @__PURE__ */ N(Do, { children: [
3072
3073
  /* @__PURE__ */ N("h1", { children: [
3073
3074
  "Drawed Entity ",
3074
- L.name
3075
+ T.name
3075
3076
  ] }),
3076
3077
  /* @__PURE__ */ l("p", { children: "This is description of drawed entity" })
3077
3078
  ] }),
3078
- v(L)
3079
- ] }, L.id)) });
3080
- }, Ua = (e) => {
3079
+ v(T)
3080
+ ] }, T.id)) });
3081
+ }, Ja = (e) => {
3081
3082
  const n = se();
3082
3083
  return I(() => {
3083
- n.extend(Qi);
3084
+ n.extend(tr);
3084
3085
  }, [n]), /* @__PURE__ */ l(oe, {});
3085
- }, Fo = -25, zt = 2, ja = (e) => {
3086
+ }, zo = -25, Ut = 2, Qa = (e) => {
3086
3087
  const n = se(), t = (r, c = ",") => r.slice(r.indexOf(`
3087
3088
  `) + 1).split(`
3088
3089
  `).map((p) => {
@@ -3097,31 +3098,31 @@ const Wa = (e) => {
3097
3098
  const c = new FileReader();
3098
3099
  c.onload = (m) => {
3099
3100
  var w;
3100
- const p = (w = m.target) == null ? void 0 : w.result, v = t(p), L = en.WGS84;
3101
+ const p = (w = m.target) == null ? void 0 : w.result, v = t(p), T = tn.WGS84;
3101
3102
  console.log(`Loaded CSV content:
3102
- `, p), er(
3103
+ `, p), nr(
3103
3104
  n.terrainProvider,
3104
3105
  v.map((P) => P.cartographic)
3105
3106
  ).then(
3106
3107
  (P) => {
3107
3108
  console.log(P), P = P.slice(0, P.length - 1), n.scene.globe.depthTestAgainstTerrain = !0, n.entities.suspendEvents(), n.entities.removeAll(), P.forEach((A, H) => {
3108
3109
  n.entities.add({
3109
- name: (H + zt).toString(),
3110
- position: L.cartographicToCartesian(A),
3110
+ name: (H + Ut).toString(),
3111
+ position: T.cartographicToCartesian(A),
3111
3112
  billboard: {
3112
3113
  verticalOrigin: at.BOTTOM,
3113
3114
  scale: 0.7,
3114
3115
  image: "assets/img/map-marker.gif"
3115
3116
  },
3116
3117
  label: {
3117
- text: (H + zt).toString(),
3118
+ text: (H + Ut).toString(),
3118
3119
  font: "14pt monospace",
3119
3120
  fillColor: lt.BLACK,
3120
- style: tn.FILL_AND_OUTLINE,
3121
+ style: nn.FILL_AND_OUTLINE,
3121
3122
  outlineWidth: 4,
3122
3123
  outlineColor: lt.BLACK,
3123
3124
  verticalOrigin: at.BOTTOM,
3124
- pixelOffset: new Ce(0, Fo)
3125
+ pixelOffset: new Ce(0, zo)
3125
3126
  },
3126
3127
  description: `
3127
3128
  Long: ${v[H].cartesian.x} </br>
@@ -3147,8 +3148,8 @@ const Wa = (e) => {
3147
3148
  c.forEach((w) => {
3148
3149
  m += u(w);
3149
3150
  });
3150
- const p = new Blob([m], { type: "text/csv;charset=utf-8;" }), v = document.createElement("a"), L = URL.createObjectURL(p);
3151
- v.setAttribute("href", L), v.setAttribute("download", r), v.style.visibility = "hidden", document.body.appendChild(v), v.click(), document.body.removeChild(v);
3151
+ const p = new Blob([m], { type: "text/csv;charset=utf-8;" }), v = document.createElement("a"), T = URL.createObjectURL(p);
3152
+ v.setAttribute("href", T), v.setAttribute("download", r), v.style.visibility = "hidden", document.body.appendChild(v), v.click(), document.body.removeChild(v);
3152
3153
  };
3153
3154
  return /* @__PURE__ */ l(oe, { children: /* @__PURE__ */ l(
3154
3155
  "input",
@@ -3162,8 +3163,8 @@ const Wa = (e) => {
3162
3163
  }
3163
3164
  ) });
3164
3165
  };
3165
- const Ho = 38, Go = 40, Vo = 13, zo = 14, $o = 27, Wo = 9, Uo = 10, jo = 100, Ko = (e) => {
3166
- const [n, t] = D(e.defaultValue ?? ""), [i, o] = D(!1), [r, c] = D({
3166
+ const $o = 38, Wo = 40, Uo = 13, jo = 14, Ko = 27, qo = 9, Yo = 10, Xo = 100, Zo = (e) => {
3167
+ const [n, t] = O(e.defaultValue ?? ""), [i, o] = O(!1), [r, c] = O({
3167
3168
  helperVisible: !1,
3168
3169
  left: 0,
3169
3170
  right: 0,
@@ -3176,7 +3177,7 @@ const Ho = 38, Go = 40, Vo = 13, zo = 14, $o = 27, Wo = 9, Uo = 10, jo = 100, Ko
3176
3177
  value: "",
3177
3178
  caret: 0,
3178
3179
  width: "unset"
3179
- }), u = Se(null);
3180
+ }), u = Le(null);
3180
3181
  I(() => (window.addEventListener("resize", A), () => {
3181
3182
  try {
3182
3183
  window.removeEventListener("resize", A);
@@ -3190,19 +3191,19 @@ const Ho = 38, Go = 40, Vo = 13, zo = 14, $o = 27, Wo = 9, Uo = 10, jo = 100, Ko
3190
3191
  U(n, h, y);
3191
3192
  }, [e]);
3192
3193
  const m = (y, h, C) => {
3193
- const { trigger: f, matchAny: T, regex: _ } = e, S = new RegExp(_);
3194
- let b = f;
3195
- Array.isArray(b) || (b = new Array(f)), b.sort();
3194
+ const { trigger: f, matchAny: b, regex: _ } = e, L = new RegExp(_);
3195
+ let S = f;
3196
+ Array.isArray(S) || (S = new Array(f)), S.sort();
3196
3197
  const M = {};
3197
- Array.isArray(C) && b.forEach((q) => {
3198
+ Array.isArray(C) && S.forEach((q) => {
3198
3199
  M[q] = C;
3199
3200
  });
3200
- const x = p(b, S);
3201
+ const x = p(S, L);
3201
3202
  let W = {};
3202
3203
  for (let q = 0; q < x.length; q++) {
3203
3204
  const { triggerStr: R, triggerMatch: V, triggerLength: Q } = x[q];
3204
3205
  for (let ne = h - 1; ne >= 0; --ne) {
3205
- const ue = y.substring(ne, h).match(S);
3206
+ const ue = y.substring(ne, h).match(L);
3206
3207
  let ae = -1;
3207
3208
  if (Q > 0) {
3208
3209
  const ce = V ? ne : ne - Q + 1;
@@ -3219,8 +3220,8 @@ const Ho = 38, Go = 40, Vo = 13, zo = 14, $o = 27, Wo = 9, Uo = 10, jo = 100, Ko
3219
3220
  if (!Array.isArray(ce))
3220
3221
  continue;
3221
3222
  const Re = y.substring(ae, h), K = ce.filter((we) => {
3222
- const Te = we.toLowerCase().indexOf(Re.toLowerCase());
3223
- return Te !== -1 && (T || Te === 0);
3223
+ const be = we.toLowerCase().indexOf(Re.toLowerCase());
3224
+ return be !== -1 && (b || be === 0);
3224
3225
  }), B = R, ee = Re.length;
3225
3226
  W = {
3226
3227
  ...W,
@@ -3237,22 +3238,22 @@ const Ho = 38, Go = 40, Vo = 13, zo = 14, $o = 27, Wo = 9, Uo = 10, jo = 100, Ko
3237
3238
  triggerStr: f,
3238
3239
  triggerMatch: f.match(h),
3239
3240
  triggerLength: f.length
3240
- })), v = (y, h, C) => !y || !y.length || h.substr(C, y.length) === y, L = (y) => {
3241
- const { onChange: h, options: C, spaceRemovers: f, spacer: T, value: _ } = e, S = n, b = y.target.value, M = sr(w(y.target)).end;
3242
- if (b.length || G({
3241
+ })), v = (y, h, C) => !y || !y.length || h.substr(C, y.length) === y, T = (y) => {
3242
+ const { onChange: h, options: C, spaceRemovers: f, spacer: b, value: _ } = e, L = n, S = y.target.value, M = lr(w(y.target)).end;
3243
+ if (S.length || G({
3243
3244
  ...r,
3244
3245
  helperVisible: !1
3245
- }), t(b), G({
3246
+ }), t(S), G({
3246
3247
  ...r,
3247
3248
  caret: M,
3248
3249
  value: y.target.value
3249
- }), !b.length || !M)
3250
+ }), !S.length || !M)
3250
3251
  return h(y.target.value);
3251
- if (i && f.length && b.length > 2 && T.length) {
3252
- for (let x = 0; x < Math.max(S.length, b.length); ++x)
3253
- if (S[x] !== b[x]) {
3254
- if (x >= 2 && b[x - 1] === T && f.indexOf(b[x - 2]) === -1 && f.indexOf(b[x]) !== -1 && !ct(m(b.substring(0, x - 2), M - 3, C))) {
3255
- const W = `${b.slice(0, x - 1)}${b.slice(x, x + 1)}${b.slice(x - 1, x)}${b.slice(x + 1)}`;
3252
+ if (i && f.length && S.length > 2 && b.length) {
3253
+ for (let x = 0; x < Math.max(L.length, S.length); ++x)
3254
+ if (L[x] !== S[x]) {
3255
+ if (x >= 2 && S[x - 1] === b && f.indexOf(S[x - 2]) === -1 && f.indexOf(S[x]) !== -1 && !ct(m(S.substring(0, x - 2), M - 3, C))) {
3256
+ const W = `${S.slice(0, x - 1)}${S.slice(x, x + 1)}${S.slice(x - 1, x)}${S.slice(x + 1)}`;
3256
3257
  return Y(x + 1), u.current !== null && (u.current.value = W), _ || G({
3257
3258
  ...r,
3258
3259
  value: W
@@ -3262,7 +3263,7 @@ const Ho = 38, Go = 40, Vo = 13, zo = 14, $o = 27, Wo = 9, Uo = 10, jo = 100, Ko
3262
3263
  }
3263
3264
  o(!1);
3264
3265
  }
3265
- return U(b, M, C), h(y.target.value);
3266
+ return U(S, M, C), h(y.target.value);
3266
3267
  }, w = (y) => {
3267
3268
  if (y !== void 0)
3268
3269
  if (y.children.length > 0) {
@@ -3275,52 +3276,52 @@ const Ho = 38, Go = 40, Vo = 13, zo = 14, $o = 27, Wo = 9, Uo = 10, jo = 100, Ko
3275
3276
  } else
3276
3277
  return y;
3277
3278
  }, P = (y) => {
3278
- const { helperVisible: h, options: C, selection: f } = r, { onKeyDown: T, passThroughEnter: _ } = e;
3279
+ const { helperVisible: h, options: C, selection: f } = r, { onKeyDown: b, passThroughEnter: _ } = e;
3279
3280
  if (h)
3280
3281
  switch (y.keyCode) {
3281
- case $o:
3282
+ case Ko:
3282
3283
  y.preventDefault(), j();
3283
3284
  break;
3284
- case Ho:
3285
+ case $o:
3285
3286
  y.preventDefault(), G({
3286
3287
  ...r,
3287
3288
  selection: (C.length + f - 1) % C.length
3288
3289
  });
3289
3290
  break;
3290
- case Go:
3291
+ case Wo:
3291
3292
  y.preventDefault(), G({
3292
3293
  ...r,
3293
3294
  selection: (f + 1) % C.length
3294
3295
  });
3295
3296
  break;
3296
- case zo:
3297
- case Vo:
3297
+ case jo:
3298
+ case Uo:
3298
3299
  _ || y.preventDefault(), H(f);
3299
3300
  break;
3300
- case Wo:
3301
+ case qo:
3301
3302
  H(f);
3302
3303
  break;
3303
3304
  default:
3304
- T(y);
3305
+ b(y);
3305
3306
  break;
3306
3307
  }
3307
3308
  else
3308
- T(y);
3309
+ b(y);
3309
3310
  }, A = () => {
3310
3311
  G({
3311
3312
  ...r,
3312
3313
  helperVisible: !1
3313
3314
  });
3314
3315
  }, H = (y) => {
3315
- const { spacer: h, onSelect: C, changeOnSelect: f } = e, { matchStart: T, matchLength: _, options: S, trigger: b } = r, M = S[y], x = n, W = x.substring(0, T - b.length), q = x.substring(T + _), R = { target: u.current }, V = f(b, M);
3316
- R.target !== null && (R.target.value = `${W}${V}${h}${q}`), L(R), R.target !== null && C(R.target.value), j(), Y(W.length + V.length + 1), o(!0);
3316
+ const { spacer: h, onSelect: C, changeOnSelect: f } = e, { matchStart: b, matchLength: _, options: L, trigger: S } = r, M = L[y], x = n, W = x.substring(0, b - S.length), q = x.substring(b + _), R = { target: u.current }, V = f(S, M);
3317
+ R.target !== null && (R.target.value = `${W}${V}${h}${q}`), T(R), R.target !== null && C(R.target.value), j(), Y(W.length + V.length + 1), o(!0);
3317
3318
  }, Y = (y) => {
3318
3319
  G({
3319
3320
  ...r,
3320
3321
  caret: y
3321
3322
  });
3322
3323
  const h = w(u.current);
3323
- ar(h, y);
3324
+ cr(h, y);
3324
3325
  }, G = (y) => {
3325
3326
  setTimeout(() => {
3326
3327
  c({
@@ -3331,14 +3332,14 @@ const Ho = 38, Go = 40, Vo = 13, zo = 14, $o = 27, Wo = 9, Uo = 10, jo = 100, Ko
3331
3332
  const f = u.current;
3332
3333
  if (u.current === null)
3333
3334
  return;
3334
- const T = w(f);
3335
- if (T === void 0)
3335
+ const b = w(f);
3336
+ if (b === void 0)
3336
3337
  return;
3337
- const _ = f.getBoundingClientRect(), S = m(y, h, C);
3338
- if (Object.keys(S).length > 0 && T !== null) {
3339
- const b = or(T, h), M = T.getBoundingClientRect(), { minChars: x, onRequestOptions: W, requestOnlyIfNoOptions: q, mode: R } = e;
3338
+ const _ = f.getBoundingClientRect(), L = m(y, h, C);
3339
+ if (Object.keys(L).length > 0 && b !== null) {
3340
+ const S = ar(b, h), M = b.getBoundingClientRect(), { minChars: x, onRequestOptions: W, requestOnlyIfNoOptions: q, mode: R } = e;
3340
3341
  let V, Q, ne, ye = "unset";
3341
- R === "assist" ? (V = f === T ? b.top + T.offsetTop : b.top + _.top, Q = Math.min(b.left + T.offsetLeft - Uo, T.offsetLeft + M.width - jo)) : (V = _.top + f.offsetHeight, Q = f.offsetLeft, ne = f.offsetLeft - f.offsetWidth, ye = `${_.width}px`), S.matchLength >= x && (S.options.length > 1 || S.options.length === 1 && S.options[0].length !== S.matchLength) ? G({
3342
+ R === "assist" ? (V = f === b ? S.top + b.offsetTop : S.top + _.top, Q = Math.min(S.left + b.offsetLeft - Yo, b.offsetLeft + M.width - Xo)) : (V = _.top + f.offsetHeight, Q = f.offsetLeft, ne = f.offsetLeft - f.offsetWidth, ye = `${_.width}px`), L.matchLength >= x && (L.options.length > 1 || L.options.length === 1 && L.options[0].length !== L.matchLength) ? G({
3342
3343
  ...r,
3343
3344
  value: y,
3344
3345
  helperVisible: !0,
@@ -3346,8 +3347,8 @@ const Ho = 38, Go = 40, Vo = 13, zo = 14, $o = 27, Wo = 9, Uo = 10, jo = 100, Ko
3346
3347
  left: Q,
3347
3348
  right: ne,
3348
3349
  width: ye,
3349
- ...S
3350
- }) : ((!q || !S.options.length) && W(y.substr(S.matchStart, S.matchLength)), j());
3350
+ ...L
3351
+ }) : ((!q || !L.options.length) && W(y.substr(L.matchStart, L.matchLength)), j());
3351
3352
  } else
3352
3353
  j();
3353
3354
  }, j = () => {
@@ -3358,24 +3359,24 @@ const Ho = 38, Go = 40, Vo = 13, zo = 14, $o = 27, Wo = 9, Uo = 10, jo = 100, Ko
3358
3359
  selection: 0
3359
3360
  });
3360
3361
  }, 100);
3361
- }, O = () => {
3362
- const { helperVisible: y, left: h, right: C, matchStart: f, matchLength: T, options: _, selection: S, top: b, value: M, width: x } = r;
3362
+ }, D = () => {
3363
+ const { helperVisible: y, left: h, right: C, matchStart: f, matchLength: b, options: _, selection: L, top: S, value: M, width: x } = r;
3363
3364
  if (!y)
3364
3365
  return null;
3365
3366
  const { maxOptions: W, offsetX: q, offsetY: R, direction: V } = e;
3366
3367
  if (_.length === 0)
3367
3368
  return null;
3368
- if (S >= _.length)
3369
+ if (L >= _.length)
3369
3370
  return G({
3370
3371
  ...r,
3371
3372
  selection: 0
3372
3373
  }), null;
3373
3374
  const Q = W === 0 ? _.length : W, ne = _.slice(0, Q).map((ue, ae) => {
3374
- const ce = ue.toLowerCase().indexOf(M.substr(f, T).toLowerCase());
3375
+ const ce = ue.toLowerCase().indexOf(M.substr(f, b).toLowerCase());
3375
3376
  return /* @__PURE__ */ N(
3376
3377
  "li",
3377
3378
  {
3378
- className: ae === S ? "active" : void 0,
3379
+ className: ae === L ? "active" : void 0,
3379
3380
  onClick: () => {
3380
3381
  H(ae);
3381
3382
  },
@@ -3387,14 +3388,14 @@ const Ho = 38, Go = 40, Vo = 13, zo = 14, $o = 27, Wo = 9, Uo = 10, jo = 100, Ko
3387
3388
  },
3388
3389
  children: [
3389
3390
  ue.slice(0, ce),
3390
- /* @__PURE__ */ l("strong", { children: ue.substr(ce, T) }),
3391
- ue.slice(ce + T)
3391
+ /* @__PURE__ */ l("strong", { children: ue.substr(ce, b) }),
3392
+ ue.slice(ce + b)
3392
3393
  ]
3393
3394
  },
3394
3395
  ue
3395
3396
  );
3396
3397
  }), ye = V === "ltr" ? { left: h + q } : { right: C + q };
3397
- return /* @__PURE__ */ l("ul", { className: "react-autocomplete-input", style: { ...ye, top: b + R, width: x }, children: ne });
3398
+ return /* @__PURE__ */ l("ul", { className: "react-autocomplete-input", style: { ...ye, top: S + R, width: x }, children: ne });
3398
3399
  }, { Component: z, ComponentProps: k, defaultValue: $, disabled: te, onBlur: s, value: a, ...E } = e, d = Object.assign({}, E);
3399
3400
  return Object.keys(e).forEach((y) => {
3400
3401
  delete d[y];
@@ -3402,16 +3403,16 @@ const Ho = 38, Go = 40, Vo = 13, zo = 14, $o = 27, Wo = 9, Uo = 10, jo = 100, Ko
3402
3403
  Ee.cloneElement(z, {
3403
3404
  disabled: te,
3404
3405
  onBlur: s,
3405
- onChange: L,
3406
+ onChange: T,
3406
3407
  onKeyDown: P,
3407
3408
  ref: u,
3408
3409
  value: n,
3409
3410
  ...d,
3410
3411
  ...k
3411
3412
  }),
3412
- O()
3413
+ D()
3413
3414
  ] });
3414
- }, qo = {
3415
+ }, Jo = {
3415
3416
  Component: /* @__PURE__ */ l("textarea", {}),
3416
3417
  ComponentProps: {},
3417
3418
  defaultValue: void 0,
@@ -3442,9 +3443,9 @@ const Ho = 38, Go = 40, Vo = 13, zo = 14, $o = 27, Wo = 9, Uo = 10, jo = 100, Ko
3442
3443
  passThroughEnter: !1,
3443
3444
  mode: "assist",
3444
3445
  direction: "ltr"
3445
- }, Ka = (e) => {
3446
+ }, el = (e) => {
3446
3447
  let n = {
3447
- ...qo,
3448
+ ...Jo,
3448
3449
  ...e
3449
3450
  };
3450
3451
  return e.mode === "autocomplete" && (n = {
@@ -3452,10 +3453,10 @@ const Ho = 38, Go = 40, Vo = 13, zo = 14, $o = 27, Wo = 9, Uo = 10, jo = 100, Ko
3452
3453
  trigger: "",
3453
3454
  regex: ".",
3454
3455
  spacer: ""
3455
- }), /* @__PURE__ */ l(Ko, { ...n });
3456
- }, yt = {
3456
+ }), /* @__PURE__ */ l(Zo, { ...n });
3457
+ }, Ct = {
3457
3458
  formatFileModDate: (e, n) => {
3458
- const t = sn.getModDate(n);
3459
+ const t = an.getModDate(n);
3459
3460
  return t ? e.formatDate(t, {
3460
3461
  dateStyle: "short",
3461
3462
  timeStyle: "short"
@@ -3464,18 +3465,18 @@ const Ho = 38, Go = 40, Vo = 13, zo = 14, $o = 27, Wo = 9, Uo = 10, jo = 100, Ko
3464
3465
  formatFileSize: (e, n) => {
3465
3466
  if (!n || typeof n.size != "number")
3466
3467
  return null;
3467
- const t = n.size, i = ur(t, {
3468
+ const t = n.size, i = mr(t, {
3468
3469
  bits: !1,
3469
3470
  output: "object"
3470
3471
  });
3471
3472
  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()}`;
3472
3473
  }
3473
- }, Yo = {
3474
+ }, Qo = {
3474
3475
  locale: he.EN,
3475
- formatters: { ...yt }
3476
- }, Xo = {
3476
+ formatters: { ...Ct }
3477
+ }, es = {
3477
3478
  locale: he.RU,
3478
- formatters: { ...yt },
3479
+ formatters: { ...Ct },
3479
3480
  messages: {
3480
3481
  "chonky.toolbar.searchPlaceholder": "Поиск",
3481
3482
  "chonky.toolbar.visibleFileCount": `{fileCount, plural,
@@ -3513,9 +3514,9 @@ const Ho = 38, Go = 40, Vo = 13, zo = 14, $o = 27, Wo = 9, Uo = 10, jo = 100, Ko
3513
3514
  [`chonky.actions.${F.ToggleHiddenFiles.id}.button.name`]: "Скрытые файлы",
3514
3515
  [`chonky.actions.${F.ToggleShowFoldersFirst.id}.button.name`]: "Папки в начале"
3515
3516
  }
3516
- }, Zo = {
3517
+ }, ts = {
3517
3518
  locale: he.HE,
3518
- formatters: { ...yt },
3519
+ formatters: { ...Ct },
3519
3520
  messages: {
3520
3521
  "chonky.toolbar.searchPlaceholder": "חיפוש",
3521
3522
  "chonky.toolbar.visibleFileCount": `{fileCount, plural,
@@ -3552,24 +3553,24 @@ const Ho = 38, Go = 40, Vo = 13, zo = 14, $o = 27, Wo = 9, Uo = 10, jo = 100, Ko
3552
3553
  [`chonky.actions.${F.ToggleHiddenFiles.id}.button.name`]: "קבצים נסתרים",
3553
3554
  [`chonky.actions.${F.ToggleShowFoldersFirst.id}.button.name`]: "הצגת תיקיות בראש הרשימה"
3554
3555
  }
3555
- }, Jo = {
3556
- [he.EN]: Yo,
3557
- [he.RU]: Xo,
3558
- [he.HE]: Zo
3556
+ }, ns = {
3557
+ [he.EN]: Qo,
3558
+ [he.RU]: es,
3559
+ [he.HE]: ts
3559
3560
  };
3560
- class qa extends sn {
3561
+ class tl extends an {
3561
3562
  }
3562
- const Ya = F, Qo = {
3563
+ const nl = F, is = {
3563
3564
  listView: F.EnableListView.id,
3564
3565
  gridView: F.EnableGridView.id
3565
3566
  };
3566
- lr({ iconComponent: dr });
3567
- const Xa = Ee.memo(
3567
+ dr({ iconComponent: hr });
3568
+ const il = Ee.memo(
3568
3569
  Ee.forwardRef(
3569
3570
  ({
3570
3571
  theme: e,
3571
3572
  styles: n = { height: "100%", minWidth: "600px" },
3572
- defaultView: t = Qo.listView,
3573
+ defaultView: t = is.listView,
3573
3574
  readOnlyMode: i = !1,
3574
3575
  locale: o,
3575
3576
  files: r,
@@ -3592,12 +3593,12 @@ const Xa = Ee.memo(
3592
3593
  }
3593
3594
  }
3594
3595
  })();
3595
- const L = ($) => $.replace(/([A-Z])/g, (te) => "-" + te.toLowerCase()), w = Be(() => e !== void 0 ? Object.keys(e).reduce((te, s) => {
3596
+ const T = ($) => $.replace(/([A-Z])/g, (te) => "-" + te.toLowerCase()), w = Be(() => e !== void 0 ? Object.keys(e).reduce((te, s) => {
3596
3597
  const a = e[s];
3597
- return s = s.startsWith("--") ? s : `--fp-theme-${L(s)}`, te[s] = a, te;
3598
- }, {}) : {}, [e]), [P, A] = D(!1), [H, Y] = D(), [G, U] = D(!1), [j, O] = D(), [z, k] = D();
3598
+ return s = s.startsWith("--") ? s : `--fp-theme-${T(s)}`, te[s] = a, te;
3599
+ }, {}) : {}, [e]), [P, A] = O(!1), [H, Y] = O(), [G, U] = O(!1), [j, D] = O(), [z, k] = O();
3599
3600
  return I(() => {
3600
- e && A(!0), Y(t), i ? U(!0) : O([F.CreateFolder, F.DeleteFiles]), o !== void 0 && k(Jo[o]);
3601
+ e && A(!0), Y(t), i ? U(!0) : D([F.CreateFolder, F.DeleteFiles]), o !== void 0 && k(ns[o]);
3601
3602
  }, [e, t, i, o]), /* @__PURE__ */ l(
3602
3603
  de,
3603
3604
  {
@@ -3606,7 +3607,7 @@ const Xa = Ee.memo(
3606
3607
  ...w
3607
3608
  },
3608
3609
  children: /* @__PURE__ */ l(
3609
- cr,
3610
+ ur,
3610
3611
  {
3611
3612
  ref: p,
3612
3613
  files: r ?? [],
@@ -3627,102 +3628,127 @@ const Xa = Ee.memo(
3627
3628
  );
3628
3629
  }
3629
3630
  )
3630
- );
3631
+ ), rs = (e) => /* @__PURE__ */ l(gr.Option, { ...e, children: /* @__PURE__ */ l(Kn, { label: e.label, checked: e.isSelected }) }), os = (e) => {
3632
+ const { styles: n } = e;
3633
+ return /* @__PURE__ */ l(pr, { isMulti: !0, components: { Option: rs }, styles: n, isClearable: !0, hideSelectedOptions: !1, closeMenuOnSelect: !1, ...e });
3634
+ }, rl = (e) => {
3635
+ const { values: n, options: t, onChange: i, placeholder: o, styles: r } = e, c = pt(), u = vt(c), [m, p] = O(n);
3636
+ return /* @__PURE__ */ l(mt, { theme: u, children: /* @__PURE__ */ l(
3637
+ Nn,
3638
+ {
3639
+ multiline: !0,
3640
+ fullWidth: !0,
3641
+ disableUnderline: !0,
3642
+ inputComponent: os,
3643
+ value: m,
3644
+ onChange: (T) => {
3645
+ p(T), i && i(T);
3646
+ },
3647
+ placeholder: o,
3648
+ id: "react-select-single",
3649
+ inputProps: {
3650
+ styles: r,
3651
+ options: t
3652
+ }
3653
+ }
3654
+ ) });
3655
+ };
3631
3656
  export {
3632
- Ka as Autocomplete,
3657
+ el as Autocomplete,
3633
3658
  dt as BboxCorner,
3634
3659
  de as Box,
3635
3660
  ht as COORDINATES_MERCATOR_FRACTION_DIGITS,
3636
3661
  ut as COORDINATES_WGS_FRACTION_DIGITS,
3637
- Na as Cesium3DTileset,
3638
- La as CesiumBoundingSphere,
3639
- Ta as CesiumCartesian2,
3640
- ba as CesiumCartesian3,
3641
- to as CesiumCartographic,
3642
- Ia as CesiumCesiumTerrainProvider,
3643
- $a as CesiumColor,
3644
- wa as CesiumConstantPositionProperty,
3645
- Ca as CesiumConstantProperty,
3646
- Do as CesiumCustomDataSource,
3647
- Wa as CesiumDrawingsDataSource,
3648
- Sa as CesiumEllipsoid,
3649
- xa as CesiumEllipsoidTerrainProvider,
3650
- Mo as CesiumEntity,
3651
- za as CesiumEntityDescription,
3652
- Po as CesiumEntityStaticDescription,
3653
- _a as CesiumGeographicTilingScheme,
3654
- Ba as CesiumGeojsonLayer,
3655
- Oa as CesiumHorizontalOrigin,
3662
+ $a as Cesium3DTileset,
3663
+ Oa as CesiumBoundingSphere,
3664
+ xa as CesiumCartesian2,
3665
+ Ia as CesiumCartesian3,
3666
+ oo as CesiumCartographic,
3667
+ Ba as CesiumCesiumTerrainProvider,
3668
+ Xa as CesiumColor,
3669
+ Pa as CesiumConstantPositionProperty,
3670
+ Ma as CesiumConstantProperty,
3671
+ Ro as CesiumCustomDataSource,
3672
+ Za as CesiumDrawingsDataSource,
3673
+ Da as CesiumEllipsoid,
3674
+ Na as CesiumEllipsoidTerrainProvider,
3675
+ Oo as CesiumEntity,
3676
+ Ya as CesiumEntityDescription,
3677
+ Do as CesiumEntityStaticDescription,
3678
+ Aa as CesiumGeographicTilingScheme,
3679
+ Wa as CesiumGeojsonLayer,
3680
+ Ha as CesiumHorizontalOrigin,
3656
3681
  Xe as CesiumImageryLayer,
3657
- Aa as CesiumLabelStyle,
3658
- Ra as CesiumMap,
3659
- tl as CesiumMath,
3660
- Va as CesiumOSMLayer,
3661
- xo as CesiumPolygonGraphics,
3662
- Ea as CesiumPolylineDashMaterialProperty,
3663
- Ma as CesiumRectangle,
3664
- Io as CesiumRectangleGraphics,
3665
- Pa as CesiumResource,
3682
+ Ga as CesiumLabelStyle,
3683
+ za as CesiumMap,
3684
+ cl as CesiumMath,
3685
+ qa as CesiumOSMLayer,
3686
+ Ao as CesiumPolygonGraphics,
3687
+ _a as CesiumPolylineDashMaterialProperty,
3688
+ ka as CesiumRectangle,
3689
+ ko as CesiumRectangleGraphics,
3690
+ Ra as CesiumResource,
3666
3691
  re as CesiumSceneMode,
3667
- Da as CesiumVerticalOrigin,
3668
- ka as CesiumViewer,
3669
- Fa as CesiumWMSLayer,
3670
- Ha as CesiumWMTSLayer,
3671
- Ga as CesiumXYZLayer,
3672
- no as CoordinatesTrackerTool,
3673
- ya as CssBaseline,
3674
- na as DateRangePicker,
3675
- ia as DateTimePicker,
3676
- fr as DateTimeRangePicker,
3677
- ea as DateTimeRangePickerFormControl,
3678
- be as DrawHelper,
3679
- Fr as DrawInteraction,
3692
+ Fa as CesiumVerticalOrigin,
3693
+ Va as CesiumViewer,
3694
+ Ua as CesiumWMSLayer,
3695
+ ja as CesiumWMTSLayer,
3696
+ Ka as CesiumXYZLayer,
3697
+ so as CoordinatesTrackerTool,
3698
+ Sa as CssBaseline,
3699
+ ca as DateRangePicker,
3700
+ da as DateTimePicker,
3701
+ Cr as DateTimeRangePicker,
3702
+ aa as DateTimeRangePickerFormControl,
3703
+ Te as DrawHelper,
3704
+ zr as DrawInteraction,
3680
3705
  le as DrawType,
3681
- qa as FileHelper,
3682
- Xa as FilePicker,
3683
- Ya as FilePickerActions,
3684
- Qo as FilePickerViewObj,
3685
- Nr as GeoJSONFeature,
3686
- Ua as InspectorTool,
3687
- ga as Legend,
3688
- pa as MVTSource,
3689
- Mr as Map,
3690
- ra as MapFilterContainer,
3691
- yr as Popover,
3706
+ tl as FileHelper,
3707
+ il as FilePicker,
3708
+ nl as FilePickerActions,
3709
+ is as FilePickerViewObj,
3710
+ Gr as GeoJSONFeature,
3711
+ Ja as InspectorTool,
3712
+ ba as Legend,
3713
+ wa as MVTSource,
3714
+ Or as Map,
3715
+ ua as MapFilterContainer,
3716
+ rl as MultiSelection,
3717
+ wr as Popover,
3692
3718
  ge as Proj,
3693
- ro as ScaleTrackerTool,
3694
- va as ScopedCssBaseline,
3695
- fa as SmartTable,
3719
+ lo as ScaleTrackerTool,
3720
+ La as ScopedCssBaseline,
3721
+ Ta as SmartTable,
3696
3722
  he as SupportedLocales,
3697
- ja as TerrainianHeightTool,
3698
- xr as TileLayer,
3699
- Br as TileOsm,
3700
- ca as TileWMS,
3701
- aa as TileWMTS,
3702
- ua as TileXYZ,
3703
- ta as TimeRangeInput,
3704
- Or as VectorLayer,
3705
- Rr as VectorSource,
3706
- oa as VectorTileLayer,
3707
- so as ZoomLevelTrackerTool,
3708
- nl as cesiumSampleTerrainMostDetailed,
3709
- yt as defaultFormatters,
3710
- ma as getMVTOptions,
3711
- la as getWMSOptions,
3712
- sa as getWMTSOptions,
3713
- da as getXYZOptions,
3723
+ Qa as TerrainianHeightTool,
3724
+ Ar as TileLayer,
3725
+ Vr as TileOsm,
3726
+ fa as TileWMS,
3727
+ pa as TileWMTS,
3728
+ va as TileXYZ,
3729
+ la as TimeRangeInput,
3730
+ Nr as VectorLayer,
3731
+ Hr as VectorSource,
3732
+ ha as VectorTileLayer,
3733
+ uo as ZoomLevelTrackerTool,
3734
+ dl as cesiumSampleTerrainMostDetailed,
3735
+ Ct as defaultFormatters,
3736
+ Ca as getMVTOptions,
3737
+ ga as getWMSOptions,
3738
+ ma as getWMTSOptions,
3739
+ ya as getXYZOptions,
3714
3740
  Qe as isDateRange,
3715
- hr as mapMcToMuiTheme,
3716
- Ro as polygonToGeoJSON,
3717
- No as rectangleToGeoJSON,
3718
- Bo as rectangleToPositions,
3741
+ fr as mapMcToMuiTheme,
3742
+ Ho as polygonToGeoJSON,
3743
+ Go as rectangleToGeoJSON,
3744
+ Vo as rectangleToPositions,
3719
3745
  se as useCesiumMap,
3720
3746
  ke as useMap,
3721
- an as useMappedMuiTheme,
3722
- Qa as useMediaQuery,
3747
+ vt as useMappedMuiTheme,
3748
+ al as useMediaQuery,
3723
3749
  qe as useTileLayer,
3724
- Dr as useVectorLayer,
3725
- kr as useVectorSource,
3726
- $r as useVectorTileLayer,
3727
- ha as useVectorTileSource
3750
+ Rr as useVectorLayer,
3751
+ Fr as useVectorSource,
3752
+ Kr as useVectorTileLayer,
3753
+ Ea as useVectorTileSource
3728
3754
  };