@carto/ps-react-maps 3.9.1 → 3.10.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
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
var
|
|
2
|
-
var Dt = (r, e, t) => e in r ?
|
|
1
|
+
var At = Object.defineProperty;
|
|
2
|
+
var Dt = (r, e, t) => e in r ? At(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
|
|
3
3
|
var ee = (r, e, t) => Dt(r, typeof e != "symbol" ? e + "" : e, t);
|
|
4
4
|
import { jsx as N, jsxs as ft } from "react/jsx-runtime";
|
|
5
5
|
import { c as D } from "react/compiler-runtime";
|
|
6
6
|
import { useEffect as z, useImperativeHandle as Ne, useMemo as re, useCallback as Q, useState as oe, createContext as He, useContext as Ge, useRef as Me } from "react";
|
|
7
|
-
import { MapProvider as Rt, Map as $t, useMap as
|
|
8
|
-
import
|
|
7
|
+
import { MapProvider as Rt, Map as $t, useMap as xt } from "react-map-gl/maplibre";
|
|
8
|
+
import Ut from "@deck.gl/react";
|
|
9
9
|
import { useMap as pt, APIProvider as Bt, Map as jt } from "@vis.gl/react-google-maps";
|
|
10
10
|
import { GoogleMapsOverlay as qt } from "@deck.gl/google-maps";
|
|
11
11
|
import { createStore as ze, useStore as Qe, create as mt } from "zustand";
|
|
@@ -79,7 +79,7 @@ function vs(r) {
|
|
|
79
79
|
}
|
|
80
80
|
function Ss(r) {
|
|
81
81
|
const e = D(42);
|
|
82
|
-
let t, s, n, o, i, a, l, c,
|
|
82
|
+
let t, s, n, o, i, a, l, c, h, p, m, d;
|
|
83
83
|
e[0] !== r ? ({
|
|
84
84
|
instanceRef: i,
|
|
85
85
|
overlayRef: p,
|
|
@@ -91,11 +91,11 @@ function Ss(r) {
|
|
|
91
91
|
getCursor: s,
|
|
92
92
|
getTooltip: n,
|
|
93
93
|
onLoad: c,
|
|
94
|
-
onViewStateChange:
|
|
94
|
+
onViewStateChange: h,
|
|
95
95
|
...d
|
|
96
|
-
} = 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] =
|
|
97
|
-
let
|
|
98
|
-
e[13] !== c ? (
|
|
96
|
+
} = 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] = p, e[11] = m, e[12] = d) : (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], p = e[10], m = e[11], d = e[12]);
|
|
97
|
+
let y, g;
|
|
98
|
+
e[13] !== c ? (y = () => {
|
|
99
99
|
c({
|
|
100
100
|
type: "load",
|
|
101
101
|
value: !1
|
|
@@ -103,7 +103,7 @@ function Ss(r) {
|
|
|
103
103
|
type: "deckgl",
|
|
104
104
|
value: !1
|
|
105
105
|
});
|
|
106
|
-
},
|
|
106
|
+
}, g = [c], e[13] = c, e[14] = y, e[15] = g) : (y = e[14], g = e[15]), z(y, g);
|
|
107
107
|
let T, f;
|
|
108
108
|
e[16] !== a ? (f = a.filter(Es).map(Ts), e[16] = a, e[17] = f) : f = e[17], T = f;
|
|
109
109
|
const b = T, S = i;
|
|
@@ -124,13 +124,13 @@ function Ss(r) {
|
|
|
124
124
|
type: "load",
|
|
125
125
|
value: !0
|
|
126
126
|
}), e[24] = c, e[25] = k) : k = e[25];
|
|
127
|
-
let
|
|
128
|
-
e[26] !== l || e[27] !== k ? (
|
|
129
|
-
let
|
|
130
|
-
return e[29] !== b || e[30] !== t || e[31] !== s || e[32] !== n || e[33] !== o || e[34] !==
|
|
127
|
+
let x;
|
|
128
|
+
e[26] !== l || e[27] !== k ? (x = /* @__PURE__ */ N($t, { reuseMaps: !0, mapStyle: l, onLoad: k, onRender: ws }), e[26] = l, e[27] = k, e[28] = x) : x = e[28];
|
|
129
|
+
let A;
|
|
130
|
+
return e[29] !== b || e[30] !== t || e[31] !== s || e[32] !== n || e[33] !== o || e[34] !== h || e[35] !== d || e[36] !== x || e[37] !== S || e[38] !== E || e[39] !== w || e[40] !== _ ? (A = /* @__PURE__ */ N(Rt, { children: /* @__PURE__ */ N("div", { className: "deckgl-map", children: /* @__PURE__ */ ft(Ut, { controller: t, id: o, ref: S, layers: b, getCursor: s, getTooltip: n, onLoad: E, onViewStateChange: h, parameters: w, ...d, children: [
|
|
131
131
|
_,
|
|
132
|
-
|
|
133
|
-
] }) }) }), e[29] = b, e[30] = t, e[31] = s, e[32] = n, e[33] = o, e[34] =
|
|
132
|
+
x
|
|
133
|
+
] }) }) }), e[29] = b, e[30] = t, e[31] = s, e[32] = n, e[33] = o, e[34] = h, e[35] = d, e[36] = x, e[37] = S, e[38] = E, e[39] = w, e[40] = _, e[41] = A) : A = e[41], A;
|
|
134
134
|
}
|
|
135
135
|
function ws() {
|
|
136
136
|
const r = document.querySelector(".maplibregl-compact-show");
|
|
@@ -151,7 +151,7 @@ function _s(r) {
|
|
|
151
151
|
overlayRef: t
|
|
152
152
|
} = r, {
|
|
153
153
|
default: s
|
|
154
|
-
} =
|
|
154
|
+
} = xt();
|
|
155
155
|
let n, o;
|
|
156
156
|
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;
|
|
157
157
|
}
|
|
@@ -168,10 +168,10 @@ const Ms = (r) => {
|
|
|
168
168
|
e[3] !== o ? (l = () => (n.setMap(o), () => {
|
|
169
169
|
n.finalize();
|
|
170
170
|
}), c = [n, o], e[3] = o, e[4] = l, e[5] = c) : (l = e[4], c = e[5]), z(l, c);
|
|
171
|
-
let
|
|
172
|
-
return e[6] !== r ? (
|
|
171
|
+
let h, p;
|
|
172
|
+
return e[6] !== r ? (h = () => {
|
|
173
173
|
n.setProps(r);
|
|
174
|
-
}, p = [n, r], e[6] = r, e[7] =
|
|
174
|
+
}, p = [n, r], e[6] = r, e[7] = h, e[8] = p) : (h = e[7], p = e[8]), z(h, p), null;
|
|
175
175
|
};
|
|
176
176
|
function Ps({
|
|
177
177
|
id: r,
|
|
@@ -188,10 +188,10 @@ function Ps({
|
|
|
188
188
|
overlayRef: a,
|
|
189
189
|
parameters: l,
|
|
190
190
|
onLoad: c,
|
|
191
|
-
onViewStateChange:
|
|
191
|
+
onViewStateChange: h,
|
|
192
192
|
...p
|
|
193
193
|
}) {
|
|
194
|
-
var
|
|
194
|
+
var g, T, f, b, S;
|
|
195
195
|
z(() => {
|
|
196
196
|
c({
|
|
197
197
|
type: "load",
|
|
@@ -217,12 +217,12 @@ function Ps({
|
|
|
217
217
|
zoom: w - 1,
|
|
218
218
|
bearing: _,
|
|
219
219
|
pitch: k
|
|
220
|
-
}), []),
|
|
220
|
+
}), []), y = Q((E) => {
|
|
221
221
|
const w = e == null ? void 0 : e.current, _ = w == null ? void 0 : w._deck, k = {
|
|
222
222
|
// @ts-expect-error accessing protected props
|
|
223
223
|
..._ == null ? void 0 : _.viewState,
|
|
224
224
|
...E
|
|
225
|
-
},
|
|
225
|
+
}, x = {
|
|
226
226
|
latitude: k.latitude,
|
|
227
227
|
longitude: k.longitude,
|
|
228
228
|
zoom: k.zoom,
|
|
@@ -232,22 +232,22 @@ function Ps({
|
|
|
232
232
|
width: _ == null ? void 0 : _.width,
|
|
233
233
|
height: _ == null ? void 0 : _.height
|
|
234
234
|
};
|
|
235
|
-
|
|
236
|
-
viewState:
|
|
235
|
+
h == null || h({
|
|
236
|
+
viewState: x,
|
|
237
237
|
interactionState: {
|
|
238
238
|
isZooming: !0
|
|
239
239
|
}
|
|
240
240
|
});
|
|
241
|
-
}, [e,
|
|
241
|
+
}, [e, h]);
|
|
242
242
|
return /* @__PURE__ */ N(Bt, { apiKey: n, ...o, children: /* @__PURE__ */ N("div", { className: "deckgl-map", children: /* @__PURE__ */ ft(jt, { id: r, mapTypeId: t, disableDefaultUI: !0, gestureHandling: "greedy", ...i, center: {
|
|
243
|
-
lat: ((
|
|
243
|
+
lat: ((g = p.initialViewState) == null ? void 0 : g.latitude) ?? 0,
|
|
244
244
|
lng: ((T = p.initialViewState) == null ? void 0 : T.longitude) ?? 0
|
|
245
245
|
}, zoom: (((f = p.initialViewState) == null ? void 0 : f.zoom) ?? 0) + 1, tilt: (b = p.initialViewState) == null ? void 0 : b.pitch, heading: (S = p.initialViewState) == null ? void 0 : S.bearing, onTilesLoaded: () => {
|
|
246
246
|
c({
|
|
247
247
|
type: "load",
|
|
248
248
|
value: !0
|
|
249
|
-
}),
|
|
250
|
-
}, onBoundsChanged: (E) =>
|
|
249
|
+
}), y(p.initialViewState);
|
|
250
|
+
}, onBoundsChanged: (E) => y(d(E)), onZoomChanged: (E) => y(d(E)), children: [
|
|
251
251
|
/* @__PURE__ */ N(Ls, { id: r, overlayRef: a }),
|
|
252
252
|
/* @__PURE__ */ N(Ms, { id: r, instanceRef: e, layers: m, onLoad: () => {
|
|
253
253
|
c({
|
|
@@ -271,38 +271,38 @@ function Ls(r) {
|
|
|
271
271
|
}
|
|
272
272
|
function Os(r) {
|
|
273
273
|
const e = D(46);
|
|
274
|
-
let t, s, n, o, i, a, l, c,
|
|
274
|
+
let t, s, n, o, i, a, l, c, h, p, m, d;
|
|
275
275
|
e[0] !== r ? ({
|
|
276
276
|
instanceRef: s,
|
|
277
277
|
overlayRef: o,
|
|
278
278
|
basemap: a,
|
|
279
279
|
controller: l,
|
|
280
280
|
id: c,
|
|
281
|
-
layers:
|
|
281
|
+
layers: h,
|
|
282
282
|
gmapsProps: t,
|
|
283
283
|
getCursor: p,
|
|
284
284
|
getTooltip: m,
|
|
285
285
|
onLoad: n,
|
|
286
286
|
onViewStateChange: d,
|
|
287
287
|
...i
|
|
288
|
-
} = 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] =
|
|
289
|
-
const
|
|
288
|
+
} = 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] = p, e[11] = m, e[12] = d) : (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], p = e[10], m = e[11], d = e[12]);
|
|
289
|
+
const y = a === void 0 ? J.positron : a, g = l === void 0 ? !0 : l, T = c === void 0 ? "deck-gl-map" : c;
|
|
290
290
|
let f;
|
|
291
|
-
e[13] !==
|
|
291
|
+
e[13] !== h ? (f = h === void 0 ? [] : h, e[13] = h, e[14] = f) : f = e[14];
|
|
292
292
|
const b = f, S = p === void 0 ? bs : p, E = m === void 0 ? vs : m, w = d === void 0 ? ks : d;
|
|
293
293
|
let _;
|
|
294
294
|
e[15] === Symbol.for("react.memo_cache_sentinel") ? (_ = [!1, !1], e[15] = _) : _ = e[15];
|
|
295
|
-
const [k,
|
|
296
|
-
let
|
|
297
|
-
e[16] !== k ? (
|
|
298
|
-
const j =
|
|
295
|
+
const [k, x] = oe(_);
|
|
296
|
+
let A;
|
|
297
|
+
e[16] !== k ? (A = k.every(Fs), e[16] = k, e[17] = A) : A = e[17];
|
|
298
|
+
const j = A, {
|
|
299
299
|
url: B,
|
|
300
|
-
type:
|
|
301
|
-
} = ye[
|
|
300
|
+
type: U
|
|
301
|
+
} = ye[y], M = U === te.googleMaps;
|
|
302
302
|
let F;
|
|
303
303
|
e[18] === Symbol.for("react.memo_cache_sentinel") ? (F = (L) => {
|
|
304
304
|
const O = L.type === "deckgl" ? 0 : 1;
|
|
305
|
-
|
|
305
|
+
x((H) => H.map((W, K) => K === O ? L.value : W));
|
|
306
306
|
}, e[18] = F) : F = e[18];
|
|
307
307
|
const u = F;
|
|
308
308
|
let v, P;
|
|
@@ -310,10 +310,10 @@ function Os(r) {
|
|
|
310
310
|
n == null || n(j);
|
|
311
311
|
}, P = [j, n], e[19] = j, e[20] = n, e[21] = v, e[22] = P) : (v = e[21], P = e[22]), z(v, P), M) {
|
|
312
312
|
let L;
|
|
313
|
-
return e[23] !==
|
|
313
|
+
return e[23] !== y || e[24] !== g || e[25] !== S || e[26] !== E || e[27] !== t || e[28] !== T || e[29] !== s || e[30] !== b || e[31] !== w || e[32] !== o || e[33] !== i ? (L = /* @__PURE__ */ N(Ps, { instanceRef: s, overlayRef: o, controller: g, id: T, basemap: y, layers: b, gmapsProps: t, getCursor: S, getTooltip: E, onLoad: u, onViewStateChange: w, ...i }), e[23] = y, e[24] = g, e[25] = S, e[26] = E, e[27] = t, e[28] = T, e[29] = s, e[30] = b, e[31] = w, e[32] = o, e[33] = i, e[34] = L) : L = e[34], L;
|
|
314
314
|
}
|
|
315
|
-
let
|
|
316
|
-
return e[35] !==
|
|
315
|
+
let C;
|
|
316
|
+
return e[35] !== g || e[36] !== S || e[37] !== E || e[38] !== T || e[39] !== s || e[40] !== b || e[41] !== B || e[42] !== w || e[43] !== o || e[44] !== i ? (C = /* @__PURE__ */ N(Ss, { instanceRef: s, overlayRef: o, controller: g, id: T, layers: b, mapStyle: B, getCursor: S, getTooltip: E, onLoad: u, onViewStateChange: w, ...i }), e[35] = g, e[36] = S, e[37] = E, e[38] = T, e[39] = s, e[40] = b, e[41] = B, e[42] = w, e[43] = o, e[44] = i, e[45] = C) : C = e[45], C;
|
|
317
317
|
}
|
|
318
318
|
function Fs(r) {
|
|
319
319
|
return r;
|
|
@@ -321,12 +321,12 @@ function Fs(r) {
|
|
|
321
321
|
function ks() {
|
|
322
322
|
return null;
|
|
323
323
|
}
|
|
324
|
-
const
|
|
324
|
+
const Cs = {
|
|
325
325
|
transitionDuration: "auto",
|
|
326
326
|
transitionInterpolator: new Vt({
|
|
327
327
|
curve: 2
|
|
328
328
|
})
|
|
329
|
-
},
|
|
329
|
+
}, As = (r) => {
|
|
330
330
|
const e = r.reduce((t, s) => {
|
|
331
331
|
const {
|
|
332
332
|
id: n,
|
|
@@ -347,12 +347,12 @@ const As = {
|
|
|
347
347
|
return (t, s) => ({
|
|
348
348
|
maps: e,
|
|
349
349
|
setBasemap: (n, o) => t((i) => {
|
|
350
|
-
var
|
|
350
|
+
var h;
|
|
351
351
|
const {
|
|
352
352
|
type: a
|
|
353
353
|
} = ye[i.maps[n].basemap], {
|
|
354
354
|
type: l
|
|
355
|
-
} = ye[o], c = a === l && !!((
|
|
355
|
+
} = ye[o], c = a === l && !!((h = i.maps[n]) != null && h.isLoaded);
|
|
356
356
|
return {
|
|
357
357
|
maps: {
|
|
358
358
|
...i.maps,
|
|
@@ -398,11 +398,19 @@ const As = {
|
|
|
398
398
|
const l = s().getDeckInstance(n);
|
|
399
399
|
return (c = l == null ? void 0 : l.getViewports(i)) == null ? void 0 : c[o];
|
|
400
400
|
},
|
|
401
|
+
getBounds: (n, o, i) => {
|
|
402
|
+
var h;
|
|
403
|
+
const a = s(), l = (h = a.getViewport) == null ? void 0 : h.call(a, n);
|
|
404
|
+
return l ? {
|
|
405
|
+
...l == null ? void 0 : l.fitBounds(o, i == null ? void 0 : i.boundsOptions),
|
|
406
|
+
...i == null ? void 0 : i.viewStateOptions
|
|
407
|
+
} : void 0;
|
|
408
|
+
},
|
|
401
409
|
addLayers: (n, o) => t((i) => {
|
|
402
|
-
var
|
|
410
|
+
var h;
|
|
403
411
|
const a = {
|
|
404
412
|
...i.maps
|
|
405
|
-
}, l = ((
|
|
413
|
+
}, l = ((h = a[n]) == null ? void 0 : h.layers) ?? [], c = /* @__PURE__ */ new Set([...l, ...o]);
|
|
406
414
|
return a[n] = {
|
|
407
415
|
...a[n],
|
|
408
416
|
layers: [...c]
|
|
@@ -417,7 +425,7 @@ const As = {
|
|
|
417
425
|
}, l = ((c = a[n]) == null ? void 0 : c.layers) ?? [];
|
|
418
426
|
return a[n] = {
|
|
419
427
|
...a[n],
|
|
420
|
-
layers: l.filter((
|
|
428
|
+
layers: l.filter((h) => !o.includes(h))
|
|
421
429
|
}, {
|
|
422
430
|
maps: a
|
|
423
431
|
};
|
|
@@ -509,31 +517,32 @@ const As = {
|
|
|
509
517
|
});
|
|
510
518
|
}, $s = (r, e) => ({
|
|
511
519
|
fitBounds: (t, s, n) => {
|
|
512
|
-
const o = e(), i = o.
|
|
513
|
-
|
|
514
|
-
const l = {
|
|
515
|
-
...i == null ? void 0 : i.fitBounds(s, n == null ? void 0 : n.boundsOptions),
|
|
516
|
-
...n == null ? void 0 : n.viewStateOptions
|
|
517
|
-
};
|
|
518
|
-
o.setViewState(t, l), o.updateViewPort(t);
|
|
520
|
+
const o = e(), i = o.getBounds(t, s, n);
|
|
521
|
+
i && (o.setViewState(t, i), o.updateViewPort(t));
|
|
519
522
|
},
|
|
520
523
|
flyTo: (t, s, n = {}) => {
|
|
521
|
-
const o = e()
|
|
522
|
-
|
|
523
|
-
const a = {
|
|
524
|
-
...As,
|
|
524
|
+
const o = e(), i = {
|
|
525
|
+
...Cs,
|
|
525
526
|
...n == null ? void 0 : n.viewStateOptions
|
|
526
|
-
},
|
|
527
|
+
}, a = {
|
|
527
528
|
...s,
|
|
528
|
-
...
|
|
529
|
+
...i
|
|
529
530
|
};
|
|
530
|
-
o.setViewState(t,
|
|
531
|
+
o.setViewState(t, a), o.updateViewPort(t);
|
|
532
|
+
},
|
|
533
|
+
loadInitialViewState: (t, s) => {
|
|
534
|
+
const n = e();
|
|
535
|
+
n.setInitialViewState(t, s), n.flyTo(t, s, {
|
|
536
|
+
viewStateOptions: {
|
|
537
|
+
transitionDuration: 0
|
|
538
|
+
}
|
|
539
|
+
});
|
|
531
540
|
},
|
|
532
541
|
resetViewState: (t) => {
|
|
533
542
|
const s = e(), n = s.initialViewStates;
|
|
534
543
|
n[t] && s.flyTo(t, n[t]);
|
|
535
544
|
}
|
|
536
|
-
}),
|
|
545
|
+
}), xs = (r) => {
|
|
537
546
|
const e = r.reduce((t, s) => (t[s.id] = s.spatialFilter ?? {}, t), {});
|
|
538
547
|
return (t) => ({
|
|
539
548
|
spatialFilter: e,
|
|
@@ -549,11 +558,11 @@ const As = {
|
|
|
549
558
|
});
|
|
550
559
|
}
|
|
551
560
|
});
|
|
552
|
-
},
|
|
553
|
-
...
|
|
561
|
+
}, Us = (r) => ze()((...e) => ({
|
|
562
|
+
...As(r)(...e),
|
|
554
563
|
...Ds(r)(...e),
|
|
555
564
|
...Rs(r)(...e),
|
|
556
|
-
...
|
|
565
|
+
...xs(r)(...e),
|
|
557
566
|
...$s(...e)
|
|
558
567
|
})), St = He({});
|
|
559
568
|
function Bs(r) {
|
|
@@ -562,7 +571,7 @@ function Bs(r) {
|
|
|
562
571
|
values: s
|
|
563
572
|
} = r;
|
|
564
573
|
let n;
|
|
565
|
-
e[0] !== s ? (n =
|
|
574
|
+
e[0] !== s ? (n = Us(s), e[0] = s, e[1] = n) : n = e[1];
|
|
566
575
|
const [o] = oe(n);
|
|
567
576
|
let i;
|
|
568
577
|
return e[2] !== t || e[3] !== o ? (i = /* @__PURE__ */ N(St.Provider, { value: o, children: t }), e[2] = t, e[3] = o, e[4] = i) : i = e[4], i;
|
|
@@ -579,12 +588,12 @@ function zr(r) {
|
|
|
579
588
|
mapId: s
|
|
580
589
|
} = r;
|
|
581
590
|
let n;
|
|
582
|
-
e[0] !== s ? (n = (
|
|
591
|
+
e[0] !== s ? (n = (h) => h.maps[s], e[0] = s, e[1] = n) : n = e[1];
|
|
583
592
|
const {
|
|
584
593
|
basemap: o
|
|
585
594
|
} = $(n), i = $(js);
|
|
586
595
|
let a;
|
|
587
|
-
e[2] !== s || e[3] !== i ? (a = (
|
|
596
|
+
e[2] !== s || e[3] !== i ? (a = (h) => i(s, h), e[2] = s, e[3] = i, e[4] = a) : a = e[4];
|
|
588
597
|
const l = a;
|
|
589
598
|
let c;
|
|
590
599
|
return e[5] !== o || e[6] !== t || e[7] !== l ? (c = t({
|
|
@@ -638,7 +647,7 @@ const ce = "lassoLayer", Le = "maskLayer", Vs = {
|
|
|
638
647
|
border: [71, 219, 153, 255],
|
|
639
648
|
fill: [71, 219, 153, 0]
|
|
640
649
|
}
|
|
641
|
-
},
|
|
650
|
+
}, xe = {
|
|
642
651
|
styles: {
|
|
643
652
|
colors: {
|
|
644
653
|
editing: Je.editing,
|
|
@@ -657,7 +666,7 @@ const ce = "lassoLayer", Le = "maskLayer", Vs = {
|
|
|
657
666
|
visible: !0,
|
|
658
667
|
extensions: Is,
|
|
659
668
|
filterRange: [1, 1]
|
|
660
|
-
},
|
|
669
|
+
}, Ue = {
|
|
661
670
|
polygon: {
|
|
662
671
|
value: "polygon",
|
|
663
672
|
mode: Wt
|
|
@@ -692,7 +701,7 @@ const ce = "lassoLayer", Le = "maskLayer", Vs = {
|
|
|
692
701
|
const o = n[e] ?? {
|
|
693
702
|
type: null,
|
|
694
703
|
props: {}
|
|
695
|
-
}, i = [...o.props.extensions ?? [], ...((l = t.props) == null ? void 0 : l.extensions) ?? []].reduce((
|
|
704
|
+
}, i = [...o.props.extensions ?? [], ...((l = t.props) == null ? void 0 : l.extensions) ?? []].reduce((h, p) => (h.some((m) => m.equals(p)) || h.push(p), h), []), a = o.legend || t.legend ? {
|
|
696
705
|
...o.legend,
|
|
697
706
|
...t.legend
|
|
698
707
|
} : void 0;
|
|
@@ -749,7 +758,7 @@ function Ns() {
|
|
|
749
758
|
return Array.isArray(f) ? [] : {};
|
|
750
759
|
}
|
|
751
760
|
function a(f, b) {
|
|
752
|
-
return b.clone !== !1 && b.isMergeableObject(f) ?
|
|
761
|
+
return b.clone !== !1 && b.isMergeableObject(f) ? g(i(f), f, b) : f;
|
|
753
762
|
}
|
|
754
763
|
function l(f, b, S) {
|
|
755
764
|
return f.concat(b).map(function(E) {
|
|
@@ -758,17 +767,17 @@ function Ns() {
|
|
|
758
767
|
}
|
|
759
768
|
function c(f, b) {
|
|
760
769
|
if (!b.customMerge)
|
|
761
|
-
return
|
|
770
|
+
return g;
|
|
762
771
|
var S = b.customMerge(f);
|
|
763
|
-
return typeof S == "function" ? S :
|
|
772
|
+
return typeof S == "function" ? S : g;
|
|
764
773
|
}
|
|
765
|
-
function
|
|
774
|
+
function h(f) {
|
|
766
775
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(f).filter(function(b) {
|
|
767
776
|
return Object.propertyIsEnumerable.call(f, b);
|
|
768
777
|
}) : [];
|
|
769
778
|
}
|
|
770
779
|
function p(f) {
|
|
771
|
-
return Object.keys(f).concat(
|
|
780
|
+
return Object.keys(f).concat(h(f));
|
|
772
781
|
}
|
|
773
782
|
function m(f, b) {
|
|
774
783
|
try {
|
|
@@ -780,7 +789,7 @@ function Ns() {
|
|
|
780
789
|
function d(f, b) {
|
|
781
790
|
return m(f, b) && !(Object.hasOwnProperty.call(f, b) && Object.propertyIsEnumerable.call(f, b));
|
|
782
791
|
}
|
|
783
|
-
function
|
|
792
|
+
function y(f, b, S) {
|
|
784
793
|
var E = {};
|
|
785
794
|
return S.isMergeableObject(f) && p(f).forEach(function(w) {
|
|
786
795
|
E[w] = a(f[w], S);
|
|
@@ -788,19 +797,19 @@ function Ns() {
|
|
|
788
797
|
d(f, w) || (m(f, w) && S.isMergeableObject(b[w]) ? E[w] = c(w, S)(f[w], b[w], S) : E[w] = a(b[w], S));
|
|
789
798
|
}), E;
|
|
790
799
|
}
|
|
791
|
-
function
|
|
800
|
+
function g(f, b, S) {
|
|
792
801
|
S = S || {}, S.arrayMerge = S.arrayMerge || l, S.isMergeableObject = S.isMergeableObject || r, S.cloneUnlessOtherwiseSpecified = a;
|
|
793
802
|
var E = Array.isArray(b), w = Array.isArray(f), _ = E === w;
|
|
794
|
-
return _ ? E ? S.arrayMerge(f, b, S) :
|
|
803
|
+
return _ ? E ? S.arrayMerge(f, b, S) : y(f, b, S) : a(b, S);
|
|
795
804
|
}
|
|
796
|
-
|
|
805
|
+
g.all = function(b, S) {
|
|
797
806
|
if (!Array.isArray(b))
|
|
798
807
|
throw new Error("first argument should be an array");
|
|
799
808
|
return b.reduce(function(E, w) {
|
|
800
|
-
return
|
|
809
|
+
return g(E, w, S);
|
|
801
810
|
}, {});
|
|
802
811
|
};
|
|
803
|
-
var T =
|
|
812
|
+
var T = g;
|
|
804
813
|
return Be = T, Be;
|
|
805
814
|
}
|
|
806
815
|
var Hs = Ns();
|
|
@@ -886,17 +895,17 @@ const Qs = (r) => ze()((e) => ({
|
|
|
886
895
|
const {
|
|
887
896
|
enabled: o = !1,
|
|
888
897
|
mapId: i,
|
|
889
|
-
modeInstance: a = new
|
|
890
|
-
modes: l =
|
|
891
|
-
modeSelected: c =
|
|
892
|
-
values:
|
|
898
|
+
modeInstance: a = new Ue.polygon.mode(),
|
|
899
|
+
modes: l = Ue,
|
|
900
|
+
modeSelected: c = Ue.polygon.value,
|
|
901
|
+
values: h = {}
|
|
893
902
|
} = n;
|
|
894
903
|
return s[i] = {
|
|
895
904
|
enabled: o,
|
|
896
905
|
modeInstance: a,
|
|
897
906
|
modes: l,
|
|
898
907
|
modeSelected: c,
|
|
899
|
-
values:
|
|
908
|
+
values: h
|
|
900
909
|
}, s;
|
|
901
910
|
}, {}),
|
|
902
911
|
setEnabled: (s, n) => {
|
|
@@ -997,25 +1006,25 @@ function Ks({
|
|
|
997
1006
|
children: e
|
|
998
1007
|
}) {
|
|
999
1008
|
const t = G((d) => {
|
|
1000
|
-
var
|
|
1001
|
-
return (
|
|
1009
|
+
var y;
|
|
1010
|
+
return (y = d.data[r]) == null ? void 0 : y.enabled;
|
|
1002
1011
|
}), s = G((d) => d.setEnabled), n = G((d) => {
|
|
1003
|
-
var
|
|
1004
|
-
return (
|
|
1012
|
+
var y;
|
|
1013
|
+
return (y = d.data[r]) == null ? void 0 : y.values;
|
|
1005
1014
|
}), o = G((d) => d.setValue), i = G((d) => d.setVisibility), a = G((d) => {
|
|
1006
|
-
var
|
|
1007
|
-
return (
|
|
1015
|
+
var y;
|
|
1016
|
+
return (y = d.data[r]) == null ? void 0 : y.modeSelected;
|
|
1008
1017
|
}), l = G((d) => d.setModeSelected), c = G((d) => {
|
|
1009
|
-
var
|
|
1010
|
-
return (
|
|
1011
|
-
}),
|
|
1018
|
+
var y;
|
|
1019
|
+
return (y = d.data[r]) == null ? void 0 : y.modes;
|
|
1020
|
+
}), h = G((d) => d.setModeInstance);
|
|
1012
1021
|
z(() => {
|
|
1013
1022
|
const d = c[a];
|
|
1014
1023
|
if (d && t) {
|
|
1015
|
-
const
|
|
1016
|
-
|
|
1024
|
+
const y = d.mode;
|
|
1025
|
+
h(r, new y());
|
|
1017
1026
|
}
|
|
1018
|
-
}, [t, r, a, c,
|
|
1027
|
+
}, [t, r, a, c, h]);
|
|
1019
1028
|
const [
|
|
1020
1029
|
p
|
|
1021
1030
|
// , draw
|
|
@@ -1046,7 +1055,7 @@ function Ks({
|
|
|
1046
1055
|
},
|
|
1047
1056
|
setValue: Q((d) => o(r, d), [r, o]),
|
|
1048
1057
|
setEnabled: Q((d) => s(r, d), [r, s]),
|
|
1049
|
-
setVisibility: Q((d,
|
|
1058
|
+
setVisibility: Q((d, y) => i(r, d, y), [r, i]),
|
|
1050
1059
|
setModeSelected: m
|
|
1051
1060
|
});
|
|
1052
1061
|
}
|
|
@@ -1076,9 +1085,9 @@ function Oe({
|
|
|
1076
1085
|
const o = e === Ie["m-km"], i = e === Ie["ft-mi"], a = o || i;
|
|
1077
1086
|
let l, c;
|
|
1078
1087
|
if (a) {
|
|
1079
|
-
const
|
|
1080
|
-
let p =
|
|
1081
|
-
l =
|
|
1088
|
+
const h = r < (s ?? nt);
|
|
1089
|
+
let p = h ? V.meter : V.kilometer;
|
|
1090
|
+
l = h ? me.meter : me.kilometer, i && (l = h ? me.feet : me.mile, p = h ? V.feet : V.mile), c = st(r, p);
|
|
1082
1091
|
} else
|
|
1083
1092
|
l = me[e], c = st(r, e);
|
|
1084
1093
|
return `${bt(c, t, {
|
|
@@ -1507,29 +1516,29 @@ function Lt(r) {
|
|
|
1507
1516
|
layerId: s
|
|
1508
1517
|
} = r;
|
|
1509
1518
|
let n;
|
|
1510
|
-
e[0] !== t ? (n = (
|
|
1511
|
-
var
|
|
1512
|
-
return (
|
|
1519
|
+
e[0] !== t ? (n = (y) => {
|
|
1520
|
+
var g;
|
|
1521
|
+
return (g = y.maps[t]) == null ? void 0 : g.basemap;
|
|
1513
1522
|
}, e[0] = t, e[1] = n) : n = e[1];
|
|
1514
1523
|
const o = $(n);
|
|
1515
1524
|
let i;
|
|
1516
|
-
e[2] !== t ? (i = (
|
|
1517
|
-
var
|
|
1518
|
-
return (
|
|
1525
|
+
e[2] !== t ? (i = (y) => {
|
|
1526
|
+
var g;
|
|
1527
|
+
return (g = y.maps[t]) == null ? void 0 : g.isLoaded;
|
|
1519
1528
|
}, e[2] = t, e[3] = i) : i = e[3];
|
|
1520
1529
|
const a = $(i), l = $(on), c = pe(rn), {
|
|
1521
|
-
type:
|
|
1522
|
-
} = ye[o], p =
|
|
1530
|
+
type: h
|
|
1531
|
+
} = ye[o], p = h === te.googleMaps;
|
|
1523
1532
|
let m, d;
|
|
1524
1533
|
e[4] !== l || e[5] !== p || e[6] !== a || e[7] !== s || e[8] !== t || e[9] !== c ? (m = () => {
|
|
1525
|
-
let
|
|
1534
|
+
let y = null;
|
|
1526
1535
|
if (p && a) {
|
|
1527
|
-
const
|
|
1528
|
-
|
|
1536
|
+
const g = l(t);
|
|
1537
|
+
y = new ss(g.getDiv(), {});
|
|
1529
1538
|
}
|
|
1530
1539
|
c(s, {
|
|
1531
1540
|
props: {
|
|
1532
|
-
eventManager:
|
|
1541
|
+
eventManager: y
|
|
1533
1542
|
}
|
|
1534
1543
|
});
|
|
1535
1544
|
}, d = [l, p, a, s, t, c], e[4] = l, e[5] = p, e[6] = a, e[7] = s, e[8] = t, e[9] = c, e[10] = m, e[11] = d) : (m = e[10], d = e[11]), z(m, d);
|
|
@@ -1545,11 +1554,11 @@ function ln({
|
|
|
1545
1554
|
children: r,
|
|
1546
1555
|
mapId: e,
|
|
1547
1556
|
defaultProps: {
|
|
1548
|
-
styles: t =
|
|
1557
|
+
styles: t = xe.styles,
|
|
1549
1558
|
labels: s
|
|
1550
1559
|
} = {
|
|
1551
|
-
styles:
|
|
1552
|
-
labels:
|
|
1560
|
+
styles: xe.styles,
|
|
1561
|
+
labels: xe.labels
|
|
1553
1562
|
},
|
|
1554
1563
|
layerProps: n = {},
|
|
1555
1564
|
defaultType: o = "mask"
|
|
@@ -1560,13 +1569,13 @@ function ln({
|
|
|
1560
1569
|
}), a = G((M) => M.setEnabled), l = G((M) => {
|
|
1561
1570
|
var F;
|
|
1562
1571
|
return (F = M.data[e]) == null ? void 0 : F.values;
|
|
1563
|
-
}), c = G((M) => M.setValue),
|
|
1572
|
+
}), c = G((M) => M.setValue), h = G((M) => {
|
|
1564
1573
|
var F;
|
|
1565
1574
|
return (F = M.data[e]) == null ? void 0 : F.modeInstance;
|
|
1566
1575
|
}), p = G((M) => {
|
|
1567
1576
|
var F;
|
|
1568
1577
|
return (F = M.data[e]) == null ? void 0 : F.modeSelected;
|
|
1569
|
-
}), m = pe((M) => M.setLayer), d = $((M) => M.addLayers),
|
|
1578
|
+
}), m = pe((M) => M.setLayer), d = $((M) => M.addLayers), y = $((M) => M.removeLayers), g = $(ht((M) => {
|
|
1570
1579
|
var F;
|
|
1571
1580
|
return (F = M.maps[e]) == null ? void 0 : F.layers.filter((u) => !an.includes(u));
|
|
1572
1581
|
})), T = $((M) => M.getDeckInstance), f = Me({});
|
|
@@ -1584,7 +1593,7 @@ function ln({
|
|
|
1584
1593
|
properties: M.properties,
|
|
1585
1594
|
id: M.id
|
|
1586
1595
|
}))
|
|
1587
|
-
}), [b]), E = re(() => b.filter((M) => M.properties.visible).map((M) => M.id), [b]), [w, _] = oe(S), [k,
|
|
1596
|
+
}), [b]), E = re(() => b.filter((M) => M.properties.visible).map((M) => M.id), [b]), [w, _] = oe(S), [k, x] = oe([]), A = Q(() => {
|
|
1588
1597
|
const M = {
|
|
1589
1598
|
...S,
|
|
1590
1599
|
features: S.features.filter((F) => {
|
|
@@ -1595,15 +1604,15 @@ function ln({
|
|
|
1595
1604
|
_(M);
|
|
1596
1605
|
}, [S]);
|
|
1597
1606
|
z(() => {
|
|
1598
|
-
|
|
1599
|
-
}, [
|
|
1607
|
+
A();
|
|
1608
|
+
}, [A]);
|
|
1600
1609
|
const j = Me(b.length);
|
|
1601
1610
|
z(() => (d(e, [ce]), () => {
|
|
1602
|
-
|
|
1603
|
-
}), [d, e,
|
|
1611
|
+
y(e, [ce]);
|
|
1612
|
+
}), [d, e, y]);
|
|
1604
1613
|
const B = Q(() => {
|
|
1605
|
-
|
|
1606
|
-
}, [e,
|
|
1614
|
+
A(), x([]), a(e, !1);
|
|
1615
|
+
}, [e, A, a]), U = Q(({
|
|
1607
1616
|
editType: M,
|
|
1608
1617
|
updatedData: F
|
|
1609
1618
|
}) => {
|
|
@@ -1612,8 +1621,8 @@ function ln({
|
|
|
1612
1621
|
return;
|
|
1613
1622
|
}
|
|
1614
1623
|
_(F), M !== Y.updateTentativeFeature && M === Y.addFeature && (p !== "edit" && (j.current = j.current + 1), F.features.forEach((u, v) => {
|
|
1615
|
-
var
|
|
1616
|
-
(
|
|
1624
|
+
var C;
|
|
1625
|
+
(C = u.properties).label ?? (C.label = `${s == null ? void 0 : s.mask} ${j.current}`), u.properties.index = v, u.properties.visible = u.properties.visible ?? !0;
|
|
1617
1626
|
const P = u.id ?? crypto.randomUUID();
|
|
1618
1627
|
c(e, P, {
|
|
1619
1628
|
geometry: u.geometry,
|
|
@@ -1630,7 +1639,7 @@ function ln({
|
|
|
1630
1639
|
fill: v
|
|
1631
1640
|
} = t.colors.editing, {
|
|
1632
1641
|
border: P,
|
|
1633
|
-
fill:
|
|
1642
|
+
fill: C
|
|
1634
1643
|
} = t.colors.finished, L = Gs({
|
|
1635
1644
|
layerProps: {
|
|
1636
1645
|
...n.mask,
|
|
@@ -1642,20 +1651,20 @@ function ln({
|
|
|
1642
1651
|
},
|
|
1643
1652
|
onClick: (O) => {
|
|
1644
1653
|
const H = O;
|
|
1645
|
-
H.isGuide ||
|
|
1654
|
+
H.isGuide || x([H.index]);
|
|
1646
1655
|
}
|
|
1647
1656
|
},
|
|
1648
1657
|
getLineColor: (O) => k[0] === O.properties.index ? F : P,
|
|
1649
|
-
getFillColor: (O) => k[0] === O.properties.index ? v :
|
|
1658
|
+
getFillColor: (O) => k[0] === O.properties.index ? v : C,
|
|
1650
1659
|
pointColor: {
|
|
1651
1660
|
fill: u,
|
|
1652
1661
|
outline: F
|
|
1653
1662
|
},
|
|
1654
|
-
onEdit:
|
|
1655
|
-
mode: M ?
|
|
1663
|
+
onEdit: U,
|
|
1664
|
+
mode: M ? h : new Jt()
|
|
1656
1665
|
});
|
|
1657
1666
|
m(ce, L);
|
|
1658
|
-
}, [w, i, n.mask, E,
|
|
1667
|
+
}, [w, i, n.mask, E, h, U, k, m, t.colors.editing, t.colors.finished]), z(() => {
|
|
1659
1668
|
const M = {
|
|
1660
1669
|
...Te,
|
|
1661
1670
|
data: S,
|
|
@@ -1668,10 +1677,10 @@ function ln({
|
|
|
1668
1677
|
type: ns,
|
|
1669
1678
|
props: M
|
|
1670
1679
|
}), d(e, [Te.id]), () => {
|
|
1671
|
-
|
|
1680
|
+
y(e, [Te.id]);
|
|
1672
1681
|
};
|
|
1673
|
-
}, [d, e, S, E,
|
|
1674
|
-
|
|
1682
|
+
}, [d, e, S, E, y, m]), z(() => {
|
|
1683
|
+
g == null || g.forEach((M) => {
|
|
1675
1684
|
var v;
|
|
1676
1685
|
const F = (v = T(e)) == null ? void 0 : v.props.layers.find((P) => P.props.id === M);
|
|
1677
1686
|
i && (f.current[M] = F == null ? void 0 : F.props.pickable);
|
|
@@ -1684,7 +1693,7 @@ function ln({
|
|
|
1684
1693
|
}
|
|
1685
1694
|
});
|
|
1686
1695
|
});
|
|
1687
|
-
}, [i, T, e,
|
|
1696
|
+
}, [i, T, e, g, E.length, m]), r;
|
|
1688
1697
|
}
|
|
1689
1698
|
ln.Controls = Ks;
|
|
1690
1699
|
function cn({
|
|
@@ -1751,7 +1760,7 @@ function un({
|
|
|
1751
1760
|
}
|
|
1752
1761
|
}
|
|
1753
1762
|
}
|
|
1754
|
-
}),
|
|
1763
|
+
}), h = ue(Js, {
|
|
1755
1764
|
_subLayerProps: {
|
|
1756
1765
|
guides: {
|
|
1757
1766
|
getLineColor: i,
|
|
@@ -1761,7 +1770,7 @@ function un({
|
|
|
1761
1770
|
getEditHandlePointColor: a,
|
|
1762
1771
|
getEditHandlePointOutlineColor: i
|
|
1763
1772
|
});
|
|
1764
|
-
return ue(
|
|
1773
|
+
return ue(h, c);
|
|
1765
1774
|
}
|
|
1766
1775
|
const dn = (r) => ze()((e) => ({
|
|
1767
1776
|
measurements: r.reduce((s, n) => {
|
|
@@ -1771,24 +1780,24 @@ const dn = (r) => ze()((e) => ({
|
|
|
1771
1780
|
modes: a = sn,
|
|
1772
1781
|
units: l = nn,
|
|
1773
1782
|
distance: c = 0,
|
|
1774
|
-
finished:
|
|
1783
|
+
finished: h = !1,
|
|
1775
1784
|
locale: p = "en",
|
|
1776
1785
|
positions: m = [],
|
|
1777
1786
|
clearLayerOnStart: d = !1,
|
|
1778
|
-
unit:
|
|
1779
|
-
enabled:
|
|
1787
|
+
unit: y = Ie["m-km"],
|
|
1788
|
+
enabled: g = !1
|
|
1780
1789
|
} = n;
|
|
1781
1790
|
return s[o] = {
|
|
1782
1791
|
modes: a,
|
|
1783
1792
|
units: l,
|
|
1784
1793
|
modeSelected: i,
|
|
1785
1794
|
distance: c,
|
|
1786
|
-
finished:
|
|
1795
|
+
finished: h,
|
|
1787
1796
|
locale: p,
|
|
1788
1797
|
positions: m,
|
|
1789
|
-
unit:
|
|
1798
|
+
unit: y,
|
|
1790
1799
|
clearLayerOnStart: d,
|
|
1791
|
-
enabled:
|
|
1800
|
+
enabled: g
|
|
1792
1801
|
}, s;
|
|
1793
1802
|
}, {}),
|
|
1794
1803
|
mode: Pt,
|
|
@@ -1911,15 +1920,15 @@ function Ft(r) {
|
|
|
1911
1920
|
let a;
|
|
1912
1921
|
e[4] !== t ? (a = (R) => R.measurements[t].distance, e[4] = t, e[5] = a) : a = e[5];
|
|
1913
1922
|
const l = I(a), c = I(Sn);
|
|
1914
|
-
let
|
|
1915
|
-
e[6] !== c || e[7] !== t ? (
|
|
1916
|
-
const p =
|
|
1923
|
+
let h;
|
|
1924
|
+
e[6] !== c || e[7] !== t ? (h = (R) => c(t, R), e[6] = c, e[7] = t, e[8] = h) : h = e[8];
|
|
1925
|
+
const p = h;
|
|
1917
1926
|
let m;
|
|
1918
1927
|
e[9] !== t ? (m = (R) => R.measurements[t].clearLayerOnStart, e[9] = t, e[10] = m) : m = e[10];
|
|
1919
1928
|
const d = I(m);
|
|
1920
|
-
let
|
|
1921
|
-
e[11] !== t ? (
|
|
1922
|
-
const
|
|
1929
|
+
let y;
|
|
1930
|
+
e[11] !== t ? (y = (R) => R.measurements[t].enabled, e[11] = t, e[12] = y) : y = e[12];
|
|
1931
|
+
const g = I(y), T = I(vn);
|
|
1923
1932
|
let f;
|
|
1924
1933
|
e[13] !== T || e[14] !== t ? (f = (R) => T(t, R), e[13] = T, e[14] = t, e[15] = f) : f = e[15];
|
|
1925
1934
|
const b = f;
|
|
@@ -1931,21 +1940,21 @@ function Ft(r) {
|
|
|
1931
1940
|
b(!!R), w(t, R);
|
|
1932
1941
|
}, e[18] = w, e[19] = t, e[20] = b, e[21] = _) : _ = e[21];
|
|
1933
1942
|
const k = _;
|
|
1934
|
-
let
|
|
1935
|
-
e[22] !== t ? (
|
|
1936
|
-
const
|
|
1943
|
+
let x;
|
|
1944
|
+
e[22] !== t ? (x = (R) => R.measurements[t].finished, e[22] = t, e[23] = x) : x = e[23];
|
|
1945
|
+
const A = I(x), j = I(gn);
|
|
1937
1946
|
let B;
|
|
1938
1947
|
e[24] !== j || e[25] !== t ? (B = (R) => j(t, R), e[24] = j, e[25] = t, e[26] = B) : B = e[26];
|
|
1939
|
-
const
|
|
1948
|
+
const U = B;
|
|
1940
1949
|
let M;
|
|
1941
1950
|
e[27] !== t ? (M = (R) => R.measurements[t].locale, e[27] = t, e[28] = M) : M = e[28];
|
|
1942
1951
|
const F = I(M), u = I(hn);
|
|
1943
1952
|
let v;
|
|
1944
1953
|
e[29] !== u || e[30] !== t ? (v = (R) => u(t, R), e[29] = u, e[30] = t, e[31] = v) : v = e[31];
|
|
1945
1954
|
const P = v;
|
|
1946
|
-
let
|
|
1947
|
-
e[32] !== t ? (
|
|
1948
|
-
const L = I(
|
|
1955
|
+
let C;
|
|
1956
|
+
e[32] !== t ? (C = (R) => R.measurements[t].modeInstance, e[32] = t, e[33] = C) : C = e[33];
|
|
1957
|
+
const L = I(C), O = I(yn);
|
|
1949
1958
|
let H;
|
|
1950
1959
|
e[34] !== O || e[35] !== t ? (H = (R) => O(t, R), e[34] = O, e[35] = t, e[36] = H) : H = e[36];
|
|
1951
1960
|
const W = H;
|
|
@@ -1960,41 +1969,41 @@ function Ft(r) {
|
|
|
1960
1969
|
const Fe = I(ge), ke = I(pn);
|
|
1961
1970
|
let be;
|
|
1962
1971
|
e[44] !== ke || e[45] !== t ? (be = (R) => ke(t, R), e[44] = ke, e[45] = t, e[46] = be) : be = e[46];
|
|
1963
|
-
const
|
|
1972
|
+
const Ce = be;
|
|
1964
1973
|
let ve;
|
|
1965
1974
|
e[47] !== L || e[48] !== fe ? (ve = () => {
|
|
1966
1975
|
L == null || L.resetClickSequence(), fe([]);
|
|
1967
1976
|
}, e[47] = L, e[48] = fe, e[49] = ve) : ve = e[49];
|
|
1968
|
-
const
|
|
1977
|
+
const Ae = ve;
|
|
1969
1978
|
let Se;
|
|
1970
1979
|
e[50] !== b ? (Se = (R) => {
|
|
1971
1980
|
b(R);
|
|
1972
1981
|
}, e[50] = b, e[51] = Se) : Se = e[51];
|
|
1973
1982
|
const De = Se;
|
|
1974
1983
|
let we;
|
|
1975
|
-
return e[52] !==
|
|
1984
|
+
return e[52] !== Ae || e[53] !== d || e[54] !== l || e[55] !== g || e[56] !== A || e[57] !== F || e[58] !== L || e[59] !== E || e[60] !== n || e[61] !== q || e[62] !== p || e[63] !== b || e[64] !== U || e[65] !== P || e[66] !== W || e[67] !== k || e[68] !== fe || e[69] !== Ce || e[70] !== De || e[71] !== Fe || e[72] !== i ? (we = {
|
|
1976
1985
|
modes: n,
|
|
1977
1986
|
units: i,
|
|
1978
1987
|
distance: l,
|
|
1979
1988
|
clearLayerOnStart: d,
|
|
1980
1989
|
modeSelected: E,
|
|
1981
|
-
enabled:
|
|
1982
|
-
finished:
|
|
1990
|
+
enabled: g,
|
|
1991
|
+
finished: A,
|
|
1983
1992
|
locale: F,
|
|
1984
1993
|
modeInstance: L,
|
|
1985
1994
|
positions: q,
|
|
1986
1995
|
unit: Fe,
|
|
1987
1996
|
setDistance: p,
|
|
1988
1997
|
setModeSelected: k,
|
|
1989
|
-
setFinished:
|
|
1998
|
+
setFinished: U,
|
|
1990
1999
|
setLocale: P,
|
|
1991
2000
|
setPositions: fe,
|
|
1992
|
-
setUnit:
|
|
2001
|
+
setUnit: Ce,
|
|
1993
2002
|
setEnabled: b,
|
|
1994
2003
|
toggleLayer: De,
|
|
1995
|
-
clearLayer:
|
|
2004
|
+
clearLayer: Ae,
|
|
1996
2005
|
setModeInstance: W
|
|
1997
|
-
}, e[52] =
|
|
2006
|
+
}, e[52] = Ae, e[53] = d, e[54] = l, e[55] = g, e[56] = A, e[57] = F, e[58] = L, e[59] = E, e[60] = n, e[61] = q, e[62] = p, e[63] = b, e[64] = U, e[65] = P, e[66] = W, e[67] = k, e[68] = fe, e[69] = Ce, e[70] = De, e[71] = Fe, e[72] = i, e[73] = we) : we = e[73], we;
|
|
1998
2007
|
}
|
|
1999
2008
|
function pn(r) {
|
|
2000
2009
|
return r.setUnit;
|
|
@@ -2035,12 +2044,12 @@ function wn(r) {
|
|
|
2035
2044
|
units: a,
|
|
2036
2045
|
distance: l,
|
|
2037
2046
|
setDistance: c,
|
|
2038
|
-
clearLayerOnStart:
|
|
2047
|
+
clearLayerOnStart: h,
|
|
2039
2048
|
modeSelected: p,
|
|
2040
2049
|
setModeSelected: m,
|
|
2041
2050
|
enabled: d,
|
|
2042
|
-
setEnabled:
|
|
2043
|
-
finished:
|
|
2051
|
+
setEnabled: y,
|
|
2052
|
+
finished: g,
|
|
2044
2053
|
setFinished: T,
|
|
2045
2054
|
locale: f,
|
|
2046
2055
|
setLocale: b,
|
|
@@ -2049,8 +2058,8 @@ function wn(r) {
|
|
|
2049
2058
|
positions: w,
|
|
2050
2059
|
setPositions: _,
|
|
2051
2060
|
unit: k,
|
|
2052
|
-
setUnit:
|
|
2053
|
-
clearLayer:
|
|
2061
|
+
setUnit: x,
|
|
2062
|
+
clearLayer: A,
|
|
2054
2063
|
toggleLayer: j
|
|
2055
2064
|
} = Ft(o);
|
|
2056
2065
|
let B;
|
|
@@ -2063,19 +2072,19 @@ function wn(r) {
|
|
|
2063
2072
|
_([]);
|
|
2064
2073
|
};
|
|
2065
2074
|
}, e[2] = p, e[3] = i, e[4] = E, e[5] = _, e[6] = B) : B = e[6];
|
|
2066
|
-
let
|
|
2067
|
-
e[7] !== p || e[8] !== i || e[9] !==
|
|
2075
|
+
let U;
|
|
2076
|
+
e[7] !== p || e[8] !== i || e[9] !== y || e[10] !== E || e[11] !== _ ? (U = [i, p, _, E, y], e[7] = p, e[8] = i, e[9] = y, e[10] = E, e[11] = _, e[12] = U) : U = e[12], z(B, U);
|
|
2068
2077
|
let M;
|
|
2069
|
-
e[13] !== j || e[14] !==
|
|
2070
|
-
P && (
|
|
2071
|
-
}, e[13] = j, e[14] =
|
|
2072
|
-
const F = M, u = !!
|
|
2078
|
+
e[13] !== j || e[14] !== A || e[15] !== h || e[16] !== g ? (M = (P) => {
|
|
2079
|
+
P && (h || !g) && A(), j(P);
|
|
2080
|
+
}, e[13] = j, e[14] = A, e[15] = h, e[16] = g, e[17] = M) : M = e[17];
|
|
2081
|
+
const F = M, u = !!h;
|
|
2073
2082
|
let v;
|
|
2074
|
-
return e[18] !== n || e[19] !==
|
|
2083
|
+
return e[18] !== n || e[19] !== A || e[20] !== l || e[21] !== d || e[22] !== g || e[23] !== f || e[24] !== t || e[25] !== S || e[26] !== p || e[27] !== i || e[28] !== w || e[29] !== c || e[30] !== y || e[31] !== T || e[32] !== b || e[33] !== m || e[34] !== _ || e[35] !== x || e[36] !== u || e[37] !== s || e[38] !== F || e[39] !== k || e[40] !== a ? (v = n({
|
|
2075
2084
|
mapId: t,
|
|
2076
2085
|
distance: l,
|
|
2077
2086
|
enabled: d,
|
|
2078
|
-
finished:
|
|
2087
|
+
finished: g,
|
|
2079
2088
|
locale: f,
|
|
2080
2089
|
positions: w,
|
|
2081
2090
|
unit: k,
|
|
@@ -2095,11 +2104,11 @@ function wn(r) {
|
|
|
2095
2104
|
setFinished: T,
|
|
2096
2105
|
setLocale: b,
|
|
2097
2106
|
setPositions: _,
|
|
2098
|
-
setUnit:
|
|
2099
|
-
setEnabled:
|
|
2107
|
+
setUnit: x,
|
|
2108
|
+
setEnabled: y,
|
|
2100
2109
|
toggleLayer: F,
|
|
2101
|
-
clearLayer:
|
|
2102
|
-
}), e[18] = n, e[19] =
|
|
2110
|
+
clearLayer: A
|
|
2111
|
+
}), e[18] = n, e[19] = A, e[20] = l, e[21] = d, e[22] = g, e[23] = f, e[24] = t, e[25] = S, e[26] = p, e[27] = i, e[28] = w, e[29] = c, e[30] = y, e[31] = T, e[32] = b, e[33] = m, e[34] = _, e[35] = x, e[36] = u, e[37] = s, e[38] = F, e[39] = k, e[40] = a, e[41] = v) : v = e[41], v;
|
|
2103
2112
|
}
|
|
2104
2113
|
const Tn = [ne];
|
|
2105
2114
|
function En({
|
|
@@ -2119,34 +2128,34 @@ function En({
|
|
|
2119
2128
|
enabled: a,
|
|
2120
2129
|
finished: l,
|
|
2121
2130
|
setFinished: c,
|
|
2122
|
-
locale:
|
|
2131
|
+
locale: h,
|
|
2123
2132
|
setPositions: p,
|
|
2124
2133
|
unit: m,
|
|
2125
2134
|
modeInstance: d
|
|
2126
2135
|
} = Ft({
|
|
2127
2136
|
mapId: e
|
|
2128
|
-
}),
|
|
2137
|
+
}), y = pe((w) => w.setLayer), g = $((w) => w.addLayers), T = $((w) => w.removeLayers), f = $(ht((w) => {
|
|
2129
2138
|
var _;
|
|
2130
2139
|
return (_ = w.maps[e]) == null ? void 0 : _.layers.filter((k) => !Tn.includes(k));
|
|
2131
2140
|
})), b = $((w) => w.getDeckInstance), S = Me({});
|
|
2132
2141
|
Lt({
|
|
2133
2142
|
mapId: e,
|
|
2134
2143
|
layerId: ne
|
|
2135
|
-
}), z(() => (a &&
|
|
2144
|
+
}), z(() => (a && g(e, [ne]), () => {
|
|
2136
2145
|
T(e, [ne]);
|
|
2137
|
-
}), [
|
|
2146
|
+
}), [g, i, e, T, a]), z(() => {
|
|
2138
2147
|
f == null || f.forEach((w) => {
|
|
2139
|
-
var
|
|
2140
|
-
const _ = (
|
|
2148
|
+
var x;
|
|
2149
|
+
const _ = (x = b(e)) == null ? void 0 : x.props.layers.find((A) => A.props.id === w);
|
|
2141
2150
|
a && (S.current[w] = _ == null ? void 0 : _.props.pickable);
|
|
2142
2151
|
const k = !a && (S.current[w] ?? (_ == null ? void 0 : _.props.pickable));
|
|
2143
|
-
|
|
2152
|
+
y(w, {
|
|
2144
2153
|
props: {
|
|
2145
2154
|
pickable: k
|
|
2146
2155
|
}
|
|
2147
2156
|
});
|
|
2148
2157
|
});
|
|
2149
|
-
}, [a, b, e, f,
|
|
2158
|
+
}, [a, b, e, f, y]);
|
|
2150
2159
|
const E = Q(({
|
|
2151
2160
|
editType: w,
|
|
2152
2161
|
editContext: _
|
|
@@ -2168,14 +2177,14 @@ function En({
|
|
|
2168
2177
|
enabled: a,
|
|
2169
2178
|
guideColor: w,
|
|
2170
2179
|
pointColor: _,
|
|
2171
|
-
locale:
|
|
2180
|
+
locale: h,
|
|
2172
2181
|
onEdit: E,
|
|
2173
2182
|
unit: m,
|
|
2174
2183
|
mode: d,
|
|
2175
2184
|
textOptions: n
|
|
2176
2185
|
});
|
|
2177
|
-
|
|
2178
|
-
}, [l, d, s,
|
|
2186
|
+
y(ne, k);
|
|
2187
|
+
}, [l, d, s, h, E, y, t.colors.editing, t.colors.finished, t.colors.point, n, m, a]), r;
|
|
2179
2188
|
}
|
|
2180
2189
|
En.Controls = wn;
|
|
2181
2190
|
function _n(r) {
|
|
@@ -2190,7 +2199,7 @@ function _n(r) {
|
|
|
2190
2199
|
let i, a;
|
|
2191
2200
|
if (e[2] !== o || e[3] !== n) {
|
|
2192
2201
|
let c;
|
|
2193
|
-
e[5] !== o ? (c = (
|
|
2202
|
+
e[5] !== o ? (c = (h) => o[h], e[5] = o, e[6] = c) : c = e[6], a = n.map(c).filter(Mn), e[2] = o, e[3] = n, e[4] = a;
|
|
2194
2203
|
} else
|
|
2195
2204
|
a = e[4];
|
|
2196
2205
|
return i = a, i;
|
|
@@ -2222,12 +2231,12 @@ function Wr(r) {
|
|
|
2222
2231
|
let l;
|
|
2223
2232
|
e[7] !== t ? (l = (L) => L.maps[t].instanceRef, e[7] = t, e[8] = l) : l = e[8];
|
|
2224
2233
|
const c = $(l);
|
|
2225
|
-
let
|
|
2226
|
-
e[9] !== t ? (
|
|
2227
|
-
const p = $(
|
|
2234
|
+
let h;
|
|
2235
|
+
e[9] !== t ? (h = (L) => L.maps[t].overlayRef, e[9] = t, e[10] = h) : h = e[10];
|
|
2236
|
+
const p = $(h), m = Me(null);
|
|
2228
2237
|
let d;
|
|
2229
2238
|
e[11] !== t ? (d = (L) => L.viewStates[t], e[11] = t, e[12] = d) : d = e[12];
|
|
2230
|
-
const
|
|
2239
|
+
const y = $(d), g = $(Dn), T = $(An), f = $(Cn), b = $(kn), S = $(Fn);
|
|
2231
2240
|
let E;
|
|
2232
2241
|
e[13] !== t ? (E = {
|
|
2233
2242
|
mapId: t
|
|
@@ -2235,9 +2244,9 @@ function Wr(r) {
|
|
|
2235
2244
|
const w = _n(E);
|
|
2236
2245
|
let _, k;
|
|
2237
2246
|
e[15] !== w ? (k = kt(w), e[15] = w, e[16] = k) : k = e[16], _ = k;
|
|
2238
|
-
const
|
|
2239
|
-
let
|
|
2240
|
-
e[17] !== t || e[18] !== n || e[19] !== T || e[20] !== S ? (
|
|
2247
|
+
const x = _;
|
|
2248
|
+
let A;
|
|
2249
|
+
e[17] !== t || e[18] !== n || e[19] !== T || e[20] !== S ? (A = (L) => {
|
|
2241
2250
|
const O = T;
|
|
2242
2251
|
if (m.current && clearInterval(m.current), m.current = setTimeout(() => {
|
|
2243
2252
|
S(t);
|
|
@@ -2246,19 +2255,19 @@ function Wr(r) {
|
|
|
2246
2255
|
return;
|
|
2247
2256
|
}
|
|
2248
2257
|
O(t, L.viewState);
|
|
2249
|
-
}, e[17] = t, e[18] = n, e[19] = T, e[20] = S, e[21] =
|
|
2250
|
-
const j =
|
|
2258
|
+
}, e[17] = t, e[18] = n, e[19] = T, e[20] = S, e[21] = A) : A = e[21];
|
|
2259
|
+
const j = A;
|
|
2251
2260
|
let B;
|
|
2252
2261
|
e[22] !== t || e[23] !== s || e[24] !== f || e[25] !== S ? (B = (L) => {
|
|
2253
2262
|
f(t, L), s == null || s(L), S(t);
|
|
2254
2263
|
}, e[22] = t, e[23] = s, e[24] = f, e[25] = S, e[26] = B) : B = e[26];
|
|
2255
|
-
const
|
|
2264
|
+
const U = B;
|
|
2256
2265
|
let M;
|
|
2257
|
-
e[27] !==
|
|
2266
|
+
e[27] !== g || e[28] !== t || e[29] !== o || e[30] !== b ? (M = (L) => {
|
|
2258
2267
|
var W, K;
|
|
2259
|
-
const O = (W =
|
|
2268
|
+
const O = (W = g(t)) == null ? void 0 : W.props.layers, H = !!(O != null && O.every(On));
|
|
2260
2269
|
b(t, H), (K = o.onAfterRender) == null || K.call(o, L);
|
|
2261
|
-
}, e[27] =
|
|
2270
|
+
}, e[27] = g, e[28] = t, e[29] = o, e[30] = b, e[31] = M) : M = e[31];
|
|
2262
2271
|
const F = M, u = o.onDragEnd;
|
|
2263
2272
|
let v;
|
|
2264
2273
|
e[32] !== u || e[33] !== t || e[34] !== S ? (v = (...L) => {
|
|
@@ -2266,8 +2275,8 @@ function Wr(r) {
|
|
|
2266
2275
|
S(t), u && u(...O);
|
|
2267
2276
|
}, e[32] = u, e[33] = t, e[34] = S, e[35] = v) : v = e[35];
|
|
2268
2277
|
const P = v;
|
|
2269
|
-
let
|
|
2270
|
-
return e[36] !== a || e[37] !==
|
|
2278
|
+
let C;
|
|
2279
|
+
return e[36] !== a || e[37] !== x || e[38] !== F || e[39] !== P || e[40] !== U || e[41] !== j || e[42] !== t || e[43] !== c || e[44] !== p || e[45] !== o || e[46] !== y ? (C = /* @__PURE__ */ N(Os, { ...o, id: t, layers: x, instanceRef: c, overlayRef: p, basemap: a, initialViewState: y, onLoad: U, onViewStateChange: j, onAfterRender: F, onDragEnd: P }), e[36] = a, e[37] = x, e[38] = F, e[39] = P, e[40] = U, e[41] = j, e[42] = t, e[43] = c, e[44] = p, e[45] = o, e[46] = y, e[47] = C) : C = e[47], C;
|
|
2271
2280
|
}
|
|
2272
2281
|
function On(r) {
|
|
2273
2282
|
return r == null ? void 0 : r.isLoaded;
|
|
@@ -2278,10 +2287,10 @@ function Fn(r) {
|
|
|
2278
2287
|
function kn(r) {
|
|
2279
2288
|
return r.setLayersLoad;
|
|
2280
2289
|
}
|
|
2281
|
-
function
|
|
2290
|
+
function Cn(r) {
|
|
2282
2291
|
return r.setLoad;
|
|
2283
2292
|
}
|
|
2284
|
-
function
|
|
2293
|
+
function An(r) {
|
|
2285
2294
|
return r.setViewState;
|
|
2286
2295
|
}
|
|
2287
2296
|
function Dn(r) {
|
|
@@ -2316,7 +2325,7 @@ function Rn() {
|
|
|
2316
2325
|
return u && DataView.prototype.isPrototypeOf(u);
|
|
2317
2326
|
}
|
|
2318
2327
|
if (l.arrayBuffer)
|
|
2319
|
-
var
|
|
2328
|
+
var h = [
|
|
2320
2329
|
"[object Int8Array]",
|
|
2321
2330
|
"[object Uint8Array]",
|
|
2322
2331
|
"[object Uint8ClampedArray]",
|
|
@@ -2327,7 +2336,7 @@ function Rn() {
|
|
|
2327
2336
|
"[object Float32Array]",
|
|
2328
2337
|
"[object Float64Array]"
|
|
2329
2338
|
], p = ArrayBuffer.isView || function(u) {
|
|
2330
|
-
return u &&
|
|
2339
|
+
return u && h.indexOf(Object.prototype.toString.call(u)) > -1;
|
|
2331
2340
|
};
|
|
2332
2341
|
function m(u) {
|
|
2333
2342
|
if (typeof u != "string" && (u = String(u)), /[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(u) || u === "")
|
|
@@ -2337,7 +2346,7 @@ function Rn() {
|
|
|
2337
2346
|
function d(u) {
|
|
2338
2347
|
return typeof u != "string" && (u = String(u)), u;
|
|
2339
2348
|
}
|
|
2340
|
-
function
|
|
2349
|
+
function y(u) {
|
|
2341
2350
|
var v = {
|
|
2342
2351
|
next: function() {
|
|
2343
2352
|
var P = u.shift();
|
|
@@ -2348,8 +2357,8 @@ function Rn() {
|
|
|
2348
2357
|
return v;
|
|
2349
2358
|
}), v;
|
|
2350
2359
|
}
|
|
2351
|
-
function
|
|
2352
|
-
this.map = {}, u instanceof
|
|
2360
|
+
function g(u) {
|
|
2361
|
+
this.map = {}, u instanceof g ? u.forEach(function(v, P) {
|
|
2353
2362
|
this.append(P, v);
|
|
2354
2363
|
}, this) : Array.isArray(u) ? u.forEach(function(v) {
|
|
2355
2364
|
if (v.length != 2)
|
|
@@ -2359,37 +2368,37 @@ function Rn() {
|
|
|
2359
2368
|
this.append(v, u[v]);
|
|
2360
2369
|
}, this);
|
|
2361
2370
|
}
|
|
2362
|
-
|
|
2371
|
+
g.prototype.append = function(u, v) {
|
|
2363
2372
|
u = m(u), v = d(v);
|
|
2364
2373
|
var P = this.map[u];
|
|
2365
2374
|
this.map[u] = P ? P + ", " + v : v;
|
|
2366
|
-
},
|
|
2375
|
+
}, g.prototype.delete = function(u) {
|
|
2367
2376
|
delete this.map[m(u)];
|
|
2368
|
-
},
|
|
2377
|
+
}, g.prototype.get = function(u) {
|
|
2369
2378
|
return u = m(u), this.has(u) ? this.map[u] : null;
|
|
2370
|
-
},
|
|
2379
|
+
}, g.prototype.has = function(u) {
|
|
2371
2380
|
return this.map.hasOwnProperty(m(u));
|
|
2372
|
-
},
|
|
2381
|
+
}, g.prototype.set = function(u, v) {
|
|
2373
2382
|
this.map[m(u)] = d(v);
|
|
2374
|
-
},
|
|
2383
|
+
}, g.prototype.forEach = function(u, v) {
|
|
2375
2384
|
for (var P in this.map)
|
|
2376
2385
|
this.map.hasOwnProperty(P) && u.call(v, this.map[P], P, this);
|
|
2377
|
-
},
|
|
2386
|
+
}, g.prototype.keys = function() {
|
|
2378
2387
|
var u = [];
|
|
2379
2388
|
return this.forEach(function(v, P) {
|
|
2380
2389
|
u.push(P);
|
|
2381
|
-
}),
|
|
2382
|
-
},
|
|
2390
|
+
}), y(u);
|
|
2391
|
+
}, g.prototype.values = function() {
|
|
2383
2392
|
var u = [];
|
|
2384
2393
|
return this.forEach(function(v) {
|
|
2385
2394
|
u.push(v);
|
|
2386
|
-
}),
|
|
2387
|
-
},
|
|
2395
|
+
}), y(u);
|
|
2396
|
+
}, g.prototype.entries = function() {
|
|
2388
2397
|
var u = [];
|
|
2389
2398
|
return this.forEach(function(v, P) {
|
|
2390
2399
|
u.push([P, v]);
|
|
2391
|
-
}),
|
|
2392
|
-
}, l.iterable && (
|
|
2400
|
+
}), y(u);
|
|
2401
|
+
}, l.iterable && (g.prototype[Symbol.iterator] = g.prototype.entries);
|
|
2393
2402
|
function T(u) {
|
|
2394
2403
|
if (!u._noBody) {
|
|
2395
2404
|
if (u.bodyUsed)
|
|
@@ -2411,12 +2420,12 @@ function Rn() {
|
|
|
2411
2420
|
return v.readAsArrayBuffer(u), P;
|
|
2412
2421
|
}
|
|
2413
2422
|
function S(u) {
|
|
2414
|
-
var v = new FileReader(), P = f(v),
|
|
2423
|
+
var v = new FileReader(), P = f(v), C = /charset=([A-Za-z0-9_-]+)/.exec(u.type), L = C ? C[1] : "utf-8";
|
|
2415
2424
|
return v.readAsText(u, L), P;
|
|
2416
2425
|
}
|
|
2417
2426
|
function E(u) {
|
|
2418
|
-
for (var v = new Uint8Array(u), P = new Array(v.length),
|
|
2419
|
-
P[
|
|
2427
|
+
for (var v = new Uint8Array(u), P = new Array(v.length), C = 0; C < v.length; C++)
|
|
2428
|
+
P[C] = String.fromCharCode(v[C]);
|
|
2420
2429
|
return P.join("");
|
|
2421
2430
|
}
|
|
2422
2431
|
function w(u) {
|
|
@@ -2471,22 +2480,22 @@ function Rn() {
|
|
|
2471
2480
|
}, this;
|
|
2472
2481
|
}
|
|
2473
2482
|
var k = ["CONNECT", "DELETE", "GET", "HEAD", "OPTIONS", "PATCH", "POST", "PUT", "TRACE"];
|
|
2474
|
-
function
|
|
2483
|
+
function x(u) {
|
|
2475
2484
|
var v = u.toUpperCase();
|
|
2476
2485
|
return k.indexOf(v) > -1 ? v : u;
|
|
2477
2486
|
}
|
|
2478
|
-
function
|
|
2479
|
-
if (!(this instanceof
|
|
2487
|
+
function A(u, v) {
|
|
2488
|
+
if (!(this instanceof A))
|
|
2480
2489
|
throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');
|
|
2481
2490
|
v = v || {};
|
|
2482
2491
|
var P = v.body;
|
|
2483
|
-
if (u instanceof
|
|
2492
|
+
if (u instanceof A) {
|
|
2484
2493
|
if (u.bodyUsed)
|
|
2485
2494
|
throw new TypeError("Already read");
|
|
2486
|
-
this.url = u.url, this.credentials = u.credentials, v.headers || (this.headers = new
|
|
2495
|
+
this.url = u.url, this.credentials = u.credentials, v.headers || (this.headers = new g(u.headers)), this.method = u.method, this.mode = u.mode, this.signal = u.signal, !P && u._bodyInit != null && (P = u._bodyInit, u.bodyUsed = !0);
|
|
2487
2496
|
} else
|
|
2488
2497
|
this.url = String(u);
|
|
2489
|
-
if (this.credentials = v.credentials || this.credentials || "same-origin", (v.headers || !this.headers) && (this.headers = new
|
|
2498
|
+
if (this.credentials = v.credentials || this.credentials || "same-origin", (v.headers || !this.headers) && (this.headers = new g(v.headers)), this.method = x(v.method || this.method || "GET"), this.mode = v.mode || this.mode || null, this.signal = v.signal || this.signal || function() {
|
|
2490
2499
|
if ("AbortController" in a) {
|
|
2491
2500
|
var O = new AbortController();
|
|
2492
2501
|
return O.signal;
|
|
@@ -2494,34 +2503,34 @@ function Rn() {
|
|
|
2494
2503
|
}(), this.referrer = null, (this.method === "GET" || this.method === "HEAD") && P)
|
|
2495
2504
|
throw new TypeError("Body not allowed for GET or HEAD requests");
|
|
2496
2505
|
if (this._initBody(P), (this.method === "GET" || this.method === "HEAD") && (v.cache === "no-store" || v.cache === "no-cache")) {
|
|
2497
|
-
var
|
|
2498
|
-
if (
|
|
2499
|
-
this.url = this.url.replace(
|
|
2506
|
+
var C = /([?&])_=[^&]*/;
|
|
2507
|
+
if (C.test(this.url))
|
|
2508
|
+
this.url = this.url.replace(C, "$1_=" + (/* @__PURE__ */ new Date()).getTime());
|
|
2500
2509
|
else {
|
|
2501
2510
|
var L = /\?/;
|
|
2502
2511
|
this.url += (L.test(this.url) ? "&" : "?") + "_=" + (/* @__PURE__ */ new Date()).getTime();
|
|
2503
2512
|
}
|
|
2504
2513
|
}
|
|
2505
2514
|
}
|
|
2506
|
-
|
|
2507
|
-
return new
|
|
2515
|
+
A.prototype.clone = function() {
|
|
2516
|
+
return new A(this, { body: this._bodyInit });
|
|
2508
2517
|
};
|
|
2509
2518
|
function j(u) {
|
|
2510
2519
|
var v = new FormData();
|
|
2511
2520
|
return u.trim().split("&").forEach(function(P) {
|
|
2512
2521
|
if (P) {
|
|
2513
|
-
var
|
|
2522
|
+
var C = P.split("="), L = C.shift().replace(/\+/g, " "), O = C.join("=").replace(/\+/g, " ");
|
|
2514
2523
|
v.append(decodeURIComponent(L), decodeURIComponent(O));
|
|
2515
2524
|
}
|
|
2516
2525
|
}), v;
|
|
2517
2526
|
}
|
|
2518
2527
|
function B(u) {
|
|
2519
|
-
var v = new
|
|
2520
|
-
return P.split("\r").map(function(
|
|
2521
|
-
return
|
|
2522
|
-
`) === 0 ?
|
|
2523
|
-
}).forEach(function(
|
|
2524
|
-
var L =
|
|
2528
|
+
var v = new g(), P = u.replace(/\r?\n[\t ]+/g, " ");
|
|
2529
|
+
return P.split("\r").map(function(C) {
|
|
2530
|
+
return C.indexOf(`
|
|
2531
|
+
`) === 0 ? C.substr(1, C.length) : C;
|
|
2532
|
+
}).forEach(function(C) {
|
|
2533
|
+
var L = C.split(":"), O = L.shift().trim();
|
|
2525
2534
|
if (O) {
|
|
2526
2535
|
var H = L.join(":").trim();
|
|
2527
2536
|
try {
|
|
@@ -2532,45 +2541,45 @@ function Rn() {
|
|
|
2532
2541
|
}
|
|
2533
2542
|
}), v;
|
|
2534
2543
|
}
|
|
2535
|
-
_.call(
|
|
2536
|
-
function
|
|
2537
|
-
if (!(this instanceof
|
|
2544
|
+
_.call(A.prototype);
|
|
2545
|
+
function U(u, v) {
|
|
2546
|
+
if (!(this instanceof U))
|
|
2538
2547
|
throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');
|
|
2539
2548
|
if (v || (v = {}), this.type = "default", this.status = v.status === void 0 ? 200 : v.status, this.status < 200 || this.status > 599)
|
|
2540
2549
|
throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");
|
|
2541
|
-
this.ok = this.status >= 200 && this.status < 300, this.statusText = v.statusText === void 0 ? "" : "" + v.statusText, this.headers = new
|
|
2550
|
+
this.ok = this.status >= 200 && this.status < 300, this.statusText = v.statusText === void 0 ? "" : "" + v.statusText, this.headers = new g(v.headers), this.url = v.url || "", this._initBody(u);
|
|
2542
2551
|
}
|
|
2543
|
-
_.call(
|
|
2544
|
-
return new
|
|
2552
|
+
_.call(U.prototype), U.prototype.clone = function() {
|
|
2553
|
+
return new U(this._bodyInit, {
|
|
2545
2554
|
status: this.status,
|
|
2546
2555
|
statusText: this.statusText,
|
|
2547
|
-
headers: new
|
|
2556
|
+
headers: new g(this.headers),
|
|
2548
2557
|
url: this.url
|
|
2549
2558
|
});
|
|
2550
|
-
},
|
|
2551
|
-
var u = new
|
|
2559
|
+
}, U.error = function() {
|
|
2560
|
+
var u = new U(null, { status: 200, statusText: "" });
|
|
2552
2561
|
return u.ok = !1, u.status = 0, u.type = "error", u;
|
|
2553
2562
|
};
|
|
2554
2563
|
var M = [301, 302, 303, 307, 308];
|
|
2555
|
-
|
|
2564
|
+
U.redirect = function(u, v) {
|
|
2556
2565
|
if (M.indexOf(v) === -1)
|
|
2557
2566
|
throw new RangeError("Invalid status code");
|
|
2558
|
-
return new
|
|
2567
|
+
return new U(null, { status: v, headers: { location: u } });
|
|
2559
2568
|
}, i.DOMException = a.DOMException;
|
|
2560
2569
|
try {
|
|
2561
2570
|
new i.DOMException();
|
|
2562
2571
|
} catch {
|
|
2563
2572
|
i.DOMException = function(v, P) {
|
|
2564
2573
|
this.message = v, this.name = P;
|
|
2565
|
-
var
|
|
2566
|
-
this.stack =
|
|
2574
|
+
var C = Error(v);
|
|
2575
|
+
this.stack = C.stack;
|
|
2567
2576
|
}, i.DOMException.prototype = Object.create(Error.prototype), i.DOMException.prototype.constructor = i.DOMException;
|
|
2568
2577
|
}
|
|
2569
2578
|
function F(u, v) {
|
|
2570
|
-
return new Promise(function(P,
|
|
2571
|
-
var L = new
|
|
2579
|
+
return new Promise(function(P, C) {
|
|
2580
|
+
var L = new A(u, v);
|
|
2572
2581
|
if (L.signal && L.signal.aborted)
|
|
2573
|
-
return
|
|
2582
|
+
return C(new i.DOMException("Aborted", "AbortError"));
|
|
2574
2583
|
var O = new XMLHttpRequest();
|
|
2575
2584
|
function H() {
|
|
2576
2585
|
O.abort();
|
|
@@ -2583,19 +2592,19 @@ function Rn() {
|
|
|
2583
2592
|
L.url.indexOf("file://") === 0 && (O.status < 200 || O.status > 599) ? q.status = 200 : q.status = O.status, q.url = "responseURL" in O ? O.responseURL : q.headers.get("X-Request-URL");
|
|
2584
2593
|
var X = "response" in O ? O.response : O.responseText;
|
|
2585
2594
|
setTimeout(function() {
|
|
2586
|
-
P(new
|
|
2595
|
+
P(new U(X, q));
|
|
2587
2596
|
}, 0);
|
|
2588
2597
|
}, O.onerror = function() {
|
|
2589
2598
|
setTimeout(function() {
|
|
2590
|
-
|
|
2599
|
+
C(new TypeError("Network request failed"));
|
|
2591
2600
|
}, 0);
|
|
2592
2601
|
}, O.ontimeout = function() {
|
|
2593
2602
|
setTimeout(function() {
|
|
2594
|
-
|
|
2603
|
+
C(new TypeError("Network request timed out"));
|
|
2595
2604
|
}, 0);
|
|
2596
2605
|
}, O.onabort = function() {
|
|
2597
2606
|
setTimeout(function() {
|
|
2598
|
-
|
|
2607
|
+
C(new i.DOMException("Aborted", "AbortError"));
|
|
2599
2608
|
}, 0);
|
|
2600
2609
|
};
|
|
2601
2610
|
function W(q) {
|
|
@@ -2605,7 +2614,7 @@ function Rn() {
|
|
|
2605
2614
|
return q;
|
|
2606
2615
|
}
|
|
2607
2616
|
}
|
|
2608
|
-
if (O.open(L.method, W(L.url), !0), L.credentials === "include" ? O.withCredentials = !0 : L.credentials === "omit" && (O.withCredentials = !1), "responseType" in O && (l.blob ? O.responseType = "blob" : l.arrayBuffer && (O.responseType = "arraybuffer")), v && typeof v.headers == "object" && !(v.headers instanceof
|
|
2617
|
+
if (O.open(L.method, W(L.url), !0), L.credentials === "include" ? O.withCredentials = !0 : L.credentials === "omit" && (O.withCredentials = !1), "responseType" in O && (l.blob ? O.responseType = "blob" : l.arrayBuffer && (O.responseType = "arraybuffer")), v && typeof v.headers == "object" && !(v.headers instanceof g || a.Headers && v.headers instanceof a.Headers)) {
|
|
2609
2618
|
var K = [];
|
|
2610
2619
|
Object.getOwnPropertyNames(v.headers).forEach(function(q) {
|
|
2611
2620
|
K.push(m(q)), O.setRequestHeader(q, d(v.headers[q]));
|
|
@@ -2621,7 +2630,7 @@ function Rn() {
|
|
|
2621
2630
|
}), O.send(typeof L._bodyInit > "u" ? null : L._bodyInit);
|
|
2622
2631
|
});
|
|
2623
2632
|
}
|
|
2624
|
-
return F.polyfill = !0, a.fetch || (a.fetch = F, a.Headers =
|
|
2633
|
+
return F.polyfill = !0, a.fetch || (a.fetch = F, a.Headers = g, a.Request = A, a.Response = U), i.Headers = g, i.Request = A, i.Response = U, i.fetch = F, i;
|
|
2625
2634
|
})({});
|
|
2626
2635
|
})(s), s.fetch.ponyfill = !0, delete s.fetch.polyfill;
|
|
2627
2636
|
var n = t.fetch ? t : s;
|
|
@@ -2629,7 +2638,7 @@ function Rn() {
|
|
|
2629
2638
|
}(_e, _e.exports)), _e.exports;
|
|
2630
2639
|
}
|
|
2631
2640
|
var $n = Rn();
|
|
2632
|
-
const
|
|
2641
|
+
const xn = /* @__PURE__ */ wt($n), We = "https://gcp-us-east1.api.carto.com", Ke = "v3", Un = "ps", de = {
|
|
2633
2642
|
get: "GET",
|
|
2634
2643
|
post: "POST"
|
|
2635
2644
|
};
|
|
@@ -2669,7 +2678,7 @@ function Vn() {
|
|
|
2669
2678
|
return Array.isArray(f) ? [] : {};
|
|
2670
2679
|
}
|
|
2671
2680
|
function a(f, b) {
|
|
2672
|
-
return b.clone !== !1 && b.isMergeableObject(f) ?
|
|
2681
|
+
return b.clone !== !1 && b.isMergeableObject(f) ? g(i(f), f, b) : f;
|
|
2673
2682
|
}
|
|
2674
2683
|
function l(f, b, S) {
|
|
2675
2684
|
return f.concat(b).map(function(E) {
|
|
@@ -2677,17 +2686,17 @@ function Vn() {
|
|
|
2677
2686
|
});
|
|
2678
2687
|
}
|
|
2679
2688
|
function c(f, b) {
|
|
2680
|
-
if (!b.customMerge) return
|
|
2689
|
+
if (!b.customMerge) return g;
|
|
2681
2690
|
var S = b.customMerge(f);
|
|
2682
|
-
return typeof S == "function" ? S :
|
|
2691
|
+
return typeof S == "function" ? S : g;
|
|
2683
2692
|
}
|
|
2684
|
-
function
|
|
2693
|
+
function h(f) {
|
|
2685
2694
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(f).filter(function(b) {
|
|
2686
2695
|
return Object.propertyIsEnumerable.call(f, b);
|
|
2687
2696
|
}) : [];
|
|
2688
2697
|
}
|
|
2689
2698
|
function p(f) {
|
|
2690
|
-
return Object.keys(f).concat(
|
|
2699
|
+
return Object.keys(f).concat(h(f));
|
|
2691
2700
|
}
|
|
2692
2701
|
function m(f, b) {
|
|
2693
2702
|
try {
|
|
@@ -2699,7 +2708,7 @@ function Vn() {
|
|
|
2699
2708
|
function d(f, b) {
|
|
2700
2709
|
return m(f, b) && !(Object.hasOwnProperty.call(f, b) && Object.propertyIsEnumerable.call(f, b));
|
|
2701
2710
|
}
|
|
2702
|
-
function
|
|
2711
|
+
function y(f, b, S) {
|
|
2703
2712
|
var E = {};
|
|
2704
2713
|
return S.isMergeableObject(f) && p(f).forEach(function(w) {
|
|
2705
2714
|
E[w] = a(f[w], S);
|
|
@@ -2707,18 +2716,18 @@ function Vn() {
|
|
|
2707
2716
|
d(f, w) || (m(f, w) && S.isMergeableObject(b[w]) ? E[w] = c(w, S)(f[w], b[w], S) : E[w] = a(b[w], S));
|
|
2708
2717
|
}), E;
|
|
2709
2718
|
}
|
|
2710
|
-
function
|
|
2719
|
+
function g(f, b, S) {
|
|
2711
2720
|
S = S || {}, S.arrayMerge = S.arrayMerge || l, S.isMergeableObject = S.isMergeableObject || r, S.cloneUnlessOtherwiseSpecified = a;
|
|
2712
2721
|
var E = Array.isArray(b), w = Array.isArray(f), _ = E === w;
|
|
2713
|
-
return _ ? E ? S.arrayMerge(f, b, S) :
|
|
2722
|
+
return _ ? E ? S.arrayMerge(f, b, S) : y(f, b, S) : a(b, S);
|
|
2714
2723
|
}
|
|
2715
|
-
|
|
2724
|
+
g.all = function(f, b) {
|
|
2716
2725
|
if (!Array.isArray(f)) throw new Error("first argument should be an array");
|
|
2717
2726
|
return f.reduce(function(S, E) {
|
|
2718
|
-
return
|
|
2727
|
+
return g(S, E, b);
|
|
2719
2728
|
}, {});
|
|
2720
2729
|
};
|
|
2721
|
-
var T =
|
|
2730
|
+
var T = g;
|
|
2722
2731
|
return qe = T, qe;
|
|
2723
2732
|
}
|
|
2724
2733
|
var In = Vn();
|
|
@@ -2765,7 +2774,7 @@ function Hn({
|
|
|
2765
2774
|
}, s), r);
|
|
2766
2775
|
}
|
|
2767
2776
|
const Gn = 6144;
|
|
2768
|
-
async function
|
|
2777
|
+
async function Ct({
|
|
2769
2778
|
signal: r,
|
|
2770
2779
|
body: e,
|
|
2771
2780
|
accessToken: t,
|
|
@@ -2783,95 +2792,111 @@ async function At({
|
|
|
2783
2792
|
let c = jn({
|
|
2784
2793
|
url: i,
|
|
2785
2794
|
params: o
|
|
2786
|
-
}),
|
|
2787
|
-
n === de.get && c.length > a && (
|
|
2795
|
+
}), h = e, p = n;
|
|
2796
|
+
n === de.get && c.length > a && (h = o, p = de.post, c = i);
|
|
2788
2797
|
const m = Hn({
|
|
2789
|
-
body:
|
|
2798
|
+
body: h,
|
|
2790
2799
|
accessToken: t ?? (s == null ? void 0 : s.accessToken),
|
|
2791
2800
|
method: p,
|
|
2792
2801
|
...l
|
|
2793
2802
|
});
|
|
2794
2803
|
r && (m.signal = r);
|
|
2795
|
-
const d = await
|
|
2804
|
+
const d = await xn(c, m);
|
|
2796
2805
|
if (!d.ok) {
|
|
2797
|
-
const
|
|
2798
|
-
return Promise.reject(new Error(
|
|
2806
|
+
const y = await d.text();
|
|
2807
|
+
return Promise.reject(new Error(y));
|
|
2799
2808
|
}
|
|
2800
2809
|
return d.status === 204 ? Promise.resolve() : await d.json();
|
|
2801
2810
|
}
|
|
2802
|
-
const Pe = mt()(hs((r) => ({
|
|
2811
|
+
const Pe = mt()(hs((r, e) => ({
|
|
2803
2812
|
sources: {},
|
|
2804
2813
|
filters: {},
|
|
2805
|
-
setSource: (
|
|
2806
|
-
var
|
|
2807
|
-
const
|
|
2808
|
-
...
|
|
2809
|
-
},
|
|
2810
|
-
if (
|
|
2811
|
-
return delete
|
|
2812
|
-
sources:
|
|
2814
|
+
setSource: (t, s) => r((n) => {
|
|
2815
|
+
var y;
|
|
2816
|
+
const o = {
|
|
2817
|
+
...n.sources
|
|
2818
|
+
}, i = (y = o[t]) == null ? void 0 : y.widgets;
|
|
2819
|
+
if (i && (i.destroy(), delete o[t].widgets), !s)
|
|
2820
|
+
return delete o[t], {
|
|
2821
|
+
sources: o
|
|
2813
2822
|
};
|
|
2814
|
-
const
|
|
2815
|
-
apiBaseUrl:
|
|
2816
|
-
clientId:
|
|
2817
|
-
apiVersion:
|
|
2818
|
-
...
|
|
2819
|
-
} =
|
|
2820
|
-
...
|
|
2821
|
-
...
|
|
2822
|
-
apiBaseUrl:
|
|
2823
|
-
apiVersion:
|
|
2824
|
-
clientId:
|
|
2825
|
-
},
|
|
2826
|
-
source:
|
|
2823
|
+
const a = o[t], {
|
|
2824
|
+
apiBaseUrl: l = We,
|
|
2825
|
+
clientId: c = Un,
|
|
2826
|
+
apiVersion: h = Ke,
|
|
2827
|
+
...p
|
|
2828
|
+
} = s, m = {
|
|
2829
|
+
...a,
|
|
2830
|
+
...p,
|
|
2831
|
+
apiBaseUrl: l,
|
|
2832
|
+
apiVersion: h,
|
|
2833
|
+
clientId: c
|
|
2834
|
+
}, d = Wn({
|
|
2835
|
+
source: m
|
|
2827
2836
|
});
|
|
2828
|
-
return
|
|
2829
|
-
sources:
|
|
2837
|
+
return m.widgets = d, o[t] = m, {
|
|
2838
|
+
sources: o
|
|
2830
2839
|
};
|
|
2831
2840
|
}, void 0, "setSource"),
|
|
2832
|
-
removeSource: (
|
|
2833
|
-
var
|
|
2834
|
-
const
|
|
2835
|
-
...
|
|
2836
|
-
},
|
|
2837
|
-
return
|
|
2838
|
-
sources:
|
|
2841
|
+
removeSource: (t) => r((s) => {
|
|
2842
|
+
var i;
|
|
2843
|
+
const n = {
|
|
2844
|
+
...s.sources
|
|
2845
|
+
}, o = (i = n[t]) == null ? void 0 : i.widgets;
|
|
2846
|
+
return o && (o.destroy(), delete n[t].widgets), delete n[t], {
|
|
2847
|
+
sources: n
|
|
2839
2848
|
};
|
|
2840
2849
|
}, void 0, "removeSource"),
|
|
2841
|
-
setFilters: (
|
|
2842
|
-
let
|
|
2843
|
-
const
|
|
2844
|
-
return
|
|
2845
|
-
var
|
|
2846
|
-
return !("values" in
|
|
2847
|
-
},
|
|
2850
|
+
setFilters: (t, s) => r((n) => {
|
|
2851
|
+
let o = {};
|
|
2852
|
+
const i = n.filters[t] ?? {};
|
|
2853
|
+
return s.length !== 0 && (o = s.reduce((a, l) => {
|
|
2854
|
+
var c;
|
|
2855
|
+
return !("values" in l) || !((c = l.values) != null && c.length) ? Xe(a, l) : vt(a, l);
|
|
2856
|
+
}, i)), {
|
|
2848
2857
|
filters: {
|
|
2849
|
-
...
|
|
2850
|
-
[
|
|
2851
|
-
...
|
|
2858
|
+
...n.filters,
|
|
2859
|
+
[t]: {
|
|
2860
|
+
...o
|
|
2852
2861
|
}
|
|
2853
2862
|
// important: destructuring here to not conservere the reference to the same object
|
|
2854
2863
|
}
|
|
2855
2864
|
};
|
|
2856
2865
|
}, void 0, "setFilters"),
|
|
2857
|
-
removeFilters: (
|
|
2858
|
-
const
|
|
2859
|
-
if (!
|
|
2860
|
-
return
|
|
2861
|
-
let
|
|
2862
|
-
return
|
|
2863
|
-
column:
|
|
2864
|
-
owner:
|
|
2866
|
+
removeFilters: (t, s, n) => r((o) => {
|
|
2867
|
+
const i = o.filters[t] ?? {};
|
|
2868
|
+
if (!i)
|
|
2869
|
+
return o;
|
|
2870
|
+
let a = {};
|
|
2871
|
+
return s && (a = Xe(i, {
|
|
2872
|
+
column: s,
|
|
2873
|
+
owner: n
|
|
2865
2874
|
})), {
|
|
2866
2875
|
filters: {
|
|
2867
|
-
...
|
|
2868
|
-
[
|
|
2869
|
-
...
|
|
2876
|
+
...o.filters,
|
|
2877
|
+
[t]: {
|
|
2878
|
+
...a
|
|
2870
2879
|
}
|
|
2871
2880
|
// important: destructuring here to not conservere the reference to the same object
|
|
2872
2881
|
}
|
|
2873
2882
|
};
|
|
2874
|
-
}, void 0, "removeFilters")
|
|
2883
|
+
}, void 0, "removeFilters"),
|
|
2884
|
+
invalidateSourcesCache: (t, {
|
|
2885
|
+
timeout: s = 500
|
|
2886
|
+
} = {}) => {
|
|
2887
|
+
t.forEach((n) => {
|
|
2888
|
+
e().setSource(n, {
|
|
2889
|
+
headers: {
|
|
2890
|
+
"Cache-Control": "no-cache, max-age=10"
|
|
2891
|
+
}
|
|
2892
|
+
});
|
|
2893
|
+
}), setTimeout(() => {
|
|
2894
|
+
t.forEach((n) => {
|
|
2895
|
+
const o = e().sources[n];
|
|
2896
|
+
o && (delete o.headers, e().setSource(n, o));
|
|
2897
|
+
});
|
|
2898
|
+
}, s);
|
|
2899
|
+
}
|
|
2875
2900
|
})));
|
|
2876
2901
|
function zn(r) {
|
|
2877
2902
|
const e = D(2);
|
|
@@ -3003,11 +3028,11 @@ function Zn(r) {
|
|
|
3003
3028
|
enabled: l,
|
|
3004
3029
|
...c
|
|
3005
3030
|
} = a, e[2] = a, e[3] = l, e[4] = c) : (l = e[3], c = e[4]);
|
|
3006
|
-
const
|
|
3031
|
+
const h = l === void 0 ? !0 : l, p = ae(s, o), m = ie(t, s);
|
|
3007
3032
|
let d;
|
|
3008
3033
|
e[5] !== t || e[6] !== p || e[7] !== s || e[8] !== n ? (d = ["categories", s, t, n, p], e[5] = t, e[6] = p, e[7] = s, e[8] = n, e[9] = d) : d = e[9];
|
|
3009
|
-
let
|
|
3010
|
-
e[10] !== p || e[11] !== m || e[12] !== n ? (
|
|
3034
|
+
let y;
|
|
3035
|
+
e[10] !== p || e[11] !== m || e[12] !== n ? (y = (f) => {
|
|
3011
3036
|
const {
|
|
3012
3037
|
signal: b
|
|
3013
3038
|
} = f;
|
|
@@ -3016,15 +3041,15 @@ function Zn(r) {
|
|
|
3016
3041
|
filters: p,
|
|
3017
3042
|
signal: b
|
|
3018
3043
|
});
|
|
3019
|
-
}, e[10] = p, e[11] = m, e[12] = n, e[13] =
|
|
3020
|
-
const
|
|
3044
|
+
}, e[10] = p, e[11] = m, e[12] = n, e[13] = y) : y = e[13];
|
|
3045
|
+
const g = !!m && h;
|
|
3021
3046
|
let T;
|
|
3022
|
-
return e[14] !== d || e[15] !==
|
|
3047
|
+
return e[14] !== d || e[15] !== y || e[16] !== g || e[17] !== c ? (T = {
|
|
3023
3048
|
queryKey: d,
|
|
3024
|
-
queryFn:
|
|
3025
|
-
enabled:
|
|
3049
|
+
queryFn: y,
|
|
3050
|
+
enabled: g,
|
|
3026
3051
|
...c
|
|
3027
|
-
}, e[14] = d, e[15] =
|
|
3052
|
+
}, e[14] = d, e[15] = y, e[16] = g, e[17] = c, e[18] = T) : T = e[18], se(T);
|
|
3028
3053
|
}
|
|
3029
3054
|
function Yr(r) {
|
|
3030
3055
|
const e = D(6);
|
|
@@ -3052,11 +3077,11 @@ function Yn(r) {
|
|
|
3052
3077
|
enabled: l,
|
|
3053
3078
|
...c
|
|
3054
3079
|
} = a, e[2] = a, e[3] = l, e[4] = c) : (l = e[3], c = e[4]);
|
|
3055
|
-
const
|
|
3080
|
+
const h = l === void 0 ? !0 : l, p = ae(s, o), m = ie(t, s);
|
|
3056
3081
|
let d;
|
|
3057
3082
|
e[5] !== t || e[6] !== p || e[7] !== s || e[8] !== n ? (d = ["features", s, t, n, p], e[5] = t, e[6] = p, e[7] = s, e[8] = n, e[9] = d) : d = e[9];
|
|
3058
|
-
let
|
|
3059
|
-
e[10] !== p || e[11] !== m || e[12] !== n ? (
|
|
3083
|
+
let y;
|
|
3084
|
+
e[10] !== p || e[11] !== m || e[12] !== n ? (y = (f) => {
|
|
3060
3085
|
const {
|
|
3061
3086
|
signal: b
|
|
3062
3087
|
} = f;
|
|
@@ -3065,15 +3090,15 @@ function Yn(r) {
|
|
|
3065
3090
|
filters: p,
|
|
3066
3091
|
signal: b
|
|
3067
3092
|
});
|
|
3068
|
-
}, e[10] = p, e[11] = m, e[12] = n, e[13] =
|
|
3069
|
-
const
|
|
3093
|
+
}, e[10] = p, e[11] = m, e[12] = n, e[13] = y) : y = e[13];
|
|
3094
|
+
const g = !!m && h;
|
|
3070
3095
|
let T;
|
|
3071
|
-
return e[14] !== d || e[15] !==
|
|
3096
|
+
return e[14] !== d || e[15] !== y || e[16] !== g || e[17] !== c ? (T = {
|
|
3072
3097
|
queryKey: d,
|
|
3073
|
-
queryFn:
|
|
3074
|
-
enabled:
|
|
3098
|
+
queryFn: y,
|
|
3099
|
+
enabled: g,
|
|
3075
3100
|
...c
|
|
3076
|
-
}, e[14] = d, e[15] =
|
|
3101
|
+
}, e[14] = d, e[15] = y, e[16] = g, e[17] = c, e[18] = T) : T = e[18], se(T);
|
|
3077
3102
|
}
|
|
3078
3103
|
function Xr(r) {
|
|
3079
3104
|
const e = D(6);
|
|
@@ -3101,11 +3126,11 @@ function Xn(r) {
|
|
|
3101
3126
|
enabled: l,
|
|
3102
3127
|
...c
|
|
3103
3128
|
} = a, e[2] = a, e[3] = l, e[4] = c) : (l = e[3], c = e[4]);
|
|
3104
|
-
const
|
|
3129
|
+
const h = l === void 0 ? !0 : l, p = ae(s, o), m = ie(t, s);
|
|
3105
3130
|
let d;
|
|
3106
3131
|
e[5] !== t || e[6] !== p || e[7] !== s || e[8] !== n ? (d = ["formula", s, t, n, p], e[5] = t, e[6] = p, e[7] = s, e[8] = n, e[9] = d) : d = e[9];
|
|
3107
|
-
let
|
|
3108
|
-
e[10] !== p || e[11] !== m || e[12] !== n ? (
|
|
3132
|
+
let y;
|
|
3133
|
+
e[10] !== p || e[11] !== m || e[12] !== n ? (y = (f) => {
|
|
3109
3134
|
const {
|
|
3110
3135
|
signal: b
|
|
3111
3136
|
} = f;
|
|
@@ -3114,15 +3139,15 @@ function Xn(r) {
|
|
|
3114
3139
|
filters: p,
|
|
3115
3140
|
signal: b
|
|
3116
3141
|
});
|
|
3117
|
-
}, e[10] = p, e[11] = m, e[12] = n, e[13] =
|
|
3118
|
-
const
|
|
3142
|
+
}, e[10] = p, e[11] = m, e[12] = n, e[13] = y) : y = e[13];
|
|
3143
|
+
const g = !!m && h;
|
|
3119
3144
|
let T;
|
|
3120
|
-
return e[14] !== d || e[15] !==
|
|
3145
|
+
return e[14] !== d || e[15] !== y || e[16] !== g || e[17] !== c ? (T = {
|
|
3121
3146
|
queryKey: d,
|
|
3122
|
-
queryFn:
|
|
3123
|
-
enabled:
|
|
3147
|
+
queryFn: y,
|
|
3148
|
+
enabled: g,
|
|
3124
3149
|
...c
|
|
3125
|
-
}, e[14] = d, e[15] =
|
|
3150
|
+
}, e[14] = d, e[15] = y, e[16] = g, e[17] = c, e[18] = T) : T = e[18], se(T);
|
|
3126
3151
|
}
|
|
3127
3152
|
function Jr(r) {
|
|
3128
3153
|
const e = D(6);
|
|
@@ -3150,11 +3175,11 @@ function Jn(r) {
|
|
|
3150
3175
|
enabled: l,
|
|
3151
3176
|
...c
|
|
3152
3177
|
} = a, e[2] = a, e[3] = l, e[4] = c) : (l = e[3], c = e[4]);
|
|
3153
|
-
const
|
|
3178
|
+
const h = l === void 0 ? !0 : l, p = ae(s, o), m = ie(t, s);
|
|
3154
3179
|
let d;
|
|
3155
3180
|
e[5] !== t || e[6] !== p || e[7] !== s || e[8] !== n ? (d = ["histogram", s, t, n, p], e[5] = t, e[6] = p, e[7] = s, e[8] = n, e[9] = d) : d = e[9];
|
|
3156
|
-
let
|
|
3157
|
-
e[10] !== p || e[11] !== m || e[12] !== n ? (
|
|
3181
|
+
let y;
|
|
3182
|
+
e[10] !== p || e[11] !== m || e[12] !== n ? (y = (f) => {
|
|
3158
3183
|
const {
|
|
3159
3184
|
signal: b
|
|
3160
3185
|
} = f;
|
|
@@ -3163,15 +3188,15 @@ function Jn(r) {
|
|
|
3163
3188
|
filters: p,
|
|
3164
3189
|
signal: b
|
|
3165
3190
|
});
|
|
3166
|
-
}, e[10] = p, e[11] = m, e[12] = n, e[13] =
|
|
3167
|
-
const
|
|
3191
|
+
}, e[10] = p, e[11] = m, e[12] = n, e[13] = y) : y = e[13];
|
|
3192
|
+
const g = !!m && h;
|
|
3168
3193
|
let T;
|
|
3169
|
-
return e[14] !== d || e[15] !==
|
|
3194
|
+
return e[14] !== d || e[15] !== y || e[16] !== g || e[17] !== c ? (T = {
|
|
3170
3195
|
queryKey: d,
|
|
3171
|
-
queryFn:
|
|
3172
|
-
enabled:
|
|
3196
|
+
queryFn: y,
|
|
3197
|
+
enabled: g,
|
|
3173
3198
|
...c
|
|
3174
|
-
}, e[14] = d, e[15] =
|
|
3199
|
+
}, e[14] = d, e[15] = y, e[16] = g, e[17] = c, e[18] = T) : T = e[18], se(T);
|
|
3175
3200
|
}
|
|
3176
3201
|
function eo(r) {
|
|
3177
3202
|
const e = D(6);
|
|
@@ -3199,11 +3224,11 @@ function er(r) {
|
|
|
3199
3224
|
enabled: l,
|
|
3200
3225
|
...c
|
|
3201
3226
|
} = a, e[2] = a, e[3] = l, e[4] = c) : (l = e[3], c = e[4]);
|
|
3202
|
-
const
|
|
3227
|
+
const h = l === void 0 ? !0 : l, p = ae(s, o), m = ie(t, s);
|
|
3203
3228
|
let d;
|
|
3204
3229
|
e[5] !== t || e[6] !== p || e[7] !== s || e[8] !== n ? (d = ["range", s, t, n, p], e[5] = t, e[6] = p, e[7] = s, e[8] = n, e[9] = d) : d = e[9];
|
|
3205
|
-
let
|
|
3206
|
-
e[10] !== p || e[11] !== m || e[12] !== n ? (
|
|
3230
|
+
let y;
|
|
3231
|
+
e[10] !== p || e[11] !== m || e[12] !== n ? (y = (f) => {
|
|
3207
3232
|
const {
|
|
3208
3233
|
signal: b
|
|
3209
3234
|
} = f;
|
|
@@ -3212,15 +3237,15 @@ function er(r) {
|
|
|
3212
3237
|
filters: p,
|
|
3213
3238
|
signal: b
|
|
3214
3239
|
});
|
|
3215
|
-
}, e[10] = p, e[11] = m, e[12] = n, e[13] =
|
|
3216
|
-
const
|
|
3240
|
+
}, e[10] = p, e[11] = m, e[12] = n, e[13] = y) : y = e[13];
|
|
3241
|
+
const g = !!m && h;
|
|
3217
3242
|
let T;
|
|
3218
|
-
return e[14] !== d || e[15] !==
|
|
3243
|
+
return e[14] !== d || e[15] !== y || e[16] !== g || e[17] !== c ? (T = {
|
|
3219
3244
|
queryKey: d,
|
|
3220
|
-
queryFn:
|
|
3221
|
-
enabled:
|
|
3245
|
+
queryFn: y,
|
|
3246
|
+
enabled: g,
|
|
3222
3247
|
...c
|
|
3223
|
-
}, e[14] = d, e[15] =
|
|
3248
|
+
}, e[14] = d, e[15] = y, e[16] = g, e[17] = c, e[18] = T) : T = e[18], se(T);
|
|
3224
3249
|
}
|
|
3225
3250
|
function to(r) {
|
|
3226
3251
|
const e = D(6);
|
|
@@ -3248,11 +3273,11 @@ function tr(r) {
|
|
|
3248
3273
|
enabled: l,
|
|
3249
3274
|
...c
|
|
3250
3275
|
} = a, e[2] = a, e[3] = l, e[4] = c) : (l = e[3], c = e[4]);
|
|
3251
|
-
const
|
|
3276
|
+
const h = l === void 0 ? !0 : l, p = ae(s, o), m = ie(t, s);
|
|
3252
3277
|
let d;
|
|
3253
3278
|
e[5] !== t || e[6] !== p || e[7] !== s || e[8] !== n ? (d = ["scatter", s, t, n, p], e[5] = t, e[6] = p, e[7] = s, e[8] = n, e[9] = d) : d = e[9];
|
|
3254
|
-
let
|
|
3255
|
-
e[10] !== p || e[11] !== m || e[12] !== n ? (
|
|
3279
|
+
let y;
|
|
3280
|
+
e[10] !== p || e[11] !== m || e[12] !== n ? (y = (f) => {
|
|
3256
3281
|
const {
|
|
3257
3282
|
signal: b
|
|
3258
3283
|
} = f;
|
|
@@ -3261,15 +3286,15 @@ function tr(r) {
|
|
|
3261
3286
|
filters: p,
|
|
3262
3287
|
signal: b
|
|
3263
3288
|
});
|
|
3264
|
-
}, e[10] = p, e[11] = m, e[12] = n, e[13] =
|
|
3265
|
-
const
|
|
3289
|
+
}, e[10] = p, e[11] = m, e[12] = n, e[13] = y) : y = e[13];
|
|
3290
|
+
const g = !!m && h;
|
|
3266
3291
|
let T;
|
|
3267
|
-
return e[14] !== d || e[15] !==
|
|
3292
|
+
return e[14] !== d || e[15] !== y || e[16] !== g || e[17] !== c ? (T = {
|
|
3268
3293
|
queryKey: d,
|
|
3269
|
-
queryFn:
|
|
3270
|
-
enabled:
|
|
3294
|
+
queryFn: y,
|
|
3295
|
+
enabled: g,
|
|
3271
3296
|
...c
|
|
3272
|
-
}, e[14] = d, e[15] =
|
|
3297
|
+
}, e[14] = d, e[15] = y, e[16] = g, e[17] = c, e[18] = T) : T = e[18], se(T);
|
|
3273
3298
|
}
|
|
3274
3299
|
function so(r) {
|
|
3275
3300
|
const e = D(6);
|
|
@@ -3297,11 +3322,11 @@ function sr(r) {
|
|
|
3297
3322
|
enabled: l,
|
|
3298
3323
|
...c
|
|
3299
3324
|
} = a, e[2] = a, e[3] = l, e[4] = c) : (l = e[3], c = e[4]);
|
|
3300
|
-
const
|
|
3325
|
+
const h = l === void 0 ? !0 : l, p = ae(s, o), m = ie(t, s);
|
|
3301
3326
|
let d;
|
|
3302
3327
|
e[5] !== t || e[6] !== p || e[7] !== s || e[8] !== n ? (d = ["table", s, t, n, p], e[5] = t, e[6] = p, e[7] = s, e[8] = n, e[9] = d) : d = e[9];
|
|
3303
|
-
let
|
|
3304
|
-
e[10] !== p || e[11] !== m || e[12] !== n ? (
|
|
3328
|
+
let y;
|
|
3329
|
+
e[10] !== p || e[11] !== m || e[12] !== n ? (y = (f) => {
|
|
3305
3330
|
const {
|
|
3306
3331
|
signal: b
|
|
3307
3332
|
} = f;
|
|
@@ -3310,15 +3335,15 @@ function sr(r) {
|
|
|
3310
3335
|
filters: p,
|
|
3311
3336
|
signal: b
|
|
3312
3337
|
});
|
|
3313
|
-
}, e[10] = p, e[11] = m, e[12] = n, e[13] =
|
|
3314
|
-
const
|
|
3338
|
+
}, e[10] = p, e[11] = m, e[12] = n, e[13] = y) : y = e[13];
|
|
3339
|
+
const g = !!m && h;
|
|
3315
3340
|
let T;
|
|
3316
|
-
return e[14] !== d || e[15] !==
|
|
3341
|
+
return e[14] !== d || e[15] !== y || e[16] !== g || e[17] !== c ? (T = {
|
|
3317
3342
|
queryKey: d,
|
|
3318
|
-
queryFn:
|
|
3319
|
-
enabled:
|
|
3343
|
+
queryFn: y,
|
|
3344
|
+
enabled: g,
|
|
3320
3345
|
...c
|
|
3321
|
-
}, e[14] = d, e[15] =
|
|
3346
|
+
}, e[14] = d, e[15] = y, e[16] = g, e[17] = c, e[18] = T) : T = e[18], se(T);
|
|
3322
3347
|
}
|
|
3323
3348
|
function no(r) {
|
|
3324
3349
|
const e = D(6);
|
|
@@ -3346,11 +3371,11 @@ function nr(r) {
|
|
|
3346
3371
|
enabled: l,
|
|
3347
3372
|
...c
|
|
3348
3373
|
} = a, e[2] = a, e[3] = l, e[4] = c) : (l = e[3], c = e[4]);
|
|
3349
|
-
const
|
|
3374
|
+
const h = l === void 0 ? !0 : l, p = ae(s, o), m = ie(t, s);
|
|
3350
3375
|
let d;
|
|
3351
3376
|
e[5] !== t || e[6] !== p || e[7] !== s || e[8] !== n ? (d = ["timeSeries", s, t, n, p], e[5] = t, e[6] = p, e[7] = s, e[8] = n, e[9] = d) : d = e[9];
|
|
3352
|
-
let
|
|
3353
|
-
e[10] !== p || e[11] !== m || e[12] !== n ? (
|
|
3377
|
+
let y;
|
|
3378
|
+
e[10] !== p || e[11] !== m || e[12] !== n ? (y = (f) => {
|
|
3354
3379
|
const {
|
|
3355
3380
|
signal: b
|
|
3356
3381
|
} = f;
|
|
@@ -3359,15 +3384,15 @@ function nr(r) {
|
|
|
3359
3384
|
filters: p,
|
|
3360
3385
|
signal: b
|
|
3361
3386
|
});
|
|
3362
|
-
}, e[10] = p, e[11] = m, e[12] = n, e[13] =
|
|
3363
|
-
const
|
|
3387
|
+
}, e[10] = p, e[11] = m, e[12] = n, e[13] = y) : y = e[13];
|
|
3388
|
+
const g = !!m && h;
|
|
3364
3389
|
let T;
|
|
3365
|
-
return e[14] !== d || e[15] !==
|
|
3390
|
+
return e[14] !== d || e[15] !== y || e[16] !== g || e[17] !== c ? (T = {
|
|
3366
3391
|
queryKey: d,
|
|
3367
|
-
queryFn:
|
|
3368
|
-
enabled:
|
|
3392
|
+
queryFn: y,
|
|
3393
|
+
enabled: g,
|
|
3369
3394
|
...c
|
|
3370
|
-
}, e[14] = d, e[15] =
|
|
3395
|
+
}, e[14] = d, e[15] = y, e[16] = g, e[17] = c, e[18] = T) : T = e[18], se(T);
|
|
3371
3396
|
}
|
|
3372
3397
|
function ro(r) {
|
|
3373
3398
|
const e = D(6);
|
|
@@ -3394,41 +3419,41 @@ function io(r) {
|
|
|
3394
3419
|
let l;
|
|
3395
3420
|
e[2] !== o ? (l = o === void 0 ? [] : o, e[2] = o, e[3] = l) : l = e[3];
|
|
3396
3421
|
const c = l;
|
|
3397
|
-
let
|
|
3398
|
-
e[4] !== t || e[5] !== c ? (
|
|
3422
|
+
let h;
|
|
3423
|
+
e[4] !== t || e[5] !== c ? (h = /* @__PURE__ */ N(fn, { values: c, children: t }), e[4] = t, e[5] = c, e[6] = h) : h = e[6];
|
|
3399
3424
|
let p;
|
|
3400
|
-
e[7] !== a || e[8] !==
|
|
3425
|
+
e[7] !== a || e[8] !== h ? (p = /* @__PURE__ */ N(Ws, { values: a, children: h }), e[7] = a, e[8] = h, e[9] = p) : p = e[9];
|
|
3401
3426
|
let m;
|
|
3402
3427
|
return e[10] !== s || e[11] !== p ? (m = /* @__PURE__ */ N(Bs, { values: s, children: p }), e[10] = s, e[11] = p, e[12] = m) : m = e[12], m;
|
|
3403
3428
|
}
|
|
3404
3429
|
function ao(r, e) {
|
|
3405
3430
|
const t = pe((c) => c.layers), s = pe((c) => c.setLayer), n = re(() => kt(r.map((c) => t[c]).filter((c) => !!(c != null && c.legend))).toReversed(), [t, r]), o = re(() => n.map(e), [e, n]), i = Q(({
|
|
3406
3431
|
id: c,
|
|
3407
|
-
visible:
|
|
3432
|
+
visible: h,
|
|
3408
3433
|
...p
|
|
3409
3434
|
}) => {
|
|
3410
3435
|
s(c, {
|
|
3411
3436
|
props: {
|
|
3412
|
-
visible:
|
|
3437
|
+
visible: h
|
|
3413
3438
|
},
|
|
3414
3439
|
legend: p
|
|
3415
3440
|
});
|
|
3416
3441
|
}, [s]), a = Q(({
|
|
3417
3442
|
id: c,
|
|
3418
|
-
collapsed:
|
|
3443
|
+
collapsed: h
|
|
3419
3444
|
}) => {
|
|
3420
3445
|
s(c, {
|
|
3421
3446
|
legend: {
|
|
3422
|
-
collapsed:
|
|
3447
|
+
collapsed: h
|
|
3423
3448
|
}
|
|
3424
3449
|
});
|
|
3425
3450
|
}, [s]), l = Q(({
|
|
3426
3451
|
id: c,
|
|
3427
|
-
opacity:
|
|
3452
|
+
opacity: h
|
|
3428
3453
|
}) => {
|
|
3429
3454
|
s(c, {
|
|
3430
3455
|
props: {
|
|
3431
|
-
opacity:
|
|
3456
|
+
opacity: h
|
|
3432
3457
|
}
|
|
3433
3458
|
});
|
|
3434
3459
|
}, [s]);
|
|
@@ -3442,19 +3467,19 @@ function ao(r, e) {
|
|
|
3442
3467
|
function lo({
|
|
3443
3468
|
mapId: r
|
|
3444
3469
|
}) {
|
|
3445
|
-
const [e, t] = oe(void 0), [s, n] = oe(!1), o = $((
|
|
3470
|
+
const [e, t] = oe(void 0), [s, n] = oe(!1), o = $((g) => {
|
|
3446
3471
|
var T;
|
|
3447
|
-
return (T =
|
|
3448
|
-
}), i = $((
|
|
3472
|
+
return (T = g.maps[r]) == null ? void 0 : T.basemap;
|
|
3473
|
+
}), i = $((g) => g.getDeckInstance), a = $((g) => g.getOverlayInstance), l = $((g) => g.areLayersLoaded[r]), h = $((g) => {
|
|
3449
3474
|
var T;
|
|
3450
|
-
return (T =
|
|
3475
|
+
return (T = g.maps[r]) == null ? void 0 : T.isLoaded;
|
|
3451
3476
|
}) && l, {
|
|
3452
3477
|
type: p
|
|
3453
3478
|
} = ye[o], m = p === te.googleMaps, d = Q(async () => {
|
|
3454
|
-
const
|
|
3479
|
+
const g = i(r), T = a(r);
|
|
3455
3480
|
try {
|
|
3456
3481
|
const f = document.createElement("canvas");
|
|
3457
|
-
f.width =
|
|
3482
|
+
f.width = g.width ?? 0, f.height = g.height ?? 0;
|
|
3458
3483
|
const b = f.getContext("2d");
|
|
3459
3484
|
if (m) {
|
|
3460
3485
|
const E = T;
|
|
@@ -3463,12 +3488,12 @@ function lo({
|
|
|
3463
3488
|
const w = await gs(E.getDiv(), {
|
|
3464
3489
|
useCORS: !0
|
|
3465
3490
|
});
|
|
3466
|
-
b == null || b.drawImage(w, 0, 0,
|
|
3491
|
+
b == null || b.drawImage(w, 0, 0, g.width, g.height);
|
|
3467
3492
|
} else {
|
|
3468
3493
|
const E = T;
|
|
3469
|
-
E.redraw(), b == null || b.drawImage(E.getMap().getCanvas(), 0, 0,
|
|
3494
|
+
E.redraw(), b == null || b.drawImage(E.getMap().getCanvas(), 0, 0, g.width, g.height);
|
|
3470
3495
|
}
|
|
3471
|
-
|
|
3496
|
+
g == null || g.redraw("screenshot"), b == null || b.drawImage(g.getCanvas(), 0, 0, g.width, g.height);
|
|
3472
3497
|
const S = f.toDataURL();
|
|
3473
3498
|
t(S);
|
|
3474
3499
|
} catch (f) {
|
|
@@ -3479,8 +3504,8 @@ function lo({
|
|
|
3479
3504
|
}, [i, m, r, a]);
|
|
3480
3505
|
return {
|
|
3481
3506
|
takeScreenshot: Q(() => {
|
|
3482
|
-
n(!0),
|
|
3483
|
-
}, [d,
|
|
3507
|
+
n(!0), h && d();
|
|
3508
|
+
}, [d, h]),
|
|
3484
3509
|
isLoading: s,
|
|
3485
3510
|
screenshot: e
|
|
3486
3511
|
};
|
|
@@ -3504,13 +3529,13 @@ function co(r) {
|
|
|
3504
3529
|
mapId: t
|
|
3505
3530
|
}, e[4] = t, e[5] = a) : a = e[5];
|
|
3506
3531
|
const l = lr(a), c = i ?? l ?? n;
|
|
3507
|
-
let
|
|
3508
|
-
return e[6] !== i || e[7] !== l || e[8] !== c || e[9] !== n ? (
|
|
3532
|
+
let h;
|
|
3533
|
+
return e[6] !== i || e[7] !== l || e[8] !== c || e[9] !== n ? (h = {
|
|
3509
3534
|
spatialFilter: c,
|
|
3510
3535
|
staticSpatialFilter: l,
|
|
3511
3536
|
lassoToolsSpatialFilter: i,
|
|
3512
3537
|
viewportSpatialFilter: n
|
|
3513
|
-
}, e[6] = i, e[7] = l, e[8] = c, e[9] = n, e[10] =
|
|
3538
|
+
}, e[6] = i, e[7] = l, e[8] = c, e[9] = n, e[10] = h) : h = e[10], h;
|
|
3514
3539
|
}
|
|
3515
3540
|
function rr(r) {
|
|
3516
3541
|
const e = D(4), {
|
|
@@ -3623,11 +3648,11 @@ function uo({
|
|
|
3623
3648
|
getTitle: l = dr,
|
|
3624
3649
|
getValue: c = pr
|
|
3625
3650
|
}) {
|
|
3626
|
-
const
|
|
3627
|
-
const
|
|
3651
|
+
const h = o ? l(o) : "", m = t.reduce((d, y) => {
|
|
3652
|
+
const g = e[y], T = r[y], f = c(T, s, g), b = n ? i(y) : "";
|
|
3628
3653
|
return d + a(b, f);
|
|
3629
3654
|
}, "");
|
|
3630
|
-
return
|
|
3655
|
+
return h + m;
|
|
3631
3656
|
}
|
|
3632
3657
|
function dr(r) {
|
|
3633
3658
|
return `<h3 style="margin: 0"><strong>${r}</strong></h3></br>`;
|
|
@@ -3679,10 +3704,10 @@ function po(r) {
|
|
|
3679
3704
|
} = $(n);
|
|
3680
3705
|
let l;
|
|
3681
3706
|
e[2] !== s ? (l = (w) => w.areLayersLoaded[s], e[2] = s, e[3] = l) : l = e[3];
|
|
3682
|
-
const c = $(l),
|
|
3683
|
-
let
|
|
3684
|
-
e[4] !== s || e[5] !==
|
|
3685
|
-
const
|
|
3707
|
+
const c = $(l), h = $(br), p = $(gr), m = $(hr), d = !c;
|
|
3708
|
+
let y;
|
|
3709
|
+
e[4] !== s || e[5] !== h ? (y = (w) => h(s, w), e[4] = s, e[5] = h, e[6] = y) : y = e[6];
|
|
3710
|
+
const g = y;
|
|
3686
3711
|
let T;
|
|
3687
3712
|
e[7] !== p || e[8] !== s ? (T = (w) => p(s, w), e[7] = p, e[8] = s, e[9] = T) : T = e[9];
|
|
3688
3713
|
const f = T;
|
|
@@ -3690,15 +3715,15 @@ function po(r) {
|
|
|
3690
3715
|
e[10] !== s || e[11] !== m ? (b = () => m(s), e[10] = s, e[11] = m, e[12] = b) : b = e[12];
|
|
3691
3716
|
const S = b;
|
|
3692
3717
|
let E;
|
|
3693
|
-
return e[13] !== t || e[14] !== i || e[15] !== a || e[16] !== d || e[17] !==
|
|
3718
|
+
return e[13] !== t || e[14] !== i || e[15] !== a || e[16] !== d || e[17] !== g || e[18] !== f || e[19] !== S || e[20] !== o ? (E = t({
|
|
3694
3719
|
zoom: o,
|
|
3695
3720
|
maxZoom: i,
|
|
3696
3721
|
minZoom: a,
|
|
3697
3722
|
isLoading: d,
|
|
3698
|
-
setZoom:
|
|
3723
|
+
setZoom: g,
|
|
3699
3724
|
flyTo: f,
|
|
3700
3725
|
resetViewState: S
|
|
3701
|
-
}), e[13] = t, e[14] = i, e[15] = a, e[16] = d, e[17] =
|
|
3726
|
+
}), e[13] = t, e[14] = i, e[15] = a, e[16] = d, e[17] = g, e[18] = f, e[19] = S, e[20] = o, e[21] = E) : E = e[21], E;
|
|
3702
3727
|
}
|
|
3703
3728
|
function hr(r) {
|
|
3704
3729
|
return r.resetViewState;
|
|
@@ -3723,11 +3748,11 @@ async function vr({
|
|
|
3723
3748
|
params: l,
|
|
3724
3749
|
apiVersion: c = Ke
|
|
3725
3750
|
}) {
|
|
3726
|
-
const
|
|
3727
|
-
return
|
|
3751
|
+
const h = `${r}/${c}/stats/${e}/${n}`;
|
|
3752
|
+
return Ct({
|
|
3728
3753
|
accessToken: t,
|
|
3729
3754
|
signal: o,
|
|
3730
|
-
url:
|
|
3755
|
+
url: h,
|
|
3731
3756
|
method: de.get,
|
|
3732
3757
|
params: {
|
|
3733
3758
|
q: s,
|
|
@@ -3751,7 +3776,7 @@ async function Sr({
|
|
|
3751
3776
|
apiVersion: l = Ke
|
|
3752
3777
|
}) {
|
|
3753
3778
|
const c = `${r}/${l}/stats/${e}/${s}/${n}`;
|
|
3754
|
-
return
|
|
3779
|
+
return Ct({
|
|
3755
3780
|
accessToken: t,
|
|
3756
3781
|
signal: i,
|
|
3757
3782
|
url: c,
|
|
@@ -3773,11 +3798,11 @@ function mo(r) {
|
|
|
3773
3798
|
} = r;
|
|
3774
3799
|
let l;
|
|
3775
3800
|
e[0] !== a ? (l = a === void 0 ? {} : a, e[0] = a, e[1] = l) : l = e[1];
|
|
3776
|
-
let c,
|
|
3801
|
+
let c, h;
|
|
3777
3802
|
e[2] !== l ? ({
|
|
3778
3803
|
enabled: c,
|
|
3779
|
-
...
|
|
3780
|
-
} = l, e[2] = l, e[3] = c, e[4] =
|
|
3804
|
+
...h
|
|
3805
|
+
} = l, e[2] = l, e[3] = c, e[4] = h) : (c = e[3], h = e[4]);
|
|
3781
3806
|
const p = c === void 0 ? !0 : c;
|
|
3782
3807
|
let m;
|
|
3783
3808
|
e[5] !== s || e[6] !== t ? (m = [t, s], e[5] = s, e[6] = t, e[7] = m) : m = e[7];
|
|
@@ -3789,19 +3814,19 @@ function mo(r) {
|
|
|
3789
3814
|
accessToken: n,
|
|
3790
3815
|
fetcherOptions: i
|
|
3791
3816
|
}), e[8] = n, e[9] = s, e[10] = i, e[11] = o, e[12] = t, e[13] = d) : d = e[13];
|
|
3792
|
-
let
|
|
3793
|
-
return e[14] !== p || e[15] !== t || e[16] !== m || e[17] !== d || e[18] !==
|
|
3817
|
+
let y;
|
|
3818
|
+
return e[14] !== p || e[15] !== t || e[16] !== m || e[17] !== d || e[18] !== h ? (y = {
|
|
3794
3819
|
queryKey: m,
|
|
3795
3820
|
queryFn: d,
|
|
3796
|
-
select(
|
|
3821
|
+
select(g) {
|
|
3797
3822
|
return {
|
|
3798
|
-
...
|
|
3799
|
-
type:
|
|
3823
|
+
...g,
|
|
3824
|
+
type: g.type.toLowerCase()
|
|
3800
3825
|
};
|
|
3801
3826
|
},
|
|
3802
3827
|
enabled: !!t && p,
|
|
3803
|
-
...
|
|
3804
|
-
}, e[14] = p, e[15] = t, e[16] = m, e[17] = d, e[18] =
|
|
3828
|
+
...h
|
|
3829
|
+
}, e[14] = p, e[15] = t, e[16] = m, e[17] = d, e[18] = h, e[19] = y) : y = e[19], se(y);
|
|
3805
3830
|
}
|
|
3806
3831
|
function wr({
|
|
3807
3832
|
source: r,
|
|
@@ -3858,7 +3883,7 @@ async function Tr({
|
|
|
3858
3883
|
});
|
|
3859
3884
|
if (!((c = (l = (a = n == null ? void 0 : n.tilestats) == null ? void 0 : a.layers) == null ? void 0 : l[0]) != null && c.attributes))
|
|
3860
3885
|
throw new Error(`${s} not found in tileset attributes`);
|
|
3861
|
-
const i = n.tilestats.layers[0].attributes.find((
|
|
3886
|
+
const i = n.tilestats.layers[0].attributes.find((h) => h.attribute === s);
|
|
3862
3887
|
if (!i)
|
|
3863
3888
|
throw new Error(`${s} not found in tileset attributes`);
|
|
3864
3889
|
return i;
|
|
@@ -3876,8 +3901,8 @@ export {
|
|
|
3876
3901
|
Pt as CustomMeasureDistanceMode,
|
|
3877
3902
|
Je as DEFAULT_LASSO_TOOLS_COLORS,
|
|
3878
3903
|
Vs as DEFAULT_LASSO_TOOLS_LAYER_PROPS,
|
|
3879
|
-
|
|
3880
|
-
|
|
3904
|
+
Ue as DEFAULT_LASSO_TOOLS_MODES,
|
|
3905
|
+
xe as DEFAULT_LASSO_TOOLS_PROPS,
|
|
3881
3906
|
Te as DEFAULT_MASK_LAYER_PROPS,
|
|
3882
3907
|
sn as DEFAULT_MEASUREMENT_TOOLS_MODES,
|
|
3883
3908
|
nn as DEFAULT_MEASUREMENT_TOOLS_UNITS,
|
|
@@ -3914,7 +3939,7 @@ export {
|
|
|
3914
3939
|
oo as clientID,
|
|
3915
3940
|
st as convertMetersTo,
|
|
3916
3941
|
Qs as createLassoToolsStore,
|
|
3917
|
-
|
|
3942
|
+
Us as createMapStore,
|
|
3918
3943
|
dn as createMeasurementToolsStore,
|
|
3919
3944
|
le as formatterTypes,
|
|
3920
3945
|
bs as getCursorDefault,
|
|
@@ -3927,7 +3952,7 @@ export {
|
|
|
3927
3952
|
fo as mappingLegendMeridian,
|
|
3928
3953
|
uo as objectToHtml,
|
|
3929
3954
|
kt as sortLayers,
|
|
3930
|
-
|
|
3955
|
+
Cs as transitionFlyConfig,
|
|
3931
3956
|
Zn as useCategories,
|
|
3932
3957
|
Lt as useEventManager,
|
|
3933
3958
|
Yn as useFeatures,
|