@carto/ps-react-maps 4.2.0 → 4.2.2

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,15 +1,15 @@
1
1
  import { jsx as Z, jsxs as mt } from "react/jsx-runtime";
2
2
  import { c as I } from "react/compiler-runtime";
3
- import { useImperativeHandle as Ie, useEffect as K, useState as ae, createContext as He, useContext as Ne, useMemo as me, useCallback as ee, useRef as Te } from "react";
3
+ import { useImperativeHandle as Ie, useEffect as K, useState as ae, createContext as Ne, useContext as He, useMemo as me, useCallback as ee, useRef as Te } from "react";
4
4
  import { MapProvider as Ut, Map as qt, useMap as Vt } from "react-map-gl/maplibre";
5
5
  import Bt from "@deck.gl/react";
6
6
  import { useMap as yt, Map as jt, APIProvider as It } from "@vis.gl/react-google-maps";
7
- import { GoogleMapsOverlay as Ht } from "@deck.gl/google-maps";
7
+ import { GoogleMapsOverlay as Nt } from "@deck.gl/google-maps";
8
8
  import { createStore as ze, useStore as Ge, create as ht } from "zustand";
9
- import { FlyToInterpolator as Nt, WebMercatorViewport as gt } from "@deck.gl/core";
9
+ import { FlyToInterpolator as Ht, WebMercatorViewport as gt } from "@deck.gl/core";
10
10
  import { CompositeMode as zt, TranslateMode as Gt, ModifyMode as Zt, DrawPolygonByDraggingMode as Wt, DrawCircleFromCenterMode as bt, DrawRectangleMode as Kt, DrawPolygonMode as Yt, EditableGeoJsonLayer as Jt, MeasureAreaMode as Qt, getPickedEditHandle as Xt, MeasureDistanceMode as en, ViewMode as tn } from "@deck.gl-community/editable-layers";
11
- import { DataFilterExtension as nn, MaskExtension as sn } from "@deck.gl/extensions";
12
- import { Pan as Je, InputDirection as rn, EventManager as on, Tap as Qe, Pinch as an } from "mjolnir.js";
11
+ import { DataFilterExtension as nn, MaskExtension as rn } from "@deck.gl/extensions";
12
+ import { Pan as Je, InputDirection as sn, EventManager as on, Tap as Qe, Pinch as an } from "mjolnir.js";
13
13
  import { GeoJsonLayer as ln } from "@deck.gl/layers";
14
14
  import { useShallow as St } from "zustand/shallow";
15
15
  import { area as Xe, centroid as cn, lineIntersect as un, multiPolygon as vt } from "@turf/turf";
