@carto/ps-react-maps 3.10.4 → 3.10.5

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.
package/dist/index.js CHANGED
@@ -1,25 +1,25 @@
1
- var At = Object.defineProperty;
2
- var Dt = (r, e, t) => e in r ? At(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
3
- var ee = (r, e, t) => Dt(r, typeof e != "symbol" ? e + "" : e, t);
4
- import { jsx as N, jsxs as ft } from "react/jsx-runtime";
5
- import { c as D } from "react/compiler-runtime";
6
- import { useEffect as z, useImperativeHandle as Ne, useMemo as oe, useCallback as Q, useState as se, createContext as He, useContext as Ge, useRef as _e } from "react";
7
- import { MapProvider as Rt, Map as $t, useMap as xt } from "react-map-gl/maplibre";
8
- import Ut from "@deck.gl/react";
9
- import { useMap as pt, APIProvider as Bt, Map as qt } from "@vis.gl/react-google-maps";
10
- import { GoogleMapsOverlay as jt } from "@deck.gl/google-maps";
1
+ var Dt = Object.defineProperty;
2
+ var Rt = (r, e, t) => e in r ? Dt(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
3
+ var ee = (r, e, t) => Rt(r, typeof e != "symbol" ? e + "" : e, t);
4
+ import { jsx as H, jsxs as ft } from "react/jsx-runtime";
5
+ import { c as A } from "react/compiler-runtime";
6
+ import { useImperativeHandle as Ne, useEffect as z, useMemo as oe, useCallback as Q, useState as se, createContext as He, useContext as Ge, useRef as _e } from "react";
7
+ import { MapProvider as $t, Map as xt, useMap as Ut } from "react-map-gl/maplibre";
8
+ import Bt from "@deck.gl/react";
9
+ import { useMap as pt, APIProvider as qt, Map as jt } from "@vis.gl/react-google-maps";
10
+ import { GoogleMapsOverlay as Vt } from "@deck.gl/google-maps";
11
11
  import { createStore as ze, useStore as Qe, create as mt } from "zustand";
12
- import { FlyToInterpolator as Vt, WebMercatorViewport as It } from "@deck.gl/core";
13
- import { CompositeMode as Nt, TranslateMode as Ht, ModifyMode as Gt, DrawPolygonByDraggingMode as zt, DrawCircleFromCenterMode as yt, DrawRectangleMode as Qt, DrawPolygonMode as Wt, EditableGeoJsonLayer as Kt, MeasureAreaMode as Zt, getPickedEditHandle as Yt, MeasureDistanceMode as Xt, ViewMode as Jt } from "@deck.gl-community/editable-layers";
12
+ import { FlyToInterpolator as It, WebMercatorViewport as yt } from "@deck.gl/core";
13
+ import { CompositeMode as Nt, TranslateMode as Ht, ModifyMode as Gt, DrawPolygonByDraggingMode as zt, DrawCircleFromCenterMode as ht, DrawRectangleMode as Qt, DrawPolygonMode as Wt, EditableGeoJsonLayer as Kt, MeasureAreaMode as Zt, getPickedEditHandle as Yt, MeasureDistanceMode as Xt, ViewMode as Jt } from "@deck.gl-community/editable-layers";
14
14
  import { DataFilterExtension as es, MaskExtension as ts } from "@deck.gl/extensions";
15
15
  import { EventManager as ss } from "mjolnir.js";
16
16
  import { GeoJsonLayer as ns } from "@deck.gl/layers";
17
- import { useShallow as ht } from "zustand/shallow";
18
- import { area as Ye, centroid as rs, lineIntersect as os, multiPolygon as gt } from "@turf/turf";
19
- import { formatNumber as bt, formatCurrency as is } from "@carto/ps-utils";
17
+ import { useShallow as gt } from "zustand/shallow";
18
+ import { area as Ye, centroid as rs, lineIntersect as os, multiPolygon as bt } from "@turf/turf";
19
+ import { formatNumber as vt, formatCurrency as is } from "@carto/ps-utils";
20
20
  import as from "convert-units";
21
21
  import ls from "convert-units/definitions/length";
22
- import { removeFilter as Xe, addFilter as vt, WidgetRasterSource as cs, WidgetTilesetSource as us, TileFormat as ds, WidgetTableSource as fs, WidgetQuerySource as ps, createViewportSpatialFilter as ms, vectorTilesetSource as ys } from "@carto/api-client";
22
+ import { removeFilter as Xe, addFilter as St, WidgetRasterSource as cs, WidgetTilesetSource as us, TileFormat as ds, WidgetTableSource as fs, WidgetQuerySource as ps, createViewportSpatialFilter as ms, vectorTilesetSource as ys } from "@carto/api-client";
23
23
  import { devtools as hs } from "zustand/middleware";
24
24
  import { useQuery as ne } from "@tanstack/react-query";
25
25
  import gs from "html2canvas";
@@ -78,8 +78,8 @@ function vs(r) {
78
78
  } : null;
79
79
  }
80
80
  function Ss(r) {
81
- const e = D(42);
82
- let t, s, n, o, i, a, l, c, y, p, g, f;
81
+ const e = A(39);
82
+ let t, s, n, o, i, a, l, c, h, p, g, f;
83
83
  e[0] !== r ? ({
84
84
  instanceRef: i,
85
85
  overlayRef: p,
@@ -91,46 +91,36 @@ function Ss(r) {
91
91
  getCursor: s,
92
92
  getTooltip: n,
93
93
  onLoad: c,
94
- onViewStateChange: y,
94
+ onViewStateChange: h,
95
95
  ...f
96
- } = r, e[0] = r, e[1] = t, e[2] = s, e[3] = n, e[4] = o, e[5] = i, e[6] = a, e[7] = l, e[8] = c, e[9] = y, e[10] = p, e[11] = g, e[12] = f) : (t = e[1], s = e[2], n = e[3], o = e[4], i = e[5], a = e[6], l = e[7], c = e[8], y = e[9], p = e[10], g = e[11], f = e[12]);
96
+ } = r, e[0] = r, e[1] = t, e[2] = s, e[3] = n, e[4] = o, e[5] = i, e[6] = a, e[7] = l, e[8] = c, e[9] = h, e[10] = p, e[11] = g, e[12] = f) : (t = e[1], s = e[2], n = e[3], o = e[4], i = e[5], a = e[6], l = e[7], c = e[8], h = e[9], p = e[10], g = e[11], f = e[12]);
97
97
  let m, b;
98
- e[13] !== c ? (m = () => {
99
- c({
100
- type: "load",
101
- value: !1
102
- }), c({
103
- type: "deckgl",
104
- value: !1
105
- });
106
- }, b = [c], e[13] = c, e[14] = m, e[15] = b) : (m = e[14], b = e[15]), z(m, b);
107
- let T, u;
108
- e[16] !== a ? (u = a.filter(Ts).map(Ms), e[16] = a, e[17] = u) : u = e[17], T = u;
109
- const h = T, S = i;
110
- let M;
111
- e[18] !== c ? (M = () => c({
98
+ e[13] !== a ? (b = a.filter(Ts).map(Ms), e[13] = a, e[14] = b) : b = e[14], m = b;
99
+ const T = m, u = i;
100
+ let y;
101
+ e[15] !== c ? (y = () => c({
112
102
  type: "deckgl",
113
103
  value: !0
114
- }), e[18] = c, e[19] = M) : M = e[19];
115
- let w;
116
- e[20] !== g ? (w = {
104
+ }), e[15] = c, e[16] = y) : y = e[16];
105
+ let S;
106
+ e[17] !== g ? (S = {
117
107
  depthTest: !1,
118
108
  ...g
119
- }, e[20] = g, e[21] = w) : w = e[21];
120
- let E;
121
- e[22] !== p ? (E = /* @__PURE__ */ N(Es, { overlayRef: p }), e[22] = p, e[23] = E) : E = e[23];
122
- let F;
123
- e[24] !== c ? (F = () => c({
109
+ }, e[17] = g, e[18] = S) : S = e[18];
110
+ let M;
111
+ e[19] !== p ? (M = /* @__PURE__ */ H(Es, { overlayRef: p }), e[19] = p, e[20] = M) : M = e[20];
112
+ let w;
113
+ e[21] !== c ? (w = () => c({
124
114
  type: "load",
125
115
  value: !0
126
- }), e[24] = c, e[25] = F) : F = e[25];
127
- let x;
128
- e[26] !== l || e[27] !== F ? (x = /* @__PURE__ */ N($t, { reuseMaps: !0, mapStyle: l, onLoad: F, onRender: ws }), e[26] = l, e[27] = F, e[28] = x) : x = e[28];
129
- let A;
130
- return e[29] !== h || e[30] !== t || e[31] !== s || e[32] !== n || e[33] !== o || e[34] !== y || e[35] !== f || e[36] !== x || e[37] !== S || e[38] !== M || e[39] !== w || e[40] !== E ? (A = /* @__PURE__ */ N(Rt, { children: /* @__PURE__ */ N("div", { className: "deckgl-map", children: /* @__PURE__ */ ft(Ut, { controller: t, id: o, ref: S, layers: h, getCursor: s, getTooltip: n, onLoad: M, onViewStateChange: y, parameters: w, ...f, children: [
131
- E,
132
- x
133
- ] }) }) }), e[29] = h, e[30] = t, e[31] = s, e[32] = n, e[33] = o, e[34] = y, e[35] = f, e[36] = x, e[37] = S, e[38] = M, e[39] = w, e[40] = E, e[41] = A) : A = e[41], A;
116
+ }), e[21] = c, e[22] = w) : w = e[22];
117
+ let E;
118
+ e[23] !== l || e[24] !== w ? (E = /* @__PURE__ */ H(xt, { reuseMaps: !1, mapStyle: l, onLoad: w, onRender: ws }), e[23] = l, e[24] = w, e[25] = E) : E = e[25];
119
+ let C;
120
+ return e[26] !== T || e[27] !== t || e[28] !== s || e[29] !== n || e[30] !== o || e[31] !== h || e[32] !== f || e[33] !== u || e[34] !== y || e[35] !== S || e[36] !== M || e[37] !== E ? (C = /* @__PURE__ */ H($t, { children: /* @__PURE__ */ H("div", { className: "deckgl-map", children: /* @__PURE__ */ ft(Bt, { controller: t, id: o, ref: u, layers: T, getCursor: s, getTooltip: n, onLoad: y, onViewStateChange: h, parameters: S, ...f, children: [
121
+ M,
122
+ E
123
+ ] }) }) }), e[26] = T, e[27] = t, e[28] = s, e[29] = n, e[30] = o, e[31] = h, e[32] = f, e[33] = u, e[34] = y, e[35] = S, e[36] = M, e[37] = E, e[38] = C) : C = e[38], C;
134
124
  }
