@carto/ps-react-maps 3.5.0 → 3.6.1
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 +269 -269
- package/dist/index.js.map +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/providers/layers/types.d.ts +19 -0
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -8,8 +8,8 @@ import { MapProvider as Ft, Map as Dt, useMap as Rt } from "react-map-gl/maplibr
|
|
|
8
8
|
import Ut from "@deck.gl/react";
|
|
9
9
|
import { useMap as pt, APIProvider as xt, Map as $t } from "@vis.gl/react-google-maps";
|
|
10
10
|
import { GoogleMapsOverlay as qt } from "@deck.gl/google-maps";
|
|
11
|
-
import { CompositeMode as jt, TranslateMode as Bt, ModifyMode as Vt, DrawPolygonByDraggingMode as It, DrawCircleFromCenterMode as mt, DrawRectangleMode as Nt, DrawPolygonMode as Ht, EditableGeoJsonLayer as Gt, MeasureAreaMode as zt, getPickedEditHandle as Qt, MeasureDistanceMode as Wt, ViewMode as
|
|
12
|
-
import { DataFilterExtension as
|
|
11
|
+
import { CompositeMode as jt, TranslateMode as Bt, ModifyMode as Vt, DrawPolygonByDraggingMode as It, DrawCircleFromCenterMode as mt, DrawRectangleMode as Nt, DrawPolygonMode as Ht, EditableGeoJsonLayer as Gt, MeasureAreaMode as zt, getPickedEditHandle as Qt, MeasureDistanceMode as Wt, ViewMode as Kt } from "@deck.gl-community/editable-layers";
|
|
12
|
+
import { DataFilterExtension as Zt, MaskExtension as Yt } from "@deck.gl/extensions";
|
|
13
13
|
import { create as yt, createStore as ze, useStore as Qe } from "zustand";
|
|
14
14
|
import { FlyToInterpolator as Xt, WebMercatorViewport as Jt } from "@deck.gl/core";
|
|
15
15
|
import { EventManager as es } from "mjolnir.js";
|
|
@@ -80,7 +80,7 @@ function vs(r) {
|
|
|
80
80
|
}
|
|
81
81
|
function Ss(r) {
|
|
82
82
|
const e = R(42);
|
|
83
|
-
let t, n, s, o, i, a, l,
|
|
83
|
+
let t, n, s, o, i, a, l, m, c, p, h, d;
|
|
84
84
|
e[0] !== r ? ({
|
|
85
85
|
instanceRef: i,
|
|
86
86
|
overlayRef: p,
|
|
@@ -91,28 +91,28 @@ function Ss(r) {
|
|
|
91
91
|
parameters: h,
|
|
92
92
|
getCursor: n,
|
|
93
93
|
getTooltip: s,
|
|
94
|
-
onLoad:
|
|
94
|
+
onLoad: m,
|
|
95
95
|
onViewStateChange: c,
|
|
96
96
|
...d
|
|
97
|
-
} = r, e[0] = r, e[1] = t, e[2] = n, e[3] = s, e[4] = o, e[5] = i, e[6] = a, e[7] = l, e[8] =
|
|
98
|
-
let b,
|
|
99
|
-
e[13] !==
|
|
100
|
-
|
|
97
|
+
} = r, e[0] = r, e[1] = t, e[2] = n, e[3] = s, e[4] = o, e[5] = i, e[6] = a, e[7] = l, e[8] = m, e[9] = c, e[10] = p, e[11] = h, e[12] = d) : (t = e[1], n = e[2], s = e[3], o = e[4], i = e[5], a = e[6], l = e[7], m = e[8], c = e[9], p = e[10], h = e[11], d = e[12]);
|
|
98
|
+
let b, y;
|
|
99
|
+
e[13] !== m ? (b = () => {
|
|
100
|
+
m({
|
|
101
101
|
type: "load",
|
|
102
102
|
value: !1
|
|
103
|
-
}),
|
|
103
|
+
}), m({
|
|
104
104
|
type: "deckgl",
|
|
105
105
|
value: !1
|
|
106
106
|
});
|
|
107
|
-
},
|
|
107
|
+
}, y = [m], e[13] = m, e[14] = b, e[15] = y) : (b = e[14], y = e[15]), z(b, y);
|
|
108
108
|
let T, f;
|
|
109
109
|
e[16] !== a ? (f = a.filter(Ts).map(_s), e[16] = a, e[17] = f) : f = e[17], T = f;
|
|
110
110
|
const g = T, S = i;
|
|
111
111
|
let _;
|
|
112
|
-
e[18] !==
|
|
112
|
+
e[18] !== m ? (_ = () => m({
|
|
113
113
|
type: "deckgl",
|
|
114
114
|
value: !0
|
|
115
|
-
}), e[18] =
|
|
115
|
+
}), e[18] = m, e[19] = _) : _ = e[19];
|
|
116
116
|
let w;
|
|
117
117
|
e[20] !== h ? (w = {
|
|
118
118
|
depthTest: !1,
|
|
@@ -121,10 +121,10 @@ function Ss(r) {
|
|
|
121
121
|
let E;
|
|
122
122
|
e[22] !== p ? (E = /* @__PURE__ */ N(Es, { overlayRef: p }), e[22] = p, e[23] = E) : E = e[23];
|
|
123
123
|
let A;
|
|
124
|
-
e[24] !==
|
|
124
|
+
e[24] !== m ? (A = () => m({
|
|
125
125
|
type: "load",
|
|
126
126
|
value: !0
|
|
127
|
-
}), e[24] =
|
|
127
|
+
}), e[24] = m, e[25] = A) : A = e[25];
|
|
128
128
|
let U;
|
|
129
129
|
e[26] !== l || e[27] !== A ? (U = /* @__PURE__ */ N(Dt, { reuseMaps: !0, mapStyle: l, onLoad: A, onRender: ws }), e[26] = l, e[27] = A, e[28] = U) : U = e[28];
|
|
130
130
|
let F;
|
|
@@ -165,10 +165,10 @@ const Ms = (r) => {
|
|
|
165
165
|
const s = t, o = pt();
|
|
166
166
|
let i, a;
|
|
167
167
|
e[1] === Symbol.for("react.memo_cache_sentinel") ? (i = () => s, a = [s], e[1] = i, e[2] = a) : (i = e[1], a = e[2]), Ne(r.instanceRef, i, a);
|
|
168
|
-
let l,
|
|
168
|
+
let l, m;
|
|
169
169
|
e[3] !== o ? (l = () => (s.setMap(o), () => {
|
|
170
170
|
s.finalize();
|
|
171
|
-
}),
|
|
171
|
+
}), m = [s, o], e[3] = o, e[4] = l, e[5] = m) : (l = e[4], m = e[5]), z(l, m);
|
|
172
172
|
let c, p;
|
|
173
173
|
return e[6] !== r ? (c = () => {
|
|
174
174
|
s.setProps(r);
|
|
@@ -188,20 +188,20 @@ function Ps({
|
|
|
188
188
|
},
|
|
189
189
|
overlayRef: a,
|
|
190
190
|
parameters: l,
|
|
191
|
-
onLoad:
|
|
191
|
+
onLoad: m,
|
|
192
192
|
onViewStateChange: c,
|
|
193
193
|
...p
|
|
194
194
|
}) {
|
|
195
|
-
var
|
|
195
|
+
var y, T, f, g, S;
|
|
196
196
|
z(() => {
|
|
197
|
-
|
|
197
|
+
m({
|
|
198
198
|
type: "load",
|
|
199
199
|
value: !1
|
|
200
|
-
}),
|
|
200
|
+
}), m({
|
|
201
201
|
type: "deckgl",
|
|
202
202
|
value: !1
|
|
203
203
|
});
|
|
204
|
-
}, [
|
|
204
|
+
}, [m]);
|
|
205
205
|
const h = re(() => n.filter((_) => !!(_ != null && _.type)).map(({
|
|
206
206
|
type: _,
|
|
207
207
|
props: w
|
|
@@ -241,17 +241,17 @@ function Ps({
|
|
|
241
241
|
});
|
|
242
242
|
}, [e, c]);
|
|
243
243
|
return /* @__PURE__ */ N(xt, { apiKey: s, ...o, children: /* @__PURE__ */ N("div", { className: "deckgl-map", children: /* @__PURE__ */ ft($t, { id: r, mapTypeId: t, disableDefaultUI: !0, gestureHandling: "greedy", ...i, center: {
|
|
244
|
-
lat: ((
|
|
244
|
+
lat: ((y = p.initialViewState) == null ? void 0 : y.latitude) ?? 0,
|
|
245
245
|
lng: ((T = p.initialViewState) == null ? void 0 : T.longitude) ?? 0
|
|
246
246
|
}, zoom: (((f = p.initialViewState) == null ? void 0 : f.zoom) ?? 0) + 1, tilt: (g = p.initialViewState) == null ? void 0 : g.pitch, heading: (S = p.initialViewState) == null ? void 0 : S.bearing, onTilesLoaded: () => {
|
|
247
|
-
|
|
247
|
+
m({
|
|
248
248
|
type: "load",
|
|
249
249
|
value: !0
|
|
250
250
|
}), b(p.initialViewState);
|
|
251
251
|
}, onBoundsChanged: (_) => b(d(_)), onZoomChanged: (_) => b(d(_)), children: [
|
|
252
252
|
/* @__PURE__ */ N(Ls, { id: r, overlayRef: a }),
|
|
253
253
|
/* @__PURE__ */ N(Ms, { id: r, instanceRef: e, layers: h, onLoad: () => {
|
|
254
|
-
|
|
254
|
+
m({
|
|
255
255
|
type: "deckgl",
|
|
256
256
|
value: !0
|
|
257
257
|
});
|
|
@@ -272,13 +272,13 @@ function Ls(r) {
|
|
|
272
272
|
}
|
|
273
273
|
function Os(r) {
|
|
274
274
|
const e = R(46);
|
|
275
|
-
let t, n, s, o, i, a, l,
|
|
275
|
+
let t, n, s, o, i, a, l, m, c, p, h, d;
|
|
276
276
|
e[0] !== r ? ({
|
|
277
277
|
instanceRef: n,
|
|
278
278
|
overlayRef: o,
|
|
279
279
|
basemap: a,
|
|
280
280
|
controller: l,
|
|
281
|
-
id:
|
|
281
|
+
id: m,
|
|
282
282
|
layers: c,
|
|
283
283
|
gmapsProps: t,
|
|
284
284
|
getCursor: p,
|
|
@@ -286,8 +286,8 @@ function Os(r) {
|
|
|
286
286
|
onLoad: s,
|
|
287
287
|
onViewStateChange: d,
|
|
288
288
|
...i
|
|
289
|
-
} = r, e[0] = r, e[1] = t, e[2] = n, e[3] = s, e[4] = o, e[5] = i, e[6] = a, e[7] = l, e[8] =
|
|
290
|
-
const b = a === void 0 ? J.positron : a,
|
|
289
|
+
} = r, e[0] = r, e[1] = t, e[2] = n, e[3] = s, e[4] = o, e[5] = i, e[6] = a, e[7] = l, e[8] = m, e[9] = c, e[10] = p, e[11] = h, e[12] = d) : (t = e[1], n = e[2], s = e[3], o = e[4], i = e[5], a = e[6], l = e[7], m = e[8], c = e[9], p = e[10], h = e[11], d = e[12]);
|
|
290
|
+
const b = a === void 0 ? J.positron : a, y = l === void 0 ? !0 : l, T = m === void 0 ? "deck-gl-map" : m;
|
|
291
291
|
let f;
|
|
292
292
|
e[13] !== c ? (f = c === void 0 ? [] : c, e[13] = c, e[14] = f) : f = e[14];
|
|
293
293
|
const g = f, S = p === void 0 ? bs : p, _ = h === void 0 ? vs : h, w = d === void 0 ? As : d;
|
|
@@ -303,7 +303,7 @@ function Os(r) {
|
|
|
303
303
|
let k;
|
|
304
304
|
e[18] === Symbol.for("react.memo_cache_sentinel") ? (k = (L) => {
|
|
305
305
|
const O = L.type === "deckgl" ? 0 : 1;
|
|
306
|
-
U((H) => H.map((W,
|
|
306
|
+
U((H) => H.map((W, K) => K === O ? L.value : W));
|
|
307
307
|
}, e[18] = k) : k = e[18];
|
|
308
308
|
const u = k;
|
|
309
309
|
let v, P;
|
|
@@ -311,10 +311,10 @@ function Os(r) {
|
|
|
311
311
|
s == null || s(j);
|
|
312
312
|
}, P = [j, s], e[19] = j, e[20] = s, e[21] = v, e[22] = P) : (v = e[21], P = e[22]), z(v, P), M) {
|
|
313
313
|
let L;
|
|
314
|
-
return e[23] !== b || e[24] !==
|
|
314
|
+
return e[23] !== b || e[24] !== y || e[25] !== S || e[26] !== _ || e[27] !== t || e[28] !== T || e[29] !== n || e[30] !== g || e[31] !== w || e[32] !== o || e[33] !== i ? (L = /* @__PURE__ */ N(Ps, { instanceRef: n, overlayRef: o, controller: y, id: T, basemap: b, layers: g, gmapsProps: t, getCursor: S, getTooltip: _, onLoad: u, onViewStateChange: w, ...i }), e[23] = b, e[24] = y, e[25] = S, e[26] = _, e[27] = t, e[28] = T, e[29] = n, e[30] = g, e[31] = w, e[32] = o, e[33] = i, e[34] = L) : L = e[34], L;
|
|
315
315
|
}
|
|
316
316
|
let C;
|
|
317
|
-
return e[35] !==
|
|
317
|
+
return e[35] !== y || e[36] !== S || e[37] !== _ || e[38] !== T || e[39] !== n || e[40] !== g || e[41] !== q || e[42] !== w || e[43] !== o || e[44] !== i ? (C = /* @__PURE__ */ N(Ss, { instanceRef: n, overlayRef: o, controller: y, id: T, layers: g, mapStyle: q, getCursor: S, getTooltip: _, onLoad: u, onViewStateChange: w, ...i }), e[35] = y, e[36] = S, e[37] = _, e[38] = T, e[39] = n, e[40] = g, e[41] = q, e[42] = w, e[43] = o, e[44] = i, e[45] = C) : C = e[45], C;
|
|
318
318
|
}
|
|
319
319
|
function ks(r) {
|
|
320
320
|
return r;
|
|
@@ -375,7 +375,7 @@ const ce = "lassoLayer", Le = "maskLayer", Fs = {
|
|
|
375
375
|
labels: {
|
|
376
376
|
mask: "Mask"
|
|
377
377
|
}
|
|
378
|
-
}, Ds = [new
|
|
378
|
+
}, Ds = [new Zt({
|
|
379
379
|
filterSize: 1
|
|
380
380
|
})], _e = {
|
|
381
381
|
id: Le,
|
|
@@ -408,7 +408,7 @@ const ce = "lassoLayer", Le = "maskLayer", Fs = {
|
|
|
408
408
|
}, pe = yt((r) => ({
|
|
409
409
|
layers: {},
|
|
410
410
|
setLayer: (e, t) => r((n) => {
|
|
411
|
-
var
|
|
411
|
+
var l, m;
|
|
412
412
|
const s = {
|
|
413
413
|
...n.layers
|
|
414
414
|
};
|
|
@@ -419,7 +419,10 @@ const ce = "lassoLayer", Le = "maskLayer", Fs = {
|
|
|
419
419
|
const o = s[e] ?? {
|
|
420
420
|
type: null,
|
|
421
421
|
props: {}
|
|
422
|
-
}, i = [...o.props.extensions ?? [], ...((
|
|
422
|
+
}, i = [...o.props.extensions ?? [], ...((l = t.props) == null ? void 0 : l.extensions) ?? []].reduce((c, p) => (c.some((h) => h.equals(p)) || c.push(p), c), []), a = o.legend || t.legend ? {
|
|
423
|
+
...o.legend,
|
|
424
|
+
...t.legend
|
|
425
|
+
} : void 0;
|
|
423
426
|
return s[e] = {
|
|
424
427
|
...o,
|
|
425
428
|
...t,
|
|
@@ -429,14 +432,11 @@ const ce = "lassoLayer", Le = "maskLayer", Fs = {
|
|
|
429
432
|
...t.props,
|
|
430
433
|
updateTriggers: {
|
|
431
434
|
...o.props.updateTriggers ?? {},
|
|
432
|
-
...((
|
|
435
|
+
...((m = t.props) == null ? void 0 : m.updateTriggers) ?? {}
|
|
433
436
|
},
|
|
434
437
|
extensions: i
|
|
435
438
|
},
|
|
436
|
-
legend:
|
|
437
|
-
...o.legend,
|
|
438
|
-
...t.legend
|
|
439
|
-
}
|
|
439
|
+
legend: a
|
|
440
440
|
}, {
|
|
441
441
|
layers: s
|
|
442
442
|
};
|
|
@@ -480,13 +480,13 @@ const ce = "lassoLayer", Le = "maskLayer", Fs = {
|
|
|
480
480
|
type: a
|
|
481
481
|
} = ye[i.maps[s].basemap], {
|
|
482
482
|
type: l
|
|
483
|
-
} = ye[o],
|
|
483
|
+
} = ye[o], m = a === l && !!((c = i.maps[s]) != null && c.isLoaded);
|
|
484
484
|
return {
|
|
485
485
|
maps: {
|
|
486
486
|
...i.maps,
|
|
487
487
|
[s]: {
|
|
488
488
|
...i.maps[s],
|
|
489
|
-
isLoaded:
|
|
489
|
+
isLoaded: m,
|
|
490
490
|
basemap: o
|
|
491
491
|
}
|
|
492
492
|
}
|
|
@@ -522,27 +522,27 @@ const ce = "lassoLayer", Le = "maskLayer", Fs = {
|
|
|
522
522
|
return a == null ? void 0 : a.getViewports(o);
|
|
523
523
|
},
|
|
524
524
|
getViewport: (s, o = 0, i) => {
|
|
525
|
-
var
|
|
525
|
+
var m;
|
|
526
526
|
const l = n().getDeckInstance(s);
|
|
527
|
-
return (
|
|
527
|
+
return (m = l == null ? void 0 : l.getViewports(i)) == null ? void 0 : m[o];
|
|
528
528
|
},
|
|
529
529
|
addLayers: (s, o) => t((i) => {
|
|
530
530
|
var c;
|
|
531
531
|
const a = {
|
|
532
532
|
...i.maps
|
|
533
|
-
}, l = ((c = a[s]) == null ? void 0 : c.layers) ?? [],
|
|
533
|
+
}, l = ((c = a[s]) == null ? void 0 : c.layers) ?? [], m = /* @__PURE__ */ new Set([...l, ...o]);
|
|
534
534
|
return a[s] = {
|
|
535
535
|
...a[s],
|
|
536
|
-
layers: [...
|
|
536
|
+
layers: [...m]
|
|
537
537
|
}, {
|
|
538
538
|
maps: a
|
|
539
539
|
};
|
|
540
540
|
}),
|
|
541
541
|
removeLayers: (s, o) => t((i) => {
|
|
542
|
-
var
|
|
542
|
+
var m;
|
|
543
543
|
const a = {
|
|
544
544
|
...i.maps
|
|
545
|
-
}, l = ((
|
|
545
|
+
}, l = ((m = a[s]) == null ? void 0 : m.layers) ?? [];
|
|
546
546
|
return a[s] = {
|
|
547
547
|
...a[s],
|
|
548
548
|
layers: l.filter((c) => !o.includes(c))
|
|
@@ -632,7 +632,7 @@ const ce = "lassoLayer", Le = "maskLayer", Fs = {
|
|
|
632
632
|
...i == null ? void 0 : i.fitBounds(n, s == null ? void 0 : s.boundsOptions),
|
|
633
633
|
...s == null ? void 0 : s.viewStateOptions
|
|
634
634
|
};
|
|
635
|
-
o.setViewState(t, l);
|
|
635
|
+
o.setViewState(t, l), o.updateViewPort(t);
|
|
636
636
|
},
|
|
637
637
|
flyTo: (t, n, s = {}) => {
|
|
638
638
|
const o = e();
|
|
@@ -644,7 +644,7 @@ const ce = "lassoLayer", Le = "maskLayer", Fs = {
|
|
|
644
644
|
...n,
|
|
645
645
|
...a
|
|
646
646
|
};
|
|
647
|
-
o.setViewState(t, l);
|
|
647
|
+
o.setViewState(t, l), o.updateViewPort(t);
|
|
648
648
|
}
|
|
649
649
|
}), js = (r) => ze()((...e) => ({
|
|
650
650
|
...Us(r)(...e),
|
|
@@ -695,18 +695,18 @@ function Vs() {
|
|
|
695
695
|
return Array.isArray(f) ? [] : {};
|
|
696
696
|
}
|
|
697
697
|
function a(f, g) {
|
|
698
|
-
return g.clone !== !1 && g.isMergeableObject(f) ?
|
|
698
|
+
return g.clone !== !1 && g.isMergeableObject(f) ? y(i(f), f, g) : f;
|
|
699
699
|
}
|
|
700
700
|
function l(f, g, S) {
|
|
701
701
|
return f.concat(g).map(function(_) {
|
|
702
702
|
return a(_, S);
|
|
703
703
|
});
|
|
704
704
|
}
|
|
705
|
-
function
|
|
705
|
+
function m(f, g) {
|
|
706
706
|
if (!g.customMerge)
|
|
707
|
-
return
|
|
707
|
+
return y;
|
|
708
708
|
var S = g.customMerge(f);
|
|
709
|
-
return typeof S == "function" ? S :
|
|
709
|
+
return typeof S == "function" ? S : y;
|
|
710
710
|
}
|
|
711
711
|
function c(f) {
|
|
712
712
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(f).filter(function(g) {
|
|
@@ -731,22 +731,22 @@ function Vs() {
|
|
|
731
731
|
return S.isMergeableObject(f) && p(f).forEach(function(w) {
|
|
732
732
|
_[w] = a(f[w], S);
|
|
733
733
|
}), p(g).forEach(function(w) {
|
|
734
|
-
d(f, w) || (h(f, w) && S.isMergeableObject(g[w]) ? _[w] =
|
|
734
|
+
d(f, w) || (h(f, w) && S.isMergeableObject(g[w]) ? _[w] = m(w, S)(f[w], g[w], S) : _[w] = a(g[w], S));
|
|
735
735
|
}), _;
|
|
736
736
|
}
|
|
737
|
-
function
|
|
737
|
+
function y(f, g, S) {
|
|
738
738
|
S = S || {}, S.arrayMerge = S.arrayMerge || l, S.isMergeableObject = S.isMergeableObject || r, S.cloneUnlessOtherwiseSpecified = a;
|
|
739
739
|
var _ = Array.isArray(g), w = Array.isArray(f), E = _ === w;
|
|
740
740
|
return E ? _ ? S.arrayMerge(f, g, S) : b(f, g, S) : a(g, S);
|
|
741
741
|
}
|
|
742
|
-
|
|
742
|
+
y.all = function(g, S) {
|
|
743
743
|
if (!Array.isArray(g))
|
|
744
744
|
throw new Error("first argument should be an array");
|
|
745
745
|
return g.reduce(function(_, w) {
|
|
746
|
-
return
|
|
746
|
+
return y(_, w, S);
|
|
747
747
|
}, {});
|
|
748
748
|
};
|
|
749
|
-
var T =
|
|
749
|
+
var T = y;
|
|
750
750
|
return qe = T, qe;
|
|
751
751
|
}
|
|
752
752
|
var Is = Vs();
|
|
@@ -823,7 +823,7 @@ function Hs({
|
|
|
823
823
|
getFillColor: n,
|
|
824
824
|
getEditHandlePointColor: s.fill,
|
|
825
825
|
getEditHandlePointOutlineColor: s.outline,
|
|
826
|
-
dataComparator: (l,
|
|
826
|
+
dataComparator: (l, m) => l.features[0] === m.features[0]
|
|
827
827
|
});
|
|
828
828
|
return fe(i, o);
|
|
829
829
|
}
|
|
@@ -834,14 +834,14 @@ const Gs = (r) => ze()((e) => ({
|
|
|
834
834
|
mapId: i,
|
|
835
835
|
modeInstance: a = new $e.polygon.mode(),
|
|
836
836
|
modes: l = $e,
|
|
837
|
-
modeSelected:
|
|
837
|
+
modeSelected: m = $e.polygon.value,
|
|
838
838
|
values: c = {}
|
|
839
839
|
} = s;
|
|
840
840
|
return n[i] = {
|
|
841
841
|
enabled: o,
|
|
842
842
|
modeInstance: a,
|
|
843
843
|
modes: l,
|
|
844
|
-
modeSelected:
|
|
844
|
+
modeSelected: m,
|
|
845
845
|
values: c
|
|
846
846
|
}, n;
|
|
847
847
|
}, {}),
|
|
@@ -951,17 +951,17 @@ function Qs({
|
|
|
951
951
|
}), o = G((d) => d.setValue), i = G((d) => d.setVisibility), a = G((d) => {
|
|
952
952
|
var b;
|
|
953
953
|
return (b = d.data[r]) == null ? void 0 : b.modeSelected;
|
|
954
|
-
}), l = G((d) => d.setModeSelected),
|
|
954
|
+
}), l = G((d) => d.setModeSelected), m = G((d) => {
|
|
955
955
|
var b;
|
|
956
956
|
return (b = d.data[r]) == null ? void 0 : b.modes;
|
|
957
957
|
}), c = G((d) => d.setModeInstance);
|
|
958
958
|
z(() => {
|
|
959
|
-
const d =
|
|
959
|
+
const d = m[a];
|
|
960
960
|
if (d && t) {
|
|
961
961
|
const b = d.mode;
|
|
962
962
|
c(r, new b());
|
|
963
963
|
}
|
|
964
|
-
}, [t, r, a,
|
|
964
|
+
}, [t, r, a, m, c]);
|
|
965
965
|
const [
|
|
966
966
|
p
|
|
967
967
|
// , draw
|
|
@@ -984,7 +984,7 @@ function Qs({
|
|
|
984
984
|
return e({
|
|
985
985
|
mapId: r,
|
|
986
986
|
enabled: t,
|
|
987
|
-
modes:
|
|
987
|
+
modes: m,
|
|
988
988
|
modeSelected: a,
|
|
989
989
|
values: {
|
|
990
990
|
mask: p
|
|
@@ -1020,14 +1020,14 @@ function Oe({
|
|
|
1020
1020
|
}
|
|
1021
1021
|
}) {
|
|
1022
1022
|
const o = e === Ie["m-km"], i = e === Ie["ft-mi"], a = o || i;
|
|
1023
|
-
let l,
|
|
1023
|
+
let l, m;
|
|
1024
1024
|
if (a) {
|
|
1025
1025
|
const c = r < (n ?? nt);
|
|
1026
1026
|
let p = c ? V.meter : V.kilometer;
|
|
1027
|
-
l = c ? me.meter : me.kilometer, i && (l = c ? me.feet : me.mile, p = c ? V.feet : V.mile),
|
|
1027
|
+
l = c ? me.meter : me.kilometer, i && (l = c ? me.feet : me.mile, p = c ? V.feet : V.mile), m = st(r, p);
|
|
1028
1028
|
} else
|
|
1029
|
-
l = me[e],
|
|
1030
|
-
return `${gt(
|
|
1029
|
+
l = me[e], m = st(r, e);
|
|
1030
|
+
return `${gt(m, t, {
|
|
1031
1031
|
style: "unit",
|
|
1032
1032
|
unit: l,
|
|
1033
1033
|
unitDisplay: "short",
|
|
@@ -1069,7 +1069,7 @@ function Tt(r, e, t) {
|
|
|
1069
1069
|
}
|
|
1070
1070
|
return [];
|
|
1071
1071
|
}
|
|
1072
|
-
class
|
|
1072
|
+
class Ks extends zt {
|
|
1073
1073
|
constructor() {
|
|
1074
1074
|
super(...arguments);
|
|
1075
1075
|
ee(this, "_isMeasuringSessionFinished", !1);
|
|
@@ -1188,7 +1188,7 @@ class Zs extends zt {
|
|
|
1188
1188
|
}) + "2";
|
|
1189
1189
|
}
|
|
1190
1190
|
}
|
|
1191
|
-
class
|
|
1191
|
+
class Zs extends mt {
|
|
1192
1192
|
constructor() {
|
|
1193
1193
|
super(...arguments);
|
|
1194
1194
|
ee(this, "_isMeasuringSessionFinished", !1);
|
|
@@ -1392,7 +1392,7 @@ const ne = "mapMeasureLayer", Ys = {
|
|
|
1392
1392
|
[V.mile]: "mile",
|
|
1393
1393
|
[V.yard]: "yard",
|
|
1394
1394
|
[V.feet]: "foot"
|
|
1395
|
-
},
|
|
1395
|
+
}, Z = {
|
|
1396
1396
|
"m-km": {
|
|
1397
1397
|
value: "m-km",
|
|
1398
1398
|
system: "metric"
|
|
@@ -1429,18 +1429,18 @@ const ne = "mapMeasureLayer", Ys = {
|
|
|
1429
1429
|
value: "feet",
|
|
1430
1430
|
system: "imperial"
|
|
1431
1431
|
}
|
|
1432
|
-
}, it = [
|
|
1432
|
+
}, it = [Z["m-km"], Z.kilometer, Z.meter, Z["ft-mi"], Z.mile, Z.feet], Js = [Z["m-km"], Z.kilometer, Z.meter, Z["ft-mi"], Z.mile, Z.feet], en = {
|
|
1433
1433
|
distance: {
|
|
1434
1434
|
value: "distance",
|
|
1435
1435
|
mode: Et
|
|
1436
1436
|
},
|
|
1437
1437
|
buffer: {
|
|
1438
1438
|
value: "buffer",
|
|
1439
|
-
mode:
|
|
1439
|
+
mode: Zs
|
|
1440
1440
|
},
|
|
1441
1441
|
area: {
|
|
1442
1442
|
value: "area",
|
|
1443
|
-
mode:
|
|
1443
|
+
mode: Ks
|
|
1444
1444
|
}
|
|
1445
1445
|
}, tn = {
|
|
1446
1446
|
distance: it,
|
|
@@ -1454,31 +1454,31 @@ function Mt(r) {
|
|
|
1454
1454
|
} = r;
|
|
1455
1455
|
let s;
|
|
1456
1456
|
e[0] !== t ? (s = (b) => {
|
|
1457
|
-
var
|
|
1458
|
-
return (
|
|
1457
|
+
var y;
|
|
1458
|
+
return (y = b.maps[t]) == null ? void 0 : y.basemap;
|
|
1459
1459
|
}, e[0] = t, e[1] = s) : s = e[1];
|
|
1460
1460
|
const o = x(s);
|
|
1461
1461
|
let i;
|
|
1462
1462
|
e[2] !== t ? (i = (b) => {
|
|
1463
|
-
var
|
|
1464
|
-
return (
|
|
1463
|
+
var y;
|
|
1464
|
+
return (y = b.maps[t]) == null ? void 0 : y.isLoaded;
|
|
1465
1465
|
}, e[2] = t, e[3] = i) : i = e[3];
|
|
1466
|
-
const a = x(i), l = x(nn),
|
|
1466
|
+
const a = x(i), l = x(nn), m = pe(sn), {
|
|
1467
1467
|
type: c
|
|
1468
1468
|
} = ye[o], p = c === te.googleMaps;
|
|
1469
1469
|
let h, d;
|
|
1470
|
-
e[4] !== l || e[5] !== p || e[6] !== a || e[7] !== n || e[8] !== t || e[9] !==
|
|
1470
|
+
e[4] !== l || e[5] !== p || e[6] !== a || e[7] !== n || e[8] !== t || e[9] !== m ? (h = () => {
|
|
1471
1471
|
let b = null;
|
|
1472
1472
|
if (p && a) {
|
|
1473
|
-
const
|
|
1474
|
-
b = new es(
|
|
1473
|
+
const y = l(t);
|
|
1474
|
+
b = new es(y.getDiv(), {});
|
|
1475
1475
|
}
|
|
1476
|
-
|
|
1476
|
+
m(n, {
|
|
1477
1477
|
props: {
|
|
1478
1478
|
eventManager: b
|
|
1479
1479
|
}
|
|
1480
1480
|
});
|
|
1481
|
-
}, d = [l, p, a, n, t,
|
|
1481
|
+
}, d = [l, p, a, n, t, m], e[4] = l, e[5] = p, e[6] = a, e[7] = n, e[8] = t, e[9] = m, e[10] = h, e[11] = d) : (h = e[10], d = e[11]), z(h, d);
|
|
1482
1482
|
}
|
|
1483
1483
|
function sn(r) {
|
|
1484
1484
|
return r.setLayer;
|
|
@@ -1506,13 +1506,13 @@ function on({
|
|
|
1506
1506
|
}), a = G((M) => M.setEnabled), l = G((M) => {
|
|
1507
1507
|
var k;
|
|
1508
1508
|
return (k = M.data[e]) == null ? void 0 : k.values;
|
|
1509
|
-
}),
|
|
1509
|
+
}), m = G((M) => M.setValue), c = G((M) => {
|
|
1510
1510
|
var k;
|
|
1511
1511
|
return (k = M.data[e]) == null ? void 0 : k.modeInstance;
|
|
1512
1512
|
}), p = G((M) => {
|
|
1513
1513
|
var k;
|
|
1514
1514
|
return (k = M.data[e]) == null ? void 0 : k.modeSelected;
|
|
1515
|
-
}), h = pe((M) => M.setLayer), d = x((M) => M.addLayers), b = x((M) => M.removeLayers),
|
|
1515
|
+
}), h = pe((M) => M.setLayer), d = x((M) => M.addLayers), b = x((M) => M.removeLayers), y = x(ht((M) => {
|
|
1516
1516
|
var k;
|
|
1517
1517
|
return (k = M.maps[e]) == null ? void 0 : k.layers.filter((u) => !rn.includes(u));
|
|
1518
1518
|
})), T = x((M) => M.getDeckInstance), f = Me({});
|
|
@@ -1561,14 +1561,14 @@ function on({
|
|
|
1561
1561
|
var C;
|
|
1562
1562
|
(C = u.properties).label ?? (C.label = `${n == null ? void 0 : n.mask} ${j.current}`), u.properties.index = v, u.properties.visible = u.properties.visible ?? !0;
|
|
1563
1563
|
const P = u.id ?? crypto.randomUUID();
|
|
1564
|
-
|
|
1564
|
+
m(e, P, {
|
|
1565
1565
|
geometry: u.geometry,
|
|
1566
1566
|
properties: u.properties,
|
|
1567
1567
|
// visible: true,
|
|
1568
1568
|
type: o
|
|
1569
1569
|
});
|
|
1570
1570
|
}), q());
|
|
1571
|
-
}, [o, q, n == null ? void 0 : n.mask, e, p,
|
|
1571
|
+
}, [o, q, n == null ? void 0 : n.mask, e, p, m]);
|
|
1572
1572
|
return z(() => {
|
|
1573
1573
|
const M = i, {
|
|
1574
1574
|
border: k,
|
|
@@ -1598,7 +1598,7 @@ function on({
|
|
|
1598
1598
|
outline: k
|
|
1599
1599
|
},
|
|
1600
1600
|
onEdit: $,
|
|
1601
|
-
mode: M ? c : new
|
|
1601
|
+
mode: M ? c : new Kt()
|
|
1602
1602
|
});
|
|
1603
1603
|
h(ce, L);
|
|
1604
1604
|
}, [w, i, s.mask, _, c, $, A, h, t.colors.editing, t.colors.finished]), z(() => {
|
|
@@ -1617,7 +1617,7 @@ function on({
|
|
|
1617
1617
|
b(e, [_e.id]);
|
|
1618
1618
|
};
|
|
1619
1619
|
}, [d, e, S, _, b, h]), z(() => {
|
|
1620
|
-
|
|
1620
|
+
y == null || y.forEach((M) => {
|
|
1621
1621
|
var v;
|
|
1622
1622
|
const k = (v = T(e)) == null ? void 0 : v.props.layers.find((P) => P.props.id === M);
|
|
1623
1623
|
i && (f.current[M] = k == null ? void 0 : k.props.pickable);
|
|
@@ -1630,7 +1630,7 @@ function on({
|
|
|
1630
1630
|
}
|
|
1631
1631
|
});
|
|
1632
1632
|
});
|
|
1633
|
-
}, [i, T, e,
|
|
1633
|
+
}, [i, T, e, y, _.length, h]), r;
|
|
1634
1634
|
}
|
|
1635
1635
|
on.Controls = Qs;
|
|
1636
1636
|
function an({
|
|
@@ -1661,7 +1661,7 @@ function ln({
|
|
|
1661
1661
|
pointColor: a,
|
|
1662
1662
|
textOptions: l
|
|
1663
1663
|
}) {
|
|
1664
|
-
const
|
|
1664
|
+
const m = fe(e, {
|
|
1665
1665
|
visible: n,
|
|
1666
1666
|
pickable: n,
|
|
1667
1667
|
modeConfig: {
|
|
@@ -1707,7 +1707,7 @@ function ln({
|
|
|
1707
1707
|
getEditHandlePointColor: a,
|
|
1708
1708
|
getEditHandlePointOutlineColor: i
|
|
1709
1709
|
});
|
|
1710
|
-
return fe(c,
|
|
1710
|
+
return fe(c, m);
|
|
1711
1711
|
}
|
|
1712
1712
|
const cn = (r) => ze()((e) => ({
|
|
1713
1713
|
measurements: r.reduce((n, s) => {
|
|
@@ -1716,25 +1716,25 @@ const cn = (r) => ze()((e) => ({
|
|
|
1716
1716
|
modeSelected: i,
|
|
1717
1717
|
modes: a = en,
|
|
1718
1718
|
units: l = tn,
|
|
1719
|
-
distance:
|
|
1719
|
+
distance: m = 0,
|
|
1720
1720
|
finished: c = !1,
|
|
1721
1721
|
locale: p = "en",
|
|
1722
1722
|
positions: h = [],
|
|
1723
1723
|
clearLayerOnStart: d = !1,
|
|
1724
1724
|
unit: b = Ie["m-km"],
|
|
1725
|
-
enabled:
|
|
1725
|
+
enabled: y = !1
|
|
1726
1726
|
} = s;
|
|
1727
1727
|
return n[o] = {
|
|
1728
1728
|
modes: a,
|
|
1729
1729
|
units: l,
|
|
1730
1730
|
modeSelected: i,
|
|
1731
|
-
distance:
|
|
1731
|
+
distance: m,
|
|
1732
1732
|
finished: c,
|
|
1733
1733
|
locale: p,
|
|
1734
1734
|
positions: h,
|
|
1735
1735
|
unit: b,
|
|
1736
1736
|
clearLayerOnStart: d,
|
|
1737
|
-
enabled:
|
|
1737
|
+
enabled: y
|
|
1738
1738
|
}, n;
|
|
1739
1739
|
}, {}),
|
|
1740
1740
|
mode: Et,
|
|
@@ -1856,16 +1856,16 @@ function Lt(r) {
|
|
|
1856
1856
|
const i = I(o);
|
|
1857
1857
|
let a;
|
|
1858
1858
|
e[4] !== t ? (a = (D) => D.measurements[t].distance, e[4] = t, e[5] = a) : a = e[5];
|
|
1859
|
-
const l = I(a),
|
|
1859
|
+
const l = I(a), m = I(bn);
|
|
1860
1860
|
let c;
|
|
1861
|
-
e[6] !==
|
|
1861
|
+
e[6] !== m || e[7] !== t ? (c = (D) => m(t, D), e[6] = m, e[7] = t, e[8] = c) : c = e[8];
|
|
1862
1862
|
const p = c;
|
|
1863
1863
|
let h;
|
|
1864
1864
|
e[9] !== t ? (h = (D) => D.measurements[t].clearLayerOnStart, e[9] = t, e[10] = h) : h = e[10];
|
|
1865
1865
|
const d = I(h);
|
|
1866
1866
|
let b;
|
|
1867
1867
|
e[11] !== t ? (b = (D) => D.measurements[t].enabled, e[11] = t, e[12] = b) : b = e[12];
|
|
1868
|
-
const
|
|
1868
|
+
const y = I(b), T = I(gn);
|
|
1869
1869
|
let f;
|
|
1870
1870
|
e[13] !== T || e[14] !== t ? (f = (D) => T(t, D), e[13] = T, e[14] = t, e[15] = f) : f = e[15];
|
|
1871
1871
|
const g = f;
|
|
@@ -1895,9 +1895,9 @@ function Lt(r) {
|
|
|
1895
1895
|
let H;
|
|
1896
1896
|
e[34] !== O || e[35] !== t ? (H = (D) => O(t, D), e[34] = O, e[35] = t, e[36] = H) : H = e[36];
|
|
1897
1897
|
const W = H;
|
|
1898
|
-
let
|
|
1899
|
-
e[37] !== t ? (
|
|
1900
|
-
const B = I(
|
|
1898
|
+
let K;
|
|
1899
|
+
e[37] !== t ? (K = (D) => D.measurements[t].positions, e[37] = t, e[38] = K) : K = e[38];
|
|
1900
|
+
const B = I(K), X = I(fn);
|
|
1901
1901
|
let he;
|
|
1902
1902
|
e[39] !== X || e[40] !== t ? (he = (D) => X(t, D), e[39] = X, e[40] = t, e[41] = he) : he = e[41];
|
|
1903
1903
|
const de = he;
|
|
@@ -1918,13 +1918,13 @@ function Lt(r) {
|
|
|
1918
1918
|
}, e[50] = g, e[51] = Se) : Se = e[51];
|
|
1919
1919
|
const De = Se;
|
|
1920
1920
|
let we;
|
|
1921
|
-
return e[52] !== Fe || e[53] !== d || e[54] !== l || e[55] !==
|
|
1921
|
+
return e[52] !== Fe || e[53] !== d || e[54] !== l || e[55] !== y || e[56] !== F || e[57] !== k || e[58] !== L || e[59] !== _ || e[60] !== s || e[61] !== B || e[62] !== p || e[63] !== g || e[64] !== $ || e[65] !== P || e[66] !== W || e[67] !== A || e[68] !== de || e[69] !== Ce || e[70] !== De || e[71] !== ke || e[72] !== i ? (we = {
|
|
1922
1922
|
modes: s,
|
|
1923
1923
|
units: i,
|
|
1924
1924
|
distance: l,
|
|
1925
1925
|
clearLayerOnStart: d,
|
|
1926
1926
|
modeSelected: _,
|
|
1927
|
-
enabled:
|
|
1927
|
+
enabled: y,
|
|
1928
1928
|
finished: F,
|
|
1929
1929
|
locale: k,
|
|
1930
1930
|
modeInstance: L,
|
|
@@ -1940,7 +1940,7 @@ function Lt(r) {
|
|
|
1940
1940
|
toggleLayer: De,
|
|
1941
1941
|
clearLayer: Fe,
|
|
1942
1942
|
setModeInstance: W
|
|
1943
|
-
}, e[52] = Fe, e[53] = d, e[54] = l, e[55] =
|
|
1943
|
+
}, e[52] = Fe, e[53] = d, e[54] = l, e[55] = y, e[56] = F, e[57] = k, e[58] = L, e[59] = _, e[60] = s, e[61] = B, e[62] = p, e[63] = g, e[64] = $, e[65] = P, e[66] = W, e[67] = A, e[68] = de, e[69] = Ce, e[70] = De, e[71] = ke, e[72] = i, e[73] = we) : we = e[73], we;
|
|
1944
1944
|
}
|
|
1945
1945
|
function dn(r) {
|
|
1946
1946
|
return r.setUnit;
|
|
@@ -1980,13 +1980,13 @@ function vn(r) {
|
|
|
1980
1980
|
modes: i,
|
|
1981
1981
|
units: a,
|
|
1982
1982
|
distance: l,
|
|
1983
|
-
setDistance:
|
|
1983
|
+
setDistance: m,
|
|
1984
1984
|
clearLayerOnStart: c,
|
|
1985
1985
|
modeSelected: p,
|
|
1986
1986
|
setModeSelected: h,
|
|
1987
1987
|
enabled: d,
|
|
1988
1988
|
setEnabled: b,
|
|
1989
|
-
finished:
|
|
1989
|
+
finished: y,
|
|
1990
1990
|
setFinished: T,
|
|
1991
1991
|
locale: f,
|
|
1992
1992
|
setLocale: g,
|
|
@@ -2012,16 +2012,16 @@ function vn(r) {
|
|
|
2012
2012
|
let $;
|
|
2013
2013
|
e[7] !== p || e[8] !== i || e[9] !== b || e[10] !== _ || e[11] !== E ? ($ = [i, p, E, _, b], e[7] = p, e[8] = i, e[9] = b, e[10] = _, e[11] = E, e[12] = $) : $ = e[12], z(q, $);
|
|
2014
2014
|
let M;
|
|
2015
|
-
e[13] !== j || e[14] !== F || e[15] !== c || e[16] !==
|
|
2016
|
-
P && (c || !
|
|
2017
|
-
}, e[13] = j, e[14] = F, e[15] = c, e[16] =
|
|
2015
|
+
e[13] !== j || e[14] !== F || e[15] !== c || e[16] !== y ? (M = (P) => {
|
|
2016
|
+
P && (c || !y) && F(), j(P);
|
|
2017
|
+
}, e[13] = j, e[14] = F, e[15] = c, e[16] = y, e[17] = M) : M = e[17];
|
|
2018
2018
|
const k = M, u = !!c;
|
|
2019
2019
|
let v;
|
|
2020
|
-
return e[18] !== s || e[19] !== F || e[20] !== l || e[21] !== d || e[22] !==
|
|
2020
|
+
return e[18] !== s || e[19] !== F || e[20] !== l || e[21] !== d || e[22] !== y || e[23] !== f || e[24] !== t || e[25] !== S || e[26] !== p || e[27] !== i || e[28] !== w || e[29] !== m || e[30] !== b || e[31] !== T || e[32] !== g || e[33] !== h || e[34] !== E || e[35] !== U || e[36] !== u || e[37] !== n || e[38] !== k || e[39] !== A || e[40] !== a ? (v = s({
|
|
2021
2021
|
mapId: t,
|
|
2022
2022
|
distance: l,
|
|
2023
2023
|
enabled: d,
|
|
2024
|
-
finished:
|
|
2024
|
+
finished: y,
|
|
2025
2025
|
locale: f,
|
|
2026
2026
|
positions: w,
|
|
2027
2027
|
unit: A,
|
|
@@ -2037,7 +2037,7 @@ function vn(r) {
|
|
|
2037
2037
|
}),
|
|
2038
2038
|
modeInstance: S,
|
|
2039
2039
|
setModeSelected: h,
|
|
2040
|
-
setDistance:
|
|
2040
|
+
setDistance: m,
|
|
2041
2041
|
setFinished: T,
|
|
2042
2042
|
setLocale: g,
|
|
2043
2043
|
setPositions: E,
|
|
@@ -2045,7 +2045,7 @@ function vn(r) {
|
|
|
2045
2045
|
setEnabled: b,
|
|
2046
2046
|
toggleLayer: k,
|
|
2047
2047
|
clearLayer: F
|
|
2048
|
-
}), e[18] = s, e[19] = F, e[20] = l, e[21] = d, e[22] =
|
|
2048
|
+
}), e[18] = s, e[19] = F, e[20] = l, e[21] = d, e[22] = y, e[23] = f, e[24] = t, e[25] = S, e[26] = p, e[27] = i, e[28] = w, e[29] = m, e[30] = b, e[31] = T, e[32] = g, e[33] = h, e[34] = E, e[35] = U, e[36] = u, e[37] = n, e[38] = k, e[39] = A, e[40] = a, e[41] = v) : v = e[41], v;
|
|
2049
2049
|
}
|
|
2050
2050
|
const Sn = [ne];
|
|
2051
2051
|
function wn({
|
|
@@ -2064,23 +2064,23 @@ function wn({
|
|
|
2064
2064
|
clearLayerOnStart: i,
|
|
2065
2065
|
enabled: a,
|
|
2066
2066
|
finished: l,
|
|
2067
|
-
setFinished:
|
|
2067
|
+
setFinished: m,
|
|
2068
2068
|
locale: c,
|
|
2069
2069
|
setPositions: p,
|
|
2070
2070
|
unit: h,
|
|
2071
2071
|
modeInstance: d
|
|
2072
2072
|
} = Lt({
|
|
2073
2073
|
mapId: e
|
|
2074
|
-
}), b = pe((w) => w.setLayer),
|
|
2074
|
+
}), b = pe((w) => w.setLayer), y = x((w) => w.addLayers), T = x((w) => w.removeLayers), f = x(ht((w) => {
|
|
2075
2075
|
var E;
|
|
2076
2076
|
return (E = w.maps[e]) == null ? void 0 : E.layers.filter((A) => !Sn.includes(A));
|
|
2077
2077
|
})), g = x((w) => w.getDeckInstance), S = Me({});
|
|
2078
2078
|
Mt({
|
|
2079
2079
|
mapId: e,
|
|
2080
2080
|
layerId: ne
|
|
2081
|
-
}), z(() => (a &&
|
|
2081
|
+
}), z(() => (a && y(e, [ne]), () => {
|
|
2082
2082
|
T(e, [ne]);
|
|
2083
|
-
}), [
|
|
2083
|
+
}), [y, i, e, T, a]), z(() => {
|
|
2084
2084
|
f == null || f.forEach((w) => {
|
|
2085
2085
|
var U;
|
|
2086
2086
|
const E = (U = g(e)) == null ? void 0 : U.props.layers.find((F) => F.props.id === w);
|
|
@@ -2101,10 +2101,10 @@ function wn({
|
|
|
2101
2101
|
d.resetClickSequence();
|
|
2102
2102
|
return;
|
|
2103
2103
|
}
|
|
2104
|
-
w === Y.addPosition && o(E.distance),
|
|
2104
|
+
w === Y.addPosition && o(E.distance), m(!!E.finished);
|
|
2105
2105
|
const A = E.positions;
|
|
2106
2106
|
A != null && A.length && p(A);
|
|
2107
|
-
}, [d, o,
|
|
2107
|
+
}, [d, o, m, p]);
|
|
2108
2108
|
return z(() => {
|
|
2109
2109
|
const w = l ? t.colors.finished : t.colors.editing, E = l ? t.colors.finished : t.colors.point, A = an({
|
|
2110
2110
|
layerProps: {
|
|
@@ -2129,14 +2129,14 @@ function _n(r) {
|
|
|
2129
2129
|
mapId: t
|
|
2130
2130
|
} = r;
|
|
2131
2131
|
let n;
|
|
2132
|
-
e[0] !== t ? (n = (
|
|
2132
|
+
e[0] !== t ? (n = (m) => m.maps[t], e[0] = t, e[1] = n) : n = e[1];
|
|
2133
2133
|
const {
|
|
2134
2134
|
layers: s
|
|
2135
2135
|
} = x(n), o = pe(En);
|
|
2136
2136
|
let i, a;
|
|
2137
2137
|
if (e[2] !== o || e[3] !== s) {
|
|
2138
|
-
let
|
|
2139
|
-
e[5] !== o ? (
|
|
2138
|
+
let m;
|
|
2139
|
+
e[5] !== o ? (m = (c) => o[c], e[5] = o, e[6] = m) : m = e[6], a = s.map(m).filter(Tn), e[2] = o, e[3] = s, e[4] = a;
|
|
2140
2140
|
} else
|
|
2141
2141
|
a = e[4];
|
|
2142
2142
|
return i = a, i;
|
|
@@ -2167,13 +2167,13 @@ function Br(r) {
|
|
|
2167
2167
|
const a = x(i);
|
|
2168
2168
|
let l;
|
|
2169
2169
|
e[7] !== t ? (l = (L) => L.maps[t].instanceRef, e[7] = t, e[8] = l) : l = e[8];
|
|
2170
|
-
const
|
|
2170
|
+
const m = x(l);
|
|
2171
2171
|
let c;
|
|
2172
2172
|
e[9] !== t ? (c = (L) => L.maps[t].overlayRef, e[9] = t, e[10] = c) : c = e[10];
|
|
2173
2173
|
const p = x(c), h = Me(null);
|
|
2174
2174
|
let d;
|
|
2175
2175
|
e[11] !== t ? (d = (L) => L.viewStates[t], e[11] = t, e[12] = d) : d = e[12];
|
|
2176
|
-
const b = x(d),
|
|
2176
|
+
const b = x(d), y = x(Cn), T = x(An), f = x(kn), g = x(On), S = x(Ln);
|
|
2177
2177
|
let _;
|
|
2178
2178
|
e[13] !== t ? (_ = {
|
|
2179
2179
|
mapId: t
|
|
@@ -2185,9 +2185,9 @@ function Br(r) {
|
|
|
2185
2185
|
let F;
|
|
2186
2186
|
e[17] !== t || e[18] !== s || e[19] !== T || e[20] !== S ? (F = (L) => {
|
|
2187
2187
|
const O = T;
|
|
2188
|
-
if (
|
|
2188
|
+
if (h.current && clearInterval(h.current), h.current = setTimeout(() => {
|
|
2189
2189
|
S(t);
|
|
2190
|
-
}, Mn)
|
|
2190
|
+
}, Mn), s) {
|
|
2191
2191
|
s(L, O);
|
|
2192
2192
|
return;
|
|
2193
2193
|
}
|
|
@@ -2200,11 +2200,11 @@ function Br(r) {
|
|
|
2200
2200
|
}, e[22] = t, e[23] = n, e[24] = f, e[25] = S, e[26] = q) : q = e[26];
|
|
2201
2201
|
const $ = q;
|
|
2202
2202
|
let M;
|
|
2203
|
-
e[27] !==
|
|
2204
|
-
var W,
|
|
2205
|
-
const O = (W =
|
|
2206
|
-
g(t, H), (
|
|
2207
|
-
}, e[27] =
|
|
2203
|
+
e[27] !== y || e[28] !== t || e[29] !== o || e[30] !== g ? (M = (L) => {
|
|
2204
|
+
var W, K;
|
|
2205
|
+
const O = (W = y(t)) == null ? void 0 : W.props.layers, H = !!(O != null && O.every(Pn));
|
|
2206
|
+
g(t, H), (K = o.onAfterRender) == null || K.call(o, L);
|
|
2207
|
+
}, e[27] = y, e[28] = t, e[29] = o, e[30] = g, e[31] = M) : M = e[31];
|
|
2208
2208
|
const k = M, u = o.onDragEnd;
|
|
2209
2209
|
let v;
|
|
2210
2210
|
e[32] !== u || e[33] !== t || e[34] !== S ? (v = (...L) => {
|
|
@@ -2213,7 +2213,7 @@ function Br(r) {
|
|
|
2213
2213
|
}, e[32] = u, e[33] = t, e[34] = S, e[35] = v) : v = e[35];
|
|
2214
2214
|
const P = v;
|
|
2215
2215
|
let C;
|
|
2216
|
-
return e[36] !== a || e[37] !== U || e[38] !== k || e[39] !== P || e[40] !== $ || e[41] !== j || e[42] !== t || e[43] !==
|
|
2216
|
+
return e[36] !== a || e[37] !== U || e[38] !== k || e[39] !== P || e[40] !== $ || e[41] !== j || e[42] !== t || e[43] !== m || e[44] !== p || e[45] !== o || e[46] !== b ? (C = /* @__PURE__ */ N(Os, { ...o, id: t, layers: U, instanceRef: m, overlayRef: p, basemap: a, initialViewState: b, onLoad: $, onViewStateChange: j, onAfterRender: k, onDragEnd: P }), e[36] = a, e[37] = U, e[38] = k, e[39] = P, e[40] = $, e[41] = j, e[42] = t, e[43] = m, e[44] = p, e[45] = o, e[46] = b, e[47] = C) : C = e[47], C;
|
|
2217
2217
|
}
|
|
2218
2218
|
function Pn(r) {
|
|
2219
2219
|
return r == null ? void 0 : r.isLoaded;
|
|
@@ -2258,7 +2258,7 @@ function Fn() {
|
|
|
2258
2258
|
formData: "FormData" in a,
|
|
2259
2259
|
arrayBuffer: "ArrayBuffer" in a
|
|
2260
2260
|
};
|
|
2261
|
-
function
|
|
2261
|
+
function m(u) {
|
|
2262
2262
|
return u && DataView.prototype.isPrototypeOf(u);
|
|
2263
2263
|
}
|
|
2264
2264
|
if (l.arrayBuffer)
|
|
@@ -2294,8 +2294,8 @@ function Fn() {
|
|
|
2294
2294
|
return v;
|
|
2295
2295
|
}), v;
|
|
2296
2296
|
}
|
|
2297
|
-
function
|
|
2298
|
-
this.map = {}, u instanceof
|
|
2297
|
+
function y(u) {
|
|
2298
|
+
this.map = {}, u instanceof y ? u.forEach(function(v, P) {
|
|
2299
2299
|
this.append(P, v);
|
|
2300
2300
|
}, this) : Array.isArray(u) ? u.forEach(function(v) {
|
|
2301
2301
|
if (v.length != 2)
|
|
@@ -2305,37 +2305,37 @@ function Fn() {
|
|
|
2305
2305
|
this.append(v, u[v]);
|
|
2306
2306
|
}, this);
|
|
2307
2307
|
}
|
|
2308
|
-
|
|
2308
|
+
y.prototype.append = function(u, v) {
|
|
2309
2309
|
u = h(u), v = d(v);
|
|
2310
2310
|
var P = this.map[u];
|
|
2311
2311
|
this.map[u] = P ? P + ", " + v : v;
|
|
2312
|
-
},
|
|
2312
|
+
}, y.prototype.delete = function(u) {
|
|
2313
2313
|
delete this.map[h(u)];
|
|
2314
|
-
},
|
|
2314
|
+
}, y.prototype.get = function(u) {
|
|
2315
2315
|
return u = h(u), this.has(u) ? this.map[u] : null;
|
|
2316
|
-
},
|
|
2316
|
+
}, y.prototype.has = function(u) {
|
|
2317
2317
|
return this.map.hasOwnProperty(h(u));
|
|
2318
|
-
},
|
|
2318
|
+
}, y.prototype.set = function(u, v) {
|
|
2319
2319
|
this.map[h(u)] = d(v);
|
|
2320
|
-
},
|
|
2320
|
+
}, y.prototype.forEach = function(u, v) {
|
|
2321
2321
|
for (var P in this.map)
|
|
2322
2322
|
this.map.hasOwnProperty(P) && u.call(v, this.map[P], P, this);
|
|
2323
|
-
},
|
|
2323
|
+
}, y.prototype.keys = function() {
|
|
2324
2324
|
var u = [];
|
|
2325
2325
|
return this.forEach(function(v, P) {
|
|
2326
2326
|
u.push(P);
|
|
2327
2327
|
}), b(u);
|
|
2328
|
-
},
|
|
2328
|
+
}, y.prototype.values = function() {
|
|
2329
2329
|
var u = [];
|
|
2330
2330
|
return this.forEach(function(v) {
|
|
2331
2331
|
u.push(v);
|
|
2332
2332
|
}), b(u);
|
|
2333
|
-
},
|
|
2333
|
+
}, y.prototype.entries = function() {
|
|
2334
2334
|
var u = [];
|
|
2335
2335
|
return this.forEach(function(v, P) {
|
|
2336
2336
|
u.push([P, v]);
|
|
2337
2337
|
}), b(u);
|
|
2338
|
-
}, l.iterable && (
|
|
2338
|
+
}, l.iterable && (y.prototype[Symbol.iterator] = y.prototype.entries);
|
|
2339
2339
|
function T(u) {
|
|
2340
2340
|
if (!u._noBody) {
|
|
2341
2341
|
if (u.bodyUsed)
|
|
@@ -2373,7 +2373,7 @@ function Fn() {
|
|
|
2373
2373
|
}
|
|
2374
2374
|
function E() {
|
|
2375
2375
|
return this.bodyUsed = !1, this._initBody = function(u) {
|
|
2376
|
-
this.bodyUsed = this.bodyUsed, this._bodyInit = u, u ? typeof u == "string" ? this._bodyText = u : l.blob && Blob.prototype.isPrototypeOf(u) ? this._bodyBlob = u : l.formData && FormData.prototype.isPrototypeOf(u) ? this._bodyFormData = u : l.searchParams && URLSearchParams.prototype.isPrototypeOf(u) ? this._bodyText = u.toString() : l.arrayBuffer && l.blob &&
|
|
2376
|
+
this.bodyUsed = this.bodyUsed, this._bodyInit = u, u ? typeof u == "string" ? this._bodyText = u : l.blob && Blob.prototype.isPrototypeOf(u) ? this._bodyBlob = u : l.formData && FormData.prototype.isPrototypeOf(u) ? this._bodyFormData = u : l.searchParams && URLSearchParams.prototype.isPrototypeOf(u) ? this._bodyText = u.toString() : l.arrayBuffer && l.blob && m(u) ? (this._bodyArrayBuffer = w(u.buffer), this._bodyInit = new Blob([this._bodyArrayBuffer])) : l.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(u) || p(u)) ? this._bodyArrayBuffer = w(u) : this._bodyText = u = Object.prototype.toString.call(u) : (this._noBody = !0, this._bodyText = ""), this.headers.get("content-type") || (typeof u == "string" ? this.headers.set("content-type", "text/plain;charset=UTF-8") : this._bodyBlob && this._bodyBlob.type ? this.headers.set("content-type", this._bodyBlob.type) : l.searchParams && URLSearchParams.prototype.isPrototypeOf(u) && this.headers.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8"));
|
|
2377
2377
|
}, l.blob && (this.blob = function() {
|
|
2378
2378
|
var u = T(this);
|
|
2379
2379
|
if (u)
|
|
@@ -2429,10 +2429,10 @@ function Fn() {
|
|
|
2429
2429
|
if (u instanceof F) {
|
|
2430
2430
|
if (u.bodyUsed)
|
|
2431
2431
|
throw new TypeError("Already read");
|
|
2432
|
-
this.url = u.url, this.credentials = u.credentials, v.headers || (this.headers = new
|
|
2432
|
+
this.url = u.url, this.credentials = u.credentials, v.headers || (this.headers = new y(u.headers)), this.method = u.method, this.mode = u.mode, this.signal = u.signal, !P && u._bodyInit != null && (P = u._bodyInit, u.bodyUsed = !0);
|
|
2433
2433
|
} else
|
|
2434
2434
|
this.url = String(u);
|
|
2435
|
-
if (this.credentials = v.credentials || this.credentials || "same-origin", (v.headers || !this.headers) && (this.headers = new
|
|
2435
|
+
if (this.credentials = v.credentials || this.credentials || "same-origin", (v.headers || !this.headers) && (this.headers = new y(v.headers)), this.method = U(v.method || this.method || "GET"), this.mode = v.mode || this.mode || null, this.signal = v.signal || this.signal || function() {
|
|
2436
2436
|
if ("AbortController" in a) {
|
|
2437
2437
|
var O = new AbortController();
|
|
2438
2438
|
return O.signal;
|
|
@@ -2462,7 +2462,7 @@ function Fn() {
|
|
|
2462
2462
|
}), v;
|
|
2463
2463
|
}
|
|
2464
2464
|
function q(u) {
|
|
2465
|
-
var v = new
|
|
2465
|
+
var v = new y(), P = u.replace(/\r?\n[\t ]+/g, " ");
|
|
2466
2466
|
return P.split("\r").map(function(C) {
|
|
2467
2467
|
return C.indexOf(`
|
|
2468
2468
|
`) === 0 ? C.substr(1, C.length) : C;
|
|
@@ -2484,13 +2484,13 @@ function Fn() {
|
|
|
2484
2484
|
throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');
|
|
2485
2485
|
if (v || (v = {}), this.type = "default", this.status = v.status === void 0 ? 200 : v.status, this.status < 200 || this.status > 599)
|
|
2486
2486
|
throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");
|
|
2487
|
-
this.ok = this.status >= 200 && this.status < 300, this.statusText = v.statusText === void 0 ? "" : "" + v.statusText, this.headers = new
|
|
2487
|
+
this.ok = this.status >= 200 && this.status < 300, this.statusText = v.statusText === void 0 ? "" : "" + v.statusText, this.headers = new y(v.headers), this.url = v.url || "", this._initBody(u);
|
|
2488
2488
|
}
|
|
2489
2489
|
E.call($.prototype), $.prototype.clone = function() {
|
|
2490
2490
|
return new $(this._bodyInit, {
|
|
2491
2491
|
status: this.status,
|
|
2492
2492
|
statusText: this.statusText,
|
|
2493
|
-
headers: new
|
|
2493
|
+
headers: new y(this.headers),
|
|
2494
2494
|
url: this.url
|
|
2495
2495
|
});
|
|
2496
2496
|
}, $.error = function() {
|
|
@@ -2551,12 +2551,12 @@ function Fn() {
|
|
|
2551
2551
|
return B;
|
|
2552
2552
|
}
|
|
2553
2553
|
}
|
|
2554
|
-
if (O.open(L.method, W(L.url), !0), L.credentials === "include" ? O.withCredentials = !0 : L.credentials === "omit" && (O.withCredentials = !1), "responseType" in O && (l.blob ? O.responseType = "blob" : l.arrayBuffer && (O.responseType = "arraybuffer")), v && typeof v.headers == "object" && !(v.headers instanceof
|
|
2555
|
-
var
|
|
2554
|
+
if (O.open(L.method, W(L.url), !0), L.credentials === "include" ? O.withCredentials = !0 : L.credentials === "omit" && (O.withCredentials = !1), "responseType" in O && (l.blob ? O.responseType = "blob" : l.arrayBuffer && (O.responseType = "arraybuffer")), v && typeof v.headers == "object" && !(v.headers instanceof y || a.Headers && v.headers instanceof a.Headers)) {
|
|
2555
|
+
var K = [];
|
|
2556
2556
|
Object.getOwnPropertyNames(v.headers).forEach(function(B) {
|
|
2557
|
-
|
|
2557
|
+
K.push(h(B)), O.setRequestHeader(B, d(v.headers[B]));
|
|
2558
2558
|
}), L.headers.forEach(function(B, X) {
|
|
2559
|
-
|
|
2559
|
+
K.indexOf(X) === -1 && O.setRequestHeader(X, B);
|
|
2560
2560
|
});
|
|
2561
2561
|
} else
|
|
2562
2562
|
L.headers.forEach(function(B, X) {
|
|
@@ -2567,7 +2567,7 @@ function Fn() {
|
|
|
2567
2567
|
}), O.send(typeof L._bodyInit > "u" ? null : L._bodyInit);
|
|
2568
2568
|
});
|
|
2569
2569
|
}
|
|
2570
|
-
return k.polyfill = !0, a.fetch || (a.fetch = k, a.Headers =
|
|
2570
|
+
return k.polyfill = !0, a.fetch || (a.fetch = k, a.Headers = y, a.Request = F, a.Response = $), i.Headers = y, i.Request = F, i.Response = $, i.fetch = k, i;
|
|
2571
2571
|
})({});
|
|
2572
2572
|
})(n), n.fetch.ponyfill = !0, delete n.fetch.polyfill;
|
|
2573
2573
|
var s = t.fetch ? t : n;
|
|
@@ -2576,7 +2576,7 @@ function Fn() {
|
|
|
2576
2576
|
}
|
|
2577
2577
|
var Dn = Fn();
|
|
2578
2578
|
const Rn = /* @__PURE__ */ vt(Dn);
|
|
2579
|
-
let We = "https://gcp-us-east1.api.carto.com",
|
|
2579
|
+
let We = "https://gcp-us-east1.api.carto.com", Ke = "v3", Un = "ps";
|
|
2580
2580
|
const ue = {
|
|
2581
2581
|
get: "GET",
|
|
2582
2582
|
post: "POST"
|
|
@@ -2617,17 +2617,17 @@ function jn() {
|
|
|
2617
2617
|
return Array.isArray(f) ? [] : {};
|
|
2618
2618
|
}
|
|
2619
2619
|
function a(f, g) {
|
|
2620
|
-
return g.clone !== !1 && g.isMergeableObject(f) ?
|
|
2620
|
+
return g.clone !== !1 && g.isMergeableObject(f) ? y(i(f), f, g) : f;
|
|
2621
2621
|
}
|
|
2622
2622
|
function l(f, g, S) {
|
|
2623
2623
|
return f.concat(g).map(function(_) {
|
|
2624
2624
|
return a(_, S);
|
|
2625
2625
|
});
|
|
2626
2626
|
}
|
|
2627
|
-
function
|
|
2628
|
-
if (!g.customMerge) return
|
|
2627
|
+
function m(f, g) {
|
|
2628
|
+
if (!g.customMerge) return y;
|
|
2629
2629
|
var S = g.customMerge(f);
|
|
2630
|
-
return typeof S == "function" ? S :
|
|
2630
|
+
return typeof S == "function" ? S : y;
|
|
2631
2631
|
}
|
|
2632
2632
|
function c(f) {
|
|
2633
2633
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(f).filter(function(g) {
|
|
@@ -2652,27 +2652,27 @@ function jn() {
|
|
|
2652
2652
|
return S.isMergeableObject(f) && p(f).forEach(function(w) {
|
|
2653
2653
|
_[w] = a(f[w], S);
|
|
2654
2654
|
}), p(g).forEach(function(w) {
|
|
2655
|
-
d(f, w) || (h(f, w) && S.isMergeableObject(g[w]) ? _[w] =
|
|
2655
|
+
d(f, w) || (h(f, w) && S.isMergeableObject(g[w]) ? _[w] = m(w, S)(f[w], g[w], S) : _[w] = a(g[w], S));
|
|
2656
2656
|
}), _;
|
|
2657
2657
|
}
|
|
2658
|
-
function
|
|
2658
|
+
function y(f, g, S) {
|
|
2659
2659
|
S = S || {}, S.arrayMerge = S.arrayMerge || l, S.isMergeableObject = S.isMergeableObject || r, S.cloneUnlessOtherwiseSpecified = a;
|
|
2660
2660
|
var _ = Array.isArray(g), w = Array.isArray(f), E = _ === w;
|
|
2661
2661
|
return E ? _ ? S.arrayMerge(f, g, S) : b(f, g, S) : a(g, S);
|
|
2662
2662
|
}
|
|
2663
|
-
|
|
2663
|
+
y.all = function(f, g) {
|
|
2664
2664
|
if (!Array.isArray(f)) throw new Error("first argument should be an array");
|
|
2665
2665
|
return f.reduce(function(S, _) {
|
|
2666
|
-
return
|
|
2666
|
+
return y(S, _, g);
|
|
2667
2667
|
}, {});
|
|
2668
2668
|
};
|
|
2669
|
-
var T =
|
|
2669
|
+
var T = y;
|
|
2670
2670
|
return Be = T, Be;
|
|
2671
2671
|
}
|
|
2672
2672
|
var Bn = jn();
|
|
2673
|
-
const
|
|
2673
|
+
const Ze = /* @__PURE__ */ qn(Bn);
|
|
2674
2674
|
function ut(r) {
|
|
2675
|
-
return
|
|
2675
|
+
return Ze({
|
|
2676
2676
|
method: ue.get,
|
|
2677
2677
|
headers: {
|
|
2678
2678
|
Accept: "application/json"
|
|
@@ -2680,7 +2680,7 @@ function ut(r) {
|
|
|
2680
2680
|
}, r);
|
|
2681
2681
|
}
|
|
2682
2682
|
function Ve(r, e) {
|
|
2683
|
-
return
|
|
2683
|
+
return Ze({
|
|
2684
2684
|
method: ue.post,
|
|
2685
2685
|
headers: {
|
|
2686
2686
|
Accept: "application/json",
|
|
@@ -2703,7 +2703,7 @@ function In({
|
|
|
2703
2703
|
...n
|
|
2704
2704
|
}) {
|
|
2705
2705
|
let s = e;
|
|
2706
|
-
return s && !s.includes("Bearer") && (s = "Bearer " + s), Vn[t](
|
|
2706
|
+
return s && !s.includes("Bearer") && (s = "Bearer " + s), Vn[t](Ze({
|
|
2707
2707
|
method: t,
|
|
2708
2708
|
headers: {
|
|
2709
2709
|
...!!s && {
|
|
@@ -2728,11 +2728,11 @@ async function kt({
|
|
|
2728
2728
|
},
|
|
2729
2729
|
...l
|
|
2730
2730
|
}) {
|
|
2731
|
-
let
|
|
2731
|
+
let m = $n({
|
|
2732
2732
|
url: i,
|
|
2733
2733
|
params: o
|
|
2734
2734
|
}), c = e, p = s;
|
|
2735
|
-
s === ue.get &&
|
|
2735
|
+
s === ue.get && m.length > a && (c = o, p = ue.post, m = i);
|
|
2736
2736
|
const h = In({
|
|
2737
2737
|
body: c,
|
|
2738
2738
|
accessToken: t ?? (n == null ? void 0 : n.accessToken),
|
|
@@ -2740,7 +2740,7 @@ async function kt({
|
|
|
2740
2740
|
...l
|
|
2741
2741
|
});
|
|
2742
2742
|
r && (h.signal = r);
|
|
2743
|
-
const d = await Rn(
|
|
2743
|
+
const d = await Rn(m, h);
|
|
2744
2744
|
if (!d.ok) {
|
|
2745
2745
|
const b = await d.text();
|
|
2746
2746
|
return Promise.reject(new Error(b));
|
|
@@ -2762,13 +2762,13 @@ const Pe = yt()(ys((r) => ({
|
|
|
2762
2762
|
const i = s[e], {
|
|
2763
2763
|
apiBaseUrl: a = We,
|
|
2764
2764
|
clientId: l = Un,
|
|
2765
|
-
apiVersion:
|
|
2765
|
+
apiVersion: m = Ke,
|
|
2766
2766
|
...c
|
|
2767
2767
|
} = t, p = {
|
|
2768
2768
|
...i,
|
|
2769
2769
|
...c,
|
|
2770
2770
|
apiBaseUrl: a,
|
|
2771
|
-
apiVersion:
|
|
2771
|
+
apiVersion: m,
|
|
2772
2772
|
clientId: l
|
|
2773
2773
|
}, h = Gn({
|
|
2774
2774
|
source: p
|
|
@@ -2928,7 +2928,7 @@ function zn(r) {
|
|
|
2928
2928
|
enabled: a,
|
|
2929
2929
|
...l
|
|
2930
2930
|
} = i, e[2] = i, e[3] = a, e[4] = l) : (a = e[3], l = e[4]);
|
|
2931
|
-
const
|
|
2931
|
+
const m = a === void 0 ? !0 : a, c = ie(n), p = ae(t, n);
|
|
2932
2932
|
let h;
|
|
2933
2933
|
e[5] !== t || e[6] !== c || e[7] !== n || e[8] !== s ? (h = ["categories", n, t, s, c], e[5] = t, e[6] = c, e[7] = n, e[8] = s, e[9] = h) : h = e[9];
|
|
2934
2934
|
let d;
|
|
@@ -2942,14 +2942,14 @@ function zn(r) {
|
|
|
2942
2942
|
signal: f
|
|
2943
2943
|
});
|
|
2944
2944
|
}, e[10] = c, e[11] = p, e[12] = s, e[13] = d) : d = e[13];
|
|
2945
|
-
const b = !!p &&
|
|
2946
|
-
let
|
|
2947
|
-
return e[14] !== h || e[15] !== d || e[16] !== b || e[17] !== l ? (
|
|
2945
|
+
const b = !!p && m;
|
|
2946
|
+
let y;
|
|
2947
|
+
return e[14] !== h || e[15] !== d || e[16] !== b || e[17] !== l ? (y = {
|
|
2948
2948
|
queryKey: h,
|
|
2949
2949
|
queryFn: d,
|
|
2950
2950
|
enabled: b,
|
|
2951
2951
|
...l
|
|
2952
|
-
}, e[14] = h, e[15] = d, e[16] = b, e[17] = l, e[18] =
|
|
2952
|
+
}, e[14] = h, e[15] = d, e[16] = b, e[17] = l, e[18] = y) : y = e[18], se(y);
|
|
2953
2953
|
}
|
|
2954
2954
|
function Nr(r) {
|
|
2955
2955
|
const e = R(6);
|
|
@@ -2976,7 +2976,7 @@ function Qn(r) {
|
|
|
2976
2976
|
enabled: a,
|
|
2977
2977
|
...l
|
|
2978
2978
|
} = i, e[2] = i, e[3] = a, e[4] = l) : (a = e[3], l = e[4]);
|
|
2979
|
-
const
|
|
2979
|
+
const m = a === void 0 ? !0 : a, c = ie(n), p = ae(t, n);
|
|
2980
2980
|
let h;
|
|
2981
2981
|
e[5] !== t || e[6] !== c || e[7] !== n || e[8] !== s ? (h = ["features", n, t, s, c], e[5] = t, e[6] = c, e[7] = n, e[8] = s, e[9] = h) : h = e[9];
|
|
2982
2982
|
let d;
|
|
@@ -2990,14 +2990,14 @@ function Qn(r) {
|
|
|
2990
2990
|
signal: f
|
|
2991
2991
|
});
|
|
2992
2992
|
}, e[10] = c, e[11] = p, e[12] = s, e[13] = d) : d = e[13];
|
|
2993
|
-
const b = !!p &&
|
|
2994
|
-
let
|
|
2995
|
-
return e[14] !== h || e[15] !== d || e[16] !== b || e[17] !== l ? (
|
|
2993
|
+
const b = !!p && m;
|
|
2994
|
+
let y;
|
|
2995
|
+
return e[14] !== h || e[15] !== d || e[16] !== b || e[17] !== l ? (y = {
|
|
2996
2996
|
queryKey: h,
|
|
2997
2997
|
queryFn: d,
|
|
2998
2998
|
enabled: b,
|
|
2999
2999
|
...l
|
|
3000
|
-
}, e[14] = h, e[15] = d, e[16] = b, e[17] = l, e[18] =
|
|
3000
|
+
}, e[14] = h, e[15] = d, e[16] = b, e[17] = l, e[18] = y) : y = e[18], se(y);
|
|
3001
3001
|
}
|
|
3002
3002
|
function Hr(r) {
|
|
3003
3003
|
const e = R(6);
|
|
@@ -3024,7 +3024,7 @@ function Wn(r) {
|
|
|
3024
3024
|
enabled: a,
|
|
3025
3025
|
...l
|
|
3026
3026
|
} = i, e[2] = i, e[3] = a, e[4] = l) : (a = e[3], l = e[4]);
|
|
3027
|
-
const
|
|
3027
|
+
const m = a === void 0 ? !0 : a, c = ie(n), p = ae(t, n);
|
|
3028
3028
|
let h;
|
|
3029
3029
|
e[5] !== t || e[6] !== c || e[7] !== n || e[8] !== s ? (h = ["formula", n, t, s, c], e[5] = t, e[6] = c, e[7] = n, e[8] = s, e[9] = h) : h = e[9];
|
|
3030
3030
|
let d;
|
|
@@ -3038,14 +3038,14 @@ function Wn(r) {
|
|
|
3038
3038
|
signal: f
|
|
3039
3039
|
});
|
|
3040
3040
|
}, e[10] = c, e[11] = p, e[12] = s, e[13] = d) : d = e[13];
|
|
3041
|
-
const b = !!p &&
|
|
3042
|
-
let
|
|
3043
|
-
return e[14] !== h || e[15] !== d || e[16] !== b || e[17] !== l ? (
|
|
3041
|
+
const b = !!p && m;
|
|
3042
|
+
let y;
|
|
3043
|
+
return e[14] !== h || e[15] !== d || e[16] !== b || e[17] !== l ? (y = {
|
|
3044
3044
|
queryKey: h,
|
|
3045
3045
|
queryFn: d,
|
|
3046
3046
|
enabled: b,
|
|
3047
3047
|
...l
|
|
3048
|
-
}, e[14] = h, e[15] = d, e[16] = b, e[17] = l, e[18] =
|
|
3048
|
+
}, e[14] = h, e[15] = d, e[16] = b, e[17] = l, e[18] = y) : y = e[18], se(y);
|
|
3049
3049
|
}
|
|
3050
3050
|
function Gr(r) {
|
|
3051
3051
|
const e = R(6);
|
|
@@ -3058,7 +3058,7 @@ function Gr(r) {
|
|
|
3058
3058
|
let o;
|
|
3059
3059
|
return e[3] !== t || e[4] !== s ? (o = t(s), e[3] = t, e[4] = s, e[5] = o) : o = e[5], o;
|
|
3060
3060
|
}
|
|
3061
|
-
function
|
|
3061
|
+
function Kn(r) {
|
|
3062
3062
|
const e = R(19), {
|
|
3063
3063
|
accessToken: t,
|
|
3064
3064
|
sourceId: n,
|
|
@@ -3072,7 +3072,7 @@ function Zn(r) {
|
|
|
3072
3072
|
enabled: a,
|
|
3073
3073
|
...l
|
|
3074
3074
|
} = i, e[2] = i, e[3] = a, e[4] = l) : (a = e[3], l = e[4]);
|
|
3075
|
-
const
|
|
3075
|
+
const m = a === void 0 ? !0 : a, c = ie(n), p = ae(t, n);
|
|
3076
3076
|
let h;
|
|
3077
3077
|
e[5] !== t || e[6] !== c || e[7] !== n || e[8] !== s ? (h = ["histogram", n, t, s, c], e[5] = t, e[6] = c, e[7] = n, e[8] = s, e[9] = h) : h = e[9];
|
|
3078
3078
|
let d;
|
|
@@ -3086,14 +3086,14 @@ function Zn(r) {
|
|
|
3086
3086
|
signal: f
|
|
3087
3087
|
});
|
|
3088
3088
|
}, e[10] = c, e[11] = p, e[12] = s, e[13] = d) : d = e[13];
|
|
3089
|
-
const b = !!p &&
|
|
3090
|
-
let
|
|
3091
|
-
return e[14] !== h || e[15] !== d || e[16] !== b || e[17] !== l ? (
|
|
3089
|
+
const b = !!p && m;
|
|
3090
|
+
let y;
|
|
3091
|
+
return e[14] !== h || e[15] !== d || e[16] !== b || e[17] !== l ? (y = {
|
|
3092
3092
|
queryKey: h,
|
|
3093
3093
|
queryFn: d,
|
|
3094
3094
|
enabled: b,
|
|
3095
3095
|
...l
|
|
3096
|
-
}, e[14] = h, e[15] = d, e[16] = b, e[17] = l, e[18] =
|
|
3096
|
+
}, e[14] = h, e[15] = d, e[16] = b, e[17] = l, e[18] = y) : y = e[18], se(y);
|
|
3097
3097
|
}
|
|
3098
3098
|
function zr(r) {
|
|
3099
3099
|
const e = R(6);
|
|
@@ -3102,11 +3102,11 @@ function zr(r) {
|
|
|
3102
3102
|
children: t,
|
|
3103
3103
|
...n
|
|
3104
3104
|
} = r, e[0] = r, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
|
|
3105
|
-
const s =
|
|
3105
|
+
const s = Kn(n);
|
|
3106
3106
|
let o;
|
|
3107
3107
|
return e[3] !== t || e[4] !== s ? (o = t(s), e[3] = t, e[4] = s, e[5] = o) : o = e[5], o;
|
|
3108
3108
|
}
|
|
3109
|
-
function
|
|
3109
|
+
function Zn(r) {
|
|
3110
3110
|
const e = R(19), {
|
|
3111
3111
|
accessToken: t,
|
|
3112
3112
|
sourceId: n,
|
|
@@ -3120,7 +3120,7 @@ function Kn(r) {
|
|
|
3120
3120
|
enabled: a,
|
|
3121
3121
|
...l
|
|
3122
3122
|
} = i, e[2] = i, e[3] = a, e[4] = l) : (a = e[3], l = e[4]);
|
|
3123
|
-
const
|
|
3123
|
+
const m = a === void 0 ? !0 : a, c = ie(n), p = ae(t, n);
|
|
3124
3124
|
let h;
|
|
3125
3125
|
e[5] !== t || e[6] !== c || e[7] !== n || e[8] !== s ? (h = ["range", n, t, s, c], e[5] = t, e[6] = c, e[7] = n, e[8] = s, e[9] = h) : h = e[9];
|
|
3126
3126
|
let d;
|
|
@@ -3134,14 +3134,14 @@ function Kn(r) {
|
|
|
3134
3134
|
signal: f
|
|
3135
3135
|
});
|
|
3136
3136
|
}, e[10] = c, e[11] = p, e[12] = s, e[13] = d) : d = e[13];
|
|
3137
|
-
const b = !!p &&
|
|
3138
|
-
let
|
|
3139
|
-
return e[14] !== h || e[15] !== d || e[16] !== b || e[17] !== l ? (
|
|
3137
|
+
const b = !!p && m;
|
|
3138
|
+
let y;
|
|
3139
|
+
return e[14] !== h || e[15] !== d || e[16] !== b || e[17] !== l ? (y = {
|
|
3140
3140
|
queryKey: h,
|
|
3141
3141
|
queryFn: d,
|
|
3142
3142
|
enabled: b,
|
|
3143
3143
|
...l
|
|
3144
|
-
}, e[14] = h, e[15] = d, e[16] = b, e[17] = l, e[18] =
|
|
3144
|
+
}, e[14] = h, e[15] = d, e[16] = b, e[17] = l, e[18] = y) : y = e[18], se(y);
|
|
3145
3145
|
}
|
|
3146
3146
|
function Qr(r) {
|
|
3147
3147
|
const e = R(6);
|
|
@@ -3150,7 +3150,7 @@ function Qr(r) {
|
|
|
3150
3150
|
children: t,
|
|
3151
3151
|
...n
|
|
3152
3152
|
} = r, e[0] = r, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
|
|
3153
|
-
const s =
|
|
3153
|
+
const s = Zn(n);
|
|
3154
3154
|
let o;
|
|
3155
3155
|
return e[3] !== t || e[4] !== s ? (o = t(s), e[3] = t, e[4] = s, e[5] = o) : o = e[5], o;
|
|
3156
3156
|
}
|
|
@@ -3168,7 +3168,7 @@ function Yn(r) {
|
|
|
3168
3168
|
enabled: a,
|
|
3169
3169
|
...l
|
|
3170
3170
|
} = i, e[2] = i, e[3] = a, e[4] = l) : (a = e[3], l = e[4]);
|
|
3171
|
-
const
|
|
3171
|
+
const m = a === void 0 ? !0 : a, c = ie(n), p = ae(t, n);
|
|
3172
3172
|
let h;
|
|
3173
3173
|
e[5] !== t || e[6] !== c || e[7] !== n || e[8] !== s ? (h = ["scatter", n, t, s, c], e[5] = t, e[6] = c, e[7] = n, e[8] = s, e[9] = h) : h = e[9];
|
|
3174
3174
|
let d;
|
|
@@ -3182,14 +3182,14 @@ function Yn(r) {
|
|
|
3182
3182
|
signal: f
|
|
3183
3183
|
});
|
|
3184
3184
|
}, e[10] = c, e[11] = p, e[12] = s, e[13] = d) : d = e[13];
|
|
3185
|
-
const b = !!p &&
|
|
3186
|
-
let
|
|
3187
|
-
return e[14] !== h || e[15] !== d || e[16] !== b || e[17] !== l ? (
|
|
3185
|
+
const b = !!p && m;
|
|
3186
|
+
let y;
|
|
3187
|
+
return e[14] !== h || e[15] !== d || e[16] !== b || e[17] !== l ? (y = {
|
|
3188
3188
|
queryKey: h,
|
|
3189
3189
|
queryFn: d,
|
|
3190
3190
|
enabled: b,
|
|
3191
3191
|
...l
|
|
3192
|
-
}, e[14] = h, e[15] = d, e[16] = b, e[17] = l, e[18] =
|
|
3192
|
+
}, e[14] = h, e[15] = d, e[16] = b, e[17] = l, e[18] = y) : y = e[18], se(y);
|
|
3193
3193
|
}
|
|
3194
3194
|
function Wr(r) {
|
|
3195
3195
|
const e = R(6);
|
|
@@ -3216,7 +3216,7 @@ function Xn(r) {
|
|
|
3216
3216
|
enabled: a,
|
|
3217
3217
|
...l
|
|
3218
3218
|
} = i, e[2] = i, e[3] = a, e[4] = l) : (a = e[3], l = e[4]);
|
|
3219
|
-
const
|
|
3219
|
+
const m = a === void 0 ? !0 : a, c = ie(n), p = ae(t, n);
|
|
3220
3220
|
let h;
|
|
3221
3221
|
e[5] !== t || e[6] !== c || e[7] !== n || e[8] !== s ? (h = ["table", n, t, s, c], e[5] = t, e[6] = c, e[7] = n, e[8] = s, e[9] = h) : h = e[9];
|
|
3222
3222
|
let d;
|
|
@@ -3230,16 +3230,16 @@ function Xn(r) {
|
|
|
3230
3230
|
signal: f
|
|
3231
3231
|
});
|
|
3232
3232
|
}, e[10] = c, e[11] = p, e[12] = s, e[13] = d) : d = e[13];
|
|
3233
|
-
const b = !!p &&
|
|
3234
|
-
let
|
|
3235
|
-
return e[14] !== h || e[15] !== d || e[16] !== b || e[17] !== l ? (
|
|
3233
|
+
const b = !!p && m;
|
|
3234
|
+
let y;
|
|
3235
|
+
return e[14] !== h || e[15] !== d || e[16] !== b || e[17] !== l ? (y = {
|
|
3236
3236
|
queryKey: h,
|
|
3237
3237
|
queryFn: d,
|
|
3238
3238
|
enabled: b,
|
|
3239
3239
|
...l
|
|
3240
|
-
}, e[14] = h, e[15] = d, e[16] = b, e[17] = l, e[18] =
|
|
3240
|
+
}, e[14] = h, e[15] = d, e[16] = b, e[17] = l, e[18] = y) : y = e[18], se(y);
|
|
3241
3241
|
}
|
|
3242
|
-
function
|
|
3242
|
+
function Kr(r) {
|
|
3243
3243
|
const e = R(6);
|
|
3244
3244
|
let t, n;
|
|
3245
3245
|
e[0] !== r ? ({
|
|
@@ -3264,7 +3264,7 @@ function Jn(r) {
|
|
|
3264
3264
|
enabled: a,
|
|
3265
3265
|
...l
|
|
3266
3266
|
} = i, e[2] = i, e[3] = a, e[4] = l) : (a = e[3], l = e[4]);
|
|
3267
|
-
const
|
|
3267
|
+
const m = a === void 0 ? !0 : a, c = ie(n), p = ae(t, n);
|
|
3268
3268
|
let h;
|
|
3269
3269
|
e[5] !== t || e[6] !== c || e[7] !== n || e[8] !== s ? (h = ["time-series", n, t, s, c], e[5] = t, e[6] = c, e[7] = n, e[8] = s, e[9] = h) : h = e[9];
|
|
3270
3270
|
let d;
|
|
@@ -3278,16 +3278,16 @@ function Jn(r) {
|
|
|
3278
3278
|
signal: f
|
|
3279
3279
|
});
|
|
3280
3280
|
}, e[10] = c, e[11] = p, e[12] = s, e[13] = d) : d = e[13];
|
|
3281
|
-
const b = !!p &&
|
|
3282
|
-
let
|
|
3283
|
-
return e[14] !== h || e[15] !== d || e[16] !== b || e[17] !== l ? (
|
|
3281
|
+
const b = !!p && m;
|
|
3282
|
+
let y;
|
|
3283
|
+
return e[14] !== h || e[15] !== d || e[16] !== b || e[17] !== l ? (y = {
|
|
3284
3284
|
queryKey: h,
|
|
3285
3285
|
queryFn: d,
|
|
3286
3286
|
enabled: b,
|
|
3287
3287
|
...l
|
|
3288
|
-
}, e[14] = h, e[15] = d, e[16] = b, e[17] = l, e[18] =
|
|
3288
|
+
}, e[14] = h, e[15] = d, e[16] = b, e[17] = l, e[18] = y) : y = e[18], se(y);
|
|
3289
3289
|
}
|
|
3290
|
-
function
|
|
3290
|
+
function Zr(r) {
|
|
3291
3291
|
const e = R(6);
|
|
3292
3292
|
let t, n;
|
|
3293
3293
|
e[0] !== r ? ({
|
|
@@ -3311,40 +3311,40 @@ function Xr(r) {
|
|
|
3311
3311
|
const a = i;
|
|
3312
3312
|
let l;
|
|
3313
3313
|
e[2] !== o ? (l = o === void 0 ? [] : o, e[2] = o, e[3] = l) : l = e[3];
|
|
3314
|
-
const
|
|
3314
|
+
const m = l;
|
|
3315
3315
|
let c;
|
|
3316
|
-
e[4] !== t || e[5] !==
|
|
3316
|
+
e[4] !== t || e[5] !== m ? (c = /* @__PURE__ */ N(un, { values: m, children: t }), e[4] = t, e[5] = m, e[6] = c) : c = e[6];
|
|
3317
3317
|
let p;
|
|
3318
3318
|
e[7] !== a || e[8] !== c ? (p = /* @__PURE__ */ N(zs, { values: a, children: c }), e[7] = a, e[8] = c, e[9] = p) : p = e[9];
|
|
3319
3319
|
let h;
|
|
3320
3320
|
return e[10] !== n || e[11] !== p ? (h = /* @__PURE__ */ N(Bs, { values: n, children: p }), e[10] = n, e[11] = p, e[12] = h) : h = e[12], h;
|
|
3321
3321
|
}
|
|
3322
3322
|
function Jr(r, e) {
|
|
3323
|
-
const t = pe((
|
|
3324
|
-
id:
|
|
3323
|
+
const t = pe((m) => m.layers), n = pe((m) => m.setLayer), s = re(() => Ot(r.map((m) => t[m]).filter((m) => !!(m != null && m.legend))), [t, r]), o = re(() => s.map(e), [e, s]), i = Q(({
|
|
3324
|
+
id: m,
|
|
3325
3325
|
visible: c,
|
|
3326
3326
|
...p
|
|
3327
3327
|
}) => {
|
|
3328
|
-
n(
|
|
3328
|
+
n(m, {
|
|
3329
3329
|
props: {
|
|
3330
3330
|
visible: c
|
|
3331
3331
|
},
|
|
3332
3332
|
legend: p
|
|
3333
3333
|
});
|
|
3334
3334
|
}, [n]), a = Q(({
|
|
3335
|
-
id:
|
|
3335
|
+
id: m,
|
|
3336
3336
|
collapsed: c
|
|
3337
3337
|
}) => {
|
|
3338
|
-
n(
|
|
3338
|
+
n(m, {
|
|
3339
3339
|
legend: {
|
|
3340
3340
|
collapsed: c
|
|
3341
3341
|
}
|
|
3342
3342
|
});
|
|
3343
3343
|
}, [n]), l = Q(({
|
|
3344
|
-
id:
|
|
3344
|
+
id: m,
|
|
3345
3345
|
opacity: c
|
|
3346
3346
|
}) => {
|
|
3347
|
-
n(
|
|
3347
|
+
n(m, {
|
|
3348
3348
|
props: {
|
|
3349
3349
|
opacity: c
|
|
3350
3350
|
}
|
|
@@ -3360,19 +3360,19 @@ function Jr(r, e) {
|
|
|
3360
3360
|
function eo({
|
|
3361
3361
|
mapId: r
|
|
3362
3362
|
}) {
|
|
3363
|
-
const [e, t] = oe(void 0), [n, s] = oe(!1), o = x((
|
|
3363
|
+
const [e, t] = oe(void 0), [n, s] = oe(!1), o = x((y) => {
|
|
3364
3364
|
var T;
|
|
3365
|
-
return (T =
|
|
3366
|
-
}), i = x((
|
|
3365
|
+
return (T = y.maps[r]) == null ? void 0 : T.basemap;
|
|
3366
|
+
}), i = x((y) => y.getDeckInstance), a = x((y) => y.getOverlayInstance), l = x((y) => y.areLayersLoaded[r]), c = x((y) => {
|
|
3367
3367
|
var T;
|
|
3368
|
-
return (T =
|
|
3368
|
+
return (T = y.maps[r]) == null ? void 0 : T.isLoaded;
|
|
3369
3369
|
}) && l, {
|
|
3370
3370
|
type: p
|
|
3371
3371
|
} = ye[o], h = p === te.googleMaps, d = Q(async () => {
|
|
3372
|
-
const
|
|
3372
|
+
const y = i(r), T = a(r);
|
|
3373
3373
|
try {
|
|
3374
3374
|
const f = document.createElement("canvas");
|
|
3375
|
-
f.width =
|
|
3375
|
+
f.width = y.width ?? 0, f.height = y.height ?? 0;
|
|
3376
3376
|
const g = f.getContext("2d");
|
|
3377
3377
|
if (h) {
|
|
3378
3378
|
const _ = T;
|
|
@@ -3381,12 +3381,12 @@ function eo({
|
|
|
3381
3381
|
const w = await hs(_.getDiv(), {
|
|
3382
3382
|
useCORS: !0
|
|
3383
3383
|
});
|
|
3384
|
-
g == null || g.drawImage(w, 0, 0,
|
|
3384
|
+
g == null || g.drawImage(w, 0, 0, y.width, y.height);
|
|
3385
3385
|
} else {
|
|
3386
3386
|
const _ = T;
|
|
3387
|
-
_.redraw(), g == null || g.drawImage(_.getMap().getCanvas(), 0, 0,
|
|
3387
|
+
_.redraw(), g == null || g.drawImage(_.getMap().getCanvas(), 0, 0, y.width, y.height);
|
|
3388
3388
|
}
|
|
3389
|
-
|
|
3389
|
+
y == null || y.redraw("screenshot"), g == null || g.drawImage(y.getCanvas(), 0, 0, y.width, y.height);
|
|
3390
3390
|
const S = f.toDataURL();
|
|
3391
3391
|
t(S);
|
|
3392
3392
|
} catch (f) {
|
|
@@ -3504,10 +3504,10 @@ function so({
|
|
|
3504
3504
|
getColumnName: i = lr,
|
|
3505
3505
|
getFieldHtml: a = or,
|
|
3506
3506
|
getTitle: l = rr,
|
|
3507
|
-
getValue:
|
|
3507
|
+
getValue: m = ir
|
|
3508
3508
|
}) {
|
|
3509
3509
|
const c = o ? l(o) : "", h = t.reduce((d, b) => {
|
|
3510
|
-
const
|
|
3510
|
+
const y = e[b], T = r[b], f = m(T, n, y), g = s ? i(b) : "";
|
|
3511
3511
|
return d + a(g, f);
|
|
3512
3512
|
}, "");
|
|
3513
3513
|
return c + h;
|
|
@@ -3562,13 +3562,13 @@ function ro(r) {
|
|
|
3562
3562
|
} = x(s);
|
|
3563
3563
|
let l;
|
|
3564
3564
|
e[2] !== n ? (l = (g) => g.areLayersLoaded[n], e[2] = n, e[3] = l) : l = e[3];
|
|
3565
|
-
const
|
|
3565
|
+
const m = x(l), c = x(ur), p = x(cr), h = !m;
|
|
3566
3566
|
let d;
|
|
3567
3567
|
e[4] !== n || e[5] !== c ? (d = (g) => c(n, g), e[4] = n, e[5] = c, e[6] = d) : d = e[6];
|
|
3568
3568
|
const b = d;
|
|
3569
|
-
let
|
|
3570
|
-
e[7] !== p || e[8] !== n ? (
|
|
3571
|
-
const T =
|
|
3569
|
+
let y;
|
|
3570
|
+
e[7] !== p || e[8] !== n ? (y = (g) => p(n, g), e[7] = p, e[8] = n, e[9] = y) : y = e[9];
|
|
3571
|
+
const T = y;
|
|
3572
3572
|
let f;
|
|
3573
3573
|
return e[10] !== t || e[11] !== i || e[12] !== a || e[13] !== h || e[14] !== b || e[15] !== T || e[16] !== o ? (f = t({
|
|
3574
3574
|
zoom: o,
|
|
@@ -3597,9 +3597,9 @@ async function dr({
|
|
|
3597
3597
|
} = {},
|
|
3598
3598
|
queryParameters: a,
|
|
3599
3599
|
params: l,
|
|
3600
|
-
apiVersion:
|
|
3600
|
+
apiVersion: m = Ke
|
|
3601
3601
|
}) {
|
|
3602
|
-
const c = `${r}/${
|
|
3602
|
+
const c = `${r}/${m}/stats/${e}/${s}`;
|
|
3603
3603
|
return kt({
|
|
3604
3604
|
accessToken: t,
|
|
3605
3605
|
signal: o,
|
|
@@ -3624,13 +3624,13 @@ async function fr({
|
|
|
3624
3624
|
signal: i,
|
|
3625
3625
|
...a
|
|
3626
3626
|
} = {},
|
|
3627
|
-
apiVersion: l =
|
|
3627
|
+
apiVersion: l = Ke
|
|
3628
3628
|
}) {
|
|
3629
|
-
const
|
|
3629
|
+
const m = `${r}/${l}/stats/${e}/${n}/${s}`;
|
|
3630
3630
|
return kt({
|
|
3631
3631
|
accessToken: t,
|
|
3632
3632
|
signal: i,
|
|
3633
|
-
url:
|
|
3633
|
+
url: m,
|
|
3634
3634
|
method: ue.get,
|
|
3635
3635
|
params: {
|
|
3636
3636
|
...o
|
|
@@ -3649,12 +3649,12 @@ function oo(r) {
|
|
|
3649
3649
|
} = r;
|
|
3650
3650
|
let l;
|
|
3651
3651
|
e[0] !== a ? (l = a === void 0 ? {} : a, e[0] = a, e[1] = l) : l = e[1];
|
|
3652
|
-
let
|
|
3652
|
+
let m, c;
|
|
3653
3653
|
e[2] !== l ? ({
|
|
3654
|
-
enabled:
|
|
3654
|
+
enabled: m,
|
|
3655
3655
|
...c
|
|
3656
|
-
} = l, e[2] = l, e[3] =
|
|
3657
|
-
const p =
|
|
3656
|
+
} = l, e[2] = l, e[3] = m, e[4] = c) : (m = e[3], c = e[4]);
|
|
3657
|
+
const p = m === void 0 ? !0 : m;
|
|
3658
3658
|
let h;
|
|
3659
3659
|
e[5] !== n || e[6] !== t ? (h = [t, n], e[5] = n, e[6] = t, e[7] = h) : h = e[7];
|
|
3660
3660
|
let d;
|
|
@@ -3669,10 +3669,10 @@ function oo(r) {
|
|
|
3669
3669
|
return e[14] !== p || e[15] !== t || e[16] !== h || e[17] !== d || e[18] !== c ? (b = {
|
|
3670
3670
|
queryKey: h,
|
|
3671
3671
|
queryFn: d,
|
|
3672
|
-
select(
|
|
3672
|
+
select(y) {
|
|
3673
3673
|
return {
|
|
3674
|
-
...
|
|
3675
|
-
type:
|
|
3674
|
+
...y,
|
|
3675
|
+
type: y.type.toLowerCase()
|
|
3676
3676
|
};
|
|
3677
3677
|
},
|
|
3678
3678
|
enabled: !!t && p,
|
|
@@ -3724,7 +3724,7 @@ async function mr({
|
|
|
3724
3724
|
target: t,
|
|
3725
3725
|
attribute: n
|
|
3726
3726
|
}) {
|
|
3727
|
-
var a, l,
|
|
3727
|
+
var a, l, m;
|
|
3728
3728
|
const s = await ms({
|
|
3729
3729
|
connectionName: r.connectionName,
|
|
3730
3730
|
apiBaseUrl: r.apiBaseUrl,
|
|
@@ -3732,7 +3732,7 @@ async function mr({
|
|
|
3732
3732
|
clientId: r.clientId,
|
|
3733
3733
|
tableName: t
|
|
3734
3734
|
});
|
|
3735
|
-
if (!((
|
|
3735
|
+
if (!((m = (l = (a = s == null ? void 0 : s.tilestats) == null ? void 0 : a.layers) == null ? void 0 : l[0]) != null && m.attributes))
|
|
3736
3736
|
throw new Error(`${n} not found in tileset attributes`);
|
|
3737
3737
|
const i = s.tilestats.layers[0].attributes.find((c) => c.attribute === n);
|
|
3738
3738
|
if (!i)
|
|
@@ -3746,8 +3746,8 @@ export {
|
|
|
3746
3746
|
Nr as CategoriesModel,
|
|
3747
3747
|
Cs as CustomCompositeEditMode,
|
|
3748
3748
|
St as CustomEditableGeojsonLayer,
|
|
3749
|
-
|
|
3750
|
-
|
|
3749
|
+
Ks as CustomMeasureAreaMode,
|
|
3750
|
+
Zs as CustomMeasureBufferMode,
|
|
3751
3751
|
Et as CustomMeasureDistanceMode,
|
|
3752
3752
|
Je as DEFAULT_LASSO_TOOLS_COLORS,
|
|
3753
3753
|
Fs as DEFAULT_LASSO_TOOLS_LAYER_PROPS,
|
|
@@ -3772,7 +3772,7 @@ export {
|
|
|
3772
3772
|
ne as MAP_MEASURE_LAYER_ID,
|
|
3773
3773
|
Js as MEASUREMENT_TOOLS_UNITS_AREA,
|
|
3774
3774
|
it as MEASUREMENT_TOOLS_UNITS_DISTANCE,
|
|
3775
|
-
|
|
3775
|
+
Z as MEASUREMENT_TOOLS_UNITS_DISTANCE_VALUES,
|
|
3776
3776
|
Br as MapComponent,
|
|
3777
3777
|
Ie as MapMeasurementUnitAuto,
|
|
3778
3778
|
Xs as MapMeasurementUnitTurf,
|
|
@@ -3783,8 +3783,8 @@ export {
|
|
|
3783
3783
|
un as MeasurementToolsProvider,
|
|
3784
3784
|
Qr as RangeModel,
|
|
3785
3785
|
Wr as ScatterModel,
|
|
3786
|
-
|
|
3787
|
-
|
|
3786
|
+
Kr as TableModel,
|
|
3787
|
+
Zr as TimeSeriesModel,
|
|
3788
3788
|
ro as ZoomControls,
|
|
3789
3789
|
Yr as clientID,
|
|
3790
3790
|
st as convertMetersTo,
|
|
@@ -3808,7 +3808,7 @@ export {
|
|
|
3808
3808
|
Qn as useFeatures,
|
|
3809
3809
|
ie as useFilters,
|
|
3810
3810
|
Wn as useFormula,
|
|
3811
|
-
|
|
3811
|
+
Kn as useHistogram,
|
|
3812
3812
|
tr as useLassoToolsSpatialFilter,
|
|
3813
3813
|
G as useLassoToolsState,
|
|
3814
3814
|
pe as useLayerStore,
|
|
@@ -3817,7 +3817,7 @@ export {
|
|
|
3817
3817
|
eo as useMapScreenshot,
|
|
3818
3818
|
x as useMapStore,
|
|
3819
3819
|
I as useMeasurementToolsState,
|
|
3820
|
-
|
|
3820
|
+
Zn as useRange,
|
|
3821
3821
|
Yn as useScatter,
|
|
3822
3822
|
Hn as useSource,
|
|
3823
3823
|
Pe as useSourceStore,
|