@@ -25,28 +25,28 @@ const De = {
25
25
  roadmap: "roadmap",
26
26
  satellite: "satellite",
27
27
  hybrid: "hybrid"
28
- }, re = {
28
+ }, se = {
29
29
  darkMatter: "darkMatter",
30
30
  positron: "positron",
31
31
  voyager: "voyager"
32
32
  }, Re = {
33
- [re.positron]: "https://basemaps.cartocdn.com/gl/positron-gl-style/style.json",
34
- [re.voyager]: "https://basemaps.cartocdn.com/gl/voyager-gl-style/style.json",
35
- [re.darkMatter]: "https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json"
33
+ [se.positron]: "https://basemaps.cartocdn.com/gl/positron-gl-style/style.json",
34
+ [se.voyager]: "https://basemaps.cartocdn.com/gl/voyager-gl-style/style.json",
35
+ [se.darkMatter]: "https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json"
36
36
  }, ie = {
37
37
  maplibre: "maplibre",
38
38
  googleMaps: "google-maps"
39
39
  }, be = {
40
- [re.positron]: {
41
- url: Re[re.positron],
40
+ [se.positron]: {
41
+ url: Re[se.positron],
42
42
  type: ie.maplibre
43
43
  },
44
- [re.voyager]: {
45
- url: Re[re.voyager],
44
+ [se.voyager]: {
45
+ url: Re[se.voyager],
46
46
  type: ie.maplibre
47
47
  },
48
- [re.darkMatter]: {
49
- url: Re[re.darkMatter],
48
+ [se.darkMatter]: {
49
+ url: Re[se.darkMatter],
50
50
  type: ie.maplibre,
51
51
  dark: !0
52
52
  },
@@ -61,24 +61,24 @@ const De = {
61
61
  }
62
62
  };
63
63
  function En({
64
- isDragging: n,
64
+ isDragging: r,
65
65
  isHovering: e
66
66
  }) {
67
- return n ? "grabbing" : e ? "pointer" : "grab";
67
+ return r ? "grabbing" : e ? "pointer" : "grab";
68
68
  }
69
- function Tn(n) {
70
- return n.html ? {
71
- html: `<div class='map-tooltip__content'>${n.html}</div>`,
69
+ function Tn(r) {
70
+ return r.html ? {
71
+ html: `<div class='map-tooltip__content'>${r.html}</div>`,
72
72
  style: {
73
73
  padding: "0",
74
74
  background: "none"
75
75
  }
76
76
  } : null;
77
77
  }
78
- function Ln(n) {
78
+ function Ln(r) {
79
79
  const e = I(39);
80
- let t, s, r, o, i, a, l, d, m, g, b, f;
81
- e[0] !== n ? ({
80
+ let t, n, s, o, i, a, l, d, m, g, b, f;
81
+ e[0] !== r ? ({
82
82
  instanceRef: i,
83
83
  overlayRef: g,
84
84
  controller: t,
@@ -86,12 +86,12 @@ function Ln(n) {
86
86
  layers: a,
87
87
  mapStyle: l,
88
88
  parameters: b,
89
- getCursor: s,
90
- getTooltip: r,
89
+ getCursor: n,
90
+ getTooltip: s,
91
91
  onLoad: d,
92
92
  onViewStateChange: m,
93
93
  ...f
94
- } = n, e[0] = n, e[1] = t, e[2] = s, e[3] = r, e[4] = o, e[5] = i, e[6] = a, e[7] = l, e[8] = d, e[9] = m, e[10] = g, e[11] = b, e[12] = f) : (t = e[1], s = e[2], r = e[3], o = e[4], i = e[5], a = e[6], l = e[7], d = e[8], m = e[9], g = e[10], b = e[11], f = e[12]);
94
+ } = r, e[0] = r, e[1] = t, e[2] = n, e[3] = s, e[4] = o, e[5] = i, e[6] = a, e[7] = l, e[8] = d, e[9] = m, e[10] = g, e[11] = b, e[12] = f) : (t = e[1], n = e[2], s = e[3], o = e[4], i = e[5], a = e[6], l = e[7], d = e[8], m = e[9], g = e[10], b = e[11], f = e[12]);
95
95
  let w;
96
96
  e[13] !== a ? (w = a.filter(Pn).map(Cn), e[13] = a, e[14] = w) : w = e[14];
97
97
  const S = w, L = i;
@@ -115,67 +115,67 @@ function Ln(n) {
115
115
  let v;
116
116
  e[23] !== l || e[24] !== M ? (v = /* @__PURE__ */ Z(qt, { reuseMaps: !1, mapStyle: l, onLoad: M, onRender: kn }), e[23] = l, e[24] = M, e[25] = v) : v = e[25];
117
117
  let k;
118
- return e[26] !== S || e[27] !== t || e[28] !== s || e[29] !== r || e[30] !== o || e[31] !== m || e[32] !== f || e[33] !== L || e[34] !== u || e[35] !== p || e[36] !== h || e[37] !== v ? (k = /* @__PURE__ */ Z(Ut, { children: /* @__PURE__ */ Z("div", { className: "deckgl-map", children: /* @__PURE__ */ mt(Bt, { controller: t, id: o, ref: L, layers: S, getCursor: s, getTooltip: r, onLoad: u, onViewStateChange: m, parameters: p, ...f, children: [
118
+ return e[26] !== S || e[27] !== t || e[28] !== n || e[29] !== s || e[30] !== o || e[31] !== m || e[32] !== f || e[33] !== L || e[34] !== u || e[35] !== p || e[36] !== h || e[37] !== v ? (k = /* @__PURE__ */ Z(Ut, { children: /* @__PURE__ */ Z("div", { className: "deckgl-map", children: /* @__PURE__ */ mt(Bt, { controller: t, id: o, ref: L, layers: S, getCursor: n, getTooltip: s, onLoad: u, onViewStateChange: m, parameters: p, ...f, children: [
119
119
  h,
120
120
  v
121
- ] }) }) }), e[26] = S, e[27] = t, e[28] = s, e[29] = r, e[30] = o, e[31] = m, e[32] = f, e[33] = L, e[34] = u, e[35] = p, e[36] = h, e[37] = v, e[38] = k) : k = e[38], k;
121
+ ] }) }) }), e[26] = S, e[27] = t, e[28] = n, e[29] = s, e[30] = o, e[31] = m, e[32] = f, e[33] = L, e[34] = u, e[35] = p, e[36] = h, e[37] = v, e[38] = k) : k = e[38], k;
122
122
  }
123
123
  function kn() {
124
124
  document.querySelector(".maplibregl-compact-show")?.classList.remove("maplibregl-compact-show");
125
125
  }
126
- function Cn(n) {
126
+ function Cn(r) {
127
127
  const {
128
128
  type: e,
129
129
  props: t
130
- } = n;
130
+ } = r;
131
131
  return new e(t);
132
132
  }
133
- function Pn(n) {
134
- return !!n?.type;
133
+ function Pn(r) {
134
+ return !!r?.type;
135
135
  }
136
- function On(n) {
136
+ function On(r) {
137
137
  const e = I(3), {
138
138
  overlayRef: t
139
- } = n, {
140
- default: s
139
+ } = r, {
140
+ default: n
141
141
  } = Vt();
142
- let r, o;
143
- return e[0] !== s ? (r = () => s, o = [s], e[0] = s, e[1] = r, e[2] = o) : (r = e[1], o = e[2]), Ie(t, r, o), null;
142
+ let s, o;
143
+ return e[0] !== n ? (s = () => n, o = [n], e[0] = n, e[1] = s, e[2] = o) : (s = e[1], o = e[2]), Ie(t, s, o), null;
144
144
  }
145
- const An = (n) => {
145
+ const An = (r) => {
146
146
  const e = I(9);
147
147
  let t;
148
- e[0] === Symbol.for("react.memo_cache_sentinel") ? (t = new Ht({
148
+ e[0] === Symbol.for("react.memo_cache_sentinel") ? (t = new Nt({
149
149
  interleaved: !0
150
150
  }), e[0] = t) : t = e[0];
151
- const s = t, r = yt();
151
+ const n = t, s = yt();
152
152
  let o, i;
153
- e[1] === Symbol.for("react.memo_cache_sentinel") ? (o = () => s, i = [s], e[1] = o, e[2] = i) : (o = e[1], i = e[2]), Ie(n.instanceRef, o, i);
153
+ e[1] === Symbol.for("react.memo_cache_sentinel") ? (o = () => n, i = [n], e[1] = o, e[2] = i) : (o = e[1], i = e[2]), Ie(r.instanceRef, o, i);
154
154
  let a, l;
155
- e[3] !== r ? (a = () => (s.setMap(r), () => {
156
- s.finalize();
157
- }), l = [s, r], e[3] = r, e[4] = a, e[5] = l) : (a = e[4], l = e[5]), K(a, l);
155
+ e[3] !== s ? (a = () => (n.setMap(s), () => {
156
+ n.finalize();
157
+ }), l = [n, s], e[3] = s, e[4] = a, e[5] = l) : (a = e[4], l = e[5]), K(a, l);
158
158
  let d, m;
159
- return e[6] !== n ? (d = () => {
160
- s.setProps(n);
161
- }, m = [s, n], e[6] = n, e[7] = d, e[8] = m) : (d = e[7], m = e[8]), K(d, m), null;
159
+ return e[6] !== r ? (d = () => {
160
+ n.setProps(r);
161
+ }, m = [n, r], e[6] = r, e[7] = d, e[8] = m) : (d = e[7], m = e[8]), K(d, m), null;
162
162
  };
163
- function Fn(n) {
163
+ function Fn(r) {
164
164
  const e = I(73);
165
- let t, s, r, o, i, a, l, d, m, g, b;
166
- e[0] !== n ? ({
167
- id: r,
165
+ let t, n, s, o, i, a, l, d, m, g, b;
166
+ e[0] !== r ? ({
167
+ id: s,
168
168
  instanceRef: o,
169
169
  basemap: t,
170
170
  layers: i,
171
171
  gmapsProps: b,
172
172
  overlayRef: d,
173
173
  parameters: m,
174
- controller: s,
174
+ controller: n,
175
175
  onLoad: a,
176
176
  onViewStateChange: l,
177
177
  ...g
178
- } = n, e[0] = n, e[1] = t, e[2] = s, e[3] = r, e[4] = o, e[5] = i, e[6] = a, e[7] = l, e[8] = d, e[9] = m, e[10] = g, e[11] = b) : (t = e[1], s = e[2], r = e[3], o = e[4], i = e[5], a = e[6], l = e[7], d = e[8], m = e[9], g = e[10], b = e[11]);
178
+ } = r, e[0] = r, e[1] = t, e[2] = n, e[3] = s, e[4] = o, e[5] = i, e[6] = a, e[7] = l, e[8] = d, e[9] = m, e[10] = g, e[11] = b) : (t = e[1], n = e[2], s = e[3], o = e[4], i = e[5], a = e[6], l = e[7], d = e[8], m = e[9], g = e[10], b = e[11]);
179
179
  let f;
180
180
  e[12] !== b ? (f = b === void 0 ? {
181
181
  apiKey: ""
@@ -188,22 +188,22 @@ function Fn(n) {
188
188
  } = f, e[14] = f, e[15] = w, e[16] = S, e[17] = L) : (w = e[15], S = e[16], L = e[17]);
189
189
  let u;
190
190
  e: {
191
- if (typeof s == "boolean") {
191
+ if (typeof n == "boolean") {
192
192
  let oe;
193
- e[18] !== s ? (oe = {
194
- dragPan: s,
195
- doubleClickZoom: s,
196
- scrollZoom: s
197
- }, e[18] = s, e[19] = oe) : oe = e[19], u = oe;
193
+ e[18] !== n ? (oe = {
194
+ dragPan: n,
195
+ doubleClickZoom: n,
196
+ scrollZoom: n
197
+ }, e[18] = n, e[19] = oe) : oe = e[19], u = oe;
198
198
  break e;
199
199
  }
200
- const Y = s, ne = Y?.dragPan ?? !0, Q = Y?.doubleClickZoom ?? !0, J = Y?.scrollZoom ?? !0;
201
- let se;
202
- e[20] !== ne || e[21] !== Q || e[22] !== J ? (se = {
200
+ const Y = n, ne = Y?.dragPan ?? !0, Q = Y?.doubleClickZoom ?? !0, J = Y?.scrollZoom ?? !0;
201
+ let re;
202
+ e[20] !== ne || e[21] !== Q || e[22] !== J ? (re = {
203
203
  dragPan: ne,
204
204
  doubleClickZoom: Q,
205
205
  scrollZoom: J
206
- }, e[20] = ne, e[21] = Q, e[22] = J, e[23] = se) : se = e[23], u = se;
206
+ }, e[20] = ne, e[21] = Q, e[22] = J, e[23] = re) : re = e[23], u = re;
207
207
  }
208
208
  const p = u;
209
209
  let h;
@@ -214,7 +214,7 @@ function Fn(n) {
214
214
  const Q = o?.current?._deck, J = {
215
215
  ...Q?.viewState,
216
216
  ...Y
217
- }, se = {
217
+ }, re = {
218
218
  latitude: J.latitude,
219
219
  longitude: J.longitude,
220
220
  zoom: J.zoom,
@@ -224,7 +224,7 @@ function Fn(n) {
224
224
  height: Q?.height
225
225
  };
226
226
  l?.({
227
- viewState: se,
227
+ viewState: re,
228
228
  interactionState: {
229
229
  isZooming: !0
230
230
  }
@@ -248,7 +248,7 @@ function Fn(n) {
248
248
  e[36] !== A ? (c = (Y) => A(v(Y)), y = (Y) => A(v(Y)), e[36] = A, e[37] = c, e[38] = y) : (c = e[37], y = e[38]);
249
249
  const T = typeof p.scrollZoom == "boolean" ? p.scrollZoom : !!p.scrollZoom, P = p.dragPan ? "greedy" : "none", C = !p.doubleClickZoom;
250
250
  let _;
251
- e[39] !== r || e[40] !== d ? (_ = /* @__PURE__ */ Z($n, { id: r, overlayRef: d }), e[39] = r, e[40] = d, e[41] = _) : _ = e[41];
251
+ e[39] !== s || e[40] !== d ? (_ = /* @__PURE__ */ Z($n, { id: s, overlayRef: d }), e[39] = s, e[40] = d, e[41] = _) : _ = e[41];
252
252
  let q;
253
253
  e[42] !== a ? (q = () => {
254
254
  a({
@@ -261,56 +261,56 @@ function Fn(n) {
261
261
  depthTest: !1,
262
262
  ...m
263
263
  }, e[44] = m, e[45] = B) : B = e[45];
264
- let H;
265
- e[46] !== M || e[47] !== r || e[48] !== o || e[49] !== g || e[50] !== q || e[51] !== B ? (H = /* @__PURE__ */ Z(An, { id: r, instanceRef: o, layers: M, onLoad: q, parameters: B, ...g }), e[46] = M, e[47] = r, e[48] = o, e[49] = g, e[50] = q, e[51] = B, e[52] = H) : H = e[52];
264
+ let N;
265
+ e[46] !== M || e[47] !== s || e[48] !== o || e[49] !== g || e[50] !== q || e[51] !== B ? (N = /* @__PURE__ */ Z(An, { id: s, instanceRef: o, layers: M, onLoad: q, parameters: B, ...g }), e[46] = M, e[47] = s, e[48] = o, e[49] = g, e[50] = q, e[51] = B, e[52] = N) : N = e[52];
266
266
  let U;
267
- e[53] !== S || e[54] !== t || e[55] !== r || e[56] !== D || e[57] !== E || e[58] !== O || e[59] !== c || e[60] !== y || e[61] !== T || e[62] !== P || e[63] !== C || e[64] !== _ || e[65] !== H || e[66] !== x || e[67] !== j ? (U = /* @__PURE__ */ Z("div", { className: "deckgl-map", children: /* @__PURE__ */ mt(jt, { id: r, mapTypeId: t, disableDefaultUI: !0, ...S, center: x, zoom: j, tilt: D, heading: E, onTilesLoaded: O, onBoundsChanged: c, onZoomChanged: y, scrollwheel: T, gestureHandling: P, disableDoubleClickZoom: C, children: [
267
+ e[53] !== S || e[54] !== t || e[55] !== s || e[56] !== D || e[57] !== E || e[58] !== O || e[59] !== c || e[60] !== y || e[61] !== T || e[62] !== P || e[63] !== C || e[64] !== _ || e[65] !== N || e[66] !== x || e[67] !== j ? (U = /* @__PURE__ */ Z("div", { className: "deckgl-map", children: /* @__PURE__ */ mt(jt, { id: s, mapTypeId: t, disableDefaultUI: !0, ...S, center: x, zoom: j, tilt: D, heading: E, onTilesLoaded: O, onBoundsChanged: c, onZoomChanged: y, scrollwheel: T, gestureHandling: P, disableDoubleClickZoom: C, children: [
268
268
  _,
269
- H
270
- ] }) }), e[53] = S, e[54] = t, e[55] = r, e[56] = D, e[57] = E, e[58] = O, e[59] = c, e[60] = y, e[61] = T, e[62] = P, e[63] = C, e[64] = _, e[65] = H, e[66] = x, e[67] = j, e[68] = U) : U = e[68];
269
+ N
270
+ ] }) }), e[53] = S, e[54] = t, e[55] = s, e[56] = D, e[57] = E, e[58] = O, e[59] = c, e[60] = y, e[61] = T, e[62] = P, e[63] = C, e[64] = _, e[65] = N, e[66] = x, e[67] = j, e[68] = U) : U = e[68];
271
271
  let z;
272
272
  return e[69] !== w || e[70] !== L || e[71] !== U ? (z = /* @__PURE__ */ Z(It, { apiKey: L, ...w, children: U }), e[69] = w, e[70] = L, e[71] = U, e[72] = z) : z = e[72], z;
273
273
  }
274
- function Dn(n) {
274
+ function Dn(r) {
275
275
  const {
276
276
  detail: e
277
- } = n, {
277
+ } = r, {
278
278
  center: t,
279
- zoom: s,
280
- heading: r,
279
+ zoom: n,
280
+ heading: s,
281
281
  tilt: o
282
282
  } = e;
283
283
  return {
284
284
  latitude: t.lat,
285
285
  longitude: t.lng,
286
- zoom: s - 1,
287
- bearing: r,
286
+ zoom: n - 1,
287
+ bearing: s,
288
288
  pitch: o
289
289
  };
290
290
  }
291
- function Rn(n) {
291
+ function Rn(r) {
292
292
  const {
293
293
  type: e,
294
294
  props: t
295
- } = n;
295
+ } = r;
296
296
  return new e(t);
297
297
  }
298
- function xn(n) {
299
- return !!n?.type;
298
+ function xn(r) {
299
+ return !!r?.type;
300
300
  }
301
- function $n(n) {
301
+ function $n(r) {
302
302
  const e = I(3), {
303
303
  id: t,
304
- overlayRef: s
305
- } = n, r = yt(t);
304
+ overlayRef: n
305
+ } = r, s = yt(t);
306
306
  let o, i;
307
- return e[0] !== r ? (o = () => r, i = [r], e[0] = r, e[1] = o, e[2] = i) : (o = e[1], i = e[2]), Ie(s, o, i), null;
307
+ return e[0] !== s ? (o = () => s, i = [s], e[0] = s, e[1] = o, e[2] = i) : (o = e[1], i = e[2]), Ie(n, o, i), null;
308
308
  }
309
- function Un(n) {
309
+ function Un(r) {
310
310
  const e = I(46);
311
- let t, s, r, o, i, a, l, d, m, g, b, f;
312
- e[0] !== n ? ({
313
- instanceRef: s,
311
+ let t, n, s, o, i, a, l, d, m, g, b, f;
312
+ e[0] !== r ? ({
313
+ instanceRef: n,
314
314
  overlayRef: o,
315
315
  basemap: a,
316
316
  controller: l,
@@ -319,11 +319,11 @@ function Un(n) {
319
319
  gmapsProps: t,
320
320
  getCursor: g,
321
321
  getTooltip: b,
322
- onLoad: r,
322
+ onLoad: s,
323
323
  onViewStateChange: f,
324
324
  ...i
325
- } = n, e[0] = n, e[1] = t, e[2] = s, e[3] = r, e[4] = o, e[5] = i, e[6] = a, e[7] = l, e[8] = d, e[9] = m, e[10] = g, e[11] = b, e[12] = f) : (t = e[1], s = e[2], r = e[3], o = e[4], i = e[5], a = e[6], l = e[7], d = e[8], m = e[9], g = e[10], b = e[11], f = e[12]);
326
- const w = a === void 0 ? re.positron : a, S = l === void 0 ? !0 : l, L = d === void 0 ? "deck-gl-map" : d;
325
+ } = r, e[0] = r, e[1] = t, e[2] = n, e[3] = s, e[4] = o, e[5] = i, e[6] = a, e[7] = l, e[8] = d, e[9] = m, e[10] = g, e[11] = b, e[12] = f) : (t = e[1], n = e[2], s = e[3], o = e[4], i = e[5], a = e[6], l = e[7], d = e[8], m = e[9], g = e[10], b = e[11], f = e[12]);
326
+ const w = a === void 0 ? se.positron : a, S = l === void 0 ? !0 : l, L = d === void 0 ? "deck-gl-map" : d;
327
327
  let u;
328
328
  e[13] !== m ? (u = m === void 0 ? [] : m, e[13] = m, e[14] = u) : u = e[14];
329
329
  const p = u, h = g === void 0 ? En : g, M = b === void 0 ? Tn : b, v = f === void 0 ? Vn : f;
@@ -336,7 +336,7 @@ function Un(n) {
336
336
  let D;
337
337
  e[16] === Symbol.for("react.memo_cache_sentinel") ? (D = (C) => {
338
338
  const _ = C.type === "deckgl" ? 0 : 1;
339
- V((q) => q.map((B, H) => H === _ ? C.value : B));
339
+ V((q) => q.map((B, N) => N === _ ? C.value : B));
340
340
  }, e[16] = D) : D = e[16];
341
341
  const E = D;
342
342
  let O, c;
@@ -350,37 +350,37 @@ function Un(n) {
350
350
  });
351
351
  }, c = [E], e[17] = O, e[18] = c) : (O = e[17], c = e[18]), K(O, c);
352
352
  let y, T;
353
- if (e[19] !== A || e[20] !== r ? (y = () => {
353
+ if (e[19] !== A || e[20] !== s ? (y = () => {
354
354
  const C = A.every(qn);
355
- r?.(C);
356
- }, T = [A, r], e[19] = A, e[20] = r, e[21] = y, e[22] = T) : (y = e[21], T = e[22]), K(y, T), j) {
355
+ s?.(C);
356
+ }, T = [A, s], e[19] = A, e[20] = s, e[21] = y, e[22] = T) : (y = e[21], T = e[22]), K(y, T), j) {
357
357
  let C;
358
- return e[23] !== w || e[24] !== S || e[25] !== h || e[26] !== M || e[27] !== t || e[28] !== L || e[29] !== s || e[30] !== p || e[31] !== v || e[32] !== o || e[33] !== i ? (C = /* @__PURE__ */ Z(Fn, { instanceRef: s, overlayRef: o, controller: S, id: L, basemap: w, layers: p, gmapsProps: t, getCursor: h, getTooltip: M, onLoad: E, onViewStateChange: v, ...i }), e[23] = w, e[24] = S, e[25] = h, e[26] = M, e[27] = t, e[28] = L, e[29] = s, e[30] = p, e[31] = v, e[32] = o, e[33] = i, e[34] = C) : C = e[34], C;
358
+ return e[23] !== w || e[24] !== S || e[25] !== h || e[26] !== M || e[27] !== t || e[28] !== L || e[29] !== n || e[30] !== p || e[31] !== v || e[32] !== o || e[33] !== i ? (C = /* @__PURE__ */ Z(Fn, { instanceRef: n, overlayRef: o, controller: S, id: L, basemap: w, layers: p, gmapsProps: t, getCursor: h, getTooltip: M, onLoad: E, onViewStateChange: v, ...i }), e[23] = w, e[24] = S, e[25] = h, e[26] = M, e[27] = t, e[28] = L, e[29] = n, e[30] = p, e[31] = v, e[32] = o, e[33] = i, e[34] = C) : C = e[34], C;
359
359
  }
360
360
  let P;
361
- return e[35] !== S || e[36] !== h || e[37] !== M || e[38] !== L || e[39] !== s || e[40] !== p || e[41] !== F || e[42] !== v || e[43] !== o || e[44] !== i ? (P = /* @__PURE__ */ Z(Ln, { instanceRef: s, overlayRef: o, controller: S, id: L, layers: p, mapStyle: F, getCursor: h, getTooltip: M, onLoad: E, onViewStateChange: v, ...i }), e[35] = S, e[36] = h, e[37] = M, e[38] = L, e[39] = s, e[40] = p, e[41] = F, e[42] = v, e[43] = o, e[44] = i, e[45] = P) : P = e[45], P;
361
+ return e[35] !== S || e[36] !== h || e[37] !== M || e[38] !== L || e[39] !== n || e[40] !== p || e[41] !== F || e[42] !== v || e[43] !== o || e[44] !== i ? (P = /* @__PURE__ */ Z(Ln, { instanceRef: n, overlayRef: o, controller: S, id: L, layers: p, mapStyle: F, getCursor: h, getTooltip: M, onLoad: E, onViewStateChange: v, ...i }), e[35] = S, e[36] = h, e[37] = M, e[38] = L, e[39] = n, e[40] = p, e[41] = F, e[42] = v, e[43] = o, e[44] = i, e[45] = P) : P = e[45], P;
362
362
  }
363
- function qn(n) {
364
- return n;
363
+ function qn(r) {
364
+ return r;
365
365
  }
366
366
  function Vn() {
367
367
  return null;
368
368
  }
369
369
  const Bn = {
370
370
  transitionDuration: "auto",
371
- transitionInterpolator: new Nt({
371
+ transitionInterpolator: new Ht({
372
372
  curve: 2
373
373
  })
374
374
  };
375
375
  var Me = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
376
- function Et(n) {
377
- return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
376
+ function Et(r) {
377
+ return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
378
378
  }
379
379
  var xe, et;
380
380
  function jn() {
381
381
  if (et) return xe;
382
382
  et = 1;
383
- var n = function(p) {
383
+ var r = function(p) {
384
384
  return e(p) && !t(p);
385
385
  };
386
386
  function e(u) {
@@ -390,9 +390,9 @@ function jn() {
390
390
  var p = Object.prototype.toString.call(u);
391
391
  return p === "[object RegExp]" || p === "[object Date]" || o(u);
392
392
  }
393
- var s = typeof Symbol == "function" && Symbol.for, r = s ? Symbol.for("react.element") : 60103;
393
+ var n = typeof Symbol == "function" && Symbol.for, s = n ? Symbol.for("react.element") : 60103;
394
394
  function o(u) {
395
- return u.$$typeof === r;
395
+ return u.$$typeof === s;
396
396
  }
397
397
  function i(u) {
398
398
  return Array.isArray(u) ? [] : {};
@@ -438,7 +438,7 @@ function jn() {
438
438
  }), M;
439
439
  }
440
440
  function S(u, p, h) {
441
- h = h || {}, h.arrayMerge = h.arrayMerge || l, h.isMergeableObject = h.isMergeableObject || n, h.cloneUnlessOtherwiseSpecified = a;
441
+ h = h || {}, h.arrayMerge = h.arrayMerge || l, h.isMergeableObject = h.isMergeableObject || r, h.cloneUnlessOtherwiseSpecified = a;
442
442
  var M = Array.isArray(p), v = Array.isArray(u), k = M === v;
443
443
  return k ? M ? h.arrayMerge(u, p, h) : w(u, p, h) : a(p, h);
444
444
  }
@@ -453,13 +453,13 @@ function jn() {
453
453
  return xe = L, xe;
454
454
  }
455
455
  var In = jn();
456
- const de = /* @__PURE__ */ Et(In), Hn = (n) => {
457
- const e = n.reduce((t, s) => {
456
+ const de = /* @__PURE__ */ Et(In), Nn = (r) => {
457
+ const e = r.reduce((t, n) => {
458
458
  const {
459
- id: r,
459
+ id: s,
460
460
  basemap: o
461
- } = s;
462
- return t[r] = {
461
+ } = n;
462
+ return t[s] = {
463
463
  isLoaded: !1,
464
464
  basemap: o,
465
465
  instanceRef: {
@@ -468,53 +468,53 @@ const de = /* @__PURE__ */ Et(In), Hn = (n) => {
468
468
  overlayRef: {
469
469
  current: null
470
470
  },
471
- layers: s.layers ?? [],
472
- controller: s.controller ?? !0
471
+ layers: n.layers ?? [],
472
+ controller: n.controller ?? !0
473
473
  }, t;
474
474
  }, {});
475
- return ((t, s) => ({
475
+ return ((t, n) => ({
476
476
  maps: e,
477
- setBasemap: (r, o) => t((i) => {
477
+ setBasemap: (s, o) => t((i) => {
478
478
  const {
479
479
  type: a
480
- } = be[i.maps[r].basemap], {
480
+ } = be[i.maps[s].basemap], {
481
481
  type: l
482
- } = be[o], d = a === l && !!i.maps[r]?.isLoaded;
482
+ } = be[o], d = a === l && !!i.maps[s]?.isLoaded;
483
483
  return {
484
484
  maps: {
485
485
  ...i.maps,
486
- [r]: {
487
- ...i.maps[r],
486
+ [s]: {
487
+ ...i.maps[s],
488
488
  isLoaded: d,
489
489
  basemap: o
490
490
  }
491
491
  }
492
492
  };
493
493
  }),
494
- setLoad: (r, o) => t((i) => ({
494
+ setLoad: (s, o) => t((i) => ({
495
495
  maps: {
496
496
  ...i.maps,
497
- [r]: {
498
- ...i.maps[r],
497
+ [s]: {
498
+ ...i.maps[s],
499
499
  isLoaded: o
500
500
  }
501
501
  }
502
502
  })),
503
- getOverlayInstance: (r) => s().maps[r]?.overlayRef?.current,
504
- getDeckInstance: (r) => {
505
- const i = s().maps[r]?.instanceRef?.current;
503
+ getOverlayInstance: (s) => n().maps[s]?.overlayRef?.current,
504
+ getDeckInstance: (s) => {
505
+ const i = n().maps[s]?.instanceRef?.current;
506
506
  return (
507
507
  // @ts-expect-error accessing protected props
508
- i?.deck ?? i._deck
508
+ i?.deck ?? i?._deck
509
509
  );
510
510
  },
511
- getViewState: (r) => s().getDeckInstance(r)?.viewState,
512
- getViewports: (r, o) => s().getDeckInstance(r)?.getViewports(o),
513
- getViewport: (r, o = 0, i) => s().getDeckInstance(r)?.getViewports(i)?.[o],
514
- getBounds: (r, o, i) => {
515
- const a = s();
516
- if (!a.maps?.[r]?.isLoaded) return;
517
- const l = a.getViewState(r), d = a.getDeckInstance(r);
511
+ getViewState: (s) => n().getDeckInstance(s)?.viewState,
512
+ getViewports: (s, o) => n().getDeckInstance(s)?.getViewports(o),
513
+ getViewport: (s, o = 0, i) => n().getDeckInstance(s)?.getViewports(i)?.[o],
514
+ getBounds: (s, o, i) => {
515
+ const a = n();
516
+ if (!a.maps?.[s]?.isLoaded) return;
517
+ const l = a.getViewState(s), d = a.getDeckInstance(s);
518
518
  if (!l || !d?.height || !d?.width) return;
519
519
  const m = l?.height ?? d?.height, g = l?.width ?? d?.width, f = new gt({
520
520
  ...l,
@@ -528,211 +528,211 @@ const de = /* @__PURE__ */ Et(In), Hn = (n) => {
528
528
  ...i?.viewStateOptions
529
529
  };
530
530
  },
531
- addLayers: (r, o) => t((i) => {
531
+ addLayers: (s, o) => t((i) => {
532
532
  const a = {
533
533
  ...i.maps
534
- }, l = a[r]?.layers ?? [], d = /* @__PURE__ */ new Set([...l, ...o]);
535
- return a[r] = {
536
- ...a[r],
534
+ }, l = a[s]?.layers ?? [], d = /* @__PURE__ */ new Set([...l, ...o]);
535
+ return a[s] = {
536
+ ...a[s],
537
537
  layers: [...d]
538
538
  }, {
539
539
  maps: a
540
540
  };
541
541
  }),
542
- removeLayers: (r, o) => t((i) => {
542
+ removeLayers: (s, o) => t((i) => {
543
543
  const a = {
544
544
  ...i.maps
545
- }, l = a[r]?.layers ?? [];
546
- return a[r] = {
547
- ...a[r],
545
+ }, l = a[s]?.layers ?? [];
546
+ return a[s] = {
547
+ ...a[s],
548
548
  layers: l.filter((d) => !o.includes(d))
549
549
  }, {
550
550
  maps: a
551
551
  };
552
552
  }),
553
- setController: (r, o) => t((i) => {
554
- const a = i.maps[r]?.controller ?? {}, d = !o || typeof o == "boolean" ? o : de(typeof a == "boolean" ? {} : a, o);
553
+ setController: (s, o) => t((i) => {
554
+ const a = i.maps[s]?.controller ?? {}, d = !o || typeof o == "boolean" ? o : de(typeof a == "boolean" ? {} : a, o);
555
555
  return {
556
556
  maps: {
557
557
  ...i.maps,
558
- [r]: {
559
- ...i.maps[r],
558
+ [s]: {
559
+ ...i.maps[s],
560
560
  controller: d
561
561
  }
562
562
  }
563
563
  };
564
564
  })
565
565
  }));
566
- }, Nn = (n) => {
567
- const e = n.reduce((t, s) => {
566
+ }, Hn = (r) => {
567
+ const e = r.reduce((t, n) => {
568
568
  const {
569
- id: r
570
- } = s;
571
- return t[r] = !1, t;
569
+ id: s
570
+ } = n;
571
+ return t[s] = !1, t;
572
572
  }, {});
573
573
  return ((t) => ({
574
574
  areLayersLoaded: e,
575
- setLayersLoad: (s, r) => t((o) => ({
575
+ setLayersLoad: (n, s) => t((o) => ({
576
576
  areLayersLoaded: {
577
577
  ...o.areLayersLoaded,
578
- [s]: r
578
+ [n]: s
579
579
  }
580
580
  }))
581
581
  }));
582
- }, zn = (n) => {
583
- const e = n.reduce((t, s) => {
584
- const r = s.initialViewState ?? s.viewState;
585
- return t.initialViewStates[s.id] = r, t.viewStates[s.id] = r, t.viewports[s.id] = null, t;
582
+ }, zn = (r) => {
583
+ const e = r.reduce((t, n) => {
584
+ const s = n.initialViewState ?? n.viewState;
585
+ return t.initialViewStates[n.id] = s, t.viewStates[n.id] = s, t.viewports[n.id] = null, t;
586
586
  }, {
587
587
  viewStates: {},
588
588
  viewports: {},
589
589
  initialViewStates: {}
590
590
  });
591
- return ((t, s) => ({
591
+ return ((t, n) => ({
592
592
  viewports: e.viewports,
593
593
  initialViewStates: e.initialViewStates,
594
- updateViewPort: (r) => {
595
- const o = s();
596
- if (!o.maps[r]?.isLoaded) return;
597
- const i = new gt(o.viewStates[r]);
594
+ updateViewPort: (s) => {
595
+ const o = n();
596
+ if (!o.maps[s]?.isLoaded) return;
597
+ const i = new gt(o.viewStates[s]);
598
598
  t((a) => ({
599
599
  viewports: {
600
600
  ...a.viewports,
601
- [r]: i
601
+ [s]: i
602
602
  }
603
603
  }));
604
604
  },
605
605
  viewStates: e.viewStates,
606
- setViewState: (r, o) => t((i) => ({
606
+ setViewState: (s, o) => t((i) => ({
607
607
  viewStates: {
608
608
  ...i.viewStates,
609
- [r]: {
610
- ...i.viewStates[r],
609
+ [s]: {
610
+ ...i.viewStates[s],
611
611
  ...o
612
612
  }
613
613
  }
614
614
  })),
615
- setInitialViewState: (r, o) => t((i) => ({
615
+ setInitialViewState: (s, o) => t((i) => ({
616
616
  initialViewStates: {
617
617
  ...i.initialViewStates,
618
- [r]: o
618
+ [s]: o
619
619
  }
620
620
  })),
621
- setZoom: (r, o) => t((i) => ({
621
+ setZoom: (s, o) => t((i) => ({
622
622
  viewStates: {
623
623
  ...i.viewStates,
624
- [r]: {
625
- ...i.viewStates[r],
624
+ [s]: {
625
+ ...i.viewStates[s],
626
626
  zoom: o
627
627
  }
628
628
  }
629
629
  })),
630
- setMinZoom: (r, o) => t((i) => ({
630
+ setMinZoom: (s, o) => t((i) => ({
631
631
  viewStates: {
632
632
  ...i.viewStates,
633
- [r]: {
634
- ...i.viewStates[r],
633
+ [s]: {
634
+ ...i.viewStates[s],
635
635
  minZoom: o
636
636
  }
637
637
  }
638
638
  })),
639
- setMaxZoom: (r, o) => t((i) => ({
639
+ setMaxZoom: (s, o) => t((i) => ({
640
640
  viewStates: {
641
641
  ...i.viewStates,
642
- [r]: {
643
- ...i.viewStates[r],
642
+ [s]: {
643
+ ...i.viewStates[s],
644
644
  maxZoom: o
645
645
  }
646
646
  }
647
647
  }))
648
648
  }));
649
- }, Gn = ((n, e) => ({
650
- fitBounds: (t, s, r) => {
651
- const o = e(), i = o.getBounds(t, s, r);
649
+ }, Gn = ((r, e) => ({
650
+ fitBounds: (t, n, s) => {
651
+ const o = e(), i = o.getBounds(t, n, s);
652
652
  i && (o.setViewState(t, i), o.updateViewPort(t));
653
653
  },
654
- flyTo: (t, s, r = {}) => {
654
+ flyTo: (t, n, s = {}) => {
655
655
  const o = e(), i = {
656
656
  ...Bn,
657
- ...r?.viewStateOptions
657
+ ...s?.viewStateOptions
658
658
  }, a = {
659
- ...s,
659
+ ...n,
660
660
  ...i
661
661
  };
662
662
  o.setViewState(t, a), o.updateViewPort(t);
663
663
  },
664
- loadInitialViewState: (t, s) => {
665
- const r = e();
666
- r.setInitialViewState(t, s), r.flyTo(t, s, {
664
+ loadInitialViewState: (t, n) => {
665
+ const s = e();
666
+ s.setInitialViewState(t, n), s.flyTo(t, n, {
667
667
  viewStateOptions: {
668
668
  transitionDuration: 0
669
669
  }
670
670
  });
671
671
  },
672
672
  resetViewState: (t) => {
673
- const s = e(), r = s.initialViewStates;
674
- r[t] && s.flyTo(t, r[t]);
673
+ const n = e(), s = n.initialViewStates;
674
+ s[t] && n.flyTo(t, s[t]);
675
675
  }
676
- })), Zn = (n) => {
677
- const e = n.reduce((t, s) => (t[s.id] = s.spatialFilter ?? {}, t), {});
676
+ })), Zn = (r) => {
677
+ const e = r.reduce((t, n) => (t[n.id] = n.spatialFilter ?? {}, t), {});
678
678
  return ((t) => ({
679
679
  spatialFilter: e,
680
- setSpatialFilter: (s, r, o) => {
680
+ setSpatialFilter: (n, s, o) => {
681
681
  t((i) => {
682
682
  const a = structuredClone(i.spatialFilter);
683
- return a[s] = {
684
- ...a[s],
685
- [r]: o
683
+ return a[n] = {
684
+ ...a[n],
685
+ [s]: o
686
686
  }, {
687
687
  spatialFilter: a
688
688
  };
689
689
  });
690
690
  },
691
- removeSpatialFilter: (s, r) => {
691
+ removeSpatialFilter: (n, s) => {
692
692
  t((o) => {
693
693
  const i = structuredClone(o.spatialFilter);
694
- return i[s] && delete i[s][r], {
694
+ return i[n] && delete i[n][s], {
695
695
  spatialFilter: i
696
696
  };
697
697
  });
698
698
  }
699
699
  }));
700
- }, Wn = (n) => ze()((...e) => ({
701
- ...Hn(n)(...e),
702
- ...Nn(n)(...e),
703
- ...zn(n)(...e),
704
- ...Zn(n)(...e),
700
+ }, Wn = (r) => ze()((...e) => ({
701
+ ...Nn(r)(...e),
702
+ ...Hn(r)(...e),
703
+ ...zn(r)(...e),
704
+ ...Zn(r)(...e),
705
705
  ...Gn(...e)
706
- })), Tt = He({});
707
- function Kn(n) {
706
+ })), Tt = Ne({});
707
+ function Kn(r) {
708
708
  const e = I(5), {
709
709
  children: t,
710
- values: s
711
- } = n;
712
- let r;
713
- e[0] !== s ? (r = Wn(s), e[0] = s, e[1] = r) : r = e[1];
714
- const [o] = ae(r);
710
+ values: n
711
+ } = r;
712
+ let s;
713
+ e[0] !== n ? (s = Wn(n), e[0] = n, e[1] = s) : s = e[1];
714
+ const [o] = ae(s);
715
715
  let i;
716
716
  return e[2] !== t || e[3] !== o ? (i = /* @__PURE__ */ Z(Tt.Provider, { value: o, children: t }), e[2] = t, e[3] = o, e[4] = i) : i = e[4], i;
717
717
  }
718
- function $(n) {
719
- const e = Ne(Tt);
718
+ function $(r) {
719
+ const e = He(Tt);
720
720
  if (!Object.keys(e).length)
721
721
  throw new Error("Missing MapProvider in the tree");
722
- return Ge(e, n);
722
+ return Ge(e, r);
723
723
  }
724
- function lo(n) {
724
+ function co(r) {
725
725
  const e = I(9), {
726
726
  children: t,
727
- mapId: s
728
- } = n;
729
- let r;
730
- e[0] !== s ? (r = (m) => m.maps[s], e[0] = s, e[1] = r) : r = e[1];
727
+ mapId: n
728
+ } = r;
729
+ let s;
730
+ e[0] !== n ? (s = (m) => m.maps[n], e[0] = n, e[1] = s) : s = e[1];
731
731
  const {
732
732
  basemap: o
733
- } = $(r), i = $(Yn);
733
+ } = $(s), i = $(Yn);
734
734
  let a;
735
- e[2] !== s || e[3] !== i ? (a = (m) => i(s, m), e[2] = s, e[3] = i, e[4] = a) : a = e[4];
735
+ e[2] !== n || e[3] !== i ? (a = (m) => i(n, m), e[2] = n, e[3] = i, e[4] = a) : a = e[4];
736
736
  const l = a;
737
737
  let d;
738
738
  return e[5] !== o || e[6] !== t || e[7] !== l ? (d = t({
@@ -740,8 +740,8 @@ function lo(n) {
740
740
  setBasemap: l
741
741
  }), e[5] = o, e[6] = t, e[7] = l, e[8] = d) : d = e[8], d;
742
742
  }
743
- function Yn(n) {
744
- return n.setBasemap;
743
+ function Yn(r) {
744
+ return r.setBasemap;
745
745
  }
746
746
  const te = {
747
747
  addFeature: "addFeature",
@@ -826,19 +826,19 @@ const pe = "lassoLayer", Ce = "maskLayer", Qn = {
826
826
  value: "edit",
827
827
  mode: Jn
828
828
  }
829
- }, he = ht((n) => ({
829
+ }, he = ht((r) => ({
830
830
  layers: {},
831
- setLayer: (e, t) => n((s) => {
832
- const r = {
833
- ...s.layers
834
- }, o = r[e] ?? {
831
+ setLayer: (e, t) => r((n) => {
832
+ const s = {
833
+ ...n.layers
834
+ }, o = s[e] ?? {
835
835
  type: null,
836
836
  props: {}
837
837
  }, i = [...o.props.extensions ?? [], ...t.props?.extensions ?? []].reduce((l, d) => (l.some((m) => m.equals(d)) || l.push(d), l), []), a = o.legend || t.legend ? {
838
838
  ...o.legend,
839
839
  ...t.legend
840
840
  } : void 0;
841
- return r[e] = {
841
+ return s[e] = {
842
842
  ...o,
843
843
  ...t,
844
844
  props: {
@@ -853,21 +853,21 @@ const pe = "lassoLayer", Ce = "maskLayer", Qn = {
853
853
  },
854
854
  legend: a
855
855
  }, {
856
- layers: r
856
+ layers: s
857
857
  };
858
858
  }),
859
- removeLayer: (e) => n((t) => {
860
- const s = {
859
+ removeLayer: (e) => r((t) => {
860
+ const n = {
861
861
  ...t.layers
862
862
  };
863
- return delete s[e], {
864
- layers: s
863
+ return delete n[e], {
864
+ layers: n
865
865
  };
866
866
  })
867
867
  })), nt = ["click", "keyup", "panstart", "panmove", "panend", "pointermove"], Lt = {
868
868
  multipan: [Je, {
869
869
  threshold: 10,
870
- direction: rn.Vertical,
870
+ direction: sn.Vertical,
871
871
  pointers: 2
872
872
  }],
873
873
  pinch: [an, {}, null, ["multipan"]],
@@ -882,109 +882,109 @@ const pe = "lassoLayer", Ce = "maskLayer", Qn = {
882
882
  threshold: 1
883
883
  }, ["pinch"], ["multipan"]]
884
884
  };
885
- function kt(n) {
885
+ function kt(r) {
886
886
  const e = I(12), {
887
887
  mapId: t,
888
- layerId: s
889
- } = n;
890
- let r;
891
- e[0] !== t ? (r = (w) => w.maps[t]?.basemap, e[0] = t, e[1] = r) : r = e[1];
892
- const o = $(r);
888
+ layerId: n
889
+ } = r;
890
+ let s;
891
+ e[0] !== t ? (s = (w) => w.maps[t]?.basemap, e[0] = t, e[1] = s) : s = e[1];
892
+ const o = $(s);
893
893
  let i;
894
894
  e[2] !== t ? (i = (w) => w.maps[t]?.isLoaded, e[2] = t, e[3] = i) : i = e[3];
895
- const a = $(i), l = $(ns), d = he(ts), {
895
+ const a = $(i), l = $(nr), d = he(tr), {
896
896
  type: m
897
897
  } = be[o], g = m === ie.googleMaps;
898
898
  let b, f;
899
- e[4] !== l || e[5] !== g || e[6] !== a || e[7] !== s || e[8] !== t || e[9] !== d ? (b = () => {
899
+ e[4] !== l || e[5] !== g || e[6] !== a || e[7] !== n || e[8] !== t || e[9] !== d ? (b = () => {
900
900
  let w = null;
901
901
  if (g && a) {
902
902
  const S = l(t);
903
903
  w = new on(S.getDiv(), {
904
- recognizers: Object.keys(Lt).map(es)
904
+ recognizers: Object.keys(Lt).map(er)
905
905
  });
906
906
  }
907
- d(s, {
907
+ d(n, {
908
908
  props: {
909
909
  eventManager: w
910
910
  }
911
911
  });
912
- }, f = [l, g, a, s, t, d], e[4] = l, e[5] = g, e[6] = a, e[7] = s, e[8] = t, e[9] = d, e[10] = b, e[11] = f) : (b = e[10], f = e[11]), K(b, f);
912
+ }, f = [l, g, a, n, t, d], e[4] = l, e[5] = g, e[6] = a, e[7] = n, e[8] = t, e[9] = d, e[10] = b, e[11] = f) : (b = e[10], f = e[11]), K(b, f);
913
913
  }
914
- function es(n) {
915
- const [e, t, s, r] = Lt[n], o = {
914
+ function er(r) {
915
+ const [e, t, n, s] = Lt[r], o = {
916
916
  ...t,
917
- event: n
917
+ event: r
918
918
  };
919
919
  return {
920
920
  recognizer: new e(o),
921
- recognizeWith: s,
922
- requestFailure: r
921
+ recognizeWith: n,
922
+ requestFailure: s
923
923
  };
924
924
  }
925
- function ts(n) {
926
- return n.setLayer;
925
+ function tr(r) {
926
+ return r.setLayer;
927
927
  }
928
- function ns(n) {
929
- return n.getOverlayInstance;
928
+ function nr(r) {
929
+ return r.getOverlayInstance;
930
930
  }
931
931
  class Ct extends Jt {
932
932
  updateState({
933
933
  props: e,
934
934
  oldProps: t,
935
- context: s,
936
- changeFlags: r
935
+ context: n,
936
+ changeFlags: s
937
937
  }) {
938
938
  e.eventManager !== t.eventManager && (this._removeEventHandlers(e.eventManager), this._removeEventHandlers(t.eventManager), this._addEventHandlers()), super.updateState({
939
939
  props: e,
940
940
  oldProps: t,
941
- context: s,
942
- changeFlags: r
941
+ context: n,
942
+ changeFlags: s
943
943
  });
944
944
  }
945
945
  _addEventHandlers() {
946
946
  const e = this._getEventManager(), {
947
947
  eventHandler: t
948
948
  } = this.state._editableLayerState;
949
- for (const s of nt)
950
- e.on(s, t, {
949
+ for (const n of nt)
950
+ e.on(n, t, {
951
951
  // give nebula a higher priority so that it can stop propagation to deck.gl's map panning handlers
952
952
  priority: 100
953
953
  });
954
954
  }
955
955
  _removeEventHandlers(e) {
956
956
  const t = e ?? this._getEventManager(), {
957
- eventHandler: s
957
+ eventHandler: n
958
958
  } = this.state._editableLayerState;
959
- for (const r of nt)
960
- t.off(r, s);
959
+ for (const s of nt)
960
+ t.off(s, n);
961
961
  }
962
962
  _getEventManager() {
963
963
  return this.props.eventManager ?? // @ts-expect-error accessing protected props
964
964
  this.context.deck.eventManager;
965
965
  }
966
966
  }
967
- function ss({
968
- mode: n,
967
+ function rr({
968
+ mode: r,
969
969
  ...e
970
970
  }) {
971
- const t = rs(e);
971
+ const t = sr(e);
972
972
  return {
973
973
  type: Ct,
974
974
  props: {
975
975
  ...t,
976
- mode: n
976
+ mode: r
977
977
  }
978
978
  };
979
979
  }
980
- function rs({
981
- layerProps: n,
980
+ function sr({
981
+ layerProps: r,
982
982
  onEdit: e,
983
983
  getLineColor: t,
984
- getFillColor: s,
985
- pointColor: r
984
+ getFillColor: n,
985
+ pointColor: s
986
986
  }) {
987
- const o = de(n, {
987
+ const o = de(r, {
988
988
  modeConfig: {
989
989
  // // We force distance due to conversion is addressed at feature getText level
990
990
  // formatTooltip: (_distance: number) => {
@@ -995,17 +995,17 @@ function rs({
995
995
  onEdit: e
996
996
  }), i = de(Qn, {
997
997
  getTentativeLineColor: t,
998
- getTentativeFillColor: s,
998
+ getTentativeFillColor: n,
999
999
  getLineColor: t,
1000
- getFillColor: s,
1001
- getEditHandlePointColor: r.fill,
1002
- getEditHandlePointOutlineColor: r.outline,
1000
+ getFillColor: n,
1001
+ getEditHandlePointColor: s.fill,
1002
+ getEditHandlePointOutlineColor: s.outline,
1003
1003
  dataComparator: (l, d) => l.features[0] === d.features[0]
1004
1004
  });
1005
1005
  return de(i, o);
1006
1006
  }
1007
- const os = (n) => ze()((e) => ({
1008
- data: n.reduce((s, r) => {
1007
+ const or = (r) => ze()((e) => ({
1008
+ data: r.reduce((n, s) => {
1009
1009
  const {
1010
1010
  enabled: o = !1,
1011
1011
  mapId: i,
@@ -1013,120 +1013,120 @@ const os = (n) => ze()((e) => ({
1013
1013
  modes: l = Ue,
1014
1014
  modeSelected: d = Ue.polygon.value,
1015
1015
  values: m = {}
1016
- } = r;
1017
- return s[i] = {
1016
+ } = s;
1017
+ return n[i] = {
1018
1018
  enabled: o,
1019
1019
  modeInstance: a,
1020
1020
  modes: l,
1021
1021
  modeSelected: d,
1022
1022
  values: m
1023
- }, s;
1023
+ }, n;
1024
1024
  }, {}),
1025
- setEnabled: (s, r) => {
1025
+ setEnabled: (n, s) => {
1026
1026
  e((o) => ({
1027
1027
  data: {
1028
1028
  ...o.data,
1029
- [s]: {
1030
- ...o.data[s],
1031
- enabled: r,
1032
- visible: r
1029
+ [n]: {
1030
+ ...o.data[n],
1031
+ enabled: s,
1032
+ visible: s
1033
1033
  }
1034
1034
  }
1035
1035
  }));
1036
1036
  },
1037
- setValue: (s, r, o) => {
1037
+ setValue: (n, s, o) => {
1038
1038
  e((i) => {
1039
1039
  const a = {
1040
- ...i.data[s].values
1041
- }, l = a[r] ?? {
1040
+ ...i.data[n].values
1041
+ }, l = a[s] ?? {
1042
1042
  type: "mask"
1043
1043
  };
1044
- return a[r] = {
1044
+ return a[s] = {
1045
1045
  ...l,
1046
1046
  ...o,
1047
- id: r
1048
- }, o || delete a[r], {
1047
+ id: s
1048
+ }, o || delete a[s], {
1049
1049
  data: {
1050
1050
  ...i.data,
1051
- [s]: {
1052
- ...i.data[s],
1051
+ [n]: {
1052
+ ...i.data[n],
1053
1053
  values: a
1054
1054
  }
1055
1055
  }
1056
1056
  };
1057
1057
  });
1058
1058
  },
1059
- setVisibility: (s, r, o) => {
1059
+ setVisibility: (n, s, o) => {
1060
1060
  e((i) => {
1061
1061
  const a = {
1062
- ...i.data[s].values
1063
- }, l = a[r] ?? {};
1062
+ ...i.data[n].values
1063
+ }, l = a[s] ?? {};
1064
1064
  return l.properties.visible = o, {
1065
1065
  data: {
1066
1066
  ...i.data,
1067
- [s]: {
1068
- ...i.data[s],
1067
+ [n]: {
1068
+ ...i.data[n],
1069
1069
  values: {
1070
1070
  ...a,
1071
- [r]: l
1071
+ [s]: l
1072
1072
  }
1073
1073
  }
1074
1074
  }
1075
1075
  };
1076
1076
  });
1077
1077
  },
1078
- setModeSelected: (s, r) => {
1078
+ setModeSelected: (n, s) => {
1079
1079
  e((o) => ({
1080
1080
  data: {
1081
1081
  ...o.data,
1082
- [s]: {
1083
- ...o.data[s],
1084
- modeSelected: r
1082
+ [n]: {
1083
+ ...o.data[n],
1084
+ modeSelected: s
1085
1085
  }
1086
1086
  }
1087
1087
  }));
1088
1088
  },
1089
- setModeInstance: (s, r) => {
1089
+ setModeInstance: (n, s) => {
1090
1090
  e((o) => ({
1091
1091
  data: {
1092
1092
  ...o.data,
1093
- [s]: {
1094
- ...o.data[s],
1095
- modeInstance: r
1093
+ [n]: {
1094
+ ...o.data[n],
1095
+ modeInstance: s
1096
1096
  }
1097
1097
  }
1098
1098
  }));
1099
1099
  }
1100
- })), Pt = He({});
1101
- function is(n) {
1100
+ })), Pt = Ne({});
1101
+ function ir(r) {
1102
1102
  const e = I(5), {
1103
1103
  children: t,
1104
- values: s
1105
- } = n;
1106
- let r;
1107
- e[0] !== s ? (r = () => os(s), e[0] = s, e[1] = r) : r = e[1];
1108
- const [o] = ae(r);
1104
+ values: n
1105
+ } = r;
1106
+ let s;
1107
+ e[0] !== n ? (s = () => or(n), e[0] = n, e[1] = s) : s = e[1];
1108
+ const [o] = ae(s);
1109
1109
  let i;
1110
1110
  return e[2] !== t || e[3] !== o ? (i = /* @__PURE__ */ Z(Pt.Provider, { value: o, children: t }), e[2] = t, e[3] = o, e[4] = i) : i = e[4], i;
1111
1111
  }
1112
- function W(n) {
1113
- const e = Ne(Pt);
1112
+ function W(r) {
1113
+ const e = He(Pt);
1114
1114
  if (!Object.keys(e).length)
1115
1115
  throw new Error("Missing LassoToolsProvider in the tree");
1116
- return Ge(e, n);
1116
+ return Ge(e, r);
1117
1117
  }
1118
- function as({
1119
- mapId: n,
1118
+ function ar({
1119
+ mapId: r,
1120
1120
  children: e
1121
1121
  }) {
1122
- const t = W((f) => f.data[n]?.enabled), s = W((f) => f.setEnabled), r = W((f) => f.data[n]?.values), o = W((f) => f.setValue), i = W((f) => f.setVisibility), a = W((f) => f.data[n]?.modeSelected), l = W((f) => f.setModeSelected), d = W((f) => f.data[n]?.modes), m = W((f) => f.setModeInstance);
1122
+ const t = W((f) => f.data[r]?.enabled), n = W((f) => f.setEnabled), s = W((f) => f.data[r]?.values), o = W((f) => f.setValue), i = W((f) => f.setVisibility), a = W((f) => f.data[r]?.modeSelected), l = W((f) => f.setModeSelected), d = W((f) => f.data[r]?.modes), m = W((f) => f.setModeInstance);
1123
1123
  K(() => {
1124
1124
  const f = d[a];
1125
1125
  if (f && t) {
1126
1126
  const w = f.mode;
1127
- m(n, new w());
1127
+ m(r, new w());
1128
1128
  }
1129
- }, [t, n, a, d, m]);
1129
+ }, [t, r, a, d, m]);
1130
1130
  const [
1131
1131
  g
1132
1132
  // , draw
@@ -1138,14 +1138,14 @@ function as({
1138
1138
  label: L.properties.label
1139
1139
  });
1140
1140
  return [
1141
- Object.values(r).filter((L) => L.type === "mask").map(f)
1141
+ Object.values(s).filter((L) => L.type === "mask").map(f)
1142
1142
  // , draw
1143
1143
  ];
1144
- }, [r]), b = ee((f) => {
1145
- s(n, !!f), l(n, f);
1146
- }, [n, s, l]);
1144
+ }, [s]), b = ee((f) => {
1145
+ n(r, !!f), l(r, f);
1146
+ }, [r, n, l]);
1147
1147
  return e({
1148
- mapId: n,
1148
+ mapId: r,
1149
1149
  enabled: t,
1150
1150
  modes: d,
1151
1151
  modeSelected: a,
@@ -1153,65 +1153,65 @@ function as({
1153
1153
  mask: g
1154
1154
  // draw,
1155
1155
  },
1156
- setValue: ee((f, w) => o(n, f, w), [n, o]),
1157
- setEnabled: ee((f) => s(n, f), [n, s]),
1158
- setVisibility: ee((f, w) => i(n, f, w), [n, i]),
1156
+ setValue: ee((f, w) => o(r, f, w), [r, o]),
1157
+ setEnabled: ee((f) => n(r, f), [r, n]),
1158
+ setVisibility: ee((f, w) => i(r, f, w), [r, i]),
1159
1159
  setModeSelected: b
1160
1160
  });
1161
1161
  }
1162
1162
  function Ot({
1163
- values: n
1163
+ values: r
1164
1164
  }) {
1165
- return Object.values(n ?? {}).filter((e) => e.type === "mask");
1165
+ return Object.values(r ?? {}).filter((e) => e.type === "mask");
1166
1166
  }
1167
- const ls = Mt({
1167
+ const lr = Mt({
1168
1168
  length: fn
1169
- }), cs = Mt({
1169
+ }), cr = Mt({
1170
1170
  area: pn
1171
1171
  });
1172
- function us(n) {
1173
- if (!(n in Le)) {
1172
+ function ur(r) {
1173
+ if (!(r in Le)) {
1174
1174
  const e = Object.keys(Le);
1175
- throw new Error(`Unit "${n}" cannot be converted to area. Valid units are: ${e.join(", ")}`);
1175
+ throw new Error(`Unit "${r}" cannot be converted to area. Valid units are: ${e.join(", ")}`);
1176
1176
  }
1177
1177
  }
1178
- function st(n, e, t) {
1178
+ function rt(r, e, t) {
1179
1179
  switch (t) {
1180
1180
  case "length": {
1181
- const s = it[N.meter], r = it[e];
1182
- return ls(n).from(s).to(r);
1181
+ const n = it[H.meter], s = it[e];
1182
+ return lr(r).from(n).to(s);
1183
1183
  }
1184
1184
  case "area": {
1185
- us(e);
1186
- const s = at[Le[N.meter]], r = at[Le[e]];
1187
- return cs(n).from(s).to(r);
1185
+ ur(e);
1186
+ const n = at[Le[H.meter]], s = at[Le[e]];
1187
+ return cr(r).from(n).to(s);
1188
1188
  }
1189
1189
  default:
1190
1190
  throw new Error(`Invalid dimension: ${t}, valid dimensions are: length, area`);
1191
1191
  }
1192
1192
  }
1193
- const rt = 1e4;
1193
+ const st = 1e4;
1194
1194
  function Pe({
1195
- meters: n,
1195
+ meters: r,
1196
1196
  unit: e,
1197
1197
  locale: t,
1198
1198
  options: {
1199
- autoSplitNumber: s,
1200
- customFormatter: r,
1199
+ autoSplitNumber: n,
1200
+ customFormatter: s,
1201
1201
  ...o
1202
1202
  } = {
1203
- autoSplitNumber: rt
1203
+ autoSplitNumber: st
1204
1204
  },
1205
1205
  dimension: i = "length"
1206
1206
  }) {
1207
1207
  const a = e === je["m-km"], l = e === je["ft-mi"], d = a || l;
1208
1208
  let m, g;
1209
1209
  if (d) {
1210
- const f = n < (s ?? rt);
1211
- let w = f ? N.meter : N.kilometer;
1212
- m = f ? ge.meter : ge.kilometer, l && (m = f ? ge.feet : ge.mile, w = f ? N.feet : N.mile), g = st(n, w, i);
1210
+ const f = r < (n ?? st);
1211
+ let w = f ? H.meter : H.kilometer;
1212
+ m = f ? ge.meter : ge.kilometer, l && (m = f ? ge.feet : ge.mile, w = f ? H.feet : H.mile), g = rt(r, w, i);
1213
1213
  } else
1214
- m = ge[e], g = st(n, e, i);
1214
+ m = ge[e], g = rt(r, e, i);
1215
1215
  let b = `${wt(g, t, {
1216
1216
  style: "unit",
1217
1217
  unit: m,
@@ -1221,41 +1221,41 @@ function Pe({
1221
1221
  maximumFractionDigits: 2,
1222
1222
  ...o
1223
1223
  })}`;
1224
- return i === "area" && (b += "2"), r ? r(b) : b;
1224
+ return i === "area" && (b += "2"), s ? s(b) : b;
1225
1225
  }
1226
- function co(n, {
1226
+ function uo(r, {
1227
1227
  hasDoubleClickZoom: e
1228
1228
  }) {
1229
- return typeof n == "boolean" ? {
1229
+ return typeof r == "boolean" ? {
1230
1230
  doubleClickZoom: e
1231
1231
  } : {
1232
- ...n,
1232
+ ...r,
1233
1233
  doubleClickZoom: e
1234
1234
  };
1235
1235
  }
1236
- function At(n, e, t) {
1237
- if (n > 0) {
1236
+ function At(r, e, t) {
1237
+ if (r > 0) {
1238
1238
  const {
1239
- formatTooltip: s,
1240
- turfOptions: r
1239
+ formatTooltip: n,
1240
+ turfOptions: s
1241
1241
  } = t ?? {
1242
1242
  turfOptions: {
1243
1243
  units: "kilometers"
1244
1244
  }
1245
- }, o = r?.units;
1245
+ }, o = s?.units;
1246
1246
  let i;
1247
- s ? i = s(n) : i = `${parseFloat(n.toString()).toFixed(2)} ${o}`;
1247
+ n ? i = n(r) : i = `${parseFloat(r.toString()).toFixed(2)} ${o}`;
1248
1248
  const {
1249
1249
  measurementCallback: a
1250
1250
  } = t;
1251
- return a && a(n), [{
1251
+ return a && a(r), [{
1252
1252
  position: e,
1253
1253
  text: i
1254
1254
  }];
1255
1255
  }
1256
1256
  return [];
1257
1257
  }
1258
- class ds extends Qt {
1258
+ class dr extends Qt {
1259
1259
  _isMeasuringSessionFinished = !1;
1260
1260
  area = 0;
1261
1261
  tooltips = [];
@@ -1266,15 +1266,15 @@ class ds extends Qt {
1266
1266
  handleClick(e, t) {
1267
1267
  this._isMeasuringSessionFinished && (this._isMeasuringSessionFinished = !1, this.resetClickSequence(), this.area = 0);
1268
1268
  const {
1269
- picks: s
1270
- } = e, r = Xt(s), o = this.getClickSequence();
1269
+ picks: n
1270
+ } = e, s = Xt(n), o = this.getClickSequence();
1271
1271
  let i = !1;
1272
- !r && !this.allowOverlapping(t) && (this.addClickSequence(e), i = !0);
1272
+ !s && !this.allowOverlapping(t) && (this.addClickSequence(e), i = !0);
1273
1273
  const a = this.getClickSequence(), l = [...a, a[0]];
1274
1274
  this.area = Xe({
1275
1275
  type: "Polygon",
1276
1276
  coordinates: [l]
1277
- }), this.isFinalizedEdition(o, r) ? this.finalizeEdition(t) : i && t.onEdit({
1277
+ }), this.isFinalizedEdition(o, s) ? this.finalizeEdition(t) : i && t.onEdit({
1278
1278
  // data is the same
1279
1279
  updatedData: t.data,
1280
1280
  editType: "addTentativePosition",
@@ -1287,15 +1287,15 @@ class ds extends Qt {
1287
1287
  e.key === "Enter" ? this.getClickSequence().length > 2 ? this.finalizeEdition(t) : this.resetEdition(t) : e.key === "Escape" && this.resetEdition(t);
1288
1288
  }
1289
1289
  updateTooltip(e, t) {
1290
- const s = cn(e);
1291
- this.area = Xe(e), this.tooltips = At(this.area, s.geometry.coordinates, t.modeConfig);
1290
+ const n = cn(e);
1291
+ this.area = Xe(e), this.tooltips = At(this.area, n.geometry.coordinates, t.modeConfig);
1292
1292
  }
1293
1293
  handlePointerMove(e, t) {
1294
1294
  if (this._isMeasuringSessionFinished)
1295
1295
  return;
1296
1296
  super.handlePointerMove(e, t);
1297
- const s = this.getTentativeGuide(t);
1298
- s && s.geometry.type === "Polygon" && this.updateTooltip(s, t);
1297
+ const n = this.getTentativeGuide(t);
1298
+ n && n.geometry.type === "Polygon" && this.updateTooltip(n, t);
1299
1299
  }
1300
1300
  resetClickSequence() {
1301
1301
  super.resetClickSequence(), this.tooltips = [], this._isMeasuringSessionFinished = !1, this.area = 0;
@@ -1308,30 +1308,30 @@ class ds extends Qt {
1308
1308
  }
1309
1309
  isFinalizedEdition(e, t) {
1310
1310
  const {
1311
- positionIndexes: s
1311
+ positionIndexes: n
1312
1312
  } = t?.properties ?? {
1313
1313
  positionIndexes: []
1314
1314
  };
1315
- return e.length > 2 && t !== void 0 && (s[0] === 0 || s[0] === e.length - 1);
1315
+ return e.length > 2 && t !== void 0 && (n[0] === 0 || n[0] === e.length - 1);
1316
1316
  }
1317
1317
  allowOverlapping(e) {
1318
1318
  let t = !1;
1319
- const s = this.getClickSequence();
1320
- if (s.length > 2 && // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
1319
+ const n = this.getClickSequence();
1320
+ if (n.length > 2 && // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
1321
1321
  e.modeConfig?.preventOverlappingLines) {
1322
- const r = {
1322
+ const s = {
1323
1323
  type: "LineString",
1324
- coordinates: [...s, s[0]]
1324
+ coordinates: [...n, n[0]]
1325
1325
  }, o = {
1326
1326
  type: "LineString",
1327
- coordinates: [...s.slice(0, s.length - 1)]
1327
+ coordinates: [...n.slice(0, n.length - 1)]
1328
1328
  };
1329
- un(r, o).features.length > 0 && (t = !0);
1329
+ un(s, o).features.length > 0 && (t = !0);
1330
1330
  }
1331
1331
  return t;
1332
1332
  }
1333
1333
  finalizeEdition(e) {
1334
- const t = this.getClickSequence(), s = {
1334
+ const t = this.getClickSequence(), n = {
1335
1335
  type: "Polygon",
1336
1336
  coordinates: [[...t, t[0]]]
1337
1337
  };
@@ -1339,17 +1339,17 @@ class ds extends Qt {
1339
1339
  type: "FeatureCollection",
1340
1340
  features: []
1341
1341
  };
1342
- const r = this.getAddFeatureOrBooleanPolygonAction(s, e);
1343
- this._isMeasuringSessionFinished = !0, r && (this.resultPolygon = r.updatedData, e.onEdit({
1344
- ...r,
1342
+ const s = this.getAddFeatureOrBooleanPolygonAction(n, e);
1343
+ this._isMeasuringSessionFinished = !0, s && (this.resultPolygon = s.updatedData, e.onEdit({
1344
+ ...s,
1345
1345
  editType: te.addPosition,
1346
1346
  editContext: {
1347
- ...r.editContext,
1347
+ ...s.editContext,
1348
1348
  distance: this.area,
1349
1349
  positions: this.getClickSequence(),
1350
1350
  finished: this._isMeasuringSessionFinished
1351
1351
  }
1352
- })), this.updateTooltip(s, e);
1352
+ })), this.updateTooltip(n, e);
1353
1353
  }
1354
1354
  resetEdition(e) {
1355
1355
  this.resetClickSequence(), e.onEdit({
@@ -1362,19 +1362,19 @@ class ds extends Qt {
1362
1362
  getTooltipText({
1363
1363
  meters: e,
1364
1364
  locale: t,
1365
- unit: s,
1366
- options: r
1365
+ unit: n,
1366
+ options: s
1367
1367
  }) {
1368
1368
  return Pe({
1369
1369
  meters: e,
1370
1370
  locale: t,
1371
- unit: s,
1372
- options: r,
1371
+ unit: n,
1372
+ options: s,
1373
1373
  dimension: "area"
1374
1374
  });
1375
1375
  }
1376
1376
  }
1377
- class fs extends bt {
1377
+ class fr extends bt {
1378
1378
  _isMeasuringSessionFinished = !1;
1379
1379
  _currentArea = 0;
1380
1380
  resultPolygon = {
@@ -1389,8 +1389,8 @@ class fs extends bt {
1389
1389
  this._isMeasuringSessionFinished || (super.handlePointerMove(e, t), this.tooltips = At(this.areaCircle, this.position, t.modeConfig));
1390
1390
  }
1391
1391
  checkAndFinishPolygon(e) {
1392
- const t = this.getClickSequence(), s = this.getTentativeGuide(e);
1393
- this.isFinalizedEdition(t, s) && this.finalizeEdition(e);
1392
+ const t = this.getClickSequence(), n = this.getTentativeGuide(e);
1393
+ this.isFinalizedEdition(t, n) && this.finalizeEdition(e);
1394
1394
  }
1395
1395
  handleKeyUp(e, t) {
1396
1396
  e.key === "Enter" ? this.finalizeEdition(t) : e.key === "Escape" && this.resetEdition(t);
@@ -1407,12 +1407,12 @@ class fs extends bt {
1407
1407
  type: "FeatureCollection",
1408
1408
  features: []
1409
1409
  };
1410
- const s = this.getAddFeatureOrBooleanPolygonAction(t, e);
1411
- this._isMeasuringSessionFinished = !0, e.onUpdateCursor("cell"), s && (this.resultPolygon = s.updatedData, e.onEdit({
1412
- ...s,
1410
+ const n = this.getAddFeatureOrBooleanPolygonAction(t, e);
1411
+ this._isMeasuringSessionFinished = !0, e.onUpdateCursor("cell"), n && (this.resultPolygon = n.updatedData, e.onEdit({
1412
+ ...n,
1413
1413
  editType: te.addPosition,
1414
1414
  editContext: {
1415
- ...s.editContext,
1415
+ ...n.editContext,
1416
1416
  distance: this._currentArea,
1417
1417
  positions: this.getClickSequence(),
1418
1418
  finished: this._isMeasuringSessionFinished
@@ -1436,14 +1436,14 @@ class fs extends bt {
1436
1436
  getTooltipText({
1437
1437
  meters: e,
1438
1438
  locale: t,
1439
- unit: s,
1440
- options: r
1439
+ unit: n,
1440
+ options: s
1441
1441
  }) {
1442
1442
  return Pe({
1443
1443
  meters: e,
1444
1444
  locale: t,
1445
- unit: s,
1446
- options: r,
1445
+ unit: n,
1446
+ options: s,
1447
1447
  dimension: "area"
1448
1448
  });
1449
1449
  }
@@ -1465,10 +1465,10 @@ class Ft extends en {
1465
1465
  if (this._isMeasuringSessionFinished) return;
1466
1466
  e.stopPropagation();
1467
1467
  const {
1468
- key: s
1469
- } = e, r = this.getClickSequence().length;
1468
+ key: n
1469
+ } = e, s = this.getClickSequence().length;
1470
1470
  let o = te.finish;
1471
- switch (s) {
1471
+ switch (n) {
1472
1472
  case "Escape":
1473
1473
  t.onEdit({
1474
1474
  updatedData: {
@@ -1480,7 +1480,7 @@ class Ft extends en {
1480
1480
  });
1481
1481
  break;
1482
1482
  case "Enter":
1483
- this._isMeasuringSessionFinished = !0, r === 1 && (this.resetClickSequence(), o = te.cancel), t.onUpdateCursor("cell"), t.onEdit({
1483
+ this._isMeasuringSessionFinished = !0, s === 1 && (this.resetClickSequence(), o = te.cancel), t.onUpdateCursor("cell"), t.onEdit({
1484
1484
  updatedData: t.data,
1485
1485
  editType: o,
1486
1486
  editContext: {
@@ -1496,18 +1496,18 @@ class Ft extends en {
1496
1496
  getTooltipText({
1497
1497
  meters: e,
1498
1498
  locale: t,
1499
- unit: s,
1500
- options: r
1499
+ unit: n,
1500
+ options: s
1501
1501
  }) {
1502
1502
  return Pe({
1503
1503
  meters: e,
1504
1504
  locale: t,
1505
- unit: s,
1506
- options: r
1505
+ unit: n,
1506
+ options: s
1507
1507
  });
1508
1508
  }
1509
1509
  }
1510
- const ce = "mapMeasureLayer", ps = {
1510
+ const ce = "mapMeasureLayer", pr = {
1511
1511
  id: ce,
1512
1512
  pickable: !1,
1513
1513
  billboard: !1,
@@ -1544,7 +1544,7 @@ const ce = "mapMeasureLayer", ps = {
1544
1544
  point: qe.point
1545
1545
  }
1546
1546
  }
1547
- }, N = {
1547
+ }, H = {
1548
1548
  kilometer: "kilometer",
1549
1549
  meter: "meter",
1550
1550
  centimeter: "centimeter",
@@ -1560,37 +1560,37 @@ const ce = "mapMeasureLayer", ps = {
1560
1560
  }, je = {
1561
1561
  "m-km": "m-km",
1562
1562
  "ft-mi": "ft-mi",
1563
- ...N
1564
- }, ms = {
1563
+ ...H
1564
+ }, mr = {
1565
1565
  meters: "meters",
1566
1566
  kilometer: "kilometers",
1567
1567
  mile: "miles"
1568
1568
  }, it = {
1569
- [N.kilometer]: "km",
1570
- [N.meter]: "m",
1571
- [N.centimeter]: "cm",
1572
- [N.milimeter]: "mm",
1573
- [N.mile]: "mi",
1574
- [N.yard]: "yd",
1575
- [N.feet]: "ft"
1569
+ [H.kilometer]: "km",
1570
+ [H.meter]: "m",
1571
+ [H.centimeter]: "cm",
1572
+ [H.milimeter]: "mm",
1573
+ [H.mile]: "mi",
1574
+ [H.yard]: "yd",
1575
+ [H.feet]: "ft"
1576
1576
  }, at = {
1577
1577
  [ue.squareMeter]: "m2",
1578
1578
  [ue.squareKilometer]: "km2",
1579
1579
  [ue.squareMile]: "mi2",
1580
1580
  [ue.squareFeet]: "ft2"
1581
1581
  }, Le = {
1582
- [N.meter]: ue.squareMeter,
1583
- [N.kilometer]: ue.squareKilometer,
1584
- [N.mile]: ue.squareMile,
1585
- [N.feet]: ue.squareFeet
1582
+ [H.meter]: ue.squareMeter,
1583
+ [H.kilometer]: ue.squareKilometer,
1584
+ [H.mile]: ue.squareMile,
1585
+ [H.feet]: ue.squareFeet
1586
1586
  }, ge = {
1587
- [N.kilometer]: "kilometer",
1588
- [N.meter]: "meter",
1589
- [N.centimeter]: "centimeter",
1590
- [N.milimeter]: "millimeter",
1591
- [N.mile]: "mile",
1592
- [N.yard]: "yard",
1593
- [N.feet]: "foot"
1587
+ [H.kilometer]: "kilometer",
1588
+ [H.meter]: "meter",
1589
+ [H.centimeter]: "centimeter",
1590
+ [H.milimeter]: "millimeter",
1591
+ [H.mile]: "mile",
1592
+ [H.yard]: "yard",
1593
+ [H.feet]: "foot"
1594
1594
  }, X = {
1595
1595
  "m-km": {
1596
1596
  value: "m-km",
@@ -1628,38 +1628,38 @@ const ce = "mapMeasureLayer", ps = {
1628
1628
  value: "feet",
1629
1629
  system: "imperial"
1630
1630
  }
1631
- }, lt = [X["m-km"], X.kilometer, X.meter, X["ft-mi"], X.mile, X.feet], ys = [X["m-km"], X.kilometer, X.meter, X["ft-mi"], X.mile, X.feet], hs = {
1631
+ }, lt = [X["m-km"], X.kilometer, X.meter, X["ft-mi"], X.mile, X.feet], yr = [X["m-km"], X.kilometer, X.meter, X["ft-mi"], X.mile, X.feet], hr = {
1632
1632
  distance: {
1633
1633
  value: "distance",
1634
1634
  mode: Ft
1635
1635
  },
1636
1636
  buffer: {
1637
1637
  value: "buffer",
1638
- mode: fs
1638
+ mode: fr
1639
1639
  },
1640
1640
  area: {
1641
1641
  value: "area",
1642
- mode: ds
1642
+ mode: dr
1643
1643
  }
1644
- }, gs = {
1644
+ }, gr = {
1645
1645
  distance: lt,
1646
1646
  buffer: lt,
1647
- area: ys
1648
- }, bs = [pe, Ce, ce];
1649
- function Ss({
1650
- children: n,
1647
+ area: yr
1648
+ }, br = [pe, Ce, ce];
1649
+ function Sr({
1650
+ children: r,
1651
1651
  mapId: e,
1652
1652
  defaultProps: {
1653
1653
  styles: t = $e.styles,
1654
- labels: s
1654
+ labels: n
1655
1655
  } = {
1656
1656
  styles: $e.styles,
1657
1657
  labels: $e.labels
1658
1658
  },
1659
- layerProps: r = {},
1659
+ layerProps: s = {},
1660
1660
  defaultType: o = "mask"
1661
1661
  }) {
1662
- const i = W((E) => E.data[e]?.enabled), a = W((E) => E.setEnabled), l = W((E) => E.data[e]?.values), d = W((E) => E.setValue), m = W((E) => E.data[e]?.modeInstance), g = W((E) => E.data[e]?.modeSelected), b = he((E) => E.setLayer), f = $((E) => E.addLayers), w = $((E) => E.removeLayers), S = $(St((E) => E.maps[e]?.layers.filter((O) => !bs.includes(O)))), L = $((E) => E.getDeckInstance), u = Te({});
1662
+ const i = W((E) => E.data[e]?.enabled), a = W((E) => E.setEnabled), l = W((E) => E.data[e]?.values), d = W((E) => E.setValue), m = W((E) => E.data[e]?.modeInstance), g = W((E) => E.data[e]?.modeSelected), b = he((E) => E.setLayer), f = $((E) => E.addLayers), w = $((E) => E.removeLayers), S = $(St((E) => E.maps[e]?.layers.filter((O) => !br.includes(O)))), L = $((E) => E.getDeckInstance), u = Te({});
1663
1663
  kt({
1664
1664
  mapId: e,
1665
1665
  layerId: pe
@@ -1699,7 +1699,7 @@ function Ss({
1699
1699
  return;
1700
1700
  }
1701
1701
  k(O), E !== te.updateTentativeFeature && E === te.addFeature && (g !== "edit" && (x.current = x.current + 1), O.features.forEach((c, y) => {
1702
- c.properties.label ??= `${s?.mask} ${x.current}`, c.properties.index = y, c.properties.visible = c.properties.visible ?? !0;
1702
+ c.properties.label ??= `${n?.mask} ${x.current}`, c.properties.index = y, c.properties.visible = c.properties.visible ?? !0;
1703
1703
  const T = c.id ?? crypto.randomUUID();
1704
1704
  d(e, T, {
1705
1705
  geometry: c.geometry,
@@ -1708,7 +1708,7 @@ function Ss({
1708
1708
  type: o
1709
1709
  });
1710
1710
  }), j());
1711
- }, [o, j, s?.mask, e, g, d]);
1711
+ }, [o, j, n?.mask, e, g, d]);
1712
1712
  return K(() => {
1713
1713
  const E = i, {
1714
1714
  border: O,
@@ -1717,9 +1717,9 @@ function Ss({
1717
1717
  } = t.colors.editing, {
1718
1718
  border: T,
1719
1719
  fill: P
1720
- } = t.colors.finished, C = ss({
1720
+ } = t.colors.finished, C = rr({
1721
1721
  layerProps: {
1722
- ...r.mask,
1722
+ ...s.mask,
1723
1723
  pickable: E,
1724
1724
  data: v,
1725
1725
  selectedFeatureIndexes: A,
@@ -1741,7 +1741,7 @@ function Ss({
1741
1741
  mode: E ? m : new tn()
1742
1742
  });
1743
1743
  b(pe, C);
1744
- }, [v, i, r.mask, M, m, D, A, b, t.colors.editing, t.colors.finished]), K(() => {
1744
+ }, [v, i, s.mask, M, m, D, A, b, t.colors.editing, t.colors.finished]), K(() => {
1745
1745
  const E = {
1746
1746
  ..._e,
1747
1747
  data: h,
@@ -1765,53 +1765,53 @@ function Ss({
1765
1765
  b(E, {
1766
1766
  props: {
1767
1767
  pickable: c,
1768
- extensions: [new sn()],
1768
+ extensions: [new rn()],
1769
1769
  maskId: !i && M.length ? Ce : void 0
1770
1770
  }
1771
1771
  });
1772
1772
  });
1773
- }, [i, L, e, S, M.length, b]), n;
1773
+ }, [i, L, e, S, M.length, b]), r;
1774
1774
  }
1775
- Ss.Controls = as;
1776
- function vs({
1777
- mode: n,
1775
+ Sr.Controls = ar;
1776
+ function vr({
1777
+ mode: r,
1778
1778
  ...e
1779
1779
  }) {
1780
- const t = ws({
1781
- mode: n,
1780
+ const t = wr({
1781
+ mode: r,
1782
1782
  ...e
1783
1783
  });
1784
1784
  return {
1785
1785
  type: Ct,
1786
1786
  props: {
1787
1787
  ...t,
1788
- mode: n,
1788
+ mode: r,
1789
1789
  data: []
1790
1790
  }
1791
1791
  };
1792
1792
  }
1793
- function ws({
1794
- mode: n,
1793
+ function wr({
1794
+ mode: r,
1795
1795
  layerProps: e,
1796
1796
  locale: t,
1797
- enabled: s,
1798
- unit: r,
1797
+ enabled: n,
1798
+ unit: s,
1799
1799
  onEdit: o,
1800
1800
  guideColor: i,
1801
1801
  pointColor: a,
1802
1802
  textOptions: l
1803
1803
  }) {
1804
1804
  const d = de(e, {
1805
- visible: s,
1806
- pickable: s,
1805
+ visible: n,
1806
+ pickable: n,
1807
1807
  modeConfig: {
1808
1808
  // We force distance due to conversion is addressed at feature getText level
1809
1809
  formatTooltip: (b) => b,
1810
1810
  turfOptions: {
1811
- units: ms.meters
1811
+ units: mr.meters
1812
1812
  }
1813
1813
  },
1814
- ...s && {
1814
+ ...n && {
1815
1815
  onEdit: o
1816
1816
  },
1817
1817
  _subLayerProps: {
@@ -1823,18 +1823,18 @@ function ws({
1823
1823
  // needed for the outlineWidth and outlineColor attributes to be effective
1824
1824
  smoothing: 0.2
1825
1825
  },
1826
- getText: (b) => n?.getTooltipText?.({
1826
+ getText: (b) => r?.getTooltipText?.({
1827
1827
  meters: b.text,
1828
1828
  locale: t,
1829
- unit: r,
1829
+ unit: s,
1830
1830
  options: l
1831
1831
  }),
1832
1832
  updateTriggers: {
1833
- getText: [r, t, l]
1833
+ getText: [s, t, l]
1834
1834
  }
1835
1835
  }
1836
1836
  }
1837
- }), m = de(ps, {
1837
+ }), m = de(pr, {
1838
1838
  _subLayerProps: {
1839
1839
  guides: {
1840
1840
  getLineColor: i,
@@ -1846,13 +1846,13 @@ function ws({
1846
1846
  });
1847
1847
  return de(m, d);
1848
1848
  }
1849
- const Ms = (n) => ze()((e) => ({
1850
- measurements: n.reduce((s, r) => {
1849
+ const Mr = (r) => ze()((e) => ({
1850
+ measurements: r.reduce((n, s) => {
1851
1851
  const {
1852
1852
  mapId: o,
1853
1853
  modeSelected: i,
1854
- modes: a = hs,
1855
- units: l = gs,
1854
+ modes: a = hr,
1855
+ units: l = gr,
1856
1856
  distance: d = 0,
1857
1857
  finished: m = !1,
1858
1858
  locale: g = "en",
@@ -1860,8 +1860,8 @@ const Ms = (n) => ze()((e) => ({
1860
1860
  clearLayerOnStart: f = !1,
1861
1861
  unit: w = je["m-km"],
1862
1862
  enabled: S = !1
1863
- } = r;
1864
- return s[o] = {
1863
+ } = s;
1864
+ return n[o] = {
1865
1865
  modes: a,
1866
1866
  units: l,
1867
1867
  modeSelected: i,
@@ -1872,128 +1872,128 @@ const Ms = (n) => ze()((e) => ({
1872
1872
  unit: w,
1873
1873
  clearLayerOnStart: f,
1874
1874
  enabled: S
1875
- }, s;
1875
+ }, n;
1876
1876
  }, {}),
1877
1877
  mode: Ft,
1878
- setModeInstance: (s, r) => {
1878
+ setModeInstance: (n, s) => {
1879
1879
  e((o) => ({
1880
1880
  measurements: {
1881
1881
  ...o.measurements,
1882
- [s]: {
1883
- ...o.measurements[s],
1884
- modeInstance: r
1882
+ [n]: {
1883
+ ...o.measurements[n],
1884
+ modeInstance: s
1885
1885
  }
1886
1886
  }
1887
1887
  }));
1888
1888
  },
1889
- setModeSelected: (s, r) => {
1889
+ setModeSelected: (n, s) => {
1890
1890
  e((o) => ({
1891
1891
  measurements: {
1892
1892
  ...o.measurements,
1893
- [s]: {
1894
- ...o.measurements[s],
1895
- modeSelected: r
1893
+ [n]: {
1894
+ ...o.measurements[n],
1895
+ modeSelected: s
1896
1896
  }
1897
1897
  }
1898
1898
  }));
1899
1899
  },
1900
- setFinished: (s, r) => {
1900
+ setFinished: (n, s) => {
1901
1901
  e((o) => ({
1902
1902
  measurements: {
1903
1903
  ...o.measurements,
1904
- [s]: {
1905
- ...o.measurements[s],
1906
- finished: r
1904
+ [n]: {
1905
+ ...o.measurements[n],
1906
+ finished: s
1907
1907
  }
1908
1908
  }
1909
1909
  }));
1910
1910
  },
1911
- setDistance: (s, r) => {
1911
+ setDistance: (n, s) => {
1912
1912
  e((o) => ({
1913
1913
  measurements: {
1914
1914
  ...o.measurements,
1915
- [s]: {
1916
- ...o.measurements[s],
1917
- distance: r
1915
+ [n]: {
1916
+ ...o.measurements[n],
1917
+ distance: s
1918
1918
  }
1919
1919
  }
1920
1920
  }));
1921
1921
  },
1922
- setUnit: (s, r) => {
1922
+ setUnit: (n, s) => {
1923
1923
  e((o) => ({
1924
1924
  measurements: {
1925
1925
  ...o.measurements,
1926
- [s]: {
1927
- ...o.measurements[s],
1928
- unit: r
1926
+ [n]: {
1927
+ ...o.measurements[n],
1928
+ unit: s
1929
1929
  }
1930
1930
  }
1931
1931
  }));
1932
1932
  },
1933
- setLocale: (s, r) => {
1933
+ setLocale: (n, s) => {
1934
1934
  e((o) => ({
1935
1935
  measurements: {
1936
1936
  ...o.measurements,
1937
- [s]: {
1938
- ...o.measurements[s],
1939
- locale: r
1937
+ [n]: {
1938
+ ...o.measurements[n],
1939
+ locale: s
1940
1940
  }
1941
1941
  }
1942
1942
  }));
1943
1943
  },
1944
- setPositions: (s, r) => {
1944
+ setPositions: (n, s) => {
1945
1945
  e((o) => ({
1946
1946
  measurements: {
1947
1947
  ...o.measurements,
1948
- [s]: {
1949
- ...o.measurements[s],
1950
- positions: [...r]
1948
+ [n]: {
1949
+ ...o.measurements[n],
1950
+ positions: [...s]
1951
1951
  }
1952
1952
  }
1953
1953
  }));
1954
1954
  },
1955
- setEnabled: (s, r) => {
1955
+ setEnabled: (n, s) => {
1956
1956
  e((o) => ({
1957
1957
  measurements: {
1958
1958
  ...o.measurements,
1959
- [s]: {
1960
- ...o.measurements[s],
1961
- enabled: r
1959
+ [n]: {
1960
+ ...o.measurements[n],
1961
+ enabled: s
1962
1962
  }
1963
1963
  }
1964
1964
  }));
1965
1965
  }
1966
- })), Dt = He({});
1967
- function _s(n) {
1966
+ })), Dt = Ne({});
1967
+ function _r(r) {
1968
1968
  const e = I(5), {
1969
1969
  children: t,
1970
- values: s
1971
- } = n;
1972
- let r;
1973
- e[0] !== s ? (r = Ms(s), e[0] = s, e[1] = r) : r = e[1];
1974
- const [o] = ae(r);
1970
+ values: n
1971
+ } = r;
1972
+ let s;
1973
+ e[0] !== n ? (s = Mr(n), e[0] = n, e[1] = s) : s = e[1];
1974
+ const [o] = ae(s);
1975
1975
  let i;
1976
1976
  return e[2] !== t || e[3] !== o ? (i = /* @__PURE__ */ Z(Dt.Provider, { value: o, children: t }), e[2] = t, e[3] = o, e[4] = i) : i = e[4], i;
1977
1977
  }
1978
- function G(n) {
1979
- const e = Ne(Dt);
1978
+ function G(r) {
1979
+ const e = He(Dt);
1980
1980
  if (!Object.keys(e).length)
1981
1981
  throw new Error("Missing MeasurementToolsProvider in the tree");
1982
- return Ge(e, n);
1982
+ return Ge(e, r);
1983
1983
  }
1984
- function Rt(n) {
1984
+ function Rt(r) {
1985
1985
  const e = I(74), {
1986
1986
  mapId: t
1987
- } = n;
1988
- let s;
1989
- e[0] !== t ? (s = (R) => R.measurements[t].modes, e[0] = t, e[1] = s) : s = e[1];
1990
- const r = G(s);
1987
+ } = r;
1988
+ let n;
1989
+ e[0] !== t ? (n = (R) => R.measurements[t].modes, e[0] = t, e[1] = n) : n = e[1];
1990
+ const s = G(n);
1991
1991
  let o;
1992
1992
  e[2] !== t ? (o = (R) => R.measurements[t].units, e[2] = t, e[3] = o) : o = e[3];
1993
1993
  const i = G(o);
1994
1994
  let a;
1995
1995
  e[4] !== t ? (a = (R) => R.measurements[t].distance, e[4] = t, e[5] = a) : a = e[5];
1996
- const l = G(a), d = G(As);
1996
+ const l = G(a), d = G(Ar);
1997
1997
  let m;
1998
1998
  e[6] !== d || e[7] !== t ? (m = (R) => d(t, R), e[6] = d, e[7] = t, e[8] = m) : m = e[8];
1999
1999
  const g = m;
@@ -2002,13 +2002,13 @@ function Rt(n) {
2002
2002
  const f = G(b);
2003
2003
  let w;
2004
2004
  e[11] !== t ? (w = (R) => R.measurements[t].enabled, e[11] = t, e[12] = w) : w = e[12];
2005
- const S = G(w), L = G(Os);
2005
+ const S = G(w), L = G(Or);
2006
2006
  let u;
2007
2007
  e[13] !== L || e[14] !== t ? (u = (R) => L(t, R), e[13] = L, e[14] = t, e[15] = u) : u = e[15];
2008
2008
  const p = u;
2009
2009
  let h;
2010
2010
  e[16] !== t ? (h = (R) => R.measurements[t].modeSelected, e[16] = t, e[17] = h) : h = e[17];
2011
- const M = G(h), v = G(Ps);
2011
+ const M = G(h), v = G(Pr);
2012
2012
  let k;
2013
2013
  e[18] !== v || e[19] !== t || e[20] !== p ? (k = (R) => {
2014
2014
  p(!!R), v(t, R);
@@ -2016,33 +2016,33 @@ function Rt(n) {
2016
2016
  const A = k;
2017
2017
  let V;
2018
2018
  e[22] !== t ? (V = (R) => R.measurements[t].finished, e[22] = t, e[23] = V) : V = e[23];
2019
- const F = G(V), x = G(Cs);
2019
+ const F = G(V), x = G(Cr);
2020
2020
  let j;
2021
2021
  e[24] !== x || e[25] !== t ? (j = (R) => x(t, R), e[24] = x, e[25] = t, e[26] = j) : j = e[26];
2022
2022
  const D = j;
2023
2023
  let E;
2024
2024
  e[27] !== t ? (E = (R) => R.measurements[t].locale, e[27] = t, e[28] = E) : E = e[28];
2025
- const O = G(E), c = G(ks);
2025
+ const O = G(E), c = G(kr);
2026
2026
  let y;
2027
2027
  e[29] !== c || e[30] !== t ? (y = (R) => c(t, R), e[29] = c, e[30] = t, e[31] = y) : y = e[31];
2028
2028
  const T = y;
2029
2029
  let P;
2030
2030
  e[32] !== t ? (P = (R) => R.measurements[t].modeInstance, e[32] = t, e[33] = P) : P = e[33];
2031
- const C = G(P), _ = G(Ls);
2031
+ const C = G(P), _ = G(Lr);
2032
2032
  let q;
2033
2033
  e[34] !== _ || e[35] !== t ? (q = (R) => _(t, R), e[34] = _, e[35] = t, e[36] = q) : q = e[36];
2034
2034
  const B = q;
2035
- let H;
2036
- e[37] !== t ? (H = (R) => R.measurements[t].positions, e[37] = t, e[38] = H) : H = e[38];
2037
- const U = G(H), z = G(Ts);
2035
+ let N;
2036
+ e[37] !== t ? (N = (R) => R.measurements[t].positions, e[37] = t, e[38] = N) : N = e[38];
2037
+ const U = G(N), z = G(Tr);
2038
2038
  let Y;
2039
2039
  e[39] !== z || e[40] !== t ? (Y = (R) => z(t, R), e[39] = z, e[40] = t, e[41] = Y) : Y = e[41];
2040
2040
  const ne = Y;
2041
2041
  let Q;
2042
2042
  e[42] !== t ? (Q = (R) => R.measurements[t].unit, e[42] = t, e[43] = Q) : Q = e[43];
2043
- const J = G(Q), se = G(Es);
2043
+ const J = G(Q), re = G(Er);
2044
2044
  let oe;
2045
- e[44] !== se || e[45] !== t ? (oe = (R) => se(t, R), e[44] = se, e[45] = t, e[46] = oe) : oe = e[46];
2045
+ e[44] !== re || e[45] !== t ? (oe = (R) => re(t, R), e[44] = re, e[45] = t, e[46] = oe) : oe = e[46];
2046
2046
  const Oe = oe;
2047
2047
  let Se;
2048
2048
  e[47] !== C || e[48] !== ne ? (Se = () => {
@@ -2055,8 +2055,8 @@ function Rt(n) {
2055
2055
  }, e[50] = p, e[51] = ve) : ve = e[51];
2056
2056
  const Fe = ve;
2057
2057
  let we;
2058
- return e[52] !== Ae || e[53] !== f || e[54] !== l || e[55] !== S || e[56] !== F || e[57] !== O || e[58] !== C || e[59] !== M || e[60] !== r || e[61] !== U || e[62] !== g || e[63] !== p || e[64] !== D || e[65] !== T || e[66] !== B || e[67] !== A || e[68] !== ne || e[69] !== Oe || e[70] !== Fe || e[71] !== J || e[72] !== i ? (we = {
2059
- modes: r,
2058
+ return e[52] !== Ae || e[53] !== f || e[54] !== l || e[55] !== S || e[56] !== F || e[57] !== O || e[58] !== C || e[59] !== M || e[60] !== s || e[61] !== U || e[62] !== g || e[63] !== p || e[64] !== D || e[65] !== T || e[66] !== B || e[67] !== A || e[68] !== ne || e[69] !== Oe || e[70] !== Fe || e[71] !== J || e[72] !== i ? (we = {
2059
+ modes: s,
2060
2060
  units: i,
2061
2061
  distance: l,
2062
2062
  clearLayerOnStart: f,
@@ -2077,38 +2077,38 @@ function Rt(n) {
2077
2077
  toggleLayer: Fe,
2078
2078
  clearLayer: Ae,
2079
2079
  setModeInstance: B
2080
- }, e[52] = Ae, e[53] = f, e[54] = l, e[55] = S, e[56] = F, e[57] = O, e[58] = C, e[59] = M, e[60] = r, e[61] = U, e[62] = g, e[63] = p, e[64] = D, e[65] = T, e[66] = B, e[67] = A, e[68] = ne, e[69] = Oe, e[70] = Fe, e[71] = J, e[72] = i, e[73] = we) : we = e[73], we;
2080
+ }, e[52] = Ae, e[53] = f, e[54] = l, e[55] = S, e[56] = F, e[57] = O, e[58] = C, e[59] = M, e[60] = s, e[61] = U, e[62] = g, e[63] = p, e[64] = D, e[65] = T, e[66] = B, e[67] = A, e[68] = ne, e[69] = Oe, e[70] = Fe, e[71] = J, e[72] = i, e[73] = we) : we = e[73], we;
2081
2081
  }
2082
- function Es(n) {
2083
- return n.setUnit;
2082
+ function Er(r) {
2083
+ return r.setUnit;
2084
2084
  }
2085
- function Ts(n) {
2086
- return n.setPositions;
2085
+ function Tr(r) {
2086
+ return r.setPositions;
2087
2087
  }
2088
- function Ls(n) {
2089
- return n.setModeInstance;
2088
+ function Lr(r) {
2089
+ return r.setModeInstance;
2090
2090
  }
2091
- function ks(n) {
2092
- return n.setLocale;
2091
+ function kr(r) {
2092
+ return r.setLocale;
2093
2093
  }
2094
- function Cs(n) {
2095
- return n.setFinished;
2094
+ function Cr(r) {
2095
+ return r.setFinished;
2096
2096
  }
2097
- function Ps(n) {
2098
- return n.setModeSelected;
2097
+ function Pr(r) {
2098
+ return r.setModeSelected;
2099
2099
  }
2100
- function Os(n) {
2101
- return n.setEnabled;
2100
+ function Or(r) {
2101
+ return r.setEnabled;
2102
2102
  }
2103
- function As(n) {
2104
- return n.setDistance;
2103
+ function Ar(r) {
2104
+ return r.setDistance;
2105
2105
  }
2106
- function Fs(n) {
2106
+ function Fr(r) {
2107
2107
  const e = I(42), {
2108
2108
  mapId: t,
2109
- textOptions: s,
2110
- children: r
2111
- } = n;
2109
+ textOptions: n,
2110
+ children: s
2111
+ } = r;
2112
2112
  let o;
2113
2113
  e[0] !== t ? (o = {
2114
2114
  mapId: t
@@ -2154,7 +2154,7 @@ function Fs(n) {
2154
2154
  }, e[13] = x, e[14] = F, e[15] = m, e[16] = S, e[17] = E) : E = e[17];
2155
2155
  const O = E, c = !!m;
2156
2156
  let y;
2157
- return e[18] !== r || e[19] !== F || e[20] !== l || e[21] !== f || e[22] !== S || e[23] !== u || e[24] !== t || e[25] !== h || e[26] !== g || e[27] !== i || e[28] !== v || e[29] !== d || e[30] !== w || e[31] !== L || e[32] !== p || e[33] !== b || e[34] !== k || e[35] !== V || e[36] !== c || e[37] !== s || e[38] !== O || e[39] !== A || e[40] !== a ? (y = r({
2157
+ return e[18] !== s || e[19] !== F || e[20] !== l || e[21] !== f || e[22] !== S || e[23] !== u || e[24] !== t || e[25] !== h || e[26] !== g || e[27] !== i || e[28] !== v || e[29] !== d || e[30] !== w || e[31] !== L || e[32] !== p || e[33] !== b || e[34] !== k || e[35] !== V || e[36] !== c || e[37] !== n || e[38] !== O || e[39] !== A || e[40] !== a ? (y = s({
2158
2158
  mapId: t,
2159
2159
  distance: l,
2160
2160
  enabled: f,
@@ -2170,7 +2170,7 @@ function Fs(n) {
2170
2170
  meters: l,
2171
2171
  unit: A,
2172
2172
  locale: u,
2173
- options: s
2173
+ options: n
2174
2174
  }),
2175
2175
  modeInstance: h,
2176
2176
  setModeSelected: b,
@@ -2182,28 +2182,28 @@ function Fs(n) {
2182
2182
  setEnabled: w,
2183
2183
  toggleLayer: O,
2184
2184
  clearLayer: F
2185
- }), e[18] = r, e[19] = F, e[20] = l, e[21] = f, e[22] = S, e[23] = u, e[24] = t, e[25] = h, e[26] = g, e[27] = i, e[28] = v, e[29] = d, e[30] = w, e[31] = L, e[32] = p, e[33] = b, e[34] = k, e[35] = V, e[36] = c, e[37] = s, e[38] = O, e[39] = A, e[40] = a, e[41] = y) : y = e[41], y;
2185
+ }), e[18] = s, e[19] = F, e[20] = l, e[21] = f, e[22] = S, e[23] = u, e[24] = t, e[25] = h, e[26] = g, e[27] = i, e[28] = v, e[29] = d, e[30] = w, e[31] = L, e[32] = p, e[33] = b, e[34] = k, e[35] = V, e[36] = c, e[37] = n, e[38] = O, e[39] = A, e[40] = a, e[41] = y) : y = e[41], y;
2186
2186
  }
2187
- const Ds = [ce];
2188
- function Rs(n) {
2187
+ const Dr = [ce];
2188
+ function Rr(r) {
2189
2189
  const e = I(50), {
2190
2190
  children: t,
2191
- mapId: s,
2192
- defaultProps: r,
2191
+ mapId: n,
2192
+ defaultProps: s,
2193
2193
  layerProps: o,
2194
2194
  textOptions: i
2195
- } = n;
2195
+ } = r;
2196
2196
  let a;
2197
- e[0] !== r ? (a = r === void 0 ? {
2197
+ e[0] !== s ? (a = s === void 0 ? {
2198
2198
  styles: ot.styles
2199
- } : r, e[0] = r, e[1] = a) : a = e[1];
2199
+ } : s, e[0] = s, e[1] = a) : a = e[1];
2200
2200
  const {
2201
2201
  styles: l
2202
2202
  } = a, d = l === void 0 ? ot.styles : l;
2203
2203
  let m;
2204
- e[2] !== s ? (m = {
2205
- mapId: s
2206
- }, e[2] = s, e[3] = m) : m = e[3];
2204
+ e[2] !== n ? (m = {
2205
+ mapId: n
2206
+ }, e[2] = n, e[3] = m) : m = e[3];
2207
2207
  const {
2208
2208
  setDistance: g,
2209
2209
  clearLayerOnStart: b,
@@ -2214,69 +2214,69 @@ function Rs(n) {
2214
2214
  setPositions: u,
2215
2215
  unit: p,
2216
2216
  modeInstance: h
2217
- } = Rt(m), M = he(Bs), v = $(Vs), k = $(qs), A = $(Us);
2217
+ } = Rt(m), M = he(Br), v = $(Vr), k = $(qr), A = $(Ur);
2218
2218
  let V;
2219
- e[4] !== s ? (V = (B) => B.maps[s]?.layers.filter($s), e[4] = s, e[5] = V) : V = e[5];
2220
- const F = $(St(V)), x = $(xs);
2219
+ e[4] !== n ? (V = (B) => B.maps[n]?.layers.filter($r), e[4] = n, e[5] = V) : V = e[5];
2220
+ const F = $(St(V)), x = $(xr);
2221
2221
  let j;
2222
2222
  e[6] === Symbol.for("react.memo_cache_sentinel") ? (j = {}, e[6] = j) : j = e[6];
2223
2223
  const D = Te(j);
2224
2224
  let E;
2225
- e[7] !== s ? (E = {
2226
- mapId: s,
2225
+ e[7] !== n ? (E = {
2226
+ mapId: n,
2227
2227
  layerId: ce
2228
- }, e[7] = s, e[8] = E) : E = e[8], kt(E);
2228
+ }, e[7] = n, e[8] = E) : E = e[8], kt(E);
2229
2229
  let O;
2230
- e[9] !== k || e[10] !== f || e[11] !== x || e[12] !== s || e[13] !== A || e[14] !== v ? (O = () => {
2231
- const B = x(s)?.props.controller;
2232
- return f && (k(s, [ce]), v(s, {
2230
+ e[9] !== k || e[10] !== f || e[11] !== x || e[12] !== n || e[13] !== A || e[14] !== v ? (O = () => {
2231
+ const B = x(n)?.props.controller;
2232
+ return f && (k(n, [ce]), v(n, {
2233
2233
  doubleClickZoom: !1
2234
2234
  })), () => {
2235
- A(s, [ce]), v(s, B);
2235
+ A(n, [ce]), v(n, B);
2236
2236
  };
2237
- }, e[9] = k, e[10] = f, e[11] = x, e[12] = s, e[13] = A, e[14] = v, e[15] = O) : O = e[15];
2237
+ }, e[9] = k, e[10] = f, e[11] = x, e[12] = n, e[13] = A, e[14] = v, e[15] = O) : O = e[15];
2238
2238
  let c;
2239
- e[16] !== k || e[17] !== b || e[18] !== f || e[19] !== x || e[20] !== s || e[21] !== A || e[22] !== v ? (c = [k, b, s, A, f, x, v], e[16] = k, e[17] = b, e[18] = f, e[19] = x, e[20] = s, e[21] = A, e[22] = v, e[23] = c) : c = e[23], K(O, c);
2239
+ e[16] !== k || e[17] !== b || e[18] !== f || e[19] !== x || e[20] !== n || e[21] !== A || e[22] !== v ? (c = [k, b, n, A, f, x, v], e[16] = k, e[17] = b, e[18] = f, e[19] = x, e[20] = n, e[21] = A, e[22] = v, e[23] = c) : c = e[23], K(O, c);
2240
2240
  let y, T;
2241
- e[24] !== f || e[25] !== x || e[26] !== s || e[27] !== F || e[28] !== M ? (y = () => {
2241
+ e[24] !== f || e[25] !== x || e[26] !== n || e[27] !== F || e[28] !== M ? (y = () => {
2242
2242
  F?.forEach((B) => {
2243
- const H = x(s)?.props.layers.find((z) => z.props.id === B);
2244
- if (!H)
2243
+ const N = x(n)?.props.layers.find((z) => z.props.id === B);
2244
+ if (!N)
2245
2245
  return;
2246
- f && (D.current[B] = H?.props.pickable);
2247
- const U = !f && (D.current[B] ?? H?.props.pickable);
2246
+ f && (D.current[B] = N?.props.pickable);
2247
+ const U = !f && (D.current[B] ?? N?.props.pickable);
2248
2248
  M(B, {
2249
2249
  props: {
2250
2250
  pickable: U
2251
2251
  }
2252
2252
  });
2253
2253
  });
2254
- }, T = [f, x, s, F, M], e[24] = f, e[25] = x, e[26] = s, e[27] = F, e[28] = M, e[29] = y, e[30] = T) : (y = e[29], T = e[30]), K(y, T);
2254
+ }, T = [f, x, n, F, M], e[24] = f, e[25] = x, e[26] = n, e[27] = F, e[28] = M, e[29] = y, e[30] = T) : (y = e[29], T = e[30]), K(y, T);
2255
2255
  let P;
2256
2256
  e[31] !== h || e[32] !== g || e[33] !== S || e[34] !== u ? (P = (B) => {
2257
2257
  const {
2258
- editType: H,
2258
+ editType: N,
2259
2259
  editContext: U
2260
2260
  } = B;
2261
- if (H === te.cancel) {
2261
+ if (N === te.cancel) {
2262
2262
  h.resetClickSequence();
2263
2263
  return;
2264
2264
  }
2265
- H === te.addPosition && g(U.distance), S(!!U.finished);
2265
+ N === te.addPosition && g(U.distance), S(!!U.finished);
2266
2266
  const z = U.positions;
2267
2267
  z?.length && u(z);
2268
2268
  }, e[31] = h, e[32] = g, e[33] = S, e[34] = u, e[35] = P) : P = e[35];
2269
2269
  const C = P;
2270
2270
  let _, q;
2271
2271
  return e[36] !== f || e[37] !== w || e[38] !== o || e[39] !== L || e[40] !== h || e[41] !== C || e[42] !== M || e[43] !== d.colors.editing || e[44] !== d.colors.finished || e[45] !== d.colors.point || e[46] !== i || e[47] !== p ? (_ = () => {
2272
- const B = w ? d.colors.finished : d.colors.editing, H = w ? d.colors.finished : d.colors.point, U = vs({
2272
+ const B = w ? d.colors.finished : d.colors.editing, N = w ? d.colors.finished : d.colors.point, U = vr({
2273
2273
  layerProps: {
2274
2274
  ...o,
2275
2275
  pickable: o?.pickable ?? !w
2276
2276
  },
2277
2277
  enabled: f,
2278
2278
  guideColor: B,
2279
- pointColor: H,
2279
+ pointColor: N,
2280
2280
  locale: L,
2281
2281
  onEdit: C,
2282
2282
  unit: p,
@@ -2286,63 +2286,63 @@ function Rs(n) {
2286
2286
  M(ce, U);
2287
2287
  }, q = [w, h, o, L, C, M, d.colors.editing, d.colors.finished, d.colors.point, i, p, f], e[36] = f, e[37] = w, e[38] = o, e[39] = L, e[40] = h, e[41] = C, e[42] = M, e[43] = d.colors.editing, e[44] = d.colors.finished, e[45] = d.colors.point, e[46] = i, e[47] = p, e[48] = _, e[49] = q) : (_ = e[48], q = e[49]), K(_, q), t;
2288
2288
  }
2289
- function xs(n) {
2290
- return n.getDeckInstance;
2289
+ function xr(r) {
2290
+ return r.getDeckInstance;
2291
2291
  }
2292
- function $s(n) {
2293
- return !Ds.includes(n);
2292
+ function $r(r) {
2293
+ return !Dr.includes(r);
2294
2294
  }
2295
- function Us(n) {
2296
- return n.removeLayers;
2295
+ function Ur(r) {
2296
+ return r.removeLayers;
2297
2297
  }
2298
- function qs(n) {
2299
- return n.addLayers;
2298
+ function qr(r) {
2299
+ return r.addLayers;
2300
2300
  }
2301
- function Vs(n) {
2302
- return n.setController;
2301
+ function Vr(r) {
2302
+ return r.setController;
2303
2303
  }
2304
- function Bs(n) {
2305
- return n.setLayer;
2304
+ function Br(r) {
2305
+ return r.setLayer;
2306
2306
  }
2307
- Rs.Controls = Fs;
2308
- function js(n) {
2307
+ Rr.Controls = Fr;
2308
+ function jr(r) {
2309
2309
  const e = I(7), {
2310
2310
  mapId: t
2311
- } = n;
2312
- let s;
2313
- e[0] !== t ? (s = (l) => l.maps[t], e[0] = t, e[1] = s) : s = e[1];
2311
+ } = r;
2312
+ let n;
2313
+ e[0] !== t ? (n = (l) => l.maps[t], e[0] = t, e[1] = n) : n = e[1];
2314
2314
  const {
2315
- layers: r
2316
- } = $(s), o = he(Hs);
2315
+ layers: s
2316
+ } = $(n), o = he(Nr);
2317
2317
  let i;
2318
- if (e[2] !== o || e[3] !== r) {
2318
+ if (e[2] !== o || e[3] !== s) {
2319
2319
  let l;
2320
- e[5] !== o ? (l = (d) => o[d], e[5] = o, e[6] = l) : l = e[6], i = r.map(l).filter(Is), e[2] = o, e[3] = r, e[4] = i;
2320
+ e[5] !== o ? (l = (d) => o[d], e[5] = o, e[6] = l) : l = e[6], i = s.map(l).filter(Ir), e[2] = o, e[3] = s, e[4] = i;
2321
2321
  } else
2322
2322
  i = e[4];
2323
2323
  return i;
2324
2324
  }
2325
- function Is(n) {
2326
- return !!n;
2325
+ function Ir(r) {
2326
+ return !!r;
2327
2327
  }
2328
- function Hs(n) {
2329
- return n.layers;
2328
+ function Nr(r) {
2329
+ return r.layers;
2330
2330
  }
2331
2331
  const ct = [Ce, pe, ce];
2332
- function xt(n) {
2333
- const e = n.filter((s) => !ct.includes(s.props.id)).sort((s, r) => (s.order ?? 1 / 0) - (r.order ?? 1 / 0)), t = ct.map((s) => n.find((r) => r.props.id === s)).filter((s) => !!s);
2332
+ function xt(r) {
2333
+ const e = r.filter((n) => !ct.includes(n.props.id)).sort((n, s) => (n.order ?? 1 / 0) - (s.order ?? 1 / 0)), t = ct.map((n) => r.find((s) => s.props.id === n)).filter((n) => !!n);
2334
2334
  return [...e, ...t];
2335
2335
  }
2336
- const Ns = 200;
2337
- function uo(n) {
2336
+ const Hr = 200;
2337
+ function fo(r) {
2338
2338
  const e = I(51);
2339
- let t, s, r, o;
2340
- e[0] !== n ? ({
2339
+ let t, n, s, o;
2340
+ e[0] !== r ? ({
2341
2341
  id: t,
2342
- onLoad: s,
2343
- onViewStateChange: r,
2342
+ onLoad: n,
2343
+ onViewStateChange: s,
2344
2344
  ...o
2345
- } = n, e[0] = n, e[1] = t, e[2] = s, e[3] = r, e[4] = o) : (t = e[1], s = e[2], r = e[3], o = e[4]);
2345
+ } = r, e[0] = r, e[1] = t, e[2] = n, e[3] = s, e[4] = o) : (t = e[1], n = e[2], s = e[3], o = e[4]);
2346
2346
  let i;
2347
2347
  e[5] !== t ? (i = (_) => _.maps[t].basemap, e[5] = t, e[6] = i) : i = e[6];
2348
2348
  const a = $(i);
@@ -2357,35 +2357,35 @@ function uo(n) {
2357
2357
  const w = $(f);
2358
2358
  let S;
2359
2359
  e[13] !== t ? (S = (_) => _.maps[t].controller, e[13] = t, e[14] = S) : S = e[14];
2360
- const L = $(S), u = $(Ys), p = $(Ks), h = $(Ws), M = $(Zs), v = $(Gs);
2360
+ const L = $(S), u = $(Yr), p = $(Kr), h = $(Wr), M = $(Zr), v = $(Gr);
2361
2361
  let k;
2362
2362
  e[15] !== t ? (k = {
2363
2363
  mapId: t
2364
2364
  }, e[15] = t, e[16] = k) : k = e[16];
2365
- const A = js(k);
2365
+ const A = jr(k);
2366
2366
  let V;
2367
2367
  e[17] !== A ? (V = xt(A), e[17] = A, e[18] = V) : V = e[18];
2368
2368
  const F = V;
2369
2369
  let x;
2370
- e[19] !== t || e[20] !== r || e[21] !== p || e[22] !== v ? (x = (_) => {
2370
+ e[19] !== t || e[20] !== s || e[21] !== p || e[22] !== v ? (x = (_) => {
2371
2371
  const q = p;
2372
2372
  if (b.current && clearInterval(b.current), b.current = setTimeout(() => {
2373
2373
  v(t);
2374
- }, Ns), r) {
2375
- r(_, q);
2374
+ }, Hr), s) {
2375
+ s(_, q);
2376
2376
  return;
2377
2377
  }
2378
2378
  q(t, _.viewState);
2379
- }, e[19] = t, e[20] = r, e[21] = p, e[22] = v, e[23] = x) : x = e[23];
2379
+ }, e[19] = t, e[20] = s, e[21] = p, e[22] = v, e[23] = x) : x = e[23];
2380
2380
  const j = x;
2381
2381
  let D;
2382
- e[24] !== t || e[25] !== s || e[26] !== h || e[27] !== v ? (D = (_) => {
2383
- h(t, _), s?.(_), v(t);
2384
- }, e[24] = t, e[25] = s, e[26] = h, e[27] = v, e[28] = D) : D = e[28];
2382
+ e[24] !== t || e[25] !== n || e[26] !== h || e[27] !== v ? (D = (_) => {
2383
+ h(t, _), n?.(_), v(t);
2384
+ }, e[24] = t, e[25] = n, e[26] = h, e[27] = v, e[28] = D) : D = e[28];
2385
2385
  const E = D;
2386
2386
  let O;
2387
2387
  e[29] !== u || e[30] !== t || e[31] !== o || e[32] !== M ? (O = (_) => {
2388
- const B = !!u(t)?.props.layers?.every(zs);
2388
+ const B = !!u(t)?.props.layers?.every(zr);
2389
2389
  M(t, B), o.onAfterRender?.(_);
2390
2390
  }, e[29] = u, e[30] = t, e[31] = o, e[32] = M, e[33] = O) : O = e[33];
2391
2391
  const c = O, y = o.onDragEnd;
@@ -2398,28 +2398,28 @@ function uo(n) {
2398
2398
  let C;
2399
2399
  return e[38] !== a || e[39] !== F || e[40] !== L || e[41] !== c || e[42] !== P || e[43] !== E || e[44] !== j || e[45] !== t || e[46] !== d || e[47] !== g || e[48] !== o || e[49] !== w ? (C = /* @__PURE__ */ Z(Un, { ...o, controller: L, id: t, layers: F, instanceRef: d, overlayRef: g, basemap: a, initialViewState: w, onLoad: E, onViewStateChange: j, onAfterRender: c, onDragEnd: P }), e[38] = a, e[39] = F, e[40] = L, e[41] = c, e[42] = P, e[43] = E, e[44] = j, e[45] = t, e[46] = d, e[47] = g, e[48] = o, e[49] = w, e[50] = C) : C = e[50], C;
2400
2400
  }
2401
- function zs(n) {
2402
- return n?.isLoaded;
2401
+ function zr(r) {
2402
+ return r?.isLoaded;
2403
2403
  }
2404
- function Gs(n) {
2405
- return n.updateViewPort;
2404
+ function Gr(r) {
2405
+ return r.updateViewPort;
2406
2406
  }
2407
- function Zs(n) {
2408
- return n.setLayersLoad;
2407
+ function Zr(r) {
2408
+ return r.setLayersLoad;
2409
2409
  }
2410
- function Ws(n) {
2411
- return n.setLoad;
2410
+ function Wr(r) {
2411
+ return r.setLoad;
2412
2412
  }
2413
- function Ks(n) {
2414
- return n.setViewState;
2413
+ function Kr(r) {
2414
+ return r.setViewState;
2415
2415
  }
2416
- function Ys(n) {
2417
- return n.getDeckInstance;
2416
+ function Yr(r) {
2417
+ return r.getDeckInstance;
2418
2418
  }
2419
2419
  var Ee = { exports: {} }, ut;
2420
- function Js() {
2421
- return ut || (ut = 1, (function(n, e) {
2422
- var t = typeof globalThis < "u" && globalThis || typeof self < "u" && self || typeof Me < "u" && Me, s = (function() {
2420
+ function Jr() {
2421
+ return ut || (ut = 1, (function(r, e) {
2422
+ var t = typeof globalThis < "u" && globalThis || typeof self < "u" && self || typeof Me < "u" && Me, n = (function() {
2423
2423
  function o() {
2424
2424
  this.fetch = !1, this.DOMException = t.DOMException;
2425
2425
  }
@@ -2735,11 +2735,11 @@ function Js() {
2735
2735
  }
2736
2736
  }
2737
2737
  if (_.open(C.method, B(C.url), !0), C.credentials === "include" ? _.withCredentials = !0 : C.credentials === "omit" && (_.withCredentials = !1), "responseType" in _ && (l.blob ? _.responseType = "blob" : l.arrayBuffer && (_.responseType = "arraybuffer")), y && typeof y.headers == "object" && !(y.headers instanceof S || a.Headers && y.headers instanceof a.Headers)) {
2738
- var H = [];
2738
+ var N = [];
2739
2739
  Object.getOwnPropertyNames(y.headers).forEach(function(U) {
2740
- H.push(b(U)), _.setRequestHeader(U, f(y.headers[U]));
2740
+ N.push(b(U)), _.setRequestHeader(U, f(y.headers[U]));
2741
2741
  }), C.headers.forEach(function(U, z) {
2742
- H.indexOf(z) === -1 && _.setRequestHeader(z, U);
2742
+ N.indexOf(z) === -1 && _.setRequestHeader(z, U);
2743
2743
  });
2744
2744
  } else
2745
2745
  C.headers.forEach(function(U, z) {
@@ -2752,35 +2752,35 @@ function Js() {
2752
2752
  }
2753
2753
  return O.polyfill = !0, a.fetch || (a.fetch = O, a.Headers = S, a.Request = F, a.Response = D), i.Headers = S, i.Request = F, i.Response = D, i.fetch = O, i;
2754
2754
  })({});
2755
- })(s), s.fetch.ponyfill = !0, delete s.fetch.polyfill;
2756
- var r = t.fetch ? t : s;
2757
- e = r.fetch, e.default = r.fetch, e.fetch = r.fetch, e.Headers = r.Headers, e.Request = r.Request, e.Response = r.Response, n.exports = e;
2755
+ })(n), n.fetch.ponyfill = !0, delete n.fetch.polyfill;
2756
+ var s = t.fetch ? t : n;
2757
+ e = s.fetch, e.default = s.fetch, e.fetch = s.fetch, e.Headers = s.Headers, e.Request = s.Request, e.Response = s.Response, r.exports = e;
2758
2758
  })(Ee, Ee.exports)), Ee.exports;
2759
2759
  }
2760
- var Qs = Js();
2761
- const Xs = /* @__PURE__ */ Et(Qs), We = "https://gcp-us-east1.api.carto.com", Ke = "v3", er = "ps", ye = {
2760
+ var Qr = Jr();
2761
+ const Xr = /* @__PURE__ */ Et(Qr), We = "https://gcp-us-east1.api.carto.com", Ke = "v3", es = "ps", ye = {
2762
2762
  get: "GET",
2763
2763
  post: "POST"
2764
2764
  };
2765
- function tr(n, e) {
2766
- return Array.isArray(e) ? `${n}=${encodeURIComponent(JSON.stringify(e))}` : e == null || e === "" ? "" : typeof e == "object" ? `${n}=${encodeURIComponent(JSON.stringify(e))}` : `${n}=${encodeURIComponent(e)}`;
2765
+ function ts(r, e) {
2766
+ return Array.isArray(e) ? `${r}=${encodeURIComponent(JSON.stringify(e))}` : e == null || e === "" ? "" : typeof e == "object" ? `${r}=${encodeURIComponent(JSON.stringify(e))}` : `${r}=${encodeURIComponent(e)}`;
2767
2767
  }
2768
- function nr({
2769
- params: n,
2768
+ function ns({
2769
+ params: r,
2770
2770
  url: e
2771
2771
  }) {
2772
- if (!n) return e;
2773
- const t = Object.entries(n).map(([s, r]) => tr(s, r));
2772
+ if (!r) return e;
2773
+ const t = Object.entries(r).map(([n, s]) => ts(n, s));
2774
2774
  return `${e}?${t.filter(Boolean).join("&")}`;
2775
2775
  }
2776
- function sr(n) {
2777
- return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
2776
+ function rs(r) {
2777
+ return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
2778
2778
  }
2779
2779
  var Ve, dt;
2780
- function rr() {
2780
+ function ss() {
2781
2781
  if (dt) return Ve;
2782
2782
  dt = 1;
2783
- var n = function(u) {
2783
+ var r = function(u) {
2784
2784
  return e(u) && !t(u);
2785
2785
  };
2786
2786
  function e(u) {
@@ -2790,9 +2790,9 @@ function rr() {
2790
2790
  var p = Object.prototype.toString.call(u);
2791
2791
  return p === "[object RegExp]" || p === "[object Date]" || o(u);
2792
2792
  }
2793
- var s = typeof Symbol == "function" && Symbol.for, r = s ? Symbol.for("react.element") : 60103;
2793
+ var n = typeof Symbol == "function" && Symbol.for, s = n ? Symbol.for("react.element") : 60103;
2794
2794
  function o(u) {
2795
- return u.$$typeof === r;
2795
+ return u.$$typeof === s;
2796
2796
  }
2797
2797
  function i(u) {
2798
2798
  return Array.isArray(u) ? [] : {};
@@ -2837,7 +2837,7 @@ function rr() {
2837
2837
  }), M;
2838
2838
  }
2839
2839
  function S(u, p, h) {
2840
- h = h || {}, h.arrayMerge = h.arrayMerge || l, h.isMergeableObject = h.isMergeableObject || n, h.cloneUnlessOtherwiseSpecified = a;
2840
+ h = h || {}, h.arrayMerge = h.arrayMerge || l, h.isMergeableObject = h.isMergeableObject || r, h.cloneUnlessOtherwiseSpecified = a;
2841
2841
  var M = Array.isArray(p), v = Array.isArray(u), k = M === v;
2842
2842
  return k ? M ? h.arrayMerge(u, p, h) : w(u, p, h) : a(p, h);
2843
2843
  }
@@ -2850,17 +2850,17 @@ function rr() {
2850
2850
  var L = S;
2851
2851
  return Ve = L, Ve;
2852
2852
  }
2853
- var or = rr();
2854
- const Ye = /* @__PURE__ */ sr(or);
2855
- function ft(n) {
2853
+ var os = ss();
2854
+ const Ye = /* @__PURE__ */ rs(os);
2855
+ function ft(r) {
2856
2856
  return Ye({
2857
2857
  method: ye.get,
2858
2858
  headers: {
2859
2859
  Accept: "application/json"
2860
2860
  }
2861
- }, n);
2861
+ }, r);
2862
2862
  }
2863
- function Be(n, e) {
2863
+ function Be(r, e) {
2864
2864
  return Ye({
2865
2865
  method: ye.post,
2866
2866
  headers: {
@@ -2868,100 +2868,100 @@ function Be(n, e) {
2868
2868
  "Content-Type": "application/json"
2869
2869
  },
2870
2870
  body: JSON.stringify(e)
2871
- }, n);
2871
+ }, r);
2872
2872
  }
2873
- const ir = {
2873
+ const is = {
2874
2874
  GET: ft,
2875
2875
  POST: Be,
2876
2876
  PUT: Be,
2877
2877
  PATCH: Be,
2878
2878
  DELETE: ft
2879
2879
  };
2880
- function ar({
2881
- body: n,
2880
+ function as({
2881
+ body: r,
2882
2882
  accessToken: e,
2883
2883
  method: t,
2884
- ...s
2884
+ ...n
2885
2885
  }) {
2886
- let r = e;
2887
- return r && !r.includes("Bearer") && (r = "Bearer " + r), ir[t](Ye({
2886
+ let s = e;
2887
+ return s && !s.includes("Bearer") && (s = "Bearer " + s), is[t](Ye({
2888
2888
  method: t,
2889
2889
  headers: {
2890
- ...!!r && {
2891
- authorization: r
2890
+ ...!!s && {
2891
+ authorization: s
2892
2892
  }
2893
2893
  }
2894
- }, s), n);
2894
+ }, n), r);
2895
2895
  }
2896
- const lr = 6144;
2896
+ const ls = 6144;
2897
2897
  async function $t({
2898
- signal: n,
2898
+ signal: r,
2899
2899
  body: e,
2900
2900
  accessToken: t,
2901
- credentials: s,
2902
- method: r = ye.get,
2901
+ credentials: n,
2902
+ method: s = ye.get,
2903
2903
  params: o,
2904
2904
  url: i,
2905
2905
  requestOptions: {
2906
2906
  getMaxUrlLength: a
2907
2907
  } = {
2908
- getMaxUrlLength: lr
2908
+ getMaxUrlLength: ls
2909
2909
  },
2910
2910
  ...l
2911
2911
  }) {
2912
- let d = nr({
2912
+ let d = ns({
2913
2913
  url: i,
2914
2914
  params: o
2915
- }), m = e, g = r;
2916
- r === ye.get && d.length > a && (m = o, g = ye.post, d = i);
2917
- const b = ar({
2915
+ }), m = e, g = s;
2916
+ s === ye.get && d.length > a && (m = o, g = ye.post, d = i);
2917
+ const b = as({
2918
2918
  body: m,
2919
- accessToken: t ?? s?.accessToken,
2919
+ accessToken: t ?? n?.accessToken,
2920
2920
  method: g,
2921
2921
  ...l
2922
2922
  });
2923
- n && (b.signal = n);
2924
- const f = await Xs(d, b);
2923
+ r && (b.signal = r);
2924
+ const f = await Xr(d, b);
2925
2925
  if (!f.ok) {
2926
2926
  const w = await f.text();
2927
2927
  throw new Error(w);
2928
2928
  }
2929
2929
  return f.status === 204 ? Promise.resolve() : await f.json();
2930
2930
  }
2931
- const ke = ht()(Mn((n, e) => ({
2931
+ const ke = ht()(Mn((r, e) => ({
2932
2932
  sources: {},
2933
2933
  filters: {},
2934
- setSource: (t, s) => n((r) => {
2934
+ setSource: (t, n) => r((s) => {
2935
2935
  const o = {
2936
- ...r.sources
2936
+ ...s.sources
2937
2937
  }, i = o[t]?.widgets;
2938
2938
  i && (i.destroy(), delete o[t].widgets);
2939
2939
  const a = o[t], l = {
2940
2940
  apiBaseUrl: We,
2941
- clientId: er,
2941
+ clientId: es,
2942
2942
  apiVersion: Ke,
2943
2943
  ...a,
2944
- ...s
2944
+ ...n
2945
2945
  };
2946
- return l.widgets = fr({
2946
+ return l.widgets = fs({
2947
2947
  source: l
2948
2948
  }), o[t] = l, {
2949
2949
  sources: o
2950
2950
  };
2951
2951
  }, void 0, "setSource"),
2952
- removeSource: (t) => n((s) => {
2953
- const r = {
2954
- ...s.sources
2955
- }, o = r[t]?.widgets;
2956
- return o && (o.destroy(), delete r[t].widgets), delete r[t], {
2957
- sources: r
2952
+ removeSource: (t) => r((n) => {
2953
+ const s = {
2954
+ ...n.sources
2955
+ }, o = s[t]?.widgets;
2956
+ return o && (o.destroy(), delete s[t].widgets), delete s[t], {
2957
+ sources: s
2958
2958
  };
2959
2959
  }, void 0, "removeSource"),
2960
- setFilters: (t, s) => n((r) => {
2961
- const o = r.filters[t] ?? {}, i = s.reduce((a, l) => Ze(a, l), o);
2960
+ setFilters: (t, n) => r((s) => {
2961
+ const o = s.filters[t] ?? {}, i = n.reduce((a, l) => Ze(a, l), o);
2962
2962
  return {
2963
2963
  filters: {
2964
- ...r.filters,
2964
+ ...s.filters,
2965
2965
  [t]: {
2966
2966
  ...i
2967
2967
  }
@@ -2969,14 +2969,14 @@ const ke = ht()(Mn((n, e) => ({
2969
2969
  }
2970
2970
  };
2971
2971
  }, void 0, "setFilters"),
2972
- removeFilters: (t, s, r) => n((o) => {
2972
+ removeFilters: (t, n, s) => r((o) => {
2973
2973
  const i = o.filters[t] ?? {};
2974
2974
  if (!i)
2975
2975
  return o;
2976
2976
  let a = {};
2977
- return s && (a = mn(i, {
2978
- column: s,
2979
- owner: r
2977
+ return n && (a = mn(i, {
2978
+ column: n,
2979
+ owner: s
2980
2980
  })), {
2981
2981
  filters: {
2982
2982
  ...o.filters,
@@ -2988,13 +2988,13 @@ const ke = ht()(Mn((n, e) => ({
2988
2988
  };
2989
2989
  }, void 0, "removeFilters"),
2990
2990
  invalidateSourcesCache: (t, {
2991
- timeout: s = 500,
2992
- maxAge: r = 10
2991
+ timeout: n = 500,
2992
+ maxAge: s = 10
2993
2993
  } = {}) => {
2994
2994
  t.forEach((o) => {
2995
2995
  e().setSource(o, {
2996
2996
  headers: {
2997
- "Cache-Control": `no-cache, max-age=${r}`
2997
+ "Cache-Control": `no-cache, max-age=${s}`
2998
2998
  }
2999
2999
  });
3000
3000
  }), setTimeout(() => {
@@ -3002,65 +3002,65 @@ const ke = ht()(Mn((n, e) => ({
3002
3002
  const i = e().sources[o];
3003
3003
  i && (delete i.headers, e().setSource(o, i));
3004
3004
  });
3005
- }, s);
3005
+ }, n);
3006
3006
  }
3007
3007
  })));
3008
- function cr(n) {
3008
+ function cs(r) {
3009
3009
  const e = I(2);
3010
3010
  let t;
3011
- return e[0] !== n ? (t = (s) => s.sources[n], e[0] = n, e[1] = t) : t = e[1], ke(t);
3011
+ return e[0] !== r ? (t = (n) => n.sources[r], e[0] = r, e[1] = t) : t = e[1], ke(t);
3012
3012
  }
3013
- function ur(n) {
3013
+ function us(r) {
3014
3014
  const e = I(2);
3015
3015
  let t;
3016
- return e[0] !== n ? (t = (s) => s.filters[n], e[0] = n, e[1] = t) : t = e[1], ke(t);
3016
+ return e[0] !== r ? (t = (n) => n.filters[r], e[0] = r, e[1] = t) : t = e[1], ke(t);
3017
3017
  }
3018
- function fo(n) {
3018
+ function po(r) {
3019
3019
  const e = I(9);
3020
3020
  let t;
3021
- e[0] !== n ? (t = (a) => a.sources[n], e[0] = n, e[1] = t) : t = e[1];
3022
- const s = ke(t);
3023
- let r;
3024
- e[2] !== n ? (r = (a) => a.filters[n], e[2] = n, e[3] = r) : r = e[3];
3025
- const o = ke(r);
3021
+ e[0] !== r ? (t = (a) => a.sources[r], e[0] = r, e[1] = t) : t = e[1];
3022
+ const n = ke(t);
3023
+ let s;
3024
+ e[2] !== r ? (s = (a) => a.filters[r], e[2] = r, e[3] = s) : s = e[3];
3025
+ const o = ke(s);
3026
3026
  let i;
3027
3027
  e: {
3028
- if (!s) {
3028
+ if (!n) {
3029
3029
  i = void 0;
3030
3030
  break e;
3031
3031
  }
3032
3032
  let a;
3033
3033
  e[4] !== o ? (a = o ?? {}, e[4] = o, e[5] = a) : a = e[5];
3034
3034
  let l;
3035
- e[6] !== s || e[7] !== a ? (l = {
3036
- ...s,
3035
+ e[6] !== n || e[7] !== a ? (l = {
3036
+ ...n,
3037
3037
  filters: a
3038
- }, e[6] = s, e[7] = a, e[8] = l) : l = e[8], i = l;
3038
+ }, e[6] = n, e[7] = a, e[8] = l) : l = e[8], i = l;
3039
3039
  }
3040
3040
  return i;
3041
3041
  }
3042
- function po(n, {
3042
+ function mo(r, {
3043
3043
  column: e,
3044
3044
  type: t
3045
3045
  }) {
3046
- return n?.[e]?.[t]?.values ?? [];
3046
+ return r?.[e]?.[t]?.values ?? [];
3047
3047
  }
3048
- function dr(n) {
3049
- const [, e] = n.type.split("+", 2);
3048
+ function ds(r) {
3049
+ const [, e] = r.type.split("+", 2);
3050
3050
  return {
3051
- spatialDataType: n.spatialDataType ?? e ?? "geo",
3052
- spatialDataColumn: n.spatialDataColumn ?? e ?? "geom"
3051
+ spatialDataType: r.spatialDataType ?? e ?? "geo",
3052
+ spatialDataColumn: r.spatialDataColumn ?? e ?? "geom"
3053
3053
  };
3054
3054
  }
3055
- function fr({
3056
- source: n
3055
+ function fs({
3056
+ source: r
3057
3057
  }) {
3058
3058
  const {
3059
3059
  spatialDataType: e,
3060
3060
  spatialDataColumn: t
3061
- } = dr(n), s = {
3061
+ } = ds(r), n = {
3062
3062
  query: () => {
3063
- const i = n;
3063
+ const i = r;
3064
3064
  return new Sn({
3065
3065
  ...i,
3066
3066
  accessToken: "",
@@ -3070,7 +3070,7 @@ function fr({
3070
3070
  });
3071
3071
  },
3072
3072
  table: () => {
3073
- const i = n;
3073
+ const i = r;
3074
3074
  return new bn({
3075
3075
  ...i,
3076
3076
  accessToken: "",
@@ -3080,7 +3080,7 @@ function fr({
3080
3080
  });
3081
3081
  },
3082
3082
  tileset: () => {
3083
- const i = n;
3083
+ const i = r;
3084
3084
  return i.spatialDataBounds ? new hn({
3085
3085
  ...i,
3086
3086
  accessToken: "",
@@ -3092,7 +3092,7 @@ function fr({
3092
3092
  }) : null;
3093
3093
  },
3094
3094
  raster: () => {
3095
- const i = n;
3095
+ const i = r;
3096
3096
  return !i.rasterMetadata || !i.spatialDataBounds ? null : new yn({
3097
3097
  ...i,
3098
3098
  accessToken: "",
@@ -3103,71 +3103,71 @@ function fr({
3103
3103
  spatialDataBounds: i.spatialDataBounds
3104
3104
  });
3105
3105
  }
3106
- }, r = n.type.split("+")[0], o = s[r];
3106
+ }, s = r.type.split("+")[0], o = n[s];
3107
3107
  return o?.();
3108
3108
  }
3109
- function pr(n, e) {
3110
- const t = I(5), s = ur(n);
3111
- let r;
3109
+ function ps(r, e) {
3110
+ const t = I(5), n = us(r);
3111
+ let s;
3112
3112
  e: {
3113
3113
  if (!e?.length) {
3114
- r = s;
3114
+ s = n;
3115
3115
  break e;
3116
3116
  }
3117
- if (!s) {
3117
+ if (!n) {
3118
3118
  let i;
3119
- t[0] !== e ? (i = e.reduce(yr, {}), t[0] = e, t[1] = i) : i = t[1], r = i;
3119
+ t[0] !== e ? (i = e.reduce(ys, {}), t[0] = e, t[1] = i) : i = t[1], s = i;
3120
3120
  break e;
3121
3121
  }
3122
3122
  let o;
3123
- if (t[2] !== e || t[3] !== s) {
3124
- const i = e.reduce(mr, {});
3125
- o = de(s, i), t[2] = e, t[3] = s, t[4] = o;
3123
+ if (t[2] !== e || t[3] !== n) {
3124
+ const i = e.reduce(ms, {});
3125
+ o = de(n, i), t[2] = e, t[3] = n, t[4] = o;
3126
3126
  } else
3127
3127
  o = t[4];
3128
- r = o;
3128
+ s = o;
3129
3129
  }
3130
- return r;
3130
+ return s;
3131
3131
  }
3132
- function mr(n, e) {
3133
- return Ze(n, e);
3132
+ function ms(r, e) {
3133
+ return Ze(r, e);
3134
3134
  }
3135
- function yr(n, e) {
3136
- return Ze(n, e);
3135
+ function ys(r, e) {
3136
+ return Ze(r, e);
3137
3137
  }
3138
- function hr(n, e) {
3139
- const t = cr(e);
3138
+ function hs(r, e) {
3139
+ const t = cs(e);
3140
3140
  return me(() => {
3141
- const s = t?.widgets;
3142
- return !s || !n ? null : (s.props.accessToken = n, s);
3143
- }, [n, t]);
3141
+ const n = t?.widgets;
3142
+ return !n || !r ? null : (n.props.accessToken = r, n);
3143
+ }, [r, t]);
3144
3144
  }
3145
- const gr = ["authorization", "cache-control"];
3146
- function br(n) {
3147
- if (!n || typeof n != "object")
3145
+ const gs = ["authorization", "cache-control"];
3146
+ function bs(r) {
3147
+ if (!r || typeof r != "object")
3148
3148
  return "";
3149
3149
  const e = {};
3150
- for (const [t, s] of Object.entries(n)) {
3151
- const r = t.toLowerCase();
3152
- gr.includes(r) && (e[r] = s);
3150
+ for (const [t, n] of Object.entries(r)) {
3151
+ const s = t.toLowerCase();
3152
+ gs.includes(s) && (e[s] = n);
3153
3153
  }
3154
3154
  return Object.keys(e).length > 0 ? JSON.stringify(e) : "";
3155
3155
  }
3156
- function Sr(n) {
3156
+ function Ss(r) {
3157
3157
  const e = I(12), {
3158
3158
  accessToken: t,
3159
- sourceId: s,
3160
- widgetProps: r,
3159
+ sourceId: n,
3160
+ widgetProps: s,
3161
3161
  additionalFilter: o
3162
- } = n, i = pr(s, o), a = hr(t, s);
3162
+ } = r, i = ps(n, o), a = hs(t, n);
3163
3163
  let l;
3164
- if (e[0] !== t || e[1] !== i || e[2] !== s || e[3] !== a || e[4] !== r) {
3165
- l = [s, r], a?.props && "queryParameters" in a.props && a.props.queryParameters && l.push(a.props.queryParameters), i && l.push(i);
3164
+ if (e[0] !== t || e[1] !== i || e[2] !== n || e[3] !== a || e[4] !== s) {
3165
+ l = [n, s], a?.props && "queryParameters" in a.props && a.props.queryParameters && l.push(a.props.queryParameters), i && l.push(i);
3166
3166
  const g = a?.props.headers;
3167
3167
  let b;
3168
- e[6] !== g ? (b = br(g), e[6] = g, e[7] = b) : b = e[7];
3168
+ e[6] !== g ? (b = bs(g), e[6] = g, e[7] = b) : b = e[7];
3169
3169
  const f = b;
3170
- f && l.push(f), l.push(t), e[0] = t, e[1] = i, e[2] = s, e[3] = a, e[4] = r, e[5] = l;
3170
+ f && l.push(f), l.push(t), e[0] = t, e[1] = i, e[2] = n, e[3] = a, e[4] = s, e[5] = l;
3171
3171
  } else
3172
3172
  l = e[5];
3173
3173
  const d = l;
@@ -3179,17 +3179,17 @@ function Sr(n) {
3179
3179
  }, e[8] = i, e[9] = d, e[10] = a, e[11] = m) : m = e[11], m;
3180
3180
  }
3181
3181
  function le({
3182
- queryKeyPrefix: n,
3182
+ queryKeyPrefix: r,
3183
3183
  getWidgetMethod: e
3184
3184
  }) {
3185
- const t = (r) => {
3185
+ const t = (s) => {
3186
3186
  const o = I(21), {
3187
3187
  accessToken: i,
3188
3188
  sourceId: a,
3189
3189
  widgetProps: l,
3190
3190
  additionalFilter: d,
3191
3191
  useQueryProps: m
3192
- } = r;
3192
+ } = s;
3193
3193
  let g;
3194
3194
  o[0] !== m ? (g = m === void 0 ? {} : m, o[0] = m, o[1] = g) : g = o[1];
3195
3195
  let b, f;
@@ -3209,9 +3209,9 @@ function le({
3209
3209
  mergedFilters: L,
3210
3210
  queryKey: u,
3211
3211
  widgetModel: p
3212
- } = Sr(S);
3212
+ } = Ss(S);
3213
3213
  let h;
3214
- o[10] !== u ? (h = [...n, ...u], o[10] = u, o[11] = h) : h = o[11];
3214
+ o[10] !== u ? (h = [...r, ...u], o[10] = u, o[11] = h) : h = o[11];
3215
3215
  let M;
3216
3216
  o[12] !== L || o[13] !== p || o[14] !== l ? (M = (A) => {
3217
3217
  const {
@@ -3236,13 +3236,13 @@ function le({
3236
3236
  };
3237
3237
  return {
3238
3238
  useModelHook: t,
3239
- ModelComponent: (r) => {
3239
+ ModelComponent: (s) => {
3240
3240
  const o = I(6);
3241
3241
  let i, a;
3242
- o[0] !== r ? ({
3242
+ o[0] !== s ? ({
3243
3243
  children: i,
3244
3244
  ...a
3245
- } = r, o[0] = r, o[1] = i, o[2] = a) : (i = o[1], a = o[2]);
3245
+ } = s, o[0] = s, o[1] = i, o[2] = a) : (i = o[1], a = o[2]);
3246
3246
  const l = t(a);
3247
3247
  let d;
3248
3248
  return o[3] !== i || o[4] !== l ? (d = i(l), o[3] = i, o[4] = l, o[5] = d) : d = o[5], d;
@@ -3250,111 +3250,145 @@ function le({
3250
3250
  };
3251
3251
  }
3252
3252
  const {
3253
- useModelHook: mo,
3254
- ModelComponent: yo
3253
+ useModelHook: yo,
3254
+ ModelComponent: ho
3255
3255
  } = le({
3256
3256
  queryKeyPrefix: ["aggregations"],
3257
- getWidgetMethod: (n) => n.getAggregations.bind(n)
3258
- }), {
3259
- useModelHook: ho,
3260
- ModelComponent: go
3257
+ getWidgetMethod: (r) => (e) => {
3258
+ let t = e.aggregations.filter((s) => s.operation !== "custom");
3259
+ e.aggregations.some((s) => s.operation === "custom") && (t = vs(e.aggregations).join(","));
3260
+ const n = {
3261
+ ...e,
3262
+ aggregations: t
3263
+ };
3264
+ return r.getAggregations(n);
3265
+ }
3266
+ });
3267
+ function vs(r) {
3268
+ return r.map((e) => {
3269
+ if (e.operation === "custom")
3270
+ return `${e.aggregationExp} AS ${e.alias}`;
3271
+ const {
3272
+ column: t,
3273
+ operation: n,
3274
+ alias: s
3275
+ } = e;
3276
+ switch (n) {
3277
+ case "count":
3278
+ return `COUNT(${t}) AS ${s}`;
3279
+ case "sum":
3280
+ return `SUM(${t}) AS ${s}`;
3281
+ case "avg":
3282
+ return `AVG(${t}) AS ${s}`;
3283
+ case "min":
3284
+ return `MIN(${t}) AS ${s}`;
3285
+ case "max":
3286
+ return `MAX(${t}) AS ${s}`;
3287
+ default:
3288
+ throw new Error(`Unsupported aggregation operation: ${String(n)}`);
3289
+ }
3290
+ });
3291
+ }
3292
+ const {
3293
+ useModelHook: go,
3294
+ ModelComponent: bo
3261
3295
  } = le({
3262
3296
  queryKeyPrefix: ["categories"],
3263
- getWidgetMethod: (n) => n.getCategories.bind(n)
3297
+ getWidgetMethod: (r) => r.getCategories.bind(r)
3264
3298
  }), {
3265
- useModelHook: bo,
3266
- ModelComponent: So
3299
+ useModelHook: So,
3300
+ ModelComponent: vo
3267
3301
  } = le({
3268
3302
  queryKeyPrefix: ["features"],
3269
- getWidgetMethod: (n) => n.getFeatures.bind(n)
3303
+ getWidgetMethod: (r) => r.getFeatures.bind(r)
3270
3304
  }), {
3271
- useModelHook: vo,
3272
- ModelComponent: wo
3305
+ useModelHook: wo,
3306
+ ModelComponent: Mo
3273
3307
  } = le({
3274
3308
  queryKeyPrefix: ["formula"],
3275
- getWidgetMethod: (n) => n.getFormula.bind(n)
3309
+ getWidgetMethod: (r) => r.getFormula.bind(r)
3276
3310
  }), {
3277
- useModelHook: Mo,
3278
- ModelComponent: _o
3311
+ useModelHook: _o,
3312
+ ModelComponent: Eo
3279
3313
  } = le({
3280
3314
  queryKeyPrefix: ["histogram"],
3281
- getWidgetMethod: (n) => n.getHistogram.bind(n)
3315
+ getWidgetMethod: (r) => r.getHistogram.bind(r)
3282
3316
  }), {
3283
- useModelHook: Eo,
3284
- ModelComponent: To
3317
+ useModelHook: To,
3318
+ ModelComponent: Lo
3285
3319
  } = le({
3286
3320
  queryKeyPrefix: ["range"],
3287
- getWidgetMethod: (n) => n.getRange.bind(n)
3321
+ getWidgetMethod: (r) => r.getRange.bind(r)
3288
3322
  }), {
3289
- useModelHook: Lo,
3290
- ModelComponent: ko
3323
+ useModelHook: ko,
3324
+ ModelComponent: Co
3291
3325
  } = le({
3292
3326
  queryKeyPrefix: ["scatter"],
3293
- getWidgetMethod: (n) => n.getScatter.bind(n)
3327
+ getWidgetMethod: (r) => r.getScatter.bind(r)
3294
3328
  }), {
3295
- useModelHook: Co,
3296
- ModelComponent: Po
3329
+ useModelHook: Po,
3330
+ ModelComponent: Oo
3297
3331
  } = le({
3298
3332
  queryKeyPrefix: ["table"],
3299
- getWidgetMethod: (n) => n.getTable.bind(n)
3333
+ getWidgetMethod: (r) => r.getTable.bind(r)
3300
3334
  }), {
3301
- useModelHook: Oo,
3302
- ModelComponent: Ao
3335
+ useModelHook: Ao,
3336
+ ModelComponent: Fo
3303
3337
  } = le({
3304
3338
  queryKeyPrefix: ["timeSeries"],
3305
- getWidgetMethod: (n) => n.getTimeSeries.bind(n)
3306
- }), Fo = "ps";
3307
- function Do(n) {
3339
+ getWidgetMethod: (r) => r.getTimeSeries.bind(r)
3340
+ }), Do = "ps";
3341
+ function Ro(r) {
3308
3342
  const e = I(13), {
3309
3343
  children: t,
3310
- maps: s,
3311
- lassoTools: r,
3344
+ maps: n,
3345
+ lassoTools: s,
3312
3346
  measureTools: o
3313
- } = n;
3347
+ } = r;
3314
3348
  let i;
3315
- e[0] !== r ? (i = r === void 0 ? [] : r, e[0] = r, e[1] = i) : i = e[1];
3349
+ e[0] !== s ? (i = s === void 0 ? [] : s, e[0] = s, e[1] = i) : i = e[1];
3316
3350
  const a = i;
3317
3351
  let l;
3318
3352
  e[2] !== o ? (l = o === void 0 ? [] : o, e[2] = o, e[3] = l) : l = e[3];
3319
3353
  const d = l;
3320
3354
  let m;
3321
- e[4] !== t || e[5] !== d ? (m = /* @__PURE__ */ Z(_s, { values: d, children: t }), e[4] = t, e[5] = d, e[6] = m) : m = e[6];
3355
+ e[4] !== t || e[5] !== d ? (m = /* @__PURE__ */ Z(_r, { values: d, children: t }), e[4] = t, e[5] = d, e[6] = m) : m = e[6];
3322
3356
  let g;
3323
- e[7] !== a || e[8] !== m ? (g = /* @__PURE__ */ Z(is, { values: a, children: m }), e[7] = a, e[8] = m, e[9] = g) : g = e[9];
3357
+ e[7] !== a || e[8] !== m ? (g = /* @__PURE__ */ Z(ir, { values: a, children: m }), e[7] = a, e[8] = m, e[9] = g) : g = e[9];
3324
3358
  let b;
3325
- return e[10] !== s || e[11] !== g ? (b = /* @__PURE__ */ Z(Kn, { values: s, children: g }), e[10] = s, e[11] = g, e[12] = b) : b = e[12], b;
3359
+ return e[10] !== n || e[11] !== g ? (b = /* @__PURE__ */ Z(Kn, { values: n, children: g }), e[10] = n, e[11] = g, e[12] = b) : b = e[12], b;
3326
3360
  }
3327
- function Ro(n, e) {
3328
- const t = he((d) => d.layers), s = he((d) => d.setLayer), r = me(() => xt(n.map((d) => t[d]).filter((d) => !!d?.legend)).toReversed(), [t, n]), o = me(() => r.map(e), [e, r]), i = ee(({
3361
+ function xo(r, e) {
3362
+ const t = he((d) => d.layers), n = he((d) => d.setLayer), s = me(() => xt(r.map((d) => t[d]).filter((d) => !!d?.legend)).toReversed(), [t, r]), o = me(() => s.map(e), [e, s]), i = ee(({
3329
3363
  id: d,
3330
3364
  visible: m,
3331
3365
  ...g
3332
3366
  }) => {
3333
- s(d, {
3367
+ n(d, {
3334
3368
  props: {
3335
3369
  visible: m
3336
3370
  },
3337
3371
  legend: g
3338
3372
  });
3339
- }, [s]), a = ee(({
3373
+ }, [n]), a = ee(({
3340
3374
  id: d,
3341
3375
  collapsed: m
3342
3376
  }) => {
3343
- s(d, {
3377
+ n(d, {
3344
3378
  legend: {
3345
3379
  collapsed: m
3346
3380
  }
3347
3381
  });
3348
- }, [s]), l = ee(({
3382
+ }, [n]), l = ee(({
3349
3383
  id: d,
3350
3384
  opacity: m
3351
3385
  }) => {
3352
- s(d, {
3386
+ n(d, {
3353
3387
  props: {
3354
3388
  opacity: m
3355
3389
  }
3356
3390
  });
3357
- }, [s]);
3391
+ }, [n]);
3358
3392
  return {
3359
3393
  legend: o,
3360
3394
  onChangeVisibility: i,
@@ -3362,13 +3396,13 @@ function Ro(n, e) {
3362
3396
  onChangeRowCollapse: a
3363
3397
  };
3364
3398
  }
3365
- function xo({
3366
- mapId: n
3399
+ function $o({
3400
+ mapId: r
3367
3401
  }) {
3368
- const [e, t] = ae(void 0), [s, r] = ae(!1), [o, i] = ae(void 0), a = $((u) => u.maps[n]?.basemap), l = $((u) => u.getDeckInstance), d = $((u) => u.getOverlayInstance), m = $((u) => u.areLayersLoaded[n]), b = $((u) => u.maps[n]?.isLoaded) && m, {
3402
+ const [e, t] = ae(void 0), [n, s] = ae(!1), [o, i] = ae(void 0), a = $((u) => u.maps[r]?.basemap), l = $((u) => u.getDeckInstance), d = $((u) => u.getOverlayInstance), m = $((u) => u.areLayersLoaded[r]), b = $((u) => u.maps[r]?.isLoaded) && m, {
3369
3403
  type: f
3370
3404
  } = be[a], w = f === ie.googleMaps, S = ee(async () => {
3371
- const u = l(n), p = d(n);
3405
+ const u = l(r), p = d(r);
3372
3406
  try {
3373
3407
  const h = document.createElement("canvas");
3374
3408
  h.width = u.width ?? 0, h.height = u.height ?? 0;
@@ -3391,122 +3425,122 @@ function xo({
3391
3425
  } catch (h) {
3392
3426
  i(h), console.error(h);
3393
3427
  } finally {
3394
- r(!1);
3428
+ s(!1);
3395
3429
  }
3396
- }, [l, w, n, d]);
3430
+ }, [l, w, r, d]);
3397
3431
  return {
3398
3432
  takeScreenshot: ee(() => {
3399
- i(void 0), r(!0), b && S();
3433
+ i(void 0), s(!0), b && S();
3400
3434
  }, [S, b]),
3401
- isLoading: s,
3435
+ isLoading: n,
3402
3436
  screenshot: e,
3403
3437
  error: o
3404
3438
  };
3405
3439
  }
3406
- function $o(n) {
3440
+ function Uo(r) {
3407
3441
  const e = I(11), {
3408
3442
  mapId: t
3409
- } = n;
3410
- let s;
3411
- e[0] !== t ? (s = {
3443
+ } = r;
3444
+ let n;
3445
+ e[0] !== t ? (n = {
3412
3446
  mapId: t
3413
- }, e[0] = t, e[1] = s) : s = e[1];
3414
- const r = vr(s);
3447
+ }, e[0] = t, e[1] = n) : n = e[1];
3448
+ const s = ws(n);
3415
3449
  let o;
3416
3450
  e[2] !== t ? (o = {
3417
3451
  mapId: t
3418
3452
  }, e[2] = t, e[3] = o) : o = e[3];
3419
- const i = wr(o);
3453
+ const i = Ms(o);
3420
3454
  let a;
3421
3455
  e[4] !== t ? (a = {
3422
3456
  mapId: t
3423
3457
  }, e[4] = t, e[5] = a) : a = e[5];
3424
- const l = Er(a), d = i ?? l ?? r;
3458
+ const l = Ts(a), d = i ?? l ?? s;
3425
3459
  let m;
3426
- return e[6] !== i || e[7] !== l || e[8] !== d || e[9] !== r ? (m = {
3460
+ return e[6] !== i || e[7] !== l || e[8] !== d || e[9] !== s ? (m = {
3427
3461
  spatialFilter: d,
3428
3462
  staticSpatialFilter: l,
3429
3463
  lassoToolsSpatialFilter: i,
3430
- viewportSpatialFilter: r
3431
- }, e[6] = i, e[7] = l, e[8] = d, e[9] = r, e[10] = m) : m = e[10], m;
3464
+ viewportSpatialFilter: s
3465
+ }, e[6] = i, e[7] = l, e[8] = d, e[9] = s, e[10] = m) : m = e[10], m;
3432
3466
  }
3433
- function vr(n) {
3467
+ function ws(r) {
3434
3468
  const e = I(4), {
3435
3469
  mapId: t
3436
- } = n;
3437
- let s;
3438
- e[0] !== t ? (s = (i) => i.viewports[t], e[0] = t, e[1] = s) : s = e[1];
3439
- const r = $(s);
3470
+ } = r;
3471
+ let n;
3472
+ e[0] !== t ? (n = (i) => i.viewports[t], e[0] = t, e[1] = n) : n = e[1];
3473
+ const s = $(n);
3440
3474
  let o;
3441
3475
  e: {
3442
- if (!r) {
3476
+ if (!s) {
3443
3477
  o = void 0;
3444
3478
  break e;
3445
3479
  }
3446
3480
  let i;
3447
- e[2] !== r ? (i = vn(r.getBounds()), e[2] = r, e[3] = i) : i = e[3], o = i;
3481
+ e[2] !== s ? (i = vn(s.getBounds()), e[2] = s, e[3] = i) : i = e[3], o = i;
3448
3482
  }
3449
3483
  return o;
3450
3484
  }
3451
- function wr(n) {
3485
+ function Ms(r) {
3452
3486
  const e = I(5), {
3453
3487
  mapId: t
3454
- } = n;
3455
- let s;
3456
- e[0] !== t ? (s = (i) => i.data[t]?.values, e[0] = t, e[1] = s) : s = e[1];
3457
- const r = W(s);
3488
+ } = r;
3489
+ let n;
3490
+ e[0] !== t ? (n = (i) => i.data[t]?.values, e[0] = t, e[1] = n) : n = e[1];
3491
+ const s = W(n);
3458
3492
  let o;
3459
3493
  e: {
3460
3494
  let i;
3461
- if (e[2] !== r) {
3495
+ if (e[2] !== s) {
3462
3496
  const a = Ot({
3463
- values: r
3464
- }).filter(_r);
3497
+ values: s
3498
+ }).filter(Es);
3465
3499
  if (!a?.length) {
3466
3500
  o = void 0;
3467
3501
  break e;
3468
3502
  }
3469
- i = vt(a.map(Mr)), e[2] = r, e[3] = i, e[4] = o;
3503
+ i = vt(a.map(_s)), e[2] = s, e[3] = i, e[4] = o;
3470
3504
  } else
3471
3505
  i = e[3], o = e[4];
3472
3506
  o = i.geometry;
3473
3507
  }
3474
3508
  return o;
3475
3509
  }
3476
- function Mr(n) {
3477
- return n.geometry.coordinates;
3510
+ function _s(r) {
3511
+ return r.geometry.coordinates;
3478
3512
  }
3479
- function _r(n) {
3480
- return n.properties.visible;
3513
+ function Es(r) {
3514
+ return r.properties.visible;
3481
3515
  }
3482
- function Er(n) {
3516
+ function Ts(r) {
3483
3517
  const e = I(4), {
3484
3518
  mapId: t
3485
- } = n;
3486
- let s;
3487
- e[0] !== t ? (s = (i) => i.spatialFilter[t], e[0] = t, e[1] = s) : s = e[1];
3488
- const r = $(s);
3519
+ } = r;
3520
+ let n;
3521
+ e[0] !== t ? (n = (i) => i.spatialFilter[t], e[0] = t, e[1] = n) : n = e[1];
3522
+ const s = $(n);
3489
3523
  let o;
3490
3524
  e: {
3491
- if (!r || !Object.keys(r).length) {
3525
+ if (!s || !Object.keys(s).length) {
3492
3526
  o = void 0;
3493
3527
  break e;
3494
3528
  }
3495
3529
  let i;
3496
- if (e[2] !== r) {
3497
- const a = Object.values(r).filter(Lr).flatMap(Tr);
3498
- i = vt(a), e[2] = r, e[3] = i;
3530
+ if (e[2] !== s) {
3531
+ const a = Object.values(s).filter(ks).flatMap(Ls);
3532
+ i = vt(a), e[2] = s, e[3] = i;
3499
3533
  } else
3500
3534
  i = e[3];
3501
3535
  o = i.geometry;
3502
3536
  }
3503
3537
  return o;
3504
3538
  }
3505
- function Tr(n) {
3506
- return n.type === "Polygon" ? [n.coordinates] : n.coordinates;
3539
+ function Ls(r) {
3540
+ return r.type === "Polygon" ? [r.coordinates] : r.coordinates;
3507
3541
  }
3508
- function Lr(n) {
3509
- return n != null;
3542
+ function ks(r) {
3543
+ return r != null;
3510
3544
  }
3511
3545
  const fe = {
3512
3546
  currency: "CURRENCY",
@@ -3515,93 +3549,93 @@ const fe = {
3515
3549
  }, pt = {
3516
3550
  [fe.currency]: {
3517
3551
  type: fe.currency,
3518
- format: (n, e) => dn(n, e)
3552
+ format: (r, e) => dn(r, e)
3519
3553
  },
3520
3554
  [fe.number]: {
3521
3555
  type: fe.number,
3522
- format: (n, e) => wt(n, e)
3556
+ format: (r, e) => wt(r, e)
3523
3557
  },
3524
3558
  [fe.default]: {
3525
3559
  type: fe.default,
3526
- format: (n) => n.toLocaleString()
3560
+ format: (r) => r.toLocaleString()
3527
3561
  }
3528
3562
  };
3529
- function Uo({
3530
- properties: n,
3563
+ function qo({
3564
+ properties: r,
3531
3565
  formatters: e = {},
3532
- includeColumns: t = Object.keys(n),
3533
- locale: s = "en-US",
3534
- showColumnName: r = !0,
3566
+ includeColumns: t = Object.keys(r),
3567
+ locale: n = "en-US",
3568
+ showColumnName: s = !0,
3535
3569
  title: o,
3536
- getColumnName: i = Ar,
3537
- getFieldHtml: a = Cr,
3538
- getTitle: l = kr,
3539
- getValue: d = Pr
3570
+ getColumnName: i = Fs,
3571
+ getFieldHtml: a = Ps,
3572
+ getTitle: l = Cs,
3573
+ getValue: d = Os
3540
3574
  }) {
3541
3575
  const m = o ? l(o) : "", b = t.reduce((f, w) => {
3542
- const S = e[w], L = n[w], u = d(L, s, S), p = r ? i(w) : "";
3576
+ const S = e[w], L = r[w], u = d(L, n, S), p = s ? i(w) : "";
3543
3577
  return f + a(p, u);
3544
3578
  }, "");
3545
3579
  return m + b;
3546
3580
  }
3547
- function kr(n) {
3548
- return `<h3 style="margin: 0"><strong>${n}</strong></h3></br>`;
3581
+ function Cs(r) {
3582
+ return `<h3 style="margin: 0"><strong>${r}</strong></h3></br>`;
3549
3583
  }
3550
- function Cr(n, e) {
3551
- return `${n}${e}</br>`;
3584
+ function Ps(r, e) {
3585
+ return `${r}${e}</br>`;
3552
3586
  }
3553
- function Pr(n, e, t) {
3587
+ function Os(r, e, t) {
3554
3588
  try {
3555
- return Or(t)(n, e);
3589
+ return As(t)(r, e);
3556
3590
  } catch {
3557
- return n;
3591
+ return r;
3558
3592
  }
3559
3593
  }
3560
- function Or(n) {
3561
- return typeof n == "function" ? n : ((n && pt[n]) ?? pt[fe.default]).format;
3594
+ function As(r) {
3595
+ return typeof r == "function" ? r : ((r && pt[r]) ?? pt[fe.default]).format;
3562
3596
  }
3563
- function Ar(n) {
3564
- return `<strong>${n}</strong>: `;
3597
+ function Fs(r) {
3598
+ return `<strong>${r}</strong>: `;
3565
3599
  }
3566
- function qo(n) {
3600
+ function Vo(r) {
3567
3601
  return {
3568
- collapsed: n.legend?.collapsed,
3569
- collapsible: n.legend?.collapsible,
3570
- helperText: n.legend?.helperText,
3571
- id: n.props.id,
3572
- legend: n.legend?.variables,
3573
- maxZoom: n.legend?.maxZoom,
3574
- minZoom: n.legend?.minZoom,
3575
- opacity: n.props.opacity ?? 1,
3576
- showOpacityControl: n.legend?.opacityControl,
3577
- switchable: n.legend?.switchable,
3578
- title: n.name,
3579
- visible: n.props.visible ?? !0
3602
+ collapsed: r.legend?.collapsed,
3603
+ collapsible: r.legend?.collapsible,
3604
+ helperText: r.legend?.helperText,
3605
+ id: r.props.id,
3606
+ legend: r.legend?.variables,
3607
+ maxZoom: r.legend?.maxZoom,
3608
+ minZoom: r.legend?.minZoom,
3609
+ opacity: r.props.opacity ?? 1,
3610
+ showOpacityControl: r.legend?.opacityControl,
3611
+ switchable: r.legend?.switchable,
3612
+ title: r.name,
3613
+ visible: r.props.visible ?? !0
3580
3614
  };
3581
3615
  }
3582
- function Vo(n) {
3616
+ function Bo(r) {
3583
3617
  const e = I(22), {
3584
3618
  children: t,
3585
- mapId: s
3586
- } = n;
3587
- let r;
3588
- e[0] !== s ? (r = (v) => v.viewStates[s], e[0] = s, e[1] = r) : r = e[1];
3619
+ mapId: n
3620
+ } = r;
3621
+ let s;
3622
+ e[0] !== n ? (s = (v) => v.viewStates[n], e[0] = n, e[1] = s) : s = e[1];
3589
3623
  const {
3590
3624
  zoom: o,
3591
3625
  maxZoom: i,
3592
3626
  minZoom: a
3593
- } = $(r);
3627
+ } = $(s);
3594
3628
  let l;
3595
- e[2] !== s ? (l = (v) => v.areLayersLoaded[s], e[2] = s, e[3] = l) : l = e[3];
3596
- const d = $(l), m = $(Rr), g = $(Dr), b = $(Fr), f = !d;
3629
+ e[2] !== n ? (l = (v) => v.areLayersLoaded[n], e[2] = n, e[3] = l) : l = e[3];
3630
+ const d = $(l), m = $(xs), g = $(Rs), b = $(Ds), f = !d;
3597
3631
  let w;
3598
- e[4] !== s || e[5] !== m ? (w = (v) => m(s, v), e[4] = s, e[5] = m, e[6] = w) : w = e[6];
3632
+ e[4] !== n || e[5] !== m ? (w = (v) => m(n, v), e[4] = n, e[5] = m, e[6] = w) : w = e[6];
3599
3633
  const S = w;
3600
3634
  let L;
3601
- e[7] !== g || e[8] !== s ? (L = (v) => g(s, v), e[7] = g, e[8] = s, e[9] = L) : L = e[9];
3635
+ e[7] !== g || e[8] !== n ? (L = (v) => g(n, v), e[7] = g, e[8] = n, e[9] = L) : L = e[9];
3602
3636
  const u = L;
3603
3637
  let p;
3604
- e[10] !== s || e[11] !== b ? (p = () => b(s), e[10] = s, e[11] = b, e[12] = p) : p = e[12];
3638
+ e[10] !== n || e[11] !== b ? (p = () => b(n), e[10] = n, e[11] = b, e[12] = p) : p = e[12];
3605
3639
  const h = p;
3606
3640
  let M;
3607
3641
  return e[13] !== t || e[14] !== i || e[15] !== a || e[16] !== f || e[17] !== S || e[18] !== u || e[19] !== h || e[20] !== o ? (M = t({
@@ -3614,21 +3648,21 @@ function Vo(n) {
3614
3648
  resetViewState: h
3615
3649
  }), e[13] = t, e[14] = i, e[15] = a, e[16] = f, e[17] = S, e[18] = u, e[19] = h, e[20] = o, e[21] = M) : M = e[21], M;
3616
3650
  }
3617
- function Fr(n) {
3618
- return n.resetViewState;
3651
+ function Ds(r) {
3652
+ return r.resetViewState;
3619
3653
  }
3620
- function Dr(n) {
3621
- return n.flyTo;
3654
+ function Rs(r) {
3655
+ return r.flyTo;
3622
3656
  }
3623
- function Rr(n) {
3624
- return n.setZoom;
3657
+ function xs(r) {
3658
+ return r.setZoom;
3625
3659
  }
3626
- async function xr({
3627
- baseUrl: n = We,
3660
+ async function $s({
3661
+ baseUrl: r = We,
3628
3662
  connection: e,
3629
3663
  accessToken: t,
3630
- query: s,
3631
- attribute: r,
3664
+ query: n,
3665
+ attribute: s,
3632
3666
  fetcherOptions: {
3633
3667
  signal: o,
3634
3668
  ...i
@@ -3637,26 +3671,26 @@ async function xr({
3637
3671
  params: l,
3638
3672
  apiVersion: d = Ke
3639
3673
  }) {
3640
- const m = `${n}/${d}/stats/${e}/${r}`;
3674
+ const m = `${r}/${d}/stats/${e}/${s}`;
3641
3675
  return $t({
3642
3676
  accessToken: t,
3643
3677
  signal: o,
3644
3678
  url: m,
3645
3679
  method: ye.get,
3646
3680
  params: {
3647
- q: s,
3681
+ q: n,
3648
3682
  ...a,
3649
3683
  ...l
3650
3684
  },
3651
3685
  ...i
3652
3686
  });
3653
3687
  }
3654
- async function $r({
3655
- baseUrl: n = We,
3688
+ async function Us({
3689
+ baseUrl: r = We,
3656
3690
  connection: e,
3657
3691
  accessToken: t,
3658
- table: s,
3659
- attribute: r,
3692
+ table: n,
3693
+ attribute: s,
3660
3694
  params: o,
3661
3695
  fetcherOptions: {
3662
3696
  signal: i,
@@ -3664,7 +3698,7 @@ async function $r({
3664
3698
  } = {},
3665
3699
  apiVersion: l = Ke
3666
3700
  }) {
3667
- const d = `${n}/${l}/stats/${e}/${s}/${r}`;
3701
+ const d = `${r}/${l}/stats/${e}/${n}/${s}`;
3668
3702
  return $t({
3669
3703
  accessToken: t,
3670
3704
  signal: i,
@@ -3676,15 +3710,15 @@ async function $r({
3676
3710
  ...a
3677
3711
  });
3678
3712
  }
3679
- function Bo(n) {
3713
+ function jo(r) {
3680
3714
  const e = I(20), {
3681
3715
  source: t,
3682
- attribute: s,
3683
- accessToken: r,
3716
+ attribute: n,
3717
+ accessToken: s,
3684
3718
  params: o,
3685
3719
  fetcherOptions: i,
3686
3720
  useQueryProps: a
3687
- } = n;
3721
+ } = r;
3688
3722
  let l;
3689
3723
  e[0] !== a ? (l = a === void 0 ? {} : a, e[0] = a, e[1] = l) : l = e[1];
3690
3724
  let d, m;
@@ -3694,15 +3728,15 @@ function Bo(n) {
3694
3728
  } = l, e[2] = l, e[3] = d, e[4] = m) : (d = e[3], m = e[4]);
3695
3729
  const g = d === void 0 ? !0 : d;
3696
3730
  let b;
3697
- e[5] !== s || e[6] !== t ? (b = [t, s], e[5] = s, e[6] = t, e[7] = b) : b = e[7];
3731
+ e[5] !== n || e[6] !== t ? (b = [t, n], e[5] = n, e[6] = t, e[7] = b) : b = e[7];
3698
3732
  let f;
3699
- e[8] !== r || e[9] !== s || e[10] !== i || e[11] !== o || e[12] !== t ? (f = () => Ur({
3733
+ e[8] !== s || e[9] !== n || e[10] !== i || e[11] !== o || e[12] !== t ? (f = () => qs({
3700
3734
  source: t,
3701
3735
  params: o,
3702
- attribute: s,
3703
- accessToken: r,
3736
+ attribute: n,
3737
+ accessToken: s,
3704
3738
  fetcherOptions: i
3705
- }), e[8] = r, e[9] = s, e[10] = i, e[11] = o, e[12] = t, e[13] = f) : f = e[13];
3739
+ }), e[8] = s, e[9] = n, e[10] = i, e[11] = o, e[12] = t, e[13] = f) : f = e[13];
3706
3740
  let w;
3707
3741
  return e[14] !== g || e[15] !== t || e[16] !== b || e[17] !== f || e[18] !== m ? (w = {
3708
3742
  queryKey: b,
@@ -3717,156 +3751,156 @@ function Bo(n) {
3717
3751
  ...m
3718
3752
  }, e[14] = g, e[15] = t, e[16] = b, e[17] = f, e[18] = m, e[19] = w) : w = e[19], _t(w);
3719
3753
  }
3720
- function Ur({
3721
- source: n,
3754
+ function qs({
3755
+ source: r,
3722
3756
  params: e,
3723
3757
  attribute: t,
3724
- accessToken: s,
3725
- fetcherOptions: r
3758
+ accessToken: n,
3759
+ fetcherOptions: s
3726
3760
  }) {
3727
- if (n.type.startsWith("query"))
3728
- return xr({
3729
- connection: n.connectionName,
3730
- baseUrl: n.apiBaseUrl,
3731
- apiVersion: n.apiVersion,
3732
- accessToken: s,
3761
+ if (r.type.startsWith("query"))
3762
+ return $s({
3763
+ connection: r.connectionName,
3764
+ baseUrl: r.apiBaseUrl,
3765
+ apiVersion: r.apiVersion,
3766
+ accessToken: n,
3733
3767
  params: e,
3734
- query: n.data,
3735
- queryParameters: n.queryParameters,
3768
+ query: r.data,
3769
+ queryParameters: r.queryParameters,
3736
3770
  attribute: t,
3737
- fetcherOptions: r
3771
+ fetcherOptions: s
3738
3772
  });
3739
- if (n.type.startsWith("table"))
3740
- return $r({
3741
- connection: n.connectionName,
3742
- baseUrl: n.apiBaseUrl,
3743
- apiVersion: n.apiVersion,
3773
+ if (r.type.startsWith("table"))
3774
+ return Us({
3775
+ connection: r.connectionName,
3776
+ baseUrl: r.apiBaseUrl,
3777
+ apiVersion: r.apiVersion,
3744
3778
  params: e,
3745
- accessToken: s,
3746
- table: n.data,
3779
+ accessToken: n,
3780
+ table: r.data,
3747
3781
  attribute: t,
3748
- fetcherOptions: r
3782
+ fetcherOptions: s
3749
3783
  });
3750
- if (n.type.startsWith("tileset"))
3751
- return qr({
3752
- source: n,
3753
- accessToken: s,
3754
- target: n.data,
3784
+ if (r.type.startsWith("tileset"))
3785
+ return Vs({
3786
+ source: r,
3787
+ accessToken: n,
3788
+ target: r.data,
3755
3789
  attribute: t
3756
3790
  });
3757
- throw new Error(`Unsupported source type: ${n.type}`);
3791
+ throw new Error(`Unsupported source type: ${r.type}`);
3758
3792
  }
3759
- async function qr({
3760
- source: n,
3793
+ async function Vs({
3794
+ source: r,
3761
3795
  accessToken: e,
3762
3796
  target: t,
3763
- attribute: s
3797
+ attribute: n
3764
3798
  }) {
3765
- const r = await wn({
3766
- connectionName: n.connectionName,
3767
- apiBaseUrl: n.apiBaseUrl,
3799
+ const s = await wn({
3800
+ connectionName: r.connectionName,
3801
+ apiBaseUrl: r.apiBaseUrl,
3768
3802
  accessToken: e,
3769
- clientId: n.clientId,
3803
+ clientId: r.clientId,
3770
3804
  tableName: t
3771
3805
  });
3772
- if (!r?.tilestats?.layers?.[0]?.attributes)
3773
- throw new Error(`${s} not found in tileset attributes`);
3774
- const i = r.tilestats.layers[0].attributes.find((a) => a.attribute === s);
3806
+ if (!s?.tilestats?.layers?.[0]?.attributes)
3807
+ throw new Error(`${n} not found in tileset attributes`);
3808
+ const i = s.tilestats.layers[0].attributes.find((a) => a.attribute === n);
3775
3809
  if (!i)
3776
- throw new Error(`${s} not found in tileset attributes`);
3810
+ throw new Error(`${n} not found in tileset attributes`);
3777
3811
  return i;
3778
3812
  }
3779
3813
  export {
3780
- yo as AggregationsModel,
3781
- lo as BasemapsControls,
3814
+ ho as AggregationsModel,
3815
+ co as BasemapsControls,
3782
3816
  it as CONVERSIONS_UNITS,
3783
3817
  Re as CartoBasemapURL,
3784
- re as CartoBasemaps,
3785
- go as CategoriesModel,
3818
+ se as CartoBasemaps,
3819
+ bo as CategoriesModel,
3786
3820
  Jn as CustomCompositeEditMode,
3787
3821
  Ct as CustomEditableGeojsonLayer,
3788
- ds as CustomMeasureAreaMode,
3789
- fs as CustomMeasureBufferMode,
3822
+ dr as CustomMeasureAreaMode,
3823
+ fr as CustomMeasureBufferMode,
3790
3824
  Ft as CustomMeasureDistanceMode,
3791
3825
  tt as DEFAULT_LASSO_TOOLS_COLORS,
3792
3826
  Qn as DEFAULT_LASSO_TOOLS_LAYER_PROPS,
3793
3827
  Ue as DEFAULT_LASSO_TOOLS_MODES,
3794
3828
  $e as DEFAULT_LASSO_TOOLS_PROPS,
3795
3829
  _e as DEFAULT_MASK_LAYER_PROPS,
3796
- hs as DEFAULT_MEASUREMENT_TOOLS_MODES,
3797
- gs as DEFAULT_MEASUREMENT_TOOLS_UNITS,
3830
+ hr as DEFAULT_MEASUREMENT_TOOLS_MODES,
3831
+ gr as DEFAULT_MEASUREMENT_TOOLS_UNITS,
3798
3832
  qe as DEFAULT_MEASURE_COLORS,
3799
3833
  Un as DeckGLComponent,
3800
3834
  te as EditableEditType,
3801
- So as FeaturesModel,
3802
- wo as FormulaModel,
3835
+ vo as FeaturesModel,
3836
+ Mo as FormulaModel,
3803
3837
  De as GmapsBasemap,
3804
- _o as HistogramModel,
3838
+ Eo as HistogramModel,
3805
3839
  ge as INTL_UNITS,
3806
- Ss as LassoTools,
3807
- is as LassoToolsProvider,
3840
+ Sr as LassoTools,
3841
+ ir as LassoToolsProvider,
3808
3842
  be as MAPS_BASEMAP,
3809
3843
  pe as MAP_LASSO_TOOLS_LAYER_ID,
3810
3844
  Ce as MAP_MASK_LAYER_ID,
3811
3845
  ce as MAP_MEASURE_LAYER_ID,
3812
- ys as MEASUREMENT_TOOLS_UNITS_AREA,
3846
+ yr as MEASUREMENT_TOOLS_UNITS_AREA,
3813
3847
  lt as MEASUREMENT_TOOLS_UNITS_DISTANCE,
3814
3848
  X as MEASUREMENT_TOOLS_UNITS_DISTANCE_VALUES,
3815
- uo as MapComponent,
3849
+ fo as MapComponent,
3816
3850
  je as MapMeasurementUnitAuto,
3817
- ms as MapMeasurementUnitTurf,
3851
+ mr as MapMeasurementUnitTurf,
3818
3852
  Kn as MapProvider,
3819
- Do as MapsProvider,
3853
+ Ro as MapsProvider,
3820
3854
  ie as MapsTypes,
3821
- Rs as MeasurementTools,
3822
- _s as MeasurementToolsProvider,
3823
- To as RangeModel,
3824
- ko as ScatterModel,
3825
- Po as TableModel,
3826
- Ao as TimeSeriesModel,
3827
- Vo as ZoomControls,
3828
- Fo as clientID,
3829
- st as convertMetersTo,
3830
- os as createLassoToolsStore,
3855
+ Rr as MeasurementTools,
3856
+ _r as MeasurementToolsProvider,
3857
+ Lo as RangeModel,
3858
+ Co as ScatterModel,
3859
+ Oo as TableModel,
3860
+ Fo as TimeSeriesModel,
3861
+ Bo as ZoomControls,
3862
+ Do as clientID,
3863
+ rt as convertMetersTo,
3864
+ or as createLassoToolsStore,
3831
3865
  Wn as createMapStore,
3832
- Ms as createMeasurementToolsStore,
3866
+ Mr as createMeasurementToolsStore,
3833
3867
  fe as formatterTypes,
3834
3868
  En as getCursorDefault,
3835
- co as getDeckController,
3836
- po as getFilterValues,
3837
- ss as getLassoToolsLayer,
3838
- vs as getMeasurementToolsLayer,
3869
+ uo as getDeckController,
3870
+ mo as getFilterValues,
3871
+ rr as getLassoToolsLayer,
3872
+ vr as getMeasurementToolsLayer,
3839
3873
  Pe as getTextLayerFormattedDistance,
3840
3874
  Tn as getTooltipDefault,
3841
- qo as mappingLegendMeridian,
3842
- Uo as objectToHtml,
3875
+ Vo as mappingLegendMeridian,
3876
+ qo as objectToHtml,
3843
3877
  xt as sortLayers,
3844
3878
  Bn as transitionFlyConfig,
3845
- mo as useAggregations,
3846
- ho as useCategories,
3879
+ yo as useAggregations,
3880
+ go as useCategories,
3847
3881
  kt as useEventManager,
3848
- bo as useFeatures,
3849
- ur as useFilters,
3850
- vo as useFormula,
3851
- Mo as useHistogram,
3852
- wr as useLassoToolsSpatialFilter,
3882
+ So as useFeatures,
3883
+ us as useFilters,
3884
+ wo as useFormula,
3885
+ _o as useHistogram,
3886
+ Ms as useLassoToolsSpatialFilter,
3853
3887
  W as useLassoToolsState,
3854
3888
  he as useLayerStore,
3855
- js as useLayers,
3856
- Ro as useLegend,
3857
- xo as useMapScreenshot,
3889
+ jr as useLayers,
3890
+ xo as useLegend,
3891
+ $o as useMapScreenshot,
3858
3892
  $ as useMapStore,
3859
3893
  G as useMeasurementToolsState,
3860
- Eo as useRange,
3861
- Lo as useScatter,
3862
- cr as useSource,
3894
+ To as useRange,
3895
+ ko as useScatter,
3896
+ cs as useSource,
3863
3897
  ke as useSourceStore,
3864
- fo as useSourceWithFilters,
3865
- $o as useSpatialFilter,
3866
- Bo as useStats,
3867
- Co as useTable,
3868
- Oo as useTimeSeries,
3869
- vr as useViewportSpatialFilter,
3870
- hr as useWidgetModel
3898
+ po as useSourceWithFilters,
3899
+ Uo as useSpatialFilter,
3900
+ jo as useStats,
3901
+ Po as useTable,
3902
+ Ao as useTimeSeries,
3903
+ ws as useViewportSpatialFilter,
3904
+ hs as useWidgetModel
3871
3905
  };
3872
3906
  //# sourceMappingURL=index.js.map