@carto/ps-react-maps 3.1.0-canary.1 → 3.1.0-canary.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.
package/dist/index.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
var pt = Object.defineProperty;
|
|
2
|
-
var gt = (
|
|
3
|
-
var
|
|
2
|
+
var gt = (i, e, t) => e in i ? pt(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
|
|
3
|
+
var Y = (i, e, t) => gt(i, typeof e != "symbol" ? e + "" : e, t);
|
|
4
4
|
import { jsx as N, jsxs as Xe } from "react/jsx-runtime";
|
|
5
|
-
import { c as
|
|
6
|
-
import { useEffect as B, useImperativeHandle as xe, useMemo as
|
|
5
|
+
import { c as C } from "react/compiler-runtime";
|
|
6
|
+
import { useEffect as B, useImperativeHandle as xe, useMemo as te, useCallback as G, useState as se, createContext as Ue, useContext as qe, useRef as ve } from "react";
|
|
7
7
|
import { MapProvider as yt, Map as ht, useMap as St } from "react-map-gl/maplibre";
|
|
8
8
|
import vt from "@deck.gl/react";
|
|
9
9
|
import { useMap as Je, APIProvider as bt, Map as Mt } from "@vis.gl/react-google-maps";
|
|
10
|
-
import { GoogleMapsOverlay as
|
|
11
|
-
import { CompositeMode as
|
|
10
|
+
import { GoogleMapsOverlay as Lt } from "@deck.gl/google-maps";
|
|
11
|
+
import { CompositeMode as _t, TranslateMode as Tt, ModifyMode as Et, DrawPolygonByDraggingMode as kt, DrawCircleFromCenterMode as et, DrawRectangleMode as Pt, DrawPolygonMode as Ct, EditableGeoJsonLayer as wt, MeasureAreaMode as Ft, getPickedEditHandle as Ot, MeasureDistanceMode as Dt, ViewMode as At } from "@deck.gl-community/editable-layers";
|
|
12
12
|
import { DataFilterExtension as Rt, MaskExtension as $t } from "@deck.gl/extensions";
|
|
13
|
-
import { create as tt, createStore as Ve, useStore as
|
|
13
|
+
import { create as tt, createStore as Ve, useStore as Ie } from "zustand";
|
|
14
14
|
import { FlyToInterpolator as xt, WebMercatorViewport as Ut } from "@deck.gl/core";
|
|
15
15
|
import { EventManager as qt } from "mjolnir.js";
|
|
16
16
|
import { GeoJsonLayer as Vt } from "@deck.gl/layers";
|
|
17
17
|
import { useShallow as st } from "zustand/shallow";
|
|
18
|
-
import { area as
|
|
19
|
-
import { formatNumber as nt, formatCurrency as
|
|
18
|
+
import { area as je, centroid as It, lineIntersect as jt } from "@turf/turf";
|
|
19
|
+
import { formatNumber as nt, formatCurrency as Nt } from "@carto/ps-utils";
|
|
20
20
|
import Ht from "convert-units";
|
|
21
21
|
import Bt from "convert-units/definitions/length";
|
|
22
22
|
import { removeFilter as Gt, addFilter as zt, WidgetRasterSource as Qt, WidgetTilesetSource as Zt, TileFormat as Kt, WidgetTableSource as Wt, WidgetQuerySource as Yt, createViewportSpatialFilter as Xt } from "@carto/api-client";
|
|
23
|
-
import { useQuery as
|
|
23
|
+
import { useQuery as ne } from "@tanstack/react-query";
|
|
24
24
|
import Jt from "html2canvas";
|
|
25
25
|
import { multiPolygon as es } from "@turf/helpers";
|
|
26
26
|
const we = {
|
|
@@ -35,67 +35,67 @@ const we = {
|
|
|
35
35
|
[K.positron]: "https://basemaps.cartocdn.com/gl/positron-gl-style/style.json",
|
|
36
36
|
[K.voyager]: "https://basemaps.cartocdn.com/gl/voyager-gl-style/style.json",
|
|
37
37
|
[K.darkMatter]: "https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json"
|
|
38
|
-
},
|
|
38
|
+
}, X = {
|
|
39
39
|
maplibre: "maplibre",
|
|
40
40
|
googleMaps: "google-maps"
|
|
41
|
-
},
|
|
41
|
+
}, de = {
|
|
42
42
|
[K.positron]: {
|
|
43
43
|
url: Fe[K.positron],
|
|
44
|
-
type:
|
|
44
|
+
type: X.maplibre
|
|
45
45
|
},
|
|
46
46
|
[K.voyager]: {
|
|
47
47
|
url: Fe[K.voyager],
|
|
48
|
-
type:
|
|
48
|
+
type: X.maplibre
|
|
49
49
|
},
|
|
50
50
|
[K.darkMatter]: {
|
|
51
51
|
url: Fe[K.darkMatter],
|
|
52
|
-
type:
|
|
52
|
+
type: X.maplibre,
|
|
53
53
|
dark: !0
|
|
54
54
|
},
|
|
55
55
|
[we.roadmap]: {
|
|
56
|
-
type:
|
|
56
|
+
type: X.googleMaps
|
|
57
57
|
},
|
|
58
58
|
[we.satellite]: {
|
|
59
|
-
type:
|
|
59
|
+
type: X.googleMaps
|
|
60
60
|
},
|
|
61
61
|
[we.hybrid]: {
|
|
62
|
-
type:
|
|
62
|
+
type: X.googleMaps
|
|
63
63
|
}
|
|
64
64
|
};
|
|
65
65
|
function ts({
|
|
66
|
-
isDragging:
|
|
66
|
+
isDragging: i,
|
|
67
67
|
isHovering: e
|
|
68
68
|
}) {
|
|
69
|
-
return
|
|
69
|
+
return i ? "grabbing" : e ? "pointer" : "grab";
|
|
70
70
|
}
|
|
71
|
-
function ss(
|
|
72
|
-
return
|
|
73
|
-
html: `<div class='map-tooltip__content'>${
|
|
71
|
+
function ss(i) {
|
|
72
|
+
return i.html ? {
|
|
73
|
+
html: `<div class='map-tooltip__content'>${i.html}</div>`,
|
|
74
74
|
style: {
|
|
75
75
|
padding: "0",
|
|
76
76
|
background: "none"
|
|
77
77
|
}
|
|
78
78
|
} : null;
|
|
79
79
|
}
|
|
80
|
-
function ns(
|
|
81
|
-
const e =
|
|
82
|
-
let t, n, s, o,
|
|
83
|
-
e[0] !==
|
|
84
|
-
instanceRef:
|
|
80
|
+
function ns(i) {
|
|
81
|
+
const e = C(42);
|
|
82
|
+
let t, n, s, o, r, a, l, d, c, p, m, u;
|
|
83
|
+
e[0] !== i ? ({
|
|
84
|
+
instanceRef: r,
|
|
85
85
|
overlayRef: p,
|
|
86
86
|
controller: t,
|
|
87
87
|
id: o,
|
|
88
88
|
layers: a,
|
|
89
|
-
mapStyle:
|
|
90
|
-
parameters:
|
|
89
|
+
mapStyle: l,
|
|
90
|
+
parameters: m,
|
|
91
91
|
getCursor: n,
|
|
92
92
|
getTooltip: s,
|
|
93
93
|
onLoad: d,
|
|
94
|
-
onViewStateChange:
|
|
94
|
+
onViewStateChange: c,
|
|
95
95
|
...u
|
|
96
|
-
} =
|
|
97
|
-
let
|
|
98
|
-
e[13] !== d ? (
|
|
96
|
+
} = i, e[0] = i, e[1] = t, e[2] = n, e[3] = s, e[4] = o, e[5] = r, e[6] = a, e[7] = l, e[8] = d, e[9] = c, e[10] = p, e[11] = m, e[12] = u) : (t = e[1], n = e[2], s = e[3], o = e[4], r = e[5], a = e[6], l = e[7], d = e[8], c = e[9], p = e[10], m = e[11], u = e[12]);
|
|
97
|
+
let g, f;
|
|
98
|
+
e[13] !== d ? (g = () => {
|
|
99
99
|
d({
|
|
100
100
|
type: "load",
|
|
101
101
|
value: !1
|
|
@@ -103,95 +103,95 @@ function ns(r) {
|
|
|
103
103
|
type: "deckgl",
|
|
104
104
|
value: !1
|
|
105
105
|
});
|
|
106
|
-
},
|
|
107
|
-
let
|
|
108
|
-
e[16] !== a ? (h = a.filter(
|
|
109
|
-
const
|
|
106
|
+
}, f = [d], e[13] = d, e[14] = g, e[15] = f) : (g = e[14], f = e[15]), B(g, f);
|
|
107
|
+
let _, h;
|
|
108
|
+
e[16] !== a ? (h = a.filter(rs).map(is), e[16] = a, e[17] = h) : h = e[17], _ = h;
|
|
109
|
+
const y = _, b = r;
|
|
110
110
|
let v;
|
|
111
111
|
e[18] !== d ? (v = () => d({
|
|
112
112
|
type: "deckgl",
|
|
113
113
|
value: !0
|
|
114
114
|
}), e[18] = d, e[19] = v) : v = e[19];
|
|
115
|
-
let
|
|
116
|
-
e[20] !==
|
|
115
|
+
let S;
|
|
116
|
+
e[20] !== m ? (S = {
|
|
117
117
|
depthTest: !1,
|
|
118
|
-
...
|
|
119
|
-
}, e[20] =
|
|
120
|
-
let
|
|
121
|
-
e[22] !== p ? (
|
|
122
|
-
let
|
|
123
|
-
e[24] !== d ? (
|
|
118
|
+
...m
|
|
119
|
+
}, e[20] = m, e[21] = S) : S = e[21];
|
|
120
|
+
let M;
|
|
121
|
+
e[22] !== p ? (M = /* @__PURE__ */ N(as, { overlayRef: p }), e[22] = p, e[23] = M) : M = e[23];
|
|
122
|
+
let T;
|
|
123
|
+
e[24] !== d ? (T = () => d({
|
|
124
124
|
type: "load",
|
|
125
125
|
value: !0
|
|
126
|
-
}), e[24] = d, e[25] =
|
|
127
|
-
let
|
|
128
|
-
e[26] !==
|
|
129
|
-
let
|
|
130
|
-
return e[29] !==
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
] }) }) }), e[29] =
|
|
126
|
+
}), e[24] = d, e[25] = T) : T = e[25];
|
|
127
|
+
let D;
|
|
128
|
+
e[26] !== l || e[27] !== T ? (D = /* @__PURE__ */ N(ht, { reuseMaps: !0, mapStyle: l, onLoad: T, onRender: os }), e[26] = l, e[27] = T, e[28] = D) : D = e[28];
|
|
129
|
+
let w;
|
|
130
|
+
return e[29] !== y || e[30] !== t || e[31] !== n || e[32] !== s || e[33] !== o || e[34] !== c || e[35] !== u || e[36] !== D || e[37] !== b || e[38] !== v || e[39] !== S || e[40] !== M ? (w = /* @__PURE__ */ N(yt, { children: /* @__PURE__ */ N("div", { className: "deckgl-map", children: /* @__PURE__ */ Xe(vt, { controller: t, id: o, ref: b, layers: y, getCursor: n, getTooltip: s, onLoad: v, onViewStateChange: c, parameters: S, ...u, children: [
|
|
131
|
+
M,
|
|
132
|
+
D
|
|
133
|
+
] }) }) }), e[29] = y, e[30] = t, e[31] = n, e[32] = s, e[33] = o, e[34] = c, e[35] = u, e[36] = D, e[37] = b, e[38] = v, e[39] = S, e[40] = M, e[41] = w) : w = e[41], w;
|
|
134
134
|
}
|
|
135
135
|
function os() {
|
|
136
|
-
const
|
|
137
|
-
|
|
136
|
+
const i = document.querySelector(".maplibregl-compact-show");
|
|
137
|
+
i == null || i.classList.remove("maplibregl-compact-show");
|
|
138
138
|
}
|
|
139
|
-
function
|
|
139
|
+
function is(i) {
|
|
140
140
|
const {
|
|
141
141
|
type: e,
|
|
142
142
|
props: t
|
|
143
|
-
} =
|
|
143
|
+
} = i;
|
|
144
144
|
return new e(t);
|
|
145
145
|
}
|
|
146
|
-
function
|
|
147
|
-
return !!(
|
|
146
|
+
function rs(i) {
|
|
147
|
+
return !!(i != null && i.type);
|
|
148
148
|
}
|
|
149
|
-
function as(
|
|
150
|
-
const e =
|
|
149
|
+
function as(i) {
|
|
150
|
+
const e = C(3), {
|
|
151
151
|
overlayRef: t
|
|
152
|
-
} =
|
|
152
|
+
} = i, {
|
|
153
153
|
default: n
|
|
154
154
|
} = St();
|
|
155
155
|
let s, o;
|
|
156
156
|
return e[0] !== n ? (s = () => n, o = [n], e[0] = n, e[1] = s, e[2] = o) : (s = e[1], o = e[2]), xe(t, s, o), null;
|
|
157
157
|
}
|
|
158
|
-
const ls = (
|
|
159
|
-
const e =
|
|
158
|
+
const ls = (i) => {
|
|
159
|
+
const e = C(9);
|
|
160
160
|
let t, n;
|
|
161
|
-
e[0] === Symbol.for("react.memo_cache_sentinel") ? (n = new
|
|
161
|
+
e[0] === Symbol.for("react.memo_cache_sentinel") ? (n = new Lt({
|
|
162
162
|
interleaved: !0
|
|
163
163
|
}), e[0] = n) : n = e[0], t = n;
|
|
164
164
|
const s = t, o = Je();
|
|
165
|
-
let
|
|
166
|
-
e[1] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
167
|
-
let
|
|
168
|
-
e[3] !== o ? (
|
|
165
|
+
let r, a;
|
|
166
|
+
e[1] === Symbol.for("react.memo_cache_sentinel") ? (r = () => s, a = [s], e[1] = r, e[2] = a) : (r = e[1], a = e[2]), xe(i.instanceRef, r, a);
|
|
167
|
+
let l, d;
|
|
168
|
+
e[3] !== o ? (l = () => (s.setMap(o), () => {
|
|
169
169
|
s.finalize();
|
|
170
|
-
}), d = [s, o], e[3] = o, e[4] =
|
|
171
|
-
let
|
|
172
|
-
return e[6] !==
|
|
173
|
-
s.setProps(
|
|
174
|
-
}, p = [s,
|
|
170
|
+
}), d = [s, o], e[3] = o, e[4] = l, e[5] = d) : (l = e[4], d = e[5]), B(l, d);
|
|
171
|
+
let c, p;
|
|
172
|
+
return e[6] !== i ? (c = () => {
|
|
173
|
+
s.setProps(i);
|
|
174
|
+
}, p = [s, i], e[6] = i, e[7] = c, e[8] = p) : (c = e[7], p = e[8]), B(c, p), null;
|
|
175
175
|
};
|
|
176
176
|
function cs({
|
|
177
|
-
id:
|
|
177
|
+
id: i,
|
|
178
178
|
instanceRef: e,
|
|
179
179
|
basemap: t,
|
|
180
180
|
layers: n,
|
|
181
181
|
gmapsProps: {
|
|
182
182
|
apiKey: s,
|
|
183
183
|
APIProviderProps: o,
|
|
184
|
-
...
|
|
184
|
+
...r
|
|
185
185
|
} = {
|
|
186
186
|
apiKey: ""
|
|
187
187
|
},
|
|
188
188
|
overlayRef: a,
|
|
189
|
-
parameters:
|
|
189
|
+
parameters: l,
|
|
190
190
|
onLoad: d,
|
|
191
|
-
onViewStateChange:
|
|
191
|
+
onViewStateChange: c,
|
|
192
192
|
...p
|
|
193
193
|
}) {
|
|
194
|
-
var
|
|
194
|
+
var f, _, h, y, b;
|
|
195
195
|
B(() => {
|
|
196
196
|
d({
|
|
197
197
|
type: "load",
|
|
@@ -201,55 +201,55 @@ function cs({
|
|
|
201
201
|
value: !1
|
|
202
202
|
});
|
|
203
203
|
}, [d]);
|
|
204
|
-
const
|
|
205
|
-
type:
|
|
204
|
+
const m = te(() => n.filter((v) => !!(v != null && v.type)).map(({
|
|
205
|
+
type: v,
|
|
206
206
|
props: S
|
|
207
|
-
}) => new
|
|
207
|
+
}) => new v(S)), [n]), u = G(({
|
|
208
208
|
detail: {
|
|
209
|
-
center:
|
|
209
|
+
center: v,
|
|
210
210
|
zoom: S,
|
|
211
|
-
heading:
|
|
212
|
-
tilt:
|
|
211
|
+
heading: M,
|
|
212
|
+
tilt: T
|
|
213
213
|
}
|
|
214
214
|
}) => ({
|
|
215
|
-
latitude:
|
|
216
|
-
longitude:
|
|
215
|
+
latitude: v.lat,
|
|
216
|
+
longitude: v.lng,
|
|
217
217
|
zoom: S - 1,
|
|
218
|
-
bearing:
|
|
219
|
-
pitch:
|
|
220
|
-
}), []),
|
|
221
|
-
const S = e == null ? void 0 : e.current,
|
|
218
|
+
bearing: M,
|
|
219
|
+
pitch: T
|
|
220
|
+
}), []), g = G((v) => {
|
|
221
|
+
const S = e == null ? void 0 : e.current, M = S == null ? void 0 : S._deck, T = {
|
|
222
222
|
// @ts-expect-error accessing protected props
|
|
223
|
-
...
|
|
224
|
-
...
|
|
225
|
-
},
|
|
226
|
-
latitude:
|
|
227
|
-
longitude:
|
|
228
|
-
zoom:
|
|
229
|
-
pitch:
|
|
230
|
-
bearing:
|
|
223
|
+
...M == null ? void 0 : M.viewState,
|
|
224
|
+
...v
|
|
225
|
+
}, D = {
|
|
226
|
+
latitude: T.latitude,
|
|
227
|
+
longitude: T.longitude,
|
|
228
|
+
zoom: T.zoom,
|
|
229
|
+
pitch: T.pitch,
|
|
230
|
+
bearing: T.bearing,
|
|
231
231
|
// @ts-expect-error - `width` and `height` is not in the types
|
|
232
|
-
width:
|
|
233
|
-
height:
|
|
232
|
+
width: M == null ? void 0 : M.width,
|
|
233
|
+
height: M == null ? void 0 : M.height
|
|
234
234
|
};
|
|
235
|
-
|
|
236
|
-
viewState:
|
|
235
|
+
c == null || c({
|
|
236
|
+
viewState: D,
|
|
237
237
|
interactionState: {
|
|
238
238
|
isZooming: !0
|
|
239
239
|
}
|
|
240
240
|
});
|
|
241
|
-
}, [e,
|
|
242
|
-
return /* @__PURE__ */ N(bt, { apiKey: s, ...o, children: /* @__PURE__ */ N("div", { className: "deckgl-map", children: /* @__PURE__ */ Xe(Mt, { mapTypeId: t, disableDefaultUI: !0, gestureHandling: "greedy", ...
|
|
243
|
-
lat: ((
|
|
244
|
-
lng: ((
|
|
245
|
-
},
|
|
241
|
+
}, [e, c]);
|
|
242
|
+
return /* @__PURE__ */ N(bt, { apiKey: s, ...o, children: /* @__PURE__ */ N("div", { className: "deckgl-map", children: /* @__PURE__ */ Xe(Mt, { id: i, mapTypeId: t, disableDefaultUI: !0, gestureHandling: "greedy", ...r, center: {
|
|
243
|
+
lat: ((f = p.initialViewState) == null ? void 0 : f.latitude) ?? 0,
|
|
244
|
+
lng: ((_ = p.initialViewState) == null ? void 0 : _.longitude) ?? 0
|
|
245
|
+
}, zoom: (((h = p.initialViewState) == null ? void 0 : h.zoom) ?? 0) + 1, tilt: (y = p.initialViewState) == null ? void 0 : y.pitch, heading: (b = p.initialViewState) == null ? void 0 : b.bearing, onTilesLoaded: () => {
|
|
246
246
|
d({
|
|
247
247
|
type: "load",
|
|
248
248
|
value: !0
|
|
249
|
-
}),
|
|
250
|
-
}, onBoundsChanged: (
|
|
251
|
-
/* @__PURE__ */ N(us, { overlayRef: a }),
|
|
252
|
-
/* @__PURE__ */ N(ls, { id:
|
|
249
|
+
}), g(p.initialViewState);
|
|
250
|
+
}, onBoundsChanged: (v) => g(u(v)), onZoomChanged: (v) => g(u(v)), children: [
|
|
251
|
+
/* @__PURE__ */ N(us, { id: i, overlayRef: a }),
|
|
252
|
+
/* @__PURE__ */ N(ls, { id: i, instanceRef: e, layers: m, onLoad: () => {
|
|
253
253
|
d({
|
|
254
254
|
type: "deckgl",
|
|
255
255
|
value: !0
|
|
@@ -257,65 +257,66 @@ function cs({
|
|
|
257
257
|
}, parameters: {
|
|
258
258
|
// @ts-expect-error - `depthTest` is not in the types
|
|
259
259
|
depthTest: !1,
|
|
260
|
-
...
|
|
260
|
+
...l
|
|
261
261
|
}, ...p })
|
|
262
262
|
] }) }) });
|
|
263
263
|
}
|
|
264
|
-
function us(
|
|
265
|
-
const e =
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
264
|
+
function us(i) {
|
|
265
|
+
const e = C(3), {
|
|
266
|
+
id: t,
|
|
267
|
+
overlayRef: n
|
|
268
|
+
} = i, s = Je(t);
|
|
269
|
+
let o, r;
|
|
270
|
+
return e[0] !== s ? (o = () => s, r = [s], e[0] = s, e[1] = o, e[2] = r) : (o = e[1], r = e[2]), xe(n, o, r), null;
|
|
271
|
+
}
|
|
272
|
+
function ds(i) {
|
|
273
|
+
const e = C(46);
|
|
274
|
+
let t, n, s, o, r, a, l, d, c, p, m, u;
|
|
275
|
+
e[0] !== i ? ({
|
|
275
276
|
instanceRef: n,
|
|
276
277
|
overlayRef: o,
|
|
277
278
|
basemap: a,
|
|
278
|
-
controller:
|
|
279
|
+
controller: l,
|
|
279
280
|
id: d,
|
|
280
|
-
layers:
|
|
281
|
+
layers: c,
|
|
281
282
|
gmapsProps: t,
|
|
282
283
|
getCursor: p,
|
|
283
|
-
getTooltip:
|
|
284
|
+
getTooltip: m,
|
|
284
285
|
onLoad: s,
|
|
285
286
|
onViewStateChange: u,
|
|
286
|
-
...
|
|
287
|
-
} =
|
|
288
|
-
const
|
|
287
|
+
...r
|
|
288
|
+
} = i, e[0] = i, e[1] = t, e[2] = n, e[3] = s, e[4] = o, e[5] = r, e[6] = a, e[7] = l, e[8] = d, e[9] = c, e[10] = p, e[11] = m, e[12] = u) : (t = e[1], n = e[2], s = e[3], o = e[4], r = e[5], a = e[6], l = e[7], d = e[8], c = e[9], p = e[10], m = e[11], u = e[12]);
|
|
289
|
+
const g = a === void 0 ? K.positron : a, f = l === void 0 ? !0 : l, _ = d === void 0 ? "deck-gl-map" : d;
|
|
289
290
|
let h;
|
|
290
|
-
e[13] !==
|
|
291
|
-
const
|
|
292
|
-
let _;
|
|
293
|
-
e[15] === Symbol.for("react.memo_cache_sentinel") ? (_ = [!1, !1], e[15] = _) : _ = e[15];
|
|
294
|
-
const [E, P] = ee(_);
|
|
295
|
-
let O;
|
|
296
|
-
e[16] !== E ? (O = E.every(fs), e[16] = E, e[17] = O) : O = e[17];
|
|
297
|
-
const R = O, {
|
|
298
|
-
url: x,
|
|
299
|
-
type: j
|
|
300
|
-
} = ue[y], q = j === Y.googleMaps;
|
|
291
|
+
e[13] !== c ? (h = c === void 0 ? [] : c, e[13] = c, e[14] = h) : h = e[14];
|
|
292
|
+
const y = h, b = p === void 0 ? ts : p, v = m === void 0 ? ss : m, S = u === void 0 ? ms : u;
|
|
301
293
|
let M;
|
|
302
|
-
e[
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
const
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
294
|
+
e[15] === Symbol.for("react.memo_cache_sentinel") ? (M = [!1, !1], e[15] = M) : M = e[15];
|
|
295
|
+
const [T, D] = se(M);
|
|
296
|
+
let w;
|
|
297
|
+
e[16] !== T ? (w = T.every(fs), e[16] = T, e[17] = w) : w = e[17];
|
|
298
|
+
const x = w, {
|
|
299
|
+
url: $,
|
|
300
|
+
type: j
|
|
301
|
+
} = de[g], L = j === X.googleMaps;
|
|
302
|
+
let E;
|
|
303
|
+
e[18] === Symbol.for("react.memo_cache_sentinel") ? (E = (P) => {
|
|
304
|
+
const U = P.type === "deckgl" ? 0 : 1;
|
|
305
|
+
D((Z) => Z.map((J, W) => W === U ? P.value : J));
|
|
306
|
+
}, e[18] = E) : E = e[18];
|
|
307
|
+
const F = E;
|
|
308
|
+
let A, R;
|
|
309
|
+
if (e[19] !== x || e[20] !== s ? (A = () => {
|
|
310
|
+
s == null || s(x);
|
|
311
|
+
}, R = [x, s], e[19] = x, e[20] = s, e[21] = A, e[22] = R) : (A = e[21], R = e[22]), B(A, R), L) {
|
|
312
|
+
let P;
|
|
313
|
+
return e[23] !== g || e[24] !== f || e[25] !== b || e[26] !== v || e[27] !== t || e[28] !== _ || e[29] !== n || e[30] !== y || e[31] !== S || e[32] !== o || e[33] !== r ? (P = /* @__PURE__ */ N(cs, { instanceRef: n, overlayRef: o, controller: f, id: _, basemap: g, layers: y, gmapsProps: t, getCursor: b, getTooltip: v, onLoad: F, onViewStateChange: S, ...r }), e[23] = g, e[24] = f, e[25] = b, e[26] = v, e[27] = t, e[28] = _, e[29] = n, e[30] = y, e[31] = S, e[32] = o, e[33] = r, e[34] = P) : P = e[34], P;
|
|
314
|
+
}
|
|
315
|
+
let V;
|
|
316
|
+
return e[35] !== f || e[36] !== b || e[37] !== v || e[38] !== _ || e[39] !== n || e[40] !== y || e[41] !== $ || e[42] !== S || e[43] !== o || e[44] !== r ? (V = /* @__PURE__ */ N(ns, { instanceRef: n, overlayRef: o, controller: f, id: _, layers: y, mapStyle: $, getCursor: b, getTooltip: v, onLoad: F, onViewStateChange: S, ...r }), e[35] = f, e[36] = b, e[37] = v, e[38] = _, e[39] = n, e[40] = y, e[41] = $, e[42] = S, e[43] = o, e[44] = r, e[45] = V) : V = e[45], V;
|
|
317
|
+
}
|
|
318
|
+
function fs(i) {
|
|
319
|
+
return i;
|
|
319
320
|
}
|
|
320
321
|
function ms() {
|
|
321
322
|
return null;
|
|
@@ -328,7 +329,7 @@ const Q = {
|
|
|
328
329
|
finish: "finish",
|
|
329
330
|
addPosition: "addPosition"
|
|
330
331
|
};
|
|
331
|
-
class ps extends
|
|
332
|
+
class ps extends _t {
|
|
332
333
|
constructor() {
|
|
333
334
|
super([new Tt(), new Et()]);
|
|
334
335
|
}
|
|
@@ -340,8 +341,8 @@ class ps extends Lt {
|
|
|
340
341
|
}));
|
|
341
342
|
}
|
|
342
343
|
}
|
|
343
|
-
const
|
|
344
|
-
id:
|
|
344
|
+
const re = "lassoLayer", be = "maskLayer", gs = {
|
|
345
|
+
id: re,
|
|
345
346
|
billboard: !1,
|
|
346
347
|
editHandlePointRadiusUnits: "pixels",
|
|
347
348
|
editHandlePointRadiusMinPixels: 1,
|
|
@@ -353,7 +354,7 @@ const ae = "lassoLayer", be = "maskLayer", gs = {
|
|
|
353
354
|
lineWidthUnits: "pixels",
|
|
354
355
|
getLineWidth: 2,
|
|
355
356
|
lineWidthMinPixels: 2
|
|
356
|
-
},
|
|
357
|
+
}, Ne = {
|
|
357
358
|
editing: {
|
|
358
359
|
border: [3, 111, 226, 255],
|
|
359
360
|
fill: [3, 111, 226, 20.4],
|
|
@@ -366,8 +367,8 @@ const ae = "lassoLayer", be = "maskLayer", gs = {
|
|
|
366
367
|
}, Oe = {
|
|
367
368
|
styles: {
|
|
368
369
|
colors: {
|
|
369
|
-
editing:
|
|
370
|
-
finished:
|
|
370
|
+
editing: Ne.editing,
|
|
371
|
+
finished: Ne.finished
|
|
371
372
|
}
|
|
372
373
|
},
|
|
373
374
|
labels: {
|
|
@@ -403,9 +404,9 @@ const ae = "lassoLayer", be = "maskLayer", gs = {
|
|
|
403
404
|
value: "edit",
|
|
404
405
|
mode: ps
|
|
405
406
|
}
|
|
406
|
-
},
|
|
407
|
+
}, ce = tt((i) => ({
|
|
407
408
|
layers: {},
|
|
408
|
-
setLayer: (e, t) =>
|
|
409
|
+
setLayer: (e, t) => i((n) => {
|
|
409
410
|
var a;
|
|
410
411
|
const s = {
|
|
411
412
|
...n.layers
|
|
@@ -417,7 +418,7 @@ const ae = "lassoLayer", be = "maskLayer", gs = {
|
|
|
417
418
|
const o = s[e] ?? {
|
|
418
419
|
type: null,
|
|
419
420
|
props: {}
|
|
420
|
-
},
|
|
421
|
+
}, r = [...o.props.extensions ?? [], ...((a = t.props) == null ? void 0 : a.extensions) ?? []].reduce((l, d) => (l.some((c) => c.equals(d)) || l.push(d), l), []);
|
|
421
422
|
return s[e] = {
|
|
422
423
|
...o,
|
|
423
424
|
...t,
|
|
@@ -425,7 +426,7 @@ const ae = "lassoLayer", be = "maskLayer", gs = {
|
|
|
425
426
|
id: e,
|
|
426
427
|
...o.props,
|
|
427
428
|
...t.props,
|
|
428
|
-
extensions:
|
|
429
|
+
extensions: r
|
|
429
430
|
},
|
|
430
431
|
legend: {
|
|
431
432
|
...o.legend,
|
|
@@ -440,8 +441,8 @@ const ae = "lassoLayer", be = "maskLayer", gs = {
|
|
|
440
441
|
transitionInterpolator: new xt({
|
|
441
442
|
curve: 2
|
|
442
443
|
})
|
|
443
|
-
}, Ss = (
|
|
444
|
-
const e =
|
|
444
|
+
}, Ss = (i) => {
|
|
445
|
+
const e = i.reduce((t, n) => {
|
|
445
446
|
const {
|
|
446
447
|
id: s,
|
|
447
448
|
basemap: o
|
|
@@ -460,63 +461,63 @@ const ae = "lassoLayer", be = "maskLayer", gs = {
|
|
|
460
461
|
}, {});
|
|
461
462
|
return (t, n) => ({
|
|
462
463
|
maps: e,
|
|
463
|
-
setBasemap: (s, o) => t((
|
|
464
|
-
var
|
|
464
|
+
setBasemap: (s, o) => t((r) => {
|
|
465
|
+
var c;
|
|
465
466
|
const {
|
|
466
467
|
type: a
|
|
467
|
-
} =
|
|
468
|
-
type:
|
|
469
|
-
} =
|
|
468
|
+
} = de[r.maps[s].basemap], {
|
|
469
|
+
type: l
|
|
470
|
+
} = de[o], d = a === l && !!((c = r.maps[s]) != null && c.isLoaded);
|
|
470
471
|
return {
|
|
471
472
|
maps: {
|
|
472
|
-
...
|
|
473
|
+
...r.maps,
|
|
473
474
|
[s]: {
|
|
474
|
-
...
|
|
475
|
+
...r.maps[s],
|
|
475
476
|
isLoaded: d,
|
|
476
477
|
basemap: o
|
|
477
478
|
}
|
|
478
479
|
}
|
|
479
480
|
};
|
|
480
481
|
}),
|
|
481
|
-
setLoad: (s, o) => t((
|
|
482
|
+
setLoad: (s, o) => t((r) => ({
|
|
482
483
|
maps: {
|
|
483
|
-
...
|
|
484
|
+
...r.maps,
|
|
484
485
|
[s]: {
|
|
485
|
-
...
|
|
486
|
+
...r.maps[s],
|
|
486
487
|
isLoaded: o
|
|
487
488
|
}
|
|
488
489
|
}
|
|
489
490
|
})),
|
|
490
491
|
getOverlayInstance: (s) => {
|
|
491
|
-
var
|
|
492
|
-
return (a = (
|
|
492
|
+
var r, a;
|
|
493
|
+
return (a = (r = n().maps[s]) == null ? void 0 : r.overlayRef) == null ? void 0 : a.current;
|
|
493
494
|
},
|
|
494
495
|
getDeckInstance: (s) => {
|
|
495
|
-
var a,
|
|
496
|
-
const
|
|
496
|
+
var a, l;
|
|
497
|
+
const r = (l = (a = n().maps[s]) == null ? void 0 : a.instanceRef) == null ? void 0 : l.current;
|
|
497
498
|
return (
|
|
498
499
|
// @ts-expect-error accessing protected props
|
|
499
|
-
(
|
|
500
|
+
(r == null ? void 0 : r.deck) ?? r._deck
|
|
500
501
|
);
|
|
501
502
|
},
|
|
502
503
|
getViewState: (s) => {
|
|
503
|
-
const
|
|
504
|
-
return
|
|
504
|
+
const r = n().getDeckInstance(s);
|
|
505
|
+
return r == null ? void 0 : r.viewState;
|
|
505
506
|
},
|
|
506
507
|
getViewports: (s, o) => {
|
|
507
508
|
const a = n().getDeckInstance(s);
|
|
508
509
|
return a == null ? void 0 : a.getViewports(o);
|
|
509
510
|
},
|
|
510
|
-
getViewport: (s, o = 0,
|
|
511
|
+
getViewport: (s, o = 0, r) => {
|
|
511
512
|
var d;
|
|
512
|
-
const
|
|
513
|
-
return (d =
|
|
513
|
+
const l = n().getDeckInstance(s);
|
|
514
|
+
return (d = l == null ? void 0 : l.getViewports(r)) == null ? void 0 : d[o];
|
|
514
515
|
},
|
|
515
|
-
addLayers: (s, o) => t((
|
|
516
|
-
var
|
|
516
|
+
addLayers: (s, o) => t((r) => {
|
|
517
|
+
var c;
|
|
517
518
|
const a = {
|
|
518
|
-
...
|
|
519
|
-
},
|
|
519
|
+
...r.maps
|
|
520
|
+
}, l = ((c = a[s]) == null ? void 0 : c.layers) ?? [], d = /* @__PURE__ */ new Set([...l, ...o]);
|
|
520
521
|
return a[s] = {
|
|
521
522
|
...a[s],
|
|
522
523
|
layers: [...d]
|
|
@@ -524,21 +525,21 @@ const ae = "lassoLayer", be = "maskLayer", gs = {
|
|
|
524
525
|
maps: a
|
|
525
526
|
};
|
|
526
527
|
}),
|
|
527
|
-
removeLayers: (s, o) => t((
|
|
528
|
+
removeLayers: (s, o) => t((r) => {
|
|
528
529
|
var d;
|
|
529
530
|
const a = {
|
|
530
|
-
...
|
|
531
|
-
},
|
|
531
|
+
...r.maps
|
|
532
|
+
}, l = ((d = a[s]) == null ? void 0 : d.layers) ?? [];
|
|
532
533
|
return a[s] = {
|
|
533
534
|
...a[s],
|
|
534
|
-
layers:
|
|
535
|
+
layers: l.filter((c) => !o.includes(c))
|
|
535
536
|
}, {
|
|
536
537
|
maps: a
|
|
537
538
|
};
|
|
538
539
|
})
|
|
539
540
|
});
|
|
540
|
-
}, vs = (
|
|
541
|
-
const e =
|
|
541
|
+
}, vs = (i) => {
|
|
542
|
+
const e = i.reduce((t, n) => {
|
|
542
543
|
const {
|
|
543
544
|
id: s
|
|
544
545
|
} = n;
|
|
@@ -553,8 +554,8 @@ const ae = "lassoLayer", be = "maskLayer", gs = {
|
|
|
553
554
|
}
|
|
554
555
|
}))
|
|
555
556
|
});
|
|
556
|
-
}, bs = (
|
|
557
|
-
const e =
|
|
557
|
+
}, bs = (i) => {
|
|
558
|
+
const e = i.reduce((t, n) => (n.viewState && (t.viewStates[n.id] = n.viewState, t.viewports[n.id] = null), t), {
|
|
558
559
|
viewStates: {},
|
|
559
560
|
viewports: {}
|
|
560
561
|
});
|
|
@@ -564,61 +565,61 @@ const ae = "lassoLayer", be = "maskLayer", gs = {
|
|
|
564
565
|
var a;
|
|
565
566
|
const o = n();
|
|
566
567
|
if (!((a = o.maps[s]) != null && a.isLoaded)) return;
|
|
567
|
-
const
|
|
568
|
-
t((
|
|
568
|
+
const r = new Ut(o.viewStates[s]);
|
|
569
|
+
t((l) => ({
|
|
569
570
|
viewports: {
|
|
570
|
-
...
|
|
571
|
-
[s]:
|
|
571
|
+
...l.viewports,
|
|
572
|
+
[s]: r
|
|
572
573
|
}
|
|
573
574
|
}));
|
|
574
575
|
},
|
|
575
576
|
viewStates: e.viewStates,
|
|
576
|
-
setViewState: (s, o) => t((
|
|
577
|
+
setViewState: (s, o) => t((r) => ({
|
|
577
578
|
viewStates: {
|
|
578
|
-
...
|
|
579
|
+
...r.viewStates,
|
|
579
580
|
[s]: {
|
|
580
|
-
...
|
|
581
|
+
...r.viewStates[s],
|
|
581
582
|
...o
|
|
582
583
|
}
|
|
583
584
|
}
|
|
584
585
|
})),
|
|
585
|
-
setZoom: (s, o) => t((
|
|
586
|
+
setZoom: (s, o) => t((r) => ({
|
|
586
587
|
viewStates: {
|
|
587
|
-
...
|
|
588
|
+
...r.viewStates,
|
|
588
589
|
[s]: {
|
|
589
|
-
...
|
|
590
|
+
...r.viewStates[s],
|
|
590
591
|
zoom: o
|
|
591
592
|
}
|
|
592
593
|
}
|
|
593
594
|
})),
|
|
594
|
-
setMinZoom: (s, o) => t((
|
|
595
|
+
setMinZoom: (s, o) => t((r) => ({
|
|
595
596
|
viewStates: {
|
|
596
|
-
...
|
|
597
|
+
...r.viewStates,
|
|
597
598
|
[s]: {
|
|
598
|
-
...
|
|
599
|
+
...r.viewStates[s],
|
|
599
600
|
minZoom: o
|
|
600
601
|
}
|
|
601
602
|
}
|
|
602
603
|
})),
|
|
603
|
-
setMaxZoom: (s, o) => t((
|
|
604
|
+
setMaxZoom: (s, o) => t((r) => ({
|
|
604
605
|
viewStates: {
|
|
605
|
-
...
|
|
606
|
+
...r.viewStates,
|
|
606
607
|
[s]: {
|
|
607
|
-
...
|
|
608
|
+
...r.viewStates[s],
|
|
608
609
|
maxZoom: o
|
|
609
610
|
}
|
|
610
611
|
}
|
|
611
612
|
}))
|
|
612
613
|
});
|
|
613
|
-
}, Ms = (
|
|
614
|
+
}, Ms = (i, e) => ({
|
|
614
615
|
fitBounds: (t, n, s) => {
|
|
615
|
-
const o = e(),
|
|
616
|
-
if (!
|
|
617
|
-
const
|
|
618
|
-
...
|
|
616
|
+
const o = e(), r = o.getViewport(t);
|
|
617
|
+
if (!r) return;
|
|
618
|
+
const l = {
|
|
619
|
+
...r == null ? void 0 : r.fitBounds(n, s == null ? void 0 : s.boundsOptions),
|
|
619
620
|
...s == null ? void 0 : s.viewStateOptions
|
|
620
621
|
};
|
|
621
|
-
o.setViewState(t,
|
|
622
|
+
o.setViewState(t, l);
|
|
622
623
|
},
|
|
623
624
|
flyTo: (t, n, s = {}) => {
|
|
624
625
|
const o = e();
|
|
@@ -626,117 +627,117 @@ const ae = "lassoLayer", be = "maskLayer", gs = {
|
|
|
626
627
|
const a = {
|
|
627
628
|
...hs,
|
|
628
629
|
...s == null ? void 0 : s.viewStateOptions
|
|
629
|
-
},
|
|
630
|
+
}, l = {
|
|
630
631
|
...n,
|
|
631
632
|
...a
|
|
632
633
|
};
|
|
633
|
-
o.setViewState(t,
|
|
634
|
+
o.setViewState(t, l);
|
|
634
635
|
}
|
|
635
|
-
}),
|
|
636
|
-
...Ss(
|
|
637
|
-
...vs(
|
|
638
|
-
...bs(
|
|
636
|
+
}), Ls = (i) => Ve()((...e) => ({
|
|
637
|
+
...Ss(i)(...e),
|
|
638
|
+
...vs(i)(...e),
|
|
639
|
+
...bs(i)(...e),
|
|
639
640
|
...Ms(...e)
|
|
640
641
|
})), ot = Ue({});
|
|
641
|
-
function
|
|
642
|
-
const e =
|
|
642
|
+
function _s(i) {
|
|
643
|
+
const e = C(5), {
|
|
643
644
|
children: t,
|
|
644
645
|
values: n
|
|
645
|
-
} =
|
|
646
|
+
} = i;
|
|
646
647
|
let s;
|
|
647
|
-
e[0] !== n ? (s =
|
|
648
|
-
const [o] =
|
|
649
|
-
let
|
|
650
|
-
return e[2] !== t || e[3] !== o ? (
|
|
648
|
+
e[0] !== n ? (s = Ls(n), e[0] = n, e[1] = s) : s = e[1];
|
|
649
|
+
const [o] = se(s);
|
|
650
|
+
let r;
|
|
651
|
+
return e[2] !== t || e[3] !== o ? (r = /* @__PURE__ */ N(ot.Provider, { value: o, children: t }), e[2] = t, e[3] = o, e[4] = r) : r = e[4], r;
|
|
651
652
|
}
|
|
652
|
-
function
|
|
653
|
+
function O(i) {
|
|
653
654
|
const e = qe(ot);
|
|
654
655
|
if (!Object.keys(e).length)
|
|
655
656
|
throw new Error("Missing MapProvider in the tree");
|
|
656
|
-
return
|
|
657
|
+
return Ie(e, i);
|
|
657
658
|
}
|
|
658
|
-
function Ts(
|
|
659
|
-
return
|
|
659
|
+
function Ts(i) {
|
|
660
|
+
return i && i.__esModule && Object.prototype.hasOwnProperty.call(i, "default") ? i.default : i;
|
|
660
661
|
}
|
|
661
662
|
var Ae, He;
|
|
662
663
|
function Es() {
|
|
663
664
|
if (He) return Ae;
|
|
664
665
|
He = 1;
|
|
665
|
-
var
|
|
666
|
-
return e(
|
|
666
|
+
var i = function(y) {
|
|
667
|
+
return e(y) && !t(y);
|
|
667
668
|
};
|
|
668
669
|
function e(h) {
|
|
669
670
|
return !!h && typeof h == "object";
|
|
670
671
|
}
|
|
671
672
|
function t(h) {
|
|
672
|
-
var
|
|
673
|
-
return
|
|
673
|
+
var y = Object.prototype.toString.call(h);
|
|
674
|
+
return y === "[object RegExp]" || y === "[object Date]" || o(h);
|
|
674
675
|
}
|
|
675
676
|
var n = typeof Symbol == "function" && Symbol.for, s = n ? Symbol.for("react.element") : 60103;
|
|
676
677
|
function o(h) {
|
|
677
678
|
return h.$$typeof === s;
|
|
678
679
|
}
|
|
679
|
-
function
|
|
680
|
+
function r(h) {
|
|
680
681
|
return Array.isArray(h) ? [] : {};
|
|
681
682
|
}
|
|
682
|
-
function a(h,
|
|
683
|
-
return
|
|
683
|
+
function a(h, y) {
|
|
684
|
+
return y.clone !== !1 && y.isMergeableObject(h) ? f(r(h), h, y) : h;
|
|
684
685
|
}
|
|
685
|
-
function
|
|
686
|
-
return h.concat(
|
|
687
|
-
return a(v,
|
|
686
|
+
function l(h, y, b) {
|
|
687
|
+
return h.concat(y).map(function(v) {
|
|
688
|
+
return a(v, b);
|
|
688
689
|
});
|
|
689
690
|
}
|
|
690
|
-
function d(h,
|
|
691
|
-
if (!
|
|
692
|
-
return
|
|
693
|
-
var
|
|
694
|
-
return typeof
|
|
691
|
+
function d(h, y) {
|
|
692
|
+
if (!y.customMerge)
|
|
693
|
+
return f;
|
|
694
|
+
var b = y.customMerge(h);
|
|
695
|
+
return typeof b == "function" ? b : f;
|
|
695
696
|
}
|
|
696
|
-
function
|
|
697
|
-
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(h).filter(function(
|
|
698
|
-
return Object.propertyIsEnumerable.call(h,
|
|
697
|
+
function c(h) {
|
|
698
|
+
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(h).filter(function(y) {
|
|
699
|
+
return Object.propertyIsEnumerable.call(h, y);
|
|
699
700
|
}) : [];
|
|
700
701
|
}
|
|
701
702
|
function p(h) {
|
|
702
|
-
return Object.keys(h).concat(
|
|
703
|
+
return Object.keys(h).concat(c(h));
|
|
703
704
|
}
|
|
704
|
-
function
|
|
705
|
+
function m(h, y) {
|
|
705
706
|
try {
|
|
706
|
-
return
|
|
707
|
+
return y in h;
|
|
707
708
|
} catch {
|
|
708
709
|
return !1;
|
|
709
710
|
}
|
|
710
711
|
}
|
|
711
|
-
function u(h,
|
|
712
|
-
return
|
|
712
|
+
function u(h, y) {
|
|
713
|
+
return m(h, y) && !(Object.hasOwnProperty.call(h, y) && Object.propertyIsEnumerable.call(h, y));
|
|
713
714
|
}
|
|
714
|
-
function
|
|
715
|
+
function g(h, y, b) {
|
|
715
716
|
var v = {};
|
|
716
|
-
return
|
|
717
|
-
v[
|
|
718
|
-
}), p(
|
|
719
|
-
u(h,
|
|
717
|
+
return b.isMergeableObject(h) && p(h).forEach(function(S) {
|
|
718
|
+
v[S] = a(h[S], b);
|
|
719
|
+
}), p(y).forEach(function(S) {
|
|
720
|
+
u(h, S) || (m(h, S) && b.isMergeableObject(y[S]) ? v[S] = d(S, b)(h[S], y[S], b) : v[S] = a(y[S], b));
|
|
720
721
|
}), v;
|
|
721
722
|
}
|
|
722
|
-
function
|
|
723
|
-
|
|
724
|
-
var v = Array.isArray(
|
|
725
|
-
return
|
|
723
|
+
function f(h, y, b) {
|
|
724
|
+
b = b || {}, b.arrayMerge = b.arrayMerge || l, b.isMergeableObject = b.isMergeableObject || i, b.cloneUnlessOtherwiseSpecified = a;
|
|
725
|
+
var v = Array.isArray(y), S = Array.isArray(h), M = v === S;
|
|
726
|
+
return M ? v ? b.arrayMerge(h, y, b) : g(h, y, b) : a(y, b);
|
|
726
727
|
}
|
|
727
|
-
|
|
728
|
-
if (!Array.isArray(
|
|
728
|
+
f.all = function(y, b) {
|
|
729
|
+
if (!Array.isArray(y))
|
|
729
730
|
throw new Error("first argument should be an array");
|
|
730
|
-
return
|
|
731
|
-
return
|
|
731
|
+
return y.reduce(function(v, S) {
|
|
732
|
+
return f(v, S, b);
|
|
732
733
|
}, {});
|
|
733
734
|
};
|
|
734
|
-
var
|
|
735
|
-
return Ae =
|
|
735
|
+
var _ = f;
|
|
736
|
+
return Ae = _, Ae;
|
|
736
737
|
}
|
|
737
738
|
var ks = Es();
|
|
738
739
|
const le = /* @__PURE__ */ Ts(ks), Be = ["anyclick", "pointermove", "panstart", "panmove", "panend", "keyup"];
|
|
739
|
-
class
|
|
740
|
+
class it extends wt {
|
|
740
741
|
updateState({
|
|
741
742
|
props: e,
|
|
742
743
|
oldProps: t,
|
|
@@ -773,28 +774,26 @@ class rt extends wt {
|
|
|
773
774
|
}
|
|
774
775
|
}
|
|
775
776
|
function Ps({
|
|
776
|
-
mode:
|
|
777
|
-
|
|
778
|
-
...t
|
|
777
|
+
mode: i,
|
|
778
|
+
...e
|
|
779
779
|
}) {
|
|
780
|
-
const
|
|
780
|
+
const t = Cs(e);
|
|
781
781
|
return {
|
|
782
|
-
type:
|
|
782
|
+
type: it,
|
|
783
783
|
props: {
|
|
784
|
-
...
|
|
785
|
-
|
|
786
|
-
mode: r
|
|
784
|
+
...t,
|
|
785
|
+
mode: i
|
|
787
786
|
}
|
|
788
787
|
};
|
|
789
788
|
}
|
|
790
789
|
function Cs({
|
|
791
|
-
layerProps:
|
|
790
|
+
layerProps: i,
|
|
792
791
|
onEdit: e,
|
|
793
792
|
getLineColor: t,
|
|
794
793
|
getFillColor: n,
|
|
795
794
|
pointColor: s
|
|
796
795
|
}) {
|
|
797
|
-
const o = le(
|
|
796
|
+
const o = le(i, {
|
|
798
797
|
modeConfig: {
|
|
799
798
|
// // We force distance due to conversion is addressed at feature getText level
|
|
800
799
|
// formatTooltip: (_distance: number) => {
|
|
@@ -803,33 +802,33 @@ function Cs({
|
|
|
803
802
|
preventOverlappingLines: !0
|
|
804
803
|
},
|
|
805
804
|
onEdit: e
|
|
806
|
-
}),
|
|
805
|
+
}), r = le(gs, {
|
|
807
806
|
getTentativeLineColor: t,
|
|
808
807
|
getTentativeFillColor: n,
|
|
809
808
|
getLineColor: t,
|
|
810
809
|
getFillColor: n,
|
|
811
810
|
getEditHandlePointColor: s.fill,
|
|
812
811
|
getEditHandlePointOutlineColor: s.outline,
|
|
813
|
-
dataComparator: (
|
|
812
|
+
dataComparator: (l, d) => l.features[0] === d.features[0]
|
|
814
813
|
});
|
|
815
|
-
return le(
|
|
814
|
+
return le(r, o);
|
|
816
815
|
}
|
|
817
|
-
const ws = (
|
|
818
|
-
data:
|
|
816
|
+
const ws = (i) => Ve()((e) => ({
|
|
817
|
+
data: i.reduce((n, s) => {
|
|
819
818
|
const {
|
|
820
819
|
enabled: o = !1,
|
|
821
|
-
mapId:
|
|
820
|
+
mapId: r,
|
|
822
821
|
modeInstance: a = new De.polygon.mode(),
|
|
823
|
-
modes:
|
|
822
|
+
modes: l = De,
|
|
824
823
|
modeSelected: d = De.polygon.value,
|
|
825
|
-
values:
|
|
824
|
+
values: c = {}
|
|
826
825
|
} = s;
|
|
827
|
-
return n[
|
|
826
|
+
return n[r] = {
|
|
828
827
|
enabled: o,
|
|
829
828
|
modeInstance: a,
|
|
830
|
-
modes:
|
|
829
|
+
modes: l,
|
|
831
830
|
modeSelected: d,
|
|
832
|
-
values:
|
|
831
|
+
values: c
|
|
833
832
|
}, n;
|
|
834
833
|
}, {}),
|
|
835
834
|
setEnabled: (n, s) => {
|
|
@@ -845,21 +844,21 @@ const ws = (r) => Ve()((e) => ({
|
|
|
845
844
|
}));
|
|
846
845
|
},
|
|
847
846
|
setValue: (n, s, o) => {
|
|
848
|
-
e((
|
|
847
|
+
e((r) => {
|
|
849
848
|
const a = {
|
|
850
|
-
...
|
|
851
|
-
},
|
|
849
|
+
...r.data[n].values
|
|
850
|
+
}, l = a[s] ?? {
|
|
852
851
|
type: "mask"
|
|
853
852
|
};
|
|
854
853
|
return a[s] = {
|
|
855
|
-
...
|
|
854
|
+
...l,
|
|
856
855
|
...o,
|
|
857
856
|
id: s
|
|
858
857
|
}, o || delete a[s], {
|
|
859
858
|
data: {
|
|
860
|
-
...
|
|
859
|
+
...r.data,
|
|
861
860
|
[n]: {
|
|
862
|
-
...
|
|
861
|
+
...r.data[n],
|
|
863
862
|
values: a
|
|
864
863
|
}
|
|
865
864
|
}
|
|
@@ -867,18 +866,18 @@ const ws = (r) => Ve()((e) => ({
|
|
|
867
866
|
});
|
|
868
867
|
},
|
|
869
868
|
setVisibility: (n, s, o) => {
|
|
870
|
-
e((
|
|
869
|
+
e((r) => {
|
|
871
870
|
const a = {
|
|
872
|
-
...
|
|
873
|
-
},
|
|
874
|
-
return
|
|
871
|
+
...r.data[n].values
|
|
872
|
+
}, l = a[s] ?? {};
|
|
873
|
+
return l.properties.visible = o, {
|
|
875
874
|
data: {
|
|
876
|
-
...
|
|
875
|
+
...r.data,
|
|
877
876
|
[n]: {
|
|
878
|
-
...
|
|
877
|
+
...r.data[n],
|
|
879
878
|
values: {
|
|
880
879
|
...a,
|
|
881
|
-
[s]:
|
|
880
|
+
[s]: l
|
|
882
881
|
}
|
|
883
882
|
}
|
|
884
883
|
}
|
|
@@ -907,69 +906,69 @@ const ws = (r) => Ve()((e) => ({
|
|
|
907
906
|
}
|
|
908
907
|
}));
|
|
909
908
|
}
|
|
910
|
-
})),
|
|
911
|
-
function Fs(
|
|
912
|
-
const e =
|
|
909
|
+
})), rt = Ue({});
|
|
910
|
+
function Fs(i) {
|
|
911
|
+
const e = C(5), {
|
|
913
912
|
children: t,
|
|
914
913
|
values: n
|
|
915
|
-
} =
|
|
914
|
+
} = i;
|
|
916
915
|
let s;
|
|
917
916
|
e[0] !== n ? (s = () => ws(n), e[0] = n, e[1] = s) : s = e[1];
|
|
918
|
-
const [o] =
|
|
919
|
-
let
|
|
920
|
-
return e[2] !== t || e[3] !== o ? (
|
|
917
|
+
const [o] = se(s);
|
|
918
|
+
let r;
|
|
919
|
+
return e[2] !== t || e[3] !== o ? (r = /* @__PURE__ */ N(rt.Provider, { value: o, children: t }), e[2] = t, e[3] = o, e[4] = r) : r = e[4], r;
|
|
921
920
|
}
|
|
922
|
-
function
|
|
923
|
-
const e = qe(
|
|
921
|
+
function H(i) {
|
|
922
|
+
const e = qe(rt);
|
|
924
923
|
if (!Object.keys(e).length)
|
|
925
924
|
throw new Error("Missing LassoToolsProvider in the tree");
|
|
926
|
-
return
|
|
925
|
+
return Ie(e, i);
|
|
927
926
|
}
|
|
928
927
|
function Os({
|
|
929
|
-
mapId:
|
|
928
|
+
mapId: i,
|
|
930
929
|
children: e
|
|
931
930
|
}) {
|
|
932
|
-
const t =
|
|
933
|
-
var
|
|
934
|
-
return (
|
|
935
|
-
}), n =
|
|
936
|
-
var
|
|
937
|
-
return (
|
|
938
|
-
}), o =
|
|
939
|
-
var
|
|
940
|
-
return (
|
|
941
|
-
}),
|
|
942
|
-
var
|
|
943
|
-
return (
|
|
944
|
-
}),
|
|
931
|
+
const t = H((u) => {
|
|
932
|
+
var g;
|
|
933
|
+
return (g = u.data[i]) == null ? void 0 : g.enabled;
|
|
934
|
+
}), n = H((u) => u.setEnabled), s = H((u) => {
|
|
935
|
+
var g;
|
|
936
|
+
return (g = u.data[i]) == null ? void 0 : g.values;
|
|
937
|
+
}), o = H((u) => u.setValue), r = H((u) => u.setVisibility), a = H((u) => {
|
|
938
|
+
var g;
|
|
939
|
+
return (g = u.data[i]) == null ? void 0 : g.modeSelected;
|
|
940
|
+
}), l = H((u) => u.setModeSelected), d = H((u) => {
|
|
941
|
+
var g;
|
|
942
|
+
return (g = u.data[i]) == null ? void 0 : g.modes;
|
|
943
|
+
}), c = H((u) => u.setModeInstance);
|
|
945
944
|
B(() => {
|
|
946
945
|
const u = d[a];
|
|
947
946
|
if (u && t) {
|
|
948
|
-
const
|
|
949
|
-
|
|
947
|
+
const g = u.mode;
|
|
948
|
+
c(i, new g());
|
|
950
949
|
}
|
|
951
|
-
}, [t,
|
|
950
|
+
}, [t, i, a, d, c]);
|
|
952
951
|
const [
|
|
953
952
|
p
|
|
954
953
|
// , draw
|
|
955
|
-
] =
|
|
956
|
-
const u = (
|
|
954
|
+
] = te(() => {
|
|
955
|
+
const u = (_) => {
|
|
957
956
|
var h;
|
|
958
957
|
return {
|
|
959
|
-
id:
|
|
960
|
-
visible:
|
|
961
|
-
label: (h =
|
|
958
|
+
id: _.id,
|
|
959
|
+
visible: _.properties.visible,
|
|
960
|
+
label: (h = _.properties) == null ? void 0 : h.label
|
|
962
961
|
};
|
|
963
962
|
};
|
|
964
963
|
return [
|
|
965
|
-
Object.values(s).filter((
|
|
964
|
+
Object.values(s).filter((_) => _.type === "mask").map(u)
|
|
966
965
|
// , draw
|
|
967
966
|
];
|
|
968
|
-
}, [s]),
|
|
969
|
-
n(
|
|
970
|
-
}, [
|
|
967
|
+
}, [s]), m = G((u) => {
|
|
968
|
+
n(i, !!u), l(i, u);
|
|
969
|
+
}, [i, n, l]);
|
|
971
970
|
return e({
|
|
972
|
-
mapId:
|
|
971
|
+
mapId: i,
|
|
973
972
|
enabled: t,
|
|
974
973
|
modes: d,
|
|
975
974
|
modeSelected: a,
|
|
@@ -977,26 +976,26 @@ function Os({
|
|
|
977
976
|
mask: p
|
|
978
977
|
// draw,
|
|
979
978
|
},
|
|
980
|
-
setValue: G((u) => o(
|
|
981
|
-
setEnabled: G((u) => n(
|
|
982
|
-
setVisibility: G((u,
|
|
983
|
-
setModeSelected:
|
|
979
|
+
setValue: G((u) => o(i, u), [i, o]),
|
|
980
|
+
setEnabled: G((u) => n(i, u), [i, n]),
|
|
981
|
+
setVisibility: G((u, g) => r(i, u, g), [i, r]),
|
|
982
|
+
setModeSelected: m
|
|
984
983
|
});
|
|
985
984
|
}
|
|
986
985
|
function at({
|
|
987
|
-
values:
|
|
986
|
+
values: i
|
|
988
987
|
}) {
|
|
989
|
-
return Object.values(
|
|
988
|
+
return Object.values(i ?? {}).filter((e) => e.type === "mask");
|
|
990
989
|
}
|
|
991
990
|
const Ds = Ht({
|
|
992
991
|
length: Bt
|
|
993
992
|
});
|
|
994
|
-
function Ge(
|
|
995
|
-
return Ds(
|
|
993
|
+
function Ge(i, e) {
|
|
994
|
+
return Ds(i).from(Ze[q.meter]).to(Ze[e]);
|
|
996
995
|
}
|
|
997
996
|
const ze = 1e4;
|
|
998
997
|
function Me({
|
|
999
|
-
meters:
|
|
998
|
+
meters: i,
|
|
1000
999
|
unit: e,
|
|
1001
1000
|
locale: t,
|
|
1002
1001
|
options: {
|
|
@@ -1006,17 +1005,17 @@ function Me({
|
|
|
1006
1005
|
autoSplitNumber: ze
|
|
1007
1006
|
}
|
|
1008
1007
|
}) {
|
|
1009
|
-
const o = e === $e["m-km"],
|
|
1010
|
-
let
|
|
1008
|
+
const o = e === $e["m-km"], r = e === $e["ft-mi"], a = o || r;
|
|
1009
|
+
let l, d;
|
|
1011
1010
|
if (a) {
|
|
1012
|
-
const
|
|
1013
|
-
let p =
|
|
1014
|
-
|
|
1011
|
+
const c = i < (n ?? ze);
|
|
1012
|
+
let p = c ? q.meter : q.kilometer;
|
|
1013
|
+
l = c ? ue.meter : ue.kilometer, r && (l = c ? ue.feet : ue.mile, p = c ? q.feet : q.mile), d = Ge(i, p);
|
|
1015
1014
|
} else
|
|
1016
|
-
|
|
1015
|
+
l = ue[e], d = Ge(i, e);
|
|
1017
1016
|
return `${nt(d, t, {
|
|
1018
1017
|
style: "unit",
|
|
1019
|
-
unit:
|
|
1018
|
+
unit: l,
|
|
1020
1019
|
unitDisplay: "short",
|
|
1021
1020
|
notation: "standard",
|
|
1022
1021
|
minimumFractionDigits: 2,
|
|
@@ -1024,18 +1023,18 @@ function Me({
|
|
|
1024
1023
|
...s
|
|
1025
1024
|
})}`;
|
|
1026
1025
|
}
|
|
1027
|
-
function
|
|
1026
|
+
function co(i, {
|
|
1028
1027
|
hasDoubleClickZoom: e
|
|
1029
1028
|
}) {
|
|
1030
|
-
return typeof
|
|
1029
|
+
return typeof i == "boolean" ? {
|
|
1031
1030
|
doubleClickZoom: e
|
|
1032
1031
|
} : {
|
|
1033
|
-
...
|
|
1032
|
+
...i,
|
|
1034
1033
|
doubleClickZoom: e
|
|
1035
1034
|
};
|
|
1036
1035
|
}
|
|
1037
|
-
function lt(
|
|
1038
|
-
if (
|
|
1036
|
+
function lt(i, e, t) {
|
|
1037
|
+
if (i > 0) {
|
|
1039
1038
|
const {
|
|
1040
1039
|
formatTooltip: n,
|
|
1041
1040
|
turfOptions: s
|
|
@@ -1044,14 +1043,14 @@ function lt(r, e, t) {
|
|
|
1044
1043
|
units: "kilometers"
|
|
1045
1044
|
}
|
|
1046
1045
|
}, o = s == null ? void 0 : s.units;
|
|
1047
|
-
let
|
|
1048
|
-
n ?
|
|
1046
|
+
let r;
|
|
1047
|
+
n ? r = n(i) : r = `${parseFloat(i.toString()).toFixed(2)} ${o}`;
|
|
1049
1048
|
const {
|
|
1050
1049
|
measurementCallback: a
|
|
1051
1050
|
} = t;
|
|
1052
|
-
return a && a(
|
|
1051
|
+
return a && a(i), [{
|
|
1053
1052
|
position: e,
|
|
1054
|
-
text:
|
|
1053
|
+
text: r
|
|
1055
1054
|
}];
|
|
1056
1055
|
}
|
|
1057
1056
|
return [];
|
|
@@ -1059,10 +1058,10 @@ function lt(r, e, t) {
|
|
|
1059
1058
|
class As extends Ft {
|
|
1060
1059
|
constructor() {
|
|
1061
1060
|
super(...arguments);
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1061
|
+
Y(this, "_isMeasuringSessionFinished", !1);
|
|
1062
|
+
Y(this, "area", 0);
|
|
1063
|
+
Y(this, "tooltips", []);
|
|
1064
|
+
Y(this, "resultPolygon", {
|
|
1066
1065
|
type: "FeatureCollection",
|
|
1067
1066
|
features: []
|
|
1068
1067
|
});
|
|
@@ -1071,12 +1070,12 @@ class As extends Ft {
|
|
|
1071
1070
|
this._isMeasuringSessionFinished && (this._isMeasuringSessionFinished = !1, this.resetClickSequence(), this.area = 0);
|
|
1072
1071
|
const {
|
|
1073
1072
|
picks: s
|
|
1074
|
-
} = t, o = Ot(s),
|
|
1073
|
+
} = t, o = Ot(s), r = this.getClickSequence();
|
|
1075
1074
|
let a = !1;
|
|
1076
|
-
!o && !this.allowOverlapping(n) && (this.addClickSequence(t), a = !0), this.area =
|
|
1075
|
+
!o && !this.allowOverlapping(n) && (this.addClickSequence(t), a = !0), this.area = je({
|
|
1077
1076
|
type: "Polygon",
|
|
1078
1077
|
coordinates: [this.getClickSequence()]
|
|
1079
|
-
}), this.isFinalizedEdition(
|
|
1078
|
+
}), this.isFinalizedEdition(r, o) ? this.finalizeEdition(n) : a && n.onEdit({
|
|
1080
1079
|
// data is the same
|
|
1081
1080
|
updatedData: n.data,
|
|
1082
1081
|
editType: "addTentativePosition",
|
|
@@ -1094,8 +1093,8 @@ class As extends Ft {
|
|
|
1094
1093
|
super.handlePointerMove(t, n);
|
|
1095
1094
|
const s = this.getTentativeGuide(n);
|
|
1096
1095
|
if (s && s.geometry.type === "Polygon") {
|
|
1097
|
-
const o =
|
|
1098
|
-
this.area =
|
|
1096
|
+
const o = It(s);
|
|
1097
|
+
this.area = je(s), this.tooltips = lt(this.area, o.geometry.coordinates, n.modeConfig);
|
|
1099
1098
|
}
|
|
1100
1099
|
}
|
|
1101
1100
|
resetClickSequence() {
|
|
@@ -1121,14 +1120,14 @@ class As extends Ft {
|
|
|
1121
1120
|
const s = this.getClickSequence();
|
|
1122
1121
|
if (s.length > 2 && // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
1123
1122
|
((o = t.modeConfig) != null && o.preventOverlappingLines)) {
|
|
1124
|
-
const
|
|
1123
|
+
const r = {
|
|
1125
1124
|
type: "LineString",
|
|
1126
1125
|
coordinates: [...s, s[0]]
|
|
1127
1126
|
}, a = {
|
|
1128
1127
|
type: "LineString",
|
|
1129
1128
|
coordinates: [...s.slice(0, s.length - 1)]
|
|
1130
1129
|
};
|
|
1131
|
-
|
|
1130
|
+
jt(r, a).features.length > 0 && (n = !0);
|
|
1132
1131
|
}
|
|
1133
1132
|
return n;
|
|
1134
1133
|
}
|
|
@@ -1178,13 +1177,13 @@ class As extends Ft {
|
|
|
1178
1177
|
class Rs extends et {
|
|
1179
1178
|
constructor() {
|
|
1180
1179
|
super(...arguments);
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1180
|
+
Y(this, "_isMeasuringSessionFinished", !1);
|
|
1181
|
+
Y(this, "_currentArea", 0);
|
|
1182
|
+
Y(this, "resultPolygon", {
|
|
1184
1183
|
type: "FeatureCollection",
|
|
1185
1184
|
features: []
|
|
1186
1185
|
});
|
|
1187
|
-
|
|
1186
|
+
Y(this, "tooltips", []);
|
|
1188
1187
|
}
|
|
1189
1188
|
handleClick(t, n) {
|
|
1190
1189
|
this._isMeasuringSessionFinished && (this._isMeasuringSessionFinished = !1, this.resetClickSequence(), this._currentArea = 0), super.handleClick(t, n);
|
|
@@ -1310,8 +1309,8 @@ class ct extends Dt {
|
|
|
1310
1309
|
});
|
|
1311
1310
|
}
|
|
1312
1311
|
}
|
|
1313
|
-
const
|
|
1314
|
-
id:
|
|
1312
|
+
const ee = "mapMeasureLayer", $s = {
|
|
1313
|
+
id: ee,
|
|
1315
1314
|
pickable: !1,
|
|
1316
1315
|
billboard: !1,
|
|
1317
1316
|
editHandlePointRadiusUnits: "pixels",
|
|
@@ -1347,7 +1346,7 @@ const oe = "mapMeasureLayer", $s = {
|
|
|
1347
1346
|
point: Re.point
|
|
1348
1347
|
}
|
|
1349
1348
|
}
|
|
1350
|
-
},
|
|
1349
|
+
}, q = {
|
|
1351
1350
|
kilometer: "kilometer",
|
|
1352
1351
|
meter: "meter",
|
|
1353
1352
|
centimeter: "centimeter",
|
|
@@ -1358,27 +1357,27 @@ const oe = "mapMeasureLayer", $s = {
|
|
|
1358
1357
|
}, $e = {
|
|
1359
1358
|
"m-km": "m-km",
|
|
1360
1359
|
"ft-mi": "ft-mi",
|
|
1361
|
-
...
|
|
1360
|
+
...q
|
|
1362
1361
|
}, xs = {
|
|
1363
1362
|
meters: "meters",
|
|
1364
1363
|
kilometer: "kilometers",
|
|
1365
1364
|
mile: "miles"
|
|
1366
1365
|
}, Ze = {
|
|
1367
|
-
[
|
|
1368
|
-
[
|
|
1369
|
-
[
|
|
1370
|
-
[
|
|
1371
|
-
[
|
|
1372
|
-
[
|
|
1373
|
-
[
|
|
1374
|
-
},
|
|
1375
|
-
[
|
|
1376
|
-
[
|
|
1377
|
-
[
|
|
1378
|
-
[
|
|
1379
|
-
[
|
|
1380
|
-
[
|
|
1381
|
-
[
|
|
1366
|
+
[q.kilometer]: "km",
|
|
1367
|
+
[q.meter]: "m",
|
|
1368
|
+
[q.centimeter]: "cm",
|
|
1369
|
+
[q.milimeter]: "mm",
|
|
1370
|
+
[q.mile]: "mi",
|
|
1371
|
+
[q.yard]: "yd",
|
|
1372
|
+
[q.feet]: "ft"
|
|
1373
|
+
}, ue = {
|
|
1374
|
+
[q.kilometer]: "kilometer",
|
|
1375
|
+
[q.meter]: "meter",
|
|
1376
|
+
[q.centimeter]: "centimeter",
|
|
1377
|
+
[q.milimeter]: "millimeter",
|
|
1378
|
+
[q.mile]: "mile",
|
|
1379
|
+
[q.yard]: "yard",
|
|
1380
|
+
[q.feet]: "foot"
|
|
1382
1381
|
}, z = {
|
|
1383
1382
|
"m-km": {
|
|
1384
1383
|
value: "m-km",
|
|
@@ -1434,46 +1433,48 @@ const oe = "mapMeasureLayer", $s = {
|
|
|
1434
1433
|
buffer: Ke,
|
|
1435
1434
|
area: Us
|
|
1436
1435
|
};
|
|
1437
|
-
function ut(
|
|
1438
|
-
const e =
|
|
1439
|
-
mapId: t
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1436
|
+
function ut(i) {
|
|
1437
|
+
const e = C(12), {
|
|
1438
|
+
mapId: t,
|
|
1439
|
+
layerId: n
|
|
1440
|
+
} = i;
|
|
1441
|
+
let s;
|
|
1442
|
+
e[0] !== t ? (s = (g) => {
|
|
1443
|
+
var f;
|
|
1444
|
+
return (f = g.maps[t]) == null ? void 0 : f.basemap;
|
|
1445
|
+
}, e[0] = t, e[1] = s) : s = e[1];
|
|
1446
|
+
const o = O(s);
|
|
1447
|
+
let r;
|
|
1448
|
+
e[2] !== t ? (r = (g) => {
|
|
1449
|
+
var f;
|
|
1450
|
+
return (f = g.maps[t]) == null ? void 0 : f.isLoaded;
|
|
1451
|
+
}, e[2] = t, e[3] = r) : r = e[3];
|
|
1452
|
+
const a = O(r), l = O(js), d = ce(Is), {
|
|
1453
1453
|
type: c
|
|
1454
|
-
} =
|
|
1455
|
-
let
|
|
1456
|
-
e
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1454
|
+
} = de[o], p = c === X.googleMaps;
|
|
1455
|
+
let m, u;
|
|
1456
|
+
e[4] !== l || e[5] !== p || e[6] !== a || e[7] !== n || e[8] !== t || e[9] !== d ? (m = () => {
|
|
1457
|
+
let g = null;
|
|
1458
|
+
if (p && a) {
|
|
1459
|
+
const f = l(t);
|
|
1460
|
+
g = new qt(f.getDiv(), {});
|
|
1460
1461
|
}
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
}
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
return
|
|
1462
|
+
d(n, {
|
|
1463
|
+
props: {
|
|
1464
|
+
eventManager: g
|
|
1465
|
+
}
|
|
1466
|
+
});
|
|
1467
|
+
}, u = [l, p, a, n, t, d], e[4] = l, e[5] = p, e[6] = a, e[7] = n, e[8] = t, e[9] = d, e[10] = m, e[11] = u) : (m = e[10], u = e[11]), B(m, u);
|
|
1468
|
+
}
|
|
1469
|
+
function Is(i) {
|
|
1470
|
+
return i.setLayer;
|
|
1470
1471
|
}
|
|
1471
|
-
function js(
|
|
1472
|
-
return
|
|
1472
|
+
function js(i) {
|
|
1473
|
+
return i.getOverlayInstance;
|
|
1473
1474
|
}
|
|
1474
|
-
const Ns = [
|
|
1475
|
-
function
|
|
1476
|
-
children:
|
|
1475
|
+
const Ns = [re, be, ee];
|
|
1476
|
+
function Hs({
|
|
1477
|
+
children: i,
|
|
1477
1478
|
mapId: e,
|
|
1478
1479
|
defaultProps: {
|
|
1479
1480
|
styles: t = Oe.styles,
|
|
@@ -1485,173 +1486,173 @@ function Is({
|
|
|
1485
1486
|
layerProps: s = {},
|
|
1486
1487
|
defaultType: o = "mask"
|
|
1487
1488
|
}) {
|
|
1488
|
-
const
|
|
1489
|
-
var
|
|
1490
|
-
return (
|
|
1491
|
-
}), a =
|
|
1492
|
-
var
|
|
1493
|
-
return (
|
|
1494
|
-
}), d =
|
|
1495
|
-
var
|
|
1496
|
-
return (
|
|
1497
|
-
}), p =
|
|
1498
|
-
var
|
|
1499
|
-
return (
|
|
1500
|
-
}),
|
|
1501
|
-
var
|
|
1502
|
-
return (
|
|
1503
|
-
})),
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
})
|
|
1489
|
+
const r = H((L) => {
|
|
1490
|
+
var E;
|
|
1491
|
+
return (E = L.data[e]) == null ? void 0 : E.enabled;
|
|
1492
|
+
}), a = H((L) => L.setEnabled), l = H((L) => {
|
|
1493
|
+
var E;
|
|
1494
|
+
return (E = L.data[e]) == null ? void 0 : E.values;
|
|
1495
|
+
}), d = H((L) => L.setValue), c = H((L) => {
|
|
1496
|
+
var E;
|
|
1497
|
+
return (E = L.data[e]) == null ? void 0 : E.modeInstance;
|
|
1498
|
+
}), p = H((L) => {
|
|
1499
|
+
var E;
|
|
1500
|
+
return (E = L.data[e]) == null ? void 0 : E.modeSelected;
|
|
1501
|
+
}), m = ce((L) => L.setLayer), u = O((L) => L.addLayers), g = O((L) => L.removeLayers), f = O(st((L) => {
|
|
1502
|
+
var E;
|
|
1503
|
+
return (E = L.maps[e]) == null ? void 0 : E.layers.filter((F) => !Ns.includes(F));
|
|
1504
|
+
})), _ = O((L) => L.getDeckInstance), h = ve({});
|
|
1505
|
+
ut({
|
|
1506
|
+
mapId: e,
|
|
1507
|
+
layerId: re
|
|
1508
|
+
});
|
|
1509
|
+
const y = te(() => at({
|
|
1510
|
+
values: l
|
|
1511
|
+
}), [l]), b = te(() => ({
|
|
1508
1512
|
type: "FeatureCollection",
|
|
1509
|
-
features:
|
|
1513
|
+
features: y.map((L) => ({
|
|
1510
1514
|
type: "Feature",
|
|
1511
|
-
geometry:
|
|
1512
|
-
properties:
|
|
1513
|
-
id:
|
|
1515
|
+
geometry: L.geometry,
|
|
1516
|
+
properties: L.properties,
|
|
1517
|
+
id: L.id
|
|
1514
1518
|
}))
|
|
1515
|
-
}), [
|
|
1516
|
-
const
|
|
1517
|
-
...
|
|
1518
|
-
features:
|
|
1519
|
-
var
|
|
1520
|
-
return (
|
|
1519
|
+
}), [y]), v = te(() => y.filter((L) => L.properties.visible).map((L) => L.id), [y]), [S, M] = se(b), [T, D] = se([]), w = G(() => {
|
|
1520
|
+
const L = {
|
|
1521
|
+
...b,
|
|
1522
|
+
features: b.features.filter((E) => {
|
|
1523
|
+
var F;
|
|
1524
|
+
return (F = E.properties) == null ? void 0 : F.visible;
|
|
1521
1525
|
})
|
|
1522
1526
|
};
|
|
1523
|
-
|
|
1524
|
-
}, [
|
|
1527
|
+
M(L);
|
|
1528
|
+
}, [b]);
|
|
1525
1529
|
B(() => {
|
|
1526
|
-
|
|
1527
|
-
}, [
|
|
1528
|
-
const x = ve(
|
|
1529
|
-
B(() => (u(e, [
|
|
1530
|
-
|
|
1531
|
-
}), [u, e,
|
|
1532
|
-
const
|
|
1533
|
-
|
|
1534
|
-
}, [e,
|
|
1535
|
-
editType:
|
|
1536
|
-
updatedData:
|
|
1530
|
+
w();
|
|
1531
|
+
}, [w]);
|
|
1532
|
+
const x = ve(y.length);
|
|
1533
|
+
B(() => (u(e, [re]), () => {
|
|
1534
|
+
g(e, [re]);
|
|
1535
|
+
}), [u, e, g]);
|
|
1536
|
+
const $ = G(() => {
|
|
1537
|
+
w(), D([]), a(e, !1);
|
|
1538
|
+
}, [e, w, a]), j = G(({
|
|
1539
|
+
editType: L,
|
|
1540
|
+
updatedData: E
|
|
1537
1541
|
}) => {
|
|
1538
|
-
if (
|
|
1539
|
-
|
|
1542
|
+
if (L === Q.cancel) {
|
|
1543
|
+
$();
|
|
1540
1544
|
return;
|
|
1541
1545
|
}
|
|
1542
|
-
E
|
|
1543
|
-
var
|
|
1544
|
-
(
|
|
1545
|
-
const
|
|
1546
|
-
d(e,
|
|
1547
|
-
geometry:
|
|
1548
|
-
properties:
|
|
1546
|
+
M(E), L !== Q.updateTentativeFeature && L === Q.addFeature && (p !== "edit" && (x.current = x.current + 1), E.features.forEach((F, A) => {
|
|
1547
|
+
var V;
|
|
1548
|
+
(V = F.properties).label ?? (V.label = `${n == null ? void 0 : n.mask} ${x.current}`), F.properties.index = A, F.properties.visible = F.properties.visible ?? !0;
|
|
1549
|
+
const R = F.id ?? crypto.randomUUID();
|
|
1550
|
+
d(e, R, {
|
|
1551
|
+
geometry: F.geometry,
|
|
1552
|
+
properties: F.properties,
|
|
1549
1553
|
// visible: true,
|
|
1550
1554
|
type: o
|
|
1551
1555
|
});
|
|
1552
|
-
}),
|
|
1553
|
-
}, [o,
|
|
1556
|
+
}), $());
|
|
1557
|
+
}, [o, $, n == null ? void 0 : n.mask, e, p, d]);
|
|
1554
1558
|
return B(() => {
|
|
1555
|
-
const
|
|
1556
|
-
border:
|
|
1557
|
-
point:
|
|
1558
|
-
fill:
|
|
1559
|
+
const L = r, {
|
|
1560
|
+
border: E,
|
|
1561
|
+
point: F,
|
|
1562
|
+
fill: A
|
|
1559
1563
|
} = t.colors.editing, {
|
|
1560
|
-
border:
|
|
1561
|
-
fill:
|
|
1562
|
-
} = t.colors.finished,
|
|
1564
|
+
border: R,
|
|
1565
|
+
fill: V
|
|
1566
|
+
} = t.colors.finished, P = Ps({
|
|
1563
1567
|
layerProps: {
|
|
1564
1568
|
...s.mask,
|
|
1565
|
-
pickable:
|
|
1566
|
-
data:
|
|
1567
|
-
selectedFeatureIndexes:
|
|
1569
|
+
pickable: L,
|
|
1570
|
+
data: S,
|
|
1571
|
+
selectedFeatureIndexes: T,
|
|
1568
1572
|
updateTriggers: {
|
|
1569
|
-
getFilterValue:
|
|
1573
|
+
getFilterValue: v
|
|
1570
1574
|
},
|
|
1571
|
-
onClick: (
|
|
1572
|
-
const
|
|
1573
|
-
|
|
1575
|
+
onClick: (U) => {
|
|
1576
|
+
const Z = U;
|
|
1577
|
+
Z.isGuide || D([Z.index]);
|
|
1574
1578
|
}
|
|
1575
1579
|
},
|
|
1576
|
-
getLineColor: (
|
|
1577
|
-
getFillColor: (
|
|
1580
|
+
getLineColor: (U) => T[0] === U.properties.index ? E : R,
|
|
1581
|
+
getFillColor: (U) => T[0] === U.properties.index ? A : V,
|
|
1578
1582
|
pointColor: {
|
|
1579
|
-
fill:
|
|
1580
|
-
outline:
|
|
1583
|
+
fill: F,
|
|
1584
|
+
outline: E
|
|
1581
1585
|
},
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
mode: M ? l : new At()
|
|
1586
|
+
onEdit: j,
|
|
1587
|
+
mode: L ? c : new At()
|
|
1585
1588
|
});
|
|
1586
|
-
|
|
1587
|
-
}, [
|
|
1588
|
-
const
|
|
1589
|
+
m(re, P);
|
|
1590
|
+
}, [S, r, s.mask, v, c, j, T, m, t.colors.editing, t.colors.finished]), B(() => {
|
|
1591
|
+
const L = {
|
|
1589
1592
|
...Se,
|
|
1590
|
-
data:
|
|
1591
|
-
getFilterValue: (
|
|
1593
|
+
data: b,
|
|
1594
|
+
getFilterValue: (E) => Number(v.includes(E.id)),
|
|
1592
1595
|
updateTriggers: {
|
|
1593
|
-
getFilterValue:
|
|
1596
|
+
getFilterValue: v
|
|
1594
1597
|
}
|
|
1595
1598
|
};
|
|
1596
|
-
return
|
|
1599
|
+
return m(Se.id, {
|
|
1597
1600
|
type: Vt,
|
|
1598
|
-
props:
|
|
1601
|
+
props: L
|
|
1599
1602
|
}), u(e, [Se.id]), () => {
|
|
1600
|
-
|
|
1603
|
+
g(e, [Se.id]);
|
|
1601
1604
|
};
|
|
1602
|
-
}, [u, e,
|
|
1603
|
-
|
|
1604
|
-
var
|
|
1605
|
-
const
|
|
1606
|
-
|
|
1607
|
-
const
|
|
1608
|
-
|
|
1605
|
+
}, [u, e, b, v, g, m]), B(() => {
|
|
1606
|
+
f == null || f.forEach((L) => {
|
|
1607
|
+
var A;
|
|
1608
|
+
const E = (A = _(e)) == null ? void 0 : A.props.layers.find((R) => R.props.id === L);
|
|
1609
|
+
r && (h.current[L] = E == null ? void 0 : E.props.pickable);
|
|
1610
|
+
const F = !r && (h.current[L] ?? (E == null ? void 0 : E.props.pickable));
|
|
1611
|
+
m(L, {
|
|
1609
1612
|
props: {
|
|
1610
|
-
pickable:
|
|
1613
|
+
pickable: F,
|
|
1611
1614
|
extensions: [new $t()],
|
|
1612
|
-
maskId: !
|
|
1615
|
+
maskId: !r && v.length ? be : void 0
|
|
1613
1616
|
}
|
|
1614
1617
|
});
|
|
1615
1618
|
});
|
|
1616
|
-
}, [
|
|
1619
|
+
}, [r, _, e, f, v.length, m]), i;
|
|
1617
1620
|
}
|
|
1618
|
-
|
|
1619
|
-
function
|
|
1620
|
-
mode:
|
|
1621
|
-
|
|
1622
|
-
...t
|
|
1621
|
+
Hs.Controls = Os;
|
|
1622
|
+
function Bs({
|
|
1623
|
+
mode: i,
|
|
1624
|
+
...e
|
|
1623
1625
|
}) {
|
|
1624
|
-
const
|
|
1625
|
-
mode:
|
|
1626
|
-
...
|
|
1626
|
+
const t = Gs({
|
|
1627
|
+
mode: i,
|
|
1628
|
+
...e
|
|
1627
1629
|
});
|
|
1628
1630
|
return {
|
|
1629
|
-
type:
|
|
1631
|
+
type: it,
|
|
1630
1632
|
props: {
|
|
1631
|
-
...
|
|
1632
|
-
|
|
1633
|
-
mode: r,
|
|
1633
|
+
...t,
|
|
1634
|
+
mode: i,
|
|
1634
1635
|
data: []
|
|
1635
1636
|
}
|
|
1636
1637
|
};
|
|
1637
1638
|
}
|
|
1638
|
-
function
|
|
1639
|
-
mode:
|
|
1639
|
+
function Gs({
|
|
1640
|
+
mode: i,
|
|
1640
1641
|
layerProps: e,
|
|
1641
1642
|
locale: t,
|
|
1642
1643
|
enabled: n,
|
|
1643
1644
|
unit: s,
|
|
1644
1645
|
onEdit: o,
|
|
1645
|
-
guideColor:
|
|
1646
|
+
guideColor: r,
|
|
1646
1647
|
pointColor: a,
|
|
1647
|
-
textOptions:
|
|
1648
|
+
textOptions: l
|
|
1648
1649
|
}) {
|
|
1649
1650
|
const d = le(e, {
|
|
1650
1651
|
visible: n,
|
|
1651
1652
|
pickable: n,
|
|
1652
1653
|
modeConfig: {
|
|
1653
1654
|
// We force distance due to conversion is addressed at feature getText level
|
|
1654
|
-
formatTooltip: (
|
|
1655
|
+
formatTooltip: (m) => m,
|
|
1655
1656
|
turfOptions: {
|
|
1656
1657
|
units: xs.meters
|
|
1657
1658
|
}
|
|
@@ -1668,58 +1669,58 @@ function Bs({
|
|
|
1668
1669
|
// needed for the outlineWidth and outlineColor attributes to be effective
|
|
1669
1670
|
smoothing: 0.2
|
|
1670
1671
|
},
|
|
1671
|
-
getText: (
|
|
1672
|
+
getText: (m) => {
|
|
1672
1673
|
var u;
|
|
1673
|
-
return (u =
|
|
1674
|
-
meters:
|
|
1674
|
+
return (u = i == null ? void 0 : i.getTooltipText) == null ? void 0 : u.call(i, {
|
|
1675
|
+
meters: m.text,
|
|
1675
1676
|
locale: t,
|
|
1676
1677
|
unit: s,
|
|
1677
|
-
options:
|
|
1678
|
+
options: l
|
|
1678
1679
|
});
|
|
1679
1680
|
},
|
|
1680
1681
|
updateTriggers: {
|
|
1681
|
-
getText: [s, t,
|
|
1682
|
+
getText: [s, t, l]
|
|
1682
1683
|
}
|
|
1683
1684
|
}
|
|
1684
1685
|
}
|
|
1685
|
-
}),
|
|
1686
|
+
}), c = le($s, {
|
|
1686
1687
|
_subLayerProps: {
|
|
1687
1688
|
guides: {
|
|
1688
|
-
getLineColor:
|
|
1689
|
-
getFillColor:
|
|
1689
|
+
getLineColor: r,
|
|
1690
|
+
getFillColor: r.with(3, 20)
|
|
1690
1691
|
}
|
|
1691
1692
|
},
|
|
1692
1693
|
getEditHandlePointColor: a,
|
|
1693
|
-
getEditHandlePointOutlineColor:
|
|
1694
|
+
getEditHandlePointOutlineColor: r
|
|
1694
1695
|
});
|
|
1695
|
-
return le(
|
|
1696
|
+
return le(c, d);
|
|
1696
1697
|
}
|
|
1697
|
-
const
|
|
1698
|
-
measurements:
|
|
1698
|
+
const zs = (i) => Ve()((e) => ({
|
|
1699
|
+
measurements: i.reduce((n, s) => {
|
|
1699
1700
|
const {
|
|
1700
1701
|
mapId: o,
|
|
1701
|
-
modeSelected:
|
|
1702
|
+
modeSelected: r,
|
|
1702
1703
|
modes: a = qs,
|
|
1703
|
-
units:
|
|
1704
|
+
units: l = Vs,
|
|
1704
1705
|
distance: d = 0,
|
|
1705
|
-
finished:
|
|
1706
|
+
finished: c = !1,
|
|
1706
1707
|
locale: p = "en",
|
|
1707
|
-
positions:
|
|
1708
|
+
positions: m = [],
|
|
1708
1709
|
clearLayerOnStart: u = !1,
|
|
1709
|
-
unit:
|
|
1710
|
-
enabled:
|
|
1710
|
+
unit: g = $e["m-km"],
|
|
1711
|
+
enabled: f = !1
|
|
1711
1712
|
} = s;
|
|
1712
1713
|
return n[o] = {
|
|
1713
1714
|
modes: a,
|
|
1714
|
-
units:
|
|
1715
|
-
modeSelected:
|
|
1715
|
+
units: l,
|
|
1716
|
+
modeSelected: r,
|
|
1716
1717
|
distance: d,
|
|
1717
|
-
finished:
|
|
1718
|
+
finished: c,
|
|
1718
1719
|
locale: p,
|
|
1719
|
-
positions:
|
|
1720
|
-
unit:
|
|
1720
|
+
positions: m,
|
|
1721
|
+
unit: g,
|
|
1721
1722
|
clearLayerOnStart: u,
|
|
1722
|
-
enabled:
|
|
1723
|
+
enabled: f
|
|
1723
1724
|
}, n;
|
|
1724
1725
|
}, {}),
|
|
1725
1726
|
mode: ct,
|
|
@@ -1812,229 +1813,229 @@ const Gs = (r) => Ve()((e) => ({
|
|
|
1812
1813
|
}));
|
|
1813
1814
|
}
|
|
1814
1815
|
})), dt = Ue({});
|
|
1815
|
-
function
|
|
1816
|
-
const e =
|
|
1816
|
+
function Qs(i) {
|
|
1817
|
+
const e = C(5), {
|
|
1817
1818
|
children: t,
|
|
1818
1819
|
values: n
|
|
1819
|
-
} =
|
|
1820
|
+
} = i;
|
|
1820
1821
|
let s;
|
|
1821
|
-
e[0] !== n ? (s =
|
|
1822
|
-
const [o] =
|
|
1823
|
-
let
|
|
1824
|
-
return e[2] !== t || e[3] !== o ? (
|
|
1822
|
+
e[0] !== n ? (s = zs(n), e[0] = n, e[1] = s) : s = e[1];
|
|
1823
|
+
const [o] = se(s);
|
|
1824
|
+
let r;
|
|
1825
|
+
return e[2] !== t || e[3] !== o ? (r = /* @__PURE__ */ N(dt.Provider, { value: o, children: t }), e[2] = t, e[3] = o, e[4] = r) : r = e[4], r;
|
|
1825
1826
|
}
|
|
1826
|
-
function
|
|
1827
|
+
function I(i) {
|
|
1827
1828
|
const e = qe(dt);
|
|
1828
1829
|
if (!Object.keys(e).length)
|
|
1829
1830
|
throw new Error("Missing MeasurementToolsProvider in the tree");
|
|
1830
|
-
return
|
|
1831
|
+
return Ie(e, i);
|
|
1831
1832
|
}
|
|
1832
|
-
function ft(
|
|
1833
|
-
const e =
|
|
1833
|
+
function ft(i) {
|
|
1834
|
+
const e = C(74), {
|
|
1834
1835
|
mapId: t
|
|
1835
|
-
} =
|
|
1836
|
+
} = i;
|
|
1836
1837
|
let n;
|
|
1837
1838
|
e[0] !== t ? (n = (k) => k.measurements[t].modes, e[0] = t, e[1] = n) : n = e[1];
|
|
1838
|
-
const s =
|
|
1839
|
+
const s = I(n);
|
|
1839
1840
|
let o;
|
|
1840
1841
|
e[2] !== t ? (o = (k) => k.measurements[t].units, e[2] = t, e[3] = o) : o = e[3];
|
|
1841
|
-
const
|
|
1842
|
+
const r = I(o);
|
|
1842
1843
|
let a;
|
|
1843
1844
|
e[4] !== t ? (a = (k) => k.measurements[t].distance, e[4] = t, e[5] = a) : a = e[5];
|
|
1844
|
-
const
|
|
1845
|
-
let
|
|
1846
|
-
e[6] !== d || e[7] !== t ? (
|
|
1847
|
-
const p =
|
|
1848
|
-
let
|
|
1849
|
-
e[9] !== t ? (
|
|
1850
|
-
const u =
|
|
1851
|
-
let
|
|
1852
|
-
e[11] !== t ? (
|
|
1853
|
-
const
|
|
1845
|
+
const l = I(a), d = I(tn);
|
|
1846
|
+
let c;
|
|
1847
|
+
e[6] !== d || e[7] !== t ? (c = (k) => d(t, k), e[6] = d, e[7] = t, e[8] = c) : c = e[8];
|
|
1848
|
+
const p = c;
|
|
1849
|
+
let m;
|
|
1850
|
+
e[9] !== t ? (m = (k) => k.measurements[t].clearLayerOnStart, e[9] = t, e[10] = m) : m = e[10];
|
|
1851
|
+
const u = I(m);
|
|
1852
|
+
let g;
|
|
1853
|
+
e[11] !== t ? (g = (k) => k.measurements[t].enabled, e[11] = t, e[12] = g) : g = e[12];
|
|
1854
|
+
const f = I(g), _ = I(en);
|
|
1854
1855
|
let h;
|
|
1855
|
-
e[13] !==
|
|
1856
|
-
const
|
|
1857
|
-
let
|
|
1858
|
-
e[16] !== t ? (
|
|
1859
|
-
const v =
|
|
1860
|
-
let
|
|
1861
|
-
e[18] !==
|
|
1862
|
-
|
|
1863
|
-
}, e[18] =
|
|
1864
|
-
const
|
|
1865
|
-
let
|
|
1866
|
-
e[22] !== t ? (
|
|
1867
|
-
const
|
|
1868
|
-
let
|
|
1869
|
-
e[24] !==
|
|
1870
|
-
const j =
|
|
1871
|
-
let
|
|
1872
|
-
e[27] !== t ? (
|
|
1873
|
-
const
|
|
1874
|
-
let C;
|
|
1875
|
-
e[29] !== T || e[30] !== t ? (C = (k) => T(t, k), e[29] = T, e[30] = t, e[31] = C) : C = e[31];
|
|
1876
|
-
const w = C;
|
|
1856
|
+
e[13] !== _ || e[14] !== t ? (h = (k) => _(t, k), e[13] = _, e[14] = t, e[15] = h) : h = e[15];
|
|
1857
|
+
const y = h;
|
|
1858
|
+
let b;
|
|
1859
|
+
e[16] !== t ? (b = (k) => k.measurements[t].modeSelected, e[16] = t, e[17] = b) : b = e[17];
|
|
1860
|
+
const v = I(b), S = I(Js);
|
|
1861
|
+
let M;
|
|
1862
|
+
e[18] !== S || e[19] !== t || e[20] !== y ? (M = (k) => {
|
|
1863
|
+
y(!!k), S(t, k);
|
|
1864
|
+
}, e[18] = S, e[19] = t, e[20] = y, e[21] = M) : M = e[21];
|
|
1865
|
+
const T = M;
|
|
1866
|
+
let D;
|
|
1867
|
+
e[22] !== t ? (D = (k) => k.measurements[t].finished, e[22] = t, e[23] = D) : D = e[23];
|
|
1868
|
+
const w = I(D), x = I(Xs);
|
|
1869
|
+
let $;
|
|
1870
|
+
e[24] !== x || e[25] !== t ? ($ = (k) => x(t, k), e[24] = x, e[25] = t, e[26] = $) : $ = e[26];
|
|
1871
|
+
const j = $;
|
|
1872
|
+
let L;
|
|
1873
|
+
e[27] !== t ? (L = (k) => k.measurements[t].locale, e[27] = t, e[28] = L) : L = e[28];
|
|
1874
|
+
const E = I(L), F = I(Ys);
|
|
1877
1875
|
let A;
|
|
1878
|
-
e[
|
|
1879
|
-
const
|
|
1880
|
-
let
|
|
1881
|
-
e[
|
|
1882
|
-
const
|
|
1883
|
-
let
|
|
1884
|
-
e[
|
|
1885
|
-
const
|
|
1876
|
+
e[29] !== F || e[30] !== t ? (A = (k) => F(t, k), e[29] = F, e[30] = t, e[31] = A) : A = e[31];
|
|
1877
|
+
const R = A;
|
|
1878
|
+
let V;
|
|
1879
|
+
e[32] !== t ? (V = (k) => k.measurements[t].modeInstance, e[32] = t, e[33] = V) : V = e[33];
|
|
1880
|
+
const P = I(V), U = I(Ws);
|
|
1881
|
+
let Z;
|
|
1882
|
+
e[34] !== U || e[35] !== t ? (Z = (k) => U(t, k), e[34] = U, e[35] = t, e[36] = Z) : Z = e[36];
|
|
1883
|
+
const J = Z;
|
|
1884
|
+
let W;
|
|
1885
|
+
e[37] !== t ? (W = (k) => k.measurements[t].positions, e[37] = t, e[38] = W) : W = e[38];
|
|
1886
|
+
const Le = I(W), _e = I(Ks);
|
|
1886
1887
|
let fe;
|
|
1887
|
-
e[39] !==
|
|
1888
|
-
const
|
|
1888
|
+
e[39] !== _e || e[40] !== t ? (fe = (k) => _e(t, k), e[39] = _e, e[40] = t, e[41] = fe) : fe = e[41];
|
|
1889
|
+
const ae = fe;
|
|
1889
1890
|
let me;
|
|
1890
1891
|
e[42] !== t ? (me = (k) => k.measurements[t].unit, e[42] = t, e[43] = me) : me = e[43];
|
|
1891
|
-
const Te =
|
|
1892
|
+
const Te = I(me), Ee = I(Zs);
|
|
1892
1893
|
let pe;
|
|
1893
1894
|
e[44] !== Ee || e[45] !== t ? (pe = (k) => Ee(t, k), e[44] = Ee, e[45] = t, e[46] = pe) : pe = e[46];
|
|
1894
1895
|
const ke = pe;
|
|
1895
1896
|
let ge;
|
|
1896
|
-
e[47] !==
|
|
1897
|
-
|
|
1898
|
-
}, e[47] =
|
|
1897
|
+
e[47] !== P || e[48] !== ae ? (ge = () => {
|
|
1898
|
+
P == null || P.resetClickSequence(), ae([]);
|
|
1899
|
+
}, e[47] = P, e[48] = ae, e[49] = ge) : ge = e[49];
|
|
1899
1900
|
const Pe = ge;
|
|
1900
1901
|
let ye;
|
|
1901
|
-
e[50] !==
|
|
1902
|
-
|
|
1903
|
-
}, e[50] =
|
|
1902
|
+
e[50] !== y ? (ye = (k) => {
|
|
1903
|
+
y(k);
|
|
1904
|
+
}, e[50] = y, e[51] = ye) : ye = e[51];
|
|
1904
1905
|
const Ce = ye;
|
|
1905
1906
|
let he;
|
|
1906
|
-
return e[52] !== Pe || e[53] !== u || e[54] !==
|
|
1907
|
+
return e[52] !== Pe || e[53] !== u || e[54] !== l || e[55] !== f || e[56] !== w || e[57] !== E || e[58] !== P || e[59] !== v || e[60] !== s || e[61] !== Le || e[62] !== p || e[63] !== y || e[64] !== j || e[65] !== R || e[66] !== J || e[67] !== T || e[68] !== ae || e[69] !== ke || e[70] !== Ce || e[71] !== Te || e[72] !== r ? (he = {
|
|
1907
1908
|
modes: s,
|
|
1908
|
-
units:
|
|
1909
|
-
distance:
|
|
1909
|
+
units: r,
|
|
1910
|
+
distance: l,
|
|
1910
1911
|
clearLayerOnStart: u,
|
|
1911
1912
|
modeSelected: v,
|
|
1912
|
-
enabled:
|
|
1913
|
-
finished:
|
|
1914
|
-
locale:
|
|
1915
|
-
modeInstance:
|
|
1916
|
-
positions:
|
|
1913
|
+
enabled: f,
|
|
1914
|
+
finished: w,
|
|
1915
|
+
locale: E,
|
|
1916
|
+
modeInstance: P,
|
|
1917
|
+
positions: Le,
|
|
1917
1918
|
unit: Te,
|
|
1918
1919
|
setDistance: p,
|
|
1919
|
-
setModeSelected:
|
|
1920
|
+
setModeSelected: T,
|
|
1920
1921
|
setFinished: j,
|
|
1921
|
-
setLocale:
|
|
1922
|
-
setPositions:
|
|
1922
|
+
setLocale: R,
|
|
1923
|
+
setPositions: ae,
|
|
1923
1924
|
setUnit: ke,
|
|
1924
|
-
setEnabled:
|
|
1925
|
+
setEnabled: y,
|
|
1925
1926
|
toggleLayer: Ce,
|
|
1926
1927
|
clearLayer: Pe,
|
|
1927
|
-
setModeInstance:
|
|
1928
|
-
}, e[52] = Pe, e[53] = u, e[54] =
|
|
1928
|
+
setModeInstance: J
|
|
1929
|
+
}, e[52] = Pe, e[53] = u, e[54] = l, e[55] = f, e[56] = w, e[57] = E, e[58] = P, e[59] = v, e[60] = s, e[61] = Le, e[62] = p, e[63] = y, e[64] = j, e[65] = R, e[66] = J, e[67] = T, e[68] = ae, e[69] = ke, e[70] = Ce, e[71] = Te, e[72] = r, e[73] = he) : he = e[73], he;
|
|
1929
1930
|
}
|
|
1930
|
-
function
|
|
1931
|
-
return
|
|
1931
|
+
function Zs(i) {
|
|
1932
|
+
return i.setUnit;
|
|
1932
1933
|
}
|
|
1933
|
-
function
|
|
1934
|
-
return
|
|
1934
|
+
function Ks(i) {
|
|
1935
|
+
return i.setPositions;
|
|
1935
1936
|
}
|
|
1936
|
-
function
|
|
1937
|
-
return
|
|
1937
|
+
function Ws(i) {
|
|
1938
|
+
return i.setModeInstance;
|
|
1938
1939
|
}
|
|
1939
|
-
function
|
|
1940
|
-
return
|
|
1940
|
+
function Ys(i) {
|
|
1941
|
+
return i.setLocale;
|
|
1941
1942
|
}
|
|
1942
|
-
function
|
|
1943
|
-
return
|
|
1943
|
+
function Xs(i) {
|
|
1944
|
+
return i.setFinished;
|
|
1944
1945
|
}
|
|
1945
|
-
function
|
|
1946
|
-
return
|
|
1946
|
+
function Js(i) {
|
|
1947
|
+
return i.setModeSelected;
|
|
1947
1948
|
}
|
|
1948
|
-
function
|
|
1949
|
-
return
|
|
1949
|
+
function en(i) {
|
|
1950
|
+
return i.setEnabled;
|
|
1950
1951
|
}
|
|
1951
|
-
function
|
|
1952
|
-
return
|
|
1952
|
+
function tn(i) {
|
|
1953
|
+
return i.setDistance;
|
|
1953
1954
|
}
|
|
1954
|
-
function
|
|
1955
|
-
const e =
|
|
1955
|
+
function sn(i) {
|
|
1956
|
+
const e = C(42), {
|
|
1956
1957
|
mapId: t,
|
|
1957
1958
|
textOptions: n,
|
|
1958
1959
|
children: s
|
|
1959
|
-
} =
|
|
1960
|
+
} = i;
|
|
1960
1961
|
let o;
|
|
1961
1962
|
e[0] !== t ? (o = {
|
|
1962
1963
|
mapId: t
|
|
1963
1964
|
}, e[0] = t, e[1] = o) : o = e[1];
|
|
1964
1965
|
const {
|
|
1965
|
-
modes:
|
|
1966
|
+
modes: r,
|
|
1966
1967
|
units: a,
|
|
1967
|
-
distance:
|
|
1968
|
+
distance: l,
|
|
1968
1969
|
setDistance: d,
|
|
1969
|
-
clearLayerOnStart:
|
|
1970
|
+
clearLayerOnStart: c,
|
|
1970
1971
|
modeSelected: p,
|
|
1971
|
-
setModeSelected:
|
|
1972
|
+
setModeSelected: m,
|
|
1972
1973
|
enabled: u,
|
|
1973
|
-
setEnabled:
|
|
1974
|
-
finished:
|
|
1975
|
-
setFinished:
|
|
1974
|
+
setEnabled: g,
|
|
1975
|
+
finished: f,
|
|
1976
|
+
setFinished: _,
|
|
1976
1977
|
locale: h,
|
|
1977
|
-
setLocale:
|
|
1978
|
-
modeInstance:
|
|
1978
|
+
setLocale: y,
|
|
1979
|
+
modeInstance: b,
|
|
1979
1980
|
setModeInstance: v,
|
|
1980
|
-
positions:
|
|
1981
|
-
setPositions:
|
|
1982
|
-
unit:
|
|
1983
|
-
setUnit:
|
|
1984
|
-
clearLayer:
|
|
1985
|
-
toggleLayer:
|
|
1981
|
+
positions: S,
|
|
1982
|
+
setPositions: M,
|
|
1983
|
+
unit: T,
|
|
1984
|
+
setUnit: D,
|
|
1985
|
+
clearLayer: w,
|
|
1986
|
+
toggleLayer: x
|
|
1986
1987
|
} = ft(o);
|
|
1987
|
-
let
|
|
1988
|
-
e[2] !== p || e[3] !==
|
|
1989
|
-
if (p &&
|
|
1990
|
-
const
|
|
1991
|
-
v(new
|
|
1988
|
+
let $;
|
|
1989
|
+
e[2] !== p || e[3] !== r || e[4] !== v || e[5] !== M ? ($ = () => {
|
|
1990
|
+
if (p && r[p]) {
|
|
1991
|
+
const R = r[p].mode;
|
|
1992
|
+
v(new R());
|
|
1992
1993
|
}
|
|
1993
1994
|
return () => {
|
|
1994
|
-
|
|
1995
|
+
M([]);
|
|
1995
1996
|
};
|
|
1996
|
-
}, e[2] = p, e[3] =
|
|
1997
|
+
}, e[2] = p, e[3] = r, e[4] = v, e[5] = M, e[6] = $) : $ = e[6];
|
|
1997
1998
|
let j;
|
|
1998
|
-
e[7] !== p || e[8] !==
|
|
1999
|
-
let
|
|
2000
|
-
e[13] !==
|
|
2001
|
-
|
|
2002
|
-
}, e[13] =
|
|
2003
|
-
const
|
|
2004
|
-
let
|
|
2005
|
-
return e[18] !== s || e[19] !==
|
|
1999
|
+
e[7] !== p || e[8] !== r || e[9] !== g || e[10] !== v || e[11] !== M ? (j = [r, p, M, v, g], e[7] = p, e[8] = r, e[9] = g, e[10] = v, e[11] = M, e[12] = j) : j = e[12], B($, j);
|
|
2000
|
+
let L;
|
|
2001
|
+
e[13] !== x || e[14] !== w || e[15] !== c || e[16] !== f ? (L = (R) => {
|
|
2002
|
+
R && (c || !f) && w(), x(R);
|
|
2003
|
+
}, e[13] = x, e[14] = w, e[15] = c, e[16] = f, e[17] = L) : L = e[17];
|
|
2004
|
+
const E = L, F = !!c;
|
|
2005
|
+
let A;
|
|
2006
|
+
return e[18] !== s || e[19] !== w || e[20] !== l || e[21] !== u || e[22] !== f || e[23] !== h || e[24] !== t || e[25] !== b || e[26] !== p || e[27] !== r || e[28] !== S || e[29] !== d || e[30] !== g || e[31] !== _ || e[32] !== y || e[33] !== m || e[34] !== M || e[35] !== D || e[36] !== F || e[37] !== n || e[38] !== E || e[39] !== T || e[40] !== a ? (A = s({
|
|
2006
2007
|
mapId: t,
|
|
2007
|
-
distance:
|
|
2008
|
+
distance: l,
|
|
2008
2009
|
enabled: u,
|
|
2009
|
-
finished:
|
|
2010
|
+
finished: f,
|
|
2010
2011
|
locale: h,
|
|
2011
|
-
positions:
|
|
2012
|
-
unit:
|
|
2013
|
-
clearLayerOnStart:
|
|
2012
|
+
positions: S,
|
|
2013
|
+
unit: T,
|
|
2014
|
+
clearLayerOnStart: F,
|
|
2014
2015
|
modeSelected: p,
|
|
2015
|
-
modes:
|
|
2016
|
+
modes: r,
|
|
2016
2017
|
units: a,
|
|
2017
2018
|
value: Me({
|
|
2018
|
-
meters:
|
|
2019
|
-
unit:
|
|
2019
|
+
meters: l,
|
|
2020
|
+
unit: T,
|
|
2020
2021
|
locale: h,
|
|
2021
2022
|
options: n
|
|
2022
2023
|
}),
|
|
2023
|
-
modeInstance:
|
|
2024
|
-
setModeSelected:
|
|
2024
|
+
modeInstance: b,
|
|
2025
|
+
setModeSelected: m,
|
|
2025
2026
|
setDistance: d,
|
|
2026
|
-
setFinished:
|
|
2027
|
-
setLocale:
|
|
2028
|
-
setPositions:
|
|
2029
|
-
setUnit:
|
|
2030
|
-
setEnabled:
|
|
2031
|
-
toggleLayer:
|
|
2032
|
-
clearLayer:
|
|
2033
|
-
}), e[18] = s, e[19] =
|
|
2027
|
+
setFinished: _,
|
|
2028
|
+
setLocale: y,
|
|
2029
|
+
setPositions: M,
|
|
2030
|
+
setUnit: D,
|
|
2031
|
+
setEnabled: g,
|
|
2032
|
+
toggleLayer: E,
|
|
2033
|
+
clearLayer: w
|
|
2034
|
+
}), e[18] = s, e[19] = w, e[20] = l, e[21] = u, e[22] = f, e[23] = h, e[24] = t, e[25] = b, e[26] = p, e[27] = r, e[28] = S, e[29] = d, e[30] = g, e[31] = _, e[32] = y, e[33] = m, e[34] = M, e[35] = D, e[36] = F, e[37] = n, e[38] = E, e[39] = T, e[40] = a, e[41] = A) : A = e[41], A;
|
|
2034
2035
|
}
|
|
2035
|
-
const
|
|
2036
|
-
function
|
|
2037
|
-
children:
|
|
2036
|
+
const nn = [ee];
|
|
2037
|
+
function on({
|
|
2038
|
+
children: i,
|
|
2038
2039
|
mapId: e,
|
|
2039
2040
|
defaultProps: {
|
|
2040
2041
|
styles: t = Qe.styles
|
|
@@ -2046,179 +2047,181 @@ function nn({
|
|
|
2046
2047
|
}) {
|
|
2047
2048
|
const {
|
|
2048
2049
|
setDistance: o,
|
|
2049
|
-
clearLayerOnStart:
|
|
2050
|
+
clearLayerOnStart: r,
|
|
2050
2051
|
enabled: a,
|
|
2051
|
-
finished:
|
|
2052
|
+
finished: l,
|
|
2052
2053
|
setFinished: d,
|
|
2053
|
-
locale:
|
|
2054
|
+
locale: c,
|
|
2054
2055
|
setPositions: p,
|
|
2055
|
-
unit:
|
|
2056
|
+
unit: m,
|
|
2056
2057
|
modeInstance: u
|
|
2057
2058
|
} = ft({
|
|
2058
2059
|
mapId: e
|
|
2059
|
-
}),
|
|
2060
|
-
var
|
|
2061
|
-
return (
|
|
2062
|
-
})),
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2060
|
+
}), g = ce((S) => S.setLayer), f = O((S) => S.addLayers), _ = O((S) => S.removeLayers), h = O(st((S) => {
|
|
2061
|
+
var M;
|
|
2062
|
+
return (M = S.maps[e]) == null ? void 0 : M.layers.filter((T) => !nn.includes(T));
|
|
2063
|
+
})), y = O((S) => S.getDeckInstance), b = ve({});
|
|
2064
|
+
ut({
|
|
2065
|
+
mapId: e,
|
|
2066
|
+
layerId: ee
|
|
2067
|
+
}), B(() => (a && f(e, [ee]), () => {
|
|
2068
|
+
_(e, [ee]);
|
|
2069
|
+
}), [f, r, e, _, a]), B(() => {
|
|
2070
|
+
h == null || h.forEach((S) => {
|
|
2071
|
+
var D;
|
|
2072
|
+
const M = (D = y(e)) == null ? void 0 : D.props.layers.find((w) => w.props.id === S);
|
|
2073
|
+
a && (b.current[S] = M == null ? void 0 : M.props.pickable);
|
|
2074
|
+
const T = !a && (b.current[S] ?? (M == null ? void 0 : M.props.pickable));
|
|
2075
|
+
g(S, {
|
|
2074
2076
|
props: {
|
|
2075
|
-
pickable:
|
|
2077
|
+
pickable: T
|
|
2076
2078
|
}
|
|
2077
2079
|
});
|
|
2078
2080
|
});
|
|
2079
|
-
}, [a,
|
|
2080
|
-
const
|
|
2081
|
-
editType:
|
|
2082
|
-
editContext:
|
|
2081
|
+
}, [a, y, e, h, g]);
|
|
2082
|
+
const v = G(({
|
|
2083
|
+
editType: S,
|
|
2084
|
+
editContext: M
|
|
2083
2085
|
}) => {
|
|
2084
|
-
if (
|
|
2086
|
+
if (S === Q.cancel) {
|
|
2085
2087
|
u.resetClickSequence();
|
|
2086
2088
|
return;
|
|
2087
2089
|
}
|
|
2088
|
-
|
|
2089
|
-
const
|
|
2090
|
-
|
|
2090
|
+
S === Q.addPosition && o(M.distance), d(!!M.finished);
|
|
2091
|
+
const T = M.positions;
|
|
2092
|
+
T != null && T.length && p(T);
|
|
2091
2093
|
}, [u, o, d, p]);
|
|
2092
2094
|
return B(() => {
|
|
2093
|
-
const
|
|
2095
|
+
const S = l ? t.colors.finished : t.colors.editing, M = l ? t.colors.finished : t.colors.point, T = Bs({
|
|
2094
2096
|
layerProps: {
|
|
2095
2097
|
...n,
|
|
2096
|
-
pickable: n.pickable ?? !
|
|
2098
|
+
pickable: n.pickable ?? !l
|
|
2097
2099
|
},
|
|
2098
2100
|
enabled: a,
|
|
2099
|
-
guideColor:
|
|
2100
|
-
pointColor:
|
|
2101
|
-
locale:
|
|
2102
|
-
onEdit:
|
|
2103
|
-
unit:
|
|
2101
|
+
guideColor: S,
|
|
2102
|
+
pointColor: M,
|
|
2103
|
+
locale: c,
|
|
2104
|
+
onEdit: v,
|
|
2105
|
+
unit: m,
|
|
2104
2106
|
mode: u,
|
|
2105
|
-
textOptions: s
|
|
2106
|
-
eventManager: v
|
|
2107
|
+
textOptions: s
|
|
2107
2108
|
});
|
|
2108
|
-
|
|
2109
|
-
}, [
|
|
2109
|
+
g(ee, T);
|
|
2110
|
+
}, [l, u, n, c, v, g, t.colors.editing, t.colors.finished, t.colors.point, s, m, a]), i;
|
|
2110
2111
|
}
|
|
2111
|
-
|
|
2112
|
-
function
|
|
2113
|
-
const e =
|
|
2112
|
+
on.Controls = sn;
|
|
2113
|
+
function rn(i) {
|
|
2114
|
+
const e = C(7), {
|
|
2114
2115
|
mapId: t
|
|
2115
|
-
} =
|
|
2116
|
+
} = i;
|
|
2116
2117
|
let n;
|
|
2117
2118
|
e[0] !== t ? (n = (d) => d.maps[t], e[0] = t, e[1] = n) : n = e[1];
|
|
2118
2119
|
const {
|
|
2119
2120
|
layers: s
|
|
2120
|
-
} =
|
|
2121
|
-
let
|
|
2121
|
+
} = O(n), o = ce(ln);
|
|
2122
|
+
let r, a;
|
|
2122
2123
|
if (e[2] !== o || e[3] !== s) {
|
|
2123
2124
|
let d;
|
|
2124
|
-
e[5] !== o ? (d = (
|
|
2125
|
+
e[5] !== o ? (d = (c) => o[c], e[5] = o, e[6] = d) : d = e[6], a = s.map(d).filter(an), e[2] = o, e[3] = s, e[4] = a;
|
|
2125
2126
|
} else
|
|
2126
2127
|
a = e[4];
|
|
2127
|
-
return
|
|
2128
|
+
return r = a, r;
|
|
2128
2129
|
}
|
|
2129
|
-
function
|
|
2130
|
-
return !!
|
|
2130
|
+
function an(i) {
|
|
2131
|
+
return !!i;
|
|
2131
2132
|
}
|
|
2132
|
-
function
|
|
2133
|
-
return
|
|
2133
|
+
function ln(i) {
|
|
2134
|
+
return i.layers;
|
|
2134
2135
|
}
|
|
2135
|
-
const We = [be,
|
|
2136
|
-
function mt(
|
|
2137
|
-
const e =
|
|
2136
|
+
const We = [be, re, ee];
|
|
2137
|
+
function mt(i) {
|
|
2138
|
+
const e = i.filter((n) => !We.includes(n.props.id)).sort((n, s) => (n.order ?? 1 / 0) - (s.order ?? 1 / 0)), t = We.map((n) => i.find((s) => s.props.id === n)).filter((n) => !!n);
|
|
2138
2139
|
return [...e, ...t];
|
|
2139
2140
|
}
|
|
2140
|
-
const
|
|
2141
|
-
function
|
|
2142
|
-
const e =
|
|
2141
|
+
const cn = 200;
|
|
2142
|
+
function uo(i) {
|
|
2143
|
+
const e = C(48);
|
|
2143
2144
|
let t, n, s, o;
|
|
2144
|
-
e[0] !==
|
|
2145
|
+
e[0] !== i ? ({
|
|
2145
2146
|
id: t,
|
|
2146
2147
|
onLoad: n,
|
|
2147
2148
|
onViewStateChange: s,
|
|
2148
2149
|
...o
|
|
2149
|
-
} =
|
|
2150
|
-
let
|
|
2151
|
-
e[5] !== t ? (
|
|
2152
|
-
const
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2150
|
+
} = i, e[0] = i, e[1] = t, e[2] = n, e[3] = s, e[4] = o) : (t = e[1], n = e[2], s = e[3], o = e[4]);
|
|
2151
|
+
let r;
|
|
2152
|
+
e[5] !== t ? (r = (P) => P.maps[t].basemap, e[5] = t, e[6] = r) : r = e[6];
|
|
2153
|
+
const a = O(r);
|
|
2154
|
+
let l;
|
|
2155
|
+
e[7] !== t ? (l = (P) => P.maps[t].instanceRef, e[7] = t, e[8] = l) : l = e[8];
|
|
2156
|
+
const d = O(l);
|
|
2157
|
+
let c;
|
|
2158
|
+
e[9] !== t ? (c = (P) => P.maps[t].overlayRef, e[9] = t, e[10] = c) : c = e[10];
|
|
2159
|
+
const p = O(c), m = ve(null);
|
|
2160
|
+
let u;
|
|
2161
|
+
e[11] !== t ? (u = (P) => P.viewStates[t], e[11] = t, e[12] = u) : u = e[12];
|
|
2162
|
+
const g = O(u), f = O(gn), _ = O(pn), h = O(mn), y = O(fn), b = O(dn);
|
|
2163
|
+
let v;
|
|
2164
|
+
e[13] !== t ? (v = {
|
|
2162
2165
|
mapId: t
|
|
2163
|
-
}, e[
|
|
2164
|
-
const S =
|
|
2165
|
-
let
|
|
2166
|
-
e[
|
|
2167
|
-
const
|
|
2168
|
-
let
|
|
2169
|
-
e[
|
|
2170
|
-
const
|
|
2171
|
-
if (
|
|
2172
|
-
|
|
2173
|
-
},
|
|
2174
|
-
s(
|
|
2166
|
+
}, e[13] = t, e[14] = v) : v = e[14];
|
|
2167
|
+
const S = rn(v);
|
|
2168
|
+
let M, T;
|
|
2169
|
+
e[15] !== S ? (T = mt(S), e[15] = S, e[16] = T) : T = e[16], M = T;
|
|
2170
|
+
const D = M;
|
|
2171
|
+
let w;
|
|
2172
|
+
e[17] !== t || e[18] !== s || e[19] !== _ || e[20] !== b ? (w = (P) => {
|
|
2173
|
+
const U = _;
|
|
2174
|
+
if (P.interactionState.isZooming && (m.current && clearInterval(m.current), m.current = setTimeout(() => {
|
|
2175
|
+
b(t);
|
|
2176
|
+
}, cn)), s) {
|
|
2177
|
+
s(P, U);
|
|
2175
2178
|
return;
|
|
2176
2179
|
}
|
|
2177
|
-
|
|
2178
|
-
}, e[
|
|
2179
|
-
const
|
|
2180
|
-
let
|
|
2181
|
-
e[
|
|
2182
|
-
|
|
2183
|
-
}, e[
|
|
2184
|
-
const
|
|
2185
|
-
let
|
|
2186
|
-
e[
|
|
2187
|
-
var
|
|
2188
|
-
const
|
|
2189
|
-
|
|
2190
|
-
}, e[
|
|
2191
|
-
const
|
|
2192
|
-
let
|
|
2193
|
-
e[
|
|
2194
|
-
const
|
|
2195
|
-
|
|
2196
|
-
}, e[
|
|
2197
|
-
const
|
|
2198
|
-
let
|
|
2199
|
-
return e[
|
|
2180
|
+
U(t, P.viewState);
|
|
2181
|
+
}, e[17] = t, e[18] = s, e[19] = _, e[20] = b, e[21] = w) : w = e[21];
|
|
2182
|
+
const x = w;
|
|
2183
|
+
let $;
|
|
2184
|
+
e[22] !== t || e[23] !== n || e[24] !== h || e[25] !== b ? ($ = (P) => {
|
|
2185
|
+
h(t, P), n == null || n(P), b(t);
|
|
2186
|
+
}, e[22] = t, e[23] = n, e[24] = h, e[25] = b, e[26] = $) : $ = e[26];
|
|
2187
|
+
const j = $;
|
|
2188
|
+
let L;
|
|
2189
|
+
e[27] !== f || e[28] !== t || e[29] !== o || e[30] !== y ? (L = (P) => {
|
|
2190
|
+
var J, W;
|
|
2191
|
+
const U = (J = f(t)) == null ? void 0 : J.props.layers, Z = !!(U != null && U.every(un));
|
|
2192
|
+
y(t, Z), (W = o.onAfterRender) == null || W.call(o, P);
|
|
2193
|
+
}, e[27] = f, e[28] = t, e[29] = o, e[30] = y, e[31] = L) : L = e[31];
|
|
2194
|
+
const E = L, F = o.onDragEnd;
|
|
2195
|
+
let A;
|
|
2196
|
+
e[32] !== F || e[33] !== t || e[34] !== b ? (A = (...P) => {
|
|
2197
|
+
const U = P;
|
|
2198
|
+
b(t), F && F(...U);
|
|
2199
|
+
}, e[32] = F, e[33] = t, e[34] = b, e[35] = A) : A = e[35];
|
|
2200
|
+
const R = A;
|
|
2201
|
+
let V;
|
|
2202
|
+
return e[36] !== a || e[37] !== D || e[38] !== E || e[39] !== R || e[40] !== j || e[41] !== x || e[42] !== t || e[43] !== d || e[44] !== p || e[45] !== o || e[46] !== g ? (V = /* @__PURE__ */ N(ds, { ...o, id: t, layers: D, instanceRef: d, overlayRef: p, basemap: a, initialViewState: g, onLoad: j, onViewStateChange: x, onAfterRender: E, onDragEnd: R }), e[36] = a, e[37] = D, e[38] = E, e[39] = R, e[40] = j, e[41] = x, e[42] = t, e[43] = d, e[44] = p, e[45] = o, e[46] = g, e[47] = V) : V = e[47], V;
|
|
2200
2203
|
}
|
|
2201
|
-
function
|
|
2202
|
-
return
|
|
2204
|
+
function un(i) {
|
|
2205
|
+
return i == null ? void 0 : i.isLoaded;
|
|
2203
2206
|
}
|
|
2204
|
-
function
|
|
2205
|
-
return
|
|
2207
|
+
function dn(i) {
|
|
2208
|
+
return i.updateViewPort;
|
|
2206
2209
|
}
|
|
2207
|
-
function
|
|
2208
|
-
return
|
|
2210
|
+
function fn(i) {
|
|
2211
|
+
return i.setLayersLoad;
|
|
2209
2212
|
}
|
|
2210
|
-
function
|
|
2211
|
-
return
|
|
2213
|
+
function mn(i) {
|
|
2214
|
+
return i.setLoad;
|
|
2212
2215
|
}
|
|
2213
|
-
function
|
|
2214
|
-
return
|
|
2216
|
+
function pn(i) {
|
|
2217
|
+
return i.setViewState;
|
|
2215
2218
|
}
|
|
2216
|
-
function
|
|
2217
|
-
return
|
|
2219
|
+
function gn(i) {
|
|
2220
|
+
return i.getDeckInstance;
|
|
2218
2221
|
}
|
|
2219
|
-
const
|
|
2222
|
+
const yn = "https://gcp-us-east1.api.carto.com", hn = "ps", Sn = tt((i) => ({
|
|
2220
2223
|
sources: {},
|
|
2221
|
-
setSource: (e, t) =>
|
|
2224
|
+
setSource: (e, t) => i((n) => {
|
|
2222
2225
|
const s = {
|
|
2223
2226
|
...n.sources
|
|
2224
2227
|
};
|
|
@@ -2228,23 +2231,23 @@ const gn = "https://gcp-us-east1.api.carto.com", yn = "ps", hn = tt((r) => ({
|
|
|
2228
2231
|
};
|
|
2229
2232
|
const o = {
|
|
2230
2233
|
...s[e] ?? {
|
|
2231
|
-
apiBaseUrl:
|
|
2232
|
-
clientId:
|
|
2234
|
+
apiBaseUrl: yn,
|
|
2235
|
+
clientId: hn
|
|
2233
2236
|
},
|
|
2234
2237
|
...t
|
|
2235
|
-
},
|
|
2238
|
+
}, r = bn({
|
|
2236
2239
|
source: o
|
|
2237
2240
|
});
|
|
2238
|
-
return o.widgets =
|
|
2241
|
+
return o.widgets = r, s[e] = o, {
|
|
2239
2242
|
sources: s
|
|
2240
2243
|
};
|
|
2241
2244
|
}),
|
|
2242
|
-
setFilters: (e, t) =>
|
|
2245
|
+
setFilters: (e, t) => i((n) => {
|
|
2243
2246
|
let s = {};
|
|
2244
2247
|
const o = n.sources[e] ?? {};
|
|
2245
|
-
return t.length !== 0 && (s = t.reduce((
|
|
2246
|
-
var
|
|
2247
|
-
return !("values" in a) || !((
|
|
2248
|
+
return t.length !== 0 && (s = t.reduce((r, a) => {
|
|
2249
|
+
var l;
|
|
2250
|
+
return !("values" in a) || !((l = a.values) != null && l.length) ? (r = Gt(r, a), r) : (r = zt(r, a), r);
|
|
2248
2251
|
}, (o == null ? void 0 : o.filters) ?? {})), {
|
|
2249
2252
|
sources: {
|
|
2250
2253
|
...n.sources,
|
|
@@ -2256,17 +2259,17 @@ const gn = "https://gcp-us-east1.api.carto.com", yn = "ps", hn = tt((r) => ({
|
|
|
2256
2259
|
};
|
|
2257
2260
|
})
|
|
2258
2261
|
}));
|
|
2259
|
-
function
|
|
2260
|
-
const e =
|
|
2262
|
+
function vn(i) {
|
|
2263
|
+
const e = C(2);
|
|
2261
2264
|
let t;
|
|
2262
|
-
return e[0] !==
|
|
2265
|
+
return e[0] !== i ? (t = (n) => n.sources[i], e[0] = i, e[1] = t) : t = e[1], Sn(t);
|
|
2263
2266
|
}
|
|
2264
|
-
function
|
|
2265
|
-
source:
|
|
2267
|
+
function bn({
|
|
2268
|
+
source: i
|
|
2266
2269
|
}) {
|
|
2267
2270
|
const e = {
|
|
2268
2271
|
query: () => {
|
|
2269
|
-
const s =
|
|
2272
|
+
const s = i;
|
|
2270
2273
|
return new Yt({
|
|
2271
2274
|
...s,
|
|
2272
2275
|
accessToken: "",
|
|
@@ -2275,7 +2278,7 @@ function vn({
|
|
|
2275
2278
|
});
|
|
2276
2279
|
},
|
|
2277
2280
|
table: () => {
|
|
2278
|
-
const s =
|
|
2281
|
+
const s = i;
|
|
2279
2282
|
return new Wt({
|
|
2280
2283
|
...s,
|
|
2281
2284
|
accessToken: "",
|
|
@@ -2284,7 +2287,7 @@ function vn({
|
|
|
2284
2287
|
});
|
|
2285
2288
|
},
|
|
2286
2289
|
tileset: () => {
|
|
2287
|
-
const s =
|
|
2290
|
+
const s = i;
|
|
2288
2291
|
return new Zt({
|
|
2289
2292
|
...s,
|
|
2290
2293
|
accessToken: "",
|
|
@@ -2294,7 +2297,7 @@ function vn({
|
|
|
2294
2297
|
});
|
|
2295
2298
|
},
|
|
2296
2299
|
raster: () => {
|
|
2297
|
-
const s =
|
|
2300
|
+
const s = i;
|
|
2298
2301
|
return s.rasterMetadata ? new Qt({
|
|
2299
2302
|
...s,
|
|
2300
2303
|
accessToken: "",
|
|
@@ -2303,626 +2306,626 @@ function vn({
|
|
|
2303
2306
|
rasterMetadata: s.rasterMetadata
|
|
2304
2307
|
}) : null;
|
|
2305
2308
|
}
|
|
2306
|
-
}, t =
|
|
2309
|
+
}, t = i.type.split("+")[0], n = e[t];
|
|
2307
2310
|
return n == null ? void 0 : n();
|
|
2308
2311
|
}
|
|
2309
|
-
function
|
|
2310
|
-
const t =
|
|
2311
|
-
return
|
|
2312
|
+
function oe(i, e) {
|
|
2313
|
+
const t = vn(e);
|
|
2314
|
+
return te(() => {
|
|
2312
2315
|
const n = t == null ? void 0 : t.widgets;
|
|
2313
|
-
return !n || !
|
|
2314
|
-
}, [
|
|
2316
|
+
return !n || !i ? null : (n.props.accessToken = i, n);
|
|
2317
|
+
}, [i, t]);
|
|
2315
2318
|
}
|
|
2316
|
-
function
|
|
2317
|
-
const e =
|
|
2319
|
+
function Mn(i) {
|
|
2320
|
+
const e = C(18), {
|
|
2318
2321
|
accessToken: t,
|
|
2319
2322
|
sourceId: n,
|
|
2320
2323
|
widgetProps: s,
|
|
2321
2324
|
useQueryProps: o
|
|
2322
|
-
} =
|
|
2323
|
-
let
|
|
2324
|
-
e[0] !== o ? (
|
|
2325
|
-
let a,
|
|
2326
|
-
e[2] !==
|
|
2325
|
+
} = i;
|
|
2326
|
+
let r;
|
|
2327
|
+
e[0] !== o ? (r = o === void 0 ? {} : o, e[0] = o, e[1] = r) : r = e[1];
|
|
2328
|
+
let a, l;
|
|
2329
|
+
e[2] !== r ? ({
|
|
2327
2330
|
enabled: a,
|
|
2328
|
-
...
|
|
2329
|
-
} =
|
|
2330
|
-
const d = a === void 0 ? !0 : a,
|
|
2331
|
-
let f;
|
|
2332
|
-
e[5] !== t || e[6] !== n || e[7] !== p || e[8] !== s ? (f = ["categories", n, t, s, p], e[5] = t, e[6] = n, e[7] = p, e[8] = s, e[9] = f) : f = e[9];
|
|
2333
|
-
let u;
|
|
2334
|
-
e[10] !== l || e[11] !== s ? (u = () => l == null ? void 0 : l.getCategories(s), e[10] = l, e[11] = s, e[12] = u) : u = e[12];
|
|
2335
|
-
const y = !!l && d;
|
|
2331
|
+
...l
|
|
2332
|
+
} = r, e[2] = r, e[3] = a, e[4] = l) : (a = e[3], l = e[4]);
|
|
2333
|
+
const d = a === void 0 ? !0 : a, c = oe(t, n), p = c == null ? void 0 : c.props.filters;
|
|
2336
2334
|
let m;
|
|
2337
|
-
|
|
2338
|
-
|
|
2335
|
+
e[5] !== t || e[6] !== n || e[7] !== p || e[8] !== s ? (m = ["categories", n, t, s, p], e[5] = t, e[6] = n, e[7] = p, e[8] = s, e[9] = m) : m = e[9];
|
|
2336
|
+
let u;
|
|
2337
|
+
e[10] !== c || e[11] !== s ? (u = () => c == null ? void 0 : c.getCategories(s), e[10] = c, e[11] = s, e[12] = u) : u = e[12];
|
|
2338
|
+
const g = !!c && d;
|
|
2339
|
+
let f;
|
|
2340
|
+
return e[13] !== m || e[14] !== u || e[15] !== g || e[16] !== l ? (f = {
|
|
2341
|
+
queryKey: m,
|
|
2339
2342
|
queryFn: u,
|
|
2340
|
-
enabled:
|
|
2341
|
-
...
|
|
2342
|
-
}, e[13] =
|
|
2343
|
+
enabled: g,
|
|
2344
|
+
...l
|
|
2345
|
+
}, e[13] = m, e[14] = u, e[15] = g, e[16] = l, e[17] = f) : f = e[17], ne(f);
|
|
2343
2346
|
}
|
|
2344
|
-
function
|
|
2345
|
-
const e =
|
|
2347
|
+
function fo(i) {
|
|
2348
|
+
const e = C(6);
|
|
2346
2349
|
let t, n;
|
|
2347
|
-
e[0] !==
|
|
2350
|
+
e[0] !== i ? ({
|
|
2348
2351
|
children: t,
|
|
2349
2352
|
...n
|
|
2350
|
-
} =
|
|
2351
|
-
const s =
|
|
2353
|
+
} = i, e[0] = i, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
|
|
2354
|
+
const s = Mn(n);
|
|
2352
2355
|
let o;
|
|
2353
2356
|
return e[3] !== t || e[4] !== s ? (o = t(s), e[3] = t, e[4] = s, e[5] = o) : o = e[5], o;
|
|
2354
2357
|
}
|
|
2355
|
-
function
|
|
2356
|
-
const e =
|
|
2358
|
+
function Ln(i) {
|
|
2359
|
+
const e = C(18), {
|
|
2357
2360
|
accessToken: t,
|
|
2358
2361
|
sourceId: n,
|
|
2359
2362
|
widgetProps: s,
|
|
2360
2363
|
useQueryProps: o
|
|
2361
|
-
} =
|
|
2362
|
-
let
|
|
2363
|
-
e[0] !== o ? (
|
|
2364
|
-
let a,
|
|
2365
|
-
e[2] !==
|
|
2364
|
+
} = i;
|
|
2365
|
+
let r;
|
|
2366
|
+
e[0] !== o ? (r = o === void 0 ? {} : o, e[0] = o, e[1] = r) : r = e[1];
|
|
2367
|
+
let a, l;
|
|
2368
|
+
e[2] !== r ? ({
|
|
2366
2369
|
enabled: a,
|
|
2367
|
-
...
|
|
2368
|
-
} =
|
|
2369
|
-
const d = a === void 0 ? !0 : a,
|
|
2370
|
-
let f;
|
|
2371
|
-
e[5] !== t || e[6] !== n || e[7] !== p || e[8] !== s ? (f = ["features", n, t, s, p], e[5] = t, e[6] = n, e[7] = p, e[8] = s, e[9] = f) : f = e[9];
|
|
2372
|
-
let u;
|
|
2373
|
-
e[10] !== l || e[11] !== s ? (u = () => l == null ? void 0 : l.getFeatures(s), e[10] = l, e[11] = s, e[12] = u) : u = e[12];
|
|
2374
|
-
const y = !!l && d;
|
|
2370
|
+
...l
|
|
2371
|
+
} = r, e[2] = r, e[3] = a, e[4] = l) : (a = e[3], l = e[4]);
|
|
2372
|
+
const d = a === void 0 ? !0 : a, c = oe(t, n), p = c == null ? void 0 : c.props.filters;
|
|
2375
2373
|
let m;
|
|
2376
|
-
|
|
2377
|
-
|
|
2374
|
+
e[5] !== t || e[6] !== n || e[7] !== p || e[8] !== s ? (m = ["features", n, t, s, p], e[5] = t, e[6] = n, e[7] = p, e[8] = s, e[9] = m) : m = e[9];
|
|
2375
|
+
let u;
|
|
2376
|
+
e[10] !== c || e[11] !== s ? (u = () => c == null ? void 0 : c.getFeatures(s), e[10] = c, e[11] = s, e[12] = u) : u = e[12];
|
|
2377
|
+
const g = !!c && d;
|
|
2378
|
+
let f;
|
|
2379
|
+
return e[13] !== m || e[14] !== u || e[15] !== g || e[16] !== l ? (f = {
|
|
2380
|
+
queryKey: m,
|
|
2378
2381
|
queryFn: u,
|
|
2379
|
-
enabled:
|
|
2380
|
-
...
|
|
2381
|
-
}, e[13] =
|
|
2382
|
+
enabled: g,
|
|
2383
|
+
...l
|
|
2384
|
+
}, e[13] = m, e[14] = u, e[15] = g, e[16] = l, e[17] = f) : f = e[17], ne(f);
|
|
2382
2385
|
}
|
|
2383
|
-
function
|
|
2384
|
-
const e =
|
|
2386
|
+
function mo(i) {
|
|
2387
|
+
const e = C(6);
|
|
2385
2388
|
let t, n;
|
|
2386
|
-
e[0] !==
|
|
2389
|
+
e[0] !== i ? ({
|
|
2387
2390
|
children: t,
|
|
2388
2391
|
...n
|
|
2389
|
-
} =
|
|
2390
|
-
const s =
|
|
2392
|
+
} = i, e[0] = i, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
|
|
2393
|
+
const s = Ln(n);
|
|
2391
2394
|
let o;
|
|
2392
2395
|
return e[3] !== t || e[4] !== s ? (o = t(s), e[3] = t, e[4] = s, e[5] = o) : o = e[5], o;
|
|
2393
2396
|
}
|
|
2394
|
-
function _n(
|
|
2395
|
-
const e =
|
|
2397
|
+
function _n(i) {
|
|
2398
|
+
const e = C(18), {
|
|
2396
2399
|
accessToken: t,
|
|
2397
2400
|
sourceId: n,
|
|
2398
2401
|
widgetProps: s,
|
|
2399
2402
|
useQueryProps: o
|
|
2400
|
-
} =
|
|
2401
|
-
let
|
|
2402
|
-
e[0] !== o ? (
|
|
2403
|
-
let a,
|
|
2404
|
-
e[2] !==
|
|
2403
|
+
} = i;
|
|
2404
|
+
let r;
|
|
2405
|
+
e[0] !== o ? (r = o === void 0 ? {} : o, e[0] = o, e[1] = r) : r = e[1];
|
|
2406
|
+
let a, l;
|
|
2407
|
+
e[2] !== r ? ({
|
|
2405
2408
|
enabled: a,
|
|
2406
|
-
...
|
|
2407
|
-
} =
|
|
2408
|
-
const d = a === void 0 ? !0 : a,
|
|
2409
|
-
let f;
|
|
2410
|
-
e[5] !== t || e[6] !== n || e[7] !== p || e[8] !== s ? (f = ["formula", n, t, s, p], e[5] = t, e[6] = n, e[7] = p, e[8] = s, e[9] = f) : f = e[9];
|
|
2411
|
-
let u;
|
|
2412
|
-
e[10] !== l || e[11] !== s ? (u = () => l == null ? void 0 : l.getFormula(s), e[10] = l, e[11] = s, e[12] = u) : u = e[12];
|
|
2413
|
-
const y = !!l && d;
|
|
2409
|
+
...l
|
|
2410
|
+
} = r, e[2] = r, e[3] = a, e[4] = l) : (a = e[3], l = e[4]);
|
|
2411
|
+
const d = a === void 0 ? !0 : a, c = oe(t, n), p = c == null ? void 0 : c.props.filters;
|
|
2414
2412
|
let m;
|
|
2415
|
-
|
|
2416
|
-
|
|
2413
|
+
e[5] !== t || e[6] !== n || e[7] !== p || e[8] !== s ? (m = ["formula", n, t, s, p], e[5] = t, e[6] = n, e[7] = p, e[8] = s, e[9] = m) : m = e[9];
|
|
2414
|
+
let u;
|
|
2415
|
+
e[10] !== c || e[11] !== s ? (u = () => c == null ? void 0 : c.getFormula(s), e[10] = c, e[11] = s, e[12] = u) : u = e[12];
|
|
2416
|
+
const g = !!c && d;
|
|
2417
|
+
let f;
|
|
2418
|
+
return e[13] !== m || e[14] !== u || e[15] !== g || e[16] !== l ? (f = {
|
|
2419
|
+
queryKey: m,
|
|
2417
2420
|
queryFn: u,
|
|
2418
|
-
enabled:
|
|
2419
|
-
...
|
|
2420
|
-
}, e[13] =
|
|
2421
|
+
enabled: g,
|
|
2422
|
+
...l
|
|
2423
|
+
}, e[13] = m, e[14] = u, e[15] = g, e[16] = l, e[17] = f) : f = e[17], ne(f);
|
|
2421
2424
|
}
|
|
2422
|
-
function
|
|
2423
|
-
const e =
|
|
2425
|
+
function po(i) {
|
|
2426
|
+
const e = C(6);
|
|
2424
2427
|
let t, n;
|
|
2425
|
-
e[0] !==
|
|
2428
|
+
e[0] !== i ? ({
|
|
2426
2429
|
children: t,
|
|
2427
2430
|
...n
|
|
2428
|
-
} =
|
|
2431
|
+
} = i, e[0] = i, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
|
|
2429
2432
|
const s = _n(n);
|
|
2430
2433
|
let o;
|
|
2431
2434
|
return e[3] !== t || e[4] !== s ? (o = t(s), e[3] = t, e[4] = s, e[5] = o) : o = e[5], o;
|
|
2432
2435
|
}
|
|
2433
|
-
function
|
|
2434
|
-
const e =
|
|
2436
|
+
function Tn(i) {
|
|
2437
|
+
const e = C(18), {
|
|
2435
2438
|
accessToken: t,
|
|
2436
2439
|
sourceId: n,
|
|
2437
2440
|
widgetProps: s,
|
|
2438
2441
|
useQueryProps: o
|
|
2439
|
-
} =
|
|
2440
|
-
let
|
|
2441
|
-
e[0] !== o ? (
|
|
2442
|
-
let a,
|
|
2443
|
-
e[2] !==
|
|
2442
|
+
} = i;
|
|
2443
|
+
let r;
|
|
2444
|
+
e[0] !== o ? (r = o === void 0 ? {} : o, e[0] = o, e[1] = r) : r = e[1];
|
|
2445
|
+
let a, l;
|
|
2446
|
+
e[2] !== r ? ({
|
|
2444
2447
|
enabled: a,
|
|
2445
|
-
...
|
|
2446
|
-
} =
|
|
2447
|
-
const d = a === void 0 ? !0 : a,
|
|
2448
|
-
let f;
|
|
2449
|
-
e[5] !== t || e[6] !== n || e[7] !== p || e[8] !== s ? (f = ["histogram", n, t, s, p], e[5] = t, e[6] = n, e[7] = p, e[8] = s, e[9] = f) : f = e[9];
|
|
2450
|
-
let u;
|
|
2451
|
-
e[10] !== l || e[11] !== s ? (u = () => l == null ? void 0 : l.getHistogram(s), e[10] = l, e[11] = s, e[12] = u) : u = e[12];
|
|
2452
|
-
const y = !!l && d;
|
|
2448
|
+
...l
|
|
2449
|
+
} = r, e[2] = r, e[3] = a, e[4] = l) : (a = e[3], l = e[4]);
|
|
2450
|
+
const d = a === void 0 ? !0 : a, c = oe(t, n), p = c == null ? void 0 : c.props.filters;
|
|
2453
2451
|
let m;
|
|
2454
|
-
|
|
2455
|
-
|
|
2452
|
+
e[5] !== t || e[6] !== n || e[7] !== p || e[8] !== s ? (m = ["histogram", n, t, s, p], e[5] = t, e[6] = n, e[7] = p, e[8] = s, e[9] = m) : m = e[9];
|
|
2453
|
+
let u;
|
|
2454
|
+
e[10] !== c || e[11] !== s ? (u = () => c == null ? void 0 : c.getHistogram(s), e[10] = c, e[11] = s, e[12] = u) : u = e[12];
|
|
2455
|
+
const g = !!c && d;
|
|
2456
|
+
let f;
|
|
2457
|
+
return e[13] !== m || e[14] !== u || e[15] !== g || e[16] !== l ? (f = {
|
|
2458
|
+
queryKey: m,
|
|
2456
2459
|
queryFn: u,
|
|
2457
|
-
enabled:
|
|
2458
|
-
...
|
|
2459
|
-
}, e[13] =
|
|
2460
|
+
enabled: g,
|
|
2461
|
+
...l
|
|
2462
|
+
}, e[13] = m, e[14] = u, e[15] = g, e[16] = l, e[17] = f) : f = e[17], ne(f);
|
|
2460
2463
|
}
|
|
2461
|
-
function
|
|
2462
|
-
const e =
|
|
2464
|
+
function go(i) {
|
|
2465
|
+
const e = C(6);
|
|
2463
2466
|
let t, n;
|
|
2464
|
-
e[0] !==
|
|
2467
|
+
e[0] !== i ? ({
|
|
2465
2468
|
children: t,
|
|
2466
2469
|
...n
|
|
2467
|
-
} =
|
|
2468
|
-
const s =
|
|
2470
|
+
} = i, e[0] = i, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
|
|
2471
|
+
const s = Tn(n);
|
|
2469
2472
|
let o;
|
|
2470
2473
|
return e[3] !== t || e[4] !== s ? (o = t(s), e[3] = t, e[4] = s, e[5] = o) : o = e[5], o;
|
|
2471
2474
|
}
|
|
2472
|
-
function
|
|
2473
|
-
const e =
|
|
2475
|
+
function En(i) {
|
|
2476
|
+
const e = C(18), {
|
|
2474
2477
|
accessToken: t,
|
|
2475
2478
|
sourceId: n,
|
|
2476
2479
|
widgetProps: s,
|
|
2477
2480
|
useQueryProps: o
|
|
2478
|
-
} =
|
|
2479
|
-
let
|
|
2480
|
-
e[0] !== o ? (
|
|
2481
|
-
let a,
|
|
2482
|
-
e[2] !==
|
|
2481
|
+
} = i;
|
|
2482
|
+
let r;
|
|
2483
|
+
e[0] !== o ? (r = o === void 0 ? {} : o, e[0] = o, e[1] = r) : r = e[1];
|
|
2484
|
+
let a, l;
|
|
2485
|
+
e[2] !== r ? ({
|
|
2483
2486
|
enabled: a,
|
|
2484
|
-
...
|
|
2485
|
-
} =
|
|
2486
|
-
const d = a === void 0 ? !0 : a,
|
|
2487
|
-
let f;
|
|
2488
|
-
e[5] !== t || e[6] !== n || e[7] !== p || e[8] !== s ? (f = ["range", n, t, s, p], e[5] = t, e[6] = n, e[7] = p, e[8] = s, e[9] = f) : f = e[9];
|
|
2489
|
-
let u;
|
|
2490
|
-
e[10] !== l || e[11] !== s ? (u = () => l == null ? void 0 : l.getRange(s), e[10] = l, e[11] = s, e[12] = u) : u = e[12];
|
|
2491
|
-
const y = !!l && d;
|
|
2487
|
+
...l
|
|
2488
|
+
} = r, e[2] = r, e[3] = a, e[4] = l) : (a = e[3], l = e[4]);
|
|
2489
|
+
const d = a === void 0 ? !0 : a, c = oe(t, n), p = c == null ? void 0 : c.props.filters;
|
|
2492
2490
|
let m;
|
|
2493
|
-
|
|
2494
|
-
|
|
2491
|
+
e[5] !== t || e[6] !== n || e[7] !== p || e[8] !== s ? (m = ["range", n, t, s, p], e[5] = t, e[6] = n, e[7] = p, e[8] = s, e[9] = m) : m = e[9];
|
|
2492
|
+
let u;
|
|
2493
|
+
e[10] !== c || e[11] !== s ? (u = () => c == null ? void 0 : c.getRange(s), e[10] = c, e[11] = s, e[12] = u) : u = e[12];
|
|
2494
|
+
const g = !!c && d;
|
|
2495
|
+
let f;
|
|
2496
|
+
return e[13] !== m || e[14] !== u || e[15] !== g || e[16] !== l ? (f = {
|
|
2497
|
+
queryKey: m,
|
|
2495
2498
|
queryFn: u,
|
|
2496
|
-
enabled:
|
|
2497
|
-
...
|
|
2498
|
-
}, e[13] =
|
|
2499
|
+
enabled: g,
|
|
2500
|
+
...l
|
|
2501
|
+
}, e[13] = m, e[14] = u, e[15] = g, e[16] = l, e[17] = f) : f = e[17], ne(f);
|
|
2499
2502
|
}
|
|
2500
|
-
function
|
|
2501
|
-
const e =
|
|
2503
|
+
function yo(i) {
|
|
2504
|
+
const e = C(6);
|
|
2502
2505
|
let t, n;
|
|
2503
|
-
e[0] !==
|
|
2506
|
+
e[0] !== i ? ({
|
|
2504
2507
|
children: t,
|
|
2505
2508
|
...n
|
|
2506
|
-
} =
|
|
2507
|
-
const s =
|
|
2509
|
+
} = i, e[0] = i, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
|
|
2510
|
+
const s = En(n);
|
|
2508
2511
|
let o;
|
|
2509
2512
|
return e[3] !== t || e[4] !== s ? (o = t(s), e[3] = t, e[4] = s, e[5] = o) : o = e[5], o;
|
|
2510
2513
|
}
|
|
2511
|
-
function
|
|
2512
|
-
const e =
|
|
2514
|
+
function kn(i) {
|
|
2515
|
+
const e = C(18), {
|
|
2513
2516
|
accessToken: t,
|
|
2514
2517
|
sourceId: n,
|
|
2515
2518
|
widgetProps: s,
|
|
2516
2519
|
useQueryProps: o
|
|
2517
|
-
} =
|
|
2518
|
-
let
|
|
2519
|
-
e[0] !== o ? (
|
|
2520
|
-
let a,
|
|
2521
|
-
e[2] !==
|
|
2520
|
+
} = i;
|
|
2521
|
+
let r;
|
|
2522
|
+
e[0] !== o ? (r = o === void 0 ? {} : o, e[0] = o, e[1] = r) : r = e[1];
|
|
2523
|
+
let a, l;
|
|
2524
|
+
e[2] !== r ? ({
|
|
2522
2525
|
enabled: a,
|
|
2523
|
-
...
|
|
2524
|
-
} =
|
|
2525
|
-
const d = a === void 0 ? !0 : a,
|
|
2526
|
-
let f;
|
|
2527
|
-
e[5] !== t || e[6] !== n || e[7] !== p || e[8] !== s ? (f = ["scatter", n, t, s, p], e[5] = t, e[6] = n, e[7] = p, e[8] = s, e[9] = f) : f = e[9];
|
|
2528
|
-
let u;
|
|
2529
|
-
e[10] !== l || e[11] !== s ? (u = () => l == null ? void 0 : l.getScatter(s), e[10] = l, e[11] = s, e[12] = u) : u = e[12];
|
|
2530
|
-
const y = !!l && d;
|
|
2526
|
+
...l
|
|
2527
|
+
} = r, e[2] = r, e[3] = a, e[4] = l) : (a = e[3], l = e[4]);
|
|
2528
|
+
const d = a === void 0 ? !0 : a, c = oe(t, n), p = c == null ? void 0 : c.props.filters;
|
|
2531
2529
|
let m;
|
|
2532
|
-
|
|
2533
|
-
|
|
2530
|
+
e[5] !== t || e[6] !== n || e[7] !== p || e[8] !== s ? (m = ["scatter", n, t, s, p], e[5] = t, e[6] = n, e[7] = p, e[8] = s, e[9] = m) : m = e[9];
|
|
2531
|
+
let u;
|
|
2532
|
+
e[10] !== c || e[11] !== s ? (u = () => c == null ? void 0 : c.getScatter(s), e[10] = c, e[11] = s, e[12] = u) : u = e[12];
|
|
2533
|
+
const g = !!c && d;
|
|
2534
|
+
let f;
|
|
2535
|
+
return e[13] !== m || e[14] !== u || e[15] !== g || e[16] !== l ? (f = {
|
|
2536
|
+
queryKey: m,
|
|
2534
2537
|
queryFn: u,
|
|
2535
|
-
enabled:
|
|
2536
|
-
...
|
|
2537
|
-
}, e[13] =
|
|
2538
|
+
enabled: g,
|
|
2539
|
+
...l
|
|
2540
|
+
}, e[13] = m, e[14] = u, e[15] = g, e[16] = l, e[17] = f) : f = e[17], ne(f);
|
|
2538
2541
|
}
|
|
2539
|
-
function
|
|
2540
|
-
const e =
|
|
2542
|
+
function ho(i) {
|
|
2543
|
+
const e = C(6);
|
|
2541
2544
|
let t, n;
|
|
2542
|
-
e[0] !==
|
|
2545
|
+
e[0] !== i ? ({
|
|
2543
2546
|
children: t,
|
|
2544
2547
|
...n
|
|
2545
|
-
} =
|
|
2546
|
-
const s =
|
|
2548
|
+
} = i, e[0] = i, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
|
|
2549
|
+
const s = kn(n);
|
|
2547
2550
|
let o;
|
|
2548
2551
|
return e[3] !== t || e[4] !== s ? (o = t(s), e[3] = t, e[4] = s, e[5] = o) : o = e[5], o;
|
|
2549
2552
|
}
|
|
2550
|
-
function
|
|
2551
|
-
const e =
|
|
2553
|
+
function Pn(i) {
|
|
2554
|
+
const e = C(18), {
|
|
2552
2555
|
accessToken: t,
|
|
2553
2556
|
sourceId: n,
|
|
2554
2557
|
widgetProps: s,
|
|
2555
2558
|
useQueryProps: o
|
|
2556
|
-
} =
|
|
2557
|
-
let
|
|
2558
|
-
e[0] !== o ? (
|
|
2559
|
-
let a,
|
|
2560
|
-
e[2] !==
|
|
2559
|
+
} = i;
|
|
2560
|
+
let r;
|
|
2561
|
+
e[0] !== o ? (r = o === void 0 ? {} : o, e[0] = o, e[1] = r) : r = e[1];
|
|
2562
|
+
let a, l;
|
|
2563
|
+
e[2] !== r ? ({
|
|
2561
2564
|
enabled: a,
|
|
2562
|
-
...
|
|
2563
|
-
} =
|
|
2564
|
-
const d = a === void 0 ? !0 : a,
|
|
2565
|
-
let f;
|
|
2566
|
-
e[5] !== t || e[6] !== n || e[7] !== p || e[8] !== s ? (f = ["table", n, t, s, p], e[5] = t, e[6] = n, e[7] = p, e[8] = s, e[9] = f) : f = e[9];
|
|
2567
|
-
let u;
|
|
2568
|
-
e[10] !== l || e[11] !== s ? (u = () => l == null ? void 0 : l.getTable(s), e[10] = l, e[11] = s, e[12] = u) : u = e[12];
|
|
2569
|
-
const y = !!l && d;
|
|
2565
|
+
...l
|
|
2566
|
+
} = r, e[2] = r, e[3] = a, e[4] = l) : (a = e[3], l = e[4]);
|
|
2567
|
+
const d = a === void 0 ? !0 : a, c = oe(t, n), p = c == null ? void 0 : c.props.filters;
|
|
2570
2568
|
let m;
|
|
2571
|
-
|
|
2572
|
-
|
|
2569
|
+
e[5] !== t || e[6] !== n || e[7] !== p || e[8] !== s ? (m = ["table", n, t, s, p], e[5] = t, e[6] = n, e[7] = p, e[8] = s, e[9] = m) : m = e[9];
|
|
2570
|
+
let u;
|
|
2571
|
+
e[10] !== c || e[11] !== s ? (u = () => c == null ? void 0 : c.getTable(s), e[10] = c, e[11] = s, e[12] = u) : u = e[12];
|
|
2572
|
+
const g = !!c && d;
|
|
2573
|
+
let f;
|
|
2574
|
+
return e[13] !== m || e[14] !== u || e[15] !== g || e[16] !== l ? (f = {
|
|
2575
|
+
queryKey: m,
|
|
2573
2576
|
queryFn: u,
|
|
2574
|
-
enabled:
|
|
2575
|
-
...
|
|
2576
|
-
}, e[13] =
|
|
2577
|
+
enabled: g,
|
|
2578
|
+
...l
|
|
2579
|
+
}, e[13] = m, e[14] = u, e[15] = g, e[16] = l, e[17] = f) : f = e[17], ne(f);
|
|
2577
2580
|
}
|
|
2578
|
-
function
|
|
2579
|
-
const e =
|
|
2581
|
+
function So(i) {
|
|
2582
|
+
const e = C(6);
|
|
2580
2583
|
let t, n;
|
|
2581
|
-
e[0] !==
|
|
2584
|
+
e[0] !== i ? ({
|
|
2582
2585
|
children: t,
|
|
2583
2586
|
...n
|
|
2584
|
-
} =
|
|
2585
|
-
const s =
|
|
2587
|
+
} = i, e[0] = i, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
|
|
2588
|
+
const s = Pn(n);
|
|
2586
2589
|
let o;
|
|
2587
2590
|
return e[3] !== t || e[4] !== s ? (o = t(s), e[3] = t, e[4] = s, e[5] = o) : o = e[5], o;
|
|
2588
2591
|
}
|
|
2589
|
-
function
|
|
2590
|
-
const e =
|
|
2592
|
+
function Cn(i) {
|
|
2593
|
+
const e = C(18), {
|
|
2591
2594
|
accessToken: t,
|
|
2592
2595
|
sourceId: n,
|
|
2593
2596
|
widgetProps: s,
|
|
2594
2597
|
useQueryProps: o
|
|
2595
|
-
} =
|
|
2596
|
-
let
|
|
2597
|
-
e[0] !== o ? (
|
|
2598
|
-
let a,
|
|
2599
|
-
e[2] !==
|
|
2598
|
+
} = i;
|
|
2599
|
+
let r;
|
|
2600
|
+
e[0] !== o ? (r = o === void 0 ? {} : o, e[0] = o, e[1] = r) : r = e[1];
|
|
2601
|
+
let a, l;
|
|
2602
|
+
e[2] !== r ? ({
|
|
2600
2603
|
enabled: a,
|
|
2601
|
-
...
|
|
2602
|
-
} =
|
|
2603
|
-
const d = a === void 0 ? !0 : a,
|
|
2604
|
-
let f;
|
|
2605
|
-
e[5] !== t || e[6] !== n || e[7] !== p || e[8] !== s ? (f = ["time-series", n, t, s, p], e[5] = t, e[6] = n, e[7] = p, e[8] = s, e[9] = f) : f = e[9];
|
|
2606
|
-
let u;
|
|
2607
|
-
e[10] !== l || e[11] !== s ? (u = () => l == null ? void 0 : l.getTimeSeries(s), e[10] = l, e[11] = s, e[12] = u) : u = e[12];
|
|
2608
|
-
const y = !!l && d;
|
|
2604
|
+
...l
|
|
2605
|
+
} = r, e[2] = r, e[3] = a, e[4] = l) : (a = e[3], l = e[4]);
|
|
2606
|
+
const d = a === void 0 ? !0 : a, c = oe(t, n), p = c == null ? void 0 : c.props.filters;
|
|
2609
2607
|
let m;
|
|
2610
|
-
|
|
2611
|
-
|
|
2608
|
+
e[5] !== t || e[6] !== n || e[7] !== p || e[8] !== s ? (m = ["time-series", n, t, s, p], e[5] = t, e[6] = n, e[7] = p, e[8] = s, e[9] = m) : m = e[9];
|
|
2609
|
+
let u;
|
|
2610
|
+
e[10] !== c || e[11] !== s ? (u = () => c == null ? void 0 : c.getTimeSeries(s), e[10] = c, e[11] = s, e[12] = u) : u = e[12];
|
|
2611
|
+
const g = !!c && d;
|
|
2612
|
+
let f;
|
|
2613
|
+
return e[13] !== m || e[14] !== u || e[15] !== g || e[16] !== l ? (f = {
|
|
2614
|
+
queryKey: m,
|
|
2612
2615
|
queryFn: u,
|
|
2613
|
-
enabled:
|
|
2614
|
-
...
|
|
2615
|
-
}, e[13] =
|
|
2616
|
+
enabled: g,
|
|
2617
|
+
...l
|
|
2618
|
+
}, e[13] = m, e[14] = u, e[15] = g, e[16] = l, e[17] = f) : f = e[17], ne(f);
|
|
2616
2619
|
}
|
|
2617
|
-
function
|
|
2618
|
-
const e =
|
|
2620
|
+
function vo(i) {
|
|
2621
|
+
const e = C(6);
|
|
2619
2622
|
let t, n;
|
|
2620
|
-
e[0] !==
|
|
2623
|
+
e[0] !== i ? ({
|
|
2621
2624
|
children: t,
|
|
2622
2625
|
...n
|
|
2623
|
-
} =
|
|
2624
|
-
const s =
|
|
2626
|
+
} = i, e[0] = i, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
|
|
2627
|
+
const s = Cn(n);
|
|
2625
2628
|
let o;
|
|
2626
2629
|
return e[3] !== t || e[4] !== s ? (o = t(s), e[3] = t, e[4] = s, e[5] = o) : o = e[5], o;
|
|
2627
2630
|
}
|
|
2628
|
-
function
|
|
2629
|
-
const e =
|
|
2631
|
+
function bo(i) {
|
|
2632
|
+
const e = C(13), {
|
|
2630
2633
|
children: t,
|
|
2631
2634
|
maps: n,
|
|
2632
2635
|
lassoTools: s,
|
|
2633
2636
|
measureTools: o
|
|
2634
|
-
} =
|
|
2635
|
-
let
|
|
2636
|
-
e[0] !== s ? (
|
|
2637
|
-
const a =
|
|
2638
|
-
let c;
|
|
2639
|
-
e[2] !== o ? (c = o === void 0 ? [] : o, e[2] = o, e[3] = c) : c = e[3];
|
|
2640
|
-
const d = c;
|
|
2637
|
+
} = i;
|
|
2638
|
+
let r;
|
|
2639
|
+
e[0] !== s ? (r = s === void 0 ? [] : s, e[0] = s, e[1] = r) : r = e[1];
|
|
2640
|
+
const a = r;
|
|
2641
2641
|
let l;
|
|
2642
|
-
e[
|
|
2642
|
+
e[2] !== o ? (l = o === void 0 ? [] : o, e[2] = o, e[3] = l) : l = e[3];
|
|
2643
|
+
const d = l;
|
|
2644
|
+
let c;
|
|
2645
|
+
e[4] !== t || e[5] !== d ? (c = /* @__PURE__ */ N(Qs, { values: d, children: t }), e[4] = t, e[5] = d, e[6] = c) : c = e[6];
|
|
2643
2646
|
let p;
|
|
2644
|
-
e[7] !== a || e[8] !==
|
|
2645
|
-
let
|
|
2646
|
-
return e[10] !== n || e[11] !== p ? (
|
|
2647
|
+
e[7] !== a || e[8] !== c ? (p = /* @__PURE__ */ N(Fs, { values: a, children: c }), e[7] = a, e[8] = c, e[9] = p) : p = e[9];
|
|
2648
|
+
let m;
|
|
2649
|
+
return e[10] !== n || e[11] !== p ? (m = /* @__PURE__ */ N(_s, { values: n, children: p }), e[10] = n, e[11] = p, e[12] = m) : m = e[12], m;
|
|
2647
2650
|
}
|
|
2648
|
-
function
|
|
2649
|
-
const t =
|
|
2651
|
+
function Mo(i, e) {
|
|
2652
|
+
const t = ce((d) => d.layers), n = ce((d) => d.setLayer), s = te(() => mt(i.map((d) => t[d]).filter((d) => !!d)), [t, i]), o = te(() => s.map(e), [e, s]), r = G(({
|
|
2650
2653
|
id: d,
|
|
2651
|
-
visible:
|
|
2654
|
+
visible: c,
|
|
2652
2655
|
...p
|
|
2653
2656
|
}) => {
|
|
2654
2657
|
n(d, {
|
|
2655
2658
|
props: {
|
|
2656
|
-
visible:
|
|
2659
|
+
visible: c
|
|
2657
2660
|
},
|
|
2658
2661
|
legend: p
|
|
2659
2662
|
});
|
|
2660
2663
|
}, [n]), a = G(({
|
|
2661
2664
|
id: d,
|
|
2662
|
-
collapsed:
|
|
2665
|
+
collapsed: c
|
|
2663
2666
|
}) => {
|
|
2664
2667
|
n(d, {
|
|
2665
2668
|
legend: {
|
|
2666
|
-
collapsed:
|
|
2669
|
+
collapsed: c
|
|
2667
2670
|
}
|
|
2668
2671
|
});
|
|
2669
|
-
}, [n]),
|
|
2672
|
+
}, [n]), l = G(({
|
|
2670
2673
|
id: d,
|
|
2671
|
-
opacity:
|
|
2674
|
+
opacity: c
|
|
2672
2675
|
}) => {
|
|
2673
2676
|
n(d, {
|
|
2674
2677
|
props: {
|
|
2675
|
-
opacity:
|
|
2678
|
+
opacity: c
|
|
2676
2679
|
}
|
|
2677
2680
|
});
|
|
2678
2681
|
}, [n]);
|
|
2679
2682
|
return {
|
|
2680
2683
|
legend: o,
|
|
2681
|
-
onChangeVisibility:
|
|
2682
|
-
onChangeOpacity:
|
|
2684
|
+
onChangeVisibility: r,
|
|
2685
|
+
onChangeOpacity: l,
|
|
2683
2686
|
onChangRowCollapsed: a
|
|
2684
2687
|
};
|
|
2685
2688
|
}
|
|
2686
|
-
function
|
|
2687
|
-
mapId:
|
|
2689
|
+
function Lo({
|
|
2690
|
+
mapId: i
|
|
2688
2691
|
}) {
|
|
2689
|
-
const [e, t] =
|
|
2690
|
-
var
|
|
2691
|
-
return (
|
|
2692
|
-
}),
|
|
2693
|
-
var
|
|
2694
|
-
return (
|
|
2695
|
-
}) &&
|
|
2692
|
+
const [e, t] = se(void 0), [n, s] = se(!1), o = O((f) => {
|
|
2693
|
+
var _;
|
|
2694
|
+
return (_ = f.maps[i]) == null ? void 0 : _.basemap;
|
|
2695
|
+
}), r = O((f) => f.getDeckInstance), a = O((f) => f.getOverlayInstance), l = O((f) => f.areLayersLoaded[i]), c = O((f) => {
|
|
2696
|
+
var _;
|
|
2697
|
+
return (_ = f.maps[i]) == null ? void 0 : _.isLoaded;
|
|
2698
|
+
}) && l, {
|
|
2696
2699
|
type: p
|
|
2697
|
-
} =
|
|
2698
|
-
const
|
|
2700
|
+
} = de[o], m = p === X.googleMaps, u = G(async () => {
|
|
2701
|
+
const f = r(i), _ = a(i);
|
|
2699
2702
|
try {
|
|
2700
2703
|
const h = document.createElement("canvas");
|
|
2701
|
-
h.width =
|
|
2702
|
-
const
|
|
2703
|
-
if (
|
|
2704
|
-
const v =
|
|
2704
|
+
h.width = f.width ?? 0, h.height = f.height ?? 0;
|
|
2705
|
+
const y = h.getContext("2d");
|
|
2706
|
+
if (m) {
|
|
2707
|
+
const v = _;
|
|
2705
2708
|
if (v.getRenderingType() !== "RASTER")
|
|
2706
2709
|
throw new Error("Only raster type is supported for Google Maps");
|
|
2707
|
-
const
|
|
2710
|
+
const S = await Jt(v.getDiv(), {
|
|
2708
2711
|
useCORS: !0
|
|
2709
2712
|
});
|
|
2710
|
-
|
|
2713
|
+
y == null || y.drawImage(S, 0, 0, f.width, f.height);
|
|
2711
2714
|
} else {
|
|
2712
|
-
const v =
|
|
2713
|
-
v.redraw(),
|
|
2715
|
+
const v = _;
|
|
2716
|
+
v.redraw(), y == null || y.drawImage(v.getMap().getCanvas(), 0, 0, f.width, f.height);
|
|
2714
2717
|
}
|
|
2715
|
-
|
|
2716
|
-
const
|
|
2717
|
-
t(
|
|
2718
|
+
f == null || f.redraw("screenshot"), y == null || y.drawImage(f.getCanvas(), 0, 0, f.width, f.height);
|
|
2719
|
+
const b = h.toDataURL();
|
|
2720
|
+
t(b);
|
|
2718
2721
|
} catch (h) {
|
|
2719
2722
|
console.error(h);
|
|
2720
2723
|
} finally {
|
|
2721
2724
|
s(!1);
|
|
2722
2725
|
}
|
|
2723
|
-
}, [
|
|
2726
|
+
}, [r, m, i, a]);
|
|
2724
2727
|
return {
|
|
2725
2728
|
takeScreenshot: G(() => {
|
|
2726
|
-
s(!0),
|
|
2727
|
-
}, [u,
|
|
2729
|
+
s(!0), c && u();
|
|
2730
|
+
}, [u, c]),
|
|
2728
2731
|
isLoading: n,
|
|
2729
2732
|
screenshot: e
|
|
2730
2733
|
};
|
|
2731
2734
|
}
|
|
2732
|
-
function _o(
|
|
2733
|
-
const e =
|
|
2735
|
+
function _o(i) {
|
|
2736
|
+
const e = C(8), {
|
|
2734
2737
|
mapId: t
|
|
2735
|
-
} =
|
|
2738
|
+
} = i;
|
|
2736
2739
|
let n;
|
|
2737
2740
|
e[0] !== t ? (n = {
|
|
2738
2741
|
mapId: t
|
|
2739
2742
|
}, e[0] = t, e[1] = n) : n = e[1];
|
|
2740
|
-
const s =
|
|
2743
|
+
const s = wn(n);
|
|
2741
2744
|
let o;
|
|
2742
2745
|
e[2] !== t ? (o = {
|
|
2743
2746
|
mapId: t
|
|
2744
2747
|
}, e[2] = t, e[3] = o) : o = e[3];
|
|
2745
|
-
const
|
|
2746
|
-
let
|
|
2747
|
-
return e[4] !==
|
|
2748
|
+
const r = Fn(o), a = r ?? s;
|
|
2749
|
+
let l;
|
|
2750
|
+
return e[4] !== r || e[5] !== a || e[6] !== s ? (l = {
|
|
2748
2751
|
spatialFilter: a,
|
|
2749
|
-
lassoToolsSpatialFilter:
|
|
2752
|
+
lassoToolsSpatialFilter: r,
|
|
2750
2753
|
viewportSpatialFilter: s
|
|
2751
|
-
}, e[4] =
|
|
2754
|
+
}, e[4] = r, e[5] = a, e[6] = s, e[7] = l) : l = e[7], l;
|
|
2752
2755
|
}
|
|
2753
|
-
function
|
|
2754
|
-
const e =
|
|
2756
|
+
function wn(i) {
|
|
2757
|
+
const e = C(4), {
|
|
2755
2758
|
mapId: t
|
|
2756
|
-
} =
|
|
2759
|
+
} = i;
|
|
2757
2760
|
let n;
|
|
2758
|
-
e[0] !== t ? (n = (
|
|
2759
|
-
const s =
|
|
2761
|
+
e[0] !== t ? (n = (r) => r.viewports[t], e[0] = t, e[1] = n) : n = e[1];
|
|
2762
|
+
const s = O(n);
|
|
2760
2763
|
let o;
|
|
2761
2764
|
e: {
|
|
2762
2765
|
if (!s) {
|
|
2763
2766
|
o = void 0;
|
|
2764
2767
|
break e;
|
|
2765
2768
|
}
|
|
2766
|
-
let
|
|
2767
|
-
e[2] !== s ? (
|
|
2769
|
+
let r;
|
|
2770
|
+
e[2] !== s ? (r = Xt(s.getBounds()), e[2] = s, e[3] = r) : r = e[3], o = r;
|
|
2768
2771
|
}
|
|
2769
2772
|
return o;
|
|
2770
2773
|
}
|
|
2771
|
-
function
|
|
2772
|
-
const e =
|
|
2774
|
+
function Fn(i) {
|
|
2775
|
+
const e = C(5), {
|
|
2773
2776
|
mapId: t
|
|
2774
|
-
} =
|
|
2777
|
+
} = i;
|
|
2775
2778
|
let n;
|
|
2776
|
-
e[0] !== t ? (n = (
|
|
2779
|
+
e[0] !== t ? (n = (r) => {
|
|
2777
2780
|
var a;
|
|
2778
|
-
return (a =
|
|
2781
|
+
return (a = r.data[t]) == null ? void 0 : a.values;
|
|
2779
2782
|
}, e[0] = t, e[1] = n) : n = e[1];
|
|
2780
|
-
const s =
|
|
2783
|
+
const s = H(n);
|
|
2781
2784
|
let o;
|
|
2782
2785
|
e: {
|
|
2783
|
-
let
|
|
2786
|
+
let r;
|
|
2784
2787
|
if (e[2] !== s) {
|
|
2785
2788
|
const a = at({
|
|
2786
2789
|
values: s
|
|
2787
|
-
}).filter(
|
|
2790
|
+
}).filter(Dn);
|
|
2788
2791
|
if (!(a != null && a.length)) {
|
|
2789
2792
|
o = void 0;
|
|
2790
2793
|
break e;
|
|
2791
2794
|
}
|
|
2792
|
-
|
|
2795
|
+
r = es(a.map(On)), e[2] = s, e[3] = r, e[4] = o;
|
|
2793
2796
|
} else
|
|
2794
|
-
|
|
2795
|
-
o =
|
|
2797
|
+
r = e[3], o = e[4];
|
|
2798
|
+
o = r.geometry;
|
|
2796
2799
|
}
|
|
2797
2800
|
return o;
|
|
2798
2801
|
}
|
|
2799
|
-
function
|
|
2800
|
-
return
|
|
2802
|
+
function On(i) {
|
|
2803
|
+
return i.geometry.coordinates;
|
|
2801
2804
|
}
|
|
2802
|
-
function
|
|
2803
|
-
return
|
|
2805
|
+
function Dn(i) {
|
|
2806
|
+
return i.properties.visible;
|
|
2804
2807
|
}
|
|
2805
|
-
const
|
|
2808
|
+
const ie = {
|
|
2806
2809
|
currency: "CURRENCY",
|
|
2807
2810
|
default: "DEFAULT",
|
|
2808
2811
|
number: "NUMBER"
|
|
2809
2812
|
}, Ye = {
|
|
2810
|
-
[
|
|
2811
|
-
type:
|
|
2812
|
-
format: (
|
|
2813
|
+
[ie.currency]: {
|
|
2814
|
+
type: ie.currency,
|
|
2815
|
+
format: (i, e) => Nt(i, e)
|
|
2813
2816
|
},
|
|
2814
|
-
[
|
|
2815
|
-
type:
|
|
2816
|
-
format: (
|
|
2817
|
+
[ie.number]: {
|
|
2818
|
+
type: ie.number,
|
|
2819
|
+
format: (i, e) => nt(i, e)
|
|
2817
2820
|
},
|
|
2818
|
-
[
|
|
2819
|
-
type:
|
|
2820
|
-
format: (
|
|
2821
|
+
[ie.default]: {
|
|
2822
|
+
type: ie.default,
|
|
2823
|
+
format: (i) => i.toLocaleString()
|
|
2821
2824
|
}
|
|
2822
2825
|
};
|
|
2823
|
-
function
|
|
2824
|
-
properties:
|
|
2826
|
+
function To({
|
|
2827
|
+
properties: i,
|
|
2825
2828
|
formatters: e = {},
|
|
2826
|
-
includeColumns: t = Object.keys(
|
|
2829
|
+
includeColumns: t = Object.keys(i),
|
|
2827
2830
|
locale: n = "en-US",
|
|
2828
2831
|
showColumnName: s = !0,
|
|
2829
2832
|
title: o,
|
|
2830
|
-
getColumnName:
|
|
2831
|
-
getFieldHtml: a =
|
|
2832
|
-
getTitle:
|
|
2833
|
-
getValue: d =
|
|
2833
|
+
getColumnName: r = Un,
|
|
2834
|
+
getFieldHtml: a = Rn,
|
|
2835
|
+
getTitle: l = An,
|
|
2836
|
+
getValue: d = $n
|
|
2834
2837
|
}) {
|
|
2835
|
-
const
|
|
2836
|
-
const
|
|
2837
|
-
return u + a(
|
|
2838
|
+
const c = o ? l(o) : "", m = t.reduce((u, g) => {
|
|
2839
|
+
const f = e[g], _ = i[g], h = d(_, n, f), y = s ? r(g) : "";
|
|
2840
|
+
return u + a(y, h);
|
|
2838
2841
|
}, "");
|
|
2839
|
-
return
|
|
2842
|
+
return c + m;
|
|
2840
2843
|
}
|
|
2841
|
-
function
|
|
2842
|
-
return `<h3 style="margin: 0"><strong>${
|
|
2844
|
+
function An(i) {
|
|
2845
|
+
return `<h3 style="margin: 0"><strong>${i}</strong></h3></br>`;
|
|
2843
2846
|
}
|
|
2844
|
-
function
|
|
2845
|
-
return `${
|
|
2847
|
+
function Rn(i, e) {
|
|
2848
|
+
return `${i}${e}</br>`;
|
|
2846
2849
|
}
|
|
2847
|
-
function
|
|
2850
|
+
function $n(i, e, t) {
|
|
2848
2851
|
try {
|
|
2849
|
-
return
|
|
2852
|
+
return xn(t)(i, e);
|
|
2850
2853
|
} catch {
|
|
2851
|
-
return
|
|
2854
|
+
return i;
|
|
2852
2855
|
}
|
|
2853
2856
|
}
|
|
2854
|
-
function
|
|
2855
|
-
return typeof
|
|
2857
|
+
function xn(i) {
|
|
2858
|
+
return typeof i == "function" ? i : ((i && Ye[i]) ?? Ye[ie.default]).format;
|
|
2856
2859
|
}
|
|
2857
|
-
function
|
|
2858
|
-
return `<strong>${
|
|
2860
|
+
function Un(i) {
|
|
2861
|
+
return `<strong>${i}</strong>: `;
|
|
2859
2862
|
}
|
|
2860
|
-
function
|
|
2861
|
-
var e, t, n, s, o,
|
|
2863
|
+
function Eo(i) {
|
|
2864
|
+
var e, t, n, s, o, r, a, l;
|
|
2862
2865
|
return {
|
|
2863
|
-
collapsed: (e =
|
|
2864
|
-
collapsible: (t =
|
|
2865
|
-
helperText: (n =
|
|
2866
|
-
id:
|
|
2867
|
-
legend: (s =
|
|
2868
|
-
maxZoom: (o =
|
|
2869
|
-
minZoom: (
|
|
2870
|
-
opacity:
|
|
2871
|
-
showOpacityControl: (a =
|
|
2872
|
-
switchable: (
|
|
2873
|
-
title:
|
|
2874
|
-
visible:
|
|
2866
|
+
collapsed: (e = i.legend) == null ? void 0 : e.collapsed,
|
|
2867
|
+
collapsible: (t = i.legend) == null ? void 0 : t.collapsible,
|
|
2868
|
+
helperText: (n = i.legend) == null ? void 0 : n.helperText,
|
|
2869
|
+
id: i.props.id,
|
|
2870
|
+
legend: (s = i.legend) == null ? void 0 : s.variables,
|
|
2871
|
+
maxZoom: (o = i.legend) == null ? void 0 : o.maxZoom,
|
|
2872
|
+
minZoom: (r = i.legend) == null ? void 0 : r.minZoom,
|
|
2873
|
+
opacity: i.props.opacity ?? 1,
|
|
2874
|
+
showOpacityControl: (a = i.legend) == null ? void 0 : a.opacityControl,
|
|
2875
|
+
switchable: (l = i.legend) == null ? void 0 : l.switchable,
|
|
2876
|
+
title: i.name,
|
|
2877
|
+
visible: i.props.visible ?? !0
|
|
2875
2878
|
};
|
|
2876
2879
|
}
|
|
2877
|
-
function
|
|
2878
|
-
const e =
|
|
2880
|
+
function ko(i) {
|
|
2881
|
+
const e = C(18), {
|
|
2879
2882
|
children: t,
|
|
2880
2883
|
mapId: n
|
|
2881
|
-
} =
|
|
2884
|
+
} = i;
|
|
2882
2885
|
let s;
|
|
2883
|
-
e[0] !== n ? (s = (
|
|
2886
|
+
e[0] !== n ? (s = (y) => y.viewStates[n], e[0] = n, e[1] = s) : s = e[1];
|
|
2884
2887
|
const {
|
|
2885
2888
|
zoom: o,
|
|
2886
|
-
maxZoom:
|
|
2889
|
+
maxZoom: r,
|
|
2887
2890
|
minZoom: a
|
|
2888
|
-
} =
|
|
2889
|
-
let
|
|
2890
|
-
e[2] !== n ? (
|
|
2891
|
-
const d =
|
|
2891
|
+
} = O(s);
|
|
2892
|
+
let l;
|
|
2893
|
+
e[2] !== n ? (l = (y) => y.areLayersLoaded[n], e[2] = n, e[3] = l) : l = e[3];
|
|
2894
|
+
const d = O(l), c = O(Vn), p = O(qn), m = !d;
|
|
2892
2895
|
let u;
|
|
2893
|
-
e[4] !== n || e[5] !==
|
|
2894
|
-
const
|
|
2895
|
-
let
|
|
2896
|
-
e[7] !== p || e[8] !== n ? (
|
|
2897
|
-
const
|
|
2896
|
+
e[4] !== n || e[5] !== c ? (u = (y) => c(n, y), e[4] = n, e[5] = c, e[6] = u) : u = e[6];
|
|
2897
|
+
const g = u;
|
|
2898
|
+
let f;
|
|
2899
|
+
e[7] !== p || e[8] !== n ? (f = (y) => p(n, y), e[7] = p, e[8] = n, e[9] = f) : f = e[9];
|
|
2900
|
+
const _ = f;
|
|
2898
2901
|
let h;
|
|
2899
|
-
return e[10] !== t || e[11] !==
|
|
2902
|
+
return e[10] !== t || e[11] !== r || e[12] !== a || e[13] !== m || e[14] !== g || e[15] !== _ || e[16] !== o ? (h = t({
|
|
2900
2903
|
zoom: o,
|
|
2901
|
-
maxZoom:
|
|
2904
|
+
maxZoom: r,
|
|
2902
2905
|
minZoom: a,
|
|
2903
|
-
isLoading:
|
|
2904
|
-
setZoom:
|
|
2905
|
-
flyTo:
|
|
2906
|
-
}), e[10] = t, e[11] =
|
|
2906
|
+
isLoading: m,
|
|
2907
|
+
setZoom: g,
|
|
2908
|
+
flyTo: _
|
|
2909
|
+
}), e[10] = t, e[11] = r, e[12] = a, e[13] = m, e[14] = g, e[15] = _, e[16] = o, e[17] = h) : h = e[17], h;
|
|
2907
2910
|
}
|
|
2908
|
-
function
|
|
2909
|
-
return
|
|
2911
|
+
function qn(i) {
|
|
2912
|
+
return i.flyTo;
|
|
2910
2913
|
}
|
|
2911
|
-
function
|
|
2912
|
-
return
|
|
2914
|
+
function Vn(i) {
|
|
2915
|
+
return i.setZoom;
|
|
2913
2916
|
}
|
|
2914
2917
|
export {
|
|
2915
|
-
|
|
2918
|
+
yn as ApiBaseUrl,
|
|
2916
2919
|
Ze as CONVERSIONS_UNITS,
|
|
2917
2920
|
Fe as CartoBasemapURL,
|
|
2918
2921
|
K as CartoBasemaps,
|
|
2919
|
-
|
|
2922
|
+
fo as CategoriesModel,
|
|
2920
2923
|
ps as CustomCompositeEditMode,
|
|
2921
|
-
|
|
2924
|
+
it as CustomEditableGeojsonLayer,
|
|
2922
2925
|
As as CustomMeasureAreaMode,
|
|
2923
2926
|
Rs as CustomMeasureBufferMode,
|
|
2924
2927
|
ct as CustomMeasureDistanceMode,
|
|
2925
|
-
|
|
2928
|
+
Ne as DEFAULT_LASSO_TOOLS_COLORS,
|
|
2926
2929
|
gs as DEFAULT_LASSO_TOOLS_LAYER_PROPS,
|
|
2927
2930
|
De as DEFAULT_LASSO_TOOLS_MODES,
|
|
2928
2931
|
Oe as DEFAULT_LASSO_TOOLS_PROPS,
|
|
@@ -2932,69 +2935,69 @@ export {
|
|
|
2932
2935
|
Re as DEFAULT_MEASURE_COLORS,
|
|
2933
2936
|
ds as DeckGLComponent,
|
|
2934
2937
|
Q as EditableEditType,
|
|
2935
|
-
|
|
2936
|
-
|
|
2938
|
+
mo as FeaturesModel,
|
|
2939
|
+
po as FormulaModel,
|
|
2937
2940
|
we as GmapsBasemap,
|
|
2938
|
-
|
|
2939
|
-
|
|
2940
|
-
|
|
2941
|
+
go as HistogramModel,
|
|
2942
|
+
ue as INTL_UNITS,
|
|
2943
|
+
Hs as LassoTools,
|
|
2941
2944
|
Fs as LassoToolsProvider,
|
|
2942
|
-
|
|
2943
|
-
|
|
2945
|
+
de as MAPS_BASEMAP,
|
|
2946
|
+
re as MAP_LASSO_TOOLS_LAYER_ID,
|
|
2944
2947
|
be as MAP_MASK_LAYER_ID,
|
|
2945
|
-
|
|
2948
|
+
ee as MAP_MEASURE_LAYER_ID,
|
|
2946
2949
|
Us as MEASUREMENT_TOOLS_UNITS_AREA,
|
|
2947
2950
|
Ke as MEASUREMENT_TOOLS_UNITS_DISTANCE,
|
|
2948
2951
|
z as MEASUREMENT_TOOLS_UNITS_DISTANCE_VALUES,
|
|
2949
|
-
|
|
2952
|
+
uo as MapComponent,
|
|
2950
2953
|
$e as MapMeasurementUnitAuto,
|
|
2951
2954
|
xs as MapMeasurementUnitTurf,
|
|
2952
|
-
|
|
2953
|
-
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
|
|
2957
|
-
|
|
2958
|
-
|
|
2959
|
-
|
|
2960
|
-
|
|
2961
|
-
|
|
2962
|
-
|
|
2955
|
+
_s as MapProvider,
|
|
2956
|
+
bo as MapsProvider,
|
|
2957
|
+
X as MapsTypes,
|
|
2958
|
+
on as MeasurementTools,
|
|
2959
|
+
Qs as MeasurementToolsProvider,
|
|
2960
|
+
yo as RangeModel,
|
|
2961
|
+
ho as ScatterModel,
|
|
2962
|
+
So as TableModel,
|
|
2963
|
+
vo as TimeSeriesModel,
|
|
2964
|
+
ko as ZoomControls,
|
|
2965
|
+
hn as clientID,
|
|
2963
2966
|
Ge as convertMetersTo,
|
|
2964
2967
|
ws as createLassoToolsStore,
|
|
2965
|
-
|
|
2966
|
-
|
|
2967
|
-
|
|
2968
|
+
Ls as createMapStore,
|
|
2969
|
+
zs as createMeasurementToolsStore,
|
|
2970
|
+
ie as formatterTypes,
|
|
2968
2971
|
ts as getCursorDefault,
|
|
2969
|
-
|
|
2972
|
+
co as getDeckController,
|
|
2970
2973
|
Ps as getLassoToolsLayer,
|
|
2971
|
-
|
|
2974
|
+
Bs as getMeasurementToolsLayer,
|
|
2972
2975
|
Me as getTextLayerFormattedDistance,
|
|
2973
2976
|
ss as getTooltipDefault,
|
|
2974
|
-
|
|
2975
|
-
|
|
2977
|
+
Eo as mappingLegendMeridian,
|
|
2978
|
+
To as objectToHtml,
|
|
2976
2979
|
mt as sortLayers,
|
|
2977
2980
|
hs as transitionFlyConfig,
|
|
2978
|
-
|
|
2981
|
+
Mn as useCategories,
|
|
2979
2982
|
ut as useEventManager,
|
|
2980
|
-
|
|
2983
|
+
Ln as useFeatures,
|
|
2981
2984
|
_n as useFormula,
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
|
|
2985
|
+
Tn as useHistogram,
|
|
2986
|
+
Fn as useLassoToolsSpatialFilter,
|
|
2987
|
+
H as useLassoToolsState,
|
|
2988
|
+
ce as useLayerStore,
|
|
2989
|
+
rn as useLayers,
|
|
2990
|
+
Mo as useLegend,
|
|
2991
|
+
Lo as useMapScreenshot,
|
|
2992
|
+
O as useMapStore,
|
|
2993
|
+
I as useMeasurementToolsState,
|
|
2994
|
+
En as useRange,
|
|
2995
|
+
kn as useScatter,
|
|
2996
|
+
Sn as useSourceStore,
|
|
2994
2997
|
_o as useSpatialFilter,
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
|
|
2998
|
-
|
|
2998
|
+
Pn as useTable,
|
|
2999
|
+
Cn as useTimeSeries,
|
|
3000
|
+
wn as useViewportSpatialFilter,
|
|
3001
|
+
oe as useWidgetModel
|
|
2999
3002
|
};
|
|
3000
3003
|
//# sourceMappingURL=index.js.map
|