135
125
  function ws() {
136
126
  const r = document.querySelector(".maplibregl-compact-show");
@@ -147,18 +137,18 @@ function Ts(r) {
147
137
  return !!(r != null && r.type);
148
138
  }
149
139
  function Es(r) {
150
- const e = D(3), {
140
+ const e = A(3), {
151
141
  overlayRef: t
152
142
  } = r, {
153
143
  default: s
154
- } = xt();
144
+ } = Ut();
155
145
  let n, o;
156
146
  return e[0] !== s ? (n = () => s, o = [s], e[0] = s, e[1] = n, e[2] = o) : (n = e[1], o = e[2]), Ne(t, n, o), null;
157
147
  }
158
148
  const _s = (r) => {
159
- const e = D(9);
149
+ const e = A(9);
160
150
  let t, s;
161
- e[0] === Symbol.for("react.memo_cache_sentinel") ? (s = new jt({
151
+ e[0] === Symbol.for("react.memo_cache_sentinel") ? (s = new Vt({
162
152
  interleaved: !0
163
153
  }), e[0] = s) : s = e[0], t = s;
164
154
  const n = t, o = pt();
@@ -168,12 +158,12 @@ const _s = (r) => {
168
158
  e[3] !== o ? (l = () => (n.setMap(o), () => {
169
159
  n.finalize();
170
160
  }), c = [n, o], e[3] = o, e[4] = l, e[5] = c) : (l = e[4], c = e[5]), z(l, c);
171
- let y, p;
172
- return e[6] !== r ? (y = () => {
161
+ let h, p;
162
+ return e[6] !== r ? (h = () => {
173
163
  n.setProps(r);
174
- }, p = [n, r], e[6] = r, e[7] = y, e[8] = p) : (y = e[7], p = e[8]), z(y, p), null;
164
+ }, p = [n, r], e[6] = r, e[7] = h, e[8] = p) : (h = e[7], p = e[8]), z(h, p), null;
175
165
  };
176
- function Ps({
166
+ function Ls({
177
167
  id: r,
178
168
  instanceRef: e,
179
169
  basemap: t,
@@ -188,19 +178,10 @@ function Ps({
188
178
  overlayRef: a,
189
179
  parameters: l,
190
180
  onLoad: c,
191
- onViewStateChange: y,
181
+ onViewStateChange: h,
192
182
  ...p
193
183
  }) {
194
- var b, T, u, h, S;
195
- z(() => {
196
- c({
197
- type: "load",
198
- value: !1
199
- }), c({
200
- type: "deckgl",
201
- value: !1
202
- });
203
- }, [c]);
184
+ var b, T, u, y, S;
204
185
  const g = oe(() => s.filter((M) => !!(M != null && M.type)).map(({
205
186
  type: M,
206
187
  props: w
@@ -209,47 +190,47 @@ function Ps({
209
190
  center: M,
210
191
  zoom: w,
211
192
  heading: E,
212
- tilt: F
193
+ tilt: C
213
194
  }
214
195
  }) => ({
215
196
  latitude: M.lat,
216
197
  longitude: M.lng,
217
198
  zoom: w - 1,
218
199
  bearing: E,
219
- pitch: F
200
+ pitch: C
220
201
  }), []), m = Q((M) => {
221
- const w = e == null ? void 0 : e.current, E = w == null ? void 0 : w._deck, F = {
202
+ const w = e == null ? void 0 : e.current, E = w == null ? void 0 : w._deck, C = {
222
203
  // @ts-expect-error accessing protected props
223
204
  ...E == null ? void 0 : E.viewState,
224
205
  ...M
225
- }, x = {
226
- latitude: F.latitude,
227
- longitude: F.longitude,
228
- zoom: F.zoom,
229
- pitch: F.pitch,
230
- bearing: F.bearing,
206
+ }, U = {
207
+ latitude: C.latitude,
208
+ longitude: C.longitude,
209
+ zoom: C.zoom,
210
+ pitch: C.pitch,
211
+ bearing: C.bearing,
231
212
  // @ts-expect-error - `width` and `height` is not in the types
232
213
  width: E == null ? void 0 : E.width,
233
214
  height: E == null ? void 0 : E.height
234
215
  };
235
- y == null || y({
236
- viewState: x,
216
+ h == null || h({
217
+ viewState: U,
237
218
  interactionState: {
238
219
  isZooming: !0
239
220
  }
240
221
  });
241
- }, [e, y]);
242
- return /* @__PURE__ */ N(Bt, { apiKey: n, ...o, children: /* @__PURE__ */ N("div", { className: "deckgl-map", children: /* @__PURE__ */ ft(qt, { id: r, mapTypeId: t, disableDefaultUI: !0, gestureHandling: "greedy", ...i, center: {
222
+ }, [e, h]);
223
+ return /* @__PURE__ */ H(qt, { apiKey: n, ...o, children: /* @__PURE__ */ H("div", { className: "deckgl-map", children: /* @__PURE__ */ ft(jt, { id: r, mapTypeId: t, disableDefaultUI: !0, gestureHandling: "greedy", ...i, center: {
243
224
  lat: ((b = p.initialViewState) == null ? void 0 : b.latitude) ?? 0,
244
225
  lng: ((T = p.initialViewState) == null ? void 0 : T.longitude) ?? 0
245
- }, zoom: (((u = p.initialViewState) == null ? void 0 : u.zoom) ?? 0) + 1, tilt: (h = p.initialViewState) == null ? void 0 : h.pitch, heading: (S = p.initialViewState) == null ? void 0 : S.bearing, onTilesLoaded: () => {
226
+ }, zoom: (((u = p.initialViewState) == null ? void 0 : u.zoom) ?? 0) + 1, tilt: (y = p.initialViewState) == null ? void 0 : y.pitch, heading: (S = p.initialViewState) == null ? void 0 : S.bearing, onTilesLoaded: () => {
246
227
  c({
247
228
  type: "load",
248
229
  value: !0
249
230
  }), m(p.initialViewState);
250
231
  }, onBoundsChanged: (M) => m(f(M)), onZoomChanged: (M) => m(f(M)), children: [
251
- /* @__PURE__ */ N(Ls, { id: r, overlayRef: a }),
252
- /* @__PURE__ */ N(_s, { id: r, instanceRef: e, layers: g, onLoad: () => {
232
+ /* @__PURE__ */ H(Ps, { id: r, overlayRef: a }),
233
+ /* @__PURE__ */ H(_s, { id: r, instanceRef: e, layers: g, onLoad: () => {
253
234
  c({
254
235
  type: "deckgl",
255
236
  value: !0
@@ -261,8 +242,8 @@ function Ps({
261
242
  }, ...p })
262
243
  ] }) }) });
263
244
  }
264
- function Ls(r) {
265
- const e = D(3), {
245
+ function Ps(r) {
246
+ const e = A(3), {
266
247
  id: t,
267
248
  overlayRef: s
268
249
  } = r, n = pt(t);
@@ -270,50 +251,60 @@ function Ls(r) {
270
251
  return e[0] !== n ? (o = () => n, i = [n], e[0] = n, e[1] = o, e[2] = i) : (o = e[1], i = e[2]), Ne(s, o, i), null;
271
252
  }
272
253
  function Os(r) {
273
- const e = D(46);
274
- let t, s, n, o, i, a, l, c, y, p, g, f;
254
+ const e = A(48);
255
+ let t, s, n, o, i, a, l, c, h, p, g, f;
275
256
  e[0] !== r ? ({
276
257
  instanceRef: s,
277
258
  overlayRef: o,
278
259
  basemap: a,
279
260
  controller: l,
280
261
  id: c,
281
- layers: y,
262
+ layers: h,
282
263
  gmapsProps: t,
283
264
  getCursor: p,
284
265
  getTooltip: g,
285
266
  onLoad: n,
286
267
  onViewStateChange: f,
287
268
  ...i
288
- } = r, e[0] = r, e[1] = t, e[2] = s, e[3] = n, e[4] = o, e[5] = i, e[6] = a, e[7] = l, e[8] = c, e[9] = y, e[10] = p, e[11] = g, e[12] = f) : (t = e[1], s = e[2], n = e[3], o = e[4], i = e[5], a = e[6], l = e[7], c = e[8], y = e[9], p = e[10], g = e[11], f = e[12]);
269
+ } = r, e[0] = r, e[1] = t, e[2] = s, e[3] = n, e[4] = o, e[5] = i, e[6] = a, e[7] = l, e[8] = c, e[9] = h, e[10] = p, e[11] = g, e[12] = f) : (t = e[1], s = e[2], n = e[3], o = e[4], i = e[5], a = e[6], l = e[7], c = e[8], h = e[9], p = e[10], g = e[11], f = e[12]);
289
270
  const m = a === void 0 ? J.positron : a, b = l === void 0 ? !0 : l, T = c === void 0 ? "deck-gl-map" : c;
290
271
  let u;
291
- e[13] !== y ? (u = y === void 0 ? [] : y, e[13] = y, e[14] = u) : u = e[14];
292
- const h = u, S = p === void 0 ? bs : p, M = g === void 0 ? vs : g, w = f === void 0 ? Cs : f;
272
+ e[13] !== h ? (u = h === void 0 ? [] : h, e[13] = h, e[14] = u) : u = e[14];
273
+ const y = u, S = p === void 0 ? bs : p, M = g === void 0 ? vs : g, w = f === void 0 ? Cs : f;
293
274
  let E;
294
275
  e[15] === Symbol.for("react.memo_cache_sentinel") ? (E = [!1, !1], e[15] = E) : E = e[15];
295
- const [F, x] = se(E);
296
- let A;
297
- e[16] !== F ? (A = F.every(Fs), e[16] = F, e[17] = A) : A = e[17];
298
- const q = A, {
276
+ const [C, U] = se(E);
277
+ let R;
278
+ e[16] !== C ? (R = C.every(Fs), e[16] = C, e[17] = R) : R = e[17];
279
+ const j = R, {
299
280
  url: B,
300
- type: U
301
- } = ye[m], _ = U === te.googleMaps;
302
- let C;
303
- e[18] === Symbol.for("react.memo_cache_sentinel") ? (C = (L) => {
304
- const O = L.type === "deckgl" ? 0 : 1;
305
- x((H) => H.map((W, K) => K === O ? L.value : W));
306
- }, e[18] = C) : C = e[18];
307
- const d = C;
308
- let v, P;
309
- if (e[19] !== q || e[20] !== n ? (v = () => {
310
- n == null || n(q);
311
- }, P = [q, n], e[19] = q, e[20] = n, e[21] = v, e[22] = P) : (v = e[21], P = e[22]), z(v, P), _) {
312
- let L;
313
- return e[23] !== m || e[24] !== b || e[25] !== S || e[26] !== M || e[27] !== t || e[28] !== T || e[29] !== s || e[30] !== h || e[31] !== w || e[32] !== o || e[33] !== i ? (L = /* @__PURE__ */ N(Ps, { instanceRef: s, overlayRef: o, controller: b, id: T, basemap: m, layers: h, gmapsProps: t, getCursor: S, getTooltip: M, onLoad: d, onViewStateChange: w, ...i }), e[23] = m, e[24] = b, e[25] = S, e[26] = M, e[27] = t, e[28] = T, e[29] = s, e[30] = h, e[31] = w, e[32] = o, e[33] = i, e[34] = L) : L = e[34], L;
281
+ type: x
282
+ } = ye[m], _ = x === te.googleMaps;
283
+ let F;
284
+ e[18] === Symbol.for("react.memo_cache_sentinel") ? (F = (V) => {
285
+ const K = V.type === "deckgl" ? 0 : 1;
286
+ U((Z) => Z.map((q, W) => W === K ? V.value : q));
287
+ }, e[18] = F) : F = e[18];
288
+ const d = F;
289
+ let v, L;
290
+ e[19] === Symbol.for("react.memo_cache_sentinel") ? (v = () => () => {
291
+ d({
292
+ type: "load",
293
+ value: !1
294
+ }), d({
295
+ type: "deckgl",
296
+ value: !1
297
+ });
298
+ }, L = [d], e[19] = v, e[20] = L) : (v = e[19], L = e[20]), z(v, L);
299
+ let k, O;
300
+ if (e[21] !== j || e[22] !== n ? (k = () => {
301
+ n == null || n(j);
302
+ }, O = [j, n], e[21] = j, e[22] = n, e[23] = k, e[24] = O) : (k = e[23], O = e[24]), z(k, O), _) {
303
+ let V;
304
+ return e[25] !== m || e[26] !== b || e[27] !== S || e[28] !== M || e[29] !== t || e[30] !== T || e[31] !== s || e[32] !== y || e[33] !== w || e[34] !== o || e[35] !== i ? (V = /* @__PURE__ */ H(Ls, { instanceRef: s, overlayRef: o, controller: b, id: T, basemap: m, layers: y, gmapsProps: t, getCursor: S, getTooltip: M, onLoad: d, onViewStateChange: w, ...i }), e[25] = m, e[26] = b, e[27] = S, e[28] = M, e[29] = t, e[30] = T, e[31] = s, e[32] = y, e[33] = w, e[34] = o, e[35] = i, e[36] = V) : V = e[36], V;
314
305
  }
315
- let k;
316
- return e[35] !== b || e[36] !== S || e[37] !== M || e[38] !== T || e[39] !== s || e[40] !== h || e[41] !== B || e[42] !== w || e[43] !== o || e[44] !== i ? (k = /* @__PURE__ */ N(Ss, { instanceRef: s, overlayRef: o, controller: b, id: T, layers: h, mapStyle: B, getCursor: S, getTooltip: M, onLoad: d, onViewStateChange: w, ...i }), e[35] = b, e[36] = S, e[37] = M, e[38] = T, e[39] = s, e[40] = h, e[41] = B, e[42] = w, e[43] = o, e[44] = i, e[45] = k) : k = e[45], k;
306
+ let P;
307
+ return e[37] !== b || e[38] !== S || e[39] !== M || e[40] !== T || e[41] !== s || e[42] !== y || e[43] !== B || e[44] !== w || e[45] !== o || e[46] !== i ? (P = /* @__PURE__ */ H(Ss, { instanceRef: s, overlayRef: o, controller: b, id: T, layers: y, mapStyle: B, getCursor: S, getTooltip: M, onLoad: d, onViewStateChange: w, ...i }), e[37] = b, e[38] = S, e[39] = M, e[40] = T, e[41] = s, e[42] = y, e[43] = B, e[44] = w, e[45] = o, e[46] = i, e[47] = P) : P = e[47], P;
317
308
  }
318
309
  function Fs(r) {
319
310
  return r;
@@ -323,7 +314,7 @@ function Cs() {
323
314
  }
324
315
  const ks = {
325
316
  transitionDuration: "auto",
326
- transitionInterpolator: new Vt({
317
+ transitionInterpolator: new It({
327
318
  curve: 2
328
319
  })
329
320
  }, As = (r) => {
@@ -347,12 +338,12 @@ const ks = {
347
338
  return (t, s) => ({
348
339
  maps: e,
349
340
  setBasemap: (n, o) => t((i) => {
350
- var y;
341
+ var h;
351
342
  const {
352
343
  type: a
353
344
  } = ye[i.maps[n].basemap], {
354
345
  type: l
355
- } = ye[o], c = a === l && !!((y = i.maps[n]) != null && y.isLoaded);
346
+ } = ye[o], c = a === l && !!((h = i.maps[n]) != null && h.isLoaded);
356
347
  return {
357
348
  maps: {
358
349
  ...i.maps,
@@ -399,18 +390,20 @@ const ks = {
399
390
  return (c = l == null ? void 0 : l.getViewports(i)) == null ? void 0 : c[o];
400
391
  },
401
392
  getBounds: (n, o, i) => {
402
- var y;
403
- const a = s(), l = (y = a.getViewport) == null ? void 0 : y.call(a, n);
393
+ var p, g;
394
+ const a = s();
395
+ if (!((g = (p = a.maps) == null ? void 0 : p[n]) != null && g.isLoaded)) return;
396
+ const l = a.getViewState(n);
404
397
  return l ? {
405
- ...l == null ? void 0 : l.fitBounds(o, i == null ? void 0 : i.boundsOptions),
398
+ ...new yt(l).fitBounds(o, i == null ? void 0 : i.boundsOptions),
406
399
  ...i == null ? void 0 : i.viewStateOptions
407
400
  } : void 0;
408
401
  },
409
402
  addLayers: (n, o) => t((i) => {
410
- var y;
403
+ var h;
411
404
  const a = {
412
405
  ...i.maps
413
- }, l = ((y = a[n]) == null ? void 0 : y.layers) ?? [], c = /* @__PURE__ */ new Set([...l, ...o]);
406
+ }, l = ((h = a[n]) == null ? void 0 : h.layers) ?? [], c = /* @__PURE__ */ new Set([...l, ...o]);
414
407
  return a[n] = {
415
408
  ...a[n],
416
409
  layers: [...c]
@@ -425,7 +418,7 @@ const ks = {
425
418
  }, l = ((c = a[n]) == null ? void 0 : c.layers) ?? [];
426
419
  return a[n] = {
427
420
  ...a[n],
428
- layers: l.filter((y) => !o.includes(y))
421
+ layers: l.filter((h) => !o.includes(h))
429
422
  }, {
430
423
  maps: a
431
424
  };
@@ -463,7 +456,7 @@ const ks = {
463
456
  var a;
464
457
  const o = s();
465
458
  if (!((a = o.maps[n]) != null && a.isLoaded)) return;
466
- const i = new It(o.viewStates[n]);
459
+ const i = new yt(o.viewStates[n]);
467
460
  t((l) => ({
468
461
  viewports: {
469
462
  ...l.viewports,
@@ -564,9 +557,9 @@ const ks = {
564
557
  ...Rs(r)(...e),
565
558
  ...xs(r)(...e),
566
559
  ...$s(...e)
567
- })), St = He({});
560
+ })), wt = He({});
568
561
  function Bs(r) {
569
- const e = D(5), {
562
+ const e = A(5), {
570
563
  children: t,
571
564
  values: s
572
565
  } = r;
@@ -574,26 +567,26 @@ function Bs(r) {
574
567
  e[0] !== s ? (n = Us(s), e[0] = s, e[1] = n) : n = e[1];
575
568
  const [o] = se(n);
576
569
  let i;
577
- return e[2] !== t || e[3] !== o ? (i = /* @__PURE__ */ N(St.Provider, { value: o, children: t }), e[2] = t, e[3] = o, e[4] = i) : i = e[4], i;
570
+ return e[2] !== t || e[3] !== o ? (i = /* @__PURE__ */ H(wt.Provider, { value: o, children: t }), e[2] = t, e[3] = o, e[4] = i) : i = e[4], i;
578
571
  }
579
572
  function $(r) {
580
- const e = Ge(St);
573
+ const e = Ge(wt);
581
574
  if (!Object.keys(e).length)
582
575
  throw new Error("Missing MapProvider in the tree");
583
576
  return Qe(e, r);
584
577
  }
585
578
  function Qr(r) {
586
- const e = D(9), {
579
+ const e = A(9), {
587
580
  children: t,
588
581
  mapId: s
589
582
  } = r;
590
583
  let n;
591
- e[0] !== s ? (n = (y) => y.maps[s], e[0] = s, e[1] = n) : n = e[1];
584
+ e[0] !== s ? (n = (h) => h.maps[s], e[0] = s, e[1] = n) : n = e[1];
592
585
  const {
593
586
  basemap: o
594
587
  } = $(n), i = $(qs);
595
588
  let a;
596
- e[2] !== s || e[3] !== i ? (a = (y) => i(s, y), e[2] = s, e[3] = i, e[4] = a) : a = e[4];
589
+ e[2] !== s || e[3] !== i ? (a = (h) => i(s, h), e[2] = s, e[3] = i, e[4] = a) : a = e[4];
597
590
  const l = a;
598
591
  let c;
599
592
  return e[5] !== o || e[6] !== t || e[7] !== l ? (c = t({
@@ -604,7 +597,7 @@ function Qr(r) {
604
597
  function qs(r) {
605
598
  return r.setBasemap;
606
599
  }
607
- const Y = {
600
+ const X = {
608
601
  addFeature: "addFeature",
609
602
  addTentativePosition: "addTentativePosition",
610
603
  updateTentativeFeature: "updateTentativeFeature",
@@ -619,12 +612,12 @@ class js extends Nt {
619
612
  handleKeyUp(e, t) {
620
613
  super.handleKeyUp(e, t), e.key === "Enter" && (this.resetClickSequence(), t.onEdit({
621
614
  updatedData: t.data,
622
- editType: Y.addFeature,
615
+ editType: X.addFeature,
623
616
  editContext: {}
624
617
  }));
625
618
  }
626
619
  }
627
- const ce = "lassoLayer", Le = "maskLayer", Vs = {
620
+ const ce = "lassoLayer", Pe = "maskLayer", Vs = {
628
621
  id: ce,
629
622
  billboard: !1,
630
623
  editHandlePointRadiusUnits: "pixels",
@@ -660,7 +653,7 @@ const ce = "lassoLayer", Le = "maskLayer", Vs = {
660
653
  }, Is = [new es({
661
654
  filterSize: 1
662
655
  })], Me = {
663
- id: Le,
656
+ id: Pe,
664
657
  operation: "mask",
665
658
  pickable: !1,
666
659
  visible: !0,
@@ -677,7 +670,7 @@ const ce = "lassoLayer", Le = "maskLayer", Vs = {
677
670
  },
678
671
  circle: {
679
672
  value: "circle",
680
- mode: yt
673
+ mode: ht
681
674
  },
682
675
  lasso: {
683
676
  value: "lasso",
@@ -701,7 +694,7 @@ const ce = "lassoLayer", Le = "maskLayer", Vs = {
701
694
  const o = n[e] ?? {
702
695
  type: null,
703
696
  props: {}
704
- }, i = [...o.props.extensions ?? [], ...((l = t.props) == null ? void 0 : l.extensions) ?? []].reduce((y, p) => (y.some((g) => g.equals(p)) || y.push(p), y), []), a = o.legend || t.legend ? {
697
+ }, i = [...o.props.extensions ?? [], ...((l = t.props) == null ? void 0 : l.extensions) ?? []].reduce((h, p) => (h.some((g) => g.equals(p)) || h.push(p), h), []), a = o.legend || t.legend ? {
705
698
  ...o.legend,
706
699
  ...t.legend
707
700
  } : void 0;
@@ -733,22 +726,22 @@ const ce = "lassoLayer", Le = "maskLayer", Vs = {
733
726
  })
734
727
  }));
735
728
  var Te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
736
- function wt(r) {
729
+ function Mt(r) {
737
730
  return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
738
731
  }
739
732
  var Be, et;
740
733
  function Ns() {
741
734
  if (et) return Be;
742
735
  et = 1;
743
- var r = function(h) {
744
- return e(h) && !t(h);
736
+ var r = function(y) {
737
+ return e(y) && !t(y);
745
738
  };
746
739
  function e(u) {
747
740
  return !!u && typeof u == "object";
748
741
  }
749
742
  function t(u) {
750
- var h = Object.prototype.toString.call(u);
751
- return h === "[object RegExp]" || h === "[object Date]" || o(u);
743
+ var y = Object.prototype.toString.call(u);
744
+ return y === "[object RegExp]" || y === "[object Date]" || o(u);
752
745
  }
753
746
  var s = typeof Symbol == "function" && Symbol.for, n = s ? Symbol.for("react.element") : 60103;
754
747
  function o(u) {
@@ -757,55 +750,55 @@ function Ns() {
757
750
  function i(u) {
758
751
  return Array.isArray(u) ? [] : {};
759
752
  }
760
- function a(u, h) {
761
- return h.clone !== !1 && h.isMergeableObject(u) ? b(i(u), u, h) : u;
753
+ function a(u, y) {
754
+ return y.clone !== !1 && y.isMergeableObject(u) ? b(i(u), u, y) : u;
762
755
  }
763
- function l(u, h, S) {
764
- return u.concat(h).map(function(M) {
756
+ function l(u, y, S) {
757
+ return u.concat(y).map(function(M) {
765
758
  return a(M, S);
766
759
  });
767
760
  }
768
- function c(u, h) {
769
- if (!h.customMerge)
761
+ function c(u, y) {
762
+ if (!y.customMerge)
770
763
  return b;
771
- var S = h.customMerge(u);
764
+ var S = y.customMerge(u);
772
765
  return typeof S == "function" ? S : b;
773
766
  }
774
- function y(u) {
775
- return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(u).filter(function(h) {
776
- return Object.propertyIsEnumerable.call(u, h);
767
+ function h(u) {
768
+ return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(u).filter(function(y) {
769
+ return Object.propertyIsEnumerable.call(u, y);
777
770
  }) : [];
778
771
  }
779
772
  function p(u) {
780
- return Object.keys(u).concat(y(u));
773
+ return Object.keys(u).concat(h(u));
781
774
  }
782
- function g(u, h) {
775
+ function g(u, y) {
783
776
  try {
784
- return h in u;
777
+ return y in u;
785
778
  } catch {
786
779
  return !1;
787
780
  }
788
781
  }
789
- function f(u, h) {
790
- return g(u, h) && !(Object.hasOwnProperty.call(u, h) && Object.propertyIsEnumerable.call(u, h));
782
+ function f(u, y) {
783
+ return g(u, y) && !(Object.hasOwnProperty.call(u, y) && Object.propertyIsEnumerable.call(u, y));
791
784
  }
792
- function m(u, h, S) {
785
+ function m(u, y, S) {
793
786
  var M = {};
794
787
  return S.isMergeableObject(u) && p(u).forEach(function(w) {
795
788
  M[w] = a(u[w], S);
796
- }), p(h).forEach(function(w) {
797
- f(u, w) || (g(u, w) && S.isMergeableObject(h[w]) ? M[w] = c(w, S)(u[w], h[w], S) : M[w] = a(h[w], S));
789
+ }), p(y).forEach(function(w) {
790
+ f(u, w) || (g(u, w) && S.isMergeableObject(y[w]) ? M[w] = c(w, S)(u[w], y[w], S) : M[w] = a(y[w], S));
798
791
  }), M;
799
792
  }
800
- function b(u, h, S) {
793
+ function b(u, y, S) {
801
794
  S = S || {}, S.arrayMerge = S.arrayMerge || l, S.isMergeableObject = S.isMergeableObject || r, S.cloneUnlessOtherwiseSpecified = a;
802
- var M = Array.isArray(h), w = Array.isArray(u), E = M === w;
803
- return E ? M ? S.arrayMerge(u, h, S) : m(u, h, S) : a(h, S);
795
+ var M = Array.isArray(y), w = Array.isArray(u), E = M === w;
796
+ return E ? M ? S.arrayMerge(u, y, S) : m(u, y, S) : a(y, S);
804
797
  }
805
- b.all = function(h, S) {
806
- if (!Array.isArray(h))
798
+ b.all = function(y, S) {
799
+ if (!Array.isArray(y))
807
800
  throw new Error("first argument should be an array");
808
- return h.reduce(function(M, w) {
801
+ return y.reduce(function(M, w) {
809
802
  return b(M, w, S);
810
803
  }, {});
811
804
  };
@@ -813,8 +806,8 @@ function Ns() {
813
806
  return Be = T, Be;
814
807
  }
815
808
  var Hs = Ns();
816
- const ue = /* @__PURE__ */ wt(Hs), tt = ["anyclick", "pointermove", "panstart", "panmove", "panend", "keyup"];
817
- class Mt extends Kt {
809
+ const ue = /* @__PURE__ */ Mt(Hs), tt = ["anyclick", "pointermove", "panstart", "panmove", "panend", "keyup"];
810
+ class Tt extends Kt {
818
811
  updateState({
819
812
  props: e,
820
813
  oldProps: t,
@@ -856,7 +849,7 @@ function Gs({
856
849
  }) {
857
850
  const t = zs(e);
858
851
  return {
859
- type: Mt,
852
+ type: Tt,
860
853
  props: {
861
854
  ...t,
862
855
  mode: r
@@ -898,14 +891,14 @@ const Qs = (r) => ze()((e) => ({
898
891
  modeInstance: a = new Ue.polygon.mode(),
899
892
  modes: l = Ue,
900
893
  modeSelected: c = Ue.polygon.value,
901
- values: y = {}
894
+ values: h = {}
902
895
  } = n;
903
896
  return s[i] = {
904
897
  enabled: o,
905
898
  modeInstance: a,
906
899
  modes: l,
907
900
  modeSelected: c,
908
- values: y
901
+ values: h
909
902
  }, s;
910
903
  }, {}),
911
904
  setEnabled: (s, n) => {
@@ -983,9 +976,9 @@ const Qs = (r) => ze()((e) => ({
983
976
  }
984
977
  }));
985
978
  }
986
- })), Tt = He({});
979
+ })), Et = He({});
987
980
  function Ws(r) {
988
- const e = D(5), {
981
+ const e = A(5), {
989
982
  children: t,
990
983
  values: s
991
984
  } = r;
@@ -993,10 +986,10 @@ function Ws(r) {
993
986
  e[0] !== s ? (n = () => Qs(s), e[0] = s, e[1] = n) : n = e[1];
994
987
  const [o] = se(n);
995
988
  let i;
996
- return e[2] !== t || e[3] !== o ? (i = /* @__PURE__ */ N(Tt.Provider, { value: o, children: t }), e[2] = t, e[3] = o, e[4] = i) : i = e[4], i;
989
+ return e[2] !== t || e[3] !== o ? (i = /* @__PURE__ */ H(Et.Provider, { value: o, children: t }), e[2] = t, e[3] = o, e[4] = i) : i = e[4], i;
997
990
  }
998
991
  function G(r) {
999
- const e = Ge(Tt);
992
+ const e = Ge(Et);
1000
993
  if (!Object.keys(e).length)
1001
994
  throw new Error("Missing LassoToolsProvider in the tree");
1002
995
  return Qe(e, r);
@@ -1017,14 +1010,14 @@ function Ks({
1017
1010
  }), l = G((f) => f.setModeSelected), c = G((f) => {
1018
1011
  var m;
1019
1012
  return (m = f.data[r]) == null ? void 0 : m.modes;
1020
- }), y = G((f) => f.setModeInstance);
1013
+ }), h = G((f) => f.setModeInstance);
1021
1014
  z(() => {
1022
1015
  const f = c[a];
1023
1016
  if (f && t) {
1024
1017
  const m = f.mode;
1025
- y(r, new m());
1018
+ h(r, new m());
1026
1019
  }
1027
- }, [t, r, a, c, y]);
1020
+ }, [t, r, a, c, h]);
1028
1021
  const [
1029
1022
  p
1030
1023
  // , draw
@@ -1059,7 +1052,7 @@ function Ks({
1059
1052
  setModeSelected: g
1060
1053
  });
1061
1054
  }
1062
- function Et({
1055
+ function _t({
1063
1056
  values: r
1064
1057
  }) {
1065
1058
  return Object.values(r ?? {}).filter((e) => e.type === "mask");
@@ -1068,7 +1061,7 @@ const Zs = as({
1068
1061
  length: ls
1069
1062
  });
1070
1063
  function st(r, e) {
1071
- return Zs(r).from(ot[V.meter]).to(ot[e]);
1064
+ return Zs(r).from(ot[I.meter]).to(ot[e]);
1072
1065
  }
1073
1066
  const nt = 1e4;
1074
1067
  function Oe({
@@ -1085,12 +1078,12 @@ function Oe({
1085
1078
  const o = e === Ie["m-km"], i = e === Ie["ft-mi"], a = o || i;
1086
1079
  let l, c;
1087
1080
  if (a) {
1088
- const y = r < (s ?? nt);
1089
- let p = y ? V.meter : V.kilometer;
1090
- l = y ? me.meter : me.kilometer, i && (l = y ? me.feet : me.mile, p = y ? V.feet : V.mile), c = st(r, p);
1081
+ const h = r < (s ?? nt);
1082
+ let p = h ? I.meter : I.kilometer;
1083
+ l = h ? me.meter : me.kilometer, i && (l = h ? me.feet : me.mile, p = h ? I.feet : I.mile), c = st(r, p);
1091
1084
  } else
1092
1085
  l = me[e], c = st(r, e);
1093
- return `${bt(c, t, {
1086
+ return `${vt(c, t, {
1094
1087
  style: "unit",
1095
1088
  unit: l,
1096
1089
  unitDisplay: "short",
@@ -1110,7 +1103,7 @@ function Wr(r, {
1110
1103
  doubleClickZoom: e
1111
1104
  };
1112
1105
  }
1113
- function _t(r, e, t) {
1106
+ function Lt(r, e, t) {
1114
1107
  if (r > 0) {
1115
1108
  const {
1116
1109
  formatTooltip: s,
@@ -1171,7 +1164,7 @@ class Ys extends Zt {
1171
1164
  const n = this.getTentativeGuide(s);
1172
1165
  if (n && n.geometry.type === "Polygon") {
1173
1166
  const o = rs(n);
1174
- this.area = Ye(n), this.tooltips = _t(this.area, o.geometry.coordinates, s.modeConfig);
1167
+ this.area = Ye(n), this.tooltips = Lt(this.area, o.geometry.coordinates, s.modeConfig);
1175
1168
  }
1176
1169
  }
1177
1170
  resetClickSequence() {
@@ -1220,7 +1213,7 @@ class Ys extends Zt {
1220
1213
  const o = this.getAddFeatureOrBooleanPolygonAction(n, t);
1221
1214
  this._isMeasuringSessionFinished = !0, o && (this.resultPolygon = o.updatedData, t.onEdit({
1222
1215
  ...o,
1223
- editType: Y.addPosition,
1216
+ editType: X.addPosition,
1224
1217
  editContext: {
1225
1218
  ...o.editContext,
1226
1219
  distance: this.area,
@@ -1251,7 +1244,7 @@ class Ys extends Zt {
1251
1244
  }) + "2";
1252
1245
  }
1253
1246
  }
1254
- class Xs extends yt {
1247
+ class Xs extends ht {
1255
1248
  constructor() {
1256
1249
  super(...arguments);
1257
1250
  ee(this, "_isMeasuringSessionFinished", !1);
@@ -1266,7 +1259,7 @@ class Xs extends yt {
1266
1259
  this._isMeasuringSessionFinished && (this._isMeasuringSessionFinished = !1, this.resetClickSequence(), this._currentArea = 0), super.handleClick(t, s);
1267
1260
  }
1268
1261
  handlePointerMove(t, s) {
1269
- this._isMeasuringSessionFinished || (super.handlePointerMove(t, s), this.tooltips = _t(this.areaCircle, this.position, s.modeConfig));
1262
+ this._isMeasuringSessionFinished || (super.handlePointerMove(t, s), this.tooltips = Lt(this.areaCircle, this.position, s.modeConfig));
1270
1263
  }
1271
1264
  checkAndFinishPolygon(t) {
1272
1265
  const s = this.getClickSequence(), n = this.getTentativeGuide(t);
@@ -1290,7 +1283,7 @@ class Xs extends yt {
1290
1283
  const n = this.getAddFeatureOrBooleanPolygonAction(s, t);
1291
1284
  this._isMeasuringSessionFinished = !0, t.onUpdateCursor("cell"), n && (this.resultPolygon = n.updatedData, t.onEdit({
1292
1285
  ...n,
1293
- editType: Y.addPosition,
1286
+ editType: X.addPosition,
1294
1287
  editContext: {
1295
1288
  ...n.editContext,
1296
1289
  distance: this._currentArea,
@@ -1332,7 +1325,7 @@ class Pt extends Xt {
1332
1325
  super.handleClick(e, t), t.onEdit({
1333
1326
  // data is the same
1334
1327
  updatedData: t.data,
1335
- editType: Y.addPosition,
1328
+ editType: X.addPosition,
1336
1329
  editContext: {
1337
1330
  distance: this._currentDistance,
1338
1331
  finished: this._isMeasuringSessionFinished,
@@ -1346,7 +1339,7 @@ class Pt extends Xt {
1346
1339
  const {
1347
1340
  key: s
1348
1341
  } = e, n = this.getClickSequence().length;
1349
- let o = Y.finish;
1342
+ let o = X.finish;
1350
1343
  switch (s) {
1351
1344
  case "Escape":
1352
1345
  t.onEdit({
@@ -1354,12 +1347,12 @@ class Pt extends Xt {
1354
1347
  type: "FeatureCollection",
1355
1348
  features: []
1356
1349
  },
1357
- editType: Y.cancel,
1350
+ editType: X.cancel,
1358
1351
  editContext: {}
1359
1352
  });
1360
1353
  break;
1361
1354
  case "Enter":
1362
- this._isMeasuringSessionFinished = !0, n === 1 && (this.resetClickSequence(), o = Y.cancel), t.onUpdateCursor("cell"), t.onEdit({
1355
+ this._isMeasuringSessionFinished = !0, n === 1 && (this.resetClickSequence(), o = X.cancel), t.onUpdateCursor("cell"), t.onEdit({
1363
1356
  updatedData: t.data,
1364
1357
  editType: o,
1365
1358
  editContext: {
@@ -1423,7 +1416,7 @@ const re = "mapMeasureLayer", Js = {
1423
1416
  point: qe.point
1424
1417
  }
1425
1418
  }
1426
- }, V = {
1419
+ }, I = {
1427
1420
  kilometer: "kilometer",
1428
1421
  meter: "meter",
1429
1422
  centimeter: "centimeter",
@@ -1434,28 +1427,28 @@ const re = "mapMeasureLayer", Js = {
1434
1427
  }, Ie = {
1435
1428
  "m-km": "m-km",
1436
1429
  "ft-mi": "ft-mi",
1437
- ...V
1430
+ ...I
1438
1431
  }, en = {
1439
1432
  meters: "meters",
1440
1433
  kilometer: "kilometers",
1441
1434
  mile: "miles"
1442
1435
  }, ot = {
1443
- [V.kilometer]: "km",
1444
- [V.meter]: "m",
1445
- [V.centimeter]: "cm",
1446
- [V.milimeter]: "mm",
1447
- [V.mile]: "mi",
1448
- [V.yard]: "yd",
1449
- [V.feet]: "ft"
1436
+ [I.kilometer]: "km",
1437
+ [I.meter]: "m",
1438
+ [I.centimeter]: "cm",
1439
+ [I.milimeter]: "mm",
1440
+ [I.mile]: "mi",
1441
+ [I.yard]: "yd",
1442
+ [I.feet]: "ft"
1450
1443
  }, me = {
1451
- [V.kilometer]: "kilometer",
1452
- [V.meter]: "meter",
1453
- [V.centimeter]: "centimeter",
1454
- [V.milimeter]: "millimeter",
1455
- [V.mile]: "mile",
1456
- [V.yard]: "yard",
1457
- [V.feet]: "foot"
1458
- }, Z = {
1444
+ [I.kilometer]: "kilometer",
1445
+ [I.meter]: "meter",
1446
+ [I.centimeter]: "centimeter",
1447
+ [I.milimeter]: "millimeter",
1448
+ [I.mile]: "mile",
1449
+ [I.yard]: "yard",
1450
+ [I.feet]: "foot"
1451
+ }, Y = {
1459
1452
  "m-km": {
1460
1453
  value: "m-km",
1461
1454
  system: "metric"
@@ -1492,7 +1485,7 @@ const re = "mapMeasureLayer", Js = {
1492
1485
  value: "feet",
1493
1486
  system: "imperial"
1494
1487
  }
1495
- }, it = [Z["m-km"], Z.kilometer, Z.meter, Z["ft-mi"], Z.mile, Z.feet], tn = [Z["m-km"], Z.kilometer, Z.meter, Z["ft-mi"], Z.mile, Z.feet], sn = {
1488
+ }, it = [Y["m-km"], Y.kilometer, Y.meter, Y["ft-mi"], Y.mile, Y.feet], tn = [Y["m-km"], Y.kilometer, Y.meter, Y["ft-mi"], Y.mile, Y.feet], sn = {
1496
1489
  distance: {
1497
1490
  value: "distance",
1498
1491
  mode: Pt
@@ -1510,8 +1503,8 @@ const re = "mapMeasureLayer", Js = {
1510
1503
  buffer: it,
1511
1504
  area: tn
1512
1505
  };
1513
- function Lt(r) {
1514
- const e = D(12), {
1506
+ function Ot(r) {
1507
+ const e = A(12), {
1515
1508
  mapId: t,
1516
1509
  layerId: s
1517
1510
  } = r;
@@ -1527,8 +1520,8 @@ function Lt(r) {
1527
1520
  return (b = m.maps[t]) == null ? void 0 : b.isLoaded;
1528
1521
  }, e[2] = t, e[3] = i) : i = e[3];
1529
1522
  const a = $(i), l = $(on), c = pe(rn), {
1530
- type: y
1531
- } = ye[o], p = y === te.googleMaps;
1523
+ type: h
1524
+ } = ye[o], p = h === te.googleMaps;
1532
1525
  let g, f;
1533
1526
  e[4] !== l || e[5] !== p || e[6] !== a || e[7] !== s || e[8] !== t || e[9] !== c ? (g = () => {
1534
1527
  let m = null;
@@ -1549,7 +1542,7 @@ function rn(r) {
1549
1542
  function on(r) {
1550
1543
  return r.getOverlayInstance;
1551
1544
  }
1552
- const an = [ce, Le, re];
1545
+ const an = [ce, Pe, re];
1553
1546
  function ln({
1554
1547
  children: r,
1555
1548
  mapId: e,
@@ -1564,67 +1557,67 @@ function ln({
1564
1557
  defaultType: o = "mask"
1565
1558
  }) {
1566
1559
  const i = G((_) => {
1567
- var C;
1568
- return (C = _.data[e]) == null ? void 0 : C.enabled;
1560
+ var F;
1561
+ return (F = _.data[e]) == null ? void 0 : F.enabled;
1569
1562
  }), a = G((_) => _.setEnabled), l = G((_) => {
1570
- var C;
1571
- return (C = _.data[e]) == null ? void 0 : C.values;
1572
- }), c = G((_) => _.setValue), y = G((_) => {
1573
- var C;
1574
- return (C = _.data[e]) == null ? void 0 : C.modeInstance;
1563
+ var F;
1564
+ return (F = _.data[e]) == null ? void 0 : F.values;
1565
+ }), c = G((_) => _.setValue), h = G((_) => {
1566
+ var F;
1567
+ return (F = _.data[e]) == null ? void 0 : F.modeInstance;
1575
1568
  }), p = G((_) => {
1576
- var C;
1577
- return (C = _.data[e]) == null ? void 0 : C.modeSelected;
1578
- }), g = pe((_) => _.setLayer), f = $((_) => _.addLayers), m = $((_) => _.removeLayers), b = $(ht((_) => {
1579
- var C;
1580
- return (C = _.maps[e]) == null ? void 0 : C.layers.filter((d) => !an.includes(d));
1569
+ var F;
1570
+ return (F = _.data[e]) == null ? void 0 : F.modeSelected;
1571
+ }), g = pe((_) => _.setLayer), f = $((_) => _.addLayers), m = $((_) => _.removeLayers), b = $(gt((_) => {
1572
+ var F;
1573
+ return (F = _.maps[e]) == null ? void 0 : F.layers.filter((d) => !an.includes(d));
1581
1574
  })), T = $((_) => _.getDeckInstance), u = _e({});
1582
- Lt({
1575
+ Ot({
1583
1576
  mapId: e,
1584
1577
  layerId: ce
1585
1578
  });
1586
- const h = oe(() => Et({
1579
+ const y = oe(() => _t({
1587
1580
  values: l
1588
1581
  }), [l]), S = oe(() => ({
1589
1582
  type: "FeatureCollection",
1590
- features: h.map((_) => ({
1583
+ features: y.map((_) => ({
1591
1584
  type: "Feature",
1592
1585
  geometry: _.geometry,
1593
1586
  properties: _.properties,
1594
1587
  id: _.id
1595
1588
  }))
1596
- }), [h]), M = oe(() => h.filter((_) => _.properties.visible).map((_) => _.id), [h]), [w, E] = se(S), [F, x] = se([]), A = Q(() => {
1589
+ }), [y]), M = oe(() => y.filter((_) => _.properties.visible).map((_) => _.id), [y]), [w, E] = se(S), [C, U] = se([]), R = Q(() => {
1597
1590
  const _ = {
1598
1591
  ...S,
1599
- features: S.features.filter((C) => {
1592
+ features: S.features.filter((F) => {
1600
1593
  var d;
1601
- return (d = C.properties) == null ? void 0 : d.visible;
1594
+ return (d = F.properties) == null ? void 0 : d.visible;
1602
1595
  })
1603
1596
  };
1604
1597
  E(_);
1605
1598
  }, [S]);
1606
1599
  z(() => {
1607
- A();
1608
- }, [A]);
1609
- const q = _e(h.length);
1600
+ R();
1601
+ }, [R]);
1602
+ const j = _e(y.length);
1610
1603
  z(() => (f(e, [ce]), () => {
1611
1604
  m(e, [ce]);
1612
1605
  }), [f, e, m]);
1613
1606
  const B = Q(() => {
1614
- A(), x([]), a(e, !1);
1615
- }, [e, A, a]), U = Q(({
1607
+ R(), U([]), a(e, !1);
1608
+ }, [e, R, a]), x = Q(({
1616
1609
  editType: _,
1617
- updatedData: C
1610
+ updatedData: F
1618
1611
  }) => {
1619
- if (_ === Y.cancel) {
1612
+ if (_ === X.cancel) {
1620
1613
  B();
1621
1614
  return;
1622
1615
  }
1623
- E(C), _ !== Y.updateTentativeFeature && _ === Y.addFeature && (p !== "edit" && (q.current = q.current + 1), C.features.forEach((d, v) => {
1616
+ E(F), _ !== X.updateTentativeFeature && _ === X.addFeature && (p !== "edit" && (j.current = j.current + 1), F.features.forEach((d, v) => {
1624
1617
  var k;
1625
- (k = d.properties).label ?? (k.label = `${s == null ? void 0 : s.mask} ${q.current}`), d.properties.index = v, d.properties.visible = d.properties.visible ?? !0;
1626
- const P = d.id ?? crypto.randomUUID();
1627
- c(e, P, {
1618
+ (k = d.properties).label ?? (k.label = `${s == null ? void 0 : s.mask} ${j.current}`), d.properties.index = v, d.properties.visible = d.properties.visible ?? !0;
1619
+ const L = d.id ?? crypto.randomUUID();
1620
+ c(e, L, {
1628
1621
  geometry: d.geometry,
1629
1622
  properties: d.properties,
1630
1623
  // visible: true,
@@ -1634,41 +1627,41 @@ function ln({
1634
1627
  }, [o, B, s == null ? void 0 : s.mask, e, p, c]);
1635
1628
  return z(() => {
1636
1629
  const _ = i, {
1637
- border: C,
1630
+ border: F,
1638
1631
  point: d,
1639
1632
  fill: v
1640
1633
  } = t.colors.editing, {
1641
- border: P,
1634
+ border: L,
1642
1635
  fill: k
1643
- } = t.colors.finished, L = Gs({
1636
+ } = t.colors.finished, O = Gs({
1644
1637
  layerProps: {
1645
1638
  ...n.mask,
1646
1639
  pickable: _,
1647
1640
  data: w,
1648
- selectedFeatureIndexes: F,
1641
+ selectedFeatureIndexes: C,
1649
1642
  updateTriggers: {
1650
1643
  getFilterValue: M
1651
1644
  },
1652
- onClick: (O) => {
1653
- const H = O;
1654
- H.isGuide || x([H.index]);
1645
+ onClick: (P) => {
1646
+ const V = P;
1647
+ V.isGuide || U([V.index]);
1655
1648
  }
1656
1649
  },
1657
- getLineColor: (O) => F[0] === O.properties.index ? C : P,
1658
- getFillColor: (O) => F[0] === O.properties.index ? v : k,
1650
+ getLineColor: (P) => C[0] === P.properties.index ? F : L,
1651
+ getFillColor: (P) => C[0] === P.properties.index ? v : k,
1659
1652
  pointColor: {
1660
1653
  fill: d,
1661
- outline: C
1654
+ outline: F
1662
1655
  },
1663
- onEdit: U,
1664
- mode: _ ? y : new Jt()
1656
+ onEdit: x,
1657
+ mode: _ ? h : new Jt()
1665
1658
  });
1666
- g(ce, L);
1667
- }, [w, i, n.mask, M, y, U, F, g, t.colors.editing, t.colors.finished]), z(() => {
1659
+ g(ce, O);
1660
+ }, [w, i, n.mask, M, h, x, C, g, t.colors.editing, t.colors.finished]), z(() => {
1668
1661
  const _ = {
1669
1662
  ...Me,
1670
1663
  data: S,
1671
- getFilterValue: (C) => Number(M.includes(C.id)),
1664
+ getFilterValue: (F) => Number(M.includes(F.id)),
1672
1665
  updateTriggers: {
1673
1666
  getFilterValue: M
1674
1667
  }
@@ -1682,14 +1675,14 @@ function ln({
1682
1675
  }, [f, e, S, M, m, g]), z(() => {
1683
1676
  b == null || b.forEach((_) => {
1684
1677
  var v;
1685
- const C = (v = T(e)) == null ? void 0 : v.props.layers.find((P) => P.props.id === _);
1686
- i && (u.current[_] = C == null ? void 0 : C.props.pickable);
1687
- const d = !i && (u.current[_] ?? (C == null ? void 0 : C.props.pickable));
1678
+ const F = (v = T(e)) == null ? void 0 : v.props.layers.find((L) => L.props.id === _);
1679
+ i && (u.current[_] = F == null ? void 0 : F.props.pickable);
1680
+ const d = !i && (u.current[_] ?? (F == null ? void 0 : F.props.pickable));
1688
1681
  g(_, {
1689
1682
  props: {
1690
1683
  pickable: d,
1691
1684
  extensions: [new ts()],
1692
- maskId: !i && M.length ? Le : void 0
1685
+ maskId: !i && M.length ? Pe : void 0
1693
1686
  }
1694
1687
  });
1695
1688
  });
@@ -1705,7 +1698,7 @@ function cn({
1705
1698
  ...e
1706
1699
  });
1707
1700
  return {
1708
- type: Mt,
1701
+ type: Tt,
1709
1702
  props: {
1710
1703
  ...t,
1711
1704
  mode: r,
@@ -1760,7 +1753,7 @@ function un({
1760
1753
  }
1761
1754
  }
1762
1755
  }
1763
- }), y = ue(Js, {
1756
+ }), h = ue(Js, {
1764
1757
  _subLayerProps: {
1765
1758
  guides: {
1766
1759
  getLineColor: i,
@@ -1770,7 +1763,7 @@ function un({
1770
1763
  getEditHandlePointColor: a,
1771
1764
  getEditHandlePointOutlineColor: i
1772
1765
  });
1773
- return ue(y, c);
1766
+ return ue(h, c);
1774
1767
  }
1775
1768
  const dn = (r) => ze()((e) => ({
1776
1769
  measurements: r.reduce((s, n) => {
@@ -1780,7 +1773,7 @@ const dn = (r) => ze()((e) => ({
1780
1773
  modes: a = sn,
1781
1774
  units: l = nn,
1782
1775
  distance: c = 0,
1783
- finished: y = !1,
1776
+ finished: h = !1,
1784
1777
  locale: p = "en",
1785
1778
  positions: g = [],
1786
1779
  clearLayerOnStart: f = !1,
@@ -1792,7 +1785,7 @@ const dn = (r) => ze()((e) => ({
1792
1785
  units: l,
1793
1786
  modeSelected: i,
1794
1787
  distance: c,
1795
- finished: y,
1788
+ finished: h,
1796
1789
  locale: p,
1797
1790
  positions: g,
1798
1791
  unit: m,
@@ -1889,9 +1882,9 @@ const dn = (r) => ze()((e) => ({
1889
1882
  }
1890
1883
  }));
1891
1884
  }
1892
- })), Ot = He({});
1885
+ })), Ft = He({});
1893
1886
  function fn(r) {
1894
- const e = D(5), {
1887
+ const e = A(5), {
1895
1888
  children: t,
1896
1889
  values: s
1897
1890
  } = r;
@@ -1899,111 +1892,111 @@ function fn(r) {
1899
1892
  e[0] !== s ? (n = dn(s), e[0] = s, e[1] = n) : n = e[1];
1900
1893
  const [o] = se(n);
1901
1894
  let i;
1902
- return e[2] !== t || e[3] !== o ? (i = /* @__PURE__ */ N(Ot.Provider, { value: o, children: t }), e[2] = t, e[3] = o, e[4] = i) : i = e[4], i;
1895
+ return e[2] !== t || e[3] !== o ? (i = /* @__PURE__ */ H(Ft.Provider, { value: o, children: t }), e[2] = t, e[3] = o, e[4] = i) : i = e[4], i;
1903
1896
  }
1904
- function I(r) {
1905
- const e = Ge(Ot);
1897
+ function N(r) {
1898
+ const e = Ge(Ft);
1906
1899
  if (!Object.keys(e).length)
1907
1900
  throw new Error("Missing MeasurementToolsProvider in the tree");
1908
1901
  return Qe(e, r);
1909
1902
  }
1910
- function Ft(r) {
1911
- const e = D(74), {
1903
+ function Ct(r) {
1904
+ const e = A(74), {
1912
1905
  mapId: t
1913
1906
  } = r;
1914
1907
  let s;
1915
- e[0] !== t ? (s = (R) => R.measurements[t].modes, e[0] = t, e[1] = s) : s = e[1];
1916
- const n = I(s);
1908
+ e[0] !== t ? (s = (D) => D.measurements[t].modes, e[0] = t, e[1] = s) : s = e[1];
1909
+ const n = N(s);
1917
1910
  let o;
1918
- e[2] !== t ? (o = (R) => R.measurements[t].units, e[2] = t, e[3] = o) : o = e[3];
1919
- const i = I(o);
1911
+ e[2] !== t ? (o = (D) => D.measurements[t].units, e[2] = t, e[3] = o) : o = e[3];
1912
+ const i = N(o);
1920
1913
  let a;
1921
- e[4] !== t ? (a = (R) => R.measurements[t].distance, e[4] = t, e[5] = a) : a = e[5];
1922
- const l = I(a), c = I(Sn);
1923
- let y;
1924
- e[6] !== c || e[7] !== t ? (y = (R) => c(t, R), e[6] = c, e[7] = t, e[8] = y) : y = e[8];
1925
- const p = y;
1914
+ e[4] !== t ? (a = (D) => D.measurements[t].distance, e[4] = t, e[5] = a) : a = e[5];
1915
+ const l = N(a), c = N(Sn);
1916
+ let h;
1917
+ e[6] !== c || e[7] !== t ? (h = (D) => c(t, D), e[6] = c, e[7] = t, e[8] = h) : h = e[8];
1918
+ const p = h;
1926
1919
  let g;
1927
- e[9] !== t ? (g = (R) => R.measurements[t].clearLayerOnStart, e[9] = t, e[10] = g) : g = e[10];
1928
- const f = I(g);
1920
+ e[9] !== t ? (g = (D) => D.measurements[t].clearLayerOnStart, e[9] = t, e[10] = g) : g = e[10];
1921
+ const f = N(g);
1929
1922
  let m;
1930
- e[11] !== t ? (m = (R) => R.measurements[t].enabled, e[11] = t, e[12] = m) : m = e[12];
1931
- const b = I(m), T = I(vn);
1923
+ e[11] !== t ? (m = (D) => D.measurements[t].enabled, e[11] = t, e[12] = m) : m = e[12];
1924
+ const b = N(m), T = N(vn);
1932
1925
  let u;
1933
- e[13] !== T || e[14] !== t ? (u = (R) => T(t, R), e[13] = T, e[14] = t, e[15] = u) : u = e[15];
1934
- const h = u;
1926
+ e[13] !== T || e[14] !== t ? (u = (D) => T(t, D), e[13] = T, e[14] = t, e[15] = u) : u = e[15];
1927
+ const y = u;
1935
1928
  let S;
1936
- e[16] !== t ? (S = (R) => R.measurements[t].modeSelected, e[16] = t, e[17] = S) : S = e[17];
1937
- const M = I(S), w = I(bn);
1929
+ e[16] !== t ? (S = (D) => D.measurements[t].modeSelected, e[16] = t, e[17] = S) : S = e[17];
1930
+ const M = N(S), w = N(bn);
1938
1931
  let E;
1939
- e[18] !== w || e[19] !== t || e[20] !== h ? (E = (R) => {
1940
- h(!!R), w(t, R);
1941
- }, e[18] = w, e[19] = t, e[20] = h, e[21] = E) : E = e[21];
1942
- const F = E;
1943
- let x;
1944
- e[22] !== t ? (x = (R) => R.measurements[t].finished, e[22] = t, e[23] = x) : x = e[23];
1945
- const A = I(x), q = I(gn);
1932
+ e[18] !== w || e[19] !== t || e[20] !== y ? (E = (D) => {
1933
+ y(!!D), w(t, D);
1934
+ }, e[18] = w, e[19] = t, e[20] = y, e[21] = E) : E = e[21];
1935
+ const C = E;
1936
+ let U;
1937
+ e[22] !== t ? (U = (D) => D.measurements[t].finished, e[22] = t, e[23] = U) : U = e[23];
1938
+ const R = N(U), j = N(gn);
1946
1939
  let B;
1947
- e[24] !== q || e[25] !== t ? (B = (R) => q(t, R), e[24] = q, e[25] = t, e[26] = B) : B = e[26];
1948
- const U = B;
1940
+ e[24] !== j || e[25] !== t ? (B = (D) => j(t, D), e[24] = j, e[25] = t, e[26] = B) : B = e[26];
1941
+ const x = B;
1949
1942
  let _;
1950
- e[27] !== t ? (_ = (R) => R.measurements[t].locale, e[27] = t, e[28] = _) : _ = e[28];
1951
- const C = I(_), d = I(hn);
1943
+ e[27] !== t ? (_ = (D) => D.measurements[t].locale, e[27] = t, e[28] = _) : _ = e[28];
1944
+ const F = N(_), d = N(hn);
1952
1945
  let v;
1953
- e[29] !== d || e[30] !== t ? (v = (R) => d(t, R), e[29] = d, e[30] = t, e[31] = v) : v = e[31];
1954
- const P = v;
1946
+ e[29] !== d || e[30] !== t ? (v = (D) => d(t, D), e[29] = d, e[30] = t, e[31] = v) : v = e[31];
1947
+ const L = v;
1955
1948
  let k;
1956
- e[32] !== t ? (k = (R) => R.measurements[t].modeInstance, e[32] = t, e[33] = k) : k = e[33];
1957
- const L = I(k), O = I(yn);
1958
- let H;
1959
- e[34] !== O || e[35] !== t ? (H = (R) => O(t, R), e[34] = O, e[35] = t, e[36] = H) : H = e[36];
1960
- const W = H;
1961
- let K;
1962
- e[37] !== t ? (K = (R) => R.measurements[t].positions, e[37] = t, e[38] = K) : K = e[38];
1963
- const j = I(K), X = I(mn);
1949
+ e[32] !== t ? (k = (D) => D.measurements[t].modeInstance, e[32] = t, e[33] = k) : k = e[33];
1950
+ const O = N(k), P = N(yn);
1951
+ let V;
1952
+ e[34] !== P || e[35] !== t ? (V = (D) => P(t, D), e[34] = P, e[35] = t, e[36] = V) : V = e[36];
1953
+ const K = V;
1954
+ let Z;
1955
+ e[37] !== t ? (Z = (D) => D.measurements[t].positions, e[37] = t, e[38] = Z) : Z = e[38];
1956
+ const q = N(Z), W = N(mn);
1964
1957
  let he;
1965
- e[39] !== X || e[40] !== t ? (he = (R) => X(t, R), e[39] = X, e[40] = t, e[41] = he) : he = e[41];
1958
+ e[39] !== W || e[40] !== t ? (he = (D) => W(t, D), e[39] = W, e[40] = t, e[41] = he) : he = e[41];
1966
1959
  const fe = he;
1967
1960
  let ge;
1968
- e[42] !== t ? (ge = (R) => R.measurements[t].unit, e[42] = t, e[43] = ge) : ge = e[43];
1969
- const Fe = I(ge), Ce = I(pn);
1961
+ e[42] !== t ? (ge = (D) => D.measurements[t].unit, e[42] = t, e[43] = ge) : ge = e[43];
1962
+ const Fe = N(ge), Ce = N(pn);
1970
1963
  let be;
1971
- e[44] !== Ce || e[45] !== t ? (be = (R) => Ce(t, R), e[44] = Ce, e[45] = t, e[46] = be) : be = e[46];
1964
+ e[44] !== Ce || e[45] !== t ? (be = (D) => Ce(t, D), e[44] = Ce, e[45] = t, e[46] = be) : be = e[46];
1972
1965
  const ke = be;
1973
1966
  let ve;
1974
- e[47] !== L || e[48] !== fe ? (ve = () => {
1975
- L == null || L.resetClickSequence(), fe([]);
1976
- }, e[47] = L, e[48] = fe, e[49] = ve) : ve = e[49];
1967
+ e[47] !== O || e[48] !== fe ? (ve = () => {
1968
+ O == null || O.resetClickSequence(), fe([]);
1969
+ }, e[47] = O, e[48] = fe, e[49] = ve) : ve = e[49];
1977
1970
  const Ae = ve;
1978
1971
  let Se;
1979
- e[50] !== h ? (Se = (R) => {
1980
- h(R);
1981
- }, e[50] = h, e[51] = Se) : Se = e[51];
1972
+ e[50] !== y ? (Se = (D) => {
1973
+ y(D);
1974
+ }, e[50] = y, e[51] = Se) : Se = e[51];
1982
1975
  const De = Se;
1983
1976
  let we;
1984
- return e[52] !== Ae || e[53] !== f || e[54] !== l || e[55] !== b || e[56] !== A || e[57] !== C || e[58] !== L || e[59] !== M || e[60] !== n || e[61] !== j || e[62] !== p || e[63] !== h || e[64] !== U || e[65] !== P || e[66] !== W || e[67] !== F || e[68] !== fe || e[69] !== ke || e[70] !== De || e[71] !== Fe || e[72] !== i ? (we = {
1977
+ return e[52] !== Ae || e[53] !== f || e[54] !== l || e[55] !== b || e[56] !== R || e[57] !== F || e[58] !== O || e[59] !== M || e[60] !== n || e[61] !== q || e[62] !== p || e[63] !== y || e[64] !== x || e[65] !== L || e[66] !== K || e[67] !== C || e[68] !== fe || e[69] !== ke || e[70] !== De || e[71] !== Fe || e[72] !== i ? (we = {
1985
1978
  modes: n,
1986
1979
  units: i,
1987
1980
  distance: l,
1988
1981
  clearLayerOnStart: f,
1989
1982
  modeSelected: M,
1990
1983
  enabled: b,
1991
- finished: A,
1992
- locale: C,
1993
- modeInstance: L,
1994
- positions: j,
1984
+ finished: R,
1985
+ locale: F,
1986
+ modeInstance: O,
1987
+ positions: q,
1995
1988
  unit: Fe,
1996
1989
  setDistance: p,
1997
- setModeSelected: F,
1998
- setFinished: U,
1999
- setLocale: P,
1990
+ setModeSelected: C,
1991
+ setFinished: x,
1992
+ setLocale: L,
2000
1993
  setPositions: fe,
2001
1994
  setUnit: ke,
2002
- setEnabled: h,
1995
+ setEnabled: y,
2003
1996
  toggleLayer: De,
2004
1997
  clearLayer: Ae,
2005
- setModeInstance: W
2006
- }, e[52] = Ae, e[53] = f, e[54] = l, e[55] = b, e[56] = A, e[57] = C, e[58] = L, e[59] = M, e[60] = n, e[61] = j, e[62] = p, e[63] = h, e[64] = U, e[65] = P, e[66] = W, e[67] = F, e[68] = fe, e[69] = ke, e[70] = De, e[71] = Fe, e[72] = i, e[73] = we) : we = e[73], we;
1998
+ setModeInstance: K
1999
+ }, e[52] = Ae, e[53] = f, e[54] = l, e[55] = b, e[56] = R, e[57] = F, e[58] = O, e[59] = M, e[60] = n, e[61] = q, e[62] = p, e[63] = y, e[64] = x, e[65] = L, e[66] = K, e[67] = C, e[68] = fe, e[69] = ke, e[70] = De, e[71] = Fe, e[72] = i, e[73] = we) : we = e[73], we;
2007
2000
  }
2008
2001
  function pn(r) {
2009
2002
  return r.setUnit;
@@ -2030,7 +2023,7 @@ function Sn(r) {
2030
2023
  return r.setDistance;
2031
2024
  }
2032
2025
  function wn(r) {
2033
- const e = D(42), {
2026
+ const e = A(42), {
2034
2027
  mapId: t,
2035
2028
  textOptions: s,
2036
2029
  children: n
@@ -2044,7 +2037,7 @@ function wn(r) {
2044
2037
  units: a,
2045
2038
  distance: l,
2046
2039
  setDistance: c,
2047
- clearLayerOnStart: y,
2040
+ clearLayerOnStart: h,
2048
2041
  modeSelected: p,
2049
2042
  setModeSelected: g,
2050
2043
  enabled: f,
@@ -2052,49 +2045,49 @@ function wn(r) {
2052
2045
  finished: b,
2053
2046
  setFinished: T,
2054
2047
  locale: u,
2055
- setLocale: h,
2048
+ setLocale: y,
2056
2049
  modeInstance: S,
2057
2050
  setModeInstance: M,
2058
2051
  positions: w,
2059
2052
  setPositions: E,
2060
- unit: F,
2061
- setUnit: x,
2062
- clearLayer: A,
2063
- toggleLayer: q
2064
- } = Ft(o);
2053
+ unit: C,
2054
+ setUnit: U,
2055
+ clearLayer: R,
2056
+ toggleLayer: j
2057
+ } = Ct(o);
2065
2058
  let B;
2066
2059
  e[2] !== p || e[3] !== i || e[4] !== M || e[5] !== E ? (B = () => {
2067
2060
  if (p && i[p]) {
2068
- const P = i[p].mode;
2069
- M(new P());
2061
+ const L = i[p].mode;
2062
+ M(new L());
2070
2063
  }
2071
2064
  return () => {
2072
2065
  E([]);
2073
2066
  };
2074
2067
  }, e[2] = p, e[3] = i, e[4] = M, e[5] = E, e[6] = B) : B = e[6];
2075
- let U;
2076
- e[7] !== p || e[8] !== i || e[9] !== m || e[10] !== M || e[11] !== E ? (U = [i, p, E, M, m], e[7] = p, e[8] = i, e[9] = m, e[10] = M, e[11] = E, e[12] = U) : U = e[12], z(B, U);
2068
+ let x;
2069
+ e[7] !== p || e[8] !== i || e[9] !== m || e[10] !== M || e[11] !== E ? (x = [i, p, E, M, m], e[7] = p, e[8] = i, e[9] = m, e[10] = M, e[11] = E, e[12] = x) : x = e[12], z(B, x);
2077
2070
  let _;
2078
- e[13] !== q || e[14] !== A || e[15] !== y || e[16] !== b ? (_ = (P) => {
2079
- P && (y || !b) && A(), q(P);
2080
- }, e[13] = q, e[14] = A, e[15] = y, e[16] = b, e[17] = _) : _ = e[17];
2081
- const C = _, d = !!y;
2071
+ e[13] !== j || e[14] !== R || e[15] !== h || e[16] !== b ? (_ = (L) => {
2072
+ L && (h || !b) && R(), j(L);
2073
+ }, e[13] = j, e[14] = R, e[15] = h, e[16] = b, e[17] = _) : _ = e[17];
2074
+ const F = _, d = !!h;
2082
2075
  let v;
2083
- return e[18] !== n || e[19] !== A || e[20] !== l || e[21] !== f || e[22] !== b || e[23] !== u || e[24] !== t || e[25] !== S || e[26] !== p || e[27] !== i || e[28] !== w || e[29] !== c || e[30] !== m || e[31] !== T || e[32] !== h || e[33] !== g || e[34] !== E || e[35] !== x || e[36] !== d || e[37] !== s || e[38] !== C || e[39] !== F || e[40] !== a ? (v = n({
2076
+ return e[18] !== n || e[19] !== R || e[20] !== l || e[21] !== f || e[22] !== b || e[23] !== u || e[24] !== t || e[25] !== S || e[26] !== p || e[27] !== i || e[28] !== w || e[29] !== c || e[30] !== m || e[31] !== T || e[32] !== y || e[33] !== g || e[34] !== E || e[35] !== U || e[36] !== d || e[37] !== s || e[38] !== F || e[39] !== C || e[40] !== a ? (v = n({
2084
2077
  mapId: t,
2085
2078
  distance: l,
2086
2079
  enabled: f,
2087
2080
  finished: b,
2088
2081
  locale: u,
2089
2082
  positions: w,
2090
- unit: F,
2083
+ unit: C,
2091
2084
  clearLayerOnStart: d,
2092
2085
  modeSelected: p,
2093
2086
  modes: i,
2094
2087
  units: a,
2095
2088
  value: Oe({
2096
2089
  meters: l,
2097
- unit: F,
2090
+ unit: C,
2098
2091
  locale: u,
2099
2092
  options: s
2100
2093
  }),
@@ -2102,13 +2095,13 @@ function wn(r) {
2102
2095
  setModeSelected: g,
2103
2096
  setDistance: c,
2104
2097
  setFinished: T,
2105
- setLocale: h,
2098
+ setLocale: y,
2106
2099
  setPositions: E,
2107
- setUnit: x,
2100
+ setUnit: U,
2108
2101
  setEnabled: m,
2109
- toggleLayer: C,
2110
- clearLayer: A
2111
- }), e[18] = n, e[19] = A, e[20] = l, e[21] = f, e[22] = b, e[23] = u, e[24] = t, e[25] = S, e[26] = p, e[27] = i, e[28] = w, e[29] = c, e[30] = m, e[31] = T, e[32] = h, e[33] = g, e[34] = E, e[35] = x, e[36] = d, e[37] = s, e[38] = C, e[39] = F, e[40] = a, e[41] = v) : v = e[41], v;
2102
+ toggleLayer: F,
2103
+ clearLayer: R
2104
+ }), e[18] = n, e[19] = R, e[20] = l, e[21] = f, e[22] = b, e[23] = u, e[24] = t, e[25] = S, e[26] = p, e[27] = i, e[28] = w, e[29] = c, e[30] = m, e[31] = T, e[32] = y, e[33] = g, e[34] = E, e[35] = U, e[36] = d, e[37] = s, e[38] = F, e[39] = C, e[40] = a, e[41] = v) : v = e[41], v;
2112
2105
  }
2113
2106
  const Mn = [re];
2114
2107
  function Tn({
@@ -2128,48 +2121,48 @@ function Tn({
2128
2121
  enabled: a,
2129
2122
  finished: l,
2130
2123
  setFinished: c,
2131
- locale: y,
2124
+ locale: h,
2132
2125
  setPositions: p,
2133
2126
  unit: g,
2134
2127
  modeInstance: f
2135
- } = Ft({
2128
+ } = Ct({
2136
2129
  mapId: e
2137
- }), m = pe((w) => w.setLayer), b = $((w) => w.addLayers), T = $((w) => w.removeLayers), u = $(ht((w) => {
2130
+ }), m = pe((w) => w.setLayer), b = $((w) => w.addLayers), T = $((w) => w.removeLayers), u = $(gt((w) => {
2138
2131
  var E;
2139
- return (E = w.maps[e]) == null ? void 0 : E.layers.filter((F) => !Mn.includes(F));
2140
- })), h = $((w) => w.getDeckInstance), S = _e({});
2141
- Lt({
2132
+ return (E = w.maps[e]) == null ? void 0 : E.layers.filter((C) => !Mn.includes(C));
2133
+ })), y = $((w) => w.getDeckInstance), S = _e({});
2134
+ Ot({
2142
2135
  mapId: e,
2143
2136
  layerId: re
2144
2137
  }), z(() => (a && b(e, [re]), () => {
2145
2138
  T(e, [re]);
2146
2139
  }), [b, i, e, T, a]), z(() => {
2147
2140
  u == null || u.forEach((w) => {
2148
- var x;
2149
- const E = (x = h(e)) == null ? void 0 : x.props.layers.find((A) => A.props.id === w);
2141
+ var U;
2142
+ const E = (U = y(e)) == null ? void 0 : U.props.layers.find((R) => R.props.id === w);
2150
2143
  a && (S.current[w] = E == null ? void 0 : E.props.pickable);
2151
- const F = !a && (S.current[w] ?? (E == null ? void 0 : E.props.pickable));
2144
+ const C = !a && (S.current[w] ?? (E == null ? void 0 : E.props.pickable));
2152
2145
  m(w, {
2153
2146
  props: {
2154
- pickable: F
2147
+ pickable: C
2155
2148
  }
2156
2149
  });
2157
2150
  });
2158
- }, [a, h, e, u, m]);
2151
+ }, [a, y, e, u, m]);
2159
2152
  const M = Q(({
2160
2153
  editType: w,
2161
2154
  editContext: E
2162
2155
  }) => {
2163
- if (w === Y.cancel) {
2156
+ if (w === X.cancel) {
2164
2157
  f.resetClickSequence();
2165
2158
  return;
2166
2159
  }
2167
- w === Y.addPosition && o(E.distance), c(!!E.finished);
2168
- const F = E.positions;
2169
- F != null && F.length && p(F);
2160
+ w === X.addPosition && o(E.distance), c(!!E.finished);
2161
+ const C = E.positions;
2162
+ C != null && C.length && p(C);
2170
2163
  }, [f, o, c, p]);
2171
2164
  return z(() => {
2172
- const w = l ? t.colors.finished : t.colors.editing, E = l ? t.colors.finished : t.colors.point, F = cn({
2165
+ const w = l ? t.colors.finished : t.colors.editing, E = l ? t.colors.finished : t.colors.point, C = cn({
2173
2166
  layerProps: {
2174
2167
  ...s,
2175
2168
  pickable: s.pickable ?? !l
@@ -2177,29 +2170,29 @@ function Tn({
2177
2170
  enabled: a,
2178
2171
  guideColor: w,
2179
2172
  pointColor: E,
2180
- locale: y,
2173
+ locale: h,
2181
2174
  onEdit: M,
2182
2175
  unit: g,
2183
2176
  mode: f,
2184
2177
  textOptions: n
2185
2178
  });
2186
- m(re, F);
2187
- }, [l, f, s, y, M, m, t.colors.editing, t.colors.finished, t.colors.point, n, g, a]), r;
2179
+ m(re, C);
2180
+ }, [l, f, s, h, M, m, t.colors.editing, t.colors.finished, t.colors.point, n, g, a]), r;
2188
2181
  }
2189
2182
  Tn.Controls = wn;
2190
2183
  function En(r) {
2191
- const e = D(7), {
2184
+ const e = A(7), {
2192
2185
  mapId: t
2193
2186
  } = r;
2194
2187
  let s;
2195
2188
  e[0] !== t ? (s = (c) => c.maps[t], e[0] = t, e[1] = s) : s = e[1];
2196
2189
  const {
2197
2190
  layers: n
2198
- } = $(s), o = pe(Pn);
2191
+ } = $(s), o = pe(Ln);
2199
2192
  let i, a;
2200
2193
  if (e[2] !== o || e[3] !== n) {
2201
2194
  let c;
2202
- e[5] !== o ? (c = (y) => o[y], e[5] = o, e[6] = c) : c = e[6], a = n.map(c).filter(_n), e[2] = o, e[3] = n, e[4] = a;
2195
+ e[5] !== o ? (c = (h) => o[h], e[5] = o, e[6] = c) : c = e[6], a = n.map(c).filter(_n), e[2] = o, e[3] = n, e[4] = a;
2203
2196
  } else
2204
2197
  a = e[4];
2205
2198
  return i = a, i;
@@ -2207,17 +2200,17 @@ function En(r) {
2207
2200
  function _n(r) {
2208
2201
  return !!r;
2209
2202
  }
2210
- function Pn(r) {
2203
+ function Ln(r) {
2211
2204
  return r.layers;
2212
2205
  }
2213
- const at = [Le, ce, re];
2214
- function Ct(r) {
2206
+ const at = [Pe, ce, re];
2207
+ function kt(r) {
2215
2208
  const e = r.filter((s) => !at.includes(s.props.id)).sort((s, n) => (s.order ?? 1 / 0) - (n.order ?? 1 / 0)), t = at.map((s) => r.find((n) => n.props.id === s)).filter((s) => !!s);
2216
2209
  return [...e, ...t];
2217
2210
  }
2218
- const Ln = 200;
2211
+ const Pn = 200;
2219
2212
  function Kr(r) {
2220
- const e = D(48);
2213
+ const e = A(48);
2221
2214
  let t, s, n, o;
2222
2215
  e[0] !== r ? ({
2223
2216
  id: t,
@@ -2226,57 +2219,57 @@ function Kr(r) {
2226
2219
  ...o
2227
2220
  } = r, e[0] = r, e[1] = t, e[2] = s, e[3] = n, e[4] = o) : (t = e[1], s = e[2], n = e[3], o = e[4]);
2228
2221
  let i;
2229
- e[5] !== t ? (i = (L) => L.maps[t].basemap, e[5] = t, e[6] = i) : i = e[6];
2222
+ e[5] !== t ? (i = (O) => O.maps[t].basemap, e[5] = t, e[6] = i) : i = e[6];
2230
2223
  const a = $(i);
2231
2224
  let l;
2232
- e[7] !== t ? (l = (L) => L.maps[t].instanceRef, e[7] = t, e[8] = l) : l = e[8];
2225
+ e[7] !== t ? (l = (O) => O.maps[t].instanceRef, e[7] = t, e[8] = l) : l = e[8];
2233
2226
  const c = $(l);
2234
- let y;
2235
- e[9] !== t ? (y = (L) => L.maps[t].overlayRef, e[9] = t, e[10] = y) : y = e[10];
2236
- const p = $(y), g = _e(null);
2227
+ let h;
2228
+ e[9] !== t ? (h = (O) => O.maps[t].overlayRef, e[9] = t, e[10] = h) : h = e[10];
2229
+ const p = $(h), g = _e(null);
2237
2230
  let f;
2238
- e[11] !== t ? (f = (L) => L.viewStates[t], e[11] = t, e[12] = f) : f = e[12];
2239
- const m = $(f), b = $(Dn), T = $(An), u = $(kn), h = $(Cn), S = $(Fn);
2231
+ e[11] !== t ? (f = (O) => O.viewStates[t], e[11] = t, e[12] = f) : f = e[12];
2232
+ const m = $(f), b = $(Dn), T = $(An), u = $(kn), y = $(Cn), S = $(Fn);
2240
2233
  let M;
2241
2234
  e[13] !== t ? (M = {
2242
2235
  mapId: t
2243
2236
  }, e[13] = t, e[14] = M) : M = e[14];
2244
2237
  const w = En(M);
2245
- let E, F;
2246
- e[15] !== w ? (F = Ct(w), e[15] = w, e[16] = F) : F = e[16], E = F;
2247
- const x = E;
2248
- let A;
2249
- e[17] !== t || e[18] !== n || e[19] !== T || e[20] !== S ? (A = (L) => {
2250
- const O = T;
2238
+ let E, C;
2239
+ e[15] !== w ? (C = kt(w), e[15] = w, e[16] = C) : C = e[16], E = C;
2240
+ const U = E;
2241
+ let R;
2242
+ e[17] !== t || e[18] !== n || e[19] !== T || e[20] !== S ? (R = (O) => {
2243
+ const P = T;
2251
2244
  if (g.current && clearInterval(g.current), g.current = setTimeout(() => {
2252
2245
  S(t);
2253
- }, Ln), n) {
2254
- n(L, O);
2246
+ }, Pn), n) {
2247
+ n(O, P);
2255
2248
  return;
2256
2249
  }
2257
- O(t, L.viewState);
2258
- }, e[17] = t, e[18] = n, e[19] = T, e[20] = S, e[21] = A) : A = e[21];
2259
- const q = A;
2250
+ P(t, O.viewState);
2251
+ }, e[17] = t, e[18] = n, e[19] = T, e[20] = S, e[21] = R) : R = e[21];
2252
+ const j = R;
2260
2253
  let B;
2261
- e[22] !== t || e[23] !== s || e[24] !== u || e[25] !== S ? (B = (L) => {
2262
- u(t, L), s == null || s(L), S(t);
2254
+ e[22] !== t || e[23] !== s || e[24] !== u || e[25] !== S ? (B = (O) => {
2255
+ u(t, O), s == null || s(O), S(t);
2263
2256
  }, e[22] = t, e[23] = s, e[24] = u, e[25] = S, e[26] = B) : B = e[26];
2264
- const U = B;
2257
+ const x = B;
2265
2258
  let _;
2266
- e[27] !== b || e[28] !== t || e[29] !== o || e[30] !== h ? (_ = (L) => {
2267
- var W, K;
2268
- const O = (W = b(t)) == null ? void 0 : W.props.layers, H = !!(O != null && O.every(On));
2269
- h(t, H), (K = o.onAfterRender) == null || K.call(o, L);
2270
- }, e[27] = b, e[28] = t, e[29] = o, e[30] = h, e[31] = _) : _ = e[31];
2271
- const C = _, d = o.onDragEnd;
2259
+ e[27] !== b || e[28] !== t || e[29] !== o || e[30] !== y ? (_ = (O) => {
2260
+ var K, Z;
2261
+ const P = (K = b(t)) == null ? void 0 : K.props.layers, V = !!(P != null && P.every(On));
2262
+ y(t, V), (Z = o.onAfterRender) == null || Z.call(o, O);
2263
+ }, e[27] = b, e[28] = t, e[29] = o, e[30] = y, e[31] = _) : _ = e[31];
2264
+ const F = _, d = o.onDragEnd;
2272
2265
  let v;
2273
- e[32] !== d || e[33] !== t || e[34] !== S ? (v = (...L) => {
2274
- const O = L;
2275
- S(t), d && d(...O);
2266
+ e[32] !== d || e[33] !== t || e[34] !== S ? (v = (...O) => {
2267
+ const P = O;
2268
+ S(t), d && d(...P);
2276
2269
  }, e[32] = d, e[33] = t, e[34] = S, e[35] = v) : v = e[35];
2277
- const P = v;
2270
+ const L = v;
2278
2271
  let k;
2279
- return e[36] !== a || e[37] !== x || e[38] !== C || e[39] !== P || e[40] !== U || e[41] !== q || e[42] !== t || e[43] !== c || e[44] !== p || e[45] !== o || e[46] !== m ? (k = /* @__PURE__ */ N(Os, { ...o, id: t, layers: x, instanceRef: c, overlayRef: p, basemap: a, initialViewState: m, onLoad: U, onViewStateChange: q, onAfterRender: C, onDragEnd: P }), e[36] = a, e[37] = x, e[38] = C, e[39] = P, e[40] = U, e[41] = q, e[42] = t, e[43] = c, e[44] = p, e[45] = o, e[46] = m, e[47] = k) : k = e[47], k;
2272
+ return e[36] !== a || e[37] !== U || e[38] !== F || e[39] !== L || e[40] !== x || e[41] !== j || e[42] !== t || e[43] !== c || e[44] !== p || e[45] !== o || e[46] !== m ? (k = /* @__PURE__ */ H(Os, { ...o, id: t, layers: U, instanceRef: c, overlayRef: p, basemap: a, initialViewState: m, onLoad: x, onViewStateChange: j, onAfterRender: F, onDragEnd: L }), e[36] = a, e[37] = U, e[38] = F, e[39] = L, e[40] = x, e[41] = j, e[42] = t, e[43] = c, e[44] = p, e[45] = o, e[46] = m, e[47] = k) : k = e[47], k;
2280
2273
  }
2281
2274
  function On(r) {
2282
2275
  return r == null ? void 0 : r.isLoaded;
@@ -2325,7 +2318,7 @@ function Rn() {
2325
2318
  return d && DataView.prototype.isPrototypeOf(d);
2326
2319
  }
2327
2320
  if (l.arrayBuffer)
2328
- var y = [
2321
+ var h = [
2329
2322
  "[object Int8Array]",
2330
2323
  "[object Uint8Array]",
2331
2324
  "[object Uint8ClampedArray]",
@@ -2336,7 +2329,7 @@ function Rn() {
2336
2329
  "[object Float32Array]",
2337
2330
  "[object Float64Array]"
2338
2331
  ], p = ArrayBuffer.isView || function(d) {
2339
- return d && y.indexOf(Object.prototype.toString.call(d)) > -1;
2332
+ return d && h.indexOf(Object.prototype.toString.call(d)) > -1;
2340
2333
  };
2341
2334
  function g(d) {
2342
2335
  if (typeof d != "string" && (d = String(d)), /[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(d) || d === "")
@@ -2349,8 +2342,8 @@ function Rn() {
2349
2342
  function m(d) {
2350
2343
  var v = {
2351
2344
  next: function() {
2352
- var P = d.shift();
2353
- return { done: P === void 0, value: P };
2345
+ var L = d.shift();
2346
+ return { done: L === void 0, value: L };
2354
2347
  }
2355
2348
  };
2356
2349
  return l.iterable && (v[Symbol.iterator] = function() {
@@ -2358,8 +2351,8 @@ function Rn() {
2358
2351
  }), v;
2359
2352
  }
2360
2353
  function b(d) {
2361
- this.map = {}, d instanceof b ? d.forEach(function(v, P) {
2362
- this.append(P, v);
2354
+ this.map = {}, d instanceof b ? d.forEach(function(v, L) {
2355
+ this.append(L, v);
2363
2356
  }, this) : Array.isArray(d) ? d.forEach(function(v) {
2364
2357
  if (v.length != 2)
2365
2358
  throw new TypeError("Headers constructor: expected name/value pair to be length 2, found" + v.length);
@@ -2370,8 +2363,8 @@ function Rn() {
2370
2363
  }
2371
2364
  b.prototype.append = function(d, v) {
2372
2365
  d = g(d), v = f(v);
2373
- var P = this.map[d];
2374
- this.map[d] = P ? P + ", " + v : v;
2366
+ var L = this.map[d];
2367
+ this.map[d] = L ? L + ", " + v : v;
2375
2368
  }, b.prototype.delete = function(d) {
2376
2369
  delete this.map[g(d)];
2377
2370
  }, b.prototype.get = function(d) {
@@ -2381,12 +2374,12 @@ function Rn() {
2381
2374
  }, b.prototype.set = function(d, v) {
2382
2375
  this.map[g(d)] = f(v);
2383
2376
  }, b.prototype.forEach = function(d, v) {
2384
- for (var P in this.map)
2385
- this.map.hasOwnProperty(P) && d.call(v, this.map[P], P, this);
2377
+ for (var L in this.map)
2378
+ this.map.hasOwnProperty(L) && d.call(v, this.map[L], L, this);
2386
2379
  }, b.prototype.keys = function() {
2387
2380
  var d = [];
2388
- return this.forEach(function(v, P) {
2389
- d.push(P);
2381
+ return this.forEach(function(v, L) {
2382
+ d.push(L);
2390
2383
  }), m(d);
2391
2384
  }, b.prototype.values = function() {
2392
2385
  var d = [];
@@ -2395,8 +2388,8 @@ function Rn() {
2395
2388
  }), m(d);
2396
2389
  }, b.prototype.entries = function() {
2397
2390
  var d = [];
2398
- return this.forEach(function(v, P) {
2399
- d.push([P, v]);
2391
+ return this.forEach(function(v, L) {
2392
+ d.push([L, v]);
2400
2393
  }), m(d);
2401
2394
  }, l.iterable && (b.prototype[Symbol.iterator] = b.prototype.entries);
2402
2395
  function T(d) {
@@ -2407,26 +2400,26 @@ function Rn() {
2407
2400
  }
2408
2401
  }
2409
2402
  function u(d) {
2410
- return new Promise(function(v, P) {
2403
+ return new Promise(function(v, L) {
2411
2404
  d.onload = function() {
2412
2405
  v(d.result);
2413
2406
  }, d.onerror = function() {
2414
- P(d.error);
2407
+ L(d.error);
2415
2408
  };
2416
2409
  });
2417
2410
  }
2418
- function h(d) {
2419
- var v = new FileReader(), P = u(v);
2420
- return v.readAsArrayBuffer(d), P;
2411
+ function y(d) {
2412
+ var v = new FileReader(), L = u(v);
2413
+ return v.readAsArrayBuffer(d), L;
2421
2414
  }
2422
2415
  function S(d) {
2423
- var v = new FileReader(), P = u(v), k = /charset=([A-Za-z0-9_-]+)/.exec(d.type), L = k ? k[1] : "utf-8";
2424
- return v.readAsText(d, L), P;
2416
+ var v = new FileReader(), L = u(v), k = /charset=([A-Za-z0-9_-]+)/.exec(d.type), O = k ? k[1] : "utf-8";
2417
+ return v.readAsText(d, O), L;
2425
2418
  }
2426
2419
  function M(d) {
2427
- for (var v = new Uint8Array(d), P = new Array(v.length), k = 0; k < v.length; k++)
2428
- P[k] = String.fromCharCode(v[k]);
2429
- return P.join("");
2420
+ for (var v = new Uint8Array(d), L = new Array(v.length), k = 0; k < v.length; k++)
2421
+ L[k] = String.fromCharCode(v[k]);
2422
+ return L.join("");
2430
2423
  }
2431
2424
  function w(d) {
2432
2425
  if (d.slice)
@@ -2459,7 +2452,7 @@ function Rn() {
2459
2452
  ) : Promise.resolve(this._bodyArrayBuffer));
2460
2453
  } else {
2461
2454
  if (l.blob)
2462
- return this.blob().then(h);
2455
+ return this.blob().then(y);
2463
2456
  throw new Error("could not read as ArrayBuffer");
2464
2457
  }
2465
2458
  }, this.text = function() {
@@ -2474,163 +2467,163 @@ function Rn() {
2474
2467
  throw new Error("could not read FormData body as text");
2475
2468
  return Promise.resolve(this._bodyText);
2476
2469
  }, l.formData && (this.formData = function() {
2477
- return this.text().then(q);
2470
+ return this.text().then(j);
2478
2471
  }), this.json = function() {
2479
2472
  return this.text().then(JSON.parse);
2480
2473
  }, this;
2481
2474
  }
2482
- var F = ["CONNECT", "DELETE", "GET", "HEAD", "OPTIONS", "PATCH", "POST", "PUT", "TRACE"];
2483
- function x(d) {
2475
+ var C = ["CONNECT", "DELETE", "GET", "HEAD", "OPTIONS", "PATCH", "POST", "PUT", "TRACE"];
2476
+ function U(d) {
2484
2477
  var v = d.toUpperCase();
2485
- return F.indexOf(v) > -1 ? v : d;
2478
+ return C.indexOf(v) > -1 ? v : d;
2486
2479
  }
2487
- function A(d, v) {
2488
- if (!(this instanceof A))
2480
+ function R(d, v) {
2481
+ if (!(this instanceof R))
2489
2482
  throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');
2490
2483
  v = v || {};
2491
- var P = v.body;
2492
- if (d instanceof A) {
2484
+ var L = v.body;
2485
+ if (d instanceof R) {
2493
2486
  if (d.bodyUsed)
2494
2487
  throw new TypeError("Already read");
2495
- this.url = d.url, this.credentials = d.credentials, v.headers || (this.headers = new b(d.headers)), this.method = d.method, this.mode = d.mode, this.signal = d.signal, !P && d._bodyInit != null && (P = d._bodyInit, d.bodyUsed = !0);
2488
+ this.url = d.url, this.credentials = d.credentials, v.headers || (this.headers = new b(d.headers)), this.method = d.method, this.mode = d.mode, this.signal = d.signal, !L && d._bodyInit != null && (L = d._bodyInit, d.bodyUsed = !0);
2496
2489
  } else
2497
2490
  this.url = String(d);
2498
- if (this.credentials = v.credentials || this.credentials || "same-origin", (v.headers || !this.headers) && (this.headers = new b(v.headers)), this.method = x(v.method || this.method || "GET"), this.mode = v.mode || this.mode || null, this.signal = v.signal || this.signal || function() {
2491
+ if (this.credentials = v.credentials || this.credentials || "same-origin", (v.headers || !this.headers) && (this.headers = new b(v.headers)), this.method = U(v.method || this.method || "GET"), this.mode = v.mode || this.mode || null, this.signal = v.signal || this.signal || function() {
2499
2492
  if ("AbortController" in a) {
2500
- var O = new AbortController();
2501
- return O.signal;
2493
+ var P = new AbortController();
2494
+ return P.signal;
2502
2495
  }
2503
- }(), this.referrer = null, (this.method === "GET" || this.method === "HEAD") && P)
2496
+ }(), this.referrer = null, (this.method === "GET" || this.method === "HEAD") && L)
2504
2497
  throw new TypeError("Body not allowed for GET or HEAD requests");
2505
- if (this._initBody(P), (this.method === "GET" || this.method === "HEAD") && (v.cache === "no-store" || v.cache === "no-cache")) {
2498
+ if (this._initBody(L), (this.method === "GET" || this.method === "HEAD") && (v.cache === "no-store" || v.cache === "no-cache")) {
2506
2499
  var k = /([?&])_=[^&]*/;
2507
2500
  if (k.test(this.url))
2508
2501
  this.url = this.url.replace(k, "$1_=" + (/* @__PURE__ */ new Date()).getTime());
2509
2502
  else {
2510
- var L = /\?/;
2511
- this.url += (L.test(this.url) ? "&" : "?") + "_=" + (/* @__PURE__ */ new Date()).getTime();
2503
+ var O = /\?/;
2504
+ this.url += (O.test(this.url) ? "&" : "?") + "_=" + (/* @__PURE__ */ new Date()).getTime();
2512
2505
  }
2513
2506
  }
2514
2507
  }
2515
- A.prototype.clone = function() {
2516
- return new A(this, { body: this._bodyInit });
2508
+ R.prototype.clone = function() {
2509
+ return new R(this, { body: this._bodyInit });
2517
2510
  };
2518
- function q(d) {
2511
+ function j(d) {
2519
2512
  var v = new FormData();
2520
- return d.trim().split("&").forEach(function(P) {
2521
- if (P) {
2522
- var k = P.split("="), L = k.shift().replace(/\+/g, " "), O = k.join("=").replace(/\+/g, " ");
2523
- v.append(decodeURIComponent(L), decodeURIComponent(O));
2513
+ return d.trim().split("&").forEach(function(L) {
2514
+ if (L) {
2515
+ var k = L.split("="), O = k.shift().replace(/\+/g, " "), P = k.join("=").replace(/\+/g, " ");
2516
+ v.append(decodeURIComponent(O), decodeURIComponent(P));
2524
2517
  }
2525
2518
  }), v;
2526
2519
  }
2527
2520
  function B(d) {
2528
- var v = new b(), P = d.replace(/\r?\n[\t ]+/g, " ");
2529
- return P.split("\r").map(function(k) {
2521
+ var v = new b(), L = d.replace(/\r?\n[\t ]+/g, " ");
2522
+ return L.split("\r").map(function(k) {
2530
2523
  return k.indexOf(`
2531
2524
  `) === 0 ? k.substr(1, k.length) : k;
2532
2525
  }).forEach(function(k) {
2533
- var L = k.split(":"), O = L.shift().trim();
2534
- if (O) {
2535
- var H = L.join(":").trim();
2526
+ var O = k.split(":"), P = O.shift().trim();
2527
+ if (P) {
2528
+ var V = O.join(":").trim();
2536
2529
  try {
2537
- v.append(O, H);
2538
- } catch (W) {
2539
- console.warn("Response " + W.message);
2530
+ v.append(P, V);
2531
+ } catch (K) {
2532
+ console.warn("Response " + K.message);
2540
2533
  }
2541
2534
  }
2542
2535
  }), v;
2543
2536
  }
2544
- E.call(A.prototype);
2545
- function U(d, v) {
2546
- if (!(this instanceof U))
2537
+ E.call(R.prototype);
2538
+ function x(d, v) {
2539
+ if (!(this instanceof x))
2547
2540
  throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');
2548
2541
  if (v || (v = {}), this.type = "default", this.status = v.status === void 0 ? 200 : v.status, this.status < 200 || this.status > 599)
2549
2542
  throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");
2550
2543
  this.ok = this.status >= 200 && this.status < 300, this.statusText = v.statusText === void 0 ? "" : "" + v.statusText, this.headers = new b(v.headers), this.url = v.url || "", this._initBody(d);
2551
2544
  }
2552
- E.call(U.prototype), U.prototype.clone = function() {
2553
- return new U(this._bodyInit, {
2545
+ E.call(x.prototype), x.prototype.clone = function() {
2546
+ return new x(this._bodyInit, {
2554
2547
  status: this.status,
2555
2548
  statusText: this.statusText,
2556
2549
  headers: new b(this.headers),
2557
2550
  url: this.url
2558
2551
  });
2559
- }, U.error = function() {
2560
- var d = new U(null, { status: 200, statusText: "" });
2552
+ }, x.error = function() {
2553
+ var d = new x(null, { status: 200, statusText: "" });
2561
2554
  return d.ok = !1, d.status = 0, d.type = "error", d;
2562
2555
  };
2563
2556
  var _ = [301, 302, 303, 307, 308];
2564
- U.redirect = function(d, v) {
2557
+ x.redirect = function(d, v) {
2565
2558
  if (_.indexOf(v) === -1)
2566
2559
  throw new RangeError("Invalid status code");
2567
- return new U(null, { status: v, headers: { location: d } });
2560
+ return new x(null, { status: v, headers: { location: d } });
2568
2561
  }, i.DOMException = a.DOMException;
2569
2562
  try {
2570
2563
  new i.DOMException();
2571
2564
  } catch {
2572
- i.DOMException = function(v, P) {
2573
- this.message = v, this.name = P;
2565
+ i.DOMException = function(v, L) {
2566
+ this.message = v, this.name = L;
2574
2567
  var k = Error(v);
2575
2568
  this.stack = k.stack;
2576
2569
  }, i.DOMException.prototype = Object.create(Error.prototype), i.DOMException.prototype.constructor = i.DOMException;
2577
2570
  }
2578
- function C(d, v) {
2579
- return new Promise(function(P, k) {
2580
- var L = new A(d, v);
2581
- if (L.signal && L.signal.aborted)
2571
+ function F(d, v) {
2572
+ return new Promise(function(L, k) {
2573
+ var O = new R(d, v);
2574
+ if (O.signal && O.signal.aborted)
2582
2575
  return k(new i.DOMException("Aborted", "AbortError"));
2583
- var O = new XMLHttpRequest();
2584
- function H() {
2585
- O.abort();
2576
+ var P = new XMLHttpRequest();
2577
+ function V() {
2578
+ P.abort();
2586
2579
  }
2587
- O.onload = function() {
2588
- var j = {
2589
- statusText: O.statusText,
2590
- headers: B(O.getAllResponseHeaders() || "")
2580
+ P.onload = function() {
2581
+ var q = {
2582
+ statusText: P.statusText,
2583
+ headers: B(P.getAllResponseHeaders() || "")
2591
2584
  };
2592
- L.url.indexOf("file://") === 0 && (O.status < 200 || O.status > 599) ? j.status = 200 : j.status = O.status, j.url = "responseURL" in O ? O.responseURL : j.headers.get("X-Request-URL");
2593
- var X = "response" in O ? O.response : O.responseText;
2585
+ O.url.indexOf("file://") === 0 && (P.status < 200 || P.status > 599) ? q.status = 200 : q.status = P.status, q.url = "responseURL" in P ? P.responseURL : q.headers.get("X-Request-URL");
2586
+ var W = "response" in P ? P.response : P.responseText;
2594
2587
  setTimeout(function() {
2595
- P(new U(X, j));
2588
+ L(new x(W, q));
2596
2589
  }, 0);
2597
- }, O.onerror = function() {
2590
+ }, P.onerror = function() {
2598
2591
  setTimeout(function() {
2599
2592
  k(new TypeError("Network request failed"));
2600
2593
  }, 0);
2601
- }, O.ontimeout = function() {
2594
+ }, P.ontimeout = function() {
2602
2595
  setTimeout(function() {
2603
2596
  k(new TypeError("Network request timed out"));
2604
2597
  }, 0);
2605
- }, O.onabort = function() {
2598
+ }, P.onabort = function() {
2606
2599
  setTimeout(function() {
2607
2600
  k(new i.DOMException("Aborted", "AbortError"));
2608
2601
  }, 0);
2609
2602
  };
2610
- function W(j) {
2603
+ function K(q) {
2611
2604
  try {
2612
- return j === "" && a.location.href ? a.location.href : j;
2605
+ return q === "" && a.location.href ? a.location.href : q;
2613
2606
  } catch {
2614
- return j;
2607
+ return q;
2615
2608
  }
2616
2609
  }
2617
- if (O.open(L.method, W(L.url), !0), L.credentials === "include" ? O.withCredentials = !0 : L.credentials === "omit" && (O.withCredentials = !1), "responseType" in O && (l.blob ? O.responseType = "blob" : l.arrayBuffer && (O.responseType = "arraybuffer")), v && typeof v.headers == "object" && !(v.headers instanceof b || a.Headers && v.headers instanceof a.Headers)) {
2618
- var K = [];
2619
- Object.getOwnPropertyNames(v.headers).forEach(function(j) {
2620
- K.push(g(j)), O.setRequestHeader(j, f(v.headers[j]));
2621
- }), L.headers.forEach(function(j, X) {
2622
- K.indexOf(X) === -1 && O.setRequestHeader(X, j);
2610
+ if (P.open(O.method, K(O.url), !0), O.credentials === "include" ? P.withCredentials = !0 : O.credentials === "omit" && (P.withCredentials = !1), "responseType" in P && (l.blob ? P.responseType = "blob" : l.arrayBuffer && (P.responseType = "arraybuffer")), v && typeof v.headers == "object" && !(v.headers instanceof b || a.Headers && v.headers instanceof a.Headers)) {
2611
+ var Z = [];
2612
+ Object.getOwnPropertyNames(v.headers).forEach(function(q) {
2613
+ Z.push(g(q)), P.setRequestHeader(q, f(v.headers[q]));
2614
+ }), O.headers.forEach(function(q, W) {
2615
+ Z.indexOf(W) === -1 && P.setRequestHeader(W, q);
2623
2616
  });
2624
2617
  } else
2625
- L.headers.forEach(function(j, X) {
2626
- O.setRequestHeader(X, j);
2618
+ O.headers.forEach(function(q, W) {
2619
+ P.setRequestHeader(W, q);
2627
2620
  });
2628
- L.signal && (L.signal.addEventListener("abort", H), O.onreadystatechange = function() {
2629
- O.readyState === 4 && L.signal.removeEventListener("abort", H);
2630
- }), O.send(typeof L._bodyInit > "u" ? null : L._bodyInit);
2621
+ O.signal && (O.signal.addEventListener("abort", V), P.onreadystatechange = function() {
2622
+ P.readyState === 4 && O.signal.removeEventListener("abort", V);
2623
+ }), P.send(typeof O._bodyInit > "u" ? null : O._bodyInit);
2631
2624
  });
2632
2625
  }
2633
- return C.polyfill = !0, a.fetch || (a.fetch = C, a.Headers = b, a.Request = A, a.Response = U), i.Headers = b, i.Request = A, i.Response = U, i.fetch = C, i;
2626
+ return F.polyfill = !0, a.fetch || (a.fetch = F, a.Headers = b, a.Request = R, a.Response = x), i.Headers = b, i.Request = R, i.Response = x, i.fetch = F, i;
2634
2627
  })({});
2635
2628
  })(s), s.fetch.ponyfill = !0, delete s.fetch.polyfill;
2636
2629
  var n = t.fetch ? t : s;
@@ -2638,7 +2631,7 @@ function Rn() {
2638
2631
  }(Ee, Ee.exports)), Ee.exports;
2639
2632
  }
2640
2633
  var $n = Rn();
2641
- const xn = /* @__PURE__ */ wt($n), We = "https://gcp-us-east1.api.carto.com", Ke = "v3", Un = "ps", de = {
2634
+ const xn = /* @__PURE__ */ Mt($n), We = "https://gcp-us-east1.api.carto.com", Ke = "v3", Un = "ps", de = {
2642
2635
  get: "GET",
2643
2636
  post: "POST"
2644
2637
  };
@@ -2667,8 +2660,8 @@ function Vn() {
2667
2660
  return !!u && typeof u == "object";
2668
2661
  }
2669
2662
  function t(u) {
2670
- var h = Object.prototype.toString.call(u);
2671
- return h === "[object RegExp]" || h === "[object Date]" || o(u);
2663
+ var y = Object.prototype.toString.call(u);
2664
+ return y === "[object RegExp]" || y === "[object Date]" || o(u);
2672
2665
  }
2673
2666
  var s = typeof Symbol == "function" && Symbol.for, n = s ? Symbol.for("react.element") : 60103;
2674
2667
  function o(u) {
@@ -2677,54 +2670,54 @@ function Vn() {
2677
2670
  function i(u) {
2678
2671
  return Array.isArray(u) ? [] : {};
2679
2672
  }
2680
- function a(u, h) {
2681
- return h.clone !== !1 && h.isMergeableObject(u) ? b(i(u), u, h) : u;
2673
+ function a(u, y) {
2674
+ return y.clone !== !1 && y.isMergeableObject(u) ? b(i(u), u, y) : u;
2682
2675
  }
2683
- function l(u, h, S) {
2684
- return u.concat(h).map(function(M) {
2676
+ function l(u, y, S) {
2677
+ return u.concat(y).map(function(M) {
2685
2678
  return a(M, S);
2686
2679
  });
2687
2680
  }
2688
- function c(u, h) {
2689
- if (!h.customMerge) return b;
2690
- var S = h.customMerge(u);
2681
+ function c(u, y) {
2682
+ if (!y.customMerge) return b;
2683
+ var S = y.customMerge(u);
2691
2684
  return typeof S == "function" ? S : b;
2692
2685
  }
2693
- function y(u) {
2694
- return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(u).filter(function(h) {
2695
- return Object.propertyIsEnumerable.call(u, h);
2686
+ function h(u) {
2687
+ return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(u).filter(function(y) {
2688
+ return Object.propertyIsEnumerable.call(u, y);
2696
2689
  }) : [];
2697
2690
  }
2698
2691
  function p(u) {
2699
- return Object.keys(u).concat(y(u));
2692
+ return Object.keys(u).concat(h(u));
2700
2693
  }
2701
- function g(u, h) {
2694
+ function g(u, y) {
2702
2695
  try {
2703
- return h in u;
2696
+ return y in u;
2704
2697
  } catch {
2705
2698
  return !1;
2706
2699
  }
2707
2700
  }
2708
- function f(u, h) {
2709
- return g(u, h) && !(Object.hasOwnProperty.call(u, h) && Object.propertyIsEnumerable.call(u, h));
2701
+ function f(u, y) {
2702
+ return g(u, y) && !(Object.hasOwnProperty.call(u, y) && Object.propertyIsEnumerable.call(u, y));
2710
2703
  }
2711
- function m(u, h, S) {
2704
+ function m(u, y, S) {
2712
2705
  var M = {};
2713
2706
  return S.isMergeableObject(u) && p(u).forEach(function(w) {
2714
2707
  M[w] = a(u[w], S);
2715
- }), p(h).forEach(function(w) {
2716
- f(u, w) || (g(u, w) && S.isMergeableObject(h[w]) ? M[w] = c(w, S)(u[w], h[w], S) : M[w] = a(h[w], S));
2708
+ }), p(y).forEach(function(w) {
2709
+ f(u, w) || (g(u, w) && S.isMergeableObject(y[w]) ? M[w] = c(w, S)(u[w], y[w], S) : M[w] = a(y[w], S));
2717
2710
  }), M;
2718
2711
  }
2719
- function b(u, h, S) {
2712
+ function b(u, y, S) {
2720
2713
  S = S || {}, S.arrayMerge = S.arrayMerge || l, S.isMergeableObject = S.isMergeableObject || r, S.cloneUnlessOtherwiseSpecified = a;
2721
- var M = Array.isArray(h), w = Array.isArray(u), E = M === w;
2722
- return E ? M ? S.arrayMerge(u, h, S) : m(u, h, S) : a(h, S);
2714
+ var M = Array.isArray(y), w = Array.isArray(u), E = M === w;
2715
+ return E ? M ? S.arrayMerge(u, y, S) : m(u, y, S) : a(y, S);
2723
2716
  }
2724
- b.all = function(u, h) {
2717
+ b.all = function(u, y) {
2725
2718
  if (!Array.isArray(u)) throw new Error("first argument should be an array");
2726
2719
  return u.reduce(function(S, M) {
2727
- return b(S, M, h);
2720
+ return b(S, M, y);
2728
2721
  }, {});
2729
2722
  };
2730
2723
  var T = b;
@@ -2774,7 +2767,7 @@ function Hn({
2774
2767
  }, s), r);
2775
2768
  }
2776
2769
  const Gn = 6144;
2777
- async function kt({
2770
+ async function At({
2778
2771
  signal: r,
2779
2772
  body: e,
2780
2773
  accessToken: t,
@@ -2792,10 +2785,10 @@ async function kt({
2792
2785
  let c = qn({
2793
2786
  url: i,
2794
2787
  params: o
2795
- }), y = e, p = n;
2796
- n === de.get && c.length > a && (y = o, p = de.post, c = i);
2788
+ }), h = e, p = n;
2789
+ n === de.get && c.length > a && (h = o, p = de.post, c = i);
2797
2790
  const g = Hn({
2798
- body: y,
2791
+ body: h,
2799
2792
  accessToken: t ?? (s == null ? void 0 : s.accessToken),
2800
2793
  method: p,
2801
2794
  ...l
@@ -2808,7 +2801,7 @@ async function kt({
2808
2801
  }
2809
2802
  return f.status === 204 ? Promise.resolve() : await f.json();
2810
2803
  }
2811
- const Pe = mt()(hs((r, e) => ({
2804
+ const Le = mt()(hs((r, e) => ({
2812
2805
  sources: {},
2813
2806
  filters: {},
2814
2807
  setSource: (t, s) => r((n) => {
@@ -2823,13 +2816,13 @@ const Pe = mt()(hs((r, e) => ({
2823
2816
  const a = o[t], {
2824
2817
  apiBaseUrl: l = We,
2825
2818
  clientId: c = Un,
2826
- apiVersion: y = Ke,
2819
+ apiVersion: h = Ke,
2827
2820
  ...p
2828
2821
  } = s, g = {
2829
2822
  ...a,
2830
2823
  ...p,
2831
2824
  apiBaseUrl: l,
2832
- apiVersion: y,
2825
+ apiVersion: h,
2833
2826
  clientId: c
2834
2827
  }, f = Kn({
2835
2828
  source: g
@@ -2852,7 +2845,7 @@ const Pe = mt()(hs((r, e) => ({
2852
2845
  const i = n.filters[t] ?? {};
2853
2846
  return s.length !== 0 && (o = s.reduce((a, l) => {
2854
2847
  var c;
2855
- return !("values" in l) || !((c = l.values) != null && c.length) ? Xe(a, l) : vt(a, l);
2848
+ return !("values" in l) || !((c = l.values) != null && c.length) ? Xe(a, l) : St(a, l);
2856
2849
  }, i)), {
2857
2850
  filters: {
2858
2851
  ...n.filters,
@@ -2899,23 +2892,23 @@ const Pe = mt()(hs((r, e) => ({
2899
2892
  }
2900
2893
  })));
2901
2894
  function zn(r) {
2902
- const e = D(2);
2895
+ const e = A(2);
2903
2896
  let t;
2904
- return e[0] !== r ? (t = (s) => s.sources[r], e[0] = r, e[1] = t) : t = e[1], Pe(t);
2897
+ return e[0] !== r ? (t = (s) => s.sources[r], e[0] = r, e[1] = t) : t = e[1], Le(t);
2905
2898
  }
2906
2899
  function Qn(r) {
2907
- const e = D(2);
2900
+ const e = A(2);
2908
2901
  let t;
2909
- return e[0] !== r ? (t = (s) => s.filters[r], e[0] = r, e[1] = t) : t = e[1], Pe(t);
2902
+ return e[0] !== r ? (t = (s) => s.filters[r], e[0] = r, e[1] = t) : t = e[1], Le(t);
2910
2903
  }
2911
2904
  function Zr(r) {
2912
- const e = D(9);
2905
+ const e = A(9);
2913
2906
  let t;
2914
2907
  e[0] !== r ? (t = (a) => a.sources[r], e[0] = r, e[1] = t) : t = e[1];
2915
- const s = Pe(t);
2908
+ const s = Le(t);
2916
2909
  let n;
2917
2910
  e[2] !== r ? (n = (a) => a.filters[r], e[2] = r, e[3] = n) : n = e[3];
2918
- const o = Pe(n);
2911
+ const o = Le(n);
2919
2912
  let i;
2920
2913
  e: {
2921
2914
  if (!s) {
@@ -3006,7 +2999,7 @@ function ie(r, e) {
3006
2999
  }, [r, t]);
3007
3000
  }
3008
3001
  function ae(r, e) {
3009
- const t = D(5), s = Qn(r);
3002
+ const t = A(5), s = Qn(r);
3010
3003
  let n;
3011
3004
  e: {
3012
3005
  if (!(e != null && e.length)) {
@@ -3025,10 +3018,10 @@ function ae(r, e) {
3025
3018
  return n;
3026
3019
  }
3027
3020
  function Zn(r, e) {
3028
- return vt(r, e);
3021
+ return St(r, e);
3029
3022
  }
3030
3023
  function Yn(r) {
3031
- const e = D(19), {
3024
+ const e = A(19), {
3032
3025
  accessToken: t,
3033
3026
  sourceId: s,
3034
3027
  widgetProps: n,
@@ -3042,21 +3035,21 @@ function Yn(r) {
3042
3035
  enabled: l,
3043
3036
  ...c
3044
3037
  } = a, e[2] = a, e[3] = l, e[4] = c) : (l = e[3], c = e[4]);
3045
- const y = l === void 0 ? !0 : l, p = ae(s, o), g = ie(t, s);
3038
+ const h = l === void 0 ? !0 : l, p = ae(s, o), g = ie(t, s);
3046
3039
  let f;
3047
3040
  e[5] !== t || e[6] !== p || e[7] !== s || e[8] !== n ? (f = ["categories", s, t, n, p], e[5] = t, e[6] = p, e[7] = s, e[8] = n, e[9] = f) : f = e[9];
3048
3041
  let m;
3049
3042
  e[10] !== p || e[11] !== g || e[12] !== n ? (m = (u) => {
3050
3043
  const {
3051
- signal: h
3044
+ signal: y
3052
3045
  } = u;
3053
3046
  return g.getCategories({
3054
3047
  ...n,
3055
3048
  filters: p,
3056
- signal: h
3049
+ signal: y
3057
3050
  });
3058
3051
  }, e[10] = p, e[11] = g, e[12] = n, e[13] = m) : m = e[13];
3059
- const b = !!g && y;
3052
+ const b = !!g && h;
3060
3053
  let T;
3061
3054
  return e[14] !== f || e[15] !== m || e[16] !== b || e[17] !== c ? (T = {
3062
3055
  queryKey: f,
@@ -3066,7 +3059,7 @@ function Yn(r) {
3066
3059
  }, e[14] = f, e[15] = m, e[16] = b, e[17] = c, e[18] = T) : T = e[18], ne(T);
3067
3060
  }
3068
3061
  function Xr(r) {
3069
- const e = D(6);
3062
+ const e = A(6);
3070
3063
  let t, s;
3071
3064
  e[0] !== r ? ({
3072
3065
  children: t,
@@ -3077,7 +3070,7 @@ function Xr(r) {
3077
3070
  return e[3] !== t || e[4] !== n ? (o = t(n), e[3] = t, e[4] = n, e[5] = o) : o = e[5], o;
3078
3071
  }
3079
3072
  function Xn(r) {
3080
- const e = D(19), {
3073
+ const e = A(19), {
3081
3074
  accessToken: t,
3082
3075
  sourceId: s,
3083
3076
  widgetProps: n,
@@ -3091,21 +3084,21 @@ function Xn(r) {
3091
3084
  enabled: l,
3092
3085
  ...c
3093
3086
  } = a, e[2] = a, e[3] = l, e[4] = c) : (l = e[3], c = e[4]);
3094
- const y = l === void 0 ? !0 : l, p = ae(s, o), g = ie(t, s);
3087
+ const h = l === void 0 ? !0 : l, p = ae(s, o), g = ie(t, s);
3095
3088
  let f;
3096
3089
  e[5] !== t || e[6] !== p || e[7] !== s || e[8] !== n ? (f = ["features", s, t, n, p], e[5] = t, e[6] = p, e[7] = s, e[8] = n, e[9] = f) : f = e[9];
3097
3090
  let m;
3098
3091
  e[10] !== p || e[11] !== g || e[12] !== n ? (m = (u) => {
3099
3092
  const {
3100
- signal: h
3093
+ signal: y
3101
3094
  } = u;
3102
3095
  return g.getFeatures({
3103
3096
  ...n,
3104
3097
  filters: p,
3105
- signal: h
3098
+ signal: y
3106
3099
  });
3107
3100
  }, e[10] = p, e[11] = g, e[12] = n, e[13] = m) : m = e[13];
3108
- const b = !!g && y;
3101
+ const b = !!g && h;
3109
3102
  let T;
3110
3103
  return e[14] !== f || e[15] !== m || e[16] !== b || e[17] !== c ? (T = {
3111
3104
  queryKey: f,
@@ -3115,7 +3108,7 @@ function Xn(r) {
3115
3108
  }, e[14] = f, e[15] = m, e[16] = b, e[17] = c, e[18] = T) : T = e[18], ne(T);
3116
3109
  }
3117
3110
  function Jr(r) {
3118
- const e = D(6);
3111
+ const e = A(6);
3119
3112
  let t, s;
3120
3113
  e[0] !== r ? ({
3121
3114
  children: t,
@@ -3126,7 +3119,7 @@ function Jr(r) {
3126
3119
  return e[3] !== t || e[4] !== n ? (o = t(n), e[3] = t, e[4] = n, e[5] = o) : o = e[5], o;
3127
3120
  }
3128
3121
  function Jn(r) {
3129
- const e = D(19), {
3122
+ const e = A(19), {
3130
3123
  accessToken: t,
3131
3124
  sourceId: s,
3132
3125
  widgetProps: n,
@@ -3140,21 +3133,21 @@ function Jn(r) {
3140
3133
  enabled: l,
3141
3134
  ...c
3142
3135
  } = a, e[2] = a, e[3] = l, e[4] = c) : (l = e[3], c = e[4]);
3143
- const y = l === void 0 ? !0 : l, p = ae(s, o), g = ie(t, s);
3136
+ const h = l === void 0 ? !0 : l, p = ae(s, o), g = ie(t, s);
3144
3137
  let f;
3145
3138
  e[5] !== t || e[6] !== p || e[7] !== s || e[8] !== n ? (f = ["formula", s, t, n, p], e[5] = t, e[6] = p, e[7] = s, e[8] = n, e[9] = f) : f = e[9];
3146
3139
  let m;
3147
3140
  e[10] !== p || e[11] !== g || e[12] !== n ? (m = (u) => {
3148
3141
  const {
3149
- signal: h
3142
+ signal: y
3150
3143
  } = u;
3151
3144
  return g.getFormula({
3152
3145
  ...n,
3153
3146
  filters: p,
3154
- signal: h
3147
+ signal: y
3155
3148
  });
3156
3149
  }, e[10] = p, e[11] = g, e[12] = n, e[13] = m) : m = e[13];
3157
- const b = !!g && y;
3150
+ const b = !!g && h;
3158
3151
  let T;
3159
3152
  return e[14] !== f || e[15] !== m || e[16] !== b || e[17] !== c ? (T = {
3160
3153
  queryKey: f,
@@ -3164,7 +3157,7 @@ function Jn(r) {
3164
3157
  }, e[14] = f, e[15] = m, e[16] = b, e[17] = c, e[18] = T) : T = e[18], ne(T);
3165
3158
  }
3166
3159
  function eo(r) {
3167
- const e = D(6);
3160
+ const e = A(6);
3168
3161
  let t, s;
3169
3162
  e[0] !== r ? ({
3170
3163
  children: t,
@@ -3175,7 +3168,7 @@ function eo(r) {
3175
3168
  return e[3] !== t || e[4] !== n ? (o = t(n), e[3] = t, e[4] = n, e[5] = o) : o = e[5], o;
3176
3169
  }
3177
3170
  function er(r) {
3178
- const e = D(19), {
3171
+ const e = A(19), {
3179
3172
  accessToken: t,
3180
3173
  sourceId: s,
3181
3174
  widgetProps: n,
@@ -3189,21 +3182,21 @@ function er(r) {
3189
3182
  enabled: l,
3190
3183
  ...c
3191
3184
  } = a, e[2] = a, e[3] = l, e[4] = c) : (l = e[3], c = e[4]);
3192
- const y = l === void 0 ? !0 : l, p = ae(s, o), g = ie(t, s);
3185
+ const h = l === void 0 ? !0 : l, p = ae(s, o), g = ie(t, s);
3193
3186
  let f;
3194
3187
  e[5] !== t || e[6] !== p || e[7] !== s || e[8] !== n ? (f = ["histogram", s, t, n, p], e[5] = t, e[6] = p, e[7] = s, e[8] = n, e[9] = f) : f = e[9];
3195
3188
  let m;
3196
3189
  e[10] !== p || e[11] !== g || e[12] !== n ? (m = (u) => {
3197
3190
  const {
3198
- signal: h
3191
+ signal: y
3199
3192
  } = u;
3200
3193
  return g.getHistogram({
3201
3194
  ...n,
3202
3195
  filters: p,
3203
- signal: h
3196
+ signal: y
3204
3197
  });
3205
3198
  }, e[10] = p, e[11] = g, e[12] = n, e[13] = m) : m = e[13];
3206
- const b = !!g && y;
3199
+ const b = !!g && h;
3207
3200
  let T;
3208
3201
  return e[14] !== f || e[15] !== m || e[16] !== b || e[17] !== c ? (T = {
3209
3202
  queryKey: f,
@@ -3213,7 +3206,7 @@ function er(r) {
3213
3206
  }, e[14] = f, e[15] = m, e[16] = b, e[17] = c, e[18] = T) : T = e[18], ne(T);
3214
3207
  }
3215
3208
  function to(r) {
3216
- const e = D(6);
3209
+ const e = A(6);
3217
3210
  let t, s;
3218
3211
  e[0] !== r ? ({
3219
3212
  children: t,
@@ -3224,7 +3217,7 @@ function to(r) {
3224
3217
  return e[3] !== t || e[4] !== n ? (o = t(n), e[3] = t, e[4] = n, e[5] = o) : o = e[5], o;
3225
3218
  }
3226
3219
  function tr(r) {
3227
- const e = D(19), {
3220
+ const e = A(19), {
3228
3221
  accessToken: t,
3229
3222
  sourceId: s,
3230
3223
  widgetProps: n,
@@ -3238,21 +3231,21 @@ function tr(r) {
3238
3231
  enabled: l,
3239
3232
  ...c
3240
3233
  } = a, e[2] = a, e[3] = l, e[4] = c) : (l = e[3], c = e[4]);
3241
- const y = l === void 0 ? !0 : l, p = ae(s, o), g = ie(t, s);
3234
+ const h = l === void 0 ? !0 : l, p = ae(s, o), g = ie(t, s);
3242
3235
  let f;
3243
3236
  e[5] !== t || e[6] !== p || e[7] !== s || e[8] !== n ? (f = ["range", s, t, n, p], e[5] = t, e[6] = p, e[7] = s, e[8] = n, e[9] = f) : f = e[9];
3244
3237
  let m;
3245
3238
  e[10] !== p || e[11] !== g || e[12] !== n ? (m = (u) => {
3246
3239
  const {
3247
- signal: h
3240
+ signal: y
3248
3241
  } = u;
3249
3242
  return g.getRange({
3250
3243
  ...n,
3251
3244
  filters: p,
3252
- signal: h
3245
+ signal: y
3253
3246
  });
3254
3247
  }, e[10] = p, e[11] = g, e[12] = n, e[13] = m) : m = e[13];
3255
- const b = !!g && y;
3248
+ const b = !!g && h;
3256
3249
  let T;
3257
3250
  return e[14] !== f || e[15] !== m || e[16] !== b || e[17] !== c ? (T = {
3258
3251
  queryKey: f,
@@ -3262,7 +3255,7 @@ function tr(r) {
3262
3255
  }, e[14] = f, e[15] = m, e[16] = b, e[17] = c, e[18] = T) : T = e[18], ne(T);
3263
3256
  }
3264
3257
  function so(r) {
3265
- const e = D(6);
3258
+ const e = A(6);
3266
3259
  let t, s;
3267
3260
  e[0] !== r ? ({
3268
3261
  children: t,
@@ -3273,7 +3266,7 @@ function so(r) {
3273
3266
  return e[3] !== t || e[4] !== n ? (o = t(n), e[3] = t, e[4] = n, e[5] = o) : o = e[5], o;
3274
3267
  }
3275
3268
  function sr(r) {
3276
- const e = D(19), {
3269
+ const e = A(19), {
3277
3270
  accessToken: t,
3278
3271
  sourceId: s,
3279
3272
  widgetProps: n,
@@ -3287,21 +3280,21 @@ function sr(r) {
3287
3280
  enabled: l,
3288
3281
  ...c
3289
3282
  } = a, e[2] = a, e[3] = l, e[4] = c) : (l = e[3], c = e[4]);
3290
- const y = l === void 0 ? !0 : l, p = ae(s, o), g = ie(t, s);
3283
+ const h = l === void 0 ? !0 : l, p = ae(s, o), g = ie(t, s);
3291
3284
  let f;
3292
3285
  e[5] !== t || e[6] !== p || e[7] !== s || e[8] !== n ? (f = ["scatter", s, t, n, p], e[5] = t, e[6] = p, e[7] = s, e[8] = n, e[9] = f) : f = e[9];
3293
3286
  let m;
3294
3287
  e[10] !== p || e[11] !== g || e[12] !== n ? (m = (u) => {
3295
3288
  const {
3296
- signal: h
3289
+ signal: y
3297
3290
  } = u;
3298
3291
  return g.getScatter({
3299
3292
  ...n,
3300
3293
  filters: p,
3301
- signal: h
3294
+ signal: y
3302
3295
  });
3303
3296
  }, e[10] = p, e[11] = g, e[12] = n, e[13] = m) : m = e[13];
3304
- const b = !!g && y;
3297
+ const b = !!g && h;
3305
3298
  let T;
3306
3299
  return e[14] !== f || e[15] !== m || e[16] !== b || e[17] !== c ? (T = {
3307
3300
  queryKey: f,
@@ -3311,7 +3304,7 @@ function sr(r) {
3311
3304
  }, e[14] = f, e[15] = m, e[16] = b, e[17] = c, e[18] = T) : T = e[18], ne(T);
3312
3305
  }
3313
3306
  function no(r) {
3314
- const e = D(6);
3307
+ const e = A(6);
3315
3308
  let t, s;
3316
3309
  e[0] !== r ? ({
3317
3310
  children: t,
@@ -3322,7 +3315,7 @@ function no(r) {
3322
3315
  return e[3] !== t || e[4] !== n ? (o = t(n), e[3] = t, e[4] = n, e[5] = o) : o = e[5], o;
3323
3316
  }
3324
3317
  function nr(r) {
3325
- const e = D(19), {
3318
+ const e = A(19), {
3326
3319
  accessToken: t,
3327
3320
  sourceId: s,
3328
3321
  widgetProps: n,
@@ -3336,21 +3329,21 @@ function nr(r) {
3336
3329
  enabled: l,
3337
3330
  ...c
3338
3331
  } = a, e[2] = a, e[3] = l, e[4] = c) : (l = e[3], c = e[4]);
3339
- const y = l === void 0 ? !0 : l, p = ae(s, o), g = ie(t, s);
3332
+ const h = l === void 0 ? !0 : l, p = ae(s, o), g = ie(t, s);
3340
3333
  let f;
3341
3334
  e[5] !== t || e[6] !== p || e[7] !== s || e[8] !== n ? (f = ["table", s, t, n, p], e[5] = t, e[6] = p, e[7] = s, e[8] = n, e[9] = f) : f = e[9];
3342
3335
  let m;
3343
3336
  e[10] !== p || e[11] !== g || e[12] !== n ? (m = (u) => {
3344
3337
  const {
3345
- signal: h
3338
+ signal: y
3346
3339
  } = u;
3347
3340
  return g.getTable({
3348
3341
  ...n,
3349
3342
  filters: p,
3350
- signal: h
3343
+ signal: y
3351
3344
  });
3352
3345
  }, e[10] = p, e[11] = g, e[12] = n, e[13] = m) : m = e[13];
3353
- const b = !!g && y;
3346
+ const b = !!g && h;
3354
3347
  let T;
3355
3348
  return e[14] !== f || e[15] !== m || e[16] !== b || e[17] !== c ? (T = {
3356
3349
  queryKey: f,
@@ -3360,7 +3353,7 @@ function nr(r) {
3360
3353
  }, e[14] = f, e[15] = m, e[16] = b, e[17] = c, e[18] = T) : T = e[18], ne(T);
3361
3354
  }
3362
3355
  function ro(r) {
3363
- const e = D(6);
3356
+ const e = A(6);
3364
3357
  let t, s;
3365
3358
  e[0] !== r ? ({
3366
3359
  children: t,
@@ -3371,7 +3364,7 @@ function ro(r) {
3371
3364
  return e[3] !== t || e[4] !== n ? (o = t(n), e[3] = t, e[4] = n, e[5] = o) : o = e[5], o;
3372
3365
  }
3373
3366
  function rr(r) {
3374
- const e = D(19), {
3367
+ const e = A(19), {
3375
3368
  accessToken: t,
3376
3369
  sourceId: s,
3377
3370
  widgetProps: n,
@@ -3385,21 +3378,21 @@ function rr(r) {
3385
3378
  enabled: l,
3386
3379
  ...c
3387
3380
  } = a, e[2] = a, e[3] = l, e[4] = c) : (l = e[3], c = e[4]);
3388
- const y = l === void 0 ? !0 : l, p = ae(s, o), g = ie(t, s);
3381
+ const h = l === void 0 ? !0 : l, p = ae(s, o), g = ie(t, s);
3389
3382
  let f;
3390
3383
  e[5] !== t || e[6] !== p || e[7] !== s || e[8] !== n ? (f = ["timeSeries", s, t, n, p], e[5] = t, e[6] = p, e[7] = s, e[8] = n, e[9] = f) : f = e[9];
3391
3384
  let m;
3392
3385
  e[10] !== p || e[11] !== g || e[12] !== n ? (m = (u) => {
3393
3386
  const {
3394
- signal: h
3387
+ signal: y
3395
3388
  } = u;
3396
3389
  return g.getTimeSeries({
3397
3390
  ...n,
3398
3391
  filters: p,
3399
- signal: h
3392
+ signal: y
3400
3393
  });
3401
3394
  }, e[10] = p, e[11] = g, e[12] = n, e[13] = m) : m = e[13];
3402
- const b = !!g && y;
3395
+ const b = !!g && h;
3403
3396
  let T;
3404
3397
  return e[14] !== f || e[15] !== m || e[16] !== b || e[17] !== c ? (T = {
3405
3398
  queryKey: f,
@@ -3409,7 +3402,7 @@ function rr(r) {
3409
3402
  }, e[14] = f, e[15] = m, e[16] = b, e[17] = c, e[18] = T) : T = e[18], ne(T);
3410
3403
  }
3411
3404
  function oo(r) {
3412
- const e = D(6);
3405
+ const e = A(6);
3413
3406
  let t, s;
3414
3407
  e[0] !== r ? ({
3415
3408
  children: t,
@@ -3421,7 +3414,7 @@ function oo(r) {
3421
3414
  }
3422
3415
  const io = "ps";
3423
3416
  function ao(r) {
3424
- const e = D(13), {
3417
+ const e = A(13), {
3425
3418
  children: t,
3426
3419
  maps: s,
3427
3420
  lassoTools: n,
@@ -3433,41 +3426,41 @@ function ao(r) {
3433
3426
  let l;
3434
3427
  e[2] !== o ? (l = o === void 0 ? [] : o, e[2] = o, e[3] = l) : l = e[3];
3435
3428
  const c = l;
3436
- let y;
3437
- e[4] !== t || e[5] !== c ? (y = /* @__PURE__ */ N(fn, { values: c, children: t }), e[4] = t, e[5] = c, e[6] = y) : y = e[6];
3429
+ let h;
3430
+ e[4] !== t || e[5] !== c ? (h = /* @__PURE__ */ H(fn, { values: c, children: t }), e[4] = t, e[5] = c, e[6] = h) : h = e[6];
3438
3431
  let p;
3439
- e[7] !== a || e[8] !== y ? (p = /* @__PURE__ */ N(Ws, { values: a, children: y }), e[7] = a, e[8] = y, e[9] = p) : p = e[9];
3432
+ e[7] !== a || e[8] !== h ? (p = /* @__PURE__ */ H(Ws, { values: a, children: h }), e[7] = a, e[8] = h, e[9] = p) : p = e[9];
3440
3433
  let g;
3441
- return e[10] !== s || e[11] !== p ? (g = /* @__PURE__ */ N(Bs, { values: s, children: p }), e[10] = s, e[11] = p, e[12] = g) : g = e[12], g;
3434
+ return e[10] !== s || e[11] !== p ? (g = /* @__PURE__ */ H(Bs, { values: s, children: p }), e[10] = s, e[11] = p, e[12] = g) : g = e[12], g;
3442
3435
  }
3443
3436
  function lo(r, e) {
3444
- const t = pe((c) => c.layers), s = pe((c) => c.setLayer), n = oe(() => Ct(r.map((c) => t[c]).filter((c) => !!(c != null && c.legend))).toReversed(), [t, r]), o = oe(() => n.map(e), [e, n]), i = Q(({
3437
+ const t = pe((c) => c.layers), s = pe((c) => c.setLayer), n = oe(() => kt(r.map((c) => t[c]).filter((c) => !!(c != null && c.legend))).toReversed(), [t, r]), o = oe(() => n.map(e), [e, n]), i = Q(({
3445
3438
  id: c,
3446
- visible: y,
3439
+ visible: h,
3447
3440
  ...p
3448
3441
  }) => {
3449
3442
  s(c, {
3450
3443
  props: {
3451
- visible: y
3444
+ visible: h
3452
3445
  },
3453
3446
  legend: p
3454
3447
  });
3455
3448
  }, [s]), a = Q(({
3456
3449
  id: c,
3457
- collapsed: y
3450
+ collapsed: h
3458
3451
  }) => {
3459
3452
  s(c, {
3460
3453
  legend: {
3461
- collapsed: y
3454
+ collapsed: h
3462
3455
  }
3463
3456
  });
3464
3457
  }, [s]), l = Q(({
3465
3458
  id: c,
3466
- opacity: y
3459
+ opacity: h
3467
3460
  }) => {
3468
3461
  s(c, {
3469
3462
  props: {
3470
- opacity: y
3463
+ opacity: h
3471
3464
  }
3472
3465
  });
3473
3466
  }, [s]);
@@ -3482,29 +3475,29 @@ function co({
3482
3475
  mapId: r
3483
3476
  }) {
3484
3477
  const [e, t] = se(void 0), [s, n] = se(!1), [o, i] = se(void 0), a = $((u) => {
3485
- var h;
3486
- return (h = u.maps[r]) == null ? void 0 : h.basemap;
3487
- }), l = $((u) => u.getDeckInstance), c = $((u) => u.getOverlayInstance), y = $((u) => u.areLayersLoaded[r]), g = $((u) => {
3488
- var h;
3489
- return (h = u.maps[r]) == null ? void 0 : h.isLoaded;
3490
- }) && y, {
3478
+ var y;
3479
+ return (y = u.maps[r]) == null ? void 0 : y.basemap;
3480
+ }), l = $((u) => u.getDeckInstance), c = $((u) => u.getOverlayInstance), h = $((u) => u.areLayersLoaded[r]), g = $((u) => {
3481
+ var y;
3482
+ return (y = u.maps[r]) == null ? void 0 : y.isLoaded;
3483
+ }) && h, {
3491
3484
  type: f
3492
3485
  } = ye[a], m = f === te.googleMaps, b = Q(async () => {
3493
- const u = l(r), h = c(r);
3486
+ const u = l(r), y = c(r);
3494
3487
  try {
3495
3488
  const S = document.createElement("canvas");
3496
3489
  S.width = u.width ?? 0, S.height = u.height ?? 0;
3497
3490
  const M = S.getContext("2d");
3498
3491
  if (m) {
3499
- const E = h;
3492
+ const E = y;
3500
3493
  if (E.getRenderingType() !== "RASTER")
3501
3494
  throw new Error("Only raster type is supported for Google Maps");
3502
- const F = await gs(E.getDiv(), {
3495
+ const C = await gs(E.getDiv(), {
3503
3496
  useCORS: !0
3504
3497
  });
3505
- M == null || M.drawImage(F, 0, 0, u.width, u.height);
3498
+ M == null || M.drawImage(C, 0, 0, u.width, u.height);
3506
3499
  } else {
3507
- const E = h;
3500
+ const E = y;
3508
3501
  E.redraw(), M == null || M.drawImage(E.getMap().getCanvas(), 0, 0, u.width, u.height);
3509
3502
  }
3510
3503
  u == null || u.redraw("screenshot"), M == null || M.drawImage(u.getCanvas(), 0, 0, u.width, u.height);
@@ -3526,7 +3519,7 @@ function co({
3526
3519
  };
3527
3520
  }
3528
3521
  function uo(r) {
3529
- const e = D(11), {
3522
+ const e = A(11), {
3530
3523
  mapId: t
3531
3524
  } = r;
3532
3525
  let s;
@@ -3544,16 +3537,16 @@ function uo(r) {
3544
3537
  mapId: t
3545
3538
  }, e[4] = t, e[5] = a) : a = e[5];
3546
3539
  const l = cr(a), c = i ?? l ?? n;
3547
- let y;
3548
- return e[6] !== i || e[7] !== l || e[8] !== c || e[9] !== n ? (y = {
3540
+ let h;
3541
+ return e[6] !== i || e[7] !== l || e[8] !== c || e[9] !== n ? (h = {
3549
3542
  spatialFilter: c,
3550
3543
  staticSpatialFilter: l,
3551
3544
  lassoToolsSpatialFilter: i,
3552
3545
  viewportSpatialFilter: n
3553
- }, e[6] = i, e[7] = l, e[8] = c, e[9] = n, e[10] = y) : y = e[10], y;
3546
+ }, e[6] = i, e[7] = l, e[8] = c, e[9] = n, e[10] = h) : h = e[10], h;
3554
3547
  }
3555
3548
  function or(r) {
3556
- const e = D(4), {
3549
+ const e = A(4), {
3557
3550
  mapId: t
3558
3551
  } = r;
3559
3552
  let s;
@@ -3571,7 +3564,7 @@ function or(r) {
3571
3564
  return o;
3572
3565
  }
3573
3566
  function ir(r) {
3574
- const e = D(5), {
3567
+ const e = A(5), {
3575
3568
  mapId: t
3576
3569
  } = r;
3577
3570
  let s;
@@ -3584,14 +3577,14 @@ function ir(r) {
3584
3577
  e: {
3585
3578
  let i;
3586
3579
  if (e[2] !== n) {
3587
- const a = Et({
3580
+ const a = _t({
3588
3581
  values: n
3589
3582
  }).filter(lr);
3590
3583
  if (!(a != null && a.length)) {
3591
3584
  o = void 0;
3592
3585
  break e;
3593
3586
  }
3594
- i = gt(a.map(ar)), e[2] = n, e[3] = i, e[4] = o;
3587
+ i = bt(a.map(ar)), e[2] = n, e[3] = i, e[4] = o;
3595
3588
  } else
3596
3589
  i = e[3], o = e[4];
3597
3590
  o = i.geometry;
@@ -3605,7 +3598,7 @@ function lr(r) {
3605
3598
  return r.properties.visible;
3606
3599
  }
3607
3600
  function cr(r) {
3608
- const e = D(4), {
3601
+ const e = A(4), {
3609
3602
  mapId: t
3610
3603
  } = r;
3611
3604
  let s;
@@ -3620,7 +3613,7 @@ function cr(r) {
3620
3613
  let i;
3621
3614
  if (e[2] !== n) {
3622
3615
  const a = Object.values(n).filter(dr).flatMap(ur);
3623
- i = gt(a), e[2] = n, e[3] = i;
3616
+ i = bt(a), e[2] = n, e[3] = i;
3624
3617
  } else
3625
3618
  i = e[3];
3626
3619
  o = i.geometry;
@@ -3644,7 +3637,7 @@ const le = {
3644
3637
  },
3645
3638
  [le.number]: {
3646
3639
  type: le.number,
3647
- format: (r, e) => bt(r, e)
3640
+ format: (r, e) => vt(r, e)
3648
3641
  },
3649
3642
  [le.default]: {
3650
3643
  type: le.default,
@@ -3663,11 +3656,11 @@ function fo({
3663
3656
  getTitle: l = fr,
3664
3657
  getValue: c = mr
3665
3658
  }) {
3666
- const y = o ? l(o) : "", g = t.reduce((f, m) => {
3667
- const b = e[m], T = r[m], u = c(T, s, b), h = n ? i(m) : "";
3668
- return f + a(h, u);
3659
+ const h = o ? l(o) : "", g = t.reduce((f, m) => {
3660
+ const b = e[m], T = r[m], u = c(T, s, b), y = n ? i(m) : "";
3661
+ return f + a(y, u);
3669
3662
  }, "");
3670
- return y + g;
3663
+ return h + g;
3671
3664
  }
3672
3665
  function fr(r) {
3673
3666
  return `<h3 style="margin: 0"><strong>${r}</strong></h3></br>`;
@@ -3706,7 +3699,7 @@ function po(r) {
3706
3699
  };
3707
3700
  }
3708
3701
  function mo(r) {
3709
- const e = D(22), {
3702
+ const e = A(22), {
3710
3703
  children: t,
3711
3704
  mapId: s
3712
3705
  } = r;
@@ -3719,16 +3712,16 @@ function mo(r) {
3719
3712
  } = $(n);
3720
3713
  let l;
3721
3714
  e[2] !== s ? (l = (w) => w.areLayersLoaded[s], e[2] = s, e[3] = l) : l = e[3];
3722
- const c = $(l), y = $(vr), p = $(br), g = $(gr), f = !c;
3715
+ const c = $(l), h = $(vr), p = $(br), g = $(gr), f = !c;
3723
3716
  let m;
3724
- e[4] !== s || e[5] !== y ? (m = (w) => y(s, w), e[4] = s, e[5] = y, e[6] = m) : m = e[6];
3717
+ e[4] !== s || e[5] !== h ? (m = (w) => h(s, w), e[4] = s, e[5] = h, e[6] = m) : m = e[6];
3725
3718
  const b = m;
3726
3719
  let T;
3727
3720
  e[7] !== p || e[8] !== s ? (T = (w) => p(s, w), e[7] = p, e[8] = s, e[9] = T) : T = e[9];
3728
3721
  const u = T;
3729
- let h;
3730
- e[10] !== s || e[11] !== g ? (h = () => g(s), e[10] = s, e[11] = g, e[12] = h) : h = e[12];
3731
- const S = h;
3722
+ let y;
3723
+ e[10] !== s || e[11] !== g ? (y = () => g(s), e[10] = s, e[11] = g, e[12] = y) : y = e[12];
3724
+ const S = y;
3732
3725
  let M;
3733
3726
  return e[13] !== t || e[14] !== i || e[15] !== a || e[16] !== f || e[17] !== b || e[18] !== u || e[19] !== S || e[20] !== o ? (M = t({
3734
3727
  zoom: o,
@@ -3763,11 +3756,11 @@ async function Sr({
3763
3756
  params: l,
3764
3757
  apiVersion: c = Ke
3765
3758
  }) {
3766
- const y = `${r}/${c}/stats/${e}/${n}`;
3767
- return kt({
3759
+ const h = `${r}/${c}/stats/${e}/${n}`;
3760
+ return At({
3768
3761
  accessToken: t,
3769
3762
  signal: o,
3770
- url: y,
3763
+ url: h,
3771
3764
  method: de.get,
3772
3765
  params: {
3773
3766
  q: s,
@@ -3791,7 +3784,7 @@ async function wr({
3791
3784
  apiVersion: l = Ke
3792
3785
  }) {
3793
3786
  const c = `${r}/${l}/stats/${e}/${s}/${n}`;
3794
- return kt({
3787
+ return At({
3795
3788
  accessToken: t,
3796
3789
  signal: i,
3797
3790
  url: c,
@@ -3803,7 +3796,7 @@ async function wr({
3803
3796
  });
3804
3797
  }
3805
3798
  function yo(r) {
3806
- const e = D(20), {
3799
+ const e = A(20), {
3807
3800
  source: t,
3808
3801
  attribute: s,
3809
3802
  accessToken: n,
@@ -3813,11 +3806,11 @@ function yo(r) {
3813
3806
  } = r;
3814
3807
  let l;
3815
3808
  e[0] !== a ? (l = a === void 0 ? {} : a, e[0] = a, e[1] = l) : l = e[1];
3816
- let c, y;
3809
+ let c, h;
3817
3810
  e[2] !== l ? ({
3818
3811
  enabled: c,
3819
- ...y
3820
- } = l, e[2] = l, e[3] = c, e[4] = y) : (c = e[3], y = e[4]);
3812
+ ...h
3813
+ } = l, e[2] = l, e[3] = c, e[4] = h) : (c = e[3], h = e[4]);
3821
3814
  const p = c === void 0 ? !0 : c;
3822
3815
  let g;
3823
3816
  e[5] !== s || e[6] !== t ? (g = [t, s], e[5] = s, e[6] = t, e[7] = g) : g = e[7];
@@ -3830,7 +3823,7 @@ function yo(r) {
3830
3823
  fetcherOptions: i
3831
3824
  }), e[8] = n, e[9] = s, e[10] = i, e[11] = o, e[12] = t, e[13] = f) : f = e[13];
3832
3825
  let m;
3833
- return e[14] !== p || e[15] !== t || e[16] !== g || e[17] !== f || e[18] !== y ? (m = {
3826
+ return e[14] !== p || e[15] !== t || e[16] !== g || e[17] !== f || e[18] !== h ? (m = {
3834
3827
  queryKey: g,
3835
3828
  queryFn: f,
3836
3829
  select(b) {
@@ -3840,8 +3833,8 @@ function yo(r) {
3840
3833
  };
3841
3834
  },
3842
3835
  enabled: !!t && p,
3843
- ...y
3844
- }, e[14] = p, e[15] = t, e[16] = g, e[17] = f, e[18] = y, e[19] = m) : m = e[19], ne(m);
3836
+ ...h
3837
+ }, e[14] = p, e[15] = t, e[16] = g, e[17] = f, e[18] = h, e[19] = m) : m = e[19], ne(m);
3845
3838
  }
3846
3839
  function Mr({
3847
3840
  source: r,
@@ -3898,7 +3891,7 @@ async function Tr({
3898
3891
  });
3899
3892
  if (!((c = (l = (a = n == null ? void 0 : n.tilestats) == null ? void 0 : a.layers) == null ? void 0 : l[0]) != null && c.attributes))
3900
3893
  throw new Error(`${s} not found in tileset attributes`);
3901
- const i = n.tilestats.layers[0].attributes.find((y) => y.attribute === s);
3894
+ const i = n.tilestats.layers[0].attributes.find((h) => h.attribute === s);
3902
3895
  if (!i)
3903
3896
  throw new Error(`${s} not found in tileset attributes`);
3904
3897
  return i;
@@ -3910,7 +3903,7 @@ export {
3910
3903
  J as CartoBasemaps,
3911
3904
  Xr as CategoriesModel,
3912
3905
  js as CustomCompositeEditMode,
3913
- Mt as CustomEditableGeojsonLayer,
3906
+ Tt as CustomEditableGeojsonLayer,
3914
3907
  Ys as CustomMeasureAreaMode,
3915
3908
  Xs as CustomMeasureBufferMode,
3916
3909
  Pt as CustomMeasureDistanceMode,
@@ -3923,7 +3916,7 @@ export {
3923
3916
  nn as DEFAULT_MEASUREMENT_TOOLS_UNITS,
3924
3917
  qe as DEFAULT_MEASURE_COLORS,
3925
3918
  Os as DeckGLComponent,
3926
- Y as EditableEditType,
3919
+ X as EditableEditType,
3927
3920
  Jr as FeaturesModel,
3928
3921
  eo as FormulaModel,
3929
3922
  Re as GmapsBasemap,
@@ -3933,11 +3926,11 @@ export {
3933
3926
  Ws as LassoToolsProvider,
3934
3927
  ye as MAPS_BASEMAP,
3935
3928
  ce as MAP_LASSO_TOOLS_LAYER_ID,
3936
- Le as MAP_MASK_LAYER_ID,
3929
+ Pe as MAP_MASK_LAYER_ID,
3937
3930
  re as MAP_MEASURE_LAYER_ID,
3938
3931
  tn as MEASUREMENT_TOOLS_UNITS_AREA,
3939
3932
  it as MEASUREMENT_TOOLS_UNITS_DISTANCE,
3940
- Z as MEASUREMENT_TOOLS_UNITS_DISTANCE_VALUES,
3933
+ Y as MEASUREMENT_TOOLS_UNITS_DISTANCE_VALUES,
3941
3934
  Kr as MapComponent,
3942
3935
  Ie as MapMeasurementUnitAuto,
3943
3936
  en as MapMeasurementUnitTurf,
@@ -3966,10 +3959,10 @@ export {
3966
3959
  vs as getTooltipDefault,
3967
3960
  po as mappingLegendMeridian,
3968
3961
  fo as objectToHtml,
3969
- Ct as sortLayers,
3962
+ kt as sortLayers,
3970
3963
  ks as transitionFlyConfig,
3971
3964
  Yn as useCategories,
3972
- Lt as useEventManager,
3965
+ Ot as useEventManager,
3973
3966
  Xn as useFeatures,
3974
3967
  Qn as useFilters,
3975
3968
  Jn as useFormula,
@@ -3981,11 +3974,11 @@ export {
3981
3974
  lo as useLegend,
3982
3975
  co as useMapScreenshot,
3983
3976
  $ as useMapStore,
3984
- I as useMeasurementToolsState,
3977
+ N as useMeasurementToolsState,
3985
3978
  tr as useRange,
3986
3979
  sr as useScatter,
3987
3980
  zn as useSource,
3988
- Pe as useSourceStore,
3981
+ Le as useSourceStore,
3989
3982
  Zr as useSourceWithFilters,
3990
3983
  uo as useSpatialFilter,
3991
3984
  yo as useStats,