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