@carto/ps-react-maps 4.0.2 → 4.1.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 +731 -727
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { c as
|
|
3
|
-
import { useImperativeHandle as Ne, useEffect as
|
|
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
4
|
import { MapProvider as xt, Map as Ut, useMap as Vt } from "react-map-gl/maplibre";
|
|
5
5
|
import Bt from "@deck.gl/react";
|
|
6
|
-
import { useMap as yt, Map as
|
|
6
|
+
import { useMap as yt, Map as It, APIProvider as jt } from "@vis.gl/react-google-maps";
|
|
7
7
|
import { GoogleMapsOverlay as Nt } from "@deck.gl/google-maps";
|
|
8
8
|
import { createStore as Ge, useStore as Ke, create as ht } from "zustand";
|
|
9
9
|
import { FlyToInterpolator as Ht, WebMercatorViewport as gt } from "@deck.gl/core";
|
|
@@ -36,7 +36,7 @@ const De = {
|
|
|
36
36
|
}, ie = {
|
|
37
37
|
maplibre: "maplibre",
|
|
38
38
|
googleMaps: "google-maps"
|
|
39
|
-
},
|
|
39
|
+
}, ve = {
|
|
40
40
|
[re.positron]: {
|
|
41
41
|
url: $e[re.positron],
|
|
42
42
|
type: ie.maplibre
|
|
@@ -76,8 +76,8 @@ function Es(r) {
|
|
|
76
76
|
} : null;
|
|
77
77
|
}
|
|
78
78
|
function Ts(r) {
|
|
79
|
-
const e =
|
|
80
|
-
let t, s, n, o, i, a, l, c, h, y,
|
|
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
83
|
overlayRef: y,
|
|
@@ -85,13 +85,13 @@ function Ts(r) {
|
|
|
85
85
|
id: o,
|
|
86
86
|
layers: a,
|
|
87
87
|
mapStyle: l,
|
|
88
|
-
parameters:
|
|
88
|
+
parameters: g,
|
|
89
89
|
getCursor: s,
|
|
90
90
|
getTooltip: n,
|
|
91
91
|
onLoad: c,
|
|
92
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] = l, e[8] = c, e[9] = h, e[10] = y, e[11] =
|
|
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
95
|
let b;
|
|
96
96
|
e[13] !== a ? (b = a.filter(ks).map(Ps), e[13] = a, e[14] = b) : b = e[14];
|
|
97
97
|
const m = b, w = i;
|
|
@@ -101,24 +101,24 @@ function Ts(r) {
|
|
|
101
101
|
value: !0
|
|
102
102
|
}), e[15] = c, e[16] = u) : u = e[16];
|
|
103
103
|
let f;
|
|
104
|
-
e[17] !==
|
|
104
|
+
e[17] !== g ? (f = {
|
|
105
105
|
depthTest: !1,
|
|
106
|
-
...
|
|
107
|
-
}, e[17] =
|
|
108
|
-
let
|
|
109
|
-
e[19] !== y ? (
|
|
110
|
-
let
|
|
111
|
-
e[21] !== c ? (
|
|
106
|
+
...g
|
|
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];
|
|
110
|
+
let _;
|
|
111
|
+
e[21] !== c ? (_ = () => c({
|
|
112
112
|
type: "load",
|
|
113
113
|
value: !0
|
|
114
|
-
}), e[21] = c, e[22] =
|
|
115
|
-
let
|
|
116
|
-
e[23] !== l || e[24] !==
|
|
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];
|
|
117
117
|
let P;
|
|
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] !==
|
|
119
|
-
|
|
120
|
-
|
|
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] =
|
|
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
123
|
function Ls() {
|
|
124
124
|
document.querySelector(".maplibregl-compact-show")?.classList.remove("maplibregl-compact-show");
|
|
@@ -134,7 +134,7 @@ function ks(r) {
|
|
|
134
134
|
return !!r?.type;
|
|
135
135
|
}
|
|
136
136
|
function Cs(r) {
|
|
137
|
-
const e =
|
|
137
|
+
const e = F(3), {
|
|
138
138
|
overlayRef: t
|
|
139
139
|
} = r, {
|
|
140
140
|
default: s
|
|
@@ -143,7 +143,7 @@ function Cs(r) {
|
|
|
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
145
|
const Os = (r) => {
|
|
146
|
-
const e =
|
|
146
|
+
const e = F(9);
|
|
147
147
|
let t;
|
|
148
148
|
e[0] === Symbol.for("react.memo_cache_sentinel") ? (t = new Nt({
|
|
149
149
|
interleaved: !0
|
|
@@ -154,32 +154,32 @@ const Os = (r) => {
|
|
|
154
154
|
let a, l;
|
|
155
155
|
e[3] !== n ? (a = () => (s.setMap(n), () => {
|
|
156
156
|
s.finalize();
|
|
157
|
-
}), l = [s, n], e[3] = n, e[4] = a, e[5] = l) : (a = e[4], l = e[5]),
|
|
157
|
+
}), l = [s, n], e[3] = n, e[4] = a, e[5] = l) : (a = e[4], l = e[5]), Q(a, l);
|
|
158
158
|
let c, h;
|
|
159
159
|
return e[6] !== r ? (c = () => {
|
|
160
160
|
s.setProps(r);
|
|
161
|
-
}, h = [s, r], e[6] = r, e[7] = c, e[8] = h) : (c = e[7], h = e[8]),
|
|
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
163
|
function Fs(r) {
|
|
164
|
-
const e =
|
|
165
|
-
let t, s, n, o, i, a, l, c, h, y,
|
|
164
|
+
const e = F(73);
|
|
165
|
+
let t, s, n, o, i, a, l, c, h, y, g;
|
|
166
166
|
e[0] !== r ? ({
|
|
167
167
|
id: n,
|
|
168
168
|
instanceRef: o,
|
|
169
169
|
basemap: t,
|
|
170
170
|
layers: i,
|
|
171
|
-
gmapsProps:
|
|
171
|
+
gmapsProps: g,
|
|
172
172
|
overlayRef: c,
|
|
173
173
|
parameters: h,
|
|
174
174
|
controller: s,
|
|
175
175
|
onLoad: a,
|
|
176
176
|
onViewStateChange: l,
|
|
177
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] =
|
|
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
179
|
let p;
|
|
180
|
-
e[12] !==
|
|
180
|
+
e[12] !== g ? (p = g === void 0 ? {
|
|
181
181
|
apiKey: ""
|
|
182
|
-
} :
|
|
182
|
+
} : g, e[12] = g, e[13] = p) : p = e[13];
|
|
183
183
|
let b, m, w;
|
|
184
184
|
e[14] !== p ? ({
|
|
185
185
|
apiKey: w,
|
|
@@ -197,7 +197,7 @@ function Fs(r) {
|
|
|
197
197
|
}, e[18] = s, e[19] = oe) : oe = e[19], u = oe;
|
|
198
198
|
break e;
|
|
199
199
|
}
|
|
200
|
-
const
|
|
200
|
+
const W = s, se = W?.dragPan ?? !0, J = W?.doubleClickZoom ?? !0, Y = W?.scrollZoom ?? !0;
|
|
201
201
|
let ne;
|
|
202
202
|
e[20] !== se || e[21] !== J || e[22] !== Y ? (ne = {
|
|
203
203
|
dragPan: se,
|
|
@@ -206,14 +206,14 @@ function Fs(r) {
|
|
|
206
206
|
}, e[20] = se, e[21] = J, e[22] = Y, e[23] = ne) : ne = e[23], u = ne;
|
|
207
207
|
}
|
|
208
208
|
const f = u;
|
|
209
|
-
let
|
|
210
|
-
e[24] !== i ? (
|
|
211
|
-
const
|
|
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
212
|
let P;
|
|
213
|
-
e[26] !== o || e[27] !== l ? (P = (
|
|
213
|
+
e[26] !== o || e[27] !== l ? (P = (W) => {
|
|
214
214
|
const J = o?.current?._deck, Y = {
|
|
215
215
|
...J?.viewState,
|
|
216
|
-
...
|
|
216
|
+
...W
|
|
217
217
|
}, ne = {
|
|
218
218
|
latitude: Y.latitude,
|
|
219
219
|
longitude: Y.longitude,
|
|
@@ -230,46 +230,46 @@ function Fs(r) {
|
|
|
230
230
|
}
|
|
231
231
|
});
|
|
232
232
|
}, e[26] = o, e[27] = l, e[28] = P) : P = e[28];
|
|
233
|
-
const
|
|
234
|
-
let
|
|
235
|
-
e[29] !==
|
|
236
|
-
lat:
|
|
237
|
-
lng:
|
|
238
|
-
}, e[29] =
|
|
239
|
-
const
|
|
240
|
-
let
|
|
241
|
-
e[32] !==
|
|
233
|
+
const A = P, j = y.initialViewState?.latitude ?? 0, R = y.initialViewState?.longitude ?? 0;
|
|
234
|
+
let q;
|
|
235
|
+
e[29] !== j || e[30] !== R ? (q = {
|
|
236
|
+
lat: j,
|
|
237
|
+
lng: R
|
|
238
|
+
}, e[29] = j, e[30] = R, e[31] = q) : q = e[31];
|
|
239
|
+
const I = (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
242
|
a({
|
|
243
243
|
type: "load",
|
|
244
244
|
value: !0
|
|
245
|
-
}),
|
|
246
|
-
}, e[32] =
|
|
247
|
-
let d,
|
|
248
|
-
e[36] !==
|
|
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
249
|
const L = typeof f.scrollZoom == "boolean" ? f.scrollZoom : !!f.scrollZoom, C = f.dragPan ? "greedy" : "none", k = !f.doubleClickZoom;
|
|
250
|
-
let
|
|
251
|
-
e[39] !== n || e[40] !== c ? (
|
|
252
|
-
let
|
|
253
|
-
e[42] !== a ? (
|
|
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
254
|
a({
|
|
255
255
|
type: "deckgl",
|
|
256
256
|
value: !0
|
|
257
257
|
});
|
|
258
|
-
}, e[42] = a, e[43] =
|
|
259
|
-
let
|
|
260
|
-
e[44] !== h ? (
|
|
258
|
+
}, e[42] = a, e[43] = V) : V = e[43];
|
|
259
|
+
let B;
|
|
260
|
+
e[44] !== h ? (B = {
|
|
261
261
|
depthTest: !1,
|
|
262
262
|
...h
|
|
263
|
-
}, e[44] = h, e[45] =
|
|
264
|
-
let
|
|
265
|
-
e[46] !==
|
|
266
|
-
let
|
|
267
|
-
e[53] !== m || e[54] !== t || e[55] !== n || e[56] !==
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
] }) }), e[53] = m, e[54] = t, e[55] = n, e[56] =
|
|
263
|
+
}, e[44] = h, e[45] = B) : B = e[45];
|
|
264
|
+
let N;
|
|
265
|
+
e[46] !== _ || e[47] !== n || e[48] !== o || e[49] !== y || e[50] !== V || e[51] !== B ? (N = /* @__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] = N) : N = 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] !== N || e[66] !== q || e[67] !== I ? (U = /* @__PURE__ */ K("div", { className: "deckgl-map", children: /* @__PURE__ */ mt(It, { id: n, mapTypeId: t, disableDefaultUI: !0, ...m, center: q, zoom: I, tilt: D, heading: T, onTilesLoaded: O, onBoundsChanged: d, onZoomChanged: S, scrollwheel: L, gestureHandling: C, disableDoubleClickZoom: k, children: [
|
|
268
|
+
E,
|
|
269
|
+
N
|
|
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] = N, e[66] = q, e[67] = I, e[68] = U) : U = e[68];
|
|
271
271
|
let z;
|
|
272
|
-
return e[69] !== b || e[70] !== w || e[71] !==
|
|
272
|
+
return e[69] !== b || e[70] !== w || e[71] !== U ? (z = /* @__PURE__ */ K(jt, { apiKey: w, ...b, children: U }), e[69] = b, e[70] = w, e[71] = U, e[72] = z) : z = e[72], z;
|
|
273
273
|
}
|
|
274
274
|
function As(r) {
|
|
275
275
|
const {
|
|
@@ -299,7 +299,7 @@ function Ds(r) {
|
|
|
299
299
|
return !!r?.type;
|
|
300
300
|
}
|
|
301
301
|
function $s(r) {
|
|
302
|
-
const e =
|
|
302
|
+
const e = F(3), {
|
|
303
303
|
id: t,
|
|
304
304
|
overlayRef: s
|
|
305
305
|
} = r, n = yt(t);
|
|
@@ -307,8 +307,8 @@ function $s(r) {
|
|
|
307
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;
|
|
308
308
|
}
|
|
309
309
|
function qs(r) {
|
|
310
|
-
const e =
|
|
311
|
-
let t, s, n, o, i, a, l, c, h, y,
|
|
310
|
+
const e = F(46);
|
|
311
|
+
let t, s, n, o, i, a, l, c, h, y, g, p;
|
|
312
312
|
e[0] !== r ? ({
|
|
313
313
|
instanceRef: s,
|
|
314
314
|
overlayRef: o,
|
|
@@ -318,47 +318,47 @@ function qs(r) {
|
|
|
318
318
|
layers: h,
|
|
319
319
|
gmapsProps: t,
|
|
320
320
|
getCursor: y,
|
|
321
|
-
getTooltip:
|
|
321
|
+
getTooltip: g,
|
|
322
322
|
onLoad: n,
|
|
323
323
|
onViewStateChange: p,
|
|
324
324
|
...i
|
|
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] =
|
|
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
326
|
const b = a === void 0 ? re.positron : a, m = l === void 0 ? !0 : l, w = c === void 0 ? "deck-gl-map" : c;
|
|
327
327
|
let u;
|
|
328
328
|
e[13] !== h ? (u = h === void 0 ? [] : h, e[13] = h, e[14] = u) : u = e[14];
|
|
329
|
-
const f = u,
|
|
329
|
+
const f = u, v = y === void 0 ? Ms : y, _ = g === void 0 ? Es : g, M = p === void 0 ? Us : p;
|
|
330
330
|
let P;
|
|
331
331
|
e[15] === Symbol.for("react.memo_cache_sentinel") ? (P = [!1, !1], e[15] = P) : P = e[15];
|
|
332
|
-
const [
|
|
333
|
-
url:
|
|
334
|
-
type:
|
|
335
|
-
} =
|
|
336
|
-
let
|
|
337
|
-
e[16] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
338
|
-
const
|
|
339
|
-
|
|
340
|
-
}, e[16] =
|
|
341
|
-
const
|
|
342
|
-
let
|
|
343
|
-
e[17] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
344
|
-
|
|
332
|
+
const [A, j] = ae(P), {
|
|
333
|
+
url: R,
|
|
334
|
+
type: q
|
|
335
|
+
} = ve[b], I = 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
|
+
j((V) => V.map((B, N) => N === 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({
|
|
345
345
|
type: "load",
|
|
346
346
|
value: !1
|
|
347
|
-
}),
|
|
347
|
+
}), T({
|
|
348
348
|
type: "deckgl",
|
|
349
349
|
value: !1
|
|
350
350
|
});
|
|
351
|
-
}, d = [
|
|
352
|
-
let
|
|
353
|
-
if (e[19] !==
|
|
354
|
-
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);
|
|
355
355
|
n?.(k);
|
|
356
|
-
}, L = [
|
|
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), I) {
|
|
357
357
|
let k;
|
|
358
|
-
return e[23] !== b || e[24] !== m || e[25] !==
|
|
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;
|
|
359
359
|
}
|
|
360
360
|
let C;
|
|
361
|
-
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;
|
|
362
362
|
}
|
|
363
363
|
function xs(r) {
|
|
364
364
|
return r;
|
|
@@ -372,7 +372,7 @@ const Vs = {
|
|
|
372
372
|
curve: 2
|
|
373
373
|
})
|
|
374
374
|
};
|
|
375
|
-
var
|
|
375
|
+
var Me = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
376
376
|
function Et(r) {
|
|
377
377
|
return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
|
|
378
378
|
}
|
|
@@ -400,16 +400,16 @@ function Bs() {
|
|
|
400
400
|
function a(u, f) {
|
|
401
401
|
return f.clone !== !1 && f.isMergeableObject(u) ? m(i(u), u, f) : u;
|
|
402
402
|
}
|
|
403
|
-
function l(u, f,
|
|
404
|
-
return u.concat(f).map(function(
|
|
405
|
-
return a(
|
|
403
|
+
function l(u, f, v) {
|
|
404
|
+
return u.concat(f).map(function(_) {
|
|
405
|
+
return a(_, v);
|
|
406
406
|
});
|
|
407
407
|
}
|
|
408
408
|
function c(u, f) {
|
|
409
409
|
if (!f.customMerge)
|
|
410
410
|
return m;
|
|
411
|
-
var
|
|
412
|
-
return typeof
|
|
411
|
+
var v = f.customMerge(u);
|
|
412
|
+
return typeof v == "function" ? v : m;
|
|
413
413
|
}
|
|
414
414
|
function h(u) {
|
|
415
415
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(u).filter(function(f) {
|
|
@@ -419,7 +419,7 @@ function Bs() {
|
|
|
419
419
|
function y(u) {
|
|
420
420
|
return Object.keys(u).concat(h(u));
|
|
421
421
|
}
|
|
422
|
-
function
|
|
422
|
+
function g(u, f) {
|
|
423
423
|
try {
|
|
424
424
|
return f in u;
|
|
425
425
|
} catch {
|
|
@@ -427,33 +427,33 @@ function Bs() {
|
|
|
427
427
|
}
|
|
428
428
|
}
|
|
429
429
|
function p(u, f) {
|
|
430
|
-
return
|
|
430
|
+
return g(u, f) && !(Object.hasOwnProperty.call(u, f) && Object.propertyIsEnumerable.call(u, f));
|
|
431
431
|
}
|
|
432
|
-
function b(u, f,
|
|
433
|
-
var
|
|
434
|
-
return
|
|
435
|
-
M
|
|
436
|
-
}), y(f).forEach(function(
|
|
437
|
-
p(u,
|
|
438
|
-
}),
|
|
432
|
+
function b(u, f, v) {
|
|
433
|
+
var _ = {};
|
|
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));
|
|
438
|
+
}), _;
|
|
439
439
|
}
|
|
440
|
-
function m(u, f,
|
|
441
|
-
|
|
442
|
-
var
|
|
443
|
-
return P ?
|
|
440
|
+
function m(u, f, v) {
|
|
441
|
+
v = v || {}, v.arrayMerge = v.arrayMerge || l, v.isMergeableObject = v.isMergeableObject || r, v.cloneUnlessOtherwiseSpecified = a;
|
|
442
|
+
var _ = Array.isArray(f), M = Array.isArray(u), P = _ === M;
|
|
443
|
+
return P ? _ ? v.arrayMerge(u, f, v) : b(u, f, v) : a(f, v);
|
|
444
444
|
}
|
|
445
|
-
m.all = function(f,
|
|
445
|
+
m.all = function(f, v) {
|
|
446
446
|
if (!Array.isArray(f))
|
|
447
447
|
throw new Error("first argument should be an array");
|
|
448
|
-
return f.reduce(function(
|
|
449
|
-
return m(
|
|
448
|
+
return f.reduce(function(_, M) {
|
|
449
|
+
return m(_, M, v);
|
|
450
450
|
}, {});
|
|
451
451
|
};
|
|
452
452
|
var w = m;
|
|
453
453
|
return qe = w, qe;
|
|
454
454
|
}
|
|
455
|
-
var
|
|
456
|
-
const de = /* @__PURE__ */ Et(
|
|
455
|
+
var Is = Bs();
|
|
456
|
+
const de = /* @__PURE__ */ Et(Is), js = (r) => {
|
|
457
457
|
const e = r.reduce((t, s) => {
|
|
458
458
|
const {
|
|
459
459
|
id: n,
|
|
@@ -477,9 +477,9 @@ const de = /* @__PURE__ */ Et(js), Is = (r) => {
|
|
|
477
477
|
setBasemap: (n, o) => t((i) => {
|
|
478
478
|
const {
|
|
479
479
|
type: a
|
|
480
|
-
} =
|
|
480
|
+
} = ve[i.maps[n].basemap], {
|
|
481
481
|
type: l
|
|
482
|
-
} =
|
|
482
|
+
} = ve[o], c = a === l && !!i.maps[n]?.isLoaded;
|
|
483
483
|
return {
|
|
484
484
|
maps: {
|
|
485
485
|
...i.maps,
|
|
@@ -514,13 +514,17 @@ const de = /* @__PURE__ */ Et(js), Is = (r) => {
|
|
|
514
514
|
getBounds: (n, o, i) => {
|
|
515
515
|
const a = s();
|
|
516
516
|
if (!a.maps?.[n]?.isLoaded) return;
|
|
517
|
-
const l = a.getViewState(n);
|
|
518
|
-
if (!l) return;
|
|
519
|
-
const h = new gt(
|
|
517
|
+
const l = a.getViewState(n), c = a.getDeckInstance(n);
|
|
518
|
+
if (!l || !c?.height || !c?.width) return;
|
|
519
|
+
const h = l?.height ?? c?.height, y = l?.width ?? c?.width, p = new gt({
|
|
520
|
+
...l,
|
|
521
|
+
height: h,
|
|
522
|
+
width: y
|
|
523
|
+
}).fitBounds(o, i?.boundsOptions);
|
|
520
524
|
return {
|
|
521
|
-
latitude:
|
|
522
|
-
longitude:
|
|
523
|
-
zoom:
|
|
525
|
+
latitude: p.latitude,
|
|
526
|
+
longitude: p.longitude,
|
|
527
|
+
zoom: p.zoom,
|
|
524
528
|
...i?.viewStateOptions
|
|
525
529
|
};
|
|
526
530
|
},
|
|
@@ -694,14 +698,14 @@ const de = /* @__PURE__ */ Et(js), Is = (r) => {
|
|
|
694
698
|
}
|
|
695
699
|
}));
|
|
696
700
|
}, Ks = (r) => Ge()((...e) => ({
|
|
697
|
-
...
|
|
701
|
+
...js(r)(...e),
|
|
698
702
|
...Ns(r)(...e),
|
|
699
703
|
...Hs(r)(...e),
|
|
700
704
|
...Gs(r)(...e),
|
|
701
705
|
...zs(...e)
|
|
702
706
|
})), Tt = He({});
|
|
703
707
|
function Zs(r) {
|
|
704
|
-
const e =
|
|
708
|
+
const e = F(5), {
|
|
705
709
|
children: t,
|
|
706
710
|
values: s
|
|
707
711
|
} = r;
|
|
@@ -709,16 +713,16 @@ function Zs(r) {
|
|
|
709
713
|
e[0] !== s ? (n = Ks(s), e[0] = s, e[1] = n) : n = e[1];
|
|
710
714
|
const [o] = ae(n);
|
|
711
715
|
let i;
|
|
712
|
-
return e[2] !== t || e[3] !== o ? (i = /* @__PURE__ */
|
|
716
|
+
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;
|
|
713
717
|
}
|
|
714
|
-
function
|
|
718
|
+
function x(r) {
|
|
715
719
|
const e = ze(Tt);
|
|
716
720
|
if (!Object.keys(e).length)
|
|
717
721
|
throw new Error("Missing MapProvider in the tree");
|
|
718
722
|
return Ke(e, r);
|
|
719
723
|
}
|
|
720
724
|
function yo(r) {
|
|
721
|
-
const e =
|
|
725
|
+
const e = F(9), {
|
|
722
726
|
children: t,
|
|
723
727
|
mapId: s
|
|
724
728
|
} = r;
|
|
@@ -726,7 +730,7 @@ function yo(r) {
|
|
|
726
730
|
e[0] !== s ? (n = (h) => h.maps[s], e[0] = s, e[1] = n) : n = e[1];
|
|
727
731
|
const {
|
|
728
732
|
basemap: o
|
|
729
|
-
} =
|
|
733
|
+
} = x(n), i = x(Qs);
|
|
730
734
|
let a;
|
|
731
735
|
e[2] !== s || e[3] !== i ? (a = (h) => i(s, h), e[2] = s, e[3] = i, e[4] = a) : a = e[4];
|
|
732
736
|
const l = a;
|
|
@@ -794,7 +798,7 @@ const me = "lassoLayer", Ce = "maskLayer", Ys = {
|
|
|
794
798
|
}
|
|
795
799
|
}, Js = [new ss({
|
|
796
800
|
filterSize: 1
|
|
797
|
-
})],
|
|
801
|
+
})], Ee = {
|
|
798
802
|
id: Ce,
|
|
799
803
|
operation: "mask",
|
|
800
804
|
pickable: !1,
|
|
@@ -822,7 +826,7 @@ const me = "lassoLayer", Ce = "maskLayer", Ys = {
|
|
|
822
826
|
value: "edit",
|
|
823
827
|
mode: Ws
|
|
824
828
|
}
|
|
825
|
-
},
|
|
829
|
+
}, ge = ht((r) => ({
|
|
826
830
|
layers: {},
|
|
827
831
|
setLayer: (e, t) => r((s) => {
|
|
828
832
|
const n = {
|
|
@@ -879,20 +883,20 @@ const me = "lassoLayer", Ce = "maskLayer", Ys = {
|
|
|
879
883
|
}, ["pinch"], ["multipan"]]
|
|
880
884
|
};
|
|
881
885
|
function Pt(r) {
|
|
882
|
-
const e =
|
|
886
|
+
const e = F(12), {
|
|
883
887
|
mapId: t,
|
|
884
888
|
layerId: s
|
|
885
889
|
} = r;
|
|
886
890
|
let n;
|
|
887
891
|
e[0] !== t ? (n = (b) => b.maps[t]?.basemap, e[0] = t, e[1] = n) : n = e[1];
|
|
888
|
-
const o =
|
|
892
|
+
const o = x(n);
|
|
889
893
|
let i;
|
|
890
894
|
e[2] !== t ? (i = (b) => b.maps[t]?.isLoaded, e[2] = t, e[3] = i) : i = e[3];
|
|
891
|
-
const a =
|
|
895
|
+
const a = x(i), l = x(tn), c = ge(en), {
|
|
892
896
|
type: h
|
|
893
|
-
} =
|
|
894
|
-
let
|
|
895
|
-
e[4] !== l || e[5] !== y || e[6] !== a || e[7] !== s || e[8] !== t || e[9] !== c ? (
|
|
897
|
+
} = ve[o], y = h === ie.googleMaps;
|
|
898
|
+
let g, p;
|
|
899
|
+
e[4] !== l || e[5] !== y || e[6] !== a || e[7] !== s || e[8] !== t || e[9] !== c ? (g = () => {
|
|
896
900
|
let b = null;
|
|
897
901
|
if (y && a) {
|
|
898
902
|
const m = l(t);
|
|
@@ -905,7 +909,7 @@ function Pt(r) {
|
|
|
905
909
|
eventManager: b
|
|
906
910
|
}
|
|
907
911
|
});
|
|
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] =
|
|
912
|
+
}, 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
913
|
}
|
|
910
914
|
function Xs(r) {
|
|
911
915
|
const [e, t, s, n] = Lt[r], o = {
|
|
@@ -1095,7 +1099,7 @@ const rn = (r) => Ge()((e) => ({
|
|
|
1095
1099
|
}
|
|
1096
1100
|
})), Ct = He({});
|
|
1097
1101
|
function on(r) {
|
|
1098
|
-
const e =
|
|
1102
|
+
const e = F(5), {
|
|
1099
1103
|
children: t,
|
|
1100
1104
|
values: s
|
|
1101
1105
|
} = r;
|
|
@@ -1103,9 +1107,9 @@ function on(r) {
|
|
|
1103
1107
|
e[0] !== s ? (n = () => rn(s), e[0] = s, e[1] = n) : n = e[1];
|
|
1104
1108
|
const [o] = ae(n);
|
|
1105
1109
|
let i;
|
|
1106
|
-
return e[2] !== t || e[3] !== o ? (i = /* @__PURE__ */
|
|
1110
|
+
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;
|
|
1107
1111
|
}
|
|
1108
|
-
function
|
|
1112
|
+
function Z(r) {
|
|
1109
1113
|
const e = ze(Ct);
|
|
1110
1114
|
if (!Object.keys(e).length)
|
|
1111
1115
|
throw new Error("Missing LassoToolsProvider in the tree");
|
|
@@ -1115,8 +1119,8 @@ function an({
|
|
|
1115
1119
|
mapId: r,
|
|
1116
1120
|
children: e
|
|
1117
1121
|
}) {
|
|
1118
|
-
const t =
|
|
1119
|
-
|
|
1122
|
+
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);
|
|
1123
|
+
Q(() => {
|
|
1120
1124
|
const p = c[a];
|
|
1121
1125
|
if (p && t) {
|
|
1122
1126
|
const b = p.mode;
|
|
@@ -1137,7 +1141,7 @@ function an({
|
|
|
1137
1141
|
Object.values(n).filter((w) => w.type === "mask").map(p)
|
|
1138
1142
|
// , draw
|
|
1139
1143
|
];
|
|
1140
|
-
}, [n]),
|
|
1144
|
+
}, [n]), g = ee((p) => {
|
|
1141
1145
|
s(r, !!p), l(r, p);
|
|
1142
1146
|
}, [r, s, l]);
|
|
1143
1147
|
return e({
|
|
@@ -1152,7 +1156,7 @@ function an({
|
|
|
1152
1156
|
setValue: ee((p, b) => o(r, p, b), [r, o]),
|
|
1153
1157
|
setEnabled: ee((p) => s(r, p), [r, s]),
|
|
1154
1158
|
setVisibility: ee((p, b) => i(r, p, b), [r, i]),
|
|
1155
|
-
setModeSelected:
|
|
1159
|
+
setModeSelected: g
|
|
1156
1160
|
});
|
|
1157
1161
|
}
|
|
1158
1162
|
function Ot({
|
|
@@ -1200,15 +1204,15 @@ function Oe({
|
|
|
1200
1204
|
},
|
|
1201
1205
|
dimension: i = "length"
|
|
1202
1206
|
}) {
|
|
1203
|
-
const a = e ===
|
|
1207
|
+
const a = e === je["m-km"], l = e === je["ft-mi"], c = a || l;
|
|
1204
1208
|
let h, y;
|
|
1205
1209
|
if (c) {
|
|
1206
1210
|
const p = r < (s ?? rt);
|
|
1207
1211
|
let b = p ? H.meter : H.kilometer;
|
|
1208
|
-
h = p ?
|
|
1212
|
+
h = p ? be.meter : be.kilometer, l && (h = p ? be.feet : be.mile, b = p ? H.feet : H.mile), y = nt(r, b, i);
|
|
1209
1213
|
} else
|
|
1210
|
-
h =
|
|
1211
|
-
let
|
|
1214
|
+
h = be[e], y = nt(r, e, i);
|
|
1215
|
+
let g = `${wt(y, t, {
|
|
1212
1216
|
style: "unit",
|
|
1213
1217
|
unit: h,
|
|
1214
1218
|
unitDisplay: "short",
|
|
@@ -1217,7 +1221,7 @@ function Oe({
|
|
|
1217
1221
|
maximumFractionDigits: 2,
|
|
1218
1222
|
...o
|
|
1219
1223
|
})}`;
|
|
1220
|
-
return i === "area" && (
|
|
1224
|
+
return i === "area" && (g += "2"), n ? n(g) : g;
|
|
1221
1225
|
}
|
|
1222
1226
|
function ho(r, {
|
|
1223
1227
|
hasDoubleClickZoom: e
|
|
@@ -1553,7 +1557,7 @@ const ce = "mapMeasureLayer", pn = {
|
|
|
1553
1557
|
squareKilometer: "squareKilometer",
|
|
1554
1558
|
squareMile: "squareMile",
|
|
1555
1559
|
squareFeet: "squareFeet"
|
|
1556
|
-
},
|
|
1560
|
+
}, je = {
|
|
1557
1561
|
"m-km": "m-km",
|
|
1558
1562
|
"ft-mi": "ft-mi",
|
|
1559
1563
|
...H
|
|
@@ -1579,7 +1583,7 @@ const ce = "mapMeasureLayer", pn = {
|
|
|
1579
1583
|
[H.kilometer]: ue.squareKilometer,
|
|
1580
1584
|
[H.mile]: ue.squareMile,
|
|
1581
1585
|
[H.feet]: ue.squareFeet
|
|
1582
|
-
},
|
|
1586
|
+
}, be = {
|
|
1583
1587
|
[H.kilometer]: "kilometer",
|
|
1584
1588
|
[H.meter]: "meter",
|
|
1585
1589
|
[H.centimeter]: "centimeter",
|
|
@@ -1655,118 +1659,118 @@ function vn({
|
|
|
1655
1659
|
layerProps: n = {},
|
|
1656
1660
|
defaultType: o = "mask"
|
|
1657
1661
|
}) {
|
|
1658
|
-
const i =
|
|
1662
|
+
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({});
|
|
1659
1663
|
Pt({
|
|
1660
1664
|
mapId: e,
|
|
1661
1665
|
layerId: me
|
|
1662
1666
|
});
|
|
1663
|
-
const
|
|
1664
|
-
values:
|
|
1665
|
-
}), [
|
|
1667
|
+
const f = ye(() => Ot({
|
|
1668
|
+
values: l
|
|
1669
|
+
}), [l]), v = ye(() => ({
|
|
1666
1670
|
type: "FeatureCollection",
|
|
1667
|
-
features:
|
|
1671
|
+
features: f.map((T) => ({
|
|
1668
1672
|
type: "Feature",
|
|
1669
|
-
geometry:
|
|
1670
|
-
properties:
|
|
1671
|
-
id:
|
|
1673
|
+
geometry: T.geometry,
|
|
1674
|
+
properties: T.properties,
|
|
1675
|
+
id: T.id
|
|
1672
1676
|
}))
|
|
1673
|
-
}), [
|
|
1674
|
-
const
|
|
1675
|
-
...
|
|
1676
|
-
features:
|
|
1677
|
+
}), [f]), _ = ye(() => f.filter((T) => T.properties.visible).map((T) => T.id), [f]), [M, P] = ae(v), [A, j] = ae([]), R = ee(() => {
|
|
1678
|
+
const T = {
|
|
1679
|
+
...v,
|
|
1680
|
+
features: v.features.filter((O) => O.properties?.visible)
|
|
1677
1681
|
};
|
|
1678
|
-
|
|
1679
|
-
}, [
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
}, [
|
|
1683
|
-
const
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
}), [
|
|
1687
|
-
const
|
|
1688
|
-
|
|
1689
|
-
}, [e,
|
|
1690
|
-
editType:
|
|
1691
|
-
updatedData:
|
|
1682
|
+
P(T);
|
|
1683
|
+
}, [v]);
|
|
1684
|
+
Q(() => {
|
|
1685
|
+
R();
|
|
1686
|
+
}, [R]);
|
|
1687
|
+
const q = Le(f.length);
|
|
1688
|
+
Q(() => (p(e, [me]), () => {
|
|
1689
|
+
b(e, [me]);
|
|
1690
|
+
}), [p, e, b]);
|
|
1691
|
+
const I = ee(() => {
|
|
1692
|
+
R(), j([]), a(e, !1);
|
|
1693
|
+
}, [e, R, a]), D = ee(({
|
|
1694
|
+
editType: T,
|
|
1695
|
+
updatedData: O
|
|
1692
1696
|
}) => {
|
|
1693
|
-
if (
|
|
1694
|
-
|
|
1697
|
+
if (T === te.cancel) {
|
|
1698
|
+
I();
|
|
1695
1699
|
return;
|
|
1696
1700
|
}
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
const
|
|
1700
|
-
|
|
1701
|
-
geometry:
|
|
1702
|
-
properties:
|
|
1701
|
+
P(O), T !== te.updateTentativeFeature && T === te.addFeature && (y !== "edit" && (q.current = q.current + 1), O.features.forEach((d, S) => {
|
|
1702
|
+
d.properties.label ??= `${s?.mask} ${q.current}`, d.properties.index = S, d.properties.visible = d.properties.visible ?? !0;
|
|
1703
|
+
const L = d.id ?? crypto.randomUUID();
|
|
1704
|
+
c(e, L, {
|
|
1705
|
+
geometry: d.geometry,
|
|
1706
|
+
properties: d.properties,
|
|
1703
1707
|
// visible: true,
|
|
1704
1708
|
type: o
|
|
1705
1709
|
});
|
|
1706
|
-
}),
|
|
1707
|
-
}, [o,
|
|
1708
|
-
return
|
|
1709
|
-
const
|
|
1710
|
-
border:
|
|
1711
|
-
point:
|
|
1712
|
-
fill:
|
|
1710
|
+
}), I());
|
|
1711
|
+
}, [o, I, s?.mask, e, y, c]);
|
|
1712
|
+
return Q(() => {
|
|
1713
|
+
const T = i, {
|
|
1714
|
+
border: O,
|
|
1715
|
+
point: d,
|
|
1716
|
+
fill: S
|
|
1713
1717
|
} = t.colors.editing, {
|
|
1714
|
-
border:
|
|
1715
|
-
fill:
|
|
1716
|
-
} = t.colors.finished,
|
|
1718
|
+
border: L,
|
|
1719
|
+
fill: C
|
|
1720
|
+
} = t.colors.finished, k = sn({
|
|
1717
1721
|
layerProps: {
|
|
1718
1722
|
...n.mask,
|
|
1719
|
-
pickable:
|
|
1720
|
-
data:
|
|
1721
|
-
selectedFeatureIndexes:
|
|
1723
|
+
pickable: T,
|
|
1724
|
+
data: M,
|
|
1725
|
+
selectedFeatureIndexes: A,
|
|
1722
1726
|
updateTriggers: {
|
|
1723
1727
|
getFilterValue: _
|
|
1724
1728
|
},
|
|
1725
|
-
onClick: (
|
|
1726
|
-
const
|
|
1727
|
-
|
|
1729
|
+
onClick: (E) => {
|
|
1730
|
+
const V = E;
|
|
1731
|
+
V.isGuide || j([V.index]);
|
|
1728
1732
|
}
|
|
1729
1733
|
},
|
|
1730
|
-
getLineColor: (
|
|
1731
|
-
getFillColor: (
|
|
1734
|
+
getLineColor: (E) => A[0] === E.properties.index ? O : L,
|
|
1735
|
+
getFillColor: (E) => A[0] === E.properties.index ? S : C,
|
|
1732
1736
|
pointColor: {
|
|
1733
|
-
fill:
|
|
1734
|
-
outline:
|
|
1737
|
+
fill: d,
|
|
1738
|
+
outline: O
|
|
1735
1739
|
},
|
|
1736
|
-
onEdit:
|
|
1737
|
-
mode:
|
|
1740
|
+
onEdit: D,
|
|
1741
|
+
mode: T ? h : new ts()
|
|
1738
1742
|
});
|
|
1739
|
-
|
|
1740
|
-
}, [
|
|
1741
|
-
const
|
|
1742
|
-
...
|
|
1743
|
-
data:
|
|
1744
|
-
getFilterValue: (
|
|
1743
|
+
g(me, k);
|
|
1744
|
+
}, [M, i, n.mask, _, h, D, A, g, t.colors.editing, t.colors.finished]), Q(() => {
|
|
1745
|
+
const T = {
|
|
1746
|
+
...Ee,
|
|
1747
|
+
data: v,
|
|
1748
|
+
getFilterValue: (O) => Number(_.includes(O.id)),
|
|
1745
1749
|
updateTriggers: {
|
|
1746
1750
|
getFilterValue: _
|
|
1747
1751
|
}
|
|
1748
1752
|
};
|
|
1749
|
-
return
|
|
1753
|
+
return g(Ee.id, {
|
|
1750
1754
|
type: as,
|
|
1751
|
-
props:
|
|
1752
|
-
}),
|
|
1753
|
-
|
|
1755
|
+
props: T
|
|
1756
|
+
}), p(e, [Ee.id]), () => {
|
|
1757
|
+
b(e, [Ee.id]);
|
|
1754
1758
|
};
|
|
1755
|
-
}, [
|
|
1756
|
-
|
|
1757
|
-
const
|
|
1758
|
-
if (!
|
|
1759
|
-
i && (
|
|
1760
|
-
const
|
|
1761
|
-
|
|
1759
|
+
}, [p, e, v, _, b, g]), Q(() => {
|
|
1760
|
+
m?.forEach((T) => {
|
|
1761
|
+
const O = w(e)?.props.layers.find((S) => S.props.id === T);
|
|
1762
|
+
if (!O) return;
|
|
1763
|
+
i && (u.current[T] = O?.props.pickable);
|
|
1764
|
+
const d = !i && (u.current[T] ?? O?.props.pickable);
|
|
1765
|
+
g(T, {
|
|
1762
1766
|
props: {
|
|
1763
|
-
pickable:
|
|
1767
|
+
pickable: d,
|
|
1764
1768
|
extensions: [new ns()],
|
|
1765
1769
|
maskId: !i && _.length ? Ce : void 0
|
|
1766
1770
|
}
|
|
1767
|
-
})
|
|
1771
|
+
});
|
|
1768
1772
|
});
|
|
1769
|
-
}, [i,
|
|
1773
|
+
}, [i, w, e, m, _.length, g]), r;
|
|
1770
1774
|
}
|
|
1771
1775
|
vn.Controls = an;
|
|
1772
1776
|
function Sn({
|
|
@@ -1802,7 +1806,7 @@ function wn({
|
|
|
1802
1806
|
pickable: s,
|
|
1803
1807
|
modeConfig: {
|
|
1804
1808
|
// We force distance due to conversion is addressed at feature getText level
|
|
1805
|
-
formatTooltip: (
|
|
1809
|
+
formatTooltip: (g) => g,
|
|
1806
1810
|
turfOptions: {
|
|
1807
1811
|
units: mn.meters
|
|
1808
1812
|
}
|
|
@@ -1819,8 +1823,8 @@ function wn({
|
|
|
1819
1823
|
// needed for the outlineWidth and outlineColor attributes to be effective
|
|
1820
1824
|
smoothing: 0.2
|
|
1821
1825
|
},
|
|
1822
|
-
getText: (
|
|
1823
|
-
meters:
|
|
1826
|
+
getText: (g) => r?.getTooltipText?.({
|
|
1827
|
+
meters: g.text,
|
|
1824
1828
|
locale: t,
|
|
1825
1829
|
unit: n,
|
|
1826
1830
|
options: l
|
|
@@ -1852,9 +1856,9 @@ const _n = (r) => Ge()((e) => ({
|
|
|
1852
1856
|
distance: c = 0,
|
|
1853
1857
|
finished: h = !1,
|
|
1854
1858
|
locale: y = "en",
|
|
1855
|
-
positions:
|
|
1859
|
+
positions: g = [],
|
|
1856
1860
|
clearLayerOnStart: p = !1,
|
|
1857
|
-
unit: b =
|
|
1861
|
+
unit: b = je["m-km"],
|
|
1858
1862
|
enabled: m = !1
|
|
1859
1863
|
} = n;
|
|
1860
1864
|
return s[o] = {
|
|
@@ -1864,7 +1868,7 @@ const _n = (r) => Ge()((e) => ({
|
|
|
1864
1868
|
distance: c,
|
|
1865
1869
|
finished: h,
|
|
1866
1870
|
locale: y,
|
|
1867
|
-
positions:
|
|
1871
|
+
positions: g,
|
|
1868
1872
|
unit: b,
|
|
1869
1873
|
clearLayerOnStart: p,
|
|
1870
1874
|
enabled: m
|
|
@@ -1961,7 +1965,7 @@ const _n = (r) => Ge()((e) => ({
|
|
|
1961
1965
|
}
|
|
1962
1966
|
})), Rt = He({});
|
|
1963
1967
|
function Mn(r) {
|
|
1964
|
-
const e =
|
|
1968
|
+
const e = F(5), {
|
|
1965
1969
|
children: t,
|
|
1966
1970
|
values: s
|
|
1967
1971
|
} = r;
|
|
@@ -1969,111 +1973,111 @@ function Mn(r) {
|
|
|
1969
1973
|
e[0] !== s ? (n = _n(s), e[0] = s, e[1] = n) : n = e[1];
|
|
1970
1974
|
const [o] = ae(n);
|
|
1971
1975
|
let i;
|
|
1972
|
-
return e[2] !== t || e[3] !== o ? (i = /* @__PURE__ */
|
|
1976
|
+
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;
|
|
1973
1977
|
}
|
|
1974
|
-
function
|
|
1978
|
+
function G(r) {
|
|
1975
1979
|
const e = ze(Rt);
|
|
1976
1980
|
if (!Object.keys(e).length)
|
|
1977
1981
|
throw new Error("Missing MeasurementToolsProvider in the tree");
|
|
1978
1982
|
return Ke(e, r);
|
|
1979
1983
|
}
|
|
1980
1984
|
function Dt(r) {
|
|
1981
|
-
const e =
|
|
1985
|
+
const e = F(74), {
|
|
1982
1986
|
mapId: t
|
|
1983
1987
|
} = r;
|
|
1984
1988
|
let s;
|
|
1985
|
-
e[0] !== t ? (s = (
|
|
1986
|
-
const n =
|
|
1989
|
+
e[0] !== t ? (s = ($) => $.measurements[t].modes, e[0] = t, e[1] = s) : s = e[1];
|
|
1990
|
+
const n = G(s);
|
|
1987
1991
|
let o;
|
|
1988
|
-
e[2] !== t ? (o = (
|
|
1989
|
-
const i =
|
|
1992
|
+
e[2] !== t ? (o = ($) => $.measurements[t].units, e[2] = t, e[3] = o) : o = e[3];
|
|
1993
|
+
const i = G(o);
|
|
1990
1994
|
let a;
|
|
1991
|
-
e[4] !== t ? (a = (
|
|
1992
|
-
const l =
|
|
1995
|
+
e[4] !== t ? (a = ($) => $.measurements[t].distance, e[4] = t, e[5] = a) : a = e[5];
|
|
1996
|
+
const l = G(a), c = G(Fn);
|
|
1993
1997
|
let h;
|
|
1994
|
-
e[6] !== c || e[7] !== t ? (h = (
|
|
1998
|
+
e[6] !== c || e[7] !== t ? (h = ($) => c(t, $), e[6] = c, e[7] = t, e[8] = h) : h = e[8];
|
|
1995
1999
|
const y = h;
|
|
1996
|
-
let
|
|
1997
|
-
e[9] !== t ? (
|
|
1998
|
-
const p =
|
|
2000
|
+
let g;
|
|
2001
|
+
e[9] !== t ? (g = ($) => $.measurements[t].clearLayerOnStart, e[9] = t, e[10] = g) : g = e[10];
|
|
2002
|
+
const p = G(g);
|
|
1999
2003
|
let b;
|
|
2000
|
-
e[11] !== t ? (b = (
|
|
2001
|
-
const m =
|
|
2004
|
+
e[11] !== t ? (b = ($) => $.measurements[t].enabled, e[11] = t, e[12] = b) : b = e[12];
|
|
2005
|
+
const m = G(b), w = G(On);
|
|
2002
2006
|
let u;
|
|
2003
|
-
e[13] !== w || e[14] !== t ? (u = (
|
|
2007
|
+
e[13] !== w || e[14] !== t ? (u = ($) => w(t, $), e[13] = w, e[14] = t, e[15] = u) : u = e[15];
|
|
2004
2008
|
const f = u;
|
|
2005
|
-
let
|
|
2006
|
-
e[16] !== t ? (
|
|
2007
|
-
const
|
|
2009
|
+
let v;
|
|
2010
|
+
e[16] !== t ? (v = ($) => $.measurements[t].modeSelected, e[16] = t, e[17] = v) : v = e[17];
|
|
2011
|
+
const _ = G(v), M = G(Cn);
|
|
2008
2012
|
let P;
|
|
2009
|
-
e[18] !==
|
|
2010
|
-
f(
|
|
2011
|
-
}, e[18] =
|
|
2012
|
-
const
|
|
2013
|
-
let V;
|
|
2014
|
-
e[22] !== t ? (V = (A) => A.measurements[t].finished, e[22] = t, e[23] = V) : V = e[23];
|
|
2015
|
-
const D = K(V), B = K(kn);
|
|
2016
|
-
let x;
|
|
2017
|
-
e[24] !== B || e[25] !== t ? (x = (A) => B(t, A), e[24] = B, e[25] = t, e[26] = x) : x = e[26];
|
|
2018
|
-
const F = x;
|
|
2013
|
+
e[18] !== M || e[19] !== t || e[20] !== f ? (P = ($) => {
|
|
2014
|
+
f(!!$), M(t, $);
|
|
2015
|
+
}, e[18] = M, e[19] = t, e[20] = f, e[21] = P) : P = e[21];
|
|
2016
|
+
const A = P;
|
|
2019
2017
|
let j;
|
|
2020
|
-
e[
|
|
2021
|
-
const
|
|
2022
|
-
let g;
|
|
2023
|
-
e[29] !== d || e[30] !== t ? (g = (A) => d(t, A), e[29] = d, e[30] = t, e[31] = g) : g = e[31];
|
|
2024
|
-
const L = g;
|
|
2025
|
-
let C;
|
|
2026
|
-
e[32] !== t ? (C = (A) => A.measurements[t].modeInstance, e[32] = t, e[33] = C) : C = e[33];
|
|
2027
|
-
const k = K(C), T = K(Ln);
|
|
2028
|
-
let U;
|
|
2029
|
-
e[34] !== T || e[35] !== t ? (U = (A) => T(t, A), e[34] = T, e[35] = t, e[36] = U) : U = e[36];
|
|
2030
|
-
const N = U;
|
|
2018
|
+
e[22] !== t ? (j = ($) => $.measurements[t].finished, e[22] = t, e[23] = j) : j = e[23];
|
|
2019
|
+
const R = G(j), q = G(kn);
|
|
2031
2020
|
let I;
|
|
2032
|
-
e[
|
|
2033
|
-
const
|
|
2034
|
-
let
|
|
2035
|
-
e[
|
|
2036
|
-
const
|
|
2021
|
+
e[24] !== q || e[25] !== t ? (I = ($) => q(t, $), e[24] = q, e[25] = t, e[26] = I) : I = e[26];
|
|
2022
|
+
const D = I;
|
|
2023
|
+
let T;
|
|
2024
|
+
e[27] !== t ? (T = ($) => $.measurements[t].locale, e[27] = t, e[28] = T) : T = e[28];
|
|
2025
|
+
const O = G(T), d = G(Pn);
|
|
2026
|
+
let S;
|
|
2027
|
+
e[29] !== d || e[30] !== t ? (S = ($) => d(t, $), e[29] = d, e[30] = t, e[31] = S) : S = e[31];
|
|
2028
|
+
const L = S;
|
|
2029
|
+
let C;
|
|
2030
|
+
e[32] !== t ? (C = ($) => $.measurements[t].modeInstance, e[32] = t, e[33] = C) : C = e[33];
|
|
2031
|
+
const k = G(C), E = G(Ln);
|
|
2032
|
+
let V;
|
|
2033
|
+
e[34] !== E || e[35] !== t ? (V = ($) => E(t, $), e[34] = E, e[35] = t, e[36] = V) : V = e[36];
|
|
2034
|
+
const B = V;
|
|
2035
|
+
let N;
|
|
2036
|
+
e[37] !== t ? (N = ($) => $.measurements[t].positions, e[37] = t, e[38] = N) : N = e[38];
|
|
2037
|
+
const U = G(N), z = G(Tn);
|
|
2038
|
+
let W;
|
|
2039
|
+
e[39] !== z || e[40] !== t ? (W = ($) => z(t, $), e[39] = z, e[40] = t, e[41] = W) : W = e[41];
|
|
2040
|
+
const se = W;
|
|
2037
2041
|
let J;
|
|
2038
|
-
e[42] !== t ? (J = (
|
|
2039
|
-
const Y =
|
|
2042
|
+
e[42] !== t ? (J = ($) => $.measurements[t].unit, e[42] = t, e[43] = J) : J = e[43];
|
|
2043
|
+
const Y = G(J), ne = G(En);
|
|
2040
2044
|
let oe;
|
|
2041
|
-
e[44] !== ne || e[45] !== t ? (oe = (
|
|
2045
|
+
e[44] !== ne || e[45] !== t ? (oe = ($) => ne(t, $), e[44] = ne, e[45] = t, e[46] = oe) : oe = e[46];
|
|
2042
2046
|
const Fe = oe;
|
|
2043
|
-
let
|
|
2044
|
-
e[47] !== k || e[48] !== se ? (
|
|
2047
|
+
let Se;
|
|
2048
|
+
e[47] !== k || e[48] !== se ? (Se = () => {
|
|
2045
2049
|
k?.resetClickSequence(), se([]);
|
|
2046
|
-
}, e[47] = k, e[48] = se, e[49] =
|
|
2047
|
-
const Ae =
|
|
2050
|
+
}, e[47] = k, e[48] = se, e[49] = Se) : Se = e[49];
|
|
2051
|
+
const Ae = Se;
|
|
2052
|
+
let we;
|
|
2053
|
+
e[50] !== f ? (we = ($) => {
|
|
2054
|
+
f($);
|
|
2055
|
+
}, e[50] = f, e[51] = we) : we = e[51];
|
|
2056
|
+
const Re = we;
|
|
2048
2057
|
let _e;
|
|
2049
|
-
e[
|
|
2050
|
-
f(A);
|
|
2051
|
-
}, e[50] = f, e[51] = _e) : _e = e[51];
|
|
2052
|
-
const Re = _e;
|
|
2053
|
-
let Me;
|
|
2054
|
-
return e[52] !== Ae || e[53] !== p || e[54] !== l || e[55] !== m || e[56] !== D || e[57] !== E || e[58] !== k || e[59] !== M || e[60] !== n || e[61] !== $ || e[62] !== y || e[63] !== f || e[64] !== F || e[65] !== L || e[66] !== N || e[67] !== R || e[68] !== se || e[69] !== Fe || e[70] !== Re || e[71] !== Y || e[72] !== i ? (Me = {
|
|
2058
|
+
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 = {
|
|
2055
2059
|
modes: n,
|
|
2056
2060
|
units: i,
|
|
2057
2061
|
distance: l,
|
|
2058
2062
|
clearLayerOnStart: p,
|
|
2059
|
-
modeSelected:
|
|
2063
|
+
modeSelected: _,
|
|
2060
2064
|
enabled: m,
|
|
2061
|
-
finished:
|
|
2062
|
-
locale:
|
|
2065
|
+
finished: R,
|
|
2066
|
+
locale: O,
|
|
2063
2067
|
modeInstance: k,
|
|
2064
|
-
positions:
|
|
2068
|
+
positions: U,
|
|
2065
2069
|
unit: Y,
|
|
2066
2070
|
setDistance: y,
|
|
2067
|
-
setModeSelected:
|
|
2068
|
-
setFinished:
|
|
2071
|
+
setModeSelected: A,
|
|
2072
|
+
setFinished: D,
|
|
2069
2073
|
setLocale: L,
|
|
2070
2074
|
setPositions: se,
|
|
2071
2075
|
setUnit: Fe,
|
|
2072
2076
|
setEnabled: f,
|
|
2073
2077
|
toggleLayer: Re,
|
|
2074
2078
|
clearLayer: Ae,
|
|
2075
|
-
setModeInstance:
|
|
2076
|
-
}, e[52] = Ae, e[53] = p, e[54] = l, e[55] = m, e[56] =
|
|
2079
|
+
setModeInstance: B
|
|
2080
|
+
}, 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;
|
|
2077
2081
|
}
|
|
2078
2082
|
function En(r) {
|
|
2079
2083
|
return r.setUnit;
|
|
@@ -2100,7 +2104,7 @@ function Fn(r) {
|
|
|
2100
2104
|
return r.setDistance;
|
|
2101
2105
|
}
|
|
2102
2106
|
function An(r) {
|
|
2103
|
-
const e =
|
|
2107
|
+
const e = F(42), {
|
|
2104
2108
|
mapId: t,
|
|
2105
2109
|
textOptions: s,
|
|
2106
2110
|
children: n
|
|
@@ -2116,73 +2120,73 @@ function An(r) {
|
|
|
2116
2120
|
setDistance: c,
|
|
2117
2121
|
clearLayerOnStart: h,
|
|
2118
2122
|
modeSelected: y,
|
|
2119
|
-
setModeSelected:
|
|
2123
|
+
setModeSelected: g,
|
|
2120
2124
|
enabled: p,
|
|
2121
2125
|
setEnabled: b,
|
|
2122
2126
|
finished: m,
|
|
2123
2127
|
setFinished: w,
|
|
2124
2128
|
locale: u,
|
|
2125
2129
|
setLocale: f,
|
|
2126
|
-
modeInstance:
|
|
2127
|
-
setModeInstance:
|
|
2128
|
-
positions:
|
|
2130
|
+
modeInstance: v,
|
|
2131
|
+
setModeInstance: _,
|
|
2132
|
+
positions: M,
|
|
2129
2133
|
setPositions: P,
|
|
2130
|
-
unit:
|
|
2131
|
-
setUnit:
|
|
2132
|
-
clearLayer:
|
|
2133
|
-
toggleLayer:
|
|
2134
|
+
unit: A,
|
|
2135
|
+
setUnit: j,
|
|
2136
|
+
clearLayer: R,
|
|
2137
|
+
toggleLayer: q
|
|
2134
2138
|
} = Dt(o);
|
|
2135
|
-
let
|
|
2136
|
-
e[2] !== y || e[3] !== i || e[4] !==
|
|
2139
|
+
let I;
|
|
2140
|
+
e[2] !== y || e[3] !== i || e[4] !== _ || e[5] !== P ? (I = () => {
|
|
2137
2141
|
if (y && i[y]) {
|
|
2138
2142
|
const L = i[y].mode;
|
|
2139
|
-
|
|
2143
|
+
_(new L());
|
|
2140
2144
|
}
|
|
2141
2145
|
return () => {
|
|
2142
2146
|
P([]);
|
|
2143
2147
|
};
|
|
2144
|
-
}, e[2] = y, e[3] = i, e[4] =
|
|
2145
|
-
let
|
|
2146
|
-
e[7] !== y || e[8] !== i || e[9] !== b || e[10] !==
|
|
2147
|
-
let
|
|
2148
|
-
e[13] !==
|
|
2149
|
-
L && (h || !m) &&
|
|
2150
|
-
}, e[13] =
|
|
2151
|
-
const
|
|
2152
|
-
let
|
|
2153
|
-
return e[18] !== n || e[19] !==
|
|
2148
|
+
}, e[2] = y, e[3] = i, e[4] = _, e[5] = P, e[6] = I) : I = e[6];
|
|
2149
|
+
let D;
|
|
2150
|
+
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(I, D);
|
|
2151
|
+
let T;
|
|
2152
|
+
e[13] !== q || e[14] !== R || e[15] !== h || e[16] !== m ? (T = (L) => {
|
|
2153
|
+
L && (h || !m) && R(), q(L);
|
|
2154
|
+
}, e[13] = q, e[14] = R, e[15] = h, e[16] = m, e[17] = T) : T = e[17];
|
|
2155
|
+
const O = T, d = !!h;
|
|
2156
|
+
let S;
|
|
2157
|
+
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] !== j || e[36] !== d || e[37] !== s || e[38] !== O || e[39] !== A || e[40] !== a ? (S = n({
|
|
2154
2158
|
mapId: t,
|
|
2155
2159
|
distance: l,
|
|
2156
2160
|
enabled: p,
|
|
2157
2161
|
finished: m,
|
|
2158
2162
|
locale: u,
|
|
2159
|
-
positions:
|
|
2160
|
-
unit:
|
|
2163
|
+
positions: M,
|
|
2164
|
+
unit: A,
|
|
2161
2165
|
clearLayerOnStart: d,
|
|
2162
2166
|
modeSelected: y,
|
|
2163
2167
|
modes: i,
|
|
2164
2168
|
units: a,
|
|
2165
2169
|
value: Oe({
|
|
2166
2170
|
meters: l,
|
|
2167
|
-
unit:
|
|
2171
|
+
unit: A,
|
|
2168
2172
|
locale: u,
|
|
2169
2173
|
options: s
|
|
2170
2174
|
}),
|
|
2171
|
-
modeInstance:
|
|
2172
|
-
setModeSelected:
|
|
2175
|
+
modeInstance: v,
|
|
2176
|
+
setModeSelected: g,
|
|
2173
2177
|
setDistance: c,
|
|
2174
2178
|
setFinished: w,
|
|
2175
2179
|
setLocale: f,
|
|
2176
2180
|
setPositions: P,
|
|
2177
|
-
setUnit:
|
|
2181
|
+
setUnit: j,
|
|
2178
2182
|
setEnabled: b,
|
|
2179
|
-
toggleLayer:
|
|
2180
|
-
clearLayer:
|
|
2181
|
-
}), e[18] = n, e[19] =
|
|
2183
|
+
toggleLayer: O,
|
|
2184
|
+
clearLayer: R
|
|
2185
|
+
}), 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] = j, e[36] = d, e[37] = s, e[38] = O, e[39] = A, e[40] = a, e[41] = S) : S = e[41], S;
|
|
2182
2186
|
}
|
|
2183
2187
|
const Rn = [ce];
|
|
2184
2188
|
function Dn(r) {
|
|
2185
|
-
const e =
|
|
2189
|
+
const e = F(50), {
|
|
2186
2190
|
children: t,
|
|
2187
2191
|
mapId: s,
|
|
2188
2192
|
defaultProps: n,
|
|
@@ -2202,85 +2206,85 @@ function Dn(r) {
|
|
|
2202
2206
|
}, e[2] = s, e[3] = h) : h = e[3];
|
|
2203
2207
|
const {
|
|
2204
2208
|
setDistance: y,
|
|
2205
|
-
clearLayerOnStart:
|
|
2209
|
+
clearLayerOnStart: g,
|
|
2206
2210
|
enabled: p,
|
|
2207
2211
|
finished: b,
|
|
2208
2212
|
setFinished: m,
|
|
2209
2213
|
locale: w,
|
|
2210
2214
|
setPositions: u,
|
|
2211
2215
|
unit: f,
|
|
2212
|
-
modeInstance:
|
|
2213
|
-
} = Dt(h),
|
|
2214
|
-
let
|
|
2215
|
-
e[4] !== s ? (
|
|
2216
|
-
const
|
|
2217
|
-
let
|
|
2218
|
-
e[6] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
2219
|
-
const
|
|
2220
|
-
let
|
|
2221
|
-
e[7] !== s ? (
|
|
2216
|
+
modeInstance: v
|
|
2217
|
+
} = Dt(h), _ = ge(Bn), M = x(Vn), P = x(Un), A = x(xn);
|
|
2218
|
+
let j;
|
|
2219
|
+
e[4] !== s ? (j = (B) => B.maps[s]?.layers.filter(qn), e[4] = s, e[5] = j) : j = e[5];
|
|
2220
|
+
const R = x(vt(j)), q = x($n);
|
|
2221
|
+
let I;
|
|
2222
|
+
e[6] === Symbol.for("react.memo_cache_sentinel") ? (I = {}, e[6] = I) : I = e[6];
|
|
2223
|
+
const D = Le(I);
|
|
2224
|
+
let T;
|
|
2225
|
+
e[7] !== s ? (T = {
|
|
2222
2226
|
mapId: s,
|
|
2223
2227
|
layerId: ce
|
|
2224
|
-
}, e[7] = s, e[8] =
|
|
2225
|
-
let
|
|
2226
|
-
e[9] !==
|
|
2227
|
-
const
|
|
2228
|
-
return p && (
|
|
2228
|
+
}, e[7] = s, e[8] = T) : T = e[8], Pt(T);
|
|
2229
|
+
let O;
|
|
2230
|
+
e[9] !== P || e[10] !== p || e[11] !== q || e[12] !== s || e[13] !== A || e[14] !== M ? (O = () => {
|
|
2231
|
+
const B = q(s)?.props.controller;
|
|
2232
|
+
return p && (P(s, [ce]), M(s, {
|
|
2229
2233
|
doubleClickZoom: !1
|
|
2230
2234
|
})), () => {
|
|
2231
|
-
|
|
2235
|
+
A(s, [ce]), M(s, B);
|
|
2232
2236
|
};
|
|
2233
|
-
}, e[9] =
|
|
2234
|
-
let
|
|
2235
|
-
e[16] !==
|
|
2236
|
-
let
|
|
2237
|
-
e[24] !== p || e[25] !==
|
|
2238
|
-
|
|
2239
|
-
const
|
|
2240
|
-
if (
|
|
2237
|
+
}, e[9] = P, e[10] = p, e[11] = q, e[12] = s, e[13] = A, e[14] = M, e[15] = O) : O = e[15];
|
|
2238
|
+
let d;
|
|
2239
|
+
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);
|
|
2240
|
+
let S, L;
|
|
2241
|
+
e[24] !== p || e[25] !== q || e[26] !== s || e[27] !== R || e[28] !== _ ? (S = () => {
|
|
2242
|
+
R?.forEach((B) => {
|
|
2243
|
+
const N = q(s)?.props.layers.find((z) => z.props.id === B);
|
|
2244
|
+
if (!N)
|
|
2241
2245
|
return;
|
|
2242
|
-
p && (
|
|
2243
|
-
const
|
|
2244
|
-
_(
|
|
2246
|
+
p && (D.current[B] = N?.props.pickable);
|
|
2247
|
+
const U = !p && (D.current[B] ?? N?.props.pickable);
|
|
2248
|
+
_(B, {
|
|
2245
2249
|
props: {
|
|
2246
|
-
pickable:
|
|
2250
|
+
pickable: U
|
|
2247
2251
|
}
|
|
2248
|
-
})
|
|
2252
|
+
});
|
|
2249
2253
|
});
|
|
2250
|
-
},
|
|
2251
|
-
let
|
|
2252
|
-
e[31] !==
|
|
2254
|
+
}, 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);
|
|
2255
|
+
let C;
|
|
2256
|
+
e[31] !== v || e[32] !== y || e[33] !== m || e[34] !== u ? (C = (B) => {
|
|
2253
2257
|
const {
|
|
2254
|
-
editType:
|
|
2255
|
-
editContext:
|
|
2256
|
-
} =
|
|
2257
|
-
if (
|
|
2258
|
-
|
|
2258
|
+
editType: N,
|
|
2259
|
+
editContext: U
|
|
2260
|
+
} = B;
|
|
2261
|
+
if (N === te.cancel) {
|
|
2262
|
+
v.resetClickSequence();
|
|
2259
2263
|
return;
|
|
2260
2264
|
}
|
|
2261
|
-
|
|
2262
|
-
const
|
|
2263
|
-
|
|
2264
|
-
}, e[31] =
|
|
2265
|
-
const
|
|
2266
|
-
let
|
|
2267
|
-
return e[36] !== p || e[37] !== b || e[38] !== o || e[39] !== w || e[40] !==
|
|
2268
|
-
const
|
|
2265
|
+
N === te.addPosition && y(U.distance), m(!!U.finished);
|
|
2266
|
+
const z = U.positions;
|
|
2267
|
+
z?.length && u(z);
|
|
2268
|
+
}, e[31] = v, e[32] = y, e[33] = m, e[34] = u, e[35] = C) : C = e[35];
|
|
2269
|
+
const k = C;
|
|
2270
|
+
let E, V;
|
|
2271
|
+
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 = () => {
|
|
2272
|
+
const B = b ? c.colors.finished : c.colors.editing, N = b ? c.colors.finished : c.colors.point, U = Sn({
|
|
2269
2273
|
layerProps: {
|
|
2270
2274
|
...o,
|
|
2271
2275
|
pickable: o?.pickable ?? !b
|
|
2272
2276
|
},
|
|
2273
2277
|
enabled: p,
|
|
2274
|
-
guideColor:
|
|
2275
|
-
pointColor:
|
|
2278
|
+
guideColor: B,
|
|
2279
|
+
pointColor: N,
|
|
2276
2280
|
locale: w,
|
|
2277
|
-
onEdit:
|
|
2281
|
+
onEdit: k,
|
|
2278
2282
|
unit: f,
|
|
2279
|
-
mode:
|
|
2283
|
+
mode: v,
|
|
2280
2284
|
textOptions: i
|
|
2281
2285
|
});
|
|
2282
|
-
_(ce,
|
|
2283
|
-
},
|
|
2286
|
+
_(ce, U);
|
|
2287
|
+
}, 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;
|
|
2284
2288
|
}
|
|
2285
2289
|
function $n(r) {
|
|
2286
2290
|
return r.getDeckInstance;
|
|
@@ -2301,24 +2305,24 @@ function Bn(r) {
|
|
|
2301
2305
|
return r.setLayer;
|
|
2302
2306
|
}
|
|
2303
2307
|
Dn.Controls = An;
|
|
2304
|
-
function
|
|
2305
|
-
const e =
|
|
2308
|
+
function In(r) {
|
|
2309
|
+
const e = F(7), {
|
|
2306
2310
|
mapId: t
|
|
2307
2311
|
} = r;
|
|
2308
2312
|
let s;
|
|
2309
2313
|
e[0] !== t ? (s = (l) => l.maps[t], e[0] = t, e[1] = s) : s = e[1];
|
|
2310
2314
|
const {
|
|
2311
2315
|
layers: n
|
|
2312
|
-
} =
|
|
2316
|
+
} = x(s), o = ge(Nn);
|
|
2313
2317
|
let i;
|
|
2314
2318
|
if (e[2] !== o || e[3] !== n) {
|
|
2315
2319
|
let l;
|
|
2316
|
-
e[5] !== o ? (l = (c) => o[c], e[5] = o, e[6] = l) : l = e[6], i = n.map(l).filter(
|
|
2320
|
+
e[5] !== o ? (l = (c) => o[c], e[5] = o, e[6] = l) : l = e[6], i = n.map(l).filter(jn), e[2] = o, e[3] = n, e[4] = i;
|
|
2317
2321
|
} else
|
|
2318
2322
|
i = e[4];
|
|
2319
2323
|
return i;
|
|
2320
2324
|
}
|
|
2321
|
-
function
|
|
2325
|
+
function jn(r) {
|
|
2322
2326
|
return !!r;
|
|
2323
2327
|
}
|
|
2324
2328
|
function Nn(r) {
|
|
@@ -2331,7 +2335,7 @@ function $t(r) {
|
|
|
2331
2335
|
}
|
|
2332
2336
|
const Hn = 200;
|
|
2333
2337
|
function go(r) {
|
|
2334
|
-
const e =
|
|
2338
|
+
const e = F(51);
|
|
2335
2339
|
let t, s, n, o;
|
|
2336
2340
|
e[0] !== r ? ({
|
|
2337
2341
|
id: t,
|
|
@@ -2340,59 +2344,59 @@ function go(r) {
|
|
|
2340
2344
|
...o
|
|
2341
2345
|
} = 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]);
|
|
2342
2346
|
let i;
|
|
2343
|
-
e[5] !== t ? (i = (
|
|
2344
|
-
const a =
|
|
2347
|
+
e[5] !== t ? (i = (E) => E.maps[t].basemap, e[5] = t, e[6] = i) : i = e[6];
|
|
2348
|
+
const a = x(i);
|
|
2345
2349
|
let l;
|
|
2346
|
-
e[7] !== t ? (l = (
|
|
2347
|
-
const c =
|
|
2350
|
+
e[7] !== t ? (l = (E) => E.maps[t].instanceRef, e[7] = t, e[8] = l) : l = e[8];
|
|
2351
|
+
const c = x(l);
|
|
2348
2352
|
let h;
|
|
2349
|
-
e[9] !== t ? (h = (
|
|
2350
|
-
const y =
|
|
2353
|
+
e[9] !== t ? (h = (E) => E.maps[t].overlayRef, e[9] = t, e[10] = h) : h = e[10];
|
|
2354
|
+
const y = x(h), g = Le(null);
|
|
2351
2355
|
let p;
|
|
2352
|
-
e[11] !== t ? (p = (
|
|
2353
|
-
const b =
|
|
2356
|
+
e[11] !== t ? (p = (E) => E.viewStates[t], e[11] = t, e[12] = p) : p = e[12];
|
|
2357
|
+
const b = x(p);
|
|
2354
2358
|
let m;
|
|
2355
|
-
e[13] !== t ? (m = (
|
|
2356
|
-
const w =
|
|
2359
|
+
e[13] !== t ? (m = (E) => E.maps[t].controller, e[13] = t, e[14] = m) : m = e[14];
|
|
2360
|
+
const w = x(m), u = x(Wn), f = x(Qn), v = x(Zn), _ = x(Kn), M = x(Gn);
|
|
2357
2361
|
let P;
|
|
2358
2362
|
e[15] !== t ? (P = {
|
|
2359
2363
|
mapId: t
|
|
2360
2364
|
}, e[15] = t, e[16] = P) : P = e[16];
|
|
2361
|
-
const
|
|
2362
|
-
let
|
|
2363
|
-
e[17] !==
|
|
2364
|
-
const
|
|
2365
|
-
let
|
|
2366
|
-
e[19] !== t || e[20] !== n || e[21] !== f || e[22] !==
|
|
2367
|
-
const
|
|
2368
|
-
if (
|
|
2369
|
-
|
|
2365
|
+
const A = In(P);
|
|
2366
|
+
let j;
|
|
2367
|
+
e[17] !== A ? (j = $t(A), e[17] = A, e[18] = j) : j = e[18];
|
|
2368
|
+
const R = j;
|
|
2369
|
+
let q;
|
|
2370
|
+
e[19] !== t || e[20] !== n || e[21] !== f || e[22] !== M ? (q = (E) => {
|
|
2371
|
+
const V = f;
|
|
2372
|
+
if (g.current && clearInterval(g.current), g.current = setTimeout(() => {
|
|
2373
|
+
M(t);
|
|
2370
2374
|
}, Hn), n) {
|
|
2371
|
-
n(
|
|
2375
|
+
n(E, V);
|
|
2372
2376
|
return;
|
|
2373
2377
|
}
|
|
2374
|
-
|
|
2375
|
-
}, e[19] = t, e[20] = n, e[21] = f, e[22] =
|
|
2376
|
-
const
|
|
2377
|
-
let
|
|
2378
|
-
e[24] !== t || e[25] !== s || e[26] !==
|
|
2379
|
-
|
|
2380
|
-
}, e[24] = t, e[25] = s, e[26] =
|
|
2381
|
-
const
|
|
2382
|
-
let
|
|
2383
|
-
e[29] !== u || e[30] !== t || e[31] !== o || e[32] !==
|
|
2384
|
-
const
|
|
2385
|
-
|
|
2386
|
-
}, e[29] = u, e[30] = t, e[31] = o, e[32] =
|
|
2387
|
-
const d =
|
|
2378
|
+
V(t, E.viewState);
|
|
2379
|
+
}, e[19] = t, e[20] = n, e[21] = f, e[22] = M, e[23] = q) : q = e[23];
|
|
2380
|
+
const I = q;
|
|
2381
|
+
let D;
|
|
2382
|
+
e[24] !== t || e[25] !== s || e[26] !== v || e[27] !== M ? (D = (E) => {
|
|
2383
|
+
v(t, E), s?.(E), M(t);
|
|
2384
|
+
}, e[24] = t, e[25] = s, e[26] = v, e[27] = M, e[28] = D) : D = e[28];
|
|
2385
|
+
const T = D;
|
|
2386
|
+
let O;
|
|
2387
|
+
e[29] !== u || e[30] !== t || e[31] !== o || e[32] !== _ ? (O = (E) => {
|
|
2388
|
+
const B = !!u(t)?.props.layers?.every(zn);
|
|
2389
|
+
_(t, B), o.onAfterRender?.(E);
|
|
2390
|
+
}, e[29] = u, e[30] = t, e[31] = o, e[32] = _, e[33] = O) : O = e[33];
|
|
2391
|
+
const d = O, S = o.onDragEnd;
|
|
2388
2392
|
let L;
|
|
2389
|
-
e[34] !==
|
|
2390
|
-
const
|
|
2391
|
-
|
|
2392
|
-
}, e[34] =
|
|
2393
|
+
e[34] !== S || e[35] !== t || e[36] !== M ? (L = (...E) => {
|
|
2394
|
+
const V = E;
|
|
2395
|
+
M(t), S && S(...V);
|
|
2396
|
+
}, e[34] = S, e[35] = t, e[36] = M, e[37] = L) : L = e[37];
|
|
2393
2397
|
const C = L;
|
|
2394
2398
|
let k;
|
|
2395
|
-
return e[38] !== a || e[39] !==
|
|
2399
|
+
return e[38] !== a || e[39] !== R || e[40] !== w || e[41] !== d || e[42] !== C || e[43] !== T || e[44] !== I || 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: I, onAfterRender: d, onDragEnd: C }), e[38] = a, e[39] = R, e[40] = w, e[41] = d, e[42] = C, e[43] = T, e[44] = I, e[45] = t, e[46] = c, e[47] = y, e[48] = o, e[49] = b, e[50] = k) : k = e[50], k;
|
|
2396
2400
|
}
|
|
2397
2401
|
function zn(r) {
|
|
2398
2402
|
return r?.isLoaded;
|
|
@@ -2412,10 +2416,10 @@ function Qn(r) {
|
|
|
2412
2416
|
function Wn(r) {
|
|
2413
2417
|
return r.getDeckInstance;
|
|
2414
2418
|
}
|
|
2415
|
-
var
|
|
2419
|
+
var Te = { exports: {} }, ut;
|
|
2416
2420
|
function Yn() {
|
|
2417
2421
|
return ut || (ut = 1, (function(r, e) {
|
|
2418
|
-
var t = typeof globalThis < "u" && globalThis || typeof self < "u" && self || typeof
|
|
2422
|
+
var t = typeof globalThis < "u" && globalThis || typeof self < "u" && self || typeof Me < "u" && Me, s = (function() {
|
|
2419
2423
|
function o() {
|
|
2420
2424
|
this.fetch = !1, this.DOMException = t.DOMException;
|
|
2421
2425
|
}
|
|
@@ -2424,7 +2428,7 @@ function Yn() {
|
|
|
2424
2428
|
(function(o) {
|
|
2425
2429
|
(function(i) {
|
|
2426
2430
|
var a = typeof o < "u" && o || typeof self < "u" && self || // eslint-disable-next-line no-undef
|
|
2427
|
-
typeof
|
|
2431
|
+
typeof Me < "u" && Me || {}, l = {
|
|
2428
2432
|
searchParams: "URLSearchParams" in a,
|
|
2429
2433
|
iterable: "Symbol" in a && "iterator" in Symbol,
|
|
2430
2434
|
blob: "FileReader" in a && "Blob" in a && (function() {
|
|
@@ -2454,7 +2458,7 @@ function Yn() {
|
|
|
2454
2458
|
], y = ArrayBuffer.isView || function(d) {
|
|
2455
2459
|
return d && h.indexOf(Object.prototype.toString.call(d)) > -1;
|
|
2456
2460
|
};
|
|
2457
|
-
function
|
|
2461
|
+
function g(d) {
|
|
2458
2462
|
if (typeof d != "string" && (d = String(d)), /[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(d) || d === "")
|
|
2459
2463
|
throw new TypeError('Invalid character in header field name: "' + d + '"');
|
|
2460
2464
|
return d.toLowerCase();
|
|
@@ -2463,56 +2467,56 @@ function Yn() {
|
|
|
2463
2467
|
return typeof d != "string" && (d = String(d)), d;
|
|
2464
2468
|
}
|
|
2465
2469
|
function b(d) {
|
|
2466
|
-
var
|
|
2470
|
+
var S = {
|
|
2467
2471
|
next: function() {
|
|
2468
2472
|
var L = d.shift();
|
|
2469
2473
|
return { done: L === void 0, value: L };
|
|
2470
2474
|
}
|
|
2471
2475
|
};
|
|
2472
|
-
return l.iterable && (
|
|
2473
|
-
return
|
|
2474
|
-
}),
|
|
2476
|
+
return l.iterable && (S[Symbol.iterator] = function() {
|
|
2477
|
+
return S;
|
|
2478
|
+
}), S;
|
|
2475
2479
|
}
|
|
2476
2480
|
function m(d) {
|
|
2477
|
-
this.map = {}, d instanceof m ? d.forEach(function(
|
|
2478
|
-
this.append(L,
|
|
2479
|
-
}, this) : Array.isArray(d) ? d.forEach(function(
|
|
2480
|
-
if (
|
|
2481
|
-
throw new TypeError("Headers constructor: expected name/value pair to be length 2, found" +
|
|
2482
|
-
this.append(
|
|
2483
|
-
}, this) : d && Object.getOwnPropertyNames(d).forEach(function(
|
|
2484
|
-
this.append(
|
|
2481
|
+
this.map = {}, d instanceof m ? d.forEach(function(S, L) {
|
|
2482
|
+
this.append(L, S);
|
|
2483
|
+
}, this) : Array.isArray(d) ? d.forEach(function(S) {
|
|
2484
|
+
if (S.length != 2)
|
|
2485
|
+
throw new TypeError("Headers constructor: expected name/value pair to be length 2, found" + S.length);
|
|
2486
|
+
this.append(S[0], S[1]);
|
|
2487
|
+
}, this) : d && Object.getOwnPropertyNames(d).forEach(function(S) {
|
|
2488
|
+
this.append(S, d[S]);
|
|
2485
2489
|
}, this);
|
|
2486
2490
|
}
|
|
2487
|
-
m.prototype.append = function(d,
|
|
2488
|
-
d =
|
|
2491
|
+
m.prototype.append = function(d, S) {
|
|
2492
|
+
d = g(d), S = p(S);
|
|
2489
2493
|
var L = this.map[d];
|
|
2490
|
-
this.map[d] = L ? L + ", " +
|
|
2494
|
+
this.map[d] = L ? L + ", " + S : S;
|
|
2491
2495
|
}, m.prototype.delete = function(d) {
|
|
2492
|
-
delete this.map[
|
|
2496
|
+
delete this.map[g(d)];
|
|
2493
2497
|
}, m.prototype.get = function(d) {
|
|
2494
|
-
return d =
|
|
2498
|
+
return d = g(d), this.has(d) ? this.map[d] : null;
|
|
2495
2499
|
}, m.prototype.has = function(d) {
|
|
2496
|
-
return this.map.hasOwnProperty(
|
|
2497
|
-
}, m.prototype.set = function(d,
|
|
2498
|
-
this.map[
|
|
2499
|
-
}, m.prototype.forEach = function(d,
|
|
2500
|
+
return this.map.hasOwnProperty(g(d));
|
|
2501
|
+
}, m.prototype.set = function(d, S) {
|
|
2502
|
+
this.map[g(d)] = p(S);
|
|
2503
|
+
}, m.prototype.forEach = function(d, S) {
|
|
2500
2504
|
for (var L in this.map)
|
|
2501
|
-
this.map.hasOwnProperty(L) && d.call(
|
|
2505
|
+
this.map.hasOwnProperty(L) && d.call(S, this.map[L], L, this);
|
|
2502
2506
|
}, m.prototype.keys = function() {
|
|
2503
2507
|
var d = [];
|
|
2504
|
-
return this.forEach(function(
|
|
2508
|
+
return this.forEach(function(S, L) {
|
|
2505
2509
|
d.push(L);
|
|
2506
2510
|
}), b(d);
|
|
2507
2511
|
}, m.prototype.values = function() {
|
|
2508
2512
|
var d = [];
|
|
2509
|
-
return this.forEach(function(
|
|
2510
|
-
d.push(
|
|
2513
|
+
return this.forEach(function(S) {
|
|
2514
|
+
d.push(S);
|
|
2511
2515
|
}), b(d);
|
|
2512
2516
|
}, m.prototype.entries = function() {
|
|
2513
2517
|
var d = [];
|
|
2514
|
-
return this.forEach(function(
|
|
2515
|
-
d.push([L,
|
|
2518
|
+
return this.forEach(function(S, L) {
|
|
2519
|
+
d.push([L, S]);
|
|
2516
2520
|
}), b(d);
|
|
2517
2521
|
}, l.iterable && (m.prototype[Symbol.iterator] = m.prototype.entries);
|
|
2518
2522
|
function w(d) {
|
|
@@ -2523,36 +2527,36 @@ function Yn() {
|
|
|
2523
2527
|
}
|
|
2524
2528
|
}
|
|
2525
2529
|
function u(d) {
|
|
2526
|
-
return new Promise(function(
|
|
2530
|
+
return new Promise(function(S, L) {
|
|
2527
2531
|
d.onload = function() {
|
|
2528
|
-
|
|
2532
|
+
S(d.result);
|
|
2529
2533
|
}, d.onerror = function() {
|
|
2530
2534
|
L(d.error);
|
|
2531
2535
|
};
|
|
2532
2536
|
});
|
|
2533
2537
|
}
|
|
2534
2538
|
function f(d) {
|
|
2535
|
-
var
|
|
2536
|
-
return
|
|
2539
|
+
var S = new FileReader(), L = u(S);
|
|
2540
|
+
return S.readAsArrayBuffer(d), L;
|
|
2537
2541
|
}
|
|
2538
|
-
function
|
|
2539
|
-
var
|
|
2540
|
-
return
|
|
2542
|
+
function v(d) {
|
|
2543
|
+
var S = new FileReader(), L = u(S), C = /charset=([A-Za-z0-9_-]+)/.exec(d.type), k = C ? C[1] : "utf-8";
|
|
2544
|
+
return S.readAsText(d, k), L;
|
|
2541
2545
|
}
|
|
2542
|
-
function
|
|
2543
|
-
for (var
|
|
2544
|
-
L[C] = String.fromCharCode(
|
|
2546
|
+
function _(d) {
|
|
2547
|
+
for (var S = new Uint8Array(d), L = new Array(S.length), C = 0; C < S.length; C++)
|
|
2548
|
+
L[C] = String.fromCharCode(S[C]);
|
|
2545
2549
|
return L.join("");
|
|
2546
2550
|
}
|
|
2547
|
-
function
|
|
2551
|
+
function M(d) {
|
|
2548
2552
|
if (d.slice)
|
|
2549
2553
|
return d.slice(0);
|
|
2550
|
-
var
|
|
2551
|
-
return
|
|
2554
|
+
var S = new Uint8Array(d.byteLength);
|
|
2555
|
+
return S.set(new Uint8Array(d)), S.buffer;
|
|
2552
2556
|
}
|
|
2553
2557
|
function P() {
|
|
2554
2558
|
return this.bodyUsed = !1, this._initBody = function(d) {
|
|
2555
|
-
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 =
|
|
2559
|
+
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"));
|
|
2556
2560
|
}, l.blob && (this.blob = function() {
|
|
2557
2561
|
var d = w(this);
|
|
2558
2562
|
if (d)
|
|
@@ -2583,42 +2587,42 @@ function Yn() {
|
|
|
2583
2587
|
if (d)
|
|
2584
2588
|
return d;
|
|
2585
2589
|
if (this._bodyBlob)
|
|
2586
|
-
return
|
|
2590
|
+
return v(this._bodyBlob);
|
|
2587
2591
|
if (this._bodyArrayBuffer)
|
|
2588
|
-
return Promise.resolve(
|
|
2592
|
+
return Promise.resolve(_(this._bodyArrayBuffer));
|
|
2589
2593
|
if (this._bodyFormData)
|
|
2590
2594
|
throw new Error("could not read FormData body as text");
|
|
2591
2595
|
return Promise.resolve(this._bodyText);
|
|
2592
2596
|
}, l.formData && (this.formData = function() {
|
|
2593
|
-
return this.text().then(
|
|
2597
|
+
return this.text().then(q);
|
|
2594
2598
|
}), this.json = function() {
|
|
2595
2599
|
return this.text().then(JSON.parse);
|
|
2596
2600
|
}, this;
|
|
2597
2601
|
}
|
|
2598
|
-
var
|
|
2599
|
-
function
|
|
2600
|
-
var
|
|
2601
|
-
return
|
|
2602
|
+
var A = ["CONNECT", "DELETE", "GET", "HEAD", "OPTIONS", "PATCH", "POST", "PUT", "TRACE"];
|
|
2603
|
+
function j(d) {
|
|
2604
|
+
var S = d.toUpperCase();
|
|
2605
|
+
return A.indexOf(S) > -1 ? S : d;
|
|
2602
2606
|
}
|
|
2603
|
-
function
|
|
2604
|
-
if (!(this instanceof
|
|
2607
|
+
function R(d, S) {
|
|
2608
|
+
if (!(this instanceof R))
|
|
2605
2609
|
throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');
|
|
2606
|
-
|
|
2607
|
-
var L =
|
|
2608
|
-
if (d instanceof
|
|
2610
|
+
S = S || {};
|
|
2611
|
+
var L = S.body;
|
|
2612
|
+
if (d instanceof R) {
|
|
2609
2613
|
if (d.bodyUsed)
|
|
2610
2614
|
throw new TypeError("Already read");
|
|
2611
|
-
this.url = d.url, this.credentials = d.credentials,
|
|
2615
|
+
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);
|
|
2612
2616
|
} else
|
|
2613
2617
|
this.url = String(d);
|
|
2614
|
-
if (this.credentials =
|
|
2618
|
+
if (this.credentials = S.credentials || this.credentials || "same-origin", (S.headers || !this.headers) && (this.headers = new m(S.headers)), this.method = j(S.method || this.method || "GET"), this.mode = S.mode || this.mode || null, this.signal = S.signal || this.signal || (function() {
|
|
2615
2619
|
if ("AbortController" in a) {
|
|
2616
|
-
var
|
|
2617
|
-
return
|
|
2620
|
+
var E = new AbortController();
|
|
2621
|
+
return E.signal;
|
|
2618
2622
|
}
|
|
2619
2623
|
})(), this.referrer = null, (this.method === "GET" || this.method === "HEAD") && L)
|
|
2620
2624
|
throw new TypeError("Body not allowed for GET or HEAD requests");
|
|
2621
|
-
if (this._initBody(L), (this.method === "GET" || this.method === "HEAD") && (
|
|
2625
|
+
if (this._initBody(L), (this.method === "GET" || this.method === "HEAD") && (S.cache === "no-store" || S.cache === "no-cache")) {
|
|
2622
2626
|
var C = /([?&])_=[^&]*/;
|
|
2623
2627
|
if (C.test(this.url))
|
|
2624
2628
|
this.url = this.url.replace(C, "$1_=" + (/* @__PURE__ */ new Date()).getTime());
|
|
@@ -2628,130 +2632,130 @@ function Yn() {
|
|
|
2628
2632
|
}
|
|
2629
2633
|
}
|
|
2630
2634
|
}
|
|
2631
|
-
|
|
2632
|
-
return new
|
|
2635
|
+
R.prototype.clone = function() {
|
|
2636
|
+
return new R(this, { body: this._bodyInit });
|
|
2633
2637
|
};
|
|
2634
|
-
function
|
|
2635
|
-
var
|
|
2638
|
+
function q(d) {
|
|
2639
|
+
var S = new FormData();
|
|
2636
2640
|
return d.trim().split("&").forEach(function(L) {
|
|
2637
2641
|
if (L) {
|
|
2638
|
-
var C = L.split("="), k = C.shift().replace(/\+/g, " "),
|
|
2639
|
-
|
|
2642
|
+
var C = L.split("="), k = C.shift().replace(/\+/g, " "), E = C.join("=").replace(/\+/g, " ");
|
|
2643
|
+
S.append(decodeURIComponent(k), decodeURIComponent(E));
|
|
2640
2644
|
}
|
|
2641
|
-
}),
|
|
2645
|
+
}), S;
|
|
2642
2646
|
}
|
|
2643
|
-
function
|
|
2644
|
-
var
|
|
2647
|
+
function I(d) {
|
|
2648
|
+
var S = new m(), L = d.replace(/\r?\n[\t ]+/g, " ");
|
|
2645
2649
|
return L.split("\r").map(function(C) {
|
|
2646
2650
|
return C.indexOf(`
|
|
2647
2651
|
`) === 0 ? C.substr(1, C.length) : C;
|
|
2648
2652
|
}).forEach(function(C) {
|
|
2649
|
-
var k = C.split(":"),
|
|
2650
|
-
if (
|
|
2651
|
-
var
|
|
2653
|
+
var k = C.split(":"), E = k.shift().trim();
|
|
2654
|
+
if (E) {
|
|
2655
|
+
var V = k.join(":").trim();
|
|
2652
2656
|
try {
|
|
2653
|
-
|
|
2654
|
-
} catch (
|
|
2655
|
-
console.warn("Response " +
|
|
2657
|
+
S.append(E, V);
|
|
2658
|
+
} catch (B) {
|
|
2659
|
+
console.warn("Response " + B.message);
|
|
2656
2660
|
}
|
|
2657
2661
|
}
|
|
2658
|
-
}),
|
|
2662
|
+
}), S;
|
|
2659
2663
|
}
|
|
2660
|
-
P.call(
|
|
2661
|
-
function
|
|
2662
|
-
if (!(this instanceof
|
|
2664
|
+
P.call(R.prototype);
|
|
2665
|
+
function D(d, S) {
|
|
2666
|
+
if (!(this instanceof D))
|
|
2663
2667
|
throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');
|
|
2664
|
-
if (
|
|
2668
|
+
if (S || (S = {}), this.type = "default", this.status = S.status === void 0 ? 200 : S.status, this.status < 200 || this.status > 599)
|
|
2665
2669
|
throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");
|
|
2666
|
-
this.ok = this.status >= 200 && this.status < 300, this.statusText =
|
|
2670
|
+
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);
|
|
2667
2671
|
}
|
|
2668
|
-
P.call(
|
|
2669
|
-
return new
|
|
2672
|
+
P.call(D.prototype), D.prototype.clone = function() {
|
|
2673
|
+
return new D(this._bodyInit, {
|
|
2670
2674
|
status: this.status,
|
|
2671
2675
|
statusText: this.statusText,
|
|
2672
2676
|
headers: new m(this.headers),
|
|
2673
2677
|
url: this.url
|
|
2674
2678
|
});
|
|
2675
|
-
},
|
|
2676
|
-
var d = new
|
|
2679
|
+
}, D.error = function() {
|
|
2680
|
+
var d = new D(null, { status: 200, statusText: "" });
|
|
2677
2681
|
return d.ok = !1, d.status = 0, d.type = "error", d;
|
|
2678
2682
|
};
|
|
2679
|
-
var
|
|
2680
|
-
|
|
2681
|
-
if (
|
|
2683
|
+
var T = [301, 302, 303, 307, 308];
|
|
2684
|
+
D.redirect = function(d, S) {
|
|
2685
|
+
if (T.indexOf(S) === -1)
|
|
2682
2686
|
throw new RangeError("Invalid status code");
|
|
2683
|
-
return new
|
|
2687
|
+
return new D(null, { status: S, headers: { location: d } });
|
|
2684
2688
|
}, i.DOMException = a.DOMException;
|
|
2685
2689
|
try {
|
|
2686
2690
|
new i.DOMException();
|
|
2687
2691
|
} catch {
|
|
2688
|
-
i.DOMException = function(
|
|
2689
|
-
this.message =
|
|
2690
|
-
var C = Error(
|
|
2692
|
+
i.DOMException = function(S, L) {
|
|
2693
|
+
this.message = S, this.name = L;
|
|
2694
|
+
var C = Error(S);
|
|
2691
2695
|
this.stack = C.stack;
|
|
2692
2696
|
}, i.DOMException.prototype = Object.create(Error.prototype), i.DOMException.prototype.constructor = i.DOMException;
|
|
2693
2697
|
}
|
|
2694
|
-
function
|
|
2698
|
+
function O(d, S) {
|
|
2695
2699
|
return new Promise(function(L, C) {
|
|
2696
|
-
var k = new
|
|
2700
|
+
var k = new R(d, S);
|
|
2697
2701
|
if (k.signal && k.signal.aborted)
|
|
2698
2702
|
return C(new i.DOMException("Aborted", "AbortError"));
|
|
2699
|
-
var
|
|
2700
|
-
function
|
|
2701
|
-
|
|
2703
|
+
var E = new XMLHttpRequest();
|
|
2704
|
+
function V() {
|
|
2705
|
+
E.abort();
|
|
2702
2706
|
}
|
|
2703
|
-
|
|
2704
|
-
var
|
|
2705
|
-
statusText:
|
|
2706
|
-
headers:
|
|
2707
|
+
E.onload = function() {
|
|
2708
|
+
var U = {
|
|
2709
|
+
statusText: E.statusText,
|
|
2710
|
+
headers: I(E.getAllResponseHeaders() || "")
|
|
2707
2711
|
};
|
|
2708
|
-
k.url.indexOf("file://") === 0 && (
|
|
2709
|
-
var z = "response" in
|
|
2712
|
+
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");
|
|
2713
|
+
var z = "response" in E ? E.response : E.responseText;
|
|
2710
2714
|
setTimeout(function() {
|
|
2711
|
-
L(new
|
|
2715
|
+
L(new D(z, U));
|
|
2712
2716
|
}, 0);
|
|
2713
|
-
},
|
|
2717
|
+
}, E.onerror = function() {
|
|
2714
2718
|
setTimeout(function() {
|
|
2715
2719
|
C(new TypeError("Network request failed"));
|
|
2716
2720
|
}, 0);
|
|
2717
|
-
},
|
|
2721
|
+
}, E.ontimeout = function() {
|
|
2718
2722
|
setTimeout(function() {
|
|
2719
2723
|
C(new TypeError("Network request timed out"));
|
|
2720
2724
|
}, 0);
|
|
2721
|
-
},
|
|
2725
|
+
}, E.onabort = function() {
|
|
2722
2726
|
setTimeout(function() {
|
|
2723
2727
|
C(new i.DOMException("Aborted", "AbortError"));
|
|
2724
2728
|
}, 0);
|
|
2725
2729
|
};
|
|
2726
|
-
function
|
|
2730
|
+
function B(U) {
|
|
2727
2731
|
try {
|
|
2728
|
-
return
|
|
2732
|
+
return U === "" && a.location.href ? a.location.href : U;
|
|
2729
2733
|
} catch {
|
|
2730
|
-
return
|
|
2734
|
+
return U;
|
|
2731
2735
|
}
|
|
2732
2736
|
}
|
|
2733
|
-
if (
|
|
2734
|
-
var
|
|
2735
|
-
Object.getOwnPropertyNames(
|
|
2736
|
-
|
|
2737
|
-
}), k.headers.forEach(function(
|
|
2738
|
-
|
|
2737
|
+
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)) {
|
|
2738
|
+
var N = [];
|
|
2739
|
+
Object.getOwnPropertyNames(S.headers).forEach(function(U) {
|
|
2740
|
+
N.push(g(U)), E.setRequestHeader(U, p(S.headers[U]));
|
|
2741
|
+
}), k.headers.forEach(function(U, z) {
|
|
2742
|
+
N.indexOf(z) === -1 && E.setRequestHeader(z, U);
|
|
2739
2743
|
});
|
|
2740
2744
|
} else
|
|
2741
|
-
k.headers.forEach(function(
|
|
2742
|
-
|
|
2745
|
+
k.headers.forEach(function(U, z) {
|
|
2746
|
+
E.setRequestHeader(z, U);
|
|
2743
2747
|
});
|
|
2744
|
-
k.signal && (k.signal.addEventListener("abort",
|
|
2745
|
-
|
|
2746
|
-
}),
|
|
2748
|
+
k.signal && (k.signal.addEventListener("abort", V), E.onreadystatechange = function() {
|
|
2749
|
+
E.readyState === 4 && k.signal.removeEventListener("abort", V);
|
|
2750
|
+
}), E.send(typeof k._bodyInit > "u" ? null : k._bodyInit);
|
|
2747
2751
|
});
|
|
2748
2752
|
}
|
|
2749
|
-
return
|
|
2753
|
+
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;
|
|
2750
2754
|
})({});
|
|
2751
2755
|
})(s), s.fetch.ponyfill = !0, delete s.fetch.polyfill;
|
|
2752
2756
|
var n = t.fetch ? t : s;
|
|
2753
2757
|
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;
|
|
2754
|
-
})(
|
|
2758
|
+
})(Te, Te.exports)), Te.exports;
|
|
2755
2759
|
}
|
|
2756
2760
|
var Jn = Yn();
|
|
2757
2761
|
const Xn = /* @__PURE__ */ Et(Jn), Ze = "https://gcp-us-east1.api.carto.com", Qe = "v3", er = "ps", he = {
|
|
@@ -2796,15 +2800,15 @@ function rr() {
|
|
|
2796
2800
|
function a(u, f) {
|
|
2797
2801
|
return f.clone !== !1 && f.isMergeableObject(u) ? m(i(u), u, f) : u;
|
|
2798
2802
|
}
|
|
2799
|
-
function l(u, f,
|
|
2800
|
-
return u.concat(f).map(function(
|
|
2801
|
-
return a(
|
|
2803
|
+
function l(u, f, v) {
|
|
2804
|
+
return u.concat(f).map(function(_) {
|
|
2805
|
+
return a(_, v);
|
|
2802
2806
|
});
|
|
2803
2807
|
}
|
|
2804
2808
|
function c(u, f) {
|
|
2805
2809
|
if (!f.customMerge) return m;
|
|
2806
|
-
var
|
|
2807
|
-
return typeof
|
|
2810
|
+
var v = f.customMerge(u);
|
|
2811
|
+
return typeof v == "function" ? v : m;
|
|
2808
2812
|
}
|
|
2809
2813
|
function h(u) {
|
|
2810
2814
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(u).filter(function(f) {
|
|
@@ -2814,7 +2818,7 @@ function rr() {
|
|
|
2814
2818
|
function y(u) {
|
|
2815
2819
|
return Object.keys(u).concat(h(u));
|
|
2816
2820
|
}
|
|
2817
|
-
function
|
|
2821
|
+
function g(u, f) {
|
|
2818
2822
|
try {
|
|
2819
2823
|
return f in u;
|
|
2820
2824
|
} catch {
|
|
@@ -2822,25 +2826,25 @@ function rr() {
|
|
|
2822
2826
|
}
|
|
2823
2827
|
}
|
|
2824
2828
|
function p(u, f) {
|
|
2825
|
-
return
|
|
2829
|
+
return g(u, f) && !(Object.hasOwnProperty.call(u, f) && Object.propertyIsEnumerable.call(u, f));
|
|
2826
2830
|
}
|
|
2827
|
-
function b(u, f,
|
|
2828
|
-
var
|
|
2829
|
-
return
|
|
2830
|
-
M
|
|
2831
|
-
}), y(f).forEach(function(
|
|
2832
|
-
p(u,
|
|
2833
|
-
}),
|
|
2831
|
+
function b(u, f, v) {
|
|
2832
|
+
var _ = {};
|
|
2833
|
+
return v.isMergeableObject(u) && y(u).forEach(function(M) {
|
|
2834
|
+
_[M] = a(u[M], v);
|
|
2835
|
+
}), y(f).forEach(function(M) {
|
|
2836
|
+
p(u, M) || (g(u, M) && v.isMergeableObject(f[M]) ? _[M] = c(M, v)(u[M], f[M], v) : _[M] = a(f[M], v));
|
|
2837
|
+
}), _;
|
|
2834
2838
|
}
|
|
2835
|
-
function m(u, f,
|
|
2836
|
-
|
|
2837
|
-
var
|
|
2838
|
-
return P ?
|
|
2839
|
+
function m(u, f, v) {
|
|
2840
|
+
v = v || {}, v.arrayMerge = v.arrayMerge || l, v.isMergeableObject = v.isMergeableObject || r, v.cloneUnlessOtherwiseSpecified = a;
|
|
2841
|
+
var _ = Array.isArray(f), M = Array.isArray(u), P = _ === M;
|
|
2842
|
+
return P ? _ ? v.arrayMerge(u, f, v) : b(u, f, v) : a(f, v);
|
|
2839
2843
|
}
|
|
2840
2844
|
m.all = function(u, f) {
|
|
2841
2845
|
if (!Array.isArray(u)) throw new Error("first argument should be an array");
|
|
2842
|
-
return u.reduce(function(
|
|
2843
|
-
return m(
|
|
2846
|
+
return u.reduce(function(v, _) {
|
|
2847
|
+
return m(v, _, f);
|
|
2844
2848
|
}, {});
|
|
2845
2849
|
};
|
|
2846
2850
|
var w = m;
|
|
@@ -2856,7 +2860,7 @@ function ft(r) {
|
|
|
2856
2860
|
}
|
|
2857
2861
|
}, r);
|
|
2858
2862
|
}
|
|
2859
|
-
function
|
|
2863
|
+
function Ie(r, e) {
|
|
2860
2864
|
return We({
|
|
2861
2865
|
method: he.post,
|
|
2862
2866
|
headers: {
|
|
@@ -2868,9 +2872,9 @@ function je(r, e) {
|
|
|
2868
2872
|
}
|
|
2869
2873
|
const ir = {
|
|
2870
2874
|
GET: ft,
|
|
2871
|
-
POST:
|
|
2872
|
-
PUT:
|
|
2873
|
-
PATCH:
|
|
2875
|
+
POST: Ie,
|
|
2876
|
+
PUT: Ie,
|
|
2877
|
+
PATCH: Ie,
|
|
2874
2878
|
DELETE: ft
|
|
2875
2879
|
};
|
|
2876
2880
|
function ar({
|
|
@@ -2910,14 +2914,14 @@ async function qt({
|
|
|
2910
2914
|
params: o
|
|
2911
2915
|
}), h = e, y = n;
|
|
2912
2916
|
n === he.get && c.length > a && (h = o, y = he.post, c = i);
|
|
2913
|
-
const
|
|
2917
|
+
const g = ar({
|
|
2914
2918
|
body: h,
|
|
2915
2919
|
accessToken: t ?? s?.accessToken,
|
|
2916
2920
|
method: y,
|
|
2917
2921
|
...l
|
|
2918
2922
|
});
|
|
2919
|
-
r && (
|
|
2920
|
-
const p = await Xn(c,
|
|
2923
|
+
r && (g.signal = r);
|
|
2924
|
+
const p = await Xn(c, g);
|
|
2921
2925
|
if (!p.ok) {
|
|
2922
2926
|
const b = await p.text();
|
|
2923
2927
|
throw new Error(b);
|
|
@@ -3002,17 +3006,17 @@ const ke = ht()(ws((r, e) => ({
|
|
|
3002
3006
|
}
|
|
3003
3007
|
})));
|
|
3004
3008
|
function cr(r) {
|
|
3005
|
-
const e =
|
|
3009
|
+
const e = F(2);
|
|
3006
3010
|
let t;
|
|
3007
3011
|
return e[0] !== r ? (t = (s) => s.sources[r], e[0] = r, e[1] = t) : t = e[1], ke(t);
|
|
3008
3012
|
}
|
|
3009
3013
|
function ur(r) {
|
|
3010
|
-
const e =
|
|
3014
|
+
const e = F(2);
|
|
3011
3015
|
let t;
|
|
3012
3016
|
return e[0] !== r ? (t = (s) => s.filters[r], e[0] = r, e[1] = t) : t = e[1], ke(t);
|
|
3013
3017
|
}
|
|
3014
3018
|
function bo(r) {
|
|
3015
|
-
const e =
|
|
3019
|
+
const e = F(9);
|
|
3016
3020
|
let t;
|
|
3017
3021
|
e[0] !== r ? (t = (a) => a.sources[r], e[0] = r, e[1] = t) : t = e[1];
|
|
3018
3022
|
const s = ke(t);
|
|
@@ -3103,7 +3107,7 @@ function fr({
|
|
|
3103
3107
|
return o?.();
|
|
3104
3108
|
}
|
|
3105
3109
|
function pr(r, e) {
|
|
3106
|
-
const t =
|
|
3110
|
+
const t = F(3), s = ur(r);
|
|
3107
3111
|
let n;
|
|
3108
3112
|
e: {
|
|
3109
3113
|
if (!e?.length) {
|
|
@@ -3138,7 +3142,7 @@ function gr(r) {
|
|
|
3138
3142
|
return JSON.stringify(e);
|
|
3139
3143
|
}
|
|
3140
3144
|
function fe(r) {
|
|
3141
|
-
const e =
|
|
3145
|
+
const e = F(12), {
|
|
3142
3146
|
accessToken: t,
|
|
3143
3147
|
sourceId: s,
|
|
3144
3148
|
widgetProps: n,
|
|
@@ -3150,8 +3154,8 @@ function fe(r) {
|
|
|
3150
3154
|
const h = a?.props.headers;
|
|
3151
3155
|
let y;
|
|
3152
3156
|
e[6] !== h ? (y = gr(h), e[6] = h, e[7] = y) : y = e[7];
|
|
3153
|
-
const
|
|
3154
|
-
|
|
3157
|
+
const g = y;
|
|
3158
|
+
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;
|
|
3155
3159
|
} else
|
|
3156
3160
|
l = e[5];
|
|
3157
3161
|
let c;
|
|
@@ -3162,7 +3166,7 @@ function fe(r) {
|
|
|
3162
3166
|
}, e[8] = i, e[9] = l, e[10] = a, e[11] = c) : c = e[11], c;
|
|
3163
3167
|
}
|
|
3164
3168
|
function br(r) {
|
|
3165
|
-
const e =
|
|
3169
|
+
const e = F(21), {
|
|
3166
3170
|
accessToken: t,
|
|
3167
3171
|
sourceId: s,
|
|
3168
3172
|
widgetProps: n,
|
|
@@ -3185,23 +3189,23 @@ function br(r) {
|
|
|
3185
3189
|
widgetProps: n
|
|
3186
3190
|
}, e[5] = t, e[6] = o, e[7] = s, e[8] = n, e[9] = y) : y = e[9];
|
|
3187
3191
|
const {
|
|
3188
|
-
mergedFilters:
|
|
3192
|
+
mergedFilters: g,
|
|
3189
3193
|
queryKey: p,
|
|
3190
3194
|
widgetModel: b
|
|
3191
3195
|
} = fe(y);
|
|
3192
3196
|
let m;
|
|
3193
3197
|
e[10] !== p ? (m = ["categories", ...p], e[10] = p, e[11] = m) : m = e[11];
|
|
3194
3198
|
let w;
|
|
3195
|
-
e[12] !==
|
|
3199
|
+
e[12] !== g || e[13] !== b || e[14] !== n ? (w = (v) => {
|
|
3196
3200
|
const {
|
|
3197
|
-
signal:
|
|
3198
|
-
} =
|
|
3201
|
+
signal: _
|
|
3202
|
+
} = v;
|
|
3199
3203
|
return b.getCategories({
|
|
3200
3204
|
...n,
|
|
3201
|
-
filters:
|
|
3202
|
-
signal:
|
|
3205
|
+
filters: g,
|
|
3206
|
+
signal: _
|
|
3203
3207
|
});
|
|
3204
|
-
}, e[12] =
|
|
3208
|
+
}, e[12] = g, e[13] = b, e[14] = n, e[15] = w) : w = e[15];
|
|
3205
3209
|
const u = !!b && h;
|
|
3206
3210
|
let f;
|
|
3207
3211
|
return e[16] !== m || e[17] !== w || e[18] !== u || e[19] !== c ? (f = {
|
|
@@ -3212,7 +3216,7 @@ function br(r) {
|
|
|
3212
3216
|
}, e[16] = m, e[17] = w, e[18] = u, e[19] = c, e[20] = f) : f = e[20], le(f);
|
|
3213
3217
|
}
|
|
3214
3218
|
function So(r) {
|
|
3215
|
-
const e =
|
|
3219
|
+
const e = F(6);
|
|
3216
3220
|
let t, s;
|
|
3217
3221
|
e[0] !== r ? ({
|
|
3218
3222
|
children: t,
|
|
@@ -3223,7 +3227,7 @@ function So(r) {
|
|
|
3223
3227
|
return e[3] !== t || e[4] !== n ? (o = t(n), e[3] = t, e[4] = n, e[5] = o) : o = e[5], o;
|
|
3224
3228
|
}
|
|
3225
3229
|
function vr(r) {
|
|
3226
|
-
const e =
|
|
3230
|
+
const e = F(21), {
|
|
3227
3231
|
accessToken: t,
|
|
3228
3232
|
sourceId: s,
|
|
3229
3233
|
widgetProps: n,
|
|
@@ -3246,23 +3250,23 @@ function vr(r) {
|
|
|
3246
3250
|
widgetProps: n
|
|
3247
3251
|
}, e[5] = t, e[6] = o, e[7] = s, e[8] = n, e[9] = y) : y = e[9];
|
|
3248
3252
|
const {
|
|
3249
|
-
mergedFilters:
|
|
3253
|
+
mergedFilters: g,
|
|
3250
3254
|
queryKey: p,
|
|
3251
3255
|
widgetModel: b
|
|
3252
3256
|
} = fe(y);
|
|
3253
3257
|
let m;
|
|
3254
3258
|
e[10] !== p ? (m = ["features", ...p], e[10] = p, e[11] = m) : m = e[11];
|
|
3255
3259
|
let w;
|
|
3256
|
-
e[12] !==
|
|
3260
|
+
e[12] !== g || e[13] !== b || e[14] !== n ? (w = (v) => {
|
|
3257
3261
|
const {
|
|
3258
|
-
signal:
|
|
3259
|
-
} =
|
|
3262
|
+
signal: _
|
|
3263
|
+
} = v;
|
|
3260
3264
|
return b.getFeatures({
|
|
3261
3265
|
...n,
|
|
3262
|
-
filters:
|
|
3263
|
-
signal:
|
|
3266
|
+
filters: g,
|
|
3267
|
+
signal: _
|
|
3264
3268
|
});
|
|
3265
|
-
}, e[12] =
|
|
3269
|
+
}, e[12] = g, e[13] = b, e[14] = n, e[15] = w) : w = e[15];
|
|
3266
3270
|
const u = !!b && h;
|
|
3267
3271
|
let f;
|
|
3268
3272
|
return e[16] !== m || e[17] !== w || e[18] !== u || e[19] !== c ? (f = {
|
|
@@ -3273,7 +3277,7 @@ function vr(r) {
|
|
|
3273
3277
|
}, e[16] = m, e[17] = w, e[18] = u, e[19] = c, e[20] = f) : f = e[20], le(f);
|
|
3274
3278
|
}
|
|
3275
3279
|
function wo(r) {
|
|
3276
|
-
const e =
|
|
3280
|
+
const e = F(6);
|
|
3277
3281
|
let t, s;
|
|
3278
3282
|
e[0] !== r ? ({
|
|
3279
3283
|
children: t,
|
|
@@ -3284,7 +3288,7 @@ function wo(r) {
|
|
|
3284
3288
|
return e[3] !== t || e[4] !== n ? (o = t(n), e[3] = t, e[4] = n, e[5] = o) : o = e[5], o;
|
|
3285
3289
|
}
|
|
3286
3290
|
function Sr(r) {
|
|
3287
|
-
const e =
|
|
3291
|
+
const e = F(21), {
|
|
3288
3292
|
accessToken: t,
|
|
3289
3293
|
sourceId: s,
|
|
3290
3294
|
widgetProps: n,
|
|
@@ -3307,23 +3311,23 @@ function Sr(r) {
|
|
|
3307
3311
|
widgetProps: n
|
|
3308
3312
|
}, e[5] = t, e[6] = o, e[7] = s, e[8] = n, e[9] = y) : y = e[9];
|
|
3309
3313
|
const {
|
|
3310
|
-
mergedFilters:
|
|
3314
|
+
mergedFilters: g,
|
|
3311
3315
|
queryKey: p,
|
|
3312
3316
|
widgetModel: b
|
|
3313
3317
|
} = fe(y);
|
|
3314
3318
|
let m;
|
|
3315
3319
|
e[10] !== p ? (m = ["formula", ...p], e[10] = p, e[11] = m) : m = e[11];
|
|
3316
3320
|
let w;
|
|
3317
|
-
e[12] !==
|
|
3321
|
+
e[12] !== g || e[13] !== b || e[14] !== n ? (w = (v) => {
|
|
3318
3322
|
const {
|
|
3319
|
-
signal:
|
|
3320
|
-
} =
|
|
3323
|
+
signal: _
|
|
3324
|
+
} = v;
|
|
3321
3325
|
return b.getFormula({
|
|
3322
3326
|
...n,
|
|
3323
|
-
filters:
|
|
3324
|
-
signal:
|
|
3327
|
+
filters: g,
|
|
3328
|
+
signal: _
|
|
3325
3329
|
});
|
|
3326
|
-
}, e[12] =
|
|
3330
|
+
}, e[12] = g, e[13] = b, e[14] = n, e[15] = w) : w = e[15];
|
|
3327
3331
|
const u = !!b && h;
|
|
3328
3332
|
let f;
|
|
3329
3333
|
return e[16] !== m || e[17] !== w || e[18] !== u || e[19] !== c ? (f = {
|
|
@@ -3334,7 +3338,7 @@ function Sr(r) {
|
|
|
3334
3338
|
}, e[16] = m, e[17] = w, e[18] = u, e[19] = c, e[20] = f) : f = e[20], le(f);
|
|
3335
3339
|
}
|
|
3336
3340
|
function _o(r) {
|
|
3337
|
-
const e =
|
|
3341
|
+
const e = F(6);
|
|
3338
3342
|
let t, s;
|
|
3339
3343
|
e[0] !== r ? ({
|
|
3340
3344
|
children: t,
|
|
@@ -3345,7 +3349,7 @@ function _o(r) {
|
|
|
3345
3349
|
return e[3] !== t || e[4] !== n ? (o = t(n), e[3] = t, e[4] = n, e[5] = o) : o = e[5], o;
|
|
3346
3350
|
}
|
|
3347
3351
|
function wr(r) {
|
|
3348
|
-
const e =
|
|
3352
|
+
const e = F(21), {
|
|
3349
3353
|
accessToken: t,
|
|
3350
3354
|
sourceId: s,
|
|
3351
3355
|
widgetProps: n,
|
|
@@ -3368,23 +3372,23 @@ function wr(r) {
|
|
|
3368
3372
|
widgetProps: n
|
|
3369
3373
|
}, e[5] = t, e[6] = o, e[7] = s, e[8] = n, e[9] = y) : y = e[9];
|
|
3370
3374
|
const {
|
|
3371
|
-
mergedFilters:
|
|
3375
|
+
mergedFilters: g,
|
|
3372
3376
|
queryKey: p,
|
|
3373
3377
|
widgetModel: b
|
|
3374
3378
|
} = fe(y);
|
|
3375
3379
|
let m;
|
|
3376
3380
|
e[10] !== p ? (m = ["histogram", ...p], e[10] = p, e[11] = m) : m = e[11];
|
|
3377
3381
|
let w;
|
|
3378
|
-
e[12] !==
|
|
3382
|
+
e[12] !== g || e[13] !== b || e[14] !== n ? (w = (v) => {
|
|
3379
3383
|
const {
|
|
3380
|
-
signal:
|
|
3381
|
-
} =
|
|
3384
|
+
signal: _
|
|
3385
|
+
} = v;
|
|
3382
3386
|
return b.getHistogram({
|
|
3383
3387
|
...n,
|
|
3384
|
-
filters:
|
|
3385
|
-
signal:
|
|
3388
|
+
filters: g,
|
|
3389
|
+
signal: _
|
|
3386
3390
|
});
|
|
3387
|
-
}, e[12] =
|
|
3391
|
+
}, e[12] = g, e[13] = b, e[14] = n, e[15] = w) : w = e[15];
|
|
3388
3392
|
const u = !!b && h;
|
|
3389
3393
|
let f;
|
|
3390
3394
|
return e[16] !== m || e[17] !== w || e[18] !== u || e[19] !== c ? (f = {
|
|
@@ -3395,7 +3399,7 @@ function wr(r) {
|
|
|
3395
3399
|
}, e[16] = m, e[17] = w, e[18] = u, e[19] = c, e[20] = f) : f = e[20], le(f);
|
|
3396
3400
|
}
|
|
3397
3401
|
function Mo(r) {
|
|
3398
|
-
const e =
|
|
3402
|
+
const e = F(6);
|
|
3399
3403
|
let t, s;
|
|
3400
3404
|
e[0] !== r ? ({
|
|
3401
3405
|
children: t,
|
|
@@ -3406,7 +3410,7 @@ function Mo(r) {
|
|
|
3406
3410
|
return e[3] !== t || e[4] !== n ? (o = t(n), e[3] = t, e[4] = n, e[5] = o) : o = e[5], o;
|
|
3407
3411
|
}
|
|
3408
3412
|
function _r(r) {
|
|
3409
|
-
const e =
|
|
3413
|
+
const e = F(21), {
|
|
3410
3414
|
accessToken: t,
|
|
3411
3415
|
sourceId: s,
|
|
3412
3416
|
widgetProps: n,
|
|
@@ -3429,23 +3433,23 @@ function _r(r) {
|
|
|
3429
3433
|
widgetProps: n
|
|
3430
3434
|
}, e[5] = t, e[6] = o, e[7] = s, e[8] = n, e[9] = y) : y = e[9];
|
|
3431
3435
|
const {
|
|
3432
|
-
mergedFilters:
|
|
3436
|
+
mergedFilters: g,
|
|
3433
3437
|
queryKey: p,
|
|
3434
3438
|
widgetModel: b
|
|
3435
3439
|
} = fe(y);
|
|
3436
3440
|
let m;
|
|
3437
3441
|
e[10] !== p ? (m = ["range", ...p], e[10] = p, e[11] = m) : m = e[11];
|
|
3438
3442
|
let w;
|
|
3439
|
-
e[12] !==
|
|
3443
|
+
e[12] !== g || e[13] !== b || e[14] !== n ? (w = (v) => {
|
|
3440
3444
|
const {
|
|
3441
|
-
signal:
|
|
3442
|
-
} =
|
|
3445
|
+
signal: _
|
|
3446
|
+
} = v;
|
|
3443
3447
|
return b.getRange({
|
|
3444
3448
|
...n,
|
|
3445
|
-
filters:
|
|
3446
|
-
signal:
|
|
3449
|
+
filters: g,
|
|
3450
|
+
signal: _
|
|
3447
3451
|
});
|
|
3448
|
-
}, e[12] =
|
|
3452
|
+
}, e[12] = g, e[13] = b, e[14] = n, e[15] = w) : w = e[15];
|
|
3449
3453
|
const u = !!b && h;
|
|
3450
3454
|
let f;
|
|
3451
3455
|
return e[16] !== m || e[17] !== w || e[18] !== u || e[19] !== c ? (f = {
|
|
@@ -3456,7 +3460,7 @@ function _r(r) {
|
|
|
3456
3460
|
}, e[16] = m, e[17] = w, e[18] = u, e[19] = c, e[20] = f) : f = e[20], le(f);
|
|
3457
3461
|
}
|
|
3458
3462
|
function Eo(r) {
|
|
3459
|
-
const e =
|
|
3463
|
+
const e = F(6);
|
|
3460
3464
|
let t, s;
|
|
3461
3465
|
e[0] !== r ? ({
|
|
3462
3466
|
children: t,
|
|
@@ -3467,7 +3471,7 @@ function Eo(r) {
|
|
|
3467
3471
|
return e[3] !== t || e[4] !== n ? (o = t(n), e[3] = t, e[4] = n, e[5] = o) : o = e[5], o;
|
|
3468
3472
|
}
|
|
3469
3473
|
function Mr(r) {
|
|
3470
|
-
const e =
|
|
3474
|
+
const e = F(21), {
|
|
3471
3475
|
accessToken: t,
|
|
3472
3476
|
sourceId: s,
|
|
3473
3477
|
widgetProps: n,
|
|
@@ -3490,23 +3494,23 @@ function Mr(r) {
|
|
|
3490
3494
|
widgetProps: n
|
|
3491
3495
|
}, e[5] = t, e[6] = o, e[7] = s, e[8] = n, e[9] = y) : y = e[9];
|
|
3492
3496
|
const {
|
|
3493
|
-
mergedFilters:
|
|
3497
|
+
mergedFilters: g,
|
|
3494
3498
|
queryKey: p,
|
|
3495
3499
|
widgetModel: b
|
|
3496
3500
|
} = fe(y);
|
|
3497
3501
|
let m;
|
|
3498
3502
|
e[10] !== p ? (m = ["scatter", ...p], e[10] = p, e[11] = m) : m = e[11];
|
|
3499
3503
|
let w;
|
|
3500
|
-
e[12] !==
|
|
3504
|
+
e[12] !== g || e[13] !== b || e[14] !== n ? (w = (v) => {
|
|
3501
3505
|
const {
|
|
3502
|
-
signal:
|
|
3503
|
-
} =
|
|
3506
|
+
signal: _
|
|
3507
|
+
} = v;
|
|
3504
3508
|
return b.getScatter({
|
|
3505
3509
|
...n,
|
|
3506
|
-
filters:
|
|
3507
|
-
signal:
|
|
3510
|
+
filters: g,
|
|
3511
|
+
signal: _
|
|
3508
3512
|
});
|
|
3509
|
-
}, e[12] =
|
|
3513
|
+
}, e[12] = g, e[13] = b, e[14] = n, e[15] = w) : w = e[15];
|
|
3510
3514
|
const u = !!b && h;
|
|
3511
3515
|
let f;
|
|
3512
3516
|
return e[16] !== m || e[17] !== w || e[18] !== u || e[19] !== c ? (f = {
|
|
@@ -3517,7 +3521,7 @@ function Mr(r) {
|
|
|
3517
3521
|
}, e[16] = m, e[17] = w, e[18] = u, e[19] = c, e[20] = f) : f = e[20], le(f);
|
|
3518
3522
|
}
|
|
3519
3523
|
function To(r) {
|
|
3520
|
-
const e =
|
|
3524
|
+
const e = F(6);
|
|
3521
3525
|
let t, s;
|
|
3522
3526
|
e[0] !== r ? ({
|
|
3523
3527
|
children: t,
|
|
@@ -3528,7 +3532,7 @@ function To(r) {
|
|
|
3528
3532
|
return e[3] !== t || e[4] !== n ? (o = t(n), e[3] = t, e[4] = n, e[5] = o) : o = e[5], o;
|
|
3529
3533
|
}
|
|
3530
3534
|
function Er(r) {
|
|
3531
|
-
const e =
|
|
3535
|
+
const e = F(21), {
|
|
3532
3536
|
accessToken: t,
|
|
3533
3537
|
sourceId: s,
|
|
3534
3538
|
widgetProps: n,
|
|
@@ -3551,23 +3555,23 @@ function Er(r) {
|
|
|
3551
3555
|
widgetProps: n
|
|
3552
3556
|
}, e[5] = t, e[6] = o, e[7] = s, e[8] = n, e[9] = y) : y = e[9];
|
|
3553
3557
|
const {
|
|
3554
|
-
mergedFilters:
|
|
3558
|
+
mergedFilters: g,
|
|
3555
3559
|
queryKey: p,
|
|
3556
3560
|
widgetModel: b
|
|
3557
3561
|
} = fe(y);
|
|
3558
3562
|
let m;
|
|
3559
3563
|
e[10] !== p ? (m = ["table", ...p], e[10] = p, e[11] = m) : m = e[11];
|
|
3560
3564
|
let w;
|
|
3561
|
-
e[12] !==
|
|
3565
|
+
e[12] !== g || e[13] !== b || e[14] !== n ? (w = (v) => {
|
|
3562
3566
|
const {
|
|
3563
|
-
signal:
|
|
3564
|
-
} =
|
|
3567
|
+
signal: _
|
|
3568
|
+
} = v;
|
|
3565
3569
|
return b.getTable({
|
|
3566
3570
|
...n,
|
|
3567
|
-
filters:
|
|
3568
|
-
signal:
|
|
3571
|
+
filters: g,
|
|
3572
|
+
signal: _
|
|
3569
3573
|
});
|
|
3570
|
-
}, e[12] =
|
|
3574
|
+
}, e[12] = g, e[13] = b, e[14] = n, e[15] = w) : w = e[15];
|
|
3571
3575
|
const u = !!b && h;
|
|
3572
3576
|
let f;
|
|
3573
3577
|
return e[16] !== m || e[17] !== w || e[18] !== u || e[19] !== c ? (f = {
|
|
@@ -3578,7 +3582,7 @@ function Er(r) {
|
|
|
3578
3582
|
}, e[16] = m, e[17] = w, e[18] = u, e[19] = c, e[20] = f) : f = e[20], le(f);
|
|
3579
3583
|
}
|
|
3580
3584
|
function Lo(r) {
|
|
3581
|
-
const e =
|
|
3585
|
+
const e = F(6);
|
|
3582
3586
|
let t, s;
|
|
3583
3587
|
e[0] !== r ? ({
|
|
3584
3588
|
children: t,
|
|
@@ -3589,7 +3593,7 @@ function Lo(r) {
|
|
|
3589
3593
|
return e[3] !== t || e[4] !== n ? (o = t(n), e[3] = t, e[4] = n, e[5] = o) : o = e[5], o;
|
|
3590
3594
|
}
|
|
3591
3595
|
function Tr(r) {
|
|
3592
|
-
const e =
|
|
3596
|
+
const e = F(21), {
|
|
3593
3597
|
accessToken: t,
|
|
3594
3598
|
sourceId: s,
|
|
3595
3599
|
widgetProps: n,
|
|
@@ -3612,23 +3616,23 @@ function Tr(r) {
|
|
|
3612
3616
|
widgetProps: n
|
|
3613
3617
|
}, e[5] = t, e[6] = o, e[7] = s, e[8] = n, e[9] = y) : y = e[9];
|
|
3614
3618
|
const {
|
|
3615
|
-
mergedFilters:
|
|
3619
|
+
mergedFilters: g,
|
|
3616
3620
|
queryKey: p,
|
|
3617
3621
|
widgetModel: b
|
|
3618
3622
|
} = fe(y);
|
|
3619
3623
|
let m;
|
|
3620
3624
|
e[10] !== p ? (m = ["timeSeries", ...p], e[10] = p, e[11] = m) : m = e[11];
|
|
3621
3625
|
let w;
|
|
3622
|
-
e[12] !==
|
|
3626
|
+
e[12] !== g || e[13] !== b || e[14] !== n ? (w = (v) => {
|
|
3623
3627
|
const {
|
|
3624
|
-
signal:
|
|
3625
|
-
} =
|
|
3628
|
+
signal: _
|
|
3629
|
+
} = v;
|
|
3626
3630
|
return b.getTimeSeries({
|
|
3627
3631
|
...n,
|
|
3628
|
-
filters:
|
|
3629
|
-
signal:
|
|
3632
|
+
filters: g,
|
|
3633
|
+
signal: _
|
|
3630
3634
|
});
|
|
3631
|
-
}, e[12] =
|
|
3635
|
+
}, e[12] = g, e[13] = b, e[14] = n, e[15] = w) : w = e[15];
|
|
3632
3636
|
const u = !!b && h;
|
|
3633
3637
|
let f;
|
|
3634
3638
|
return e[16] !== m || e[17] !== w || e[18] !== u || e[19] !== c ? (f = {
|
|
@@ -3639,7 +3643,7 @@ function Tr(r) {
|
|
|
3639
3643
|
}, e[16] = m, e[17] = w, e[18] = u, e[19] = c, e[20] = f) : f = e[20], le(f);
|
|
3640
3644
|
}
|
|
3641
3645
|
function Po(r) {
|
|
3642
|
-
const e =
|
|
3646
|
+
const e = F(6);
|
|
3643
3647
|
let t, s;
|
|
3644
3648
|
e[0] !== r ? ({
|
|
3645
3649
|
children: t,
|
|
@@ -3651,7 +3655,7 @@ function Po(r) {
|
|
|
3651
3655
|
}
|
|
3652
3656
|
const ko = "ps";
|
|
3653
3657
|
function Co(r) {
|
|
3654
|
-
const e =
|
|
3658
|
+
const e = F(13), {
|
|
3655
3659
|
children: t,
|
|
3656
3660
|
maps: s,
|
|
3657
3661
|
lassoTools: n,
|
|
@@ -3664,14 +3668,14 @@ function Co(r) {
|
|
|
3664
3668
|
e[2] !== o ? (l = o === void 0 ? [] : o, e[2] = o, e[3] = l) : l = e[3];
|
|
3665
3669
|
const c = l;
|
|
3666
3670
|
let h;
|
|
3667
|
-
e[4] !== t || e[5] !== c ? (h = /* @__PURE__ */
|
|
3671
|
+
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];
|
|
3668
3672
|
let y;
|
|
3669
|
-
e[7] !== a || e[8] !== h ? (y = /* @__PURE__ */
|
|
3670
|
-
let
|
|
3671
|
-
return e[10] !== s || e[11] !== y ? (
|
|
3673
|
+
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];
|
|
3674
|
+
let g;
|
|
3675
|
+
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;
|
|
3672
3676
|
}
|
|
3673
3677
|
function Oo(r, e) {
|
|
3674
|
-
const t =
|
|
3678
|
+
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(({
|
|
3675
3679
|
id: c,
|
|
3676
3680
|
visible: h,
|
|
3677
3681
|
...y
|
|
@@ -3711,46 +3715,46 @@ function Oo(r, e) {
|
|
|
3711
3715
|
function Fo({
|
|
3712
3716
|
mapId: r
|
|
3713
3717
|
}) {
|
|
3714
|
-
const [e, t] = ae(void 0), [s, n] = ae(!1), [o, i] = ae(void 0), a =
|
|
3718
|
+
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, {
|
|
3715
3719
|
type: p
|
|
3716
|
-
} =
|
|
3720
|
+
} = ve[a], b = p === ie.googleMaps, m = ee(async () => {
|
|
3717
3721
|
const u = l(r), f = c(r);
|
|
3718
3722
|
try {
|
|
3719
|
-
const
|
|
3720
|
-
|
|
3721
|
-
const
|
|
3723
|
+
const v = document.createElement("canvas");
|
|
3724
|
+
v.width = u.width ?? 0, v.height = u.height ?? 0;
|
|
3725
|
+
const _ = v.getContext("2d");
|
|
3722
3726
|
if (b) {
|
|
3723
3727
|
const P = f;
|
|
3724
3728
|
if (P.getRenderingType() !== "RASTER")
|
|
3725
3729
|
throw new Error("Only raster type is supported for Google Maps");
|
|
3726
|
-
const
|
|
3730
|
+
const A = await _s(P.getDiv(), {
|
|
3727
3731
|
useCORS: !0
|
|
3728
3732
|
});
|
|
3729
|
-
|
|
3733
|
+
_?.drawImage(A, 0, 0, u.width, u.height);
|
|
3730
3734
|
} else {
|
|
3731
3735
|
const P = f;
|
|
3732
|
-
P.redraw(),
|
|
3736
|
+
P.redraw(), _?.drawImage(P.getMap().getCanvas(), 0, 0, u.width, u.height);
|
|
3733
3737
|
}
|
|
3734
|
-
u?.redraw("screenshot"),
|
|
3735
|
-
const
|
|
3736
|
-
t(
|
|
3737
|
-
} catch (
|
|
3738
|
-
i(
|
|
3738
|
+
u?.redraw("screenshot"), _?.drawImage(u.getCanvas(), 0, 0, u.width, u.height);
|
|
3739
|
+
const M = v.toDataURL();
|
|
3740
|
+
t(M);
|
|
3741
|
+
} catch (v) {
|
|
3742
|
+
i(v), console.error(v);
|
|
3739
3743
|
} finally {
|
|
3740
3744
|
n(!1);
|
|
3741
3745
|
}
|
|
3742
3746
|
}, [l, b, r, c]);
|
|
3743
3747
|
return {
|
|
3744
3748
|
takeScreenshot: ee(() => {
|
|
3745
|
-
i(void 0), n(!0),
|
|
3746
|
-
}, [m,
|
|
3749
|
+
i(void 0), n(!0), g && m();
|
|
3750
|
+
}, [m, g]),
|
|
3747
3751
|
isLoading: s,
|
|
3748
3752
|
screenshot: e,
|
|
3749
3753
|
error: o
|
|
3750
3754
|
};
|
|
3751
3755
|
}
|
|
3752
3756
|
function Ao(r) {
|
|
3753
|
-
const e =
|
|
3757
|
+
const e = F(11), {
|
|
3754
3758
|
mapId: t
|
|
3755
3759
|
} = r;
|
|
3756
3760
|
let s;
|
|
@@ -3777,12 +3781,12 @@ function Ao(r) {
|
|
|
3777
3781
|
}, e[6] = i, e[7] = l, e[8] = c, e[9] = n, e[10] = h) : h = e[10], h;
|
|
3778
3782
|
}
|
|
3779
3783
|
function Lr(r) {
|
|
3780
|
-
const e =
|
|
3784
|
+
const e = F(4), {
|
|
3781
3785
|
mapId: t
|
|
3782
3786
|
} = r;
|
|
3783
3787
|
let s;
|
|
3784
3788
|
e[0] !== t ? (s = (i) => i.viewports[t], e[0] = t, e[1] = s) : s = e[1];
|
|
3785
|
-
const n =
|
|
3789
|
+
const n = x(s);
|
|
3786
3790
|
let o;
|
|
3787
3791
|
e: {
|
|
3788
3792
|
if (!n) {
|
|
@@ -3795,12 +3799,12 @@ function Lr(r) {
|
|
|
3795
3799
|
return o;
|
|
3796
3800
|
}
|
|
3797
3801
|
function Pr(r) {
|
|
3798
|
-
const e =
|
|
3802
|
+
const e = F(5), {
|
|
3799
3803
|
mapId: t
|
|
3800
3804
|
} = r;
|
|
3801
3805
|
let s;
|
|
3802
3806
|
e[0] !== t ? (s = (i) => i.data[t]?.values, e[0] = t, e[1] = s) : s = e[1];
|
|
3803
|
-
const n =
|
|
3807
|
+
const n = Z(s);
|
|
3804
3808
|
let o;
|
|
3805
3809
|
e: {
|
|
3806
3810
|
let i;
|
|
@@ -3826,12 +3830,12 @@ function Cr(r) {
|
|
|
3826
3830
|
return r.properties.visible;
|
|
3827
3831
|
}
|
|
3828
3832
|
function Or(r) {
|
|
3829
|
-
const e =
|
|
3833
|
+
const e = F(4), {
|
|
3830
3834
|
mapId: t
|
|
3831
3835
|
} = r;
|
|
3832
3836
|
let s;
|
|
3833
3837
|
e[0] !== t ? (s = (i) => i.spatialFilter[t], e[0] = t, e[1] = s) : s = e[1];
|
|
3834
|
-
const n =
|
|
3838
|
+
const n = x(s);
|
|
3835
3839
|
let o;
|
|
3836
3840
|
e: {
|
|
3837
3841
|
if (!n || !Object.keys(n).length) {
|
|
@@ -3884,11 +3888,11 @@ function Ro({
|
|
|
3884
3888
|
getTitle: l = Rr,
|
|
3885
3889
|
getValue: c = $r
|
|
3886
3890
|
}) {
|
|
3887
|
-
const h = o ? l(o) : "",
|
|
3891
|
+
const h = o ? l(o) : "", g = t.reduce((p, b) => {
|
|
3888
3892
|
const m = e[b], w = r[b], u = c(w, s, m), f = n ? i(b) : "";
|
|
3889
3893
|
return p + a(f, u);
|
|
3890
3894
|
}, "");
|
|
3891
|
-
return h +
|
|
3895
|
+
return h + g;
|
|
3892
3896
|
}
|
|
3893
3897
|
function Rr(r) {
|
|
3894
3898
|
return `<h3 style="margin: 0"><strong>${r}</strong></h3></br>`;
|
|
@@ -3926,39 +3930,39 @@ function Do(r) {
|
|
|
3926
3930
|
};
|
|
3927
3931
|
}
|
|
3928
3932
|
function $o(r) {
|
|
3929
|
-
const e =
|
|
3933
|
+
const e = F(22), {
|
|
3930
3934
|
children: t,
|
|
3931
3935
|
mapId: s
|
|
3932
3936
|
} = r;
|
|
3933
3937
|
let n;
|
|
3934
|
-
e[0] !== s ? (n = (
|
|
3938
|
+
e[0] !== s ? (n = (M) => M.viewStates[s], e[0] = s, e[1] = n) : n = e[1];
|
|
3935
3939
|
const {
|
|
3936
3940
|
zoom: o,
|
|
3937
3941
|
maxZoom: i,
|
|
3938
3942
|
minZoom: a
|
|
3939
|
-
} =
|
|
3943
|
+
} = x(n);
|
|
3940
3944
|
let l;
|
|
3941
|
-
e[2] !== s ? (l = (
|
|
3942
|
-
const c =
|
|
3945
|
+
e[2] !== s ? (l = (M) => M.areLayersLoaded[s], e[2] = s, e[3] = l) : l = e[3];
|
|
3946
|
+
const c = x(l), h = x(Br), y = x(Vr), g = x(Ur), p = !c;
|
|
3943
3947
|
let b;
|
|
3944
|
-
e[4] !== s || e[5] !== h ? (b = (
|
|
3948
|
+
e[4] !== s || e[5] !== h ? (b = (M) => h(s, M), e[4] = s, e[5] = h, e[6] = b) : b = e[6];
|
|
3945
3949
|
const m = b;
|
|
3946
3950
|
let w;
|
|
3947
|
-
e[7] !== y || e[8] !== s ? (w = (
|
|
3951
|
+
e[7] !== y || e[8] !== s ? (w = (M) => y(s, M), e[7] = y, e[8] = s, e[9] = w) : w = e[9];
|
|
3948
3952
|
const u = w;
|
|
3949
3953
|
let f;
|
|
3950
|
-
e[10] !== s || e[11] !==
|
|
3951
|
-
const
|
|
3952
|
-
let
|
|
3953
|
-
return e[13] !== t || e[14] !== i || e[15] !== a || e[16] !== p || e[17] !== m || e[18] !== u || e[19] !==
|
|
3954
|
+
e[10] !== s || e[11] !== g ? (f = () => g(s), e[10] = s, e[11] = g, e[12] = f) : f = e[12];
|
|
3955
|
+
const v = f;
|
|
3956
|
+
let _;
|
|
3957
|
+
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({
|
|
3954
3958
|
zoom: o,
|
|
3955
3959
|
maxZoom: i,
|
|
3956
3960
|
minZoom: a,
|
|
3957
3961
|
isLoading: p,
|
|
3958
3962
|
setZoom: m,
|
|
3959
3963
|
flyTo: u,
|
|
3960
|
-
resetViewState:
|
|
3961
|
-
}), e[13] = t, e[14] = i, e[15] = a, e[16] = p, e[17] = m, e[18] = u, e[19] =
|
|
3964
|
+
resetViewState: v
|
|
3965
|
+
}), 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], _;
|
|
3962
3966
|
}
|
|
3963
3967
|
function Ur(r) {
|
|
3964
3968
|
return r.resetViewState;
|
|
@@ -3969,7 +3973,7 @@ function Vr(r) {
|
|
|
3969
3973
|
function Br(r) {
|
|
3970
3974
|
return r.setZoom;
|
|
3971
3975
|
}
|
|
3972
|
-
async function
|
|
3976
|
+
async function Ir({
|
|
3973
3977
|
baseUrl: r = Ze,
|
|
3974
3978
|
connection: e,
|
|
3975
3979
|
accessToken: t,
|
|
@@ -3997,7 +4001,7 @@ async function jr({
|
|
|
3997
4001
|
...i
|
|
3998
4002
|
});
|
|
3999
4003
|
}
|
|
4000
|
-
async function
|
|
4004
|
+
async function jr({
|
|
4001
4005
|
baseUrl: r = Ze,
|
|
4002
4006
|
connection: e,
|
|
4003
4007
|
accessToken: t,
|
|
@@ -4023,7 +4027,7 @@ async function Ir({
|
|
|
4023
4027
|
});
|
|
4024
4028
|
}
|
|
4025
4029
|
function qo(r) {
|
|
4026
|
-
const e =
|
|
4030
|
+
const e = F(20), {
|
|
4027
4031
|
source: t,
|
|
4028
4032
|
attribute: s,
|
|
4029
4033
|
accessToken: n,
|
|
@@ -4039,8 +4043,8 @@ function qo(r) {
|
|
|
4039
4043
|
...h
|
|
4040
4044
|
} = l, e[2] = l, e[3] = c, e[4] = h) : (c = e[3], h = e[4]);
|
|
4041
4045
|
const y = c === void 0 ? !0 : c;
|
|
4042
|
-
let
|
|
4043
|
-
e[5] !== s || e[6] !== t ? (
|
|
4046
|
+
let g;
|
|
4047
|
+
e[5] !== s || e[6] !== t ? (g = [t, s], e[5] = s, e[6] = t, e[7] = g) : g = e[7];
|
|
4044
4048
|
let p;
|
|
4045
4049
|
e[8] !== n || e[9] !== s || e[10] !== i || e[11] !== o || e[12] !== t ? (p = () => Nr({
|
|
4046
4050
|
source: t,
|
|
@@ -4050,8 +4054,8 @@ function qo(r) {
|
|
|
4050
4054
|
fetcherOptions: i
|
|
4051
4055
|
}), e[8] = n, e[9] = s, e[10] = i, e[11] = o, e[12] = t, e[13] = p) : p = e[13];
|
|
4052
4056
|
let b;
|
|
4053
|
-
return e[14] !== y || e[15] !== t || e[16] !==
|
|
4054
|
-
queryKey:
|
|
4057
|
+
return e[14] !== y || e[15] !== t || e[16] !== g || e[17] !== p || e[18] !== h ? (b = {
|
|
4058
|
+
queryKey: g,
|
|
4055
4059
|
queryFn: p,
|
|
4056
4060
|
select(m) {
|
|
4057
4061
|
return {
|
|
@@ -4061,7 +4065,7 @@ function qo(r) {
|
|
|
4061
4065
|
},
|
|
4062
4066
|
enabled: !!t && y,
|
|
4063
4067
|
...h
|
|
4064
|
-
}, e[14] = y, e[15] = t, e[16] =
|
|
4068
|
+
}, e[14] = y, e[15] = t, e[16] = g, e[17] = p, e[18] = h, e[19] = b) : b = e[19], le(b);
|
|
4065
4069
|
}
|
|
4066
4070
|
function Nr({
|
|
4067
4071
|
source: r,
|
|
@@ -4071,7 +4075,7 @@ function Nr({
|
|
|
4071
4075
|
fetcherOptions: n
|
|
4072
4076
|
}) {
|
|
4073
4077
|
if (r.type.startsWith("query"))
|
|
4074
|
-
return
|
|
4078
|
+
return Ir({
|
|
4075
4079
|
connection: r.connectionName,
|
|
4076
4080
|
baseUrl: r.apiBaseUrl,
|
|
4077
4081
|
apiVersion: r.apiVersion,
|
|
@@ -4083,7 +4087,7 @@ function Nr({
|
|
|
4083
4087
|
fetcherOptions: n
|
|
4084
4088
|
});
|
|
4085
4089
|
if (r.type.startsWith("table"))
|
|
4086
|
-
return
|
|
4090
|
+
return jr({
|
|
4087
4091
|
connection: r.connectionName,
|
|
4088
4092
|
baseUrl: r.apiBaseUrl,
|
|
4089
4093
|
apiVersion: r.apiVersion,
|
|
@@ -4137,7 +4141,7 @@ export {
|
|
|
4137
4141
|
Ys as DEFAULT_LASSO_TOOLS_LAYER_PROPS,
|
|
4138
4142
|
Ue as DEFAULT_LASSO_TOOLS_MODES,
|
|
4139
4143
|
xe as DEFAULT_LASSO_TOOLS_PROPS,
|
|
4140
|
-
|
|
4144
|
+
Ee as DEFAULT_MASK_LAYER_PROPS,
|
|
4141
4145
|
hn as DEFAULT_MEASUREMENT_TOOLS_MODES,
|
|
4142
4146
|
gn as DEFAULT_MEASUREMENT_TOOLS_UNITS,
|
|
4143
4147
|
Ve as DEFAULT_MEASURE_COLORS,
|
|
@@ -4147,10 +4151,10 @@ export {
|
|
|
4147
4151
|
_o as FormulaModel,
|
|
4148
4152
|
De as GmapsBasemap,
|
|
4149
4153
|
Mo as HistogramModel,
|
|
4150
|
-
|
|
4154
|
+
be as INTL_UNITS,
|
|
4151
4155
|
vn as LassoTools,
|
|
4152
4156
|
on as LassoToolsProvider,
|
|
4153
|
-
|
|
4157
|
+
ve as MAPS_BASEMAP,
|
|
4154
4158
|
me as MAP_LASSO_TOOLS_LAYER_ID,
|
|
4155
4159
|
Ce as MAP_MASK_LAYER_ID,
|
|
4156
4160
|
ce as MAP_MEASURE_LAYER_ID,
|
|
@@ -4158,7 +4162,7 @@ export {
|
|
|
4158
4162
|
lt as MEASUREMENT_TOOLS_UNITS_DISTANCE,
|
|
4159
4163
|
X as MEASUREMENT_TOOLS_UNITS_DISTANCE_VALUES,
|
|
4160
4164
|
go as MapComponent,
|
|
4161
|
-
|
|
4165
|
+
je as MapMeasurementUnitAuto,
|
|
4162
4166
|
mn as MapMeasurementUnitTurf,
|
|
4163
4167
|
Zs as MapProvider,
|
|
4164
4168
|
Co as MapsProvider,
|
|
@@ -4194,13 +4198,13 @@ export {
|
|
|
4194
4198
|
Sr as useFormula,
|
|
4195
4199
|
wr as useHistogram,
|
|
4196
4200
|
Pr as useLassoToolsSpatialFilter,
|
|
4197
|
-
|
|
4198
|
-
|
|
4199
|
-
|
|
4201
|
+
Z as useLassoToolsState,
|
|
4202
|
+
ge as useLayerStore,
|
|
4203
|
+
In as useLayers,
|
|
4200
4204
|
Oo as useLegend,
|
|
4201
4205
|
Fo as useMapScreenshot,
|
|
4202
|
-
|
|
4203
|
-
|
|
4206
|
+
x as useMapStore,
|
|
4207
|
+
G as useMeasurementToolsState,
|
|
4204
4208
|
_r as useRange,
|
|
4205
4209
|
Mr as useScatter,
|
|
4206
4210
|
cr as useSource,
|