@carto/ps-react-maps 3.1.0-canary.2 → 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
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
|
|
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,31 +35,31 @@ 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({
|
|
@@ -78,23 +78,23 @@ function ss(i) {
|
|
|
78
78
|
} : null;
|
|
79
79
|
}
|
|
80
80
|
function ns(i) {
|
|
81
|
-
const e =
|
|
82
|
-
let t, n, s, o, r, a,
|
|
81
|
+
const e = C(42);
|
|
82
|
+
let t, n, s, o, r, a, l, d, c, p, m, u;
|
|
83
83
|
e[0] !== i ? ({
|
|
84
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
|
-
} = i, e[0] = i, e[1] = t, e[2] = n, e[3] = s, e[4] = o, e[5] = r, e[6] = a, e[7] =
|
|
97
|
-
let g,
|
|
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
98
|
e[13] !== d ? (g = () => {
|
|
99
99
|
d({
|
|
100
100
|
type: "load",
|
|
@@ -103,34 +103,34 @@ function ns(i) {
|
|
|
103
103
|
type: "deckgl",
|
|
104
104
|
value: !1
|
|
105
105
|
});
|
|
106
|
-
},
|
|
107
|
-
let
|
|
108
|
-
e[16] !== a ? (
|
|
109
|
-
const
|
|
110
|
-
let
|
|
111
|
-
e[18] !== d ? (
|
|
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
|
+
let v;
|
|
111
|
+
e[18] !== d ? (v = () => d({
|
|
112
112
|
type: "deckgl",
|
|
113
113
|
value: !0
|
|
114
|
-
}), e[18] = d, e[19] =
|
|
115
|
-
let
|
|
116
|
-
e[20] !==
|
|
114
|
+
}), e[18] = d, e[19] = v) : v = e[19];
|
|
115
|
+
let S;
|
|
116
|
+
e[20] !== m ? (S = {
|
|
117
117
|
depthTest: !1,
|
|
118
|
-
...
|
|
119
|
-
}, e[20] =
|
|
120
|
-
let
|
|
121
|
-
e[22] !== p ? (
|
|
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
122
|
let T;
|
|
123
123
|
e[24] !== d ? (T = () => d({
|
|
124
124
|
type: "load",
|
|
125
125
|
value: !0
|
|
126
126
|
}), e[24] = d, e[25] = T) : T = e[25];
|
|
127
|
-
let
|
|
128
|
-
e[26] !==
|
|
129
|
-
let
|
|
130
|
-
return e[29] !==
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
] }) }) }), e[29] =
|
|
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
136
|
const i = document.querySelector(".maplibregl-compact-show");
|
|
@@ -147,7 +147,7 @@ function rs(i) {
|
|
|
147
147
|
return !!(i != null && i.type);
|
|
148
148
|
}
|
|
149
149
|
function as(i) {
|
|
150
|
-
const e =
|
|
150
|
+
const e = C(3), {
|
|
151
151
|
overlayRef: t
|
|
152
152
|
} = i, {
|
|
153
153
|
default: n
|
|
@@ -156,22 +156,22 @@ function as(i) {
|
|
|
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
158
|
const ls = (i) => {
|
|
159
|
-
const e =
|
|
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
165
|
let r, a;
|
|
166
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
|
|
168
|
-
e[3] !== o ? (
|
|
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] !== i ? (
|
|
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
173
|
s.setProps(i);
|
|
174
|
-
}, p = [s, i], e[6] = i, e[7] =
|
|
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
177
|
id: i,
|
|
@@ -186,12 +186,12 @@ function cs({
|
|
|
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:
|
|
206
|
-
props:
|
|
207
|
-
}) => new S
|
|
204
|
+
const m = te(() => n.filter((v) => !!(v != null && v.type)).map(({
|
|
205
|
+
type: v,
|
|
206
|
+
props: S
|
|
207
|
+
}) => new v(S)), [n]), u = G(({
|
|
208
208
|
detail: {
|
|
209
|
-
center:
|
|
210
|
-
zoom:
|
|
211
|
-
heading:
|
|
209
|
+
center: v,
|
|
210
|
+
zoom: S,
|
|
211
|
+
heading: M,
|
|
212
212
|
tilt: T
|
|
213
213
|
}
|
|
214
214
|
}) => ({
|
|
215
|
-
latitude:
|
|
216
|
-
longitude:
|
|
217
|
-
zoom:
|
|
218
|
-
bearing:
|
|
215
|
+
latitude: v.lat,
|
|
216
|
+
longitude: v.lng,
|
|
217
|
+
zoom: S - 1,
|
|
218
|
+
bearing: M,
|
|
219
219
|
pitch: T
|
|
220
|
-
}), []), g = G((
|
|
221
|
-
const
|
|
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
|
-
},
|
|
223
|
+
...M == null ? void 0 : M.viewState,
|
|
224
|
+
...v
|
|
225
|
+
}, D = {
|
|
226
226
|
latitude: T.latitude,
|
|
227
227
|
longitude: T.longitude,
|
|
228
228
|
zoom: T.zoom,
|
|
229
229
|
pitch: T.pitch,
|
|
230
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", ...r, center: {
|
|
243
|
-
lat: ((
|
|
244
|
-
lng: ((
|
|
245
|
-
}, zoom: (((
|
|
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
249
|
}), g(p.initialViewState);
|
|
250
|
-
}, onBoundsChanged: (
|
|
251
|
-
/* @__PURE__ */ N(us, { overlayRef: a }),
|
|
252
|
-
/* @__PURE__ */ N(ls, { id: i, instanceRef: e, layers:
|
|
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,62 +257,63 @@ 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
264
|
function us(i) {
|
|
265
|
-
const e =
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
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;
|
|
270
271
|
}
|
|
271
272
|
function ds(i) {
|
|
272
|
-
const e =
|
|
273
|
-
let t, n, s, o, r, a,
|
|
273
|
+
const e = C(46);
|
|
274
|
+
let t, n, s, o, r, a, l, d, c, p, m, u;
|
|
274
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
|
...r
|
|
287
|
-
} = i, e[0] = i, e[1] = t, e[2] = n, e[3] = s, e[4] = o, e[5] = r, e[6] = a, e[7] =
|
|
288
|
-
const g = a === void 0 ? K.positron : a,
|
|
289
|
-
let
|
|
290
|
-
e[13] !==
|
|
291
|
-
const
|
|
292
|
-
let
|
|
293
|
-
e[15] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
294
|
-
const [T,
|
|
295
|
-
let
|
|
296
|
-
e[16] !== T ? (
|
|
297
|
-
const
|
|
298
|
-
url:
|
|
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;
|
|
290
|
+
let h;
|
|
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;
|
|
293
|
+
let M;
|
|
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: $,
|
|
299
300
|
type: j
|
|
300
|
-
} =
|
|
301
|
-
let
|
|
302
|
-
e[18] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
303
|
-
const
|
|
304
|
-
|
|
305
|
-
}, e[18] =
|
|
306
|
-
const
|
|
307
|
-
let
|
|
308
|
-
if (e[19] !==
|
|
309
|
-
s == null || s(
|
|
310
|
-
},
|
|
311
|
-
let
|
|
312
|
-
return e[23] !== g || e[24] !==
|
|
313
|
-
}
|
|
314
|
-
let
|
|
315
|
-
return e[35] !==
|
|
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;
|
|
316
317
|
}
|
|
317
318
|
function fs(i) {
|
|
318
319
|
return i;
|
|
@@ -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,7 +404,7 @@ 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
409
|
setLayer: (e, t) => i((n) => {
|
|
409
410
|
var a;
|
|
@@ -417,7 +418,7 @@ const ae = "lassoLayer", be = "maskLayer", gs = {
|
|
|
417
418
|
const o = s[e] ?? {
|
|
418
419
|
type: null,
|
|
419
420
|
props: {}
|
|
420
|
-
}, r = [...o.props.extensions ?? [], ...((a = t.props) == null ? void 0 : a.extensions) ?? []].reduce((
|
|
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,
|
|
@@ -461,12 +462,12 @@ const ae = "lassoLayer", be = "maskLayer", gs = {
|
|
|
461
462
|
return (t, n) => ({
|
|
462
463
|
maps: e,
|
|
463
464
|
setBasemap: (s, o) => t((r) => {
|
|
464
|
-
var
|
|
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,
|
|
@@ -492,8 +493,8 @@ const ae = "lassoLayer", be = "maskLayer", gs = {
|
|
|
492
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 r = (
|
|
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
|
|
@@ -509,14 +510,14 @@ const ae = "lassoLayer", be = "maskLayer", gs = {
|
|
|
509
510
|
},
|
|
510
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
516
|
addLayers: (s, o) => t((r) => {
|
|
516
|
-
var
|
|
517
|
+
var c;
|
|
517
518
|
const a = {
|
|
518
519
|
...r.maps
|
|
519
|
-
},
|
|
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]
|
|
@@ -528,10 +529,10 @@ const ae = "lassoLayer", be = "maskLayer", gs = {
|
|
|
528
529
|
var d;
|
|
529
530
|
const a = {
|
|
530
531
|
...r.maps
|
|
531
|
-
},
|
|
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
|
};
|
|
@@ -565,9 +566,9 @@ const ae = "lassoLayer", be = "maskLayer", gs = {
|
|
|
565
566
|
const o = n();
|
|
566
567
|
if (!((a = o.maps[s]) != null && a.isLoaded)) return;
|
|
567
568
|
const r = new Ut(o.viewStates[s]);
|
|
568
|
-
t((
|
|
569
|
+
t((l) => ({
|
|
569
570
|
viewports: {
|
|
570
|
-
...
|
|
571
|
+
...l.viewports,
|
|
571
572
|
[s]: r
|
|
572
573
|
}
|
|
573
574
|
}));
|
|
@@ -614,11 +615,11 @@ const ae = "lassoLayer", be = "maskLayer", gs = {
|
|
|
614
615
|
fitBounds: (t, n, s) => {
|
|
615
616
|
const o = e(), r = o.getViewport(t);
|
|
616
617
|
if (!r) return;
|
|
617
|
-
const
|
|
618
|
+
const l = {
|
|
618
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,34 +627,34 @@ 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
|
+
}), Ls = (i) => Ve()((...e) => ({
|
|
636
637
|
...Ss(i)(...e),
|
|
637
638
|
...vs(i)(...e),
|
|
638
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] =
|
|
648
|
+
e[0] !== n ? (s = Ls(n), e[0] = n, e[1] = s) : s = e[1];
|
|
649
|
+
const [o] = se(s);
|
|
649
650
|
let r;
|
|
650
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
659
|
function Ts(i) {
|
|
659
660
|
return i && i.__esModule && Object.prototype.hasOwnProperty.call(i, "default") ? i.default : i;
|
|
@@ -662,77 +663,77 @@ var Ae, He;
|
|
|
662
663
|
function Es() {
|
|
663
664
|
if (He) return Ae;
|
|
664
665
|
He = 1;
|
|
665
|
-
var i = function(
|
|
666
|
-
return e(
|
|
666
|
+
var i = function(y) {
|
|
667
|
+
return e(y) && !t(y);
|
|
667
668
|
};
|
|
668
|
-
function e(
|
|
669
|
-
return !!
|
|
669
|
+
function e(h) {
|
|
670
|
+
return !!h && typeof h == "object";
|
|
670
671
|
}
|
|
671
|
-
function t(
|
|
672
|
-
var
|
|
673
|
-
return
|
|
672
|
+
function t(h) {
|
|
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
|
-
function o(
|
|
677
|
-
return
|
|
677
|
+
function o(h) {
|
|
678
|
+
return h.$$typeof === s;
|
|
678
679
|
}
|
|
679
|
-
function r(
|
|
680
|
-
return Array.isArray(
|
|
680
|
+
function r(h) {
|
|
681
|
+
return Array.isArray(h) ? [] : {};
|
|
681
682
|
}
|
|
682
|
-
function a(
|
|
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
|
|
687
|
-
return a(
|
|
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(
|
|
691
|
-
if (!
|
|
692
|
-
return
|
|
693
|
-
var b =
|
|
694
|
-
return typeof b == "function" ? b :
|
|
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(
|
|
698
|
-
return Object.propertyIsEnumerable.call(
|
|
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
|
-
function p(
|
|
702
|
-
return Object.keys(
|
|
702
|
+
function p(h) {
|
|
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(
|
|
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 g(
|
|
715
|
-
var
|
|
716
|
-
return b.isMergeableObject(
|
|
717
|
-
S
|
|
718
|
-
}), p(
|
|
719
|
-
u(
|
|
720
|
-
}),
|
|
715
|
+
function g(h, y, b) {
|
|
716
|
+
var v = {};
|
|
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));
|
|
721
|
+
}), v;
|
|
721
722
|
}
|
|
722
|
-
function
|
|
723
|
-
b = b || {}, b.arrayMerge = b.arrayMerge ||
|
|
724
|
-
var
|
|
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"];
|
|
@@ -774,15 +775,13 @@ class it extends wt {
|
|
|
774
775
|
}
|
|
775
776
|
function Ps({
|
|
776
777
|
mode: i,
|
|
777
|
-
|
|
778
|
-
...t
|
|
778
|
+
...e
|
|
779
779
|
}) {
|
|
780
|
-
const
|
|
780
|
+
const t = Cs(e);
|
|
781
781
|
return {
|
|
782
782
|
type: it,
|
|
783
783
|
props: {
|
|
784
|
-
...
|
|
785
|
-
eventManager: e,
|
|
784
|
+
...t,
|
|
786
785
|
mode: i
|
|
787
786
|
}
|
|
788
787
|
};
|
|
@@ -810,7 +809,7 @@ function Cs({
|
|
|
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
814
|
return le(r, o);
|
|
816
815
|
}
|
|
@@ -820,16 +819,16 @@ const ws = (i) => Ve()((e) => ({
|
|
|
820
819
|
enabled: o = !1,
|
|
821
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
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) => {
|
|
@@ -848,11 +847,11 @@ const ws = (i) => Ve()((e) => ({
|
|
|
848
847
|
e((r) => {
|
|
849
848
|
const a = {
|
|
850
849
|
...r.data[n].values
|
|
851
|
-
},
|
|
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], {
|
|
@@ -870,15 +869,15 @@ const ws = (i) => Ve()((e) => ({
|
|
|
870
869
|
e((r) => {
|
|
871
870
|
const a = {
|
|
872
871
|
...r.data[n].values
|
|
873
|
-
},
|
|
874
|
-
return
|
|
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
|
}
|
|
@@ -909,65 +908,65 @@ const ws = (i) => Ve()((e) => ({
|
|
|
909
908
|
}
|
|
910
909
|
})), rt = Ue({});
|
|
911
910
|
function Fs(i) {
|
|
912
|
-
const e =
|
|
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] =
|
|
917
|
+
const [o] = se(s);
|
|
919
918
|
let r;
|
|
920
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
|
|
921
|
+
function H(i) {
|
|
923
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
928
|
mapId: i,
|
|
930
929
|
children: e
|
|
931
930
|
}) {
|
|
932
|
-
const t =
|
|
931
|
+
const t = H((u) => {
|
|
933
932
|
var g;
|
|
934
933
|
return (g = u.data[i]) == null ? void 0 : g.enabled;
|
|
935
|
-
}), n =
|
|
934
|
+
}), n = H((u) => u.setEnabled), s = H((u) => {
|
|
936
935
|
var g;
|
|
937
936
|
return (g = u.data[i]) == null ? void 0 : g.values;
|
|
938
|
-
}), o =
|
|
937
|
+
}), o = H((u) => u.setValue), r = H((u) => u.setVisibility), a = H((u) => {
|
|
939
938
|
var g;
|
|
940
939
|
return (g = u.data[i]) == null ? void 0 : g.modeSelected;
|
|
941
|
-
}),
|
|
940
|
+
}), l = H((u) => u.setModeSelected), d = H((u) => {
|
|
942
941
|
var g;
|
|
943
942
|
return (g = u.data[i]) == null ? void 0 : g.modes;
|
|
944
|
-
}),
|
|
943
|
+
}), c = H((u) => u.setModeInstance);
|
|
945
944
|
B(() => {
|
|
946
945
|
const u = d[a];
|
|
947
946
|
if (u && t) {
|
|
948
947
|
const g = u.mode;
|
|
949
|
-
|
|
948
|
+
c(i, new g());
|
|
950
949
|
}
|
|
951
|
-
}, [t, i, a, d,
|
|
950
|
+
}, [t, i, a, d, c]);
|
|
952
951
|
const [
|
|
953
952
|
p
|
|
954
953
|
// , draw
|
|
955
|
-
] =
|
|
956
|
-
const u = (
|
|
957
|
-
var
|
|
954
|
+
] = te(() => {
|
|
955
|
+
const u = (_) => {
|
|
956
|
+
var h;
|
|
958
957
|
return {
|
|
959
|
-
id:
|
|
960
|
-
visible:
|
|
961
|
-
label: (
|
|
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(i, !!u),
|
|
970
|
-
}, [i, n,
|
|
967
|
+
}, [s]), m = G((u) => {
|
|
968
|
+
n(i, !!u), l(i, u);
|
|
969
|
+
}, [i, n, l]);
|
|
971
970
|
return e({
|
|
972
971
|
mapId: i,
|
|
973
972
|
enabled: t,
|
|
@@ -980,7 +979,7 @@ function Os({
|
|
|
980
979
|
setValue: G((u) => o(i, u), [i, o]),
|
|
981
980
|
setEnabled: G((u) => n(i, u), [i, n]),
|
|
982
981
|
setVisibility: G((u, g) => r(i, u, g), [i, r]),
|
|
983
|
-
setModeSelected:
|
|
982
|
+
setModeSelected: m
|
|
984
983
|
});
|
|
985
984
|
}
|
|
986
985
|
function at({
|
|
@@ -992,7 +991,7 @@ const Ds = Ht({
|
|
|
992
991
|
length: Bt
|
|
993
992
|
});
|
|
994
993
|
function Ge(i, e) {
|
|
995
|
-
return Ds(i).from(Ze[
|
|
994
|
+
return Ds(i).from(Ze[q.meter]).to(Ze[e]);
|
|
996
995
|
}
|
|
997
996
|
const ze = 1e4;
|
|
998
997
|
function Me({
|
|
@@ -1007,16 +1006,16 @@ function Me({
|
|
|
1007
1006
|
}
|
|
1008
1007
|
}) {
|
|
1009
1008
|
const o = e === $e["m-km"], r = e === $e["ft-mi"], a = o || r;
|
|
1010
|
-
let
|
|
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,7 +1023,7 @@ function Me({
|
|
|
1024
1023
|
...s
|
|
1025
1024
|
})}`;
|
|
1026
1025
|
}
|
|
1027
|
-
function
|
|
1026
|
+
function co(i, {
|
|
1028
1027
|
hasDoubleClickZoom: e
|
|
1029
1028
|
}) {
|
|
1030
1029
|
return typeof i == "boolean" ? {
|
|
@@ -1059,10 +1058,10 @@ function lt(i, 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
|
});
|
|
@@ -1073,7 +1072,7 @@ class As extends Ft {
|
|
|
1073
1072
|
picks: s
|
|
1074
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
1078
|
}), this.isFinalizedEdition(r, o) ? this.finalizeEdition(n) : a && n.onEdit({
|
|
@@ -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() {
|
|
@@ -1128,7 +1127,7 @@ class As extends Ft {
|
|
|
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",
|
|
@@ -1435,44 +1434,46 @@ const oe = "mapMeasureLayer", $s = {
|
|
|
1435
1434
|
area: Us
|
|
1436
1435
|
};
|
|
1437
1436
|
function ut(i) {
|
|
1438
|
-
const e =
|
|
1439
|
-
mapId: t
|
|
1437
|
+
const e = C(12), {
|
|
1438
|
+
mapId: t,
|
|
1439
|
+
layerId: n
|
|
1440
1440
|
} = i;
|
|
1441
|
-
let
|
|
1442
|
-
e[0] !== t ? (
|
|
1443
|
-
var
|
|
1444
|
-
return (
|
|
1445
|
-
}, e[0] = t, e[1] =
|
|
1446
|
-
const
|
|
1447
|
-
let
|
|
1448
|
-
e[2] !== t ? (
|
|
1449
|
-
var
|
|
1450
|
-
return (
|
|
1451
|
-
}, e[2] = t, e[3] =
|
|
1452
|
-
const
|
|
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
1472
|
function js(i) {
|
|
1472
1473
|
return i.getOverlayInstance;
|
|
1473
1474
|
}
|
|
1474
|
-
const Ns = [
|
|
1475
|
-
function
|
|
1475
|
+
const Ns = [re, be, ee];
|
|
1476
|
+
function Hs({
|
|
1476
1477
|
children: i,
|
|
1477
1478
|
mapId: e,
|
|
1478
1479
|
defaultProps: {
|
|
@@ -1485,157 +1486,157 @@ function Is({
|
|
|
1485
1486
|
layerProps: s = {},
|
|
1486
1487
|
defaultType: o = "mask"
|
|
1487
1488
|
}) {
|
|
1488
|
-
const r =
|
|
1489
|
+
const r = H((L) => {
|
|
1489
1490
|
var E;
|
|
1490
|
-
return (E =
|
|
1491
|
-
}), a =
|
|
1491
|
+
return (E = L.data[e]) == null ? void 0 : E.enabled;
|
|
1492
|
+
}), a = H((L) => L.setEnabled), l = H((L) => {
|
|
1492
1493
|
var E;
|
|
1493
|
-
return (E =
|
|
1494
|
-
}), d =
|
|
1494
|
+
return (E = L.data[e]) == null ? void 0 : E.values;
|
|
1495
|
+
}), d = H((L) => L.setValue), c = H((L) => {
|
|
1495
1496
|
var E;
|
|
1496
|
-
return (E =
|
|
1497
|
-
}), p =
|
|
1497
|
+
return (E = L.data[e]) == null ? void 0 : E.modeInstance;
|
|
1498
|
+
}), p = H((L) => {
|
|
1498
1499
|
var E;
|
|
1499
|
-
return (E =
|
|
1500
|
-
}),
|
|
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) => {
|
|
1501
1502
|
var E;
|
|
1502
|
-
return (E =
|
|
1503
|
-
})),
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
})
|
|
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
|
-
g(e, [
|
|
1530
|
+
w();
|
|
1531
|
+
}, [w]);
|
|
1532
|
+
const x = ve(y.length);
|
|
1533
|
+
B(() => (u(e, [re]), () => {
|
|
1534
|
+
g(e, [re]);
|
|
1531
1535
|
}), [u, e, g]);
|
|
1532
|
-
const
|
|
1533
|
-
|
|
1534
|
-
}, [e,
|
|
1535
|
-
editType:
|
|
1536
|
+
const $ = G(() => {
|
|
1537
|
+
w(), D([]), a(e, !1);
|
|
1538
|
+
}, [e, w, a]), j = G(({
|
|
1539
|
+
editType: L,
|
|
1536
1540
|
updatedData: E
|
|
1537
1541
|
}) => {
|
|
1538
|
-
if (
|
|
1539
|
-
|
|
1542
|
+
if (L === Q.cancel) {
|
|
1543
|
+
$();
|
|
1540
1544
|
return;
|
|
1541
1545
|
}
|
|
1542
|
-
|
|
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
|
|
1559
|
+
const L = r, {
|
|
1556
1560
|
border: E,
|
|
1557
|
-
point:
|
|
1558
|
-
fill:
|
|
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:
|
|
1583
|
+
fill: F,
|
|
1580
1584
|
outline: E
|
|
1581
1585
|
},
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
mode: _ ? 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: (E) => Number(
|
|
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 E = (
|
|
1606
|
-
r && (
|
|
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: !r &&
|
|
1615
|
+
maskId: !r && v.length ? be : void 0
|
|
1613
1616
|
}
|
|
1614
1617
|
});
|
|
1615
1618
|
});
|
|
1616
|
-
}, [r,
|
|
1619
|
+
}, [r, _, e, f, v.length, m]), i;
|
|
1617
1620
|
}
|
|
1618
|
-
|
|
1619
|
-
function
|
|
1621
|
+
Hs.Controls = Os;
|
|
1622
|
+
function Bs({
|
|
1620
1623
|
mode: i,
|
|
1621
|
-
|
|
1622
|
-
...t
|
|
1624
|
+
...e
|
|
1623
1625
|
}) {
|
|
1624
|
-
const
|
|
1626
|
+
const t = Gs({
|
|
1625
1627
|
mode: i,
|
|
1626
|
-
...
|
|
1628
|
+
...e
|
|
1627
1629
|
});
|
|
1628
1630
|
return {
|
|
1629
1631
|
type: it,
|
|
1630
1632
|
props: {
|
|
1631
|
-
...
|
|
1632
|
-
eventManager: e,
|
|
1633
|
+
...t,
|
|
1633
1634
|
mode: i,
|
|
1634
1635
|
data: []
|
|
1635
1636
|
}
|
|
1636
1637
|
};
|
|
1637
1638
|
}
|
|
1638
|
-
function
|
|
1639
|
+
function Gs({
|
|
1639
1640
|
mode: i,
|
|
1640
1641
|
layerProps: e,
|
|
1641
1642
|
locale: t,
|
|
@@ -1644,14 +1645,14 @@ function Bs({
|
|
|
1644
1645
|
onEdit: o,
|
|
1645
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,21 +1669,21 @@ 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
1674
|
return (u = i == null ? void 0 : i.getTooltipText) == null ? void 0 : u.call(i, {
|
|
1674
|
-
meters:
|
|
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
1689
|
getLineColor: r,
|
|
@@ -1692,34 +1693,34 @@ function Bs({
|
|
|
1692
1693
|
getEditHandlePointColor: a,
|
|
1693
1694
|
getEditHandlePointOutlineColor: r
|
|
1694
1695
|
});
|
|
1695
|
-
return le(
|
|
1696
|
+
return le(c, d);
|
|
1696
1697
|
}
|
|
1697
|
-
const
|
|
1698
|
+
const zs = (i) => Ve()((e) => ({
|
|
1698
1699
|
measurements: i.reduce((n, s) => {
|
|
1699
1700
|
const {
|
|
1700
1701
|
mapId: o,
|
|
1701
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
1710
|
unit: g = $e["m-km"],
|
|
1710
|
-
enabled:
|
|
1711
|
+
enabled: f = !1
|
|
1711
1712
|
} = s;
|
|
1712
1713
|
return n[o] = {
|
|
1713
1714
|
modes: a,
|
|
1714
|
-
units:
|
|
1715
|
+
units: l,
|
|
1715
1716
|
modeSelected: r,
|
|
1716
1717
|
distance: d,
|
|
1717
|
-
finished:
|
|
1718
|
+
finished: c,
|
|
1718
1719
|
locale: p,
|
|
1719
|
-
positions:
|
|
1720
|
+
positions: m,
|
|
1720
1721
|
unit: g,
|
|
1721
1722
|
clearLayerOnStart: u,
|
|
1722
|
-
enabled:
|
|
1723
|
+
enabled: f
|
|
1723
1724
|
}, n;
|
|
1724
1725
|
}, {}),
|
|
1725
1726
|
mode: ct,
|
|
@@ -1812,147 +1813,147 @@ const Gs = (i) => 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] =
|
|
1822
|
+
e[0] !== n ? (s = zs(n), e[0] = n, e[1] = s) : s = e[1];
|
|
1823
|
+
const [o] = se(s);
|
|
1823
1824
|
let r;
|
|
1824
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
1833
|
function ft(i) {
|
|
1833
|
-
const e =
|
|
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 r =
|
|
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 =
|
|
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);
|
|
1851
1852
|
let g;
|
|
1852
1853
|
e[11] !== t ? (g = (k) => k.measurements[t].enabled, e[11] = t, e[12] = g) : g = e[12];
|
|
1853
|
-
const
|
|
1854
|
-
let
|
|
1855
|
-
e[13] !==
|
|
1856
|
-
const
|
|
1854
|
+
const f = I(g), _ = I(en);
|
|
1855
|
+
let h;
|
|
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;
|
|
1857
1858
|
let b;
|
|
1858
1859
|
e[16] !== t ? (b = (k) => k.measurements[t].modeSelected, e[16] = t, e[17] = b) : b = e[17];
|
|
1859
|
-
const
|
|
1860
|
-
let
|
|
1861
|
-
e[18] !==
|
|
1862
|
-
|
|
1863
|
-
}, e[18] =
|
|
1864
|
-
const T =
|
|
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] !== E || e[30] !== t ? (C = (k) => E(t, k), e[29] = E, e[30] = t, e[31] = C) : C = e[31];
|
|
1876
|
-
const w = C;
|
|
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
1909
|
units: r,
|
|
1909
|
-
distance:
|
|
1910
|
+
distance: l,
|
|
1910
1911
|
clearLayerOnStart: u,
|
|
1911
|
-
modeSelected:
|
|
1912
|
-
enabled:
|
|
1913
|
-
finished:
|
|
1914
|
-
locale:
|
|
1915
|
-
modeInstance:
|
|
1916
|
-
positions:
|
|
1912
|
+
modeSelected: v,
|
|
1913
|
+
enabled: f,
|
|
1914
|
+
finished: w,
|
|
1915
|
+
locale: E,
|
|
1916
|
+
modeInstance: P,
|
|
1917
|
+
positions: Le,
|
|
1917
1918
|
unit: Te,
|
|
1918
1919
|
setDistance: p,
|
|
1919
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
|
+
function Zs(i) {
|
|
1931
1932
|
return i.setUnit;
|
|
1932
1933
|
}
|
|
1933
|
-
function
|
|
1934
|
+
function Ks(i) {
|
|
1934
1935
|
return i.setPositions;
|
|
1935
1936
|
}
|
|
1936
|
-
function
|
|
1937
|
+
function Ws(i) {
|
|
1937
1938
|
return i.setModeInstance;
|
|
1938
1939
|
}
|
|
1939
|
-
function
|
|
1940
|
+
function Ys(i) {
|
|
1940
1941
|
return i.setLocale;
|
|
1941
1942
|
}
|
|
1942
|
-
function
|
|
1943
|
+
function Xs(i) {
|
|
1943
1944
|
return i.setFinished;
|
|
1944
1945
|
}
|
|
1945
|
-
function
|
|
1946
|
+
function Js(i) {
|
|
1946
1947
|
return i.setModeSelected;
|
|
1947
1948
|
}
|
|
1948
|
-
function
|
|
1949
|
+
function en(i) {
|
|
1949
1950
|
return i.setEnabled;
|
|
1950
1951
|
}
|
|
1951
|
-
function
|
|
1952
|
+
function tn(i) {
|
|
1952
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
|
|
@@ -1964,76 +1965,76 @@ function tn(i) {
|
|
|
1964
1965
|
const {
|
|
1965
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
1974
|
setEnabled: g,
|
|
1974
|
-
finished:
|
|
1975
|
-
setFinished:
|
|
1976
|
-
locale:
|
|
1977
|
-
setLocale:
|
|
1975
|
+
finished: f,
|
|
1976
|
+
setFinished: _,
|
|
1977
|
+
locale: h,
|
|
1978
|
+
setLocale: y,
|
|
1978
1979
|
modeInstance: b,
|
|
1979
|
-
setModeInstance:
|
|
1980
|
-
positions:
|
|
1981
|
-
setPositions:
|
|
1980
|
+
setModeInstance: v,
|
|
1981
|
+
positions: S,
|
|
1982
|
+
setPositions: M,
|
|
1982
1983
|
unit: T,
|
|
1983
|
-
setUnit:
|
|
1984
|
-
clearLayer:
|
|
1985
|
-
toggleLayer:
|
|
1984
|
+
setUnit: D,
|
|
1985
|
+
clearLayer: w,
|
|
1986
|
+
toggleLayer: x
|
|
1986
1987
|
} = ft(o);
|
|
1987
|
-
let
|
|
1988
|
-
e[2] !== p || e[3] !== r || e[4] !==
|
|
1988
|
+
let $;
|
|
1989
|
+
e[2] !== p || e[3] !== r || e[4] !== v || e[5] !== M ? ($ = () => {
|
|
1989
1990
|
if (p && r[p]) {
|
|
1990
|
-
const
|
|
1991
|
-
|
|
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] = r, e[4] =
|
|
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] !== r || e[9] !== g || e[10] !==
|
|
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
|
-
locale:
|
|
2011
|
-
positions:
|
|
2010
|
+
finished: f,
|
|
2011
|
+
locale: h,
|
|
2012
|
+
positions: S,
|
|
2012
2013
|
unit: T,
|
|
2013
|
-
clearLayerOnStart:
|
|
2014
|
+
clearLayerOnStart: F,
|
|
2014
2015
|
modeSelected: p,
|
|
2015
2016
|
modes: r,
|
|
2016
2017
|
units: a,
|
|
2017
2018
|
value: Me({
|
|
2018
|
-
meters:
|
|
2019
|
+
meters: l,
|
|
2019
2020
|
unit: T,
|
|
2020
|
-
locale:
|
|
2021
|
+
locale: h,
|
|
2021
2022
|
options: n
|
|
2022
2023
|
}),
|
|
2023
2024
|
modeInstance: b,
|
|
2024
|
-
setModeSelected:
|
|
2025
|
+
setModeSelected: m,
|
|
2025
2026
|
setDistance: d,
|
|
2026
|
-
setFinished:
|
|
2027
|
-
setLocale:
|
|
2028
|
-
setPositions:
|
|
2029
|
-
setUnit:
|
|
2027
|
+
setFinished: _,
|
|
2028
|
+
setLocale: y,
|
|
2029
|
+
setPositions: M,
|
|
2030
|
+
setUnit: D,
|
|
2030
2031
|
setEnabled: g,
|
|
2031
|
-
toggleLayer:
|
|
2032
|
-
clearLayer:
|
|
2033
|
-
}), e[18] = s, e[19] =
|
|
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
|
|
2036
|
+
const nn = [ee];
|
|
2037
|
+
function on({
|
|
2037
2038
|
children: i,
|
|
2038
2039
|
mapId: e,
|
|
2039
2040
|
defaultProps: {
|
|
@@ -2048,98 +2049,98 @@ function nn({
|
|
|
2048
2049
|
setDistance: o,
|
|
2049
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
|
-
}), g =
|
|
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: S
|
|
2107
|
+
textOptions: s
|
|
2107
2108
|
});
|
|
2108
|
-
g(
|
|
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
|
+
} = O(n), o = ce(ln);
|
|
2121
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
2128
|
return r = a, r;
|
|
2128
2129
|
}
|
|
2129
|
-
function
|
|
2130
|
+
function an(i) {
|
|
2130
2131
|
return !!i;
|
|
2131
2132
|
}
|
|
2132
|
-
function
|
|
2133
|
+
function ln(i) {
|
|
2133
2134
|
return i.layers;
|
|
2134
2135
|
}
|
|
2135
|
-
const We = [be,
|
|
2136
|
+
const We = [be, re, ee];
|
|
2136
2137
|
function mt(i) {
|
|
2137
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
2145
|
e[0] !== i ? ({
|
|
2145
2146
|
id: t,
|
|
@@ -2148,75 +2149,77 @@ function co(i) {
|
|
|
2148
2149
|
...o
|
|
2149
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]);
|
|
2150
2151
|
let r;
|
|
2151
|
-
e[5] !== t ? (r = (
|
|
2152
|
-
const
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
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
|
|
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[
|
|
2200
|
-
}
|
|
2201
|
-
function cn(i) {
|
|
2202
|
-
return i == null ? void 0 : i.isLoaded;
|
|
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;
|
|
2203
2203
|
}
|
|
2204
2204
|
function un(i) {
|
|
2205
|
-
return i.
|
|
2205
|
+
return i == null ? void 0 : i.isLoaded;
|
|
2206
2206
|
}
|
|
2207
2207
|
function dn(i) {
|
|
2208
|
-
return i.
|
|
2208
|
+
return i.updateViewPort;
|
|
2209
2209
|
}
|
|
2210
2210
|
function fn(i) {
|
|
2211
|
-
return i.
|
|
2211
|
+
return i.setLayersLoad;
|
|
2212
2212
|
}
|
|
2213
2213
|
function mn(i) {
|
|
2214
|
-
return i.
|
|
2214
|
+
return i.setLoad;
|
|
2215
2215
|
}
|
|
2216
2216
|
function pn(i) {
|
|
2217
|
+
return i.setViewState;
|
|
2218
|
+
}
|
|
2219
|
+
function gn(i) {
|
|
2217
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
2224
|
setSource: (e, t) => i((n) => {
|
|
2222
2225
|
const s = {
|
|
@@ -2228,11 +2231,11 @@ const gn = "https://gcp-us-east1.api.carto.com", yn = "ps", hn = tt((i) => ({
|
|
|
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
|
-
}, r =
|
|
2238
|
+
}, r = bn({
|
|
2236
2239
|
source: o
|
|
2237
2240
|
});
|
|
2238
2241
|
return o.widgets = r, s[e] = o, {
|
|
@@ -2243,8 +2246,8 @@ const gn = "https://gcp-us-east1.api.carto.com", yn = "ps", hn = tt((i) => ({
|
|
|
2243
2246
|
let s = {};
|
|
2244
2247
|
const o = n.sources[e] ?? {};
|
|
2245
2248
|
return t.length !== 0 && (s = t.reduce((r, a) => {
|
|
2246
|
-
var
|
|
2247
|
-
return !("values" in 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,12 +2259,12 @@ const gn = "https://gcp-us-east1.api.carto.com", yn = "ps", hn = tt((i) => ({
|
|
|
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] !== i ? (t = (n) => n.sources[i], e[0] = i, e[1] = t) : t = e[1],
|
|
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
|
|
2267
|
+
function bn({
|
|
2265
2268
|
source: i
|
|
2266
2269
|
}) {
|
|
2267
2270
|
const e = {
|
|
@@ -2306,15 +2309,15 @@ function vn({
|
|
|
2306
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
2316
|
return !n || !i ? null : (n.props.accessToken = i, n);
|
|
2314
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,
|
|
@@ -2322,38 +2325,38 @@ function bn(i) {
|
|
|
2322
2325
|
} = i;
|
|
2323
2326
|
let r;
|
|
2324
2327
|
e[0] !== o ? (r = o === void 0 ? {} : o, e[0] = o, e[1] = r) : r = e[1];
|
|
2325
|
-
let a,
|
|
2328
|
+
let a, l;
|
|
2326
2329
|
e[2] !== r ? ({
|
|
2327
2330
|
enabled: a,
|
|
2328
|
-
...
|
|
2329
|
-
} = r, e[2] = r, e[3] = a, e[4] =
|
|
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 g = !!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
2343
|
enabled: g,
|
|
2341
|
-
...
|
|
2342
|
-
}, e[13] =
|
|
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
2350
|
e[0] !== i ? ({
|
|
2348
2351
|
children: t,
|
|
2349
2352
|
...n
|
|
2350
2353
|
} = i, e[0] = i, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
|
|
2351
|
-
const s =
|
|
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,
|
|
@@ -2361,38 +2364,38 @@ function Mn(i) {
|
|
|
2361
2364
|
} = i;
|
|
2362
2365
|
let r;
|
|
2363
2366
|
e[0] !== o ? (r = o === void 0 ? {} : o, e[0] = o, e[1] = r) : r = e[1];
|
|
2364
|
-
let a,
|
|
2367
|
+
let a, l;
|
|
2365
2368
|
e[2] !== r ? ({
|
|
2366
2369
|
enabled: a,
|
|
2367
|
-
...
|
|
2368
|
-
} = r, e[2] = r, e[3] = a, e[4] =
|
|
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 g = !!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
2382
|
enabled: g,
|
|
2380
|
-
...
|
|
2381
|
-
}, e[13] =
|
|
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
2389
|
e[0] !== i ? ({
|
|
2387
2390
|
children: t,
|
|
2388
2391
|
...n
|
|
2389
2392
|
} = i, e[0] = i, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
|
|
2390
|
-
const s =
|
|
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
2397
|
function _n(i) {
|
|
2395
|
-
const e =
|
|
2398
|
+
const e = C(18), {
|
|
2396
2399
|
accessToken: t,
|
|
2397
2400
|
sourceId: n,
|
|
2398
2401
|
widgetProps: s,
|
|
@@ -2400,27 +2403,27 @@ function _n(i) {
|
|
|
2400
2403
|
} = i;
|
|
2401
2404
|
let r;
|
|
2402
2405
|
e[0] !== o ? (r = o === void 0 ? {} : o, e[0] = o, e[1] = r) : r = e[1];
|
|
2403
|
-
let a,
|
|
2406
|
+
let a, l;
|
|
2404
2407
|
e[2] !== r ? ({
|
|
2405
2408
|
enabled: a,
|
|
2406
|
-
...
|
|
2407
|
-
} = r, e[2] = r, e[3] = a, e[4] =
|
|
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 g = !!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
2421
|
enabled: g,
|
|
2419
|
-
...
|
|
2420
|
-
}, e[13] =
|
|
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
2428
|
e[0] !== i ? ({
|
|
2426
2429
|
children: t,
|
|
@@ -2430,8 +2433,8 @@ function mo(i) {
|
|
|
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,
|
|
@@ -2439,38 +2442,38 @@ function Ln(i) {
|
|
|
2439
2442
|
} = i;
|
|
2440
2443
|
let r;
|
|
2441
2444
|
e[0] !== o ? (r = o === void 0 ? {} : o, e[0] = o, e[1] = r) : r = e[1];
|
|
2442
|
-
let a,
|
|
2445
|
+
let a, l;
|
|
2443
2446
|
e[2] !== r ? ({
|
|
2444
2447
|
enabled: a,
|
|
2445
|
-
...
|
|
2446
|
-
} = r, e[2] = r, e[3] = a, e[4] =
|
|
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 g = !!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
2460
|
enabled: g,
|
|
2458
|
-
...
|
|
2459
|
-
}, e[13] =
|
|
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
2467
|
e[0] !== i ? ({
|
|
2465
2468
|
children: t,
|
|
2466
2469
|
...n
|
|
2467
2470
|
} = i, e[0] = i, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
|
|
2468
|
-
const s =
|
|
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,
|
|
@@ -2478,38 +2481,38 @@ function Tn(i) {
|
|
|
2478
2481
|
} = i;
|
|
2479
2482
|
let r;
|
|
2480
2483
|
e[0] !== o ? (r = o === void 0 ? {} : o, e[0] = o, e[1] = r) : r = e[1];
|
|
2481
|
-
let a,
|
|
2484
|
+
let a, l;
|
|
2482
2485
|
e[2] !== r ? ({
|
|
2483
2486
|
enabled: a,
|
|
2484
|
-
...
|
|
2485
|
-
} = r, e[2] = r, e[3] = a, e[4] =
|
|
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 g = !!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
2499
|
enabled: g,
|
|
2497
|
-
...
|
|
2498
|
-
}, e[13] =
|
|
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
2506
|
e[0] !== i ? ({
|
|
2504
2507
|
children: t,
|
|
2505
2508
|
...n
|
|
2506
2509
|
} = i, e[0] = i, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
|
|
2507
|
-
const s =
|
|
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,
|
|
@@ -2517,38 +2520,38 @@ function En(i) {
|
|
|
2517
2520
|
} = i;
|
|
2518
2521
|
let r;
|
|
2519
2522
|
e[0] !== o ? (r = o === void 0 ? {} : o, e[0] = o, e[1] = r) : r = e[1];
|
|
2520
|
-
let a,
|
|
2523
|
+
let a, l;
|
|
2521
2524
|
e[2] !== r ? ({
|
|
2522
2525
|
enabled: a,
|
|
2523
|
-
...
|
|
2524
|
-
} = r, e[2] = r, e[3] = a, e[4] =
|
|
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 g = !!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
2538
|
enabled: g,
|
|
2536
|
-
...
|
|
2537
|
-
}, e[13] =
|
|
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
2545
|
e[0] !== i ? ({
|
|
2543
2546
|
children: t,
|
|
2544
2547
|
...n
|
|
2545
2548
|
} = i, e[0] = i, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
|
|
2546
|
-
const s =
|
|
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,
|
|
@@ -2556,38 +2559,38 @@ function kn(i) {
|
|
|
2556
2559
|
} = i;
|
|
2557
2560
|
let r;
|
|
2558
2561
|
e[0] !== o ? (r = o === void 0 ? {} : o, e[0] = o, e[1] = r) : r = e[1];
|
|
2559
|
-
let a,
|
|
2562
|
+
let a, l;
|
|
2560
2563
|
e[2] !== r ? ({
|
|
2561
2564
|
enabled: a,
|
|
2562
|
-
...
|
|
2563
|
-
} = r, e[2] = r, e[3] = a, e[4] =
|
|
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 g = !!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
2577
|
enabled: g,
|
|
2575
|
-
...
|
|
2576
|
-
}, e[13] =
|
|
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
2584
|
e[0] !== i ? ({
|
|
2582
2585
|
children: t,
|
|
2583
2586
|
...n
|
|
2584
2587
|
} = i, e[0] = i, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
|
|
2585
|
-
const s =
|
|
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,
|
|
@@ -2595,38 +2598,38 @@ function Pn(i) {
|
|
|
2595
2598
|
} = i;
|
|
2596
2599
|
let r;
|
|
2597
2600
|
e[0] !== o ? (r = o === void 0 ? {} : o, e[0] = o, e[1] = r) : r = e[1];
|
|
2598
|
-
let a,
|
|
2601
|
+
let a, l;
|
|
2599
2602
|
e[2] !== r ? ({
|
|
2600
2603
|
enabled: a,
|
|
2601
|
-
...
|
|
2602
|
-
} = r, e[2] = r, e[3] = a, e[4] =
|
|
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 g = !!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
2616
|
enabled: g,
|
|
2614
|
-
...
|
|
2615
|
-
}, e[13] =
|
|
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
2623
|
e[0] !== i ? ({
|
|
2621
2624
|
children: t,
|
|
2622
2625
|
...n
|
|
2623
2626
|
} = i, e[0] = i, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
|
|
2624
|
-
const s =
|
|
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,
|
|
@@ -2635,128 +2638,128 @@ function vo(i) {
|
|
|
2635
2638
|
let r;
|
|
2636
2639
|
e[0] !== s ? (r = s === void 0 ? [] : s, e[0] = s, e[1] = r) : r = e[1];
|
|
2637
2640
|
const a = r;
|
|
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;
|
|
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
2684
|
onChangeVisibility: r,
|
|
2682
|
-
onChangeOpacity:
|
|
2685
|
+
onChangeOpacity: l,
|
|
2683
2686
|
onChangRowCollapsed: a
|
|
2684
2687
|
};
|
|
2685
2688
|
}
|
|
2686
|
-
function
|
|
2689
|
+
function Lo({
|
|
2687
2690
|
mapId: i
|
|
2688
2691
|
}) {
|
|
2689
|
-
const [e, t] =
|
|
2690
|
-
var
|
|
2691
|
-
return (
|
|
2692
|
-
}), r =
|
|
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
|
-
const
|
|
2701
|
-
|
|
2702
|
-
const
|
|
2703
|
-
if (
|
|
2704
|
-
const
|
|
2705
|
-
if (
|
|
2703
|
+
const h = document.createElement("canvas");
|
|
2704
|
+
h.width = f.width ?? 0, h.height = f.height ?? 0;
|
|
2705
|
+
const y = h.getContext("2d");
|
|
2706
|
+
if (m) {
|
|
2707
|
+
const v = _;
|
|
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
|
|
2713
|
-
|
|
2715
|
+
const v = _;
|
|
2716
|
+
v.redraw(), y == null || y.drawImage(v.getMap().getCanvas(), 0, 0, f.width, f.height);
|
|
2714
2717
|
}
|
|
2715
|
-
|
|
2716
|
-
const b =
|
|
2718
|
+
f == null || f.redraw("screenshot"), y == null || y.drawImage(f.getCanvas(), 0, 0, f.width, f.height);
|
|
2719
|
+
const b = h.toDataURL();
|
|
2717
2720
|
t(b);
|
|
2718
|
-
} catch (
|
|
2719
|
-
console.error(
|
|
2721
|
+
} catch (h) {
|
|
2722
|
+
console.error(h);
|
|
2720
2723
|
} finally {
|
|
2721
2724
|
s(!1);
|
|
2722
2725
|
}
|
|
2723
|
-
}, [r,
|
|
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
2735
|
function _o(i) {
|
|
2733
|
-
const e =
|
|
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 r =
|
|
2746
|
-
let
|
|
2747
|
-
return e[4] !== r || e[5] !== a || e[6] !== s ? (
|
|
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
2752
|
lassoToolsSpatialFilter: r,
|
|
2750
2753
|
viewportSpatialFilter: s
|
|
2751
|
-
}, e[4] = r, e[5] = a, e[6] = s, e[7] =
|
|
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
2761
|
e[0] !== t ? (n = (r) => r.viewports[t], e[0] = t, e[1] = n) : n = e[1];
|
|
2759
|
-
const s =
|
|
2762
|
+
const s = O(n);
|
|
2760
2763
|
let o;
|
|
2761
2764
|
e: {
|
|
2762
2765
|
if (!s) {
|
|
@@ -2768,8 +2771,8 @@ function Cn(i) {
|
|
|
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;
|
|
@@ -2777,88 +2780,88 @@ function wn(i) {
|
|
|
2777
2780
|
var a;
|
|
2778
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
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
|
-
r = es(a.map(
|
|
2795
|
+
r = es(a.map(On)), e[2] = s, e[3] = r, e[4] = o;
|
|
2793
2796
|
} else
|
|
2794
2797
|
r = e[3], o = e[4];
|
|
2795
2798
|
o = r.geometry;
|
|
2796
2799
|
}
|
|
2797
2800
|
return o;
|
|
2798
2801
|
}
|
|
2799
|
-
function
|
|
2802
|
+
function On(i) {
|
|
2800
2803
|
return i.geometry.coordinates;
|
|
2801
2804
|
}
|
|
2802
|
-
function
|
|
2805
|
+
function Dn(i) {
|
|
2803
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: (i, e) =>
|
|
2813
|
+
[ie.currency]: {
|
|
2814
|
+
type: ie.currency,
|
|
2815
|
+
format: (i, e) => Nt(i, e)
|
|
2813
2816
|
},
|
|
2814
|
-
[
|
|
2815
|
-
type:
|
|
2817
|
+
[ie.number]: {
|
|
2818
|
+
type: ie.number,
|
|
2816
2819
|
format: (i, e) => nt(i, e)
|
|
2817
2820
|
},
|
|
2818
|
-
[
|
|
2819
|
-
type:
|
|
2821
|
+
[ie.default]: {
|
|
2822
|
+
type: ie.default,
|
|
2820
2823
|
format: (i) => i.toLocaleString()
|
|
2821
2824
|
}
|
|
2822
2825
|
};
|
|
2823
|
-
function
|
|
2826
|
+
function To({
|
|
2824
2827
|
properties: i,
|
|
2825
2828
|
formatters: e = {},
|
|
2826
2829
|
includeColumns: t = Object.keys(i),
|
|
2827
2830
|
locale: n = "en-US",
|
|
2828
2831
|
showColumnName: s = !0,
|
|
2829
2832
|
title: o,
|
|
2830
|
-
getColumnName: r =
|
|
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
|
|
2844
|
+
function An(i) {
|
|
2842
2845
|
return `<h3 style="margin: 0"><strong>${i}</strong></h3></br>`;
|
|
2843
2846
|
}
|
|
2844
|
-
function
|
|
2847
|
+
function Rn(i, e) {
|
|
2845
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
2854
|
return i;
|
|
2852
2855
|
}
|
|
2853
2856
|
}
|
|
2854
|
-
function $n(i) {
|
|
2855
|
-
return typeof i == "function" ? i : ((i && Ye[i]) ?? Ye[ne.default]).format;
|
|
2856
|
-
}
|
|
2857
2857
|
function xn(i) {
|
|
2858
|
+
return typeof i == "function" ? i : ((i && Ye[i]) ?? Ye[ie.default]).format;
|
|
2859
|
+
}
|
|
2860
|
+
function Un(i) {
|
|
2858
2861
|
return `<strong>${i}</strong>: `;
|
|
2859
2862
|
}
|
|
2860
|
-
function
|
|
2861
|
-
var e, t, n, s, o, r, a,
|
|
2863
|
+
function Eo(i) {
|
|
2864
|
+
var e, t, n, s, o, r, a, l;
|
|
2862
2865
|
return {
|
|
2863
2866
|
collapsed: (e = i.legend) == null ? void 0 : e.collapsed,
|
|
2864
2867
|
collapsible: (t = i.legend) == null ? void 0 : t.collapsible,
|
|
@@ -2869,60 +2872,60 @@ function To(i) {
|
|
|
2869
2872
|
minZoom: (r = i.legend) == null ? void 0 : r.minZoom,
|
|
2870
2873
|
opacity: i.props.opacity ?? 1,
|
|
2871
2874
|
showOpacityControl: (a = i.legend) == null ? void 0 : a.opacityControl,
|
|
2872
|
-
switchable: (
|
|
2875
|
+
switchable: (l = i.legend) == null ? void 0 : l.switchable,
|
|
2873
2876
|
title: i.name,
|
|
2874
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
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] !==
|
|
2896
|
+
e[4] !== n || e[5] !== c ? (u = (y) => c(n, y), e[4] = n, e[5] = c, e[6] = u) : u = e[6];
|
|
2894
2897
|
const g = u;
|
|
2895
|
-
let
|
|
2896
|
-
e[7] !== p || e[8] !== n ? (
|
|
2897
|
-
const
|
|
2898
|
-
let
|
|
2899
|
-
return e[10] !== t || e[11] !== r || e[12] !== a || e[13] !==
|
|
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;
|
|
2901
|
+
let h;
|
|
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
2904
|
maxZoom: r,
|
|
2902
2905
|
minZoom: a,
|
|
2903
|
-
isLoading:
|
|
2906
|
+
isLoading: m,
|
|
2904
2907
|
setZoom: g,
|
|
2905
|
-
flyTo:
|
|
2906
|
-
}), e[10] = t, e[11] = r, e[12] = a, e[13] =
|
|
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
|
|
2911
|
+
function qn(i) {
|
|
2909
2912
|
return i.flyTo;
|
|
2910
2913
|
}
|
|
2911
|
-
function
|
|
2914
|
+
function Vn(i) {
|
|
2912
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
|