@carto/ps-react-maps 1.3.3-alpha.1 → 1.3.3

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.
Files changed (27) hide show
  1. package/dist/index.cjs +15 -15
  2. package/dist/index.js +558 -902
  3. package/dist/types/index.d.ts +0 -1
  4. package/dist/types/map-provider/map-provider.context.d.ts +0 -1
  5. package/dist/types/utils/index.d.ts +0 -1
  6. package/package.json +2 -9
  7. package/dist/types/assets/icons/ruler.d.ts +0 -2
  8. package/dist/types/common-stories/maps/deckgl-maps.component.d.ts +0 -2
  9. package/dist/types/common-stories/maps/google-maps.component.d.ts +0 -3
  10. package/dist/types/common-stories/maps/map-container.component.d.ts +0 -4
  11. package/dist/types/common-stories/maps/map.component.d.ts +0 -2
  12. package/dist/types/map-measurement-tool/custom-editable-geojson-layer.class.d.ts +0 -10
  13. package/dist/types/map-measurement-tool/custom-measurement-distance-mode.class.d.ts +0 -6
  14. package/dist/types/map-measurement-tool/index.d.ts +0 -9
  15. package/dist/types/map-measurement-tool/map-measurement-tool.component.d.ts +0 -6
  16. package/dist/types/map-measurement-tool/map-measurement-tool.const.d.ts +0 -29
  17. package/dist/types/map-measurement-tool/map-measurement-tool.context.d.ts +0 -5
  18. package/dist/types/map-measurement-tool/map-measurement-tool.hook.d.ts +0 -2
  19. package/dist/types/map-measurement-tool/map-measurement-tool.layer.d.ts +0 -3
  20. package/dist/types/map-measurement-tool/map-measurement-tool.provider.d.ts +0 -2
  21. package/dist/types/map-measurement-tool/map-measurement-tool.reducer.d.ts +0 -13
  22. package/dist/types/map-measurement-tool/map-measurement-tool.styles.d.ts +0 -28
  23. package/dist/types/map-measurement-tool/map-measurement-tool.types.d.ts +0 -60
  24. package/dist/types/map-measurement-tool/map-measurement-tool.util.d.ts +0 -7
  25. package/dist/types/utils/get-map-type/get-map-type.d.ts +0 -1
  26. package/dist/types/utils/get-map-type/index.d.ts +0 -2
  27. package/dist/types/utils/get-map-type/is-gmaps.d.ts +0 -1
