@carto/ps-react-maps 1.6.0 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,28 +1,27 @@
1
- import Qe, { createContext as K, useContext as X, useCallback as M, useReducer as et, useRef as ie, useMemo as Zt, useEffect as tt } from "react";
2
- import { EventManager as Jt } from "mjolnir.js";
3
- import { EditableGeoJsonLayer as Kt } from "@nebula.gl/layers";
4
- import { MeasureDistanceMode as Xt } from "@nebula.gl/edit-modes";
5
- import Qt from "convert-units";
6
- var er = /* @__PURE__ */ ((t) => (t.Roadmap = "roadmap", t.Satellite = "satellite", t.Hybrid = "hybrid", t))(er || {}), tr = /* @__PURE__ */ ((t) => (t.DarkMatter = "dark-matter", t.Positron = "positron", t.Voyager = "voyager", t))(tr || {});
7
- const ge = {
1
+ import tt, { createContext as Q, useContext as ee, useCallback as M, useReducer as rt, useRef as se, useMemo as Qt, useEffect as nt } from "react";
2
+ import { EventManager as er } from "mjolnir.js";
3
+ import { EditableGeoJsonLayer as tr, MeasureDistanceMode as rr } from "@deck.gl-community/editable-layers";
4
+ import nr from "convert-units";
5
+ var ar = /* @__PURE__ */ ((t) => (t.Roadmap = "roadmap", t.Satellite = "satellite", t.Hybrid = "hybrid", t))(ar || {}), or = /* @__PURE__ */ ((t) => (t.DarkMatter = "dark-matter", t.Positron = "positron", t.Voyager = "voyager", t))(or || {});
6
+ const he = {
8
7
  positron: "https://basemaps.cartocdn.com/gl/positron-gl-style/style.json",
9
8
  voyager: "https://basemaps.cartocdn.com/gl/voyager-gl-style/style.json",
10
9
  "dark-matter": "https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json"
11
10
  };
12
- var rt = /* @__PURE__ */ ((t) => (t.Maplibre = "maplibre", t.GoogleMaps = "google-maps", t))(rt || {});
13
- const ye = {
11
+ var at = /* @__PURE__ */ ((t) => (t.Maplibre = "maplibre", t.GoogleMaps = "google-maps", t))(at || {});
12
+ const Ee = {
14
13
  positron: {
15
- url: ge.positron,
14
+ url: he.positron,
16
15
  type: "maplibre"
17
16
  /* Maplibre */
18
17
  },
19
18
  voyager: {
20
- url: ge.voyager,
19
+ url: he.voyager,
21
20
  type: "maplibre"
22
21
  /* Maplibre */
23
22
  },
24
23
  "dark-matter": {
25
- url: ge[
24
+ url: he[
26
25
  "dark-matter"
27
26
  /* DarkMatter */
28
27
  ],
@@ -41,7 +40,7 @@ const ye = {
41
40
  type: "google-maps"
42
41
  /* GoogleMaps */
43
42
  }
44
- }, W = () => {
43
+ }, z = () => {
45
44
  throw new Error("You forgot to wrap your component in <MapProvider>.");
46
45
  }, Z = {
47
46
  state: {
@@ -53,19 +52,19 @@ const ye = {
53
52
  },
54
53
  actions: {
55
54
  // toggleSync: stub,
56
- setViewState: W,
57
- setBasemap: W,
58
- setResize: W,
59
- setZoom: W,
60
- setLoaded: W
55
+ setViewState: z,
56
+ setBasemap: z,
57
+ setResize: z,
58
+ setZoom: z,
59
+ setLoaded: z
61
60
  }
62
- }, nt = K(
61
+ }, ot = Q(
63
62
  Z.state
64
- ), at = K(Z.references), ot = K(
63
+ ), it = Q(Z.references), st = Q(
65
64
  Z.actions
66
65
  );
67
- var L = /* @__PURE__ */ ((t) => (t.SetViewState = "SetViewState", t.SetBasemap = "SetBasemap", t.SetResize = "SetResize", t.SetZoom = "SetZoom", t.SetLoaded = "SetLoaded", t))(L || {});
68
- function rr(t, { type: r, payload: a }) {
66
+ var F = /* @__PURE__ */ ((t) => (t.SetViewState = "SetViewState", t.SetBasemap = "SetBasemap", t.SetResize = "SetResize", t.SetZoom = "SetZoom", t.SetLoaded = "SetLoaded", t))(F || {});
67
+ function ir(t, { type: r, payload: a }) {
69
68
  return {
70
69
  SetViewState: () => {
71
70
  const { id: o, viewState: l } = a, f = { ...t.maps };
@@ -81,18 +80,15 @@ function rr(t, { type: r, payload: a }) {
81
80
  const { id: o, width: l, height: f } = a, y = { ...t.maps };
82
81
  return y[o] = {
83
82
  ...t.maps[o],
84
- viewState: {
85
- ...t.maps[o].viewState,
86
- width: l,
87
- height: f
88
- }
83
+ width: l,
84
+ height: f
89
85
  }, {
90
86
  ...t,
91
87
  maps: y
92
88
  };
93
89
  },
94
90
  SetBasemap: () => {
95
- const { id: o, basemap: l } = a, f = { ...t.maps }, { basemap: y } = f[o], c = ye[y]?.type, E = ye[l]?.type, p = c === E;
91
+ const { id: o, basemap: l } = a, f = { ...t.maps }, { basemap: y } = f[o], c = Ee[y]?.type, E = Ee[l]?.type, p = c === E;
96
92
  return f[o] = {
97
93
  ...t.maps[o],
98
94
  basemap: l,
@@ -127,11 +123,11 @@ function rr(t, { type: r, payload: a }) {
127
123
  }
128
124
  }[r]?.() ?? t;
129
125
  }
130
- function be(t) {
131
- return X(nt).maps[t];
126
+ function Se(t) {
127
+ return ee(ot).maps[t];
132
128
  }
133
- function _e(t) {
134
- const r = X(at), { instanceRef: a, overlayRef: s } = r.current[t], o = M(() => {
129
+ function Re(t) {
130
+ const r = ee(it), { instanceRef: a, overlayRef: s } = r.current[t], o = M(() => {
135
131
  const E = a?.current;
136
132
  return E?.deck || E?._deck;
137
133
  }, [a]), l = M(() => s?.current, [s]), f = M(() => o()?._getViewState(), [o]), y = M(
@@ -151,8 +147,8 @@ function _e(t) {
151
147
  getViewports: y
152
148
  };
153
149
  }
154
- function nr(t) {
155
- const { setBasemap: r, setResize: a, setViewState: s, setZoom: o, setLoaded: l } = X(ot), { getViewport: f } = _e(t);
150
+ function sr(t) {
151
+ const { setBasemap: r, setResize: a, setViewState: s, setZoom: o, setLoaded: l } = ee(st), { getViewport: f } = Re(t);
156
152
  return {
157
153
  setBasemap: (c) => r(c, t),
158
154
  setResize: (c) => a(c, t),
@@ -163,27 +159,27 @@ function nr(t) {
163
159
  boundsOptions: E,
164
160
  viewStateOptions: p
165
161
  } = {}) => {
166
- const b = f(), { latitude: O, longitude: g, zoom: h } = b.fitBounds(
162
+ const b = f(), { latitude: O, longitude: v, zoom: h } = b.fitBounds(
167
163
  c,
168
164
  E
169
165
  );
170
- s({ ...p, latitude: O, longitude: g, zoom: h }, t);
166
+ s({ ...p, latitude: O, longitude: v, zoom: h }, t);
171
167
  }
172
168
  };
173
169
  }
174
- function qr(t) {
175
- return be(t);
176
- }
177
- function Gr(t) {
178
- return _e(t);
170
+ function Jr(t) {
171
+ return Se(t);
179
172
  }
180
173
  function Zr(t) {
181
- return nr(t);
174
+ return Re(t);
182
175
  }
183
- function ar(t) {
176
+ function Xr(t) {
177
+ return sr(t);
178
+ }
179
+ function cr(t) {
184
180
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
185
181
  }
186
- var he = { exports: {} }, H = {};
182
+ var be = { exports: {} }, K = {};
187
183
  /**
188
184
  * @license React
189
185
  * react-jsx-runtime.production.min.js
@@ -193,25 +189,25 @@ var he = { exports: {} }, H = {};
193
189
  * This source code is licensed under the MIT license found in the
194
190
  * LICENSE file in the root directory of this source tree.
195
191
  */
196
- var qe;
197
- function or() {
198
- if (qe)
199
- return H;
200
- qe = 1;
201
- var t = Qe, r = Symbol.for("react.element"), a = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, o = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, l = { key: !0, ref: !0, __self: !0, __source: !0 };
192
+ var Ge;
193
+ function ur() {
194
+ if (Ge)
195
+ return K;
196
+ Ge = 1;
197
+ var t = tt, r = Symbol.for("react.element"), a = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, o = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, l = { key: !0, ref: !0, __self: !0, __source: !0 };
202
198
  function f(y, c, E) {
203
- var p, b = {}, O = null, g = null;
204
- E !== void 0 && (O = "" + E), c.key !== void 0 && (O = "" + c.key), c.ref !== void 0 && (g = c.ref);
199
+ var p, b = {}, O = null, v = null;
200
+ E !== void 0 && (O = "" + E), c.key !== void 0 && (O = "" + c.key), c.ref !== void 0 && (v = c.ref);
205
201
  for (p in c)
206
202
  s.call(c, p) && !l.hasOwnProperty(p) && (b[p] = c[p]);
207
203
  if (y && y.defaultProps)
208
204
  for (p in c = y.defaultProps, c)
209
205
  b[p] === void 0 && (b[p] = c[p]);
210
- return { $$typeof: r, type: y, key: O, ref: g, props: b, _owner: o.current };
206
+ return { $$typeof: r, type: y, key: O, ref: v, props: b, _owner: o.current };
211
207
  }
212
- return H.Fragment = a, H.jsx = f, H.jsxs = f, H;
208
+ return K.Fragment = a, K.jsx = f, K.jsxs = f, K;
213
209
  }
214
- var z = {};
210
+ var q = {};
215
211
  /**
216
212
  * @license React
217
213
  * react-jsx-runtime.development.js
@@ -221,57 +217,57 @@ var z = {};
221
217
  * This source code is licensed under the MIT license found in the
222
218
  * LICENSE file in the root directory of this source tree.
223
219
  */
224
- var Ge;
225
- function ir() {
226
- return Ge || (Ge = 1, process.env.NODE_ENV !== "production" && function() {
227
- var t = Qe, r = Symbol.for("react.element"), a = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), f = Symbol.for("react.provider"), y = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), E = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), O = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), h = Symbol.iterator, x = "@@iterator";
228
- function F(e) {
220
+ var Je;
221
+ function lr() {
222
+ return Je || (Je = 1, process.env.NODE_ENV !== "production" && function() {
223
+ var t = tt, r = Symbol.for("react.element"), a = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), f = Symbol.for("react.provider"), y = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), E = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), O = Symbol.for("react.lazy"), v = Symbol.for("react.offscreen"), h = Symbol.iterator, x = "@@iterator";
224
+ function k(e) {
229
225
  if (e === null || typeof e != "object")
230
226
  return null;
231
227
  var n = h && e[h] || e[x];
232
228
  return typeof n == "function" ? n : null;
233
229
  }
234
- var j = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
235
- function T(e) {
230
+ var D = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
231
+ function R(e) {
236
232
  {
237
233
  for (var n = arguments.length, i = new Array(n > 1 ? n - 1 : 0), u = 1; u < n; u++)
238
234
  i[u - 1] = arguments[u];
239
- Q("error", e, i);
235
+ te("error", e, i);
240
236
  }
241
237
  }
242
- function Q(e, n, i) {
238
+ function te(e, n, i) {
243
239
  {
244
- var u = j.ReactDebugCurrentFrame, v = u.getStackAddendum();
245
- v !== "" && (n += "%s", i = i.concat([v]));
240
+ var u = D.ReactDebugCurrentFrame, g = u.getStackAddendum();
241
+ g !== "" && (n += "%s", i = i.concat([g]));
246
242
  var _ = i.map(function(m) {
247
243
  return String(m);
248
244
  });
249
245
  _.unshift("Warning: " + n), Function.prototype.apply.call(console[e], console, _);
250
246
  }
251
247
  }
252
- var yt = !1, ht = !1, Et = !1, bt = !1, _t = !1, Re;
253
- Re = Symbol.for("react.module.reference");
254
- function St(e) {
255
- return !!(typeof e == "string" || typeof e == "function" || e === s || e === l || _t || e === o || e === E || e === p || bt || e === g || yt || ht || Et || typeof e == "object" && e !== null && (e.$$typeof === O || e.$$typeof === b || e.$$typeof === f || e.$$typeof === y || e.$$typeof === c || // This needs to include all possible module reference object
248
+ var Et = !1, bt = !1, _t = !1, St = !1, Rt = !1, Me;
249
+ Me = Symbol.for("react.module.reference");
250
+ function Tt(e) {
251
+ return !!(typeof e == "string" || typeof e == "function" || e === s || e === l || Rt || e === o || e === E || e === p || St || e === v || Et || bt || _t || typeof e == "object" && e !== null && (e.$$typeof === O || e.$$typeof === b || e.$$typeof === f || e.$$typeof === y || e.$$typeof === c || // This needs to include all possible module reference object
256
252
  // types supported by any Flight configuration anywhere since
257
253
  // we don't know which Flight build this will end up being used
258
254
  // with.
259
- e.$$typeof === Re || e.getModuleId !== void 0));
255
+ e.$$typeof === Me || e.getModuleId !== void 0));
260
256
  }
261
- function Rt(e, n, i) {
257
+ function Mt(e, n, i) {
262
258
  var u = e.displayName;
263
259
  if (u)
264
260
  return u;
265
- var v = n.displayName || n.name || "";
266
- return v !== "" ? i + "(" + v + ")" : i;
261
+ var g = n.displayName || n.name || "";
262
+ return g !== "" ? i + "(" + g + ")" : i;
267
263
  }
268
- function Te(e) {
264
+ function Oe(e) {
269
265
  return e.displayName || "Context";
270
266
  }
271
267
  function A(e) {
272
268
  if (e == null)
273
269
  return null;
274
- if (typeof e.tag == "number" && T("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
270
+ if (typeof e.tag == "number" && R("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
275
271
  return e.displayName || e.name || null;
276
272
  if (typeof e == "string")
277
273
  return e;
@@ -293,17 +289,17 @@ function ir() {
293
289
  switch (e.$$typeof) {
294
290
  case y:
295
291
  var n = e;
296
- return Te(n) + ".Consumer";
292
+ return Oe(n) + ".Consumer";
297
293
  case f:
298
294
  var i = e;
299
- return Te(i._context) + ".Provider";
295
+ return Oe(i._context) + ".Provider";
300
296
  case c:
301
- return Rt(e, e.render, "ForwardRef");
297
+ return Mt(e, e.render, "ForwardRef");
302
298
  case b:
303
299
  var u = e.displayName || null;
304
300
  return u !== null ? u : A(e.type) || "Memo";
305
301
  case O: {
306
- var v = e, _ = v._payload, m = v._init;
302
+ var g = e, _ = g._payload, m = g._init;
307
303
  try {
308
304
  return A(m(_));
309
305
  } catch {
@@ -313,18 +309,18 @@ function ir() {
313
309
  }
314
310
  return null;
315
311
  }
316
- var I = Object.assign, Y = 0, Me, Oe, Pe, Ce, we, xe, je;
317
- function Ae() {
312
+ var I = Object.assign, B = 0, Pe, Ce, we, je, xe, Ae, De;
313
+ function ke() {
318
314
  }
319
- Ae.__reactDisabledLog = !0;
320
- function Tt() {
315
+ ke.__reactDisabledLog = !0;
316
+ function Ot() {
321
317
  {
322
- if (Y === 0) {
323
- Me = console.log, Oe = console.info, Pe = console.warn, Ce = console.error, we = console.group, xe = console.groupCollapsed, je = console.groupEnd;
318
+ if (B === 0) {
319
+ Pe = console.log, Ce = console.info, we = console.warn, je = console.error, xe = console.group, Ae = console.groupCollapsed, De = console.groupEnd;
324
320
  var e = {
325
321
  configurable: !0,
326
322
  enumerable: !0,
327
- value: Ae,
323
+ value: ke,
328
324
  writable: !0
329
325
  };
330
326
  Object.defineProperties(console, {
@@ -337,12 +333,12 @@ function ir() {
337
333
  groupEnd: e
338
334
  });
339
335
  }
340
- Y++;
336
+ B++;
341
337
  }
342
338
  }
343
- function Mt() {
339
+ function Pt() {
344
340
  {
345
- if (Y--, Y === 0) {
341
+ if (B--, B === 0) {
346
342
  var e = {
347
343
  configurable: !0,
348
344
  enumerable: !0,
@@ -350,64 +346,64 @@ function ir() {
350
346
  };
351
347
  Object.defineProperties(console, {
352
348
  log: I({}, e, {
353
- value: Me
349
+ value: Pe
354
350
  }),
355
351
  info: I({}, e, {
356
- value: Oe
352
+ value: Ce
357
353
  }),
358
354
  warn: I({}, e, {
359
- value: Pe
355
+ value: we
360
356
  }),
361
357
  error: I({}, e, {
362
- value: Ce
358
+ value: je
363
359
  }),
364
360
  group: I({}, e, {
365
- value: we
361
+ value: xe
366
362
  }),
367
363
  groupCollapsed: I({}, e, {
368
- value: xe
364
+ value: Ae
369
365
  }),
370
366
  groupEnd: I({}, e, {
371
- value: je
367
+ value: De
372
368
  })
373
369
  });
374
370
  }
375
- Y < 0 && T("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
371
+ B < 0 && R("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
376
372
  }
377
373
  }
378
- var ce = j.ReactCurrentDispatcher, ue;
379
- function ee(e, n, i) {
374
+ var ue = D.ReactCurrentDispatcher, le;
375
+ function re(e, n, i) {
380
376
  {
381
- if (ue === void 0)
377
+ if (le === void 0)
382
378
  try {
383
379
  throw Error();
384
- } catch (v) {
385
- var u = v.stack.trim().match(/\n( *(at )?)/);
386
- ue = u && u[1] || "";
380
+ } catch (g) {
381
+ var u = g.stack.trim().match(/\n( *(at )?)/);
382
+ le = u && u[1] || "";
387
383
  }
388
384
  return `
389
- ` + ue + e;
385
+ ` + le + e;
390
386
  }
391
387
  }
392
- var le = !1, te;
388
+ var fe = !1, ne;
393
389
  {
394
- var Ot = typeof WeakMap == "function" ? WeakMap : Map;
395
- te = new Ot();
390
+ var Ct = typeof WeakMap == "function" ? WeakMap : Map;
391
+ ne = new Ct();
396
392
  }
397
- function De(e, n) {
398
- if (!e || le)
393
+ function Fe(e, n) {
394
+ if (!e || fe)
399
395
  return "";
400
396
  {
401
- var i = te.get(e);
397
+ var i = ne.get(e);
402
398
  if (i !== void 0)
403
399
  return i;
404
400
  }
405
401
  var u;
406
- le = !0;
407
- var v = Error.prepareStackTrace;
402
+ fe = !0;
403
+ var g = Error.prepareStackTrace;
408
404
  Error.prepareStackTrace = void 0;
409
405
  var _;
410
- _ = ce.current, ce.current = null, Tt();
406
+ _ = ue.current, ue.current = null, Ot();
411
407
  try {
412
408
  if (n) {
413
409
  var m = function() {
@@ -420,98 +416,98 @@ function ir() {
420
416
  }), typeof Reflect == "object" && Reflect.construct) {
421
417
  try {
422
418
  Reflect.construct(m, []);
423
- } catch (D) {
424
- u = D;
419
+ } catch (w) {
420
+ u = w;
425
421
  }
426
422
  Reflect.construct(e, [], m);
427
423
  } else {
428
424
  try {
429
425
  m.call();
430
- } catch (D) {
431
- u = D;
426
+ } catch (w) {
427
+ u = w;
432
428
  }
433
429
  e.call(m.prototype);
434
430
  }
435
431
  } else {
436
432
  try {
437
433
  throw Error();
438
- } catch (D) {
439
- u = D;
434
+ } catch (w) {
435
+ u = w;
440
436
  }
441
437
  e();
442
438
  }
443
- } catch (D) {
444
- if (D && u && typeof D.stack == "string") {
445
- for (var d = D.stack.split(`
439
+ } catch (w) {
440
+ if (w && u && typeof w.stack == "string") {
441
+ for (var d = w.stack.split(`
446
442
  `), P = u.stack.split(`
447
- `), S = d.length - 1, R = P.length - 1; S >= 1 && R >= 0 && d[S] !== P[R]; )
448
- R--;
449
- for (; S >= 1 && R >= 0; S--, R--)
450
- if (d[S] !== P[R]) {
451
- if (S !== 1 || R !== 1)
443
+ `), S = d.length - 1, T = P.length - 1; S >= 1 && T >= 0 && d[S] !== P[T]; )
444
+ T--;
445
+ for (; S >= 1 && T >= 0; S--, T--)
446
+ if (d[S] !== P[T]) {
447
+ if (S !== 1 || T !== 1)
452
448
  do
453
- if (S--, R--, R < 0 || d[S] !== P[R]) {
454
- var w = `
449
+ if (S--, T--, T < 0 || d[S] !== P[T]) {
450
+ var j = `
455
451
  ` + d[S].replace(" at new ", " at ");
456
- return e.displayName && w.includes("<anonymous>") && (w = w.replace("<anonymous>", e.displayName)), typeof e == "function" && te.set(e, w), w;
452
+ return e.displayName && j.includes("<anonymous>") && (j = j.replace("<anonymous>", e.displayName)), typeof e == "function" && ne.set(e, j), j;
457
453
  }
458
- while (S >= 1 && R >= 0);
454
+ while (S >= 1 && T >= 0);
459
455
  break;
460
456
  }
461
457
  }
462
458
  } finally {
463
- le = !1, ce.current = _, Mt(), Error.prepareStackTrace = v;
459
+ fe = !1, ue.current = _, Pt(), Error.prepareStackTrace = g;
464
460
  }
465
- var U = e ? e.displayName || e.name : "", ze = U ? ee(U) : "";
466
- return typeof e == "function" && te.set(e, ze), ze;
461
+ var V = e ? e.displayName || e.name : "", N = V ? re(V) : "";
462
+ return typeof e == "function" && ne.set(e, N), N;
467
463
  }
468
- function Pt(e, n, i) {
469
- return De(e, !1);
464
+ function wt(e, n, i) {
465
+ return Fe(e, !1);
470
466
  }
471
- function Ct(e) {
467
+ function jt(e) {
472
468
  var n = e.prototype;
473
469
  return !!(n && n.isReactComponent);
474
470
  }
475
- function re(e, n, i) {
471
+ function ae(e, n, i) {
476
472
  if (e == null)
477
473
  return "";
478
474
  if (typeof e == "function")
479
- return De(e, Ct(e));
475
+ return Fe(e, jt(e));
480
476
  if (typeof e == "string")
481
- return ee(e);
477
+ return re(e);
482
478
  switch (e) {
483
479
  case E:
484
- return ee("Suspense");
480
+ return re("Suspense");
485
481
  case p:
486
- return ee("SuspenseList");
482
+ return re("SuspenseList");
487
483
  }
488
484
  if (typeof e == "object")
489
485
  switch (e.$$typeof) {
490
486
  case c:
491
- return Pt(e.render);
487
+ return wt(e.render);
492
488
  case b:
493
- return re(e.type, n, i);
489
+ return ae(e.type, n, i);
494
490
  case O: {
495
- var u = e, v = u._payload, _ = u._init;
491
+ var u = e, g = u._payload, _ = u._init;
496
492
  try {
497
- return re(_(v), n, i);
493
+ return ae(_(g), n, i);
498
494
  } catch {
499
495
  }
500
496
  }
501
497
  }
502
498
  return "";
503
499
  }
504
- var ne = Object.prototype.hasOwnProperty, Fe = {}, Le = j.ReactDebugCurrentFrame;
505
- function ae(e) {
500
+ var W = Object.prototype.hasOwnProperty, Le = {}, Ie = D.ReactDebugCurrentFrame;
501
+ function oe(e) {
506
502
  if (e) {
507
- var n = e._owner, i = re(e.type, e._source, n ? n.type : null);
508
- Le.setExtraStackFrame(i);
503
+ var n = e._owner, i = ae(e.type, e._source, n ? n.type : null);
504
+ Ie.setExtraStackFrame(i);
509
505
  } else
510
- Le.setExtraStackFrame(null);
506
+ Ie.setExtraStackFrame(null);
511
507
  }
512
- function wt(e, n, i, u, v) {
508
+ function xt(e, n, i, u, g) {
513
509
  {
514
- var _ = Function.call.bind(ne);
510
+ var _ = Function.call.bind(W);
515
511
  for (var m in e)
516
512
  if (_(e, m)) {
517
513
  var d = void 0;
@@ -524,67 +520,67 @@ function ir() {
524
520
  } catch (S) {
525
521
  d = S;
526
522
  }
527
- d && !(d instanceof Error) && (ae(v), T("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", u || "React class", i, m, typeof d), ae(null)), d instanceof Error && !(d.message in Fe) && (Fe[d.message] = !0, ae(v), T("Failed %s type: %s", i, d.message), ae(null));
523
+ d && !(d instanceof Error) && (oe(g), R("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", u || "React class", i, m, typeof d), oe(null)), d instanceof Error && !(d.message in Le) && (Le[d.message] = !0, oe(g), R("Failed %s type: %s", i, d.message), oe(null));
528
524
  }
529
525
  }
530
526
  }
531
- var xt = Array.isArray;
532
- function fe(e) {
533
- return xt(e);
527
+ var At = Array.isArray;
528
+ function de(e) {
529
+ return At(e);
534
530
  }
535
- function jt(e) {
531
+ function Dt(e) {
536
532
  {
537
533
  var n = typeof Symbol == "function" && Symbol.toStringTag, i = n && e[Symbol.toStringTag] || e.constructor.name || "Object";
538
534
  return i;
539
535
  }
540
536
  }
541
- function At(e) {
537
+ function kt(e) {
542
538
  try {
543
- return ke(e), !1;
539
+ return Ne(e), !1;
544
540
  } catch {
545
541
  return !0;
546
542
  }
547
543
  }
548
- function ke(e) {
544
+ function Ne(e) {
549
545
  return "" + e;
550
546
  }
551
- function Ie(e) {
552
- if (At(e))
553
- return T("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", jt(e)), ke(e);
547
+ function Ue(e) {
548
+ if (kt(e))
549
+ return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Dt(e)), Ne(e);
554
550
  }
555
- var B = j.ReactCurrentOwner, Dt = {
551
+ var H = D.ReactCurrentOwner, Ft = {
556
552
  key: !0,
557
553
  ref: !0,
558
554
  __self: !0,
559
555
  __source: !0
560
- }, Ne, Ue, de;
561
- de = {};
562
- function Ft(e) {
563
- if (ne.call(e, "ref")) {
556
+ }, Ve, $e, me;
557
+ me = {};
558
+ function Lt(e) {
559
+ if (W.call(e, "ref")) {
564
560
  var n = Object.getOwnPropertyDescriptor(e, "ref").get;
565
561
  if (n && n.isReactWarning)
566
562
  return !1;
567
563
  }
568
564
  return e.ref !== void 0;
569
565
  }
570
- function Lt(e) {
571
- if (ne.call(e, "key")) {
566
+ function It(e) {
567
+ if (W.call(e, "key")) {
572
568
  var n = Object.getOwnPropertyDescriptor(e, "key").get;
573
569
  if (n && n.isReactWarning)
574
570
  return !1;
575
571
  }
576
572
  return e.key !== void 0;
577
573
  }
578
- function kt(e, n) {
579
- if (typeof e.ref == "string" && B.current && n && B.current.stateNode !== n) {
580
- var i = A(B.current.type);
581
- de[i] || (T('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', A(B.current.type), e.ref), de[i] = !0);
574
+ function Nt(e, n) {
575
+ if (typeof e.ref == "string" && H.current && n && H.current.stateNode !== n) {
576
+ var i = A(H.current.type);
577
+ me[i] || (R('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', A(H.current.type), e.ref), me[i] = !0);
582
578
  }
583
579
  }
584
- function It(e, n) {
580
+ function Ut(e, n) {
585
581
  {
586
582
  var i = function() {
587
- Ne || (Ne = !0, T("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", n));
583
+ Ve || (Ve = !0, R("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", n));
588
584
  };
589
585
  i.isReactWarning = !0, Object.defineProperty(e, "key", {
590
586
  get: i,
@@ -592,10 +588,10 @@ function ir() {
592
588
  });
593
589
  }
594
590
  }
595
- function Nt(e, n) {
591
+ function Vt(e, n) {
596
592
  {
597
593
  var i = function() {
598
- Ue || (Ue = !0, T("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", n));
594
+ $e || ($e = !0, R("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", n));
599
595
  };
600
596
  i.isReactWarning = !0, Object.defineProperty(e, "ref", {
601
597
  get: i,
@@ -603,7 +599,7 @@ function ir() {
603
599
  });
604
600
  }
605
601
  }
606
- var Ut = function(e, n, i, u, v, _, m) {
602
+ var $t = function(e, n, i, u, g, _, m) {
607
603
  var d = {
608
604
  // This tag allows us to uniquely identify this as a React Element
609
605
  $$typeof: r,
@@ -629,44 +625,44 @@ function ir() {
629
625
  configurable: !1,
630
626
  enumerable: !1,
631
627
  writable: !1,
632
- value: v
628
+ value: g
633
629
  }), Object.freeze && (Object.freeze(d.props), Object.freeze(d)), d;
634
630
  };
635
- function Vt(e, n, i, u, v) {
631
+ function Yt(e, n, i, u, g) {
636
632
  {
637
633
  var _, m = {}, d = null, P = null;
638
- i !== void 0 && (Ie(i), d = "" + i), Lt(n) && (Ie(n.key), d = "" + n.key), Ft(n) && (P = n.ref, kt(n, v));
634
+ i !== void 0 && (Ue(i), d = "" + i), It(n) && (Ue(n.key), d = "" + n.key), Lt(n) && (P = n.ref, Nt(n, g));
639
635
  for (_ in n)
640
- ne.call(n, _) && !Dt.hasOwnProperty(_) && (m[_] = n[_]);
636
+ W.call(n, _) && !Ft.hasOwnProperty(_) && (m[_] = n[_]);
641
637
  if (e && e.defaultProps) {
642
638
  var S = e.defaultProps;
643
639
  for (_ in S)
644
640
  m[_] === void 0 && (m[_] = S[_]);
645
641
  }
646
642
  if (d || P) {
647
- var R = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
648
- d && It(m, R), P && Nt(m, R);
643
+ var T = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
644
+ d && Ut(m, T), P && Vt(m, T);
649
645
  }
650
- return Ut(e, d, P, v, u, B.current, m);
646
+ return $t(e, d, P, g, u, H.current, m);
651
647
  }
652
648
  }
653
- var me = j.ReactCurrentOwner, Ve = j.ReactDebugCurrentFrame;
654
- function N(e) {
649
+ var pe = D.ReactCurrentOwner, Ye = D.ReactDebugCurrentFrame;
650
+ function U(e) {
655
651
  if (e) {
656
- var n = e._owner, i = re(e.type, e._source, n ? n.type : null);
657
- Ve.setExtraStackFrame(i);
652
+ var n = e._owner, i = ae(e.type, e._source, n ? n.type : null);
653
+ Ye.setExtraStackFrame(i);
658
654
  } else
659
- Ve.setExtraStackFrame(null);
655
+ Ye.setExtraStackFrame(null);
660
656
  }
661
- var pe;
662
- pe = !1;
663
- function ve(e) {
657
+ var ve;
658
+ ve = !1;
659
+ function ge(e) {
664
660
  return typeof e == "object" && e !== null && e.$$typeof === r;
665
661
  }
666
- function $e() {
662
+ function Be() {
667
663
  {
668
- if (me.current) {
669
- var e = A(me.current.type);
664
+ if (pe.current) {
665
+ var e = A(pe.current.type);
670
666
  if (e)
671
667
  return `
672
668
 
@@ -675,21 +671,13 @@ Check the render method of \`` + e + "`.";
675
671
  return "";
676
672
  }
677
673
  }
678
- function $t(e) {
679
- {
680
- if (e !== void 0) {
681
- var n = e.fileName.replace(/^.*[\\\/]/, ""), i = e.lineNumber;
682
- return `
683
-
684
- Check your code at ` + n + ":" + i + ".";
685
- }
686
- return "";
687
- }
674
+ function Bt(e) {
675
+ return "";
688
676
  }
689
- var Ye = {};
690
- function Yt(e) {
677
+ var We = {};
678
+ function Wt(e) {
691
679
  {
692
- var n = $e();
680
+ var n = Be();
693
681
  if (!n) {
694
682
  var i = typeof e == "string" ? e : e.displayName || e.name;
695
683
  i && (n = `
@@ -699,39 +687,39 @@ Check the top-level render call using <` + i + ">.");
699
687
  return n;
700
688
  }
701
689
  }
702
- function Be(e, n) {
690
+ function He(e, n) {
703
691
  {
704
692
  if (!e._store || e._store.validated || e.key != null)
705
693
  return;
706
694
  e._store.validated = !0;
707
- var i = Yt(n);
708
- if (Ye[i])
695
+ var i = Wt(n);
696
+ if (We[i])
709
697
  return;
710
- Ye[i] = !0;
698
+ We[i] = !0;
711
699
  var u = "";
712
- e && e._owner && e._owner !== me.current && (u = " It was passed a child from " + A(e._owner.type) + "."), N(e), T('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', i, u), N(null);
700
+ e && e._owner && e._owner !== pe.current && (u = " It was passed a child from " + A(e._owner.type) + "."), U(e), R('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', i, u), U(null);
713
701
  }
714
702
  }
715
- function We(e, n) {
703
+ function ze(e, n) {
716
704
  {
717
705
  if (typeof e != "object")
718
706
  return;
719
- if (fe(e))
707
+ if (de(e))
720
708
  for (var i = 0; i < e.length; i++) {
721
709
  var u = e[i];
722
- ve(u) && Be(u, n);
710
+ ge(u) && He(u, n);
723
711
  }
724
- else if (ve(e))
712
+ else if (ge(e))
725
713
  e._store && (e._store.validated = !0);
726
714
  else if (e) {
727
- var v = F(e);
728
- if (typeof v == "function" && v !== e.entries)
729
- for (var _ = v.call(e), m; !(m = _.next()).done; )
730
- ve(m.value) && Be(m.value, n);
715
+ var g = k(e);
716
+ if (typeof g == "function" && g !== e.entries)
717
+ for (var _ = g.call(e), m; !(m = _.next()).done; )
718
+ ge(m.value) && He(m.value, n);
731
719
  }
732
720
  }
733
721
  }
734
- function Bt(e) {
722
+ function Ht(e) {
735
723
  {
736
724
  var n = e.type;
737
725
  if (n == null || typeof n == "string")
@@ -747,163 +735,178 @@ Check the top-level render call using <` + i + ">.");
747
735
  return;
748
736
  if (i) {
749
737
  var u = A(n);
750
- wt(i, e.props, "prop", u, e);
751
- } else if (n.PropTypes !== void 0 && !pe) {
752
- pe = !0;
753
- var v = A(n);
754
- T("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", v || "Unknown");
738
+ xt(i, e.props, "prop", u, e);
739
+ } else if (n.PropTypes !== void 0 && !ve) {
740
+ ve = !0;
741
+ var g = A(n);
742
+ R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", g || "Unknown");
755
743
  }
756
- typeof n.getDefaultProps == "function" && !n.getDefaultProps.isReactClassApproved && T("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
744
+ typeof n.getDefaultProps == "function" && !n.getDefaultProps.isReactClassApproved && R("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
757
745
  }
758
746
  }
759
- function Wt(e) {
747
+ function zt(e) {
760
748
  {
761
749
  for (var n = Object.keys(e.props), i = 0; i < n.length; i++) {
762
750
  var u = n[i];
763
751
  if (u !== "children" && u !== "key") {
764
- N(e), T("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", u), N(null);
752
+ U(e), R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", u), U(null);
765
753
  break;
766
754
  }
767
755
  }
768
- e.ref !== null && (N(e), T("Invalid attribute `ref` supplied to `React.Fragment`."), N(null));
756
+ e.ref !== null && (U(e), R("Invalid attribute `ref` supplied to `React.Fragment`."), U(null));
769
757
  }
770
758
  }
771
- function He(e, n, i, u, v, _) {
759
+ var Ke = {};
760
+ function qe(e, n, i, u, g, _) {
772
761
  {
773
- var m = St(e);
762
+ var m = Tt(e);
774
763
  if (!m) {
775
764
  var d = "";
776
765
  (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (d += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
777
- var P = $t(v);
778
- P ? d += P : d += $e();
766
+ var P = Bt();
767
+ P ? d += P : d += Be();
779
768
  var S;
780
- e === null ? S = "null" : fe(e) ? S = "array" : e !== void 0 && e.$$typeof === r ? (S = "<" + (A(e.type) || "Unknown") + " />", d = " Did you accidentally export a JSX literal instead of a component?") : S = typeof e, T("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", S, d);
769
+ e === null ? S = "null" : de(e) ? S = "array" : e !== void 0 && e.$$typeof === r ? (S = "<" + (A(e.type) || "Unknown") + " />", d = " Did you accidentally export a JSX literal instead of a component?") : S = typeof e, R("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", S, d);
781
770
  }
782
- var R = Vt(e, n, i, v, _);
783
- if (R == null)
784
- return R;
771
+ var T = Yt(e, n, i, g, _);
772
+ if (T == null)
773
+ return T;
785
774
  if (m) {
786
- var w = n.children;
787
- if (w !== void 0)
775
+ var j = n.children;
776
+ if (j !== void 0)
788
777
  if (u)
789
- if (fe(w)) {
790
- for (var U = 0; U < w.length; U++)
791
- We(w[U], e);
792
- Object.freeze && Object.freeze(w);
778
+ if (de(j)) {
779
+ for (var V = 0; V < j.length; V++)
780
+ ze(j[V], e);
781
+ Object.freeze && Object.freeze(j);
793
782
  } else
794
- T("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
783
+ R("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
795
784
  else
796
- We(w, e);
785
+ ze(j, e);
786
+ }
787
+ if (W.call(n, "key")) {
788
+ var N = A(e), w = Object.keys(n).filter(function(Xt) {
789
+ return Xt !== "key";
790
+ }), ye = w.length > 0 ? "{key: someKey, " + w.join(": ..., ") + ": ...}" : "{key: someKey}";
791
+ if (!Ke[N + ye]) {
792
+ var Zt = w.length > 0 ? "{" + w.join(": ..., ") + ": ...}" : "{}";
793
+ R(`A props object containing a "key" prop is being spread into JSX:
794
+ let props = %s;
795
+ <%s {...props} />
796
+ React keys must be passed directly to JSX without using spread:
797
+ let props = %s;
798
+ <%s key={someKey} {...props} />`, ye, N, Zt, N), Ke[N + ye] = !0;
799
+ }
797
800
  }
798
- return e === s ? Wt(R) : Bt(R), R;
801
+ return e === s ? zt(T) : Ht(T), T;
799
802
  }
800
803
  }
801
- function Ht(e, n, i) {
802
- return He(e, n, i, !0);
804
+ function Kt(e, n, i) {
805
+ return qe(e, n, i, !0);
803
806
  }
804
- function zt(e, n, i) {
805
- return He(e, n, i, !1);
807
+ function qt(e, n, i) {
808
+ return qe(e, n, i, !1);
806
809
  }
807
- var qt = zt, Gt = Ht;
808
- z.Fragment = s, z.jsx = qt, z.jsxs = Gt;
809
- }()), z;
810
+ var Gt = qt, Jt = Kt;
811
+ q.Fragment = s, q.jsx = Gt, q.jsxs = Jt;
812
+ }()), q;
810
813
  }
811
- process.env.NODE_ENV === "production" ? he.exports = or() : he.exports = ir();
812
- var G = he.exports;
813
- function Jr({
814
+ process.env.NODE_ENV === "production" ? be.exports = ur() : be.exports = lr();
815
+ var J = be.exports;
816
+ function Qr({
814
817
  children: t,
815
818
  maps: r,
816
819
  externalSync: a
817
820
  }) {
818
- const [s, o] = et(rr, {
821
+ const [s, o] = rt(ir, {
819
822
  ...Z.state,
820
- maps: r.reduce((g, h) => (g[h.id] = {
823
+ maps: r.reduce((v, h) => (v[h.id] = {
821
824
  ...h,
822
825
  isLoaded: !1
823
- }, g), Z.state.maps)
824
- }), l = ie(
825
- r.reduce((g, h) => (g[h.id] = {
826
+ }, v), Z.state.maps)
827
+ }), l = se(
828
+ r.reduce((v, h) => (v[h.id] = {
826
829
  instanceRef: {
827
830
  current: null
828
831
  },
829
832
  overlayRef: {
830
833
  current: null
831
834
  }
832
- }, g), {})
835
+ }, v), {})
833
836
  ), f = M(
834
- (g, h, x) => {
835
- r[0].id === g && a?.({
837
+ (v, h, x) => {
838
+ r[0].id === v && a?.({
836
839
  type: h,
837
840
  payload: x
838
841
  });
839
842
  },
840
843
  [a, r]
841
844
  ), y = M(
842
- (g, h) => {
845
+ (v, h) => {
843
846
  o({
844
- type: L.SetViewState,
847
+ type: F.SetViewState,
845
848
  payload: {
846
849
  id: h,
847
- viewState: g
850
+ viewState: v
848
851
  }
849
- }), f(h, L.SetViewState, g);
852
+ }), f(h, F.SetViewState, v);
850
853
  },
851
854
  [o, f]
852
855
  ), c = M(
853
- ({ height: g, width: h }, x) => {
856
+ ({ height: v, width: h }, x) => {
854
857
  o({
855
- type: L.SetResize,
858
+ type: F.SetResize,
856
859
  payload: {
857
860
  id: x,
858
- height: g,
861
+ height: v,
859
862
  width: h
860
863
  }
861
- }), f(x, L.SetResize, { height: g, width: h });
864
+ }), f(x, F.SetResize, { height: v, width: h });
862
865
  },
863
866
  [o, f]
864
867
  ), E = M(
865
- (g, h) => {
868
+ (v, h) => {
866
869
  o({
867
- type: L.SetBasemap,
870
+ type: F.SetBasemap,
868
871
  payload: {
869
872
  id: h,
870
- basemap: g
873
+ basemap: v
871
874
  }
872
875
  });
873
876
  },
874
877
  [o]
875
878
  ), p = M(
876
- (g, h) => {
879
+ (v, h) => {
877
880
  o({
878
- type: L.SetZoom,
881
+ type: F.SetZoom,
879
882
  payload: {
880
883
  id: h,
881
- zoom: g
884
+ zoom: v
882
885
  }
883
886
  });
884
887
  },
885
888
  [o]
886
889
  ), b = M(
887
- (g, h) => {
890
+ (v, h) => {
888
891
  o({
889
- type: L.SetLoaded,
892
+ type: F.SetLoaded,
890
893
  payload: {
891
894
  id: h,
892
- value: g
895
+ value: v
893
896
  }
894
897
  });
895
898
  },
896
899
  [o]
897
- ), O = ie({
900
+ ), O = se({
898
901
  setViewState: y,
899
902
  setBasemap: E,
900
903
  setResize: c,
901
904
  setZoom: p,
902
905
  setLoaded: b
903
906
  });
904
- return /* @__PURE__ */ G.jsx(ot.Provider, { value: O.current, children: /* @__PURE__ */ G.jsx(at.Provider, { value: l, children: /* @__PURE__ */ G.jsx(nt.Provider, { value: s, children: t }) }) });
907
+ return /* @__PURE__ */ J.jsx(st.Provider, { value: O.current, children: /* @__PURE__ */ J.jsx(it.Provider, { value: l, children: /* @__PURE__ */ J.jsx(ot.Provider, { value: s, children: t }) }) });
905
908
  }
906
- const it = {
909
+ const ct = {
907
910
  NUMBER: {
908
911
  style: "decimal",
909
912
  maximumFractionDigits: 1,
@@ -925,92 +928,92 @@ const it = {
925
928
  day: "2-digit"
926
929
  }
927
930
  };
928
- function st(t, r, a) {
931
+ function ut(t, r, a) {
929
932
  return Intl.NumberFormat(r, a).format(t);
930
933
  }
931
- function ct(t, r, a = {}) {
932
- return st(t, r, { ...it.NUMBER, ...a });
934
+ function lt(t, r, a = {}) {
935
+ return ut(t, r, { ...ct.NUMBER, ...a });
933
936
  }
934
- function sr(t, r, a = {}) {
935
- return st(t, r, { ...it.CURRENCY, ...a });
937
+ function fr(t, r, a = {}) {
938
+ return ut(t, r, { ...ct.CURRENCY, ...a });
936
939
  }
937
- var k = /* @__PURE__ */ ((t) => (t.CURRENCY = "CURRENCY", t.DEFAULT = "DEFAULT", t.NUMBER = "NUMBER", t))(k || {});
940
+ var L = /* @__PURE__ */ ((t) => (t.CURRENCY = "CURRENCY", t.DEFAULT = "DEFAULT", t.NUMBER = "NUMBER", t))(L || {});
938
941
  const Ze = {
939
- [k.CURRENCY]: {
940
- type: k.CURRENCY,
941
- format: (t, r) => sr(t, r)
942
+ [L.CURRENCY]: {
943
+ type: L.CURRENCY,
944
+ format: (t, r) => fr(t, r)
942
945
  },
943
- [k.NUMBER]: {
944
- type: k.NUMBER,
945
- format: (t, r) => ct(t, r)
946
+ [L.NUMBER]: {
947
+ type: L.NUMBER,
948
+ format: (t, r) => lt(t, r)
946
949
  },
947
- [k.DEFAULT]: {
948
- type: k.DEFAULT,
950
+ [L.DEFAULT]: {
951
+ type: L.DEFAULT,
949
952
  format: (t) => t.toLocaleString()
950
953
  }
951
954
  };
952
- function Kr({
955
+ function en({
953
956
  properties: t,
954
957
  formatters: r = {},
955
958
  includeColumns: a = Object.keys(t),
956
959
  locale: s = "en-US",
957
960
  showColumnName: o = !0,
958
961
  title: l,
959
- getColumnName: f = dr,
960
- getFieldHtml: y = ur,
961
- getTitle: c = cr,
962
- getValue: E = lr
962
+ getColumnName: f = gr,
963
+ getFieldHtml: y = mr,
964
+ getTitle: c = dr,
965
+ getValue: E = pr
963
966
  }) {
964
- const p = l ? c(l) : "", O = a.reduce((g, h) => {
965
- const x = r[h], F = t[h], j = E(F, s, x), T = o ? f(h) : "";
966
- return g + y(T, j);
967
+ const p = l ? c(l) : "", O = a.reduce((v, h) => {
968
+ const x = r[h], k = t[h], D = E(k, s, x), R = o ? f(h) : "";
969
+ return v + y(R, D);
967
970
  }, "");
968
971
  return p + O;
969
972
  }
970
- function cr(t) {
973
+ function dr(t) {
971
974
  return `<h3 style="margin: 0"><strong>${t}</strong></h3></br>`;
972
975
  }
973
- function ur(t, r) {
976
+ function mr(t, r) {
974
977
  return `${t}${r}</br>`;
975
978
  }
976
- function lr(t, r, a) {
979
+ function pr(t, r, a) {
977
980
  try {
978
- return fr(a)(t, r);
981
+ return vr(a)(t, r);
979
982
  } catch {
980
983
  return t;
981
984
  }
982
985
  }
983
- function fr(t) {
984
- return typeof t == "function" ? t : (t && Ze[t] || Ze[k.DEFAULT]).format;
986
+ function vr(t) {
987
+ return typeof t == "function" ? t : (t && Ze[t] || Ze[L.DEFAULT]).format;
985
988
  }
986
- function dr(t) {
989
+ function gr(t) {
987
990
  return `<strong>${t}</strong>: `;
988
991
  }
989
- function mr(t) {
990
- return ye[t]?.type;
992
+ function yr(t) {
993
+ return Ee[t]?.type;
991
994
  }
992
- function pr(t) {
993
- return mr(t) === rt.GoogleMaps;
995
+ function hr(t) {
996
+ return yr(t) === at.GoogleMaps;
994
997
  }
995
- function vr({ mapId: t }) {
996
- const { isLoaded: r, basemap: a } = be(t), { getOverlayInstance: s } = _e(t);
997
- return Zt(() => {
998
- if (!r || !pr(a))
998
+ function Er({ mapId: t }) {
999
+ const { isLoaded: r, basemap: a } = Se(t), { getOverlayInstance: s } = Re(t);
1000
+ return Qt(() => {
1001
+ if (!r || !hr(a))
999
1002
  return null;
1000
1003
  const l = s()?.getDiv();
1001
- return new Jt(l, {});
1004
+ return new er(l, {});
1002
1005
  }, [r, s, a]);
1003
1006
  }
1004
- var C = /* @__PURE__ */ ((t) => (t.milimeter = "milimeter", t.centimeter = "centimeter", t.meter = "meter", t.kilometer = "kilometer", t.mile = "mile", t.feet = "feet", t))(C || {}), ut = /* @__PURE__ */ ((t) => (t.meters = "meters", t.kilometer = "kilometers", t.mile = "miles", t))(ut || {}), se = /* @__PURE__ */ ((t) => (t.AddPosition = "addPosition", t.Finish = "finish", t))(se || {});
1005
- const Je = [
1007
+ var C = /* @__PURE__ */ ((t) => (t.milimeter = "milimeter", t.centimeter = "centimeter", t.meter = "meter", t.kilometer = "kilometer", t.mile = "mile", t.feet = "feet", t))(C || {}), ft = /* @__PURE__ */ ((t) => (t.meters = "meters", t.kilometer = "kilometers", t.mile = "miles", t))(ft || {}), ce = /* @__PURE__ */ ((t) => (t.AddPosition = "addPosition", t.Finish = "finish", t))(ce || {});
1008
+ const Xe = [
1006
1009
  "anyclick",
1007
1010
  "pointermove",
1008
1011
  "panstart",
1009
1012
  "panmove",
1010
1013
  "panend",
1011
1014
  "keyup"
1012
- ], gr = "mapMeasureLayer", yr = {
1013
- id: gr,
1015
+ ], br = "mapMeasureLayer", _r = {
1016
+ id: br,
1014
1017
  pickable: !1,
1015
1018
  billboard: !1,
1016
1019
  editHandlePointRadiusUnits: "pixels",
@@ -1035,24 +1038,24 @@ const Je = [
1035
1038
  getLineWidth: 2
1036
1039
  }
1037
1040
  }
1038
- }, Ee = {
1041
+ }, _e = {
1039
1042
  editing: [71, 219, 153, 255],
1040
1043
  finished: [49, 153, 107, 255]
1041
- }, hr = {
1044
+ }, Sr = {
1042
1045
  styles: {
1043
1046
  colors: {
1044
- editing: Ee.editing,
1045
- finished: Ee.finished
1047
+ editing: _e.editing,
1048
+ finished: _e.finished
1046
1049
  }
1047
1050
  }
1048
- }, Ke = {
1051
+ }, Qe = {
1049
1052
  [C.kilometer]: "km",
1050
1053
  [C.centimeter]: "cm",
1051
1054
  [C.milimeter]: "mm",
1052
1055
  [C.mile]: "mi",
1053
1056
  [C.meter]: "m",
1054
1057
  [C.feet]: "ft"
1055
- }, Er = {
1058
+ }, Rr = {
1056
1059
  [C.kilometer]: "kilometer",
1057
1060
  [C.centimeter]: "centimeter",
1058
1061
  [C.milimeter]: "millimeter",
@@ -1060,14 +1063,14 @@ const Je = [
1060
1063
  [C.meter]: "meter",
1061
1064
  [C.feet]: "foot"
1062
1065
  };
1063
- class br extends Kt {
1066
+ class Tr extends tr {
1064
1067
  eventManager;
1065
1068
  constructor(r) {
1066
1069
  super(r), this.eventManager = r.eventManager;
1067
1070
  }
1068
1071
  _addEventHandlers() {
1069
1072
  const r = this._getEventManager(), { eventHandler: a } = this.state._editableLayerState;
1070
- for (const s of Je)
1073
+ for (const s of Xe)
1071
1074
  r.on(s, a, {
1072
1075
  // give nebula a higher priority so that it can stop propagation to deck.gl's map panning handlers
1073
1076
  priority: 100
@@ -1075,7 +1078,7 @@ class br extends Kt {
1075
1078
  }
1076
1079
  _removeEventHandlers(r = void 0) {
1077
1080
  const a = r || this._getEventManager(), { eventHandler: s } = this.state._editableLayerState;
1078
- for (const o of Je)
1081
+ for (const o of Xe)
1079
1082
  a.off(o, s);
1080
1083
  }
1081
1084
  _getEventManager() {
@@ -1083,12 +1086,12 @@ class br extends Kt {
1083
1086
  this.context.deck.eventManager;
1084
1087
  }
1085
1088
  }
1086
- class _r extends Xt {
1089
+ class Mr extends rr {
1087
1090
  handleClick(r, a) {
1088
1091
  super.handleClick(r, a), a.onEdit({
1089
1092
  // data is the same
1090
1093
  updatedData: a.data,
1091
- editType: se.AddPosition,
1094
+ editType: ce.AddPosition,
1092
1095
  editContext: {
1093
1096
  distance: this._currentDistance,
1094
1097
  finished: this._isMeasuringSessionFinished
@@ -1105,7 +1108,7 @@ class _r extends Xt {
1105
1108
  case "Escape":
1106
1109
  this._isMeasuringSessionFinished = !0, o === 1 && (this.resetClickSequence(), this._currentTooltips = []), a.onUpdateCursor("cell"), a.onEdit({
1107
1110
  updatedData: a.data,
1108
- editType: se.Finish,
1111
+ editType: ce.Finish,
1109
1112
  editContext: {
1110
1113
  finished: this._isMeasuringSessionFinished
1111
1114
  }
@@ -1114,81 +1117,81 @@ class _r extends Xt {
1114
1117
  }
1115
1118
  }
1116
1119
  }
1117
- var Sr = function(r) {
1118
- return Rr(r) && !Tr(r);
1120
+ var Or = function(r) {
1121
+ return Pr(r) && !Cr(r);
1119
1122
  };
1120
- function Rr(t) {
1123
+ function Pr(t) {
1121
1124
  return !!t && typeof t == "object";
1122
1125
  }
1123
- function Tr(t) {
1126
+ function Cr(t) {
1124
1127
  var r = Object.prototype.toString.call(t);
1125
- return r === "[object RegExp]" || r === "[object Date]" || Pr(t);
1128
+ return r === "[object RegExp]" || r === "[object Date]" || xr(t);
1126
1129
  }
1127
- var Mr = typeof Symbol == "function" && Symbol.for, Or = Mr ? Symbol.for("react.element") : 60103;
1128
- function Pr(t) {
1129
- return t.$$typeof === Or;
1130
+ var wr = typeof Symbol == "function" && Symbol.for, jr = wr ? Symbol.for("react.element") : 60103;
1131
+ function xr(t) {
1132
+ return t.$$typeof === jr;
1130
1133
  }
1131
- function Cr(t) {
1134
+ function Ar(t) {
1132
1135
  return Array.isArray(t) ? [] : {};
1133
1136
  }
1134
- function J(t, r) {
1135
- return r.clone !== !1 && r.isMergeableObject(t) ? $(Cr(t), t, r) : t;
1137
+ function X(t, r) {
1138
+ return r.clone !== !1 && r.isMergeableObject(t) ? Y(Ar(t), t, r) : t;
1136
1139
  }
1137
- function wr(t, r, a) {
1140
+ function Dr(t, r, a) {
1138
1141
  return t.concat(r).map(function(s) {
1139
- return J(s, a);
1142
+ return X(s, a);
1140
1143
  });
1141
1144
  }
1142
- function xr(t, r) {
1145
+ function kr(t, r) {
1143
1146
  if (!r.customMerge)
1144
- return $;
1147
+ return Y;
1145
1148
  var a = r.customMerge(t);
1146
- return typeof a == "function" ? a : $;
1149
+ return typeof a == "function" ? a : Y;
1147
1150
  }
1148
- function jr(t) {
1151
+ function Fr(t) {
1149
1152
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(t).filter(function(r) {
1150
1153
  return Object.propertyIsEnumerable.call(t, r);
1151
1154
  }) : [];
1152
1155
  }
1153
- function Xe(t) {
1154
- return Object.keys(t).concat(jr(t));
1156
+ function et(t) {
1157
+ return Object.keys(t).concat(Fr(t));
1155
1158
  }
1156
- function lt(t, r) {
1159
+ function dt(t, r) {
1157
1160
  try {
1158
1161
  return r in t;
1159
1162
  } catch {
1160
1163
  return !1;
1161
1164
  }
1162
1165
  }
1163
- function Ar(t, r) {
1164
- return lt(t, r) && !(Object.hasOwnProperty.call(t, r) && Object.propertyIsEnumerable.call(t, r));
1166
+ function Lr(t, r) {
1167
+ return dt(t, r) && !(Object.hasOwnProperty.call(t, r) && Object.propertyIsEnumerable.call(t, r));
1165
1168
  }
1166
- function Dr(t, r, a) {
1169
+ function Ir(t, r, a) {
1167
1170
  var s = {};
1168
- return a.isMergeableObject(t) && Xe(t).forEach(function(o) {
1169
- s[o] = J(t[o], a);
1170
- }), Xe(r).forEach(function(o) {
1171
- Ar(t, o) || (lt(t, o) && a.isMergeableObject(r[o]) ? s[o] = xr(o, a)(t[o], r[o], a) : s[o] = J(r[o], a));
1171
+ return a.isMergeableObject(t) && et(t).forEach(function(o) {
1172
+ s[o] = X(t[o], a);
1173
+ }), et(r).forEach(function(o) {
1174
+ Lr(t, o) || (dt(t, o) && a.isMergeableObject(r[o]) ? s[o] = kr(o, a)(t[o], r[o], a) : s[o] = X(r[o], a));
1172
1175
  }), s;
1173
1176
  }
1174
- function $(t, r, a) {
1175
- a = a || {}, a.arrayMerge = a.arrayMerge || wr, a.isMergeableObject = a.isMergeableObject || Sr, a.cloneUnlessOtherwiseSpecified = J;
1177
+ function Y(t, r, a) {
1178
+ a = a || {}, a.arrayMerge = a.arrayMerge || Dr, a.isMergeableObject = a.isMergeableObject || Or, a.cloneUnlessOtherwiseSpecified = X;
1176
1179
  var s = Array.isArray(r), o = Array.isArray(t), l = s === o;
1177
- return l ? s ? a.arrayMerge(t, r, a) : Dr(t, r, a) : J(r, a);
1180
+ return l ? s ? a.arrayMerge(t, r, a) : Ir(t, r, a) : X(r, a);
1178
1181
  }
1179
- $.all = function(r, a) {
1182
+ Y.all = function(r, a) {
1180
1183
  if (!Array.isArray(r))
1181
1184
  throw new Error("first argument should be an array");
1182
1185
  return r.reduce(function(s, o) {
1183
- return $(s, o, a);
1186
+ return Y(s, o, a);
1184
1187
  }, {});
1185
1188
  };
1186
- var Fr = $, Lr = Fr;
1187
- const oe = /* @__PURE__ */ ar(Lr), q = () => {
1189
+ var Nr = Y, Ur = Nr;
1190
+ const ie = /* @__PURE__ */ cr(Ur), G = () => {
1188
1191
  throw new Error(
1189
1192
  "You forgot to wrap your component in <MeasurementToolsProvider>."
1190
1193
  );
1191
- }, Se = {
1194
+ }, Te = {
1192
1195
  state: {
1193
1196
  enable: !1,
1194
1197
  finished: !0,
@@ -1197,24 +1200,24 @@ const oe = /* @__PURE__ */ ar(Lr), q = () => {
1197
1200
  unit: C.kilometer
1198
1201
  },
1199
1202
  actions: {
1200
- setEnable: q,
1201
- setFinished: q,
1202
- setUnit: q,
1203
- setDistance: q,
1204
- setLocale: q
1203
+ setEnable: G,
1204
+ setFinished: G,
1205
+ setUnit: G,
1206
+ setDistance: G,
1207
+ setLocale: G
1205
1208
  }
1206
- }, ft = K(Se.state), dt = K(Se.actions);
1207
- function mt() {
1208
- return X(
1209
- ft
1209
+ }, mt = Q(Te.state), pt = Q(Te.actions);
1210
+ function vt() {
1211
+ return ee(
1212
+ mt
1210
1213
  );
1211
1214
  }
1212
- function pt() {
1213
- return X(
1214
- dt
1215
+ function gt() {
1216
+ return ee(
1217
+ pt
1215
1218
  );
1216
1219
  }
1217
- const kr = {
1220
+ const Vr = {
1218
1221
  nm: {
1219
1222
  name: {
1220
1223
  singular: "Nanometer",
@@ -1257,7 +1260,7 @@ const kr = {
1257
1260
  },
1258
1261
  to_anchor: 1e3
1259
1262
  }
1260
- }, Ir = {
1263
+ }, $r = {
1261
1264
  mil: {
1262
1265
  name: {
1263
1266
  singular: "Mil",
@@ -1314,10 +1317,10 @@ const kr = {
1314
1317
  },
1315
1318
  to_anchor: 6076.12
1316
1319
  }
1317
- }, Nr = {
1320
+ }, Yr = {
1318
1321
  systems: {
1319
- metric: kr,
1320
- imperial: Ir
1322
+ metric: Vr,
1323
+ imperial: $r
1321
1324
  },
1322
1325
  anchors: {
1323
1326
  metric: {
@@ -1331,71 +1334,71 @@ const kr = {
1331
1334
  }
1332
1335
  }
1333
1336
  }
1334
- }, Ur = Qt({
1335
- length: Nr
1337
+ }, Br = nr({
1338
+ length: Yr
1336
1339
  });
1337
- function vt(t, r) {
1338
- return Ur(t).from(Ke[C.meter]).to(Ke[r]);
1340
+ function yt(t, r) {
1341
+ return Br(t).from(Qe[C.meter]).to(Qe[r]);
1339
1342
  }
1340
- function gt({
1343
+ function ht({
1341
1344
  meters: t,
1342
1345
  unit: r,
1343
1346
  locale: a
1344
1347
  }) {
1345
- return `${ct(vt(t, r), a, {
1348
+ return `${lt(yt(t, r), a, {
1346
1349
  style: "unit",
1347
- unit: Er[r],
1350
+ unit: Rr[r],
1348
1351
  unitDisplay: "short"
1349
1352
  })}`;
1350
1353
  }
1351
- function Xr(t, {
1354
+ function tn(t, {
1352
1355
  hasDoubleClickZoom: r
1353
1356
  }) {
1354
1357
  return typeof t == "boolean" ? { doubleClickZoom: r } : { ...t, doubleClickZoom: r };
1355
1358
  }
1356
- function Qr({
1359
+ function rn({
1357
1360
  mapId: t,
1358
- defaultProps: { styles: r = hr.styles } = {},
1361
+ defaultProps: { styles: r = Sr.styles } = {},
1359
1362
  layerProps: a = {}
1360
1363
  }) {
1361
- const { enable: s, unit: o, finished: l, locale: f } = mt(), { setDistance: y, setFinished: c } = pt(), { isLoaded: E } = be(t), p = ie(), b = vr({ mapId: t }), O = l ? r.colors?.finished : r.colors?.editing, g = M(
1362
- ({ editType: T, editContext: Q }) => {
1363
- T === se.AddPosition && y(Q.distance), c(Q.finished);
1364
+ const { enable: s, unit: o, finished: l, locale: f } = vt(), { setDistance: y, setFinished: c } = gt(), { isLoaded: E } = Se(t), p = se(), b = Er({ mapId: t }), O = l ? r.colors?.finished : r.colors?.editing, v = M(
1365
+ ({ editType: R, editContext: te }) => {
1366
+ R === ce.AddPosition && y(te.distance), c(te.finished);
1364
1367
  },
1365
1368
  [y, c]
1366
1369
  );
1367
- if (tt(() => {
1370
+ if (nt(() => {
1368
1371
  s || (p.current = void 0);
1369
1372
  }, [s]), !s || !E)
1370
1373
  return null;
1371
- const { pickable: h, onHover: x, ...F } = Vr(
1374
+ const { pickable: h, onHover: x, ...k } = Wr(
1372
1375
  a,
1373
1376
  f,
1374
1377
  o,
1375
- g,
1376
- O || Ee.guide
1378
+ v,
1379
+ O || _e.guide
1377
1380
  );
1378
- return !p.current && !F.mode && (p.current = new _r()), new br({
1379
- ...F,
1381
+ return !p.current && !k.mode && (p.current = new Mr()), new Tr({
1382
+ ...k,
1380
1383
  pickable: h || !l,
1381
1384
  onHover: l ? x : void 0,
1382
- mode: F?.mode || p.current,
1385
+ mode: k?.mode || p.current,
1383
1386
  eventManager: b
1384
1387
  });
1385
1388
  }
1386
- function Vr(t, r, a, s, o) {
1387
- const l = oe(t, {
1389
+ function Wr(t, r, a, s, o) {
1390
+ const l = ie(t, {
1388
1391
  modeConfig: {
1389
1392
  // We force distance due to conversion is addressed at feature getText level
1390
1393
  formatTooltip: (c) => c,
1391
1394
  turfOptions: {
1392
- units: ut.meters
1395
+ units: ft.meters
1393
1396
  }
1394
1397
  },
1395
1398
  onEdit: s,
1396
1399
  _subLayerProps: {
1397
1400
  tooltips: {
1398
- getText: (c) => gt({
1401
+ getText: (c) => ht({
1399
1402
  ...c,
1400
1403
  meters: c.text,
1401
1404
  locale: r,
@@ -1406,7 +1409,7 @@ function Vr(t, r, a, s, o) {
1406
1409
  }
1407
1410
  }
1408
1411
  }
1409
- }), f = oe(yr, {
1412
+ }), f = ie(_r, {
1410
1413
  _subLayerProps: {
1411
1414
  guides: {
1412
1415
  getLineColor: o,
@@ -1416,23 +1419,23 @@ function Vr(t, r, a, s, o) {
1416
1419
  getEditHandlePointColor: o,
1417
1420
  getEditHandlePointOutlineColor: o
1418
1421
  });
1419
- return oe(f, l);
1422
+ return ie(f, l);
1420
1423
  }
1421
- function en({ children: t }) {
1422
- const { distance: r, enable: a, unit: s, locale: o } = mt(), { setDistance: l, setEnable: f } = pt(), y = vt(r, s), c = () => {
1424
+ function nn({ children: t }) {
1425
+ const { distance: r, enable: a, unit: s, locale: o } = vt(), { setDistance: l, setEnable: f } = gt(), y = yt(r, s), c = () => {
1423
1426
  l(0), f(!a);
1424
1427
  };
1425
1428
  return t({
1426
1429
  enable: a,
1427
1430
  meters: r,
1428
- text: gt({ meters: r, unit: s, locale: o }),
1431
+ text: ht({ meters: r, unit: s, locale: o }),
1429
1432
  distance: y,
1430
1433
  unit: s,
1431
1434
  onToggleButton: c
1432
1435
  });
1433
1436
  }
1434
- var V = /* @__PURE__ */ ((t) => (t.SetEnable = "SET_ENABLE", t.SetFinished = "SET_FINISHED", t.SetDistance = "SET_DISTANCE", t.SetUnit = "SET_UNIT", t.SetLocale = "SET_LOCALE", t))(V || {});
1435
- function $r(t, { type: r, payload: a }) {
1437
+ var $ = /* @__PURE__ */ ((t) => (t.SetEnable = "SET_ENABLE", t.SetFinished = "SET_FINISHED", t.SetDistance = "SET_DISTANCE", t.SetUnit = "SET_UNIT", t.SetLocale = "SET_LOCALE", t))($ || {});
1438
+ function Hr(t, { type: r, payload: a }) {
1436
1439
  return {
1437
1440
  SET_ENABLE: () => ({
1438
1441
  ...t,
@@ -1457,94 +1460,94 @@ function $r(t, { type: r, payload: a }) {
1457
1460
  })
1458
1461
  }[r]?.() ?? t;
1459
1462
  }
1460
- function tn({
1463
+ function an({
1461
1464
  children: t,
1462
1465
  defaultProps: r = {},
1463
1466
  locale: a
1464
1467
  }) {
1465
- const [s, o] = et(
1466
- $r,
1467
- oe(Se.state, r)
1468
+ const [s, o] = rt(
1469
+ Hr,
1470
+ ie(Te.state, r)
1468
1471
  ), l = M(
1469
1472
  (b) => {
1470
- o({ type: V.SetLocale, payload: b });
1473
+ o({ type: $.SetLocale, payload: b });
1471
1474
  },
1472
1475
  [o]
1473
1476
  );
1474
- tt(() => {
1477
+ nt(() => {
1475
1478
  a && l(a);
1476
1479
  }, [a, l]);
1477
1480
  const f = M(
1478
1481
  (b) => {
1479
- o({ type: V.SetEnable, payload: b });
1482
+ o({ type: $.SetEnable, payload: b });
1480
1483
  },
1481
1484
  [o]
1482
1485
  ), y = M(
1483
1486
  (b) => {
1484
- o({ type: V.SetFinished, payload: b });
1487
+ o({ type: $.SetFinished, payload: b });
1485
1488
  },
1486
1489
  [o]
1487
1490
  ), c = M(
1488
1491
  (b) => {
1489
- o({ type: V.SetDistance, payload: b });
1492
+ o({ type: $.SetDistance, payload: b });
1490
1493
  },
1491
1494
  [o]
1492
1495
  ), E = M(
1493
1496
  (b) => {
1494
- o({ type: V.SetUnit, payload: b });
1497
+ o({ type: $.SetUnit, payload: b });
1495
1498
  },
1496
1499
  [o]
1497
- ), p = ie({
1500
+ ), p = se({
1498
1501
  setEnable: f,
1499
1502
  setFinished: y,
1500
1503
  setDistance: c,
1501
1504
  setUnit: E,
1502
1505
  setLocale: l
1503
1506
  });
1504
- return /* @__PURE__ */ G.jsx(dt.Provider, { value: p.current, children: /* @__PURE__ */ G.jsx(ft.Provider, { value: s, children: t }) });
1507
+ return /* @__PURE__ */ J.jsx(pt.Provider, { value: p.current, children: /* @__PURE__ */ J.jsx(mt.Provider, { value: s, children: t }) });
1505
1508
  }
1506
1509
  export {
1507
- Ke as CONVERSIONS_UNITS,
1508
- ge as CartoBasemapURL,
1509
- tr as CartoBasemapsNames,
1510
- br as CustomEditableGeojsonLayer,
1511
- _r as CustomMeasureDistanceMode,
1512
- Ee as DEFAULT_COLORS,
1513
- yr as DEFAULT_LAYER_PROPS,
1514
- hr as DEFAULT_PROPS,
1515
- Je as EVENT_MANAGER_EVENT_TYPES,
1516
- se as EditType,
1517
- k as FormatterTypes,
1518
- er as GMapsBasemap,
1519
- Er as INTL_UNITS,
1520
- ye as MAPS_BASEMAP,
1521
- gr as MAP_MEASURE_LAYER_ID,
1522
- L as MapActions,
1523
- ot as MapActionsContext,
1524
- nt as MapContext,
1525
- en as MapMeasurementTools,
1526
- Qr as MapMeasurementToolsLayer,
1527
- tn as MapMeasurementToolsProvider,
1510
+ Qe as CONVERSIONS_UNITS,
1511
+ he as CartoBasemapURL,
1512
+ or as CartoBasemapsNames,
1513
+ Tr as CustomEditableGeojsonLayer,
1514
+ Mr as CustomMeasureDistanceMode,
1515
+ _e as DEFAULT_COLORS,
1516
+ _r as DEFAULT_LAYER_PROPS,
1517
+ Sr as DEFAULT_PROPS,
1518
+ Xe as EVENT_MANAGER_EVENT_TYPES,
1519
+ ce as EditType,
1520
+ L as FormatterTypes,
1521
+ ar as GMapsBasemap,
1522
+ Rr as INTL_UNITS,
1523
+ Ee as MAPS_BASEMAP,
1524
+ br as MAP_MEASURE_LAYER_ID,
1525
+ F as MapActions,
1526
+ st as MapActionsContext,
1527
+ ot as MapContext,
1528
+ nn as MapMeasurementTools,
1529
+ rn as MapMeasurementToolsLayer,
1530
+ an as MapMeasurementToolsProvider,
1528
1531
  C as MapMeasurementUnit,
1529
- ut as MapMeasurementUnitTurf,
1530
- Jr as MapProvider,
1531
- at as MapReferencesContext,
1532
- rt as MapsTypes,
1533
- vt as convertMetersTo,
1534
- Xr as getDeckController,
1535
- mr as getMapType,
1536
- gt as getTextLayerFormattedDistance,
1537
- pr as isGmaps,
1538
- Kr as objectToHtml,
1539
- rr as reducer,
1540
- vr as useEventManager,
1541
- be as useMap,
1542
- nr as useMapActions,
1543
- Zr as useMapActionsByID,
1544
- qr as useMapByID,
1545
- mt as useMapMeasurementTools,
1546
- pt as useMapMeasurementToolsActions,
1547
- _e as useMapRefences,
1548
- _e as useMapReferences,
1549
- Gr as useMapReferencesByID
1532
+ ft as MapMeasurementUnitTurf,
1533
+ Qr as MapProvider,
1534
+ it as MapReferencesContext,
1535
+ at as MapsTypes,
1536
+ yt as convertMetersTo,
1537
+ tn as getDeckController,
1538
+ yr as getMapType,
1539
+ ht as getTextLayerFormattedDistance,
1540
+ hr as isGmaps,
1541
+ en as objectToHtml,
1542
+ ir as reducer,
1543
+ Er as useEventManager,
1544
+ Se as useMap,
1545
+ sr as useMapActions,
1546
+ Xr as useMapActionsByID,
1547
+ Jr as useMapByID,
1548
+ vt as useMapMeasurementTools,
1549
+ gt as useMapMeasurementToolsActions,
1550
+ Re as useMapRefences,
1551
+ Re as useMapReferences,
1552
+ Zr as useMapReferencesByID
1550
1553
  };