@carto/ps-react-maps 3.5.0-canary.2 → 3.5.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 +1306 -1213
- package/dist/index.js.map +1 -1
- package/dist/types/index.d.ts +2 -2
- package/dist/types/models/types.d.ts +1 -1
- package/dist/types/providers/sources/store.d.ts +58 -1
- package/dist/types/providers/sources/types.d.ts +3 -10
- package/package.json +1 -1
- /package/dist/types/models/{histogram..d.ts → histogram.d.ts} +0 -0
package/dist/index.js
CHANGED
|
@@ -1,29 +1,30 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var ee = (r, e, t) =>
|
|
4
|
-
import { jsx as N, jsxs as
|
|
1
|
+
var At = Object.defineProperty;
|
|
2
|
+
var Ct = (r, e, t) => e in r ? At(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
|
|
3
|
+
var ee = (r, e, t) => Ct(r, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
+
import { jsx as N, jsxs as ft } from "react/jsx-runtime";
|
|
5
5
|
import { c as R } from "react/compiler-runtime";
|
|
6
|
-
import { useEffect as z, useImperativeHandle as
|
|
7
|
-
import { MapProvider as
|
|
8
|
-
import
|
|
9
|
-
import { useMap as
|
|
10
|
-
import { GoogleMapsOverlay as
|
|
11
|
-
import { CompositeMode as
|
|
12
|
-
import { DataFilterExtension as
|
|
13
|
-
import { create as
|
|
14
|
-
import { FlyToInterpolator as
|
|
15
|
-
import { EventManager as
|
|
16
|
-
import { GeoJsonLayer as
|
|
17
|
-
import { useShallow as
|
|
18
|
-
import { area as
|
|
19
|
-
import { formatNumber as
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import { removeFilter as
|
|
6
|
+
import { useEffect as z, useImperativeHandle as Ne, useMemo as re, useCallback as Q, useState as oe, createContext as He, useContext as Ge, useRef as Me } from "react";
|
|
7
|
+
import { MapProvider as Ft, Map as Dt, useMap as Rt } from "react-map-gl/maplibre";
|
|
8
|
+
import Ut from "@deck.gl/react";
|
|
9
|
+
import { useMap as pt, APIProvider as xt, Map as $t } from "@vis.gl/react-google-maps";
|
|
10
|
+
import { GoogleMapsOverlay as qt } from "@deck.gl/google-maps";
|
|
11
|
+
import { CompositeMode as jt, TranslateMode as Bt, ModifyMode as Vt, DrawPolygonByDraggingMode as It, DrawCircleFromCenterMode as mt, DrawRectangleMode as Nt, DrawPolygonMode as Ht, EditableGeoJsonLayer as Gt, MeasureAreaMode as zt, getPickedEditHandle as Qt, MeasureDistanceMode as Wt, ViewMode as Zt } from "@deck.gl-community/editable-layers";
|
|
12
|
+
import { DataFilterExtension as Kt, MaskExtension as Yt } from "@deck.gl/extensions";
|
|
13
|
+
import { create as yt, createStore as ze, useStore as Qe } from "zustand";
|
|
14
|
+
import { FlyToInterpolator as Xt, WebMercatorViewport as Jt } from "@deck.gl/core";
|
|
15
|
+
import { EventManager as es } from "mjolnir.js";
|
|
16
|
+
import { GeoJsonLayer as ts } from "@deck.gl/layers";
|
|
17
|
+
import { useShallow as ht } from "zustand/shallow";
|
|
18
|
+
import { area as Ye, centroid as ss, lineIntersect as ns } from "@turf/turf";
|
|
19
|
+
import { formatNumber as gt, formatCurrency as rs } from "@carto/ps-utils";
|
|
20
|
+
import os from "convert-units";
|
|
21
|
+
import is from "convert-units/definitions/length";
|
|
22
|
+
import { removeFilter as Xe, addFilter as as, WidgetRasterSource as ls, WidgetTilesetSource as cs, TileFormat as us, WidgetTableSource as ds, WidgetQuerySource as fs, createViewportSpatialFilter as ps, vectorTilesetSource as ms } from "@carto/api-client";
|
|
23
|
+
import { devtools as ys } from "zustand/middleware";
|
|
23
24
|
import { useQuery as se } from "@tanstack/react-query";
|
|
24
|
-
import
|
|
25
|
-
import { multiPolygon as
|
|
26
|
-
const
|
|
25
|
+
import hs from "html2canvas";
|
|
26
|
+
import { multiPolygon as gs } from "@turf/helpers";
|
|
27
|
+
const Re = {
|
|
27
28
|
roadmap: "roadmap",
|
|
28
29
|
satellite: "satellite",
|
|
29
30
|
hybrid: "hybrid"
|
|
@@ -31,44 +32,44 @@ const Fe = {
|
|
|
31
32
|
darkMatter: "darkMatter",
|
|
32
33
|
positron: "positron",
|
|
33
34
|
voyager: "voyager"
|
|
34
|
-
},
|
|
35
|
+
}, Ue = {
|
|
35
36
|
[J.positron]: "https://basemaps.cartocdn.com/gl/positron-gl-style/style.json",
|
|
36
37
|
[J.voyager]: "https://basemaps.cartocdn.com/gl/voyager-gl-style/style.json",
|
|
37
38
|
[J.darkMatter]: "https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json"
|
|
38
39
|
}, te = {
|
|
39
40
|
maplibre: "maplibre",
|
|
40
41
|
googleMaps: "google-maps"
|
|
41
|
-
},
|
|
42
|
+
}, ye = {
|
|
42
43
|
[J.positron]: {
|
|
43
|
-
url:
|
|
44
|
+
url: Ue[J.positron],
|
|
44
45
|
type: te.maplibre
|
|
45
46
|
},
|
|
46
47
|
[J.voyager]: {
|
|
47
|
-
url:
|
|
48
|
+
url: Ue[J.voyager],
|
|
48
49
|
type: te.maplibre
|
|
49
50
|
},
|
|
50
51
|
[J.darkMatter]: {
|
|
51
|
-
url:
|
|
52
|
+
url: Ue[J.darkMatter],
|
|
52
53
|
type: te.maplibre,
|
|
53
54
|
dark: !0
|
|
54
55
|
},
|
|
55
|
-
[
|
|
56
|
+
[Re.roadmap]: {
|
|
56
57
|
type: te.googleMaps
|
|
57
58
|
},
|
|
58
|
-
[
|
|
59
|
+
[Re.satellite]: {
|
|
59
60
|
type: te.googleMaps
|
|
60
61
|
},
|
|
61
|
-
[
|
|
62
|
+
[Re.hybrid]: {
|
|
62
63
|
type: te.googleMaps
|
|
63
64
|
}
|
|
64
65
|
};
|
|
65
|
-
function
|
|
66
|
+
function bs({
|
|
66
67
|
isDragging: r,
|
|
67
68
|
isHovering: e
|
|
68
69
|
}) {
|
|
69
70
|
return r ? "grabbing" : e ? "pointer" : "grab";
|
|
70
71
|
}
|
|
71
|
-
function
|
|
72
|
+
function vs(r) {
|
|
72
73
|
return r.html ? {
|
|
73
74
|
html: `<div class='map-tooltip__content'>${r.html}</div>`,
|
|
74
75
|
style: {
|
|
@@ -77,103 +78,103 @@ function hs(r) {
|
|
|
77
78
|
}
|
|
78
79
|
} : null;
|
|
79
80
|
}
|
|
80
|
-
function
|
|
81
|
+
function Ss(r) {
|
|
81
82
|
const e = R(42);
|
|
82
|
-
let t, n, s, o, i, a, l,
|
|
83
|
+
let t, n, s, o, i, a, l, y, c, p, h, d;
|
|
83
84
|
e[0] !== r ? ({
|
|
84
85
|
instanceRef: i,
|
|
85
|
-
overlayRef:
|
|
86
|
+
overlayRef: p,
|
|
86
87
|
controller: t,
|
|
87
88
|
id: o,
|
|
88
89
|
layers: a,
|
|
89
90
|
mapStyle: l,
|
|
90
|
-
parameters:
|
|
91
|
+
parameters: h,
|
|
91
92
|
getCursor: n,
|
|
92
93
|
getTooltip: s,
|
|
93
|
-
onLoad:
|
|
94
|
+
onLoad: y,
|
|
94
95
|
onViewStateChange: c,
|
|
95
|
-
...
|
|
96
|
-
} = r, e[0] = r, e[1] = t, e[2] = n, e[3] = s, e[4] = o, e[5] = i, e[6] = a, e[7] = l, e[8] =
|
|
97
|
-
let b,
|
|
98
|
-
e[13] !==
|
|
99
|
-
|
|
96
|
+
...d
|
|
97
|
+
} = r, e[0] = r, e[1] = t, e[2] = n, e[3] = s, e[4] = o, e[5] = i, e[6] = a, e[7] = l, e[8] = y, e[9] = c, e[10] = p, e[11] = h, e[12] = d) : (t = e[1], n = e[2], s = e[3], o = e[4], i = e[5], a = e[6], l = e[7], y = e[8], c = e[9], p = e[10], h = e[11], d = e[12]);
|
|
98
|
+
let b, m;
|
|
99
|
+
e[13] !== y ? (b = () => {
|
|
100
|
+
y({
|
|
100
101
|
type: "load",
|
|
101
102
|
value: !1
|
|
102
|
-
}),
|
|
103
|
+
}), y({
|
|
103
104
|
type: "deckgl",
|
|
104
105
|
value: !1
|
|
105
106
|
});
|
|
106
|
-
},
|
|
107
|
-
let
|
|
108
|
-
e[16] !== a ? (
|
|
109
|
-
const g =
|
|
110
|
-
let
|
|
111
|
-
e[18] !==
|
|
107
|
+
}, m = [y], e[13] = y, e[14] = b, e[15] = m) : (b = e[14], m = e[15]), z(b, m);
|
|
108
|
+
let T, f;
|
|
109
|
+
e[16] !== a ? (f = a.filter(Ts).map(_s), e[16] = a, e[17] = f) : f = e[17], T = f;
|
|
110
|
+
const g = T, S = i;
|
|
111
|
+
let _;
|
|
112
|
+
e[18] !== y ? (_ = () => y({
|
|
112
113
|
type: "deckgl",
|
|
113
114
|
value: !0
|
|
114
|
-
}), e[18] =
|
|
115
|
-
let
|
|
116
|
-
e[20] !==
|
|
115
|
+
}), e[18] = y, e[19] = _) : _ = e[19];
|
|
116
|
+
let w;
|
|
117
|
+
e[20] !== h ? (w = {
|
|
117
118
|
depthTest: !1,
|
|
118
|
-
...
|
|
119
|
-
}, e[20] =
|
|
120
|
-
let
|
|
121
|
-
e[22] !==
|
|
119
|
+
...h
|
|
120
|
+
}, e[20] = h, e[21] = w) : w = e[21];
|
|
121
|
+
let E;
|
|
122
|
+
e[22] !== p ? (E = /* @__PURE__ */ N(Es, { overlayRef: p }), e[22] = p, e[23] = E) : E = e[23];
|
|
122
123
|
let A;
|
|
123
|
-
e[24] !==
|
|
124
|
+
e[24] !== y ? (A = () => y({
|
|
124
125
|
type: "load",
|
|
125
126
|
value: !0
|
|
126
|
-
}), e[24] =
|
|
127
|
+
}), e[24] = y, e[25] = A) : A = e[25];
|
|
127
128
|
let U;
|
|
128
|
-
e[26] !== l || e[27] !== A ? (U = /* @__PURE__ */ N(
|
|
129
|
+
e[26] !== l || e[27] !== A ? (U = /* @__PURE__ */ N(Dt, { reuseMaps: !0, mapStyle: l, onLoad: A, onRender: ws }), e[26] = l, e[27] = A, e[28] = U) : U = e[28];
|
|
129
130
|
let F;
|
|
130
|
-
return e[29] !== g || e[30] !== t || e[31] !== n || e[32] !== s || e[33] !== o || e[34] !== c || e[35] !==
|
|
131
|
-
|
|
131
|
+
return e[29] !== g || e[30] !== t || e[31] !== n || e[32] !== s || e[33] !== o || e[34] !== c || e[35] !== d || e[36] !== U || e[37] !== S || e[38] !== _ || e[39] !== w || e[40] !== E ? (F = /* @__PURE__ */ N(Ft, { children: /* @__PURE__ */ N("div", { className: "deckgl-map", children: /* @__PURE__ */ ft(Ut, { controller: t, id: o, ref: S, layers: g, getCursor: n, getTooltip: s, onLoad: _, onViewStateChange: c, parameters: w, ...d, children: [
|
|
132
|
+
E,
|
|
132
133
|
U
|
|
133
|
-
] }) }) }), e[29] = g, e[30] = t, e[31] = n, e[32] = s, e[33] = o, e[34] = c, e[35] =
|
|
134
|
+
] }) }) }), e[29] = g, e[30] = t, e[31] = n, e[32] = s, e[33] = o, e[34] = c, e[35] = d, e[36] = U, e[37] = S, e[38] = _, e[39] = w, e[40] = E, e[41] = F) : F = e[41], F;
|
|
134
135
|
}
|
|
135
|
-
function
|
|
136
|
+
function ws() {
|
|
136
137
|
const r = document.querySelector(".maplibregl-compact-show");
|
|
137
138
|
r == null || r.classList.remove("maplibregl-compact-show");
|
|
138
139
|
}
|
|
139
|
-
function
|
|
140
|
+
function _s(r) {
|
|
140
141
|
const {
|
|
141
142
|
type: e,
|
|
142
143
|
props: t
|
|
143
144
|
} = r;
|
|
144
145
|
return new e(t);
|
|
145
146
|
}
|
|
146
|
-
function
|
|
147
|
+
function Ts(r) {
|
|
147
148
|
return !!(r != null && r.type);
|
|
148
149
|
}
|
|
149
|
-
function
|
|
150
|
+
function Es(r) {
|
|
150
151
|
const e = R(3), {
|
|
151
152
|
overlayRef: t
|
|
152
153
|
} = r, {
|
|
153
154
|
default: n
|
|
154
|
-
} =
|
|
155
|
+
} = Rt();
|
|
155
156
|
let s, o;
|
|
156
|
-
return e[0] !== n ? (s = () => n, o = [n], e[0] = n, e[1] = s, e[2] = o) : (s = e[1], o = e[2]),
|
|
157
|
+
return e[0] !== n ? (s = () => n, o = [n], e[0] = n, e[1] = s, e[2] = o) : (s = e[1], o = e[2]), Ne(t, s, o), null;
|
|
157
158
|
}
|
|
158
|
-
const
|
|
159
|
+
const Ms = (r) => {
|
|
159
160
|
const e = R(9);
|
|
160
161
|
let t, n;
|
|
161
|
-
e[0] === Symbol.for("react.memo_cache_sentinel") ? (n = new
|
|
162
|
+
e[0] === Symbol.for("react.memo_cache_sentinel") ? (n = new qt({
|
|
162
163
|
interleaved: !0
|
|
163
164
|
}), e[0] = n) : n = e[0], t = n;
|
|
164
|
-
const s = t, o =
|
|
165
|
+
const s = t, o = pt();
|
|
165
166
|
let i, a;
|
|
166
|
-
e[1] === Symbol.for("react.memo_cache_sentinel") ? (i = () => s, a = [s], e[1] = i, e[2] = a) : (i = e[1], a = e[2]),
|
|
167
|
-
let l,
|
|
167
|
+
e[1] === Symbol.for("react.memo_cache_sentinel") ? (i = () => s, a = [s], e[1] = i, e[2] = a) : (i = e[1], a = e[2]), Ne(r.instanceRef, i, a);
|
|
168
|
+
let l, y;
|
|
168
169
|
e[3] !== o ? (l = () => (s.setMap(o), () => {
|
|
169
170
|
s.finalize();
|
|
170
|
-
}),
|
|
171
|
-
let c,
|
|
171
|
+
}), y = [s, o], e[3] = o, e[4] = l, e[5] = y) : (l = e[4], y = e[5]), z(l, y);
|
|
172
|
+
let c, p;
|
|
172
173
|
return e[6] !== r ? (c = () => {
|
|
173
174
|
s.setProps(r);
|
|
174
|
-
},
|
|
175
|
+
}, p = [s, r], e[6] = r, e[7] = c, e[8] = p) : (c = e[7], p = e[8]), z(c, p), null;
|
|
175
176
|
};
|
|
176
|
-
function
|
|
177
|
+
function Ps({
|
|
177
178
|
id: r,
|
|
178
179
|
instanceRef: e,
|
|
179
180
|
basemap: t,
|
|
@@ -187,41 +188,41 @@ function Ts({
|
|
|
187
188
|
},
|
|
188
189
|
overlayRef: a,
|
|
189
190
|
parameters: l,
|
|
190
|
-
onLoad:
|
|
191
|
+
onLoad: y,
|
|
191
192
|
onViewStateChange: c,
|
|
192
|
-
...
|
|
193
|
+
...p
|
|
193
194
|
}) {
|
|
194
|
-
var
|
|
195
|
+
var m, T, f, g, S;
|
|
195
196
|
z(() => {
|
|
196
|
-
|
|
197
|
+
y({
|
|
197
198
|
type: "load",
|
|
198
199
|
value: !1
|
|
199
|
-
}),
|
|
200
|
+
}), y({
|
|
200
201
|
type: "deckgl",
|
|
201
202
|
value: !1
|
|
202
203
|
});
|
|
203
|
-
}, [
|
|
204
|
-
const
|
|
205
|
-
type:
|
|
206
|
-
props:
|
|
207
|
-
}) => new
|
|
204
|
+
}, [y]);
|
|
205
|
+
const h = re(() => n.filter((_) => !!(_ != null && _.type)).map(({
|
|
206
|
+
type: _,
|
|
207
|
+
props: w
|
|
208
|
+
}) => new _(w)), [n]), d = Q(({
|
|
208
209
|
detail: {
|
|
209
|
-
center:
|
|
210
|
-
zoom:
|
|
211
|
-
heading:
|
|
210
|
+
center: _,
|
|
211
|
+
zoom: w,
|
|
212
|
+
heading: E,
|
|
212
213
|
tilt: A
|
|
213
214
|
}
|
|
214
215
|
}) => ({
|
|
215
|
-
latitude:
|
|
216
|
-
longitude:
|
|
217
|
-
zoom:
|
|
218
|
-
bearing:
|
|
216
|
+
latitude: _.lat,
|
|
217
|
+
longitude: _.lng,
|
|
218
|
+
zoom: w - 1,
|
|
219
|
+
bearing: E,
|
|
219
220
|
pitch: A
|
|
220
|
-
}), []), b = Q((
|
|
221
|
-
const
|
|
221
|
+
}), []), b = Q((_) => {
|
|
222
|
+
const w = e == null ? void 0 : e.current, E = w == null ? void 0 : w._deck, A = {
|
|
222
223
|
// @ts-expect-error accessing protected props
|
|
223
|
-
...
|
|
224
|
-
...
|
|
224
|
+
...E == null ? void 0 : E.viewState,
|
|
225
|
+
..._
|
|
225
226
|
}, U = {
|
|
226
227
|
latitude: A.latitude,
|
|
227
228
|
longitude: A.longitude,
|
|
@@ -229,8 +230,8 @@ function Ts({
|
|
|
229
230
|
pitch: A.pitch,
|
|
230
231
|
bearing: A.bearing,
|
|
231
232
|
// @ts-expect-error - `width` and `height` is not in the types
|
|
232
|
-
width:
|
|
233
|
-
height:
|
|
233
|
+
width: E == null ? void 0 : E.width,
|
|
234
|
+
height: E == null ? void 0 : E.height
|
|
234
235
|
};
|
|
235
236
|
c == null || c({
|
|
236
237
|
viewState: U,
|
|
@@ -239,18 +240,18 @@ function Ts({
|
|
|
239
240
|
}
|
|
240
241
|
});
|
|
241
242
|
}, [e, c]);
|
|
242
|
-
return /* @__PURE__ */ N(
|
|
243
|
-
lat: ((
|
|
244
|
-
lng: ((
|
|
245
|
-
}, zoom: (((
|
|
246
|
-
|
|
243
|
+
return /* @__PURE__ */ N(xt, { apiKey: s, ...o, children: /* @__PURE__ */ N("div", { className: "deckgl-map", children: /* @__PURE__ */ ft($t, { id: r, mapTypeId: t, disableDefaultUI: !0, gestureHandling: "greedy", ...i, center: {
|
|
244
|
+
lat: ((m = p.initialViewState) == null ? void 0 : m.latitude) ?? 0,
|
|
245
|
+
lng: ((T = p.initialViewState) == null ? void 0 : T.longitude) ?? 0
|
|
246
|
+
}, zoom: (((f = p.initialViewState) == null ? void 0 : f.zoom) ?? 0) + 1, tilt: (g = p.initialViewState) == null ? void 0 : g.pitch, heading: (S = p.initialViewState) == null ? void 0 : S.bearing, onTilesLoaded: () => {
|
|
247
|
+
y({
|
|
247
248
|
type: "load",
|
|
248
249
|
value: !0
|
|
249
|
-
}), b(
|
|
250
|
-
}, onBoundsChanged: (
|
|
251
|
-
/* @__PURE__ */ N(
|
|
252
|
-
/* @__PURE__ */ N(
|
|
253
|
-
|
|
250
|
+
}), b(p.initialViewState);
|
|
251
|
+
}, onBoundsChanged: (_) => b(d(_)), onZoomChanged: (_) => b(d(_)), children: [
|
|
252
|
+
/* @__PURE__ */ N(Ls, { id: r, overlayRef: a }),
|
|
253
|
+
/* @__PURE__ */ N(Ms, { id: r, instanceRef: e, layers: h, onLoad: () => {
|
|
254
|
+
y({
|
|
254
255
|
type: "deckgl",
|
|
255
256
|
value: !0
|
|
256
257
|
});
|
|
@@ -258,67 +259,67 @@ function Ts({
|
|
|
258
259
|
// @ts-expect-error - `depthTest` is not in the types
|
|
259
260
|
depthTest: !1,
|
|
260
261
|
...l
|
|
261
|
-
}, ...
|
|
262
|
+
}, ...p })
|
|
262
263
|
] }) }) });
|
|
263
264
|
}
|
|
264
|
-
function
|
|
265
|
+
function Ls(r) {
|
|
265
266
|
const e = R(3), {
|
|
266
267
|
id: t,
|
|
267
268
|
overlayRef: n
|
|
268
|
-
} = r, s =
|
|
269
|
+
} = r, s = pt(t);
|
|
269
270
|
let o, i;
|
|
270
|
-
return e[0] !== s ? (o = () => s, i = [s], e[0] = s, e[1] = o, e[2] = i) : (o = e[1], i = e[2]),
|
|
271
|
+
return e[0] !== s ? (o = () => s, i = [s], e[0] = s, e[1] = o, e[2] = i) : (o = e[1], i = e[2]), Ne(n, o, i), null;
|
|
271
272
|
}
|
|
272
|
-
function
|
|
273
|
+
function Os(r) {
|
|
273
274
|
const e = R(46);
|
|
274
|
-
let t, n, s, o, i, a, l,
|
|
275
|
+
let t, n, s, o, i, a, l, y, c, p, h, d;
|
|
275
276
|
e[0] !== r ? ({
|
|
276
277
|
instanceRef: n,
|
|
277
278
|
overlayRef: o,
|
|
278
279
|
basemap: a,
|
|
279
280
|
controller: l,
|
|
280
|
-
id:
|
|
281
|
+
id: y,
|
|
281
282
|
layers: c,
|
|
282
283
|
gmapsProps: t,
|
|
283
|
-
getCursor:
|
|
284
|
-
getTooltip:
|
|
284
|
+
getCursor: p,
|
|
285
|
+
getTooltip: h,
|
|
285
286
|
onLoad: s,
|
|
286
|
-
onViewStateChange:
|
|
287
|
+
onViewStateChange: d,
|
|
287
288
|
...i
|
|
288
|
-
} = r, e[0] = r, e[1] = t, e[2] = n, e[3] = s, e[4] = o, e[5] = i, e[6] = a, e[7] = l, e[8] =
|
|
289
|
-
const b = a === void 0 ? J.positron : a,
|
|
290
|
-
let
|
|
291
|
-
e[13] !== c ? (
|
|
292
|
-
const g =
|
|
293
|
-
let
|
|
294
|
-
e[15] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
295
|
-
const [A, U] = oe(
|
|
289
|
+
} = r, e[0] = r, e[1] = t, e[2] = n, e[3] = s, e[4] = o, e[5] = i, e[6] = a, e[7] = l, e[8] = y, e[9] = c, e[10] = p, e[11] = h, e[12] = d) : (t = e[1], n = e[2], s = e[3], o = e[4], i = e[5], a = e[6], l = e[7], y = e[8], c = e[9], p = e[10], h = e[11], d = e[12]);
|
|
290
|
+
const b = a === void 0 ? J.positron : a, m = l === void 0 ? !0 : l, T = y === void 0 ? "deck-gl-map" : y;
|
|
291
|
+
let f;
|
|
292
|
+
e[13] !== c ? (f = c === void 0 ? [] : c, e[13] = c, e[14] = f) : f = e[14];
|
|
293
|
+
const g = f, S = p === void 0 ? bs : p, _ = h === void 0 ? vs : h, w = d === void 0 ? As : d;
|
|
294
|
+
let E;
|
|
295
|
+
e[15] === Symbol.for("react.memo_cache_sentinel") ? (E = [!1, !1], e[15] = E) : E = e[15];
|
|
296
|
+
const [A, U] = oe(E);
|
|
296
297
|
let F;
|
|
297
|
-
e[16] !== A ? (F = A.every(
|
|
298
|
+
e[16] !== A ? (F = A.every(ks), e[16] = A, e[17] = F) : F = e[17];
|
|
298
299
|
const j = F, {
|
|
299
300
|
url: q,
|
|
300
301
|
type: $
|
|
301
|
-
} =
|
|
302
|
+
} = ye[b], M = $ === te.googleMaps;
|
|
302
303
|
let k;
|
|
303
|
-
e[18] === Symbol.for("react.memo_cache_sentinel") ? (k = (
|
|
304
|
-
const O =
|
|
305
|
-
U((H) => H.map((W, Z) => Z === O ?
|
|
304
|
+
e[18] === Symbol.for("react.memo_cache_sentinel") ? (k = (L) => {
|
|
305
|
+
const O = L.type === "deckgl" ? 0 : 1;
|
|
306
|
+
U((H) => H.map((W, Z) => Z === O ? L.value : W));
|
|
306
307
|
}, e[18] = k) : k = e[18];
|
|
307
308
|
const u = k;
|
|
308
|
-
let v,
|
|
309
|
+
let v, P;
|
|
309
310
|
if (e[19] !== j || e[20] !== s ? (v = () => {
|
|
310
311
|
s == null || s(j);
|
|
311
|
-
},
|
|
312
|
-
let
|
|
313
|
-
return e[23] !== b || e[24] !==
|
|
312
|
+
}, P = [j, s], e[19] = j, e[20] = s, e[21] = v, e[22] = P) : (v = e[21], P = e[22]), z(v, P), M) {
|
|
313
|
+
let L;
|
|
314
|
+
return e[23] !== b || e[24] !== m || e[25] !== S || e[26] !== _ || e[27] !== t || e[28] !== T || e[29] !== n || e[30] !== g || e[31] !== w || e[32] !== o || e[33] !== i ? (L = /* @__PURE__ */ N(Ps, { instanceRef: n, overlayRef: o, controller: m, id: T, basemap: b, layers: g, gmapsProps: t, getCursor: S, getTooltip: _, onLoad: u, onViewStateChange: w, ...i }), e[23] = b, e[24] = m, e[25] = S, e[26] = _, e[27] = t, e[28] = T, e[29] = n, e[30] = g, e[31] = w, e[32] = o, e[33] = i, e[34] = L) : L = e[34], L;
|
|
314
315
|
}
|
|
315
316
|
let C;
|
|
316
|
-
return e[35] !==
|
|
317
|
+
return e[35] !== m || e[36] !== S || e[37] !== _ || e[38] !== T || e[39] !== n || e[40] !== g || e[41] !== q || e[42] !== w || e[43] !== o || e[44] !== i ? (C = /* @__PURE__ */ N(Ss, { instanceRef: n, overlayRef: o, controller: m, id: T, layers: g, mapStyle: q, getCursor: S, getTooltip: _, onLoad: u, onViewStateChange: w, ...i }), e[35] = m, e[36] = S, e[37] = _, e[38] = T, e[39] = n, e[40] = g, e[41] = q, e[42] = w, e[43] = o, e[44] = i, e[45] = C) : C = e[45], C;
|
|
317
318
|
}
|
|
318
|
-
function
|
|
319
|
+
function ks(r) {
|
|
319
320
|
return r;
|
|
320
321
|
}
|
|
321
|
-
function
|
|
322
|
+
function As() {
|
|
322
323
|
return null;
|
|
323
324
|
}
|
|
324
325
|
const Y = {
|
|
@@ -329,9 +330,9 @@ const Y = {
|
|
|
329
330
|
finish: "finish",
|
|
330
331
|
addPosition: "addPosition"
|
|
331
332
|
};
|
|
332
|
-
class
|
|
333
|
+
class Cs extends jt {
|
|
333
334
|
constructor() {
|
|
334
|
-
super([new
|
|
335
|
+
super([new Bt(), new Vt()]);
|
|
335
336
|
}
|
|
336
337
|
handleKeyUp(e, t) {
|
|
337
338
|
super.handleKeyUp(e, t), e.key === "Enter" && (this.resetClickSequence(), t.onEdit({
|
|
@@ -341,8 +342,8 @@ class Os extends $t {
|
|
|
341
342
|
}));
|
|
342
343
|
}
|
|
343
344
|
}
|
|
344
|
-
const
|
|
345
|
-
id:
|
|
345
|
+
const ce = "lassoLayer", Le = "maskLayer", Fs = {
|
|
346
|
+
id: ce,
|
|
346
347
|
billboard: !1,
|
|
347
348
|
editHandlePointRadiusUnits: "pixels",
|
|
348
349
|
editHandlePointRadiusMinPixels: 1,
|
|
@@ -354,7 +355,7 @@ const le = "lassoLayer", Me = "maskLayer", ks = {
|
|
|
354
355
|
lineWidthUnits: "pixels",
|
|
355
356
|
getLineWidth: 2,
|
|
356
357
|
lineWidthMinPixels: 2
|
|
357
|
-
},
|
|
358
|
+
}, Je = {
|
|
358
359
|
editing: {
|
|
359
360
|
border: [3, 111, 226, 255],
|
|
360
361
|
fill: [3, 111, 226, 20.4],
|
|
@@ -364,50 +365,50 @@ const le = "lassoLayer", Me = "maskLayer", ks = {
|
|
|
364
365
|
border: [71, 219, 153, 255],
|
|
365
366
|
fill: [71, 219, 153, 0]
|
|
366
367
|
}
|
|
367
|
-
},
|
|
368
|
+
}, xe = {
|
|
368
369
|
styles: {
|
|
369
370
|
colors: {
|
|
370
|
-
editing:
|
|
371
|
-
finished:
|
|
371
|
+
editing: Je.editing,
|
|
372
|
+
finished: Je.finished
|
|
372
373
|
}
|
|
373
374
|
},
|
|
374
375
|
labels: {
|
|
375
376
|
mask: "Mask"
|
|
376
377
|
}
|
|
377
|
-
},
|
|
378
|
+
}, Ds = [new Kt({
|
|
378
379
|
filterSize: 1
|
|
379
380
|
})], _e = {
|
|
380
|
-
id:
|
|
381
|
+
id: Le,
|
|
381
382
|
operation: "mask",
|
|
382
383
|
pickable: !1,
|
|
383
384
|
visible: !0,
|
|
384
|
-
extensions:
|
|
385
|
+
extensions: Ds,
|
|
385
386
|
filterRange: [1, 1]
|
|
386
|
-
},
|
|
387
|
+
}, $e = {
|
|
387
388
|
polygon: {
|
|
388
389
|
value: "polygon",
|
|
389
|
-
mode:
|
|
390
|
+
mode: Ht
|
|
390
391
|
},
|
|
391
392
|
rectangle: {
|
|
392
393
|
value: "rectangle",
|
|
393
|
-
mode:
|
|
394
|
+
mode: Nt
|
|
394
395
|
},
|
|
395
396
|
circle: {
|
|
396
397
|
value: "circle",
|
|
397
|
-
mode:
|
|
398
|
+
mode: mt
|
|
398
399
|
},
|
|
399
400
|
lasso: {
|
|
400
401
|
value: "lasso",
|
|
401
|
-
mode:
|
|
402
|
+
mode: It
|
|
402
403
|
},
|
|
403
404
|
edit: {
|
|
404
405
|
value: "edit",
|
|
405
|
-
mode:
|
|
406
|
+
mode: Cs
|
|
406
407
|
}
|
|
407
|
-
},
|
|
408
|
+
}, pe = yt((r) => ({
|
|
408
409
|
layers: {},
|
|
409
410
|
setLayer: (e, t) => r((n) => {
|
|
410
|
-
var a;
|
|
411
|
+
var a, l;
|
|
411
412
|
const s = {
|
|
412
413
|
...n.layers
|
|
413
414
|
};
|
|
@@ -418,7 +419,7 @@ const le = "lassoLayer", Me = "maskLayer", ks = {
|
|
|
418
419
|
const o = s[e] ?? {
|
|
419
420
|
type: null,
|
|
420
421
|
props: {}
|
|
421
|
-
}, i = [...o.props.extensions ?? [], ...((a = t.props) == null ? void 0 : a.extensions) ?? []].reduce((
|
|
422
|
+
}, i = [...o.props.extensions ?? [], ...((a = t.props) == null ? void 0 : a.extensions) ?? []].reduce((y, c) => (y.some((p) => p.equals(c)) || y.push(c), y), []);
|
|
422
423
|
return s[e] = {
|
|
423
424
|
...o,
|
|
424
425
|
...t,
|
|
@@ -426,6 +427,10 @@ const le = "lassoLayer", Me = "maskLayer", ks = {
|
|
|
426
427
|
id: e,
|
|
427
428
|
...o.props,
|
|
428
429
|
...t.props,
|
|
430
|
+
updateTriggers: {
|
|
431
|
+
...o.props.updateTriggers ?? {},
|
|
432
|
+
...((l = t.props) == null ? void 0 : l.updateTriggers) ?? {}
|
|
433
|
+
},
|
|
429
434
|
extensions: i
|
|
430
435
|
},
|
|
431
436
|
legend: {
|
|
@@ -442,12 +447,12 @@ const le = "lassoLayer", Me = "maskLayer", ks = {
|
|
|
442
447
|
};
|
|
443
448
|
return delete n[e], n;
|
|
444
449
|
})
|
|
445
|
-
})),
|
|
450
|
+
})), Rs = {
|
|
446
451
|
transitionDuration: "auto",
|
|
447
|
-
transitionInterpolator: new
|
|
452
|
+
transitionInterpolator: new Xt({
|
|
448
453
|
curve: 2
|
|
449
454
|
})
|
|
450
|
-
},
|
|
455
|
+
}, Us = (r) => {
|
|
451
456
|
const e = r.reduce((t, n) => {
|
|
452
457
|
const {
|
|
453
458
|
id: s,
|
|
@@ -471,15 +476,15 @@ const le = "lassoLayer", Me = "maskLayer", ks = {
|
|
|
471
476
|
var c;
|
|
472
477
|
const {
|
|
473
478
|
type: a
|
|
474
|
-
} =
|
|
479
|
+
} = ye[i.maps[s].basemap], {
|
|
475
480
|
type: l
|
|
476
|
-
} =
|
|
481
|
+
} = ye[o], y = a === l && !!((c = i.maps[s]) != null && c.isLoaded);
|
|
477
482
|
return {
|
|
478
483
|
maps: {
|
|
479
484
|
...i.maps,
|
|
480
485
|
[s]: {
|
|
481
486
|
...i.maps[s],
|
|
482
|
-
isLoaded:
|
|
487
|
+
isLoaded: y,
|
|
483
488
|
basemap: o
|
|
484
489
|
}
|
|
485
490
|
}
|
|
@@ -515,27 +520,27 @@ const le = "lassoLayer", Me = "maskLayer", ks = {
|
|
|
515
520
|
return a == null ? void 0 : a.getViewports(o);
|
|
516
521
|
},
|
|
517
522
|
getViewport: (s, o = 0, i) => {
|
|
518
|
-
var
|
|
523
|
+
var y;
|
|
519
524
|
const l = n().getDeckInstance(s);
|
|
520
|
-
return (
|
|
525
|
+
return (y = l == null ? void 0 : l.getViewports(i)) == null ? void 0 : y[o];
|
|
521
526
|
},
|
|
522
527
|
addLayers: (s, o) => t((i) => {
|
|
523
528
|
var c;
|
|
524
529
|
const a = {
|
|
525
530
|
...i.maps
|
|
526
|
-
}, l = ((c = a[s]) == null ? void 0 : c.layers) ?? [],
|
|
531
|
+
}, l = ((c = a[s]) == null ? void 0 : c.layers) ?? [], y = /* @__PURE__ */ new Set([...l, ...o]);
|
|
527
532
|
return a[s] = {
|
|
528
533
|
...a[s],
|
|
529
|
-
layers: [...
|
|
534
|
+
layers: [...y]
|
|
530
535
|
}, {
|
|
531
536
|
maps: a
|
|
532
537
|
};
|
|
533
538
|
}),
|
|
534
539
|
removeLayers: (s, o) => t((i) => {
|
|
535
|
-
var
|
|
540
|
+
var y;
|
|
536
541
|
const a = {
|
|
537
542
|
...i.maps
|
|
538
|
-
}, l = ((
|
|
543
|
+
}, l = ((y = a[s]) == null ? void 0 : y.layers) ?? [];
|
|
539
544
|
return a[s] = {
|
|
540
545
|
...a[s],
|
|
541
546
|
layers: l.filter((c) => !o.includes(c))
|
|
@@ -544,7 +549,7 @@ const le = "lassoLayer", Me = "maskLayer", ks = {
|
|
|
544
549
|
};
|
|
545
550
|
})
|
|
546
551
|
});
|
|
547
|
-
},
|
|
552
|
+
}, xs = (r) => {
|
|
548
553
|
const e = r.reduce((t, n) => {
|
|
549
554
|
const {
|
|
550
555
|
id: s
|
|
@@ -560,7 +565,7 @@ const le = "lassoLayer", Me = "maskLayer", ks = {
|
|
|
560
565
|
}
|
|
561
566
|
}))
|
|
562
567
|
});
|
|
563
|
-
},
|
|
568
|
+
}, $s = (r) => {
|
|
564
569
|
const e = r.reduce((t, n) => (n.viewState && (t.viewStates[n.id] = n.viewState, t.viewports[n.id] = null), t), {
|
|
565
570
|
viewStates: {},
|
|
566
571
|
viewports: {}
|
|
@@ -571,7 +576,7 @@ const le = "lassoLayer", Me = "maskLayer", ks = {
|
|
|
571
576
|
var a;
|
|
572
577
|
const o = n();
|
|
573
578
|
if (!((a = o.maps[s]) != null && a.isLoaded)) return;
|
|
574
|
-
const i = new
|
|
579
|
+
const i = new Jt(o.viewStates[s]);
|
|
575
580
|
t((l) => ({
|
|
576
581
|
viewports: {
|
|
577
582
|
...l.viewports,
|
|
@@ -617,7 +622,7 @@ const le = "lassoLayer", Me = "maskLayer", ks = {
|
|
|
617
622
|
}
|
|
618
623
|
}))
|
|
619
624
|
});
|
|
620
|
-
},
|
|
625
|
+
}, qs = (r, e) => ({
|
|
621
626
|
fitBounds: (t, n, s) => {
|
|
622
627
|
const o = e(), i = o.getViewport(t);
|
|
623
628
|
if (!i) return;
|
|
@@ -631,7 +636,7 @@ const le = "lassoLayer", Me = "maskLayer", ks = {
|
|
|
631
636
|
const o = e();
|
|
632
637
|
if (!o.getViewport(t)) return;
|
|
633
638
|
const a = {
|
|
634
|
-
...
|
|
639
|
+
...Rs,
|
|
635
640
|
...s == null ? void 0 : s.viewStateOptions
|
|
636
641
|
}, l = {
|
|
637
642
|
...n,
|
|
@@ -639,112 +644,112 @@ const le = "lassoLayer", Me = "maskLayer", ks = {
|
|
|
639
644
|
};
|
|
640
645
|
o.setViewState(t, l);
|
|
641
646
|
}
|
|
642
|
-
}),
|
|
643
|
-
...
|
|
644
|
-
...
|
|
645
|
-
|
|
646
|
-
...
|
|
647
|
-
})),
|
|
648
|
-
function
|
|
647
|
+
}), js = (r) => ze()((...e) => ({
|
|
648
|
+
...Us(r)(...e),
|
|
649
|
+
...xs(r)(...e),
|
|
650
|
+
...$s(r)(...e),
|
|
651
|
+
...qs(...e)
|
|
652
|
+
})), bt = He({});
|
|
653
|
+
function Bs(r) {
|
|
649
654
|
const e = R(5), {
|
|
650
655
|
children: t,
|
|
651
656
|
values: n
|
|
652
657
|
} = r;
|
|
653
658
|
let s;
|
|
654
|
-
e[0] !== n ? (s =
|
|
659
|
+
e[0] !== n ? (s = js(n), e[0] = n, e[1] = s) : s = e[1];
|
|
655
660
|
const [o] = oe(s);
|
|
656
661
|
let i;
|
|
657
|
-
return e[2] !== t || e[3] !== o ? (i = /* @__PURE__ */ N(
|
|
662
|
+
return e[2] !== t || e[3] !== o ? (i = /* @__PURE__ */ N(bt.Provider, { value: o, children: t }), e[2] = t, e[3] = o, e[4] = i) : i = e[4], i;
|
|
658
663
|
}
|
|
659
664
|
function x(r) {
|
|
660
|
-
const e =
|
|
665
|
+
const e = Ge(bt);
|
|
661
666
|
if (!Object.keys(e).length)
|
|
662
667
|
throw new Error("Missing MapProvider in the tree");
|
|
663
|
-
return
|
|
668
|
+
return Qe(e, r);
|
|
664
669
|
}
|
|
665
|
-
var
|
|
666
|
-
function
|
|
670
|
+
var Te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
671
|
+
function vt(r) {
|
|
667
672
|
return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
|
|
668
673
|
}
|
|
669
|
-
var
|
|
670
|
-
function
|
|
671
|
-
if (
|
|
672
|
-
|
|
674
|
+
var qe, et;
|
|
675
|
+
function Vs() {
|
|
676
|
+
if (et) return qe;
|
|
677
|
+
et = 1;
|
|
673
678
|
var r = function(g) {
|
|
674
679
|
return e(g) && !t(g);
|
|
675
680
|
};
|
|
676
|
-
function e(
|
|
677
|
-
return !!
|
|
681
|
+
function e(f) {
|
|
682
|
+
return !!f && typeof f == "object";
|
|
678
683
|
}
|
|
679
|
-
function t(
|
|
680
|
-
var g = Object.prototype.toString.call(
|
|
681
|
-
return g === "[object RegExp]" || g === "[object Date]" || o(
|
|
684
|
+
function t(f) {
|
|
685
|
+
var g = Object.prototype.toString.call(f);
|
|
686
|
+
return g === "[object RegExp]" || g === "[object Date]" || o(f);
|
|
682
687
|
}
|
|
683
688
|
var n = typeof Symbol == "function" && Symbol.for, s = n ? Symbol.for("react.element") : 60103;
|
|
684
|
-
function o(
|
|
685
|
-
return
|
|
689
|
+
function o(f) {
|
|
690
|
+
return f.$$typeof === s;
|
|
686
691
|
}
|
|
687
|
-
function i(
|
|
688
|
-
return Array.isArray(
|
|
692
|
+
function i(f) {
|
|
693
|
+
return Array.isArray(f) ? [] : {};
|
|
689
694
|
}
|
|
690
|
-
function a(
|
|
691
|
-
return g.clone !== !1 && g.isMergeableObject(
|
|
695
|
+
function a(f, g) {
|
|
696
|
+
return g.clone !== !1 && g.isMergeableObject(f) ? m(i(f), f, g) : f;
|
|
692
697
|
}
|
|
693
|
-
function l(
|
|
694
|
-
return
|
|
695
|
-
return a(
|
|
698
|
+
function l(f, g, S) {
|
|
699
|
+
return f.concat(g).map(function(_) {
|
|
700
|
+
return a(_, S);
|
|
696
701
|
});
|
|
697
702
|
}
|
|
698
|
-
function
|
|
703
|
+
function y(f, g) {
|
|
699
704
|
if (!g.customMerge)
|
|
700
|
-
return
|
|
701
|
-
var S = g.customMerge(
|
|
702
|
-
return typeof S == "function" ? S :
|
|
705
|
+
return m;
|
|
706
|
+
var S = g.customMerge(f);
|
|
707
|
+
return typeof S == "function" ? S : m;
|
|
703
708
|
}
|
|
704
|
-
function c(
|
|
705
|
-
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(
|
|
706
|
-
return Object.propertyIsEnumerable.call(
|
|
709
|
+
function c(f) {
|
|
710
|
+
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(f).filter(function(g) {
|
|
711
|
+
return Object.propertyIsEnumerable.call(f, g);
|
|
707
712
|
}) : [];
|
|
708
713
|
}
|
|
709
|
-
function
|
|
710
|
-
return Object.keys(
|
|
714
|
+
function p(f) {
|
|
715
|
+
return Object.keys(f).concat(c(f));
|
|
711
716
|
}
|
|
712
|
-
function
|
|
717
|
+
function h(f, g) {
|
|
713
718
|
try {
|
|
714
|
-
return g in
|
|
719
|
+
return g in f;
|
|
715
720
|
} catch {
|
|
716
721
|
return !1;
|
|
717
722
|
}
|
|
718
723
|
}
|
|
719
|
-
function f
|
|
720
|
-
return
|
|
724
|
+
function d(f, g) {
|
|
725
|
+
return h(f, g) && !(Object.hasOwnProperty.call(f, g) && Object.propertyIsEnumerable.call(f, g));
|
|
721
726
|
}
|
|
722
|
-
function b(
|
|
723
|
-
var
|
|
724
|
-
return S.isMergeableObject(
|
|
725
|
-
|
|
726
|
-
}),
|
|
727
|
-
f
|
|
728
|
-
}),
|
|
727
|
+
function b(f, g, S) {
|
|
728
|
+
var _ = {};
|
|
729
|
+
return S.isMergeableObject(f) && p(f).forEach(function(w) {
|
|
730
|
+
_[w] = a(f[w], S);
|
|
731
|
+
}), p(g).forEach(function(w) {
|
|
732
|
+
d(f, w) || (h(f, w) && S.isMergeableObject(g[w]) ? _[w] = y(w, S)(f[w], g[w], S) : _[w] = a(g[w], S));
|
|
733
|
+
}), _;
|
|
729
734
|
}
|
|
730
|
-
function
|
|
735
|
+
function m(f, g, S) {
|
|
731
736
|
S = S || {}, S.arrayMerge = S.arrayMerge || l, S.isMergeableObject = S.isMergeableObject || r, S.cloneUnlessOtherwiseSpecified = a;
|
|
732
|
-
var
|
|
733
|
-
return
|
|
737
|
+
var _ = Array.isArray(g), w = Array.isArray(f), E = _ === w;
|
|
738
|
+
return E ? _ ? S.arrayMerge(f, g, S) : b(f, g, S) : a(g, S);
|
|
734
739
|
}
|
|
735
|
-
|
|
740
|
+
m.all = function(g, S) {
|
|
736
741
|
if (!Array.isArray(g))
|
|
737
742
|
throw new Error("first argument should be an array");
|
|
738
|
-
return g.reduce(function(
|
|
739
|
-
return
|
|
743
|
+
return g.reduce(function(_, w) {
|
|
744
|
+
return m(_, w, S);
|
|
740
745
|
}, {});
|
|
741
746
|
};
|
|
742
|
-
var
|
|
743
|
-
return
|
|
747
|
+
var T = m;
|
|
748
|
+
return qe = T, qe;
|
|
744
749
|
}
|
|
745
|
-
var
|
|
746
|
-
const fe = /* @__PURE__ */
|
|
747
|
-
class
|
|
750
|
+
var Is = Vs();
|
|
751
|
+
const fe = /* @__PURE__ */ vt(Is), tt = ["anyclick", "pointermove", "panstart", "panmove", "panend", "keyup"];
|
|
752
|
+
class St extends Gt {
|
|
748
753
|
updateState({
|
|
749
754
|
props: e,
|
|
750
755
|
oldProps: t,
|
|
@@ -762,7 +767,7 @@ class bt extends Nt {
|
|
|
762
767
|
const e = this._getEventManager(), {
|
|
763
768
|
eventHandler: t
|
|
764
769
|
} = this.state._editableLayerState;
|
|
765
|
-
for (const n of
|
|
770
|
+
for (const n of tt)
|
|
766
771
|
e.on(n, t, {
|
|
767
772
|
// give nebula a higher priority so that it can stop propagation to deck.gl's map panning handlers
|
|
768
773
|
priority: 100
|
|
@@ -772,7 +777,7 @@ class bt extends Nt {
|
|
|
772
777
|
const t = e ?? this._getEventManager(), {
|
|
773
778
|
eventHandler: n
|
|
774
779
|
} = this.state._editableLayerState;
|
|
775
|
-
for (const s of
|
|
780
|
+
for (const s of tt)
|
|
776
781
|
t.off(s, n);
|
|
777
782
|
}
|
|
778
783
|
_getEventManager() {
|
|
@@ -780,20 +785,20 @@ class bt extends Nt {
|
|
|
780
785
|
this.context.deck.eventManager;
|
|
781
786
|
}
|
|
782
787
|
}
|
|
783
|
-
function
|
|
788
|
+
function Ns({
|
|
784
789
|
mode: r,
|
|
785
790
|
...e
|
|
786
791
|
}) {
|
|
787
|
-
const t =
|
|
792
|
+
const t = Hs(e);
|
|
788
793
|
return {
|
|
789
|
-
type:
|
|
794
|
+
type: St,
|
|
790
795
|
props: {
|
|
791
796
|
...t,
|
|
792
797
|
mode: r
|
|
793
798
|
}
|
|
794
799
|
};
|
|
795
800
|
}
|
|
796
|
-
function
|
|
801
|
+
function Hs({
|
|
797
802
|
layerProps: r,
|
|
798
803
|
onEdit: e,
|
|
799
804
|
getLineColor: t,
|
|
@@ -809,32 +814,32 @@ function Vs({
|
|
|
809
814
|
preventOverlappingLines: !0
|
|
810
815
|
},
|
|
811
816
|
onEdit: e
|
|
812
|
-
}), i = fe(
|
|
817
|
+
}), i = fe(Fs, {
|
|
813
818
|
getTentativeLineColor: t,
|
|
814
819
|
getTentativeFillColor: n,
|
|
815
820
|
getLineColor: t,
|
|
816
821
|
getFillColor: n,
|
|
817
822
|
getEditHandlePointColor: s.fill,
|
|
818
823
|
getEditHandlePointOutlineColor: s.outline,
|
|
819
|
-
dataComparator: (l,
|
|
824
|
+
dataComparator: (l, y) => l.features[0] === y.features[0]
|
|
820
825
|
});
|
|
821
826
|
return fe(i, o);
|
|
822
827
|
}
|
|
823
|
-
const
|
|
828
|
+
const Gs = (r) => ze()((e) => ({
|
|
824
829
|
data: r.reduce((n, s) => {
|
|
825
830
|
const {
|
|
826
831
|
enabled: o = !1,
|
|
827
832
|
mapId: i,
|
|
828
|
-
modeInstance: a = new
|
|
829
|
-
modes: l =
|
|
830
|
-
modeSelected:
|
|
833
|
+
modeInstance: a = new $e.polygon.mode(),
|
|
834
|
+
modes: l = $e,
|
|
835
|
+
modeSelected: y = $e.polygon.value,
|
|
831
836
|
values: c = {}
|
|
832
837
|
} = s;
|
|
833
838
|
return n[i] = {
|
|
834
839
|
enabled: o,
|
|
835
840
|
modeInstance: a,
|
|
836
841
|
modes: l,
|
|
837
|
-
modeSelected:
|
|
842
|
+
modeSelected: y,
|
|
838
843
|
values: c
|
|
839
844
|
}, n;
|
|
840
845
|
}, {}),
|
|
@@ -913,95 +918,95 @@ const Is = (r) => He()((e) => ({
|
|
|
913
918
|
}
|
|
914
919
|
}));
|
|
915
920
|
}
|
|
916
|
-
})),
|
|
917
|
-
function
|
|
921
|
+
})), wt = He({});
|
|
922
|
+
function zs(r) {
|
|
918
923
|
const e = R(5), {
|
|
919
924
|
children: t,
|
|
920
925
|
values: n
|
|
921
926
|
} = r;
|
|
922
927
|
let s;
|
|
923
|
-
e[0] !== n ? (s = () =>
|
|
928
|
+
e[0] !== n ? (s = () => Gs(n), e[0] = n, e[1] = s) : s = e[1];
|
|
924
929
|
const [o] = oe(s);
|
|
925
930
|
let i;
|
|
926
|
-
return e[2] !== t || e[3] !== o ? (i = /* @__PURE__ */ N(
|
|
931
|
+
return e[2] !== t || e[3] !== o ? (i = /* @__PURE__ */ N(wt.Provider, { value: o, children: t }), e[2] = t, e[3] = o, e[4] = i) : i = e[4], i;
|
|
927
932
|
}
|
|
928
933
|
function G(r) {
|
|
929
|
-
const e =
|
|
934
|
+
const e = Ge(wt);
|
|
930
935
|
if (!Object.keys(e).length)
|
|
931
936
|
throw new Error("Missing LassoToolsProvider in the tree");
|
|
932
|
-
return
|
|
937
|
+
return Qe(e, r);
|
|
933
938
|
}
|
|
934
|
-
function
|
|
939
|
+
function Qs({
|
|
935
940
|
mapId: r,
|
|
936
941
|
children: e
|
|
937
942
|
}) {
|
|
938
|
-
const t = G((
|
|
943
|
+
const t = G((d) => {
|
|
939
944
|
var b;
|
|
940
|
-
return (b =
|
|
941
|
-
}), n = G((
|
|
945
|
+
return (b = d.data[r]) == null ? void 0 : b.enabled;
|
|
946
|
+
}), n = G((d) => d.setEnabled), s = G((d) => {
|
|
942
947
|
var b;
|
|
943
|
-
return (b =
|
|
944
|
-
}), o = G((
|
|
948
|
+
return (b = d.data[r]) == null ? void 0 : b.values;
|
|
949
|
+
}), o = G((d) => d.setValue), i = G((d) => d.setVisibility), a = G((d) => {
|
|
945
950
|
var b;
|
|
946
|
-
return (b =
|
|
947
|
-
}), l = G((
|
|
951
|
+
return (b = d.data[r]) == null ? void 0 : b.modeSelected;
|
|
952
|
+
}), l = G((d) => d.setModeSelected), y = G((d) => {
|
|
948
953
|
var b;
|
|
949
|
-
return (b =
|
|
950
|
-
}), c = G((
|
|
954
|
+
return (b = d.data[r]) == null ? void 0 : b.modes;
|
|
955
|
+
}), c = G((d) => d.setModeInstance);
|
|
951
956
|
z(() => {
|
|
952
|
-
const
|
|
953
|
-
if (
|
|
954
|
-
const b =
|
|
957
|
+
const d = y[a];
|
|
958
|
+
if (d && t) {
|
|
959
|
+
const b = d.mode;
|
|
955
960
|
c(r, new b());
|
|
956
961
|
}
|
|
957
|
-
}, [t, r, a,
|
|
962
|
+
}, [t, r, a, y, c]);
|
|
958
963
|
const [
|
|
959
|
-
|
|
964
|
+
p
|
|
960
965
|
// , draw
|
|
961
966
|
] = re(() => {
|
|
962
|
-
const
|
|
963
|
-
var
|
|
967
|
+
const d = (T) => {
|
|
968
|
+
var f;
|
|
964
969
|
return {
|
|
965
|
-
id:
|
|
966
|
-
visible:
|
|
967
|
-
label: (
|
|
970
|
+
id: T.id,
|
|
971
|
+
visible: T.properties.visible,
|
|
972
|
+
label: (f = T.properties) == null ? void 0 : f.label
|
|
968
973
|
};
|
|
969
974
|
};
|
|
970
975
|
return [
|
|
971
|
-
Object.values(s).filter((
|
|
976
|
+
Object.values(s).filter((T) => T.type === "mask").map(d)
|
|
972
977
|
// , draw
|
|
973
978
|
];
|
|
974
|
-
}, [s]),
|
|
975
|
-
n(r, !!
|
|
979
|
+
}, [s]), h = Q((d) => {
|
|
980
|
+
n(r, !!d), l(r, d);
|
|
976
981
|
}, [r, n, l]);
|
|
977
982
|
return e({
|
|
978
983
|
mapId: r,
|
|
979
984
|
enabled: t,
|
|
980
|
-
modes:
|
|
985
|
+
modes: y,
|
|
981
986
|
modeSelected: a,
|
|
982
987
|
values: {
|
|
983
|
-
mask:
|
|
988
|
+
mask: p
|
|
984
989
|
// draw,
|
|
985
990
|
},
|
|
986
|
-
setValue: Q((
|
|
987
|
-
setEnabled: Q((
|
|
988
|
-
setVisibility: Q((
|
|
989
|
-
setModeSelected:
|
|
991
|
+
setValue: Q((d) => o(r, d), [r, o]),
|
|
992
|
+
setEnabled: Q((d) => n(r, d), [r, n]),
|
|
993
|
+
setVisibility: Q((d, b) => i(r, d, b), [r, i]),
|
|
994
|
+
setModeSelected: h
|
|
990
995
|
});
|
|
991
996
|
}
|
|
992
|
-
function
|
|
997
|
+
function _t({
|
|
993
998
|
values: r
|
|
994
999
|
}) {
|
|
995
1000
|
return Object.values(r ?? {}).filter((e) => e.type === "mask");
|
|
996
1001
|
}
|
|
997
|
-
const
|
|
998
|
-
length:
|
|
1002
|
+
const Ws = os({
|
|
1003
|
+
length: is
|
|
999
1004
|
});
|
|
1000
|
-
function
|
|
1001
|
-
return
|
|
1005
|
+
function st(r, e) {
|
|
1006
|
+
return Ws(r).from(ot[V.meter]).to(ot[e]);
|
|
1002
1007
|
}
|
|
1003
|
-
const
|
|
1004
|
-
function
|
|
1008
|
+
const nt = 1e4;
|
|
1009
|
+
function Oe({
|
|
1005
1010
|
meters: r,
|
|
1006
1011
|
unit: e,
|
|
1007
1012
|
locale: t,
|
|
@@ -1009,18 +1014,18 @@ function Pe({
|
|
|
1009
1014
|
autoSplitNumber: n,
|
|
1010
1015
|
...s
|
|
1011
1016
|
} = {
|
|
1012
|
-
autoSplitNumber:
|
|
1017
|
+
autoSplitNumber: nt
|
|
1013
1018
|
}
|
|
1014
1019
|
}) {
|
|
1015
|
-
const o = e ===
|
|
1016
|
-
let l,
|
|
1020
|
+
const o = e === Ie["m-km"], i = e === Ie["ft-mi"], a = o || i;
|
|
1021
|
+
let l, y;
|
|
1017
1022
|
if (a) {
|
|
1018
|
-
const c = r < (n ??
|
|
1019
|
-
let
|
|
1020
|
-
l = c ?
|
|
1023
|
+
const c = r < (n ?? nt);
|
|
1024
|
+
let p = c ? V.meter : V.kilometer;
|
|
1025
|
+
l = c ? me.meter : me.kilometer, i && (l = c ? me.feet : me.mile, p = c ? V.feet : V.mile), y = st(r, p);
|
|
1021
1026
|
} else
|
|
1022
|
-
l =
|
|
1023
|
-
return `${
|
|
1027
|
+
l = me[e], y = st(r, e);
|
|
1028
|
+
return `${gt(y, t, {
|
|
1024
1029
|
style: "unit",
|
|
1025
1030
|
unit: l,
|
|
1026
1031
|
unitDisplay: "short",
|
|
@@ -1030,7 +1035,7 @@ function Pe({
|
|
|
1030
1035
|
...s
|
|
1031
1036
|
})}`;
|
|
1032
1037
|
}
|
|
1033
|
-
function
|
|
1038
|
+
function jr(r, {
|
|
1034
1039
|
hasDoubleClickZoom: e
|
|
1035
1040
|
}) {
|
|
1036
1041
|
return typeof r == "boolean" ? {
|
|
@@ -1040,7 +1045,7 @@ function xr(r, {
|
|
|
1040
1045
|
doubleClickZoom: e
|
|
1041
1046
|
};
|
|
1042
1047
|
}
|
|
1043
|
-
function
|
|
1048
|
+
function Tt(r, e, t) {
|
|
1044
1049
|
if (r > 0) {
|
|
1045
1050
|
const {
|
|
1046
1051
|
formatTooltip: n,
|
|
@@ -1062,7 +1067,7 @@ function _t(r, e, t) {
|
|
|
1062
1067
|
}
|
|
1063
1068
|
return [];
|
|
1064
1069
|
}
|
|
1065
|
-
class
|
|
1070
|
+
class Zs extends zt {
|
|
1066
1071
|
constructor() {
|
|
1067
1072
|
super(...arguments);
|
|
1068
1073
|
ee(this, "_isMeasuringSessionFinished", !1);
|
|
@@ -1077,9 +1082,9 @@ class zs extends Ht {
|
|
|
1077
1082
|
this._isMeasuringSessionFinished && (this._isMeasuringSessionFinished = !1, this.resetClickSequence(), this.area = 0);
|
|
1078
1083
|
const {
|
|
1079
1084
|
picks: s
|
|
1080
|
-
} = t, o =
|
|
1085
|
+
} = t, o = Qt(s), i = this.getClickSequence();
|
|
1081
1086
|
let a = !1;
|
|
1082
|
-
!o && !this.allowOverlapping(n) && (this.addClickSequence(t), a = !0), this.area =
|
|
1087
|
+
!o && !this.allowOverlapping(n) && (this.addClickSequence(t), a = !0), this.area = Ye({
|
|
1083
1088
|
type: "Polygon",
|
|
1084
1089
|
coordinates: [this.getClickSequence()]
|
|
1085
1090
|
}), this.isFinalizedEdition(i, o) ? this.finalizeEdition(n) : a && n.onEdit({
|
|
@@ -1100,8 +1105,8 @@ class zs extends Ht {
|
|
|
1100
1105
|
super.handlePointerMove(t, n);
|
|
1101
1106
|
const s = this.getTentativeGuide(n);
|
|
1102
1107
|
if (s && s.geometry.type === "Polygon") {
|
|
1103
|
-
const o =
|
|
1104
|
-
this.area =
|
|
1108
|
+
const o = ss(s);
|
|
1109
|
+
this.area = Ye(s), this.tooltips = Tt(this.area, o.geometry.coordinates, n.modeConfig);
|
|
1105
1110
|
}
|
|
1106
1111
|
}
|
|
1107
1112
|
resetClickSequence() {
|
|
@@ -1134,7 +1139,7 @@ class zs extends Ht {
|
|
|
1134
1139
|
type: "LineString",
|
|
1135
1140
|
coordinates: [...s.slice(0, s.length - 1)]
|
|
1136
1141
|
};
|
|
1137
|
-
|
|
1142
|
+
ns(i, a).features.length > 0 && (n = !0);
|
|
1138
1143
|
}
|
|
1139
1144
|
return n;
|
|
1140
1145
|
}
|
|
@@ -1173,7 +1178,7 @@ class zs extends Ht {
|
|
|
1173
1178
|
unit: s,
|
|
1174
1179
|
options: o
|
|
1175
1180
|
}) {
|
|
1176
|
-
return
|
|
1181
|
+
return Oe({
|
|
1177
1182
|
meters: t,
|
|
1178
1183
|
locale: n,
|
|
1179
1184
|
unit: s,
|
|
@@ -1181,7 +1186,7 @@ class zs extends Ht {
|
|
|
1181
1186
|
}) + "2";
|
|
1182
1187
|
}
|
|
1183
1188
|
}
|
|
1184
|
-
class
|
|
1189
|
+
class Ks extends mt {
|
|
1185
1190
|
constructor() {
|
|
1186
1191
|
super(...arguments);
|
|
1187
1192
|
ee(this, "_isMeasuringSessionFinished", !1);
|
|
@@ -1196,7 +1201,7 @@ class Qs extends dt {
|
|
|
1196
1201
|
this._isMeasuringSessionFinished && (this._isMeasuringSessionFinished = !1, this.resetClickSequence(), this._currentArea = 0), super.handleClick(t, n);
|
|
1197
1202
|
}
|
|
1198
1203
|
handlePointerMove(t, n) {
|
|
1199
|
-
this._isMeasuringSessionFinished || (super.handlePointerMove(t, n), this.tooltips =
|
|
1204
|
+
this._isMeasuringSessionFinished || (super.handlePointerMove(t, n), this.tooltips = Tt(this.areaCircle, this.position, n.modeConfig));
|
|
1200
1205
|
}
|
|
1201
1206
|
checkAndFinishPolygon(t) {
|
|
1202
1207
|
const n = this.getClickSequence(), s = this.getTentativeGuide(t);
|
|
@@ -1249,7 +1254,7 @@ class Qs extends dt {
|
|
|
1249
1254
|
unit: s,
|
|
1250
1255
|
options: o
|
|
1251
1256
|
}) {
|
|
1252
|
-
return
|
|
1257
|
+
return Oe({
|
|
1253
1258
|
meters: t,
|
|
1254
1259
|
locale: n,
|
|
1255
1260
|
unit: s,
|
|
@@ -1257,7 +1262,7 @@ class Qs extends dt {
|
|
|
1257
1262
|
}) + "2";
|
|
1258
1263
|
}
|
|
1259
1264
|
}
|
|
1260
|
-
class Et extends
|
|
1265
|
+
class Et extends Wt {
|
|
1261
1266
|
handleClick(e, t) {
|
|
1262
1267
|
super.handleClick(e, t), t.onEdit({
|
|
1263
1268
|
// data is the same
|
|
@@ -1308,7 +1313,7 @@ class Et extends zt {
|
|
|
1308
1313
|
unit: n,
|
|
1309
1314
|
options: s
|
|
1310
1315
|
}) {
|
|
1311
|
-
return
|
|
1316
|
+
return Oe({
|
|
1312
1317
|
meters: e,
|
|
1313
1318
|
locale: t,
|
|
1314
1319
|
unit: n,
|
|
@@ -1316,7 +1321,7 @@ class Et extends zt {
|
|
|
1316
1321
|
});
|
|
1317
1322
|
}
|
|
1318
1323
|
}
|
|
1319
|
-
const ne = "mapMeasureLayer",
|
|
1324
|
+
const ne = "mapMeasureLayer", Ys = {
|
|
1320
1325
|
id: ne,
|
|
1321
1326
|
pickable: !1,
|
|
1322
1327
|
billboard: !1,
|
|
@@ -1341,16 +1346,16 @@ const ne = "mapMeasureLayer", Ws = {
|
|
|
1341
1346
|
getLineWidth: 2
|
|
1342
1347
|
}
|
|
1343
1348
|
}
|
|
1344
|
-
},
|
|
1349
|
+
}, je = {
|
|
1345
1350
|
editing: [23, 102, 214, 255],
|
|
1346
1351
|
finished: [71, 219, 153, 255],
|
|
1347
1352
|
point: [255, 255, 255, 255]
|
|
1348
|
-
},
|
|
1353
|
+
}, rt = {
|
|
1349
1354
|
styles: {
|
|
1350
1355
|
colors: {
|
|
1351
|
-
editing:
|
|
1352
|
-
finished:
|
|
1353
|
-
point:
|
|
1356
|
+
editing: je.editing,
|
|
1357
|
+
finished: je.finished,
|
|
1358
|
+
point: je.point
|
|
1354
1359
|
}
|
|
1355
1360
|
}
|
|
1356
1361
|
}, V = {
|
|
@@ -1361,15 +1366,15 @@ const ne = "mapMeasureLayer", Ws = {
|
|
|
1361
1366
|
mile: "mile",
|
|
1362
1367
|
yard: "yard",
|
|
1363
1368
|
feet: "feet"
|
|
1364
|
-
},
|
|
1369
|
+
}, Ie = {
|
|
1365
1370
|
"m-km": "m-km",
|
|
1366
1371
|
"ft-mi": "ft-mi",
|
|
1367
1372
|
...V
|
|
1368
|
-
},
|
|
1373
|
+
}, Xs = {
|
|
1369
1374
|
meters: "meters",
|
|
1370
1375
|
kilometer: "kilometers",
|
|
1371
1376
|
mile: "miles"
|
|
1372
|
-
},
|
|
1377
|
+
}, ot = {
|
|
1373
1378
|
[V.kilometer]: "km",
|
|
1374
1379
|
[V.meter]: "m",
|
|
1375
1380
|
[V.centimeter]: "cm",
|
|
@@ -1377,7 +1382,7 @@ const ne = "mapMeasureLayer", Ws = {
|
|
|
1377
1382
|
[V.mile]: "mi",
|
|
1378
1383
|
[V.yard]: "yd",
|
|
1379
1384
|
[V.feet]: "ft"
|
|
1380
|
-
},
|
|
1385
|
+
}, me = {
|
|
1381
1386
|
[V.kilometer]: "kilometer",
|
|
1382
1387
|
[V.meter]: "meter",
|
|
1383
1388
|
[V.centimeter]: "centimeter",
|
|
@@ -1422,220 +1427,220 @@ const ne = "mapMeasureLayer", Ws = {
|
|
|
1422
1427
|
value: "feet",
|
|
1423
1428
|
system: "imperial"
|
|
1424
1429
|
}
|
|
1425
|
-
},
|
|
1430
|
+
}, it = [K["m-km"], K.kilometer, K.meter, K["ft-mi"], K.mile, K.feet], Js = [K["m-km"], K.kilometer, K.meter, K["ft-mi"], K.mile, K.feet], en = {
|
|
1426
1431
|
distance: {
|
|
1427
1432
|
value: "distance",
|
|
1428
1433
|
mode: Et
|
|
1429
1434
|
},
|
|
1430
1435
|
buffer: {
|
|
1431
1436
|
value: "buffer",
|
|
1432
|
-
mode:
|
|
1437
|
+
mode: Ks
|
|
1433
1438
|
},
|
|
1434
1439
|
area: {
|
|
1435
1440
|
value: "area",
|
|
1436
|
-
mode:
|
|
1441
|
+
mode: Zs
|
|
1437
1442
|
}
|
|
1438
|
-
},
|
|
1439
|
-
distance:
|
|
1440
|
-
buffer:
|
|
1441
|
-
area:
|
|
1443
|
+
}, tn = {
|
|
1444
|
+
distance: it,
|
|
1445
|
+
buffer: it,
|
|
1446
|
+
area: Js
|
|
1442
1447
|
};
|
|
1443
|
-
function
|
|
1448
|
+
function Mt(r) {
|
|
1444
1449
|
const e = R(12), {
|
|
1445
1450
|
mapId: t,
|
|
1446
1451
|
layerId: n
|
|
1447
1452
|
} = r;
|
|
1448
1453
|
let s;
|
|
1449
1454
|
e[0] !== t ? (s = (b) => {
|
|
1450
|
-
var
|
|
1451
|
-
return (
|
|
1455
|
+
var m;
|
|
1456
|
+
return (m = b.maps[t]) == null ? void 0 : m.basemap;
|
|
1452
1457
|
}, e[0] = t, e[1] = s) : s = e[1];
|
|
1453
1458
|
const o = x(s);
|
|
1454
1459
|
let i;
|
|
1455
1460
|
e[2] !== t ? (i = (b) => {
|
|
1456
|
-
var
|
|
1457
|
-
return (
|
|
1461
|
+
var m;
|
|
1462
|
+
return (m = b.maps[t]) == null ? void 0 : m.isLoaded;
|
|
1458
1463
|
}, e[2] = t, e[3] = i) : i = e[3];
|
|
1459
|
-
const a = x(i), l = x(
|
|
1464
|
+
const a = x(i), l = x(nn), y = pe(sn), {
|
|
1460
1465
|
type: c
|
|
1461
|
-
} =
|
|
1462
|
-
let
|
|
1463
|
-
e[4] !== l || e[5] !==
|
|
1466
|
+
} = ye[o], p = c === te.googleMaps;
|
|
1467
|
+
let h, d;
|
|
1468
|
+
e[4] !== l || e[5] !== p || e[6] !== a || e[7] !== n || e[8] !== t || e[9] !== y ? (h = () => {
|
|
1464
1469
|
let b = null;
|
|
1465
|
-
if (
|
|
1466
|
-
const
|
|
1467
|
-
b = new
|
|
1470
|
+
if (p && a) {
|
|
1471
|
+
const m = l(t);
|
|
1472
|
+
b = new es(m.getDiv(), {});
|
|
1468
1473
|
}
|
|
1469
|
-
|
|
1474
|
+
y(n, {
|
|
1470
1475
|
props: {
|
|
1471
1476
|
eventManager: b
|
|
1472
1477
|
}
|
|
1473
1478
|
});
|
|
1474
|
-
},
|
|
1479
|
+
}, d = [l, p, a, n, t, y], e[4] = l, e[5] = p, e[6] = a, e[7] = n, e[8] = t, e[9] = y, e[10] = h, e[11] = d) : (h = e[10], d = e[11]), z(h, d);
|
|
1475
1480
|
}
|
|
1476
|
-
function
|
|
1481
|
+
function sn(r) {
|
|
1477
1482
|
return r.setLayer;
|
|
1478
1483
|
}
|
|
1479
|
-
function
|
|
1484
|
+
function nn(r) {
|
|
1480
1485
|
return r.getOverlayInstance;
|
|
1481
1486
|
}
|
|
1482
|
-
const
|
|
1483
|
-
function
|
|
1487
|
+
const rn = [ce, Le, ne];
|
|
1488
|
+
function on({
|
|
1484
1489
|
children: r,
|
|
1485
1490
|
mapId: e,
|
|
1486
1491
|
defaultProps: {
|
|
1487
|
-
styles: t =
|
|
1492
|
+
styles: t = xe.styles,
|
|
1488
1493
|
labels: n
|
|
1489
1494
|
} = {
|
|
1490
|
-
styles:
|
|
1491
|
-
labels:
|
|
1495
|
+
styles: xe.styles,
|
|
1496
|
+
labels: xe.labels
|
|
1492
1497
|
},
|
|
1493
1498
|
layerProps: s = {},
|
|
1494
1499
|
defaultType: o = "mask"
|
|
1495
1500
|
}) {
|
|
1496
|
-
const i = G((
|
|
1501
|
+
const i = G((M) => {
|
|
1497
1502
|
var k;
|
|
1498
|
-
return (k =
|
|
1499
|
-
}), a = G((
|
|
1503
|
+
return (k = M.data[e]) == null ? void 0 : k.enabled;
|
|
1504
|
+
}), a = G((M) => M.setEnabled), l = G((M) => {
|
|
1500
1505
|
var k;
|
|
1501
|
-
return (k =
|
|
1502
|
-
}),
|
|
1506
|
+
return (k = M.data[e]) == null ? void 0 : k.values;
|
|
1507
|
+
}), y = G((M) => M.setValue), c = G((M) => {
|
|
1503
1508
|
var k;
|
|
1504
|
-
return (k =
|
|
1505
|
-
}),
|
|
1509
|
+
return (k = M.data[e]) == null ? void 0 : k.modeInstance;
|
|
1510
|
+
}), p = G((M) => {
|
|
1506
1511
|
var k;
|
|
1507
|
-
return (k =
|
|
1508
|
-
}),
|
|
1512
|
+
return (k = M.data[e]) == null ? void 0 : k.modeSelected;
|
|
1513
|
+
}), h = pe((M) => M.setLayer), d = x((M) => M.addLayers), b = x((M) => M.removeLayers), m = x(ht((M) => {
|
|
1509
1514
|
var k;
|
|
1510
|
-
return (k =
|
|
1511
|
-
})),
|
|
1512
|
-
|
|
1515
|
+
return (k = M.maps[e]) == null ? void 0 : k.layers.filter((u) => !rn.includes(u));
|
|
1516
|
+
})), T = x((M) => M.getDeckInstance), f = Me({});
|
|
1517
|
+
Mt({
|
|
1513
1518
|
mapId: e,
|
|
1514
|
-
layerId:
|
|
1519
|
+
layerId: ce
|
|
1515
1520
|
});
|
|
1516
|
-
const g = re(() =>
|
|
1521
|
+
const g = re(() => _t({
|
|
1517
1522
|
values: l
|
|
1518
1523
|
}), [l]), S = re(() => ({
|
|
1519
1524
|
type: "FeatureCollection",
|
|
1520
|
-
features: g.map((
|
|
1525
|
+
features: g.map((M) => ({
|
|
1521
1526
|
type: "Feature",
|
|
1522
|
-
geometry:
|
|
1523
|
-
properties:
|
|
1524
|
-
id:
|
|
1527
|
+
geometry: M.geometry,
|
|
1528
|
+
properties: M.properties,
|
|
1529
|
+
id: M.id
|
|
1525
1530
|
}))
|
|
1526
|
-
}), [g]),
|
|
1527
|
-
const
|
|
1531
|
+
}), [g]), _ = re(() => g.filter((M) => M.properties.visible).map((M) => M.id), [g]), [w, E] = oe(S), [A, U] = oe([]), F = Q(() => {
|
|
1532
|
+
const M = {
|
|
1528
1533
|
...S,
|
|
1529
1534
|
features: S.features.filter((k) => {
|
|
1530
1535
|
var u;
|
|
1531
1536
|
return (u = k.properties) == null ? void 0 : u.visible;
|
|
1532
1537
|
})
|
|
1533
1538
|
};
|
|
1534
|
-
|
|
1539
|
+
E(M);
|
|
1535
1540
|
}, [S]);
|
|
1536
1541
|
z(() => {
|
|
1537
1542
|
F();
|
|
1538
1543
|
}, [F]);
|
|
1539
|
-
const j =
|
|
1540
|
-
z(() => (
|
|
1541
|
-
b(e, [
|
|
1542
|
-
}), [
|
|
1544
|
+
const j = Me(g.length);
|
|
1545
|
+
z(() => (d(e, [ce]), () => {
|
|
1546
|
+
b(e, [ce]);
|
|
1547
|
+
}), [d, e, b]);
|
|
1543
1548
|
const q = Q(() => {
|
|
1544
1549
|
F(), U([]), a(e, !1);
|
|
1545
1550
|
}, [e, F, a]), $ = Q(({
|
|
1546
|
-
editType:
|
|
1551
|
+
editType: M,
|
|
1547
1552
|
updatedData: k
|
|
1548
1553
|
}) => {
|
|
1549
|
-
if (
|
|
1554
|
+
if (M === Y.cancel) {
|
|
1550
1555
|
q();
|
|
1551
1556
|
return;
|
|
1552
1557
|
}
|
|
1553
|
-
|
|
1558
|
+
E(k), M !== Y.updateTentativeFeature && M === Y.addFeature && (p !== "edit" && (j.current = j.current + 1), k.features.forEach((u, v) => {
|
|
1554
1559
|
var C;
|
|
1555
1560
|
(C = u.properties).label ?? (C.label = `${n == null ? void 0 : n.mask} ${j.current}`), u.properties.index = v, u.properties.visible = u.properties.visible ?? !0;
|
|
1556
|
-
const
|
|
1557
|
-
|
|
1561
|
+
const P = u.id ?? crypto.randomUUID();
|
|
1562
|
+
y(e, P, {
|
|
1558
1563
|
geometry: u.geometry,
|
|
1559
1564
|
properties: u.properties,
|
|
1560
1565
|
// visible: true,
|
|
1561
1566
|
type: o
|
|
1562
1567
|
});
|
|
1563
1568
|
}), q());
|
|
1564
|
-
}, [o, q, n == null ? void 0 : n.mask, e,
|
|
1569
|
+
}, [o, q, n == null ? void 0 : n.mask, e, p, y]);
|
|
1565
1570
|
return z(() => {
|
|
1566
|
-
const
|
|
1571
|
+
const M = i, {
|
|
1567
1572
|
border: k,
|
|
1568
1573
|
point: u,
|
|
1569
1574
|
fill: v
|
|
1570
1575
|
} = t.colors.editing, {
|
|
1571
|
-
border:
|
|
1576
|
+
border: P,
|
|
1572
1577
|
fill: C
|
|
1573
|
-
} = t.colors.finished,
|
|
1578
|
+
} = t.colors.finished, L = Ns({
|
|
1574
1579
|
layerProps: {
|
|
1575
1580
|
...s.mask,
|
|
1576
|
-
pickable:
|
|
1577
|
-
data:
|
|
1581
|
+
pickable: M,
|
|
1582
|
+
data: w,
|
|
1578
1583
|
selectedFeatureIndexes: A,
|
|
1579
1584
|
updateTriggers: {
|
|
1580
|
-
getFilterValue:
|
|
1585
|
+
getFilterValue: _
|
|
1581
1586
|
},
|
|
1582
1587
|
onClick: (O) => {
|
|
1583
1588
|
const H = O;
|
|
1584
1589
|
H.isGuide || U([H.index]);
|
|
1585
1590
|
}
|
|
1586
1591
|
},
|
|
1587
|
-
getLineColor: (O) => A[0] === O.properties.index ? k :
|
|
1592
|
+
getLineColor: (O) => A[0] === O.properties.index ? k : P,
|
|
1588
1593
|
getFillColor: (O) => A[0] === O.properties.index ? v : C,
|
|
1589
1594
|
pointColor: {
|
|
1590
1595
|
fill: u,
|
|
1591
1596
|
outline: k
|
|
1592
1597
|
},
|
|
1593
1598
|
onEdit: $,
|
|
1594
|
-
mode:
|
|
1599
|
+
mode: M ? c : new Zt()
|
|
1595
1600
|
});
|
|
1596
|
-
|
|
1597
|
-
}, [
|
|
1598
|
-
const
|
|
1601
|
+
h(ce, L);
|
|
1602
|
+
}, [w, i, s.mask, _, c, $, A, h, t.colors.editing, t.colors.finished]), z(() => {
|
|
1603
|
+
const M = {
|
|
1599
1604
|
..._e,
|
|
1600
1605
|
data: S,
|
|
1601
|
-
getFilterValue: (k) => Number(
|
|
1606
|
+
getFilterValue: (k) => Number(_.includes(k.id)),
|
|
1602
1607
|
updateTriggers: {
|
|
1603
|
-
getFilterValue:
|
|
1608
|
+
getFilterValue: _
|
|
1604
1609
|
}
|
|
1605
1610
|
};
|
|
1606
|
-
return
|
|
1607
|
-
type:
|
|
1608
|
-
props:
|
|
1609
|
-
}),
|
|
1611
|
+
return h(_e.id, {
|
|
1612
|
+
type: ts,
|
|
1613
|
+
props: M
|
|
1614
|
+
}), d(e, [_e.id]), () => {
|
|
1610
1615
|
b(e, [_e.id]);
|
|
1611
1616
|
};
|
|
1612
|
-
}, [
|
|
1613
|
-
|
|
1617
|
+
}, [d, e, S, _, b, h]), z(() => {
|
|
1618
|
+
m == null || m.forEach((M) => {
|
|
1614
1619
|
var v;
|
|
1615
|
-
const k = (v =
|
|
1616
|
-
i && (
|
|
1617
|
-
const u = !i && (
|
|
1618
|
-
|
|
1620
|
+
const k = (v = T(e)) == null ? void 0 : v.props.layers.find((P) => P.props.id === M);
|
|
1621
|
+
i && (f.current[M] = k == null ? void 0 : k.props.pickable);
|
|
1622
|
+
const u = !i && (f.current[M] ?? (k == null ? void 0 : k.props.pickable));
|
|
1623
|
+
h(M, {
|
|
1619
1624
|
props: {
|
|
1620
1625
|
pickable: u,
|
|
1621
|
-
extensions: [new
|
|
1622
|
-
maskId: !i &&
|
|
1626
|
+
extensions: [new Yt()],
|
|
1627
|
+
maskId: !i && _.length ? Le : void 0
|
|
1623
1628
|
}
|
|
1624
1629
|
});
|
|
1625
1630
|
});
|
|
1626
|
-
}, [i,
|
|
1631
|
+
}, [i, T, e, m, _.length, h]), r;
|
|
1627
1632
|
}
|
|
1628
|
-
|
|
1629
|
-
function
|
|
1633
|
+
on.Controls = Qs;
|
|
1634
|
+
function an({
|
|
1630
1635
|
mode: r,
|
|
1631
1636
|
...e
|
|
1632
1637
|
}) {
|
|
1633
|
-
const t =
|
|
1638
|
+
const t = ln({
|
|
1634
1639
|
mode: r,
|
|
1635
1640
|
...e
|
|
1636
1641
|
});
|
|
1637
1642
|
return {
|
|
1638
|
-
type:
|
|
1643
|
+
type: St,
|
|
1639
1644
|
props: {
|
|
1640
1645
|
...t,
|
|
1641
1646
|
mode: r,
|
|
@@ -1643,7 +1648,7 @@ function nn({
|
|
|
1643
1648
|
}
|
|
1644
1649
|
};
|
|
1645
1650
|
}
|
|
1646
|
-
function
|
|
1651
|
+
function ln({
|
|
1647
1652
|
mode: r,
|
|
1648
1653
|
layerProps: e,
|
|
1649
1654
|
locale: t,
|
|
@@ -1654,14 +1659,14 @@ function rn({
|
|
|
1654
1659
|
pointColor: a,
|
|
1655
1660
|
textOptions: l
|
|
1656
1661
|
}) {
|
|
1657
|
-
const
|
|
1662
|
+
const y = fe(e, {
|
|
1658
1663
|
visible: n,
|
|
1659
1664
|
pickable: n,
|
|
1660
1665
|
modeConfig: {
|
|
1661
1666
|
// We force distance due to conversion is addressed at feature getText level
|
|
1662
|
-
formatTooltip: (
|
|
1667
|
+
formatTooltip: (h) => h,
|
|
1663
1668
|
turfOptions: {
|
|
1664
|
-
units:
|
|
1669
|
+
units: Xs.meters
|
|
1665
1670
|
}
|
|
1666
1671
|
},
|
|
1667
1672
|
...n && {
|
|
@@ -1676,10 +1681,10 @@ function rn({
|
|
|
1676
1681
|
// needed for the outlineWidth and outlineColor attributes to be effective
|
|
1677
1682
|
smoothing: 0.2
|
|
1678
1683
|
},
|
|
1679
|
-
getText: (
|
|
1680
|
-
var
|
|
1681
|
-
return (
|
|
1682
|
-
meters:
|
|
1684
|
+
getText: (h) => {
|
|
1685
|
+
var d;
|
|
1686
|
+
return (d = r == null ? void 0 : r.getTooltipText) == null ? void 0 : d.call(r, {
|
|
1687
|
+
meters: h.text,
|
|
1683
1688
|
locale: t,
|
|
1684
1689
|
unit: s,
|
|
1685
1690
|
options: l
|
|
@@ -1690,7 +1695,7 @@ function rn({
|
|
|
1690
1695
|
}
|
|
1691
1696
|
}
|
|
1692
1697
|
}
|
|
1693
|
-
}), c = fe(
|
|
1698
|
+
}), c = fe(Ys, {
|
|
1694
1699
|
_subLayerProps: {
|
|
1695
1700
|
guides: {
|
|
1696
1701
|
getLineColor: i,
|
|
@@ -1700,34 +1705,34 @@ function rn({
|
|
|
1700
1705
|
getEditHandlePointColor: a,
|
|
1701
1706
|
getEditHandlePointOutlineColor: i
|
|
1702
1707
|
});
|
|
1703
|
-
return fe(c,
|
|
1708
|
+
return fe(c, y);
|
|
1704
1709
|
}
|
|
1705
|
-
const
|
|
1710
|
+
const cn = (r) => ze()((e) => ({
|
|
1706
1711
|
measurements: r.reduce((n, s) => {
|
|
1707
1712
|
const {
|
|
1708
1713
|
mapId: o,
|
|
1709
1714
|
modeSelected: i,
|
|
1710
|
-
modes: a =
|
|
1711
|
-
units: l =
|
|
1712
|
-
distance:
|
|
1715
|
+
modes: a = en,
|
|
1716
|
+
units: l = tn,
|
|
1717
|
+
distance: y = 0,
|
|
1713
1718
|
finished: c = !1,
|
|
1714
|
-
locale:
|
|
1715
|
-
positions:
|
|
1716
|
-
clearLayerOnStart:
|
|
1717
|
-
unit: b =
|
|
1718
|
-
enabled:
|
|
1719
|
+
locale: p = "en",
|
|
1720
|
+
positions: h = [],
|
|
1721
|
+
clearLayerOnStart: d = !1,
|
|
1722
|
+
unit: b = Ie["m-km"],
|
|
1723
|
+
enabled: m = !1
|
|
1719
1724
|
} = s;
|
|
1720
1725
|
return n[o] = {
|
|
1721
1726
|
modes: a,
|
|
1722
1727
|
units: l,
|
|
1723
1728
|
modeSelected: i,
|
|
1724
|
-
distance:
|
|
1729
|
+
distance: y,
|
|
1725
1730
|
finished: c,
|
|
1726
|
-
locale:
|
|
1727
|
-
positions:
|
|
1731
|
+
locale: p,
|
|
1732
|
+
positions: h,
|
|
1728
1733
|
unit: b,
|
|
1729
|
-
clearLayerOnStart:
|
|
1730
|
-
enabled:
|
|
1734
|
+
clearLayerOnStart: d,
|
|
1735
|
+
enabled: m
|
|
1731
1736
|
}, n;
|
|
1732
1737
|
}, {}),
|
|
1733
1738
|
mode: Et,
|
|
@@ -1819,25 +1824,25 @@ const on = (r) => He()((e) => ({
|
|
|
1819
1824
|
}
|
|
1820
1825
|
}));
|
|
1821
1826
|
}
|
|
1822
|
-
})),
|
|
1823
|
-
function
|
|
1827
|
+
})), Pt = He({});
|
|
1828
|
+
function un(r) {
|
|
1824
1829
|
const e = R(5), {
|
|
1825
1830
|
children: t,
|
|
1826
1831
|
values: n
|
|
1827
1832
|
} = r;
|
|
1828
1833
|
let s;
|
|
1829
|
-
e[0] !== n ? (s =
|
|
1834
|
+
e[0] !== n ? (s = cn(n), e[0] = n, e[1] = s) : s = e[1];
|
|
1830
1835
|
const [o] = oe(s);
|
|
1831
1836
|
let i;
|
|
1832
|
-
return e[2] !== t || e[3] !== o ? (i = /* @__PURE__ */ N(
|
|
1837
|
+
return e[2] !== t || e[3] !== o ? (i = /* @__PURE__ */ N(Pt.Provider, { value: o, children: t }), e[2] = t, e[3] = o, e[4] = i) : i = e[4], i;
|
|
1833
1838
|
}
|
|
1834
1839
|
function I(r) {
|
|
1835
|
-
const e =
|
|
1840
|
+
const e = Ge(Pt);
|
|
1836
1841
|
if (!Object.keys(e).length)
|
|
1837
1842
|
throw new Error("Missing MeasurementToolsProvider in the tree");
|
|
1838
|
-
return
|
|
1843
|
+
return Qe(e, r);
|
|
1839
1844
|
}
|
|
1840
|
-
function
|
|
1845
|
+
function Lt(r) {
|
|
1841
1846
|
const e = R(74), {
|
|
1842
1847
|
mapId: t
|
|
1843
1848
|
} = r;
|
|
@@ -1849,117 +1854,117 @@ function Mt(r) {
|
|
|
1849
1854
|
const i = I(o);
|
|
1850
1855
|
let a;
|
|
1851
1856
|
e[4] !== t ? (a = (D) => D.measurements[t].distance, e[4] = t, e[5] = a) : a = e[5];
|
|
1852
|
-
const l = I(a),
|
|
1857
|
+
const l = I(a), y = I(bn);
|
|
1853
1858
|
let c;
|
|
1854
|
-
e[6] !==
|
|
1855
|
-
const
|
|
1856
|
-
let
|
|
1857
|
-
e[9] !== t ? (
|
|
1858
|
-
const
|
|
1859
|
+
e[6] !== y || e[7] !== t ? (c = (D) => y(t, D), e[6] = y, e[7] = t, e[8] = c) : c = e[8];
|
|
1860
|
+
const p = c;
|
|
1861
|
+
let h;
|
|
1862
|
+
e[9] !== t ? (h = (D) => D.measurements[t].clearLayerOnStart, e[9] = t, e[10] = h) : h = e[10];
|
|
1863
|
+
const d = I(h);
|
|
1859
1864
|
let b;
|
|
1860
1865
|
e[11] !== t ? (b = (D) => D.measurements[t].enabled, e[11] = t, e[12] = b) : b = e[12];
|
|
1861
|
-
const
|
|
1862
|
-
let
|
|
1863
|
-
e[13] !==
|
|
1864
|
-
const g =
|
|
1866
|
+
const m = I(b), T = I(gn);
|
|
1867
|
+
let f;
|
|
1868
|
+
e[13] !== T || e[14] !== t ? (f = (D) => T(t, D), e[13] = T, e[14] = t, e[15] = f) : f = e[15];
|
|
1869
|
+
const g = f;
|
|
1865
1870
|
let S;
|
|
1866
1871
|
e[16] !== t ? (S = (D) => D.measurements[t].modeSelected, e[16] = t, e[17] = S) : S = e[17];
|
|
1867
|
-
const
|
|
1868
|
-
let
|
|
1869
|
-
e[18] !==
|
|
1870
|
-
g(!!D),
|
|
1871
|
-
}, e[18] =
|
|
1872
|
-
const A =
|
|
1872
|
+
const _ = I(S), w = I(hn);
|
|
1873
|
+
let E;
|
|
1874
|
+
e[18] !== w || e[19] !== t || e[20] !== g ? (E = (D) => {
|
|
1875
|
+
g(!!D), w(t, D);
|
|
1876
|
+
}, e[18] = w, e[19] = t, e[20] = g, e[21] = E) : E = e[21];
|
|
1877
|
+
const A = E;
|
|
1873
1878
|
let U;
|
|
1874
1879
|
e[22] !== t ? (U = (D) => D.measurements[t].finished, e[22] = t, e[23] = U) : U = e[23];
|
|
1875
|
-
const F = I(U), j = I(
|
|
1880
|
+
const F = I(U), j = I(yn);
|
|
1876
1881
|
let q;
|
|
1877
1882
|
e[24] !== j || e[25] !== t ? (q = (D) => j(t, D), e[24] = j, e[25] = t, e[26] = q) : q = e[26];
|
|
1878
1883
|
const $ = q;
|
|
1879
|
-
let
|
|
1880
|
-
e[27] !== t ? (
|
|
1881
|
-
const k = I(
|
|
1884
|
+
let M;
|
|
1885
|
+
e[27] !== t ? (M = (D) => D.measurements[t].locale, e[27] = t, e[28] = M) : M = e[28];
|
|
1886
|
+
const k = I(M), u = I(mn);
|
|
1882
1887
|
let v;
|
|
1883
1888
|
e[29] !== u || e[30] !== t ? (v = (D) => u(t, D), e[29] = u, e[30] = t, e[31] = v) : v = e[31];
|
|
1884
|
-
const
|
|
1889
|
+
const P = v;
|
|
1885
1890
|
let C;
|
|
1886
1891
|
e[32] !== t ? (C = (D) => D.measurements[t].modeInstance, e[32] = t, e[33] = C) : C = e[33];
|
|
1887
|
-
const
|
|
1892
|
+
const L = I(C), O = I(pn);
|
|
1888
1893
|
let H;
|
|
1889
1894
|
e[34] !== O || e[35] !== t ? (H = (D) => O(t, D), e[34] = O, e[35] = t, e[36] = H) : H = e[36];
|
|
1890
1895
|
const W = H;
|
|
1891
1896
|
let Z;
|
|
1892
1897
|
e[37] !== t ? (Z = (D) => D.measurements[t].positions, e[37] = t, e[38] = Z) : Z = e[38];
|
|
1893
|
-
const B = I(Z), X = I(
|
|
1894
|
-
let ye;
|
|
1895
|
-
e[39] !== X || e[40] !== t ? (ye = (D) => X(t, D), e[39] = X, e[40] = t, e[41] = ye) : ye = e[41];
|
|
1896
|
-
const ue = ye;
|
|
1898
|
+
const B = I(Z), X = I(fn);
|
|
1897
1899
|
let he;
|
|
1898
|
-
e[
|
|
1899
|
-
const
|
|
1900
|
+
e[39] !== X || e[40] !== t ? (he = (D) => X(t, D), e[39] = X, e[40] = t, e[41] = he) : he = e[41];
|
|
1901
|
+
const de = he;
|
|
1900
1902
|
let ge;
|
|
1901
|
-
e[
|
|
1902
|
-
const ke = ge;
|
|
1903
|
+
e[42] !== t ? (ge = (D) => D.measurements[t].unit, e[42] = t, e[43] = ge) : ge = e[43];
|
|
1904
|
+
const ke = I(ge), Ae = I(dn);
|
|
1903
1905
|
let be;
|
|
1904
|
-
e[
|
|
1905
|
-
|
|
1906
|
-
}, e[47] = P, e[48] = ue, e[49] = be) : be = e[49];
|
|
1907
|
-
const Ae = be;
|
|
1906
|
+
e[44] !== Ae || e[45] !== t ? (be = (D) => Ae(t, D), e[44] = Ae, e[45] = t, e[46] = be) : be = e[46];
|
|
1907
|
+
const Ce = be;
|
|
1908
1908
|
let ve;
|
|
1909
|
-
e[
|
|
1910
|
-
|
|
1911
|
-
}, e[
|
|
1912
|
-
const
|
|
1909
|
+
e[47] !== L || e[48] !== de ? (ve = () => {
|
|
1910
|
+
L == null || L.resetClickSequence(), de([]);
|
|
1911
|
+
}, e[47] = L, e[48] = de, e[49] = ve) : ve = e[49];
|
|
1912
|
+
const Fe = ve;
|
|
1913
1913
|
let Se;
|
|
1914
|
-
|
|
1914
|
+
e[50] !== g ? (Se = (D) => {
|
|
1915
|
+
g(D);
|
|
1916
|
+
}, e[50] = g, e[51] = Se) : Se = e[51];
|
|
1917
|
+
const De = Se;
|
|
1918
|
+
let we;
|
|
1919
|
+
return e[52] !== Fe || e[53] !== d || e[54] !== l || e[55] !== m || e[56] !== F || e[57] !== k || e[58] !== L || e[59] !== _ || e[60] !== s || e[61] !== B || e[62] !== p || e[63] !== g || e[64] !== $ || e[65] !== P || e[66] !== W || e[67] !== A || e[68] !== de || e[69] !== Ce || e[70] !== De || e[71] !== ke || e[72] !== i ? (we = {
|
|
1915
1920
|
modes: s,
|
|
1916
1921
|
units: i,
|
|
1917
1922
|
distance: l,
|
|
1918
|
-
clearLayerOnStart:
|
|
1919
|
-
modeSelected:
|
|
1920
|
-
enabled:
|
|
1923
|
+
clearLayerOnStart: d,
|
|
1924
|
+
modeSelected: _,
|
|
1925
|
+
enabled: m,
|
|
1921
1926
|
finished: F,
|
|
1922
1927
|
locale: k,
|
|
1923
|
-
modeInstance:
|
|
1928
|
+
modeInstance: L,
|
|
1924
1929
|
positions: B,
|
|
1925
|
-
unit:
|
|
1926
|
-
setDistance:
|
|
1930
|
+
unit: ke,
|
|
1931
|
+
setDistance: p,
|
|
1927
1932
|
setModeSelected: A,
|
|
1928
1933
|
setFinished: $,
|
|
1929
|
-
setLocale:
|
|
1930
|
-
setPositions:
|
|
1931
|
-
setUnit:
|
|
1934
|
+
setLocale: P,
|
|
1935
|
+
setPositions: de,
|
|
1936
|
+
setUnit: Ce,
|
|
1932
1937
|
setEnabled: g,
|
|
1933
|
-
toggleLayer:
|
|
1934
|
-
clearLayer:
|
|
1938
|
+
toggleLayer: De,
|
|
1939
|
+
clearLayer: Fe,
|
|
1935
1940
|
setModeInstance: W
|
|
1936
|
-
}, e[52] =
|
|
1941
|
+
}, e[52] = Fe, e[53] = d, e[54] = l, e[55] = m, e[56] = F, e[57] = k, e[58] = L, e[59] = _, e[60] = s, e[61] = B, e[62] = p, e[63] = g, e[64] = $, e[65] = P, e[66] = W, e[67] = A, e[68] = de, e[69] = Ce, e[70] = De, e[71] = ke, e[72] = i, e[73] = we) : we = e[73], we;
|
|
1937
1942
|
}
|
|
1938
|
-
function
|
|
1943
|
+
function dn(r) {
|
|
1939
1944
|
return r.setUnit;
|
|
1940
1945
|
}
|
|
1941
|
-
function
|
|
1946
|
+
function fn(r) {
|
|
1942
1947
|
return r.setPositions;
|
|
1943
1948
|
}
|
|
1944
|
-
function
|
|
1949
|
+
function pn(r) {
|
|
1945
1950
|
return r.setModeInstance;
|
|
1946
1951
|
}
|
|
1947
|
-
function
|
|
1952
|
+
function mn(r) {
|
|
1948
1953
|
return r.setLocale;
|
|
1949
1954
|
}
|
|
1950
|
-
function
|
|
1955
|
+
function yn(r) {
|
|
1951
1956
|
return r.setFinished;
|
|
1952
1957
|
}
|
|
1953
|
-
function
|
|
1958
|
+
function hn(r) {
|
|
1954
1959
|
return r.setModeSelected;
|
|
1955
1960
|
}
|
|
1956
|
-
function
|
|
1961
|
+
function gn(r) {
|
|
1957
1962
|
return r.setEnabled;
|
|
1958
1963
|
}
|
|
1959
|
-
function
|
|
1964
|
+
function bn(r) {
|
|
1960
1965
|
return r.setDistance;
|
|
1961
1966
|
}
|
|
1962
|
-
function
|
|
1967
|
+
function vn(r) {
|
|
1963
1968
|
const e = R(42), {
|
|
1964
1969
|
mapId: t,
|
|
1965
1970
|
textOptions: n,
|
|
@@ -1973,81 +1978,81 @@ function hn(r) {
|
|
|
1973
1978
|
modes: i,
|
|
1974
1979
|
units: a,
|
|
1975
1980
|
distance: l,
|
|
1976
|
-
setDistance:
|
|
1981
|
+
setDistance: y,
|
|
1977
1982
|
clearLayerOnStart: c,
|
|
1978
|
-
modeSelected:
|
|
1979
|
-
setModeSelected:
|
|
1980
|
-
enabled:
|
|
1983
|
+
modeSelected: p,
|
|
1984
|
+
setModeSelected: h,
|
|
1985
|
+
enabled: d,
|
|
1981
1986
|
setEnabled: b,
|
|
1982
|
-
finished:
|
|
1983
|
-
setFinished:
|
|
1984
|
-
locale:
|
|
1987
|
+
finished: m,
|
|
1988
|
+
setFinished: T,
|
|
1989
|
+
locale: f,
|
|
1985
1990
|
setLocale: g,
|
|
1986
1991
|
modeInstance: S,
|
|
1987
|
-
setModeInstance:
|
|
1988
|
-
positions:
|
|
1989
|
-
setPositions:
|
|
1992
|
+
setModeInstance: _,
|
|
1993
|
+
positions: w,
|
|
1994
|
+
setPositions: E,
|
|
1990
1995
|
unit: A,
|
|
1991
1996
|
setUnit: U,
|
|
1992
1997
|
clearLayer: F,
|
|
1993
1998
|
toggleLayer: j
|
|
1994
|
-
} =
|
|
1999
|
+
} = Lt(o);
|
|
1995
2000
|
let q;
|
|
1996
|
-
e[2] !==
|
|
1997
|
-
if (
|
|
1998
|
-
const
|
|
1999
|
-
|
|
2001
|
+
e[2] !== p || e[3] !== i || e[4] !== _ || e[5] !== E ? (q = () => {
|
|
2002
|
+
if (p && i[p]) {
|
|
2003
|
+
const P = i[p].mode;
|
|
2004
|
+
_(new P());
|
|
2000
2005
|
}
|
|
2001
2006
|
return () => {
|
|
2002
|
-
|
|
2007
|
+
E([]);
|
|
2003
2008
|
};
|
|
2004
|
-
}, e[2] =
|
|
2009
|
+
}, e[2] = p, e[3] = i, e[4] = _, e[5] = E, e[6] = q) : q = e[6];
|
|
2005
2010
|
let $;
|
|
2006
|
-
e[7] !==
|
|
2007
|
-
let
|
|
2008
|
-
e[13] !== j || e[14] !== F || e[15] !== c || e[16] !==
|
|
2009
|
-
|
|
2010
|
-
}, e[13] = j, e[14] = F, e[15] = c, e[16] =
|
|
2011
|
-
const k =
|
|
2011
|
+
e[7] !== p || e[8] !== i || e[9] !== b || e[10] !== _ || e[11] !== E ? ($ = [i, p, E, _, b], e[7] = p, e[8] = i, e[9] = b, e[10] = _, e[11] = E, e[12] = $) : $ = e[12], z(q, $);
|
|
2012
|
+
let M;
|
|
2013
|
+
e[13] !== j || e[14] !== F || e[15] !== c || e[16] !== m ? (M = (P) => {
|
|
2014
|
+
P && (c || !m) && F(), j(P);
|
|
2015
|
+
}, e[13] = j, e[14] = F, e[15] = c, e[16] = m, e[17] = M) : M = e[17];
|
|
2016
|
+
const k = M, u = !!c;
|
|
2012
2017
|
let v;
|
|
2013
|
-
return e[18] !== s || e[19] !== F || e[20] !== l || e[21] !==
|
|
2018
|
+
return e[18] !== s || e[19] !== F || e[20] !== l || e[21] !== d || e[22] !== m || e[23] !== f || e[24] !== t || e[25] !== S || e[26] !== p || e[27] !== i || e[28] !== w || e[29] !== y || e[30] !== b || e[31] !== T || e[32] !== g || e[33] !== h || e[34] !== E || e[35] !== U || e[36] !== u || e[37] !== n || e[38] !== k || e[39] !== A || e[40] !== a ? (v = s({
|
|
2014
2019
|
mapId: t,
|
|
2015
2020
|
distance: l,
|
|
2016
|
-
enabled:
|
|
2017
|
-
finished:
|
|
2018
|
-
locale:
|
|
2019
|
-
positions:
|
|
2021
|
+
enabled: d,
|
|
2022
|
+
finished: m,
|
|
2023
|
+
locale: f,
|
|
2024
|
+
positions: w,
|
|
2020
2025
|
unit: A,
|
|
2021
2026
|
clearLayerOnStart: u,
|
|
2022
|
-
modeSelected:
|
|
2027
|
+
modeSelected: p,
|
|
2023
2028
|
modes: i,
|
|
2024
2029
|
units: a,
|
|
2025
|
-
value:
|
|
2030
|
+
value: Oe({
|
|
2026
2031
|
meters: l,
|
|
2027
2032
|
unit: A,
|
|
2028
|
-
locale:
|
|
2033
|
+
locale: f,
|
|
2029
2034
|
options: n
|
|
2030
2035
|
}),
|
|
2031
2036
|
modeInstance: S,
|
|
2032
|
-
setModeSelected:
|
|
2033
|
-
setDistance:
|
|
2034
|
-
setFinished:
|
|
2037
|
+
setModeSelected: h,
|
|
2038
|
+
setDistance: y,
|
|
2039
|
+
setFinished: T,
|
|
2035
2040
|
setLocale: g,
|
|
2036
|
-
setPositions:
|
|
2041
|
+
setPositions: E,
|
|
2037
2042
|
setUnit: U,
|
|
2038
2043
|
setEnabled: b,
|
|
2039
2044
|
toggleLayer: k,
|
|
2040
2045
|
clearLayer: F
|
|
2041
|
-
}), e[18] = s, e[19] = F, e[20] = l, e[21] =
|
|
2046
|
+
}), e[18] = s, e[19] = F, e[20] = l, e[21] = d, e[22] = m, e[23] = f, e[24] = t, e[25] = S, e[26] = p, e[27] = i, e[28] = w, e[29] = y, e[30] = b, e[31] = T, e[32] = g, e[33] = h, e[34] = E, e[35] = U, e[36] = u, e[37] = n, e[38] = k, e[39] = A, e[40] = a, e[41] = v) : v = e[41], v;
|
|
2042
2047
|
}
|
|
2043
|
-
const
|
|
2044
|
-
function
|
|
2048
|
+
const Sn = [ne];
|
|
2049
|
+
function wn({
|
|
2045
2050
|
children: r,
|
|
2046
2051
|
mapId: e,
|
|
2047
2052
|
defaultProps: {
|
|
2048
|
-
styles: t =
|
|
2053
|
+
styles: t = rt.styles
|
|
2049
2054
|
} = {
|
|
2050
|
-
styles:
|
|
2055
|
+
styles: rt.styles
|
|
2051
2056
|
},
|
|
2052
2057
|
layerProps: n = {},
|
|
2053
2058
|
textOptions: s
|
|
@@ -2057,96 +2062,96 @@ function bn({
|
|
|
2057
2062
|
clearLayerOnStart: i,
|
|
2058
2063
|
enabled: a,
|
|
2059
2064
|
finished: l,
|
|
2060
|
-
setFinished:
|
|
2065
|
+
setFinished: y,
|
|
2061
2066
|
locale: c,
|
|
2062
|
-
setPositions:
|
|
2063
|
-
unit:
|
|
2064
|
-
modeInstance:
|
|
2065
|
-
} =
|
|
2067
|
+
setPositions: p,
|
|
2068
|
+
unit: h,
|
|
2069
|
+
modeInstance: d
|
|
2070
|
+
} = Lt({
|
|
2066
2071
|
mapId: e
|
|
2067
|
-
}), b =
|
|
2068
|
-
var
|
|
2069
|
-
return (
|
|
2070
|
-
})), g = x((
|
|
2071
|
-
|
|
2072
|
+
}), b = pe((w) => w.setLayer), m = x((w) => w.addLayers), T = x((w) => w.removeLayers), f = x(ht((w) => {
|
|
2073
|
+
var E;
|
|
2074
|
+
return (E = w.maps[e]) == null ? void 0 : E.layers.filter((A) => !Sn.includes(A));
|
|
2075
|
+
})), g = x((w) => w.getDeckInstance), S = Me({});
|
|
2076
|
+
Mt({
|
|
2072
2077
|
mapId: e,
|
|
2073
2078
|
layerId: ne
|
|
2074
|
-
}), z(() => (a &&
|
|
2075
|
-
|
|
2076
|
-
}), [
|
|
2077
|
-
|
|
2079
|
+
}), z(() => (a && m(e, [ne]), () => {
|
|
2080
|
+
T(e, [ne]);
|
|
2081
|
+
}), [m, i, e, T, a]), z(() => {
|
|
2082
|
+
f == null || f.forEach((w) => {
|
|
2078
2083
|
var U;
|
|
2079
|
-
const
|
|
2080
|
-
a && (S.current[
|
|
2081
|
-
const A = !a && (S.current[
|
|
2082
|
-
b(
|
|
2084
|
+
const E = (U = g(e)) == null ? void 0 : U.props.layers.find((F) => F.props.id === w);
|
|
2085
|
+
a && (S.current[w] = E == null ? void 0 : E.props.pickable);
|
|
2086
|
+
const A = !a && (S.current[w] ?? (E == null ? void 0 : E.props.pickable));
|
|
2087
|
+
b(w, {
|
|
2083
2088
|
props: {
|
|
2084
2089
|
pickable: A
|
|
2085
2090
|
}
|
|
2086
2091
|
});
|
|
2087
2092
|
});
|
|
2088
|
-
}, [a, g, e,
|
|
2089
|
-
const
|
|
2090
|
-
editType:
|
|
2091
|
-
editContext:
|
|
2093
|
+
}, [a, g, e, f, b]);
|
|
2094
|
+
const _ = Q(({
|
|
2095
|
+
editType: w,
|
|
2096
|
+
editContext: E
|
|
2092
2097
|
}) => {
|
|
2093
|
-
if (
|
|
2094
|
-
|
|
2098
|
+
if (w === Y.cancel) {
|
|
2099
|
+
d.resetClickSequence();
|
|
2095
2100
|
return;
|
|
2096
2101
|
}
|
|
2097
|
-
|
|
2098
|
-
const A =
|
|
2099
|
-
A != null && A.length &&
|
|
2100
|
-
}, [
|
|
2102
|
+
w === Y.addPosition && o(E.distance), y(!!E.finished);
|
|
2103
|
+
const A = E.positions;
|
|
2104
|
+
A != null && A.length && p(A);
|
|
2105
|
+
}, [d, o, y, p]);
|
|
2101
2106
|
return z(() => {
|
|
2102
|
-
const
|
|
2107
|
+
const w = l ? t.colors.finished : t.colors.editing, E = l ? t.colors.finished : t.colors.point, A = an({
|
|
2103
2108
|
layerProps: {
|
|
2104
2109
|
...n,
|
|
2105
2110
|
pickable: n.pickable ?? !l
|
|
2106
2111
|
},
|
|
2107
2112
|
enabled: a,
|
|
2108
|
-
guideColor:
|
|
2109
|
-
pointColor:
|
|
2113
|
+
guideColor: w,
|
|
2114
|
+
pointColor: E,
|
|
2110
2115
|
locale: c,
|
|
2111
|
-
onEdit:
|
|
2112
|
-
unit:
|
|
2113
|
-
mode:
|
|
2116
|
+
onEdit: _,
|
|
2117
|
+
unit: h,
|
|
2118
|
+
mode: d,
|
|
2114
2119
|
textOptions: s
|
|
2115
2120
|
});
|
|
2116
2121
|
b(ne, A);
|
|
2117
|
-
}, [l,
|
|
2122
|
+
}, [l, d, n, c, _, b, t.colors.editing, t.colors.finished, t.colors.point, s, h, a]), r;
|
|
2118
2123
|
}
|
|
2119
|
-
|
|
2120
|
-
function
|
|
2124
|
+
wn.Controls = vn;
|
|
2125
|
+
function _n(r) {
|
|
2121
2126
|
const e = R(7), {
|
|
2122
2127
|
mapId: t
|
|
2123
2128
|
} = r;
|
|
2124
2129
|
let n;
|
|
2125
|
-
e[0] !== t ? (n = (
|
|
2130
|
+
e[0] !== t ? (n = (y) => y.maps[t], e[0] = t, e[1] = n) : n = e[1];
|
|
2126
2131
|
const {
|
|
2127
2132
|
layers: s
|
|
2128
|
-
} = x(n), o =
|
|
2133
|
+
} = x(n), o = pe(En);
|
|
2129
2134
|
let i, a;
|
|
2130
2135
|
if (e[2] !== o || e[3] !== s) {
|
|
2131
|
-
let
|
|
2132
|
-
e[5] !== o ? (
|
|
2136
|
+
let y;
|
|
2137
|
+
e[5] !== o ? (y = (c) => o[c], e[5] = o, e[6] = y) : y = e[6], a = s.map(y).filter(Tn), e[2] = o, e[3] = s, e[4] = a;
|
|
2133
2138
|
} else
|
|
2134
2139
|
a = e[4];
|
|
2135
2140
|
return i = a, i;
|
|
2136
2141
|
}
|
|
2137
|
-
function
|
|
2142
|
+
function Tn(r) {
|
|
2138
2143
|
return !!r;
|
|
2139
2144
|
}
|
|
2140
|
-
function
|
|
2145
|
+
function En(r) {
|
|
2141
2146
|
return r.layers;
|
|
2142
2147
|
}
|
|
2143
|
-
const
|
|
2144
|
-
function
|
|
2145
|
-
const e = r.filter((n) => !
|
|
2148
|
+
const at = [Le, ce, ne];
|
|
2149
|
+
function Ot(r) {
|
|
2150
|
+
const e = r.filter((n) => !at.includes(n.props.id)).sort((n, s) => (n.order ?? 1 / 0) - (s.order ?? 1 / 0)), t = at.map((n) => r.find((s) => s.props.id === n)).filter((n) => !!n);
|
|
2146
2151
|
return [...e, ...t];
|
|
2147
2152
|
}
|
|
2148
|
-
const
|
|
2149
|
-
function
|
|
2153
|
+
const Mn = 200;
|
|
2154
|
+
function Br(r) {
|
|
2150
2155
|
const e = R(48);
|
|
2151
2156
|
let t, n, s, o;
|
|
2152
2157
|
e[0] !== r ? ({
|
|
@@ -2156,80 +2161,80 @@ function $r(r) {
|
|
|
2156
2161
|
...o
|
|
2157
2162
|
} = r, e[0] = r, e[1] = t, e[2] = n, e[3] = s, e[4] = o) : (t = e[1], n = e[2], s = e[3], o = e[4]);
|
|
2158
2163
|
let i;
|
|
2159
|
-
e[5] !== t ? (i = (
|
|
2164
|
+
e[5] !== t ? (i = (L) => L.maps[t].basemap, e[5] = t, e[6] = i) : i = e[6];
|
|
2160
2165
|
const a = x(i);
|
|
2161
2166
|
let l;
|
|
2162
|
-
e[7] !== t ? (l = (
|
|
2163
|
-
const
|
|
2167
|
+
e[7] !== t ? (l = (L) => L.maps[t].instanceRef, e[7] = t, e[8] = l) : l = e[8];
|
|
2168
|
+
const y = x(l);
|
|
2164
2169
|
let c;
|
|
2165
|
-
e[9] !== t ? (c = (
|
|
2166
|
-
const
|
|
2167
|
-
let
|
|
2168
|
-
e[11] !== t ? (
|
|
2169
|
-
const b = x(
|
|
2170
|
-
let
|
|
2171
|
-
e[13] !== t ? (
|
|
2170
|
+
e[9] !== t ? (c = (L) => L.maps[t].overlayRef, e[9] = t, e[10] = c) : c = e[10];
|
|
2171
|
+
const p = x(c), h = Me(null);
|
|
2172
|
+
let d;
|
|
2173
|
+
e[11] !== t ? (d = (L) => L.viewStates[t], e[11] = t, e[12] = d) : d = e[12];
|
|
2174
|
+
const b = x(d), m = x(Cn), T = x(An), f = x(kn), g = x(On), S = x(Ln);
|
|
2175
|
+
let _;
|
|
2176
|
+
e[13] !== t ? (_ = {
|
|
2172
2177
|
mapId: t
|
|
2173
|
-
}, e[13] = t, e[14] =
|
|
2174
|
-
const
|
|
2175
|
-
let
|
|
2176
|
-
e[15] !==
|
|
2177
|
-
const U =
|
|
2178
|
+
}, e[13] = t, e[14] = _) : _ = e[14];
|
|
2179
|
+
const w = _n(_);
|
|
2180
|
+
let E, A;
|
|
2181
|
+
e[15] !== w ? (A = Ot(w), e[15] = w, e[16] = A) : A = e[16], E = A;
|
|
2182
|
+
const U = E;
|
|
2178
2183
|
let F;
|
|
2179
|
-
e[17] !== t || e[18] !== s || e[19] !==
|
|
2180
|
-
const O =
|
|
2181
|
-
if (
|
|
2184
|
+
e[17] !== t || e[18] !== s || e[19] !== T || e[20] !== S ? (F = (L) => {
|
|
2185
|
+
const O = T;
|
|
2186
|
+
if (L.interactionState.isZooming && (h.current && clearInterval(h.current), h.current = setTimeout(() => {
|
|
2182
2187
|
S(t);
|
|
2183
|
-
},
|
|
2184
|
-
s(
|
|
2188
|
+
}, Mn)), s) {
|
|
2189
|
+
s(L, O);
|
|
2185
2190
|
return;
|
|
2186
2191
|
}
|
|
2187
|
-
O(t,
|
|
2188
|
-
}, e[17] = t, e[18] = s, e[19] =
|
|
2192
|
+
O(t, L.viewState);
|
|
2193
|
+
}, e[17] = t, e[18] = s, e[19] = T, e[20] = S, e[21] = F) : F = e[21];
|
|
2189
2194
|
const j = F;
|
|
2190
2195
|
let q;
|
|
2191
|
-
e[22] !== t || e[23] !== n || e[24] !==
|
|
2192
|
-
|
|
2193
|
-
}, e[22] = t, e[23] = n, e[24] =
|
|
2196
|
+
e[22] !== t || e[23] !== n || e[24] !== f || e[25] !== S ? (q = (L) => {
|
|
2197
|
+
f(t, L), n == null || n(L), S(t);
|
|
2198
|
+
}, e[22] = t, e[23] = n, e[24] = f, e[25] = S, e[26] = q) : q = e[26];
|
|
2194
2199
|
const $ = q;
|
|
2195
|
-
let
|
|
2196
|
-
e[27] !==
|
|
2200
|
+
let M;
|
|
2201
|
+
e[27] !== m || e[28] !== t || e[29] !== o || e[30] !== g ? (M = (L) => {
|
|
2197
2202
|
var W, Z;
|
|
2198
|
-
const O = (W =
|
|
2199
|
-
g(t, H), (Z = o.onAfterRender) == null || Z.call(o,
|
|
2200
|
-
}, e[27] =
|
|
2201
|
-
const k =
|
|
2203
|
+
const O = (W = m(t)) == null ? void 0 : W.props.layers, H = !!(O != null && O.every(Pn));
|
|
2204
|
+
g(t, H), (Z = o.onAfterRender) == null || Z.call(o, L);
|
|
2205
|
+
}, e[27] = m, e[28] = t, e[29] = o, e[30] = g, e[31] = M) : M = e[31];
|
|
2206
|
+
const k = M, u = o.onDragEnd;
|
|
2202
2207
|
let v;
|
|
2203
|
-
e[32] !== u || e[33] !== t || e[34] !== S ? (v = (...
|
|
2204
|
-
const O =
|
|
2208
|
+
e[32] !== u || e[33] !== t || e[34] !== S ? (v = (...L) => {
|
|
2209
|
+
const O = L;
|
|
2205
2210
|
S(t), u && u(...O);
|
|
2206
2211
|
}, e[32] = u, e[33] = t, e[34] = S, e[35] = v) : v = e[35];
|
|
2207
|
-
const
|
|
2212
|
+
const P = v;
|
|
2208
2213
|
let C;
|
|
2209
|
-
return e[36] !== a || e[37] !== U || e[38] !== k || e[39] !==
|
|
2214
|
+
return e[36] !== a || e[37] !== U || e[38] !== k || e[39] !== P || e[40] !== $ || e[41] !== j || e[42] !== t || e[43] !== y || e[44] !== p || e[45] !== o || e[46] !== b ? (C = /* @__PURE__ */ N(Os, { ...o, id: t, layers: U, instanceRef: y, overlayRef: p, basemap: a, initialViewState: b, onLoad: $, onViewStateChange: j, onAfterRender: k, onDragEnd: P }), e[36] = a, e[37] = U, e[38] = k, e[39] = P, e[40] = $, e[41] = j, e[42] = t, e[43] = y, e[44] = p, e[45] = o, e[46] = b, e[47] = C) : C = e[47], C;
|
|
2210
2215
|
}
|
|
2211
|
-
function
|
|
2216
|
+
function Pn(r) {
|
|
2212
2217
|
return r == null ? void 0 : r.isLoaded;
|
|
2213
2218
|
}
|
|
2214
|
-
function
|
|
2219
|
+
function Ln(r) {
|
|
2215
2220
|
return r.updateViewPort;
|
|
2216
2221
|
}
|
|
2217
|
-
function
|
|
2222
|
+
function On(r) {
|
|
2218
2223
|
return r.setLayersLoad;
|
|
2219
2224
|
}
|
|
2220
|
-
function
|
|
2225
|
+
function kn(r) {
|
|
2221
2226
|
return r.setLoad;
|
|
2222
2227
|
}
|
|
2223
|
-
function
|
|
2228
|
+
function An(r) {
|
|
2224
2229
|
return r.setViewState;
|
|
2225
2230
|
}
|
|
2226
|
-
function
|
|
2231
|
+
function Cn(r) {
|
|
2227
2232
|
return r.getDeckInstance;
|
|
2228
2233
|
}
|
|
2229
|
-
var
|
|
2230
|
-
function
|
|
2231
|
-
return
|
|
2232
|
-
var t = typeof globalThis < "u" && globalThis || typeof self < "u" && self || typeof
|
|
2234
|
+
var Ee = { exports: {} }, lt;
|
|
2235
|
+
function Fn() {
|
|
2236
|
+
return lt || (lt = 1, function(r, e) {
|
|
2237
|
+
var t = typeof globalThis < "u" && globalThis || typeof self < "u" && self || typeof Te < "u" && Te, n = function() {
|
|
2233
2238
|
function o() {
|
|
2234
2239
|
this.fetch = !1, this.DOMException = t.DOMException;
|
|
2235
2240
|
}
|
|
@@ -2238,7 +2243,7 @@ function kn() {
|
|
|
2238
2243
|
(function(o) {
|
|
2239
2244
|
(function(i) {
|
|
2240
2245
|
var a = typeof o < "u" && o || typeof self < "u" && self || // eslint-disable-next-line no-undef
|
|
2241
|
-
typeof
|
|
2246
|
+
typeof Te < "u" && Te || {}, l = {
|
|
2242
2247
|
searchParams: "URLSearchParams" in a,
|
|
2243
2248
|
iterable: "Symbol" in a && "iterator" in Symbol,
|
|
2244
2249
|
blob: "FileReader" in a && "Blob" in a && function() {
|
|
@@ -2251,7 +2256,7 @@ function kn() {
|
|
|
2251
2256
|
formData: "FormData" in a,
|
|
2252
2257
|
arrayBuffer: "ArrayBuffer" in a
|
|
2253
2258
|
};
|
|
2254
|
-
function
|
|
2259
|
+
function y(u) {
|
|
2255
2260
|
return u && DataView.prototype.isPrototypeOf(u);
|
|
2256
2261
|
}
|
|
2257
2262
|
if (l.arrayBuffer)
|
|
@@ -2265,31 +2270,31 @@ function kn() {
|
|
|
2265
2270
|
"[object Uint32Array]",
|
|
2266
2271
|
"[object Float32Array]",
|
|
2267
2272
|
"[object Float64Array]"
|
|
2268
|
-
],
|
|
2273
|
+
], p = ArrayBuffer.isView || function(u) {
|
|
2269
2274
|
return u && c.indexOf(Object.prototype.toString.call(u)) > -1;
|
|
2270
2275
|
};
|
|
2271
|
-
function
|
|
2276
|
+
function h(u) {
|
|
2272
2277
|
if (typeof u != "string" && (u = String(u)), /[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(u) || u === "")
|
|
2273
2278
|
throw new TypeError('Invalid character in header field name: "' + u + '"');
|
|
2274
2279
|
return u.toLowerCase();
|
|
2275
2280
|
}
|
|
2276
|
-
function
|
|
2281
|
+
function d(u) {
|
|
2277
2282
|
return typeof u != "string" && (u = String(u)), u;
|
|
2278
2283
|
}
|
|
2279
2284
|
function b(u) {
|
|
2280
2285
|
var v = {
|
|
2281
2286
|
next: function() {
|
|
2282
|
-
var
|
|
2283
|
-
return { done:
|
|
2287
|
+
var P = u.shift();
|
|
2288
|
+
return { done: P === void 0, value: P };
|
|
2284
2289
|
}
|
|
2285
2290
|
};
|
|
2286
2291
|
return l.iterable && (v[Symbol.iterator] = function() {
|
|
2287
2292
|
return v;
|
|
2288
2293
|
}), v;
|
|
2289
2294
|
}
|
|
2290
|
-
function
|
|
2291
|
-
this.map = {}, u instanceof
|
|
2292
|
-
this.append(
|
|
2295
|
+
function m(u) {
|
|
2296
|
+
this.map = {}, u instanceof m ? u.forEach(function(v, P) {
|
|
2297
|
+
this.append(P, v);
|
|
2293
2298
|
}, this) : Array.isArray(u) ? u.forEach(function(v) {
|
|
2294
2299
|
if (v.length != 2)
|
|
2295
2300
|
throw new TypeError("Headers constructor: expected name/value pair to be length 2, found" + v.length);
|
|
@@ -2298,77 +2303,77 @@ function kn() {
|
|
|
2298
2303
|
this.append(v, u[v]);
|
|
2299
2304
|
}, this);
|
|
2300
2305
|
}
|
|
2301
|
-
|
|
2302
|
-
u =
|
|
2303
|
-
var
|
|
2304
|
-
this.map[u] =
|
|
2305
|
-
},
|
|
2306
|
-
delete this.map[
|
|
2307
|
-
},
|
|
2308
|
-
return u =
|
|
2309
|
-
},
|
|
2310
|
-
return this.map.hasOwnProperty(
|
|
2311
|
-
},
|
|
2312
|
-
this.map[
|
|
2313
|
-
},
|
|
2314
|
-
for (var
|
|
2315
|
-
this.map.hasOwnProperty(
|
|
2316
|
-
},
|
|
2306
|
+
m.prototype.append = function(u, v) {
|
|
2307
|
+
u = h(u), v = d(v);
|
|
2308
|
+
var P = this.map[u];
|
|
2309
|
+
this.map[u] = P ? P + ", " + v : v;
|
|
2310
|
+
}, m.prototype.delete = function(u) {
|
|
2311
|
+
delete this.map[h(u)];
|
|
2312
|
+
}, m.prototype.get = function(u) {
|
|
2313
|
+
return u = h(u), this.has(u) ? this.map[u] : null;
|
|
2314
|
+
}, m.prototype.has = function(u) {
|
|
2315
|
+
return this.map.hasOwnProperty(h(u));
|
|
2316
|
+
}, m.prototype.set = function(u, v) {
|
|
2317
|
+
this.map[h(u)] = d(v);
|
|
2318
|
+
}, m.prototype.forEach = function(u, v) {
|
|
2319
|
+
for (var P in this.map)
|
|
2320
|
+
this.map.hasOwnProperty(P) && u.call(v, this.map[P], P, this);
|
|
2321
|
+
}, m.prototype.keys = function() {
|
|
2317
2322
|
var u = [];
|
|
2318
|
-
return this.forEach(function(v,
|
|
2319
|
-
u.push(
|
|
2323
|
+
return this.forEach(function(v, P) {
|
|
2324
|
+
u.push(P);
|
|
2320
2325
|
}), b(u);
|
|
2321
|
-
},
|
|
2326
|
+
}, m.prototype.values = function() {
|
|
2322
2327
|
var u = [];
|
|
2323
2328
|
return this.forEach(function(v) {
|
|
2324
2329
|
u.push(v);
|
|
2325
2330
|
}), b(u);
|
|
2326
|
-
},
|
|
2331
|
+
}, m.prototype.entries = function() {
|
|
2327
2332
|
var u = [];
|
|
2328
|
-
return this.forEach(function(v,
|
|
2329
|
-
u.push([
|
|
2333
|
+
return this.forEach(function(v, P) {
|
|
2334
|
+
u.push([P, v]);
|
|
2330
2335
|
}), b(u);
|
|
2331
|
-
}, l.iterable && (
|
|
2332
|
-
function
|
|
2336
|
+
}, l.iterable && (m.prototype[Symbol.iterator] = m.prototype.entries);
|
|
2337
|
+
function T(u) {
|
|
2333
2338
|
if (!u._noBody) {
|
|
2334
2339
|
if (u.bodyUsed)
|
|
2335
2340
|
return Promise.reject(new TypeError("Already read"));
|
|
2336
2341
|
u.bodyUsed = !0;
|
|
2337
2342
|
}
|
|
2338
2343
|
}
|
|
2339
|
-
function
|
|
2340
|
-
return new Promise(function(v,
|
|
2344
|
+
function f(u) {
|
|
2345
|
+
return new Promise(function(v, P) {
|
|
2341
2346
|
u.onload = function() {
|
|
2342
2347
|
v(u.result);
|
|
2343
2348
|
}, u.onerror = function() {
|
|
2344
|
-
|
|
2349
|
+
P(u.error);
|
|
2345
2350
|
};
|
|
2346
2351
|
});
|
|
2347
2352
|
}
|
|
2348
2353
|
function g(u) {
|
|
2349
|
-
var v = new FileReader(),
|
|
2350
|
-
return v.readAsArrayBuffer(u),
|
|
2354
|
+
var v = new FileReader(), P = f(v);
|
|
2355
|
+
return v.readAsArrayBuffer(u), P;
|
|
2351
2356
|
}
|
|
2352
2357
|
function S(u) {
|
|
2353
|
-
var v = new FileReader(),
|
|
2354
|
-
return v.readAsText(u,
|
|
2355
|
-
}
|
|
2356
|
-
function E(u) {
|
|
2357
|
-
for (var v = new Uint8Array(u), M = new Array(v.length), C = 0; C < v.length; C++)
|
|
2358
|
-
M[C] = String.fromCharCode(v[C]);
|
|
2359
|
-
return M.join("");
|
|
2358
|
+
var v = new FileReader(), P = f(v), C = /charset=([A-Za-z0-9_-]+)/.exec(u.type), L = C ? C[1] : "utf-8";
|
|
2359
|
+
return v.readAsText(u, L), P;
|
|
2360
2360
|
}
|
|
2361
2361
|
function _(u) {
|
|
2362
|
+
for (var v = new Uint8Array(u), P = new Array(v.length), C = 0; C < v.length; C++)
|
|
2363
|
+
P[C] = String.fromCharCode(v[C]);
|
|
2364
|
+
return P.join("");
|
|
2365
|
+
}
|
|
2366
|
+
function w(u) {
|
|
2362
2367
|
if (u.slice)
|
|
2363
2368
|
return u.slice(0);
|
|
2364
2369
|
var v = new Uint8Array(u.byteLength);
|
|
2365
2370
|
return v.set(new Uint8Array(u)), v.buffer;
|
|
2366
2371
|
}
|
|
2367
|
-
function
|
|
2372
|
+
function E() {
|
|
2368
2373
|
return this.bodyUsed = !1, this._initBody = function(u) {
|
|
2369
|
-
this.bodyUsed = this.bodyUsed, this._bodyInit = u, u ? typeof u == "string" ? this._bodyText = u : l.blob && Blob.prototype.isPrototypeOf(u) ? this._bodyBlob = u : l.formData && FormData.prototype.isPrototypeOf(u) ? this._bodyFormData = u : l.searchParams && URLSearchParams.prototype.isPrototypeOf(u) ? this._bodyText = u.toString() : l.arrayBuffer && l.blob &&
|
|
2374
|
+
this.bodyUsed = this.bodyUsed, this._bodyInit = u, u ? typeof u == "string" ? this._bodyText = u : l.blob && Blob.prototype.isPrototypeOf(u) ? this._bodyBlob = u : l.formData && FormData.prototype.isPrototypeOf(u) ? this._bodyFormData = u : l.searchParams && URLSearchParams.prototype.isPrototypeOf(u) ? this._bodyText = u.toString() : l.arrayBuffer && l.blob && y(u) ? (this._bodyArrayBuffer = w(u.buffer), this._bodyInit = new Blob([this._bodyArrayBuffer])) : l.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(u) || p(u)) ? this._bodyArrayBuffer = w(u) : this._bodyText = u = Object.prototype.toString.call(u) : (this._noBody = !0, this._bodyText = ""), this.headers.get("content-type") || (typeof u == "string" ? this.headers.set("content-type", "text/plain;charset=UTF-8") : this._bodyBlob && this._bodyBlob.type ? this.headers.set("content-type", this._bodyBlob.type) : l.searchParams && URLSearchParams.prototype.isPrototypeOf(u) && this.headers.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8"));
|
|
2370
2375
|
}, l.blob && (this.blob = function() {
|
|
2371
|
-
var u =
|
|
2376
|
+
var u = T(this);
|
|
2372
2377
|
if (u)
|
|
2373
2378
|
return u;
|
|
2374
2379
|
if (this._bodyBlob)
|
|
@@ -2380,7 +2385,7 @@ function kn() {
|
|
|
2380
2385
|
return Promise.resolve(new Blob([this._bodyText]));
|
|
2381
2386
|
}), this.arrayBuffer = function() {
|
|
2382
2387
|
if (this._bodyArrayBuffer) {
|
|
2383
|
-
var u =
|
|
2388
|
+
var u = T(this);
|
|
2384
2389
|
return u || (ArrayBuffer.isView(this._bodyArrayBuffer) ? Promise.resolve(
|
|
2385
2390
|
this._bodyArrayBuffer.buffer.slice(
|
|
2386
2391
|
this._bodyArrayBuffer.byteOffset,
|
|
@@ -2393,13 +2398,13 @@ function kn() {
|
|
|
2393
2398
|
throw new Error("could not read as ArrayBuffer");
|
|
2394
2399
|
}
|
|
2395
2400
|
}, this.text = function() {
|
|
2396
|
-
var u =
|
|
2401
|
+
var u = T(this);
|
|
2397
2402
|
if (u)
|
|
2398
2403
|
return u;
|
|
2399
2404
|
if (this._bodyBlob)
|
|
2400
2405
|
return S(this._bodyBlob);
|
|
2401
2406
|
if (this._bodyArrayBuffer)
|
|
2402
|
-
return Promise.resolve(
|
|
2407
|
+
return Promise.resolve(_(this._bodyArrayBuffer));
|
|
2403
2408
|
if (this._bodyFormData)
|
|
2404
2409
|
throw new Error("could not read FormData body as text");
|
|
2405
2410
|
return Promise.resolve(this._bodyText);
|
|
@@ -2418,27 +2423,27 @@ function kn() {
|
|
|
2418
2423
|
if (!(this instanceof F))
|
|
2419
2424
|
throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');
|
|
2420
2425
|
v = v || {};
|
|
2421
|
-
var
|
|
2426
|
+
var P = v.body;
|
|
2422
2427
|
if (u instanceof F) {
|
|
2423
2428
|
if (u.bodyUsed)
|
|
2424
2429
|
throw new TypeError("Already read");
|
|
2425
|
-
this.url = u.url, this.credentials = u.credentials, v.headers || (this.headers = new
|
|
2430
|
+
this.url = u.url, this.credentials = u.credentials, v.headers || (this.headers = new m(u.headers)), this.method = u.method, this.mode = u.mode, this.signal = u.signal, !P && u._bodyInit != null && (P = u._bodyInit, u.bodyUsed = !0);
|
|
2426
2431
|
} else
|
|
2427
2432
|
this.url = String(u);
|
|
2428
|
-
if (this.credentials = v.credentials || this.credentials || "same-origin", (v.headers || !this.headers) && (this.headers = new
|
|
2433
|
+
if (this.credentials = v.credentials || this.credentials || "same-origin", (v.headers || !this.headers) && (this.headers = new m(v.headers)), this.method = U(v.method || this.method || "GET"), this.mode = v.mode || this.mode || null, this.signal = v.signal || this.signal || function() {
|
|
2429
2434
|
if ("AbortController" in a) {
|
|
2430
2435
|
var O = new AbortController();
|
|
2431
2436
|
return O.signal;
|
|
2432
2437
|
}
|
|
2433
|
-
}(), this.referrer = null, (this.method === "GET" || this.method === "HEAD") &&
|
|
2438
|
+
}(), this.referrer = null, (this.method === "GET" || this.method === "HEAD") && P)
|
|
2434
2439
|
throw new TypeError("Body not allowed for GET or HEAD requests");
|
|
2435
|
-
if (this._initBody(
|
|
2440
|
+
if (this._initBody(P), (this.method === "GET" || this.method === "HEAD") && (v.cache === "no-store" || v.cache === "no-cache")) {
|
|
2436
2441
|
var C = /([?&])_=[^&]*/;
|
|
2437
2442
|
if (C.test(this.url))
|
|
2438
2443
|
this.url = this.url.replace(C, "$1_=" + (/* @__PURE__ */ new Date()).getTime());
|
|
2439
2444
|
else {
|
|
2440
|
-
var
|
|
2441
|
-
this.url += (
|
|
2445
|
+
var L = /\?/;
|
|
2446
|
+
this.url += (L.test(this.url) ? "&" : "?") + "_=" + (/* @__PURE__ */ new Date()).getTime();
|
|
2442
2447
|
}
|
|
2443
2448
|
}
|
|
2444
2449
|
}
|
|
@@ -2447,22 +2452,22 @@ function kn() {
|
|
|
2447
2452
|
};
|
|
2448
2453
|
function j(u) {
|
|
2449
2454
|
var v = new FormData();
|
|
2450
|
-
return u.trim().split("&").forEach(function(
|
|
2451
|
-
if (
|
|
2452
|
-
var C =
|
|
2453
|
-
v.append(decodeURIComponent(
|
|
2455
|
+
return u.trim().split("&").forEach(function(P) {
|
|
2456
|
+
if (P) {
|
|
2457
|
+
var C = P.split("="), L = C.shift().replace(/\+/g, " "), O = C.join("=").replace(/\+/g, " ");
|
|
2458
|
+
v.append(decodeURIComponent(L), decodeURIComponent(O));
|
|
2454
2459
|
}
|
|
2455
2460
|
}), v;
|
|
2456
2461
|
}
|
|
2457
2462
|
function q(u) {
|
|
2458
|
-
var v = new
|
|
2459
|
-
return
|
|
2463
|
+
var v = new m(), P = u.replace(/\r?\n[\t ]+/g, " ");
|
|
2464
|
+
return P.split("\r").map(function(C) {
|
|
2460
2465
|
return C.indexOf(`
|
|
2461
2466
|
`) === 0 ? C.substr(1, C.length) : C;
|
|
2462
2467
|
}).forEach(function(C) {
|
|
2463
|
-
var
|
|
2468
|
+
var L = C.split(":"), O = L.shift().trim();
|
|
2464
2469
|
if (O) {
|
|
2465
|
-
var H =
|
|
2470
|
+
var H = L.join(":").trim();
|
|
2466
2471
|
try {
|
|
2467
2472
|
v.append(O, H);
|
|
2468
2473
|
} catch (W) {
|
|
@@ -2471,44 +2476,44 @@ function kn() {
|
|
|
2471
2476
|
}
|
|
2472
2477
|
}), v;
|
|
2473
2478
|
}
|
|
2474
|
-
|
|
2479
|
+
E.call(F.prototype);
|
|
2475
2480
|
function $(u, v) {
|
|
2476
2481
|
if (!(this instanceof $))
|
|
2477
2482
|
throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');
|
|
2478
2483
|
if (v || (v = {}), this.type = "default", this.status = v.status === void 0 ? 200 : v.status, this.status < 200 || this.status > 599)
|
|
2479
2484
|
throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");
|
|
2480
|
-
this.ok = this.status >= 200 && this.status < 300, this.statusText = v.statusText === void 0 ? "" : "" + v.statusText, this.headers = new
|
|
2485
|
+
this.ok = this.status >= 200 && this.status < 300, this.statusText = v.statusText === void 0 ? "" : "" + v.statusText, this.headers = new m(v.headers), this.url = v.url || "", this._initBody(u);
|
|
2481
2486
|
}
|
|
2482
|
-
|
|
2487
|
+
E.call($.prototype), $.prototype.clone = function() {
|
|
2483
2488
|
return new $(this._bodyInit, {
|
|
2484
2489
|
status: this.status,
|
|
2485
2490
|
statusText: this.statusText,
|
|
2486
|
-
headers: new
|
|
2491
|
+
headers: new m(this.headers),
|
|
2487
2492
|
url: this.url
|
|
2488
2493
|
});
|
|
2489
2494
|
}, $.error = function() {
|
|
2490
2495
|
var u = new $(null, { status: 200, statusText: "" });
|
|
2491
2496
|
return u.ok = !1, u.status = 0, u.type = "error", u;
|
|
2492
2497
|
};
|
|
2493
|
-
var
|
|
2498
|
+
var M = [301, 302, 303, 307, 308];
|
|
2494
2499
|
$.redirect = function(u, v) {
|
|
2495
|
-
if (
|
|
2500
|
+
if (M.indexOf(v) === -1)
|
|
2496
2501
|
throw new RangeError("Invalid status code");
|
|
2497
2502
|
return new $(null, { status: v, headers: { location: u } });
|
|
2498
2503
|
}, i.DOMException = a.DOMException;
|
|
2499
2504
|
try {
|
|
2500
2505
|
new i.DOMException();
|
|
2501
2506
|
} catch {
|
|
2502
|
-
i.DOMException = function(v,
|
|
2503
|
-
this.message = v, this.name =
|
|
2507
|
+
i.DOMException = function(v, P) {
|
|
2508
|
+
this.message = v, this.name = P;
|
|
2504
2509
|
var C = Error(v);
|
|
2505
2510
|
this.stack = C.stack;
|
|
2506
2511
|
}, i.DOMException.prototype = Object.create(Error.prototype), i.DOMException.prototype.constructor = i.DOMException;
|
|
2507
2512
|
}
|
|
2508
2513
|
function k(u, v) {
|
|
2509
|
-
return new Promise(function(
|
|
2510
|
-
var
|
|
2511
|
-
if (
|
|
2514
|
+
return new Promise(function(P, C) {
|
|
2515
|
+
var L = new F(u, v);
|
|
2516
|
+
if (L.signal && L.signal.aborted)
|
|
2512
2517
|
return C(new i.DOMException("Aborted", "AbortError"));
|
|
2513
2518
|
var O = new XMLHttpRequest();
|
|
2514
2519
|
function H() {
|
|
@@ -2519,10 +2524,10 @@ function kn() {
|
|
|
2519
2524
|
statusText: O.statusText,
|
|
2520
2525
|
headers: q(O.getAllResponseHeaders() || "")
|
|
2521
2526
|
};
|
|
2522
|
-
|
|
2527
|
+
L.url.indexOf("file://") === 0 && (O.status < 200 || O.status > 599) ? B.status = 200 : B.status = O.status, B.url = "responseURL" in O ? O.responseURL : B.headers.get("X-Request-URL");
|
|
2523
2528
|
var X = "response" in O ? O.response : O.responseText;
|
|
2524
2529
|
setTimeout(function() {
|
|
2525
|
-
|
|
2530
|
+
P(new $(X, B));
|
|
2526
2531
|
}, 0);
|
|
2527
2532
|
}, O.onerror = function() {
|
|
2528
2533
|
setTimeout(function() {
|
|
@@ -2544,137 +2549,137 @@ function kn() {
|
|
|
2544
2549
|
return B;
|
|
2545
2550
|
}
|
|
2546
2551
|
}
|
|
2547
|
-
if (O.open(
|
|
2552
|
+
if (O.open(L.method, W(L.url), !0), L.credentials === "include" ? O.withCredentials = !0 : L.credentials === "omit" && (O.withCredentials = !1), "responseType" in O && (l.blob ? O.responseType = "blob" : l.arrayBuffer && (O.responseType = "arraybuffer")), v && typeof v.headers == "object" && !(v.headers instanceof m || a.Headers && v.headers instanceof a.Headers)) {
|
|
2548
2553
|
var Z = [];
|
|
2549
2554
|
Object.getOwnPropertyNames(v.headers).forEach(function(B) {
|
|
2550
|
-
Z.push(
|
|
2551
|
-
}),
|
|
2555
|
+
Z.push(h(B)), O.setRequestHeader(B, d(v.headers[B]));
|
|
2556
|
+
}), L.headers.forEach(function(B, X) {
|
|
2552
2557
|
Z.indexOf(X) === -1 && O.setRequestHeader(X, B);
|
|
2553
2558
|
});
|
|
2554
2559
|
} else
|
|
2555
|
-
|
|
2560
|
+
L.headers.forEach(function(B, X) {
|
|
2556
2561
|
O.setRequestHeader(X, B);
|
|
2557
2562
|
});
|
|
2558
|
-
|
|
2559
|
-
O.readyState === 4 &&
|
|
2560
|
-
}), O.send(typeof
|
|
2563
|
+
L.signal && (L.signal.addEventListener("abort", H), O.onreadystatechange = function() {
|
|
2564
|
+
O.readyState === 4 && L.signal.removeEventListener("abort", H);
|
|
2565
|
+
}), O.send(typeof L._bodyInit > "u" ? null : L._bodyInit);
|
|
2561
2566
|
});
|
|
2562
2567
|
}
|
|
2563
|
-
return k.polyfill = !0, a.fetch || (a.fetch = k, a.Headers =
|
|
2568
|
+
return k.polyfill = !0, a.fetch || (a.fetch = k, a.Headers = m, a.Request = F, a.Response = $), i.Headers = m, i.Request = F, i.Response = $, i.fetch = k, i;
|
|
2564
2569
|
})({});
|
|
2565
2570
|
})(n), n.fetch.ponyfill = !0, delete n.fetch.polyfill;
|
|
2566
2571
|
var s = t.fetch ? t : n;
|
|
2567
2572
|
e = s.fetch, e.default = s.fetch, e.fetch = s.fetch, e.Headers = s.Headers, e.Request = s.Request, e.Response = s.Response, r.exports = e;
|
|
2568
|
-
}(
|
|
2573
|
+
}(Ee, Ee.exports)), Ee.exports;
|
|
2569
2574
|
}
|
|
2570
|
-
var
|
|
2571
|
-
const
|
|
2572
|
-
let
|
|
2573
|
-
const
|
|
2575
|
+
var Dn = Fn();
|
|
2576
|
+
const Rn = /* @__PURE__ */ vt(Dn);
|
|
2577
|
+
let We = "https://gcp-us-east1.api.carto.com", Ze = "v3", Un = "ps";
|
|
2578
|
+
const ue = {
|
|
2574
2579
|
get: "GET",
|
|
2575
2580
|
post: "POST"
|
|
2576
2581
|
};
|
|
2577
|
-
function
|
|
2582
|
+
function xn(r, e) {
|
|
2578
2583
|
return Array.isArray(e) ? `${r}=${encodeURIComponent(JSON.stringify(e))}` : e == null || e === "" ? "" : typeof e == "object" ? `${r}=${encodeURIComponent(JSON.stringify(e))}` : `${r}=${encodeURIComponent(e)}`;
|
|
2579
2584
|
}
|
|
2580
|
-
function
|
|
2585
|
+
function $n({
|
|
2581
2586
|
params: r,
|
|
2582
2587
|
url: e
|
|
2583
2588
|
}) {
|
|
2584
2589
|
if (!r) return e;
|
|
2585
|
-
const t = Object.entries(r).map(([n, s]) =>
|
|
2590
|
+
const t = Object.entries(r).map(([n, s]) => xn(n, s));
|
|
2586
2591
|
return `${e}?${t.filter(Boolean).join("&")}`;
|
|
2587
2592
|
}
|
|
2588
|
-
function
|
|
2593
|
+
function qn(r) {
|
|
2589
2594
|
return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
|
|
2590
2595
|
}
|
|
2591
|
-
var
|
|
2592
|
-
function
|
|
2593
|
-
if (
|
|
2594
|
-
|
|
2595
|
-
var r = function(
|
|
2596
|
-
return e(
|
|
2596
|
+
var Be, ct;
|
|
2597
|
+
function jn() {
|
|
2598
|
+
if (ct) return Be;
|
|
2599
|
+
ct = 1;
|
|
2600
|
+
var r = function(f) {
|
|
2601
|
+
return e(f) && !t(f);
|
|
2597
2602
|
};
|
|
2598
|
-
function e(
|
|
2599
|
-
return !!
|
|
2603
|
+
function e(f) {
|
|
2604
|
+
return !!f && typeof f == "object";
|
|
2600
2605
|
}
|
|
2601
|
-
function t(
|
|
2602
|
-
var g = Object.prototype.toString.call(
|
|
2603
|
-
return g === "[object RegExp]" || g === "[object Date]" || o(
|
|
2606
|
+
function t(f) {
|
|
2607
|
+
var g = Object.prototype.toString.call(f);
|
|
2608
|
+
return g === "[object RegExp]" || g === "[object Date]" || o(f);
|
|
2604
2609
|
}
|
|
2605
2610
|
var n = typeof Symbol == "function" && Symbol.for, s = n ? Symbol.for("react.element") : 60103;
|
|
2606
|
-
function o(
|
|
2607
|
-
return
|
|
2611
|
+
function o(f) {
|
|
2612
|
+
return f.$$typeof === s;
|
|
2608
2613
|
}
|
|
2609
|
-
function i(
|
|
2610
|
-
return Array.isArray(
|
|
2614
|
+
function i(f) {
|
|
2615
|
+
return Array.isArray(f) ? [] : {};
|
|
2611
2616
|
}
|
|
2612
|
-
function a(
|
|
2613
|
-
return g.clone !== !1 && g.isMergeableObject(
|
|
2617
|
+
function a(f, g) {
|
|
2618
|
+
return g.clone !== !1 && g.isMergeableObject(f) ? m(i(f), f, g) : f;
|
|
2614
2619
|
}
|
|
2615
|
-
function l(
|
|
2616
|
-
return
|
|
2617
|
-
return a(
|
|
2620
|
+
function l(f, g, S) {
|
|
2621
|
+
return f.concat(g).map(function(_) {
|
|
2622
|
+
return a(_, S);
|
|
2618
2623
|
});
|
|
2619
2624
|
}
|
|
2620
|
-
function
|
|
2621
|
-
if (!g.customMerge) return
|
|
2622
|
-
var S = g.customMerge(
|
|
2623
|
-
return typeof S == "function" ? S :
|
|
2625
|
+
function y(f, g) {
|
|
2626
|
+
if (!g.customMerge) return m;
|
|
2627
|
+
var S = g.customMerge(f);
|
|
2628
|
+
return typeof S == "function" ? S : m;
|
|
2624
2629
|
}
|
|
2625
|
-
function c(
|
|
2626
|
-
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(
|
|
2627
|
-
return Object.propertyIsEnumerable.call(
|
|
2630
|
+
function c(f) {
|
|
2631
|
+
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(f).filter(function(g) {
|
|
2632
|
+
return Object.propertyIsEnumerable.call(f, g);
|
|
2628
2633
|
}) : [];
|
|
2629
2634
|
}
|
|
2630
|
-
function
|
|
2631
|
-
return Object.keys(
|
|
2635
|
+
function p(f) {
|
|
2636
|
+
return Object.keys(f).concat(c(f));
|
|
2632
2637
|
}
|
|
2633
|
-
function
|
|
2638
|
+
function h(f, g) {
|
|
2634
2639
|
try {
|
|
2635
|
-
return g in
|
|
2640
|
+
return g in f;
|
|
2636
2641
|
} catch {
|
|
2637
2642
|
return !1;
|
|
2638
2643
|
}
|
|
2639
2644
|
}
|
|
2640
|
-
function f
|
|
2641
|
-
return
|
|
2645
|
+
function d(f, g) {
|
|
2646
|
+
return h(f, g) && !(Object.hasOwnProperty.call(f, g) && Object.propertyIsEnumerable.call(f, g));
|
|
2642
2647
|
}
|
|
2643
|
-
function b(
|
|
2644
|
-
var
|
|
2645
|
-
return S.isMergeableObject(
|
|
2646
|
-
|
|
2647
|
-
}),
|
|
2648
|
-
f
|
|
2649
|
-
}),
|
|
2648
|
+
function b(f, g, S) {
|
|
2649
|
+
var _ = {};
|
|
2650
|
+
return S.isMergeableObject(f) && p(f).forEach(function(w) {
|
|
2651
|
+
_[w] = a(f[w], S);
|
|
2652
|
+
}), p(g).forEach(function(w) {
|
|
2653
|
+
d(f, w) || (h(f, w) && S.isMergeableObject(g[w]) ? _[w] = y(w, S)(f[w], g[w], S) : _[w] = a(g[w], S));
|
|
2654
|
+
}), _;
|
|
2650
2655
|
}
|
|
2651
|
-
function
|
|
2656
|
+
function m(f, g, S) {
|
|
2652
2657
|
S = S || {}, S.arrayMerge = S.arrayMerge || l, S.isMergeableObject = S.isMergeableObject || r, S.cloneUnlessOtherwiseSpecified = a;
|
|
2653
|
-
var
|
|
2654
|
-
return
|
|
2658
|
+
var _ = Array.isArray(g), w = Array.isArray(f), E = _ === w;
|
|
2659
|
+
return E ? _ ? S.arrayMerge(f, g, S) : b(f, g, S) : a(g, S);
|
|
2655
2660
|
}
|
|
2656
|
-
|
|
2657
|
-
if (!Array.isArray(
|
|
2658
|
-
return
|
|
2659
|
-
return
|
|
2661
|
+
m.all = function(f, g) {
|
|
2662
|
+
if (!Array.isArray(f)) throw new Error("first argument should be an array");
|
|
2663
|
+
return f.reduce(function(S, _) {
|
|
2664
|
+
return m(S, _, g);
|
|
2660
2665
|
}, {});
|
|
2661
2666
|
};
|
|
2662
|
-
var
|
|
2663
|
-
return
|
|
2664
|
-
}
|
|
2665
|
-
var
|
|
2666
|
-
const
|
|
2667
|
-
function
|
|
2668
|
-
return
|
|
2669
|
-
method:
|
|
2667
|
+
var T = m;
|
|
2668
|
+
return Be = T, Be;
|
|
2669
|
+
}
|
|
2670
|
+
var Bn = jn();
|
|
2671
|
+
const Ke = /* @__PURE__ */ qn(Bn);
|
|
2672
|
+
function ut(r) {
|
|
2673
|
+
return Ke({
|
|
2674
|
+
method: ue.get,
|
|
2670
2675
|
headers: {
|
|
2671
2676
|
Accept: "application/json"
|
|
2672
2677
|
}
|
|
2673
2678
|
}, r);
|
|
2674
2679
|
}
|
|
2675
|
-
function
|
|
2676
|
-
return
|
|
2677
|
-
method:
|
|
2680
|
+
function Ve(r, e) {
|
|
2681
|
+
return Ke({
|
|
2682
|
+
method: ue.post,
|
|
2678
2683
|
headers: {
|
|
2679
2684
|
Accept: "application/json",
|
|
2680
2685
|
"Content-Type": "application/json"
|
|
@@ -2682,21 +2687,21 @@ function je(r, e) {
|
|
|
2682
2687
|
body: JSON.stringify(e)
|
|
2683
2688
|
}, r);
|
|
2684
2689
|
}
|
|
2685
|
-
const
|
|
2686
|
-
GET:
|
|
2687
|
-
POST:
|
|
2688
|
-
PUT:
|
|
2689
|
-
PATCH:
|
|
2690
|
-
DELETE:
|
|
2690
|
+
const Vn = {
|
|
2691
|
+
GET: ut,
|
|
2692
|
+
POST: Ve,
|
|
2693
|
+
PUT: Ve,
|
|
2694
|
+
PATCH: Ve,
|
|
2695
|
+
DELETE: ut
|
|
2691
2696
|
};
|
|
2692
|
-
function
|
|
2697
|
+
function In({
|
|
2693
2698
|
body: r,
|
|
2694
2699
|
accessToken: e,
|
|
2695
2700
|
method: t,
|
|
2696
2701
|
...n
|
|
2697
2702
|
}) {
|
|
2698
2703
|
let s = e;
|
|
2699
|
-
return s && !s.includes("Bearer") && (s = "Bearer " + s),
|
|
2704
|
+
return s && !s.includes("Bearer") && (s = "Bearer " + s), Vn[t](Ke({
|
|
2700
2705
|
method: t,
|
|
2701
2706
|
headers: {
|
|
2702
2707
|
...!!s && {
|
|
@@ -2705,151 +2710,163 @@ function jn({
|
|
|
2705
2710
|
}
|
|
2706
2711
|
}, n), r);
|
|
2707
2712
|
}
|
|
2708
|
-
const
|
|
2709
|
-
async function
|
|
2713
|
+
const Nn = 6144;
|
|
2714
|
+
async function kt({
|
|
2710
2715
|
signal: r,
|
|
2711
2716
|
body: e,
|
|
2712
2717
|
accessToken: t,
|
|
2713
2718
|
credentials: n,
|
|
2714
|
-
method: s =
|
|
2719
|
+
method: s = ue.get,
|
|
2715
2720
|
params: o,
|
|
2716
2721
|
url: i,
|
|
2717
2722
|
requestOptions: {
|
|
2718
2723
|
getMaxUrlLength: a
|
|
2719
2724
|
} = {
|
|
2720
|
-
getMaxUrlLength:
|
|
2725
|
+
getMaxUrlLength: Nn
|
|
2721
2726
|
},
|
|
2722
2727
|
...l
|
|
2723
2728
|
}) {
|
|
2724
|
-
let
|
|
2729
|
+
let y = $n({
|
|
2725
2730
|
url: i,
|
|
2726
2731
|
params: o
|
|
2727
|
-
}), c = e,
|
|
2728
|
-
s ===
|
|
2729
|
-
const
|
|
2732
|
+
}), c = e, p = s;
|
|
2733
|
+
s === ue.get && y.length > a && (c = o, p = ue.post, y = i);
|
|
2734
|
+
const h = In({
|
|
2730
2735
|
body: c,
|
|
2731
2736
|
accessToken: t ?? (n == null ? void 0 : n.accessToken),
|
|
2732
|
-
method:
|
|
2737
|
+
method: p,
|
|
2733
2738
|
...l
|
|
2734
2739
|
});
|
|
2735
|
-
r && (
|
|
2736
|
-
const
|
|
2737
|
-
if (!
|
|
2738
|
-
const b = await
|
|
2740
|
+
r && (h.signal = r);
|
|
2741
|
+
const d = await Rn(y, h);
|
|
2742
|
+
if (!d.ok) {
|
|
2743
|
+
const b = await d.text();
|
|
2739
2744
|
return Promise.reject(new Error(b));
|
|
2740
2745
|
}
|
|
2741
|
-
return
|
|
2746
|
+
return d.status === 204 ? Promise.resolve() : await d.json();
|
|
2742
2747
|
}
|
|
2743
|
-
const
|
|
2748
|
+
const Pe = yt()(ys((r) => ({
|
|
2744
2749
|
sources: {},
|
|
2745
2750
|
filters: {},
|
|
2746
2751
|
setSource: (e, t) => r((n) => {
|
|
2752
|
+
var d;
|
|
2747
2753
|
const s = {
|
|
2748
2754
|
...n.sources
|
|
2749
|
-
};
|
|
2750
|
-
if (!t)
|
|
2755
|
+
}, o = (d = s[e]) == null ? void 0 : d.widgets;
|
|
2756
|
+
if (o && (o.destroy(), delete s[e].widgets), !t)
|
|
2751
2757
|
return delete s[e], {
|
|
2752
2758
|
sources: s
|
|
2753
2759
|
};
|
|
2754
|
-
const
|
|
2755
|
-
apiBaseUrl:
|
|
2756
|
-
clientId:
|
|
2757
|
-
apiVersion:
|
|
2758
|
-
...
|
|
2759
|
-
} = t,
|
|
2760
|
-
...
|
|
2761
|
-
...
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
source: h
|
|
2760
|
+
const i = s[e], {
|
|
2761
|
+
apiBaseUrl: a = We,
|
|
2762
|
+
clientId: l = Un,
|
|
2763
|
+
apiVersion: y = Ze,
|
|
2764
|
+
...c
|
|
2765
|
+
} = t, p = {
|
|
2766
|
+
...i,
|
|
2767
|
+
...c,
|
|
2768
|
+
apiBaseUrl: a,
|
|
2769
|
+
apiVersion: y,
|
|
2770
|
+
clientId: l
|
|
2771
|
+
}, h = Gn({
|
|
2772
|
+
source: p
|
|
2768
2773
|
});
|
|
2769
|
-
return
|
|
2774
|
+
return p.widgets = h, s[e] = p, {
|
|
2770
2775
|
sources: s
|
|
2771
2776
|
};
|
|
2772
|
-
}),
|
|
2777
|
+
}, void 0, "setSource"),
|
|
2773
2778
|
removeSource: (e) => r((t) => {
|
|
2779
|
+
var o;
|
|
2774
2780
|
const n = {
|
|
2775
2781
|
...t.sources
|
|
2776
|
-
};
|
|
2777
|
-
return delete n[e], {
|
|
2782
|
+
}, s = (o = n[e]) == null ? void 0 : o.widgets;
|
|
2783
|
+
return s && (s.destroy(), delete n[e].widgets), delete n[e], {
|
|
2778
2784
|
sources: n
|
|
2779
2785
|
};
|
|
2780
|
-
}),
|
|
2786
|
+
}, void 0, "removeSource"),
|
|
2781
2787
|
setFilters: (e, t) => r((n) => {
|
|
2782
2788
|
let s = {};
|
|
2783
2789
|
const o = n.filters[e] ?? {};
|
|
2784
|
-
t.length !== 0 && (s = t.reduce((
|
|
2785
|
-
var
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
...h
|
|
2789
|
-
} = d;
|
|
2790
|
-
return !("values" in h) || !((m = h.values) != null && m.length) ? (l = Ke(l, {
|
|
2791
|
-
column: c
|
|
2792
|
-
}), l) : (l = os(l, {
|
|
2793
|
-
column: c,
|
|
2794
|
-
...h
|
|
2795
|
-
}), l);
|
|
2796
|
-
}, o));
|
|
2797
|
-
const i = n.sources[e], a = i ? {
|
|
2798
|
-
...i,
|
|
2799
|
-
filters: s
|
|
2800
|
-
} : void 0;
|
|
2801
|
-
return {
|
|
2790
|
+
return t.length !== 0 && (s = t.reduce((i, a) => {
|
|
2791
|
+
var l;
|
|
2792
|
+
return !("values" in a) || !((l = a.values) != null && l.length) ? Xe(i, a) : as(i, a);
|
|
2793
|
+
}, o)), {
|
|
2802
2794
|
filters: {
|
|
2803
2795
|
...n.filters,
|
|
2804
|
-
[e]:
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
...a ? {
|
|
2809
|
-
[e]: a
|
|
2810
|
-
} : {}
|
|
2796
|
+
[e]: {
|
|
2797
|
+
...s
|
|
2798
|
+
}
|
|
2799
|
+
// important: destructuring here to not conservere the reference to the same object
|
|
2811
2800
|
}
|
|
2812
2801
|
};
|
|
2813
|
-
}),
|
|
2802
|
+
}, void 0, "setFilters"),
|
|
2814
2803
|
removeFilters: (e, t, n) => r((s) => {
|
|
2815
2804
|
const o = s.filters[e] ?? {};
|
|
2816
2805
|
if (!o)
|
|
2817
2806
|
return s;
|
|
2818
2807
|
let i = {};
|
|
2819
|
-
t && (i =
|
|
2808
|
+
return t && (i = Xe(o, {
|
|
2820
2809
|
column: t,
|
|
2821
2810
|
owner: n
|
|
2822
|
-
}))
|
|
2823
|
-
const a = s.sources[e], l = a ? {
|
|
2824
|
-
...a,
|
|
2825
|
-
filters: i
|
|
2826
|
-
} : void 0;
|
|
2827
|
-
return {
|
|
2811
|
+
})), {
|
|
2828
2812
|
filters: {
|
|
2829
2813
|
...s.filters,
|
|
2830
|
-
[e]:
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
...l ? {
|
|
2835
|
-
[e]: l
|
|
2836
|
-
} : {}
|
|
2814
|
+
[e]: {
|
|
2815
|
+
...i
|
|
2816
|
+
}
|
|
2817
|
+
// important: destructuring here to not conservere the reference to the same object
|
|
2837
2818
|
}
|
|
2838
2819
|
};
|
|
2839
|
-
})
|
|
2840
|
-
}));
|
|
2841
|
-
function
|
|
2820
|
+
}, void 0, "removeFilters")
|
|
2821
|
+
})));
|
|
2822
|
+
function Hn(r) {
|
|
2842
2823
|
const e = R(2);
|
|
2843
2824
|
let t;
|
|
2844
|
-
return e[0] !== r ? (t = (n) => n.sources[r], e[0] = r, e[1] = t) : t = e[1],
|
|
2825
|
+
return e[0] !== r ? (t = (n) => n.sources[r], e[0] = r, e[1] = t) : t = e[1], Pe(t);
|
|
2845
2826
|
}
|
|
2846
|
-
function
|
|
2827
|
+
function ie(r) {
|
|
2828
|
+
const e = R(2);
|
|
2829
|
+
let t;
|
|
2830
|
+
return e[0] !== r ? (t = (n) => n.filters[r], e[0] = r, e[1] = t) : t = e[1], Pe(t);
|
|
2831
|
+
}
|
|
2832
|
+
function Vr(r) {
|
|
2833
|
+
const e = R(9);
|
|
2834
|
+
let t;
|
|
2835
|
+
e[0] !== r ? (t = (a) => a.sources[r], e[0] = r, e[1] = t) : t = e[1];
|
|
2836
|
+
const n = Pe(t);
|
|
2837
|
+
let s;
|
|
2838
|
+
e[2] !== r ? (s = (a) => a.filters[r], e[2] = r, e[3] = s) : s = e[3];
|
|
2839
|
+
const o = Pe(s);
|
|
2840
|
+
let i;
|
|
2841
|
+
e: {
|
|
2842
|
+
if (!n) {
|
|
2843
|
+
i = void 0;
|
|
2844
|
+
break e;
|
|
2845
|
+
}
|
|
2846
|
+
let a;
|
|
2847
|
+
e[4] !== o ? (a = o ?? {}, e[4] = o, e[5] = a) : a = e[5];
|
|
2848
|
+
let l;
|
|
2849
|
+
e[6] !== n || e[7] !== a ? (l = {
|
|
2850
|
+
...n,
|
|
2851
|
+
filters: a
|
|
2852
|
+
}, e[6] = n, e[7] = a, e[8] = l) : l = e[8], i = l;
|
|
2853
|
+
}
|
|
2854
|
+
return i;
|
|
2855
|
+
}
|
|
2856
|
+
function Ir(r, {
|
|
2857
|
+
column: e,
|
|
2858
|
+
type: t
|
|
2859
|
+
}) {
|
|
2860
|
+
var n, s;
|
|
2861
|
+
return ((s = (n = r == null ? void 0 : r[e]) == null ? void 0 : n[t]) == null ? void 0 : s.values) ?? [];
|
|
2862
|
+
}
|
|
2863
|
+
function Gn({
|
|
2847
2864
|
source: r
|
|
2848
2865
|
}) {
|
|
2849
2866
|
const e = {
|
|
2850
2867
|
query: () => {
|
|
2851
2868
|
const s = r;
|
|
2852
|
-
return new
|
|
2869
|
+
return new fs({
|
|
2853
2870
|
...s,
|
|
2854
2871
|
accessToken: "",
|
|
2855
2872
|
sqlQuery: s.data,
|
|
@@ -2858,7 +2875,7 @@ function Nn({
|
|
|
2858
2875
|
},
|
|
2859
2876
|
table: () => {
|
|
2860
2877
|
const s = r;
|
|
2861
|
-
return new
|
|
2878
|
+
return new ds({
|
|
2862
2879
|
...s,
|
|
2863
2880
|
accessToken: "",
|
|
2864
2881
|
tableName: s.data,
|
|
@@ -2867,17 +2884,17 @@ function Nn({
|
|
|
2867
2884
|
},
|
|
2868
2885
|
tileset: () => {
|
|
2869
2886
|
const s = r;
|
|
2870
|
-
return new
|
|
2887
|
+
return new cs({
|
|
2871
2888
|
...s,
|
|
2872
2889
|
accessToken: "",
|
|
2873
2890
|
tableName: s.data,
|
|
2874
|
-
tileFormat: s.tileFormat ??
|
|
2891
|
+
tileFormat: s.tileFormat ?? us.BINARY,
|
|
2875
2892
|
spatialDataType: s.spatialDataType ?? "geo"
|
|
2876
2893
|
});
|
|
2877
2894
|
},
|
|
2878
2895
|
raster: () => {
|
|
2879
2896
|
const s = r;
|
|
2880
|
-
return s.rasterMetadata ? new
|
|
2897
|
+
return s.rasterMetadata ? new ls({
|
|
2881
2898
|
...s,
|
|
2882
2899
|
accessToken: "",
|
|
2883
2900
|
tableName: s.data,
|
|
@@ -2888,15 +2905,15 @@ function Nn({
|
|
|
2888
2905
|
}, t = r.type.split("+")[0], n = e[t];
|
|
2889
2906
|
return n == null ? void 0 : n();
|
|
2890
2907
|
}
|
|
2891
|
-
function
|
|
2892
|
-
const t =
|
|
2908
|
+
function ae(r, e) {
|
|
2909
|
+
const t = Hn(e);
|
|
2893
2910
|
return re(() => {
|
|
2894
2911
|
const n = t == null ? void 0 : t.widgets;
|
|
2895
2912
|
return !n || !r ? null : (n.props.accessToken = r, n);
|
|
2896
2913
|
}, [r, t]);
|
|
2897
2914
|
}
|
|
2898
|
-
function
|
|
2899
|
-
const e = R(
|
|
2915
|
+
function zn(r) {
|
|
2916
|
+
const e = R(19), {
|
|
2900
2917
|
accessToken: t,
|
|
2901
2918
|
sourceId: n,
|
|
2902
2919
|
widgetProps: s,
|
|
@@ -2909,33 +2926,42 @@ function Hn(r) {
|
|
|
2909
2926
|
enabled: a,
|
|
2910
2927
|
...l
|
|
2911
2928
|
} = i, e[2] = i, e[3] = a, e[4] = l) : (a = e[3], l = e[4]);
|
|
2912
|
-
const
|
|
2929
|
+
const y = a === void 0 ? !0 : a, c = ie(n), p = ae(t, n);
|
|
2930
|
+
let h;
|
|
2931
|
+
e[5] !== t || e[6] !== c || e[7] !== n || e[8] !== s ? (h = ["categories", n, t, s, c], e[5] = t, e[6] = c, e[7] = n, e[8] = s, e[9] = h) : h = e[9];
|
|
2932
|
+
let d;
|
|
2933
|
+
e[10] !== c || e[11] !== p || e[12] !== s ? (d = (T) => {
|
|
2934
|
+
const {
|
|
2935
|
+
signal: f
|
|
2936
|
+
} = T;
|
|
2937
|
+
return p == null ? void 0 : p.getCategories({
|
|
2938
|
+
...s,
|
|
2939
|
+
filters: c,
|
|
2940
|
+
signal: f
|
|
2941
|
+
});
|
|
2942
|
+
}, e[10] = c, e[11] = p, e[12] = s, e[13] = d) : d = e[13];
|
|
2943
|
+
const b = !!p && y;
|
|
2913
2944
|
let m;
|
|
2914
|
-
e[
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
const b = !!c && d;
|
|
2918
|
-
let p;
|
|
2919
|
-
return e[13] !== m || e[14] !== f || e[15] !== b || e[16] !== l ? (p = {
|
|
2920
|
-
queryKey: m,
|
|
2921
|
-
queryFn: f,
|
|
2945
|
+
return e[14] !== h || e[15] !== d || e[16] !== b || e[17] !== l ? (m = {
|
|
2946
|
+
queryKey: h,
|
|
2947
|
+
queryFn: d,
|
|
2922
2948
|
enabled: b,
|
|
2923
2949
|
...l
|
|
2924
|
-
}, e[
|
|
2950
|
+
}, e[14] = h, e[15] = d, e[16] = b, e[17] = l, e[18] = m) : m = e[18], se(m);
|
|
2925
2951
|
}
|
|
2926
|
-
function
|
|
2952
|
+
function Nr(r) {
|
|
2927
2953
|
const e = R(6);
|
|
2928
2954
|
let t, n;
|
|
2929
2955
|
e[0] !== r ? ({
|
|
2930
2956
|
children: t,
|
|
2931
2957
|
...n
|
|
2932
2958
|
} = r, e[0] = r, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
|
|
2933
|
-
const s =
|
|
2959
|
+
const s = zn(n);
|
|
2934
2960
|
let o;
|
|
2935
2961
|
return e[3] !== t || e[4] !== s ? (o = t(s), e[3] = t, e[4] = s, e[5] = o) : o = e[5], o;
|
|
2936
2962
|
}
|
|
2937
|
-
function
|
|
2938
|
-
const e = R(
|
|
2963
|
+
function Qn(r) {
|
|
2964
|
+
const e = R(19), {
|
|
2939
2965
|
accessToken: t,
|
|
2940
2966
|
sourceId: n,
|
|
2941
2967
|
widgetProps: s,
|
|
@@ -2948,33 +2974,42 @@ function Gn(r) {
|
|
|
2948
2974
|
enabled: a,
|
|
2949
2975
|
...l
|
|
2950
2976
|
} = i, e[2] = i, e[3] = a, e[4] = l) : (a = e[3], l = e[4]);
|
|
2951
|
-
const
|
|
2977
|
+
const y = a === void 0 ? !0 : a, c = ie(n), p = ae(t, n);
|
|
2978
|
+
let h;
|
|
2979
|
+
e[5] !== t || e[6] !== c || e[7] !== n || e[8] !== s ? (h = ["features", n, t, s, c], e[5] = t, e[6] = c, e[7] = n, e[8] = s, e[9] = h) : h = e[9];
|
|
2980
|
+
let d;
|
|
2981
|
+
e[10] !== c || e[11] !== p || e[12] !== s ? (d = (T) => {
|
|
2982
|
+
const {
|
|
2983
|
+
signal: f
|
|
2984
|
+
} = T;
|
|
2985
|
+
return p == null ? void 0 : p.getFeatures({
|
|
2986
|
+
...s,
|
|
2987
|
+
filters: c,
|
|
2988
|
+
signal: f
|
|
2989
|
+
});
|
|
2990
|
+
}, e[10] = c, e[11] = p, e[12] = s, e[13] = d) : d = e[13];
|
|
2991
|
+
const b = !!p && y;
|
|
2952
2992
|
let m;
|
|
2953
|
-
e[
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
const b = !!c && d;
|
|
2957
|
-
let p;
|
|
2958
|
-
return e[13] !== m || e[14] !== f || e[15] !== b || e[16] !== l ? (p = {
|
|
2959
|
-
queryKey: m,
|
|
2960
|
-
queryFn: f,
|
|
2993
|
+
return e[14] !== h || e[15] !== d || e[16] !== b || e[17] !== l ? (m = {
|
|
2994
|
+
queryKey: h,
|
|
2995
|
+
queryFn: d,
|
|
2961
2996
|
enabled: b,
|
|
2962
2997
|
...l
|
|
2963
|
-
}, e[
|
|
2998
|
+
}, e[14] = h, e[15] = d, e[16] = b, e[17] = l, e[18] = m) : m = e[18], se(m);
|
|
2964
2999
|
}
|
|
2965
|
-
function
|
|
3000
|
+
function Hr(r) {
|
|
2966
3001
|
const e = R(6);
|
|
2967
3002
|
let t, n;
|
|
2968
3003
|
e[0] !== r ? ({
|
|
2969
3004
|
children: t,
|
|
2970
3005
|
...n
|
|
2971
3006
|
} = r, e[0] = r, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
|
|
2972
|
-
const s =
|
|
3007
|
+
const s = Qn(n);
|
|
2973
3008
|
let o;
|
|
2974
3009
|
return e[3] !== t || e[4] !== s ? (o = t(s), e[3] = t, e[4] = s, e[5] = o) : o = e[5], o;
|
|
2975
3010
|
}
|
|
2976
|
-
function
|
|
2977
|
-
const e = R(
|
|
3011
|
+
function Wn(r) {
|
|
3012
|
+
const e = R(19), {
|
|
2978
3013
|
accessToken: t,
|
|
2979
3014
|
sourceId: n,
|
|
2980
3015
|
widgetProps: s,
|
|
@@ -2987,33 +3022,42 @@ function zn(r) {
|
|
|
2987
3022
|
enabled: a,
|
|
2988
3023
|
...l
|
|
2989
3024
|
} = i, e[2] = i, e[3] = a, e[4] = l) : (a = e[3], l = e[4]);
|
|
2990
|
-
const
|
|
3025
|
+
const y = a === void 0 ? !0 : a, c = ie(n), p = ae(t, n);
|
|
3026
|
+
let h;
|
|
3027
|
+
e[5] !== t || e[6] !== c || e[7] !== n || e[8] !== s ? (h = ["formula", n, t, s, c], e[5] = t, e[6] = c, e[7] = n, e[8] = s, e[9] = h) : h = e[9];
|
|
3028
|
+
let d;
|
|
3029
|
+
e[10] !== c || e[11] !== p || e[12] !== s ? (d = (T) => {
|
|
3030
|
+
const {
|
|
3031
|
+
signal: f
|
|
3032
|
+
} = T;
|
|
3033
|
+
return p == null ? void 0 : p.getFormula({
|
|
3034
|
+
...s,
|
|
3035
|
+
filters: c,
|
|
3036
|
+
signal: f
|
|
3037
|
+
});
|
|
3038
|
+
}, e[10] = c, e[11] = p, e[12] = s, e[13] = d) : d = e[13];
|
|
3039
|
+
const b = !!p && y;
|
|
2991
3040
|
let m;
|
|
2992
|
-
e[
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
const b = !!c && d;
|
|
2996
|
-
let p;
|
|
2997
|
-
return e[13] !== m || e[14] !== f || e[15] !== b || e[16] !== l ? (p = {
|
|
2998
|
-
queryKey: m,
|
|
2999
|
-
queryFn: f,
|
|
3041
|
+
return e[14] !== h || e[15] !== d || e[16] !== b || e[17] !== l ? (m = {
|
|
3042
|
+
queryKey: h,
|
|
3043
|
+
queryFn: d,
|
|
3000
3044
|
enabled: b,
|
|
3001
3045
|
...l
|
|
3002
|
-
}, e[
|
|
3046
|
+
}, e[14] = h, e[15] = d, e[16] = b, e[17] = l, e[18] = m) : m = e[18], se(m);
|
|
3003
3047
|
}
|
|
3004
|
-
function
|
|
3048
|
+
function Gr(r) {
|
|
3005
3049
|
const e = R(6);
|
|
3006
3050
|
let t, n;
|
|
3007
3051
|
e[0] !== r ? ({
|
|
3008
3052
|
children: t,
|
|
3009
3053
|
...n
|
|
3010
3054
|
} = r, e[0] = r, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
|
|
3011
|
-
const s =
|
|
3055
|
+
const s = Wn(n);
|
|
3012
3056
|
let o;
|
|
3013
3057
|
return e[3] !== t || e[4] !== s ? (o = t(s), e[3] = t, e[4] = s, e[5] = o) : o = e[5], o;
|
|
3014
3058
|
}
|
|
3015
|
-
function
|
|
3016
|
-
const e = R(
|
|
3059
|
+
function Zn(r) {
|
|
3060
|
+
const e = R(19), {
|
|
3017
3061
|
accessToken: t,
|
|
3018
3062
|
sourceId: n,
|
|
3019
3063
|
widgetProps: s,
|
|
@@ -3026,33 +3070,42 @@ function Qn(r) {
|
|
|
3026
3070
|
enabled: a,
|
|
3027
3071
|
...l
|
|
3028
3072
|
} = i, e[2] = i, e[3] = a, e[4] = l) : (a = e[3], l = e[4]);
|
|
3029
|
-
const
|
|
3073
|
+
const y = a === void 0 ? !0 : a, c = ie(n), p = ae(t, n);
|
|
3074
|
+
let h;
|
|
3075
|
+
e[5] !== t || e[6] !== c || e[7] !== n || e[8] !== s ? (h = ["histogram", n, t, s, c], e[5] = t, e[6] = c, e[7] = n, e[8] = s, e[9] = h) : h = e[9];
|
|
3076
|
+
let d;
|
|
3077
|
+
e[10] !== c || e[11] !== p || e[12] !== s ? (d = (T) => {
|
|
3078
|
+
const {
|
|
3079
|
+
signal: f
|
|
3080
|
+
} = T;
|
|
3081
|
+
return p == null ? void 0 : p.getHistogram({
|
|
3082
|
+
...s,
|
|
3083
|
+
filters: c,
|
|
3084
|
+
signal: f
|
|
3085
|
+
});
|
|
3086
|
+
}, e[10] = c, e[11] = p, e[12] = s, e[13] = d) : d = e[13];
|
|
3087
|
+
const b = !!p && y;
|
|
3030
3088
|
let m;
|
|
3031
|
-
e[
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
const b = !!c && d;
|
|
3035
|
-
let p;
|
|
3036
|
-
return e[13] !== m || e[14] !== f || e[15] !== b || e[16] !== l ? (p = {
|
|
3037
|
-
queryKey: m,
|
|
3038
|
-
queryFn: f,
|
|
3089
|
+
return e[14] !== h || e[15] !== d || e[16] !== b || e[17] !== l ? (m = {
|
|
3090
|
+
queryKey: h,
|
|
3091
|
+
queryFn: d,
|
|
3039
3092
|
enabled: b,
|
|
3040
3093
|
...l
|
|
3041
|
-
}, e[
|
|
3094
|
+
}, e[14] = h, e[15] = d, e[16] = b, e[17] = l, e[18] = m) : m = e[18], se(m);
|
|
3042
3095
|
}
|
|
3043
|
-
function
|
|
3096
|
+
function zr(r) {
|
|
3044
3097
|
const e = R(6);
|
|
3045
3098
|
let t, n;
|
|
3046
3099
|
e[0] !== r ? ({
|
|
3047
3100
|
children: t,
|
|
3048
3101
|
...n
|
|
3049
3102
|
} = r, e[0] = r, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
|
|
3050
|
-
const s =
|
|
3103
|
+
const s = Zn(n);
|
|
3051
3104
|
let o;
|
|
3052
3105
|
return e[3] !== t || e[4] !== s ? (o = t(s), e[3] = t, e[4] = s, e[5] = o) : o = e[5], o;
|
|
3053
3106
|
}
|
|
3054
|
-
function
|
|
3055
|
-
const e = R(
|
|
3107
|
+
function Kn(r) {
|
|
3108
|
+
const e = R(19), {
|
|
3056
3109
|
accessToken: t,
|
|
3057
3110
|
sourceId: n,
|
|
3058
3111
|
widgetProps: s,
|
|
@@ -3065,33 +3118,42 @@ function Wn(r) {
|
|
|
3065
3118
|
enabled: a,
|
|
3066
3119
|
...l
|
|
3067
3120
|
} = i, e[2] = i, e[3] = a, e[4] = l) : (a = e[3], l = e[4]);
|
|
3068
|
-
const
|
|
3121
|
+
const y = a === void 0 ? !0 : a, c = ie(n), p = ae(t, n);
|
|
3122
|
+
let h;
|
|
3123
|
+
e[5] !== t || e[6] !== c || e[7] !== n || e[8] !== s ? (h = ["range", n, t, s, c], e[5] = t, e[6] = c, e[7] = n, e[8] = s, e[9] = h) : h = e[9];
|
|
3124
|
+
let d;
|
|
3125
|
+
e[10] !== c || e[11] !== p || e[12] !== s ? (d = (T) => {
|
|
3126
|
+
const {
|
|
3127
|
+
signal: f
|
|
3128
|
+
} = T;
|
|
3129
|
+
return p == null ? void 0 : p.getRange({
|
|
3130
|
+
...s,
|
|
3131
|
+
filters: c,
|
|
3132
|
+
signal: f
|
|
3133
|
+
});
|
|
3134
|
+
}, e[10] = c, e[11] = p, e[12] = s, e[13] = d) : d = e[13];
|
|
3135
|
+
const b = !!p && y;
|
|
3069
3136
|
let m;
|
|
3070
|
-
e[
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
const b = !!c && d;
|
|
3074
|
-
let p;
|
|
3075
|
-
return e[13] !== m || e[14] !== f || e[15] !== b || e[16] !== l ? (p = {
|
|
3076
|
-
queryKey: m,
|
|
3077
|
-
queryFn: f,
|
|
3137
|
+
return e[14] !== h || e[15] !== d || e[16] !== b || e[17] !== l ? (m = {
|
|
3138
|
+
queryKey: h,
|
|
3139
|
+
queryFn: d,
|
|
3078
3140
|
enabled: b,
|
|
3079
3141
|
...l
|
|
3080
|
-
}, e[
|
|
3142
|
+
}, e[14] = h, e[15] = d, e[16] = b, e[17] = l, e[18] = m) : m = e[18], se(m);
|
|
3081
3143
|
}
|
|
3082
|
-
function
|
|
3144
|
+
function Qr(r) {
|
|
3083
3145
|
const e = R(6);
|
|
3084
3146
|
let t, n;
|
|
3085
3147
|
e[0] !== r ? ({
|
|
3086
3148
|
children: t,
|
|
3087
3149
|
...n
|
|
3088
3150
|
} = r, e[0] = r, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
|
|
3089
|
-
const s =
|
|
3151
|
+
const s = Kn(n);
|
|
3090
3152
|
let o;
|
|
3091
3153
|
return e[3] !== t || e[4] !== s ? (o = t(s), e[3] = t, e[4] = s, e[5] = o) : o = e[5], o;
|
|
3092
3154
|
}
|
|
3093
|
-
function
|
|
3094
|
-
const e = R(
|
|
3155
|
+
function Yn(r) {
|
|
3156
|
+
const e = R(19), {
|
|
3095
3157
|
accessToken: t,
|
|
3096
3158
|
sourceId: n,
|
|
3097
3159
|
widgetProps: s,
|
|
@@ -3104,33 +3166,42 @@ function Zn(r) {
|
|
|
3104
3166
|
enabled: a,
|
|
3105
3167
|
...l
|
|
3106
3168
|
} = i, e[2] = i, e[3] = a, e[4] = l) : (a = e[3], l = e[4]);
|
|
3107
|
-
const
|
|
3169
|
+
const y = a === void 0 ? !0 : a, c = ie(n), p = ae(t, n);
|
|
3170
|
+
let h;
|
|
3171
|
+
e[5] !== t || e[6] !== c || e[7] !== n || e[8] !== s ? (h = ["scatter", n, t, s, c], e[5] = t, e[6] = c, e[7] = n, e[8] = s, e[9] = h) : h = e[9];
|
|
3172
|
+
let d;
|
|
3173
|
+
e[10] !== c || e[11] !== p || e[12] !== s ? (d = (T) => {
|
|
3174
|
+
const {
|
|
3175
|
+
signal: f
|
|
3176
|
+
} = T;
|
|
3177
|
+
return p == null ? void 0 : p.getScatter({
|
|
3178
|
+
...s,
|
|
3179
|
+
filters: c,
|
|
3180
|
+
signal: f
|
|
3181
|
+
});
|
|
3182
|
+
}, e[10] = c, e[11] = p, e[12] = s, e[13] = d) : d = e[13];
|
|
3183
|
+
const b = !!p && y;
|
|
3108
3184
|
let m;
|
|
3109
|
-
e[
|
|
3110
|
-
|
|
3111
|
-
|
|
3112
|
-
const b = !!c && d;
|
|
3113
|
-
let p;
|
|
3114
|
-
return e[13] !== m || e[14] !== f || e[15] !== b || e[16] !== l ? (p = {
|
|
3115
|
-
queryKey: m,
|
|
3116
|
-
queryFn: f,
|
|
3185
|
+
return e[14] !== h || e[15] !== d || e[16] !== b || e[17] !== l ? (m = {
|
|
3186
|
+
queryKey: h,
|
|
3187
|
+
queryFn: d,
|
|
3117
3188
|
enabled: b,
|
|
3118
3189
|
...l
|
|
3119
|
-
}, e[
|
|
3190
|
+
}, e[14] = h, e[15] = d, e[16] = b, e[17] = l, e[18] = m) : m = e[18], se(m);
|
|
3120
3191
|
}
|
|
3121
|
-
function
|
|
3192
|
+
function Wr(r) {
|
|
3122
3193
|
const e = R(6);
|
|
3123
3194
|
let t, n;
|
|
3124
3195
|
e[0] !== r ? ({
|
|
3125
3196
|
children: t,
|
|
3126
3197
|
...n
|
|
3127
3198
|
} = r, e[0] = r, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
|
|
3128
|
-
const s =
|
|
3199
|
+
const s = Yn(n);
|
|
3129
3200
|
let o;
|
|
3130
3201
|
return e[3] !== t || e[4] !== s ? (o = t(s), e[3] = t, e[4] = s, e[5] = o) : o = e[5], o;
|
|
3131
3202
|
}
|
|
3132
|
-
function
|
|
3133
|
-
const e = R(
|
|
3203
|
+
function Xn(r) {
|
|
3204
|
+
const e = R(19), {
|
|
3134
3205
|
accessToken: t,
|
|
3135
3206
|
sourceId: n,
|
|
3136
3207
|
widgetProps: s,
|
|
@@ -3143,33 +3214,42 @@ function Kn(r) {
|
|
|
3143
3214
|
enabled: a,
|
|
3144
3215
|
...l
|
|
3145
3216
|
} = i, e[2] = i, e[3] = a, e[4] = l) : (a = e[3], l = e[4]);
|
|
3146
|
-
const
|
|
3217
|
+
const y = a === void 0 ? !0 : a, c = ie(n), p = ae(t, n);
|
|
3218
|
+
let h;
|
|
3219
|
+
e[5] !== t || e[6] !== c || e[7] !== n || e[8] !== s ? (h = ["table", n, t, s, c], e[5] = t, e[6] = c, e[7] = n, e[8] = s, e[9] = h) : h = e[9];
|
|
3220
|
+
let d;
|
|
3221
|
+
e[10] !== c || e[11] !== p || e[12] !== s ? (d = (T) => {
|
|
3222
|
+
const {
|
|
3223
|
+
signal: f
|
|
3224
|
+
} = T;
|
|
3225
|
+
return p == null ? void 0 : p.getTable({
|
|
3226
|
+
...s,
|
|
3227
|
+
filters: c,
|
|
3228
|
+
signal: f
|
|
3229
|
+
});
|
|
3230
|
+
}, e[10] = c, e[11] = p, e[12] = s, e[13] = d) : d = e[13];
|
|
3231
|
+
const b = !!p && y;
|
|
3147
3232
|
let m;
|
|
3148
|
-
e[
|
|
3149
|
-
|
|
3150
|
-
|
|
3151
|
-
const b = !!c && d;
|
|
3152
|
-
let p;
|
|
3153
|
-
return e[13] !== m || e[14] !== f || e[15] !== b || e[16] !== l ? (p = {
|
|
3154
|
-
queryKey: m,
|
|
3155
|
-
queryFn: f,
|
|
3233
|
+
return e[14] !== h || e[15] !== d || e[16] !== b || e[17] !== l ? (m = {
|
|
3234
|
+
queryKey: h,
|
|
3235
|
+
queryFn: d,
|
|
3156
3236
|
enabled: b,
|
|
3157
3237
|
...l
|
|
3158
|
-
}, e[
|
|
3238
|
+
}, e[14] = h, e[15] = d, e[16] = b, e[17] = l, e[18] = m) : m = e[18], se(m);
|
|
3159
3239
|
}
|
|
3160
|
-
function
|
|
3240
|
+
function Zr(r) {
|
|
3161
3241
|
const e = R(6);
|
|
3162
3242
|
let t, n;
|
|
3163
3243
|
e[0] !== r ? ({
|
|
3164
3244
|
children: t,
|
|
3165
3245
|
...n
|
|
3166
3246
|
} = r, e[0] = r, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
|
|
3167
|
-
const s =
|
|
3247
|
+
const s = Xn(n);
|
|
3168
3248
|
let o;
|
|
3169
3249
|
return e[3] !== t || e[4] !== s ? (o = t(s), e[3] = t, e[4] = s, e[5] = o) : o = e[5], o;
|
|
3170
3250
|
}
|
|
3171
|
-
function
|
|
3172
|
-
const e = R(
|
|
3251
|
+
function Jn(r) {
|
|
3252
|
+
const e = R(19), {
|
|
3173
3253
|
accessToken: t,
|
|
3174
3254
|
sourceId: n,
|
|
3175
3255
|
widgetProps: s,
|
|
@@ -3182,33 +3262,42 @@ function Yn(r) {
|
|
|
3182
3262
|
enabled: a,
|
|
3183
3263
|
...l
|
|
3184
3264
|
} = i, e[2] = i, e[3] = a, e[4] = l) : (a = e[3], l = e[4]);
|
|
3185
|
-
const
|
|
3265
|
+
const y = a === void 0 ? !0 : a, c = ie(n), p = ae(t, n);
|
|
3266
|
+
let h;
|
|
3267
|
+
e[5] !== t || e[6] !== c || e[7] !== n || e[8] !== s ? (h = ["time-series", n, t, s, c], e[5] = t, e[6] = c, e[7] = n, e[8] = s, e[9] = h) : h = e[9];
|
|
3268
|
+
let d;
|
|
3269
|
+
e[10] !== c || e[11] !== p || e[12] !== s ? (d = (T) => {
|
|
3270
|
+
const {
|
|
3271
|
+
signal: f
|
|
3272
|
+
} = T;
|
|
3273
|
+
return p == null ? void 0 : p.getTimeSeries({
|
|
3274
|
+
...s,
|
|
3275
|
+
filters: c,
|
|
3276
|
+
signal: f
|
|
3277
|
+
});
|
|
3278
|
+
}, e[10] = c, e[11] = p, e[12] = s, e[13] = d) : d = e[13];
|
|
3279
|
+
const b = !!p && y;
|
|
3186
3280
|
let m;
|
|
3187
|
-
e[
|
|
3188
|
-
|
|
3189
|
-
|
|
3190
|
-
const b = !!c && d;
|
|
3191
|
-
let p;
|
|
3192
|
-
return e[13] !== m || e[14] !== f || e[15] !== b || e[16] !== l ? (p = {
|
|
3193
|
-
queryKey: m,
|
|
3194
|
-
queryFn: f,
|
|
3281
|
+
return e[14] !== h || e[15] !== d || e[16] !== b || e[17] !== l ? (m = {
|
|
3282
|
+
queryKey: h,
|
|
3283
|
+
queryFn: d,
|
|
3195
3284
|
enabled: b,
|
|
3196
3285
|
...l
|
|
3197
|
-
}, e[
|
|
3286
|
+
}, e[14] = h, e[15] = d, e[16] = b, e[17] = l, e[18] = m) : m = e[18], se(m);
|
|
3198
3287
|
}
|
|
3199
|
-
function
|
|
3288
|
+
function Kr(r) {
|
|
3200
3289
|
const e = R(6);
|
|
3201
3290
|
let t, n;
|
|
3202
3291
|
e[0] !== r ? ({
|
|
3203
3292
|
children: t,
|
|
3204
3293
|
...n
|
|
3205
3294
|
} = r, e[0] = r, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
|
|
3206
|
-
const s =
|
|
3295
|
+
const s = Jn(n);
|
|
3207
3296
|
let o;
|
|
3208
3297
|
return e[3] !== t || e[4] !== s ? (o = t(s), e[3] = t, e[4] = s, e[5] = o) : o = e[5], o;
|
|
3209
3298
|
}
|
|
3210
|
-
const
|
|
3211
|
-
function
|
|
3299
|
+
const Yr = "ps";
|
|
3300
|
+
function Xr(r) {
|
|
3212
3301
|
const e = R(13), {
|
|
3213
3302
|
children: t,
|
|
3214
3303
|
maps: n,
|
|
@@ -3220,40 +3309,40 @@ function Qr(r) {
|
|
|
3220
3309
|
const a = i;
|
|
3221
3310
|
let l;
|
|
3222
3311
|
e[2] !== o ? (l = o === void 0 ? [] : o, e[2] = o, e[3] = l) : l = e[3];
|
|
3223
|
-
const
|
|
3312
|
+
const y = l;
|
|
3224
3313
|
let c;
|
|
3225
|
-
e[4] !== t || e[5] !==
|
|
3314
|
+
e[4] !== t || e[5] !== y ? (c = /* @__PURE__ */ N(un, { values: y, children: t }), e[4] = t, e[5] = y, e[6] = c) : c = e[6];
|
|
3315
|
+
let p;
|
|
3316
|
+
e[7] !== a || e[8] !== c ? (p = /* @__PURE__ */ N(zs, { values: a, children: c }), e[7] = a, e[8] = c, e[9] = p) : p = e[9];
|
|
3226
3317
|
let h;
|
|
3227
|
-
e[
|
|
3228
|
-
let m;
|
|
3229
|
-
return e[10] !== n || e[11] !== h ? (m = /* @__PURE__ */ N($s, { values: n, children: h }), e[10] = n, e[11] = h, e[12] = m) : m = e[12], m;
|
|
3318
|
+
return e[10] !== n || e[11] !== p ? (h = /* @__PURE__ */ N(Bs, { values: n, children: p }), e[10] = n, e[11] = p, e[12] = h) : h = e[12], h;
|
|
3230
3319
|
}
|
|
3231
|
-
function
|
|
3232
|
-
const t =
|
|
3233
|
-
id:
|
|
3320
|
+
function Jr(r, e) {
|
|
3321
|
+
const t = pe((y) => y.layers), n = pe((y) => y.setLayer), s = re(() => Ot(r.map((y) => t[y]).filter((y) => !!y)), [t, r]), o = re(() => s.map(e), [e, s]), i = Q(({
|
|
3322
|
+
id: y,
|
|
3234
3323
|
visible: c,
|
|
3235
|
-
...
|
|
3324
|
+
...p
|
|
3236
3325
|
}) => {
|
|
3237
|
-
n(
|
|
3326
|
+
n(y, {
|
|
3238
3327
|
props: {
|
|
3239
3328
|
visible: c
|
|
3240
3329
|
},
|
|
3241
|
-
legend:
|
|
3330
|
+
legend: p
|
|
3242
3331
|
});
|
|
3243
3332
|
}, [n]), a = Q(({
|
|
3244
|
-
id:
|
|
3333
|
+
id: y,
|
|
3245
3334
|
collapsed: c
|
|
3246
3335
|
}) => {
|
|
3247
|
-
n(
|
|
3336
|
+
n(y, {
|
|
3248
3337
|
legend: {
|
|
3249
3338
|
collapsed: c
|
|
3250
3339
|
}
|
|
3251
3340
|
});
|
|
3252
3341
|
}, [n]), l = Q(({
|
|
3253
|
-
id:
|
|
3342
|
+
id: y,
|
|
3254
3343
|
opacity: c
|
|
3255
3344
|
}) => {
|
|
3256
|
-
n(
|
|
3345
|
+
n(y, {
|
|
3257
3346
|
props: {
|
|
3258
3347
|
opacity: c
|
|
3259
3348
|
}
|
|
@@ -3266,53 +3355,53 @@ function Wr(r, e) {
|
|
|
3266
3355
|
onChangeRowCollapse: a
|
|
3267
3356
|
};
|
|
3268
3357
|
}
|
|
3269
|
-
function
|
|
3358
|
+
function eo({
|
|
3270
3359
|
mapId: r
|
|
3271
3360
|
}) {
|
|
3272
|
-
const [e, t] = oe(void 0), [n, s] = oe(!1), o = x((
|
|
3273
|
-
var
|
|
3274
|
-
return (
|
|
3275
|
-
}), i = x((
|
|
3276
|
-
var
|
|
3277
|
-
return (
|
|
3361
|
+
const [e, t] = oe(void 0), [n, s] = oe(!1), o = x((m) => {
|
|
3362
|
+
var T;
|
|
3363
|
+
return (T = m.maps[r]) == null ? void 0 : T.basemap;
|
|
3364
|
+
}), i = x((m) => m.getDeckInstance), a = x((m) => m.getOverlayInstance), l = x((m) => m.areLayersLoaded[r]), c = x((m) => {
|
|
3365
|
+
var T;
|
|
3366
|
+
return (T = m.maps[r]) == null ? void 0 : T.isLoaded;
|
|
3278
3367
|
}) && l, {
|
|
3279
|
-
type:
|
|
3280
|
-
} =
|
|
3281
|
-
const
|
|
3368
|
+
type: p
|
|
3369
|
+
} = ye[o], h = p === te.googleMaps, d = Q(async () => {
|
|
3370
|
+
const m = i(r), T = a(r);
|
|
3282
3371
|
try {
|
|
3283
|
-
const
|
|
3284
|
-
|
|
3285
|
-
const g =
|
|
3286
|
-
if (
|
|
3287
|
-
const
|
|
3288
|
-
if (
|
|
3372
|
+
const f = document.createElement("canvas");
|
|
3373
|
+
f.width = m.width ?? 0, f.height = m.height ?? 0;
|
|
3374
|
+
const g = f.getContext("2d");
|
|
3375
|
+
if (h) {
|
|
3376
|
+
const _ = T;
|
|
3377
|
+
if (_.getRenderingType() !== "RASTER")
|
|
3289
3378
|
throw new Error("Only raster type is supported for Google Maps");
|
|
3290
|
-
const
|
|
3379
|
+
const w = await hs(_.getDiv(), {
|
|
3291
3380
|
useCORS: !0
|
|
3292
3381
|
});
|
|
3293
|
-
g == null || g.drawImage(
|
|
3382
|
+
g == null || g.drawImage(w, 0, 0, m.width, m.height);
|
|
3294
3383
|
} else {
|
|
3295
|
-
const
|
|
3296
|
-
|
|
3384
|
+
const _ = T;
|
|
3385
|
+
_.redraw(), g == null || g.drawImage(_.getMap().getCanvas(), 0, 0, m.width, m.height);
|
|
3297
3386
|
}
|
|
3298
|
-
|
|
3299
|
-
const S =
|
|
3387
|
+
m == null || m.redraw("screenshot"), g == null || g.drawImage(m.getCanvas(), 0, 0, m.width, m.height);
|
|
3388
|
+
const S = f.toDataURL();
|
|
3300
3389
|
t(S);
|
|
3301
|
-
} catch (
|
|
3302
|
-
console.error(
|
|
3390
|
+
} catch (f) {
|
|
3391
|
+
console.error(f);
|
|
3303
3392
|
} finally {
|
|
3304
3393
|
s(!1);
|
|
3305
3394
|
}
|
|
3306
|
-
}, [i,
|
|
3395
|
+
}, [i, h, r, a]);
|
|
3307
3396
|
return {
|
|
3308
3397
|
takeScreenshot: Q(() => {
|
|
3309
|
-
s(!0), c &&
|
|
3310
|
-
}, [
|
|
3398
|
+
s(!0), c && d();
|
|
3399
|
+
}, [d, c]),
|
|
3311
3400
|
isLoading: n,
|
|
3312
3401
|
screenshot: e
|
|
3313
3402
|
};
|
|
3314
3403
|
}
|
|
3315
|
-
function
|
|
3404
|
+
function to(r) {
|
|
3316
3405
|
const e = R(8), {
|
|
3317
3406
|
mapId: t
|
|
3318
3407
|
} = r;
|
|
@@ -3320,12 +3409,12 @@ function Kr(r) {
|
|
|
3320
3409
|
e[0] !== t ? (n = {
|
|
3321
3410
|
mapId: t
|
|
3322
3411
|
}, e[0] = t, e[1] = n) : n = e[1];
|
|
3323
|
-
const s =
|
|
3412
|
+
const s = er(n);
|
|
3324
3413
|
let o;
|
|
3325
3414
|
e[2] !== t ? (o = {
|
|
3326
3415
|
mapId: t
|
|
3327
3416
|
}, e[2] = t, e[3] = o) : o = e[3];
|
|
3328
|
-
const i =
|
|
3417
|
+
const i = tr(o), a = i ?? s;
|
|
3329
3418
|
let l;
|
|
3330
3419
|
return e[4] !== i || e[5] !== a || e[6] !== s ? (l = {
|
|
3331
3420
|
spatialFilter: a,
|
|
@@ -3333,7 +3422,7 @@ function Kr(r) {
|
|
|
3333
3422
|
viewportSpatialFilter: s
|
|
3334
3423
|
}, e[4] = i, e[5] = a, e[6] = s, e[7] = l) : l = e[7], l;
|
|
3335
3424
|
}
|
|
3336
|
-
function
|
|
3425
|
+
function er(r) {
|
|
3337
3426
|
const e = R(4), {
|
|
3338
3427
|
mapId: t
|
|
3339
3428
|
} = r;
|
|
@@ -3347,11 +3436,11 @@ function Xn(r) {
|
|
|
3347
3436
|
break e;
|
|
3348
3437
|
}
|
|
3349
3438
|
let i;
|
|
3350
|
-
e[2] !== s ? (i =
|
|
3439
|
+
e[2] !== s ? (i = ps(s.getBounds()), e[2] = s, e[3] = i) : i = e[3], o = i;
|
|
3351
3440
|
}
|
|
3352
3441
|
return o;
|
|
3353
3442
|
}
|
|
3354
|
-
function
|
|
3443
|
+
function tr(r) {
|
|
3355
3444
|
const e = R(5), {
|
|
3356
3445
|
mapId: t
|
|
3357
3446
|
} = r;
|
|
@@ -3365,82 +3454,82 @@ function Jn(r) {
|
|
|
3365
3454
|
e: {
|
|
3366
3455
|
let i;
|
|
3367
3456
|
if (e[2] !== s) {
|
|
3368
|
-
const a =
|
|
3457
|
+
const a = _t({
|
|
3369
3458
|
values: s
|
|
3370
|
-
}).filter(
|
|
3459
|
+
}).filter(nr);
|
|
3371
3460
|
if (!(a != null && a.length)) {
|
|
3372
3461
|
o = void 0;
|
|
3373
3462
|
break e;
|
|
3374
3463
|
}
|
|
3375
|
-
i =
|
|
3464
|
+
i = gs(a.map(sr)), e[2] = s, e[3] = i, e[4] = o;
|
|
3376
3465
|
} else
|
|
3377
3466
|
i = e[3], o = e[4];
|
|
3378
3467
|
o = i.geometry;
|
|
3379
3468
|
}
|
|
3380
3469
|
return o;
|
|
3381
3470
|
}
|
|
3382
|
-
function
|
|
3471
|
+
function sr(r) {
|
|
3383
3472
|
return r.geometry.coordinates;
|
|
3384
3473
|
}
|
|
3385
|
-
function
|
|
3474
|
+
function nr(r) {
|
|
3386
3475
|
return r.properties.visible;
|
|
3387
3476
|
}
|
|
3388
|
-
const
|
|
3477
|
+
const le = {
|
|
3389
3478
|
currency: "CURRENCY",
|
|
3390
3479
|
default: "DEFAULT",
|
|
3391
3480
|
number: "NUMBER"
|
|
3392
|
-
},
|
|
3393
|
-
[
|
|
3394
|
-
type:
|
|
3395
|
-
format: (r, e) =>
|
|
3481
|
+
}, dt = {
|
|
3482
|
+
[le.currency]: {
|
|
3483
|
+
type: le.currency,
|
|
3484
|
+
format: (r, e) => rs(r, e)
|
|
3396
3485
|
},
|
|
3397
|
-
[
|
|
3398
|
-
type:
|
|
3399
|
-
format: (r, e) =>
|
|
3486
|
+
[le.number]: {
|
|
3487
|
+
type: le.number,
|
|
3488
|
+
format: (r, e) => gt(r, e)
|
|
3400
3489
|
},
|
|
3401
|
-
[
|
|
3402
|
-
type:
|
|
3490
|
+
[le.default]: {
|
|
3491
|
+
type: le.default,
|
|
3403
3492
|
format: (r) => r.toLocaleString()
|
|
3404
3493
|
}
|
|
3405
3494
|
};
|
|
3406
|
-
function
|
|
3495
|
+
function so({
|
|
3407
3496
|
properties: r,
|
|
3408
3497
|
formatters: e = {},
|
|
3409
3498
|
includeColumns: t = Object.keys(r),
|
|
3410
3499
|
locale: n = "en-US",
|
|
3411
3500
|
showColumnName: s = !0,
|
|
3412
3501
|
title: o,
|
|
3413
|
-
getColumnName: i =
|
|
3414
|
-
getFieldHtml: a =
|
|
3415
|
-
getTitle: l =
|
|
3416
|
-
getValue:
|
|
3502
|
+
getColumnName: i = lr,
|
|
3503
|
+
getFieldHtml: a = or,
|
|
3504
|
+
getTitle: l = rr,
|
|
3505
|
+
getValue: y = ir
|
|
3417
3506
|
}) {
|
|
3418
|
-
const c = o ? l(o) : "",
|
|
3419
|
-
const
|
|
3420
|
-
return
|
|
3507
|
+
const c = o ? l(o) : "", h = t.reduce((d, b) => {
|
|
3508
|
+
const m = e[b], T = r[b], f = y(T, n, m), g = s ? i(b) : "";
|
|
3509
|
+
return d + a(g, f);
|
|
3421
3510
|
}, "");
|
|
3422
|
-
return c +
|
|
3511
|
+
return c + h;
|
|
3423
3512
|
}
|
|
3424
|
-
function
|
|
3513
|
+
function rr(r) {
|
|
3425
3514
|
return `<h3 style="margin: 0"><strong>${r}</strong></h3></br>`;
|
|
3426
3515
|
}
|
|
3427
|
-
function
|
|
3516
|
+
function or(r, e) {
|
|
3428
3517
|
return `${r}${e}</br>`;
|
|
3429
3518
|
}
|
|
3430
|
-
function
|
|
3519
|
+
function ir(r, e, t) {
|
|
3431
3520
|
try {
|
|
3432
|
-
return
|
|
3521
|
+
return ar(t)(r, e);
|
|
3433
3522
|
} catch {
|
|
3434
3523
|
return r;
|
|
3435
3524
|
}
|
|
3436
3525
|
}
|
|
3437
|
-
function
|
|
3438
|
-
return typeof r == "function" ? r : ((r &&
|
|
3526
|
+
function ar(r) {
|
|
3527
|
+
return typeof r == "function" ? r : ((r && dt[r]) ?? dt[le.default]).format;
|
|
3439
3528
|
}
|
|
3440
|
-
function
|
|
3529
|
+
function lr(r) {
|
|
3441
3530
|
return `<strong>${r}</strong>: `;
|
|
3442
3531
|
}
|
|
3443
|
-
function
|
|
3532
|
+
function no(r) {
|
|
3444
3533
|
var e, t, n, s, o, i, a, l;
|
|
3445
3534
|
return {
|
|
3446
3535
|
collapsed: (e = r.legend) == null ? void 0 : e.collapsed,
|
|
@@ -3457,7 +3546,7 @@ function Xr(r) {
|
|
|
3457
3546
|
visible: r.props.visible ?? !0
|
|
3458
3547
|
};
|
|
3459
3548
|
}
|
|
3460
|
-
function
|
|
3549
|
+
function ro(r) {
|
|
3461
3550
|
const e = R(18), {
|
|
3462
3551
|
children: t,
|
|
3463
3552
|
mapId: n
|
|
@@ -3471,31 +3560,31 @@ function Jr(r) {
|
|
|
3471
3560
|
} = x(s);
|
|
3472
3561
|
let l;
|
|
3473
3562
|
e[2] !== n ? (l = (g) => g.areLayersLoaded[n], e[2] = n, e[3] = l) : l = e[3];
|
|
3474
|
-
const
|
|
3563
|
+
const y = x(l), c = x(ur), p = x(cr), h = !y;
|
|
3564
|
+
let d;
|
|
3565
|
+
e[4] !== n || e[5] !== c ? (d = (g) => c(n, g), e[4] = n, e[5] = c, e[6] = d) : d = e[6];
|
|
3566
|
+
const b = d;
|
|
3567
|
+
let m;
|
|
3568
|
+
e[7] !== p || e[8] !== n ? (m = (g) => p(n, g), e[7] = p, e[8] = n, e[9] = m) : m = e[9];
|
|
3569
|
+
const T = m;
|
|
3475
3570
|
let f;
|
|
3476
|
-
e[
|
|
3477
|
-
const b = f;
|
|
3478
|
-
let p;
|
|
3479
|
-
e[7] !== h || e[8] !== n ? (p = (g) => h(n, g), e[7] = h, e[8] = n, e[9] = p) : p = e[9];
|
|
3480
|
-
const L = p;
|
|
3481
|
-
let y;
|
|
3482
|
-
return e[10] !== t || e[11] !== i || e[12] !== a || e[13] !== m || e[14] !== b || e[15] !== L || e[16] !== o ? (y = t({
|
|
3571
|
+
return e[10] !== t || e[11] !== i || e[12] !== a || e[13] !== h || e[14] !== b || e[15] !== T || e[16] !== o ? (f = t({
|
|
3483
3572
|
zoom: o,
|
|
3484
3573
|
maxZoom: i,
|
|
3485
3574
|
minZoom: a,
|
|
3486
|
-
isLoading:
|
|
3575
|
+
isLoading: h,
|
|
3487
3576
|
setZoom: b,
|
|
3488
|
-
flyTo:
|
|
3489
|
-
}), e[10] = t, e[11] = i, e[12] = a, e[13] =
|
|
3577
|
+
flyTo: T
|
|
3578
|
+
}), e[10] = t, e[11] = i, e[12] = a, e[13] = h, e[14] = b, e[15] = T, e[16] = o, e[17] = f) : f = e[17], f;
|
|
3490
3579
|
}
|
|
3491
|
-
function
|
|
3580
|
+
function cr(r) {
|
|
3492
3581
|
return r.flyTo;
|
|
3493
3582
|
}
|
|
3494
|
-
function
|
|
3583
|
+
function ur(r) {
|
|
3495
3584
|
return r.setZoom;
|
|
3496
3585
|
}
|
|
3497
|
-
async function
|
|
3498
|
-
baseUrl: r =
|
|
3586
|
+
async function dr({
|
|
3587
|
+
baseUrl: r = We,
|
|
3499
3588
|
connection: e,
|
|
3500
3589
|
accessToken: t,
|
|
3501
3590
|
query: n,
|
|
@@ -3506,14 +3595,14 @@ async function cr({
|
|
|
3506
3595
|
} = {},
|
|
3507
3596
|
queryParameters: a,
|
|
3508
3597
|
params: l,
|
|
3509
|
-
apiVersion:
|
|
3598
|
+
apiVersion: y = Ze
|
|
3510
3599
|
}) {
|
|
3511
|
-
const c = `${r}/${
|
|
3512
|
-
return
|
|
3600
|
+
const c = `${r}/${y}/stats/${e}/${s}`;
|
|
3601
|
+
return kt({
|
|
3513
3602
|
accessToken: t,
|
|
3514
3603
|
signal: o,
|
|
3515
3604
|
url: c,
|
|
3516
|
-
method:
|
|
3605
|
+
method: ue.get,
|
|
3517
3606
|
params: {
|
|
3518
3607
|
q: n,
|
|
3519
3608
|
...a,
|
|
@@ -3522,8 +3611,8 @@ async function cr({
|
|
|
3522
3611
|
...i
|
|
3523
3612
|
});
|
|
3524
3613
|
}
|
|
3525
|
-
async function
|
|
3526
|
-
baseUrl: r =
|
|
3614
|
+
async function fr({
|
|
3615
|
+
baseUrl: r = We,
|
|
3527
3616
|
connection: e,
|
|
3528
3617
|
accessToken: t,
|
|
3529
3618
|
table: n,
|
|
@@ -3533,21 +3622,21 @@ async function ur({
|
|
|
3533
3622
|
signal: i,
|
|
3534
3623
|
...a
|
|
3535
3624
|
} = {},
|
|
3536
|
-
apiVersion: l =
|
|
3625
|
+
apiVersion: l = Ze
|
|
3537
3626
|
}) {
|
|
3538
|
-
const
|
|
3539
|
-
return
|
|
3627
|
+
const y = `${r}/${l}/stats/${e}/${n}/${s}`;
|
|
3628
|
+
return kt({
|
|
3540
3629
|
accessToken: t,
|
|
3541
3630
|
signal: i,
|
|
3542
|
-
url:
|
|
3543
|
-
method:
|
|
3631
|
+
url: y,
|
|
3632
|
+
method: ue.get,
|
|
3544
3633
|
params: {
|
|
3545
3634
|
...o
|
|
3546
3635
|
},
|
|
3547
3636
|
...a
|
|
3548
3637
|
});
|
|
3549
3638
|
}
|
|
3550
|
-
function
|
|
3639
|
+
function oo(r) {
|
|
3551
3640
|
const e = R(20), {
|
|
3552
3641
|
source: t,
|
|
3553
3642
|
attribute: n,
|
|
@@ -3558,37 +3647,37 @@ function eo(r) {
|
|
|
3558
3647
|
} = r;
|
|
3559
3648
|
let l;
|
|
3560
3649
|
e[0] !== a ? (l = a === void 0 ? {} : a, e[0] = a, e[1] = l) : l = e[1];
|
|
3561
|
-
let
|
|
3650
|
+
let y, c;
|
|
3562
3651
|
e[2] !== l ? ({
|
|
3563
|
-
enabled:
|
|
3652
|
+
enabled: y,
|
|
3564
3653
|
...c
|
|
3565
|
-
} = l, e[2] = l, e[3] =
|
|
3566
|
-
const
|
|
3567
|
-
let
|
|
3568
|
-
e[5] !== n || e[6] !== t ? (
|
|
3569
|
-
let
|
|
3570
|
-
e[8] !== s || e[9] !== n || e[10] !== i || e[11] !== o || e[12] !== t ? (
|
|
3654
|
+
} = l, e[2] = l, e[3] = y, e[4] = c) : (y = e[3], c = e[4]);
|
|
3655
|
+
const p = y === void 0 ? !0 : y;
|
|
3656
|
+
let h;
|
|
3657
|
+
e[5] !== n || e[6] !== t ? (h = [t, n], e[5] = n, e[6] = t, e[7] = h) : h = e[7];
|
|
3658
|
+
let d;
|
|
3659
|
+
e[8] !== s || e[9] !== n || e[10] !== i || e[11] !== o || e[12] !== t ? (d = () => pr({
|
|
3571
3660
|
source: t,
|
|
3572
3661
|
params: o,
|
|
3573
3662
|
attribute: n,
|
|
3574
3663
|
accessToken: s,
|
|
3575
3664
|
fetcherOptions: i
|
|
3576
|
-
}), e[8] = s, e[9] = n, e[10] = i, e[11] = o, e[12] = t, e[13] =
|
|
3665
|
+
}), e[8] = s, e[9] = n, e[10] = i, e[11] = o, e[12] = t, e[13] = d) : d = e[13];
|
|
3577
3666
|
let b;
|
|
3578
|
-
return e[14] !==
|
|
3579
|
-
queryKey:
|
|
3580
|
-
queryFn:
|
|
3581
|
-
select(
|
|
3667
|
+
return e[14] !== p || e[15] !== t || e[16] !== h || e[17] !== d || e[18] !== c ? (b = {
|
|
3668
|
+
queryKey: h,
|
|
3669
|
+
queryFn: d,
|
|
3670
|
+
select(m) {
|
|
3582
3671
|
return {
|
|
3583
|
-
...
|
|
3584
|
-
type:
|
|
3672
|
+
...m,
|
|
3673
|
+
type: m.type.toLowerCase()
|
|
3585
3674
|
};
|
|
3586
3675
|
},
|
|
3587
|
-
enabled: !!t &&
|
|
3676
|
+
enabled: !!t && p,
|
|
3588
3677
|
...c
|
|
3589
|
-
}, e[14] =
|
|
3678
|
+
}, e[14] = p, e[15] = t, e[16] = h, e[17] = d, e[18] = c, e[19] = b) : b = e[19], se(b);
|
|
3590
3679
|
}
|
|
3591
|
-
function
|
|
3680
|
+
function pr({
|
|
3592
3681
|
source: r,
|
|
3593
3682
|
params: e,
|
|
3594
3683
|
attribute: t,
|
|
@@ -3596,7 +3685,7 @@ function fr({
|
|
|
3596
3685
|
fetcherOptions: s
|
|
3597
3686
|
}) {
|
|
3598
3687
|
if (r.type.startsWith("query"))
|
|
3599
|
-
return
|
|
3688
|
+
return dr({
|
|
3600
3689
|
connection: r.connectionName,
|
|
3601
3690
|
baseUrl: r.apiBaseUrl,
|
|
3602
3691
|
apiVersion: r.apiVersion,
|
|
@@ -3608,7 +3697,7 @@ function fr({
|
|
|
3608
3697
|
fetcherOptions: s
|
|
3609
3698
|
});
|
|
3610
3699
|
if (r.type.startsWith("table"))
|
|
3611
|
-
return
|
|
3700
|
+
return fr({
|
|
3612
3701
|
connection: r.connectionName,
|
|
3613
3702
|
baseUrl: r.apiBaseUrl,
|
|
3614
3703
|
apiVersion: r.apiVersion,
|
|
@@ -3619,7 +3708,7 @@ function fr({
|
|
|
3619
3708
|
fetcherOptions: s
|
|
3620
3709
|
});
|
|
3621
3710
|
if (r.type.startsWith("tileset"))
|
|
3622
|
-
return
|
|
3711
|
+
return mr({
|
|
3623
3712
|
source: r,
|
|
3624
3713
|
accessToken: n,
|
|
3625
3714
|
target: r.data,
|
|
@@ -3627,21 +3716,21 @@ function fr({
|
|
|
3627
3716
|
});
|
|
3628
3717
|
throw new Error(`Unsupported source type: ${r.type}`);
|
|
3629
3718
|
}
|
|
3630
|
-
async function
|
|
3719
|
+
async function mr({
|
|
3631
3720
|
source: r,
|
|
3632
3721
|
accessToken: e,
|
|
3633
3722
|
target: t,
|
|
3634
3723
|
attribute: n
|
|
3635
3724
|
}) {
|
|
3636
|
-
var a, l,
|
|
3637
|
-
const s = await
|
|
3725
|
+
var a, l, y;
|
|
3726
|
+
const s = await ms({
|
|
3638
3727
|
connectionName: r.connectionName,
|
|
3639
3728
|
apiBaseUrl: r.apiBaseUrl,
|
|
3640
3729
|
accessToken: e,
|
|
3641
3730
|
clientId: r.clientId,
|
|
3642
3731
|
tableName: t
|
|
3643
3732
|
});
|
|
3644
|
-
if (!((
|
|
3733
|
+
if (!((y = (l = (a = s == null ? void 0 : s.tilestats) == null ? void 0 : a.layers) == null ? void 0 : l[0]) != null && y.attributes))
|
|
3645
3734
|
throw new Error(`${n} not found in tileset attributes`);
|
|
3646
3735
|
const i = s.tilestats.layers[0].attributes.find((c) => c.attribute === n);
|
|
3647
3736
|
if (!i)
|
|
@@ -3649,89 +3738,93 @@ async function dr({
|
|
|
3649
3738
|
return i;
|
|
3650
3739
|
}
|
|
3651
3740
|
export {
|
|
3652
|
-
|
|
3653
|
-
|
|
3741
|
+
ot as CONVERSIONS_UNITS,
|
|
3742
|
+
Ue as CartoBasemapURL,
|
|
3654
3743
|
J as CartoBasemaps,
|
|
3655
|
-
|
|
3656
|
-
|
|
3657
|
-
|
|
3658
|
-
|
|
3659
|
-
|
|
3744
|
+
Nr as CategoriesModel,
|
|
3745
|
+
Cs as CustomCompositeEditMode,
|
|
3746
|
+
St as CustomEditableGeojsonLayer,
|
|
3747
|
+
Zs as CustomMeasureAreaMode,
|
|
3748
|
+
Ks as CustomMeasureBufferMode,
|
|
3660
3749
|
Et as CustomMeasureDistanceMode,
|
|
3661
|
-
|
|
3662
|
-
|
|
3663
|
-
|
|
3664
|
-
|
|
3750
|
+
Je as DEFAULT_LASSO_TOOLS_COLORS,
|
|
3751
|
+
Fs as DEFAULT_LASSO_TOOLS_LAYER_PROPS,
|
|
3752
|
+
$e as DEFAULT_LASSO_TOOLS_MODES,
|
|
3753
|
+
xe as DEFAULT_LASSO_TOOLS_PROPS,
|
|
3665
3754
|
_e as DEFAULT_MASK_LAYER_PROPS,
|
|
3666
|
-
|
|
3667
|
-
|
|
3668
|
-
|
|
3669
|
-
|
|
3755
|
+
en as DEFAULT_MEASUREMENT_TOOLS_MODES,
|
|
3756
|
+
tn as DEFAULT_MEASUREMENT_TOOLS_UNITS,
|
|
3757
|
+
je as DEFAULT_MEASURE_COLORS,
|
|
3758
|
+
Os as DeckGLComponent,
|
|
3670
3759
|
Y as EditableEditType,
|
|
3671
|
-
|
|
3672
|
-
|
|
3673
|
-
|
|
3674
|
-
|
|
3675
|
-
|
|
3676
|
-
|
|
3677
|
-
|
|
3678
|
-
|
|
3679
|
-
|
|
3680
|
-
|
|
3760
|
+
Hr as FeaturesModel,
|
|
3761
|
+
Gr as FormulaModel,
|
|
3762
|
+
Re as GmapsBasemap,
|
|
3763
|
+
zr as HistogramModel,
|
|
3764
|
+
me as INTL_UNITS,
|
|
3765
|
+
on as LassoTools,
|
|
3766
|
+
zs as LassoToolsProvider,
|
|
3767
|
+
ye as MAPS_BASEMAP,
|
|
3768
|
+
ce as MAP_LASSO_TOOLS_LAYER_ID,
|
|
3769
|
+
Le as MAP_MASK_LAYER_ID,
|
|
3681
3770
|
ne as MAP_MEASURE_LAYER_ID,
|
|
3682
|
-
|
|
3683
|
-
|
|
3771
|
+
Js as MEASUREMENT_TOOLS_UNITS_AREA,
|
|
3772
|
+
it as MEASUREMENT_TOOLS_UNITS_DISTANCE,
|
|
3684
3773
|
K as MEASUREMENT_TOOLS_UNITS_DISTANCE_VALUES,
|
|
3685
|
-
|
|
3686
|
-
|
|
3687
|
-
|
|
3688
|
-
|
|
3689
|
-
|
|
3774
|
+
Br as MapComponent,
|
|
3775
|
+
Ie as MapMeasurementUnitAuto,
|
|
3776
|
+
Xs as MapMeasurementUnitTurf,
|
|
3777
|
+
Bs as MapProvider,
|
|
3778
|
+
Xr as MapsProvider,
|
|
3690
3779
|
te as MapsTypes,
|
|
3691
|
-
|
|
3692
|
-
|
|
3693
|
-
|
|
3694
|
-
|
|
3695
|
-
|
|
3696
|
-
|
|
3697
|
-
|
|
3698
|
-
|
|
3699
|
-
|
|
3700
|
-
|
|
3701
|
-
|
|
3702
|
-
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
|
|
3706
|
-
|
|
3707
|
-
|
|
3708
|
-
|
|
3709
|
-
|
|
3710
|
-
|
|
3711
|
-
|
|
3712
|
-
|
|
3713
|
-
|
|
3714
|
-
|
|
3715
|
-
|
|
3716
|
-
|
|
3717
|
-
|
|
3718
|
-
|
|
3719
|
-
|
|
3780
|
+
wn as MeasurementTools,
|
|
3781
|
+
un as MeasurementToolsProvider,
|
|
3782
|
+
Qr as RangeModel,
|
|
3783
|
+
Wr as ScatterModel,
|
|
3784
|
+
Zr as TableModel,
|
|
3785
|
+
Kr as TimeSeriesModel,
|
|
3786
|
+
ro as ZoomControls,
|
|
3787
|
+
Yr as clientID,
|
|
3788
|
+
st as convertMetersTo,
|
|
3789
|
+
Gs as createLassoToolsStore,
|
|
3790
|
+
js as createMapStore,
|
|
3791
|
+
cn as createMeasurementToolsStore,
|
|
3792
|
+
le as formatterTypes,
|
|
3793
|
+
bs as getCursorDefault,
|
|
3794
|
+
jr as getDeckController,
|
|
3795
|
+
Ir as getFilterValues,
|
|
3796
|
+
Ns as getLassoToolsLayer,
|
|
3797
|
+
an as getMeasurementToolsLayer,
|
|
3798
|
+
Oe as getTextLayerFormattedDistance,
|
|
3799
|
+
vs as getTooltipDefault,
|
|
3800
|
+
no as mappingLegendMeridian,
|
|
3801
|
+
so as objectToHtml,
|
|
3802
|
+
Ot as sortLayers,
|
|
3803
|
+
Rs as transitionFlyConfig,
|
|
3804
|
+
zn as useCategories,
|
|
3805
|
+
Mt as useEventManager,
|
|
3806
|
+
Qn as useFeatures,
|
|
3807
|
+
ie as useFilters,
|
|
3808
|
+
Wn as useFormula,
|
|
3809
|
+
Zn as useHistogram,
|
|
3810
|
+
tr as useLassoToolsSpatialFilter,
|
|
3720
3811
|
G as useLassoToolsState,
|
|
3721
|
-
|
|
3722
|
-
|
|
3723
|
-
|
|
3724
|
-
|
|
3812
|
+
pe as useLayerStore,
|
|
3813
|
+
_n as useLayers,
|
|
3814
|
+
Jr as useLegend,
|
|
3815
|
+
eo as useMapScreenshot,
|
|
3725
3816
|
x as useMapStore,
|
|
3726
3817
|
I as useMeasurementToolsState,
|
|
3727
|
-
|
|
3728
|
-
|
|
3729
|
-
|
|
3730
|
-
|
|
3731
|
-
|
|
3732
|
-
|
|
3733
|
-
|
|
3734
|
-
Xn as
|
|
3735
|
-
|
|
3818
|
+
Kn as useRange,
|
|
3819
|
+
Yn as useScatter,
|
|
3820
|
+
Hn as useSource,
|
|
3821
|
+
Pe as useSourceStore,
|
|
3822
|
+
Vr as useSourceWithFilters,
|
|
3823
|
+
to as useSpatialFilter,
|
|
3824
|
+
oo as useStats,
|
|
3825
|
+
Xn as useTable,
|
|
3826
|
+
Jn as useTimeSeries,
|
|
3827
|
+
er as useViewportSpatialFilter,
|
|
3828
|
+
ae as useWidgetModel
|
|
3736
3829
|
};
|
|
3737
3830
|
//# sourceMappingURL=index.js.map
|