@carto/ps-react-maps 3.11.12 → 4.0.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 +1588 -1508
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/types/editable/lasso-tools/types.d.ts +2 -3
- package/dist/types/editable/measurement-tools/types.d.ts +2 -3
- package/dist/types/index.d.ts +1 -1
- package/dist/types/models/use-common-model.d.ts +2 -4
- package/dist/types/models/use-widget-model.d.ts +1 -3
- package/dist/types/providers/layers/types.d.ts +1 -1
- package/dist/types/providers/map/types.d.ts +2 -1
- package/dist/types/providers/sources/store.d.ts +3 -5
- package/dist/types/providers/sources/store.test.d.ts +1 -0
- package/dist/types/providers/sources/types.d.ts +19 -18
- package/dist/types/use-event-manager.d.ts +1 -0
- package/package.json +30 -30
package/dist/index.js
CHANGED
|
@@ -1,72 +1,72 @@
|
|
|
1
|
-
import { jsx as K, jsxs as
|
|
2
|
-
import { c as
|
|
3
|
-
import { useImperativeHandle as Ne, useEffect as Q,
|
|
4
|
-
import { MapProvider as
|
|
5
|
-
import
|
|
6
|
-
import { useMap as
|
|
7
|
-
import { GoogleMapsOverlay as
|
|
8
|
-
import { createStore as
|
|
9
|
-
import { FlyToInterpolator as
|
|
10
|
-
import { CompositeMode as
|
|
11
|
-
import { DataFilterExtension as
|
|
12
|
-
import { EventManager as
|
|
13
|
-
import { GeoJsonLayer as
|
|
14
|
-
import { useShallow as
|
|
15
|
-
import { area as
|
|
16
|
-
import { formatNumber as
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import { useQuery as
|
|
21
|
-
import { removeFilter as
|
|
22
|
-
import { devtools as
|
|
23
|
-
import
|
|
1
|
+
import { jsx as K, jsxs as mt } from "react/jsx-runtime";
|
|
2
|
+
import { c as F } from "react/compiler-runtime";
|
|
3
|
+
import { useImperativeHandle as Ne, useEffect as Q, useState as ae, createContext as He, useContext as ze, useMemo as ye, useCallback as ee, useRef as Le } from "react";
|
|
4
|
+
import { MapProvider as xt, Map as Ut, useMap as Vt } from "react-map-gl/maplibre";
|
|
5
|
+
import Bt from "@deck.gl/react";
|
|
6
|
+
import { useMap as yt, Map as jt, APIProvider as It } from "@vis.gl/react-google-maps";
|
|
7
|
+
import { GoogleMapsOverlay as Nt } from "@deck.gl/google-maps";
|
|
8
|
+
import { createStore as Ge, useStore as Ke, create as ht } from "zustand";
|
|
9
|
+
import { FlyToInterpolator as Ht, WebMercatorViewport as gt } from "@deck.gl/core";
|
|
10
|
+
import { CompositeMode as zt, TranslateMode as Gt, ModifyMode as Kt, DrawPolygonByDraggingMode as Zt, DrawCircleFromCenterMode as bt, DrawRectangleMode as Qt, DrawPolygonMode as Wt, EditableGeoJsonLayer as Yt, MeasureAreaMode as Jt, getPickedEditHandle as Xt, MeasureDistanceMode as es, ViewMode as ts } from "@deck.gl-community/editable-layers";
|
|
11
|
+
import { DataFilterExtension as ss, MaskExtension as ns } from "@deck.gl/extensions";
|
|
12
|
+
import { Pan as Ye, InputDirection as rs, EventManager as os, Tap as Je, Pinch as is } from "mjolnir.js";
|
|
13
|
+
import { GeoJsonLayer as as } from "@deck.gl/layers";
|
|
14
|
+
import { useShallow as vt } from "zustand/shallow";
|
|
15
|
+
import { area as Xe, centroid as ls, lineIntersect as cs, multiPolygon as St } from "@turf/turf";
|
|
16
|
+
import { formatNumber as wt, formatCurrency as us } from "@carto/ps-utils";
|
|
17
|
+
import _t from "convert-units";
|
|
18
|
+
import ds from "convert-units/definitions/length";
|
|
19
|
+
import fs from "convert-units/definitions/area";
|
|
20
|
+
import { useQuery as le } from "@tanstack/react-query";
|
|
21
|
+
import { removeFilter as ps, addFilter as Mt, WidgetRasterSource as ms, WidgetTilesetSource as ys, TileFormat as hs, WidgetTableSource as gs, WidgetQuerySource as bs, createViewportSpatialFilter as vs, vectorTilesetSource as Ss } from "@carto/api-client";
|
|
22
|
+
import { devtools as ws } from "zustand/middleware";
|
|
23
|
+
import _s from "html2canvas";
|
|
24
24
|
const De = {
|
|
25
25
|
roadmap: "roadmap",
|
|
26
26
|
satellite: "satellite",
|
|
27
27
|
hybrid: "hybrid"
|
|
28
|
-
},
|
|
28
|
+
}, re = {
|
|
29
29
|
darkMatter: "darkMatter",
|
|
30
30
|
positron: "positron",
|
|
31
31
|
voyager: "voyager"
|
|
32
32
|
}, $e = {
|
|
33
|
-
[
|
|
34
|
-
[
|
|
35
|
-
[
|
|
36
|
-
},
|
|
33
|
+
[re.positron]: "https://basemaps.cartocdn.com/gl/positron-gl-style/style.json",
|
|
34
|
+
[re.voyager]: "https://basemaps.cartocdn.com/gl/voyager-gl-style/style.json",
|
|
35
|
+
[re.darkMatter]: "https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json"
|
|
36
|
+
}, ie = {
|
|
37
37
|
maplibre: "maplibre",
|
|
38
38
|
googleMaps: "google-maps"
|
|
39
|
-
},
|
|
40
|
-
[
|
|
41
|
-
url: $e[
|
|
42
|
-
type:
|
|
39
|
+
}, ve = {
|
|
40
|
+
[re.positron]: {
|
|
41
|
+
url: $e[re.positron],
|
|
42
|
+
type: ie.maplibre
|
|
43
43
|
},
|
|
44
|
-
[
|
|
45
|
-
url: $e[
|
|
46
|
-
type:
|
|
44
|
+
[re.voyager]: {
|
|
45
|
+
url: $e[re.voyager],
|
|
46
|
+
type: ie.maplibre
|
|
47
47
|
},
|
|
48
|
-
[
|
|
49
|
-
url: $e[
|
|
50
|
-
type:
|
|
48
|
+
[re.darkMatter]: {
|
|
49
|
+
url: $e[re.darkMatter],
|
|
50
|
+
type: ie.maplibre,
|
|
51
51
|
dark: !0
|
|
52
52
|
},
|
|
53
53
|
[De.roadmap]: {
|
|
54
|
-
type:
|
|
54
|
+
type: ie.googleMaps
|
|
55
55
|
},
|
|
56
56
|
[De.satellite]: {
|
|
57
|
-
type:
|
|
57
|
+
type: ie.googleMaps
|
|
58
58
|
},
|
|
59
59
|
[De.hybrid]: {
|
|
60
|
-
type:
|
|
60
|
+
type: ie.googleMaps
|
|
61
61
|
}
|
|
62
62
|
};
|
|
63
|
-
function
|
|
63
|
+
function Ms({
|
|
64
64
|
isDragging: r,
|
|
65
65
|
isHovering: e
|
|
66
66
|
}) {
|
|
67
67
|
return r ? "grabbing" : e ? "pointer" : "grab";
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function Es(r) {
|
|
70
70
|
return r.html ? {
|
|
71
71
|
html: `<div class='map-tooltip__content'>${r.html}</div>`,
|
|
72
72
|
style: {
|
|
@@ -75,265 +75,311 @@ function vs(r) {
|
|
|
75
75
|
}
|
|
76
76
|
} : null;
|
|
77
77
|
}
|
|
78
|
-
function
|
|
79
|
-
const e =
|
|
80
|
-
let t, s, n, o, i, a, c,
|
|
78
|
+
function Ts(r) {
|
|
79
|
+
const e = F(39);
|
|
80
|
+
let t, s, n, o, i, a, l, c, h, y, g, p;
|
|
81
81
|
e[0] !== r ? ({
|
|
82
82
|
instanceRef: i,
|
|
83
|
-
overlayRef:
|
|
83
|
+
overlayRef: y,
|
|
84
84
|
controller: t,
|
|
85
85
|
id: o,
|
|
86
86
|
layers: a,
|
|
87
|
-
mapStyle:
|
|
87
|
+
mapStyle: l,
|
|
88
88
|
parameters: g,
|
|
89
89
|
getCursor: s,
|
|
90
90
|
getTooltip: n,
|
|
91
|
-
onLoad:
|
|
92
|
-
onViewStateChange:
|
|
91
|
+
onLoad: c,
|
|
92
|
+
onViewStateChange: h,
|
|
93
93
|
...p
|
|
94
|
-
} = r, e[0] = r, e[1] = t, e[2] = s, e[3] = n, e[4] = o, e[5] = i, e[6] = a, e[7] =
|
|
95
|
-
let
|
|
96
|
-
e[13] !== a ? (
|
|
97
|
-
const
|
|
98
|
-
let
|
|
99
|
-
e[15] !==
|
|
94
|
+
} = r, e[0] = r, e[1] = t, e[2] = s, e[3] = n, e[4] = o, e[5] = i, e[6] = a, e[7] = l, e[8] = c, e[9] = h, e[10] = y, e[11] = g, e[12] = p) : (t = e[1], s = e[2], n = e[3], o = e[4], i = e[5], a = e[6], l = e[7], c = e[8], h = e[9], y = e[10], g = e[11], p = e[12]);
|
|
95
|
+
let b;
|
|
96
|
+
e[13] !== a ? (b = a.filter(ks).map(Ps), e[13] = a, e[14] = b) : b = e[14];
|
|
97
|
+
const m = b, w = i;
|
|
98
|
+
let u;
|
|
99
|
+
e[15] !== c ? (u = () => c({
|
|
100
100
|
type: "deckgl",
|
|
101
101
|
value: !0
|
|
102
|
-
}), e[15] =
|
|
103
|
-
let
|
|
104
|
-
e[17] !== g ? (
|
|
102
|
+
}), e[15] = c, e[16] = u) : u = e[16];
|
|
103
|
+
let f;
|
|
104
|
+
e[17] !== g ? (f = {
|
|
105
105
|
depthTest: !1,
|
|
106
106
|
...g
|
|
107
|
-
}, e[17] = g, e[18] =
|
|
107
|
+
}, e[17] = g, e[18] = f) : f = e[18];
|
|
108
|
+
let v;
|
|
109
|
+
e[19] !== y ? (v = /* @__PURE__ */ K(Cs, { overlayRef: y }), e[19] = y, e[20] = v) : v = e[20];
|
|
108
110
|
let _;
|
|
109
|
-
e[
|
|
110
|
-
let M;
|
|
111
|
-
e[21] !== l ? (M = () => l({
|
|
111
|
+
e[21] !== c ? (_ = () => c({
|
|
112
112
|
type: "load",
|
|
113
113
|
value: !0
|
|
114
|
-
}), e[21] =
|
|
114
|
+
}), e[21] = c, e[22] = _) : _ = e[22];
|
|
115
|
+
let M;
|
|
116
|
+
e[23] !== l || e[24] !== _ ? (M = /* @__PURE__ */ K(Ut, { reuseMaps: !1, mapStyle: l, onLoad: _, onRender: Ls }), e[23] = l, e[24] = _, e[25] = M) : M = e[25];
|
|
115
117
|
let P;
|
|
116
|
-
e[
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
P
|
|
121
|
-
] }) }) }), e[26] = w, e[27] = t, e[28] = s, e[29] = n, e[30] = o, e[31] = y, e[32] = p, e[33] = u, e[34] = f, e[35] = b, e[36] = _, e[37] = P, e[38] = D) : D = e[38], D;
|
|
118
|
+
return e[26] !== m || e[27] !== t || e[28] !== s || e[29] !== n || e[30] !== o || e[31] !== h || e[32] !== p || e[33] !== w || e[34] !== u || e[35] !== f || e[36] !== v || e[37] !== M ? (P = /* @__PURE__ */ K(xt, { children: /* @__PURE__ */ K("div", { className: "deckgl-map", children: /* @__PURE__ */ mt(Bt, { controller: t, id: o, ref: w, layers: m, getCursor: s, getTooltip: n, onLoad: u, onViewStateChange: h, parameters: f, ...p, children: [
|
|
119
|
+
v,
|
|
120
|
+
M
|
|
121
|
+
] }) }) }), e[26] = m, e[27] = t, e[28] = s, e[29] = n, e[30] = o, e[31] = h, e[32] = p, e[33] = w, e[34] = u, e[35] = f, e[36] = v, e[37] = M, e[38] = P) : P = e[38], P;
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function Ls() {
|
|
124
124
|
document.querySelector(".maplibregl-compact-show")?.classList.remove("maplibregl-compact-show");
|
|
125
125
|
}
|
|
126
|
-
function
|
|
126
|
+
function Ps(r) {
|
|
127
127
|
const {
|
|
128
128
|
type: e,
|
|
129
129
|
props: t
|
|
130
130
|
} = r;
|
|
131
131
|
return new e(t);
|
|
132
132
|
}
|
|
133
|
-
function
|
|
133
|
+
function ks(r) {
|
|
134
134
|
return !!r?.type;
|
|
135
135
|
}
|
|
136
|
-
function
|
|
137
|
-
const e =
|
|
136
|
+
function Cs(r) {
|
|
137
|
+
const e = F(3), {
|
|
138
138
|
overlayRef: t
|
|
139
139
|
} = r, {
|
|
140
140
|
default: s
|
|
141
|
-
} =
|
|
141
|
+
} = Vt();
|
|
142
142
|
let n, o;
|
|
143
143
|
return e[0] !== s ? (n = () => s, o = [s], e[0] = s, e[1] = n, e[2] = o) : (n = e[1], o = e[2]), Ne(t, n, o), null;
|
|
144
144
|
}
|
|
145
|
-
const
|
|
146
|
-
const e =
|
|
147
|
-
let t
|
|
148
|
-
e[0] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
145
|
+
const Os = (r) => {
|
|
146
|
+
const e = F(9);
|
|
147
|
+
let t;
|
|
148
|
+
e[0] === Symbol.for("react.memo_cache_sentinel") ? (t = new Nt({
|
|
149
149
|
interleaved: !0
|
|
150
|
-
}), e[0] =
|
|
151
|
-
const
|
|
152
|
-
let
|
|
153
|
-
e[1] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
154
|
-
let
|
|
155
|
-
e[3] !==
|
|
156
|
-
|
|
157
|
-
}), l = [
|
|
158
|
-
let
|
|
159
|
-
return e[6] !== r ? (
|
|
160
|
-
|
|
161
|
-
}, h = [
|
|
150
|
+
}), e[0] = t) : t = e[0];
|
|
151
|
+
const s = t, n = yt();
|
|
152
|
+
let o, i;
|
|
153
|
+
e[1] === Symbol.for("react.memo_cache_sentinel") ? (o = () => s, i = [s], e[1] = o, e[2] = i) : (o = e[1], i = e[2]), Ne(r.instanceRef, o, i);
|
|
154
|
+
let a, l;
|
|
155
|
+
e[3] !== n ? (a = () => (s.setMap(n), () => {
|
|
156
|
+
s.finalize();
|
|
157
|
+
}), l = [s, n], e[3] = n, e[4] = a, e[5] = l) : (a = e[4], l = e[5]), Q(a, l);
|
|
158
|
+
let c, h;
|
|
159
|
+
return e[6] !== r ? (c = () => {
|
|
160
|
+
s.setProps(r);
|
|
161
|
+
}, h = [s, r], e[6] = r, e[7] = c, e[8] = h) : (c = e[7], h = e[8]), Q(c, h), null;
|
|
162
162
|
};
|
|
163
|
-
function
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
163
|
+
function Fs(r) {
|
|
164
|
+
const e = F(73);
|
|
165
|
+
let t, s, n, o, i, a, l, c, h, y, g;
|
|
166
|
+
e[0] !== r ? ({
|
|
167
|
+
id: n,
|
|
168
|
+
instanceRef: o,
|
|
169
|
+
basemap: t,
|
|
170
|
+
layers: i,
|
|
171
|
+
gmapsProps: g,
|
|
172
|
+
overlayRef: c,
|
|
173
|
+
parameters: h,
|
|
174
|
+
controller: s,
|
|
175
|
+
onLoad: a,
|
|
176
|
+
onViewStateChange: l,
|
|
177
|
+
...y
|
|
178
|
+
} = r, e[0] = r, e[1] = t, e[2] = s, e[3] = n, e[4] = o, e[5] = i, e[6] = a, e[7] = l, e[8] = c, e[9] = h, e[10] = y, e[11] = g) : (t = e[1], s = e[2], n = e[3], o = e[4], i = e[5], a = e[6], l = e[7], c = e[8], h = e[9], y = e[10], g = e[11]);
|
|
179
|
+
let p;
|
|
180
|
+
e[12] !== g ? (p = g === void 0 ? {
|
|
173
181
|
apiKey: ""
|
|
174
|
-
},
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
if (typeof
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
dragPan: u?.dragPan ?? !0,
|
|
192
|
-
doubleClickZoom: u?.doubleClickZoom ?? !0,
|
|
193
|
-
scrollZoom: u?.scrollZoom ?? !0
|
|
194
|
-
};
|
|
195
|
-
}, [l]), v = te(() => s.filter((u) => !!u?.type).map(({
|
|
196
|
-
type: u,
|
|
197
|
-
props: f
|
|
198
|
-
}) => new u(f)), [s]), m = W(({
|
|
199
|
-
detail: {
|
|
200
|
-
center: u,
|
|
201
|
-
zoom: f,
|
|
202
|
-
heading: b,
|
|
203
|
-
tilt: _
|
|
182
|
+
} : g, e[12] = g, e[13] = p) : p = e[13];
|
|
183
|
+
let b, m, w;
|
|
184
|
+
e[14] !== p ? ({
|
|
185
|
+
apiKey: w,
|
|
186
|
+
APIProviderProps: b,
|
|
187
|
+
...m
|
|
188
|
+
} = p, e[14] = p, e[15] = b, e[16] = m, e[17] = w) : (b = e[15], m = e[16], w = e[17]);
|
|
189
|
+
let u;
|
|
190
|
+
e: {
|
|
191
|
+
if (typeof s == "boolean") {
|
|
192
|
+
let oe;
|
|
193
|
+
e[18] !== s ? (oe = {
|
|
194
|
+
dragPan: s,
|
|
195
|
+
doubleClickZoom: s,
|
|
196
|
+
scrollZoom: s
|
|
197
|
+
}, e[18] = s, e[19] = oe) : oe = e[19], u = oe;
|
|
198
|
+
break e;
|
|
204
199
|
}
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
200
|
+
const W = s, se = W?.dragPan ?? !0, J = W?.doubleClickZoom ?? !0, Y = W?.scrollZoom ?? !0;
|
|
201
|
+
let ne;
|
|
202
|
+
e[20] !== se || e[21] !== J || e[22] !== Y ? (ne = {
|
|
203
|
+
dragPan: se,
|
|
204
|
+
doubleClickZoom: J,
|
|
205
|
+
scrollZoom: Y
|
|
206
|
+
}, e[20] = se, e[21] = J, e[22] = Y, e[23] = ne) : ne = e[23], u = ne;
|
|
207
|
+
}
|
|
208
|
+
const f = u;
|
|
209
|
+
let v;
|
|
210
|
+
e[24] !== i ? (v = i.filter(Ds).map(Rs), e[24] = i, e[25] = v) : v = e[25];
|
|
211
|
+
const _ = v, M = As;
|
|
212
|
+
let P;
|
|
213
|
+
e[26] !== o || e[27] !== l ? (P = (W) => {
|
|
214
|
+
const J = o?.current?._deck, Y = {
|
|
215
|
+
...J?.viewState,
|
|
216
|
+
...W
|
|
217
|
+
}, ne = {
|
|
218
|
+
latitude: Y.latitude,
|
|
219
|
+
longitude: Y.longitude,
|
|
220
|
+
zoom: Y.zoom,
|
|
221
|
+
pitch: Y.pitch,
|
|
222
|
+
bearing: Y.bearing,
|
|
223
|
+
width: J?.width,
|
|
224
|
+
height: J?.height
|
|
225
225
|
};
|
|
226
|
-
|
|
227
|
-
viewState:
|
|
226
|
+
l?.({
|
|
227
|
+
viewState: ne,
|
|
228
228
|
interactionState: {
|
|
229
229
|
isZooming: !0
|
|
230
230
|
}
|
|
231
231
|
});
|
|
232
|
-
}, [e,
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
232
|
+
}, e[26] = o, e[27] = l, e[28] = P) : P = e[28];
|
|
233
|
+
const A = P, I = y.initialViewState?.latitude ?? 0, R = y.initialViewState?.longitude ?? 0;
|
|
234
|
+
let q;
|
|
235
|
+
e[29] !== I || e[30] !== R ? (q = {
|
|
236
|
+
lat: I,
|
|
237
|
+
lng: R
|
|
238
|
+
}, e[29] = I, e[30] = R, e[31] = q) : q = e[31];
|
|
239
|
+
const j = (y.initialViewState?.zoom ?? 0) + 1, D = y.initialViewState?.pitch, T = y.initialViewState?.bearing;
|
|
240
|
+
let O;
|
|
241
|
+
e[32] !== A || e[33] !== a || e[34] !== y.initialViewState ? (O = () => {
|
|
242
|
+
a({
|
|
238
243
|
type: "load",
|
|
239
244
|
value: !0
|
|
240
|
-
}),
|
|
241
|
-
},
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
}
|
|
253
|
-
]
|
|
245
|
+
}), A(y.initialViewState);
|
|
246
|
+
}, e[32] = A, e[33] = a, e[34] = y.initialViewState, e[35] = O) : O = e[35];
|
|
247
|
+
let d, S;
|
|
248
|
+
e[36] !== A ? (d = (W) => A(M(W)), S = (W) => A(M(W)), e[36] = A, e[37] = d, e[38] = S) : (d = e[37], S = e[38]);
|
|
249
|
+
const L = typeof f.scrollZoom == "boolean" ? f.scrollZoom : !!f.scrollZoom, C = f.dragPan ? "greedy" : "none", k = !f.doubleClickZoom;
|
|
250
|
+
let E;
|
|
251
|
+
e[39] !== n || e[40] !== c ? (E = /* @__PURE__ */ K($s, { id: n, overlayRef: c }), e[39] = n, e[40] = c, e[41] = E) : E = e[41];
|
|
252
|
+
let V;
|
|
253
|
+
e[42] !== a ? (V = () => {
|
|
254
|
+
a({
|
|
255
|
+
type: "deckgl",
|
|
256
|
+
value: !0
|
|
257
|
+
});
|
|
258
|
+
}, e[42] = a, e[43] = V) : V = e[43];
|
|
259
|
+
let B;
|
|
260
|
+
e[44] !== h ? (B = {
|
|
261
|
+
depthTest: !1,
|
|
262
|
+
...h
|
|
263
|
+
}, e[44] = h, e[45] = B) : B = e[45];
|
|
264
|
+
let H;
|
|
265
|
+
e[46] !== _ || e[47] !== n || e[48] !== o || e[49] !== y || e[50] !== V || e[51] !== B ? (H = /* @__PURE__ */ K(Os, { id: n, instanceRef: o, layers: _, onLoad: V, parameters: B, ...y }), e[46] = _, e[47] = n, e[48] = o, e[49] = y, e[50] = V, e[51] = B, e[52] = H) : H = e[52];
|
|
266
|
+
let U;
|
|
267
|
+
e[53] !== m || e[54] !== t || e[55] !== n || e[56] !== D || e[57] !== T || e[58] !== O || e[59] !== d || e[60] !== S || e[61] !== L || e[62] !== C || e[63] !== k || e[64] !== E || e[65] !== H || e[66] !== q || e[67] !== j ? (U = /* @__PURE__ */ K("div", { className: "deckgl-map", children: /* @__PURE__ */ mt(jt, { id: n, mapTypeId: t, disableDefaultUI: !0, ...m, center: q, zoom: j, tilt: D, heading: T, onTilesLoaded: O, onBoundsChanged: d, onZoomChanged: S, scrollwheel: L, gestureHandling: C, disableDoubleClickZoom: k, children: [
|
|
268
|
+
E,
|
|
269
|
+
H
|
|
270
|
+
] }) }), e[53] = m, e[54] = t, e[55] = n, e[56] = D, e[57] = T, e[58] = O, e[59] = d, e[60] = S, e[61] = L, e[62] = C, e[63] = k, e[64] = E, e[65] = H, e[66] = q, e[67] = j, e[68] = U) : U = e[68];
|
|
271
|
+
let z;
|
|
272
|
+
return e[69] !== b || e[70] !== w || e[71] !== U ? (z = /* @__PURE__ */ K(It, { apiKey: w, ...b, children: U }), e[69] = b, e[70] = w, e[71] = U, e[72] = z) : z = e[72], z;
|
|
273
|
+
}
|
|
274
|
+
function As(r) {
|
|
275
|
+
const {
|
|
276
|
+
detail: e
|
|
277
|
+
} = r, {
|
|
278
|
+
center: t,
|
|
279
|
+
zoom: s,
|
|
280
|
+
heading: n,
|
|
281
|
+
tilt: o
|
|
282
|
+
} = e;
|
|
283
|
+
return {
|
|
284
|
+
latitude: t.lat,
|
|
285
|
+
longitude: t.lng,
|
|
286
|
+
zoom: s - 1,
|
|
287
|
+
bearing: n,
|
|
288
|
+
pitch: o
|
|
289
|
+
};
|
|
254
290
|
}
|
|
255
|
-
function
|
|
256
|
-
const
|
|
291
|
+
function Rs(r) {
|
|
292
|
+
const {
|
|
293
|
+
type: e,
|
|
294
|
+
props: t
|
|
295
|
+
} = r;
|
|
296
|
+
return new e(t);
|
|
297
|
+
}
|
|
298
|
+
function Ds(r) {
|
|
299
|
+
return !!r?.type;
|
|
300
|
+
}
|
|
301
|
+
function $s(r) {
|
|
302
|
+
const e = F(3), {
|
|
257
303
|
id: t,
|
|
258
304
|
overlayRef: s
|
|
259
|
-
} = r, n =
|
|
305
|
+
} = r, n = yt(t);
|
|
260
306
|
let o, i;
|
|
261
307
|
return e[0] !== n ? (o = () => n, i = [n], e[0] = n, e[1] = o, e[2] = i) : (o = e[1], i = e[2]), Ne(s, o, i), null;
|
|
262
308
|
}
|
|
263
|
-
function
|
|
264
|
-
const e =
|
|
265
|
-
let t, s, n, o, i, a, c,
|
|
309
|
+
function qs(r) {
|
|
310
|
+
const e = F(46);
|
|
311
|
+
let t, s, n, o, i, a, l, c, h, y, g, p;
|
|
266
312
|
e[0] !== r ? ({
|
|
267
313
|
instanceRef: s,
|
|
268
314
|
overlayRef: o,
|
|
269
315
|
basemap: a,
|
|
270
|
-
controller:
|
|
271
|
-
id:
|
|
272
|
-
layers:
|
|
316
|
+
controller: l,
|
|
317
|
+
id: c,
|
|
318
|
+
layers: h,
|
|
273
319
|
gmapsProps: t,
|
|
274
|
-
getCursor:
|
|
320
|
+
getCursor: y,
|
|
275
321
|
getTooltip: g,
|
|
276
322
|
onLoad: n,
|
|
277
323
|
onViewStateChange: p,
|
|
278
324
|
...i
|
|
279
|
-
} = r, e[0] = r, e[1] = t, e[2] = s, e[3] = n, e[4] = o, e[5] = i, e[6] = a, e[7] =
|
|
280
|
-
const
|
|
325
|
+
} = r, e[0] = r, e[1] = t, e[2] = s, e[3] = n, e[4] = o, e[5] = i, e[6] = a, e[7] = l, e[8] = c, e[9] = h, e[10] = y, e[11] = g, e[12] = p) : (t = e[1], s = e[2], n = e[3], o = e[4], i = e[5], a = e[6], l = e[7], c = e[8], h = e[9], y = e[10], g = e[11], p = e[12]);
|
|
326
|
+
const b = a === void 0 ? re.positron : a, m = l === void 0 ? !0 : l, w = c === void 0 ? "deck-gl-map" : c;
|
|
281
327
|
let u;
|
|
282
|
-
e[13] !==
|
|
283
|
-
const f = u,
|
|
328
|
+
e[13] !== h ? (u = h === void 0 ? [] : h, e[13] = h, e[14] = u) : u = e[14];
|
|
329
|
+
const f = u, v = y === void 0 ? Ms : y, _ = g === void 0 ? Es : g, M = p === void 0 ? Us : p;
|
|
284
330
|
let P;
|
|
285
331
|
e[15] === Symbol.for("react.memo_cache_sentinel") ? (P = [!1, !1], e[15] = P) : P = e[15];
|
|
286
|
-
const [
|
|
287
|
-
url:
|
|
288
|
-
type:
|
|
289
|
-
} =
|
|
290
|
-
let
|
|
291
|
-
e[16] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
292
|
-
const
|
|
293
|
-
|
|
294
|
-
}, e[16] =
|
|
295
|
-
const
|
|
296
|
-
let
|
|
297
|
-
e[17] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
298
|
-
|
|
332
|
+
const [A, I] = ae(P), {
|
|
333
|
+
url: R,
|
|
334
|
+
type: q
|
|
335
|
+
} = ve[b], j = q === ie.googleMaps;
|
|
336
|
+
let D;
|
|
337
|
+
e[16] === Symbol.for("react.memo_cache_sentinel") ? (D = (k) => {
|
|
338
|
+
const E = k.type === "deckgl" ? 0 : 1;
|
|
339
|
+
I((V) => V.map((B, H) => H === E ? k.value : B));
|
|
340
|
+
}, e[16] = D) : D = e[16];
|
|
341
|
+
const T = D;
|
|
342
|
+
let O, d;
|
|
343
|
+
e[17] === Symbol.for("react.memo_cache_sentinel") ? (O = () => () => {
|
|
344
|
+
T({
|
|
299
345
|
type: "load",
|
|
300
346
|
value: !1
|
|
301
|
-
}),
|
|
347
|
+
}), T({
|
|
302
348
|
type: "deckgl",
|
|
303
349
|
value: !1
|
|
304
350
|
});
|
|
305
|
-
}, d = [
|
|
306
|
-
let S,
|
|
307
|
-
if (e[19] !==
|
|
308
|
-
const k =
|
|
351
|
+
}, d = [T], e[17] = O, e[18] = d) : (O = e[17], d = e[18]), Q(O, d);
|
|
352
|
+
let S, L;
|
|
353
|
+
if (e[19] !== A || e[20] !== n ? (S = () => {
|
|
354
|
+
const k = A.every(xs);
|
|
309
355
|
n?.(k);
|
|
310
|
-
},
|
|
356
|
+
}, L = [A, n], e[19] = A, e[20] = n, e[21] = S, e[22] = L) : (S = e[21], L = e[22]), Q(S, L), j) {
|
|
311
357
|
let k;
|
|
312
|
-
return e[23] !==
|
|
358
|
+
return e[23] !== b || e[24] !== m || e[25] !== v || e[26] !== _ || e[27] !== t || e[28] !== w || e[29] !== s || e[30] !== f || e[31] !== M || e[32] !== o || e[33] !== i ? (k = /* @__PURE__ */ K(Fs, { instanceRef: s, overlayRef: o, controller: m, id: w, basemap: b, layers: f, gmapsProps: t, getCursor: v, getTooltip: _, onLoad: T, onViewStateChange: M, ...i }), e[23] = b, e[24] = m, e[25] = v, e[26] = _, e[27] = t, e[28] = w, e[29] = s, e[30] = f, e[31] = M, e[32] = o, e[33] = i, e[34] = k) : k = e[34], k;
|
|
313
359
|
}
|
|
314
360
|
let C;
|
|
315
|
-
return e[35] !== m || e[36] !==
|
|
361
|
+
return e[35] !== m || e[36] !== v || e[37] !== _ || e[38] !== w || e[39] !== s || e[40] !== f || e[41] !== R || e[42] !== M || e[43] !== o || e[44] !== i ? (C = /* @__PURE__ */ K(Ts, { instanceRef: s, overlayRef: o, controller: m, id: w, layers: f, mapStyle: R, getCursor: v, getTooltip: _, onLoad: T, onViewStateChange: M, ...i }), e[35] = m, e[36] = v, e[37] = _, e[38] = w, e[39] = s, e[40] = f, e[41] = R, e[42] = M, e[43] = o, e[44] = i, e[45] = C) : C = e[45], C;
|
|
316
362
|
}
|
|
317
|
-
function
|
|
363
|
+
function xs(r) {
|
|
318
364
|
return r;
|
|
319
365
|
}
|
|
320
|
-
function
|
|
366
|
+
function Us() {
|
|
321
367
|
return null;
|
|
322
368
|
}
|
|
323
|
-
const
|
|
369
|
+
const Vs = {
|
|
324
370
|
transitionDuration: "auto",
|
|
325
|
-
transitionInterpolator: new
|
|
371
|
+
transitionInterpolator: new Ht({
|
|
326
372
|
curve: 2
|
|
327
373
|
})
|
|
328
374
|
};
|
|
329
|
-
var
|
|
330
|
-
function
|
|
375
|
+
var Me = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
376
|
+
function Et(r) {
|
|
331
377
|
return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
|
|
332
378
|
}
|
|
333
|
-
var
|
|
334
|
-
function
|
|
335
|
-
if (
|
|
336
|
-
|
|
379
|
+
var qe, et;
|
|
380
|
+
function Bs() {
|
|
381
|
+
if (et) return qe;
|
|
382
|
+
et = 1;
|
|
337
383
|
var r = function(f) {
|
|
338
384
|
return e(f) && !t(f);
|
|
339
385
|
};
|
|
@@ -354,24 +400,24 @@ function As() {
|
|
|
354
400
|
function a(u, f) {
|
|
355
401
|
return f.clone !== !1 && f.isMergeableObject(u) ? m(i(u), u, f) : u;
|
|
356
402
|
}
|
|
357
|
-
function
|
|
403
|
+
function l(u, f, v) {
|
|
358
404
|
return u.concat(f).map(function(_) {
|
|
359
|
-
return a(_,
|
|
405
|
+
return a(_, v);
|
|
360
406
|
});
|
|
361
407
|
}
|
|
362
|
-
function
|
|
408
|
+
function c(u, f) {
|
|
363
409
|
if (!f.customMerge)
|
|
364
410
|
return m;
|
|
365
|
-
var
|
|
366
|
-
return typeof
|
|
411
|
+
var v = f.customMerge(u);
|
|
412
|
+
return typeof v == "function" ? v : m;
|
|
367
413
|
}
|
|
368
|
-
function
|
|
414
|
+
function h(u) {
|
|
369
415
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(u).filter(function(f) {
|
|
370
416
|
return Object.propertyIsEnumerable.call(u, f);
|
|
371
417
|
}) : [];
|
|
372
418
|
}
|
|
373
|
-
function
|
|
374
|
-
return Object.keys(u).concat(
|
|
419
|
+
function y(u) {
|
|
420
|
+
return Object.keys(u).concat(h(u));
|
|
375
421
|
}
|
|
376
422
|
function g(u, f) {
|
|
377
423
|
try {
|
|
@@ -383,31 +429,31 @@ function As() {
|
|
|
383
429
|
function p(u, f) {
|
|
384
430
|
return g(u, f) && !(Object.hasOwnProperty.call(u, f) && Object.propertyIsEnumerable.call(u, f));
|
|
385
431
|
}
|
|
386
|
-
function
|
|
432
|
+
function b(u, f, v) {
|
|
387
433
|
var _ = {};
|
|
388
|
-
return
|
|
389
|
-
_[M] = a(u[M],
|
|
390
|
-
}),
|
|
391
|
-
p(u, M) || (g(u, M) &&
|
|
434
|
+
return v.isMergeableObject(u) && y(u).forEach(function(M) {
|
|
435
|
+
_[M] = a(u[M], v);
|
|
436
|
+
}), y(f).forEach(function(M) {
|
|
437
|
+
p(u, M) || (g(u, M) && v.isMergeableObject(f[M]) ? _[M] = c(M, v)(u[M], f[M], v) : _[M] = a(f[M], v));
|
|
392
438
|
}), _;
|
|
393
439
|
}
|
|
394
|
-
function m(u, f,
|
|
395
|
-
|
|
440
|
+
function m(u, f, v) {
|
|
441
|
+
v = v || {}, v.arrayMerge = v.arrayMerge || l, v.isMergeableObject = v.isMergeableObject || r, v.cloneUnlessOtherwiseSpecified = a;
|
|
396
442
|
var _ = Array.isArray(f), M = Array.isArray(u), P = _ === M;
|
|
397
|
-
return P ? _ ?
|
|
443
|
+
return P ? _ ? v.arrayMerge(u, f, v) : b(u, f, v) : a(f, v);
|
|
398
444
|
}
|
|
399
|
-
m.all = function(f,
|
|
445
|
+
m.all = function(f, v) {
|
|
400
446
|
if (!Array.isArray(f))
|
|
401
447
|
throw new Error("first argument should be an array");
|
|
402
448
|
return f.reduce(function(_, M) {
|
|
403
|
-
return m(_, M,
|
|
449
|
+
return m(_, M, v);
|
|
404
450
|
}, {});
|
|
405
451
|
};
|
|
406
452
|
var w = m;
|
|
407
|
-
return
|
|
453
|
+
return qe = w, qe;
|
|
408
454
|
}
|
|
409
|
-
var
|
|
410
|
-
const
|
|
455
|
+
var js = Bs();
|
|
456
|
+
const de = /* @__PURE__ */ Et(js), Is = (r) => {
|
|
411
457
|
const e = r.reduce((t, s) => {
|
|
412
458
|
const {
|
|
413
459
|
id: n,
|
|
@@ -426,20 +472,20 @@ const ie = /* @__PURE__ */ Mt(Rs), Ds = (r) => {
|
|
|
426
472
|
controller: s.controller ?? !0
|
|
427
473
|
}, t;
|
|
428
474
|
}, {});
|
|
429
|
-
return (t, s) => ({
|
|
475
|
+
return ((t, s) => ({
|
|
430
476
|
maps: e,
|
|
431
477
|
setBasemap: (n, o) => t((i) => {
|
|
432
478
|
const {
|
|
433
479
|
type: a
|
|
434
|
-
} =
|
|
435
|
-
type:
|
|
436
|
-
} =
|
|
480
|
+
} = ve[i.maps[n].basemap], {
|
|
481
|
+
type: l
|
|
482
|
+
} = ve[o], c = a === l && !!i.maps[n]?.isLoaded;
|
|
437
483
|
return {
|
|
438
484
|
maps: {
|
|
439
485
|
...i.maps,
|
|
440
486
|
[n]: {
|
|
441
487
|
...i.maps[n],
|
|
442
|
-
isLoaded:
|
|
488
|
+
isLoaded: c,
|
|
443
489
|
basemap: o
|
|
444
490
|
}
|
|
445
491
|
}
|
|
@@ -468,23 +514,23 @@ const ie = /* @__PURE__ */ Mt(Rs), Ds = (r) => {
|
|
|
468
514
|
getBounds: (n, o, i) => {
|
|
469
515
|
const a = s();
|
|
470
516
|
if (!a.maps?.[n]?.isLoaded) return;
|
|
471
|
-
const
|
|
472
|
-
if (!
|
|
473
|
-
const
|
|
517
|
+
const l = a.getViewState(n);
|
|
518
|
+
if (!l) return;
|
|
519
|
+
const h = new gt(l).fitBounds(o, i?.boundsOptions);
|
|
474
520
|
return {
|
|
475
|
-
latitude:
|
|
476
|
-
longitude:
|
|
477
|
-
zoom:
|
|
521
|
+
latitude: h.latitude,
|
|
522
|
+
longitude: h.longitude,
|
|
523
|
+
zoom: h.zoom,
|
|
478
524
|
...i?.viewStateOptions
|
|
479
525
|
};
|
|
480
526
|
},
|
|
481
527
|
addLayers: (n, o) => t((i) => {
|
|
482
528
|
const a = {
|
|
483
529
|
...i.maps
|
|
484
|
-
},
|
|
530
|
+
}, l = a[n]?.layers ?? [], c = /* @__PURE__ */ new Set([...l, ...o]);
|
|
485
531
|
return a[n] = {
|
|
486
532
|
...a[n],
|
|
487
|
-
layers: [...
|
|
533
|
+
layers: [...c]
|
|
488
534
|
}, {
|
|
489
535
|
maps: a
|
|
490
536
|
};
|
|
@@ -492,35 +538,35 @@ const ie = /* @__PURE__ */ Mt(Rs), Ds = (r) => {
|
|
|
492
538
|
removeLayers: (n, o) => t((i) => {
|
|
493
539
|
const a = {
|
|
494
540
|
...i.maps
|
|
495
|
-
},
|
|
541
|
+
}, l = a[n]?.layers ?? [];
|
|
496
542
|
return a[n] = {
|
|
497
543
|
...a[n],
|
|
498
|
-
layers:
|
|
544
|
+
layers: l.filter((c) => !o.includes(c))
|
|
499
545
|
}, {
|
|
500
546
|
maps: a
|
|
501
547
|
};
|
|
502
548
|
}),
|
|
503
549
|
setController: (n, o) => t((i) => {
|
|
504
|
-
const a = i.maps[n]?.controller ?? {},
|
|
550
|
+
const a = i.maps[n]?.controller ?? {}, c = !o || typeof o == "boolean" ? o : de(typeof a == "boolean" ? {} : a, o);
|
|
505
551
|
return {
|
|
506
552
|
maps: {
|
|
507
553
|
...i.maps,
|
|
508
554
|
[n]: {
|
|
509
555
|
...i.maps[n],
|
|
510
|
-
controller:
|
|
556
|
+
controller: c
|
|
511
557
|
}
|
|
512
558
|
}
|
|
513
559
|
};
|
|
514
560
|
})
|
|
515
|
-
});
|
|
516
|
-
},
|
|
561
|
+
}));
|
|
562
|
+
}, Ns = (r) => {
|
|
517
563
|
const e = r.reduce((t, s) => {
|
|
518
564
|
const {
|
|
519
565
|
id: n
|
|
520
566
|
} = s;
|
|
521
567
|
return t[n] = !1, t;
|
|
522
568
|
}, {});
|
|
523
|
-
return (t) => ({
|
|
569
|
+
return ((t) => ({
|
|
524
570
|
areLayersLoaded: e,
|
|
525
571
|
setLayersLoad: (s, n) => t((o) => ({
|
|
526
572
|
areLayersLoaded: {
|
|
@@ -528,8 +574,8 @@ const ie = /* @__PURE__ */ Mt(Rs), Ds = (r) => {
|
|
|
528
574
|
[s]: n
|
|
529
575
|
}
|
|
530
576
|
}))
|
|
531
|
-
});
|
|
532
|
-
},
|
|
577
|
+
}));
|
|
578
|
+
}, Hs = (r) => {
|
|
533
579
|
const e = r.reduce((t, s) => {
|
|
534
580
|
const n = s.initialViewState ?? s.viewState;
|
|
535
581
|
return t.initialViewStates[s.id] = n, t.viewStates[s.id] = n, t.viewports[s.id] = null, t;
|
|
@@ -538,13 +584,13 @@ const ie = /* @__PURE__ */ Mt(Rs), Ds = (r) => {
|
|
|
538
584
|
viewports: {},
|
|
539
585
|
initialViewStates: {}
|
|
540
586
|
});
|
|
541
|
-
return (t, s) => ({
|
|
587
|
+
return ((t, s) => ({
|
|
542
588
|
viewports: e.viewports,
|
|
543
589
|
initialViewStates: e.initialViewStates,
|
|
544
590
|
updateViewPort: (n) => {
|
|
545
591
|
const o = s();
|
|
546
592
|
if (!o.maps[n]?.isLoaded) return;
|
|
547
|
-
const i = new
|
|
593
|
+
const i = new gt(o.viewStates[n]);
|
|
548
594
|
t((a) => ({
|
|
549
595
|
viewports: {
|
|
550
596
|
...a.viewports,
|
|
@@ -595,15 +641,15 @@ const ie = /* @__PURE__ */ Mt(Rs), Ds = (r) => {
|
|
|
595
641
|
}
|
|
596
642
|
}
|
|
597
643
|
}))
|
|
598
|
-
});
|
|
599
|
-
},
|
|
644
|
+
}));
|
|
645
|
+
}, zs = ((r, e) => ({
|
|
600
646
|
fitBounds: (t, s, n) => {
|
|
601
647
|
const o = e(), i = o.getBounds(t, s, n);
|
|
602
648
|
i && (o.setViewState(t, i), o.updateViewPort(t));
|
|
603
649
|
},
|
|
604
650
|
flyTo: (t, s, n = {}) => {
|
|
605
651
|
const o = e(), i = {
|
|
606
|
-
...
|
|
652
|
+
...Vs,
|
|
607
653
|
...n?.viewStateOptions
|
|
608
654
|
}, a = {
|
|
609
655
|
...s,
|
|
@@ -623,69 +669,77 @@ const ie = /* @__PURE__ */ Mt(Rs), Ds = (r) => {
|
|
|
623
669
|
const s = e(), n = s.initialViewStates;
|
|
624
670
|
n[t] && s.flyTo(t, n[t]);
|
|
625
671
|
}
|
|
626
|
-
}),
|
|
672
|
+
})), Gs = (r) => {
|
|
627
673
|
const e = r.reduce((t, s) => (t[s.id] = s.spatialFilter ?? {}, t), {});
|
|
628
|
-
return (t) => ({
|
|
674
|
+
return ((t) => ({
|
|
629
675
|
spatialFilter: e,
|
|
630
676
|
setSpatialFilter: (s, n, o) => {
|
|
631
677
|
t((i) => {
|
|
632
678
|
const a = structuredClone(i.spatialFilter);
|
|
633
|
-
return
|
|
679
|
+
return a[s] = {
|
|
634
680
|
...a[s],
|
|
635
681
|
[n]: o
|
|
636
682
|
}, {
|
|
637
683
|
spatialFilter: a
|
|
638
684
|
};
|
|
639
685
|
});
|
|
686
|
+
},
|
|
687
|
+
removeSpatialFilter: (s, n) => {
|
|
688
|
+
t((o) => {
|
|
689
|
+
const i = structuredClone(o.spatialFilter);
|
|
690
|
+
return i[s] && delete i[s][n], {
|
|
691
|
+
spatialFilter: i
|
|
692
|
+
};
|
|
693
|
+
});
|
|
640
694
|
}
|
|
641
|
-
});
|
|
642
|
-
},
|
|
643
|
-
...
|
|
644
|
-
|
|
645
|
-
...
|
|
646
|
-
...
|
|
647
|
-
...
|
|
648
|
-
})),
|
|
649
|
-
function
|
|
650
|
-
const e =
|
|
695
|
+
}));
|
|
696
|
+
}, Ks = (r) => Ge()((...e) => ({
|
|
697
|
+
...Is(r)(...e),
|
|
698
|
+
...Ns(r)(...e),
|
|
699
|
+
...Hs(r)(...e),
|
|
700
|
+
...Gs(r)(...e),
|
|
701
|
+
...zs(...e)
|
|
702
|
+
})), Tt = He({});
|
|
703
|
+
function Zs(r) {
|
|
704
|
+
const e = F(5), {
|
|
651
705
|
children: t,
|
|
652
706
|
values: s
|
|
653
707
|
} = r;
|
|
654
708
|
let n;
|
|
655
|
-
e[0] !== s ? (n =
|
|
656
|
-
const [o] =
|
|
709
|
+
e[0] !== s ? (n = Ks(s), e[0] = s, e[1] = n) : n = e[1];
|
|
710
|
+
const [o] = ae(n);
|
|
657
711
|
let i;
|
|
658
|
-
return e[2] !== t || e[3] !== o ? (i = /* @__PURE__ */ K(
|
|
712
|
+
return e[2] !== t || e[3] !== o ? (i = /* @__PURE__ */ K(Tt.Provider, { value: o, children: t }), e[2] = t, e[3] = o, e[4] = i) : i = e[4], i;
|
|
659
713
|
}
|
|
660
714
|
function x(r) {
|
|
661
|
-
const e =
|
|
715
|
+
const e = ze(Tt);
|
|
662
716
|
if (!Object.keys(e).length)
|
|
663
717
|
throw new Error("Missing MapProvider in the tree");
|
|
664
|
-
return
|
|
718
|
+
return Ke(e, r);
|
|
665
719
|
}
|
|
666
|
-
function
|
|
667
|
-
const e =
|
|
720
|
+
function yo(r) {
|
|
721
|
+
const e = F(9), {
|
|
668
722
|
children: t,
|
|
669
723
|
mapId: s
|
|
670
724
|
} = r;
|
|
671
725
|
let n;
|
|
672
|
-
e[0] !== s ? (n = (
|
|
726
|
+
e[0] !== s ? (n = (h) => h.maps[s], e[0] = s, e[1] = n) : n = e[1];
|
|
673
727
|
const {
|
|
674
728
|
basemap: o
|
|
675
|
-
} = x(n), i = x(
|
|
729
|
+
} = x(n), i = x(Qs);
|
|
676
730
|
let a;
|
|
677
|
-
e[2] !== s || e[3] !== i ? (a = (
|
|
678
|
-
const
|
|
679
|
-
let
|
|
680
|
-
return e[5] !== o || e[6] !== t || e[7] !==
|
|
731
|
+
e[2] !== s || e[3] !== i ? (a = (h) => i(s, h), e[2] = s, e[3] = i, e[4] = a) : a = e[4];
|
|
732
|
+
const l = a;
|
|
733
|
+
let c;
|
|
734
|
+
return e[5] !== o || e[6] !== t || e[7] !== l ? (c = t({
|
|
681
735
|
basemap: o,
|
|
682
|
-
setBasemap:
|
|
683
|
-
}), e[5] = o, e[6] = t, e[7] =
|
|
736
|
+
setBasemap: l
|
|
737
|
+
}), e[5] = o, e[6] = t, e[7] = l, e[8] = c) : c = e[8], c;
|
|
684
738
|
}
|
|
685
|
-
function
|
|
739
|
+
function Qs(r) {
|
|
686
740
|
return r.setBasemap;
|
|
687
741
|
}
|
|
688
|
-
const
|
|
742
|
+
const te = {
|
|
689
743
|
addFeature: "addFeature",
|
|
690
744
|
addTentativePosition: "addTentativePosition",
|
|
691
745
|
updateTentativeFeature: "updateTentativeFeature",
|
|
@@ -693,20 +747,20 @@ const J = {
|
|
|
693
747
|
finish: "finish",
|
|
694
748
|
addPosition: "addPosition"
|
|
695
749
|
};
|
|
696
|
-
class
|
|
750
|
+
class Ws extends zt {
|
|
697
751
|
constructor() {
|
|
698
|
-
super([new
|
|
752
|
+
super([new Gt(), new Kt()]);
|
|
699
753
|
}
|
|
700
754
|
handleKeyUp(e, t) {
|
|
701
755
|
super.handleKeyUp(e, t), e.key === "Enter" && (this.resetClickSequence(), t.onEdit({
|
|
702
756
|
updatedData: t.data,
|
|
703
|
-
editType:
|
|
757
|
+
editType: te.addFeature,
|
|
704
758
|
editContext: {}
|
|
705
759
|
}));
|
|
706
760
|
}
|
|
707
761
|
}
|
|
708
|
-
const
|
|
709
|
-
id:
|
|
762
|
+
const me = "lassoLayer", Ce = "maskLayer", Ys = {
|
|
763
|
+
id: me,
|
|
710
764
|
billboard: !1,
|
|
711
765
|
editHandlePointRadiusUnits: "pixels",
|
|
712
766
|
editHandlePointRadiusMinPixels: 1,
|
|
@@ -718,7 +772,7 @@ const ce = "lassoLayer", Pe = "maskLayer", Ns = {
|
|
|
718
772
|
lineWidthUnits: "pixels",
|
|
719
773
|
getLineWidth: 2,
|
|
720
774
|
lineWidthMinPixels: 2
|
|
721
|
-
},
|
|
775
|
+
}, tt = {
|
|
722
776
|
editing: {
|
|
723
777
|
border: [3, 111, 226, 255],
|
|
724
778
|
fill: [3, 111, 226, 20.4],
|
|
@@ -728,60 +782,55 @@ const ce = "lassoLayer", Pe = "maskLayer", Ns = {
|
|
|
728
782
|
border: [71, 219, 153, 255],
|
|
729
783
|
fill: [71, 219, 153, 0]
|
|
730
784
|
}
|
|
731
|
-
},
|
|
785
|
+
}, xe = {
|
|
732
786
|
styles: {
|
|
733
787
|
colors: {
|
|
734
|
-
editing:
|
|
735
|
-
finished:
|
|
788
|
+
editing: tt.editing,
|
|
789
|
+
finished: tt.finished
|
|
736
790
|
}
|
|
737
791
|
},
|
|
738
792
|
labels: {
|
|
739
793
|
mask: "Mask"
|
|
740
794
|
}
|
|
741
|
-
},
|
|
795
|
+
}, Js = [new ss({
|
|
742
796
|
filterSize: 1
|
|
743
|
-
})],
|
|
744
|
-
id:
|
|
797
|
+
})], Ee = {
|
|
798
|
+
id: Ce,
|
|
745
799
|
operation: "mask",
|
|
746
800
|
pickable: !1,
|
|
747
801
|
visible: !0,
|
|
748
|
-
extensions:
|
|
802
|
+
extensions: Js,
|
|
749
803
|
filterRange: [1, 1]
|
|
750
804
|
}, Ue = {
|
|
751
805
|
polygon: {
|
|
752
806
|
value: "polygon",
|
|
753
|
-
mode:
|
|
807
|
+
mode: Wt
|
|
754
808
|
},
|
|
755
809
|
rectangle: {
|
|
756
810
|
value: "rectangle",
|
|
757
|
-
mode:
|
|
811
|
+
mode: Qt
|
|
758
812
|
},
|
|
759
813
|
circle: {
|
|
760
814
|
value: "circle",
|
|
761
|
-
mode:
|
|
815
|
+
mode: bt
|
|
762
816
|
},
|
|
763
817
|
lasso: {
|
|
764
818
|
value: "lasso",
|
|
765
|
-
mode:
|
|
819
|
+
mode: Zt
|
|
766
820
|
},
|
|
767
821
|
edit: {
|
|
768
822
|
value: "edit",
|
|
769
|
-
mode:
|
|
823
|
+
mode: Ws
|
|
770
824
|
}
|
|
771
|
-
},
|
|
825
|
+
}, ge = ht((r) => ({
|
|
772
826
|
layers: {},
|
|
773
827
|
setLayer: (e, t) => r((s) => {
|
|
774
828
|
const n = {
|
|
775
829
|
...s.layers
|
|
776
|
-
}
|
|
777
|
-
if (!t)
|
|
778
|
-
return delete n[e], {
|
|
779
|
-
layers: n
|
|
780
|
-
};
|
|
781
|
-
const o = n[e] ?? {
|
|
830
|
+
}, o = n[e] ?? {
|
|
782
831
|
type: null,
|
|
783
832
|
props: {}
|
|
784
|
-
}, i = [...o.props.extensions ?? [], ...t.props?.extensions ?? []].reduce((
|
|
833
|
+
}, i = [...o.props.extensions ?? [], ...t.props?.extensions ?? []].reduce((l, c) => (l.some((h) => h.equals(c)) || l.push(c), l), []), a = o.legend || t.legend ? {
|
|
785
834
|
...o.legend,
|
|
786
835
|
...t.legend
|
|
787
836
|
} : void 0;
|
|
@@ -811,8 +860,71 @@ const ce = "lassoLayer", Pe = "maskLayer", Ns = {
|
|
|
811
860
|
layers: s
|
|
812
861
|
};
|
|
813
862
|
})
|
|
814
|
-
})),
|
|
815
|
-
|
|
863
|
+
})), st = ["click", "keyup", "panstart", "panmove", "panend", "pointermove"], Lt = {
|
|
864
|
+
multipan: [Ye, {
|
|
865
|
+
threshold: 10,
|
|
866
|
+
direction: rs.Vertical,
|
|
867
|
+
pointers: 2
|
|
868
|
+
}],
|
|
869
|
+
pinch: [is, {}, null, ["multipan"]],
|
|
870
|
+
click: [Je, {
|
|
871
|
+
event: "click"
|
|
872
|
+
}, null, ["dblclick"]],
|
|
873
|
+
dblclick: [Je, {
|
|
874
|
+
event: "dblclick",
|
|
875
|
+
taps: 2
|
|
876
|
+
}],
|
|
877
|
+
pan: [Ye, {
|
|
878
|
+
threshold: 1
|
|
879
|
+
}, ["pinch"], ["multipan"]]
|
|
880
|
+
};
|
|
881
|
+
function Pt(r) {
|
|
882
|
+
const e = F(12), {
|
|
883
|
+
mapId: t,
|
|
884
|
+
layerId: s
|
|
885
|
+
} = r;
|
|
886
|
+
let n;
|
|
887
|
+
e[0] !== t ? (n = (b) => b.maps[t]?.basemap, e[0] = t, e[1] = n) : n = e[1];
|
|
888
|
+
const o = x(n);
|
|
889
|
+
let i;
|
|
890
|
+
e[2] !== t ? (i = (b) => b.maps[t]?.isLoaded, e[2] = t, e[3] = i) : i = e[3];
|
|
891
|
+
const a = x(i), l = x(tn), c = ge(en), {
|
|
892
|
+
type: h
|
|
893
|
+
} = ve[o], y = h === ie.googleMaps;
|
|
894
|
+
let g, p;
|
|
895
|
+
e[4] !== l || e[5] !== y || e[6] !== a || e[7] !== s || e[8] !== t || e[9] !== c ? (g = () => {
|
|
896
|
+
let b = null;
|
|
897
|
+
if (y && a) {
|
|
898
|
+
const m = l(t);
|
|
899
|
+
b = new os(m.getDiv(), {
|
|
900
|
+
recognizers: Object.keys(Lt).map(Xs)
|
|
901
|
+
});
|
|
902
|
+
}
|
|
903
|
+
c(s, {
|
|
904
|
+
props: {
|
|
905
|
+
eventManager: b
|
|
906
|
+
}
|
|
907
|
+
});
|
|
908
|
+
}, p = [l, y, a, s, t, c], e[4] = l, e[5] = y, e[6] = a, e[7] = s, e[8] = t, e[9] = c, e[10] = g, e[11] = p) : (g = e[10], p = e[11]), Q(g, p);
|
|
909
|
+
}
|
|
910
|
+
function Xs(r) {
|
|
911
|
+
const [e, t, s, n] = Lt[r], o = {
|
|
912
|
+
...t,
|
|
913
|
+
event: r
|
|
914
|
+
};
|
|
915
|
+
return {
|
|
916
|
+
recognizer: new e(o),
|
|
917
|
+
recognizeWith: s,
|
|
918
|
+
requestFailure: n
|
|
919
|
+
};
|
|
920
|
+
}
|
|
921
|
+
function en(r) {
|
|
922
|
+
return r.setLayer;
|
|
923
|
+
}
|
|
924
|
+
function tn(r) {
|
|
925
|
+
return r.getOverlayInstance;
|
|
926
|
+
}
|
|
927
|
+
class kt extends Yt {
|
|
816
928
|
updateState({
|
|
817
929
|
props: e,
|
|
818
930
|
oldProps: t,
|
|
@@ -830,7 +942,7 @@ class Tt extends Qt {
|
|
|
830
942
|
const e = this._getEventManager(), {
|
|
831
943
|
eventHandler: t
|
|
832
944
|
} = this.state._editableLayerState;
|
|
833
|
-
for (const s of
|
|
945
|
+
for (const s of st)
|
|
834
946
|
e.on(s, t, {
|
|
835
947
|
// give nebula a higher priority so that it can stop propagation to deck.gl's map panning handlers
|
|
836
948
|
priority: 100
|
|
@@ -840,7 +952,7 @@ class Tt extends Qt {
|
|
|
840
952
|
const t = e ?? this._getEventManager(), {
|
|
841
953
|
eventHandler: s
|
|
842
954
|
} = this.state._editableLayerState;
|
|
843
|
-
for (const n of
|
|
955
|
+
for (const n of st)
|
|
844
956
|
t.off(n, s);
|
|
845
957
|
}
|
|
846
958
|
_getEventManager() {
|
|
@@ -848,27 +960,27 @@ class Tt extends Qt {
|
|
|
848
960
|
this.context.deck.eventManager;
|
|
849
961
|
}
|
|
850
962
|
}
|
|
851
|
-
function
|
|
963
|
+
function sn({
|
|
852
964
|
mode: r,
|
|
853
965
|
...e
|
|
854
966
|
}) {
|
|
855
|
-
const t =
|
|
967
|
+
const t = nn(e);
|
|
856
968
|
return {
|
|
857
|
-
type:
|
|
969
|
+
type: kt,
|
|
858
970
|
props: {
|
|
859
971
|
...t,
|
|
860
972
|
mode: r
|
|
861
973
|
}
|
|
862
974
|
};
|
|
863
975
|
}
|
|
864
|
-
function
|
|
976
|
+
function nn({
|
|
865
977
|
layerProps: r,
|
|
866
978
|
onEdit: e,
|
|
867
979
|
getLineColor: t,
|
|
868
980
|
getFillColor: s,
|
|
869
981
|
pointColor: n
|
|
870
982
|
}) {
|
|
871
|
-
const o =
|
|
983
|
+
const o = de(r, {
|
|
872
984
|
modeConfig: {
|
|
873
985
|
// // We force distance due to conversion is addressed at feature getText level
|
|
874
986
|
// formatTooltip: (_distance: number) => {
|
|
@@ -877,33 +989,33 @@ function Ks({
|
|
|
877
989
|
preventOverlappingLines: !0
|
|
878
990
|
},
|
|
879
991
|
onEdit: e
|
|
880
|
-
}), i =
|
|
992
|
+
}), i = de(Ys, {
|
|
881
993
|
getTentativeLineColor: t,
|
|
882
994
|
getTentativeFillColor: s,
|
|
883
995
|
getLineColor: t,
|
|
884
996
|
getFillColor: s,
|
|
885
997
|
getEditHandlePointColor: n.fill,
|
|
886
998
|
getEditHandlePointOutlineColor: n.outline,
|
|
887
|
-
dataComparator: (
|
|
999
|
+
dataComparator: (l, c) => l.features[0] === c.features[0]
|
|
888
1000
|
});
|
|
889
|
-
return
|
|
1001
|
+
return de(i, o);
|
|
890
1002
|
}
|
|
891
|
-
const
|
|
1003
|
+
const rn = (r) => Ge()((e) => ({
|
|
892
1004
|
data: r.reduce((s, n) => {
|
|
893
1005
|
const {
|
|
894
1006
|
enabled: o = !1,
|
|
895
1007
|
mapId: i,
|
|
896
1008
|
modeInstance: a = new Ue.polygon.mode(),
|
|
897
|
-
modes:
|
|
898
|
-
modeSelected:
|
|
899
|
-
values:
|
|
1009
|
+
modes: l = Ue,
|
|
1010
|
+
modeSelected: c = Ue.polygon.value,
|
|
1011
|
+
values: h = {}
|
|
900
1012
|
} = n;
|
|
901
1013
|
return s[i] = {
|
|
902
1014
|
enabled: o,
|
|
903
1015
|
modeInstance: a,
|
|
904
|
-
modes:
|
|
905
|
-
modeSelected:
|
|
906
|
-
values:
|
|
1016
|
+
modes: l,
|
|
1017
|
+
modeSelected: c,
|
|
1018
|
+
values: h
|
|
907
1019
|
}, s;
|
|
908
1020
|
}, {}),
|
|
909
1021
|
setEnabled: (s, n) => {
|
|
@@ -922,11 +1034,11 @@ const Zs = (r) => Ke()((e) => ({
|
|
|
922
1034
|
e((i) => {
|
|
923
1035
|
const a = {
|
|
924
1036
|
...i.data[s].values
|
|
925
|
-
},
|
|
1037
|
+
}, l = a[n] ?? {
|
|
926
1038
|
type: "mask"
|
|
927
1039
|
};
|
|
928
1040
|
return a[n] = {
|
|
929
|
-
...
|
|
1041
|
+
...l,
|
|
930
1042
|
...o,
|
|
931
1043
|
id: n
|
|
932
1044
|
}, o || delete a[n], {
|
|
@@ -944,15 +1056,15 @@ const Zs = (r) => Ke()((e) => ({
|
|
|
944
1056
|
e((i) => {
|
|
945
1057
|
const a = {
|
|
946
1058
|
...i.data[s].values
|
|
947
|
-
},
|
|
948
|
-
return
|
|
1059
|
+
}, l = a[n] ?? {};
|
|
1060
|
+
return l.properties.visible = o, {
|
|
949
1061
|
data: {
|
|
950
1062
|
...i.data,
|
|
951
1063
|
[s]: {
|
|
952
1064
|
...i.data[s],
|
|
953
1065
|
values: {
|
|
954
1066
|
...a,
|
|
955
|
-
[n]:
|
|
1067
|
+
[n]: l
|
|
956
1068
|
}
|
|
957
1069
|
}
|
|
958
1070
|
}
|
|
@@ -981,40 +1093,40 @@ const Zs = (r) => Ke()((e) => ({
|
|
|
981
1093
|
}
|
|
982
1094
|
}));
|
|
983
1095
|
}
|
|
984
|
-
})),
|
|
985
|
-
function
|
|
986
|
-
const e =
|
|
1096
|
+
})), Ct = He({});
|
|
1097
|
+
function on(r) {
|
|
1098
|
+
const e = F(5), {
|
|
987
1099
|
children: t,
|
|
988
1100
|
values: s
|
|
989
1101
|
} = r;
|
|
990
1102
|
let n;
|
|
991
|
-
e[0] !== s ? (n = () =>
|
|
992
|
-
const [o] =
|
|
1103
|
+
e[0] !== s ? (n = () => rn(s), e[0] = s, e[1] = n) : n = e[1];
|
|
1104
|
+
const [o] = ae(n);
|
|
993
1105
|
let i;
|
|
994
|
-
return e[2] !== t || e[3] !== o ? (i = /* @__PURE__ */ K(
|
|
1106
|
+
return e[2] !== t || e[3] !== o ? (i = /* @__PURE__ */ K(Ct.Provider, { value: o, children: t }), e[2] = t, e[3] = o, e[4] = i) : i = e[4], i;
|
|
995
1107
|
}
|
|
996
|
-
function
|
|
997
|
-
const e =
|
|
1108
|
+
function Z(r) {
|
|
1109
|
+
const e = ze(Ct);
|
|
998
1110
|
if (!Object.keys(e).length)
|
|
999
1111
|
throw new Error("Missing LassoToolsProvider in the tree");
|
|
1000
|
-
return
|
|
1112
|
+
return Ke(e, r);
|
|
1001
1113
|
}
|
|
1002
|
-
function
|
|
1114
|
+
function an({
|
|
1003
1115
|
mapId: r,
|
|
1004
1116
|
children: e
|
|
1005
1117
|
}) {
|
|
1006
|
-
const t =
|
|
1118
|
+
const t = Z((p) => p.data[r]?.enabled), s = Z((p) => p.setEnabled), n = Z((p) => p.data[r]?.values), o = Z((p) => p.setValue), i = Z((p) => p.setVisibility), a = Z((p) => p.data[r]?.modeSelected), l = Z((p) => p.setModeSelected), c = Z((p) => p.data[r]?.modes), h = Z((p) => p.setModeInstance);
|
|
1007
1119
|
Q(() => {
|
|
1008
|
-
const p =
|
|
1120
|
+
const p = c[a];
|
|
1009
1121
|
if (p && t) {
|
|
1010
|
-
const
|
|
1011
|
-
|
|
1122
|
+
const b = p.mode;
|
|
1123
|
+
h(r, new b());
|
|
1012
1124
|
}
|
|
1013
|
-
}, [t, r, a,
|
|
1125
|
+
}, [t, r, a, c, h]);
|
|
1014
1126
|
const [
|
|
1015
|
-
|
|
1127
|
+
y
|
|
1016
1128
|
// , draw
|
|
1017
|
-
] =
|
|
1129
|
+
] = ye(() => {
|
|
1018
1130
|
const p = (w) => ({
|
|
1019
1131
|
id: w.id,
|
|
1020
1132
|
visible: w.properties.visible,
|
|
@@ -1024,57 +1136,57 @@ function Qs({
|
|
|
1024
1136
|
Object.values(n).filter((w) => w.type === "mask").map(p)
|
|
1025
1137
|
// , draw
|
|
1026
1138
|
];
|
|
1027
|
-
}, [n]), g =
|
|
1028
|
-
s(r, !!p),
|
|
1029
|
-
}, [r, s,
|
|
1139
|
+
}, [n]), g = ee((p) => {
|
|
1140
|
+
s(r, !!p), l(r, p);
|
|
1141
|
+
}, [r, s, l]);
|
|
1030
1142
|
return e({
|
|
1031
1143
|
mapId: r,
|
|
1032
1144
|
enabled: t,
|
|
1033
|
-
modes:
|
|
1145
|
+
modes: c,
|
|
1034
1146
|
modeSelected: a,
|
|
1035
1147
|
values: {
|
|
1036
|
-
mask:
|
|
1148
|
+
mask: y
|
|
1037
1149
|
// draw,
|
|
1038
1150
|
},
|
|
1039
|
-
setValue:
|
|
1040
|
-
setEnabled:
|
|
1041
|
-
setVisibility:
|
|
1151
|
+
setValue: ee((p, b) => o(r, p, b), [r, o]),
|
|
1152
|
+
setEnabled: ee((p) => s(r, p), [r, s]),
|
|
1153
|
+
setVisibility: ee((p, b) => i(r, p, b), [r, i]),
|
|
1042
1154
|
setModeSelected: g
|
|
1043
1155
|
});
|
|
1044
1156
|
}
|
|
1045
|
-
function
|
|
1157
|
+
function Ot({
|
|
1046
1158
|
values: r
|
|
1047
1159
|
}) {
|
|
1048
1160
|
return Object.values(r ?? {}).filter((e) => e.type === "mask");
|
|
1049
1161
|
}
|
|
1050
|
-
const
|
|
1051
|
-
length:
|
|
1052
|
-
}),
|
|
1053
|
-
area:
|
|
1162
|
+
const ln = _t({
|
|
1163
|
+
length: ds
|
|
1164
|
+
}), cn = _t({
|
|
1165
|
+
area: fs
|
|
1054
1166
|
});
|
|
1055
|
-
function
|
|
1056
|
-
if (!(r in
|
|
1057
|
-
const e = Object.keys(
|
|
1167
|
+
function un(r) {
|
|
1168
|
+
if (!(r in Pe)) {
|
|
1169
|
+
const e = Object.keys(Pe);
|
|
1058
1170
|
throw new Error(`Unit "${r}" cannot be converted to area. Valid units are: ${e.join(", ")}`);
|
|
1059
1171
|
}
|
|
1060
1172
|
}
|
|
1061
|
-
function
|
|
1173
|
+
function nt(r, e, t) {
|
|
1062
1174
|
switch (t) {
|
|
1063
1175
|
case "length": {
|
|
1064
|
-
const s =
|
|
1065
|
-
return
|
|
1176
|
+
const s = it[N.meter], n = it[e];
|
|
1177
|
+
return ln(r).from(s).to(n);
|
|
1066
1178
|
}
|
|
1067
1179
|
case "area": {
|
|
1068
|
-
|
|
1069
|
-
const s =
|
|
1070
|
-
return
|
|
1180
|
+
un(e);
|
|
1181
|
+
const s = at[Pe[N.meter]], n = at[Pe[e]];
|
|
1182
|
+
return cn(r).from(s).to(n);
|
|
1071
1183
|
}
|
|
1072
1184
|
default:
|
|
1073
1185
|
throw new Error(`Invalid dimension: ${t}, valid dimensions are: length, area`);
|
|
1074
1186
|
}
|
|
1075
1187
|
}
|
|
1076
|
-
const
|
|
1077
|
-
function
|
|
1188
|
+
const rt = 1e4;
|
|
1189
|
+
function Oe({
|
|
1078
1190
|
meters: r,
|
|
1079
1191
|
unit: e,
|
|
1080
1192
|
locale: t,
|
|
@@ -1083,21 +1195,21 @@ function ke({
|
|
|
1083
1195
|
customFormatter: n,
|
|
1084
1196
|
...o
|
|
1085
1197
|
} = {
|
|
1086
|
-
autoSplitNumber:
|
|
1198
|
+
autoSplitNumber: rt
|
|
1087
1199
|
},
|
|
1088
1200
|
dimension: i = "length"
|
|
1089
1201
|
}) {
|
|
1090
|
-
const a = e === Ie["m-km"],
|
|
1091
|
-
let
|
|
1092
|
-
if (
|
|
1093
|
-
const p = r < (s ??
|
|
1094
|
-
let
|
|
1095
|
-
|
|
1202
|
+
const a = e === Ie["m-km"], l = e === Ie["ft-mi"], c = a || l;
|
|
1203
|
+
let h, y;
|
|
1204
|
+
if (c) {
|
|
1205
|
+
const p = r < (s ?? rt);
|
|
1206
|
+
let b = p ? N.meter : N.kilometer;
|
|
1207
|
+
h = p ? be.meter : be.kilometer, l && (h = p ? be.feet : be.mile, b = p ? N.feet : N.mile), y = nt(r, b, i);
|
|
1096
1208
|
} else
|
|
1097
|
-
|
|
1098
|
-
let g = `${
|
|
1209
|
+
h = be[e], y = nt(r, e, i);
|
|
1210
|
+
let g = `${wt(y, t, {
|
|
1099
1211
|
style: "unit",
|
|
1100
|
-
unit:
|
|
1212
|
+
unit: h,
|
|
1101
1213
|
unitDisplay: "short",
|
|
1102
1214
|
notation: "standard",
|
|
1103
1215
|
minimumFractionDigits: 2,
|
|
@@ -1106,7 +1218,7 @@ function ke({
|
|
|
1106
1218
|
})}`;
|
|
1107
1219
|
return i === "area" && (g += "2"), n ? n(g) : g;
|
|
1108
1220
|
}
|
|
1109
|
-
function
|
|
1221
|
+
function ho(r, {
|
|
1110
1222
|
hasDoubleClickZoom: e
|
|
1111
1223
|
}) {
|
|
1112
1224
|
return typeof r == "boolean" ? {
|
|
@@ -1116,7 +1228,7 @@ function io(r, {
|
|
|
1116
1228
|
doubleClickZoom: e
|
|
1117
1229
|
};
|
|
1118
1230
|
}
|
|
1119
|
-
function
|
|
1231
|
+
function Ft(r, e, t) {
|
|
1120
1232
|
if (r > 0) {
|
|
1121
1233
|
const {
|
|
1122
1234
|
formatTooltip: s,
|
|
@@ -1138,7 +1250,7 @@ function kt(r, e, t) {
|
|
|
1138
1250
|
}
|
|
1139
1251
|
return [];
|
|
1140
1252
|
}
|
|
1141
|
-
class
|
|
1253
|
+
class dn extends Jt {
|
|
1142
1254
|
_isMeasuringSessionFinished = !1;
|
|
1143
1255
|
area = 0;
|
|
1144
1256
|
tooltips = [];
|
|
@@ -1150,13 +1262,13 @@ class Xs extends Wt {
|
|
|
1150
1262
|
this._isMeasuringSessionFinished && (this._isMeasuringSessionFinished = !1, this.resetClickSequence(), this.area = 0);
|
|
1151
1263
|
const {
|
|
1152
1264
|
picks: s
|
|
1153
|
-
} = e, n =
|
|
1265
|
+
} = e, n = Xt(s), o = this.getClickSequence();
|
|
1154
1266
|
let i = !1;
|
|
1155
1267
|
!n && !this.allowOverlapping(t) && (this.addClickSequence(e), i = !0);
|
|
1156
|
-
const a = this.getClickSequence(),
|
|
1157
|
-
this.area =
|
|
1268
|
+
const a = this.getClickSequence(), l = [...a, a[0]];
|
|
1269
|
+
this.area = Xe({
|
|
1158
1270
|
type: "Polygon",
|
|
1159
|
-
coordinates: [
|
|
1271
|
+
coordinates: [l]
|
|
1160
1272
|
}), this.isFinalizedEdition(o, n) ? this.finalizeEdition(t) : i && t.onEdit({
|
|
1161
1273
|
// data is the same
|
|
1162
1274
|
updatedData: t.data,
|
|
@@ -1170,8 +1282,8 @@ class Xs extends Wt {
|
|
|
1170
1282
|
e.key === "Enter" ? this.getClickSequence().length > 2 ? this.finalizeEdition(t) : this.resetEdition(t) : e.key === "Escape" && this.resetEdition(t);
|
|
1171
1283
|
}
|
|
1172
1284
|
updateTooltip(e, t) {
|
|
1173
|
-
const s =
|
|
1174
|
-
this.area =
|
|
1285
|
+
const s = ls(e);
|
|
1286
|
+
this.area = Xe(e), this.tooltips = Ft(this.area, s.geometry.coordinates, t.modeConfig);
|
|
1175
1287
|
}
|
|
1176
1288
|
handlePointerMove(e, t) {
|
|
1177
1289
|
if (this._isMeasuringSessionFinished)
|
|
@@ -1209,7 +1321,7 @@ class Xs extends Wt {
|
|
|
1209
1321
|
type: "LineString",
|
|
1210
1322
|
coordinates: [...s.slice(0, s.length - 1)]
|
|
1211
1323
|
};
|
|
1212
|
-
|
|
1324
|
+
cs(n, o).features.length > 0 && (t = !0);
|
|
1213
1325
|
}
|
|
1214
1326
|
return t;
|
|
1215
1327
|
}
|
|
@@ -1225,7 +1337,7 @@ class Xs extends Wt {
|
|
|
1225
1337
|
const n = this.getAddFeatureOrBooleanPolygonAction(s, e);
|
|
1226
1338
|
this._isMeasuringSessionFinished = !0, n && (this.resultPolygon = n.updatedData, e.onEdit({
|
|
1227
1339
|
...n,
|
|
1228
|
-
editType:
|
|
1340
|
+
editType: te.addPosition,
|
|
1229
1341
|
editContext: {
|
|
1230
1342
|
...n.editContext,
|
|
1231
1343
|
distance: this.area,
|
|
@@ -1248,7 +1360,7 @@ class Xs extends Wt {
|
|
|
1248
1360
|
unit: s,
|
|
1249
1361
|
options: n
|
|
1250
1362
|
}) {
|
|
1251
|
-
return
|
|
1363
|
+
return Oe({
|
|
1252
1364
|
meters: e,
|
|
1253
1365
|
locale: t,
|
|
1254
1366
|
unit: s,
|
|
@@ -1257,7 +1369,7 @@ class Xs extends Wt {
|
|
|
1257
1369
|
});
|
|
1258
1370
|
}
|
|
1259
1371
|
}
|
|
1260
|
-
class
|
|
1372
|
+
class fn extends bt {
|
|
1261
1373
|
_isMeasuringSessionFinished = !1;
|
|
1262
1374
|
_currentArea = 0;
|
|
1263
1375
|
resultPolygon = {
|
|
@@ -1269,7 +1381,7 @@ class en extends gt {
|
|
|
1269
1381
|
this._isMeasuringSessionFinished && (this._isMeasuringSessionFinished = !1, this.resetClickSequence(), this._currentArea = 0), super.handleClick(e, t);
|
|
1270
1382
|
}
|
|
1271
1383
|
handlePointerMove(e, t) {
|
|
1272
|
-
this._isMeasuringSessionFinished || (super.handlePointerMove(e, t), this.tooltips =
|
|
1384
|
+
this._isMeasuringSessionFinished || (super.handlePointerMove(e, t), this.tooltips = Ft(this.areaCircle, this.position, t.modeConfig));
|
|
1273
1385
|
}
|
|
1274
1386
|
checkAndFinishPolygon(e) {
|
|
1275
1387
|
const t = this.getClickSequence(), s = this.getTentativeGuide(e);
|
|
@@ -1293,7 +1405,7 @@ class en extends gt {
|
|
|
1293
1405
|
const s = this.getAddFeatureOrBooleanPolygonAction(t, e);
|
|
1294
1406
|
this._isMeasuringSessionFinished = !0, e.onUpdateCursor("cell"), s && (this.resultPolygon = s.updatedData, e.onEdit({
|
|
1295
1407
|
...s,
|
|
1296
|
-
editType:
|
|
1408
|
+
editType: te.addPosition,
|
|
1297
1409
|
editContext: {
|
|
1298
1410
|
...s.editContext,
|
|
1299
1411
|
distance: this._currentArea,
|
|
@@ -1322,7 +1434,7 @@ class en extends gt {
|
|
|
1322
1434
|
unit: s,
|
|
1323
1435
|
options: n
|
|
1324
1436
|
}) {
|
|
1325
|
-
return
|
|
1437
|
+
return Oe({
|
|
1326
1438
|
meters: e,
|
|
1327
1439
|
locale: t,
|
|
1328
1440
|
unit: s,
|
|
@@ -1331,12 +1443,12 @@ class en extends gt {
|
|
|
1331
1443
|
});
|
|
1332
1444
|
}
|
|
1333
1445
|
}
|
|
1334
|
-
class
|
|
1446
|
+
class At extends es {
|
|
1335
1447
|
handleClick(e, t) {
|
|
1336
1448
|
super.handleClick(e, t), t.onEdit({
|
|
1337
1449
|
// data is the same
|
|
1338
1450
|
updatedData: t.data,
|
|
1339
|
-
editType:
|
|
1451
|
+
editType: te.addPosition,
|
|
1340
1452
|
editContext: {
|
|
1341
1453
|
distance: this._currentDistance,
|
|
1342
1454
|
finished: this._isMeasuringSessionFinished,
|
|
@@ -1350,7 +1462,7 @@ class Ct extends Jt {
|
|
|
1350
1462
|
const {
|
|
1351
1463
|
key: s
|
|
1352
1464
|
} = e, n = this.getClickSequence().length;
|
|
1353
|
-
let o =
|
|
1465
|
+
let o = te.finish;
|
|
1354
1466
|
switch (s) {
|
|
1355
1467
|
case "Escape":
|
|
1356
1468
|
t.onEdit({
|
|
@@ -1358,12 +1470,12 @@ class Ct extends Jt {
|
|
|
1358
1470
|
type: "FeatureCollection",
|
|
1359
1471
|
features: []
|
|
1360
1472
|
},
|
|
1361
|
-
editType:
|
|
1473
|
+
editType: te.cancel,
|
|
1362
1474
|
editContext: {}
|
|
1363
1475
|
});
|
|
1364
1476
|
break;
|
|
1365
1477
|
case "Enter":
|
|
1366
|
-
this._isMeasuringSessionFinished = !0, n === 1 && (this.resetClickSequence(), o =
|
|
1478
|
+
this._isMeasuringSessionFinished = !0, n === 1 && (this.resetClickSequence(), o = te.cancel), t.onUpdateCursor("cell"), t.onEdit({
|
|
1367
1479
|
updatedData: t.data,
|
|
1368
1480
|
editType: o,
|
|
1369
1481
|
editContext: {
|
|
@@ -1382,7 +1494,7 @@ class Ct extends Jt {
|
|
|
1382
1494
|
unit: s,
|
|
1383
1495
|
options: n
|
|
1384
1496
|
}) {
|
|
1385
|
-
return
|
|
1497
|
+
return Oe({
|
|
1386
1498
|
meters: e,
|
|
1387
1499
|
locale: t,
|
|
1388
1500
|
unit: s,
|
|
@@ -1390,8 +1502,8 @@ class Ct extends Jt {
|
|
|
1390
1502
|
});
|
|
1391
1503
|
}
|
|
1392
1504
|
}
|
|
1393
|
-
const
|
|
1394
|
-
id:
|
|
1505
|
+
const ce = "mapMeasureLayer", pn = {
|
|
1506
|
+
id: ce,
|
|
1395
1507
|
pickable: !1,
|
|
1396
1508
|
billboard: !1,
|
|
1397
1509
|
editHandlePointRadiusUnits: "pixels",
|
|
@@ -1419,7 +1531,7 @@ const re = "mapMeasureLayer", tn = {
|
|
|
1419
1531
|
editing: [23, 102, 214, 255],
|
|
1420
1532
|
finished: [71, 219, 153, 255],
|
|
1421
1533
|
point: [255, 255, 255, 255]
|
|
1422
|
-
},
|
|
1534
|
+
}, ot = {
|
|
1423
1535
|
styles: {
|
|
1424
1536
|
colors: {
|
|
1425
1537
|
editing: Ve.editing,
|
|
@@ -1427,7 +1539,7 @@ const re = "mapMeasureLayer", tn = {
|
|
|
1427
1539
|
point: Ve.point
|
|
1428
1540
|
}
|
|
1429
1541
|
}
|
|
1430
|
-
},
|
|
1542
|
+
}, N = {
|
|
1431
1543
|
kilometer: "kilometer",
|
|
1432
1544
|
meter: "meter",
|
|
1433
1545
|
centimeter: "centimeter",
|
|
@@ -1435,7 +1547,7 @@ const re = "mapMeasureLayer", tn = {
|
|
|
1435
1547
|
mile: "mile",
|
|
1436
1548
|
yard: "yard",
|
|
1437
1549
|
feet: "feet"
|
|
1438
|
-
},
|
|
1550
|
+
}, ue = {
|
|
1439
1551
|
squareMeter: "squareMeter",
|
|
1440
1552
|
squareKilometer: "squareKilometer",
|
|
1441
1553
|
squareMile: "squareMile",
|
|
@@ -1443,38 +1555,38 @@ const re = "mapMeasureLayer", tn = {
|
|
|
1443
1555
|
}, Ie = {
|
|
1444
1556
|
"m-km": "m-km",
|
|
1445
1557
|
"ft-mi": "ft-mi",
|
|
1446
|
-
...
|
|
1447
|
-
},
|
|
1558
|
+
...N
|
|
1559
|
+
}, mn = {
|
|
1448
1560
|
meters: "meters",
|
|
1449
1561
|
kilometer: "kilometers",
|
|
1450
1562
|
mile: "miles"
|
|
1451
|
-
}, ot = {
|
|
1452
|
-
[I.kilometer]: "km",
|
|
1453
|
-
[I.meter]: "m",
|
|
1454
|
-
[I.centimeter]: "cm",
|
|
1455
|
-
[I.milimeter]: "mm",
|
|
1456
|
-
[I.mile]: "mi",
|
|
1457
|
-
[I.yard]: "yd",
|
|
1458
|
-
[I.feet]: "ft"
|
|
1459
1563
|
}, it = {
|
|
1460
|
-
[
|
|
1461
|
-
[
|
|
1462
|
-
[
|
|
1463
|
-
[
|
|
1464
|
-
|
|
1465
|
-
[
|
|
1466
|
-
[
|
|
1467
|
-
|
|
1468
|
-
[
|
|
1469
|
-
|
|
1470
|
-
[
|
|
1471
|
-
[
|
|
1472
|
-
|
|
1473
|
-
[
|
|
1474
|
-
[
|
|
1475
|
-
[
|
|
1476
|
-
[
|
|
1477
|
-
},
|
|
1564
|
+
[N.kilometer]: "km",
|
|
1565
|
+
[N.meter]: "m",
|
|
1566
|
+
[N.centimeter]: "cm",
|
|
1567
|
+
[N.milimeter]: "mm",
|
|
1568
|
+
[N.mile]: "mi",
|
|
1569
|
+
[N.yard]: "yd",
|
|
1570
|
+
[N.feet]: "ft"
|
|
1571
|
+
}, at = {
|
|
1572
|
+
[ue.squareMeter]: "m2",
|
|
1573
|
+
[ue.squareKilometer]: "km2",
|
|
1574
|
+
[ue.squareMile]: "mi2",
|
|
1575
|
+
[ue.squareFeet]: "ft2"
|
|
1576
|
+
}, Pe = {
|
|
1577
|
+
[N.meter]: ue.squareMeter,
|
|
1578
|
+
[N.kilometer]: ue.squareKilometer,
|
|
1579
|
+
[N.mile]: ue.squareMile,
|
|
1580
|
+
[N.feet]: ue.squareFeet
|
|
1581
|
+
}, be = {
|
|
1582
|
+
[N.kilometer]: "kilometer",
|
|
1583
|
+
[N.meter]: "meter",
|
|
1584
|
+
[N.centimeter]: "centimeter",
|
|
1585
|
+
[N.milimeter]: "millimeter",
|
|
1586
|
+
[N.mile]: "mile",
|
|
1587
|
+
[N.yard]: "yard",
|
|
1588
|
+
[N.feet]: "foot"
|
|
1589
|
+
}, X = {
|
|
1478
1590
|
"m-km": {
|
|
1479
1591
|
value: "m-km",
|
|
1480
1592
|
system: "metric"
|
|
@@ -1511,194 +1623,160 @@ const re = "mapMeasureLayer", tn = {
|
|
|
1511
1623
|
value: "feet",
|
|
1512
1624
|
system: "imperial"
|
|
1513
1625
|
}
|
|
1514
|
-
},
|
|
1626
|
+
}, lt = [X["m-km"], X.kilometer, X.meter, X["ft-mi"], X.mile, X.feet], yn = [X["m-km"], X.kilometer, X.meter, X["ft-mi"], X.mile, X.feet], hn = {
|
|
1515
1627
|
distance: {
|
|
1516
1628
|
value: "distance",
|
|
1517
|
-
mode:
|
|
1629
|
+
mode: At
|
|
1518
1630
|
},
|
|
1519
1631
|
buffer: {
|
|
1520
1632
|
value: "buffer",
|
|
1521
|
-
mode:
|
|
1633
|
+
mode: fn
|
|
1522
1634
|
},
|
|
1523
1635
|
area: {
|
|
1524
1636
|
value: "area",
|
|
1525
|
-
mode:
|
|
1637
|
+
mode: dn
|
|
1526
1638
|
}
|
|
1527
|
-
},
|
|
1528
|
-
distance:
|
|
1529
|
-
buffer:
|
|
1530
|
-
area:
|
|
1531
|
-
};
|
|
1532
|
-
function
|
|
1533
|
-
const e = O(12), {
|
|
1534
|
-
mapId: t,
|
|
1535
|
-
layerId: s
|
|
1536
|
-
} = r;
|
|
1537
|
-
let n;
|
|
1538
|
-
e[0] !== t ? (n = (v) => v.maps[t]?.basemap, e[0] = t, e[1] = n) : n = e[1];
|
|
1539
|
-
const o = x(n);
|
|
1540
|
-
let i;
|
|
1541
|
-
e[2] !== t ? (i = (v) => v.maps[t]?.isLoaded, e[2] = t, e[3] = i) : i = e[3];
|
|
1542
|
-
const a = x(i), c = x(ln), l = fe(an), {
|
|
1543
|
-
type: y
|
|
1544
|
-
} = me[o], h = y === ee.googleMaps;
|
|
1545
|
-
let g, p;
|
|
1546
|
-
e[4] !== c || e[5] !== h || e[6] !== a || e[7] !== s || e[8] !== t || e[9] !== l ? (g = () => {
|
|
1547
|
-
let v = null;
|
|
1548
|
-
if (h && a) {
|
|
1549
|
-
const m = c(t);
|
|
1550
|
-
v = new ss(m.getDiv(), {});
|
|
1551
|
-
}
|
|
1552
|
-
l(s, {
|
|
1553
|
-
props: {
|
|
1554
|
-
eventManager: v
|
|
1555
|
-
}
|
|
1556
|
-
});
|
|
1557
|
-
}, p = [c, h, a, s, t, l], e[4] = c, e[5] = h, e[6] = a, e[7] = s, e[8] = t, e[9] = l, e[10] = g, e[11] = p) : (g = e[10], p = e[11]), Q(g, p);
|
|
1558
|
-
}
|
|
1559
|
-
function an(r) {
|
|
1560
|
-
return r.setLayer;
|
|
1561
|
-
}
|
|
1562
|
-
function ln(r) {
|
|
1563
|
-
return r.getOverlayInstance;
|
|
1564
|
-
}
|
|
1565
|
-
const cn = [ce, Pe, re];
|
|
1566
|
-
function un({
|
|
1639
|
+
}, gn = {
|
|
1640
|
+
distance: lt,
|
|
1641
|
+
buffer: lt,
|
|
1642
|
+
area: yn
|
|
1643
|
+
}, bn = [me, Ce, ce];
|
|
1644
|
+
function vn({
|
|
1567
1645
|
children: r,
|
|
1568
1646
|
mapId: e,
|
|
1569
1647
|
defaultProps: {
|
|
1570
|
-
styles: t =
|
|
1648
|
+
styles: t = xe.styles,
|
|
1571
1649
|
labels: s
|
|
1572
1650
|
} = {
|
|
1573
|
-
styles:
|
|
1574
|
-
labels:
|
|
1651
|
+
styles: xe.styles,
|
|
1652
|
+
labels: xe.labels
|
|
1575
1653
|
},
|
|
1576
1654
|
layerProps: n = {},
|
|
1577
1655
|
defaultType: o = "mask"
|
|
1578
1656
|
}) {
|
|
1579
|
-
const i =
|
|
1580
|
-
|
|
1657
|
+
const i = Z((T) => T.data[e]?.enabled), a = Z((T) => T.setEnabled), l = Z((T) => T.data[e]?.values), c = Z((T) => T.setValue), h = Z((T) => T.data[e]?.modeInstance), y = Z((T) => T.data[e]?.modeSelected), g = ge((T) => T.setLayer), p = x((T) => T.addLayers), b = x((T) => T.removeLayers), m = x(vt((T) => T.maps[e]?.layers.filter((O) => !bn.includes(O)))), w = x((T) => T.getDeckInstance), u = Le({});
|
|
1658
|
+
Pt({
|
|
1581
1659
|
mapId: e,
|
|
1582
|
-
layerId:
|
|
1660
|
+
layerId: me
|
|
1583
1661
|
});
|
|
1584
|
-
const f =
|
|
1585
|
-
values:
|
|
1586
|
-
}), [
|
|
1662
|
+
const f = ye(() => Ot({
|
|
1663
|
+
values: l
|
|
1664
|
+
}), [l]), v = ye(() => ({
|
|
1587
1665
|
type: "FeatureCollection",
|
|
1588
|
-
features: f.map((
|
|
1666
|
+
features: f.map((T) => ({
|
|
1589
1667
|
type: "Feature",
|
|
1590
|
-
geometry:
|
|
1591
|
-
properties:
|
|
1592
|
-
id:
|
|
1668
|
+
geometry: T.geometry,
|
|
1669
|
+
properties: T.properties,
|
|
1670
|
+
id: T.id
|
|
1593
1671
|
}))
|
|
1594
|
-
}), [f]), _ =
|
|
1595
|
-
const
|
|
1596
|
-
...
|
|
1597
|
-
features:
|
|
1672
|
+
}), [f]), _ = ye(() => f.filter((T) => T.properties.visible).map((T) => T.id), [f]), [M, P] = ae(v), [A, I] = ae([]), R = ee(() => {
|
|
1673
|
+
const T = {
|
|
1674
|
+
...v,
|
|
1675
|
+
features: v.features.filter((O) => O.properties?.visible)
|
|
1598
1676
|
};
|
|
1599
|
-
P(
|
|
1600
|
-
}, [
|
|
1677
|
+
P(T);
|
|
1678
|
+
}, [v]);
|
|
1601
1679
|
Q(() => {
|
|
1602
|
-
|
|
1603
|
-
}, [
|
|
1604
|
-
const
|
|
1605
|
-
Q(() => (p(e, [
|
|
1606
|
-
|
|
1607
|
-
}), [p, e,
|
|
1608
|
-
const
|
|
1609
|
-
|
|
1610
|
-
}, [e,
|
|
1611
|
-
editType:
|
|
1612
|
-
updatedData:
|
|
1680
|
+
R();
|
|
1681
|
+
}, [R]);
|
|
1682
|
+
const q = Le(f.length);
|
|
1683
|
+
Q(() => (p(e, [me]), () => {
|
|
1684
|
+
b(e, [me]);
|
|
1685
|
+
}), [p, e, b]);
|
|
1686
|
+
const j = ee(() => {
|
|
1687
|
+
R(), I([]), a(e, !1);
|
|
1688
|
+
}, [e, R, a]), D = ee(({
|
|
1689
|
+
editType: T,
|
|
1690
|
+
updatedData: O
|
|
1613
1691
|
}) => {
|
|
1614
|
-
if (
|
|
1615
|
-
|
|
1692
|
+
if (T === te.cancel) {
|
|
1693
|
+
j();
|
|
1616
1694
|
return;
|
|
1617
1695
|
}
|
|
1618
|
-
P(
|
|
1619
|
-
d.properties.label ??= `${s?.mask} ${
|
|
1620
|
-
const
|
|
1621
|
-
|
|
1696
|
+
P(O), T !== te.updateTentativeFeature && T === te.addFeature && (y !== "edit" && (q.current = q.current + 1), O.features.forEach((d, S) => {
|
|
1697
|
+
d.properties.label ??= `${s?.mask} ${q.current}`, d.properties.index = S, d.properties.visible = d.properties.visible ?? !0;
|
|
1698
|
+
const L = d.id ?? crypto.randomUUID();
|
|
1699
|
+
c(e, L, {
|
|
1622
1700
|
geometry: d.geometry,
|
|
1623
1701
|
properties: d.properties,
|
|
1624
1702
|
// visible: true,
|
|
1625
1703
|
type: o
|
|
1626
1704
|
});
|
|
1627
|
-
}),
|
|
1628
|
-
}, [o,
|
|
1705
|
+
}), j());
|
|
1706
|
+
}, [o, j, s?.mask, e, y, c]);
|
|
1629
1707
|
return Q(() => {
|
|
1630
|
-
const
|
|
1631
|
-
border:
|
|
1708
|
+
const T = i, {
|
|
1709
|
+
border: O,
|
|
1632
1710
|
point: d,
|
|
1633
1711
|
fill: S
|
|
1634
1712
|
} = t.colors.editing, {
|
|
1635
|
-
border:
|
|
1713
|
+
border: L,
|
|
1636
1714
|
fill: C
|
|
1637
|
-
} = t.colors.finished, k =
|
|
1715
|
+
} = t.colors.finished, k = sn({
|
|
1638
1716
|
layerProps: {
|
|
1639
1717
|
...n.mask,
|
|
1640
|
-
pickable:
|
|
1718
|
+
pickable: T,
|
|
1641
1719
|
data: M,
|
|
1642
|
-
selectedFeatureIndexes:
|
|
1720
|
+
selectedFeatureIndexes: A,
|
|
1643
1721
|
updateTriggers: {
|
|
1644
1722
|
getFilterValue: _
|
|
1645
1723
|
},
|
|
1646
|
-
onClick: (
|
|
1647
|
-
const
|
|
1648
|
-
|
|
1724
|
+
onClick: (E) => {
|
|
1725
|
+
const V = E;
|
|
1726
|
+
V.isGuide || I([V.index]);
|
|
1649
1727
|
}
|
|
1650
1728
|
},
|
|
1651
|
-
getLineColor: (
|
|
1652
|
-
getFillColor: (
|
|
1729
|
+
getLineColor: (E) => A[0] === E.properties.index ? O : L,
|
|
1730
|
+
getFillColor: (E) => A[0] === E.properties.index ? S : C,
|
|
1653
1731
|
pointColor: {
|
|
1654
1732
|
fill: d,
|
|
1655
|
-
outline:
|
|
1733
|
+
outline: O
|
|
1656
1734
|
},
|
|
1657
|
-
onEdit:
|
|
1658
|
-
mode:
|
|
1735
|
+
onEdit: D,
|
|
1736
|
+
mode: T ? h : new ts()
|
|
1659
1737
|
});
|
|
1660
|
-
g(
|
|
1661
|
-
}, [M, i, n.mask, _,
|
|
1662
|
-
const
|
|
1663
|
-
...
|
|
1664
|
-
data:
|
|
1665
|
-
getFilterValue: (
|
|
1738
|
+
g(me, k);
|
|
1739
|
+
}, [M, i, n.mask, _, h, D, A, g, t.colors.editing, t.colors.finished]), Q(() => {
|
|
1740
|
+
const T = {
|
|
1741
|
+
...Ee,
|
|
1742
|
+
data: v,
|
|
1743
|
+
getFilterValue: (O) => Number(_.includes(O.id)),
|
|
1666
1744
|
updateTriggers: {
|
|
1667
1745
|
getFilterValue: _
|
|
1668
1746
|
}
|
|
1669
1747
|
};
|
|
1670
|
-
return g(
|
|
1671
|
-
type:
|
|
1672
|
-
props:
|
|
1673
|
-
}), p(e, [
|
|
1674
|
-
|
|
1748
|
+
return g(Ee.id, {
|
|
1749
|
+
type: as,
|
|
1750
|
+
props: T
|
|
1751
|
+
}), p(e, [Ee.id]), () => {
|
|
1752
|
+
b(e, [Ee.id]);
|
|
1675
1753
|
};
|
|
1676
|
-
}, [p, e,
|
|
1677
|
-
m?.forEach((
|
|
1678
|
-
const
|
|
1679
|
-
i && (u.current[
|
|
1680
|
-
const d = !i && (u.current[
|
|
1681
|
-
g(
|
|
1754
|
+
}, [p, e, v, _, b, g]), Q(() => {
|
|
1755
|
+
m?.forEach((T) => {
|
|
1756
|
+
const O = w(e)?.props.layers.find((S) => S.props.id === T);
|
|
1757
|
+
i && (u.current[T] = O?.props.pickable);
|
|
1758
|
+
const d = !i && (u.current[T] ?? O?.props.pickable);
|
|
1759
|
+
g(T, {
|
|
1682
1760
|
props: {
|
|
1683
1761
|
pickable: d,
|
|
1684
|
-
extensions: [new
|
|
1685
|
-
maskId: !i && _.length ?
|
|
1762
|
+
extensions: [new ns()],
|
|
1763
|
+
maskId: !i && _.length ? Ce : void 0
|
|
1686
1764
|
}
|
|
1687
1765
|
});
|
|
1688
1766
|
});
|
|
1689
1767
|
}, [i, w, e, m, _.length, g]), r;
|
|
1690
1768
|
}
|
|
1691
|
-
|
|
1692
|
-
function
|
|
1769
|
+
vn.Controls = an;
|
|
1770
|
+
function Sn({
|
|
1693
1771
|
mode: r,
|
|
1694
1772
|
...e
|
|
1695
1773
|
}) {
|
|
1696
|
-
const t =
|
|
1774
|
+
const t = wn({
|
|
1697
1775
|
mode: r,
|
|
1698
1776
|
...e
|
|
1699
1777
|
});
|
|
1700
1778
|
return {
|
|
1701
|
-
type:
|
|
1779
|
+
type: kt,
|
|
1702
1780
|
props: {
|
|
1703
1781
|
...t,
|
|
1704
1782
|
mode: r,
|
|
@@ -1706,7 +1784,7 @@ function dn({
|
|
|
1706
1784
|
}
|
|
1707
1785
|
};
|
|
1708
1786
|
}
|
|
1709
|
-
function
|
|
1787
|
+
function wn({
|
|
1710
1788
|
mode: r,
|
|
1711
1789
|
layerProps: e,
|
|
1712
1790
|
locale: t,
|
|
@@ -1715,16 +1793,16 @@ function fn({
|
|
|
1715
1793
|
onEdit: o,
|
|
1716
1794
|
guideColor: i,
|
|
1717
1795
|
pointColor: a,
|
|
1718
|
-
textOptions:
|
|
1796
|
+
textOptions: l
|
|
1719
1797
|
}) {
|
|
1720
|
-
const
|
|
1798
|
+
const c = de(e, {
|
|
1721
1799
|
visible: s,
|
|
1722
1800
|
pickable: s,
|
|
1723
1801
|
modeConfig: {
|
|
1724
1802
|
// We force distance due to conversion is addressed at feature getText level
|
|
1725
1803
|
formatTooltip: (g) => g,
|
|
1726
1804
|
turfOptions: {
|
|
1727
|
-
units:
|
|
1805
|
+
units: mn.meters
|
|
1728
1806
|
}
|
|
1729
1807
|
},
|
|
1730
1808
|
...s && {
|
|
@@ -1743,14 +1821,14 @@ function fn({
|
|
|
1743
1821
|
meters: g.text,
|
|
1744
1822
|
locale: t,
|
|
1745
1823
|
unit: n,
|
|
1746
|
-
options:
|
|
1824
|
+
options: l
|
|
1747
1825
|
}),
|
|
1748
1826
|
updateTriggers: {
|
|
1749
|
-
getText: [n, t,
|
|
1827
|
+
getText: [n, t, l]
|
|
1750
1828
|
}
|
|
1751
1829
|
}
|
|
1752
1830
|
}
|
|
1753
|
-
}),
|
|
1831
|
+
}), h = de(pn, {
|
|
1754
1832
|
_subLayerProps: {
|
|
1755
1833
|
guides: {
|
|
1756
1834
|
getLineColor: i,
|
|
@@ -1760,37 +1838,37 @@ function fn({
|
|
|
1760
1838
|
getEditHandlePointColor: a,
|
|
1761
1839
|
getEditHandlePointOutlineColor: i
|
|
1762
1840
|
});
|
|
1763
|
-
return
|
|
1841
|
+
return de(h, c);
|
|
1764
1842
|
}
|
|
1765
|
-
const
|
|
1843
|
+
const _n = (r) => Ge()((e) => ({
|
|
1766
1844
|
measurements: r.reduce((s, n) => {
|
|
1767
1845
|
const {
|
|
1768
1846
|
mapId: o,
|
|
1769
1847
|
modeSelected: i,
|
|
1770
|
-
modes: a =
|
|
1771
|
-
units:
|
|
1772
|
-
distance:
|
|
1773
|
-
finished:
|
|
1774
|
-
locale:
|
|
1848
|
+
modes: a = hn,
|
|
1849
|
+
units: l = gn,
|
|
1850
|
+
distance: c = 0,
|
|
1851
|
+
finished: h = !1,
|
|
1852
|
+
locale: y = "en",
|
|
1775
1853
|
positions: g = [],
|
|
1776
1854
|
clearLayerOnStart: p = !1,
|
|
1777
|
-
unit:
|
|
1855
|
+
unit: b = Ie["m-km"],
|
|
1778
1856
|
enabled: m = !1
|
|
1779
1857
|
} = n;
|
|
1780
1858
|
return s[o] = {
|
|
1781
1859
|
modes: a,
|
|
1782
|
-
units:
|
|
1860
|
+
units: l,
|
|
1783
1861
|
modeSelected: i,
|
|
1784
|
-
distance:
|
|
1785
|
-
finished:
|
|
1786
|
-
locale:
|
|
1862
|
+
distance: c,
|
|
1863
|
+
finished: h,
|
|
1864
|
+
locale: y,
|
|
1787
1865
|
positions: g,
|
|
1788
|
-
unit:
|
|
1866
|
+
unit: b,
|
|
1789
1867
|
clearLayerOnStart: p,
|
|
1790
1868
|
enabled: m
|
|
1791
1869
|
}, s;
|
|
1792
1870
|
}, {}),
|
|
1793
|
-
mode:
|
|
1871
|
+
mode: At,
|
|
1794
1872
|
setModeInstance: (s, n) => {
|
|
1795
1873
|
e((o) => ({
|
|
1796
1874
|
measurements: {
|
|
@@ -1879,148 +1957,148 @@ const pn = (r) => Ke()((e) => ({
|
|
|
1879
1957
|
}
|
|
1880
1958
|
}));
|
|
1881
1959
|
}
|
|
1882
|
-
})),
|
|
1883
|
-
function
|
|
1884
|
-
const e =
|
|
1960
|
+
})), Rt = He({});
|
|
1961
|
+
function Mn(r) {
|
|
1962
|
+
const e = F(5), {
|
|
1885
1963
|
children: t,
|
|
1886
1964
|
values: s
|
|
1887
1965
|
} = r;
|
|
1888
1966
|
let n;
|
|
1889
|
-
e[0] !== s ? (n =
|
|
1890
|
-
const [o] =
|
|
1967
|
+
e[0] !== s ? (n = _n(s), e[0] = s, e[1] = n) : n = e[1];
|
|
1968
|
+
const [o] = ae(n);
|
|
1891
1969
|
let i;
|
|
1892
|
-
return e[2] !== t || e[3] !== o ? (i = /* @__PURE__ */ K(
|
|
1970
|
+
return e[2] !== t || e[3] !== o ? (i = /* @__PURE__ */ K(Rt.Provider, { value: o, children: t }), e[2] = t, e[3] = o, e[4] = i) : i = e[4], i;
|
|
1893
1971
|
}
|
|
1894
1972
|
function G(r) {
|
|
1895
|
-
const e =
|
|
1973
|
+
const e = ze(Rt);
|
|
1896
1974
|
if (!Object.keys(e).length)
|
|
1897
1975
|
throw new Error("Missing MeasurementToolsProvider in the tree");
|
|
1898
|
-
return
|
|
1976
|
+
return Ke(e, r);
|
|
1899
1977
|
}
|
|
1900
|
-
function
|
|
1901
|
-
const e =
|
|
1978
|
+
function Dt(r) {
|
|
1979
|
+
const e = F(74), {
|
|
1902
1980
|
mapId: t
|
|
1903
1981
|
} = r;
|
|
1904
1982
|
let s;
|
|
1905
|
-
e[0] !== t ? (s = (
|
|
1983
|
+
e[0] !== t ? (s = ($) => $.measurements[t].modes, e[0] = t, e[1] = s) : s = e[1];
|
|
1906
1984
|
const n = G(s);
|
|
1907
1985
|
let o;
|
|
1908
|
-
e[2] !== t ? (o = (
|
|
1986
|
+
e[2] !== t ? (o = ($) => $.measurements[t].units, e[2] = t, e[3] = o) : o = e[3];
|
|
1909
1987
|
const i = G(o);
|
|
1910
1988
|
let a;
|
|
1911
|
-
e[4] !== t ? (a = (
|
|
1912
|
-
const
|
|
1913
|
-
let
|
|
1914
|
-
e[6] !==
|
|
1915
|
-
const
|
|
1989
|
+
e[4] !== t ? (a = ($) => $.measurements[t].distance, e[4] = t, e[5] = a) : a = e[5];
|
|
1990
|
+
const l = G(a), c = G(Fn);
|
|
1991
|
+
let h;
|
|
1992
|
+
e[6] !== c || e[7] !== t ? (h = ($) => c(t, $), e[6] = c, e[7] = t, e[8] = h) : h = e[8];
|
|
1993
|
+
const y = h;
|
|
1916
1994
|
let g;
|
|
1917
|
-
e[9] !== t ? (g = (
|
|
1995
|
+
e[9] !== t ? (g = ($) => $.measurements[t].clearLayerOnStart, e[9] = t, e[10] = g) : g = e[10];
|
|
1918
1996
|
const p = G(g);
|
|
1919
|
-
let
|
|
1920
|
-
e[11] !== t ? (
|
|
1921
|
-
const m = G(
|
|
1997
|
+
let b;
|
|
1998
|
+
e[11] !== t ? (b = ($) => $.measurements[t].enabled, e[11] = t, e[12] = b) : b = e[12];
|
|
1999
|
+
const m = G(b), w = G(On);
|
|
1922
2000
|
let u;
|
|
1923
|
-
e[13] !== w || e[14] !== t ? (u = (
|
|
2001
|
+
e[13] !== w || e[14] !== t ? (u = ($) => w(t, $), e[13] = w, e[14] = t, e[15] = u) : u = e[15];
|
|
1924
2002
|
const f = u;
|
|
1925
|
-
let
|
|
1926
|
-
e[16] !== t ? (
|
|
1927
|
-
const _ = G(
|
|
2003
|
+
let v;
|
|
2004
|
+
e[16] !== t ? (v = ($) => $.measurements[t].modeSelected, e[16] = t, e[17] = v) : v = e[17];
|
|
2005
|
+
const _ = G(v), M = G(Cn);
|
|
1928
2006
|
let P;
|
|
1929
|
-
e[18] !== M || e[19] !== t || e[20] !== f ? (P = (
|
|
1930
|
-
f(
|
|
2007
|
+
e[18] !== M || e[19] !== t || e[20] !== f ? (P = ($) => {
|
|
2008
|
+
f(!!$), M(t, $);
|
|
1931
2009
|
}, e[18] = M, e[19] = t, e[20] = f, e[21] = P) : P = e[21];
|
|
1932
|
-
const
|
|
1933
|
-
let
|
|
1934
|
-
e[22] !== t ? (
|
|
1935
|
-
const
|
|
1936
|
-
let
|
|
1937
|
-
e[24] !==
|
|
1938
|
-
const
|
|
1939
|
-
let
|
|
1940
|
-
e[27] !== t ? (
|
|
1941
|
-
const
|
|
2010
|
+
const A = P;
|
|
2011
|
+
let I;
|
|
2012
|
+
e[22] !== t ? (I = ($) => $.measurements[t].finished, e[22] = t, e[23] = I) : I = e[23];
|
|
2013
|
+
const R = G(I), q = G(kn);
|
|
2014
|
+
let j;
|
|
2015
|
+
e[24] !== q || e[25] !== t ? (j = ($) => q(t, $), e[24] = q, e[25] = t, e[26] = j) : j = e[26];
|
|
2016
|
+
const D = j;
|
|
2017
|
+
let T;
|
|
2018
|
+
e[27] !== t ? (T = ($) => $.measurements[t].locale, e[27] = t, e[28] = T) : T = e[28];
|
|
2019
|
+
const O = G(T), d = G(Pn);
|
|
1942
2020
|
let S;
|
|
1943
|
-
e[29] !== d || e[30] !== t ? (S = (
|
|
1944
|
-
const
|
|
2021
|
+
e[29] !== d || e[30] !== t ? (S = ($) => d(t, $), e[29] = d, e[30] = t, e[31] = S) : S = e[31];
|
|
2022
|
+
const L = S;
|
|
1945
2023
|
let C;
|
|
1946
|
-
e[32] !== t ? (C = (
|
|
1947
|
-
const k = G(C),
|
|
1948
|
-
let
|
|
1949
|
-
e[34] !==
|
|
1950
|
-
const
|
|
2024
|
+
e[32] !== t ? (C = ($) => $.measurements[t].modeInstance, e[32] = t, e[33] = C) : C = e[33];
|
|
2025
|
+
const k = G(C), E = G(Ln);
|
|
2026
|
+
let V;
|
|
2027
|
+
e[34] !== E || e[35] !== t ? (V = ($) => E(t, $), e[34] = E, e[35] = t, e[36] = V) : V = e[36];
|
|
2028
|
+
const B = V;
|
|
1951
2029
|
let H;
|
|
1952
|
-
e[37] !== t ? (H = (
|
|
1953
|
-
const
|
|
1954
|
-
let
|
|
1955
|
-
e[39] !==
|
|
1956
|
-
const
|
|
1957
|
-
let
|
|
1958
|
-
e[42] !== t ? (
|
|
1959
|
-
const
|
|
1960
|
-
let
|
|
1961
|
-
e[44] !==
|
|
1962
|
-
const Fe =
|
|
1963
|
-
let be;
|
|
1964
|
-
e[47] !== k || e[48] !== de ? (be = () => {
|
|
1965
|
-
k?.resetClickSequence(), de([]);
|
|
1966
|
-
}, e[47] = k, e[48] = de, e[49] = be) : be = e[49];
|
|
1967
|
-
const Ae = be;
|
|
1968
|
-
let ve;
|
|
1969
|
-
e[50] !== f ? (ve = (A) => {
|
|
1970
|
-
f(A);
|
|
1971
|
-
}, e[50] = f, e[51] = ve) : ve = e[51];
|
|
1972
|
-
const Re = ve;
|
|
2030
|
+
e[37] !== t ? (H = ($) => $.measurements[t].positions, e[37] = t, e[38] = H) : H = e[38];
|
|
2031
|
+
const U = G(H), z = G(Tn);
|
|
2032
|
+
let W;
|
|
2033
|
+
e[39] !== z || e[40] !== t ? (W = ($) => z(t, $), e[39] = z, e[40] = t, e[41] = W) : W = e[41];
|
|
2034
|
+
const se = W;
|
|
2035
|
+
let J;
|
|
2036
|
+
e[42] !== t ? (J = ($) => $.measurements[t].unit, e[42] = t, e[43] = J) : J = e[43];
|
|
2037
|
+
const Y = G(J), ne = G(En);
|
|
2038
|
+
let oe;
|
|
2039
|
+
e[44] !== ne || e[45] !== t ? (oe = ($) => ne(t, $), e[44] = ne, e[45] = t, e[46] = oe) : oe = e[46];
|
|
2040
|
+
const Fe = oe;
|
|
1973
2041
|
let Se;
|
|
1974
|
-
|
|
2042
|
+
e[47] !== k || e[48] !== se ? (Se = () => {
|
|
2043
|
+
k?.resetClickSequence(), se([]);
|
|
2044
|
+
}, e[47] = k, e[48] = se, e[49] = Se) : Se = e[49];
|
|
2045
|
+
const Ae = Se;
|
|
2046
|
+
let we;
|
|
2047
|
+
e[50] !== f ? (we = ($) => {
|
|
2048
|
+
f($);
|
|
2049
|
+
}, e[50] = f, e[51] = we) : we = e[51];
|
|
2050
|
+
const Re = we;
|
|
2051
|
+
let _e;
|
|
2052
|
+
return e[52] !== Ae || e[53] !== p || e[54] !== l || e[55] !== m || e[56] !== R || e[57] !== O || e[58] !== k || e[59] !== _ || e[60] !== n || e[61] !== U || e[62] !== y || e[63] !== f || e[64] !== D || e[65] !== L || e[66] !== B || e[67] !== A || e[68] !== se || e[69] !== Fe || e[70] !== Re || e[71] !== Y || e[72] !== i ? (_e = {
|
|
1975
2053
|
modes: n,
|
|
1976
2054
|
units: i,
|
|
1977
|
-
distance:
|
|
2055
|
+
distance: l,
|
|
1978
2056
|
clearLayerOnStart: p,
|
|
1979
2057
|
modeSelected: _,
|
|
1980
2058
|
enabled: m,
|
|
1981
|
-
finished:
|
|
1982
|
-
locale:
|
|
2059
|
+
finished: R,
|
|
2060
|
+
locale: O,
|
|
1983
2061
|
modeInstance: k,
|
|
1984
|
-
positions:
|
|
1985
|
-
unit:
|
|
1986
|
-
setDistance:
|
|
1987
|
-
setModeSelected:
|
|
1988
|
-
setFinished:
|
|
1989
|
-
setLocale:
|
|
1990
|
-
setPositions:
|
|
2062
|
+
positions: U,
|
|
2063
|
+
unit: Y,
|
|
2064
|
+
setDistance: y,
|
|
2065
|
+
setModeSelected: A,
|
|
2066
|
+
setFinished: D,
|
|
2067
|
+
setLocale: L,
|
|
2068
|
+
setPositions: se,
|
|
1991
2069
|
setUnit: Fe,
|
|
1992
2070
|
setEnabled: f,
|
|
1993
2071
|
toggleLayer: Re,
|
|
1994
2072
|
clearLayer: Ae,
|
|
1995
|
-
setModeInstance:
|
|
1996
|
-
}, e[52] = Ae, e[53] = p, e[54] =
|
|
2073
|
+
setModeInstance: B
|
|
2074
|
+
}, e[52] = Ae, e[53] = p, e[54] = l, e[55] = m, e[56] = R, e[57] = O, e[58] = k, e[59] = _, e[60] = n, e[61] = U, e[62] = y, e[63] = f, e[64] = D, e[65] = L, e[66] = B, e[67] = A, e[68] = se, e[69] = Fe, e[70] = Re, e[71] = Y, e[72] = i, e[73] = _e) : _e = e[73], _e;
|
|
1997
2075
|
}
|
|
1998
|
-
function
|
|
2076
|
+
function En(r) {
|
|
1999
2077
|
return r.setUnit;
|
|
2000
2078
|
}
|
|
2001
|
-
function
|
|
2079
|
+
function Tn(r) {
|
|
2002
2080
|
return r.setPositions;
|
|
2003
2081
|
}
|
|
2004
|
-
function
|
|
2082
|
+
function Ln(r) {
|
|
2005
2083
|
return r.setModeInstance;
|
|
2006
2084
|
}
|
|
2007
|
-
function
|
|
2085
|
+
function Pn(r) {
|
|
2008
2086
|
return r.setLocale;
|
|
2009
2087
|
}
|
|
2010
|
-
function
|
|
2088
|
+
function kn(r) {
|
|
2011
2089
|
return r.setFinished;
|
|
2012
2090
|
}
|
|
2013
|
-
function
|
|
2091
|
+
function Cn(r) {
|
|
2014
2092
|
return r.setModeSelected;
|
|
2015
2093
|
}
|
|
2016
|
-
function
|
|
2094
|
+
function On(r) {
|
|
2017
2095
|
return r.setEnabled;
|
|
2018
2096
|
}
|
|
2019
|
-
function
|
|
2097
|
+
function Fn(r) {
|
|
2020
2098
|
return r.setDistance;
|
|
2021
2099
|
}
|
|
2022
|
-
function
|
|
2023
|
-
const e =
|
|
2100
|
+
function An(r) {
|
|
2101
|
+
const e = F(42), {
|
|
2024
2102
|
mapId: t,
|
|
2025
2103
|
textOptions: s,
|
|
2026
2104
|
children: n
|
|
@@ -2032,77 +2110,77 @@ function Mn(r) {
|
|
|
2032
2110
|
const {
|
|
2033
2111
|
modes: i,
|
|
2034
2112
|
units: a,
|
|
2035
|
-
distance:
|
|
2036
|
-
setDistance:
|
|
2037
|
-
clearLayerOnStart:
|
|
2038
|
-
modeSelected:
|
|
2113
|
+
distance: l,
|
|
2114
|
+
setDistance: c,
|
|
2115
|
+
clearLayerOnStart: h,
|
|
2116
|
+
modeSelected: y,
|
|
2039
2117
|
setModeSelected: g,
|
|
2040
2118
|
enabled: p,
|
|
2041
|
-
setEnabled:
|
|
2119
|
+
setEnabled: b,
|
|
2042
2120
|
finished: m,
|
|
2043
2121
|
setFinished: w,
|
|
2044
2122
|
locale: u,
|
|
2045
2123
|
setLocale: f,
|
|
2046
|
-
modeInstance:
|
|
2124
|
+
modeInstance: v,
|
|
2047
2125
|
setModeInstance: _,
|
|
2048
2126
|
positions: M,
|
|
2049
2127
|
setPositions: P,
|
|
2050
|
-
unit:
|
|
2051
|
-
setUnit:
|
|
2052
|
-
clearLayer:
|
|
2053
|
-
toggleLayer:
|
|
2054
|
-
} =
|
|
2055
|
-
let
|
|
2056
|
-
e[2] !==
|
|
2057
|
-
if (
|
|
2058
|
-
const
|
|
2059
|
-
_(new
|
|
2128
|
+
unit: A,
|
|
2129
|
+
setUnit: I,
|
|
2130
|
+
clearLayer: R,
|
|
2131
|
+
toggleLayer: q
|
|
2132
|
+
} = Dt(o);
|
|
2133
|
+
let j;
|
|
2134
|
+
e[2] !== y || e[3] !== i || e[4] !== _ || e[5] !== P ? (j = () => {
|
|
2135
|
+
if (y && i[y]) {
|
|
2136
|
+
const L = i[y].mode;
|
|
2137
|
+
_(new L());
|
|
2060
2138
|
}
|
|
2061
2139
|
return () => {
|
|
2062
2140
|
P([]);
|
|
2063
2141
|
};
|
|
2064
|
-
}, e[2] =
|
|
2065
|
-
let
|
|
2066
|
-
e[7] !==
|
|
2067
|
-
let
|
|
2068
|
-
e[13] !==
|
|
2069
|
-
|
|
2070
|
-
}, e[13] =
|
|
2071
|
-
const
|
|
2142
|
+
}, e[2] = y, e[3] = i, e[4] = _, e[5] = P, e[6] = j) : j = e[6];
|
|
2143
|
+
let D;
|
|
2144
|
+
e[7] !== y || e[8] !== i || e[9] !== b || e[10] !== _ || e[11] !== P ? (D = [i, y, P, _, b], e[7] = y, e[8] = i, e[9] = b, e[10] = _, e[11] = P, e[12] = D) : D = e[12], Q(j, D);
|
|
2145
|
+
let T;
|
|
2146
|
+
e[13] !== q || e[14] !== R || e[15] !== h || e[16] !== m ? (T = (L) => {
|
|
2147
|
+
L && (h || !m) && R(), q(L);
|
|
2148
|
+
}, e[13] = q, e[14] = R, e[15] = h, e[16] = m, e[17] = T) : T = e[17];
|
|
2149
|
+
const O = T, d = !!h;
|
|
2072
2150
|
let S;
|
|
2073
|
-
return e[18] !== n || e[19] !==
|
|
2151
|
+
return e[18] !== n || e[19] !== R || e[20] !== l || e[21] !== p || e[22] !== m || e[23] !== u || e[24] !== t || e[25] !== v || e[26] !== y || e[27] !== i || e[28] !== M || e[29] !== c || e[30] !== b || e[31] !== w || e[32] !== f || e[33] !== g || e[34] !== P || e[35] !== I || e[36] !== d || e[37] !== s || e[38] !== O || e[39] !== A || e[40] !== a ? (S = n({
|
|
2074
2152
|
mapId: t,
|
|
2075
|
-
distance:
|
|
2153
|
+
distance: l,
|
|
2076
2154
|
enabled: p,
|
|
2077
2155
|
finished: m,
|
|
2078
2156
|
locale: u,
|
|
2079
2157
|
positions: M,
|
|
2080
|
-
unit:
|
|
2158
|
+
unit: A,
|
|
2081
2159
|
clearLayerOnStart: d,
|
|
2082
|
-
modeSelected:
|
|
2160
|
+
modeSelected: y,
|
|
2083
2161
|
modes: i,
|
|
2084
2162
|
units: a,
|
|
2085
|
-
value:
|
|
2086
|
-
meters:
|
|
2087
|
-
unit:
|
|
2163
|
+
value: Oe({
|
|
2164
|
+
meters: l,
|
|
2165
|
+
unit: A,
|
|
2088
2166
|
locale: u,
|
|
2089
2167
|
options: s
|
|
2090
2168
|
}),
|
|
2091
|
-
modeInstance:
|
|
2169
|
+
modeInstance: v,
|
|
2092
2170
|
setModeSelected: g,
|
|
2093
|
-
setDistance:
|
|
2171
|
+
setDistance: c,
|
|
2094
2172
|
setFinished: w,
|
|
2095
2173
|
setLocale: f,
|
|
2096
2174
|
setPositions: P,
|
|
2097
|
-
setUnit:
|
|
2098
|
-
setEnabled:
|
|
2099
|
-
toggleLayer:
|
|
2100
|
-
clearLayer:
|
|
2101
|
-
}), e[18] = n, e[19] =
|
|
2175
|
+
setUnit: I,
|
|
2176
|
+
setEnabled: b,
|
|
2177
|
+
toggleLayer: O,
|
|
2178
|
+
clearLayer: R
|
|
2179
|
+
}), e[18] = n, e[19] = R, e[20] = l, e[21] = p, e[22] = m, e[23] = u, e[24] = t, e[25] = v, e[26] = y, e[27] = i, e[28] = M, e[29] = c, e[30] = b, e[31] = w, e[32] = f, e[33] = g, e[34] = P, e[35] = I, e[36] = d, e[37] = s, e[38] = O, e[39] = A, e[40] = a, e[41] = S) : S = e[41], S;
|
|
2102
2180
|
}
|
|
2103
|
-
const
|
|
2104
|
-
function
|
|
2105
|
-
const e =
|
|
2181
|
+
const Rn = [ce];
|
|
2182
|
+
function Dn(r) {
|
|
2183
|
+
const e = F(50), {
|
|
2106
2184
|
children: t,
|
|
2107
2185
|
mapId: s,
|
|
2108
2186
|
defaultProps: n,
|
|
@@ -2111,145 +2189,145 @@ function Tn(r) {
|
|
|
2111
2189
|
} = r;
|
|
2112
2190
|
let a;
|
|
2113
2191
|
e[0] !== n ? (a = n === void 0 ? {
|
|
2114
|
-
styles:
|
|
2192
|
+
styles: ot.styles
|
|
2115
2193
|
} : n, e[0] = n, e[1] = a) : a = e[1];
|
|
2116
2194
|
const {
|
|
2117
|
-
styles:
|
|
2118
|
-
} = a,
|
|
2119
|
-
let
|
|
2120
|
-
e[2] !== s ? (
|
|
2195
|
+
styles: l
|
|
2196
|
+
} = a, c = l === void 0 ? ot.styles : l;
|
|
2197
|
+
let h;
|
|
2198
|
+
e[2] !== s ? (h = {
|
|
2121
2199
|
mapId: s
|
|
2122
|
-
}, e[2] = s, e[3] =
|
|
2200
|
+
}, e[2] = s, e[3] = h) : h = e[3];
|
|
2123
2201
|
const {
|
|
2124
|
-
setDistance:
|
|
2202
|
+
setDistance: y,
|
|
2125
2203
|
clearLayerOnStart: g,
|
|
2126
2204
|
enabled: p,
|
|
2127
|
-
finished:
|
|
2205
|
+
finished: b,
|
|
2128
2206
|
setFinished: m,
|
|
2129
2207
|
locale: w,
|
|
2130
2208
|
setPositions: u,
|
|
2131
2209
|
unit: f,
|
|
2132
|
-
modeInstance:
|
|
2133
|
-
} =
|
|
2134
|
-
let
|
|
2135
|
-
e[4] !== s ? (
|
|
2136
|
-
const
|
|
2137
|
-
let
|
|
2138
|
-
e[6] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
2139
|
-
const
|
|
2140
|
-
let
|
|
2141
|
-
e[7] !== s ? (
|
|
2210
|
+
modeInstance: v
|
|
2211
|
+
} = Dt(h), _ = ge(Bn), M = x(Vn), P = x(Un), A = x(xn);
|
|
2212
|
+
let I;
|
|
2213
|
+
e[4] !== s ? (I = (B) => B.maps[s]?.layers.filter(qn), e[4] = s, e[5] = I) : I = e[5];
|
|
2214
|
+
const R = x(vt(I)), q = x($n);
|
|
2215
|
+
let j;
|
|
2216
|
+
e[6] === Symbol.for("react.memo_cache_sentinel") ? (j = {}, e[6] = j) : j = e[6];
|
|
2217
|
+
const D = Le(j);
|
|
2218
|
+
let T;
|
|
2219
|
+
e[7] !== s ? (T = {
|
|
2142
2220
|
mapId: s,
|
|
2143
|
-
layerId:
|
|
2144
|
-
}, e[7] = s, e[8] =
|
|
2145
|
-
let
|
|
2146
|
-
e[9] !== P || e[10] !== p || e[11] !==
|
|
2147
|
-
const
|
|
2148
|
-
return p && (P(s, [
|
|
2221
|
+
layerId: ce
|
|
2222
|
+
}, e[7] = s, e[8] = T) : T = e[8], Pt(T);
|
|
2223
|
+
let O;
|
|
2224
|
+
e[9] !== P || e[10] !== p || e[11] !== q || e[12] !== s || e[13] !== A || e[14] !== M ? (O = () => {
|
|
2225
|
+
const B = q(s)?.props.controller;
|
|
2226
|
+
return p && (P(s, [ce]), M(s, {
|
|
2149
2227
|
doubleClickZoom: !1
|
|
2150
2228
|
})), () => {
|
|
2151
|
-
|
|
2229
|
+
A(s, [ce]), M(s, B);
|
|
2152
2230
|
};
|
|
2153
|
-
}, e[9] = P, e[10] = p, e[11] =
|
|
2231
|
+
}, e[9] = P, e[10] = p, e[11] = q, e[12] = s, e[13] = A, e[14] = M, e[15] = O) : O = e[15];
|
|
2154
2232
|
let d;
|
|
2155
|
-
e[16] !== P || e[17] !== g || e[18] !== p || e[19] !==
|
|
2156
|
-
let S,
|
|
2157
|
-
e[24] !== p || e[25] !==
|
|
2158
|
-
|
|
2159
|
-
const H =
|
|
2160
|
-
p && (
|
|
2161
|
-
const
|
|
2162
|
-
_(
|
|
2233
|
+
e[16] !== P || e[17] !== g || e[18] !== p || e[19] !== q || e[20] !== s || e[21] !== A || e[22] !== M ? (d = [P, g, s, A, p, q, M], e[16] = P, e[17] = g, e[18] = p, e[19] = q, e[20] = s, e[21] = A, e[22] = M, e[23] = d) : d = e[23], Q(O, d);
|
|
2234
|
+
let S, L;
|
|
2235
|
+
e[24] !== p || e[25] !== q || e[26] !== s || e[27] !== R || e[28] !== _ ? (S = () => {
|
|
2236
|
+
R?.forEach((B) => {
|
|
2237
|
+
const H = q(s)?.props.layers.find((z) => z.props.id === B);
|
|
2238
|
+
p && (D.current[B] = H?.props.pickable);
|
|
2239
|
+
const U = !p && (D.current[B] ?? H?.props.pickable);
|
|
2240
|
+
_(B, {
|
|
2163
2241
|
props: {
|
|
2164
|
-
pickable:
|
|
2242
|
+
pickable: U
|
|
2165
2243
|
}
|
|
2166
2244
|
});
|
|
2167
2245
|
});
|
|
2168
|
-
},
|
|
2246
|
+
}, L = [p, q, s, R, _], e[24] = p, e[25] = q, e[26] = s, e[27] = R, e[28] = _, e[29] = S, e[30] = L) : (S = e[29], L = e[30]), Q(S, L);
|
|
2169
2247
|
let C;
|
|
2170
|
-
e[31] !==
|
|
2248
|
+
e[31] !== v || e[32] !== y || e[33] !== m || e[34] !== u ? (C = (B) => {
|
|
2171
2249
|
const {
|
|
2172
2250
|
editType: H,
|
|
2173
|
-
editContext:
|
|
2174
|
-
} =
|
|
2175
|
-
if (H ===
|
|
2176
|
-
|
|
2251
|
+
editContext: U
|
|
2252
|
+
} = B;
|
|
2253
|
+
if (H === te.cancel) {
|
|
2254
|
+
v.resetClickSequence();
|
|
2177
2255
|
return;
|
|
2178
2256
|
}
|
|
2179
|
-
H ===
|
|
2180
|
-
const
|
|
2181
|
-
|
|
2182
|
-
}, e[31] =
|
|
2257
|
+
H === te.addPosition && y(U.distance), m(!!U.finished);
|
|
2258
|
+
const z = U.positions;
|
|
2259
|
+
z?.length && u(z);
|
|
2260
|
+
}, e[31] = v, e[32] = y, e[33] = m, e[34] = u, e[35] = C) : C = e[35];
|
|
2183
2261
|
const k = C;
|
|
2184
|
-
let
|
|
2185
|
-
return e[36] !== p || e[37] !==
|
|
2186
|
-
const
|
|
2262
|
+
let E, V;
|
|
2263
|
+
return e[36] !== p || e[37] !== b || e[38] !== o || e[39] !== w || e[40] !== v || e[41] !== k || e[42] !== _ || e[43] !== c.colors.editing || e[44] !== c.colors.finished || e[45] !== c.colors.point || e[46] !== i || e[47] !== f ? (E = () => {
|
|
2264
|
+
const B = b ? c.colors.finished : c.colors.editing, H = b ? c.colors.finished : c.colors.point, U = Sn({
|
|
2187
2265
|
layerProps: {
|
|
2188
2266
|
...o,
|
|
2189
|
-
pickable: o?.pickable ?? !
|
|
2267
|
+
pickable: o?.pickable ?? !b
|
|
2190
2268
|
},
|
|
2191
2269
|
enabled: p,
|
|
2192
|
-
guideColor:
|
|
2270
|
+
guideColor: B,
|
|
2193
2271
|
pointColor: H,
|
|
2194
2272
|
locale: w,
|
|
2195
2273
|
onEdit: k,
|
|
2196
2274
|
unit: f,
|
|
2197
|
-
mode:
|
|
2275
|
+
mode: v,
|
|
2198
2276
|
textOptions: i
|
|
2199
2277
|
});
|
|
2200
|
-
_(
|
|
2201
|
-
},
|
|
2278
|
+
_(ce, U);
|
|
2279
|
+
}, V = [b, v, o, w, k, _, c.colors.editing, c.colors.finished, c.colors.point, i, f, p], e[36] = p, e[37] = b, e[38] = o, e[39] = w, e[40] = v, e[41] = k, e[42] = _, e[43] = c.colors.editing, e[44] = c.colors.finished, e[45] = c.colors.point, e[46] = i, e[47] = f, e[48] = E, e[49] = V) : (E = e[48], V = e[49]), Q(E, V), t;
|
|
2202
2280
|
}
|
|
2203
|
-
function
|
|
2281
|
+
function $n(r) {
|
|
2204
2282
|
return r.getDeckInstance;
|
|
2205
2283
|
}
|
|
2206
|
-
function
|
|
2207
|
-
return !
|
|
2284
|
+
function qn(r) {
|
|
2285
|
+
return !Rn.includes(r);
|
|
2208
2286
|
}
|
|
2209
|
-
function
|
|
2287
|
+
function xn(r) {
|
|
2210
2288
|
return r.removeLayers;
|
|
2211
2289
|
}
|
|
2212
|
-
function
|
|
2290
|
+
function Un(r) {
|
|
2213
2291
|
return r.addLayers;
|
|
2214
2292
|
}
|
|
2215
|
-
function
|
|
2293
|
+
function Vn(r) {
|
|
2216
2294
|
return r.setController;
|
|
2217
2295
|
}
|
|
2218
|
-
function
|
|
2296
|
+
function Bn(r) {
|
|
2219
2297
|
return r.setLayer;
|
|
2220
2298
|
}
|
|
2221
|
-
|
|
2222
|
-
function
|
|
2223
|
-
const e =
|
|
2299
|
+
Dn.Controls = An;
|
|
2300
|
+
function jn(r) {
|
|
2301
|
+
const e = F(7), {
|
|
2224
2302
|
mapId: t
|
|
2225
2303
|
} = r;
|
|
2226
2304
|
let s;
|
|
2227
2305
|
e[0] !== t ? (s = (l) => l.maps[t], e[0] = t, e[1] = s) : s = e[1];
|
|
2228
2306
|
const {
|
|
2229
2307
|
layers: n
|
|
2230
|
-
} = x(s), o =
|
|
2231
|
-
let i
|
|
2308
|
+
} = x(s), o = ge(Nn);
|
|
2309
|
+
let i;
|
|
2232
2310
|
if (e[2] !== o || e[3] !== n) {
|
|
2233
2311
|
let l;
|
|
2234
|
-
e[5] !== o ? (l = (
|
|
2312
|
+
e[5] !== o ? (l = (c) => o[c], e[5] = o, e[6] = l) : l = e[6], i = n.map(l).filter(In), e[2] = o, e[3] = n, e[4] = i;
|
|
2235
2313
|
} else
|
|
2236
|
-
|
|
2237
|
-
return i
|
|
2314
|
+
i = e[4];
|
|
2315
|
+
return i;
|
|
2238
2316
|
}
|
|
2239
|
-
function
|
|
2317
|
+
function In(r) {
|
|
2240
2318
|
return !!r;
|
|
2241
2319
|
}
|
|
2242
|
-
function
|
|
2320
|
+
function Nn(r) {
|
|
2243
2321
|
return r.layers;
|
|
2244
2322
|
}
|
|
2245
|
-
const
|
|
2246
|
-
function
|
|
2247
|
-
const e = r.filter((s) => !
|
|
2323
|
+
const ct = [Ce, me, ce];
|
|
2324
|
+
function $t(r) {
|
|
2325
|
+
const e = r.filter((s) => !ct.includes(s.props.id)).sort((s, n) => (s.order ?? 1 / 0) - (n.order ?? 1 / 0)), t = ct.map((s) => r.find((n) => n.props.id === s)).filter((s) => !!s);
|
|
2248
2326
|
return [...e, ...t];
|
|
2249
2327
|
}
|
|
2250
|
-
const
|
|
2251
|
-
function
|
|
2252
|
-
const e =
|
|
2328
|
+
const Hn = 200;
|
|
2329
|
+
function go(r) {
|
|
2330
|
+
const e = F(51);
|
|
2253
2331
|
let t, s, n, o;
|
|
2254
2332
|
e[0] !== r ? ({
|
|
2255
2333
|
id: t,
|
|
@@ -2258,108 +2336,108 @@ function ao(r) {
|
|
|
2258
2336
|
...o
|
|
2259
2337
|
} = r, e[0] = r, e[1] = t, e[2] = s, e[3] = n, e[4] = o) : (t = e[1], s = e[2], n = e[3], o = e[4]);
|
|
2260
2338
|
let i;
|
|
2261
|
-
e[5] !== t ? (i = (
|
|
2339
|
+
e[5] !== t ? (i = (E) => E.maps[t].basemap, e[5] = t, e[6] = i) : i = e[6];
|
|
2262
2340
|
const a = x(i);
|
|
2263
|
-
let
|
|
2264
|
-
e[7] !== t ? (
|
|
2265
|
-
const
|
|
2266
|
-
let
|
|
2267
|
-
e[9] !== t ? (
|
|
2268
|
-
const
|
|
2341
|
+
let l;
|
|
2342
|
+
e[7] !== t ? (l = (E) => E.maps[t].instanceRef, e[7] = t, e[8] = l) : l = e[8];
|
|
2343
|
+
const c = x(l);
|
|
2344
|
+
let h;
|
|
2345
|
+
e[9] !== t ? (h = (E) => E.maps[t].overlayRef, e[9] = t, e[10] = h) : h = e[10];
|
|
2346
|
+
const y = x(h), g = Le(null);
|
|
2269
2347
|
let p;
|
|
2270
|
-
e[11] !== t ? (p = (
|
|
2271
|
-
const
|
|
2348
|
+
e[11] !== t ? (p = (E) => E.viewStates[t], e[11] = t, e[12] = p) : p = e[12];
|
|
2349
|
+
const b = x(p);
|
|
2272
2350
|
let m;
|
|
2273
|
-
e[13] !== t ? (m = (
|
|
2274
|
-
const w = x(m), u = x(
|
|
2351
|
+
e[13] !== t ? (m = (E) => E.maps[t].controller, e[13] = t, e[14] = m) : m = e[14];
|
|
2352
|
+
const w = x(m), u = x(Wn), f = x(Qn), v = x(Zn), _ = x(Kn), M = x(Gn);
|
|
2275
2353
|
let P;
|
|
2276
2354
|
e[15] !== t ? (P = {
|
|
2277
2355
|
mapId: t
|
|
2278
2356
|
}, e[15] = t, e[16] = P) : P = e[16];
|
|
2279
|
-
const
|
|
2280
|
-
let
|
|
2281
|
-
e[17] !==
|
|
2282
|
-
const
|
|
2283
|
-
let
|
|
2284
|
-
e[19] !== t || e[20] !== n || e[21] !== f || e[22] !== M ? (
|
|
2285
|
-
const
|
|
2357
|
+
const A = jn(P);
|
|
2358
|
+
let I;
|
|
2359
|
+
e[17] !== A ? (I = $t(A), e[17] = A, e[18] = I) : I = e[18];
|
|
2360
|
+
const R = I;
|
|
2361
|
+
let q;
|
|
2362
|
+
e[19] !== t || e[20] !== n || e[21] !== f || e[22] !== M ? (q = (E) => {
|
|
2363
|
+
const V = f;
|
|
2286
2364
|
if (g.current && clearInterval(g.current), g.current = setTimeout(() => {
|
|
2287
2365
|
M(t);
|
|
2288
|
-
},
|
|
2289
|
-
n(
|
|
2366
|
+
}, Hn), n) {
|
|
2367
|
+
n(E, V);
|
|
2290
2368
|
return;
|
|
2291
2369
|
}
|
|
2292
|
-
|
|
2293
|
-
}, e[19] = t, e[20] = n, e[21] = f, e[22] = M, e[23] =
|
|
2294
|
-
const
|
|
2295
|
-
let
|
|
2296
|
-
e[24] !== t || e[25] !== s || e[26] !==
|
|
2297
|
-
|
|
2298
|
-
}, e[24] = t, e[25] = s, e[26] =
|
|
2299
|
-
const
|
|
2300
|
-
let
|
|
2301
|
-
e[29] !== u || e[30] !== t || e[31] !== o || e[32] !== _ ? (
|
|
2302
|
-
const
|
|
2303
|
-
_(t,
|
|
2304
|
-
}, e[29] = u, e[30] = t, e[31] = o, e[32] = _, e[33] =
|
|
2305
|
-
const
|
|
2306
|
-
let C;
|
|
2307
|
-
e[34] !== T || e[35] !== t || e[36] !== M ? (C = (...R) => {
|
|
2308
|
-
const j = R;
|
|
2309
|
-
M(t), T && T(...j);
|
|
2310
|
-
}, e[34] = T, e[35] = t, e[36] = M, e[37] = C) : C = e[37];
|
|
2311
|
-
const k = C;
|
|
2370
|
+
V(t, E.viewState);
|
|
2371
|
+
}, e[19] = t, e[20] = n, e[21] = f, e[22] = M, e[23] = q) : q = e[23];
|
|
2372
|
+
const j = q;
|
|
2373
|
+
let D;
|
|
2374
|
+
e[24] !== t || e[25] !== s || e[26] !== v || e[27] !== M ? (D = (E) => {
|
|
2375
|
+
v(t, E), s?.(E), M(t);
|
|
2376
|
+
}, e[24] = t, e[25] = s, e[26] = v, e[27] = M, e[28] = D) : D = e[28];
|
|
2377
|
+
const T = D;
|
|
2378
|
+
let O;
|
|
2379
|
+
e[29] !== u || e[30] !== t || e[31] !== o || e[32] !== _ ? (O = (E) => {
|
|
2380
|
+
const B = !!u(t)?.props.layers?.every(zn);
|
|
2381
|
+
_(t, B), o.onAfterRender?.(E);
|
|
2382
|
+
}, e[29] = u, e[30] = t, e[31] = o, e[32] = _, e[33] = O) : O = e[33];
|
|
2383
|
+
const d = O, S = o.onDragEnd;
|
|
2312
2384
|
let L;
|
|
2313
|
-
|
|
2385
|
+
e[34] !== S || e[35] !== t || e[36] !== M ? (L = (...E) => {
|
|
2386
|
+
const V = E;
|
|
2387
|
+
M(t), S && S(...V);
|
|
2388
|
+
}, e[34] = S, e[35] = t, e[36] = M, e[37] = L) : L = e[37];
|
|
2389
|
+
const C = L;
|
|
2390
|
+
let k;
|
|
2391
|
+
return e[38] !== a || e[39] !== R || e[40] !== w || e[41] !== d || e[42] !== C || e[43] !== T || e[44] !== j || e[45] !== t || e[46] !== c || e[47] !== y || e[48] !== o || e[49] !== b ? (k = /* @__PURE__ */ K(qs, { ...o, controller: w, id: t, layers: R, instanceRef: c, overlayRef: y, basemap: a, initialViewState: b, onLoad: T, onViewStateChange: j, onAfterRender: d, onDragEnd: C }), e[38] = a, e[39] = R, e[40] = w, e[41] = d, e[42] = C, e[43] = T, e[44] = j, e[45] = t, e[46] = c, e[47] = y, e[48] = o, e[49] = b, e[50] = k) : k = e[50], k;
|
|
2314
2392
|
}
|
|
2315
|
-
function
|
|
2393
|
+
function zn(r) {
|
|
2316
2394
|
return r?.isLoaded;
|
|
2317
2395
|
}
|
|
2318
|
-
function
|
|
2396
|
+
function Gn(r) {
|
|
2319
2397
|
return r.updateViewPort;
|
|
2320
2398
|
}
|
|
2321
|
-
function
|
|
2399
|
+
function Kn(r) {
|
|
2322
2400
|
return r.setLayersLoad;
|
|
2323
2401
|
}
|
|
2324
|
-
function
|
|
2402
|
+
function Zn(r) {
|
|
2325
2403
|
return r.setLoad;
|
|
2326
2404
|
}
|
|
2327
|
-
function
|
|
2405
|
+
function Qn(r) {
|
|
2328
2406
|
return r.setViewState;
|
|
2329
2407
|
}
|
|
2330
|
-
function
|
|
2408
|
+
function Wn(r) {
|
|
2331
2409
|
return r.getDeckInstance;
|
|
2332
2410
|
}
|
|
2333
|
-
var
|
|
2334
|
-
function
|
|
2335
|
-
return
|
|
2336
|
-
var t = typeof globalThis < "u" && globalThis || typeof self < "u" && self || typeof
|
|
2411
|
+
var Te = { exports: {} }, ut;
|
|
2412
|
+
function Yn() {
|
|
2413
|
+
return ut || (ut = 1, (function(r, e) {
|
|
2414
|
+
var t = typeof globalThis < "u" && globalThis || typeof self < "u" && self || typeof Me < "u" && Me, s = (function() {
|
|
2337
2415
|
function o() {
|
|
2338
2416
|
this.fetch = !1, this.DOMException = t.DOMException;
|
|
2339
2417
|
}
|
|
2340
2418
|
return o.prototype = t, new o();
|
|
2341
|
-
}();
|
|
2419
|
+
})();
|
|
2342
2420
|
(function(o) {
|
|
2343
2421
|
(function(i) {
|
|
2344
2422
|
var a = typeof o < "u" && o || typeof self < "u" && self || // eslint-disable-next-line no-undef
|
|
2345
|
-
typeof
|
|
2423
|
+
typeof Me < "u" && Me || {}, l = {
|
|
2346
2424
|
searchParams: "URLSearchParams" in a,
|
|
2347
2425
|
iterable: "Symbol" in a && "iterator" in Symbol,
|
|
2348
|
-
blob: "FileReader" in a && "Blob" in a && function() {
|
|
2426
|
+
blob: "FileReader" in a && "Blob" in a && (function() {
|
|
2349
2427
|
try {
|
|
2350
2428
|
return new Blob(), !0;
|
|
2351
2429
|
} catch {
|
|
2352
2430
|
return !1;
|
|
2353
2431
|
}
|
|
2354
|
-
}(),
|
|
2432
|
+
})(),
|
|
2355
2433
|
formData: "FormData" in a,
|
|
2356
2434
|
arrayBuffer: "ArrayBuffer" in a
|
|
2357
2435
|
};
|
|
2358
|
-
function
|
|
2436
|
+
function c(d) {
|
|
2359
2437
|
return d && DataView.prototype.isPrototypeOf(d);
|
|
2360
2438
|
}
|
|
2361
|
-
if (
|
|
2362
|
-
var
|
|
2439
|
+
if (l.arrayBuffer)
|
|
2440
|
+
var h = [
|
|
2363
2441
|
"[object Int8Array]",
|
|
2364
2442
|
"[object Uint8Array]",
|
|
2365
2443
|
"[object Uint8ClampedArray]",
|
|
@@ -2369,8 +2447,8 @@ function In() {
|
|
|
2369
2447
|
"[object Uint32Array]",
|
|
2370
2448
|
"[object Float32Array]",
|
|
2371
2449
|
"[object Float64Array]"
|
|
2372
|
-
],
|
|
2373
|
-
return d &&
|
|
2450
|
+
], y = ArrayBuffer.isView || function(d) {
|
|
2451
|
+
return d && h.indexOf(Object.prototype.toString.call(d)) > -1;
|
|
2374
2452
|
};
|
|
2375
2453
|
function g(d) {
|
|
2376
2454
|
if (typeof d != "string" && (d = String(d)), /[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(d) || d === "")
|
|
@@ -2380,20 +2458,20 @@ function In() {
|
|
|
2380
2458
|
function p(d) {
|
|
2381
2459
|
return typeof d != "string" && (d = String(d)), d;
|
|
2382
2460
|
}
|
|
2383
|
-
function
|
|
2461
|
+
function b(d) {
|
|
2384
2462
|
var S = {
|
|
2385
2463
|
next: function() {
|
|
2386
|
-
var
|
|
2387
|
-
return { done:
|
|
2464
|
+
var L = d.shift();
|
|
2465
|
+
return { done: L === void 0, value: L };
|
|
2388
2466
|
}
|
|
2389
2467
|
};
|
|
2390
|
-
return
|
|
2468
|
+
return l.iterable && (S[Symbol.iterator] = function() {
|
|
2391
2469
|
return S;
|
|
2392
2470
|
}), S;
|
|
2393
2471
|
}
|
|
2394
2472
|
function m(d) {
|
|
2395
|
-
this.map = {}, d instanceof m ? d.forEach(function(S,
|
|
2396
|
-
this.append(
|
|
2473
|
+
this.map = {}, d instanceof m ? d.forEach(function(S, L) {
|
|
2474
|
+
this.append(L, S);
|
|
2397
2475
|
}, this) : Array.isArray(d) ? d.forEach(function(S) {
|
|
2398
2476
|
if (S.length != 2)
|
|
2399
2477
|
throw new TypeError("Headers constructor: expected name/value pair to be length 2, found" + S.length);
|
|
@@ -2404,8 +2482,8 @@ function In() {
|
|
|
2404
2482
|
}
|
|
2405
2483
|
m.prototype.append = function(d, S) {
|
|
2406
2484
|
d = g(d), S = p(S);
|
|
2407
|
-
var
|
|
2408
|
-
this.map[d] =
|
|
2485
|
+
var L = this.map[d];
|
|
2486
|
+
this.map[d] = L ? L + ", " + S : S;
|
|
2409
2487
|
}, m.prototype.delete = function(d) {
|
|
2410
2488
|
delete this.map[g(d)];
|
|
2411
2489
|
}, m.prototype.get = function(d) {
|
|
@@ -2415,24 +2493,24 @@ function In() {
|
|
|
2415
2493
|
}, m.prototype.set = function(d, S) {
|
|
2416
2494
|
this.map[g(d)] = p(S);
|
|
2417
2495
|
}, m.prototype.forEach = function(d, S) {
|
|
2418
|
-
for (var
|
|
2419
|
-
this.map.hasOwnProperty(
|
|
2496
|
+
for (var L in this.map)
|
|
2497
|
+
this.map.hasOwnProperty(L) && d.call(S, this.map[L], L, this);
|
|
2420
2498
|
}, m.prototype.keys = function() {
|
|
2421
2499
|
var d = [];
|
|
2422
|
-
return this.forEach(function(S,
|
|
2423
|
-
d.push(
|
|
2424
|
-
}),
|
|
2500
|
+
return this.forEach(function(S, L) {
|
|
2501
|
+
d.push(L);
|
|
2502
|
+
}), b(d);
|
|
2425
2503
|
}, m.prototype.values = function() {
|
|
2426
2504
|
var d = [];
|
|
2427
2505
|
return this.forEach(function(S) {
|
|
2428
2506
|
d.push(S);
|
|
2429
|
-
}),
|
|
2507
|
+
}), b(d);
|
|
2430
2508
|
}, m.prototype.entries = function() {
|
|
2431
2509
|
var d = [];
|
|
2432
|
-
return this.forEach(function(S,
|
|
2433
|
-
d.push([
|
|
2434
|
-
}),
|
|
2435
|
-
},
|
|
2510
|
+
return this.forEach(function(S, L) {
|
|
2511
|
+
d.push([L, S]);
|
|
2512
|
+
}), b(d);
|
|
2513
|
+
}, l.iterable && (m.prototype[Symbol.iterator] = m.prototype.entries);
|
|
2436
2514
|
function w(d) {
|
|
2437
2515
|
if (!d._noBody) {
|
|
2438
2516
|
if (d.bodyUsed)
|
|
@@ -2441,26 +2519,26 @@ function In() {
|
|
|
2441
2519
|
}
|
|
2442
2520
|
}
|
|
2443
2521
|
function u(d) {
|
|
2444
|
-
return new Promise(function(S,
|
|
2522
|
+
return new Promise(function(S, L) {
|
|
2445
2523
|
d.onload = function() {
|
|
2446
2524
|
S(d.result);
|
|
2447
2525
|
}, d.onerror = function() {
|
|
2448
|
-
|
|
2526
|
+
L(d.error);
|
|
2449
2527
|
};
|
|
2450
2528
|
});
|
|
2451
2529
|
}
|
|
2452
2530
|
function f(d) {
|
|
2453
|
-
var S = new FileReader(),
|
|
2454
|
-
return S.readAsArrayBuffer(d),
|
|
2531
|
+
var S = new FileReader(), L = u(S);
|
|
2532
|
+
return S.readAsArrayBuffer(d), L;
|
|
2455
2533
|
}
|
|
2456
|
-
function
|
|
2457
|
-
var S = new FileReader(),
|
|
2458
|
-
return S.readAsText(d, k),
|
|
2534
|
+
function v(d) {
|
|
2535
|
+
var S = new FileReader(), L = u(S), C = /charset=([A-Za-z0-9_-]+)/.exec(d.type), k = C ? C[1] : "utf-8";
|
|
2536
|
+
return S.readAsText(d, k), L;
|
|
2459
2537
|
}
|
|
2460
2538
|
function _(d) {
|
|
2461
|
-
for (var S = new Uint8Array(d),
|
|
2462
|
-
|
|
2463
|
-
return
|
|
2539
|
+
for (var S = new Uint8Array(d), L = new Array(S.length), C = 0; C < S.length; C++)
|
|
2540
|
+
L[C] = String.fromCharCode(S[C]);
|
|
2541
|
+
return L.join("");
|
|
2464
2542
|
}
|
|
2465
2543
|
function M(d) {
|
|
2466
2544
|
if (d.slice)
|
|
@@ -2470,8 +2548,8 @@ function In() {
|
|
|
2470
2548
|
}
|
|
2471
2549
|
function P() {
|
|
2472
2550
|
return this.bodyUsed = !1, this._initBody = function(d) {
|
|
2473
|
-
this.bodyUsed = this.bodyUsed, this._bodyInit = d, d ? typeof d == "string" ? this._bodyText = d :
|
|
2474
|
-
},
|
|
2551
|
+
this.bodyUsed = this.bodyUsed, this._bodyInit = d, d ? typeof d == "string" ? this._bodyText = d : l.blob && Blob.prototype.isPrototypeOf(d) ? this._bodyBlob = d : l.formData && FormData.prototype.isPrototypeOf(d) ? this._bodyFormData = d : l.searchParams && URLSearchParams.prototype.isPrototypeOf(d) ? this._bodyText = d.toString() : l.arrayBuffer && l.blob && c(d) ? (this._bodyArrayBuffer = M(d.buffer), this._bodyInit = new Blob([this._bodyArrayBuffer])) : l.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(d) || y(d)) ? this._bodyArrayBuffer = M(d) : this._bodyText = d = Object.prototype.toString.call(d) : (this._noBody = !0, this._bodyText = ""), this.headers.get("content-type") || (typeof d == "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(d) && this.headers.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8"));
|
|
2552
|
+
}, l.blob && (this.blob = function() {
|
|
2475
2553
|
var d = w(this);
|
|
2476
2554
|
if (d)
|
|
2477
2555
|
return d;
|
|
@@ -2492,7 +2570,7 @@ function In() {
|
|
|
2492
2570
|
)
|
|
2493
2571
|
) : Promise.resolve(this._bodyArrayBuffer));
|
|
2494
2572
|
} else {
|
|
2495
|
-
if (
|
|
2573
|
+
if (l.blob)
|
|
2496
2574
|
return this.blob().then(f);
|
|
2497
2575
|
throw new Error("could not read as ArrayBuffer");
|
|
2498
2576
|
}
|
|
@@ -2501,42 +2579,42 @@ function In() {
|
|
|
2501
2579
|
if (d)
|
|
2502
2580
|
return d;
|
|
2503
2581
|
if (this._bodyBlob)
|
|
2504
|
-
return
|
|
2582
|
+
return v(this._bodyBlob);
|
|
2505
2583
|
if (this._bodyArrayBuffer)
|
|
2506
2584
|
return Promise.resolve(_(this._bodyArrayBuffer));
|
|
2507
2585
|
if (this._bodyFormData)
|
|
2508
2586
|
throw new Error("could not read FormData body as text");
|
|
2509
2587
|
return Promise.resolve(this._bodyText);
|
|
2510
|
-
},
|
|
2511
|
-
return this.text().then(
|
|
2588
|
+
}, l.formData && (this.formData = function() {
|
|
2589
|
+
return this.text().then(q);
|
|
2512
2590
|
}), this.json = function() {
|
|
2513
2591
|
return this.text().then(JSON.parse);
|
|
2514
2592
|
}, this;
|
|
2515
2593
|
}
|
|
2516
|
-
var
|
|
2517
|
-
function
|
|
2594
|
+
var A = ["CONNECT", "DELETE", "GET", "HEAD", "OPTIONS", "PATCH", "POST", "PUT", "TRACE"];
|
|
2595
|
+
function I(d) {
|
|
2518
2596
|
var S = d.toUpperCase();
|
|
2519
|
-
return
|
|
2597
|
+
return A.indexOf(S) > -1 ? S : d;
|
|
2520
2598
|
}
|
|
2521
|
-
function
|
|
2522
|
-
if (!(this instanceof
|
|
2599
|
+
function R(d, S) {
|
|
2600
|
+
if (!(this instanceof R))
|
|
2523
2601
|
throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');
|
|
2524
2602
|
S = S || {};
|
|
2525
|
-
var
|
|
2526
|
-
if (d instanceof
|
|
2603
|
+
var L = S.body;
|
|
2604
|
+
if (d instanceof R) {
|
|
2527
2605
|
if (d.bodyUsed)
|
|
2528
2606
|
throw new TypeError("Already read");
|
|
2529
|
-
this.url = d.url, this.credentials = d.credentials, S.headers || (this.headers = new m(d.headers)), this.method = d.method, this.mode = d.mode, this.signal = d.signal, !
|
|
2607
|
+
this.url = d.url, this.credentials = d.credentials, S.headers || (this.headers = new m(d.headers)), this.method = d.method, this.mode = d.mode, this.signal = d.signal, !L && d._bodyInit != null && (L = d._bodyInit, d.bodyUsed = !0);
|
|
2530
2608
|
} else
|
|
2531
2609
|
this.url = String(d);
|
|
2532
|
-
if (this.credentials = S.credentials || this.credentials || "same-origin", (S.headers || !this.headers) && (this.headers = new m(S.headers)), this.method =
|
|
2610
|
+
if (this.credentials = S.credentials || this.credentials || "same-origin", (S.headers || !this.headers) && (this.headers = new m(S.headers)), this.method = I(S.method || this.method || "GET"), this.mode = S.mode || this.mode || null, this.signal = S.signal || this.signal || (function() {
|
|
2533
2611
|
if ("AbortController" in a) {
|
|
2534
|
-
var
|
|
2535
|
-
return
|
|
2612
|
+
var E = new AbortController();
|
|
2613
|
+
return E.signal;
|
|
2536
2614
|
}
|
|
2537
|
-
}(), this.referrer = null, (this.method === "GET" || this.method === "HEAD") &&
|
|
2615
|
+
})(), this.referrer = null, (this.method === "GET" || this.method === "HEAD") && L)
|
|
2538
2616
|
throw new TypeError("Body not allowed for GET or HEAD requests");
|
|
2539
|
-
if (this._initBody(
|
|
2617
|
+
if (this._initBody(L), (this.method === "GET" || this.method === "HEAD") && (S.cache === "no-store" || S.cache === "no-cache")) {
|
|
2540
2618
|
var C = /([?&])_=[^&]*/;
|
|
2541
2619
|
if (C.test(this.url))
|
|
2542
2620
|
this.url = this.url.replace(C, "$1_=" + (/* @__PURE__ */ new Date()).getTime());
|
|
@@ -2546,154 +2624,154 @@ function In() {
|
|
|
2546
2624
|
}
|
|
2547
2625
|
}
|
|
2548
2626
|
}
|
|
2549
|
-
|
|
2550
|
-
return new
|
|
2627
|
+
R.prototype.clone = function() {
|
|
2628
|
+
return new R(this, { body: this._bodyInit });
|
|
2551
2629
|
};
|
|
2552
|
-
function
|
|
2630
|
+
function q(d) {
|
|
2553
2631
|
var S = new FormData();
|
|
2554
|
-
return d.trim().split("&").forEach(function(
|
|
2555
|
-
if (
|
|
2556
|
-
var C =
|
|
2557
|
-
S.append(decodeURIComponent(k), decodeURIComponent(
|
|
2632
|
+
return d.trim().split("&").forEach(function(L) {
|
|
2633
|
+
if (L) {
|
|
2634
|
+
var C = L.split("="), k = C.shift().replace(/\+/g, " "), E = C.join("=").replace(/\+/g, " ");
|
|
2635
|
+
S.append(decodeURIComponent(k), decodeURIComponent(E));
|
|
2558
2636
|
}
|
|
2559
2637
|
}), S;
|
|
2560
2638
|
}
|
|
2561
|
-
function
|
|
2562
|
-
var S = new m(),
|
|
2563
|
-
return
|
|
2639
|
+
function j(d) {
|
|
2640
|
+
var S = new m(), L = d.replace(/\r?\n[\t ]+/g, " ");
|
|
2641
|
+
return L.split("\r").map(function(C) {
|
|
2564
2642
|
return C.indexOf(`
|
|
2565
2643
|
`) === 0 ? C.substr(1, C.length) : C;
|
|
2566
2644
|
}).forEach(function(C) {
|
|
2567
|
-
var k = C.split(":"),
|
|
2568
|
-
if (
|
|
2569
|
-
var
|
|
2645
|
+
var k = C.split(":"), E = k.shift().trim();
|
|
2646
|
+
if (E) {
|
|
2647
|
+
var V = k.join(":").trim();
|
|
2570
2648
|
try {
|
|
2571
|
-
S.append(
|
|
2572
|
-
} catch (
|
|
2573
|
-
console.warn("Response " +
|
|
2649
|
+
S.append(E, V);
|
|
2650
|
+
} catch (B) {
|
|
2651
|
+
console.warn("Response " + B.message);
|
|
2574
2652
|
}
|
|
2575
2653
|
}
|
|
2576
2654
|
}), S;
|
|
2577
2655
|
}
|
|
2578
|
-
P.call(
|
|
2579
|
-
function
|
|
2580
|
-
if (!(this instanceof
|
|
2656
|
+
P.call(R.prototype);
|
|
2657
|
+
function D(d, S) {
|
|
2658
|
+
if (!(this instanceof D))
|
|
2581
2659
|
throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');
|
|
2582
2660
|
if (S || (S = {}), this.type = "default", this.status = S.status === void 0 ? 200 : S.status, this.status < 200 || this.status > 599)
|
|
2583
2661
|
throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");
|
|
2584
2662
|
this.ok = this.status >= 200 && this.status < 300, this.statusText = S.statusText === void 0 ? "" : "" + S.statusText, this.headers = new m(S.headers), this.url = S.url || "", this._initBody(d);
|
|
2585
2663
|
}
|
|
2586
|
-
P.call(
|
|
2587
|
-
return new
|
|
2664
|
+
P.call(D.prototype), D.prototype.clone = function() {
|
|
2665
|
+
return new D(this._bodyInit, {
|
|
2588
2666
|
status: this.status,
|
|
2589
2667
|
statusText: this.statusText,
|
|
2590
2668
|
headers: new m(this.headers),
|
|
2591
2669
|
url: this.url
|
|
2592
2670
|
});
|
|
2593
|
-
},
|
|
2594
|
-
var d = new
|
|
2671
|
+
}, D.error = function() {
|
|
2672
|
+
var d = new D(null, { status: 200, statusText: "" });
|
|
2595
2673
|
return d.ok = !1, d.status = 0, d.type = "error", d;
|
|
2596
2674
|
};
|
|
2597
|
-
var
|
|
2598
|
-
|
|
2599
|
-
if (
|
|
2675
|
+
var T = [301, 302, 303, 307, 308];
|
|
2676
|
+
D.redirect = function(d, S) {
|
|
2677
|
+
if (T.indexOf(S) === -1)
|
|
2600
2678
|
throw new RangeError("Invalid status code");
|
|
2601
|
-
return new
|
|
2679
|
+
return new D(null, { status: S, headers: { location: d } });
|
|
2602
2680
|
}, i.DOMException = a.DOMException;
|
|
2603
2681
|
try {
|
|
2604
2682
|
new i.DOMException();
|
|
2605
2683
|
} catch {
|
|
2606
|
-
i.DOMException = function(S,
|
|
2607
|
-
this.message = S, this.name =
|
|
2684
|
+
i.DOMException = function(S, L) {
|
|
2685
|
+
this.message = S, this.name = L;
|
|
2608
2686
|
var C = Error(S);
|
|
2609
2687
|
this.stack = C.stack;
|
|
2610
2688
|
}, i.DOMException.prototype = Object.create(Error.prototype), i.DOMException.prototype.constructor = i.DOMException;
|
|
2611
2689
|
}
|
|
2612
|
-
function
|
|
2613
|
-
return new Promise(function(
|
|
2614
|
-
var k = new
|
|
2690
|
+
function O(d, S) {
|
|
2691
|
+
return new Promise(function(L, C) {
|
|
2692
|
+
var k = new R(d, S);
|
|
2615
2693
|
if (k.signal && k.signal.aborted)
|
|
2616
2694
|
return C(new i.DOMException("Aborted", "AbortError"));
|
|
2617
|
-
var
|
|
2618
|
-
function
|
|
2619
|
-
|
|
2695
|
+
var E = new XMLHttpRequest();
|
|
2696
|
+
function V() {
|
|
2697
|
+
E.abort();
|
|
2620
2698
|
}
|
|
2621
|
-
|
|
2622
|
-
var
|
|
2623
|
-
statusText:
|
|
2624
|
-
headers:
|
|
2699
|
+
E.onload = function() {
|
|
2700
|
+
var U = {
|
|
2701
|
+
statusText: E.statusText,
|
|
2702
|
+
headers: j(E.getAllResponseHeaders() || "")
|
|
2625
2703
|
};
|
|
2626
|
-
k.url.indexOf("file://") === 0 && (
|
|
2627
|
-
var
|
|
2704
|
+
k.url.indexOf("file://") === 0 && (E.status < 200 || E.status > 599) ? U.status = 200 : U.status = E.status, U.url = "responseURL" in E ? E.responseURL : U.headers.get("X-Request-URL");
|
|
2705
|
+
var z = "response" in E ? E.response : E.responseText;
|
|
2628
2706
|
setTimeout(function() {
|
|
2629
|
-
|
|
2707
|
+
L(new D(z, U));
|
|
2630
2708
|
}, 0);
|
|
2631
|
-
},
|
|
2709
|
+
}, E.onerror = function() {
|
|
2632
2710
|
setTimeout(function() {
|
|
2633
2711
|
C(new TypeError("Network request failed"));
|
|
2634
2712
|
}, 0);
|
|
2635
|
-
},
|
|
2713
|
+
}, E.ontimeout = function() {
|
|
2636
2714
|
setTimeout(function() {
|
|
2637
2715
|
C(new TypeError("Network request timed out"));
|
|
2638
2716
|
}, 0);
|
|
2639
|
-
},
|
|
2717
|
+
}, E.onabort = function() {
|
|
2640
2718
|
setTimeout(function() {
|
|
2641
2719
|
C(new i.DOMException("Aborted", "AbortError"));
|
|
2642
2720
|
}, 0);
|
|
2643
2721
|
};
|
|
2644
|
-
function
|
|
2722
|
+
function B(U) {
|
|
2645
2723
|
try {
|
|
2646
|
-
return
|
|
2724
|
+
return U === "" && a.location.href ? a.location.href : U;
|
|
2647
2725
|
} catch {
|
|
2648
|
-
return
|
|
2726
|
+
return U;
|
|
2649
2727
|
}
|
|
2650
2728
|
}
|
|
2651
|
-
if (
|
|
2729
|
+
if (E.open(k.method, B(k.url), !0), k.credentials === "include" ? E.withCredentials = !0 : k.credentials === "omit" && (E.withCredentials = !1), "responseType" in E && (l.blob ? E.responseType = "blob" : l.arrayBuffer && (E.responseType = "arraybuffer")), S && typeof S.headers == "object" && !(S.headers instanceof m || a.Headers && S.headers instanceof a.Headers)) {
|
|
2652
2730
|
var H = [];
|
|
2653
|
-
Object.getOwnPropertyNames(S.headers).forEach(function(
|
|
2654
|
-
H.push(g(
|
|
2655
|
-
}), k.headers.forEach(function(
|
|
2656
|
-
H.indexOf(
|
|
2731
|
+
Object.getOwnPropertyNames(S.headers).forEach(function(U) {
|
|
2732
|
+
H.push(g(U)), E.setRequestHeader(U, p(S.headers[U]));
|
|
2733
|
+
}), k.headers.forEach(function(U, z) {
|
|
2734
|
+
H.indexOf(z) === -1 && E.setRequestHeader(z, U);
|
|
2657
2735
|
});
|
|
2658
2736
|
} else
|
|
2659
|
-
k.headers.forEach(function(
|
|
2660
|
-
|
|
2737
|
+
k.headers.forEach(function(U, z) {
|
|
2738
|
+
E.setRequestHeader(z, U);
|
|
2661
2739
|
});
|
|
2662
|
-
k.signal && (k.signal.addEventListener("abort",
|
|
2663
|
-
|
|
2664
|
-
}),
|
|
2740
|
+
k.signal && (k.signal.addEventListener("abort", V), E.onreadystatechange = function() {
|
|
2741
|
+
E.readyState === 4 && k.signal.removeEventListener("abort", V);
|
|
2742
|
+
}), E.send(typeof k._bodyInit > "u" ? null : k._bodyInit);
|
|
2665
2743
|
});
|
|
2666
2744
|
}
|
|
2667
|
-
return
|
|
2745
|
+
return O.polyfill = !0, a.fetch || (a.fetch = O, a.Headers = m, a.Request = R, a.Response = D), i.Headers = m, i.Request = R, i.Response = D, i.fetch = O, i;
|
|
2668
2746
|
})({});
|
|
2669
2747
|
})(s), s.fetch.ponyfill = !0, delete s.fetch.polyfill;
|
|
2670
2748
|
var n = t.fetch ? t : s;
|
|
2671
2749
|
e = n.fetch, e.default = n.fetch, e.fetch = n.fetch, e.Headers = n.Headers, e.Request = n.Request, e.Response = n.Response, r.exports = e;
|
|
2672
|
-
}(
|
|
2750
|
+
})(Te, Te.exports)), Te.exports;
|
|
2673
2751
|
}
|
|
2674
|
-
var
|
|
2675
|
-
const
|
|
2752
|
+
var Jn = Yn();
|
|
2753
|
+
const Xn = /* @__PURE__ */ Et(Jn), Ze = "https://gcp-us-east1.api.carto.com", Qe = "v3", er = "ps", he = {
|
|
2676
2754
|
get: "GET",
|
|
2677
2755
|
post: "POST"
|
|
2678
2756
|
};
|
|
2679
|
-
function
|
|
2757
|
+
function tr(r, e) {
|
|
2680
2758
|
return Array.isArray(e) ? `${r}=${encodeURIComponent(JSON.stringify(e))}` : e == null || e === "" ? "" : typeof e == "object" ? `${r}=${encodeURIComponent(JSON.stringify(e))}` : `${r}=${encodeURIComponent(e)}`;
|
|
2681
2759
|
}
|
|
2682
|
-
function
|
|
2760
|
+
function sr({
|
|
2683
2761
|
params: r,
|
|
2684
2762
|
url: e
|
|
2685
2763
|
}) {
|
|
2686
2764
|
if (!r) return e;
|
|
2687
|
-
const t = Object.entries(r).map(([s, n]) =>
|
|
2765
|
+
const t = Object.entries(r).map(([s, n]) => tr(s, n));
|
|
2688
2766
|
return `${e}?${t.filter(Boolean).join("&")}`;
|
|
2689
2767
|
}
|
|
2690
|
-
function
|
|
2768
|
+
function nr(r) {
|
|
2691
2769
|
return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
|
|
2692
2770
|
}
|
|
2693
|
-
var
|
|
2694
|
-
function
|
|
2695
|
-
if (
|
|
2696
|
-
|
|
2771
|
+
var Be, dt;
|
|
2772
|
+
function rr() {
|
|
2773
|
+
if (dt) return Be;
|
|
2774
|
+
dt = 1;
|
|
2697
2775
|
var r = function(u) {
|
|
2698
2776
|
return e(u) && !t(u);
|
|
2699
2777
|
};
|
|
@@ -2714,23 +2792,23 @@ function Qn() {
|
|
|
2714
2792
|
function a(u, f) {
|
|
2715
2793
|
return f.clone !== !1 && f.isMergeableObject(u) ? m(i(u), u, f) : u;
|
|
2716
2794
|
}
|
|
2717
|
-
function
|
|
2795
|
+
function l(u, f, v) {
|
|
2718
2796
|
return u.concat(f).map(function(_) {
|
|
2719
|
-
return a(_,
|
|
2797
|
+
return a(_, v);
|
|
2720
2798
|
});
|
|
2721
2799
|
}
|
|
2722
|
-
function
|
|
2800
|
+
function c(u, f) {
|
|
2723
2801
|
if (!f.customMerge) return m;
|
|
2724
|
-
var
|
|
2725
|
-
return typeof
|
|
2802
|
+
var v = f.customMerge(u);
|
|
2803
|
+
return typeof v == "function" ? v : m;
|
|
2726
2804
|
}
|
|
2727
|
-
function
|
|
2805
|
+
function h(u) {
|
|
2728
2806
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(u).filter(function(f) {
|
|
2729
2807
|
return Object.propertyIsEnumerable.call(u, f);
|
|
2730
2808
|
}) : [];
|
|
2731
2809
|
}
|
|
2732
|
-
function
|
|
2733
|
-
return Object.keys(u).concat(
|
|
2810
|
+
function y(u) {
|
|
2811
|
+
return Object.keys(u).concat(h(u));
|
|
2734
2812
|
}
|
|
2735
2813
|
function g(u, f) {
|
|
2736
2814
|
try {
|
|
@@ -2742,41 +2820,41 @@ function Qn() {
|
|
|
2742
2820
|
function p(u, f) {
|
|
2743
2821
|
return g(u, f) && !(Object.hasOwnProperty.call(u, f) && Object.propertyIsEnumerable.call(u, f));
|
|
2744
2822
|
}
|
|
2745
|
-
function
|
|
2823
|
+
function b(u, f, v) {
|
|
2746
2824
|
var _ = {};
|
|
2747
|
-
return
|
|
2748
|
-
_[M] = a(u[M],
|
|
2749
|
-
}),
|
|
2750
|
-
p(u, M) || (g(u, M) &&
|
|
2825
|
+
return v.isMergeableObject(u) && y(u).forEach(function(M) {
|
|
2826
|
+
_[M] = a(u[M], v);
|
|
2827
|
+
}), y(f).forEach(function(M) {
|
|
2828
|
+
p(u, M) || (g(u, M) && v.isMergeableObject(f[M]) ? _[M] = c(M, v)(u[M], f[M], v) : _[M] = a(f[M], v));
|
|
2751
2829
|
}), _;
|
|
2752
2830
|
}
|
|
2753
|
-
function m(u, f,
|
|
2754
|
-
|
|
2831
|
+
function m(u, f, v) {
|
|
2832
|
+
v = v || {}, v.arrayMerge = v.arrayMerge || l, v.isMergeableObject = v.isMergeableObject || r, v.cloneUnlessOtherwiseSpecified = a;
|
|
2755
2833
|
var _ = Array.isArray(f), M = Array.isArray(u), P = _ === M;
|
|
2756
|
-
return P ? _ ?
|
|
2834
|
+
return P ? _ ? v.arrayMerge(u, f, v) : b(u, f, v) : a(f, v);
|
|
2757
2835
|
}
|
|
2758
2836
|
m.all = function(u, f) {
|
|
2759
2837
|
if (!Array.isArray(u)) throw new Error("first argument should be an array");
|
|
2760
|
-
return u.reduce(function(
|
|
2761
|
-
return m(
|
|
2838
|
+
return u.reduce(function(v, _) {
|
|
2839
|
+
return m(v, _, f);
|
|
2762
2840
|
}, {});
|
|
2763
2841
|
};
|
|
2764
2842
|
var w = m;
|
|
2765
|
-
return
|
|
2843
|
+
return Be = w, Be;
|
|
2766
2844
|
}
|
|
2767
|
-
var
|
|
2768
|
-
const We = /* @__PURE__ */
|
|
2769
|
-
function
|
|
2845
|
+
var or = rr();
|
|
2846
|
+
const We = /* @__PURE__ */ nr(or);
|
|
2847
|
+
function ft(r) {
|
|
2770
2848
|
return We({
|
|
2771
|
-
method:
|
|
2849
|
+
method: he.get,
|
|
2772
2850
|
headers: {
|
|
2773
2851
|
Accept: "application/json"
|
|
2774
2852
|
}
|
|
2775
2853
|
}, r);
|
|
2776
2854
|
}
|
|
2777
|
-
function
|
|
2855
|
+
function je(r, e) {
|
|
2778
2856
|
return We({
|
|
2779
|
-
method:
|
|
2857
|
+
method: he.post,
|
|
2780
2858
|
headers: {
|
|
2781
2859
|
Accept: "application/json",
|
|
2782
2860
|
"Content-Type": "application/json"
|
|
@@ -2784,21 +2862,21 @@ function Be(r, e) {
|
|
|
2784
2862
|
body: JSON.stringify(e)
|
|
2785
2863
|
}, r);
|
|
2786
2864
|
}
|
|
2787
|
-
const
|
|
2788
|
-
GET:
|
|
2789
|
-
POST:
|
|
2790
|
-
PUT:
|
|
2791
|
-
PATCH:
|
|
2792
|
-
DELETE:
|
|
2865
|
+
const ir = {
|
|
2866
|
+
GET: ft,
|
|
2867
|
+
POST: je,
|
|
2868
|
+
PUT: je,
|
|
2869
|
+
PATCH: je,
|
|
2870
|
+
DELETE: ft
|
|
2793
2871
|
};
|
|
2794
|
-
function
|
|
2872
|
+
function ar({
|
|
2795
2873
|
body: r,
|
|
2796
2874
|
accessToken: e,
|
|
2797
2875
|
method: t,
|
|
2798
2876
|
...s
|
|
2799
2877
|
}) {
|
|
2800
2878
|
let n = e;
|
|
2801
|
-
return n && !n.includes("Bearer") && (n = "Bearer " + n),
|
|
2879
|
+
return n && !n.includes("Bearer") && (n = "Bearer " + n), ir[t](We({
|
|
2802
2880
|
method: t,
|
|
2803
2881
|
headers: {
|
|
2804
2882
|
...!!n && {
|
|
@@ -2807,62 +2885,59 @@ function Jn({
|
|
|
2807
2885
|
}
|
|
2808
2886
|
}, s), r);
|
|
2809
2887
|
}
|
|
2810
|
-
const
|
|
2811
|
-
async function
|
|
2888
|
+
const lr = 6144;
|
|
2889
|
+
async function qt({
|
|
2812
2890
|
signal: r,
|
|
2813
2891
|
body: e,
|
|
2814
2892
|
accessToken: t,
|
|
2815
2893
|
credentials: s,
|
|
2816
|
-
method: n =
|
|
2894
|
+
method: n = he.get,
|
|
2817
2895
|
params: o,
|
|
2818
2896
|
url: i,
|
|
2819
2897
|
requestOptions: {
|
|
2820
2898
|
getMaxUrlLength: a
|
|
2821
2899
|
} = {
|
|
2822
|
-
getMaxUrlLength:
|
|
2900
|
+
getMaxUrlLength: lr
|
|
2823
2901
|
},
|
|
2824
|
-
...
|
|
2902
|
+
...l
|
|
2825
2903
|
}) {
|
|
2826
|
-
let
|
|
2904
|
+
let c = sr({
|
|
2827
2905
|
url: i,
|
|
2828
2906
|
params: o
|
|
2829
|
-
}),
|
|
2830
|
-
n ===
|
|
2831
|
-
const g =
|
|
2832
|
-
body:
|
|
2907
|
+
}), h = e, y = n;
|
|
2908
|
+
n === he.get && c.length > a && (h = o, y = he.post, c = i);
|
|
2909
|
+
const g = ar({
|
|
2910
|
+
body: h,
|
|
2833
2911
|
accessToken: t ?? s?.accessToken,
|
|
2834
|
-
method:
|
|
2835
|
-
...
|
|
2912
|
+
method: y,
|
|
2913
|
+
...l
|
|
2836
2914
|
});
|
|
2837
2915
|
r && (g.signal = r);
|
|
2838
|
-
const p = await
|
|
2916
|
+
const p = await Xn(c, g);
|
|
2839
2917
|
if (!p.ok) {
|
|
2840
|
-
const
|
|
2841
|
-
throw new Error(
|
|
2918
|
+
const b = await p.text();
|
|
2919
|
+
throw new Error(b);
|
|
2842
2920
|
}
|
|
2843
2921
|
return p.status === 204 ? Promise.resolve() : await p.json();
|
|
2844
2922
|
}
|
|
2845
|
-
const
|
|
2923
|
+
const ke = ht()(ws((r, e) => ({
|
|
2846
2924
|
sources: {},
|
|
2847
2925
|
filters: {},
|
|
2848
2926
|
setSource: (t, s) => r((n) => {
|
|
2849
2927
|
const o = {
|
|
2850
2928
|
...n.sources
|
|
2851
2929
|
}, i = o[t]?.widgets;
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
const a = o[t], c = {
|
|
2857
|
-
apiBaseUrl: ze,
|
|
2858
|
-
clientId: Gn,
|
|
2930
|
+
i && (i.destroy(), delete o[t].widgets);
|
|
2931
|
+
const a = o[t], l = {
|
|
2932
|
+
apiBaseUrl: Ze,
|
|
2933
|
+
clientId: er,
|
|
2859
2934
|
apiVersion: Qe,
|
|
2860
2935
|
...a,
|
|
2861
2936
|
...s
|
|
2862
|
-
}
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
|
|
2937
|
+
};
|
|
2938
|
+
return l.widgets = fr({
|
|
2939
|
+
source: l
|
|
2940
|
+
}), o[t] = l, {
|
|
2866
2941
|
sources: o
|
|
2867
2942
|
};
|
|
2868
2943
|
}, void 0, "setSource"),
|
|
@@ -2875,13 +2950,12 @@ const Le = yt()(hs((r, e) => ({
|
|
|
2875
2950
|
};
|
|
2876
2951
|
}, void 0, "removeSource"),
|
|
2877
2952
|
setFilters: (t, s) => r((n) => {
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
return s.length !== 0 && (o = s.reduce((a, c) => !("values" in c) || !c.values?.length ? Je(a, c) : _t(a, c), i)), {
|
|
2953
|
+
const o = n.filters[t] ?? {}, i = s.reduce((a, l) => Mt(a, l), o);
|
|
2954
|
+
return {
|
|
2881
2955
|
filters: {
|
|
2882
2956
|
...n.filters,
|
|
2883
2957
|
[t]: {
|
|
2884
|
-
...
|
|
2958
|
+
...i
|
|
2885
2959
|
}
|
|
2886
2960
|
// important: destructuring here to not conservere the reference to the same object
|
|
2887
2961
|
}
|
|
@@ -2892,7 +2966,7 @@ const Le = yt()(hs((r, e) => ({
|
|
|
2892
2966
|
if (!i)
|
|
2893
2967
|
return o;
|
|
2894
2968
|
let a = {};
|
|
2895
|
-
return s && (a =
|
|
2969
|
+
return s && (a = ps(i, {
|
|
2896
2970
|
column: s,
|
|
2897
2971
|
owner: n
|
|
2898
2972
|
})), {
|
|
@@ -2923,24 +2997,24 @@ const Le = yt()(hs((r, e) => ({
|
|
|
2923
2997
|
}, s);
|
|
2924
2998
|
}
|
|
2925
2999
|
})));
|
|
2926
|
-
function
|
|
2927
|
-
const e =
|
|
3000
|
+
function cr(r) {
|
|
3001
|
+
const e = F(2);
|
|
2928
3002
|
let t;
|
|
2929
|
-
return e[0] !== r ? (t = (s) => s.sources[r], e[0] = r, e[1] = t) : t = e[1],
|
|
3003
|
+
return e[0] !== r ? (t = (s) => s.sources[r], e[0] = r, e[1] = t) : t = e[1], ke(t);
|
|
2930
3004
|
}
|
|
2931
|
-
function
|
|
2932
|
-
const e =
|
|
3005
|
+
function ur(r) {
|
|
3006
|
+
const e = F(2);
|
|
2933
3007
|
let t;
|
|
2934
|
-
return e[0] !== r ? (t = (s) => s.filters[r], e[0] = r, e[1] = t) : t = e[1],
|
|
3008
|
+
return e[0] !== r ? (t = (s) => s.filters[r], e[0] = r, e[1] = t) : t = e[1], ke(t);
|
|
2935
3009
|
}
|
|
2936
|
-
function
|
|
2937
|
-
const e =
|
|
3010
|
+
function bo(r) {
|
|
3011
|
+
const e = F(9);
|
|
2938
3012
|
let t;
|
|
2939
3013
|
e[0] !== r ? (t = (a) => a.sources[r], e[0] = r, e[1] = t) : t = e[1];
|
|
2940
|
-
const s =
|
|
3014
|
+
const s = ke(t);
|
|
2941
3015
|
let n;
|
|
2942
3016
|
e[2] !== r ? (n = (a) => a.filters[r], e[2] = r, e[3] = n) : n = e[3];
|
|
2943
|
-
const o =
|
|
3017
|
+
const o = ke(n);
|
|
2944
3018
|
let i;
|
|
2945
3019
|
e: {
|
|
2946
3020
|
if (!s) {
|
|
@@ -2949,37 +3023,37 @@ function lo(r) {
|
|
|
2949
3023
|
}
|
|
2950
3024
|
let a;
|
|
2951
3025
|
e[4] !== o ? (a = o ?? {}, e[4] = o, e[5] = a) : a = e[5];
|
|
2952
|
-
let
|
|
2953
|
-
e[6] !== s || e[7] !== a ? (
|
|
3026
|
+
let l;
|
|
3027
|
+
e[6] !== s || e[7] !== a ? (l = {
|
|
2954
3028
|
...s,
|
|
2955
3029
|
filters: a
|
|
2956
|
-
}, e[6] = s, e[7] = a, e[8] =
|
|
3030
|
+
}, e[6] = s, e[7] = a, e[8] = l) : l = e[8], i = l;
|
|
2957
3031
|
}
|
|
2958
3032
|
return i;
|
|
2959
3033
|
}
|
|
2960
|
-
function
|
|
3034
|
+
function vo(r, {
|
|
2961
3035
|
column: e,
|
|
2962
3036
|
type: t
|
|
2963
3037
|
}) {
|
|
2964
3038
|
return r?.[e]?.[t]?.values ?? [];
|
|
2965
3039
|
}
|
|
2966
|
-
function
|
|
3040
|
+
function dr(r) {
|
|
2967
3041
|
const [, e] = r.type.split("+", 2);
|
|
2968
3042
|
return {
|
|
2969
3043
|
spatialDataType: r.spatialDataType ?? e ?? "geo",
|
|
2970
3044
|
spatialDataColumn: r.spatialDataColumn ?? e ?? "geom"
|
|
2971
3045
|
};
|
|
2972
3046
|
}
|
|
2973
|
-
function
|
|
3047
|
+
function fr({
|
|
2974
3048
|
source: r
|
|
2975
3049
|
}) {
|
|
2976
3050
|
const {
|
|
2977
3051
|
spatialDataType: e,
|
|
2978
3052
|
spatialDataColumn: t
|
|
2979
|
-
} =
|
|
3053
|
+
} = dr(r), s = {
|
|
2980
3054
|
query: () => {
|
|
2981
3055
|
const i = r;
|
|
2982
|
-
return new
|
|
3056
|
+
return new bs({
|
|
2983
3057
|
...i,
|
|
2984
3058
|
accessToken: "",
|
|
2985
3059
|
sqlQuery: i.data,
|
|
@@ -2989,7 +3063,7 @@ function nr({
|
|
|
2989
3063
|
},
|
|
2990
3064
|
table: () => {
|
|
2991
3065
|
const i = r;
|
|
2992
|
-
return new
|
|
3066
|
+
return new gs({
|
|
2993
3067
|
...i,
|
|
2994
3068
|
accessToken: "",
|
|
2995
3069
|
tableName: i.data,
|
|
@@ -2999,31 +3073,33 @@ function nr({
|
|
|
2999
3073
|
},
|
|
3000
3074
|
tileset: () => {
|
|
3001
3075
|
const i = r;
|
|
3002
|
-
return new
|
|
3076
|
+
return i.spatialDataBounds ? new ys({
|
|
3003
3077
|
...i,
|
|
3004
3078
|
accessToken: "",
|
|
3005
3079
|
tableName: i.data,
|
|
3006
|
-
tileFormat: i.tileFormat ??
|
|
3080
|
+
tileFormat: i.tileFormat ?? hs.BINARY,
|
|
3007
3081
|
spatialDataType: e,
|
|
3008
|
-
spatialDataColumn: t
|
|
3009
|
-
|
|
3082
|
+
spatialDataColumn: t,
|
|
3083
|
+
spatialDataBounds: i.spatialDataBounds
|
|
3084
|
+
}) : null;
|
|
3010
3085
|
},
|
|
3011
3086
|
raster: () => {
|
|
3012
3087
|
const i = r;
|
|
3013
|
-
return i.rasterMetadata ? new
|
|
3088
|
+
return !i.rasterMetadata || !i.spatialDataBounds ? null : new ms({
|
|
3014
3089
|
...i,
|
|
3015
3090
|
accessToken: "",
|
|
3016
3091
|
tableName: i.data,
|
|
3017
3092
|
spatialDataType: "quadbin",
|
|
3018
3093
|
spatialDataColumn: "quadbin",
|
|
3019
|
-
rasterMetadata: i.rasterMetadata
|
|
3020
|
-
|
|
3094
|
+
rasterMetadata: i.rasterMetadata,
|
|
3095
|
+
spatialDataBounds: i.spatialDataBounds
|
|
3096
|
+
});
|
|
3021
3097
|
}
|
|
3022
3098
|
}, n = r.type.split("+")[0], o = s[n];
|
|
3023
3099
|
return o?.();
|
|
3024
3100
|
}
|
|
3025
|
-
function
|
|
3026
|
-
const t =
|
|
3101
|
+
function pr(r, e) {
|
|
3102
|
+
const t = F(3), s = ur(r);
|
|
3027
3103
|
let n;
|
|
3028
3104
|
e: {
|
|
3029
3105
|
if (!e?.length) {
|
|
@@ -3032,53 +3108,57 @@ function rr(r, e) {
|
|
|
3032
3108
|
}
|
|
3033
3109
|
let o;
|
|
3034
3110
|
if (t[0] !== e || t[1] !== s) {
|
|
3035
|
-
const i = e.reduce(
|
|
3036
|
-
|
|
3037
|
-
t[3] !== s ? (a = s ?? {}, t[3] = s, t[4] = a) : a = t[4], o = ie(a, i), t[0] = e, t[1] = s, t[2] = o;
|
|
3111
|
+
const i = e.reduce(mr, {});
|
|
3112
|
+
o = de(s ?? {}, i), t[0] = e, t[1] = s, t[2] = o;
|
|
3038
3113
|
} else
|
|
3039
3114
|
o = t[2];
|
|
3040
3115
|
n = o;
|
|
3041
3116
|
}
|
|
3042
3117
|
return n;
|
|
3043
3118
|
}
|
|
3044
|
-
function
|
|
3045
|
-
return
|
|
3119
|
+
function mr(r, e) {
|
|
3120
|
+
return Mt(r, e);
|
|
3046
3121
|
}
|
|
3047
|
-
function
|
|
3048
|
-
const t =
|
|
3049
|
-
return
|
|
3122
|
+
function yr(r, e) {
|
|
3123
|
+
const t = cr(e);
|
|
3124
|
+
return ye(() => {
|
|
3050
3125
|
const s = t?.widgets;
|
|
3051
3126
|
return !s || !r ? null : (s.props.accessToken = r, s);
|
|
3052
3127
|
}, [r, t]);
|
|
3053
3128
|
}
|
|
3054
|
-
const
|
|
3055
|
-
function
|
|
3129
|
+
const hr = ["authorization", "cache-control"];
|
|
3130
|
+
function gr(r) {
|
|
3056
3131
|
if (!r || typeof r != "object")
|
|
3057
3132
|
return "";
|
|
3058
|
-
const e = Object.fromEntries(Object.entries(r).filter(([t]) =>
|
|
3133
|
+
const e = Object.fromEntries(Object.entries(r).filter(([t]) => hr.includes(t.toLowerCase())));
|
|
3059
3134
|
return JSON.stringify(e);
|
|
3060
3135
|
}
|
|
3061
|
-
function
|
|
3062
|
-
const e =
|
|
3136
|
+
function fe(r) {
|
|
3137
|
+
const e = F(12), {
|
|
3063
3138
|
accessToken: t,
|
|
3064
3139
|
sourceId: s,
|
|
3065
3140
|
widgetProps: n,
|
|
3066
3141
|
additionalFilter: o
|
|
3067
|
-
} = r, i =
|
|
3068
|
-
let
|
|
3069
|
-
e[0] !==
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
|
|
3142
|
+
} = r, i = pr(s, o), a = yr(t, s);
|
|
3143
|
+
let l;
|
|
3144
|
+
if (e[0] !== t || e[1] !== i || e[2] !== s || e[3] !== a || e[4] !== n) {
|
|
3145
|
+
l = [s, n], a?.props && "queryParameters" in a.props && a.props.queryParameters && l.push(a.props.queryParameters), i && l.push(i);
|
|
3146
|
+
const h = a?.props.headers;
|
|
3147
|
+
let y;
|
|
3148
|
+
e[6] !== h ? (y = gr(h), e[6] = h, e[7] = y) : y = e[7];
|
|
3149
|
+
const g = y;
|
|
3150
|
+
g && l.push(g), l.push(t), e[0] = t, e[1] = i, e[2] = s, e[3] = a, e[4] = n, e[5] = l;
|
|
3151
|
+
} else
|
|
3152
|
+
l = e[5];
|
|
3153
|
+
let c;
|
|
3154
|
+
return e[8] !== i || e[9] !== l || e[10] !== a ? (c = {
|
|
3075
3155
|
mergedFilters: i,
|
|
3076
3156
|
widgetModel: a,
|
|
3077
|
-
queryKey:
|
|
3078
|
-
}, e[
|
|
3157
|
+
queryKey: l
|
|
3158
|
+
}, e[8] = i, e[9] = l, e[10] = a, e[11] = c) : c = e[11], c;
|
|
3079
3159
|
}
|
|
3080
|
-
function
|
|
3081
|
-
const e =
|
|
3160
|
+
function br(r) {
|
|
3161
|
+
const e = F(21), {
|
|
3082
3162
|
accessToken: t,
|
|
3083
3163
|
sourceId: s,
|
|
3084
3164
|
widgetProps: n,
|
|
@@ -3087,59 +3167,59 @@ function cr(r) {
|
|
|
3087
3167
|
} = r;
|
|
3088
3168
|
let a;
|
|
3089
3169
|
e[0] !== i ? (a = i === void 0 ? {} : i, e[0] = i, e[1] = a) : a = e[1];
|
|
3090
|
-
let
|
|
3170
|
+
let l, c;
|
|
3091
3171
|
e[2] !== a ? ({
|
|
3092
|
-
enabled:
|
|
3093
|
-
...
|
|
3094
|
-
} = a, e[2] = a, e[3] =
|
|
3095
|
-
const
|
|
3096
|
-
let
|
|
3097
|
-
e[5] !== t || e[6] !== o || e[7] !== s || e[8] !== n ? (
|
|
3172
|
+
enabled: l,
|
|
3173
|
+
...c
|
|
3174
|
+
} = a, e[2] = a, e[3] = l, e[4] = c) : (l = e[3], c = e[4]);
|
|
3175
|
+
const h = l === void 0 ? !0 : l;
|
|
3176
|
+
let y;
|
|
3177
|
+
e[5] !== t || e[6] !== o || e[7] !== s || e[8] !== n ? (y = {
|
|
3098
3178
|
accessToken: t,
|
|
3099
3179
|
additionalFilter: o,
|
|
3100
3180
|
sourceId: s,
|
|
3101
3181
|
widgetProps: n
|
|
3102
|
-
}, e[5] = t, e[6] = o, e[7] = s, e[8] = n, e[9] =
|
|
3182
|
+
}, e[5] = t, e[6] = o, e[7] = s, e[8] = n, e[9] = y) : y = e[9];
|
|
3103
3183
|
const {
|
|
3104
3184
|
mergedFilters: g,
|
|
3105
3185
|
queryKey: p,
|
|
3106
|
-
widgetModel:
|
|
3107
|
-
} =
|
|
3186
|
+
widgetModel: b
|
|
3187
|
+
} = fe(y);
|
|
3108
3188
|
let m;
|
|
3109
3189
|
e[10] !== p ? (m = ["categories", ...p], e[10] = p, e[11] = m) : m = e[11];
|
|
3110
3190
|
let w;
|
|
3111
|
-
e[12] !== g || e[13] !==
|
|
3191
|
+
e[12] !== g || e[13] !== b || e[14] !== n ? (w = (v) => {
|
|
3112
3192
|
const {
|
|
3113
3193
|
signal: _
|
|
3114
|
-
} =
|
|
3115
|
-
return
|
|
3194
|
+
} = v;
|
|
3195
|
+
return b.getCategories({
|
|
3116
3196
|
...n,
|
|
3117
3197
|
filters: g,
|
|
3118
3198
|
signal: _
|
|
3119
3199
|
});
|
|
3120
|
-
}, e[12] = g, e[13] =
|
|
3121
|
-
const u = !!
|
|
3200
|
+
}, e[12] = g, e[13] = b, e[14] = n, e[15] = w) : w = e[15];
|
|
3201
|
+
const u = !!b && h;
|
|
3122
3202
|
let f;
|
|
3123
|
-
return e[16] !== m || e[17] !== w || e[18] !== u || e[19] !==
|
|
3203
|
+
return e[16] !== m || e[17] !== w || e[18] !== u || e[19] !== c ? (f = {
|
|
3124
3204
|
queryKey: m,
|
|
3125
3205
|
queryFn: w,
|
|
3126
3206
|
enabled: u,
|
|
3127
|
-
...
|
|
3128
|
-
}, e[16] = m, e[17] = w, e[18] = u, e[19] =
|
|
3207
|
+
...c
|
|
3208
|
+
}, e[16] = m, e[17] = w, e[18] = u, e[19] = c, e[20] = f) : f = e[20], le(f);
|
|
3129
3209
|
}
|
|
3130
|
-
function
|
|
3131
|
-
const e =
|
|
3210
|
+
function So(r) {
|
|
3211
|
+
const e = F(6);
|
|
3132
3212
|
let t, s;
|
|
3133
3213
|
e[0] !== r ? ({
|
|
3134
3214
|
children: t,
|
|
3135
3215
|
...s
|
|
3136
3216
|
} = r, e[0] = r, e[1] = t, e[2] = s) : (t = e[1], s = e[2]);
|
|
3137
|
-
const n =
|
|
3217
|
+
const n = br(s);
|
|
3138
3218
|
let o;
|
|
3139
3219
|
return e[3] !== t || e[4] !== n ? (o = t(n), e[3] = t, e[4] = n, e[5] = o) : o = e[5], o;
|
|
3140
3220
|
}
|
|
3141
|
-
function
|
|
3142
|
-
const e =
|
|
3221
|
+
function vr(r) {
|
|
3222
|
+
const e = F(21), {
|
|
3143
3223
|
accessToken: t,
|
|
3144
3224
|
sourceId: s,
|
|
3145
3225
|
widgetProps: n,
|
|
@@ -3148,59 +3228,59 @@ function ur(r) {
|
|
|
3148
3228
|
} = r;
|
|
3149
3229
|
let a;
|
|
3150
3230
|
e[0] !== i ? (a = i === void 0 ? {} : i, e[0] = i, e[1] = a) : a = e[1];
|
|
3151
|
-
let
|
|
3231
|
+
let l, c;
|
|
3152
3232
|
e[2] !== a ? ({
|
|
3153
|
-
enabled:
|
|
3154
|
-
...
|
|
3155
|
-
} = a, e[2] = a, e[3] =
|
|
3156
|
-
const
|
|
3157
|
-
let
|
|
3158
|
-
e[5] !== t || e[6] !== o || e[7] !== s || e[8] !== n ? (
|
|
3233
|
+
enabled: l,
|
|
3234
|
+
...c
|
|
3235
|
+
} = a, e[2] = a, e[3] = l, e[4] = c) : (l = e[3], c = e[4]);
|
|
3236
|
+
const h = l === void 0 ? !0 : l;
|
|
3237
|
+
let y;
|
|
3238
|
+
e[5] !== t || e[6] !== o || e[7] !== s || e[8] !== n ? (y = {
|
|
3159
3239
|
accessToken: t,
|
|
3160
3240
|
additionalFilter: o,
|
|
3161
3241
|
sourceId: s,
|
|
3162
3242
|
widgetProps: n
|
|
3163
|
-
}, e[5] = t, e[6] = o, e[7] = s, e[8] = n, e[9] =
|
|
3243
|
+
}, e[5] = t, e[6] = o, e[7] = s, e[8] = n, e[9] = y) : y = e[9];
|
|
3164
3244
|
const {
|
|
3165
3245
|
mergedFilters: g,
|
|
3166
3246
|
queryKey: p,
|
|
3167
|
-
widgetModel:
|
|
3168
|
-
} =
|
|
3247
|
+
widgetModel: b
|
|
3248
|
+
} = fe(y);
|
|
3169
3249
|
let m;
|
|
3170
3250
|
e[10] !== p ? (m = ["features", ...p], e[10] = p, e[11] = m) : m = e[11];
|
|
3171
3251
|
let w;
|
|
3172
|
-
e[12] !== g || e[13] !==
|
|
3252
|
+
e[12] !== g || e[13] !== b || e[14] !== n ? (w = (v) => {
|
|
3173
3253
|
const {
|
|
3174
3254
|
signal: _
|
|
3175
|
-
} =
|
|
3176
|
-
return
|
|
3255
|
+
} = v;
|
|
3256
|
+
return b.getFeatures({
|
|
3177
3257
|
...n,
|
|
3178
3258
|
filters: g,
|
|
3179
3259
|
signal: _
|
|
3180
3260
|
});
|
|
3181
|
-
}, e[12] = g, e[13] =
|
|
3182
|
-
const u = !!
|
|
3261
|
+
}, e[12] = g, e[13] = b, e[14] = n, e[15] = w) : w = e[15];
|
|
3262
|
+
const u = !!b && h;
|
|
3183
3263
|
let f;
|
|
3184
|
-
return e[16] !== m || e[17] !== w || e[18] !== u || e[19] !==
|
|
3264
|
+
return e[16] !== m || e[17] !== w || e[18] !== u || e[19] !== c ? (f = {
|
|
3185
3265
|
queryKey: m,
|
|
3186
3266
|
queryFn: w,
|
|
3187
3267
|
enabled: u,
|
|
3188
|
-
...
|
|
3189
|
-
}, e[16] = m, e[17] = w, e[18] = u, e[19] =
|
|
3268
|
+
...c
|
|
3269
|
+
}, e[16] = m, e[17] = w, e[18] = u, e[19] = c, e[20] = f) : f = e[20], le(f);
|
|
3190
3270
|
}
|
|
3191
|
-
function
|
|
3192
|
-
const e =
|
|
3271
|
+
function wo(r) {
|
|
3272
|
+
const e = F(6);
|
|
3193
3273
|
let t, s;
|
|
3194
3274
|
e[0] !== r ? ({
|
|
3195
3275
|
children: t,
|
|
3196
3276
|
...s
|
|
3197
3277
|
} = r, e[0] = r, e[1] = t, e[2] = s) : (t = e[1], s = e[2]);
|
|
3198
|
-
const n =
|
|
3278
|
+
const n = vr(s);
|
|
3199
3279
|
let o;
|
|
3200
3280
|
return e[3] !== t || e[4] !== n ? (o = t(n), e[3] = t, e[4] = n, e[5] = o) : o = e[5], o;
|
|
3201
3281
|
}
|
|
3202
|
-
function
|
|
3203
|
-
const e =
|
|
3282
|
+
function Sr(r) {
|
|
3283
|
+
const e = F(21), {
|
|
3204
3284
|
accessToken: t,
|
|
3205
3285
|
sourceId: s,
|
|
3206
3286
|
widgetProps: n,
|
|
@@ -3209,59 +3289,59 @@ function dr(r) {
|
|
|
3209
3289
|
} = r;
|
|
3210
3290
|
let a;
|
|
3211
3291
|
e[0] !== i ? (a = i === void 0 ? {} : i, e[0] = i, e[1] = a) : a = e[1];
|
|
3212
|
-
let
|
|
3292
|
+
let l, c;
|
|
3213
3293
|
e[2] !== a ? ({
|
|
3214
|
-
enabled:
|
|
3215
|
-
...
|
|
3216
|
-
} = a, e[2] = a, e[3] =
|
|
3217
|
-
const
|
|
3218
|
-
let
|
|
3219
|
-
e[5] !== t || e[6] !== o || e[7] !== s || e[8] !== n ? (
|
|
3294
|
+
enabled: l,
|
|
3295
|
+
...c
|
|
3296
|
+
} = a, e[2] = a, e[3] = l, e[4] = c) : (l = e[3], c = e[4]);
|
|
3297
|
+
const h = l === void 0 ? !0 : l;
|
|
3298
|
+
let y;
|
|
3299
|
+
e[5] !== t || e[6] !== o || e[7] !== s || e[8] !== n ? (y = {
|
|
3220
3300
|
accessToken: t,
|
|
3221
3301
|
additionalFilter: o,
|
|
3222
3302
|
sourceId: s,
|
|
3223
3303
|
widgetProps: n
|
|
3224
|
-
}, e[5] = t, e[6] = o, e[7] = s, e[8] = n, e[9] =
|
|
3304
|
+
}, e[5] = t, e[6] = o, e[7] = s, e[8] = n, e[9] = y) : y = e[9];
|
|
3225
3305
|
const {
|
|
3226
3306
|
mergedFilters: g,
|
|
3227
3307
|
queryKey: p,
|
|
3228
|
-
widgetModel:
|
|
3229
|
-
} =
|
|
3308
|
+
widgetModel: b
|
|
3309
|
+
} = fe(y);
|
|
3230
3310
|
let m;
|
|
3231
3311
|
e[10] !== p ? (m = ["formula", ...p], e[10] = p, e[11] = m) : m = e[11];
|
|
3232
3312
|
let w;
|
|
3233
|
-
e[12] !== g || e[13] !==
|
|
3313
|
+
e[12] !== g || e[13] !== b || e[14] !== n ? (w = (v) => {
|
|
3234
3314
|
const {
|
|
3235
3315
|
signal: _
|
|
3236
|
-
} =
|
|
3237
|
-
return
|
|
3316
|
+
} = v;
|
|
3317
|
+
return b.getFormula({
|
|
3238
3318
|
...n,
|
|
3239
3319
|
filters: g,
|
|
3240
3320
|
signal: _
|
|
3241
3321
|
});
|
|
3242
|
-
}, e[12] = g, e[13] =
|
|
3243
|
-
const u = !!
|
|
3322
|
+
}, e[12] = g, e[13] = b, e[14] = n, e[15] = w) : w = e[15];
|
|
3323
|
+
const u = !!b && h;
|
|
3244
3324
|
let f;
|
|
3245
|
-
return e[16] !== m || e[17] !== w || e[18] !== u || e[19] !==
|
|
3325
|
+
return e[16] !== m || e[17] !== w || e[18] !== u || e[19] !== c ? (f = {
|
|
3246
3326
|
queryKey: m,
|
|
3247
3327
|
queryFn: w,
|
|
3248
3328
|
enabled: u,
|
|
3249
|
-
...
|
|
3250
|
-
}, e[16] = m, e[17] = w, e[18] = u, e[19] =
|
|
3329
|
+
...c
|
|
3330
|
+
}, e[16] = m, e[17] = w, e[18] = u, e[19] = c, e[20] = f) : f = e[20], le(f);
|
|
3251
3331
|
}
|
|
3252
|
-
function
|
|
3253
|
-
const e =
|
|
3332
|
+
function _o(r) {
|
|
3333
|
+
const e = F(6);
|
|
3254
3334
|
let t, s;
|
|
3255
3335
|
e[0] !== r ? ({
|
|
3256
3336
|
children: t,
|
|
3257
3337
|
...s
|
|
3258
3338
|
} = r, e[0] = r, e[1] = t, e[2] = s) : (t = e[1], s = e[2]);
|
|
3259
|
-
const n =
|
|
3339
|
+
const n = Sr(s);
|
|
3260
3340
|
let o;
|
|
3261
3341
|
return e[3] !== t || e[4] !== n ? (o = t(n), e[3] = t, e[4] = n, e[5] = o) : o = e[5], o;
|
|
3262
3342
|
}
|
|
3263
|
-
function
|
|
3264
|
-
const e =
|
|
3343
|
+
function wr(r) {
|
|
3344
|
+
const e = F(21), {
|
|
3265
3345
|
accessToken: t,
|
|
3266
3346
|
sourceId: s,
|
|
3267
3347
|
widgetProps: n,
|
|
@@ -3270,59 +3350,59 @@ function fr(r) {
|
|
|
3270
3350
|
} = r;
|
|
3271
3351
|
let a;
|
|
3272
3352
|
e[0] !== i ? (a = i === void 0 ? {} : i, e[0] = i, e[1] = a) : a = e[1];
|
|
3273
|
-
let
|
|
3353
|
+
let l, c;
|
|
3274
3354
|
e[2] !== a ? ({
|
|
3275
|
-
enabled:
|
|
3276
|
-
...
|
|
3277
|
-
} = a, e[2] = a, e[3] =
|
|
3278
|
-
const
|
|
3279
|
-
let
|
|
3280
|
-
e[5] !== t || e[6] !== o || e[7] !== s || e[8] !== n ? (
|
|
3355
|
+
enabled: l,
|
|
3356
|
+
...c
|
|
3357
|
+
} = a, e[2] = a, e[3] = l, e[4] = c) : (l = e[3], c = e[4]);
|
|
3358
|
+
const h = l === void 0 ? !0 : l;
|
|
3359
|
+
let y;
|
|
3360
|
+
e[5] !== t || e[6] !== o || e[7] !== s || e[8] !== n ? (y = {
|
|
3281
3361
|
accessToken: t,
|
|
3282
3362
|
additionalFilter: o,
|
|
3283
3363
|
sourceId: s,
|
|
3284
3364
|
widgetProps: n
|
|
3285
|
-
}, e[5] = t, e[6] = o, e[7] = s, e[8] = n, e[9] =
|
|
3365
|
+
}, e[5] = t, e[6] = o, e[7] = s, e[8] = n, e[9] = y) : y = e[9];
|
|
3286
3366
|
const {
|
|
3287
3367
|
mergedFilters: g,
|
|
3288
3368
|
queryKey: p,
|
|
3289
|
-
widgetModel:
|
|
3290
|
-
} =
|
|
3369
|
+
widgetModel: b
|
|
3370
|
+
} = fe(y);
|
|
3291
3371
|
let m;
|
|
3292
3372
|
e[10] !== p ? (m = ["histogram", ...p], e[10] = p, e[11] = m) : m = e[11];
|
|
3293
3373
|
let w;
|
|
3294
|
-
e[12] !== g || e[13] !==
|
|
3374
|
+
e[12] !== g || e[13] !== b || e[14] !== n ? (w = (v) => {
|
|
3295
3375
|
const {
|
|
3296
3376
|
signal: _
|
|
3297
|
-
} =
|
|
3298
|
-
return
|
|
3377
|
+
} = v;
|
|
3378
|
+
return b.getHistogram({
|
|
3299
3379
|
...n,
|
|
3300
3380
|
filters: g,
|
|
3301
3381
|
signal: _
|
|
3302
3382
|
});
|
|
3303
|
-
}, e[12] = g, e[13] =
|
|
3304
|
-
const u = !!
|
|
3383
|
+
}, e[12] = g, e[13] = b, e[14] = n, e[15] = w) : w = e[15];
|
|
3384
|
+
const u = !!b && h;
|
|
3305
3385
|
let f;
|
|
3306
|
-
return e[16] !== m || e[17] !== w || e[18] !== u || e[19] !==
|
|
3386
|
+
return e[16] !== m || e[17] !== w || e[18] !== u || e[19] !== c ? (f = {
|
|
3307
3387
|
queryKey: m,
|
|
3308
3388
|
queryFn: w,
|
|
3309
3389
|
enabled: u,
|
|
3310
|
-
...
|
|
3311
|
-
}, e[16] = m, e[17] = w, e[18] = u, e[19] =
|
|
3390
|
+
...c
|
|
3391
|
+
}, e[16] = m, e[17] = w, e[18] = u, e[19] = c, e[20] = f) : f = e[20], le(f);
|
|
3312
3392
|
}
|
|
3313
|
-
function
|
|
3314
|
-
const e =
|
|
3393
|
+
function Mo(r) {
|
|
3394
|
+
const e = F(6);
|
|
3315
3395
|
let t, s;
|
|
3316
3396
|
e[0] !== r ? ({
|
|
3317
3397
|
children: t,
|
|
3318
3398
|
...s
|
|
3319
3399
|
} = r, e[0] = r, e[1] = t, e[2] = s) : (t = e[1], s = e[2]);
|
|
3320
|
-
const n =
|
|
3400
|
+
const n = wr(s);
|
|
3321
3401
|
let o;
|
|
3322
3402
|
return e[3] !== t || e[4] !== n ? (o = t(n), e[3] = t, e[4] = n, e[5] = o) : o = e[5], o;
|
|
3323
3403
|
}
|
|
3324
|
-
function
|
|
3325
|
-
const e =
|
|
3404
|
+
function _r(r) {
|
|
3405
|
+
const e = F(21), {
|
|
3326
3406
|
accessToken: t,
|
|
3327
3407
|
sourceId: s,
|
|
3328
3408
|
widgetProps: n,
|
|
@@ -3331,59 +3411,59 @@ function pr(r) {
|
|
|
3331
3411
|
} = r;
|
|
3332
3412
|
let a;
|
|
3333
3413
|
e[0] !== i ? (a = i === void 0 ? {} : i, e[0] = i, e[1] = a) : a = e[1];
|
|
3334
|
-
let
|
|
3414
|
+
let l, c;
|
|
3335
3415
|
e[2] !== a ? ({
|
|
3336
|
-
enabled:
|
|
3337
|
-
...
|
|
3338
|
-
} = a, e[2] = a, e[3] =
|
|
3339
|
-
const
|
|
3340
|
-
let
|
|
3341
|
-
e[5] !== t || e[6] !== o || e[7] !== s || e[8] !== n ? (
|
|
3416
|
+
enabled: l,
|
|
3417
|
+
...c
|
|
3418
|
+
} = a, e[2] = a, e[3] = l, e[4] = c) : (l = e[3], c = e[4]);
|
|
3419
|
+
const h = l === void 0 ? !0 : l;
|
|
3420
|
+
let y;
|
|
3421
|
+
e[5] !== t || e[6] !== o || e[7] !== s || e[8] !== n ? (y = {
|
|
3342
3422
|
accessToken: t,
|
|
3343
3423
|
additionalFilter: o,
|
|
3344
3424
|
sourceId: s,
|
|
3345
3425
|
widgetProps: n
|
|
3346
|
-
}, e[5] = t, e[6] = o, e[7] = s, e[8] = n, e[9] =
|
|
3426
|
+
}, e[5] = t, e[6] = o, e[7] = s, e[8] = n, e[9] = y) : y = e[9];
|
|
3347
3427
|
const {
|
|
3348
3428
|
mergedFilters: g,
|
|
3349
3429
|
queryKey: p,
|
|
3350
|
-
widgetModel:
|
|
3351
|
-
} =
|
|
3430
|
+
widgetModel: b
|
|
3431
|
+
} = fe(y);
|
|
3352
3432
|
let m;
|
|
3353
3433
|
e[10] !== p ? (m = ["range", ...p], e[10] = p, e[11] = m) : m = e[11];
|
|
3354
3434
|
let w;
|
|
3355
|
-
e[12] !== g || e[13] !==
|
|
3435
|
+
e[12] !== g || e[13] !== b || e[14] !== n ? (w = (v) => {
|
|
3356
3436
|
const {
|
|
3357
3437
|
signal: _
|
|
3358
|
-
} =
|
|
3359
|
-
return
|
|
3438
|
+
} = v;
|
|
3439
|
+
return b.getRange({
|
|
3360
3440
|
...n,
|
|
3361
3441
|
filters: g,
|
|
3362
3442
|
signal: _
|
|
3363
3443
|
});
|
|
3364
|
-
}, e[12] = g, e[13] =
|
|
3365
|
-
const u = !!
|
|
3444
|
+
}, e[12] = g, e[13] = b, e[14] = n, e[15] = w) : w = e[15];
|
|
3445
|
+
const u = !!b && h;
|
|
3366
3446
|
let f;
|
|
3367
|
-
return e[16] !== m || e[17] !== w || e[18] !== u || e[19] !==
|
|
3447
|
+
return e[16] !== m || e[17] !== w || e[18] !== u || e[19] !== c ? (f = {
|
|
3368
3448
|
queryKey: m,
|
|
3369
3449
|
queryFn: w,
|
|
3370
3450
|
enabled: u,
|
|
3371
|
-
...
|
|
3372
|
-
}, e[16] = m, e[17] = w, e[18] = u, e[19] =
|
|
3451
|
+
...c
|
|
3452
|
+
}, e[16] = m, e[17] = w, e[18] = u, e[19] = c, e[20] = f) : f = e[20], le(f);
|
|
3373
3453
|
}
|
|
3374
|
-
function
|
|
3375
|
-
const e =
|
|
3454
|
+
function Eo(r) {
|
|
3455
|
+
const e = F(6);
|
|
3376
3456
|
let t, s;
|
|
3377
3457
|
e[0] !== r ? ({
|
|
3378
3458
|
children: t,
|
|
3379
3459
|
...s
|
|
3380
3460
|
} = r, e[0] = r, e[1] = t, e[2] = s) : (t = e[1], s = e[2]);
|
|
3381
|
-
const n =
|
|
3461
|
+
const n = _r(s);
|
|
3382
3462
|
let o;
|
|
3383
3463
|
return e[3] !== t || e[4] !== n ? (o = t(n), e[3] = t, e[4] = n, e[5] = o) : o = e[5], o;
|
|
3384
3464
|
}
|
|
3385
|
-
function
|
|
3386
|
-
const e =
|
|
3465
|
+
function Mr(r) {
|
|
3466
|
+
const e = F(21), {
|
|
3387
3467
|
accessToken: t,
|
|
3388
3468
|
sourceId: s,
|
|
3389
3469
|
widgetProps: n,
|
|
@@ -3392,59 +3472,59 @@ function mr(r) {
|
|
|
3392
3472
|
} = r;
|
|
3393
3473
|
let a;
|
|
3394
3474
|
e[0] !== i ? (a = i === void 0 ? {} : i, e[0] = i, e[1] = a) : a = e[1];
|
|
3395
|
-
let
|
|
3475
|
+
let l, c;
|
|
3396
3476
|
e[2] !== a ? ({
|
|
3397
|
-
enabled:
|
|
3398
|
-
...
|
|
3399
|
-
} = a, e[2] = a, e[3] =
|
|
3400
|
-
const
|
|
3401
|
-
let
|
|
3402
|
-
e[5] !== t || e[6] !== o || e[7] !== s || e[8] !== n ? (
|
|
3477
|
+
enabled: l,
|
|
3478
|
+
...c
|
|
3479
|
+
} = a, e[2] = a, e[3] = l, e[4] = c) : (l = e[3], c = e[4]);
|
|
3480
|
+
const h = l === void 0 ? !0 : l;
|
|
3481
|
+
let y;
|
|
3482
|
+
e[5] !== t || e[6] !== o || e[7] !== s || e[8] !== n ? (y = {
|
|
3403
3483
|
accessToken: t,
|
|
3404
3484
|
additionalFilter: o,
|
|
3405
3485
|
sourceId: s,
|
|
3406
3486
|
widgetProps: n
|
|
3407
|
-
}, e[5] = t, e[6] = o, e[7] = s, e[8] = n, e[9] =
|
|
3487
|
+
}, e[5] = t, e[6] = o, e[7] = s, e[8] = n, e[9] = y) : y = e[9];
|
|
3408
3488
|
const {
|
|
3409
3489
|
mergedFilters: g,
|
|
3410
3490
|
queryKey: p,
|
|
3411
|
-
widgetModel:
|
|
3412
|
-
} =
|
|
3491
|
+
widgetModel: b
|
|
3492
|
+
} = fe(y);
|
|
3413
3493
|
let m;
|
|
3414
3494
|
e[10] !== p ? (m = ["scatter", ...p], e[10] = p, e[11] = m) : m = e[11];
|
|
3415
3495
|
let w;
|
|
3416
|
-
e[12] !== g || e[13] !==
|
|
3496
|
+
e[12] !== g || e[13] !== b || e[14] !== n ? (w = (v) => {
|
|
3417
3497
|
const {
|
|
3418
3498
|
signal: _
|
|
3419
|
-
} =
|
|
3420
|
-
return
|
|
3499
|
+
} = v;
|
|
3500
|
+
return b.getScatter({
|
|
3421
3501
|
...n,
|
|
3422
3502
|
filters: g,
|
|
3423
3503
|
signal: _
|
|
3424
3504
|
});
|
|
3425
|
-
}, e[12] = g, e[13] =
|
|
3426
|
-
const u = !!
|
|
3505
|
+
}, e[12] = g, e[13] = b, e[14] = n, e[15] = w) : w = e[15];
|
|
3506
|
+
const u = !!b && h;
|
|
3427
3507
|
let f;
|
|
3428
|
-
return e[16] !== m || e[17] !== w || e[18] !== u || e[19] !==
|
|
3508
|
+
return e[16] !== m || e[17] !== w || e[18] !== u || e[19] !== c ? (f = {
|
|
3429
3509
|
queryKey: m,
|
|
3430
3510
|
queryFn: w,
|
|
3431
3511
|
enabled: u,
|
|
3432
|
-
...
|
|
3433
|
-
}, e[16] = m, e[17] = w, e[18] = u, e[19] =
|
|
3512
|
+
...c
|
|
3513
|
+
}, e[16] = m, e[17] = w, e[18] = u, e[19] = c, e[20] = f) : f = e[20], le(f);
|
|
3434
3514
|
}
|
|
3435
|
-
function
|
|
3436
|
-
const e =
|
|
3515
|
+
function To(r) {
|
|
3516
|
+
const e = F(6);
|
|
3437
3517
|
let t, s;
|
|
3438
3518
|
e[0] !== r ? ({
|
|
3439
3519
|
children: t,
|
|
3440
3520
|
...s
|
|
3441
3521
|
} = r, e[0] = r, e[1] = t, e[2] = s) : (t = e[1], s = e[2]);
|
|
3442
|
-
const n =
|
|
3522
|
+
const n = Mr(s);
|
|
3443
3523
|
let o;
|
|
3444
3524
|
return e[3] !== t || e[4] !== n ? (o = t(n), e[3] = t, e[4] = n, e[5] = o) : o = e[5], o;
|
|
3445
3525
|
}
|
|
3446
|
-
function
|
|
3447
|
-
const e =
|
|
3526
|
+
function Er(r) {
|
|
3527
|
+
const e = F(21), {
|
|
3448
3528
|
accessToken: t,
|
|
3449
3529
|
sourceId: s,
|
|
3450
3530
|
widgetProps: n,
|
|
@@ -3453,59 +3533,59 @@ function yr(r) {
|
|
|
3453
3533
|
} = r;
|
|
3454
3534
|
let a;
|
|
3455
3535
|
e[0] !== i ? (a = i === void 0 ? {} : i, e[0] = i, e[1] = a) : a = e[1];
|
|
3456
|
-
let
|
|
3536
|
+
let l, c;
|
|
3457
3537
|
e[2] !== a ? ({
|
|
3458
|
-
enabled:
|
|
3459
|
-
...
|
|
3460
|
-
} = a, e[2] = a, e[3] =
|
|
3461
|
-
const
|
|
3462
|
-
let
|
|
3463
|
-
e[5] !== t || e[6] !== o || e[7] !== s || e[8] !== n ? (
|
|
3538
|
+
enabled: l,
|
|
3539
|
+
...c
|
|
3540
|
+
} = a, e[2] = a, e[3] = l, e[4] = c) : (l = e[3], c = e[4]);
|
|
3541
|
+
const h = l === void 0 ? !0 : l;
|
|
3542
|
+
let y;
|
|
3543
|
+
e[5] !== t || e[6] !== o || e[7] !== s || e[8] !== n ? (y = {
|
|
3464
3544
|
accessToken: t,
|
|
3465
3545
|
additionalFilter: o,
|
|
3466
3546
|
sourceId: s,
|
|
3467
3547
|
widgetProps: n
|
|
3468
|
-
}, e[5] = t, e[6] = o, e[7] = s, e[8] = n, e[9] =
|
|
3548
|
+
}, e[5] = t, e[6] = o, e[7] = s, e[8] = n, e[9] = y) : y = e[9];
|
|
3469
3549
|
const {
|
|
3470
3550
|
mergedFilters: g,
|
|
3471
3551
|
queryKey: p,
|
|
3472
|
-
widgetModel:
|
|
3473
|
-
} =
|
|
3552
|
+
widgetModel: b
|
|
3553
|
+
} = fe(y);
|
|
3474
3554
|
let m;
|
|
3475
3555
|
e[10] !== p ? (m = ["table", ...p], e[10] = p, e[11] = m) : m = e[11];
|
|
3476
3556
|
let w;
|
|
3477
|
-
e[12] !== g || e[13] !==
|
|
3557
|
+
e[12] !== g || e[13] !== b || e[14] !== n ? (w = (v) => {
|
|
3478
3558
|
const {
|
|
3479
3559
|
signal: _
|
|
3480
|
-
} =
|
|
3481
|
-
return
|
|
3560
|
+
} = v;
|
|
3561
|
+
return b.getTable({
|
|
3482
3562
|
...n,
|
|
3483
3563
|
filters: g,
|
|
3484
3564
|
signal: _
|
|
3485
3565
|
});
|
|
3486
|
-
}, e[12] = g, e[13] =
|
|
3487
|
-
const u = !!
|
|
3566
|
+
}, e[12] = g, e[13] = b, e[14] = n, e[15] = w) : w = e[15];
|
|
3567
|
+
const u = !!b && h;
|
|
3488
3568
|
let f;
|
|
3489
|
-
return e[16] !== m || e[17] !== w || e[18] !== u || e[19] !==
|
|
3569
|
+
return e[16] !== m || e[17] !== w || e[18] !== u || e[19] !== c ? (f = {
|
|
3490
3570
|
queryKey: m,
|
|
3491
3571
|
queryFn: w,
|
|
3492
3572
|
enabled: u,
|
|
3493
|
-
...
|
|
3494
|
-
}, e[16] = m, e[17] = w, e[18] = u, e[19] =
|
|
3573
|
+
...c
|
|
3574
|
+
}, e[16] = m, e[17] = w, e[18] = u, e[19] = c, e[20] = f) : f = e[20], le(f);
|
|
3495
3575
|
}
|
|
3496
|
-
function
|
|
3497
|
-
const e =
|
|
3576
|
+
function Lo(r) {
|
|
3577
|
+
const e = F(6);
|
|
3498
3578
|
let t, s;
|
|
3499
3579
|
e[0] !== r ? ({
|
|
3500
3580
|
children: t,
|
|
3501
3581
|
...s
|
|
3502
3582
|
} = r, e[0] = r, e[1] = t, e[2] = s) : (t = e[1], s = e[2]);
|
|
3503
|
-
const n =
|
|
3583
|
+
const n = Er(s);
|
|
3504
3584
|
let o;
|
|
3505
3585
|
return e[3] !== t || e[4] !== n ? (o = t(n), e[3] = t, e[4] = n, e[5] = o) : o = e[5], o;
|
|
3506
3586
|
}
|
|
3507
|
-
function
|
|
3508
|
-
const e =
|
|
3587
|
+
function Tr(r) {
|
|
3588
|
+
const e = F(21), {
|
|
3509
3589
|
accessToken: t,
|
|
3510
3590
|
sourceId: s,
|
|
3511
3591
|
widgetProps: n,
|
|
@@ -3514,60 +3594,60 @@ function hr(r) {
|
|
|
3514
3594
|
} = r;
|
|
3515
3595
|
let a;
|
|
3516
3596
|
e[0] !== i ? (a = i === void 0 ? {} : i, e[0] = i, e[1] = a) : a = e[1];
|
|
3517
|
-
let
|
|
3597
|
+
let l, c;
|
|
3518
3598
|
e[2] !== a ? ({
|
|
3519
|
-
enabled:
|
|
3520
|
-
...
|
|
3521
|
-
} = a, e[2] = a, e[3] =
|
|
3522
|
-
const
|
|
3523
|
-
let
|
|
3524
|
-
e[5] !== t || e[6] !== o || e[7] !== s || e[8] !== n ? (
|
|
3599
|
+
enabled: l,
|
|
3600
|
+
...c
|
|
3601
|
+
} = a, e[2] = a, e[3] = l, e[4] = c) : (l = e[3], c = e[4]);
|
|
3602
|
+
const h = l === void 0 ? !0 : l;
|
|
3603
|
+
let y;
|
|
3604
|
+
e[5] !== t || e[6] !== o || e[7] !== s || e[8] !== n ? (y = {
|
|
3525
3605
|
accessToken: t,
|
|
3526
3606
|
additionalFilter: o,
|
|
3527
3607
|
sourceId: s,
|
|
3528
3608
|
widgetProps: n
|
|
3529
|
-
}, e[5] = t, e[6] = o, e[7] = s, e[8] = n, e[9] =
|
|
3609
|
+
}, e[5] = t, e[6] = o, e[7] = s, e[8] = n, e[9] = y) : y = e[9];
|
|
3530
3610
|
const {
|
|
3531
3611
|
mergedFilters: g,
|
|
3532
3612
|
queryKey: p,
|
|
3533
|
-
widgetModel:
|
|
3534
|
-
} =
|
|
3613
|
+
widgetModel: b
|
|
3614
|
+
} = fe(y);
|
|
3535
3615
|
let m;
|
|
3536
3616
|
e[10] !== p ? (m = ["timeSeries", ...p], e[10] = p, e[11] = m) : m = e[11];
|
|
3537
3617
|
let w;
|
|
3538
|
-
e[12] !== g || e[13] !==
|
|
3618
|
+
e[12] !== g || e[13] !== b || e[14] !== n ? (w = (v) => {
|
|
3539
3619
|
const {
|
|
3540
3620
|
signal: _
|
|
3541
|
-
} =
|
|
3542
|
-
return
|
|
3621
|
+
} = v;
|
|
3622
|
+
return b.getTimeSeries({
|
|
3543
3623
|
...n,
|
|
3544
3624
|
filters: g,
|
|
3545
3625
|
signal: _
|
|
3546
3626
|
});
|
|
3547
|
-
}, e[12] = g, e[13] =
|
|
3548
|
-
const u = !!
|
|
3627
|
+
}, e[12] = g, e[13] = b, e[14] = n, e[15] = w) : w = e[15];
|
|
3628
|
+
const u = !!b && h;
|
|
3549
3629
|
let f;
|
|
3550
|
-
return e[16] !== m || e[17] !== w || e[18] !== u || e[19] !==
|
|
3630
|
+
return e[16] !== m || e[17] !== w || e[18] !== u || e[19] !== c ? (f = {
|
|
3551
3631
|
queryKey: m,
|
|
3552
3632
|
queryFn: w,
|
|
3553
3633
|
enabled: u,
|
|
3554
|
-
...
|
|
3555
|
-
}, e[16] = m, e[17] = w, e[18] = u, e[19] =
|
|
3634
|
+
...c
|
|
3635
|
+
}, e[16] = m, e[17] = w, e[18] = u, e[19] = c, e[20] = f) : f = e[20], le(f);
|
|
3556
3636
|
}
|
|
3557
|
-
function
|
|
3558
|
-
const e =
|
|
3637
|
+
function Po(r) {
|
|
3638
|
+
const e = F(6);
|
|
3559
3639
|
let t, s;
|
|
3560
3640
|
e[0] !== r ? ({
|
|
3561
3641
|
children: t,
|
|
3562
3642
|
...s
|
|
3563
3643
|
} = r, e[0] = r, e[1] = t, e[2] = s) : (t = e[1], s = e[2]);
|
|
3564
|
-
const n =
|
|
3644
|
+
const n = Tr(s);
|
|
3565
3645
|
let o;
|
|
3566
3646
|
return e[3] !== t || e[4] !== n ? (o = t(n), e[3] = t, e[4] = n, e[5] = o) : o = e[5], o;
|
|
3567
3647
|
}
|
|
3568
|
-
const
|
|
3569
|
-
function
|
|
3570
|
-
const e =
|
|
3648
|
+
const ko = "ps";
|
|
3649
|
+
function Co(r) {
|
|
3650
|
+
const e = F(13), {
|
|
3571
3651
|
children: t,
|
|
3572
3652
|
maps: s,
|
|
3573
3653
|
lassoTools: n,
|
|
@@ -3576,88 +3656,88 @@ function So(r) {
|
|
|
3576
3656
|
let i;
|
|
3577
3657
|
e[0] !== n ? (i = n === void 0 ? [] : n, e[0] = n, e[1] = i) : i = e[1];
|
|
3578
3658
|
const a = i;
|
|
3579
|
-
let
|
|
3580
|
-
e[2] !== o ? (
|
|
3581
|
-
const
|
|
3582
|
-
let y;
|
|
3583
|
-
e[4] !== t || e[5] !== l ? (y = /* @__PURE__ */ K(mn, { values: l, children: t }), e[4] = t, e[5] = l, e[6] = y) : y = e[6];
|
|
3659
|
+
let l;
|
|
3660
|
+
e[2] !== o ? (l = o === void 0 ? [] : o, e[2] = o, e[3] = l) : l = e[3];
|
|
3661
|
+
const c = l;
|
|
3584
3662
|
let h;
|
|
3585
|
-
e[
|
|
3663
|
+
e[4] !== t || e[5] !== c ? (h = /* @__PURE__ */ K(Mn, { values: c, children: t }), e[4] = t, e[5] = c, e[6] = h) : h = e[6];
|
|
3664
|
+
let y;
|
|
3665
|
+
e[7] !== a || e[8] !== h ? (y = /* @__PURE__ */ K(on, { values: a, children: h }), e[7] = a, e[8] = h, e[9] = y) : y = e[9];
|
|
3586
3666
|
let g;
|
|
3587
|
-
return e[10] !== s || e[11] !==
|
|
3667
|
+
return e[10] !== s || e[11] !== y ? (g = /* @__PURE__ */ K(Zs, { values: s, children: y }), e[10] = s, e[11] = y, e[12] = g) : g = e[12], g;
|
|
3588
3668
|
}
|
|
3589
|
-
function
|
|
3590
|
-
const t =
|
|
3591
|
-
id:
|
|
3592
|
-
visible:
|
|
3593
|
-
...
|
|
3669
|
+
function Oo(r, e) {
|
|
3670
|
+
const t = ge((c) => c.layers), s = ge((c) => c.setLayer), n = ye(() => $t(r.map((c) => t[c]).filter((c) => !!c?.legend)).toReversed(), [t, r]), o = ye(() => n.map(e), [e, n]), i = ee(({
|
|
3671
|
+
id: c,
|
|
3672
|
+
visible: h,
|
|
3673
|
+
...y
|
|
3594
3674
|
}) => {
|
|
3595
|
-
s(
|
|
3675
|
+
s(c, {
|
|
3596
3676
|
props: {
|
|
3597
|
-
visible:
|
|
3677
|
+
visible: h
|
|
3598
3678
|
},
|
|
3599
|
-
legend:
|
|
3679
|
+
legend: y
|
|
3600
3680
|
});
|
|
3601
|
-
}, [s]), a =
|
|
3602
|
-
id:
|
|
3603
|
-
collapsed:
|
|
3681
|
+
}, [s]), a = ee(({
|
|
3682
|
+
id: c,
|
|
3683
|
+
collapsed: h
|
|
3604
3684
|
}) => {
|
|
3605
|
-
s(
|
|
3685
|
+
s(c, {
|
|
3606
3686
|
legend: {
|
|
3607
|
-
collapsed:
|
|
3687
|
+
collapsed: h
|
|
3608
3688
|
}
|
|
3609
3689
|
});
|
|
3610
|
-
}, [s]),
|
|
3611
|
-
id:
|
|
3612
|
-
opacity:
|
|
3690
|
+
}, [s]), l = ee(({
|
|
3691
|
+
id: c,
|
|
3692
|
+
opacity: h
|
|
3613
3693
|
}) => {
|
|
3614
|
-
s(
|
|
3694
|
+
s(c, {
|
|
3615
3695
|
props: {
|
|
3616
|
-
opacity:
|
|
3696
|
+
opacity: h
|
|
3617
3697
|
}
|
|
3618
3698
|
});
|
|
3619
3699
|
}, [s]);
|
|
3620
3700
|
return {
|
|
3621
3701
|
legend: o,
|
|
3622
3702
|
onChangeVisibility: i,
|
|
3623
|
-
onChangeOpacity:
|
|
3703
|
+
onChangeOpacity: l,
|
|
3624
3704
|
onChangeRowCollapse: a
|
|
3625
3705
|
};
|
|
3626
3706
|
}
|
|
3627
|
-
function
|
|
3707
|
+
function Fo({
|
|
3628
3708
|
mapId: r
|
|
3629
3709
|
}) {
|
|
3630
|
-
const [e, t] =
|
|
3710
|
+
const [e, t] = ae(void 0), [s, n] = ae(!1), [o, i] = ae(void 0), a = x((u) => u.maps[r]?.basemap), l = x((u) => u.getDeckInstance), c = x((u) => u.getOverlayInstance), h = x((u) => u.areLayersLoaded[r]), g = x((u) => u.maps[r]?.isLoaded) && h, {
|
|
3631
3711
|
type: p
|
|
3632
|
-
} =
|
|
3633
|
-
const u =
|
|
3712
|
+
} = ve[a], b = p === ie.googleMaps, m = ee(async () => {
|
|
3713
|
+
const u = l(r), f = c(r);
|
|
3634
3714
|
try {
|
|
3635
|
-
const
|
|
3636
|
-
|
|
3637
|
-
const _ =
|
|
3638
|
-
if (
|
|
3715
|
+
const v = document.createElement("canvas");
|
|
3716
|
+
v.width = u.width ?? 0, v.height = u.height ?? 0;
|
|
3717
|
+
const _ = v.getContext("2d");
|
|
3718
|
+
if (b) {
|
|
3639
3719
|
const P = f;
|
|
3640
3720
|
if (P.getRenderingType() !== "RASTER")
|
|
3641
3721
|
throw new Error("Only raster type is supported for Google Maps");
|
|
3642
|
-
const
|
|
3722
|
+
const A = await _s(P.getDiv(), {
|
|
3643
3723
|
useCORS: !0
|
|
3644
3724
|
});
|
|
3645
|
-
_?.drawImage(
|
|
3725
|
+
_?.drawImage(A, 0, 0, u.width, u.height);
|
|
3646
3726
|
} else {
|
|
3647
3727
|
const P = f;
|
|
3648
3728
|
P.redraw(), _?.drawImage(P.getMap().getCanvas(), 0, 0, u.width, u.height);
|
|
3649
3729
|
}
|
|
3650
3730
|
u?.redraw("screenshot"), _?.drawImage(u.getCanvas(), 0, 0, u.width, u.height);
|
|
3651
|
-
const M =
|
|
3731
|
+
const M = v.toDataURL();
|
|
3652
3732
|
t(M);
|
|
3653
|
-
} catch (
|
|
3654
|
-
i(
|
|
3733
|
+
} catch (v) {
|
|
3734
|
+
i(v), console.error(v);
|
|
3655
3735
|
} finally {
|
|
3656
3736
|
n(!1);
|
|
3657
3737
|
}
|
|
3658
|
-
}, [
|
|
3738
|
+
}, [l, b, r, c]);
|
|
3659
3739
|
return {
|
|
3660
|
-
takeScreenshot:
|
|
3740
|
+
takeScreenshot: ee(() => {
|
|
3661
3741
|
i(void 0), n(!0), g && m();
|
|
3662
3742
|
}, [m, g]),
|
|
3663
3743
|
isLoading: s,
|
|
@@ -3665,35 +3745,35 @@ function _o({
|
|
|
3665
3745
|
error: o
|
|
3666
3746
|
};
|
|
3667
3747
|
}
|
|
3668
|
-
function
|
|
3669
|
-
const e =
|
|
3748
|
+
function Ao(r) {
|
|
3749
|
+
const e = F(11), {
|
|
3670
3750
|
mapId: t
|
|
3671
3751
|
} = r;
|
|
3672
3752
|
let s;
|
|
3673
3753
|
e[0] !== t ? (s = {
|
|
3674
3754
|
mapId: t
|
|
3675
3755
|
}, e[0] = t, e[1] = s) : s = e[1];
|
|
3676
|
-
const n =
|
|
3756
|
+
const n = Lr(s);
|
|
3677
3757
|
let o;
|
|
3678
3758
|
e[2] !== t ? (o = {
|
|
3679
3759
|
mapId: t
|
|
3680
3760
|
}, e[2] = t, e[3] = o) : o = e[3];
|
|
3681
|
-
const i =
|
|
3761
|
+
const i = Pr(o);
|
|
3682
3762
|
let a;
|
|
3683
3763
|
e[4] !== t ? (a = {
|
|
3684
3764
|
mapId: t
|
|
3685
3765
|
}, e[4] = t, e[5] = a) : a = e[5];
|
|
3686
|
-
const
|
|
3687
|
-
let
|
|
3688
|
-
return e[6] !== i || e[7] !==
|
|
3689
|
-
spatialFilter:
|
|
3690
|
-
staticSpatialFilter:
|
|
3766
|
+
const l = Or(a), c = i ?? l ?? n;
|
|
3767
|
+
let h;
|
|
3768
|
+
return e[6] !== i || e[7] !== l || e[8] !== c || e[9] !== n ? (h = {
|
|
3769
|
+
spatialFilter: c,
|
|
3770
|
+
staticSpatialFilter: l,
|
|
3691
3771
|
lassoToolsSpatialFilter: i,
|
|
3692
3772
|
viewportSpatialFilter: n
|
|
3693
|
-
}, e[6] = i, e[7] =
|
|
3773
|
+
}, e[6] = i, e[7] = l, e[8] = c, e[9] = n, e[10] = h) : h = e[10], h;
|
|
3694
3774
|
}
|
|
3695
|
-
function
|
|
3696
|
-
const e =
|
|
3775
|
+
function Lr(r) {
|
|
3776
|
+
const e = F(4), {
|
|
3697
3777
|
mapId: t
|
|
3698
3778
|
} = r;
|
|
3699
3779
|
let s;
|
|
@@ -3706,43 +3786,43 @@ function gr(r) {
|
|
|
3706
3786
|
break e;
|
|
3707
3787
|
}
|
|
3708
3788
|
let i;
|
|
3709
|
-
e[2] !== n ? (i =
|
|
3789
|
+
e[2] !== n ? (i = vs(n.getBounds()), e[2] = n, e[3] = i) : i = e[3], o = i;
|
|
3710
3790
|
}
|
|
3711
3791
|
return o;
|
|
3712
3792
|
}
|
|
3713
|
-
function
|
|
3714
|
-
const e =
|
|
3793
|
+
function Pr(r) {
|
|
3794
|
+
const e = F(5), {
|
|
3715
3795
|
mapId: t
|
|
3716
3796
|
} = r;
|
|
3717
3797
|
let s;
|
|
3718
3798
|
e[0] !== t ? (s = (i) => i.data[t]?.values, e[0] = t, e[1] = s) : s = e[1];
|
|
3719
|
-
const n =
|
|
3799
|
+
const n = Z(s);
|
|
3720
3800
|
let o;
|
|
3721
3801
|
e: {
|
|
3722
3802
|
let i;
|
|
3723
3803
|
if (e[2] !== n) {
|
|
3724
|
-
const a =
|
|
3804
|
+
const a = Ot({
|
|
3725
3805
|
values: n
|
|
3726
|
-
}).filter(
|
|
3806
|
+
}).filter(Cr);
|
|
3727
3807
|
if (!a?.length) {
|
|
3728
3808
|
o = void 0;
|
|
3729
3809
|
break e;
|
|
3730
3810
|
}
|
|
3731
|
-
i =
|
|
3811
|
+
i = St(a.map(kr)), e[2] = n, e[3] = i, e[4] = o;
|
|
3732
3812
|
} else
|
|
3733
3813
|
i = e[3], o = e[4];
|
|
3734
3814
|
o = i.geometry;
|
|
3735
3815
|
}
|
|
3736
3816
|
return o;
|
|
3737
3817
|
}
|
|
3738
|
-
function
|
|
3818
|
+
function kr(r) {
|
|
3739
3819
|
return r.geometry.coordinates;
|
|
3740
3820
|
}
|
|
3741
|
-
function
|
|
3821
|
+
function Cr(r) {
|
|
3742
3822
|
return r.properties.visible;
|
|
3743
3823
|
}
|
|
3744
|
-
function
|
|
3745
|
-
const e =
|
|
3824
|
+
function Or(r) {
|
|
3825
|
+
const e = F(4), {
|
|
3746
3826
|
mapId: t
|
|
3747
3827
|
} = r;
|
|
3748
3828
|
let s;
|
|
@@ -3756,76 +3836,76 @@ function wr(r) {
|
|
|
3756
3836
|
}
|
|
3757
3837
|
let i;
|
|
3758
3838
|
if (e[2] !== n) {
|
|
3759
|
-
const a = Object.values(n).filter(
|
|
3760
|
-
i =
|
|
3839
|
+
const a = Object.values(n).filter(Ar).flatMap(Fr);
|
|
3840
|
+
i = St(a), e[2] = n, e[3] = i;
|
|
3761
3841
|
} else
|
|
3762
3842
|
i = e[3];
|
|
3763
3843
|
o = i.geometry;
|
|
3764
3844
|
}
|
|
3765
3845
|
return o;
|
|
3766
3846
|
}
|
|
3767
|
-
function
|
|
3847
|
+
function Fr(r) {
|
|
3768
3848
|
return r.type === "Polygon" ? [r.coordinates] : r.coordinates;
|
|
3769
3849
|
}
|
|
3770
|
-
function
|
|
3850
|
+
function Ar(r) {
|
|
3771
3851
|
return r != null;
|
|
3772
3852
|
}
|
|
3773
|
-
const
|
|
3853
|
+
const pe = {
|
|
3774
3854
|
currency: "CURRENCY",
|
|
3775
3855
|
default: "DEFAULT",
|
|
3776
3856
|
number: "NUMBER"
|
|
3777
|
-
},
|
|
3778
|
-
[
|
|
3779
|
-
type:
|
|
3780
|
-
format: (r, e) =>
|
|
3857
|
+
}, pt = {
|
|
3858
|
+
[pe.currency]: {
|
|
3859
|
+
type: pe.currency,
|
|
3860
|
+
format: (r, e) => us(r, e)
|
|
3781
3861
|
},
|
|
3782
|
-
[
|
|
3783
|
-
type:
|
|
3784
|
-
format: (r, e) =>
|
|
3862
|
+
[pe.number]: {
|
|
3863
|
+
type: pe.number,
|
|
3864
|
+
format: (r, e) => wt(r, e)
|
|
3785
3865
|
},
|
|
3786
|
-
[
|
|
3787
|
-
type:
|
|
3866
|
+
[pe.default]: {
|
|
3867
|
+
type: pe.default,
|
|
3788
3868
|
format: (r) => r.toLocaleString()
|
|
3789
3869
|
}
|
|
3790
3870
|
};
|
|
3791
|
-
function
|
|
3871
|
+
function Ro({
|
|
3792
3872
|
properties: r,
|
|
3793
3873
|
formatters: e = {},
|
|
3794
3874
|
includeColumns: t = Object.keys(r),
|
|
3795
3875
|
locale: s = "en-US",
|
|
3796
3876
|
showColumnName: n = !0,
|
|
3797
3877
|
title: o,
|
|
3798
|
-
getColumnName: i =
|
|
3799
|
-
getFieldHtml: a =
|
|
3800
|
-
getTitle:
|
|
3801
|
-
getValue:
|
|
3878
|
+
getColumnName: i = xr,
|
|
3879
|
+
getFieldHtml: a = Dr,
|
|
3880
|
+
getTitle: l = Rr,
|
|
3881
|
+
getValue: c = $r
|
|
3802
3882
|
}) {
|
|
3803
|
-
const
|
|
3804
|
-
const m = e[
|
|
3883
|
+
const h = o ? l(o) : "", g = t.reduce((p, b) => {
|
|
3884
|
+
const m = e[b], w = r[b], u = c(w, s, m), f = n ? i(b) : "";
|
|
3805
3885
|
return p + a(f, u);
|
|
3806
3886
|
}, "");
|
|
3807
|
-
return
|
|
3887
|
+
return h + g;
|
|
3808
3888
|
}
|
|
3809
|
-
function
|
|
3889
|
+
function Rr(r) {
|
|
3810
3890
|
return `<h3 style="margin: 0"><strong>${r}</strong></h3></br>`;
|
|
3811
3891
|
}
|
|
3812
|
-
function
|
|
3892
|
+
function Dr(r, e) {
|
|
3813
3893
|
return `${r}${e}</br>`;
|
|
3814
3894
|
}
|
|
3815
|
-
function
|
|
3895
|
+
function $r(r, e, t) {
|
|
3816
3896
|
try {
|
|
3817
|
-
return
|
|
3897
|
+
return qr(t)(r, e);
|
|
3818
3898
|
} catch {
|
|
3819
3899
|
return r;
|
|
3820
3900
|
}
|
|
3821
3901
|
}
|
|
3822
|
-
function
|
|
3823
|
-
return typeof r == "function" ? r : ((r &&
|
|
3902
|
+
function qr(r) {
|
|
3903
|
+
return typeof r == "function" ? r : ((r && pt[r]) ?? pt[pe.default]).format;
|
|
3824
3904
|
}
|
|
3825
|
-
function
|
|
3905
|
+
function xr(r) {
|
|
3826
3906
|
return `<strong>${r}</strong>: `;
|
|
3827
3907
|
}
|
|
3828
|
-
function
|
|
3908
|
+
function Do(r) {
|
|
3829
3909
|
return {
|
|
3830
3910
|
collapsed: r.legend?.collapsed,
|
|
3831
3911
|
collapsible: r.legend?.collapsible,
|
|
@@ -3841,8 +3921,8 @@ function To(r) {
|
|
|
3841
3921
|
visible: r.props.visible ?? !0
|
|
3842
3922
|
};
|
|
3843
3923
|
}
|
|
3844
|
-
function
|
|
3845
|
-
const e =
|
|
3924
|
+
function $o(r) {
|
|
3925
|
+
const e = F(22), {
|
|
3846
3926
|
children: t,
|
|
3847
3927
|
mapId: s
|
|
3848
3928
|
} = r;
|
|
@@ -3853,40 +3933,40 @@ function Lo(r) {
|
|
|
3853
3933
|
maxZoom: i,
|
|
3854
3934
|
minZoom: a
|
|
3855
3935
|
} = x(n);
|
|
3856
|
-
let
|
|
3857
|
-
e[2] !== s ? (
|
|
3858
|
-
const
|
|
3859
|
-
let
|
|
3860
|
-
e[4] !== s || e[5] !==
|
|
3861
|
-
const m =
|
|
3936
|
+
let l;
|
|
3937
|
+
e[2] !== s ? (l = (M) => M.areLayersLoaded[s], e[2] = s, e[3] = l) : l = e[3];
|
|
3938
|
+
const c = x(l), h = x(Br), y = x(Vr), g = x(Ur), p = !c;
|
|
3939
|
+
let b;
|
|
3940
|
+
e[4] !== s || e[5] !== h ? (b = (M) => h(s, M), e[4] = s, e[5] = h, e[6] = b) : b = e[6];
|
|
3941
|
+
const m = b;
|
|
3862
3942
|
let w;
|
|
3863
|
-
e[7] !==
|
|
3943
|
+
e[7] !== y || e[8] !== s ? (w = (M) => y(s, M), e[7] = y, e[8] = s, e[9] = w) : w = e[9];
|
|
3864
3944
|
const u = w;
|
|
3865
3945
|
let f;
|
|
3866
3946
|
e[10] !== s || e[11] !== g ? (f = () => g(s), e[10] = s, e[11] = g, e[12] = f) : f = e[12];
|
|
3867
|
-
const
|
|
3947
|
+
const v = f;
|
|
3868
3948
|
let _;
|
|
3869
|
-
return e[13] !== t || e[14] !== i || e[15] !== a || e[16] !== p || e[17] !== m || e[18] !== u || e[19] !==
|
|
3949
|
+
return e[13] !== t || e[14] !== i || e[15] !== a || e[16] !== p || e[17] !== m || e[18] !== u || e[19] !== v || e[20] !== o ? (_ = t({
|
|
3870
3950
|
zoom: o,
|
|
3871
3951
|
maxZoom: i,
|
|
3872
3952
|
minZoom: a,
|
|
3873
3953
|
isLoading: p,
|
|
3874
3954
|
setZoom: m,
|
|
3875
3955
|
flyTo: u,
|
|
3876
|
-
resetViewState:
|
|
3877
|
-
}), e[13] = t, e[14] = i, e[15] = a, e[16] = p, e[17] = m, e[18] = u, e[19] =
|
|
3956
|
+
resetViewState: v
|
|
3957
|
+
}), e[13] = t, e[14] = i, e[15] = a, e[16] = p, e[17] = m, e[18] = u, e[19] = v, e[20] = o, e[21] = _) : _ = e[21], _;
|
|
3878
3958
|
}
|
|
3879
|
-
function
|
|
3959
|
+
function Ur(r) {
|
|
3880
3960
|
return r.resetViewState;
|
|
3881
3961
|
}
|
|
3882
|
-
function
|
|
3962
|
+
function Vr(r) {
|
|
3883
3963
|
return r.flyTo;
|
|
3884
3964
|
}
|
|
3885
|
-
function
|
|
3965
|
+
function Br(r) {
|
|
3886
3966
|
return r.setZoom;
|
|
3887
3967
|
}
|
|
3888
|
-
async function
|
|
3889
|
-
baseUrl: r =
|
|
3968
|
+
async function jr({
|
|
3969
|
+
baseUrl: r = Ze,
|
|
3890
3970
|
connection: e,
|
|
3891
3971
|
accessToken: t,
|
|
3892
3972
|
query: s,
|
|
@@ -3896,25 +3976,25 @@ async function Ar({
|
|
|
3896
3976
|
...i
|
|
3897
3977
|
} = {},
|
|
3898
3978
|
queryParameters: a,
|
|
3899
|
-
params:
|
|
3900
|
-
apiVersion:
|
|
3979
|
+
params: l,
|
|
3980
|
+
apiVersion: c = Qe
|
|
3901
3981
|
}) {
|
|
3902
|
-
const
|
|
3903
|
-
return
|
|
3982
|
+
const h = `${r}/${c}/stats/${e}/${n}`;
|
|
3983
|
+
return qt({
|
|
3904
3984
|
accessToken: t,
|
|
3905
3985
|
signal: o,
|
|
3906
|
-
url:
|
|
3907
|
-
method:
|
|
3986
|
+
url: h,
|
|
3987
|
+
method: he.get,
|
|
3908
3988
|
params: {
|
|
3909
3989
|
q: s,
|
|
3910
3990
|
...a,
|
|
3911
|
-
...
|
|
3991
|
+
...l
|
|
3912
3992
|
},
|
|
3913
3993
|
...i
|
|
3914
3994
|
});
|
|
3915
3995
|
}
|
|
3916
|
-
async function
|
|
3917
|
-
baseUrl: r =
|
|
3996
|
+
async function Ir({
|
|
3997
|
+
baseUrl: r = Ze,
|
|
3918
3998
|
connection: e,
|
|
3919
3999
|
accessToken: t,
|
|
3920
4000
|
table: s,
|
|
@@ -3924,22 +4004,22 @@ async function Rr({
|
|
|
3924
4004
|
signal: i,
|
|
3925
4005
|
...a
|
|
3926
4006
|
} = {},
|
|
3927
|
-
apiVersion:
|
|
4007
|
+
apiVersion: l = Qe
|
|
3928
4008
|
}) {
|
|
3929
|
-
const
|
|
3930
|
-
return
|
|
4009
|
+
const c = `${r}/${l}/stats/${e}/${s}/${n}`;
|
|
4010
|
+
return qt({
|
|
3931
4011
|
accessToken: t,
|
|
3932
4012
|
signal: i,
|
|
3933
|
-
url:
|
|
3934
|
-
method:
|
|
4013
|
+
url: c,
|
|
4014
|
+
method: he.get,
|
|
3935
4015
|
params: {
|
|
3936
4016
|
...o
|
|
3937
4017
|
},
|
|
3938
4018
|
...a
|
|
3939
4019
|
});
|
|
3940
4020
|
}
|
|
3941
|
-
function
|
|
3942
|
-
const e =
|
|
4021
|
+
function qo(r) {
|
|
4022
|
+
const e = F(20), {
|
|
3943
4023
|
source: t,
|
|
3944
4024
|
attribute: s,
|
|
3945
4025
|
accessToken: n,
|
|
@@ -3947,26 +4027,26 @@ function Po(r) {
|
|
|
3947
4027
|
fetcherOptions: i,
|
|
3948
4028
|
useQueryProps: a
|
|
3949
4029
|
} = r;
|
|
3950
|
-
let
|
|
3951
|
-
e[0] !== a ? (
|
|
3952
|
-
let
|
|
3953
|
-
e[2] !==
|
|
3954
|
-
enabled:
|
|
3955
|
-
...
|
|
3956
|
-
} =
|
|
3957
|
-
const
|
|
4030
|
+
let l;
|
|
4031
|
+
e[0] !== a ? (l = a === void 0 ? {} : a, e[0] = a, e[1] = l) : l = e[1];
|
|
4032
|
+
let c, h;
|
|
4033
|
+
e[2] !== l ? ({
|
|
4034
|
+
enabled: c,
|
|
4035
|
+
...h
|
|
4036
|
+
} = l, e[2] = l, e[3] = c, e[4] = h) : (c = e[3], h = e[4]);
|
|
4037
|
+
const y = c === void 0 ? !0 : c;
|
|
3958
4038
|
let g;
|
|
3959
4039
|
e[5] !== s || e[6] !== t ? (g = [t, s], e[5] = s, e[6] = t, e[7] = g) : g = e[7];
|
|
3960
4040
|
let p;
|
|
3961
|
-
e[8] !== n || e[9] !== s || e[10] !== i || e[11] !== o || e[12] !== t ? (p = () =>
|
|
4041
|
+
e[8] !== n || e[9] !== s || e[10] !== i || e[11] !== o || e[12] !== t ? (p = () => Nr({
|
|
3962
4042
|
source: t,
|
|
3963
4043
|
params: o,
|
|
3964
4044
|
attribute: s,
|
|
3965
4045
|
accessToken: n,
|
|
3966
4046
|
fetcherOptions: i
|
|
3967
4047
|
}), e[8] = n, e[9] = s, e[10] = i, e[11] = o, e[12] = t, e[13] = p) : p = e[13];
|
|
3968
|
-
let
|
|
3969
|
-
return e[14] !==
|
|
4048
|
+
let b;
|
|
4049
|
+
return e[14] !== y || e[15] !== t || e[16] !== g || e[17] !== p || e[18] !== h ? (b = {
|
|
3970
4050
|
queryKey: g,
|
|
3971
4051
|
queryFn: p,
|
|
3972
4052
|
select(m) {
|
|
@@ -3975,11 +4055,11 @@ function Po(r) {
|
|
|
3975
4055
|
type: m.type.toLowerCase()
|
|
3976
4056
|
};
|
|
3977
4057
|
},
|
|
3978
|
-
enabled: !!t &&
|
|
3979
|
-
...
|
|
3980
|
-
}, e[14] =
|
|
4058
|
+
enabled: !!t && y,
|
|
4059
|
+
...h
|
|
4060
|
+
}, e[14] = y, e[15] = t, e[16] = g, e[17] = p, e[18] = h, e[19] = b) : b = e[19], le(b);
|
|
3981
4061
|
}
|
|
3982
|
-
function
|
|
4062
|
+
function Nr({
|
|
3983
4063
|
source: r,
|
|
3984
4064
|
params: e,
|
|
3985
4065
|
attribute: t,
|
|
@@ -3987,7 +4067,7 @@ function Dr({
|
|
|
3987
4067
|
fetcherOptions: n
|
|
3988
4068
|
}) {
|
|
3989
4069
|
if (r.type.startsWith("query"))
|
|
3990
|
-
return
|
|
4070
|
+
return jr({
|
|
3991
4071
|
connection: r.connectionName,
|
|
3992
4072
|
baseUrl: r.apiBaseUrl,
|
|
3993
4073
|
apiVersion: r.apiVersion,
|
|
@@ -3999,7 +4079,7 @@ function Dr({
|
|
|
3999
4079
|
fetcherOptions: n
|
|
4000
4080
|
});
|
|
4001
4081
|
if (r.type.startsWith("table"))
|
|
4002
|
-
return
|
|
4082
|
+
return Ir({
|
|
4003
4083
|
connection: r.connectionName,
|
|
4004
4084
|
baseUrl: r.apiBaseUrl,
|
|
4005
4085
|
apiVersion: r.apiVersion,
|
|
@@ -4010,7 +4090,7 @@ function Dr({
|
|
|
4010
4090
|
fetcherOptions: n
|
|
4011
4091
|
});
|
|
4012
4092
|
if (r.type.startsWith("tileset"))
|
|
4013
|
-
return
|
|
4093
|
+
return Hr({
|
|
4014
4094
|
source: r,
|
|
4015
4095
|
accessToken: s,
|
|
4016
4096
|
target: r.data,
|
|
@@ -4018,13 +4098,13 @@ function Dr({
|
|
|
4018
4098
|
});
|
|
4019
4099
|
throw new Error(`Unsupported source type: ${r.type}`);
|
|
4020
4100
|
}
|
|
4021
|
-
async function
|
|
4101
|
+
async function Hr({
|
|
4022
4102
|
source: r,
|
|
4023
4103
|
accessToken: e,
|
|
4024
4104
|
target: t,
|
|
4025
4105
|
attribute: s
|
|
4026
4106
|
}) {
|
|
4027
|
-
const n = await
|
|
4107
|
+
const n = await Ss({
|
|
4028
4108
|
connectionName: r.connectionName,
|
|
4029
4109
|
apiBaseUrl: r.apiBaseUrl,
|
|
4030
4110
|
accessToken: e,
|
|
@@ -4039,94 +4119,94 @@ async function $r({
|
|
|
4039
4119
|
return i;
|
|
4040
4120
|
}
|
|
4041
4121
|
export {
|
|
4042
|
-
|
|
4043
|
-
|
|
4122
|
+
yo as BasemapsControls,
|
|
4123
|
+
it as CONVERSIONS_UNITS,
|
|
4044
4124
|
$e as CartoBasemapURL,
|
|
4045
|
-
|
|
4046
|
-
|
|
4047
|
-
|
|
4048
|
-
|
|
4049
|
-
|
|
4050
|
-
|
|
4051
|
-
|
|
4052
|
-
|
|
4053
|
-
|
|
4125
|
+
re as CartoBasemaps,
|
|
4126
|
+
So as CategoriesModel,
|
|
4127
|
+
Ws as CustomCompositeEditMode,
|
|
4128
|
+
kt as CustomEditableGeojsonLayer,
|
|
4129
|
+
dn as CustomMeasureAreaMode,
|
|
4130
|
+
fn as CustomMeasureBufferMode,
|
|
4131
|
+
At as CustomMeasureDistanceMode,
|
|
4132
|
+
tt as DEFAULT_LASSO_TOOLS_COLORS,
|
|
4133
|
+
Ys as DEFAULT_LASSO_TOOLS_LAYER_PROPS,
|
|
4054
4134
|
Ue as DEFAULT_LASSO_TOOLS_MODES,
|
|
4055
|
-
|
|
4056
|
-
|
|
4057
|
-
|
|
4058
|
-
|
|
4135
|
+
xe as DEFAULT_LASSO_TOOLS_PROPS,
|
|
4136
|
+
Ee as DEFAULT_MASK_LAYER_PROPS,
|
|
4137
|
+
hn as DEFAULT_MEASUREMENT_TOOLS_MODES,
|
|
4138
|
+
gn as DEFAULT_MEASUREMENT_TOOLS_UNITS,
|
|
4059
4139
|
Ve as DEFAULT_MEASURE_COLORS,
|
|
4060
|
-
|
|
4061
|
-
|
|
4062
|
-
|
|
4063
|
-
|
|
4140
|
+
qs as DeckGLComponent,
|
|
4141
|
+
te as EditableEditType,
|
|
4142
|
+
wo as FeaturesModel,
|
|
4143
|
+
_o as FormulaModel,
|
|
4064
4144
|
De as GmapsBasemap,
|
|
4065
|
-
|
|
4066
|
-
|
|
4067
|
-
|
|
4068
|
-
|
|
4069
|
-
|
|
4070
|
-
|
|
4071
|
-
|
|
4072
|
-
|
|
4073
|
-
|
|
4074
|
-
|
|
4075
|
-
|
|
4076
|
-
|
|
4145
|
+
Mo as HistogramModel,
|
|
4146
|
+
be as INTL_UNITS,
|
|
4147
|
+
vn as LassoTools,
|
|
4148
|
+
on as LassoToolsProvider,
|
|
4149
|
+
ve as MAPS_BASEMAP,
|
|
4150
|
+
me as MAP_LASSO_TOOLS_LAYER_ID,
|
|
4151
|
+
Ce as MAP_MASK_LAYER_ID,
|
|
4152
|
+
ce as MAP_MEASURE_LAYER_ID,
|
|
4153
|
+
yn as MEASUREMENT_TOOLS_UNITS_AREA,
|
|
4154
|
+
lt as MEASUREMENT_TOOLS_UNITS_DISTANCE,
|
|
4155
|
+
X as MEASUREMENT_TOOLS_UNITS_DISTANCE_VALUES,
|
|
4156
|
+
go as MapComponent,
|
|
4077
4157
|
Ie as MapMeasurementUnitAuto,
|
|
4078
|
-
|
|
4079
|
-
|
|
4080
|
-
|
|
4081
|
-
|
|
4082
|
-
|
|
4083
|
-
|
|
4084
|
-
|
|
4085
|
-
|
|
4086
|
-
|
|
4087
|
-
|
|
4088
|
-
|
|
4089
|
-
|
|
4090
|
-
|
|
4091
|
-
|
|
4092
|
-
|
|
4093
|
-
|
|
4094
|
-
|
|
4095
|
-
|
|
4096
|
-
|
|
4097
|
-
|
|
4098
|
-
|
|
4099
|
-
|
|
4100
|
-
|
|
4101
|
-
|
|
4102
|
-
|
|
4103
|
-
|
|
4104
|
-
|
|
4105
|
-
|
|
4106
|
-
|
|
4107
|
-
|
|
4108
|
-
|
|
4109
|
-
|
|
4110
|
-
|
|
4111
|
-
|
|
4112
|
-
|
|
4113
|
-
|
|
4114
|
-
|
|
4115
|
-
|
|
4116
|
-
|
|
4117
|
-
|
|
4158
|
+
mn as MapMeasurementUnitTurf,
|
|
4159
|
+
Zs as MapProvider,
|
|
4160
|
+
Co as MapsProvider,
|
|
4161
|
+
ie as MapsTypes,
|
|
4162
|
+
Dn as MeasurementTools,
|
|
4163
|
+
Mn as MeasurementToolsProvider,
|
|
4164
|
+
Eo as RangeModel,
|
|
4165
|
+
To as ScatterModel,
|
|
4166
|
+
Lo as TableModel,
|
|
4167
|
+
Po as TimeSeriesModel,
|
|
4168
|
+
$o as ZoomControls,
|
|
4169
|
+
ko as clientID,
|
|
4170
|
+
nt as convertMetersTo,
|
|
4171
|
+
rn as createLassoToolsStore,
|
|
4172
|
+
Ks as createMapStore,
|
|
4173
|
+
_n as createMeasurementToolsStore,
|
|
4174
|
+
pe as formatterTypes,
|
|
4175
|
+
Ms as getCursorDefault,
|
|
4176
|
+
ho as getDeckController,
|
|
4177
|
+
vo as getFilterValues,
|
|
4178
|
+
sn as getLassoToolsLayer,
|
|
4179
|
+
Sn as getMeasurementToolsLayer,
|
|
4180
|
+
Oe as getTextLayerFormattedDistance,
|
|
4181
|
+
Es as getTooltipDefault,
|
|
4182
|
+
Do as mappingLegendMeridian,
|
|
4183
|
+
Ro as objectToHtml,
|
|
4184
|
+
$t as sortLayers,
|
|
4185
|
+
Vs as transitionFlyConfig,
|
|
4186
|
+
br as useCategories,
|
|
4187
|
+
Pt as useEventManager,
|
|
4188
|
+
vr as useFeatures,
|
|
4189
|
+
ur as useFilters,
|
|
4190
|
+
Sr as useFormula,
|
|
4191
|
+
wr as useHistogram,
|
|
4192
|
+
Pr as useLassoToolsSpatialFilter,
|
|
4193
|
+
Z as useLassoToolsState,
|
|
4194
|
+
ge as useLayerStore,
|
|
4195
|
+
jn as useLayers,
|
|
4196
|
+
Oo as useLegend,
|
|
4197
|
+
Fo as useMapScreenshot,
|
|
4118
4198
|
x as useMapStore,
|
|
4119
4199
|
G as useMeasurementToolsState,
|
|
4120
|
-
|
|
4121
|
-
|
|
4122
|
-
|
|
4123
|
-
|
|
4124
|
-
|
|
4125
|
-
|
|
4126
|
-
|
|
4127
|
-
|
|
4128
|
-
|
|
4129
|
-
|
|
4130
|
-
|
|
4200
|
+
_r as useRange,
|
|
4201
|
+
Mr as useScatter,
|
|
4202
|
+
cr as useSource,
|
|
4203
|
+
ke as useSourceStore,
|
|
4204
|
+
bo as useSourceWithFilters,
|
|
4205
|
+
Ao as useSpatialFilter,
|
|
4206
|
+
qo as useStats,
|
|
4207
|
+
Er as useTable,
|
|
4208
|
+
Tr as useTimeSeries,
|
|
4209
|
+
Lr as useViewportSpatialFilter,
|
|
4210
|
+
yr as useWidgetModel
|
|
4131
4211
|
};
|
|
4132
4212
|
//# sourceMappingURL=index.js.map
|