package/dist/index.js CHANGED
@@ -1,27 +1,24 @@
1
- import Je, { createContext as J, useContext as K, useCallback as w, useReducer as Ke, useRef as pe, useMemo as Wt } from "react";
2
- import { EditableGeoJsonLayer as Ht } from "@nebula.gl/layers";
3
- import { MeasureDistanceMode as zt } from "@nebula.gl/edit-modes";
4
- import { EventManager as qt } from "mjolnir.js";
5
- var Gt = /* @__PURE__ */ ((t) => (t.Roadmap = "roadmap", t.Satellite = "satellite", t.Hybrid = "hybrid", t))(Gt || {}), Zt = /* @__PURE__ */ ((t) => (t.DarkMatter = "dark-matter", t.Positron = "positron", t.Voyager = "voyager", t))(Zt || {});
6
- const de = {
1
+ import Ue, { createContext as se, useContext as ue, useCallback as P, useReducer as Tr, useRef as Fe } from "react";
2
+ var wr = /* @__PURE__ */ ((r) => (r.Roadmap = "roadmap", r.Satellite = "satellite", r.Hybrid = "hybrid", r))(wr || {}), Cr = /* @__PURE__ */ ((r) => (r.DarkMatter = "dark-matter", r.Positron = "positron", r.Voyager = "voyager", r))(Cr || {});
3
+ const ae = {
7
4
  positron: "https://basemaps.cartocdn.com/gl/positron-gl-style/style.json",
8
5
  voyager: "https://basemaps.cartocdn.com/gl/voyager-gl-style/style.json",
9
6
  "dark-matter": "https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json"
10
7
  };
11
- var Xe = /* @__PURE__ */ ((t) => (t.Maplibre = "maplibre", t.GoogleMaps = "google-maps", t))(Xe || {});
12
- const ve = {
8
+ var Or = /* @__PURE__ */ ((r) => (r.Maplibre = "maplibre", r.GoogleMaps = "google-maps", r))(Or || {});
9
+ const Ae = {
13
10
  positron: {
14
- url: de.positron,
11
+ url: ae.positron,
15
12
  type: "maplibre"
16
13
  /* Maplibre */
17
14
  },
18
15
  voyager: {
19
- url: de.voyager,
16
+ url: ae.voyager,
20
17
  type: "maplibre"
21
18
  /* Maplibre */
22
19
  },
23
20
  "dark-matter": {
24
- url: de[
21
+ url: ae[
25
22
  "dark-matter"
26
23
  /* DarkMatter */
27
24
  ],
@@ -40,9 +37,9 @@ const ve = {
40
37
  type: "google-maps"
41
38
  /* GoogleMaps */
42
39
  }
43
- }, Y = () => {
40
+ }, V = () => {
44
41
  throw new Error("You forgot to wrap your component in <MapProvider>.");
45
- }, q = {
42
+ }, B = {
46
43
  state: {
47
44
  maps: {}
48
45
  // sync: false,
@@ -52,137 +49,162 @@ const ve = {
52
49
  },
53
50
  actions: {
54
51
  // toggleSync: stub,
55
- setViewState: Y,
56
- setBasemap: Y,
57
- setResize: Y,
58
- setZoom: Y,
59
- setLoaded: Y
52
+ setViewState: V,
53
+ setBasemap: V,
54
+ setResize: V,
55
+ setZoom: V,
56
+ setLoaded: V
60
57
  }
61
- }, Qe = J(
62
- q.state
63
- ), et = J(q.references), tt = J(
64
- q.actions
58
+ }, Ne = se(
59
+ B.state
60
+ ), Ve = se(B.references), Ye = se(
61
+ B.actions
65
62
  );
66
- var F = /* @__PURE__ */ ((t) => (t.SetViewState = "SetViewState", t.SetBasemap = "SetBasemap", t.SetResize = "SetResize", t.SetZoom = "SetZoom", t.SetLoaded = "SetLoaded", t))(F || {});
67
- function Jt(t, { type: r, payload: a }) {
63
+ var F = /* @__PURE__ */ ((r) => (r.SetViewState = "SetViewState", r.SetBasemap = "SetBasemap", r.SetResize = "SetResize", r.SetZoom = "SetZoom", r.SetLoaded = "SetLoaded", r))(F || {});
64
+ function Pr(r, { type: u, payload: d }) {
68
65
  return {
69
66
  SetViewState: () => {
70
- const { id: i, viewState: p } = a, l = { ...t.maps };
71
- return l[i] = {
72
- ...t.maps[i],
73
- viewState: p
67
+ const { id: o, viewState: y } = d, l = { ...r.maps };
68
+ return l[o] = {
69
+ ...r.maps[o],
70
+ viewState: y
74
71
  }, {
75
- ...t,
72
+ ...r,
76
73
  maps: l
77
74
  };
78
75
  },
79
76
  SetResize: () => {
80
- const { id: i, width: p, height: l } = a, h = { ...t.maps };
81
- return h[i] = {
82
- ...t.maps[i],
77
+ const { id: o, width: y, height: l } = d, E = { ...r.maps };
78
+ return E[o] = {
79
+ ...r.maps[o],
83
80
  viewState: {
84
- ...t.maps[i].viewState,
85
- width: p,
81
+ ...r.maps[o].viewState,
82
+ width: y,
86
83
  height: l
87
84
  }
88
85
  }, {
89
- ...t,
90
- maps: h
86
+ ...r,
87
+ maps: E
91
88
  };
92
89
  },
93
90
  SetBasemap: () => {
94
- const { id: i, basemap: p } = a, l = { ...t.maps }, { basemap: h } = l[i], c = ve[h]?.type, y = ve[p]?.type, b = c === y;
95
- return l[i] = {
96
- ...t.maps[i],
97
- basemap: p,
98
- isLoaded: b
91
+ const { id: o, basemap: y } = d, l = { ...r.maps }, { basemap: E } = l[o], s = Ae[E]?.type, R = Ae[y]?.type, g = s === R;
92
+ return l[o] = {
93
+ ...r.maps[o],
94
+ basemap: y,
95
+ isLoaded: g
99
96
  }, {
100
- ...t,
97
+ ...r,
101
98
  maps: l
102
99
  };
103
100
  },
104
101
  SetZoom: () => {
105
- const { id: i, zoom: p } = a, l = { ...t.maps };
106
- return l[i] = {
107
- ...t.maps[i],
102
+ const { id: o, zoom: y } = d, l = { ...r.maps };
103
+ return l[o] = {
104
+ ...r.maps[o],
108
105
  viewState: {
109
- ...t.maps[i].viewState,
110
- zoom: p
106
+ ...r.maps[o].viewState,
107
+ zoom: y
111
108
  }
112
109
  }, {
113
- ...t,
110
+ ...r,
114
111
  maps: l
115
112
  };
116
113
  },
117
114
  SetLoaded: () => {
118
- const { id: i, value: p } = a, l = { ...t.maps };
119
- return l[i] = {
120
- ...t.maps[i],
121
- isLoaded: p
115
+ const { id: o, value: y } = d, l = { ...r.maps };
116
+ return l[o] = {
117
+ ...r.maps[o],
118
+ isLoaded: y
122
119
  }, {
123
- ...t,
120
+ ...r,
124
121
  maps: l
125
122
  };
126
123
  }
127
- }[r]?.() ?? t;
128
- }
129
- function rt(t) {
130
- return K(Qe).maps[t];
131
- }
132
- function ge(t) {
133
- const r = K(et), { instanceRef: a, overlayRef: s } = r.current[t], i = w(() => {
134
- const y = a?.current;
135
- return y?.deck || y?._deck;
136
- }, [a]), p = w(() => s?.current, [s]), l = w(() => i()._getViewState(), [i]), h = w(
137
- (y) => i()?.getViewports(y),
138
- [i]
139
- ), c = w(
140
- (y = 0, b) => h(b)?.[y],
141
- [h]
124
+ }[u]?.() ?? r;
125
+ }
126
+ function xr(r) {
127
+ return ue(Ne).maps[r];
128
+ }
129
+ function $e(r) {
130
+ const u = ue(Ve), { instanceRef: d, overlayRef: h } = u.current[r], o = P(() => {
131
+ const R = d?.current;
132
+ return R?.deck || R?._deck;
133
+ }, [d]), y = P(() => h?.current, [h]), l = P(() => o()?._getViewState(), [o]), E = P(
134
+ (R) => o()?.getViewports(R),
135
+ [o]
136
+ ), s = P(
137
+ (R = 0, g) => E(g)?.[R],
138
+ [E]
142
139
  );
143
140
  return {
144
- instanceRef: a,
145
- overlayRef: s,
146
- getDeckInstance: i,
147
- getOverlayInstance: p,
141
+ instanceRef: d,
142
+ overlayRef: h,
143
+ getDeckInstance: o,
144
+ getOverlayInstance: y,
148
145
  getViewState: l,
149
- getViewport: c,
150
- getViewports: h
146
+ getViewport: s,
147
+ getViewports: E
151
148
  };
152
149
  }
153
- function Kt(t) {
154
- const { setBasemap: r, setResize: a, setViewState: s, setZoom: i, setLoaded: p } = K(tt), { getViewport: l } = ge(t);
150
+ function jr(r) {
151
+ const { setBasemap: u, setResize: d, setViewState: h, setZoom: o, setLoaded: y } = ue(Ye), { getViewport: l } = $e(r);
155
152
  return {
156
- setBasemap: (c) => r(c, t),
157
- setResize: (c) => a(c, t),
158
- setViewState: (c) => s(c, t),
159
- setZoom: (c) => i(c, t),
160
- setLoaded: (c) => p(c, t),
161
- fitBounds: (c, {
162
- boundsOptions: y,
163
- viewStateOptions: b
153
+ setBasemap: (s) => u(s, r),
154
+ setResize: (s) => d(s, r),
155
+ setViewState: (s) => h(s, r),
156
+ setZoom: (s) => o(s, r),
157
+ setLoaded: (s) => y(s, r),
158
+ fitBounds: (s, {
159
+ boundsOptions: R,
160
+ viewStateOptions: g
164
161
  } = {}) => {
165
- const _ = l(), { latitude: O, longitude: m, zoom: g } = _.fitBounds(
166
- c,
167
- y
162
+ const T = l(), { latitude: C, longitude: p, zoom: v } = T.fitBounds(
163
+ s,
164
+ R
168
165
  );
169
- s({ ...b, latitude: O, longitude: m, zoom: g }, t);
166
+ h({ ...g, latitude: C, longitude: p, zoom: v }, r);
170
167
  }
171
168
  };
172
169
  }
173
- function kr(t) {
174
- return rt(t);
170
+ function Yr(r) {
171
+ return xr(r);
175
172
  }
176
- function Lr(t) {
177
- return ge(t);
173
+ function $r(r) {
174
+ return $e(r);
178
175
  }
179
- function Ir(t) {
180
- return Kt(t);
176
+ function Br(r) {
177
+ return jr(r);
181
178
  }
182
- function Xt(t) {
183
- return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
179
+ var ie = { exports: {} }, Y = {};
180
+ /**
181
+ * @license React
182
+ * react-jsx-runtime.production.min.js
183
+ *
184
+ * Copyright (c) Facebook, Inc. and its affiliates.
185
+ *
186
+ * This source code is licensed under the MIT license found in the
187
+ * LICENSE file in the root directory of this source tree.
188
+ */
189
+ var Me;
190
+ function kr() {
191
+ if (Me)
192
+ return Y;
193
+ Me = 1;
194
+ var r = Ue, u = Symbol.for("react.element"), d = Symbol.for("react.fragment"), h = Object.prototype.hasOwnProperty, o = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, y = { key: !0, ref: !0, __self: !0, __source: !0 };
195
+ function l(E, s, R) {
196
+ var g, T = {}, C = null, p = null;
197
+ R !== void 0 && (C = "" + R), s.key !== void 0 && (C = "" + s.key), s.ref !== void 0 && (p = s.ref);
198
+ for (g in s)
199
+ h.call(s, g) && !y.hasOwnProperty(g) && (T[g] = s[g]);
200
+ if (E && E.defaultProps)
201
+ for (g in s = E.defaultProps, s)
202
+ T[g] === void 0 && (T[g] = s[g]);
203
+ return { $$typeof: u, type: E, key: C, ref: p, props: T, _owner: o.current };
204
+ }
205
+ return Y.Fragment = d, Y.jsx = l, Y.jsxs = l, Y;
184
206
  }
185
- var me = { exports: {} }, B = {};
207
+ var $ = {};
186
208
  /**
187
209
  * @license React
188
210
  * react-jsx-runtime.development.js
@@ -192,91 +214,91 @@ var me = { exports: {} }, B = {};
192
214
  * This source code is licensed under the MIT license found in the
193
215
  * LICENSE file in the root directory of this source tree.
194
216
  */
195
- var Be;
196
- function Qt() {
197
- return Be || (Be = 1, process.env.NODE_ENV !== "production" && function() {
198
- var t = Je, r = Symbol.for("react.element"), a = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), p = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), h = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), y = Symbol.for("react.suspense"), b = Symbol.for("react.suspense_list"), _ = Symbol.for("react.memo"), O = Symbol.for("react.lazy"), m = Symbol.for("react.offscreen"), g = Symbol.iterator, x = "@@iterator";
199
- function T(e) {
217
+ var Le;
218
+ function Dr() {
219
+ return Le || (Le = 1, process.env.NODE_ENV !== "production" && function() {
220
+ var r = Ue, u = Symbol.for("react.element"), d = Symbol.for("react.portal"), h = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), y = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), E = Symbol.for("react.context"), s = Symbol.for("react.forward_ref"), R = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), T = Symbol.for("react.memo"), C = Symbol.for("react.lazy"), p = Symbol.for("react.offscreen"), v = Symbol.iterator, k = "@@iterator";
221
+ function W(e) {
200
222
  if (e === null || typeof e != "object")
201
223
  return null;
202
- var n = g && e[g] || e[x];
203
- return typeof n == "function" ? n : null;
224
+ var t = v && e[v] || e[k];
225
+ return typeof t == "function" ? t : null;
204
226
  }
205
- var P = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
206
- function M(e) {
227
+ var D = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
228
+ function S(e) {
207
229
  {
208
- for (var n = arguments.length, o = new Array(n > 1 ? n - 1 : 0), u = 1; u < n; u++)
209
- o[u - 1] = arguments[u];
210
- ft("error", e, o);
230
+ for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), a = 1; a < t; a++)
231
+ n[a - 1] = arguments[a];
232
+ ze("error", e, n);
211
233
  }
212
234
  }
213
- function ft(e, n, o) {
235
+ function ze(e, t, n) {
214
236
  {
215
- var u = P.ReactDebugCurrentFrame, v = u.getStackAddendum();
216
- v !== "" && (n += "%s", o = o.concat([v]));
217
- var E = o.map(function(d) {
218
- return String(d);
237
+ var a = D.ReactDebugCurrentFrame, f = a.getStackAddendum();
238
+ f !== "" && (t += "%s", n = n.concat([f]));
239
+ var m = n.map(function(c) {
240
+ return String(c);
219
241
  });
220
- E.unshift("Warning: " + n), Function.prototype.apply.call(console[e], console, E);
242
+ m.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, m);
221
243
  }
222
244
  }
223
- var dt = !1, pt = !1, vt = !1, mt = !1, gt = !1, Ee;
224
- Ee = Symbol.for("react.module.reference");
225
- function yt(e) {
226
- return !!(typeof e == "string" || typeof e == "function" || e === s || e === p || gt || e === i || e === y || e === b || mt || e === m || dt || pt || vt || typeof e == "object" && e !== null && (e.$$typeof === O || e.$$typeof === _ || e.$$typeof === l || e.$$typeof === h || e.$$typeof === c || // This needs to include all possible module reference object
245
+ var Ze = !1, qe = !1, He = !1, Je = !1, Ge = !1, ce;
246
+ ce = Symbol.for("react.module.reference");
247
+ function Ke(e) {
248
+ return !!(typeof e == "string" || typeof e == "function" || e === h || e === y || Ge || e === o || e === R || e === g || Je || e === p || Ze || qe || He || typeof e == "object" && e !== null && (e.$$typeof === C || e.$$typeof === T || e.$$typeof === l || e.$$typeof === E || e.$$typeof === s || // This needs to include all possible module reference object
227
249
  // types supported by any Flight configuration anywhere since
228
250
  // we don't know which Flight build this will end up being used
229
251
  // with.
230
- e.$$typeof === Ee || e.getModuleId !== void 0));
252
+ e.$$typeof === ce || e.getModuleId !== void 0));
231
253
  }
232
- function bt(e, n, o) {
233
- var u = e.displayName;
234
- if (u)
235
- return u;
236
- var v = n.displayName || n.name || "";
237
- return v !== "" ? o + "(" + v + ")" : o;
254
+ function Xe(e, t, n) {
255
+ var a = e.displayName;
256
+ if (a)
257
+ return a;
258
+ var f = t.displayName || t.name || "";
259
+ return f !== "" ? n + "(" + f + ")" : n;
238
260
  }
239
- function he(e) {
261
+ function le(e) {
240
262
  return e.displayName || "Context";
241
263
  }
242
- function A(e) {
264
+ function x(e) {
243
265
  if (e == null)
244
266
  return null;
245
- if (typeof e.tag == "number" && M("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
267
+ if (typeof e.tag == "number" && S("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
246
268
  return e.displayName || e.name || null;
247
269
  if (typeof e == "string")
248
270
  return e;
249
271
  switch (e) {
250
- case s:
272
+ case h:
251
273
  return "Fragment";
252
- case a:
274
+ case d:
253
275
  return "Portal";
254
- case p:
276
+ case y:
255
277
  return "Profiler";
256
- case i:
278
+ case o:
257
279
  return "StrictMode";
258
- case y:
280
+ case R:
259
281
  return "Suspense";
260
- case b:
282
+ case g:
261
283
  return "SuspenseList";
262
284
  }
263
285
  if (typeof e == "object")
264
286
  switch (e.$$typeof) {
265
- case h:
266
- var n = e;
267
- return he(n) + ".Consumer";
287
+ case E:
288
+ var t = e;
289
+ return le(t) + ".Consumer";
268
290
  case l:
269
- var o = e;
270
- return he(o._context) + ".Provider";
271
- case c:
272
- return bt(e, e.render, "ForwardRef");
273
- case _:
274
- var u = e.displayName || null;
275
- return u !== null ? u : A(e.type) || "Memo";
276
- case O: {
277
- var v = e, E = v._payload, d = v._init;
291
+ var n = e;
292
+ return le(n._context) + ".Provider";
293
+ case s:
294
+ return Xe(e, e.render, "ForwardRef");
295
+ case T:
296
+ var a = e.displayName || null;
297
+ return a !== null ? a : x(e.type) || "Memo";
298
+ case C: {
299
+ var f = e, m = f._payload, c = f._init;
278
300
  try {
279
- return A(d(E));
301
+ return x(c(m));
280
302
  } catch {
281
303
  return null;
282
304
  }
@@ -284,18 +306,18 @@ function Qt() {
284
306
  }
285
307
  return null;
286
308
  }
287
- var L = Object.assign, $ = 0, Re, Se, _e, Te, Me, we, Oe;
288
- function Pe() {
309
+ var M = Object.assign, U = 0, fe, de, pe, ve, me, ye, ge;
310
+ function Re() {
289
311
  }
290
- Pe.__reactDisabledLog = !0;
291
- function Et() {
312
+ Re.__reactDisabledLog = !0;
313
+ function Qe() {
292
314
  {
293
- if ($ === 0) {
294
- Re = console.log, Se = console.info, _e = console.warn, Te = console.error, Me = console.group, we = console.groupCollapsed, Oe = console.groupEnd;
315
+ if (U === 0) {
316
+ fe = console.log, de = console.info, pe = console.warn, ve = console.error, me = console.group, ye = console.groupCollapsed, ge = console.groupEnd;
295
317
  var e = {
296
318
  configurable: !0,
297
319
  enumerable: !0,
298
- value: Pe,
320
+ value: Re,
299
321
  writable: !0
300
322
  };
301
323
  Object.defineProperties(console, {
@@ -308,336 +330,336 @@ function Qt() {
308
330
  groupEnd: e
309
331
  });
310
332
  }
311
- $++;
333
+ U++;
312
334
  }
313
335
  }
314
- function ht() {
336
+ function er() {
315
337
  {
316
- if ($--, $ === 0) {
338
+ if (U--, U === 0) {
317
339
  var e = {
318
340
  configurable: !0,
319
341
  enumerable: !0,
320
342
  writable: !0
321
343
  };
322
344
  Object.defineProperties(console, {
323
- log: L({}, e, {
324
- value: Re
345
+ log: M({}, e, {
346
+ value: fe
325
347
  }),
326
- info: L({}, e, {
327
- value: Se
348
+ info: M({}, e, {
349
+ value: de
328
350
  }),
329
- warn: L({}, e, {
330
- value: _e
351
+ warn: M({}, e, {
352
+ value: pe
331
353
  }),
332
- error: L({}, e, {
333
- value: Te
354
+ error: M({}, e, {
355
+ value: ve
334
356
  }),
335
- group: L({}, e, {
336
- value: Me
357
+ group: M({}, e, {
358
+ value: me
337
359
  }),
338
- groupCollapsed: L({}, e, {
339
- value: we
360
+ groupCollapsed: M({}, e, {
361
+ value: ye
340
362
  }),
341
- groupEnd: L({}, e, {
342
- value: Oe
363
+ groupEnd: M({}, e, {
364
+ value: ge
343
365
  })
344
366
  });
345
367
  }
346
- $ < 0 && M("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
368
+ U < 0 && S("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
347
369
  }
348
370
  }
349
- var ae = P.ReactCurrentDispatcher, oe;
350
- function X(e, n, o) {
371
+ var G = D.ReactCurrentDispatcher, K;
372
+ function z(e, t, n) {
351
373
  {
352
- if (oe === void 0)
374
+ if (K === void 0)
353
375
  try {
354
376
  throw Error();
355
- } catch (v) {
356
- var u = v.stack.trim().match(/\n( *(at )?)/);
357
- oe = u && u[1] || "";
377
+ } catch (f) {
378
+ var a = f.stack.trim().match(/\n( *(at )?)/);
379
+ K = a && a[1] || "";
358
380
  }
359
381
  return `
360
- ` + oe + e;
382
+ ` + K + e;
361
383
  }
362
384
  }
363
- var ie = !1, Q;
385
+ var X = !1, Z;
364
386
  {
365
- var Rt = typeof WeakMap == "function" ? WeakMap : Map;
366
- Q = new Rt();
387
+ var rr = typeof WeakMap == "function" ? WeakMap : Map;
388
+ Z = new rr();
367
389
  }
368
- function Ce(e, n) {
369
- if (!e || ie)
390
+ function Ee(e, t) {
391
+ if (!e || X)
370
392
  return "";
371
393
  {
372
- var o = Q.get(e);
373
- if (o !== void 0)
374
- return o;
394
+ var n = Z.get(e);
395
+ if (n !== void 0)
396
+ return n;
375
397
  }
376
- var u;
377
- ie = !0;
378
- var v = Error.prepareStackTrace;
398
+ var a;
399
+ X = !0;
400
+ var f = Error.prepareStackTrace;
379
401
  Error.prepareStackTrace = void 0;
380
- var E;
381
- E = ae.current, ae.current = null, Et();
402
+ var m;
403
+ m = G.current, G.current = null, Qe();
382
404
  try {
383
- if (n) {
384
- var d = function() {
405
+ if (t) {
406
+ var c = function() {
385
407
  throw Error();
386
408
  };
387
- if (Object.defineProperty(d.prototype, "props", {
409
+ if (Object.defineProperty(c.prototype, "props", {
388
410
  set: function() {
389
411
  throw Error();
390
412
  }
391
413
  }), typeof Reflect == "object" && Reflect.construct) {
392
414
  try {
393
- Reflect.construct(d, []);
394
- } catch (D) {
395
- u = D;
415
+ Reflect.construct(c, []);
416
+ } catch (j) {
417
+ a = j;
396
418
  }
397
- Reflect.construct(e, [], d);
419
+ Reflect.construct(e, [], c);
398
420
  } else {
399
421
  try {
400
- d.call();
401
- } catch (D) {
402
- u = D;
422
+ c.call();
423
+ } catch (j) {
424
+ a = j;
403
425
  }
404
- e.call(d.prototype);
426
+ e.call(c.prototype);
405
427
  }
406
428
  } else {
407
429
  try {
408
430
  throw Error();
409
- } catch (D) {
410
- u = D;
431
+ } catch (j) {
432
+ a = j;
411
433
  }
412
434
  e();
413
435
  }
414
- } catch (D) {
415
- if (D && u && typeof D.stack == "string") {
416
- for (var f = D.stack.split(`
417
- `), C = u.stack.split(`
418
- `), R = f.length - 1, S = C.length - 1; R >= 1 && S >= 0 && f[R] !== C[S]; )
419
- S--;
420
- for (; R >= 1 && S >= 0; R--, S--)
421
- if (f[R] !== C[S]) {
422
- if (R !== 1 || S !== 1)
436
+ } catch (j) {
437
+ if (j && a && typeof j.stack == "string") {
438
+ for (var i = j.stack.split(`
439
+ `), w = a.stack.split(`
440
+ `), b = i.length - 1, _ = w.length - 1; b >= 1 && _ >= 0 && i[b] !== w[_]; )
441
+ _--;
442
+ for (; b >= 1 && _ >= 0; b--, _--)
443
+ if (i[b] !== w[_]) {
444
+ if (b !== 1 || _ !== 1)
423
445
  do
424
- if (R--, S--, S < 0 || f[R] !== C[S]) {
425
- var j = `
426
- ` + f[R].replace(" at new ", " at ");
427
- return e.displayName && j.includes("<anonymous>") && (j = j.replace("<anonymous>", e.displayName)), typeof e == "function" && Q.set(e, j), j;
446
+ if (b--, _--, _ < 0 || i[b] !== w[_]) {
447
+ var O = `
448
+ ` + i[b].replace(" at new ", " at ");
449
+ return e.displayName && O.includes("<anonymous>") && (O = O.replace("<anonymous>", e.displayName)), typeof e == "function" && Z.set(e, O), O;
428
450
  }
429
- while (R >= 1 && S >= 0);
451
+ while (b >= 1 && _ >= 0);
430
452
  break;
431
453
  }
432
454
  }
433
455
  } finally {
434
- ie = !1, ae.current = E, ht(), Error.prepareStackTrace = v;
456
+ X = !1, G.current = m, er(), Error.prepareStackTrace = f;
435
457
  }
436
- var N = e ? e.displayName || e.name : "", Ye = N ? X(N) : "";
437
- return typeof e == "function" && Q.set(e, Ye), Ye;
458
+ var I = e ? e.displayName || e.name : "", De = I ? z(I) : "";
459
+ return typeof e == "function" && Z.set(e, De), De;
438
460
  }
439
- function St(e, n, o) {
440
- return Ce(e, !1);
461
+ function tr(e, t, n) {
462
+ return Ee(e, !1);
441
463
  }
442
- function _t(e) {
443
- var n = e.prototype;
444
- return !!(n && n.isReactComponent);
464
+ function nr(e) {
465
+ var t = e.prototype;
466
+ return !!(t && t.isReactComponent);
445
467
  }
446
- function ee(e, n, o) {
468
+ function q(e, t, n) {
447
469
  if (e == null)
448
470
  return "";
449
471
  if (typeof e == "function")
450
- return Ce(e, _t(e));
472
+ return Ee(e, nr(e));
451
473
  if (typeof e == "string")
452
- return X(e);
474
+ return z(e);
453
475
  switch (e) {
454
- case y:
455
- return X("Suspense");
456
- case b:
457
- return X("SuspenseList");
476
+ case R:
477
+ return z("Suspense");
478
+ case g:
479
+ return z("SuspenseList");
458
480
  }
459
481
  if (typeof e == "object")
460
482
  switch (e.$$typeof) {
461
- case c:
462
- return St(e.render);
463
- case _:
464
- return ee(e.type, n, o);
465
- case O: {
466
- var u = e, v = u._payload, E = u._init;
483
+ case s:
484
+ return tr(e.render);
485
+ case T:
486
+ return q(e.type, t, n);
487
+ case C: {
488
+ var a = e, f = a._payload, m = a._init;
467
489
  try {
468
- return ee(E(v), n, o);
490
+ return q(m(f), t, n);
469
491
  } catch {
470
492
  }
471
493
  }
472
494
  }
473
495
  return "";
474
496
  }
475
- var te = Object.prototype.hasOwnProperty, je = {}, xe = P.ReactDebugCurrentFrame;
476
- function re(e) {
497
+ var H = Object.prototype.hasOwnProperty, be = {}, he = D.ReactDebugCurrentFrame;
498
+ function J(e) {
477
499
  if (e) {
478
- var n = e._owner, o = ee(e.type, e._source, n ? n.type : null);
479
- xe.setExtraStackFrame(o);
500
+ var t = e._owner, n = q(e.type, e._source, t ? t.type : null);
501
+ he.setExtraStackFrame(n);
480
502
  } else
481
- xe.setExtraStackFrame(null);
503
+ he.setExtraStackFrame(null);
482
504
  }
483
- function Tt(e, n, o, u, v) {
505
+ function ar(e, t, n, a, f) {
484
506
  {
485
- var E = Function.call.bind(te);
486
- for (var d in e)
487
- if (E(e, d)) {
488
- var f = void 0;
507
+ var m = Function.call.bind(H);
508
+ for (var c in e)
509
+ if (m(e, c)) {
510
+ var i = void 0;
489
511
  try {
490
- if (typeof e[d] != "function") {
491
- var C = Error((u || "React class") + ": " + o + " type `" + d + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[d] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
492
- throw C.name = "Invariant Violation", C;
512
+ if (typeof e[c] != "function") {
513
+ var w = Error((a || "React class") + ": " + n + " type `" + c + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[c] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
514
+ throw w.name = "Invariant Violation", w;
493
515
  }
494
- f = e[d](n, d, u, o, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
495
- } catch (R) {
496
- f = R;
516
+ i = e[c](t, c, a, n, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
517
+ } catch (b) {
518
+ i = b;
497
519
  }
498
- f && !(f instanceof Error) && (re(v), M("%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", o, d, typeof f), re(null)), f instanceof Error && !(f.message in je) && (je[f.message] = !0, re(v), M("Failed %s type: %s", o, f.message), re(null));
520
+ i && !(i instanceof Error) && (J(f), S("%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).", a || "React class", n, c, typeof i), J(null)), i instanceof Error && !(i.message in be) && (be[i.message] = !0, J(f), S("Failed %s type: %s", n, i.message), J(null));
499
521
  }
500
522
  }
501
523
  }
502
- var Mt = Array.isArray;
503
- function se(e) {
504
- return Mt(e);
524
+ var or = Array.isArray;
525
+ function Q(e) {
526
+ return or(e);
505
527
  }
506
- function wt(e) {
528
+ function ir(e) {
507
529
  {
508
- var n = typeof Symbol == "function" && Symbol.toStringTag, o = n && e[Symbol.toStringTag] || e.constructor.name || "Object";
509
- return o;
530
+ var t = typeof Symbol == "function" && Symbol.toStringTag, n = t && e[Symbol.toStringTag] || e.constructor.name || "Object";
531
+ return n;
510
532
  }
511
533
  }
512
- function Ot(e) {
534
+ function sr(e) {
513
535
  try {
514
- return Ae(e), !1;
536
+ return _e(e), !1;
515
537
  } catch {
516
538
  return !0;
517
539
  }
518
540
  }
519
- function Ae(e) {
541
+ function _e(e) {
520
542
  return "" + e;
521
543
  }
522
- function De(e) {
523
- if (Ot(e))
524
- return M("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", wt(e)), Ae(e);
544
+ function Se(e) {
545
+ if (sr(e))
546
+ return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ir(e)), _e(e);
525
547
  }
526
- var V = P.ReactCurrentOwner, Pt = {
548
+ var N = D.ReactCurrentOwner, ur = {
527
549
  key: !0,
528
550
  ref: !0,
529
551
  __self: !0,
530
552
  __source: !0
531
- }, Fe, ke, ue;
532
- ue = {};
533
- function Ct(e) {
534
- if (te.call(e, "ref")) {
535
- var n = Object.getOwnPropertyDescriptor(e, "ref").get;
536
- if (n && n.isReactWarning)
553
+ }, Te, we, ee;
554
+ ee = {};
555
+ function cr(e) {
556
+ if (H.call(e, "ref")) {
557
+ var t = Object.getOwnPropertyDescriptor(e, "ref").get;
558
+ if (t && t.isReactWarning)
537
559
  return !1;
538
560
  }
539
561
  return e.ref !== void 0;
540
562
  }
541
- function jt(e) {
542
- if (te.call(e, "key")) {
543
- var n = Object.getOwnPropertyDescriptor(e, "key").get;
544
- if (n && n.isReactWarning)
563
+ function lr(e) {
564
+ if (H.call(e, "key")) {
565
+ var t = Object.getOwnPropertyDescriptor(e, "key").get;
566
+ if (t && t.isReactWarning)
545
567
  return !1;
546
568
  }
547
569
  return e.key !== void 0;
548
570
  }
549
- function xt(e, n) {
550
- if (typeof e.ref == "string" && V.current && n && V.current.stateNode !== n) {
551
- var o = A(V.current.type);
552
- ue[o] || (M('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(V.current.type), e.ref), ue[o] = !0);
571
+ function fr(e, t) {
572
+ if (typeof e.ref == "string" && N.current && t && N.current.stateNode !== t) {
573
+ var n = x(N.current.type);
574
+ ee[n] || (S('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', x(N.current.type), e.ref), ee[n] = !0);
553
575
  }
554
576
  }
555
- function At(e, n) {
577
+ function dr(e, t) {
556
578
  {
557
- var o = function() {
558
- Fe || (Fe = !0, M("%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));
579
+ var n = function() {
580
+ Te || (Te = !0, S("%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)", t));
559
581
  };
560
- o.isReactWarning = !0, Object.defineProperty(e, "key", {
561
- get: o,
582
+ n.isReactWarning = !0, Object.defineProperty(e, "key", {
583
+ get: n,
562
584
  configurable: !0
563
585
  });
564
586
  }
565
587
  }
566
- function Dt(e, n) {
588
+ function pr(e, t) {
567
589
  {
568
- var o = function() {
569
- ke || (ke = !0, M("%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));
590
+ var n = function() {
591
+ we || (we = !0, S("%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)", t));
570
592
  };
571
- o.isReactWarning = !0, Object.defineProperty(e, "ref", {
572
- get: o,
593
+ n.isReactWarning = !0, Object.defineProperty(e, "ref", {
594
+ get: n,
573
595
  configurable: !0
574
596
  });
575
597
  }
576
598
  }
577
- var Ft = function(e, n, o, u, v, E, d) {
578
- var f = {
599
+ var vr = function(e, t, n, a, f, m, c) {
600
+ var i = {
579
601
  // This tag allows us to uniquely identify this as a React Element
580
- $$typeof: r,
602
+ $$typeof: u,
581
603
  // Built-in properties that belong on the element
582
604
  type: e,
583
- key: n,
584
- ref: o,
585
- props: d,
605
+ key: t,
606
+ ref: n,
607
+ props: c,
586
608
  // Record the component responsible for creating this element.
587
- _owner: E
609
+ _owner: m
588
610
  };
589
- return f._store = {}, Object.defineProperty(f._store, "validated", {
611
+ return i._store = {}, Object.defineProperty(i._store, "validated", {
590
612
  configurable: !1,
591
613
  enumerable: !1,
592
614
  writable: !0,
593
615
  value: !1
594
- }), Object.defineProperty(f, "_self", {
616
+ }), Object.defineProperty(i, "_self", {
595
617
  configurable: !1,
596
618
  enumerable: !1,
597
619
  writable: !1,
598
- value: u
599
- }), Object.defineProperty(f, "_source", {
620
+ value: a
621
+ }), Object.defineProperty(i, "_source", {
600
622
  configurable: !1,
601
623
  enumerable: !1,
602
624
  writable: !1,
603
- value: v
604
- }), Object.freeze && (Object.freeze(f.props), Object.freeze(f)), f;
625
+ value: f
626
+ }), Object.freeze && (Object.freeze(i.props), Object.freeze(i)), i;
605
627
  };
606
- function kt(e, n, o, u, v) {
628
+ function mr(e, t, n, a, f) {
607
629
  {
608
- var E, d = {}, f = null, C = null;
609
- o !== void 0 && (De(o), f = "" + o), jt(n) && (De(n.key), f = "" + n.key), Ct(n) && (C = n.ref, xt(n, v));
610
- for (E in n)
611
- te.call(n, E) && !Pt.hasOwnProperty(E) && (d[E] = n[E]);
630
+ var m, c = {}, i = null, w = null;
631
+ n !== void 0 && (Se(n), i = "" + n), lr(t) && (Se(t.key), i = "" + t.key), cr(t) && (w = t.ref, fr(t, f));
632
+ for (m in t)
633
+ H.call(t, m) && !ur.hasOwnProperty(m) && (c[m] = t[m]);
612
634
  if (e && e.defaultProps) {
613
- var R = e.defaultProps;
614
- for (E in R)
615
- d[E] === void 0 && (d[E] = R[E]);
635
+ var b = e.defaultProps;
636
+ for (m in b)
637
+ c[m] === void 0 && (c[m] = b[m]);
616
638
  }
617
- if (f || C) {
618
- var S = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
619
- f && At(d, S), C && Dt(d, S);
639
+ if (i || w) {
640
+ var _ = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
641
+ i && dr(c, _), w && pr(c, _);
620
642
  }
621
- return Ft(e, f, C, v, u, V.current, d);
643
+ return vr(e, i, w, f, a, N.current, c);
622
644
  }
623
645
  }
624
- var ce = P.ReactCurrentOwner, Le = P.ReactDebugCurrentFrame;
625
- function I(e) {
646
+ var re = D.ReactCurrentOwner, Ce = D.ReactDebugCurrentFrame;
647
+ function L(e) {
626
648
  if (e) {
627
- var n = e._owner, o = ee(e.type, e._source, n ? n.type : null);
628
- Le.setExtraStackFrame(o);
649
+ var t = e._owner, n = q(e.type, e._source, t ? t.type : null);
650
+ Ce.setExtraStackFrame(n);
629
651
  } else
630
- Le.setExtraStackFrame(null);
652
+ Ce.setExtraStackFrame(null);
631
653
  }
632
- var le;
633
- le = !1;
634
- function fe(e) {
635
- return typeof e == "object" && e !== null && e.$$typeof === r;
654
+ var te;
655
+ te = !1;
656
+ function ne(e) {
657
+ return typeof e == "object" && e !== null && e.$$typeof === u;
636
658
  }
637
- function Ie() {
659
+ function Oe() {
638
660
  {
639
- if (ce.current) {
640
- var e = A(ce.current.type);
661
+ if (re.current) {
662
+ var e = x(re.current.type);
641
663
  if (e)
642
664
  return `
643
665
 
@@ -646,350 +668,235 @@ Check the render method of \`` + e + "`.";
646
668
  return "";
647
669
  }
648
670
  }
649
- function Lt(e) {
671
+ function yr(e) {
650
672
  {
651
673
  if (e !== void 0) {
652
- var n = e.fileName.replace(/^.*[\\\/]/, ""), o = e.lineNumber;
674
+ var t = e.fileName.replace(/^.*[\\\/]/, ""), n = e.lineNumber;
653
675
  return `
654
676
 
655
- Check your code at ` + n + ":" + o + ".";
677
+ Check your code at ` + t + ":" + n + ".";
656
678
  }
657
679
  return "";
658
680
  }
659
681
  }
660
- var Ne = {};
661
- function It(e) {
682
+ var Pe = {};
683
+ function gr(e) {
662
684
  {
663
- var n = Ie();
664
- if (!n) {
665
- var o = typeof e == "string" ? e : e.displayName || e.name;
666
- o && (n = `
685
+ var t = Oe();
686
+ if (!t) {
687
+ var n = typeof e == "string" ? e : e.displayName || e.name;
688
+ n && (t = `
667
689
 
668
- Check the top-level render call using <` + o + ">.");
690
+ Check the top-level render call using <` + n + ">.");
669
691
  }
670
- return n;
692
+ return t;
671
693
  }
672
694
  }
673
- function Ue(e, n) {
695
+ function xe(e, t) {
674
696
  {
675
697
  if (!e._store || e._store.validated || e.key != null)
676
698
  return;
677
699
  e._store.validated = !0;
678
- var o = It(n);
679
- if (Ne[o])
700
+ var n = gr(t);
701
+ if (Pe[n])
680
702
  return;
681
- Ne[o] = !0;
682
- var u = "";
683
- e && e._owner && e._owner !== ce.current && (u = " It was passed a child from " + A(e._owner.type) + "."), I(e), M('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', o, u), I(null);
703
+ Pe[n] = !0;
704
+ var a = "";
705
+ e && e._owner && e._owner !== re.current && (a = " It was passed a child from " + x(e._owner.type) + "."), L(e), S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', n, a), L(null);
684
706
  }
685
707
  }
686
- function $e(e, n) {
708
+ function je(e, t) {
687
709
  {
688
710
  if (typeof e != "object")
689
711
  return;
690
- if (se(e))
691
- for (var o = 0; o < e.length; o++) {
692
- var u = e[o];
693
- fe(u) && Ue(u, n);
712
+ if (Q(e))
713
+ for (var n = 0; n < e.length; n++) {
714
+ var a = e[n];
715
+ ne(a) && xe(a, t);
694
716
  }
695
- else if (fe(e))
717
+ else if (ne(e))
696
718
  e._store && (e._store.validated = !0);
697
719
  else if (e) {
698
- var v = T(e);
699
- if (typeof v == "function" && v !== e.entries)
700
- for (var E = v.call(e), d; !(d = E.next()).done; )
701
- fe(d.value) && Ue(d.value, n);
720
+ var f = W(e);
721
+ if (typeof f == "function" && f !== e.entries)
722
+ for (var m = f.call(e), c; !(c = m.next()).done; )
723
+ ne(c.value) && xe(c.value, t);
702
724
  }
703
725
  }
704
726
  }
705
- function Nt(e) {
727
+ function Rr(e) {
706
728
  {
707
- var n = e.type;
708
- if (n == null || typeof n == "string")
729
+ var t = e.type;
730
+ if (t == null || typeof t == "string")
709
731
  return;
710
- var o;
711
- if (typeof n == "function")
712
- o = n.propTypes;
713
- else if (typeof n == "object" && (n.$$typeof === c || // Note: Memo only checks outer props here.
732
+ var n;
733
+ if (typeof t == "function")
734
+ n = t.propTypes;
735
+ else if (typeof t == "object" && (t.$$typeof === s || // Note: Memo only checks outer props here.
714
736
  // Inner props are checked in the reconciler.
715
- n.$$typeof === _))
716
- o = n.propTypes;
737
+ t.$$typeof === T))
738
+ n = t.propTypes;
717
739
  else
718
740
  return;
719
- if (o) {
720
- var u = A(n);
721
- Tt(o, e.props, "prop", u, e);
722
- } else if (n.PropTypes !== void 0 && !le) {
723
- le = !0;
724
- var v = A(n);
725
- M("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", v || "Unknown");
741
+ if (n) {
742
+ var a = x(t);
743
+ ar(n, e.props, "prop", a, e);
744
+ } else if (t.PropTypes !== void 0 && !te) {
745
+ te = !0;
746
+ var f = x(t);
747
+ S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", f || "Unknown");
726
748
  }
727
- typeof n.getDefaultProps == "function" && !n.getDefaultProps.isReactClassApproved && M("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
749
+ typeof t.getDefaultProps == "function" && !t.getDefaultProps.isReactClassApproved && S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
728
750
  }
729
751
  }
730
- function Ut(e) {
752
+ function Er(e) {
731
753
  {
732
- for (var n = Object.keys(e.props), o = 0; o < n.length; o++) {
733
- var u = n[o];
734
- if (u !== "children" && u !== "key") {
735
- I(e), M("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", u), I(null);
754
+ for (var t = Object.keys(e.props), n = 0; n < t.length; n++) {
755
+ var a = t[n];
756
+ if (a !== "children" && a !== "key") {
757
+ L(e), S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", a), L(null);
736
758
  break;
737
759
  }
738
760
  }
739
- e.ref !== null && (I(e), M("Invalid attribute `ref` supplied to `React.Fragment`."), I(null));
761
+ e.ref !== null && (L(e), S("Invalid attribute `ref` supplied to `React.Fragment`."), L(null));
740
762
  }
741
763
  }
742
- function Ve(e, n, o, u, v, E) {
764
+ function ke(e, t, n, a, f, m) {
743
765
  {
744
- var d = yt(e);
745
- if (!d) {
746
- var f = "";
747
- (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (f += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
748
- var C = Lt(v);
749
- C ? f += C : f += Ie();
750
- var R;
751
- e === null ? R = "null" : se(e) ? R = "array" : e !== void 0 && e.$$typeof === r ? (R = "<" + (A(e.type) || "Unknown") + " />", f = " Did you accidentally export a JSX literal instead of a component?") : R = typeof e, M("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", R, f);
766
+ var c = Ke(e);
767
+ if (!c) {
768
+ var i = "";
769
+ (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (i += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
770
+ var w = yr(f);
771
+ w ? i += w : i += Oe();
772
+ var b;
773
+ e === null ? b = "null" : Q(e) ? b = "array" : e !== void 0 && e.$$typeof === u ? (b = "<" + (x(e.type) || "Unknown") + " />", i = " Did you accidentally export a JSX literal instead of a component?") : b = typeof e, S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", b, i);
752
774
  }
753
- var S = kt(e, n, o, v, E);
754
- if (S == null)
755
- return S;
756
- if (d) {
757
- var j = n.children;
758
- if (j !== void 0)
759
- if (u)
760
- if (se(j)) {
761
- for (var N = 0; N < j.length; N++)
762
- $e(j[N], e);
763
- Object.freeze && Object.freeze(j);
775
+ var _ = mr(e, t, n, f, m);
776
+ if (_ == null)
777
+ return _;
778
+ if (c) {
779
+ var O = t.children;
780
+ if (O !== void 0)
781
+ if (a)
782
+ if (Q(O)) {
783
+ for (var I = 0; I < O.length; I++)
784
+ je(O[I], e);
785
+ Object.freeze && Object.freeze(O);
764
786
  } else
765
- M("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
787
+ S("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
766
788
  else
767
- $e(j, e);
789
+ je(O, e);
768
790
  }
769
- return e === s ? Ut(S) : Nt(S), S;
791
+ return e === h ? Er(_) : Rr(_), _;
770
792
  }
771
793
  }
772
- function $t(e, n, o) {
773
- return Ve(e, n, o, !0);
794
+ function br(e, t, n) {
795
+ return ke(e, t, n, !0);
774
796
  }
775
- function Vt(e, n, o) {
776
- return Ve(e, n, o, !1);
797
+ function hr(e, t, n) {
798
+ return ke(e, t, n, !1);
777
799
  }
778
- var Yt = Vt, Bt = $t;
779
- B.Fragment = s, B.jsx = Yt, B.jsxs = Bt;
780
- }()), B;
800
+ var _r = hr, Sr = br;
801
+ $.Fragment = h, $.jsx = _r, $.jsxs = Sr;
802
+ }()), $;
781
803
  }
782
- var W = {};
783
- /**
784
- * @license React
785
- * react-jsx-runtime.production.min.js
786
- *
787
- * Copyright (c) Facebook, Inc. and its affiliates.
788
- *
789
- * This source code is licensed under the MIT license found in the
790
- * LICENSE file in the root directory of this source tree.
791
- */
792
- var We;
793
- function er() {
794
- if (We)
795
- return W;
796
- We = 1;
797
- var t = Je, r = Symbol.for("react.element"), a = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, i = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, p = { key: !0, ref: !0, __self: !0, __source: !0 };
798
- function l(h, c, y) {
799
- var b, _ = {}, O = null, m = null;
800
- y !== void 0 && (O = "" + y), c.key !== void 0 && (O = "" + c.key), c.ref !== void 0 && (m = c.ref);
801
- for (b in c)
802
- s.call(c, b) && !p.hasOwnProperty(b) && (_[b] = c[b]);
803
- if (h && h.defaultProps)
804
- for (b in c = h.defaultProps, c)
805
- _[b] === void 0 && (_[b] = c[b]);
806
- return { $$typeof: r, type: h, key: O, ref: m, props: _, _owner: i.current };
807
- }
808
- return W.Fragment = a, W.jsx = l, W.jsxs = l, W;
809
- }
810
- process.env.NODE_ENV === "production" ? me.exports = er() : me.exports = Qt();
811
- var z = me.exports;
812
- function Nr({
813
- children: t,
814
- maps: r,
815
- externalSync: a
804
+ process.env.NODE_ENV === "production" ? ie.exports = kr() : ie.exports = Dr();
805
+ var oe = ie.exports;
806
+ function Wr({
807
+ children: r,
808
+ maps: u,
809
+ externalSync: d
816
810
  }) {
817
- const [s, i] = Ke(Jt, {
818
- ...q.state,
819
- maps: r.reduce((m, g) => (m[g.id] = {
820
- ...g,
811
+ const [h, o] = Tr(Pr, {
812
+ ...B.state,
813
+ maps: u.reduce((p, v) => (p[v.id] = {
814
+ ...v,
821
815
  isLoaded: !1
822
- }, m), q.state.maps)
823
- }), p = pe(
824
- r.reduce((m, g) => (m[g.id] = {
816
+ }, p), B.state.maps)
817
+ }), y = Fe(
818
+ u.reduce((p, v) => (p[v.id] = {
825
819
  instanceRef: {
826
820
  current: null
827
821
  },
828
822
  overlayRef: {
829
823
  current: null
830
824
  }
831
- }, m), {})
832
- ), l = w(
833
- (m, g, x) => {
834
- r[0].id === m && a?.({
835
- type: g,
836
- payload: x
825
+ }, p), {})
826
+ ), l = P(
827
+ (p, v, k) => {
828
+ u[0].id === p && d?.({
829
+ type: v,
830
+ payload: k
837
831
  });
838
832
  },
839
- [a, r]
840
- ), h = w(
841
- (m, g) => {
842
- i({
833
+ [d, u]
834
+ ), E = P(
835
+ (p, v) => {
836
+ o({
843
837
  type: F.SetViewState,
844
838
  payload: {
845
- id: g,
846
- viewState: m
839
+ id: v,
840
+ viewState: p
847
841
  }
848
- }), l(g, F.SetViewState, m);
842
+ }), l(v, F.SetViewState, p);
849
843
  },
850
- [i, l]
851
- ), c = w(
852
- ({ height: m, width: g }, x) => {
853
- i({
844
+ [o, l]
845
+ ), s = P(
846
+ ({ height: p, width: v }, k) => {
847
+ o({
854
848
  type: F.SetResize,
855
849
  payload: {
856
- id: x,
857
- height: m,
858
- width: g
850
+ id: k,
851
+ height: p,
852
+ width: v
859
853
  }
860
- }), l(x, F.SetResize, { height: m, width: g });
854
+ }), l(k, F.SetResize, { height: p, width: v });
861
855
  },
862
- [i, l]
863
- ), y = w(
864
- (m, g) => {
865
- i({
856
+ [o, l]
857
+ ), R = P(
858
+ (p, v) => {
859
+ o({
866
860
  type: F.SetBasemap,
867
861
  payload: {
868
- id: g,
869
- basemap: m
862
+ id: v,
863
+ basemap: p
870
864
  }
871
865
  });
872
866
  },
873
- [i]
874
- ), b = w(
875
- (m, g) => {
876
- i({
867
+ [o]
868
+ ), g = P(
869
+ (p, v) => {
870
+ o({
877
871
  type: F.SetZoom,
878
872
  payload: {
879
- id: g,
880
- zoom: m
873
+ id: v,
874
+ zoom: p
881
875
  }
882
876
  });
883
877
  },
884
- [i]
885
- ), _ = w(
886
- (m, g) => {
887
- i({
878
+ [o]
879
+ ), T = P(
880
+ (p, v) => {
881
+ o({
888
882
  type: F.SetLoaded,
889
883
  payload: {
890
- id: g,
891
- value: m
884
+ id: v,
885
+ value: p
892
886
  }
893
887
  });
894
888
  },
895
- [i]
896
- ), O = pe({
897
- setViewState: h,
898
- setBasemap: y,
899
- setResize: c,
900
- setZoom: b,
901
- setLoaded: _
889
+ [o]
890
+ ), C = Fe({
891
+ setViewState: E,
892
+ setBasemap: R,
893
+ setResize: s,
894
+ setZoom: g,
895
+ setLoaded: T
902
896
  });
903
- return /* @__PURE__ */ z.jsx(tt.Provider, { value: O.current, children: /* @__PURE__ */ z.jsx(et.Provider, { value: p, children: /* @__PURE__ */ z.jsx(Qe.Provider, { value: s, children: t }) }) });
904
- }
905
- var ye = /* @__PURE__ */ ((t) => (t.kilometer = "kilometer", t.mile = "mile", t))(ye || {}), tr = /* @__PURE__ */ ((t) => (t.kilometer = "kilometers", t.mile = "miles", t))(tr || {}), G = /* @__PURE__ */ ((t) => (t.AddPosition = "addPosition", t.Finish = "finish", t))(G || {});
906
- class rr extends zt {
907
- handleClick(r, a) {
908
- super.handleClick(r, a), a.onEdit({
909
- // data is the same
910
- updatedData: a.data,
911
- editType: G.AddPosition,
912
- editContext: {
913
- distance: this._currentDistance
914
- }
915
- });
916
- }
917
- handleKeyUp(r, a) {
918
- if (this._isMeasuringSessionFinished)
919
- return;
920
- r.stopPropagation();
921
- const { key: s } = r, i = this.getClickSequence().length;
922
- switch (s) {
923
- case "Enter":
924
- case "Escape":
925
- this._isMeasuringSessionFinished = !0, i === 1 && (this.resetClickSequence(), this._currentTooltips = []), a.onUpdateCursor("cell"), a.onEdit({
926
- updatedData: a.data,
927
- editType: G.Finish,
928
- editContext: {
929
- finished: this._isMeasuringSessionFinished
930
- }
931
- });
932
- break;
933
- }
934
- }
897
+ return /* @__PURE__ */ oe.jsx(Ye.Provider, { value: C.current, children: /* @__PURE__ */ oe.jsx(Ve.Provider, { value: y, children: /* @__PURE__ */ oe.jsx(Ne.Provider, { value: h, children: r }) }) });
935
898
  }
936
- const He = [
937
- "anyclick",
938
- "pointermove",
939
- "panstart",
940
- "panmove",
941
- "panend",
942
- "keyup"
943
- ], nr = "mapMeasureLayer", ar = {
944
- mode: rr,
945
- id: nr,
946
- pickable: !0,
947
- billboard: !1,
948
- editHandlePointRadiusUnits: "pixels",
949
- editHandlePointStrokeWidth: 2,
950
- editHandlePointRadiusMinPixels: 1,
951
- editHandlePointRadiusMaxPixels: 12,
952
- getEditHandlePointRadius: 3,
953
- _subLayerProps: {
954
- tooltips: {
955
- fontFamily: "Open Sans, Inter, sans-serif",
956
- fontWeight: "lighter",
957
- getSize: 13,
958
- lineHeight: 0.85,
959
- getPixelOffset: [0, 20],
960
- getTextAnchor: "middle",
961
- getAlignmentBaseline: "center",
962
- updateTriggers: {}
963
- },
964
- guides: {
965
- // getLineColor: conditionalRgbColor,
966
- getLineWidth: 2
967
- }
968
- }
969
- };
970
- class or extends Ht {
971
- eventManager;
972
- constructor(r) {
973
- super(r), this.eventManager = r.eventManager;
974
- }
975
- _addEventHandlers() {
976
- const r = this._getEventManager(), { eventHandler: a } = this.state._editableLayerState;
977
- for (const s of He)
978
- r.on(s, a, {
979
- // give nebula a higher priority so that it can stop propagation to deck.gl's map panning handlers
980
- priority: 100
981
- });
982
- }
983
- _removeEventHandlers(r = void 0) {
984
- const a = r || this._getEventManager(), { eventHandler: s } = this.state._editableLayerState;
985
- for (const i of He)
986
- a.off(i, s);
987
- }
988
- _getEventManager() {
989
- return this.eventManager || this.context.deck.eventManager;
990
- }
991
- }
992
- const nt = {
899
+ const Be = {
993
900
  NUMBER: {
994
901
  style: "decimal",
995
902
  maximumFractionDigits: 1,
@@ -1011,337 +918,86 @@ const nt = {
1011
918
  day: "2-digit"
1012
919
  }
1013
920
  };
1014
- function at(t, r, a) {
1015
- return Intl.NumberFormat(r, a).format(t);
921
+ function We(r, u, d) {
922
+ return Intl.NumberFormat(u, d).format(r);
1016
923
  }
1017
- function ot(t, r, a = {}) {
1018
- return at(t, r, { ...nt.NUMBER, ...a });
924
+ function Fr(r, u, d = {}) {
925
+ return We(r, u, { ...Be.NUMBER, ...d });
1019
926
  }
1020
- function ir(t, r, a = {}) {
1021
- return at(t, r, { ...nt.CURRENCY, ...a });
927
+ function Ar(r, u, d = {}) {
928
+ return We(r, u, { ...Be.CURRENCY, ...d });
1022
929
  }
1023
- var k = /* @__PURE__ */ ((t) => (t.CURRENCY = "CURRENCY", t.DEFAULT = "DEFAULT", t.NUMBER = "NUMBER", t))(k || {});
1024
- const ze = {
1025
- [k.CURRENCY]: {
1026
- type: k.CURRENCY,
1027
- format: (t, r) => ir(t, r)
930
+ var A = /* @__PURE__ */ ((r) => (r.CURRENCY = "CURRENCY", r.DEFAULT = "DEFAULT", r.NUMBER = "NUMBER", r))(A || {});
931
+ const Ie = {
932
+ [A.CURRENCY]: {
933
+ type: A.CURRENCY,
934
+ format: (r, u) => Ar(r, u)
1028
935
  },
1029
- [k.NUMBER]: {
1030
- type: k.NUMBER,
1031
- format: (t, r) => ot(t, r)
936
+ [A.NUMBER]: {
937
+ type: A.NUMBER,
938
+ format: (r, u) => Fr(r, u)
1032
939
  },
1033
- [k.DEFAULT]: {
1034
- type: k.DEFAULT,
1035
- format: (t) => t.toLocaleString()
940
+ [A.DEFAULT]: {
941
+ type: A.DEFAULT,
942
+ format: (r) => r.toLocaleString()
1036
943
  }
1037
944
  };
1038
- function sr({
1039
- properties: t,
1040
- formatters: r = {},
1041
- includeColumns: a = Object.keys(t),
1042
- locale: s = "en-US",
1043
- showColumnName: i = !0,
1044
- title: p,
1045
- getColumnName: l = dr,
1046
- getFieldHtml: h = cr,
1047
- getTitle: c = ur,
1048
- getValue: y = lr
945
+ function zr({
946
+ properties: r,
947
+ formatters: u = {},
948
+ includeColumns: d = Object.keys(r),
949
+ locale: h = "en-US",
950
+ showColumnName: o = !0,
951
+ title: y,
952
+ getColumnName: l = Nr,
953
+ getFieldHtml: E = Lr,
954
+ getTitle: s = Mr,
955
+ getValue: R = Ir
1049
956
  }) {
1050
- const b = p ? c(p) : "", O = a.reduce((m, g) => {
1051
- const x = r[g], T = t[g], P = y(T, s, x), M = i ? l(g) : "";
1052
- return m + h(M, P);
957
+ const g = y ? s(y) : "", C = d.reduce((p, v) => {
958
+ const k = u[v], W = r[v], D = R(W, h, k), S = o ? l(v) : "";
959
+ return p + E(S, D);
1053
960
  }, "");
1054
- return b + O;
961
+ return g + C;
1055
962
  }
1056
- function ur(t) {
1057
- return `<h3 style="margin: 0"><strong>${t}</strong></h3></br>`;
963
+ function Mr(r) {
964
+ return `<h3 style="margin: 0"><strong>${r}</strong></h3></br>`;
1058
965
  }
1059
- function cr(t, r) {
1060
- return `${t}${r}</br>`;
966
+ function Lr(r, u) {
967
+ return `${r}${u}</br>`;
1061
968
  }
1062
- function lr(t, r, a) {
969
+ function Ir(r, u, d) {
1063
970
  try {
1064
- return fr(a)(t, r);
971
+ return Ur(d)(r, u);
1065
972
  } catch {
1066
- return t;
973
+ return r;
1067
974
  }
1068
975
  }
1069
- function fr(t) {
1070
- return typeof t == "function" ? t : (t && ze[t] || ze[k.DEFAULT]).format;
1071
- }
1072
- function dr(t) {
1073
- return `<strong>${t}</strong>: `;
1074
- }
1075
- var pr = function(r) {
1076
- return vr(r) && !mr(r);
1077
- };
1078
- function vr(t) {
1079
- return !!t && typeof t == "object";
1080
- }
1081
- function mr(t) {
1082
- var r = Object.prototype.toString.call(t);
1083
- return r === "[object RegExp]" || r === "[object Date]" || br(t);
976
+ function Ur(r) {
977
+ return typeof r == "function" ? r : (r && Ie[r] || Ie[A.DEFAULT]).format;
1084
978
  }
1085
- var gr = typeof Symbol == "function" && Symbol.for, yr = gr ? Symbol.for("react.element") : 60103;
1086
- function br(t) {
1087
- return t.$$typeof === yr;
1088
- }
1089
- function Er(t) {
1090
- return Array.isArray(t) ? [] : {};
1091
- }
1092
- function Z(t, r) {
1093
- return r.clone !== !1 && r.isMergeableObject(t) ? U(Er(t), t, r) : t;
1094
- }
1095
- function hr(t, r, a) {
1096
- return t.concat(r).map(function(s) {
1097
- return Z(s, a);
1098
- });
1099
- }
1100
- function Rr(t, r) {
1101
- if (!r.customMerge)
1102
- return U;
1103
- var a = r.customMerge(t);
1104
- return typeof a == "function" ? a : U;
1105
- }
1106
- function Sr(t) {
1107
- return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(t).filter(function(r) {
1108
- return Object.propertyIsEnumerable.call(t, r);
1109
- }) : [];
1110
- }
1111
- function qe(t) {
1112
- return Object.keys(t).concat(Sr(t));
1113
- }
1114
- function it(t, r) {
1115
- try {
1116
- return r in t;
1117
- } catch {
1118
- return !1;
1119
- }
1120
- }
1121
- function _r(t, r) {
1122
- return it(t, r) && !(Object.hasOwnProperty.call(t, r) && Object.propertyIsEnumerable.call(t, r));
1123
- }
1124
- function Tr(t, r, a) {
1125
- var s = {};
1126
- return a.isMergeableObject(t) && qe(t).forEach(function(i) {
1127
- s[i] = Z(t[i], a);
1128
- }), qe(r).forEach(function(i) {
1129
- _r(t, i) || (it(t, i) && a.isMergeableObject(r[i]) ? s[i] = Rr(i, a)(t[i], r[i], a) : s[i] = Z(r[i], a));
1130
- }), s;
1131
- }
1132
- function U(t, r, a) {
1133
- a = a || {}, a.arrayMerge = a.arrayMerge || hr, a.isMergeableObject = a.isMergeableObject || pr, a.cloneUnlessOtherwiseSpecified = Z;
1134
- var s = Array.isArray(r), i = Array.isArray(t), p = s === i;
1135
- return p ? s ? a.arrayMerge(t, r, a) : Tr(t, r, a) : Z(r, a);
1136
- }
1137
- U.all = function(r, a) {
1138
- if (!Array.isArray(r))
1139
- throw new Error("first argument should be an array");
1140
- return r.reduce(function(s, i) {
1141
- return U(s, i, a);
1142
- }, {});
1143
- };
1144
- var Mr = U, wr = Mr;
1145
- const Ge = /* @__PURE__ */ Xt(wr), ne = () => {
1146
- throw new Error(
1147
- "You forgot to wrap your component in <MeasurementToolsProvider>."
1148
- );
1149
- }, be = {
1150
- state: {
1151
- enable: !1,
1152
- finished: !0,
1153
- distance: 0,
1154
- unit: ye.kilometer
1155
- },
1156
- actions: {
1157
- setEnable: ne,
1158
- setFinished: ne,
1159
- setUnit: ne,
1160
- setDistance: ne
1161
- }
1162
- }, st = J(be.state), ut = J(be.actions);
1163
- function ct() {
1164
- return K(
1165
- st
1166
- );
1167
- }
1168
- function lt() {
1169
- return K(
1170
- ut
1171
- );
1172
- }
1173
- function Or(t, r) {
1174
- const a = r === ye.kilometer ? 1 : 0.621371;
1175
- return t * a;
1176
- }
1177
- function Ze({
1178
- text: t,
1179
- unit: r,
1180
- locale: a
1181
- }) {
1182
- return `${ot(Or(t, r), a, {
1183
- style: "unit",
1184
- unit: r
1185
- })}`;
1186
- }
1187
- function Pr(t) {
1188
- return ve[t]?.type;
1189
- }
1190
- function Cr(t) {
1191
- return Pr(t) === Xe.GoogleMaps;
1192
- }
1193
- function Ur({
1194
- mapId: t,
1195
- defaultProps: { locale: r = "en", getColumnName: a } = {
1196
- getColumnName: "<b>Total distance</b> "
1197
- },
1198
- layerProps: s = {}
1199
- }) {
1200
- const { distance: i, enable: p, unit: l } = ct(), { setDistance: h, setFinished: c } = lt(), { isLoaded: y, basemap: b } = rt(t), { getOverlayInstance: _ } = ge(t), O = Wt(() => {
1201
- if (!y || !Cr(b))
1202
- return null;
1203
- const T = _()?.getDiv();
1204
- return new qt(T, {});
1205
- }, [y, _, b]), m = w(
1206
- (T, P) => {
1207
- T.html = sr({
1208
- properties: {
1209
- distance: Ze({
1210
- text: P.distance,
1211
- locale: P.locale,
1212
- unit: l
1213
- })
1214
- },
1215
- getColumnName: () => a
1216
- });
1217
- },
1218
- [a, l]
1219
- );
1220
- if (!p || !y)
1221
- return null;
1222
- const g = Ge(s, {
1223
- modeConfig: {
1224
- // We force distance due to conversion is addressed at feature getText level
1225
- formatTooltip: (T) => T
1226
- },
1227
- onHover: (T) => (s?.onHover || m)(T, { distance: i, locale: r, unit: l }),
1228
- onEdit: ({ editType: T, editContext: P }) => {
1229
- T === G.AddPosition && h(P.distance), T === G.Finish && c(!0);
1230
- },
1231
- _subLayerProps: {
1232
- tooltips: {
1233
- getText: (T) => Ze({ ...T, locale: r, unit: l }),
1234
- updateTriggers: {
1235
- getText: [l, r]
1236
- }
1237
- }
1238
- }
1239
- }), x = Ge(ar, g);
1240
- return new or({
1241
- ...x,
1242
- eventManager: O
1243
- });
1244
- }
1245
- function $r({ children: t }) {
1246
- const { distance: r, enable: a, unit: s } = ct(), { setDistance: i, setEnable: p } = lt();
1247
- return t({
1248
- enable: a,
1249
- distance: r,
1250
- unit: s,
1251
- onToggleButton: () => {
1252
- i(0), p(!a);
1253
- }
1254
- });
1255
- }
1256
- var H = /* @__PURE__ */ ((t) => (t.SetEnable = "SET_ENABLE", t.SetFinished = "SET_FINISHED", t.SetDistance = "SET_DISTANCE", t.SetUnit = "SET_UNIT", t))(H || {});
1257
- function jr(t, { type: r, payload: a }) {
1258
- return {
1259
- SET_ENABLE: () => ({
1260
- ...t,
1261
- enable: a,
1262
- finished: !1
1263
- }),
1264
- SET_FINISHED: () => ({
1265
- ...t,
1266
- finished: a
1267
- }),
1268
- SET_DISTANCE: () => ({
1269
- ...t,
1270
- distance: a
1271
- }),
1272
- SET_UNIT: () => ({
1273
- ...t,
1274
- unit: a
1275
- })
1276
- }[r]?.() ?? t;
1277
- }
1278
- function Vr({
1279
- children: t
1280
- }) {
1281
- const [r, a] = Ke(jr, be.state), s = w(
1282
- (c) => {
1283
- a({ type: H.SetEnable, payload: c });
1284
- },
1285
- [a]
1286
- ), i = w(
1287
- (c) => {
1288
- a({ type: H.SetFinished, payload: c });
1289
- },
1290
- [a]
1291
- ), p = w(
1292
- (c) => {
1293
- a({ type: H.SetDistance, payload: c });
1294
- },
1295
- [a]
1296
- ), l = w(
1297
- (c) => {
1298
- a({ type: H.SetUnit, payload: c });
1299
- },
1300
- [a]
1301
- ), h = pe({
1302
- setEnable: s,
1303
- setFinished: i,
1304
- setDistance: p,
1305
- setUnit: l
1306
- });
1307
- return /* @__PURE__ */ z.jsx(ut.Provider, { value: h.current, children: /* @__PURE__ */ z.jsx(st.Provider, { value: r, children: t }) });
979
+ function Nr(r) {
980
+ return `<strong>${r}</strong>: `;
1308
981
  }
1309
982
  export {
1310
- de as CartoBasemapURL,
1311
- Zt as CartoBasemapsNames,
1312
- or as CustomEditableGeojsonLayer,
1313
- rr as CustomMeasureDistanceMode,
1314
- ar as DEFAULT_LAYER_PROPS,
1315
- He as EVENT_MANAGER_EVENT_TYPES,
1316
- G as EditType,
1317
- k as FormatterTypes,
1318
- Gt as GMapsBasemap,
1319
- ve as MAPS_BASEMAP,
1320
- nr as MAP_MEASURE_LAYER_ID,
983
+ ae as CartoBasemapURL,
984
+ Cr as CartoBasemapsNames,
985
+ A as FormatterTypes,
986
+ wr as GMapsBasemap,
987
+ Ae as MAPS_BASEMAP,
1321
988
  F as MapActions,
1322
- tt as MapActionsContext,
1323
- Qe as MapContext,
1324
- $r as MapMeasurementTools,
1325
- Ur as MapMeasurementToolsLayer,
1326
- Vr as MapMeasurementToolsProvider,
1327
- ye as MapMeasurementUnit,
1328
- tr as MapMeasurementUnitTurf,
1329
- Nr as MapProvider,
1330
- et as MapReferencesContext,
1331
- Xe as MapsTypes,
1332
- Or as convertKmTo,
1333
- Pr as getMapType,
1334
- Ze as getTextLayerFormattedDistance,
1335
- Cr as isGmaps,
1336
- sr as objectToHtml,
1337
- Jt as reducer,
1338
- rt as useMap,
1339
- Kt as useMapActions,
1340
- Ir as useMapActionsByID,
1341
- kr as useMapByID,
1342
- ct as useMapMeasurementTools,
1343
- lt as useMapMeasurementToolsActions,
1344
- ge as useMapRefences,
1345
- ge as useMapReferences,
1346
- Lr as useMapReferencesByID
989
+ Ye as MapActionsContext,
990
+ Ne as MapContext,
991
+ Wr as MapProvider,
992
+ Ve as MapReferencesContext,
993
+ Or as MapsTypes,
994
+ zr as objectToHtml,
995
+ Pr as reducer,
996
+ xr as useMap,
997
+ jr as useMapActions,
998
+ Br as useMapActionsByID,
999
+ Yr as useMapByID,
1000
+ $e as useMapRefences,
1001
+ $e as useMapReferences,
1002
+ $r as useMapReferencesByID
1347
1003
  };