@carto/ps-react-maps 3.9.1 → 3.9.2
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 +379 -370
- package/dist/index.js.map +1 -1
- package/dist/types/providers/map/types.d.ts +5 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -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, m, p, y, d;
|
|
83
83
|
e[0] !== r ? ({
|
|
84
84
|
instanceRef: i,
|
|
85
85
|
overlayRef: p,
|
|
@@ -87,15 +87,15 @@ function Ss(r) {
|
|
|
87
87
|
id: o,
|
|
88
88
|
layers: a,
|
|
89
89
|
mapStyle: l,
|
|
90
|
-
parameters:
|
|
90
|
+
parameters: y,
|
|
91
91
|
getCursor: s,
|
|
92
92
|
getTooltip: n,
|
|
93
93
|
onLoad: c,
|
|
94
|
-
onViewStateChange:
|
|
94
|
+
onViewStateChange: m,
|
|
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] = m, e[10] = p, e[11] = y, 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], m = e[9], p = e[10], y = e[11], d = e[12]);
|
|
97
|
+
let g, h;
|
|
98
|
+
e[13] !== c ? (g = () => {
|
|
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
|
+
}, h = [c], e[13] = c, e[14] = g, e[15] = h) : (g = e[14], h = e[15]), z(g, h);
|
|
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;
|
|
@@ -113,10 +113,10 @@ function Ss(r) {
|
|
|
113
113
|
value: !0
|
|
114
114
|
}), e[18] = c, e[19] = E) : E = e[19];
|
|
115
115
|
let w;
|
|
116
|
-
e[20] !==
|
|
116
|
+
e[20] !== y ? (w = {
|
|
117
117
|
depthTest: !1,
|
|
118
|
-
...
|
|
119
|
-
}, e[20] =
|
|
118
|
+
...y
|
|
119
|
+
}, e[20] = y, e[21] = w) : w = e[21];
|
|
120
120
|
let _;
|
|
121
121
|
e[22] !== p ? (_ = /* @__PURE__ */ N(_s, { overlayRef: p }), e[22] = p, e[23] = _) : _ = e[23];
|
|
122
122
|
let k;
|
|
@@ -127,10 +127,10 @@ function Ss(r) {
|
|
|
127
127
|
let U;
|
|
128
128
|
e[26] !== l || e[27] !== k ? (U = /* @__PURE__ */ N($t, { reuseMaps: !0, mapStyle: l, onLoad: k, onRender: ws }), e[26] = l, e[27] = k, e[28] = U) : U = e[28];
|
|
129
129
|
let C;
|
|
130
|
-
return e[29] !== b || e[30] !== t || e[31] !== s || e[32] !== n || e[33] !== o || e[34] !==
|
|
130
|
+
return e[29] !== b || e[30] !== t || e[31] !== s || e[32] !== n || e[33] !== o || e[34] !== m || e[35] !== d || e[36] !== U || e[37] !== S || e[38] !== E || e[39] !== w || e[40] !== _ ? (C = /* @__PURE__ */ N(Rt, { children: /* @__PURE__ */ N("div", { className: "deckgl-map", children: /* @__PURE__ */ ft(xt, { controller: t, id: o, ref: S, layers: b, getCursor: s, getTooltip: n, onLoad: E, onViewStateChange: m, parameters: w, ...d, children: [
|
|
131
131
|
_,
|
|
132
132
|
U
|
|
133
|
-
] }) }) }), e[29] = b, e[30] = t, e[31] = s, e[32] = n, e[33] = o, e[34] =
|
|
133
|
+
] }) }) }), e[29] = b, e[30] = t, e[31] = s, e[32] = n, e[33] = o, e[34] = m, e[35] = d, e[36] = U, e[37] = S, e[38] = E, e[39] = w, e[40] = _, e[41] = C) : C = e[41], C;
|
|
134
134
|
}
|
|
135
135
|
function ws() {
|
|
136
136
|
const r = document.querySelector(".maplibregl-compact-show");
|
|
@@ -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 m, p;
|
|
172
|
+
return e[6] !== r ? (m = () => {
|
|
173
173
|
n.setProps(r);
|
|
174
|
-
}, p = [n, r], e[6] = r, e[7] =
|
|
174
|
+
}, p = [n, r], e[6] = r, e[7] = m, e[8] = p) : (m = e[7], p = e[8]), z(m, 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: m,
|
|
192
192
|
...p
|
|
193
193
|
}) {
|
|
194
|
-
var
|
|
194
|
+
var h, T, f, b, S;
|
|
195
195
|
z(() => {
|
|
196
196
|
c({
|
|
197
197
|
type: "load",
|
|
@@ -201,7 +201,7 @@ function Ps({
|
|
|
201
201
|
value: !1
|
|
202
202
|
});
|
|
203
203
|
}, [c]);
|
|
204
|
-
const
|
|
204
|
+
const y = re(() => s.filter((E) => !!(E != null && E.type)).map(({
|
|
205
205
|
type: E,
|
|
206
206
|
props: w
|
|
207
207
|
}) => new E(w)), [s]), d = Q(({
|
|
@@ -217,7 +217,7 @@ function Ps({
|
|
|
217
217
|
zoom: w - 1,
|
|
218
218
|
bearing: _,
|
|
219
219
|
pitch: k
|
|
220
|
-
}), []),
|
|
220
|
+
}), []), g = 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,
|
|
@@ -232,24 +232,24 @@ function Ps({
|
|
|
232
232
|
width: _ == null ? void 0 : _.width,
|
|
233
233
|
height: _ == null ? void 0 : _.height
|
|
234
234
|
};
|
|
235
|
-
|
|
235
|
+
m == null || m({
|
|
236
236
|
viewState: U,
|
|
237
237
|
interactionState: {
|
|
238
238
|
isZooming: !0
|
|
239
239
|
}
|
|
240
240
|
});
|
|
241
|
-
}, [e,
|
|
241
|
+
}, [e, m]);
|
|
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: ((h = p.initialViewState) == null ? void 0 : h.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
|
+
}), g(p.initialViewState);
|
|
250
|
+
}, onBoundsChanged: (E) => g(d(E)), onZoomChanged: (E) => g(d(E)), children: [
|
|
251
251
|
/* @__PURE__ */ N(Ls, { id: r, overlayRef: a }),
|
|
252
|
-
/* @__PURE__ */ N(Ms, { id: r, instanceRef: e, layers:
|
|
252
|
+
/* @__PURE__ */ N(Ms, { id: r, instanceRef: e, layers: y, onLoad: () => {
|
|
253
253
|
c({
|
|
254
254
|
type: "deckgl",
|
|
255
255
|
value: !0
|
|
@@ -271,25 +271,25 @@ 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, m, p, y, 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: m,
|
|
282
282
|
gmapsProps: t,
|
|
283
283
|
getCursor: p,
|
|
284
|
-
getTooltip:
|
|
284
|
+
getTooltip: y,
|
|
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] = m, e[10] = p, e[11] = y, 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], m = e[9], p = e[10], y = e[11], d = e[12]);
|
|
289
|
+
const g = a === void 0 ? J.positron : a, h = l === void 0 ? !0 : l, T = c === void 0 ? "deck-gl-map" : c;
|
|
290
290
|
let f;
|
|
291
|
-
e[13] !==
|
|
292
|
-
const b = f, S = p === void 0 ? bs : p, E =
|
|
291
|
+
e[13] !== m ? (f = m === void 0 ? [] : m, e[13] = m, e[14] = f) : f = e[14];
|
|
292
|
+
const b = f, S = p === void 0 ? bs : p, E = y === void 0 ? vs : y, 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
295
|
const [k, U] = oe(_);
|
|
@@ -298,7 +298,7 @@ function Os(r) {
|
|
|
298
298
|
const j = C, {
|
|
299
299
|
url: B,
|
|
300
300
|
type: x
|
|
301
|
-
} = ye[
|
|
301
|
+
} = ye[g], M = x === 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;
|
|
@@ -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] !== g || e[24] !== h || 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: h, id: T, basemap: g, layers: b, gmapsProps: t, getCursor: S, getTooltip: E, onLoad: u, onViewStateChange: w, ...i }), e[23] = g, e[24] = h, 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
315
|
let A;
|
|
316
|
-
return e[35] !==
|
|
316
|
+
return e[35] !== h || 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 ? (A = /* @__PURE__ */ N(Ss, { instanceRef: s, overlayRef: o, controller: h, id: T, layers: b, mapStyle: B, getCursor: S, getTooltip: E, onLoad: u, onViewStateChange: w, ...i }), e[35] = h, 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] = A) : A = e[45], A;
|
|
317
317
|
}
|
|
318
318
|
function Fs(r) {
|
|
319
319
|
return r;
|
|
@@ -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 m;
|
|
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 && !!((m = i.maps[n]) != null && m.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 m;
|
|
403
|
+
const a = s(), l = (m = a.getViewport) == null ? void 0 : m.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 m;
|
|
403
411
|
const a = {
|
|
404
412
|
...i.maps
|
|
405
|
-
}, l = ((
|
|
413
|
+
}, l = ((m = a[n]) == null ? void 0 : m.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((m) => !o.includes(m))
|
|
421
429
|
}, {
|
|
422
430
|
maps: a
|
|
423
431
|
};
|
|
@@ -509,25 +517,26 @@ 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
|
-
if (!o.getViewport(t)) return;
|
|
523
|
-
const a = {
|
|
524
|
+
const o = e(), i = {
|
|
524
525
|
...As,
|
|
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;
|
|
@@ -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 = (m) => m.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 = (m) => i(s, m), 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({
|
|
@@ -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((m, p) => (m.some((y) => y.equals(p)) || m.push(p), m), []), 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) ? h(i(f), f, b) : f;
|
|
753
762
|
}
|
|
754
763
|
function l(f, b, S) {
|
|
755
764
|
return f.concat(b).map(function(E) {
|
|
@@ -758,19 +767,19 @@ function Ns() {
|
|
|
758
767
|
}
|
|
759
768
|
function c(f, b) {
|
|
760
769
|
if (!b.customMerge)
|
|
761
|
-
return
|
|
770
|
+
return h;
|
|
762
771
|
var S = b.customMerge(f);
|
|
763
|
-
return typeof S == "function" ? S :
|
|
772
|
+
return typeof S == "function" ? S : h;
|
|
764
773
|
}
|
|
765
|
-
function
|
|
774
|
+
function m(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(m(f));
|
|
772
781
|
}
|
|
773
|
-
function
|
|
782
|
+
function y(f, b) {
|
|
774
783
|
try {
|
|
775
784
|
return b in f;
|
|
776
785
|
} catch {
|
|
@@ -778,29 +787,29 @@ function Ns() {
|
|
|
778
787
|
}
|
|
779
788
|
}
|
|
780
789
|
function d(f, b) {
|
|
781
|
-
return
|
|
790
|
+
return y(f, b) && !(Object.hasOwnProperty.call(f, b) && Object.propertyIsEnumerable.call(f, b));
|
|
782
791
|
}
|
|
783
|
-
function
|
|
792
|
+
function g(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);
|
|
787
796
|
}), p(b).forEach(function(w) {
|
|
788
|
-
d(f, w) || (
|
|
797
|
+
d(f, w) || (y(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 h(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) : g(f, b, S) : a(b, S);
|
|
795
804
|
}
|
|
796
|
-
|
|
805
|
+
h.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 h(E, w, S);
|
|
801
810
|
}, {});
|
|
802
811
|
};
|
|
803
|
-
var T =
|
|
812
|
+
var T = h;
|
|
804
813
|
return Be = T, Be;
|
|
805
814
|
}
|
|
806
815
|
var Hs = Ns();
|
|
@@ -889,14 +898,14 @@ const Qs = (r) => ze()((e) => ({
|
|
|
889
898
|
modeInstance: a = new xe.polygon.mode(),
|
|
890
899
|
modes: l = xe,
|
|
891
900
|
modeSelected: c = xe.polygon.value,
|
|
892
|
-
values:
|
|
901
|
+
values: m = {}
|
|
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: m
|
|
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 g;
|
|
1010
|
+
return (g = d.data[r]) == null ? void 0 : g.enabled;
|
|
1002
1011
|
}), s = G((d) => d.setEnabled), n = G((d) => {
|
|
1003
|
-
var
|
|
1004
|
-
return (
|
|
1012
|
+
var g;
|
|
1013
|
+
return (g = d.data[r]) == null ? void 0 : g.values;
|
|
1005
1014
|
}), o = G((d) => d.setValue), i = G((d) => d.setVisibility), a = G((d) => {
|
|
1006
|
-
var
|
|
1007
|
-
return (
|
|
1015
|
+
var g;
|
|
1016
|
+
return (g = d.data[r]) == null ? void 0 : g.modeSelected;
|
|
1008
1017
|
}), l = G((d) => d.setModeSelected), c = G((d) => {
|
|
1009
|
-
var
|
|
1010
|
-
return (
|
|
1011
|
-
}),
|
|
1018
|
+
var g;
|
|
1019
|
+
return (g = d.data[r]) == null ? void 0 : g.modes;
|
|
1020
|
+
}), m = G((d) => d.setModeInstance);
|
|
1012
1021
|
z(() => {
|
|
1013
1022
|
const d = c[a];
|
|
1014
1023
|
if (d && t) {
|
|
1015
|
-
const
|
|
1016
|
-
|
|
1024
|
+
const g = d.mode;
|
|
1025
|
+
m(r, new g());
|
|
1017
1026
|
}
|
|
1018
|
-
}, [t, r, a, c,
|
|
1027
|
+
}, [t, r, a, c, m]);
|
|
1019
1028
|
const [
|
|
1020
1029
|
p
|
|
1021
1030
|
// , draw
|
|
@@ -1032,7 +1041,7 @@ function Ks({
|
|
|
1032
1041
|
Object.values(n).filter((T) => T.type === "mask").map(d)
|
|
1033
1042
|
// , draw
|
|
1034
1043
|
];
|
|
1035
|
-
}, [n]),
|
|
1044
|
+
}, [n]), y = Q((d) => {
|
|
1036
1045
|
s(r, !!d), l(r, d);
|
|
1037
1046
|
}, [r, s, l]);
|
|
1038
1047
|
return e({
|
|
@@ -1046,8 +1055,8 @@ 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,
|
|
1050
|
-
setModeSelected:
|
|
1058
|
+
setVisibility: Q((d, g) => i(r, d, g), [r, i]),
|
|
1059
|
+
setModeSelected: y
|
|
1051
1060
|
});
|
|
1052
1061
|
}
|
|
1053
1062
|
function _t({
|
|
@@ -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 m = r < (s ?? nt);
|
|
1089
|
+
let p = m ? V.meter : V.kilometer;
|
|
1090
|
+
l = m ? me.meter : me.kilometer, i && (l = m ? me.feet : me.mile, p = m ? 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,32 +1516,32 @@ 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 = (g) => {
|
|
1520
|
+
var h;
|
|
1521
|
+
return (h = g.maps[t]) == null ? void 0 : h.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 = (g) => {
|
|
1526
|
+
var h;
|
|
1527
|
+
return (h = g.maps[t]) == null ? void 0 : h.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 =
|
|
1523
|
-
let
|
|
1524
|
-
e[4] !== l || e[5] !== p || e[6] !== a || e[7] !== s || e[8] !== t || e[9] !== c ? (
|
|
1525
|
-
let
|
|
1530
|
+
type: m
|
|
1531
|
+
} = ye[o], p = m === te.googleMaps;
|
|
1532
|
+
let y, d;
|
|
1533
|
+
e[4] !== l || e[5] !== p || e[6] !== a || e[7] !== s || e[8] !== t || e[9] !== c ? (y = () => {
|
|
1534
|
+
let g = null;
|
|
1526
1535
|
if (p && a) {
|
|
1527
|
-
const
|
|
1528
|
-
|
|
1536
|
+
const h = l(t);
|
|
1537
|
+
g = new ss(h.getDiv(), {});
|
|
1529
1538
|
}
|
|
1530
1539
|
c(s, {
|
|
1531
1540
|
props: {
|
|
1532
|
-
eventManager:
|
|
1541
|
+
eventManager: g
|
|
1533
1542
|
}
|
|
1534
1543
|
});
|
|
1535
|
-
}, 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] =
|
|
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] = y, e[11] = d) : (y = e[10], d = e[11]), z(y, d);
|
|
1536
1545
|
}
|
|
1537
1546
|
function rn(r) {
|
|
1538
1547
|
return r.setLayer;
|
|
@@ -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), m = 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
|
-
}),
|
|
1578
|
+
}), y = pe((M) => M.setLayer), d = $((M) => M.addLayers), g = $((M) => M.removeLayers), h = $(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({});
|
|
@@ -1599,8 +1608,8 @@ function ln({
|
|
|
1599
1608
|
}, [C]);
|
|
1600
1609
|
const j = Me(b.length);
|
|
1601
1610
|
z(() => (d(e, [ce]), () => {
|
|
1602
|
-
|
|
1603
|
-
}), [d, e,
|
|
1611
|
+
g(e, [ce]);
|
|
1612
|
+
}), [d, e, g]);
|
|
1604
1613
|
const B = Q(() => {
|
|
1605
1614
|
C(), U([]), a(e, !1);
|
|
1606
1615
|
}, [e, C, a]), x = Q(({
|
|
@@ -1652,10 +1661,10 @@ function ln({
|
|
|
1652
1661
|
outline: F
|
|
1653
1662
|
},
|
|
1654
1663
|
onEdit: x,
|
|
1655
|
-
mode: M ?
|
|
1664
|
+
mode: M ? m : new Jt()
|
|
1656
1665
|
});
|
|
1657
|
-
|
|
1658
|
-
}, [w, i, n.mask, E,
|
|
1666
|
+
y(ce, L);
|
|
1667
|
+
}, [w, i, n.mask, E, m, x, k, y, t.colors.editing, t.colors.finished]), z(() => {
|
|
1659
1668
|
const M = {
|
|
1660
1669
|
...Te,
|
|
1661
1670
|
data: S,
|
|
@@ -1664,19 +1673,19 @@ function ln({
|
|
|
1664
1673
|
getFilterValue: E
|
|
1665
1674
|
}
|
|
1666
1675
|
};
|
|
1667
|
-
return
|
|
1676
|
+
return y(Te.id, {
|
|
1668
1677
|
type: ns,
|
|
1669
1678
|
props: M
|
|
1670
1679
|
}), d(e, [Te.id]), () => {
|
|
1671
|
-
|
|
1680
|
+
g(e, [Te.id]);
|
|
1672
1681
|
};
|
|
1673
|
-
}, [d, e, S, E,
|
|
1674
|
-
|
|
1682
|
+
}, [d, e, S, E, g, y]), z(() => {
|
|
1683
|
+
h == null || h.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);
|
|
1678
1687
|
const u = !i && (f.current[M] ?? (F == null ? void 0 : F.props.pickable));
|
|
1679
|
-
|
|
1688
|
+
y(M, {
|
|
1680
1689
|
props: {
|
|
1681
1690
|
pickable: u,
|
|
1682
1691
|
extensions: [new ts()],
|
|
@@ -1684,7 +1693,7 @@ function ln({
|
|
|
1684
1693
|
}
|
|
1685
1694
|
});
|
|
1686
1695
|
});
|
|
1687
|
-
}, [i, T, e,
|
|
1696
|
+
}, [i, T, e, h, E.length, y]), r;
|
|
1688
1697
|
}
|
|
1689
1698
|
ln.Controls = Ks;
|
|
1690
1699
|
function cn({
|
|
@@ -1720,7 +1729,7 @@ function un({
|
|
|
1720
1729
|
pickable: s,
|
|
1721
1730
|
modeConfig: {
|
|
1722
1731
|
// We force distance due to conversion is addressed at feature getText level
|
|
1723
|
-
formatTooltip: (
|
|
1732
|
+
formatTooltip: (y) => y,
|
|
1724
1733
|
turfOptions: {
|
|
1725
1734
|
units: en.meters
|
|
1726
1735
|
}
|
|
@@ -1737,10 +1746,10 @@ function un({
|
|
|
1737
1746
|
// needed for the outlineWidth and outlineColor attributes to be effective
|
|
1738
1747
|
smoothing: 0.2
|
|
1739
1748
|
},
|
|
1740
|
-
getText: (
|
|
1749
|
+
getText: (y) => {
|
|
1741
1750
|
var d;
|
|
1742
1751
|
return (d = r == null ? void 0 : r.getTooltipText) == null ? void 0 : d.call(r, {
|
|
1743
|
-
meters:
|
|
1752
|
+
meters: y.text,
|
|
1744
1753
|
locale: t,
|
|
1745
1754
|
unit: n,
|
|
1746
1755
|
options: l
|
|
@@ -1751,7 +1760,7 @@ function un({
|
|
|
1751
1760
|
}
|
|
1752
1761
|
}
|
|
1753
1762
|
}
|
|
1754
|
-
}),
|
|
1763
|
+
}), m = 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(m, 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: m = !1,
|
|
1775
1784
|
locale: p = "en",
|
|
1776
|
-
positions:
|
|
1785
|
+
positions: y = [],
|
|
1777
1786
|
clearLayerOnStart: d = !1,
|
|
1778
|
-
unit:
|
|
1779
|
-
enabled:
|
|
1787
|
+
unit: g = Ie["m-km"],
|
|
1788
|
+
enabled: h = !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: m,
|
|
1787
1796
|
locale: p,
|
|
1788
|
-
positions:
|
|
1789
|
-
unit:
|
|
1797
|
+
positions: y,
|
|
1798
|
+
unit: g,
|
|
1790
1799
|
clearLayerOnStart: d,
|
|
1791
|
-
enabled:
|
|
1800
|
+
enabled: h
|
|
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 g;
|
|
1915
|
-
e[6] !== c || e[7] !== t ? (g = (R) => c(t, R), e[6] = c, e[7] = t, e[8] = g) : g = e[8];
|
|
1916
|
-
const p = g;
|
|
1917
1923
|
let m;
|
|
1918
|
-
e[
|
|
1919
|
-
const
|
|
1920
|
-
let
|
|
1921
|
-
e[
|
|
1922
|
-
const
|
|
1924
|
+
e[6] !== c || e[7] !== t ? (m = (R) => c(t, R), e[6] = c, e[7] = t, e[8] = m) : m = e[8];
|
|
1925
|
+
const p = m;
|
|
1926
|
+
let y;
|
|
1927
|
+
e[9] !== t ? (y = (R) => R.measurements[t].clearLayerOnStart, e[9] = t, e[10] = y) : y = e[10];
|
|
1928
|
+
const d = I(y);
|
|
1929
|
+
let g;
|
|
1930
|
+
e[11] !== t ? (g = (R) => R.measurements[t].enabled, e[11] = t, e[12] = g) : g = e[12];
|
|
1931
|
+
const h = I(g), 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;
|
|
@@ -1972,13 +1981,13 @@ function Ft(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] !== Ce || e[53] !== d || e[54] !== l || e[55] !==
|
|
1984
|
+
return e[52] !== Ce || e[53] !== d || e[54] !== l || e[55] !== h || e[56] !== C || e[57] !== F || e[58] !== L || e[59] !== E || e[60] !== n || e[61] !== q || e[62] !== p || e[63] !== b || e[64] !== x || e[65] !== P || e[66] !== W || e[67] !== k || e[68] !== fe || e[69] !== Ae || 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:
|
|
1990
|
+
enabled: h,
|
|
1982
1991
|
finished: C,
|
|
1983
1992
|
locale: F,
|
|
1984
1993
|
modeInstance: L,
|
|
@@ -1994,7 +2003,7 @@ function Ft(r) {
|
|
|
1994
2003
|
toggleLayer: De,
|
|
1995
2004
|
clearLayer: Ce,
|
|
1996
2005
|
setModeInstance: W
|
|
1997
|
-
}, e[52] = Ce, e[53] = d, e[54] = l, e[55] =
|
|
2006
|
+
}, e[52] = Ce, e[53] = d, e[54] = l, e[55] = h, e[56] = C, e[57] = F, e[58] = L, e[59] = E, e[60] = n, e[61] = q, e[62] = p, e[63] = b, e[64] = x, e[65] = P, e[66] = W, e[67] = k, e[68] = fe, e[69] = Ae, 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: m,
|
|
2039
2048
|
modeSelected: p,
|
|
2040
|
-
setModeSelected:
|
|
2049
|
+
setModeSelected: y,
|
|
2041
2050
|
enabled: d,
|
|
2042
|
-
setEnabled:
|
|
2043
|
-
finished:
|
|
2051
|
+
setEnabled: g,
|
|
2052
|
+
finished: h,
|
|
2044
2053
|
setFinished: T,
|
|
2045
2054
|
locale: f,
|
|
2046
2055
|
setLocale: b,
|
|
@@ -2064,18 +2073,18 @@ function wn(r) {
|
|
|
2064
2073
|
};
|
|
2065
2074
|
}, e[2] = p, e[3] = i, e[4] = E, e[5] = _, e[6] = B) : B = e[6];
|
|
2066
2075
|
let x;
|
|
2067
|
-
e[7] !== p || e[8] !== i || e[9] !==
|
|
2076
|
+
e[7] !== p || e[8] !== i || e[9] !== g || e[10] !== E || e[11] !== _ ? (x = [i, p, _, E, g], e[7] = p, e[8] = i, e[9] = g, e[10] = E, e[11] = _, e[12] = x) : x = e[12], z(B, x);
|
|
2068
2077
|
let M;
|
|
2069
|
-
e[13] !== j || e[14] !== C || e[15] !==
|
|
2070
|
-
P && (
|
|
2071
|
-
}, e[13] = j, e[14] = C, e[15] =
|
|
2072
|
-
const F = M, u = !!
|
|
2078
|
+
e[13] !== j || e[14] !== C || e[15] !== m || e[16] !== h ? (M = (P) => {
|
|
2079
|
+
P && (m || !h) && C(), j(P);
|
|
2080
|
+
}, e[13] = j, e[14] = C, e[15] = m, e[16] = h, e[17] = M) : M = e[17];
|
|
2081
|
+
const F = M, u = !!m;
|
|
2073
2082
|
let v;
|
|
2074
|
-
return e[18] !== n || e[19] !== C || e[20] !== l || e[21] !== d || e[22] !==
|
|
2083
|
+
return e[18] !== n || e[19] !== C || e[20] !== l || e[21] !== d || e[22] !== h || e[23] !== f || e[24] !== t || e[25] !== S || e[26] !== p || e[27] !== i || e[28] !== w || e[29] !== c || e[30] !== g || e[31] !== T || e[32] !== b || e[33] !== y || e[34] !== _ || e[35] !== U || 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: h,
|
|
2079
2088
|
locale: f,
|
|
2080
2089
|
positions: w,
|
|
2081
2090
|
unit: k,
|
|
@@ -2090,16 +2099,16 @@ function wn(r) {
|
|
|
2090
2099
|
options: s
|
|
2091
2100
|
}),
|
|
2092
2101
|
modeInstance: S,
|
|
2093
|
-
setModeSelected:
|
|
2102
|
+
setModeSelected: y,
|
|
2094
2103
|
setDistance: c,
|
|
2095
2104
|
setFinished: T,
|
|
2096
2105
|
setLocale: b,
|
|
2097
2106
|
setPositions: _,
|
|
2098
2107
|
setUnit: U,
|
|
2099
|
-
setEnabled:
|
|
2108
|
+
setEnabled: g,
|
|
2100
2109
|
toggleLayer: F,
|
|
2101
2110
|
clearLayer: C
|
|
2102
|
-
}), e[18] = n, e[19] = C, e[20] = l, e[21] = d, e[22] =
|
|
2111
|
+
}), e[18] = n, e[19] = C, e[20] = l, e[21] = d, e[22] = h, e[23] = f, e[24] = t, e[25] = S, e[26] = p, e[27] = i, e[28] = w, e[29] = c, e[30] = g, e[31] = T, e[32] = b, e[33] = y, e[34] = _, e[35] = U, 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: m,
|
|
2123
2132
|
setPositions: p,
|
|
2124
|
-
unit:
|
|
2133
|
+
unit: y,
|
|
2125
2134
|
modeInstance: d
|
|
2126
2135
|
} = Ft({
|
|
2127
2136
|
mapId: e
|
|
2128
|
-
}),
|
|
2137
|
+
}), g = pe((w) => w.setLayer), h = $((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 && h(e, [ne]), () => {
|
|
2136
2145
|
T(e, [ne]);
|
|
2137
|
-
}), [
|
|
2146
|
+
}), [h, i, e, T, a]), z(() => {
|
|
2138
2147
|
f == null || f.forEach((w) => {
|
|
2139
2148
|
var U;
|
|
2140
2149
|
const _ = (U = b(e)) == null ? void 0 : U.props.layers.find((C) => C.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
|
+
g(w, {
|
|
2144
2153
|
props: {
|
|
2145
2154
|
pickable: k
|
|
2146
2155
|
}
|
|
2147
2156
|
});
|
|
2148
2157
|
});
|
|
2149
|
-
}, [a, b, e, f,
|
|
2158
|
+
}, [a, b, e, f, g]);
|
|
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: m,
|
|
2172
2181
|
onEdit: E,
|
|
2173
|
-
unit:
|
|
2182
|
+
unit: y,
|
|
2174
2183
|
mode: d,
|
|
2175
2184
|
textOptions: n
|
|
2176
2185
|
});
|
|
2177
|
-
|
|
2178
|
-
}, [l, d, s,
|
|
2186
|
+
g(ne, k);
|
|
2187
|
+
}, [l, d, s, m, E, g, t.colors.editing, t.colors.finished, t.colors.point, n, y, 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 = (m) => o[m], 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 m;
|
|
2235
|
+
e[9] !== t ? (m = (L) => L.maps[t].overlayRef, e[9] = t, e[10] = m) : m = e[10];
|
|
2236
|
+
const p = $(m), y = 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 g = $(d), h = $(Dn), T = $(Cn), f = $(An), b = $(kn), S = $(Fn);
|
|
2231
2240
|
let E;
|
|
2232
2241
|
e[13] !== t ? (E = {
|
|
2233
2242
|
mapId: t
|
|
@@ -2239,7 +2248,7 @@ function Wr(r) {
|
|
|
2239
2248
|
let C;
|
|
2240
2249
|
e[17] !== t || e[18] !== n || e[19] !== T || e[20] !== S ? (C = (L) => {
|
|
2241
2250
|
const O = T;
|
|
2242
|
-
if (
|
|
2251
|
+
if (y.current && clearInterval(y.current), y.current = setTimeout(() => {
|
|
2243
2252
|
S(t);
|
|
2244
2253
|
}, Ln), n) {
|
|
2245
2254
|
n(L, O);
|
|
@@ -2254,11 +2263,11 @@ function Wr(r) {
|
|
|
2254
2263
|
}, e[22] = t, e[23] = s, e[24] = f, e[25] = S, e[26] = B) : B = e[26];
|
|
2255
2264
|
const x = B;
|
|
2256
2265
|
let M;
|
|
2257
|
-
e[27] !==
|
|
2266
|
+
e[27] !== h || e[28] !== t || e[29] !== o || e[30] !== b ? (M = (L) => {
|
|
2258
2267
|
var W, K;
|
|
2259
|
-
const O = (W =
|
|
2268
|
+
const O = (W = h(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] = h, 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) => {
|
|
@@ -2267,7 +2276,7 @@ function Wr(r) {
|
|
|
2267
2276
|
}, e[32] = u, e[33] = t, e[34] = S, e[35] = v) : v = e[35];
|
|
2268
2277
|
const P = v;
|
|
2269
2278
|
let A;
|
|
2270
|
-
return e[36] !== a || e[37] !== U || e[38] !== F || e[39] !== P || e[40] !== x || e[41] !== j || e[42] !== t || e[43] !== c || e[44] !== p || e[45] !== o || e[46] !==
|
|
2279
|
+
return e[36] !== a || e[37] !== U || e[38] !== F || e[39] !== P || e[40] !== x || e[41] !== j || e[42] !== t || e[43] !== c || e[44] !== p || e[45] !== o || e[46] !== g ? (A = /* @__PURE__ */ N(Os, { ...o, id: t, layers: U, instanceRef: c, overlayRef: p, basemap: a, initialViewState: g, onLoad: x, onViewStateChange: j, onAfterRender: F, onDragEnd: P }), e[36] = a, e[37] = U, e[38] = F, e[39] = P, e[40] = x, e[41] = j, e[42] = t, e[43] = c, e[44] = p, e[45] = o, e[46] = g, e[47] = A) : A = e[47], A;
|
|
2271
2280
|
}
|
|
2272
2281
|
function On(r) {
|
|
2273
2282
|
return r == null ? void 0 : r.isLoaded;
|
|
@@ -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 m = [
|
|
2320
2329
|
"[object Int8Array]",
|
|
2321
2330
|
"[object Uint8Array]",
|
|
2322
2331
|
"[object Uint8ClampedArray]",
|
|
@@ -2327,9 +2336,9 @@ function Rn() {
|
|
|
2327
2336
|
"[object Float32Array]",
|
|
2328
2337
|
"[object Float64Array]"
|
|
2329
2338
|
], p = ArrayBuffer.isView || function(u) {
|
|
2330
|
-
return u &&
|
|
2339
|
+
return u && m.indexOf(Object.prototype.toString.call(u)) > -1;
|
|
2331
2340
|
};
|
|
2332
|
-
function
|
|
2341
|
+
function y(u) {
|
|
2333
2342
|
if (typeof u != "string" && (u = String(u)), /[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(u) || u === "")
|
|
2334
2343
|
throw new TypeError('Invalid character in header field name: "' + u + '"');
|
|
2335
2344
|
return u.toLowerCase();
|
|
@@ -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 g(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 h(u) {
|
|
2361
|
+
this.map = {}, u instanceof h ? 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
|
-
|
|
2363
|
-
u =
|
|
2371
|
+
h.prototype.append = function(u, v) {
|
|
2372
|
+
u = y(u), v = d(v);
|
|
2364
2373
|
var P = this.map[u];
|
|
2365
2374
|
this.map[u] = P ? P + ", " + v : v;
|
|
2366
|
-
},
|
|
2367
|
-
delete this.map[
|
|
2368
|
-
},
|
|
2369
|
-
return u =
|
|
2370
|
-
},
|
|
2371
|
-
return this.map.hasOwnProperty(
|
|
2372
|
-
},
|
|
2373
|
-
this.map[
|
|
2374
|
-
},
|
|
2375
|
+
}, h.prototype.delete = function(u) {
|
|
2376
|
+
delete this.map[y(u)];
|
|
2377
|
+
}, h.prototype.get = function(u) {
|
|
2378
|
+
return u = y(u), this.has(u) ? this.map[u] : null;
|
|
2379
|
+
}, h.prototype.has = function(u) {
|
|
2380
|
+
return this.map.hasOwnProperty(y(u));
|
|
2381
|
+
}, h.prototype.set = function(u, v) {
|
|
2382
|
+
this.map[y(u)] = d(v);
|
|
2383
|
+
}, h.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
|
+
}, h.prototype.keys = function() {
|
|
2378
2387
|
var u = [];
|
|
2379
2388
|
return this.forEach(function(v, P) {
|
|
2380
2389
|
u.push(P);
|
|
2381
|
-
}),
|
|
2382
|
-
},
|
|
2390
|
+
}), g(u);
|
|
2391
|
+
}, h.prototype.values = function() {
|
|
2383
2392
|
var u = [];
|
|
2384
2393
|
return this.forEach(function(v) {
|
|
2385
2394
|
u.push(v);
|
|
2386
|
-
}),
|
|
2387
|
-
},
|
|
2395
|
+
}), g(u);
|
|
2396
|
+
}, h.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
|
+
}), g(u);
|
|
2401
|
+
}, l.iterable && (h.prototype[Symbol.iterator] = h.prototype.entries);
|
|
2393
2402
|
function T(u) {
|
|
2394
2403
|
if (!u._noBody) {
|
|
2395
2404
|
if (u.bodyUsed)
|
|
@@ -2483,10 +2492,10 @@ function Rn() {
|
|
|
2483
2492
|
if (u instanceof C) {
|
|
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 h(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 h(v.headers)), this.method = U(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;
|
|
@@ -2516,7 +2525,7 @@ function Rn() {
|
|
|
2516
2525
|
}), v;
|
|
2517
2526
|
}
|
|
2518
2527
|
function B(u) {
|
|
2519
|
-
var v = new
|
|
2528
|
+
var v = new h(), P = u.replace(/\r?\n[\t ]+/g, " ");
|
|
2520
2529
|
return P.split("\r").map(function(A) {
|
|
2521
2530
|
return A.indexOf(`
|
|
2522
2531
|
`) === 0 ? A.substr(1, A.length) : A;
|
|
@@ -2538,13 +2547,13 @@ function Rn() {
|
|
|
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 h(v.headers), this.url = v.url || "", this._initBody(u);
|
|
2542
2551
|
}
|
|
2543
2552
|
_.call(x.prototype), x.prototype.clone = function() {
|
|
2544
2553
|
return new x(this._bodyInit, {
|
|
2545
2554
|
status: this.status,
|
|
2546
2555
|
statusText: this.statusText,
|
|
2547
|
-
headers: new
|
|
2556
|
+
headers: new h(this.headers),
|
|
2548
2557
|
url: this.url
|
|
2549
2558
|
});
|
|
2550
2559
|
}, x.error = function() {
|
|
@@ -2605,10 +2614,10 @@ 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 h || a.Headers && v.headers instanceof a.Headers)) {
|
|
2609
2618
|
var K = [];
|
|
2610
2619
|
Object.getOwnPropertyNames(v.headers).forEach(function(q) {
|
|
2611
|
-
K.push(
|
|
2620
|
+
K.push(y(q)), O.setRequestHeader(q, d(v.headers[q]));
|
|
2612
2621
|
}), L.headers.forEach(function(q, X) {
|
|
2613
2622
|
K.indexOf(X) === -1 && O.setRequestHeader(X, q);
|
|
2614
2623
|
});
|
|
@@ -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 = h, a.Request = C, a.Response = x), i.Headers = h, i.Request = C, i.Response = x, 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;
|
|
@@ -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) ? h(i(f), f, b) : f;
|
|
2673
2682
|
}
|
|
2674
2683
|
function l(f, b, S) {
|
|
2675
2684
|
return f.concat(b).map(function(E) {
|
|
@@ -2677,19 +2686,19 @@ function Vn() {
|
|
|
2677
2686
|
});
|
|
2678
2687
|
}
|
|
2679
2688
|
function c(f, b) {
|
|
2680
|
-
if (!b.customMerge) return
|
|
2689
|
+
if (!b.customMerge) return h;
|
|
2681
2690
|
var S = b.customMerge(f);
|
|
2682
|
-
return typeof S == "function" ? S :
|
|
2691
|
+
return typeof S == "function" ? S : h;
|
|
2683
2692
|
}
|
|
2684
|
-
function
|
|
2693
|
+
function m(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(m(f));
|
|
2691
2700
|
}
|
|
2692
|
-
function
|
|
2701
|
+
function y(f, b) {
|
|
2693
2702
|
try {
|
|
2694
2703
|
return b in f;
|
|
2695
2704
|
} catch {
|
|
@@ -2697,28 +2706,28 @@ function Vn() {
|
|
|
2697
2706
|
}
|
|
2698
2707
|
}
|
|
2699
2708
|
function d(f, b) {
|
|
2700
|
-
return
|
|
2709
|
+
return y(f, b) && !(Object.hasOwnProperty.call(f, b) && Object.propertyIsEnumerable.call(f, b));
|
|
2701
2710
|
}
|
|
2702
|
-
function
|
|
2711
|
+
function g(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);
|
|
2706
2715
|
}), p(b).forEach(function(w) {
|
|
2707
|
-
d(f, w) || (
|
|
2716
|
+
d(f, w) || (y(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 h(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) : g(f, b, S) : a(b, S);
|
|
2714
2723
|
}
|
|
2715
|
-
|
|
2724
|
+
h.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 h(S, E, b);
|
|
2719
2728
|
}, {});
|
|
2720
2729
|
};
|
|
2721
|
-
var T =
|
|
2730
|
+
var T = h;
|
|
2722
2731
|
return qe = T, qe;
|
|
2723
2732
|
}
|
|
2724
2733
|
var In = Vn();
|
|
@@ -2783,19 +2792,19 @@ async function At({
|
|
|
2783
2792
|
let c = jn({
|
|
2784
2793
|
url: i,
|
|
2785
2794
|
params: o
|
|
2786
|
-
}),
|
|
2787
|
-
n === de.get && c.length > a && (
|
|
2788
|
-
const
|
|
2789
|
-
body:
|
|
2795
|
+
}), m = e, p = n;
|
|
2796
|
+
n === de.get && c.length > a && (m = o, p = de.post, c = i);
|
|
2797
|
+
const y = Hn({
|
|
2798
|
+
body: m,
|
|
2790
2799
|
accessToken: t ?? (s == null ? void 0 : s.accessToken),
|
|
2791
2800
|
method: p,
|
|
2792
2801
|
...l
|
|
2793
2802
|
});
|
|
2794
|
-
r && (
|
|
2795
|
-
const d = await Un(c,
|
|
2803
|
+
r && (y.signal = r);
|
|
2804
|
+
const d = await Un(c, y);
|
|
2796
2805
|
if (!d.ok) {
|
|
2797
|
-
const
|
|
2798
|
-
return Promise.reject(new Error(
|
|
2806
|
+
const g = await d.text();
|
|
2807
|
+
return Promise.reject(new Error(g));
|
|
2799
2808
|
}
|
|
2800
2809
|
return d.status === 204 ? Promise.resolve() : await d.json();
|
|
2801
2810
|
}
|
|
@@ -2815,17 +2824,17 @@ const Pe = mt()(hs((r) => ({
|
|
|
2815
2824
|
apiBaseUrl: a = We,
|
|
2816
2825
|
clientId: l = xn,
|
|
2817
2826
|
apiVersion: c = Ke,
|
|
2818
|
-
...
|
|
2827
|
+
...m
|
|
2819
2828
|
} = t, p = {
|
|
2820
2829
|
...i,
|
|
2821
|
-
...
|
|
2830
|
+
...m,
|
|
2822
2831
|
apiBaseUrl: a,
|
|
2823
2832
|
apiVersion: c,
|
|
2824
2833
|
clientId: l
|
|
2825
|
-
},
|
|
2834
|
+
}, y = Wn({
|
|
2826
2835
|
source: p
|
|
2827
2836
|
});
|
|
2828
|
-
return p.widgets =
|
|
2837
|
+
return p.widgets = y, n[e] = p, {
|
|
2829
2838
|
sources: n
|
|
2830
2839
|
};
|
|
2831
2840
|
}, void 0, "setSource"),
|
|
@@ -3003,28 +3012,28 @@ function Zn(r) {
|
|
|
3003
3012
|
enabled: l,
|
|
3004
3013
|
...c
|
|
3005
3014
|
} = a, e[2] = a, e[3] = l, e[4] = c) : (l = e[3], c = e[4]);
|
|
3006
|
-
const
|
|
3015
|
+
const m = l === void 0 ? !0 : l, p = ae(s, o), y = ie(t, s);
|
|
3007
3016
|
let d;
|
|
3008
3017
|
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] !==
|
|
3018
|
+
let g;
|
|
3019
|
+
e[10] !== p || e[11] !== y || e[12] !== n ? (g = (f) => {
|
|
3011
3020
|
const {
|
|
3012
3021
|
signal: b
|
|
3013
3022
|
} = f;
|
|
3014
|
-
return
|
|
3023
|
+
return y == null ? void 0 : y.getCategories({
|
|
3015
3024
|
...n,
|
|
3016
3025
|
filters: p,
|
|
3017
3026
|
signal: b
|
|
3018
3027
|
});
|
|
3019
|
-
}, e[10] = p, e[11] =
|
|
3020
|
-
const
|
|
3028
|
+
}, e[10] = p, e[11] = y, e[12] = n, e[13] = g) : g = e[13];
|
|
3029
|
+
const h = !!y && m;
|
|
3021
3030
|
let T;
|
|
3022
|
-
return e[14] !== d || e[15] !==
|
|
3031
|
+
return e[14] !== d || e[15] !== g || e[16] !== h || e[17] !== c ? (T = {
|
|
3023
3032
|
queryKey: d,
|
|
3024
|
-
queryFn:
|
|
3025
|
-
enabled:
|
|
3033
|
+
queryFn: g,
|
|
3034
|
+
enabled: h,
|
|
3026
3035
|
...c
|
|
3027
|
-
}, e[14] = d, e[15] =
|
|
3036
|
+
}, e[14] = d, e[15] = g, e[16] = h, e[17] = c, e[18] = T) : T = e[18], se(T);
|
|
3028
3037
|
}
|
|
3029
3038
|
function Yr(r) {
|
|
3030
3039
|
const e = D(6);
|
|
@@ -3052,28 +3061,28 @@ function Yn(r) {
|
|
|
3052
3061
|
enabled: l,
|
|
3053
3062
|
...c
|
|
3054
3063
|
} = a, e[2] = a, e[3] = l, e[4] = c) : (l = e[3], c = e[4]);
|
|
3055
|
-
const
|
|
3064
|
+
const m = l === void 0 ? !0 : l, p = ae(s, o), y = ie(t, s);
|
|
3056
3065
|
let d;
|
|
3057
3066
|
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] !==
|
|
3067
|
+
let g;
|
|
3068
|
+
e[10] !== p || e[11] !== y || e[12] !== n ? (g = (f) => {
|
|
3060
3069
|
const {
|
|
3061
3070
|
signal: b
|
|
3062
3071
|
} = f;
|
|
3063
|
-
return
|
|
3072
|
+
return y == null ? void 0 : y.getFeatures({
|
|
3064
3073
|
...n,
|
|
3065
3074
|
filters: p,
|
|
3066
3075
|
signal: b
|
|
3067
3076
|
});
|
|
3068
|
-
}, e[10] = p, e[11] =
|
|
3069
|
-
const
|
|
3077
|
+
}, e[10] = p, e[11] = y, e[12] = n, e[13] = g) : g = e[13];
|
|
3078
|
+
const h = !!y && m;
|
|
3070
3079
|
let T;
|
|
3071
|
-
return e[14] !== d || e[15] !==
|
|
3080
|
+
return e[14] !== d || e[15] !== g || e[16] !== h || e[17] !== c ? (T = {
|
|
3072
3081
|
queryKey: d,
|
|
3073
|
-
queryFn:
|
|
3074
|
-
enabled:
|
|
3082
|
+
queryFn: g,
|
|
3083
|
+
enabled: h,
|
|
3075
3084
|
...c
|
|
3076
|
-
}, e[14] = d, e[15] =
|
|
3085
|
+
}, e[14] = d, e[15] = g, e[16] = h, e[17] = c, e[18] = T) : T = e[18], se(T);
|
|
3077
3086
|
}
|
|
3078
3087
|
function Xr(r) {
|
|
3079
3088
|
const e = D(6);
|
|
@@ -3101,28 +3110,28 @@ function Xn(r) {
|
|
|
3101
3110
|
enabled: l,
|
|
3102
3111
|
...c
|
|
3103
3112
|
} = a, e[2] = a, e[3] = l, e[4] = c) : (l = e[3], c = e[4]);
|
|
3104
|
-
const
|
|
3113
|
+
const m = l === void 0 ? !0 : l, p = ae(s, o), y = ie(t, s);
|
|
3105
3114
|
let d;
|
|
3106
3115
|
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] !==
|
|
3116
|
+
let g;
|
|
3117
|
+
e[10] !== p || e[11] !== y || e[12] !== n ? (g = (f) => {
|
|
3109
3118
|
const {
|
|
3110
3119
|
signal: b
|
|
3111
3120
|
} = f;
|
|
3112
|
-
return
|
|
3121
|
+
return y == null ? void 0 : y.getFormula({
|
|
3113
3122
|
...n,
|
|
3114
3123
|
filters: p,
|
|
3115
3124
|
signal: b
|
|
3116
3125
|
});
|
|
3117
|
-
}, e[10] = p, e[11] =
|
|
3118
|
-
const
|
|
3126
|
+
}, e[10] = p, e[11] = y, e[12] = n, e[13] = g) : g = e[13];
|
|
3127
|
+
const h = !!y && m;
|
|
3119
3128
|
let T;
|
|
3120
|
-
return e[14] !== d || e[15] !==
|
|
3129
|
+
return e[14] !== d || e[15] !== g || e[16] !== h || e[17] !== c ? (T = {
|
|
3121
3130
|
queryKey: d,
|
|
3122
|
-
queryFn:
|
|
3123
|
-
enabled:
|
|
3131
|
+
queryFn: g,
|
|
3132
|
+
enabled: h,
|
|
3124
3133
|
...c
|
|
3125
|
-
}, e[14] = d, e[15] =
|
|
3134
|
+
}, e[14] = d, e[15] = g, e[16] = h, e[17] = c, e[18] = T) : T = e[18], se(T);
|
|
3126
3135
|
}
|
|
3127
3136
|
function Jr(r) {
|
|
3128
3137
|
const e = D(6);
|
|
@@ -3150,28 +3159,28 @@ function Jn(r) {
|
|
|
3150
3159
|
enabled: l,
|
|
3151
3160
|
...c
|
|
3152
3161
|
} = a, e[2] = a, e[3] = l, e[4] = c) : (l = e[3], c = e[4]);
|
|
3153
|
-
const
|
|
3162
|
+
const m = l === void 0 ? !0 : l, p = ae(s, o), y = ie(t, s);
|
|
3154
3163
|
let d;
|
|
3155
3164
|
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] !==
|
|
3165
|
+
let g;
|
|
3166
|
+
e[10] !== p || e[11] !== y || e[12] !== n ? (g = (f) => {
|
|
3158
3167
|
const {
|
|
3159
3168
|
signal: b
|
|
3160
3169
|
} = f;
|
|
3161
|
-
return
|
|
3170
|
+
return y == null ? void 0 : y.getHistogram({
|
|
3162
3171
|
...n,
|
|
3163
3172
|
filters: p,
|
|
3164
3173
|
signal: b
|
|
3165
3174
|
});
|
|
3166
|
-
}, e[10] = p, e[11] =
|
|
3167
|
-
const
|
|
3175
|
+
}, e[10] = p, e[11] = y, e[12] = n, e[13] = g) : g = e[13];
|
|
3176
|
+
const h = !!y && m;
|
|
3168
3177
|
let T;
|
|
3169
|
-
return e[14] !== d || e[15] !==
|
|
3178
|
+
return e[14] !== d || e[15] !== g || e[16] !== h || e[17] !== c ? (T = {
|
|
3170
3179
|
queryKey: d,
|
|
3171
|
-
queryFn:
|
|
3172
|
-
enabled:
|
|
3180
|
+
queryFn: g,
|
|
3181
|
+
enabled: h,
|
|
3173
3182
|
...c
|
|
3174
|
-
}, e[14] = d, e[15] =
|
|
3183
|
+
}, e[14] = d, e[15] = g, e[16] = h, e[17] = c, e[18] = T) : T = e[18], se(T);
|
|
3175
3184
|
}
|
|
3176
3185
|
function eo(r) {
|
|
3177
3186
|
const e = D(6);
|
|
@@ -3199,28 +3208,28 @@ function er(r) {
|
|
|
3199
3208
|
enabled: l,
|
|
3200
3209
|
...c
|
|
3201
3210
|
} = a, e[2] = a, e[3] = l, e[4] = c) : (l = e[3], c = e[4]);
|
|
3202
|
-
const
|
|
3211
|
+
const m = l === void 0 ? !0 : l, p = ae(s, o), y = ie(t, s);
|
|
3203
3212
|
let d;
|
|
3204
3213
|
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] !==
|
|
3214
|
+
let g;
|
|
3215
|
+
e[10] !== p || e[11] !== y || e[12] !== n ? (g = (f) => {
|
|
3207
3216
|
const {
|
|
3208
3217
|
signal: b
|
|
3209
3218
|
} = f;
|
|
3210
|
-
return
|
|
3219
|
+
return y == null ? void 0 : y.getRange({
|
|
3211
3220
|
...n,
|
|
3212
3221
|
filters: p,
|
|
3213
3222
|
signal: b
|
|
3214
3223
|
});
|
|
3215
|
-
}, e[10] = p, e[11] =
|
|
3216
|
-
const
|
|
3224
|
+
}, e[10] = p, e[11] = y, e[12] = n, e[13] = g) : g = e[13];
|
|
3225
|
+
const h = !!y && m;
|
|
3217
3226
|
let T;
|
|
3218
|
-
return e[14] !== d || e[15] !==
|
|
3227
|
+
return e[14] !== d || e[15] !== g || e[16] !== h || e[17] !== c ? (T = {
|
|
3219
3228
|
queryKey: d,
|
|
3220
|
-
queryFn:
|
|
3221
|
-
enabled:
|
|
3229
|
+
queryFn: g,
|
|
3230
|
+
enabled: h,
|
|
3222
3231
|
...c
|
|
3223
|
-
}, e[14] = d, e[15] =
|
|
3232
|
+
}, e[14] = d, e[15] = g, e[16] = h, e[17] = c, e[18] = T) : T = e[18], se(T);
|
|
3224
3233
|
}
|
|
3225
3234
|
function to(r) {
|
|
3226
3235
|
const e = D(6);
|
|
@@ -3248,28 +3257,28 @@ function tr(r) {
|
|
|
3248
3257
|
enabled: l,
|
|
3249
3258
|
...c
|
|
3250
3259
|
} = a, e[2] = a, e[3] = l, e[4] = c) : (l = e[3], c = e[4]);
|
|
3251
|
-
const
|
|
3260
|
+
const m = l === void 0 ? !0 : l, p = ae(s, o), y = ie(t, s);
|
|
3252
3261
|
let d;
|
|
3253
3262
|
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] !==
|
|
3263
|
+
let g;
|
|
3264
|
+
e[10] !== p || e[11] !== y || e[12] !== n ? (g = (f) => {
|
|
3256
3265
|
const {
|
|
3257
3266
|
signal: b
|
|
3258
3267
|
} = f;
|
|
3259
|
-
return
|
|
3268
|
+
return y == null ? void 0 : y.getScatter({
|
|
3260
3269
|
...n,
|
|
3261
3270
|
filters: p,
|
|
3262
3271
|
signal: b
|
|
3263
3272
|
});
|
|
3264
|
-
}, e[10] = p, e[11] =
|
|
3265
|
-
const
|
|
3273
|
+
}, e[10] = p, e[11] = y, e[12] = n, e[13] = g) : g = e[13];
|
|
3274
|
+
const h = !!y && m;
|
|
3266
3275
|
let T;
|
|
3267
|
-
return e[14] !== d || e[15] !==
|
|
3276
|
+
return e[14] !== d || e[15] !== g || e[16] !== h || e[17] !== c ? (T = {
|
|
3268
3277
|
queryKey: d,
|
|
3269
|
-
queryFn:
|
|
3270
|
-
enabled:
|
|
3278
|
+
queryFn: g,
|
|
3279
|
+
enabled: h,
|
|
3271
3280
|
...c
|
|
3272
|
-
}, e[14] = d, e[15] =
|
|
3281
|
+
}, e[14] = d, e[15] = g, e[16] = h, e[17] = c, e[18] = T) : T = e[18], se(T);
|
|
3273
3282
|
}
|
|
3274
3283
|
function so(r) {
|
|
3275
3284
|
const e = D(6);
|
|
@@ -3297,28 +3306,28 @@ function sr(r) {
|
|
|
3297
3306
|
enabled: l,
|
|
3298
3307
|
...c
|
|
3299
3308
|
} = a, e[2] = a, e[3] = l, e[4] = c) : (l = e[3], c = e[4]);
|
|
3300
|
-
const
|
|
3309
|
+
const m = l === void 0 ? !0 : l, p = ae(s, o), y = ie(t, s);
|
|
3301
3310
|
let d;
|
|
3302
3311
|
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] !==
|
|
3312
|
+
let g;
|
|
3313
|
+
e[10] !== p || e[11] !== y || e[12] !== n ? (g = (f) => {
|
|
3305
3314
|
const {
|
|
3306
3315
|
signal: b
|
|
3307
3316
|
} = f;
|
|
3308
|
-
return
|
|
3317
|
+
return y == null ? void 0 : y.getTable({
|
|
3309
3318
|
...n,
|
|
3310
3319
|
filters: p,
|
|
3311
3320
|
signal: b
|
|
3312
3321
|
});
|
|
3313
|
-
}, e[10] = p, e[11] =
|
|
3314
|
-
const
|
|
3322
|
+
}, e[10] = p, e[11] = y, e[12] = n, e[13] = g) : g = e[13];
|
|
3323
|
+
const h = !!y && m;
|
|
3315
3324
|
let T;
|
|
3316
|
-
return e[14] !== d || e[15] !==
|
|
3325
|
+
return e[14] !== d || e[15] !== g || e[16] !== h || e[17] !== c ? (T = {
|
|
3317
3326
|
queryKey: d,
|
|
3318
|
-
queryFn:
|
|
3319
|
-
enabled:
|
|
3327
|
+
queryFn: g,
|
|
3328
|
+
enabled: h,
|
|
3320
3329
|
...c
|
|
3321
|
-
}, e[14] = d, e[15] =
|
|
3330
|
+
}, e[14] = d, e[15] = g, e[16] = h, e[17] = c, e[18] = T) : T = e[18], se(T);
|
|
3322
3331
|
}
|
|
3323
3332
|
function no(r) {
|
|
3324
3333
|
const e = D(6);
|
|
@@ -3346,28 +3355,28 @@ function nr(r) {
|
|
|
3346
3355
|
enabled: l,
|
|
3347
3356
|
...c
|
|
3348
3357
|
} = a, e[2] = a, e[3] = l, e[4] = c) : (l = e[3], c = e[4]);
|
|
3349
|
-
const
|
|
3358
|
+
const m = l === void 0 ? !0 : l, p = ae(s, o), y = ie(t, s);
|
|
3350
3359
|
let d;
|
|
3351
3360
|
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] !==
|
|
3361
|
+
let g;
|
|
3362
|
+
e[10] !== p || e[11] !== y || e[12] !== n ? (g = (f) => {
|
|
3354
3363
|
const {
|
|
3355
3364
|
signal: b
|
|
3356
3365
|
} = f;
|
|
3357
|
-
return
|
|
3366
|
+
return y == null ? void 0 : y.getTimeSeries({
|
|
3358
3367
|
...n,
|
|
3359
3368
|
filters: p,
|
|
3360
3369
|
signal: b
|
|
3361
3370
|
});
|
|
3362
|
-
}, e[10] = p, e[11] =
|
|
3363
|
-
const
|
|
3371
|
+
}, e[10] = p, e[11] = y, e[12] = n, e[13] = g) : g = e[13];
|
|
3372
|
+
const h = !!y && m;
|
|
3364
3373
|
let T;
|
|
3365
|
-
return e[14] !== d || e[15] !==
|
|
3374
|
+
return e[14] !== d || e[15] !== g || e[16] !== h || e[17] !== c ? (T = {
|
|
3366
3375
|
queryKey: d,
|
|
3367
|
-
queryFn:
|
|
3368
|
-
enabled:
|
|
3376
|
+
queryFn: g,
|
|
3377
|
+
enabled: h,
|
|
3369
3378
|
...c
|
|
3370
|
-
}, e[14] = d, e[15] =
|
|
3379
|
+
}, e[14] = d, e[15] = g, e[16] = h, e[17] = c, e[18] = T) : T = e[18], se(T);
|
|
3371
3380
|
}
|
|
3372
3381
|
function ro(r) {
|
|
3373
3382
|
const e = D(6);
|
|
@@ -3394,41 +3403,41 @@ function io(r) {
|
|
|
3394
3403
|
let l;
|
|
3395
3404
|
e[2] !== o ? (l = o === void 0 ? [] : o, e[2] = o, e[3] = l) : l = e[3];
|
|
3396
3405
|
const c = l;
|
|
3397
|
-
let g;
|
|
3398
|
-
e[4] !== t || e[5] !== c ? (g = /* @__PURE__ */ N(fn, { values: c, children: t }), e[4] = t, e[5] = c, e[6] = g) : g = e[6];
|
|
3399
|
-
let p;
|
|
3400
|
-
e[7] !== a || e[8] !== g ? (p = /* @__PURE__ */ N(Ws, { values: a, children: g }), e[7] = a, e[8] = g, e[9] = p) : p = e[9];
|
|
3401
3406
|
let m;
|
|
3402
|
-
|
|
3407
|
+
e[4] !== t || e[5] !== c ? (m = /* @__PURE__ */ N(fn, { values: c, children: t }), e[4] = t, e[5] = c, e[6] = m) : m = e[6];
|
|
3408
|
+
let p;
|
|
3409
|
+
e[7] !== a || e[8] !== m ? (p = /* @__PURE__ */ N(Ws, { values: a, children: m }), e[7] = a, e[8] = m, e[9] = p) : p = e[9];
|
|
3410
|
+
let y;
|
|
3411
|
+
return e[10] !== s || e[11] !== p ? (y = /* @__PURE__ */ N(Bs, { values: s, children: p }), e[10] = s, e[11] = p, e[12] = y) : y = e[12], y;
|
|
3403
3412
|
}
|
|
3404
3413
|
function ao(r, e) {
|
|
3405
3414
|
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
3415
|
id: c,
|
|
3407
|
-
visible:
|
|
3416
|
+
visible: m,
|
|
3408
3417
|
...p
|
|
3409
3418
|
}) => {
|
|
3410
3419
|
s(c, {
|
|
3411
3420
|
props: {
|
|
3412
|
-
visible:
|
|
3421
|
+
visible: m
|
|
3413
3422
|
},
|
|
3414
3423
|
legend: p
|
|
3415
3424
|
});
|
|
3416
3425
|
}, [s]), a = Q(({
|
|
3417
3426
|
id: c,
|
|
3418
|
-
collapsed:
|
|
3427
|
+
collapsed: m
|
|
3419
3428
|
}) => {
|
|
3420
3429
|
s(c, {
|
|
3421
3430
|
legend: {
|
|
3422
|
-
collapsed:
|
|
3431
|
+
collapsed: m
|
|
3423
3432
|
}
|
|
3424
3433
|
});
|
|
3425
3434
|
}, [s]), l = Q(({
|
|
3426
3435
|
id: c,
|
|
3427
|
-
opacity:
|
|
3436
|
+
opacity: m
|
|
3428
3437
|
}) => {
|
|
3429
3438
|
s(c, {
|
|
3430
3439
|
props: {
|
|
3431
|
-
opacity:
|
|
3440
|
+
opacity: m
|
|
3432
3441
|
}
|
|
3433
3442
|
});
|
|
3434
3443
|
}, [s]);
|
|
@@ -3442,33 +3451,33 @@ function ao(r, e) {
|
|
|
3442
3451
|
function lo({
|
|
3443
3452
|
mapId: r
|
|
3444
3453
|
}) {
|
|
3445
|
-
const [e, t] = oe(void 0), [s, n] = oe(!1), o = $((
|
|
3454
|
+
const [e, t] = oe(void 0), [s, n] = oe(!1), o = $((h) => {
|
|
3446
3455
|
var T;
|
|
3447
|
-
return (T =
|
|
3448
|
-
}), i = $((
|
|
3456
|
+
return (T = h.maps[r]) == null ? void 0 : T.basemap;
|
|
3457
|
+
}), i = $((h) => h.getDeckInstance), a = $((h) => h.getOverlayInstance), l = $((h) => h.areLayersLoaded[r]), m = $((h) => {
|
|
3449
3458
|
var T;
|
|
3450
|
-
return (T =
|
|
3459
|
+
return (T = h.maps[r]) == null ? void 0 : T.isLoaded;
|
|
3451
3460
|
}) && l, {
|
|
3452
3461
|
type: p
|
|
3453
|
-
} = ye[o],
|
|
3454
|
-
const
|
|
3462
|
+
} = ye[o], y = p === te.googleMaps, d = Q(async () => {
|
|
3463
|
+
const h = i(r), T = a(r);
|
|
3455
3464
|
try {
|
|
3456
3465
|
const f = document.createElement("canvas");
|
|
3457
|
-
f.width =
|
|
3466
|
+
f.width = h.width ?? 0, f.height = h.height ?? 0;
|
|
3458
3467
|
const b = f.getContext("2d");
|
|
3459
|
-
if (
|
|
3468
|
+
if (y) {
|
|
3460
3469
|
const E = T;
|
|
3461
3470
|
if (E.getRenderingType() !== "RASTER")
|
|
3462
3471
|
throw new Error("Only raster type is supported for Google Maps");
|
|
3463
3472
|
const w = await gs(E.getDiv(), {
|
|
3464
3473
|
useCORS: !0
|
|
3465
3474
|
});
|
|
3466
|
-
b == null || b.drawImage(w, 0, 0,
|
|
3475
|
+
b == null || b.drawImage(w, 0, 0, h.width, h.height);
|
|
3467
3476
|
} else {
|
|
3468
3477
|
const E = T;
|
|
3469
|
-
E.redraw(), b == null || b.drawImage(E.getMap().getCanvas(), 0, 0,
|
|
3478
|
+
E.redraw(), b == null || b.drawImage(E.getMap().getCanvas(), 0, 0, h.width, h.height);
|
|
3470
3479
|
}
|
|
3471
|
-
|
|
3480
|
+
h == null || h.redraw("screenshot"), b == null || b.drawImage(h.getCanvas(), 0, 0, h.width, h.height);
|
|
3472
3481
|
const S = f.toDataURL();
|
|
3473
3482
|
t(S);
|
|
3474
3483
|
} catch (f) {
|
|
@@ -3476,11 +3485,11 @@ function lo({
|
|
|
3476
3485
|
} finally {
|
|
3477
3486
|
n(!1);
|
|
3478
3487
|
}
|
|
3479
|
-
}, [i,
|
|
3488
|
+
}, [i, y, r, a]);
|
|
3480
3489
|
return {
|
|
3481
3490
|
takeScreenshot: Q(() => {
|
|
3482
|
-
n(!0),
|
|
3483
|
-
}, [d,
|
|
3491
|
+
n(!0), m && d();
|
|
3492
|
+
}, [d, m]),
|
|
3484
3493
|
isLoading: s,
|
|
3485
3494
|
screenshot: e
|
|
3486
3495
|
};
|
|
@@ -3504,13 +3513,13 @@ function co(r) {
|
|
|
3504
3513
|
mapId: t
|
|
3505
3514
|
}, e[4] = t, e[5] = a) : a = e[5];
|
|
3506
3515
|
const l = lr(a), c = i ?? l ?? n;
|
|
3507
|
-
let
|
|
3508
|
-
return e[6] !== i || e[7] !== l || e[8] !== c || e[9] !== n ? (
|
|
3516
|
+
let m;
|
|
3517
|
+
return e[6] !== i || e[7] !== l || e[8] !== c || e[9] !== n ? (m = {
|
|
3509
3518
|
spatialFilter: c,
|
|
3510
3519
|
staticSpatialFilter: l,
|
|
3511
3520
|
lassoToolsSpatialFilter: i,
|
|
3512
3521
|
viewportSpatialFilter: n
|
|
3513
|
-
}, e[6] = i, e[7] = l, e[8] = c, e[9] = n, e[10] =
|
|
3522
|
+
}, e[6] = i, e[7] = l, e[8] = c, e[9] = n, e[10] = m) : m = e[10], m;
|
|
3514
3523
|
}
|
|
3515
3524
|
function rr(r) {
|
|
3516
3525
|
const e = D(4), {
|
|
@@ -3623,11 +3632,11 @@ function uo({
|
|
|
3623
3632
|
getTitle: l = dr,
|
|
3624
3633
|
getValue: c = pr
|
|
3625
3634
|
}) {
|
|
3626
|
-
const
|
|
3627
|
-
const
|
|
3635
|
+
const m = o ? l(o) : "", y = t.reduce((d, g) => {
|
|
3636
|
+
const h = e[g], T = r[g], f = c(T, s, h), b = n ? i(g) : "";
|
|
3628
3637
|
return d + a(b, f);
|
|
3629
3638
|
}, "");
|
|
3630
|
-
return
|
|
3639
|
+
return m + y;
|
|
3631
3640
|
}
|
|
3632
3641
|
function dr(r) {
|
|
3633
3642
|
return `<h3 style="margin: 0"><strong>${r}</strong></h3></br>`;
|
|
@@ -3679,26 +3688,26 @@ function po(r) {
|
|
|
3679
3688
|
} = $(n);
|
|
3680
3689
|
let l;
|
|
3681
3690
|
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
|
|
3691
|
+
const c = $(l), m = $(br), p = $(gr), y = $(hr), d = !c;
|
|
3692
|
+
let g;
|
|
3693
|
+
e[4] !== s || e[5] !== m ? (g = (w) => m(s, w), e[4] = s, e[5] = m, e[6] = g) : g = e[6];
|
|
3694
|
+
const h = g;
|
|
3686
3695
|
let T;
|
|
3687
3696
|
e[7] !== p || e[8] !== s ? (T = (w) => p(s, w), e[7] = p, e[8] = s, e[9] = T) : T = e[9];
|
|
3688
3697
|
const f = T;
|
|
3689
3698
|
let b;
|
|
3690
|
-
e[10] !== s || e[11] !==
|
|
3699
|
+
e[10] !== s || e[11] !== y ? (b = () => y(s), e[10] = s, e[11] = y, e[12] = b) : b = e[12];
|
|
3691
3700
|
const S = b;
|
|
3692
3701
|
let E;
|
|
3693
|
-
return e[13] !== t || e[14] !== i || e[15] !== a || e[16] !== d || e[17] !==
|
|
3702
|
+
return e[13] !== t || e[14] !== i || e[15] !== a || e[16] !== d || e[17] !== h || e[18] !== f || e[19] !== S || e[20] !== o ? (E = t({
|
|
3694
3703
|
zoom: o,
|
|
3695
3704
|
maxZoom: i,
|
|
3696
3705
|
minZoom: a,
|
|
3697
3706
|
isLoading: d,
|
|
3698
|
-
setZoom:
|
|
3707
|
+
setZoom: h,
|
|
3699
3708
|
flyTo: f,
|
|
3700
3709
|
resetViewState: S
|
|
3701
|
-
}), e[13] = t, e[14] = i, e[15] = a, e[16] = d, e[17] =
|
|
3710
|
+
}), e[13] = t, e[14] = i, e[15] = a, e[16] = d, e[17] = h, e[18] = f, e[19] = S, e[20] = o, e[21] = E) : E = e[21], E;
|
|
3702
3711
|
}
|
|
3703
3712
|
function hr(r) {
|
|
3704
3713
|
return r.resetViewState;
|
|
@@ -3723,11 +3732,11 @@ async function vr({
|
|
|
3723
3732
|
params: l,
|
|
3724
3733
|
apiVersion: c = Ke
|
|
3725
3734
|
}) {
|
|
3726
|
-
const
|
|
3735
|
+
const m = `${r}/${c}/stats/${e}/${n}`;
|
|
3727
3736
|
return At({
|
|
3728
3737
|
accessToken: t,
|
|
3729
3738
|
signal: o,
|
|
3730
|
-
url:
|
|
3739
|
+
url: m,
|
|
3731
3740
|
method: de.get,
|
|
3732
3741
|
params: {
|
|
3733
3742
|
q: s,
|
|
@@ -3773,14 +3782,14 @@ function mo(r) {
|
|
|
3773
3782
|
} = r;
|
|
3774
3783
|
let l;
|
|
3775
3784
|
e[0] !== a ? (l = a === void 0 ? {} : a, e[0] = a, e[1] = l) : l = e[1];
|
|
3776
|
-
let c,
|
|
3785
|
+
let c, m;
|
|
3777
3786
|
e[2] !== l ? ({
|
|
3778
3787
|
enabled: c,
|
|
3779
|
-
...
|
|
3780
|
-
} = l, e[2] = l, e[3] = c, e[4] =
|
|
3788
|
+
...m
|
|
3789
|
+
} = l, e[2] = l, e[3] = c, e[4] = m) : (c = e[3], m = e[4]);
|
|
3781
3790
|
const p = c === void 0 ? !0 : c;
|
|
3782
|
-
let
|
|
3783
|
-
e[5] !== s || e[6] !== t ? (
|
|
3791
|
+
let y;
|
|
3792
|
+
e[5] !== s || e[6] !== t ? (y = [t, s], e[5] = s, e[6] = t, e[7] = y) : y = e[7];
|
|
3784
3793
|
let d;
|
|
3785
3794
|
e[8] !== n || e[9] !== s || e[10] !== i || e[11] !== o || e[12] !== t ? (d = () => wr({
|
|
3786
3795
|
source: t,
|
|
@@ -3789,19 +3798,19 @@ function mo(r) {
|
|
|
3789
3798
|
accessToken: n,
|
|
3790
3799
|
fetcherOptions: i
|
|
3791
3800
|
}), 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] !==
|
|
3794
|
-
queryKey:
|
|
3801
|
+
let g;
|
|
3802
|
+
return e[14] !== p || e[15] !== t || e[16] !== y || e[17] !== d || e[18] !== m ? (g = {
|
|
3803
|
+
queryKey: y,
|
|
3795
3804
|
queryFn: d,
|
|
3796
|
-
select(
|
|
3805
|
+
select(h) {
|
|
3797
3806
|
return {
|
|
3798
|
-
...
|
|
3799
|
-
type:
|
|
3807
|
+
...h,
|
|
3808
|
+
type: h.type.toLowerCase()
|
|
3800
3809
|
};
|
|
3801
3810
|
},
|
|
3802
3811
|
enabled: !!t && p,
|
|
3803
|
-
...
|
|
3804
|
-
}, e[14] = p, e[15] = t, e[16] =
|
|
3812
|
+
...m
|
|
3813
|
+
}, e[14] = p, e[15] = t, e[16] = y, e[17] = d, e[18] = m, e[19] = g) : g = e[19], se(g);
|
|
3805
3814
|
}
|
|
3806
3815
|
function wr({
|
|
3807
3816
|
source: r,
|
|
@@ -3858,7 +3867,7 @@ async function Tr({
|
|
|
3858
3867
|
});
|
|
3859
3868
|
if (!((c = (l = (a = n == null ? void 0 : n.tilestats) == null ? void 0 : a.layers) == null ? void 0 : l[0]) != null && c.attributes))
|
|
3860
3869
|
throw new Error(`${s} not found in tileset attributes`);
|
|
3861
|
-
const i = n.tilestats.layers[0].attributes.find((
|
|
3870
|
+
const i = n.tilestats.layers[0].attributes.find((m) => m.attribute === s);
|
|
3862
3871
|
if (!i)
|
|
3863
3872
|
throw new Error(`${s} not found in tileset attributes`);
|
|
3864
3873
|
return i;
|