@carto/ps-react-maps 3.7.2 → 3.8.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 +662 -640
- package/dist/index.js.map +1 -1
- package/dist/types/basemap-controls.d.ts +2 -0
- package/dist/types/index.d.ts +2 -1
- package/dist/types/types.d.ts +8 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -2,16 +2,16 @@ var Ct = Object.defineProperty;
|
|
|
2
2
|
var Dt = (r, e, t) => e in r ? Ct(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
|
-
import { c as
|
|
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 Ut, useMap as
|
|
8
|
-
import
|
|
9
|
-
import { useMap as pt, APIProvider as
|
|
10
|
-
import { GoogleMapsOverlay as
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
7
|
+
import { MapProvider as Rt, Map as Ut, useMap as $t } from "react-map-gl/maplibre";
|
|
8
|
+
import xt from "@deck.gl/react";
|
|
9
|
+
import { useMap as pt, APIProvider as Bt, Map as jt } from "@vis.gl/react-google-maps";
|
|
10
|
+
import { GoogleMapsOverlay as qt } from "@deck.gl/google-maps";
|
|
11
|
+
import { createStore as ze, useStore as Qe, create as mt } from "zustand";
|
|
12
|
+
import { FlyToInterpolator as Vt, WebMercatorViewport as It } from "@deck.gl/core";
|
|
13
|
+
import { CompositeMode as Nt, TranslateMode as Ht, ModifyMode as Gt, DrawPolygonByDraggingMode as zt, DrawCircleFromCenterMode as yt, DrawRectangleMode as Qt, DrawPolygonMode as Wt, EditableGeoJsonLayer as Kt, MeasureAreaMode as Zt, getPickedEditHandle as Yt, MeasureDistanceMode as Xt, ViewMode as Jt } from "@deck.gl-community/editable-layers";
|
|
14
|
+
import { DataFilterExtension as es, MaskExtension as ts } from "@deck.gl/extensions";
|
|
15
15
|
import { EventManager as ss } from "mjolnir.js";
|
|
16
16
|
import { GeoJsonLayer as ns } from "@deck.gl/layers";
|
|
17
17
|
import { useShallow as ht } from "zustand/shallow";
|
|
@@ -78,7 +78,7 @@ function vs(r) {
|
|
|
78
78
|
} : null;
|
|
79
79
|
}
|
|
80
80
|
function Ss(r) {
|
|
81
|
-
const e =
|
|
81
|
+
const e = D(42);
|
|
82
82
|
let t, s, n, o, i, a, l, c, b, p, y, d;
|
|
83
83
|
e[0] !== r ? ({
|
|
84
84
|
instanceRef: i,
|
|
@@ -105,32 +105,32 @@ function Ss(r) {
|
|
|
105
105
|
});
|
|
106
106
|
}, m = [c], e[13] = c, e[14] = g, e[15] = m) : (g = e[14], m = e[15]), z(g, m);
|
|
107
107
|
let S, f;
|
|
108
|
-
e[16] !== a ? (f = a.filter(
|
|
108
|
+
e[16] !== a ? (f = a.filter(Es).map(Ts), e[16] = a, e[17] = f) : f = e[17], S = f;
|
|
109
109
|
const h = S, w = i;
|
|
110
|
-
let
|
|
111
|
-
e[18] !== c ? (
|
|
110
|
+
let E;
|
|
111
|
+
e[18] !== c ? (E = () => c({
|
|
112
112
|
type: "deckgl",
|
|
113
113
|
value: !0
|
|
114
|
-
}), e[18] = c, e[19] =
|
|
114
|
+
}), e[18] = c, e[19] = E) : E = e[19];
|
|
115
115
|
let T;
|
|
116
116
|
e[20] !== y ? (T = {
|
|
117
117
|
depthTest: !1,
|
|
118
118
|
...y
|
|
119
119
|
}, e[20] = y, e[21] = T) : T = e[21];
|
|
120
|
-
let
|
|
121
|
-
e[22] !== p ? (
|
|
120
|
+
let _;
|
|
121
|
+
e[22] !== p ? (_ = /* @__PURE__ */ N(_s, { overlayRef: p }), e[22] = p, e[23] = _) : _ = e[23];
|
|
122
122
|
let k;
|
|
123
123
|
e[24] !== c ? (k = () => c({
|
|
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 ? (
|
|
127
|
+
let $;
|
|
128
|
+
e[26] !== l || e[27] !== k ? ($ = /* @__PURE__ */ N(Ut, { reuseMaps: !0, mapStyle: l, onLoad: k, onRender: ws }), e[26] = l, e[27] = k, e[28] = $) : $ = e[28];
|
|
129
129
|
let C;
|
|
130
|
-
return e[29] !== h || e[30] !== t || e[31] !== s || e[32] !== n || e[33] !== o || e[34] !== b || e[35] !== d || e[36] !==
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
] }) }) }), e[29] = h, e[30] = t, e[31] = s, e[32] = n, e[33] = o, e[34] = b, e[35] = d, e[36] =
|
|
130
|
+
return e[29] !== h || e[30] !== t || e[31] !== s || e[32] !== n || e[33] !== o || e[34] !== b || e[35] !== d || e[36] !== $ || e[37] !== w || e[38] !== E || e[39] !== T || e[40] !== _ ? (C = /* @__PURE__ */ N(Rt, { children: /* @__PURE__ */ N("div", { className: "deckgl-map", children: /* @__PURE__ */ ft(xt, { controller: t, id: o, ref: w, layers: h, getCursor: s, getTooltip: n, onLoad: E, onViewStateChange: b, parameters: T, ...d, children: [
|
|
131
|
+
_,
|
|
132
|
+
$
|
|
133
|
+
] }) }) }), e[29] = h, e[30] = t, e[31] = s, e[32] = n, e[33] = o, e[34] = b, e[35] = d, e[36] = $, e[37] = w, e[38] = E, e[39] = T, e[40] = _, e[41] = C) : C = e[41], C;
|
|
134
134
|
}
|
|
135
135
|
function ws() {
|
|
136
136
|
const r = document.querySelector(".maplibregl-compact-show");
|
|
@@ -143,22 +143,22 @@ function Ts(r) {
|
|
|
143
143
|
} = r;
|
|
144
144
|
return new e(t);
|
|
145
145
|
}
|
|
146
|
-
function
|
|
146
|
+
function Es(r) {
|
|
147
147
|
return !!(r != null && r.type);
|
|
148
148
|
}
|
|
149
|
-
function
|
|
150
|
-
const e =
|
|
149
|
+
function _s(r) {
|
|
150
|
+
const e = D(3), {
|
|
151
151
|
overlayRef: t
|
|
152
152
|
} = r, {
|
|
153
153
|
default: s
|
|
154
|
-
} =
|
|
154
|
+
} = $t();
|
|
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
|
}
|
|
158
158
|
const Ms = (r) => {
|
|
159
|
-
const e =
|
|
159
|
+
const e = D(9);
|
|
160
160
|
let t, s;
|
|
161
|
-
e[0] === Symbol.for("react.memo_cache_sentinel") ? (s = new
|
|
161
|
+
e[0] === Symbol.for("react.memo_cache_sentinel") ? (s = new qt({
|
|
162
162
|
interleaved: !0
|
|
163
163
|
}), e[0] = s) : s = e[0], t = s;
|
|
164
164
|
const n = t, o = pt();
|
|
@@ -201,45 +201,45 @@ function Ps({
|
|
|
201
201
|
value: !1
|
|
202
202
|
});
|
|
203
203
|
}, [c]);
|
|
204
|
-
const y = re(() => s.filter((
|
|
205
|
-
type:
|
|
204
|
+
const y = re(() => s.filter((E) => !!(E != null && E.type)).map(({
|
|
205
|
+
type: E,
|
|
206
206
|
props: T
|
|
207
|
-
}) => new
|
|
207
|
+
}) => new E(T)), [s]), d = Q(({
|
|
208
208
|
detail: {
|
|
209
|
-
center:
|
|
209
|
+
center: E,
|
|
210
210
|
zoom: T,
|
|
211
|
-
heading:
|
|
211
|
+
heading: _,
|
|
212
212
|
tilt: k
|
|
213
213
|
}
|
|
214
214
|
}) => ({
|
|
215
|
-
latitude:
|
|
216
|
-
longitude:
|
|
215
|
+
latitude: E.lat,
|
|
216
|
+
longitude: E.lng,
|
|
217
217
|
zoom: T - 1,
|
|
218
|
-
bearing:
|
|
218
|
+
bearing: _,
|
|
219
219
|
pitch: k
|
|
220
|
-
}), []), g = Q((
|
|
221
|
-
const T = e == null ? void 0 : e.current,
|
|
220
|
+
}), []), g = Q((E) => {
|
|
221
|
+
const T = e == null ? void 0 : e.current, _ = T == null ? void 0 : T._deck, k = {
|
|
222
222
|
// @ts-expect-error accessing protected props
|
|
223
|
-
...
|
|
224
|
-
...
|
|
225
|
-
},
|
|
223
|
+
..._ == null ? void 0 : _.viewState,
|
|
224
|
+
...E
|
|
225
|
+
}, $ = {
|
|
226
226
|
latitude: k.latitude,
|
|
227
227
|
longitude: k.longitude,
|
|
228
228
|
zoom: k.zoom,
|
|
229
229
|
pitch: k.pitch,
|
|
230
230
|
bearing: k.bearing,
|
|
231
231
|
// @ts-expect-error - `width` and `height` is not in the types
|
|
232
|
-
width:
|
|
233
|
-
height:
|
|
232
|
+
width: _ == null ? void 0 : _.width,
|
|
233
|
+
height: _ == null ? void 0 : _.height
|
|
234
234
|
};
|
|
235
235
|
b == null || b({
|
|
236
|
-
viewState:
|
|
236
|
+
viewState: $,
|
|
237
237
|
interactionState: {
|
|
238
238
|
isZooming: !0
|
|
239
239
|
}
|
|
240
240
|
});
|
|
241
241
|
}, [e, b]);
|
|
242
|
-
return /* @__PURE__ */ N(
|
|
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
243
|
lat: ((m = p.initialViewState) == null ? void 0 : m.latitude) ?? 0,
|
|
244
244
|
lng: ((S = p.initialViewState) == null ? void 0 : S.longitude) ?? 0
|
|
245
245
|
}, zoom: (((f = p.initialViewState) == null ? void 0 : f.zoom) ?? 0) + 1, tilt: (h = p.initialViewState) == null ? void 0 : h.pitch, heading: (w = p.initialViewState) == null ? void 0 : w.bearing, onTilesLoaded: () => {
|
|
@@ -247,7 +247,7 @@ function Ps({
|
|
|
247
247
|
type: "load",
|
|
248
248
|
value: !0
|
|
249
249
|
}), g(p.initialViewState);
|
|
250
|
-
}, onBoundsChanged: (
|
|
250
|
+
}, onBoundsChanged: (E) => g(d(E)), onZoomChanged: (E) => g(d(E)), children: [
|
|
251
251
|
/* @__PURE__ */ N(Ls, { id: r, overlayRef: a }),
|
|
252
252
|
/* @__PURE__ */ N(Ms, { id: r, instanceRef: e, layers: y, onLoad: () => {
|
|
253
253
|
c({
|
|
@@ -262,7 +262,7 @@ function Ps({
|
|
|
262
262
|
] }) }) });
|
|
263
263
|
}
|
|
264
264
|
function Ls(r) {
|
|
265
|
-
const e =
|
|
265
|
+
const e = D(3), {
|
|
266
266
|
id: t,
|
|
267
267
|
overlayRef: s
|
|
268
268
|
} = r, n = pt(t);
|
|
@@ -270,7 +270,7 @@ function Ls(r) {
|
|
|
270
270
|
return e[0] !== n ? (o = () => n, i = [n], e[0] = n, e[1] = o, e[2] = i) : (o = e[1], i = e[2]), Ne(s, o, i), null;
|
|
271
271
|
}
|
|
272
272
|
function Os(r) {
|
|
273
|
-
const e =
|
|
273
|
+
const e = D(46);
|
|
274
274
|
let t, s, n, o, i, a, l, c, b, p, y, d;
|
|
275
275
|
e[0] !== r ? ({
|
|
276
276
|
instanceRef: s,
|
|
@@ -289,20 +289,20 @@ function Os(r) {
|
|
|
289
289
|
const g = a === void 0 ? J.positron : a, m = l === void 0 ? !0 : l, S = c === void 0 ? "deck-gl-map" : c;
|
|
290
290
|
let f;
|
|
291
291
|
e[13] !== b ? (f = b === void 0 ? [] : b, e[13] = b, e[14] = f) : f = e[14];
|
|
292
|
-
const h = f, w = p === void 0 ? bs : p,
|
|
293
|
-
let
|
|
294
|
-
e[15] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
295
|
-
const [k,
|
|
292
|
+
const h = f, w = p === void 0 ? bs : p, E = y === void 0 ? vs : y, T = d === void 0 ? ks : d;
|
|
293
|
+
let _;
|
|
294
|
+
e[15] === Symbol.for("react.memo_cache_sentinel") ? (_ = [!1, !1], e[15] = _) : _ = e[15];
|
|
295
|
+
const [k, $] = oe(_);
|
|
296
296
|
let C;
|
|
297
297
|
e[16] !== k ? (C = k.every(Fs), e[16] = k, e[17] = C) : C = e[17];
|
|
298
298
|
const j = C, {
|
|
299
|
-
url:
|
|
300
|
-
type:
|
|
301
|
-
} = ye[g], M =
|
|
299
|
+
url: B,
|
|
300
|
+
type: x
|
|
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;
|
|
305
|
-
|
|
305
|
+
$((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] !== g || e[24] !== m || e[25] !== w || e[26] !==
|
|
313
|
+
return e[23] !== g || e[24] !== m || e[25] !== w || e[26] !== E || e[27] !== t || e[28] !== S || e[29] !== s || e[30] !== h || e[31] !== T || e[32] !== o || e[33] !== i ? (L = /* @__PURE__ */ N(Ps, { instanceRef: s, overlayRef: o, controller: m, id: S, basemap: g, layers: h, gmapsProps: t, getCursor: w, getTooltip: E, onLoad: u, onViewStateChange: T, ...i }), e[23] = g, e[24] = m, e[25] = w, e[26] = E, e[27] = t, e[28] = S, e[29] = s, e[30] = h, e[31] = T, e[32] = o, e[33] = i, e[34] = L) : L = e[34], L;
|
|
314
314
|
}
|
|
315
315
|
let A;
|
|
316
|
-
return e[35] !== m || e[36] !== w || e[37] !==
|
|
316
|
+
return e[35] !== m || e[36] !== w || e[37] !== E || e[38] !== S || e[39] !== s || e[40] !== h || e[41] !== B || e[42] !== T || e[43] !== o || e[44] !== i ? (A = /* @__PURE__ */ N(Ss, { instanceRef: s, overlayRef: o, controller: m, id: S, layers: h, mapStyle: B, getCursor: w, getTooltip: E, onLoad: u, onViewStateChange: T, ...i }), e[35] = m, e[36] = w, e[37] = E, e[38] = S, e[39] = s, e[40] = h, e[41] = B, e[42] = T, e[43] = o, e[44] = i, e[45] = A) : A = e[45], A;
|
|
317
317
|
}
|
|
318
318
|
function Fs(r) {
|
|
319
319
|
return r;
|
|
@@ -321,139 +321,12 @@ function Fs(r) {
|
|
|
321
321
|
function ks() {
|
|
322
322
|
return null;
|
|
323
323
|
}
|
|
324
|
-
const
|
|
325
|
-
addFeature: "addFeature",
|
|
326
|
-
addTentativePosition: "addTentativePosition",
|
|
327
|
-
updateTentativeFeature: "updateTentativeFeature",
|
|
328
|
-
cancel: "cancelFeature",
|
|
329
|
-
finish: "finish",
|
|
330
|
-
addPosition: "addPosition"
|
|
331
|
-
};
|
|
332
|
-
class As extends Vt {
|
|
333
|
-
constructor() {
|
|
334
|
-
super([new It(), new Nt()]);
|
|
335
|
-
}
|
|
336
|
-
handleKeyUp(e, t) {
|
|
337
|
-
super.handleKeyUp(e, t), e.key === "Enter" && (this.resetClickSequence(), t.onEdit({
|
|
338
|
-
updatedData: t.data,
|
|
339
|
-
editType: Y.addFeature,
|
|
340
|
-
editContext: {}
|
|
341
|
-
}));
|
|
342
|
-
}
|
|
343
|
-
}
|
|
344
|
-
const ce = "lassoLayer", Le = "maskLayer", Cs = {
|
|
345
|
-
id: ce,
|
|
346
|
-
billboard: !1,
|
|
347
|
-
editHandlePointRadiusUnits: "pixels",
|
|
348
|
-
editHandlePointRadiusMinPixels: 1,
|
|
349
|
-
editHandlePointRadiusMaxPixels: 12,
|
|
350
|
-
editHandlePointStrokeWidth: 3,
|
|
351
|
-
getEditHandlePointRadius: 3,
|
|
352
|
-
stroked: !0,
|
|
353
|
-
filled: !0,
|
|
354
|
-
lineWidthUnits: "pixels",
|
|
355
|
-
getLineWidth: 2,
|
|
356
|
-
lineWidthMinPixels: 2
|
|
357
|
-
}, Je = {
|
|
358
|
-
editing: {
|
|
359
|
-
border: [3, 111, 226, 255],
|
|
360
|
-
fill: [3, 111, 226, 20.4],
|
|
361
|
-
point: [255, 255, 255, 255]
|
|
362
|
-
},
|
|
363
|
-
finished: {
|
|
364
|
-
border: [71, 219, 153, 255],
|
|
365
|
-
fill: [71, 219, 153, 0]
|
|
366
|
-
}
|
|
367
|
-
}, xe = {
|
|
368
|
-
styles: {
|
|
369
|
-
colors: {
|
|
370
|
-
editing: Je.editing,
|
|
371
|
-
finished: Je.finished
|
|
372
|
-
}
|
|
373
|
-
},
|
|
374
|
-
labels: {
|
|
375
|
-
mask: "Mask"
|
|
376
|
-
}
|
|
377
|
-
}, Ds = [new Xt({
|
|
378
|
-
filterSize: 1
|
|
379
|
-
})], Te = {
|
|
380
|
-
id: Le,
|
|
381
|
-
operation: "mask",
|
|
382
|
-
pickable: !1,
|
|
383
|
-
visible: !0,
|
|
384
|
-
extensions: Ds,
|
|
385
|
-
filterRange: [1, 1]
|
|
386
|
-
}, $e = {
|
|
387
|
-
polygon: {
|
|
388
|
-
value: "polygon",
|
|
389
|
-
mode: zt
|
|
390
|
-
},
|
|
391
|
-
rectangle: {
|
|
392
|
-
value: "rectangle",
|
|
393
|
-
mode: Gt
|
|
394
|
-
},
|
|
395
|
-
circle: {
|
|
396
|
-
value: "circle",
|
|
397
|
-
mode: mt
|
|
398
|
-
},
|
|
399
|
-
lasso: {
|
|
400
|
-
value: "lasso",
|
|
401
|
-
mode: Ht
|
|
402
|
-
},
|
|
403
|
-
edit: {
|
|
404
|
-
value: "edit",
|
|
405
|
-
mode: As
|
|
406
|
-
}
|
|
407
|
-
}, pe = yt((r) => ({
|
|
408
|
-
layers: {},
|
|
409
|
-
setLayer: (e, t) => r((s) => {
|
|
410
|
-
var l, c;
|
|
411
|
-
const n = {
|
|
412
|
-
...s.layers
|
|
413
|
-
};
|
|
414
|
-
if (!t)
|
|
415
|
-
return delete n[e], {
|
|
416
|
-
layers: n
|
|
417
|
-
};
|
|
418
|
-
const o = n[e] ?? {
|
|
419
|
-
type: null,
|
|
420
|
-
props: {}
|
|
421
|
-
}, i = [...o.props.extensions ?? [], ...((l = t.props) == null ? void 0 : l.extensions) ?? []].reduce((b, p) => (b.some((y) => y.equals(p)) || b.push(p), b), []), a = o.legend || t.legend ? {
|
|
422
|
-
...o.legend,
|
|
423
|
-
...t.legend
|
|
424
|
-
} : void 0;
|
|
425
|
-
return n[e] = {
|
|
426
|
-
...o,
|
|
427
|
-
...t,
|
|
428
|
-
props: {
|
|
429
|
-
id: e,
|
|
430
|
-
...o.props,
|
|
431
|
-
...t.props,
|
|
432
|
-
updateTriggers: {
|
|
433
|
-
...o.props.updateTriggers ?? {},
|
|
434
|
-
...((c = t.props) == null ? void 0 : c.updateTriggers) ?? {}
|
|
435
|
-
},
|
|
436
|
-
extensions: i
|
|
437
|
-
},
|
|
438
|
-
legend: a
|
|
439
|
-
}, {
|
|
440
|
-
layers: n
|
|
441
|
-
};
|
|
442
|
-
}),
|
|
443
|
-
removeLayer: (e) => r((t) => {
|
|
444
|
-
const s = {
|
|
445
|
-
...t.layers
|
|
446
|
-
};
|
|
447
|
-
return delete s[e], {
|
|
448
|
-
layers: s
|
|
449
|
-
};
|
|
450
|
-
})
|
|
451
|
-
})), Rs = {
|
|
324
|
+
const As = {
|
|
452
325
|
transitionDuration: "auto",
|
|
453
|
-
transitionInterpolator: new
|
|
326
|
+
transitionInterpolator: new Vt({
|
|
454
327
|
curve: 2
|
|
455
328
|
})
|
|
456
|
-
},
|
|
329
|
+
}, Cs = (r) => {
|
|
457
330
|
const e = r.reduce((t, s) => {
|
|
458
331
|
const {
|
|
459
332
|
id: n,
|
|
@@ -550,7 +423,7 @@ const ce = "lassoLayer", Le = "maskLayer", Cs = {
|
|
|
550
423
|
};
|
|
551
424
|
})
|
|
552
425
|
});
|
|
553
|
-
},
|
|
426
|
+
}, Ds = (r) => {
|
|
554
427
|
const e = r.reduce((t, s) => {
|
|
555
428
|
const {
|
|
556
429
|
id: n
|
|
@@ -566,7 +439,7 @@ const ce = "lassoLayer", Le = "maskLayer", Cs = {
|
|
|
566
439
|
}
|
|
567
440
|
}))
|
|
568
441
|
});
|
|
569
|
-
},
|
|
442
|
+
}, Rs = (r) => {
|
|
570
443
|
const e = r.reduce((t, s) => (s.viewState && (t.viewStates[s.id] = s.viewState, t.viewports[s.id] = null), t), {
|
|
571
444
|
viewStates: {},
|
|
572
445
|
viewports: {}
|
|
@@ -577,7 +450,7 @@ const ce = "lassoLayer", Le = "maskLayer", Cs = {
|
|
|
577
450
|
var a;
|
|
578
451
|
const o = s();
|
|
579
452
|
if (!((a = o.maps[n]) != null && a.isLoaded)) return;
|
|
580
|
-
const i = new
|
|
453
|
+
const i = new It(o.viewStates[n]);
|
|
581
454
|
t((l) => ({
|
|
582
455
|
viewports: {
|
|
583
456
|
...l.viewports,
|
|
@@ -623,7 +496,7 @@ const ce = "lassoLayer", Le = "maskLayer", Cs = {
|
|
|
623
496
|
}
|
|
624
497
|
}))
|
|
625
498
|
});
|
|
626
|
-
},
|
|
499
|
+
}, Us = (r, e) => ({
|
|
627
500
|
fitBounds: (t, s, n) => {
|
|
628
501
|
const o = e(), i = o.getViewport(t);
|
|
629
502
|
if (!i) return;
|
|
@@ -637,7 +510,7 @@ const ce = "lassoLayer", Le = "maskLayer", Cs = {
|
|
|
637
510
|
const o = e();
|
|
638
511
|
if (!o.getViewport(t)) return;
|
|
639
512
|
const a = {
|
|
640
|
-
...
|
|
513
|
+
...As,
|
|
641
514
|
...n == null ? void 0 : n.viewStateOptions
|
|
642
515
|
}, l = {
|
|
643
516
|
...s,
|
|
@@ -645,7 +518,7 @@ const ce = "lassoLayer", Le = "maskLayer", Cs = {
|
|
|
645
518
|
};
|
|
646
519
|
o.setViewState(t, l), o.updateViewPort(t);
|
|
647
520
|
}
|
|
648
|
-
}),
|
|
521
|
+
}), $s = (r) => {
|
|
649
522
|
const e = r.reduce((t, s) => (t[s.id] = s.spatialFilter ?? {}, t), {});
|
|
650
523
|
return (t) => ({
|
|
651
524
|
spatialFilter: e,
|
|
@@ -661,20 +534,20 @@ const ce = "lassoLayer", Le = "maskLayer", Cs = {
|
|
|
661
534
|
});
|
|
662
535
|
}
|
|
663
536
|
});
|
|
664
|
-
},
|
|
665
|
-
...
|
|
666
|
-
...
|
|
537
|
+
}, xs = (r) => ze()((...e) => ({
|
|
538
|
+
...Cs(r)(...e),
|
|
539
|
+
...Ds(r)(...e),
|
|
540
|
+
...Rs(r)(...e),
|
|
667
541
|
...$s(r)(...e),
|
|
668
|
-
...
|
|
669
|
-
...qs(...e)
|
|
542
|
+
...Us(...e)
|
|
670
543
|
})), St = He({});
|
|
671
|
-
function
|
|
672
|
-
const e =
|
|
544
|
+
function Bs(r) {
|
|
545
|
+
const e = D(5), {
|
|
673
546
|
children: t,
|
|
674
547
|
values: s
|
|
675
548
|
} = r;
|
|
676
549
|
let n;
|
|
677
|
-
e[0] !== s ? (n =
|
|
550
|
+
e[0] !== s ? (n = xs(s), e[0] = s, e[1] = n) : n = e[1];
|
|
678
551
|
const [o] = oe(n);
|
|
679
552
|
let i;
|
|
680
553
|
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;
|
|
@@ -685,13 +558,163 @@ function U(r) {
|
|
|
685
558
|
throw new Error("Missing MapProvider in the tree");
|
|
686
559
|
return Qe(e, r);
|
|
687
560
|
}
|
|
688
|
-
|
|
561
|
+
function Gr(r) {
|
|
562
|
+
const e = D(9), {
|
|
563
|
+
children: t,
|
|
564
|
+
mapId: s
|
|
565
|
+
} = r;
|
|
566
|
+
let n;
|
|
567
|
+
e[0] !== s ? (n = (b) => b.maps[s], e[0] = s, e[1] = n) : n = e[1];
|
|
568
|
+
const {
|
|
569
|
+
basemap: o
|
|
570
|
+
} = U(n), i = U(js);
|
|
571
|
+
let a;
|
|
572
|
+
e[2] !== s || e[3] !== i ? (a = (b) => i(s, b), e[2] = s, e[3] = i, e[4] = a) : a = e[4];
|
|
573
|
+
const l = a;
|
|
574
|
+
let c;
|
|
575
|
+
return e[5] !== o || e[6] !== t || e[7] !== l ? (c = t({
|
|
576
|
+
basemap: o,
|
|
577
|
+
setBasemap: l
|
|
578
|
+
}), e[5] = o, e[6] = t, e[7] = l, e[8] = c) : c = e[8], c;
|
|
579
|
+
}
|
|
580
|
+
function js(r) {
|
|
581
|
+
return r.setBasemap;
|
|
582
|
+
}
|
|
583
|
+
const Y = {
|
|
584
|
+
addFeature: "addFeature",
|
|
585
|
+
addTentativePosition: "addTentativePosition",
|
|
586
|
+
updateTentativeFeature: "updateTentativeFeature",
|
|
587
|
+
cancel: "cancelFeature",
|
|
588
|
+
finish: "finish",
|
|
589
|
+
addPosition: "addPosition"
|
|
590
|
+
};
|
|
591
|
+
class qs extends Nt {
|
|
592
|
+
constructor() {
|
|
593
|
+
super([new Ht(), new Gt()]);
|
|
594
|
+
}
|
|
595
|
+
handleKeyUp(e, t) {
|
|
596
|
+
super.handleKeyUp(e, t), e.key === "Enter" && (this.resetClickSequence(), t.onEdit({
|
|
597
|
+
updatedData: t.data,
|
|
598
|
+
editType: Y.addFeature,
|
|
599
|
+
editContext: {}
|
|
600
|
+
}));
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
const ce = "lassoLayer", Le = "maskLayer", Vs = {
|
|
604
|
+
id: ce,
|
|
605
|
+
billboard: !1,
|
|
606
|
+
editHandlePointRadiusUnits: "pixels",
|
|
607
|
+
editHandlePointRadiusMinPixels: 1,
|
|
608
|
+
editHandlePointRadiusMaxPixels: 12,
|
|
609
|
+
editHandlePointStrokeWidth: 3,
|
|
610
|
+
getEditHandlePointRadius: 3,
|
|
611
|
+
stroked: !0,
|
|
612
|
+
filled: !0,
|
|
613
|
+
lineWidthUnits: "pixels",
|
|
614
|
+
getLineWidth: 2,
|
|
615
|
+
lineWidthMinPixels: 2
|
|
616
|
+
}, Je = {
|
|
617
|
+
editing: {
|
|
618
|
+
border: [3, 111, 226, 255],
|
|
619
|
+
fill: [3, 111, 226, 20.4],
|
|
620
|
+
point: [255, 255, 255, 255]
|
|
621
|
+
},
|
|
622
|
+
finished: {
|
|
623
|
+
border: [71, 219, 153, 255],
|
|
624
|
+
fill: [71, 219, 153, 0]
|
|
625
|
+
}
|
|
626
|
+
}, $e = {
|
|
627
|
+
styles: {
|
|
628
|
+
colors: {
|
|
629
|
+
editing: Je.editing,
|
|
630
|
+
finished: Je.finished
|
|
631
|
+
}
|
|
632
|
+
},
|
|
633
|
+
labels: {
|
|
634
|
+
mask: "Mask"
|
|
635
|
+
}
|
|
636
|
+
}, Is = [new es({
|
|
637
|
+
filterSize: 1
|
|
638
|
+
})], Te = {
|
|
639
|
+
id: Le,
|
|
640
|
+
operation: "mask",
|
|
641
|
+
pickable: !1,
|
|
642
|
+
visible: !0,
|
|
643
|
+
extensions: Is,
|
|
644
|
+
filterRange: [1, 1]
|
|
645
|
+
}, xe = {
|
|
646
|
+
polygon: {
|
|
647
|
+
value: "polygon",
|
|
648
|
+
mode: Wt
|
|
649
|
+
},
|
|
650
|
+
rectangle: {
|
|
651
|
+
value: "rectangle",
|
|
652
|
+
mode: Qt
|
|
653
|
+
},
|
|
654
|
+
circle: {
|
|
655
|
+
value: "circle",
|
|
656
|
+
mode: yt
|
|
657
|
+
},
|
|
658
|
+
lasso: {
|
|
659
|
+
value: "lasso",
|
|
660
|
+
mode: zt
|
|
661
|
+
},
|
|
662
|
+
edit: {
|
|
663
|
+
value: "edit",
|
|
664
|
+
mode: qs
|
|
665
|
+
}
|
|
666
|
+
}, pe = mt((r) => ({
|
|
667
|
+
layers: {},
|
|
668
|
+
setLayer: (e, t) => r((s) => {
|
|
669
|
+
var l, c;
|
|
670
|
+
const n = {
|
|
671
|
+
...s.layers
|
|
672
|
+
};
|
|
673
|
+
if (!t)
|
|
674
|
+
return delete n[e], {
|
|
675
|
+
layers: n
|
|
676
|
+
};
|
|
677
|
+
const o = n[e] ?? {
|
|
678
|
+
type: null,
|
|
679
|
+
props: {}
|
|
680
|
+
}, i = [...o.props.extensions ?? [], ...((l = t.props) == null ? void 0 : l.extensions) ?? []].reduce((b, p) => (b.some((y) => y.equals(p)) || b.push(p), b), []), a = o.legend || t.legend ? {
|
|
681
|
+
...o.legend,
|
|
682
|
+
...t.legend
|
|
683
|
+
} : void 0;
|
|
684
|
+
return n[e] = {
|
|
685
|
+
...o,
|
|
686
|
+
...t,
|
|
687
|
+
props: {
|
|
688
|
+
id: e,
|
|
689
|
+
...o.props,
|
|
690
|
+
...t.props,
|
|
691
|
+
updateTriggers: {
|
|
692
|
+
...o.props.updateTriggers ?? {},
|
|
693
|
+
...((c = t.props) == null ? void 0 : c.updateTriggers) ?? {}
|
|
694
|
+
},
|
|
695
|
+
extensions: i
|
|
696
|
+
},
|
|
697
|
+
legend: a
|
|
698
|
+
}, {
|
|
699
|
+
layers: n
|
|
700
|
+
};
|
|
701
|
+
}),
|
|
702
|
+
removeLayer: (e) => r((t) => {
|
|
703
|
+
const s = {
|
|
704
|
+
...t.layers
|
|
705
|
+
};
|
|
706
|
+
return delete s[e], {
|
|
707
|
+
layers: s
|
|
708
|
+
};
|
|
709
|
+
})
|
|
710
|
+
}));
|
|
711
|
+
var Ee = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
689
712
|
function wt(r) {
|
|
690
713
|
return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
|
|
691
714
|
}
|
|
692
|
-
var
|
|
693
|
-
function
|
|
694
|
-
if (et) return
|
|
715
|
+
var Be, et;
|
|
716
|
+
function Ns() {
|
|
717
|
+
if (et) return Be;
|
|
695
718
|
et = 1;
|
|
696
719
|
var r = function(h) {
|
|
697
720
|
return e(h) && !t(h);
|
|
@@ -714,8 +737,8 @@ function Is() {
|
|
|
714
737
|
return h.clone !== !1 && h.isMergeableObject(f) ? m(i(f), f, h) : f;
|
|
715
738
|
}
|
|
716
739
|
function l(f, h, w) {
|
|
717
|
-
return f.concat(h).map(function(
|
|
718
|
-
return a(
|
|
740
|
+
return f.concat(h).map(function(E) {
|
|
741
|
+
return a(E, w);
|
|
719
742
|
});
|
|
720
743
|
}
|
|
721
744
|
function c(f, h) {
|
|
@@ -743,31 +766,31 @@ function Is() {
|
|
|
743
766
|
return y(f, h) && !(Object.hasOwnProperty.call(f, h) && Object.propertyIsEnumerable.call(f, h));
|
|
744
767
|
}
|
|
745
768
|
function g(f, h, w) {
|
|
746
|
-
var
|
|
769
|
+
var E = {};
|
|
747
770
|
return w.isMergeableObject(f) && p(f).forEach(function(T) {
|
|
748
|
-
|
|
771
|
+
E[T] = a(f[T], w);
|
|
749
772
|
}), p(h).forEach(function(T) {
|
|
750
|
-
d(f, T) || (y(f, T) && w.isMergeableObject(h[T]) ?
|
|
751
|
-
}),
|
|
773
|
+
d(f, T) || (y(f, T) && w.isMergeableObject(h[T]) ? E[T] = c(T, w)(f[T], h[T], w) : E[T] = a(h[T], w));
|
|
774
|
+
}), E;
|
|
752
775
|
}
|
|
753
776
|
function m(f, h, w) {
|
|
754
777
|
w = w || {}, w.arrayMerge = w.arrayMerge || l, w.isMergeableObject = w.isMergeableObject || r, w.cloneUnlessOtherwiseSpecified = a;
|
|
755
|
-
var
|
|
756
|
-
return
|
|
778
|
+
var E = Array.isArray(h), T = Array.isArray(f), _ = E === T;
|
|
779
|
+
return _ ? E ? w.arrayMerge(f, h, w) : g(f, h, w) : a(h, w);
|
|
757
780
|
}
|
|
758
781
|
m.all = function(h, w) {
|
|
759
782
|
if (!Array.isArray(h))
|
|
760
783
|
throw new Error("first argument should be an array");
|
|
761
|
-
return h.reduce(function(
|
|
762
|
-
return m(
|
|
784
|
+
return h.reduce(function(E, T) {
|
|
785
|
+
return m(E, T, w);
|
|
763
786
|
}, {});
|
|
764
787
|
};
|
|
765
788
|
var S = m;
|
|
766
|
-
return
|
|
789
|
+
return Be = S, Be;
|
|
767
790
|
}
|
|
768
|
-
var
|
|
769
|
-
const ue = /* @__PURE__ */ wt(
|
|
770
|
-
class Tt extends
|
|
791
|
+
var Hs = Ns();
|
|
792
|
+
const ue = /* @__PURE__ */ wt(Hs), tt = ["anyclick", "pointermove", "panstart", "panmove", "panend", "keyup"];
|
|
793
|
+
class Tt extends Kt {
|
|
771
794
|
updateState({
|
|
772
795
|
props: e,
|
|
773
796
|
oldProps: t,
|
|
@@ -803,11 +826,11 @@ class Tt extends Qt {
|
|
|
803
826
|
this.context.deck.eventManager;
|
|
804
827
|
}
|
|
805
828
|
}
|
|
806
|
-
function
|
|
829
|
+
function Gs({
|
|
807
830
|
mode: r,
|
|
808
831
|
...e
|
|
809
832
|
}) {
|
|
810
|
-
const t =
|
|
833
|
+
const t = zs(e);
|
|
811
834
|
return {
|
|
812
835
|
type: Tt,
|
|
813
836
|
props: {
|
|
@@ -816,7 +839,7 @@ function Hs({
|
|
|
816
839
|
}
|
|
817
840
|
};
|
|
818
841
|
}
|
|
819
|
-
function
|
|
842
|
+
function zs({
|
|
820
843
|
layerProps: r,
|
|
821
844
|
onEdit: e,
|
|
822
845
|
getLineColor: t,
|
|
@@ -832,7 +855,7 @@ function Gs({
|
|
|
832
855
|
preventOverlappingLines: !0
|
|
833
856
|
},
|
|
834
857
|
onEdit: e
|
|
835
|
-
}), i = ue(
|
|
858
|
+
}), i = ue(Vs, {
|
|
836
859
|
getTentativeLineColor: t,
|
|
837
860
|
getTentativeFillColor: s,
|
|
838
861
|
getLineColor: t,
|
|
@@ -843,14 +866,14 @@ function Gs({
|
|
|
843
866
|
});
|
|
844
867
|
return ue(i, o);
|
|
845
868
|
}
|
|
846
|
-
const
|
|
869
|
+
const Qs = (r) => ze()((e) => ({
|
|
847
870
|
data: r.reduce((s, n) => {
|
|
848
871
|
const {
|
|
849
872
|
enabled: o = !1,
|
|
850
873
|
mapId: i,
|
|
851
|
-
modeInstance: a = new
|
|
852
|
-
modes: l =
|
|
853
|
-
modeSelected: c =
|
|
874
|
+
modeInstance: a = new xe.polygon.mode(),
|
|
875
|
+
modes: l = xe,
|
|
876
|
+
modeSelected: c = xe.polygon.value,
|
|
854
877
|
values: b = {}
|
|
855
878
|
} = n;
|
|
856
879
|
return s[i] = {
|
|
@@ -936,25 +959,25 @@ const zs = (r) => ze()((e) => ({
|
|
|
936
959
|
}
|
|
937
960
|
}));
|
|
938
961
|
}
|
|
939
|
-
})),
|
|
940
|
-
function
|
|
941
|
-
const e =
|
|
962
|
+
})), Et = He({});
|
|
963
|
+
function Ws(r) {
|
|
964
|
+
const e = D(5), {
|
|
942
965
|
children: t,
|
|
943
966
|
values: s
|
|
944
967
|
} = r;
|
|
945
968
|
let n;
|
|
946
|
-
e[0] !== s ? (n = () =>
|
|
969
|
+
e[0] !== s ? (n = () => Qs(s), e[0] = s, e[1] = n) : n = e[1];
|
|
947
970
|
const [o] = oe(n);
|
|
948
971
|
let i;
|
|
949
|
-
return e[2] !== t || e[3] !== o ? (i = /* @__PURE__ */ N(
|
|
972
|
+
return e[2] !== t || e[3] !== o ? (i = /* @__PURE__ */ N(Et.Provider, { value: o, children: t }), e[2] = t, e[3] = o, e[4] = i) : i = e[4], i;
|
|
950
973
|
}
|
|
951
974
|
function G(r) {
|
|
952
|
-
const e = Ge(
|
|
975
|
+
const e = Ge(Et);
|
|
953
976
|
if (!Object.keys(e).length)
|
|
954
977
|
throw new Error("Missing LassoToolsProvider in the tree");
|
|
955
978
|
return Qe(e, r);
|
|
956
979
|
}
|
|
957
|
-
function
|
|
980
|
+
function Ks({
|
|
958
981
|
mapId: r,
|
|
959
982
|
children: e
|
|
960
983
|
}) {
|
|
@@ -1012,16 +1035,16 @@ function Ws({
|
|
|
1012
1035
|
setModeSelected: y
|
|
1013
1036
|
});
|
|
1014
1037
|
}
|
|
1015
|
-
function
|
|
1038
|
+
function _t({
|
|
1016
1039
|
values: r
|
|
1017
1040
|
}) {
|
|
1018
1041
|
return Object.values(r ?? {}).filter((e) => e.type === "mask");
|
|
1019
1042
|
}
|
|
1020
|
-
const
|
|
1043
|
+
const Zs = as({
|
|
1021
1044
|
length: ls
|
|
1022
1045
|
});
|
|
1023
1046
|
function st(r, e) {
|
|
1024
|
-
return
|
|
1047
|
+
return Zs(r).from(ot[V.meter]).to(ot[e]);
|
|
1025
1048
|
}
|
|
1026
1049
|
const nt = 1e4;
|
|
1027
1050
|
function Oe({
|
|
@@ -1053,7 +1076,7 @@ function Oe({
|
|
|
1053
1076
|
...n
|
|
1054
1077
|
})}`;
|
|
1055
1078
|
}
|
|
1056
|
-
function
|
|
1079
|
+
function zr(r, {
|
|
1057
1080
|
hasDoubleClickZoom: e
|
|
1058
1081
|
}) {
|
|
1059
1082
|
return typeof r == "boolean" ? {
|
|
@@ -1085,7 +1108,7 @@ function Mt(r, e, t) {
|
|
|
1085
1108
|
}
|
|
1086
1109
|
return [];
|
|
1087
1110
|
}
|
|
1088
|
-
class
|
|
1111
|
+
class Ys extends Zt {
|
|
1089
1112
|
constructor() {
|
|
1090
1113
|
super(...arguments);
|
|
1091
1114
|
ee(this, "_isMeasuringSessionFinished", !1);
|
|
@@ -1100,7 +1123,7 @@ class Zs extends Wt {
|
|
|
1100
1123
|
this._isMeasuringSessionFinished && (this._isMeasuringSessionFinished = !1, this.resetClickSequence(), this.area = 0);
|
|
1101
1124
|
const {
|
|
1102
1125
|
picks: n
|
|
1103
|
-
} = t, o =
|
|
1126
|
+
} = t, o = Yt(n), i = this.getClickSequence();
|
|
1104
1127
|
let a = !1;
|
|
1105
1128
|
!o && !this.allowOverlapping(s) && (this.addClickSequence(t), a = !0), this.area = Ye({
|
|
1106
1129
|
type: "Polygon",
|
|
@@ -1204,7 +1227,7 @@ class Zs extends Wt {
|
|
|
1204
1227
|
}) + "2";
|
|
1205
1228
|
}
|
|
1206
1229
|
}
|
|
1207
|
-
class
|
|
1230
|
+
class Xs extends yt {
|
|
1208
1231
|
constructor() {
|
|
1209
1232
|
super(...arguments);
|
|
1210
1233
|
ee(this, "_isMeasuringSessionFinished", !1);
|
|
@@ -1280,7 +1303,7 @@ class Ys extends mt {
|
|
|
1280
1303
|
}) + "2";
|
|
1281
1304
|
}
|
|
1282
1305
|
}
|
|
1283
|
-
class Pt extends
|
|
1306
|
+
class Pt extends Xt {
|
|
1284
1307
|
handleClick(e, t) {
|
|
1285
1308
|
super.handleClick(e, t), t.onEdit({
|
|
1286
1309
|
// data is the same
|
|
@@ -1339,7 +1362,7 @@ class Pt extends Zt {
|
|
|
1339
1362
|
});
|
|
1340
1363
|
}
|
|
1341
1364
|
}
|
|
1342
|
-
const ne = "mapMeasureLayer",
|
|
1365
|
+
const ne = "mapMeasureLayer", Js = {
|
|
1343
1366
|
id: ne,
|
|
1344
1367
|
pickable: !1,
|
|
1345
1368
|
billboard: !1,
|
|
@@ -1388,7 +1411,7 @@ const ne = "mapMeasureLayer", Xs = {
|
|
|
1388
1411
|
"m-km": "m-km",
|
|
1389
1412
|
"ft-mi": "ft-mi",
|
|
1390
1413
|
...V
|
|
1391
|
-
},
|
|
1414
|
+
}, en = {
|
|
1392
1415
|
meters: "meters",
|
|
1393
1416
|
kilometer: "kilometers",
|
|
1394
1417
|
mile: "miles"
|
|
@@ -1445,26 +1468,26 @@ const ne = "mapMeasureLayer", Xs = {
|
|
|
1445
1468
|
value: "feet",
|
|
1446
1469
|
system: "imperial"
|
|
1447
1470
|
}
|
|
1448
|
-
}, it = [Z["m-km"], Z.kilometer, Z.meter, Z["ft-mi"], Z.mile, Z.feet],
|
|
1471
|
+
}, it = [Z["m-km"], Z.kilometer, Z.meter, Z["ft-mi"], Z.mile, Z.feet], tn = [Z["m-km"], Z.kilometer, Z.meter, Z["ft-mi"], Z.mile, Z.feet], sn = {
|
|
1449
1472
|
distance: {
|
|
1450
1473
|
value: "distance",
|
|
1451
1474
|
mode: Pt
|
|
1452
1475
|
},
|
|
1453
1476
|
buffer: {
|
|
1454
1477
|
value: "buffer",
|
|
1455
|
-
mode:
|
|
1478
|
+
mode: Xs
|
|
1456
1479
|
},
|
|
1457
1480
|
area: {
|
|
1458
1481
|
value: "area",
|
|
1459
|
-
mode:
|
|
1482
|
+
mode: Ys
|
|
1460
1483
|
}
|
|
1461
|
-
},
|
|
1484
|
+
}, nn = {
|
|
1462
1485
|
distance: it,
|
|
1463
1486
|
buffer: it,
|
|
1464
|
-
area:
|
|
1487
|
+
area: tn
|
|
1465
1488
|
};
|
|
1466
1489
|
function Lt(r) {
|
|
1467
|
-
const e =
|
|
1490
|
+
const e = D(12), {
|
|
1468
1491
|
mapId: t,
|
|
1469
1492
|
layerId: s
|
|
1470
1493
|
} = r;
|
|
@@ -1479,7 +1502,7 @@ function Lt(r) {
|
|
|
1479
1502
|
var m;
|
|
1480
1503
|
return (m = g.maps[t]) == null ? void 0 : m.isLoaded;
|
|
1481
1504
|
}, e[2] = t, e[3] = i) : i = e[3];
|
|
1482
|
-
const a = U(i), l = U(
|
|
1505
|
+
const a = U(i), l = U(on), c = pe(rn), {
|
|
1483
1506
|
type: b
|
|
1484
1507
|
} = ye[o], p = b === te.googleMaps;
|
|
1485
1508
|
let y, d;
|
|
@@ -1496,22 +1519,22 @@ function Lt(r) {
|
|
|
1496
1519
|
});
|
|
1497
1520
|
}, 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);
|
|
1498
1521
|
}
|
|
1499
|
-
function
|
|
1522
|
+
function rn(r) {
|
|
1500
1523
|
return r.setLayer;
|
|
1501
1524
|
}
|
|
1502
|
-
function
|
|
1525
|
+
function on(r) {
|
|
1503
1526
|
return r.getOverlayInstance;
|
|
1504
1527
|
}
|
|
1505
|
-
const
|
|
1506
|
-
function
|
|
1528
|
+
const an = [ce, Le, ne];
|
|
1529
|
+
function ln({
|
|
1507
1530
|
children: r,
|
|
1508
1531
|
mapId: e,
|
|
1509
1532
|
defaultProps: {
|
|
1510
|
-
styles: t =
|
|
1533
|
+
styles: t = $e.styles,
|
|
1511
1534
|
labels: s
|
|
1512
1535
|
} = {
|
|
1513
|
-
styles:
|
|
1514
|
-
labels:
|
|
1536
|
+
styles: $e.styles,
|
|
1537
|
+
labels: $e.labels
|
|
1515
1538
|
},
|
|
1516
1539
|
layerProps: n = {},
|
|
1517
1540
|
defaultType: o = "mask"
|
|
@@ -1530,13 +1553,13 @@ function an({
|
|
|
1530
1553
|
return (F = M.data[e]) == null ? void 0 : F.modeSelected;
|
|
1531
1554
|
}), y = pe((M) => M.setLayer), d = U((M) => M.addLayers), g = U((M) => M.removeLayers), m = U(ht((M) => {
|
|
1532
1555
|
var F;
|
|
1533
|
-
return (F = M.maps[e]) == null ? void 0 : F.layers.filter((u) => !
|
|
1556
|
+
return (F = M.maps[e]) == null ? void 0 : F.layers.filter((u) => !an.includes(u));
|
|
1534
1557
|
})), S = U((M) => M.getDeckInstance), f = Me({});
|
|
1535
1558
|
Lt({
|
|
1536
1559
|
mapId: e,
|
|
1537
1560
|
layerId: ce
|
|
1538
1561
|
});
|
|
1539
|
-
const h = re(() =>
|
|
1562
|
+
const h = re(() => _t({
|
|
1540
1563
|
values: l
|
|
1541
1564
|
}), [l]), w = re(() => ({
|
|
1542
1565
|
type: "FeatureCollection",
|
|
@@ -1546,7 +1569,7 @@ function an({
|
|
|
1546
1569
|
properties: M.properties,
|
|
1547
1570
|
id: M.id
|
|
1548
1571
|
}))
|
|
1549
|
-
}), [h]),
|
|
1572
|
+
}), [h]), E = re(() => h.filter((M) => M.properties.visible).map((M) => M.id), [h]), [T, _] = oe(w), [k, $] = oe([]), C = Q(() => {
|
|
1550
1573
|
const M = {
|
|
1551
1574
|
...w,
|
|
1552
1575
|
features: w.features.filter((F) => {
|
|
@@ -1554,7 +1577,7 @@ function an({
|
|
|
1554
1577
|
return (u = F.properties) == null ? void 0 : u.visible;
|
|
1555
1578
|
})
|
|
1556
1579
|
};
|
|
1557
|
-
|
|
1580
|
+
_(M);
|
|
1558
1581
|
}, [w]);
|
|
1559
1582
|
z(() => {
|
|
1560
1583
|
C();
|
|
@@ -1563,17 +1586,17 @@ function an({
|
|
|
1563
1586
|
z(() => (d(e, [ce]), () => {
|
|
1564
1587
|
g(e, [ce]);
|
|
1565
1588
|
}), [d, e, g]);
|
|
1566
|
-
const
|
|
1567
|
-
C(),
|
|
1568
|
-
}, [e, C, a]),
|
|
1589
|
+
const B = Q(() => {
|
|
1590
|
+
C(), $([]), a(e, !1);
|
|
1591
|
+
}, [e, C, a]), x = Q(({
|
|
1569
1592
|
editType: M,
|
|
1570
1593
|
updatedData: F
|
|
1571
1594
|
}) => {
|
|
1572
1595
|
if (M === Y.cancel) {
|
|
1573
|
-
|
|
1596
|
+
B();
|
|
1574
1597
|
return;
|
|
1575
1598
|
}
|
|
1576
|
-
|
|
1599
|
+
_(F), M !== Y.updateTentativeFeature && M === Y.addFeature && (p !== "edit" && (j.current = j.current + 1), F.features.forEach((u, v) => {
|
|
1577
1600
|
var A;
|
|
1578
1601
|
(A = u.properties).label ?? (A.label = `${s == null ? void 0 : s.mask} ${j.current}`), u.properties.index = v, u.properties.visible = u.properties.visible ?? !0;
|
|
1579
1602
|
const P = u.id ?? crypto.randomUUID();
|
|
@@ -1583,8 +1606,8 @@ function an({
|
|
|
1583
1606
|
// visible: true,
|
|
1584
1607
|
type: o
|
|
1585
1608
|
});
|
|
1586
|
-
}),
|
|
1587
|
-
}, [o,
|
|
1609
|
+
}), B());
|
|
1610
|
+
}, [o, B, s == null ? void 0 : s.mask, e, p, c]);
|
|
1588
1611
|
return z(() => {
|
|
1589
1612
|
const M = i, {
|
|
1590
1613
|
border: F,
|
|
@@ -1593,18 +1616,18 @@ function an({
|
|
|
1593
1616
|
} = t.colors.editing, {
|
|
1594
1617
|
border: P,
|
|
1595
1618
|
fill: A
|
|
1596
|
-
} = t.colors.finished, L =
|
|
1619
|
+
} = t.colors.finished, L = Gs({
|
|
1597
1620
|
layerProps: {
|
|
1598
1621
|
...n.mask,
|
|
1599
1622
|
pickable: M,
|
|
1600
1623
|
data: T,
|
|
1601
1624
|
selectedFeatureIndexes: k,
|
|
1602
1625
|
updateTriggers: {
|
|
1603
|
-
getFilterValue:
|
|
1626
|
+
getFilterValue: E
|
|
1604
1627
|
},
|
|
1605
1628
|
onClick: (O) => {
|
|
1606
1629
|
const H = O;
|
|
1607
|
-
H.isGuide ||
|
|
1630
|
+
H.isGuide || $([H.index]);
|
|
1608
1631
|
}
|
|
1609
1632
|
},
|
|
1610
1633
|
getLineColor: (O) => k[0] === O.properties.index ? F : P,
|
|
@@ -1613,17 +1636,17 @@ function an({
|
|
|
1613
1636
|
fill: u,
|
|
1614
1637
|
outline: F
|
|
1615
1638
|
},
|
|
1616
|
-
onEdit:
|
|
1617
|
-
mode: M ? b : new
|
|
1639
|
+
onEdit: x,
|
|
1640
|
+
mode: M ? b : new Jt()
|
|
1618
1641
|
});
|
|
1619
1642
|
y(ce, L);
|
|
1620
|
-
}, [T, i, n.mask,
|
|
1643
|
+
}, [T, i, n.mask, E, b, x, k, y, t.colors.editing, t.colors.finished]), z(() => {
|
|
1621
1644
|
const M = {
|
|
1622
1645
|
...Te,
|
|
1623
1646
|
data: w,
|
|
1624
|
-
getFilterValue: (F) => Number(
|
|
1647
|
+
getFilterValue: (F) => Number(E.includes(F.id)),
|
|
1625
1648
|
updateTriggers: {
|
|
1626
|
-
getFilterValue:
|
|
1649
|
+
getFilterValue: E
|
|
1627
1650
|
}
|
|
1628
1651
|
};
|
|
1629
1652
|
return y(Te.id, {
|
|
@@ -1632,7 +1655,7 @@ function an({
|
|
|
1632
1655
|
}), d(e, [Te.id]), () => {
|
|
1633
1656
|
g(e, [Te.id]);
|
|
1634
1657
|
};
|
|
1635
|
-
}, [d, e, w,
|
|
1658
|
+
}, [d, e, w, E, g, y]), z(() => {
|
|
1636
1659
|
m == null || m.forEach((M) => {
|
|
1637
1660
|
var v;
|
|
1638
1661
|
const F = (v = S(e)) == null ? void 0 : v.props.layers.find((P) => P.props.id === M);
|
|
@@ -1641,19 +1664,19 @@ function an({
|
|
|
1641
1664
|
y(M, {
|
|
1642
1665
|
props: {
|
|
1643
1666
|
pickable: u,
|
|
1644
|
-
extensions: [new
|
|
1645
|
-
maskId: !i &&
|
|
1667
|
+
extensions: [new ts()],
|
|
1668
|
+
maskId: !i && E.length ? Le : void 0
|
|
1646
1669
|
}
|
|
1647
1670
|
});
|
|
1648
1671
|
});
|
|
1649
|
-
}, [i, S, e, m,
|
|
1672
|
+
}, [i, S, e, m, E.length, y]), r;
|
|
1650
1673
|
}
|
|
1651
|
-
|
|
1652
|
-
function
|
|
1674
|
+
ln.Controls = Ks;
|
|
1675
|
+
function cn({
|
|
1653
1676
|
mode: r,
|
|
1654
1677
|
...e
|
|
1655
1678
|
}) {
|
|
1656
|
-
const t =
|
|
1679
|
+
const t = un({
|
|
1657
1680
|
mode: r,
|
|
1658
1681
|
...e
|
|
1659
1682
|
});
|
|
@@ -1666,7 +1689,7 @@ function ln({
|
|
|
1666
1689
|
}
|
|
1667
1690
|
};
|
|
1668
1691
|
}
|
|
1669
|
-
function
|
|
1692
|
+
function un({
|
|
1670
1693
|
mode: r,
|
|
1671
1694
|
layerProps: e,
|
|
1672
1695
|
locale: t,
|
|
@@ -1684,7 +1707,7 @@ function cn({
|
|
|
1684
1707
|
// We force distance due to conversion is addressed at feature getText level
|
|
1685
1708
|
formatTooltip: (y) => y,
|
|
1686
1709
|
turfOptions: {
|
|
1687
|
-
units:
|
|
1710
|
+
units: en.meters
|
|
1688
1711
|
}
|
|
1689
1712
|
},
|
|
1690
1713
|
...s && {
|
|
@@ -1713,7 +1736,7 @@ function cn({
|
|
|
1713
1736
|
}
|
|
1714
1737
|
}
|
|
1715
1738
|
}
|
|
1716
|
-
}), b = ue(
|
|
1739
|
+
}), b = ue(Js, {
|
|
1717
1740
|
_subLayerProps: {
|
|
1718
1741
|
guides: {
|
|
1719
1742
|
getLineColor: i,
|
|
@@ -1725,13 +1748,13 @@ function cn({
|
|
|
1725
1748
|
});
|
|
1726
1749
|
return ue(b, c);
|
|
1727
1750
|
}
|
|
1728
|
-
const
|
|
1751
|
+
const dn = (r) => ze()((e) => ({
|
|
1729
1752
|
measurements: r.reduce((s, n) => {
|
|
1730
1753
|
const {
|
|
1731
1754
|
mapId: o,
|
|
1732
1755
|
modeSelected: i,
|
|
1733
|
-
modes: a =
|
|
1734
|
-
units: l =
|
|
1756
|
+
modes: a = sn,
|
|
1757
|
+
units: l = nn,
|
|
1735
1758
|
distance: c = 0,
|
|
1736
1759
|
finished: b = !1,
|
|
1737
1760
|
locale: p = "en",
|
|
@@ -1843,13 +1866,13 @@ const un = (r) => ze()((e) => ({
|
|
|
1843
1866
|
}));
|
|
1844
1867
|
}
|
|
1845
1868
|
})), Ot = He({});
|
|
1846
|
-
function
|
|
1847
|
-
const e =
|
|
1869
|
+
function fn(r) {
|
|
1870
|
+
const e = D(5), {
|
|
1848
1871
|
children: t,
|
|
1849
1872
|
values: s
|
|
1850
1873
|
} = r;
|
|
1851
1874
|
let n;
|
|
1852
|
-
e[0] !== s ? (n =
|
|
1875
|
+
e[0] !== s ? (n = dn(s), e[0] = s, e[1] = n) : n = e[1];
|
|
1853
1876
|
const [o] = oe(n);
|
|
1854
1877
|
let i;
|
|
1855
1878
|
return e[2] !== t || e[3] !== o ? (i = /* @__PURE__ */ N(Ot.Provider, { value: o, children: t }), e[2] = t, e[3] = o, e[4] = i) : i = e[4], i;
|
|
@@ -1861,67 +1884,67 @@ function I(r) {
|
|
|
1861
1884
|
return Qe(e, r);
|
|
1862
1885
|
}
|
|
1863
1886
|
function Ft(r) {
|
|
1864
|
-
const e =
|
|
1887
|
+
const e = D(74), {
|
|
1865
1888
|
mapId: t
|
|
1866
1889
|
} = r;
|
|
1867
1890
|
let s;
|
|
1868
|
-
e[0] !== t ? (s = (
|
|
1891
|
+
e[0] !== t ? (s = (R) => R.measurements[t].modes, e[0] = t, e[1] = s) : s = e[1];
|
|
1869
1892
|
const n = I(s);
|
|
1870
1893
|
let o;
|
|
1871
|
-
e[2] !== t ? (o = (
|
|
1894
|
+
e[2] !== t ? (o = (R) => R.measurements[t].units, e[2] = t, e[3] = o) : o = e[3];
|
|
1872
1895
|
const i = I(o);
|
|
1873
1896
|
let a;
|
|
1874
|
-
e[4] !== t ? (a = (
|
|
1875
|
-
const l = I(a), c = I(
|
|
1897
|
+
e[4] !== t ? (a = (R) => R.measurements[t].distance, e[4] = t, e[5] = a) : a = e[5];
|
|
1898
|
+
const l = I(a), c = I(Sn);
|
|
1876
1899
|
let b;
|
|
1877
|
-
e[6] !== c || e[7] !== t ? (b = (
|
|
1900
|
+
e[6] !== c || e[7] !== t ? (b = (R) => c(t, R), e[6] = c, e[7] = t, e[8] = b) : b = e[8];
|
|
1878
1901
|
const p = b;
|
|
1879
1902
|
let y;
|
|
1880
|
-
e[9] !== t ? (y = (
|
|
1903
|
+
e[9] !== t ? (y = (R) => R.measurements[t].clearLayerOnStart, e[9] = t, e[10] = y) : y = e[10];
|
|
1881
1904
|
const d = I(y);
|
|
1882
1905
|
let g;
|
|
1883
|
-
e[11] !== t ? (g = (
|
|
1884
|
-
const m = I(g), S = I(
|
|
1906
|
+
e[11] !== t ? (g = (R) => R.measurements[t].enabled, e[11] = t, e[12] = g) : g = e[12];
|
|
1907
|
+
const m = I(g), S = I(vn);
|
|
1885
1908
|
let f;
|
|
1886
|
-
e[13] !== S || e[14] !== t ? (f = (
|
|
1909
|
+
e[13] !== S || e[14] !== t ? (f = (R) => S(t, R), e[13] = S, e[14] = t, e[15] = f) : f = e[15];
|
|
1887
1910
|
const h = f;
|
|
1888
1911
|
let w;
|
|
1889
|
-
e[16] !== t ? (w = (
|
|
1890
|
-
const
|
|
1891
|
-
let
|
|
1892
|
-
e[18] !== T || e[19] !== t || e[20] !== h ? (
|
|
1893
|
-
h(!!
|
|
1894
|
-
}, e[18] = T, e[19] = t, e[20] = h, e[21] =
|
|
1895
|
-
const k =
|
|
1896
|
-
let
|
|
1897
|
-
e[22] !== t ? (
|
|
1898
|
-
const C = I(
|
|
1899
|
-
let
|
|
1900
|
-
e[24] !== j || e[25] !== t ? (
|
|
1901
|
-
const
|
|
1912
|
+
e[16] !== t ? (w = (R) => R.measurements[t].modeSelected, e[16] = t, e[17] = w) : w = e[17];
|
|
1913
|
+
const E = I(w), T = I(bn);
|
|
1914
|
+
let _;
|
|
1915
|
+
e[18] !== T || e[19] !== t || e[20] !== h ? (_ = (R) => {
|
|
1916
|
+
h(!!R), T(t, R);
|
|
1917
|
+
}, e[18] = T, e[19] = t, e[20] = h, e[21] = _) : _ = e[21];
|
|
1918
|
+
const k = _;
|
|
1919
|
+
let $;
|
|
1920
|
+
e[22] !== t ? ($ = (R) => R.measurements[t].finished, e[22] = t, e[23] = $) : $ = e[23];
|
|
1921
|
+
const C = I($), j = I(gn);
|
|
1922
|
+
let B;
|
|
1923
|
+
e[24] !== j || e[25] !== t ? (B = (R) => j(t, R), e[24] = j, e[25] = t, e[26] = B) : B = e[26];
|
|
1924
|
+
const x = B;
|
|
1902
1925
|
let M;
|
|
1903
|
-
e[27] !== t ? (M = (
|
|
1904
|
-
const F = I(M), u = I(
|
|
1926
|
+
e[27] !== t ? (M = (R) => R.measurements[t].locale, e[27] = t, e[28] = M) : M = e[28];
|
|
1927
|
+
const F = I(M), u = I(hn);
|
|
1905
1928
|
let v;
|
|
1906
|
-
e[29] !== u || e[30] !== t ? (v = (
|
|
1929
|
+
e[29] !== u || e[30] !== t ? (v = (R) => u(t, R), e[29] = u, e[30] = t, e[31] = v) : v = e[31];
|
|
1907
1930
|
const P = v;
|
|
1908
1931
|
let A;
|
|
1909
|
-
e[32] !== t ? (A = (
|
|
1910
|
-
const L = I(A), O = I(
|
|
1932
|
+
e[32] !== t ? (A = (R) => R.measurements[t].modeInstance, e[32] = t, e[33] = A) : A = e[33];
|
|
1933
|
+
const L = I(A), O = I(yn);
|
|
1911
1934
|
let H;
|
|
1912
|
-
e[34] !== O || e[35] !== t ? (H = (
|
|
1935
|
+
e[34] !== O || e[35] !== t ? (H = (R) => O(t, R), e[34] = O, e[35] = t, e[36] = H) : H = e[36];
|
|
1913
1936
|
const W = H;
|
|
1914
1937
|
let K;
|
|
1915
|
-
e[37] !== t ? (K = (
|
|
1916
|
-
const
|
|
1938
|
+
e[37] !== t ? (K = (R) => R.measurements[t].positions, e[37] = t, e[38] = K) : K = e[38];
|
|
1939
|
+
const q = I(K), X = I(mn);
|
|
1917
1940
|
let he;
|
|
1918
|
-
e[39] !== X || e[40] !== t ? (he = (
|
|
1941
|
+
e[39] !== X || e[40] !== t ? (he = (R) => X(t, R), e[39] = X, e[40] = t, e[41] = he) : he = e[41];
|
|
1919
1942
|
const fe = he;
|
|
1920
1943
|
let ge;
|
|
1921
|
-
e[42] !== t ? (ge = (
|
|
1922
|
-
const Fe = I(ge), ke = I(
|
|
1944
|
+
e[42] !== t ? (ge = (R) => R.measurements[t].unit, e[42] = t, e[43] = ge) : ge = e[43];
|
|
1945
|
+
const Fe = I(ge), ke = I(pn);
|
|
1923
1946
|
let be;
|
|
1924
|
-
e[44] !== ke || e[45] !== t ? (be = (
|
|
1947
|
+
e[44] !== ke || e[45] !== t ? (be = (R) => ke(t, R), e[44] = ke, e[45] = t, e[46] = be) : be = e[46];
|
|
1925
1948
|
const Ae = be;
|
|
1926
1949
|
let ve;
|
|
1927
1950
|
e[47] !== L || e[48] !== fe ? (ve = () => {
|
|
@@ -1929,26 +1952,26 @@ function Ft(r) {
|
|
|
1929
1952
|
}, e[47] = L, e[48] = fe, e[49] = ve) : ve = e[49];
|
|
1930
1953
|
const Ce = ve;
|
|
1931
1954
|
let Se;
|
|
1932
|
-
e[50] !== h ? (Se = (
|
|
1933
|
-
h(
|
|
1955
|
+
e[50] !== h ? (Se = (R) => {
|
|
1956
|
+
h(R);
|
|
1934
1957
|
}, e[50] = h, e[51] = Se) : Se = e[51];
|
|
1935
1958
|
const De = Se;
|
|
1936
1959
|
let we;
|
|
1937
|
-
return e[52] !== Ce || e[53] !== d || e[54] !== l || e[55] !== m || e[56] !== C || e[57] !== F || e[58] !== L || e[59] !==
|
|
1960
|
+
return e[52] !== Ce || e[53] !== d || e[54] !== l || e[55] !== m || e[56] !== C || e[57] !== F || e[58] !== L || e[59] !== E || e[60] !== n || e[61] !== q || e[62] !== p || e[63] !== h || 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 = {
|
|
1938
1961
|
modes: n,
|
|
1939
1962
|
units: i,
|
|
1940
1963
|
distance: l,
|
|
1941
1964
|
clearLayerOnStart: d,
|
|
1942
|
-
modeSelected:
|
|
1965
|
+
modeSelected: E,
|
|
1943
1966
|
enabled: m,
|
|
1944
1967
|
finished: C,
|
|
1945
1968
|
locale: F,
|
|
1946
1969
|
modeInstance: L,
|
|
1947
|
-
positions:
|
|
1970
|
+
positions: q,
|
|
1948
1971
|
unit: Fe,
|
|
1949
1972
|
setDistance: p,
|
|
1950
1973
|
setModeSelected: k,
|
|
1951
|
-
setFinished:
|
|
1974
|
+
setFinished: x,
|
|
1952
1975
|
setLocale: P,
|
|
1953
1976
|
setPositions: fe,
|
|
1954
1977
|
setUnit: Ae,
|
|
@@ -1956,34 +1979,34 @@ function Ft(r) {
|
|
|
1956
1979
|
toggleLayer: De,
|
|
1957
1980
|
clearLayer: Ce,
|
|
1958
1981
|
setModeInstance: W
|
|
1959
|
-
}, e[52] = Ce, e[53] = d, e[54] = l, e[55] = m, e[56] = C, e[57] = F, e[58] = L, e[59] =
|
|
1982
|
+
}, e[52] = Ce, e[53] = d, e[54] = l, e[55] = m, e[56] = C, e[57] = F, e[58] = L, e[59] = E, e[60] = n, e[61] = q, e[62] = p, e[63] = h, 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;
|
|
1960
1983
|
}
|
|
1961
|
-
function
|
|
1984
|
+
function pn(r) {
|
|
1962
1985
|
return r.setUnit;
|
|
1963
1986
|
}
|
|
1964
|
-
function
|
|
1987
|
+
function mn(r) {
|
|
1965
1988
|
return r.setPositions;
|
|
1966
1989
|
}
|
|
1967
|
-
function
|
|
1990
|
+
function yn(r) {
|
|
1968
1991
|
return r.setModeInstance;
|
|
1969
1992
|
}
|
|
1970
|
-
function
|
|
1993
|
+
function hn(r) {
|
|
1971
1994
|
return r.setLocale;
|
|
1972
1995
|
}
|
|
1973
|
-
function
|
|
1996
|
+
function gn(r) {
|
|
1974
1997
|
return r.setFinished;
|
|
1975
1998
|
}
|
|
1976
|
-
function
|
|
1999
|
+
function bn(r) {
|
|
1977
2000
|
return r.setModeSelected;
|
|
1978
2001
|
}
|
|
1979
|
-
function
|
|
2002
|
+
function vn(r) {
|
|
1980
2003
|
return r.setEnabled;
|
|
1981
2004
|
}
|
|
1982
|
-
function
|
|
2005
|
+
function Sn(r) {
|
|
1983
2006
|
return r.setDistance;
|
|
1984
2007
|
}
|
|
1985
|
-
function
|
|
1986
|
-
const e =
|
|
2008
|
+
function wn(r) {
|
|
2009
|
+
const e = D(42), {
|
|
1987
2010
|
mapId: t,
|
|
1988
2011
|
textOptions: s,
|
|
1989
2012
|
children: n
|
|
@@ -2007,33 +2030,33 @@ function Sn(r) {
|
|
|
2007
2030
|
locale: f,
|
|
2008
2031
|
setLocale: h,
|
|
2009
2032
|
modeInstance: w,
|
|
2010
|
-
setModeInstance:
|
|
2033
|
+
setModeInstance: E,
|
|
2011
2034
|
positions: T,
|
|
2012
|
-
setPositions:
|
|
2035
|
+
setPositions: _,
|
|
2013
2036
|
unit: k,
|
|
2014
|
-
setUnit:
|
|
2037
|
+
setUnit: $,
|
|
2015
2038
|
clearLayer: C,
|
|
2016
2039
|
toggleLayer: j
|
|
2017
2040
|
} = Ft(o);
|
|
2018
|
-
let
|
|
2019
|
-
e[2] !== p || e[3] !== i || e[4] !==
|
|
2041
|
+
let B;
|
|
2042
|
+
e[2] !== p || e[3] !== i || e[4] !== E || e[5] !== _ ? (B = () => {
|
|
2020
2043
|
if (p && i[p]) {
|
|
2021
2044
|
const P = i[p].mode;
|
|
2022
|
-
|
|
2045
|
+
E(new P());
|
|
2023
2046
|
}
|
|
2024
2047
|
return () => {
|
|
2025
|
-
|
|
2048
|
+
_([]);
|
|
2026
2049
|
};
|
|
2027
|
-
}, e[2] = p, e[3] = i, e[4] =
|
|
2028
|
-
let
|
|
2029
|
-
e[7] !== p || e[8] !== i || e[9] !== g || e[10] !==
|
|
2050
|
+
}, e[2] = p, e[3] = i, e[4] = E, e[5] = _, e[6] = B) : B = e[6];
|
|
2051
|
+
let x;
|
|
2052
|
+
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);
|
|
2030
2053
|
let M;
|
|
2031
2054
|
e[13] !== j || e[14] !== C || e[15] !== b || e[16] !== m ? (M = (P) => {
|
|
2032
2055
|
P && (b || !m) && C(), j(P);
|
|
2033
2056
|
}, e[13] = j, e[14] = C, e[15] = b, e[16] = m, e[17] = M) : M = e[17];
|
|
2034
2057
|
const F = M, u = !!b;
|
|
2035
2058
|
let v;
|
|
2036
|
-
return e[18] !== n || e[19] !== C || e[20] !== l || e[21] !== d || e[22] !== m || e[23] !== f || e[24] !== t || e[25] !== w || e[26] !== p || e[27] !== i || e[28] !== T || e[29] !== c || e[30] !== g || e[31] !== S || e[32] !== h || e[33] !== y || e[34] !==
|
|
2059
|
+
return e[18] !== n || e[19] !== C || e[20] !== l || e[21] !== d || e[22] !== m || e[23] !== f || e[24] !== t || e[25] !== w || e[26] !== p || e[27] !== i || e[28] !== T || e[29] !== c || e[30] !== g || e[31] !== S || e[32] !== h || e[33] !== y || e[34] !== _ || e[35] !== $ || e[36] !== u || e[37] !== s || e[38] !== F || e[39] !== k || e[40] !== a ? (v = n({
|
|
2037
2060
|
mapId: t,
|
|
2038
2061
|
distance: l,
|
|
2039
2062
|
enabled: d,
|
|
@@ -2056,15 +2079,15 @@ function Sn(r) {
|
|
|
2056
2079
|
setDistance: c,
|
|
2057
2080
|
setFinished: S,
|
|
2058
2081
|
setLocale: h,
|
|
2059
|
-
setPositions:
|
|
2060
|
-
setUnit:
|
|
2082
|
+
setPositions: _,
|
|
2083
|
+
setUnit: $,
|
|
2061
2084
|
setEnabled: g,
|
|
2062
2085
|
toggleLayer: F,
|
|
2063
2086
|
clearLayer: C
|
|
2064
|
-
}), e[18] = n, e[19] = C, e[20] = l, e[21] = d, e[22] = m, e[23] = f, e[24] = t, e[25] = w, e[26] = p, e[27] = i, e[28] = T, e[29] = c, e[30] = g, e[31] = S, e[32] = h, e[33] = y, e[34] =
|
|
2087
|
+
}), e[18] = n, e[19] = C, e[20] = l, e[21] = d, e[22] = m, e[23] = f, e[24] = t, e[25] = w, e[26] = p, e[27] = i, e[28] = T, e[29] = c, e[30] = g, e[31] = S, e[32] = h, e[33] = y, e[34] = _, e[35] = $, e[36] = u, e[37] = s, e[38] = F, e[39] = k, e[40] = a, e[41] = v) : v = e[41], v;
|
|
2065
2088
|
}
|
|
2066
|
-
const
|
|
2067
|
-
function
|
|
2089
|
+
const Tn = [ne];
|
|
2090
|
+
function En({
|
|
2068
2091
|
children: r,
|
|
2069
2092
|
mapId: e,
|
|
2070
2093
|
defaultProps: {
|
|
@@ -2088,8 +2111,8 @@ function Tn({
|
|
|
2088
2111
|
} = Ft({
|
|
2089
2112
|
mapId: e
|
|
2090
2113
|
}), g = pe((T) => T.setLayer), m = U((T) => T.addLayers), S = U((T) => T.removeLayers), f = U(ht((T) => {
|
|
2091
|
-
var
|
|
2092
|
-
return (
|
|
2114
|
+
var _;
|
|
2115
|
+
return (_ = T.maps[e]) == null ? void 0 : _.layers.filter((k) => !Tn.includes(k));
|
|
2093
2116
|
})), h = U((T) => T.getDeckInstance), w = Me({});
|
|
2094
2117
|
Lt({
|
|
2095
2118
|
mapId: e,
|
|
@@ -2098,10 +2121,10 @@ function Tn({
|
|
|
2098
2121
|
S(e, [ne]);
|
|
2099
2122
|
}), [m, i, e, S, a]), z(() => {
|
|
2100
2123
|
f == null || f.forEach((T) => {
|
|
2101
|
-
var
|
|
2102
|
-
const
|
|
2103
|
-
a && (w.current[T] =
|
|
2104
|
-
const k = !a && (w.current[T] ?? (
|
|
2124
|
+
var $;
|
|
2125
|
+
const _ = ($ = h(e)) == null ? void 0 : $.props.layers.find((C) => C.props.id === T);
|
|
2126
|
+
a && (w.current[T] = _ == null ? void 0 : _.props.pickable);
|
|
2127
|
+
const k = !a && (w.current[T] ?? (_ == null ? void 0 : _.props.pickable));
|
|
2105
2128
|
g(T, {
|
|
2106
2129
|
props: {
|
|
2107
2130
|
pickable: k
|
|
@@ -2109,58 +2132,58 @@ function Tn({
|
|
|
2109
2132
|
});
|
|
2110
2133
|
});
|
|
2111
2134
|
}, [a, h, e, f, g]);
|
|
2112
|
-
const
|
|
2135
|
+
const E = Q(({
|
|
2113
2136
|
editType: T,
|
|
2114
|
-
editContext:
|
|
2137
|
+
editContext: _
|
|
2115
2138
|
}) => {
|
|
2116
2139
|
if (T === Y.cancel) {
|
|
2117
2140
|
d.resetClickSequence();
|
|
2118
2141
|
return;
|
|
2119
2142
|
}
|
|
2120
|
-
T === Y.addPosition && o(
|
|
2121
|
-
const k =
|
|
2143
|
+
T === Y.addPosition && o(_.distance), c(!!_.finished);
|
|
2144
|
+
const k = _.positions;
|
|
2122
2145
|
k != null && k.length && p(k);
|
|
2123
2146
|
}, [d, o, c, p]);
|
|
2124
2147
|
return z(() => {
|
|
2125
|
-
const T = l ? t.colors.finished : t.colors.editing,
|
|
2148
|
+
const T = l ? t.colors.finished : t.colors.editing, _ = l ? t.colors.finished : t.colors.point, k = cn({
|
|
2126
2149
|
layerProps: {
|
|
2127
2150
|
...s,
|
|
2128
2151
|
pickable: s.pickable ?? !l
|
|
2129
2152
|
},
|
|
2130
2153
|
enabled: a,
|
|
2131
2154
|
guideColor: T,
|
|
2132
|
-
pointColor:
|
|
2155
|
+
pointColor: _,
|
|
2133
2156
|
locale: b,
|
|
2134
|
-
onEdit:
|
|
2157
|
+
onEdit: E,
|
|
2135
2158
|
unit: y,
|
|
2136
2159
|
mode: d,
|
|
2137
2160
|
textOptions: n
|
|
2138
2161
|
});
|
|
2139
2162
|
g(ne, k);
|
|
2140
|
-
}, [l, d, s, b,
|
|
2163
|
+
}, [l, d, s, b, E, g, t.colors.editing, t.colors.finished, t.colors.point, n, y, a]), r;
|
|
2141
2164
|
}
|
|
2142
|
-
|
|
2165
|
+
En.Controls = wn;
|
|
2143
2166
|
function _n(r) {
|
|
2144
|
-
const e =
|
|
2167
|
+
const e = D(7), {
|
|
2145
2168
|
mapId: t
|
|
2146
2169
|
} = r;
|
|
2147
2170
|
let s;
|
|
2148
2171
|
e[0] !== t ? (s = (c) => c.maps[t], e[0] = t, e[1] = s) : s = e[1];
|
|
2149
2172
|
const {
|
|
2150
2173
|
layers: n
|
|
2151
|
-
} = U(s), o = pe(
|
|
2174
|
+
} = U(s), o = pe(Pn);
|
|
2152
2175
|
let i, a;
|
|
2153
2176
|
if (e[2] !== o || e[3] !== n) {
|
|
2154
2177
|
let c;
|
|
2155
|
-
e[5] !== o ? (c = (b) => o[b], e[5] = o, e[6] = c) : c = e[6], a = n.map(c).filter(
|
|
2178
|
+
e[5] !== o ? (c = (b) => o[b], e[5] = o, e[6] = c) : c = e[6], a = n.map(c).filter(Mn), e[2] = o, e[3] = n, e[4] = a;
|
|
2156
2179
|
} else
|
|
2157
2180
|
a = e[4];
|
|
2158
2181
|
return i = a, i;
|
|
2159
2182
|
}
|
|
2160
|
-
function
|
|
2183
|
+
function Mn(r) {
|
|
2161
2184
|
return !!r;
|
|
2162
2185
|
}
|
|
2163
|
-
function
|
|
2186
|
+
function Pn(r) {
|
|
2164
2187
|
return r.layers;
|
|
2165
2188
|
}
|
|
2166
2189
|
const at = [Le, ce, ne];
|
|
@@ -2168,9 +2191,9 @@ function kt(r) {
|
|
|
2168
2191
|
const e = r.filter((s) => !at.includes(s.props.id)).sort((s, n) => (s.order ?? 1 / 0) - (n.order ?? 1 / 0)), t = at.map((s) => r.find((n) => n.props.id === s)).filter((s) => !!s);
|
|
2169
2192
|
return [...e, ...t];
|
|
2170
2193
|
}
|
|
2171
|
-
const
|
|
2172
|
-
function
|
|
2173
|
-
const e =
|
|
2194
|
+
const Ln = 200;
|
|
2195
|
+
function Qr(r) {
|
|
2196
|
+
const e = D(48);
|
|
2174
2197
|
let t, s, n, o;
|
|
2175
2198
|
e[0] !== r ? ({
|
|
2176
2199
|
id: t,
|
|
@@ -2189,36 +2212,36 @@ function Gr(r) {
|
|
|
2189
2212
|
const p = U(b), y = Me(null);
|
|
2190
2213
|
let d;
|
|
2191
2214
|
e[11] !== t ? (d = (L) => L.viewStates[t], e[11] = t, e[12] = d) : d = e[12];
|
|
2192
|
-
const g = U(d), m = U(
|
|
2193
|
-
let
|
|
2194
|
-
e[13] !== t ? (
|
|
2215
|
+
const g = U(d), m = U(Dn), S = U(Cn), f = U(An), h = U(kn), w = U(Fn);
|
|
2216
|
+
let E;
|
|
2217
|
+
e[13] !== t ? (E = {
|
|
2195
2218
|
mapId: t
|
|
2196
|
-
}, e[13] = t, e[14] =
|
|
2197
|
-
const T = _n(
|
|
2198
|
-
let
|
|
2199
|
-
e[15] !== T ? (k = kt(T), e[15] = T, e[16] = k) : k = e[16],
|
|
2200
|
-
const
|
|
2219
|
+
}, e[13] = t, e[14] = E) : E = e[14];
|
|
2220
|
+
const T = _n(E);
|
|
2221
|
+
let _, k;
|
|
2222
|
+
e[15] !== T ? (k = kt(T), e[15] = T, e[16] = k) : k = e[16], _ = k;
|
|
2223
|
+
const $ = _;
|
|
2201
2224
|
let C;
|
|
2202
2225
|
e[17] !== t || e[18] !== n || e[19] !== S || e[20] !== w ? (C = (L) => {
|
|
2203
2226
|
const O = S;
|
|
2204
2227
|
if (y.current && clearInterval(y.current), y.current = setTimeout(() => {
|
|
2205
2228
|
w(t);
|
|
2206
|
-
},
|
|
2229
|
+
}, Ln), n) {
|
|
2207
2230
|
n(L, O);
|
|
2208
2231
|
return;
|
|
2209
2232
|
}
|
|
2210
2233
|
O(t, L.viewState);
|
|
2211
2234
|
}, e[17] = t, e[18] = n, e[19] = S, e[20] = w, e[21] = C) : C = e[21];
|
|
2212
2235
|
const j = C;
|
|
2213
|
-
let
|
|
2214
|
-
e[22] !== t || e[23] !== s || e[24] !== f || e[25] !== w ? (
|
|
2236
|
+
let B;
|
|
2237
|
+
e[22] !== t || e[23] !== s || e[24] !== f || e[25] !== w ? (B = (L) => {
|
|
2215
2238
|
f(t, L), s == null || s(L), w(t);
|
|
2216
|
-
}, e[22] = t, e[23] = s, e[24] = f, e[25] = w, e[26] =
|
|
2217
|
-
const
|
|
2239
|
+
}, e[22] = t, e[23] = s, e[24] = f, e[25] = w, e[26] = B) : B = e[26];
|
|
2240
|
+
const x = B;
|
|
2218
2241
|
let M;
|
|
2219
2242
|
e[27] !== m || e[28] !== t || e[29] !== o || e[30] !== h ? (M = (L) => {
|
|
2220
2243
|
var W, K;
|
|
2221
|
-
const O = (W = m(t)) == null ? void 0 : W.props.layers, H = !!(O != null && O.every(
|
|
2244
|
+
const O = (W = m(t)) == null ? void 0 : W.props.layers, H = !!(O != null && O.every(On));
|
|
2222
2245
|
h(t, H), (K = o.onAfterRender) == null || K.call(o, L);
|
|
2223
2246
|
}, e[27] = m, e[28] = t, e[29] = o, e[30] = h, e[31] = M) : M = e[31];
|
|
2224
2247
|
const F = M, u = o.onDragEnd;
|
|
@@ -2229,30 +2252,30 @@ function Gr(r) {
|
|
|
2229
2252
|
}, e[32] = u, e[33] = t, e[34] = w, e[35] = v) : v = e[35];
|
|
2230
2253
|
const P = v;
|
|
2231
2254
|
let A;
|
|
2232
|
-
return e[36] !== a || e[37] !==
|
|
2255
|
+
return e[36] !== a || e[37] !== $ || 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: $, instanceRef: c, overlayRef: p, basemap: a, initialViewState: g, onLoad: x, onViewStateChange: j, onAfterRender: F, onDragEnd: P }), e[36] = a, e[37] = $, 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;
|
|
2233
2256
|
}
|
|
2234
|
-
function
|
|
2257
|
+
function On(r) {
|
|
2235
2258
|
return r == null ? void 0 : r.isLoaded;
|
|
2236
2259
|
}
|
|
2237
|
-
function
|
|
2260
|
+
function Fn(r) {
|
|
2238
2261
|
return r.updateViewPort;
|
|
2239
2262
|
}
|
|
2240
|
-
function
|
|
2263
|
+
function kn(r) {
|
|
2241
2264
|
return r.setLayersLoad;
|
|
2242
2265
|
}
|
|
2243
|
-
function
|
|
2266
|
+
function An(r) {
|
|
2244
2267
|
return r.setLoad;
|
|
2245
2268
|
}
|
|
2246
|
-
function
|
|
2269
|
+
function Cn(r) {
|
|
2247
2270
|
return r.setViewState;
|
|
2248
2271
|
}
|
|
2249
|
-
function
|
|
2272
|
+
function Dn(r) {
|
|
2250
2273
|
return r.getDeckInstance;
|
|
2251
2274
|
}
|
|
2252
|
-
var
|
|
2253
|
-
function
|
|
2275
|
+
var _e = { exports: {} }, lt;
|
|
2276
|
+
function Rn() {
|
|
2254
2277
|
return lt || (lt = 1, function(r, e) {
|
|
2255
|
-
var t = typeof globalThis < "u" && globalThis || typeof self < "u" && self || typeof
|
|
2278
|
+
var t = typeof globalThis < "u" && globalThis || typeof self < "u" && self || typeof Ee < "u" && Ee, s = function() {
|
|
2256
2279
|
function o() {
|
|
2257
2280
|
this.fetch = !1, this.DOMException = t.DOMException;
|
|
2258
2281
|
}
|
|
@@ -2261,7 +2284,7 @@ function Dn() {
|
|
|
2261
2284
|
(function(o) {
|
|
2262
2285
|
(function(i) {
|
|
2263
2286
|
var a = typeof o < "u" && o || typeof self < "u" && self || // eslint-disable-next-line no-undef
|
|
2264
|
-
typeof
|
|
2287
|
+
typeof Ee < "u" && Ee || {}, l = {
|
|
2265
2288
|
searchParams: "URLSearchParams" in a,
|
|
2266
2289
|
iterable: "Symbol" in a && "iterator" in Symbol,
|
|
2267
2290
|
blob: "FileReader" in a && "Blob" in a && function() {
|
|
@@ -2376,7 +2399,7 @@ function Dn() {
|
|
|
2376
2399
|
var v = new FileReader(), P = f(v), A = /charset=([A-Za-z0-9_-]+)/.exec(u.type), L = A ? A[1] : "utf-8";
|
|
2377
2400
|
return v.readAsText(u, L), P;
|
|
2378
2401
|
}
|
|
2379
|
-
function
|
|
2402
|
+
function E(u) {
|
|
2380
2403
|
for (var v = new Uint8Array(u), P = new Array(v.length), A = 0; A < v.length; A++)
|
|
2381
2404
|
P[A] = String.fromCharCode(v[A]);
|
|
2382
2405
|
return P.join("");
|
|
@@ -2387,7 +2410,7 @@ function Dn() {
|
|
|
2387
2410
|
var v = new Uint8Array(u.byteLength);
|
|
2388
2411
|
return v.set(new Uint8Array(u)), v.buffer;
|
|
2389
2412
|
}
|
|
2390
|
-
function
|
|
2413
|
+
function _() {
|
|
2391
2414
|
return this.bodyUsed = !1, this._initBody = function(u) {
|
|
2392
2415
|
this.bodyUsed = this.bodyUsed, this._bodyInit = u, u ? typeof u == "string" ? this._bodyText = u : l.blob && Blob.prototype.isPrototypeOf(u) ? this._bodyBlob = u : l.formData && FormData.prototype.isPrototypeOf(u) ? this._bodyFormData = u : l.searchParams && URLSearchParams.prototype.isPrototypeOf(u) ? this._bodyText = u.toString() : l.arrayBuffer && l.blob && c(u) ? (this._bodyArrayBuffer = T(u.buffer), this._bodyInit = new Blob([this._bodyArrayBuffer])) : l.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(u) || p(u)) ? this._bodyArrayBuffer = T(u) : this._bodyText = u = Object.prototype.toString.call(u) : (this._noBody = !0, this._bodyText = ""), this.headers.get("content-type") || (typeof u == "string" ? this.headers.set("content-type", "text/plain;charset=UTF-8") : this._bodyBlob && this._bodyBlob.type ? this.headers.set("content-type", this._bodyBlob.type) : l.searchParams && URLSearchParams.prototype.isPrototypeOf(u) && this.headers.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8"));
|
|
2393
2416
|
}, l.blob && (this.blob = function() {
|
|
@@ -2422,7 +2445,7 @@ function Dn() {
|
|
|
2422
2445
|
if (this._bodyBlob)
|
|
2423
2446
|
return w(this._bodyBlob);
|
|
2424
2447
|
if (this._bodyArrayBuffer)
|
|
2425
|
-
return Promise.resolve(
|
|
2448
|
+
return Promise.resolve(E(this._bodyArrayBuffer));
|
|
2426
2449
|
if (this._bodyFormData)
|
|
2427
2450
|
throw new Error("could not read FormData body as text");
|
|
2428
2451
|
return Promise.resolve(this._bodyText);
|
|
@@ -2433,7 +2456,7 @@ function Dn() {
|
|
|
2433
2456
|
}, this;
|
|
2434
2457
|
}
|
|
2435
2458
|
var k = ["CONNECT", "DELETE", "GET", "HEAD", "OPTIONS", "PATCH", "POST", "PUT", "TRACE"];
|
|
2436
|
-
function
|
|
2459
|
+
function $(u) {
|
|
2437
2460
|
var v = u.toUpperCase();
|
|
2438
2461
|
return k.indexOf(v) > -1 ? v : u;
|
|
2439
2462
|
}
|
|
@@ -2448,7 +2471,7 @@ function Dn() {
|
|
|
2448
2471
|
this.url = u.url, this.credentials = u.credentials, v.headers || (this.headers = new m(u.headers)), this.method = u.method, this.mode = u.mode, this.signal = u.signal, !P && u._bodyInit != null && (P = u._bodyInit, u.bodyUsed = !0);
|
|
2449
2472
|
} else
|
|
2450
2473
|
this.url = String(u);
|
|
2451
|
-
if (this.credentials = v.credentials || this.credentials || "same-origin", (v.headers || !this.headers) && (this.headers = new m(v.headers)), this.method =
|
|
2474
|
+
if (this.credentials = v.credentials || this.credentials || "same-origin", (v.headers || !this.headers) && (this.headers = new m(v.headers)), this.method = $(v.method || this.method || "GET"), this.mode = v.mode || this.mode || null, this.signal = v.signal || this.signal || function() {
|
|
2452
2475
|
if ("AbortController" in a) {
|
|
2453
2476
|
var O = new AbortController();
|
|
2454
2477
|
return O.signal;
|
|
@@ -2477,7 +2500,7 @@ function Dn() {
|
|
|
2477
2500
|
}
|
|
2478
2501
|
}), v;
|
|
2479
2502
|
}
|
|
2480
|
-
function
|
|
2503
|
+
function B(u) {
|
|
2481
2504
|
var v = new m(), P = u.replace(/\r?\n[\t ]+/g, " ");
|
|
2482
2505
|
return P.split("\r").map(function(A) {
|
|
2483
2506
|
return A.indexOf(`
|
|
@@ -2494,30 +2517,30 @@ function Dn() {
|
|
|
2494
2517
|
}
|
|
2495
2518
|
}), v;
|
|
2496
2519
|
}
|
|
2497
|
-
|
|
2498
|
-
function
|
|
2499
|
-
if (!(this instanceof
|
|
2520
|
+
_.call(C.prototype);
|
|
2521
|
+
function x(u, v) {
|
|
2522
|
+
if (!(this instanceof x))
|
|
2500
2523
|
throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');
|
|
2501
2524
|
if (v || (v = {}), this.type = "default", this.status = v.status === void 0 ? 200 : v.status, this.status < 200 || this.status > 599)
|
|
2502
2525
|
throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");
|
|
2503
2526
|
this.ok = this.status >= 200 && this.status < 300, this.statusText = v.statusText === void 0 ? "" : "" + v.statusText, this.headers = new m(v.headers), this.url = v.url || "", this._initBody(u);
|
|
2504
2527
|
}
|
|
2505
|
-
|
|
2506
|
-
return new
|
|
2528
|
+
_.call(x.prototype), x.prototype.clone = function() {
|
|
2529
|
+
return new x(this._bodyInit, {
|
|
2507
2530
|
status: this.status,
|
|
2508
2531
|
statusText: this.statusText,
|
|
2509
2532
|
headers: new m(this.headers),
|
|
2510
2533
|
url: this.url
|
|
2511
2534
|
});
|
|
2512
|
-
},
|
|
2513
|
-
var u = new
|
|
2535
|
+
}, x.error = function() {
|
|
2536
|
+
var u = new x(null, { status: 200, statusText: "" });
|
|
2514
2537
|
return u.ok = !1, u.status = 0, u.type = "error", u;
|
|
2515
2538
|
};
|
|
2516
2539
|
var M = [301, 302, 303, 307, 308];
|
|
2517
|
-
|
|
2540
|
+
x.redirect = function(u, v) {
|
|
2518
2541
|
if (M.indexOf(v) === -1)
|
|
2519
2542
|
throw new RangeError("Invalid status code");
|
|
2520
|
-
return new
|
|
2543
|
+
return new x(null, { status: v, headers: { location: u } });
|
|
2521
2544
|
}, i.DOMException = a.DOMException;
|
|
2522
2545
|
try {
|
|
2523
2546
|
new i.DOMException();
|
|
@@ -2538,14 +2561,14 @@ function Dn() {
|
|
|
2538
2561
|
O.abort();
|
|
2539
2562
|
}
|
|
2540
2563
|
O.onload = function() {
|
|
2541
|
-
var
|
|
2564
|
+
var q = {
|
|
2542
2565
|
statusText: O.statusText,
|
|
2543
|
-
headers:
|
|
2566
|
+
headers: B(O.getAllResponseHeaders() || "")
|
|
2544
2567
|
};
|
|
2545
|
-
L.url.indexOf("file://") === 0 && (O.status < 200 || O.status > 599) ?
|
|
2568
|
+
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");
|
|
2546
2569
|
var X = "response" in O ? O.response : O.responseText;
|
|
2547
2570
|
setTimeout(function() {
|
|
2548
|
-
P(new
|
|
2571
|
+
P(new x(X, q));
|
|
2549
2572
|
}, 0);
|
|
2550
2573
|
}, O.onerror = function() {
|
|
2551
2574
|
setTimeout(function() {
|
|
@@ -2560,60 +2583,58 @@ function Dn() {
|
|
|
2560
2583
|
A(new i.DOMException("Aborted", "AbortError"));
|
|
2561
2584
|
}, 0);
|
|
2562
2585
|
};
|
|
2563
|
-
function W(
|
|
2586
|
+
function W(q) {
|
|
2564
2587
|
try {
|
|
2565
|
-
return
|
|
2588
|
+
return q === "" && a.location.href ? a.location.href : q;
|
|
2566
2589
|
} catch {
|
|
2567
|
-
return
|
|
2590
|
+
return q;
|
|
2568
2591
|
}
|
|
2569
2592
|
}
|
|
2570
2593
|
if (O.open(L.method, W(L.url), !0), L.credentials === "include" ? O.withCredentials = !0 : L.credentials === "omit" && (O.withCredentials = !1), "responseType" in O && (l.blob ? O.responseType = "blob" : l.arrayBuffer && (O.responseType = "arraybuffer")), v && typeof v.headers == "object" && !(v.headers instanceof m || a.Headers && v.headers instanceof a.Headers)) {
|
|
2571
2594
|
var K = [];
|
|
2572
|
-
Object.getOwnPropertyNames(v.headers).forEach(function(
|
|
2573
|
-
K.push(y(
|
|
2574
|
-
}), L.headers.forEach(function(
|
|
2575
|
-
K.indexOf(X) === -1 && O.setRequestHeader(X,
|
|
2595
|
+
Object.getOwnPropertyNames(v.headers).forEach(function(q) {
|
|
2596
|
+
K.push(y(q)), O.setRequestHeader(q, d(v.headers[q]));
|
|
2597
|
+
}), L.headers.forEach(function(q, X) {
|
|
2598
|
+
K.indexOf(X) === -1 && O.setRequestHeader(X, q);
|
|
2576
2599
|
});
|
|
2577
2600
|
} else
|
|
2578
|
-
L.headers.forEach(function(
|
|
2579
|
-
O.setRequestHeader(X,
|
|
2601
|
+
L.headers.forEach(function(q, X) {
|
|
2602
|
+
O.setRequestHeader(X, q);
|
|
2580
2603
|
});
|
|
2581
2604
|
L.signal && (L.signal.addEventListener("abort", H), O.onreadystatechange = function() {
|
|
2582
2605
|
O.readyState === 4 && L.signal.removeEventListener("abort", H);
|
|
2583
2606
|
}), O.send(typeof L._bodyInit > "u" ? null : L._bodyInit);
|
|
2584
2607
|
});
|
|
2585
2608
|
}
|
|
2586
|
-
return F.polyfill = !0, a.fetch || (a.fetch = F, a.Headers = m, a.Request = C, a.Response =
|
|
2609
|
+
return F.polyfill = !0, a.fetch || (a.fetch = F, a.Headers = m, a.Request = C, a.Response = x), i.Headers = m, i.Request = C, i.Response = x, i.fetch = F, i;
|
|
2587
2610
|
})({});
|
|
2588
2611
|
})(s), s.fetch.ponyfill = !0, delete s.fetch.polyfill;
|
|
2589
2612
|
var n = t.fetch ? t : s;
|
|
2590
2613
|
e = n.fetch, e.default = n.fetch, e.fetch = n.fetch, e.Headers = n.Headers, e.Request = n.Request, e.Response = n.Response, r.exports = e;
|
|
2591
|
-
}(
|
|
2614
|
+
}(_e, _e.exports)), _e.exports;
|
|
2592
2615
|
}
|
|
2593
|
-
var
|
|
2594
|
-
const
|
|
2595
|
-
let We = "https://gcp-us-east1.api.carto.com", Ke = "v3", xn = "ps";
|
|
2596
|
-
const de = {
|
|
2616
|
+
var Un = Rn();
|
|
2617
|
+
const $n = /* @__PURE__ */ wt(Un), We = "https://gcp-us-east1.api.carto.com", Ke = "v3", xn = "ps", de = {
|
|
2597
2618
|
get: "GET",
|
|
2598
2619
|
post: "POST"
|
|
2599
2620
|
};
|
|
2600
|
-
function
|
|
2621
|
+
function Bn(r, e) {
|
|
2601
2622
|
return Array.isArray(e) ? `${r}=${encodeURIComponent(JSON.stringify(e))}` : e == null || e === "" ? "" : typeof e == "object" ? `${r}=${encodeURIComponent(JSON.stringify(e))}` : `${r}=${encodeURIComponent(e)}`;
|
|
2602
2623
|
}
|
|
2603
|
-
function
|
|
2624
|
+
function jn({
|
|
2604
2625
|
params: r,
|
|
2605
2626
|
url: e
|
|
2606
2627
|
}) {
|
|
2607
2628
|
if (!r) return e;
|
|
2608
|
-
const t = Object.entries(r).map(([s, n]) =>
|
|
2629
|
+
const t = Object.entries(r).map(([s, n]) => Bn(s, n));
|
|
2609
2630
|
return `${e}?${t.filter(Boolean).join("&")}`;
|
|
2610
2631
|
}
|
|
2611
|
-
function
|
|
2632
|
+
function qn(r) {
|
|
2612
2633
|
return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
|
|
2613
2634
|
}
|
|
2614
|
-
var
|
|
2615
|
-
function
|
|
2616
|
-
if (ct) return
|
|
2635
|
+
var qe, ct;
|
|
2636
|
+
function Vn() {
|
|
2637
|
+
if (ct) return qe;
|
|
2617
2638
|
ct = 1;
|
|
2618
2639
|
var r = function(f) {
|
|
2619
2640
|
return e(f) && !t(f);
|
|
@@ -2636,8 +2657,8 @@ function Bn() {
|
|
|
2636
2657
|
return h.clone !== !1 && h.isMergeableObject(f) ? m(i(f), f, h) : f;
|
|
2637
2658
|
}
|
|
2638
2659
|
function l(f, h, w) {
|
|
2639
|
-
return f.concat(h).map(function(
|
|
2640
|
-
return a(
|
|
2660
|
+
return f.concat(h).map(function(E) {
|
|
2661
|
+
return a(E, w);
|
|
2641
2662
|
});
|
|
2642
2663
|
}
|
|
2643
2664
|
function c(f, h) {
|
|
@@ -2664,29 +2685,29 @@ function Bn() {
|
|
|
2664
2685
|
return y(f, h) && !(Object.hasOwnProperty.call(f, h) && Object.propertyIsEnumerable.call(f, h));
|
|
2665
2686
|
}
|
|
2666
2687
|
function g(f, h, w) {
|
|
2667
|
-
var
|
|
2688
|
+
var E = {};
|
|
2668
2689
|
return w.isMergeableObject(f) && p(f).forEach(function(T) {
|
|
2669
|
-
|
|
2690
|
+
E[T] = a(f[T], w);
|
|
2670
2691
|
}), p(h).forEach(function(T) {
|
|
2671
|
-
d(f, T) || (y(f, T) && w.isMergeableObject(h[T]) ?
|
|
2672
|
-
}),
|
|
2692
|
+
d(f, T) || (y(f, T) && w.isMergeableObject(h[T]) ? E[T] = c(T, w)(f[T], h[T], w) : E[T] = a(h[T], w));
|
|
2693
|
+
}), E;
|
|
2673
2694
|
}
|
|
2674
2695
|
function m(f, h, w) {
|
|
2675
2696
|
w = w || {}, w.arrayMerge = w.arrayMerge || l, w.isMergeableObject = w.isMergeableObject || r, w.cloneUnlessOtherwiseSpecified = a;
|
|
2676
|
-
var
|
|
2677
|
-
return
|
|
2697
|
+
var E = Array.isArray(h), T = Array.isArray(f), _ = E === T;
|
|
2698
|
+
return _ ? E ? w.arrayMerge(f, h, w) : g(f, h, w) : a(h, w);
|
|
2678
2699
|
}
|
|
2679
2700
|
m.all = function(f, h) {
|
|
2680
2701
|
if (!Array.isArray(f)) throw new Error("first argument should be an array");
|
|
2681
|
-
return f.reduce(function(w,
|
|
2682
|
-
return m(w,
|
|
2702
|
+
return f.reduce(function(w, E) {
|
|
2703
|
+
return m(w, E, h);
|
|
2683
2704
|
}, {});
|
|
2684
2705
|
};
|
|
2685
2706
|
var S = m;
|
|
2686
|
-
return
|
|
2707
|
+
return qe = S, qe;
|
|
2687
2708
|
}
|
|
2688
|
-
var
|
|
2689
|
-
const Ze = /* @__PURE__ */
|
|
2709
|
+
var In = Vn();
|
|
2710
|
+
const Ze = /* @__PURE__ */ qn(In);
|
|
2690
2711
|
function ut(r) {
|
|
2691
2712
|
return Ze({
|
|
2692
2713
|
method: de.get,
|
|
@@ -2705,21 +2726,21 @@ function Ve(r, e) {
|
|
|
2705
2726
|
body: JSON.stringify(e)
|
|
2706
2727
|
}, r);
|
|
2707
2728
|
}
|
|
2708
|
-
const
|
|
2729
|
+
const Nn = {
|
|
2709
2730
|
GET: ut,
|
|
2710
2731
|
POST: Ve,
|
|
2711
2732
|
PUT: Ve,
|
|
2712
2733
|
PATCH: Ve,
|
|
2713
2734
|
DELETE: ut
|
|
2714
2735
|
};
|
|
2715
|
-
function
|
|
2736
|
+
function Hn({
|
|
2716
2737
|
body: r,
|
|
2717
2738
|
accessToken: e,
|
|
2718
2739
|
method: t,
|
|
2719
2740
|
...s
|
|
2720
2741
|
}) {
|
|
2721
2742
|
let n = e;
|
|
2722
|
-
return n && !n.includes("Bearer") && (n = "Bearer " + n),
|
|
2743
|
+
return n && !n.includes("Bearer") && (n = "Bearer " + n), Nn[t](Ze({
|
|
2723
2744
|
method: t,
|
|
2724
2745
|
headers: {
|
|
2725
2746
|
...!!n && {
|
|
@@ -2728,7 +2749,7 @@ function Nn({
|
|
|
2728
2749
|
}
|
|
2729
2750
|
}, s), r);
|
|
2730
2751
|
}
|
|
2731
|
-
const
|
|
2752
|
+
const Gn = 6144;
|
|
2732
2753
|
async function At({
|
|
2733
2754
|
signal: r,
|
|
2734
2755
|
body: e,
|
|
@@ -2740,30 +2761,30 @@ async function At({
|
|
|
2740
2761
|
requestOptions: {
|
|
2741
2762
|
getMaxUrlLength: a
|
|
2742
2763
|
} = {
|
|
2743
|
-
getMaxUrlLength:
|
|
2764
|
+
getMaxUrlLength: Gn
|
|
2744
2765
|
},
|
|
2745
2766
|
...l
|
|
2746
2767
|
}) {
|
|
2747
|
-
let c =
|
|
2768
|
+
let c = jn({
|
|
2748
2769
|
url: i,
|
|
2749
2770
|
params: o
|
|
2750
2771
|
}), b = e, p = n;
|
|
2751
2772
|
n === de.get && c.length > a && (b = o, p = de.post, c = i);
|
|
2752
|
-
const y =
|
|
2773
|
+
const y = Hn({
|
|
2753
2774
|
body: b,
|
|
2754
2775
|
accessToken: t ?? (s == null ? void 0 : s.accessToken),
|
|
2755
2776
|
method: p,
|
|
2756
2777
|
...l
|
|
2757
2778
|
});
|
|
2758
2779
|
r && (y.signal = r);
|
|
2759
|
-
const d = await
|
|
2780
|
+
const d = await $n(c, y);
|
|
2760
2781
|
if (!d.ok) {
|
|
2761
2782
|
const g = await d.text();
|
|
2762
2783
|
return Promise.reject(new Error(g));
|
|
2763
2784
|
}
|
|
2764
2785
|
return d.status === 204 ? Promise.resolve() : await d.json();
|
|
2765
2786
|
}
|
|
2766
|
-
const Pe =
|
|
2787
|
+
const Pe = mt()(hs((r) => ({
|
|
2767
2788
|
sources: {},
|
|
2768
2789
|
filters: {},
|
|
2769
2790
|
setSource: (e, t) => r((s) => {
|
|
@@ -2786,7 +2807,7 @@ const Pe = yt()(hs((r) => ({
|
|
|
2786
2807
|
apiBaseUrl: a,
|
|
2787
2808
|
apiVersion: c,
|
|
2788
2809
|
clientId: l
|
|
2789
|
-
}, y =
|
|
2810
|
+
}, y = Wn({
|
|
2790
2811
|
source: p
|
|
2791
2812
|
});
|
|
2792
2813
|
return p.widgets = y, n[e] = p, {
|
|
@@ -2837,18 +2858,18 @@ const Pe = yt()(hs((r) => ({
|
|
|
2837
2858
|
};
|
|
2838
2859
|
}, void 0, "removeFilters")
|
|
2839
2860
|
})));
|
|
2840
|
-
function
|
|
2841
|
-
const e =
|
|
2861
|
+
function zn(r) {
|
|
2862
|
+
const e = D(2);
|
|
2842
2863
|
let t;
|
|
2843
2864
|
return e[0] !== r ? (t = (s) => s.sources[r], e[0] = r, e[1] = t) : t = e[1], Pe(t);
|
|
2844
2865
|
}
|
|
2845
|
-
function
|
|
2846
|
-
const e =
|
|
2866
|
+
function Qn(r) {
|
|
2867
|
+
const e = D(2);
|
|
2847
2868
|
let t;
|
|
2848
2869
|
return e[0] !== r ? (t = (s) => s.filters[r], e[0] = r, e[1] = t) : t = e[1], Pe(t);
|
|
2849
2870
|
}
|
|
2850
|
-
function
|
|
2851
|
-
const e =
|
|
2871
|
+
function Wr(r) {
|
|
2872
|
+
const e = D(9);
|
|
2852
2873
|
let t;
|
|
2853
2874
|
e[0] !== r ? (t = (a) => a.sources[r], e[0] = r, e[1] = t) : t = e[1];
|
|
2854
2875
|
const s = Pe(t);
|
|
@@ -2871,14 +2892,14 @@ function zr(r) {
|
|
|
2871
2892
|
}
|
|
2872
2893
|
return i;
|
|
2873
2894
|
}
|
|
2874
|
-
function
|
|
2895
|
+
function Kr(r, {
|
|
2875
2896
|
column: e,
|
|
2876
2897
|
type: t
|
|
2877
2898
|
}) {
|
|
2878
2899
|
var s, n;
|
|
2879
2900
|
return ((n = (s = r == null ? void 0 : r[e]) == null ? void 0 : s[t]) == null ? void 0 : n.values) ?? [];
|
|
2880
2901
|
}
|
|
2881
|
-
function
|
|
2902
|
+
function Wn({
|
|
2882
2903
|
source: r
|
|
2883
2904
|
}) {
|
|
2884
2905
|
const e = {
|
|
@@ -2924,14 +2945,14 @@ function Qn({
|
|
|
2924
2945
|
return s == null ? void 0 : s();
|
|
2925
2946
|
}
|
|
2926
2947
|
function ie(r, e) {
|
|
2927
|
-
const t =
|
|
2948
|
+
const t = zn(e);
|
|
2928
2949
|
return re(() => {
|
|
2929
2950
|
const s = t == null ? void 0 : t.widgets;
|
|
2930
2951
|
return !s || !r ? null : (s.props.accessToken = r, s);
|
|
2931
2952
|
}, [r, t]);
|
|
2932
2953
|
}
|
|
2933
2954
|
function ae(r, e) {
|
|
2934
|
-
const t =
|
|
2955
|
+
const t = D(5), s = Qn(r);
|
|
2935
2956
|
let n;
|
|
2936
2957
|
e: {
|
|
2937
2958
|
if (!(e != null && e.length)) {
|
|
@@ -2940,7 +2961,7 @@ function ae(r, e) {
|
|
|
2940
2961
|
}
|
|
2941
2962
|
let o;
|
|
2942
2963
|
if (t[0] !== e || t[1] !== s) {
|
|
2943
|
-
const i = e.reduce(
|
|
2964
|
+
const i = e.reduce(Kn, {});
|
|
2944
2965
|
let a;
|
|
2945
2966
|
t[3] !== s ? (a = s ?? {}, t[3] = s, t[4] = a) : a = t[4], o = ue(a, i), t[0] = e, t[1] = s, t[2] = o;
|
|
2946
2967
|
} else
|
|
@@ -2949,11 +2970,11 @@ function ae(r, e) {
|
|
|
2949
2970
|
}
|
|
2950
2971
|
return n;
|
|
2951
2972
|
}
|
|
2952
|
-
function
|
|
2973
|
+
function Kn(r, e) {
|
|
2953
2974
|
return vt(r, e);
|
|
2954
2975
|
}
|
|
2955
|
-
function
|
|
2956
|
-
const e =
|
|
2976
|
+
function Zn(r) {
|
|
2977
|
+
const e = D(19), {
|
|
2957
2978
|
accessToken: t,
|
|
2958
2979
|
sourceId: s,
|
|
2959
2980
|
widgetProps: n,
|
|
@@ -2990,19 +3011,19 @@ function Kn(r) {
|
|
|
2990
3011
|
...c
|
|
2991
3012
|
}, e[14] = d, e[15] = g, e[16] = m, e[17] = c, e[18] = S) : S = e[18], se(S);
|
|
2992
3013
|
}
|
|
2993
|
-
function
|
|
2994
|
-
const e =
|
|
3014
|
+
function Zr(r) {
|
|
3015
|
+
const e = D(6);
|
|
2995
3016
|
let t, s;
|
|
2996
3017
|
e[0] !== r ? ({
|
|
2997
3018
|
children: t,
|
|
2998
3019
|
...s
|
|
2999
3020
|
} = r, e[0] = r, e[1] = t, e[2] = s) : (t = e[1], s = e[2]);
|
|
3000
|
-
const n =
|
|
3021
|
+
const n = Zn(s);
|
|
3001
3022
|
let o;
|
|
3002
3023
|
return e[3] !== t || e[4] !== n ? (o = t(n), e[3] = t, e[4] = n, e[5] = o) : o = e[5], o;
|
|
3003
3024
|
}
|
|
3004
|
-
function
|
|
3005
|
-
const e =
|
|
3025
|
+
function Yn(r) {
|
|
3026
|
+
const e = D(19), {
|
|
3006
3027
|
accessToken: t,
|
|
3007
3028
|
sourceId: s,
|
|
3008
3029
|
widgetProps: n,
|
|
@@ -3039,19 +3060,19 @@ function Zn(r) {
|
|
|
3039
3060
|
...c
|
|
3040
3061
|
}, e[14] = d, e[15] = g, e[16] = m, e[17] = c, e[18] = S) : S = e[18], se(S);
|
|
3041
3062
|
}
|
|
3042
|
-
function
|
|
3043
|
-
const e =
|
|
3063
|
+
function Yr(r) {
|
|
3064
|
+
const e = D(6);
|
|
3044
3065
|
let t, s;
|
|
3045
3066
|
e[0] !== r ? ({
|
|
3046
3067
|
children: t,
|
|
3047
3068
|
...s
|
|
3048
3069
|
} = r, e[0] = r, e[1] = t, e[2] = s) : (t = e[1], s = e[2]);
|
|
3049
|
-
const n =
|
|
3070
|
+
const n = Yn(s);
|
|
3050
3071
|
let o;
|
|
3051
3072
|
return e[3] !== t || e[4] !== n ? (o = t(n), e[3] = t, e[4] = n, e[5] = o) : o = e[5], o;
|
|
3052
3073
|
}
|
|
3053
|
-
function
|
|
3054
|
-
const e =
|
|
3074
|
+
function Xn(r) {
|
|
3075
|
+
const e = D(19), {
|
|
3055
3076
|
accessToken: t,
|
|
3056
3077
|
sourceId: s,
|
|
3057
3078
|
widgetProps: n,
|
|
@@ -3088,19 +3109,19 @@ function Yn(r) {
|
|
|
3088
3109
|
...c
|
|
3089
3110
|
}, e[14] = d, e[15] = g, e[16] = m, e[17] = c, e[18] = S) : S = e[18], se(S);
|
|
3090
3111
|
}
|
|
3091
|
-
function
|
|
3092
|
-
const e =
|
|
3112
|
+
function Xr(r) {
|
|
3113
|
+
const e = D(6);
|
|
3093
3114
|
let t, s;
|
|
3094
3115
|
e[0] !== r ? ({
|
|
3095
3116
|
children: t,
|
|
3096
3117
|
...s
|
|
3097
3118
|
} = r, e[0] = r, e[1] = t, e[2] = s) : (t = e[1], s = e[2]);
|
|
3098
|
-
const n =
|
|
3119
|
+
const n = Xn(s);
|
|
3099
3120
|
let o;
|
|
3100
3121
|
return e[3] !== t || e[4] !== n ? (o = t(n), e[3] = t, e[4] = n, e[5] = o) : o = e[5], o;
|
|
3101
3122
|
}
|
|
3102
|
-
function
|
|
3103
|
-
const e =
|
|
3123
|
+
function Jn(r) {
|
|
3124
|
+
const e = D(19), {
|
|
3104
3125
|
accessToken: t,
|
|
3105
3126
|
sourceId: s,
|
|
3106
3127
|
widgetProps: n,
|
|
@@ -3137,19 +3158,19 @@ function Xn(r) {
|
|
|
3137
3158
|
...c
|
|
3138
3159
|
}, e[14] = d, e[15] = g, e[16] = m, e[17] = c, e[18] = S) : S = e[18], se(S);
|
|
3139
3160
|
}
|
|
3140
|
-
function
|
|
3141
|
-
const e =
|
|
3161
|
+
function Jr(r) {
|
|
3162
|
+
const e = D(6);
|
|
3142
3163
|
let t, s;
|
|
3143
3164
|
e[0] !== r ? ({
|
|
3144
3165
|
children: t,
|
|
3145
3166
|
...s
|
|
3146
3167
|
} = r, e[0] = r, e[1] = t, e[2] = s) : (t = e[1], s = e[2]);
|
|
3147
|
-
const n =
|
|
3168
|
+
const n = Jn(s);
|
|
3148
3169
|
let o;
|
|
3149
3170
|
return e[3] !== t || e[4] !== n ? (o = t(n), e[3] = t, e[4] = n, e[5] = o) : o = e[5], o;
|
|
3150
3171
|
}
|
|
3151
|
-
function
|
|
3152
|
-
const e =
|
|
3172
|
+
function er(r) {
|
|
3173
|
+
const e = D(19), {
|
|
3153
3174
|
accessToken: t,
|
|
3154
3175
|
sourceId: s,
|
|
3155
3176
|
widgetProps: n,
|
|
@@ -3186,19 +3207,19 @@ function Jn(r) {
|
|
|
3186
3207
|
...c
|
|
3187
3208
|
}, e[14] = d, e[15] = g, e[16] = m, e[17] = c, e[18] = S) : S = e[18], se(S);
|
|
3188
3209
|
}
|
|
3189
|
-
function
|
|
3190
|
-
const e =
|
|
3210
|
+
function eo(r) {
|
|
3211
|
+
const e = D(6);
|
|
3191
3212
|
let t, s;
|
|
3192
3213
|
e[0] !== r ? ({
|
|
3193
3214
|
children: t,
|
|
3194
3215
|
...s
|
|
3195
3216
|
} = r, e[0] = r, e[1] = t, e[2] = s) : (t = e[1], s = e[2]);
|
|
3196
|
-
const n =
|
|
3217
|
+
const n = er(s);
|
|
3197
3218
|
let o;
|
|
3198
3219
|
return e[3] !== t || e[4] !== n ? (o = t(n), e[3] = t, e[4] = n, e[5] = o) : o = e[5], o;
|
|
3199
3220
|
}
|
|
3200
|
-
function
|
|
3201
|
-
const e =
|
|
3221
|
+
function tr(r) {
|
|
3222
|
+
const e = D(19), {
|
|
3202
3223
|
accessToken: t,
|
|
3203
3224
|
sourceId: s,
|
|
3204
3225
|
widgetProps: n,
|
|
@@ -3235,19 +3256,19 @@ function er(r) {
|
|
|
3235
3256
|
...c
|
|
3236
3257
|
}, e[14] = d, e[15] = g, e[16] = m, e[17] = c, e[18] = S) : S = e[18], se(S);
|
|
3237
3258
|
}
|
|
3238
|
-
function
|
|
3239
|
-
const e =
|
|
3259
|
+
function to(r) {
|
|
3260
|
+
const e = D(6);
|
|
3240
3261
|
let t, s;
|
|
3241
3262
|
e[0] !== r ? ({
|
|
3242
3263
|
children: t,
|
|
3243
3264
|
...s
|
|
3244
3265
|
} = r, e[0] = r, e[1] = t, e[2] = s) : (t = e[1], s = e[2]);
|
|
3245
|
-
const n =
|
|
3266
|
+
const n = tr(s);
|
|
3246
3267
|
let o;
|
|
3247
3268
|
return e[3] !== t || e[4] !== n ? (o = t(n), e[3] = t, e[4] = n, e[5] = o) : o = e[5], o;
|
|
3248
3269
|
}
|
|
3249
|
-
function
|
|
3250
|
-
const e =
|
|
3270
|
+
function sr(r) {
|
|
3271
|
+
const e = D(19), {
|
|
3251
3272
|
accessToken: t,
|
|
3252
3273
|
sourceId: s,
|
|
3253
3274
|
widgetProps: n,
|
|
@@ -3284,19 +3305,19 @@ function tr(r) {
|
|
|
3284
3305
|
...c
|
|
3285
3306
|
}, e[14] = d, e[15] = g, e[16] = m, e[17] = c, e[18] = S) : S = e[18], se(S);
|
|
3286
3307
|
}
|
|
3287
|
-
function
|
|
3288
|
-
const e =
|
|
3308
|
+
function so(r) {
|
|
3309
|
+
const e = D(6);
|
|
3289
3310
|
let t, s;
|
|
3290
3311
|
e[0] !== r ? ({
|
|
3291
3312
|
children: t,
|
|
3292
3313
|
...s
|
|
3293
3314
|
} = r, e[0] = r, e[1] = t, e[2] = s) : (t = e[1], s = e[2]);
|
|
3294
|
-
const n =
|
|
3315
|
+
const n = sr(s);
|
|
3295
3316
|
let o;
|
|
3296
3317
|
return e[3] !== t || e[4] !== n ? (o = t(n), e[3] = t, e[4] = n, e[5] = o) : o = e[5], o;
|
|
3297
3318
|
}
|
|
3298
|
-
function
|
|
3299
|
-
const e =
|
|
3319
|
+
function nr(r) {
|
|
3320
|
+
const e = D(19), {
|
|
3300
3321
|
accessToken: t,
|
|
3301
3322
|
sourceId: s,
|
|
3302
3323
|
widgetProps: n,
|
|
@@ -3333,20 +3354,20 @@ function sr(r) {
|
|
|
3333
3354
|
...c
|
|
3334
3355
|
}, e[14] = d, e[15] = g, e[16] = m, e[17] = c, e[18] = S) : S = e[18], se(S);
|
|
3335
3356
|
}
|
|
3336
|
-
function
|
|
3337
|
-
const e =
|
|
3357
|
+
function no(r) {
|
|
3358
|
+
const e = D(6);
|
|
3338
3359
|
let t, s;
|
|
3339
3360
|
e[0] !== r ? ({
|
|
3340
3361
|
children: t,
|
|
3341
3362
|
...s
|
|
3342
3363
|
} = r, e[0] = r, e[1] = t, e[2] = s) : (t = e[1], s = e[2]);
|
|
3343
|
-
const n =
|
|
3364
|
+
const n = nr(s);
|
|
3344
3365
|
let o;
|
|
3345
3366
|
return e[3] !== t || e[4] !== n ? (o = t(n), e[3] = t, e[4] = n, e[5] = o) : o = e[5], o;
|
|
3346
3367
|
}
|
|
3347
|
-
const
|
|
3348
|
-
function
|
|
3349
|
-
const e =
|
|
3368
|
+
const ro = "ps";
|
|
3369
|
+
function oo(r) {
|
|
3370
|
+
const e = D(13), {
|
|
3350
3371
|
children: t,
|
|
3351
3372
|
maps: s,
|
|
3352
3373
|
lassoTools: n,
|
|
@@ -3359,14 +3380,14 @@ function no(r) {
|
|
|
3359
3380
|
e[2] !== o ? (l = o === void 0 ? [] : o, e[2] = o, e[3] = l) : l = e[3];
|
|
3360
3381
|
const c = l;
|
|
3361
3382
|
let b;
|
|
3362
|
-
e[4] !== t || e[5] !== c ? (b = /* @__PURE__ */ N(
|
|
3383
|
+
e[4] !== t || e[5] !== c ? (b = /* @__PURE__ */ N(fn, { values: c, children: t }), e[4] = t, e[5] = c, e[6] = b) : b = e[6];
|
|
3363
3384
|
let p;
|
|
3364
|
-
e[7] !== a || e[8] !== b ? (p = /* @__PURE__ */ N(
|
|
3385
|
+
e[7] !== a || e[8] !== b ? (p = /* @__PURE__ */ N(Ws, { values: a, children: b }), e[7] = a, e[8] = b, e[9] = p) : p = e[9];
|
|
3365
3386
|
let y;
|
|
3366
|
-
return e[10] !== s || e[11] !== p ? (y = /* @__PURE__ */ N(
|
|
3387
|
+
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;
|
|
3367
3388
|
}
|
|
3368
|
-
function
|
|
3369
|
-
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))), [t, r]), o = re(() => n.map(e), [e, n]), i = Q(({
|
|
3389
|
+
function io(r, e) {
|
|
3390
|
+
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(({
|
|
3370
3391
|
id: c,
|
|
3371
3392
|
visible: b,
|
|
3372
3393
|
...p
|
|
@@ -3403,7 +3424,7 @@ function ro(r, e) {
|
|
|
3403
3424
|
onChangeRowCollapse: a
|
|
3404
3425
|
};
|
|
3405
3426
|
}
|
|
3406
|
-
function
|
|
3427
|
+
function ao({
|
|
3407
3428
|
mapId: r
|
|
3408
3429
|
}) {
|
|
3409
3430
|
const [e, t] = oe(void 0), [s, n] = oe(!1), o = U((m) => {
|
|
@@ -3421,16 +3442,16 @@ function oo({
|
|
|
3421
3442
|
f.width = m.width ?? 0, f.height = m.height ?? 0;
|
|
3422
3443
|
const h = f.getContext("2d");
|
|
3423
3444
|
if (y) {
|
|
3424
|
-
const
|
|
3425
|
-
if (
|
|
3445
|
+
const E = S;
|
|
3446
|
+
if (E.getRenderingType() !== "RASTER")
|
|
3426
3447
|
throw new Error("Only raster type is supported for Google Maps");
|
|
3427
|
-
const T = await gs(
|
|
3448
|
+
const T = await gs(E.getDiv(), {
|
|
3428
3449
|
useCORS: !0
|
|
3429
3450
|
});
|
|
3430
3451
|
h == null || h.drawImage(T, 0, 0, m.width, m.height);
|
|
3431
3452
|
} else {
|
|
3432
|
-
const
|
|
3433
|
-
|
|
3453
|
+
const E = S;
|
|
3454
|
+
E.redraw(), h == null || h.drawImage(E.getMap().getCanvas(), 0, 0, m.width, m.height);
|
|
3434
3455
|
}
|
|
3435
3456
|
m == null || m.redraw("screenshot"), h == null || h.drawImage(m.getCanvas(), 0, 0, m.width, m.height);
|
|
3436
3457
|
const w = f.toDataURL();
|
|
@@ -3449,25 +3470,25 @@ function oo({
|
|
|
3449
3470
|
screenshot: e
|
|
3450
3471
|
};
|
|
3451
3472
|
}
|
|
3452
|
-
function
|
|
3453
|
-
const e =
|
|
3473
|
+
function lo(r) {
|
|
3474
|
+
const e = D(11), {
|
|
3454
3475
|
mapId: t
|
|
3455
3476
|
} = r;
|
|
3456
3477
|
let s;
|
|
3457
3478
|
e[0] !== t ? (s = {
|
|
3458
3479
|
mapId: t
|
|
3459
3480
|
}, e[0] = t, e[1] = s) : s = e[1];
|
|
3460
|
-
const n =
|
|
3481
|
+
const n = rr(s);
|
|
3461
3482
|
let o;
|
|
3462
3483
|
e[2] !== t ? (o = {
|
|
3463
3484
|
mapId: t
|
|
3464
3485
|
}, e[2] = t, e[3] = o) : o = e[3];
|
|
3465
|
-
const i =
|
|
3486
|
+
const i = or(o);
|
|
3466
3487
|
let a;
|
|
3467
3488
|
e[4] !== t ? (a = {
|
|
3468
3489
|
mapId: t
|
|
3469
3490
|
}, e[4] = t, e[5] = a) : a = e[5];
|
|
3470
|
-
const l =
|
|
3491
|
+
const l = lr(a), c = i ?? l ?? n;
|
|
3471
3492
|
let b;
|
|
3472
3493
|
return e[6] !== i || e[7] !== l || e[8] !== c || e[9] !== n ? (b = {
|
|
3473
3494
|
spatialFilter: c,
|
|
@@ -3476,8 +3497,8 @@ function io(r) {
|
|
|
3476
3497
|
viewportSpatialFilter: n
|
|
3477
3498
|
}, e[6] = i, e[7] = l, e[8] = c, e[9] = n, e[10] = b) : b = e[10], b;
|
|
3478
3499
|
}
|
|
3479
|
-
function
|
|
3480
|
-
const e =
|
|
3500
|
+
function rr(r) {
|
|
3501
|
+
const e = D(4), {
|
|
3481
3502
|
mapId: t
|
|
3482
3503
|
} = r;
|
|
3483
3504
|
let s;
|
|
@@ -3494,8 +3515,8 @@ function nr(r) {
|
|
|
3494
3515
|
}
|
|
3495
3516
|
return o;
|
|
3496
3517
|
}
|
|
3497
|
-
function
|
|
3498
|
-
const e =
|
|
3518
|
+
function or(r) {
|
|
3519
|
+
const e = D(5), {
|
|
3499
3520
|
mapId: t
|
|
3500
3521
|
} = r;
|
|
3501
3522
|
let s;
|
|
@@ -3508,28 +3529,28 @@ function rr(r) {
|
|
|
3508
3529
|
e: {
|
|
3509
3530
|
let i;
|
|
3510
3531
|
if (e[2] !== n) {
|
|
3511
|
-
const a =
|
|
3532
|
+
const a = _t({
|
|
3512
3533
|
values: n
|
|
3513
|
-
}).filter(
|
|
3534
|
+
}).filter(ar);
|
|
3514
3535
|
if (!(a != null && a.length)) {
|
|
3515
3536
|
o = void 0;
|
|
3516
3537
|
break e;
|
|
3517
3538
|
}
|
|
3518
|
-
i = gt(a.map(
|
|
3539
|
+
i = gt(a.map(ir)), e[2] = n, e[3] = i, e[4] = o;
|
|
3519
3540
|
} else
|
|
3520
3541
|
i = e[3], o = e[4];
|
|
3521
3542
|
o = i.geometry;
|
|
3522
3543
|
}
|
|
3523
3544
|
return o;
|
|
3524
3545
|
}
|
|
3525
|
-
function
|
|
3546
|
+
function ir(r) {
|
|
3526
3547
|
return r.geometry.coordinates;
|
|
3527
3548
|
}
|
|
3528
|
-
function
|
|
3549
|
+
function ar(r) {
|
|
3529
3550
|
return r.properties.visible;
|
|
3530
3551
|
}
|
|
3531
|
-
function
|
|
3532
|
-
const e =
|
|
3552
|
+
function lr(r) {
|
|
3553
|
+
const e = D(4), {
|
|
3533
3554
|
mapId: t
|
|
3534
3555
|
} = r;
|
|
3535
3556
|
let s;
|
|
@@ -3543,7 +3564,7 @@ function ar(r) {
|
|
|
3543
3564
|
}
|
|
3544
3565
|
let i;
|
|
3545
3566
|
if (e[2] !== n) {
|
|
3546
|
-
const a = Object.values(n).filter(
|
|
3567
|
+
const a = Object.values(n).filter(ur).flatMap(cr);
|
|
3547
3568
|
i = gt(a), e[2] = n, e[3] = i;
|
|
3548
3569
|
} else
|
|
3549
3570
|
i = e[3];
|
|
@@ -3551,10 +3572,10 @@ function ar(r) {
|
|
|
3551
3572
|
}
|
|
3552
3573
|
return o;
|
|
3553
3574
|
}
|
|
3554
|
-
function
|
|
3575
|
+
function cr(r) {
|
|
3555
3576
|
return r.type === "Polygon" ? [r.coordinates] : r.coordinates;
|
|
3556
3577
|
}
|
|
3557
|
-
function
|
|
3578
|
+
function ur(r) {
|
|
3558
3579
|
return r != null;
|
|
3559
3580
|
}
|
|
3560
3581
|
const le = {
|
|
@@ -3575,17 +3596,17 @@ const le = {
|
|
|
3575
3596
|
format: (r) => r.toLocaleString()
|
|
3576
3597
|
}
|
|
3577
3598
|
};
|
|
3578
|
-
function
|
|
3599
|
+
function co({
|
|
3579
3600
|
properties: r,
|
|
3580
3601
|
formatters: e = {},
|
|
3581
3602
|
includeColumns: t = Object.keys(r),
|
|
3582
3603
|
locale: s = "en-US",
|
|
3583
3604
|
showColumnName: n = !0,
|
|
3584
3605
|
title: o,
|
|
3585
|
-
getColumnName: i =
|
|
3586
|
-
getFieldHtml: a =
|
|
3587
|
-
getTitle: l =
|
|
3588
|
-
getValue: c =
|
|
3606
|
+
getColumnName: i = yr,
|
|
3607
|
+
getFieldHtml: a = fr,
|
|
3608
|
+
getTitle: l = dr,
|
|
3609
|
+
getValue: c = pr
|
|
3589
3610
|
}) {
|
|
3590
3611
|
const b = o ? l(o) : "", y = t.reduce((d, g) => {
|
|
3591
3612
|
const m = e[g], S = r[g], f = c(S, s, m), h = n ? i(g) : "";
|
|
@@ -3593,26 +3614,26 @@ function ao({
|
|
|
3593
3614
|
}, "");
|
|
3594
3615
|
return b + y;
|
|
3595
3616
|
}
|
|
3596
|
-
function
|
|
3617
|
+
function dr(r) {
|
|
3597
3618
|
return `<h3 style="margin: 0"><strong>${r}</strong></h3></br>`;
|
|
3598
3619
|
}
|
|
3599
|
-
function
|
|
3620
|
+
function fr(r, e) {
|
|
3600
3621
|
return `${r}${e}</br>`;
|
|
3601
3622
|
}
|
|
3602
|
-
function
|
|
3623
|
+
function pr(r, e, t) {
|
|
3603
3624
|
try {
|
|
3604
|
-
return
|
|
3625
|
+
return mr(t)(r, e);
|
|
3605
3626
|
} catch {
|
|
3606
3627
|
return r;
|
|
3607
3628
|
}
|
|
3608
3629
|
}
|
|
3609
|
-
function
|
|
3630
|
+
function mr(r) {
|
|
3610
3631
|
return typeof r == "function" ? r : ((r && dt[r]) ?? dt[le.default]).format;
|
|
3611
3632
|
}
|
|
3612
|
-
function
|
|
3633
|
+
function yr(r) {
|
|
3613
3634
|
return `<strong>${r}</strong>: `;
|
|
3614
3635
|
}
|
|
3615
|
-
function
|
|
3636
|
+
function uo(r) {
|
|
3616
3637
|
var e, t, s, n, o, i, a, l;
|
|
3617
3638
|
return {
|
|
3618
3639
|
collapsed: (e = r.legend) == null ? void 0 : e.collapsed,
|
|
@@ -3629,8 +3650,8 @@ function lo(r) {
|
|
|
3629
3650
|
visible: r.props.visible ?? !0
|
|
3630
3651
|
};
|
|
3631
3652
|
}
|
|
3632
|
-
function
|
|
3633
|
-
const e =
|
|
3653
|
+
function fo(r) {
|
|
3654
|
+
const e = D(18), {
|
|
3634
3655
|
children: t,
|
|
3635
3656
|
mapId: s
|
|
3636
3657
|
} = r;
|
|
@@ -3643,7 +3664,7 @@ function co(r) {
|
|
|
3643
3664
|
} = U(n);
|
|
3644
3665
|
let l;
|
|
3645
3666
|
e[2] !== s ? (l = (h) => h.areLayersLoaded[s], e[2] = s, e[3] = l) : l = e[3];
|
|
3646
|
-
const c = U(l), b = U(
|
|
3667
|
+
const c = U(l), b = U(gr), p = U(hr), y = !c;
|
|
3647
3668
|
let d;
|
|
3648
3669
|
e[4] !== s || e[5] !== b ? (d = (h) => b(s, h), e[4] = s, e[5] = b, e[6] = d) : d = e[6];
|
|
3649
3670
|
const g = d;
|
|
@@ -3660,13 +3681,13 @@ function co(r) {
|
|
|
3660
3681
|
flyTo: S
|
|
3661
3682
|
}), e[10] = t, e[11] = i, e[12] = a, e[13] = y, e[14] = g, e[15] = S, e[16] = o, e[17] = f) : f = e[17], f;
|
|
3662
3683
|
}
|
|
3663
|
-
function
|
|
3684
|
+
function hr(r) {
|
|
3664
3685
|
return r.flyTo;
|
|
3665
3686
|
}
|
|
3666
|
-
function
|
|
3687
|
+
function gr(r) {
|
|
3667
3688
|
return r.setZoom;
|
|
3668
3689
|
}
|
|
3669
|
-
async function
|
|
3690
|
+
async function br({
|
|
3670
3691
|
baseUrl: r = We,
|
|
3671
3692
|
connection: e,
|
|
3672
3693
|
accessToken: t,
|
|
@@ -3694,7 +3715,7 @@ async function gr({
|
|
|
3694
3715
|
...i
|
|
3695
3716
|
});
|
|
3696
3717
|
}
|
|
3697
|
-
async function
|
|
3718
|
+
async function vr({
|
|
3698
3719
|
baseUrl: r = We,
|
|
3699
3720
|
connection: e,
|
|
3700
3721
|
accessToken: t,
|
|
@@ -3719,8 +3740,8 @@ async function br({
|
|
|
3719
3740
|
...a
|
|
3720
3741
|
});
|
|
3721
3742
|
}
|
|
3722
|
-
function
|
|
3723
|
-
const e =
|
|
3743
|
+
function po(r) {
|
|
3744
|
+
const e = D(20), {
|
|
3724
3745
|
source: t,
|
|
3725
3746
|
attribute: s,
|
|
3726
3747
|
accessToken: n,
|
|
@@ -3739,7 +3760,7 @@ function uo(r) {
|
|
|
3739
3760
|
let y;
|
|
3740
3761
|
e[5] !== s || e[6] !== t ? (y = [t, s], e[5] = s, e[6] = t, e[7] = y) : y = e[7];
|
|
3741
3762
|
let d;
|
|
3742
|
-
e[8] !== n || e[9] !== s || e[10] !== i || e[11] !== o || e[12] !== t ? (d = () =>
|
|
3763
|
+
e[8] !== n || e[9] !== s || e[10] !== i || e[11] !== o || e[12] !== t ? (d = () => Sr({
|
|
3743
3764
|
source: t,
|
|
3744
3765
|
params: o,
|
|
3745
3766
|
attribute: s,
|
|
@@ -3760,7 +3781,7 @@ function uo(r) {
|
|
|
3760
3781
|
...b
|
|
3761
3782
|
}, e[14] = p, e[15] = t, e[16] = y, e[17] = d, e[18] = b, e[19] = g) : g = e[19], se(g);
|
|
3762
3783
|
}
|
|
3763
|
-
function
|
|
3784
|
+
function Sr({
|
|
3764
3785
|
source: r,
|
|
3765
3786
|
params: e,
|
|
3766
3787
|
attribute: t,
|
|
@@ -3768,7 +3789,7 @@ function vr({
|
|
|
3768
3789
|
fetcherOptions: n
|
|
3769
3790
|
}) {
|
|
3770
3791
|
if (r.type.startsWith("query"))
|
|
3771
|
-
return
|
|
3792
|
+
return br({
|
|
3772
3793
|
connection: r.connectionName,
|
|
3773
3794
|
baseUrl: r.apiBaseUrl,
|
|
3774
3795
|
apiVersion: r.apiVersion,
|
|
@@ -3780,7 +3801,7 @@ function vr({
|
|
|
3780
3801
|
fetcherOptions: n
|
|
3781
3802
|
});
|
|
3782
3803
|
if (r.type.startsWith("table"))
|
|
3783
|
-
return
|
|
3804
|
+
return vr({
|
|
3784
3805
|
connection: r.connectionName,
|
|
3785
3806
|
baseUrl: r.apiBaseUrl,
|
|
3786
3807
|
apiVersion: r.apiVersion,
|
|
@@ -3791,7 +3812,7 @@ function vr({
|
|
|
3791
3812
|
fetcherOptions: n
|
|
3792
3813
|
});
|
|
3793
3814
|
if (r.type.startsWith("tileset"))
|
|
3794
|
-
return
|
|
3815
|
+
return wr({
|
|
3795
3816
|
source: r,
|
|
3796
3817
|
accessToken: s,
|
|
3797
3818
|
target: r.data,
|
|
@@ -3799,7 +3820,7 @@ function vr({
|
|
|
3799
3820
|
});
|
|
3800
3821
|
throw new Error(`Unsupported source type: ${r.type}`);
|
|
3801
3822
|
}
|
|
3802
|
-
async function
|
|
3823
|
+
async function wr({
|
|
3803
3824
|
source: r,
|
|
3804
3825
|
accessToken: e,
|
|
3805
3826
|
target: t,
|
|
@@ -3821,93 +3842,94 @@ async function Sr({
|
|
|
3821
3842
|
return i;
|
|
3822
3843
|
}
|
|
3823
3844
|
export {
|
|
3845
|
+
Gr as BasemapsControls,
|
|
3824
3846
|
ot as CONVERSIONS_UNITS,
|
|
3825
3847
|
Ue as CartoBasemapURL,
|
|
3826
3848
|
J as CartoBasemaps,
|
|
3827
|
-
|
|
3828
|
-
|
|
3849
|
+
Zr as CategoriesModel,
|
|
3850
|
+
qs as CustomCompositeEditMode,
|
|
3829
3851
|
Tt as CustomEditableGeojsonLayer,
|
|
3830
|
-
|
|
3831
|
-
|
|
3852
|
+
Ys as CustomMeasureAreaMode,
|
|
3853
|
+
Xs as CustomMeasureBufferMode,
|
|
3832
3854
|
Pt as CustomMeasureDistanceMode,
|
|
3833
3855
|
Je as DEFAULT_LASSO_TOOLS_COLORS,
|
|
3834
|
-
|
|
3835
|
-
|
|
3836
|
-
|
|
3856
|
+
Vs as DEFAULT_LASSO_TOOLS_LAYER_PROPS,
|
|
3857
|
+
xe as DEFAULT_LASSO_TOOLS_MODES,
|
|
3858
|
+
$e as DEFAULT_LASSO_TOOLS_PROPS,
|
|
3837
3859
|
Te as DEFAULT_MASK_LAYER_PROPS,
|
|
3838
|
-
|
|
3839
|
-
|
|
3860
|
+
sn as DEFAULT_MEASUREMENT_TOOLS_MODES,
|
|
3861
|
+
nn as DEFAULT_MEASUREMENT_TOOLS_UNITS,
|
|
3840
3862
|
je as DEFAULT_MEASURE_COLORS,
|
|
3841
3863
|
Os as DeckGLComponent,
|
|
3842
3864
|
Y as EditableEditType,
|
|
3843
|
-
|
|
3844
|
-
|
|
3865
|
+
Yr as FeaturesModel,
|
|
3866
|
+
Xr as FormulaModel,
|
|
3845
3867
|
Re as GmapsBasemap,
|
|
3846
|
-
|
|
3868
|
+
Jr as HistogramModel,
|
|
3847
3869
|
me as INTL_UNITS,
|
|
3848
|
-
|
|
3849
|
-
|
|
3870
|
+
ln as LassoTools,
|
|
3871
|
+
Ws as LassoToolsProvider,
|
|
3850
3872
|
ye as MAPS_BASEMAP,
|
|
3851
3873
|
ce as MAP_LASSO_TOOLS_LAYER_ID,
|
|
3852
3874
|
Le as MAP_MASK_LAYER_ID,
|
|
3853
3875
|
ne as MAP_MEASURE_LAYER_ID,
|
|
3854
|
-
|
|
3876
|
+
tn as MEASUREMENT_TOOLS_UNITS_AREA,
|
|
3855
3877
|
it as MEASUREMENT_TOOLS_UNITS_DISTANCE,
|
|
3856
3878
|
Z as MEASUREMENT_TOOLS_UNITS_DISTANCE_VALUES,
|
|
3857
|
-
|
|
3879
|
+
Qr as MapComponent,
|
|
3858
3880
|
Ie as MapMeasurementUnitAuto,
|
|
3859
|
-
|
|
3860
|
-
|
|
3861
|
-
|
|
3881
|
+
en as MapMeasurementUnitTurf,
|
|
3882
|
+
Bs as MapProvider,
|
|
3883
|
+
oo as MapsProvider,
|
|
3862
3884
|
te as MapsTypes,
|
|
3863
|
-
|
|
3864
|
-
|
|
3865
|
-
|
|
3866
|
-
|
|
3867
|
-
|
|
3868
|
-
|
|
3869
|
-
|
|
3870
|
-
|
|
3885
|
+
En as MeasurementTools,
|
|
3886
|
+
fn as MeasurementToolsProvider,
|
|
3887
|
+
eo as RangeModel,
|
|
3888
|
+
to as ScatterModel,
|
|
3889
|
+
so as TableModel,
|
|
3890
|
+
no as TimeSeriesModel,
|
|
3891
|
+
fo as ZoomControls,
|
|
3892
|
+
ro as clientID,
|
|
3871
3893
|
st as convertMetersTo,
|
|
3872
|
-
|
|
3873
|
-
|
|
3874
|
-
|
|
3894
|
+
Qs as createLassoToolsStore,
|
|
3895
|
+
xs as createMapStore,
|
|
3896
|
+
dn as createMeasurementToolsStore,
|
|
3875
3897
|
le as formatterTypes,
|
|
3876
3898
|
bs as getCursorDefault,
|
|
3877
|
-
|
|
3878
|
-
|
|
3879
|
-
|
|
3880
|
-
|
|
3899
|
+
zr as getDeckController,
|
|
3900
|
+
Kr as getFilterValues,
|
|
3901
|
+
Gs as getLassoToolsLayer,
|
|
3902
|
+
cn as getMeasurementToolsLayer,
|
|
3881
3903
|
Oe as getTextLayerFormattedDistance,
|
|
3882
3904
|
vs as getTooltipDefault,
|
|
3883
|
-
|
|
3884
|
-
|
|
3905
|
+
uo as mappingLegendMeridian,
|
|
3906
|
+
co as objectToHtml,
|
|
3885
3907
|
kt as sortLayers,
|
|
3886
|
-
|
|
3887
|
-
|
|
3908
|
+
As as transitionFlyConfig,
|
|
3909
|
+
Zn as useCategories,
|
|
3888
3910
|
Lt as useEventManager,
|
|
3889
|
-
|
|
3890
|
-
|
|
3891
|
-
|
|
3892
|
-
|
|
3893
|
-
|
|
3911
|
+
Yn as useFeatures,
|
|
3912
|
+
Qn as useFilters,
|
|
3913
|
+
Xn as useFormula,
|
|
3914
|
+
Jn as useHistogram,
|
|
3915
|
+
or as useLassoToolsSpatialFilter,
|
|
3894
3916
|
G as useLassoToolsState,
|
|
3895
3917
|
pe as useLayerStore,
|
|
3896
3918
|
_n as useLayers,
|
|
3897
|
-
|
|
3898
|
-
|
|
3919
|
+
io as useLegend,
|
|
3920
|
+
ao as useMapScreenshot,
|
|
3899
3921
|
U as useMapStore,
|
|
3900
3922
|
I as useMeasurementToolsState,
|
|
3901
|
-
|
|
3902
|
-
|
|
3903
|
-
|
|
3923
|
+
er as useRange,
|
|
3924
|
+
tr as useScatter,
|
|
3925
|
+
zn as useSource,
|
|
3904
3926
|
Pe as useSourceStore,
|
|
3905
|
-
|
|
3906
|
-
|
|
3907
|
-
|
|
3908
|
-
|
|
3909
|
-
|
|
3910
|
-
|
|
3927
|
+
Wr as useSourceWithFilters,
|
|
3928
|
+
lo as useSpatialFilter,
|
|
3929
|
+
po as useStats,
|
|
3930
|
+
sr as useTable,
|
|
3931
|
+
nr as useTimeSeries,
|
|
3932
|
+
rr as useViewportSpatialFilter,
|
|
3911
3933
|
ie as useWidgetModel
|
|
3912
3934
|
};
|
|
3913
3935
|
//# sourceMappingURL=index.js.map
|