@ogc-maps/storybook-components 0.13.0 → 0.14.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/components/CollectionBrowser/CollectionBrowser.d.ts +3 -1
- package/dist/components/CollectionBrowser/CollectionBrowser.d.ts.map +1 -1
- package/dist/components/ImageryEditor/ImageryEditor.d.ts +13 -0
- package/dist/components/ImageryEditor/ImageryEditor.d.ts.map +1 -0
- package/dist/components/ImageryEditor/ImageryList.d.ts +8 -0
- package/dist/components/ImageryEditor/ImageryList.d.ts.map +1 -0
- package/dist/components/ImageryEditor/index.d.ts +5 -0
- package/dist/components/ImageryEditor/index.d.ts.map +1 -0
- package/dist/components/ImageryPanel/ImageryPanel.d.ts +10 -0
- package/dist/components/ImageryPanel/ImageryPanel.d.ts.map +1 -0
- package/dist/components/ImageryPanel/index.d.ts +3 -0
- package/dist/components/ImageryPanel/index.d.ts.map +1 -0
- package/dist/components/SourceEditor/SourceEditor.d.ts +2 -2
- package/dist/components/SourceEditor/SourceEditor.d.ts.map +1 -1
- package/dist/components/SourceEditor/SourceList.d.ts.map +1 -1
- package/dist/components/UIConfigEditor/UIConfigEditor.d.ts.map +1 -1
- package/dist/components/index.d.ts +4 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/{geo-BxXVSJvJ.js → geo-PA_KiJwy.js} +489 -453
- package/dist/hooks/index.d.ts +2 -2
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +57 -50
- package/dist/hooks/useOgcCollections.d.ts +3 -2
- package/dist/hooks/useOgcCollections.d.ts.map +1 -1
- package/dist/hooks/useOgcFeatures.d.ts +2 -2
- package/dist/hooks/useOgcFeatures.d.ts.map +1 -1
- package/dist/{index-CtbLVsqD.js → index-Cz_PEKV1.js} +434 -410
- package/dist/main.js +1927 -1428
- package/dist/schemas/config.d.ts +293 -0
- package/dist/schemas/config.d.ts.map +1 -1
- package/dist/schemas/index.d.ts +1 -1
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/index.js +18 -16
- package/dist/style.css +1 -1
- package/dist/types/index.d.ts +4 -2
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +17 -15
- package/dist/utils/ogcApi.d.ts +42 -13
- package/dist/utils/ogcApi.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useState as
|
|
2
|
-
var S = 63710088e-1,
|
|
1
|
+
import { useState as y, useEffect as N, useCallback as v, useMemo as T } from "react";
|
|
2
|
+
var S = 63710088e-1, re = {
|
|
3
3
|
centimeters: S * 100,
|
|
4
4
|
centimetres: S * 100,
|
|
5
5
|
degrees: 360 / (2 * Math.PI),
|
|
@@ -16,11 +16,11 @@ var S = 63710088e-1, ne = {
|
|
|
16
16
|
radians: 1,
|
|
17
17
|
yards: S * 1.0936
|
|
18
18
|
};
|
|
19
|
-
function
|
|
19
|
+
function U(e, t, n = {}) {
|
|
20
20
|
const r = { type: "Feature" };
|
|
21
21
|
return (n.id === 0 || n.id) && (r.id = n.id), n.bbox && (r.bbox = n.bbox), r.properties = t || {}, r.geometry = e, r;
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function se(e, t, n = {}) {
|
|
24
24
|
for (const s of e) {
|
|
25
25
|
if (s.length < 4)
|
|
26
26
|
throw new Error(
|
|
@@ -32,7 +32,7 @@ function re(e, t, n = {}) {
|
|
|
32
32
|
if (s[s.length - 1][i] !== s[0][i])
|
|
33
33
|
throw new Error("First and last Position are not equivalent.");
|
|
34
34
|
}
|
|
35
|
-
return
|
|
35
|
+
return U({
|
|
36
36
|
type: "Polygon",
|
|
37
37
|
coordinates: e
|
|
38
38
|
}, t, n);
|
|
@@ -40,21 +40,21 @@ function re(e, t, n = {}) {
|
|
|
40
40
|
function Q(e, t, n = {}) {
|
|
41
41
|
if (e.length < 2)
|
|
42
42
|
throw new Error("coordinates must be an array of two or more positions");
|
|
43
|
-
return
|
|
43
|
+
return U({
|
|
44
44
|
type: "LineString",
|
|
45
45
|
coordinates: e
|
|
46
46
|
}, t, n);
|
|
47
47
|
}
|
|
48
|
-
function
|
|
49
|
-
const n =
|
|
48
|
+
function ie(e, t = "kilometers") {
|
|
49
|
+
const n = re[t];
|
|
50
50
|
if (!n)
|
|
51
51
|
throw new Error(t + " units is invalid");
|
|
52
52
|
return e * n;
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function j(e) {
|
|
55
55
|
return e % 360 * Math.PI / 180;
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function J(e) {
|
|
58
58
|
if (!e)
|
|
59
59
|
throw new Error("coord is required");
|
|
60
60
|
if (!Array.isArray(e)) {
|
|
@@ -67,29 +67,29 @@ function I(e) {
|
|
|
67
67
|
return [...e];
|
|
68
68
|
throw new Error("coord must be GeoJSON Point or an Array of numbers");
|
|
69
69
|
}
|
|
70
|
-
function
|
|
71
|
-
var r =
|
|
72
|
-
return
|
|
73
|
-
2 * Math.atan2(Math.sqrt(
|
|
70
|
+
function oe(e, t, n = {}) {
|
|
71
|
+
var r = J(e), s = J(t), i = j(s[1] - r[1]), c = j(s[0] - r[0]), o = j(r[1]), a = j(s[1]), l = Math.pow(Math.sin(i / 2), 2) + Math.pow(Math.sin(c / 2), 2) * Math.cos(o) * Math.cos(a);
|
|
72
|
+
return ie(
|
|
73
|
+
2 * Math.atan2(Math.sqrt(l), Math.sqrt(1 - l)),
|
|
74
74
|
n.units
|
|
75
75
|
);
|
|
76
76
|
}
|
|
77
77
|
function B(e, t, n) {
|
|
78
78
|
if (e !== null)
|
|
79
|
-
for (var r, s, i,
|
|
80
|
-
|
|
79
|
+
for (var r, s, i, c, o, a, l, f = 0, u = 0, g, m = e.type, d = m === "FeatureCollection", b = m === "Feature", p = d ? e.features.length : 1, h = 0; h < p; h++) {
|
|
80
|
+
l = d ? (
|
|
81
81
|
// @ts-expect-error: Known type conflict
|
|
82
|
-
e.features[
|
|
83
|
-
) :
|
|
82
|
+
e.features[h].geometry
|
|
83
|
+
) : b ? (
|
|
84
84
|
// @ts-expect-error: Known type conflict
|
|
85
85
|
e.geometry
|
|
86
|
-
) : e,
|
|
87
|
-
for (var
|
|
88
|
-
var w = 0,
|
|
89
|
-
if (
|
|
90
|
-
a =
|
|
91
|
-
var
|
|
92
|
-
switch (
|
|
86
|
+
) : e, g = l ? l.type === "GeometryCollection" : !1, o = g ? l.geometries.length : 1;
|
|
87
|
+
for (var P = 0; P < o; P++) {
|
|
88
|
+
var w = 0, $ = 0;
|
|
89
|
+
if (c = g ? l.geometries[P] : l, c !== null) {
|
|
90
|
+
a = c.coordinates;
|
|
91
|
+
var C = c.type;
|
|
92
|
+
switch (f = 0, C) {
|
|
93
93
|
case null:
|
|
94
94
|
break;
|
|
95
95
|
case "Point":
|
|
@@ -97,14 +97,14 @@ function B(e, t, n) {
|
|
|
97
97
|
// @ts-expect-error: Known type conflict
|
|
98
98
|
t(
|
|
99
99
|
a,
|
|
100
|
-
|
|
101
|
-
|
|
100
|
+
u,
|
|
101
|
+
h,
|
|
102
102
|
w,
|
|
103
|
-
|
|
103
|
+
$
|
|
104
104
|
) === !1
|
|
105
105
|
)
|
|
106
106
|
return !1;
|
|
107
|
-
|
|
107
|
+
u++, w++;
|
|
108
108
|
break;
|
|
109
109
|
case "LineString":
|
|
110
110
|
case "MultiPoint":
|
|
@@ -113,65 +113,65 @@ function B(e, t, n) {
|
|
|
113
113
|
// @ts-expect-error: Known type conflict
|
|
114
114
|
t(
|
|
115
115
|
a[r],
|
|
116
|
-
|
|
117
|
-
|
|
116
|
+
u,
|
|
117
|
+
h,
|
|
118
118
|
w,
|
|
119
|
-
|
|
119
|
+
$
|
|
120
120
|
) === !1
|
|
121
121
|
)
|
|
122
122
|
return !1;
|
|
123
|
-
|
|
123
|
+
u++, C === "MultiPoint" && w++;
|
|
124
124
|
}
|
|
125
|
-
|
|
125
|
+
C === "LineString" && w++;
|
|
126
126
|
break;
|
|
127
127
|
case "Polygon":
|
|
128
128
|
case "MultiLineString":
|
|
129
129
|
for (r = 0; r < a.length; r++) {
|
|
130
|
-
for (s = 0; s < a[r].length -
|
|
130
|
+
for (s = 0; s < a[r].length - f; s++) {
|
|
131
131
|
if (
|
|
132
132
|
// @ts-expect-error: Known type conflict
|
|
133
133
|
t(
|
|
134
134
|
a[r][s],
|
|
135
|
-
|
|
136
|
-
|
|
135
|
+
u,
|
|
136
|
+
h,
|
|
137
137
|
w,
|
|
138
|
-
|
|
138
|
+
$
|
|
139
139
|
) === !1
|
|
140
140
|
)
|
|
141
141
|
return !1;
|
|
142
|
-
|
|
142
|
+
u++;
|
|
143
143
|
}
|
|
144
|
-
|
|
144
|
+
C === "MultiLineString" && w++, C === "Polygon" && $++;
|
|
145
145
|
}
|
|
146
|
-
|
|
146
|
+
C === "Polygon" && w++;
|
|
147
147
|
break;
|
|
148
148
|
case "MultiPolygon":
|
|
149
149
|
for (r = 0; r < a.length; r++) {
|
|
150
|
-
for (
|
|
151
|
-
for (i = 0; i < a[r][s].length -
|
|
150
|
+
for ($ = 0, s = 0; s < a[r].length; s++) {
|
|
151
|
+
for (i = 0; i < a[r][s].length - f; i++) {
|
|
152
152
|
if (
|
|
153
153
|
// @ts-expect-error: Known type conflict
|
|
154
154
|
t(
|
|
155
155
|
a[r][s][i],
|
|
156
|
-
|
|
157
|
-
|
|
156
|
+
u,
|
|
157
|
+
h,
|
|
158
158
|
w,
|
|
159
|
-
|
|
159
|
+
$
|
|
160
160
|
) === !1
|
|
161
161
|
)
|
|
162
162
|
return !1;
|
|
163
|
-
|
|
163
|
+
u++;
|
|
164
164
|
}
|
|
165
|
-
|
|
165
|
+
$++;
|
|
166
166
|
}
|
|
167
167
|
w++;
|
|
168
168
|
}
|
|
169
169
|
break;
|
|
170
170
|
case "GeometryCollection":
|
|
171
|
-
for (r = 0; r <
|
|
171
|
+
for (r = 0; r < c.geometries.length; r++)
|
|
172
172
|
if (
|
|
173
173
|
// @ts-expect-error: Known type conflict
|
|
174
|
-
B(
|
|
174
|
+
B(c.geometries[r], t) === !1
|
|
175
175
|
)
|
|
176
176
|
return !1;
|
|
177
177
|
break;
|
|
@@ -182,44 +182,44 @@ function B(e, t, n) {
|
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
184
|
}
|
|
185
|
-
function
|
|
186
|
-
var n, r, s, i,
|
|
187
|
-
for (n = 0; n <
|
|
185
|
+
function X(e, t) {
|
|
186
|
+
var n, r, s, i, c, o, a, l, f, u, g = 0, m = e.type === "FeatureCollection", d = e.type === "Feature", b = m ? e.features.length : 1;
|
|
187
|
+
for (n = 0; n < b; n++) {
|
|
188
188
|
for (o = m ? (
|
|
189
189
|
// @ts-expect-error: Known type conflict
|
|
190
190
|
e.features[n].geometry
|
|
191
|
-
) :
|
|
191
|
+
) : d ? (
|
|
192
192
|
// @ts-expect-error: Known type conflict
|
|
193
193
|
e.geometry
|
|
194
|
-
) : e,
|
|
194
|
+
) : e, l = m ? (
|
|
195
195
|
// @ts-expect-error: Known type conflict
|
|
196
196
|
e.features[n].properties
|
|
197
|
-
) :
|
|
197
|
+
) : d ? (
|
|
198
198
|
// @ts-expect-error: Known type conflict
|
|
199
199
|
e.properties
|
|
200
|
-
) : {},
|
|
200
|
+
) : {}, f = m ? (
|
|
201
201
|
// @ts-expect-error: Known type conflict
|
|
202
202
|
e.features[n].bbox
|
|
203
|
-
) :
|
|
203
|
+
) : d ? (
|
|
204
204
|
// @ts-expect-error: Known type conflict
|
|
205
205
|
e.bbox
|
|
206
|
-
) : void 0,
|
|
206
|
+
) : void 0, u = m ? (
|
|
207
207
|
// @ts-expect-error: Known type conflict
|
|
208
208
|
e.features[n].id
|
|
209
|
-
) :
|
|
209
|
+
) : d ? (
|
|
210
210
|
// @ts-expect-error: Known type conflict
|
|
211
211
|
e.id
|
|
212
|
-
) : void 0, a = o ? o.type === "GeometryCollection" : !1,
|
|
212
|
+
) : void 0, a = o ? o.type === "GeometryCollection" : !1, c = a ? o.geometries.length : 1, s = 0; s < c; s++) {
|
|
213
213
|
if (i = a ? o.geometries[s] : o, i === null) {
|
|
214
214
|
if (
|
|
215
215
|
// @ts-expect-error: Known type conflict
|
|
216
216
|
t(
|
|
217
217
|
// @ts-expect-error: Known type conflict
|
|
218
218
|
null,
|
|
219
|
-
u,
|
|
220
|
-
c,
|
|
221
219
|
g,
|
|
222
|
-
|
|
220
|
+
l,
|
|
221
|
+
f,
|
|
222
|
+
u
|
|
223
223
|
) === !1
|
|
224
224
|
)
|
|
225
225
|
return !1;
|
|
@@ -236,10 +236,10 @@ function K(e, t) {
|
|
|
236
236
|
// @ts-expect-error: Known type conflict
|
|
237
237
|
t(
|
|
238
238
|
i,
|
|
239
|
-
u,
|
|
240
|
-
c,
|
|
241
239
|
g,
|
|
242
|
-
|
|
240
|
+
l,
|
|
241
|
+
f,
|
|
242
|
+
u
|
|
243
243
|
) === !1
|
|
244
244
|
)
|
|
245
245
|
return !1;
|
|
@@ -251,10 +251,10 @@ function K(e, t) {
|
|
|
251
251
|
// @ts-expect-error: Known type conflict
|
|
252
252
|
t(
|
|
253
253
|
i.geometries[r],
|
|
254
|
-
u,
|
|
255
|
-
c,
|
|
256
254
|
g,
|
|
257
|
-
|
|
255
|
+
l,
|
|
256
|
+
f,
|
|
257
|
+
u
|
|
258
258
|
) === !1
|
|
259
259
|
)
|
|
260
260
|
return !1;
|
|
@@ -264,28 +264,28 @@ function K(e, t) {
|
|
|
264
264
|
throw new Error("Unknown Geometry Type");
|
|
265
265
|
}
|
|
266
266
|
}
|
|
267
|
-
|
|
267
|
+
g++;
|
|
268
268
|
}
|
|
269
269
|
}
|
|
270
|
-
function
|
|
270
|
+
function ae(e, t, n) {
|
|
271
271
|
var r = n;
|
|
272
|
-
return
|
|
272
|
+
return X(
|
|
273
273
|
e,
|
|
274
|
-
function(s, i,
|
|
274
|
+
function(s, i, c, o, a) {
|
|
275
275
|
r = t(
|
|
276
276
|
// @ts-expect-error: Known type conflict
|
|
277
277
|
r,
|
|
278
278
|
s,
|
|
279
279
|
i,
|
|
280
|
-
|
|
280
|
+
c,
|
|
281
281
|
o,
|
|
282
282
|
a
|
|
283
283
|
);
|
|
284
284
|
}
|
|
285
285
|
), r;
|
|
286
286
|
}
|
|
287
|
-
function
|
|
288
|
-
|
|
287
|
+
function ce(e, t) {
|
|
288
|
+
X(e, function(n, r, s, i, c) {
|
|
289
289
|
var o = n === null ? null : n.type;
|
|
290
290
|
switch (o) {
|
|
291
291
|
case null:
|
|
@@ -295,7 +295,7 @@ function ae(e, t) {
|
|
|
295
295
|
return (
|
|
296
296
|
// @ts-expect-error: Known type conflict
|
|
297
297
|
t(
|
|
298
|
-
|
|
298
|
+
U(n, s, { bbox: i, id: c }),
|
|
299
299
|
r,
|
|
300
300
|
0
|
|
301
301
|
) === !1 ? !1 : void 0
|
|
@@ -314,60 +314,60 @@ function ae(e, t) {
|
|
|
314
314
|
break;
|
|
315
315
|
}
|
|
316
316
|
for (
|
|
317
|
-
var
|
|
317
|
+
var l = 0;
|
|
318
318
|
// @ts-expect-error: Known type conflict
|
|
319
|
-
|
|
320
|
-
|
|
319
|
+
l < n.coordinates.length;
|
|
320
|
+
l++
|
|
321
321
|
) {
|
|
322
|
-
var
|
|
322
|
+
var f = n.coordinates[l], u = {
|
|
323
323
|
type: a,
|
|
324
|
-
coordinates:
|
|
324
|
+
coordinates: f
|
|
325
325
|
};
|
|
326
326
|
if (
|
|
327
327
|
// @ts-expect-error: Known type conflict
|
|
328
|
-
t(
|
|
328
|
+
t(U(u, s), r, l) === !1
|
|
329
329
|
)
|
|
330
330
|
return !1;
|
|
331
331
|
}
|
|
332
332
|
});
|
|
333
333
|
}
|
|
334
334
|
function le(e, t) {
|
|
335
|
-
|
|
335
|
+
ce(e, function(n, r, s) {
|
|
336
336
|
var i = 0;
|
|
337
337
|
if (n.geometry) {
|
|
338
|
-
var
|
|
339
|
-
if (!(
|
|
340
|
-
var o, a = 0,
|
|
338
|
+
var c = n.geometry.type;
|
|
339
|
+
if (!(c === "Point" || c === "MultiPoint")) {
|
|
340
|
+
var o, a = 0, l = 0, f = 0;
|
|
341
341
|
if (
|
|
342
342
|
// @ts-expect-error: Known type conflict
|
|
343
343
|
B(
|
|
344
344
|
n,
|
|
345
|
-
function(
|
|
345
|
+
function(u, g, m, d, b) {
|
|
346
346
|
if (
|
|
347
347
|
// @ts-expect-error: Known type conflict
|
|
348
|
-
o === void 0 || r > a ||
|
|
348
|
+
o === void 0 || r > a || d > l || b > f
|
|
349
349
|
) {
|
|
350
|
-
o =
|
|
350
|
+
o = u, a = r, l = d, f = b, i = 0;
|
|
351
351
|
return;
|
|
352
352
|
}
|
|
353
|
-
var
|
|
353
|
+
var p = Q(
|
|
354
354
|
// @ts-expect-error: Known type conflict
|
|
355
|
-
[o,
|
|
355
|
+
[o, u],
|
|
356
356
|
n.properties
|
|
357
357
|
);
|
|
358
358
|
if (
|
|
359
359
|
// @ts-expect-error: Known type conflict
|
|
360
360
|
t(
|
|
361
361
|
// @ts-expect-error: Known type conflict
|
|
362
|
-
|
|
362
|
+
p,
|
|
363
363
|
r,
|
|
364
364
|
s,
|
|
365
|
-
|
|
365
|
+
b,
|
|
366
366
|
i
|
|
367
367
|
) === !1
|
|
368
368
|
)
|
|
369
369
|
return !1;
|
|
370
|
-
i++, o =
|
|
370
|
+
i++, o = u;
|
|
371
371
|
}
|
|
372
372
|
) === !1
|
|
373
373
|
)
|
|
@@ -376,49 +376,49 @@ function le(e, t) {
|
|
|
376
376
|
}
|
|
377
377
|
});
|
|
378
378
|
}
|
|
379
|
-
function
|
|
379
|
+
function ue(e, t, n) {
|
|
380
380
|
var r = n, s = !1;
|
|
381
381
|
return le(
|
|
382
382
|
e,
|
|
383
|
-
function(i,
|
|
383
|
+
function(i, c, o, a, l) {
|
|
384
384
|
s === !1 && n === void 0 ? r = i : r = t(
|
|
385
385
|
r,
|
|
386
386
|
// @ts-expect-error: Known type conflict
|
|
387
387
|
i,
|
|
388
|
-
|
|
388
|
+
c,
|
|
389
389
|
o,
|
|
390
390
|
a,
|
|
391
|
-
|
|
391
|
+
l
|
|
392
392
|
), s = !0;
|
|
393
393
|
}
|
|
394
394
|
), r;
|
|
395
395
|
}
|
|
396
|
-
function
|
|
397
|
-
return
|
|
396
|
+
function fe(e, t = {}) {
|
|
397
|
+
return ue(
|
|
398
398
|
e,
|
|
399
399
|
(n, r) => {
|
|
400
400
|
const s = r.geometry.coordinates;
|
|
401
|
-
return n +
|
|
401
|
+
return n + oe(s[0], s[1], t);
|
|
402
402
|
},
|
|
403
403
|
0
|
|
404
404
|
);
|
|
405
405
|
}
|
|
406
|
-
var
|
|
407
|
-
function
|
|
408
|
-
return
|
|
406
|
+
var ge = fe;
|
|
407
|
+
function me(e) {
|
|
408
|
+
return ae(
|
|
409
409
|
e,
|
|
410
|
-
(t, n) => t +
|
|
410
|
+
(t, n) => t + de(n),
|
|
411
411
|
0
|
|
412
412
|
);
|
|
413
413
|
}
|
|
414
|
-
function
|
|
414
|
+
function de(e) {
|
|
415
415
|
let t = 0, n;
|
|
416
416
|
switch (e.type) {
|
|
417
417
|
case "Polygon":
|
|
418
|
-
return
|
|
418
|
+
return z(e.coordinates);
|
|
419
419
|
case "MultiPolygon":
|
|
420
420
|
for (n = 0; n < e.coordinates.length; n++)
|
|
421
|
-
t +=
|
|
421
|
+
t += z(e.coordinates[n]);
|
|
422
422
|
return t;
|
|
423
423
|
case "Point":
|
|
424
424
|
case "MultiPoint":
|
|
@@ -428,7 +428,7 @@ function he(e) {
|
|
|
428
428
|
}
|
|
429
429
|
return 0;
|
|
430
430
|
}
|
|
431
|
-
function
|
|
431
|
+
function z(e) {
|
|
432
432
|
let t = 0;
|
|
433
433
|
if (e && e.length > 0) {
|
|
434
434
|
t += Math.abs(W(e[0]));
|
|
@@ -437,22 +437,22 @@ function J(e) {
|
|
|
437
437
|
}
|
|
438
438
|
return t;
|
|
439
439
|
}
|
|
440
|
-
var
|
|
440
|
+
var he = S * S / 2, x = Math.PI / 180;
|
|
441
441
|
function W(e) {
|
|
442
442
|
const t = e.length - 1;
|
|
443
443
|
if (t <= 2) return 0;
|
|
444
444
|
let n = 0, r = 0;
|
|
445
445
|
for (; r < t; ) {
|
|
446
|
-
const s = e[r], i = e[r + 1 === t ? 0 : r + 1],
|
|
447
|
-
n += (
|
|
446
|
+
const s = e[r], i = e[r + 1 === t ? 0 : r + 1], c = e[r + 2 >= t ? (r + 2) % t : r + 2], o = s[0] * x, a = i[1] * x, l = c[0] * x;
|
|
447
|
+
n += (l - o) * Math.sin(a), r++;
|
|
448
448
|
}
|
|
449
|
-
return n *
|
|
449
|
+
return n * he;
|
|
450
450
|
}
|
|
451
|
-
var
|
|
452
|
-
const
|
|
451
|
+
var ye = me;
|
|
452
|
+
const ze = {
|
|
453
453
|
distance: ["km", "mi", "m", "ft"],
|
|
454
454
|
area: ["km2", "mi2", "ha", "acres"]
|
|
455
|
-
},
|
|
455
|
+
}, pe = {
|
|
456
456
|
km: "km",
|
|
457
457
|
mi: "mi",
|
|
458
458
|
m: "m",
|
|
@@ -461,41 +461,41 @@ const Ie = {
|
|
|
461
461
|
mi2: "mi²",
|
|
462
462
|
ha: "ha",
|
|
463
463
|
acres: "ac"
|
|
464
|
-
},
|
|
464
|
+
}, be = {
|
|
465
465
|
km: 1,
|
|
466
466
|
mi: 0.621371,
|
|
467
467
|
m: 1e3,
|
|
468
468
|
ft: 3280.84
|
|
469
|
-
},
|
|
469
|
+
}, Se = {
|
|
470
470
|
km2: 1e-6,
|
|
471
471
|
mi2: 3861e-10,
|
|
472
472
|
ha: 1e-4,
|
|
473
473
|
acres: 247105e-9
|
|
474
474
|
};
|
|
475
|
-
function
|
|
475
|
+
function we(e, t = "km") {
|
|
476
476
|
if (e.length < 2) return 0;
|
|
477
477
|
const n = Q(e);
|
|
478
|
-
return
|
|
478
|
+
return ge(n, { units: "kilometers" }) * be[t];
|
|
479
479
|
}
|
|
480
|
-
function
|
|
480
|
+
function $e(e, t = "km2") {
|
|
481
481
|
if (e.length < 3) return 0;
|
|
482
|
-
const n = [...e, e[0]], r =
|
|
483
|
-
return
|
|
482
|
+
const n = [...e, e[0]], r = se([n]);
|
|
483
|
+
return ye(r) * Se[t];
|
|
484
484
|
}
|
|
485
485
|
function Me(e, t, n) {
|
|
486
|
-
return e === "distance" && t.length >= 2 ? { value:
|
|
486
|
+
return e === "distance" && t.length >= 2 ? { value: we(t, n), unit: n } : e === "area" && t.length >= 3 ? { value: $e(t, n), unit: n } : null;
|
|
487
487
|
}
|
|
488
488
|
function ve(e) {
|
|
489
489
|
return e === "distance" ? "km" : "km2";
|
|
490
490
|
}
|
|
491
|
-
function
|
|
491
|
+
function Pe(e, t) {
|
|
492
492
|
return t.length < 2 ? null : {
|
|
493
493
|
type: "Feature",
|
|
494
494
|
geometry: e === "area" && t.length >= 3 ? { type: "Polygon", coordinates: [[...t, t[0]]] } : { type: "LineString", coordinates: t },
|
|
495
495
|
properties: {}
|
|
496
496
|
};
|
|
497
497
|
}
|
|
498
|
-
function
|
|
498
|
+
function Ce(e) {
|
|
499
499
|
return e.length === 0 ? null : {
|
|
500
500
|
type: "FeatureCollection",
|
|
501
501
|
features: e.map((t) => ({
|
|
@@ -505,190 +505,219 @@ function Pe(e) {
|
|
|
505
505
|
}))
|
|
506
506
|
};
|
|
507
507
|
}
|
|
508
|
-
function
|
|
509
|
-
const { value: t, unit: n } = e, r =
|
|
508
|
+
function We(e) {
|
|
509
|
+
const { value: t, unit: n } = e, r = pe[n];
|
|
510
510
|
return t < 0.01 ? `< 0.01 ${r}` : t < 100 ? `${t.toFixed(2)} ${r}` : t < 1e4 ? `${t.toFixed(1)} ${r}` : `${t.toLocaleString(void 0, { maximumFractionDigits: 0 })} ${r}`;
|
|
511
511
|
}
|
|
512
|
-
function
|
|
512
|
+
function Ve(e) {
|
|
513
|
+
return (Number(e.scale) || 1) >= 2 ? 512 : 256;
|
|
514
|
+
}
|
|
515
|
+
function M(e) {
|
|
513
516
|
return e.endsWith("/") ? e.slice(0, -1) : e;
|
|
514
517
|
}
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
}
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
518
|
+
function L(e, t) {
|
|
519
|
+
if (!t || t.type !== "query_param") return e;
|
|
520
|
+
const n = e.includes("?") ? "&" : "?";
|
|
521
|
+
return `${e}${n}${encodeURIComponent(t.name)}=${encodeURIComponent(t.value)}`;
|
|
522
|
+
}
|
|
523
|
+
function ke(e) {
|
|
524
|
+
return !e || e.type !== "header" ? {} : { [e.name]: e.value };
|
|
525
|
+
}
|
|
526
|
+
async function k(e, t) {
|
|
527
|
+
const n = await fetch(L(e, t), { headers: ke(t) });
|
|
528
|
+
if (!n.ok)
|
|
529
|
+
throw new Error(`OGC API request failed: ${n.status} ${n.statusText} (${e})`);
|
|
530
|
+
return n.json();
|
|
531
|
+
}
|
|
532
|
+
async function Le(e, t) {
|
|
533
|
+
const n = `${M(e)}/collections?f=json`;
|
|
534
|
+
return (await k(n, t)).collections;
|
|
535
|
+
}
|
|
536
|
+
async function E(e, t, n = {}, r) {
|
|
537
|
+
var o;
|
|
538
|
+
const s = M(e), i = new URLSearchParams({ f: "geojson" });
|
|
539
|
+
if (n.limit != null && i.set("limit", String(n.limit)), n.offset != null && i.set("offset", String(n.offset)), n.bbox && i.set("bbox", n.bbox.join(",")), (o = n.properties) != null && o.length && i.set("properties", n.properties.join(",")), n.datetime && i.set("datetime", n.datetime), n.cql2Filter)
|
|
540
|
+
i.set("filter-lang", "cql2-json"), i.set("filter", JSON.stringify(n.cql2Filter));
|
|
530
541
|
else if (n.filter)
|
|
531
|
-
for (const [
|
|
532
|
-
|
|
533
|
-
const
|
|
534
|
-
return
|
|
542
|
+
for (const [a, l] of Object.entries(n.filter))
|
|
543
|
+
i.set(a, String(l));
|
|
544
|
+
const c = `${s}/collections/${encodeURIComponent(t)}/items?${i}`;
|
|
545
|
+
return k(c, r);
|
|
535
546
|
}
|
|
536
|
-
async function
|
|
537
|
-
const
|
|
547
|
+
async function Ke(e, t, n, r) {
|
|
548
|
+
const i = `${M(e)}/collections/${encodeURIComponent(t)}/items/${encodeURIComponent(String(n))}?f=geojson`;
|
|
538
549
|
try {
|
|
539
|
-
return await
|
|
550
|
+
return await k(i, r);
|
|
540
551
|
} catch {
|
|
541
552
|
return null;
|
|
542
553
|
}
|
|
543
554
|
}
|
|
544
|
-
async function
|
|
545
|
-
const
|
|
546
|
-
return
|
|
555
|
+
async function Ee(e, t, n) {
|
|
556
|
+
const s = `${M(e)}/collections/${encodeURIComponent(t)}/queryables?f=schemajson`;
|
|
557
|
+
return k(s, n);
|
|
547
558
|
}
|
|
548
|
-
async function
|
|
549
|
-
const
|
|
550
|
-
return
|
|
559
|
+
async function Oe(e, t, n) {
|
|
560
|
+
const s = `${M(e)}/collections/${encodeURIComponent(t)}?f=json`;
|
|
561
|
+
return k(s, n);
|
|
551
562
|
}
|
|
552
|
-
async function
|
|
553
|
-
const
|
|
554
|
-
return
|
|
563
|
+
async function Qe(e, t) {
|
|
564
|
+
const n = `${M(e)}/conformance?f=json`;
|
|
565
|
+
return k(n, t);
|
|
555
566
|
}
|
|
556
|
-
async function
|
|
557
|
-
const
|
|
558
|
-
return
|
|
567
|
+
async function Be(e, t, n = "WebMercatorQuad", r) {
|
|
568
|
+
const s = Fe(e, t, n, r);
|
|
569
|
+
return k(s, r);
|
|
559
570
|
}
|
|
560
|
-
async function
|
|
561
|
-
return (await
|
|
571
|
+
async function Xe(e, t, n = {}, r) {
|
|
572
|
+
return (await E(e, t, {
|
|
562
573
|
...n,
|
|
563
574
|
limit: 0
|
|
564
|
-
})).numberMatched ?? null;
|
|
565
|
-
}
|
|
566
|
-
function
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
}
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
575
|
+
}, r)).numberMatched ?? null;
|
|
576
|
+
}
|
|
577
|
+
function Fe(e, t, n = "WebMercatorQuad", r) {
|
|
578
|
+
const i = `${M(e)}/collections/${encodeURIComponent(t)}/tiles/${encodeURIComponent(n)}/tilejson.json`;
|
|
579
|
+
return L(i, r);
|
|
580
|
+
}
|
|
581
|
+
function Ye(e, t, n = "WebMercatorQuad", r) {
|
|
582
|
+
const i = `${M(e)}/collections/${encodeURIComponent(t)}/tiles/${encodeURIComponent(n)}/{z}/{x}/{y}`;
|
|
583
|
+
return L(i, r);
|
|
584
|
+
}
|
|
585
|
+
function He(e, t, n, r = "WebMercatorQuad", s) {
|
|
586
|
+
let c = `${M(e)}/collections/${encodeURIComponent(t)}/tiles/${encodeURIComponent(r)}/{z}/{x}/{y}`;
|
|
587
|
+
if (n && Object.keys(n).length > 0) {
|
|
588
|
+
const o = new URLSearchParams();
|
|
589
|
+
for (const [a, l] of Object.entries(n))
|
|
590
|
+
o.set(a, String(l));
|
|
591
|
+
c = `${c}?${o}`;
|
|
592
|
+
}
|
|
593
|
+
return L(c, s);
|
|
594
|
+
}
|
|
595
|
+
async function Ze(e, t, n, r, s) {
|
|
596
|
+
const i = r != null && r.query ? { op: "like", args: [{ property: n }, `%${r.query}%`] } : void 0, c = /* @__PURE__ */ new Set(), o = (a) => {
|
|
597
|
+
var l;
|
|
598
|
+
for (const f of a) {
|
|
599
|
+
const u = (l = f.properties) == null ? void 0 : l[n];
|
|
600
|
+
u != null && typeof u == "string" && c.add(u);
|
|
586
601
|
}
|
|
587
602
|
};
|
|
588
603
|
if (r != null && r.fetchAll) {
|
|
589
|
-
const
|
|
590
|
-
let
|
|
591
|
-
for (;
|
|
592
|
-
const
|
|
604
|
+
const a = r.maxFeatures ?? 1e4, l = r.limit ?? 500;
|
|
605
|
+
let f = 0, u = 0;
|
|
606
|
+
for (; u < a; ) {
|
|
607
|
+
const g = Math.min(l, a - u), m = await E(e, t, {
|
|
593
608
|
properties: [n],
|
|
594
|
-
limit:
|
|
595
|
-
offset:
|
|
596
|
-
cql2Filter:
|
|
597
|
-
});
|
|
598
|
-
if (
|
|
609
|
+
limit: g,
|
|
610
|
+
offset: f,
|
|
611
|
+
cql2Filter: i
|
|
612
|
+
}, s);
|
|
613
|
+
if (o(m.features), u += m.features.length, f += m.features.length, m.features.length < g || m.numberMatched != null && f >= m.numberMatched) break;
|
|
599
614
|
}
|
|
600
615
|
} else {
|
|
601
|
-
const
|
|
616
|
+
const a = await E(e, t, {
|
|
602
617
|
properties: [n],
|
|
603
618
|
limit: (r == null ? void 0 : r.limit) ?? 50,
|
|
604
|
-
cql2Filter:
|
|
619
|
+
cql2Filter: i
|
|
620
|
+
}, s);
|
|
621
|
+
o(a.features);
|
|
622
|
+
}
|
|
623
|
+
return Array.from(c).sort();
|
|
624
|
+
}
|
|
625
|
+
function et(e, t, n, r = "WebMercatorQuad", s) {
|
|
626
|
+
let c = `${M(e)}/collections/${encodeURIComponent(t)}/tiles/${encodeURIComponent(r)}/{z}/{x}/{y}`;
|
|
627
|
+
if (n) {
|
|
628
|
+
const o = new URLSearchParams({
|
|
629
|
+
"filter-lang": "cql2-json",
|
|
630
|
+
filter: JSON.stringify(n)
|
|
605
631
|
});
|
|
606
|
-
|
|
632
|
+
c = `${c}?${o}`;
|
|
607
633
|
}
|
|
608
|
-
return
|
|
609
|
-
}
|
|
610
|
-
function Ye(e, t, n, r = "WebMercatorQuad") {
|
|
611
|
-
const i = `${$(e)}/collections/${encodeURIComponent(t)}/tiles/${encodeURIComponent(r)}/{z}/{x}/{y}`;
|
|
612
|
-
if (!n) return i;
|
|
613
|
-
const l = new URLSearchParams({
|
|
614
|
-
"filter-lang": "cql2-json",
|
|
615
|
-
filter: JSON.stringify(n)
|
|
616
|
-
});
|
|
617
|
-
return `${i}?${l}`;
|
|
634
|
+
return L(c, s);
|
|
618
635
|
}
|
|
619
|
-
function
|
|
636
|
+
function tt(e, t) {
|
|
620
637
|
return t ? `${e}--${JSON.stringify(t)}` : e;
|
|
621
638
|
}
|
|
622
|
-
function
|
|
639
|
+
function nt(e) {
|
|
623
640
|
return e.length === 1 ? ["==", ["geometry-type"], e[0]] : ["in", ["geometry-type"], ["literal", e]];
|
|
624
641
|
}
|
|
625
|
-
function
|
|
626
|
-
|
|
642
|
+
function rt(e, t, n = "WebMercatorQuad", r, s) {
|
|
643
|
+
if (r)
|
|
644
|
+
return (s == null ? void 0 : s.type) === "query_param" && new RegExp(`[?&]${s.name}=`).test(r) ? r : L(r, s);
|
|
645
|
+
const c = `${M(e)}/collections/${encodeURIComponent(t)}/map/tiles/${encodeURIComponent(n)}/{z}/{x}/{y}.png`;
|
|
646
|
+
return L(c, s);
|
|
647
|
+
}
|
|
648
|
+
async function st(e, t) {
|
|
649
|
+
return k(e, t);
|
|
650
|
+
}
|
|
651
|
+
function it(e) {
|
|
652
|
+
return /\{z\}.*\{x\}.*\{y\}/i.test(e) ? "xyz" : /tilejson\.json|tiles\.json/i.test(e) ? "tilejson" : "ogc-api";
|
|
653
|
+
}
|
|
654
|
+
function ot(e, t) {
|
|
655
|
+
const [n, r] = y([]), [s, i] = y(!1), [c, o] = y(null), a = t ? `${t.type}:${t.name}:${t.value}` : "";
|
|
627
656
|
return N(() => {
|
|
628
657
|
if (!e) return;
|
|
629
|
-
let
|
|
630
|
-
return
|
|
631
|
-
|
|
632
|
-
}).catch((
|
|
633
|
-
|
|
658
|
+
let l = !1;
|
|
659
|
+
return i(!0), o(null), Le(e, t).then((f) => {
|
|
660
|
+
l || r(f);
|
|
661
|
+
}).catch((f) => {
|
|
662
|
+
l || o(f instanceof Error ? f : new Error(String(f)));
|
|
634
663
|
}).finally(() => {
|
|
635
|
-
|
|
664
|
+
l || i(!1);
|
|
636
665
|
}), () => {
|
|
637
|
-
|
|
666
|
+
l = !0;
|
|
638
667
|
};
|
|
639
|
-
}, [e]), { collections:
|
|
668
|
+
}, [e, a]), { collections: n, loading: s, error: c };
|
|
640
669
|
}
|
|
641
|
-
function
|
|
642
|
-
const [n, r] =
|
|
670
|
+
function at(e, t) {
|
|
671
|
+
const [n, r] = y(null), [s, i] = y(!1), [c, o] = y(null);
|
|
643
672
|
return N(() => {
|
|
644
673
|
if (!e || !t) return;
|
|
645
674
|
let a = !1;
|
|
646
|
-
return i(!0), o(null),
|
|
647
|
-
a || r(
|
|
648
|
-
}).catch((
|
|
649
|
-
a || o(
|
|
675
|
+
return i(!0), o(null), Ee(e, t).then((l) => {
|
|
676
|
+
a || r(l);
|
|
677
|
+
}).catch((l) => {
|
|
678
|
+
a || o(l instanceof Error ? l : new Error(String(l)));
|
|
650
679
|
}).finally(() => {
|
|
651
680
|
a || i(!1);
|
|
652
681
|
}), () => {
|
|
653
682
|
a = !0;
|
|
654
683
|
};
|
|
655
|
-
}, [e, t]), { queryables: n, loading: s, error:
|
|
684
|
+
}, [e, t]), { queryables: n, loading: s, error: c };
|
|
656
685
|
}
|
|
657
|
-
function
|
|
658
|
-
const [
|
|
686
|
+
function ct(e, t, n = {}, r) {
|
|
687
|
+
const [s, i] = y([]), [c, o] = y(!1), [a, l] = y(null), [f, u] = y(!1), g = JSON.stringify(n), m = r ? `${r.type}:${r.name}:${r.value}` : "";
|
|
659
688
|
return N(() => {
|
|
660
689
|
if (!e || !t) return;
|
|
661
|
-
let
|
|
662
|
-
|
|
663
|
-
const
|
|
664
|
-
return
|
|
665
|
-
if (!
|
|
666
|
-
|
|
667
|
-
const
|
|
668
|
-
|
|
690
|
+
let d = !1;
|
|
691
|
+
o(!0), l(null);
|
|
692
|
+
const b = JSON.parse(g);
|
|
693
|
+
return E(e, t, b, r).then((p) => {
|
|
694
|
+
if (!d) {
|
|
695
|
+
i(p.features);
|
|
696
|
+
const h = b.limit ?? 10, P = b.offset ?? 0;
|
|
697
|
+
p.numberMatched != null ? u(P + p.features.length < p.numberMatched) : u(p.features.length >= h);
|
|
669
698
|
}
|
|
670
|
-
}).catch((
|
|
671
|
-
|
|
699
|
+
}).catch((p) => {
|
|
700
|
+
d || (l(p instanceof Error ? p : new Error(String(p))), i([]), u(!1));
|
|
672
701
|
}).finally(() => {
|
|
673
|
-
|
|
702
|
+
d || o(!1);
|
|
674
703
|
}), () => {
|
|
675
|
-
|
|
704
|
+
d = !0;
|
|
676
705
|
};
|
|
677
|
-
}, [e, t,
|
|
706
|
+
}, [e, t, g, m]), { features: s, loading: c, error: a, hasMore: f };
|
|
678
707
|
}
|
|
679
|
-
function
|
|
708
|
+
function D(e) {
|
|
680
709
|
return `${e[0]} ${e[1]}`;
|
|
681
710
|
}
|
|
682
711
|
function A(e) {
|
|
683
|
-
return e.map(
|
|
712
|
+
return e.map(D).join(", ");
|
|
684
713
|
}
|
|
685
|
-
function
|
|
714
|
+
function Y(e) {
|
|
686
715
|
if (!e || !e.type) return "";
|
|
687
716
|
switch (e.type) {
|
|
688
717
|
case "Point":
|
|
689
|
-
return `POINT (${
|
|
718
|
+
return `POINT (${D(e.coordinates)})`;
|
|
690
719
|
case "MultiPoint":
|
|
691
|
-
return `MULTIPOINT (${e.coordinates.map((t) => `(${
|
|
720
|
+
return `MULTIPOINT (${e.coordinates.map((t) => `(${D(t)})`).join(", ")})`;
|
|
692
721
|
case "LineString":
|
|
693
722
|
return `LINESTRING (${A(e.coordinates)})`;
|
|
694
723
|
case "MultiLineString":
|
|
@@ -698,63 +727,63 @@ function X(e) {
|
|
|
698
727
|
case "MultiPolygon":
|
|
699
728
|
return `MULTIPOLYGON (${e.coordinates.map((t) => `(${t.map((n) => `(${A(n)})`).join(", ")})`).join(", ")})`;
|
|
700
729
|
case "GeometryCollection":
|
|
701
|
-
return `GEOMETRYCOLLECTION (${e.geometries.map(
|
|
730
|
+
return `GEOMETRYCOLLECTION (${e.geometries.map(Y).join(", ")})`;
|
|
702
731
|
default:
|
|
703
732
|
return "";
|
|
704
733
|
}
|
|
705
734
|
}
|
|
706
|
-
function
|
|
735
|
+
function H(e, t) {
|
|
707
736
|
const n = URL.createObjectURL(e), r = document.createElement("a");
|
|
708
737
|
r.href = n, r.download = t, r.style.display = "none", document.body.appendChild(r), r.click(), document.body.removeChild(r), URL.revokeObjectURL(n);
|
|
709
738
|
}
|
|
710
|
-
function
|
|
739
|
+
function _(e, t) {
|
|
711
740
|
return e.includes('"') || e.includes(t) || e.includes(`
|
|
712
741
|
`) ? `"${e.replace(/"/g, '""')}"` : e;
|
|
713
742
|
}
|
|
714
|
-
function
|
|
743
|
+
function Re(e, t) {
|
|
715
744
|
const n = (e.properties ?? {})[t];
|
|
716
745
|
return n == null ? "" : typeof n == "object" ? JSON.stringify(n) : String(n);
|
|
717
746
|
}
|
|
718
|
-
function
|
|
747
|
+
function je(e, t = {}) {
|
|
719
748
|
const { fields: n, includeGeometry: r = !0, delimiter: s = "," } = t;
|
|
720
749
|
if (e.length === 0) return "";
|
|
721
|
-
const i = n ?? [...new Set(e.flatMap((a) => Object.keys(a.properties ?? {})))],
|
|
722
|
-
const
|
|
723
|
-
(
|
|
750
|
+
const i = n ?? [...new Set(e.flatMap((a) => Object.keys(a.properties ?? {})))], c = r ? [...i, "geometry"] : i, o = e.map((a) => {
|
|
751
|
+
const l = i.map(
|
|
752
|
+
(f) => _(Re(a, f), s)
|
|
724
753
|
);
|
|
725
|
-
return r &&
|
|
754
|
+
return r && l.push(_(Y(a.geometry), s)), l.join(s);
|
|
726
755
|
});
|
|
727
|
-
return [
|
|
756
|
+
return [c.map((a) => _(a, s)).join(s), ...o].join(`
|
|
728
757
|
`);
|
|
729
758
|
}
|
|
730
|
-
function
|
|
759
|
+
function Ae(e, t) {
|
|
731
760
|
const n = new Blob([e], { type: "text/csv;charset=utf-8;" });
|
|
732
|
-
|
|
761
|
+
H(n, t);
|
|
733
762
|
}
|
|
734
|
-
function
|
|
763
|
+
function lt({
|
|
735
764
|
baseUrl: e,
|
|
736
765
|
limit: t = 1e3,
|
|
737
766
|
csvOptions: n
|
|
738
767
|
}) {
|
|
739
|
-
const [r, s] =
|
|
768
|
+
const [r, s] = y(!1), [i, c] = y(null);
|
|
740
769
|
return { exportCsv: v(
|
|
741
|
-
async (a,
|
|
742
|
-
s(!0),
|
|
743
|
-
const
|
|
770
|
+
async (a, l = `${a}.csv`, f) => {
|
|
771
|
+
s(!0), c(null);
|
|
772
|
+
const u = [], g = Math.min(t, 1e3);
|
|
744
773
|
let m = 0;
|
|
745
774
|
try {
|
|
746
|
-
for (;
|
|
747
|
-
const
|
|
748
|
-
limit:
|
|
775
|
+
for (; u.length < t; ) {
|
|
776
|
+
const b = t - u.length, p = Math.min(g, b), h = await E(e, a, {
|
|
777
|
+
limit: p,
|
|
749
778
|
offset: m,
|
|
750
|
-
cql2Filter:
|
|
779
|
+
cql2Filter: f
|
|
751
780
|
});
|
|
752
|
-
if (
|
|
781
|
+
if (u.push(...h.features), m += h.features.length, h.features.length < p || h.numberMatched != null && m >= h.numberMatched) break;
|
|
753
782
|
}
|
|
754
|
-
const
|
|
755
|
-
|
|
756
|
-
} catch (
|
|
757
|
-
|
|
783
|
+
const d = je(u, n);
|
|
784
|
+
Ae(d, l);
|
|
785
|
+
} catch (d) {
|
|
786
|
+
c(d instanceof Error ? d : new Error(String(d)));
|
|
758
787
|
} finally {
|
|
759
788
|
s(!1);
|
|
760
789
|
}
|
|
@@ -762,46 +791,46 @@ function rt({
|
|
|
762
791
|
[e, t, n]
|
|
763
792
|
), loading: r, error: i };
|
|
764
793
|
}
|
|
765
|
-
function
|
|
794
|
+
function ut({
|
|
766
795
|
baseUrl: e = "",
|
|
767
796
|
limit: t = 1e5,
|
|
768
797
|
converters: n
|
|
769
798
|
}) {
|
|
770
|
-
const [r, s] =
|
|
799
|
+
const [r, s] = y(!1), [i, c] = y(null), [o, a] = y(null);
|
|
771
800
|
return { runExport: v(
|
|
772
|
-
async (
|
|
773
|
-
const
|
|
774
|
-
if (!
|
|
775
|
-
a(new Error(`Unknown export format: ${
|
|
801
|
+
async (f, u, g, m, d) => {
|
|
802
|
+
const b = d ?? e, p = n[u];
|
|
803
|
+
if (!p) {
|
|
804
|
+
a(new Error(`Unknown export format: ${u}`));
|
|
776
805
|
return;
|
|
777
806
|
}
|
|
778
|
-
s(!0),
|
|
779
|
-
const
|
|
807
|
+
s(!0), c("Fetching features..."), a(null);
|
|
808
|
+
const h = [], P = Math.min(t, 1e3);
|
|
780
809
|
let w = 0;
|
|
781
810
|
try {
|
|
782
|
-
for (;
|
|
783
|
-
const
|
|
784
|
-
limit:
|
|
811
|
+
for (; h.length < t; ) {
|
|
812
|
+
const C = t - h.length, I = Math.min(P, C), F = await E(b, f, {
|
|
813
|
+
limit: I,
|
|
785
814
|
offset: w,
|
|
786
815
|
cql2Filter: m
|
|
787
816
|
});
|
|
788
|
-
|
|
789
|
-
const
|
|
790
|
-
if (
|
|
817
|
+
h.push(...F.features), w += F.features.length;
|
|
818
|
+
const R = F.numberMatched;
|
|
819
|
+
if (R != null ? c(`Fetching features... (${h.length} of ${R})`) : c(`Fetching features... (${h.length})`), F.features.length < I || R != null && w >= R) break;
|
|
791
820
|
}
|
|
792
|
-
|
|
793
|
-
const
|
|
794
|
-
|
|
795
|
-
} catch (
|
|
796
|
-
a(
|
|
821
|
+
c("Converting...");
|
|
822
|
+
const $ = await p(h, f);
|
|
823
|
+
H($.blob, g);
|
|
824
|
+
} catch ($) {
|
|
825
|
+
a($ instanceof Error ? $ : new Error(String($)));
|
|
797
826
|
} finally {
|
|
798
|
-
s(!1),
|
|
827
|
+
s(!1), c(null);
|
|
799
828
|
}
|
|
800
829
|
},
|
|
801
830
|
[e, t, n]
|
|
802
831
|
), loading: r, progress: i, error: o };
|
|
803
832
|
}
|
|
804
|
-
const
|
|
833
|
+
const ft = [
|
|
805
834
|
{ id: "csv", label: "CSV", extension: ".csv", description: "Comma-separated values" },
|
|
806
835
|
{ id: "geojson", label: "GeoJSON", extension: ".geojson", description: "GeoJSON format" },
|
|
807
836
|
{ id: "kml", label: "KML", extension: ".kml", description: "Google Earth" },
|
|
@@ -809,87 +838,87 @@ const it = [
|
|
|
809
838
|
{ id: "flatgeobuf", label: "FlatGeobuf", extension: ".fgb", description: "FlatGeobuf" },
|
|
810
839
|
{ id: "geopackage", label: "GeoPackage", extension: ".gpkg", description: "OGC GeoPackage" }
|
|
811
840
|
];
|
|
812
|
-
function
|
|
813
|
-
const [n, r] =
|
|
841
|
+
function gt(e, t) {
|
|
842
|
+
const [n, r] = y(null), [s, i] = y(!1), [c, o] = y(null);
|
|
814
843
|
return N(() => {
|
|
815
844
|
if (!e || !t) return;
|
|
816
845
|
let a = !1;
|
|
817
|
-
return i(!0), o(null),
|
|
818
|
-
a || r(
|
|
819
|
-
}).catch((
|
|
820
|
-
a || o(
|
|
846
|
+
return i(!0), o(null), Oe(e, t).then((l) => {
|
|
847
|
+
a || r(l);
|
|
848
|
+
}).catch((l) => {
|
|
849
|
+
a || o(l instanceof Error ? l : new Error(String(l)));
|
|
821
850
|
}).finally(() => {
|
|
822
851
|
a || i(!1);
|
|
823
852
|
}), () => {
|
|
824
853
|
a = !0;
|
|
825
854
|
};
|
|
826
|
-
}, [e, t]), { collection: n, loading: s, error:
|
|
855
|
+
}, [e, t]), { collection: n, loading: s, error: c };
|
|
827
856
|
}
|
|
828
|
-
function
|
|
829
|
-
const [e, t] =
|
|
857
|
+
function mt() {
|
|
858
|
+
const [e, t] = y(null), [n, r] = y([]), [s, i] = y("km"), c = T(
|
|
830
859
|
() => e ? Me(e, n, s) : null,
|
|
831
860
|
[e, n, s]
|
|
832
|
-
), o =
|
|
833
|
-
() => e ?
|
|
861
|
+
), o = T(
|
|
862
|
+
() => e ? Pe(e, n) : null,
|
|
834
863
|
[e, n]
|
|
835
|
-
), a =
|
|
836
|
-
() => e ?
|
|
864
|
+
), a = T(
|
|
865
|
+
() => e ? Ce(n) : null,
|
|
837
866
|
[e, n]
|
|
838
|
-
),
|
|
839
|
-
t(
|
|
840
|
-
}, []),
|
|
841
|
-
r((m) => [...m,
|
|
842
|
-
}, []),
|
|
867
|
+
), l = v((g) => {
|
|
868
|
+
t(g), r([]), g && i(ve(g));
|
|
869
|
+
}, []), f = v((g) => {
|
|
870
|
+
r((m) => [...m, g]);
|
|
871
|
+
}, []), u = v(() => {
|
|
843
872
|
r([]);
|
|
844
873
|
}, []);
|
|
845
|
-
return { mode: e, points: n, unit: s, measurement:
|
|
874
|
+
return { mode: e, points: n, unit: s, measurement: c, geometryData: o, pointsData: a, setMode: l, setUnit: i, addPoint: f, clear: u };
|
|
846
875
|
}
|
|
847
|
-
function
|
|
876
|
+
function q(e) {
|
|
848
877
|
return e.id != null ? `${e.layerId}:${e.id}` : `${e.layerId}:${JSON.stringify(e.properties)}`;
|
|
849
878
|
}
|
|
850
|
-
const
|
|
851
|
-
function
|
|
852
|
-
const [e, t] =
|
|
879
|
+
const V = 1e3;
|
|
880
|
+
function dt() {
|
|
881
|
+
const [e, t] = y(null), [n, r] = y(null), [s, i] = y([]), c = T(() => s.length === 0 ? null : {
|
|
853
882
|
type: "FeatureCollection",
|
|
854
|
-
features: s.map((
|
|
883
|
+
features: s.map((g) => ({
|
|
855
884
|
type: "Feature",
|
|
856
|
-
properties:
|
|
857
|
-
geometry:
|
|
885
|
+
properties: g.properties,
|
|
886
|
+
geometry: g.geometry
|
|
858
887
|
}))
|
|
859
|
-
}, [s]), o = v((
|
|
860
|
-
t(
|
|
861
|
-
}, []), a = v((
|
|
862
|
-
r(
|
|
863
|
-
}, []),
|
|
888
|
+
}, [s]), o = v((g) => {
|
|
889
|
+
t(g);
|
|
890
|
+
}, []), a = v((g) => {
|
|
891
|
+
r(g), i([]);
|
|
892
|
+
}, []), l = v((g) => {
|
|
864
893
|
i((m) => {
|
|
865
|
-
const
|
|
866
|
-
return
|
|
894
|
+
const d = new Set(m.map(q)), b = g.filter((h) => !d.has(q(h))), p = [...m, ...b];
|
|
895
|
+
return p.length > V ? p.slice(0, V) : p;
|
|
867
896
|
});
|
|
868
|
-
}, []),
|
|
869
|
-
i((m) => m.filter((
|
|
870
|
-
}, []),
|
|
897
|
+
}, []), f = v((g) => {
|
|
898
|
+
i((m) => m.filter((d) => q(d) !== g));
|
|
899
|
+
}, []), u = v(() => {
|
|
871
900
|
i([]);
|
|
872
901
|
}, []);
|
|
873
902
|
return {
|
|
874
903
|
mode: e,
|
|
875
904
|
activeLayerId: n,
|
|
876
905
|
features: s,
|
|
877
|
-
highlightData:
|
|
906
|
+
highlightData: c,
|
|
878
907
|
setMode: o,
|
|
879
908
|
setActiveLayerId: a,
|
|
880
|
-
addFeatures:
|
|
881
|
-
removeFeature:
|
|
882
|
-
clearFeatures:
|
|
909
|
+
addFeatures: l,
|
|
910
|
+
removeFeature: f,
|
|
911
|
+
clearFeatures: u
|
|
883
912
|
};
|
|
884
913
|
}
|
|
885
|
-
function
|
|
914
|
+
function ht(e) {
|
|
886
915
|
if (!e) return;
|
|
887
916
|
const t = [], n = {};
|
|
888
917
|
for (const [r, s] of Object.entries(e))
|
|
889
918
|
s.visible !== !1 && (t.push(r), s.label && (n[r] = s.label));
|
|
890
919
|
return { fields: t, labels: n };
|
|
891
920
|
}
|
|
892
|
-
async function
|
|
921
|
+
async function yt(e) {
|
|
893
922
|
try {
|
|
894
923
|
const t = await fetch(e);
|
|
895
924
|
if (!t.ok) return null;
|
|
@@ -899,7 +928,7 @@ async function ut(e) {
|
|
|
899
928
|
return null;
|
|
900
929
|
}
|
|
901
930
|
}
|
|
902
|
-
async function
|
|
931
|
+
async function Ge(e) {
|
|
903
932
|
try {
|
|
904
933
|
const t = await fetch(`${e}.json`);
|
|
905
934
|
if (!t.ok) return [];
|
|
@@ -909,18 +938,18 @@ async function Ae(e) {
|
|
|
909
938
|
return [];
|
|
910
939
|
}
|
|
911
940
|
}
|
|
912
|
-
async function
|
|
941
|
+
async function pt(e, t) {
|
|
913
942
|
const n = await fetch(e);
|
|
914
943
|
if (!n.ok) throw new Error(`Failed to fetch style: ${n.status}`);
|
|
915
944
|
const r = await n.json();
|
|
916
945
|
if (!t.length) return r;
|
|
917
|
-
const s = Array.isArray(r.sprite) ? r.sprite : r.sprite ? [{ id: "default", url: r.sprite }] : [], i = new Set(t.map((o) => o.id)),
|
|
946
|
+
const s = Array.isArray(r.sprite) ? r.sprite : r.sprite ? [{ id: "default", url: r.sprite }] : [], i = new Set(t.map((o) => o.id)), c = [
|
|
918
947
|
...s.filter((o) => !i.has(o.id)),
|
|
919
948
|
...t.map((o) => ({ id: o.id, url: o.url }))
|
|
920
949
|
];
|
|
921
|
-
return { ...r, sprite:
|
|
950
|
+
return { ...r, sprite: c };
|
|
922
951
|
}
|
|
923
|
-
async function
|
|
952
|
+
async function Te(e) {
|
|
924
953
|
try {
|
|
925
954
|
const t = await fetch(e);
|
|
926
955
|
if (!t.ok) return [];
|
|
@@ -930,204 +959,211 @@ async function Ge(e) {
|
|
|
930
959
|
return [];
|
|
931
960
|
}
|
|
932
961
|
}
|
|
933
|
-
async function
|
|
934
|
-
const t = await
|
|
962
|
+
async function K(e) {
|
|
963
|
+
const t = await Ge(e.url);
|
|
935
964
|
return e.id === "default" ? t : t.map((n) => `${e.id}:${n}`);
|
|
936
965
|
}
|
|
937
|
-
async function
|
|
966
|
+
async function bt(e, t = []) {
|
|
938
967
|
const n = [];
|
|
939
968
|
e && n.push(
|
|
940
|
-
|
|
941
|
-
(s) => Promise.all(s.map(
|
|
969
|
+
Te(e).then(
|
|
970
|
+
(s) => Promise.all(s.map(K)).then((i) => i.flat())
|
|
942
971
|
)
|
|
943
972
|
);
|
|
944
973
|
for (const s of t)
|
|
945
|
-
n.push(
|
|
974
|
+
n.push(K(s));
|
|
946
975
|
const r = await Promise.all(n);
|
|
947
976
|
return [...new Set(r.flat())].sort();
|
|
948
977
|
}
|
|
949
|
-
function
|
|
978
|
+
function O(e, t) {
|
|
950
979
|
return { op: "=", args: [{ property: e }, t] };
|
|
951
980
|
}
|
|
952
|
-
function
|
|
981
|
+
function St(e, t) {
|
|
953
982
|
return { op: "<>", args: [{ property: e }, t] };
|
|
954
983
|
}
|
|
955
|
-
function
|
|
984
|
+
function Ue(e, t) {
|
|
956
985
|
return { op: ">", args: [{ property: e }, t] };
|
|
957
986
|
}
|
|
958
|
-
function
|
|
987
|
+
function Z(e, t) {
|
|
959
988
|
return { op: ">=", args: [{ property: e }, t] };
|
|
960
989
|
}
|
|
961
|
-
function
|
|
990
|
+
function Ne(e, t) {
|
|
962
991
|
return { op: "<", args: [{ property: e }, t] };
|
|
963
992
|
}
|
|
964
|
-
function
|
|
993
|
+
function ee(e, t) {
|
|
965
994
|
return { op: "<=", args: [{ property: e }, t] };
|
|
966
995
|
}
|
|
967
|
-
function
|
|
968
|
-
return { op: "and", args: [
|
|
996
|
+
function xe(e, t, n) {
|
|
997
|
+
return { op: "and", args: [Z(e, t), ee(e, n)] };
|
|
969
998
|
}
|
|
970
|
-
function
|
|
999
|
+
function wt(e, t) {
|
|
971
1000
|
return { op: "like", args: [{ property: e }, t] };
|
|
972
1001
|
}
|
|
973
|
-
function
|
|
1002
|
+
function $t(e, t) {
|
|
974
1003
|
return { op: "in", args: [{ property: e }, t] };
|
|
975
1004
|
}
|
|
976
|
-
function
|
|
1005
|
+
function Mt(e) {
|
|
977
1006
|
return { op: "isNull", args: [{ property: e }] };
|
|
978
1007
|
}
|
|
979
|
-
function
|
|
1008
|
+
function te(...e) {
|
|
980
1009
|
const t = e.filter((n) => n != null);
|
|
981
1010
|
return t.length === 0 ? null : t.length === 1 ? t[0] : { op: "and", args: t };
|
|
982
1011
|
}
|
|
983
|
-
function
|
|
1012
|
+
function vt(...e) {
|
|
984
1013
|
const t = e.filter((n) => n != null);
|
|
985
1014
|
return t.length === 0 ? null : t.length === 1 ? t[0] : { op: "or", args: t };
|
|
986
1015
|
}
|
|
987
|
-
function
|
|
1016
|
+
function Pt(e) {
|
|
988
1017
|
return { op: "not", args: [e] };
|
|
989
1018
|
}
|
|
990
|
-
function
|
|
1019
|
+
function _e(e, t) {
|
|
991
1020
|
return { op: "t_after", args: [{ property: e }, t] };
|
|
992
1021
|
}
|
|
993
|
-
function
|
|
1022
|
+
function qe(e, t) {
|
|
994
1023
|
return { op: "t_before", args: [{ property: e }, t] };
|
|
995
1024
|
}
|
|
996
1025
|
function De(e, t, n) {
|
|
997
1026
|
const r = "date" in t ? t.date : t.timestamp, s = "date" in n ? n.date : n.timestamp;
|
|
998
1027
|
return { op: "t_during", args: [{ property: e }, { interval: [r, s] }] };
|
|
999
1028
|
}
|
|
1000
|
-
function
|
|
1029
|
+
function Ct(e, t) {
|
|
1001
1030
|
return { op: "s_intersects", args: [{ property: e }, t] };
|
|
1002
1031
|
}
|
|
1003
|
-
function
|
|
1032
|
+
function kt(e, t) {
|
|
1004
1033
|
return { op: "s_within", args: [{ property: e }, t] };
|
|
1005
1034
|
}
|
|
1006
|
-
function
|
|
1035
|
+
function Lt(e, t, n, r = "meters") {
|
|
1007
1036
|
return { op: "s_dwithin", args: [{ property: e }, t, n, r] };
|
|
1008
1037
|
}
|
|
1009
|
-
function
|
|
1010
|
-
const t = Object.entries(e).filter(([, n]) => n !== void 0 && n !== "").map(([n, r]) =>
|
|
1011
|
-
return
|
|
1038
|
+
function Et(e) {
|
|
1039
|
+
const t = Object.entries(e).filter(([, n]) => n !== void 0 && n !== "").map(([n, r]) => O(n, r));
|
|
1040
|
+
return te(...t);
|
|
1012
1041
|
}
|
|
1013
|
-
function
|
|
1042
|
+
function Ot(e, t) {
|
|
1014
1043
|
const n = new Map(t.map((s) => [s.property, s])), r = Object.entries(e).map(([s, i]) => {
|
|
1015
1044
|
if (i === void 0) return null;
|
|
1016
|
-
const
|
|
1045
|
+
const c = n.get(s);
|
|
1017
1046
|
if (typeof i == "string")
|
|
1018
|
-
return i === "" ? null : (
|
|
1047
|
+
return i === "" ? null : (c == null ? void 0 : c.type) === "datetime" ? O(s, { timestamp: i }) : O(s, i);
|
|
1019
1048
|
if (typeof i == "number")
|
|
1020
|
-
return
|
|
1049
|
+
return O(s, i);
|
|
1021
1050
|
if (typeof i == "object") {
|
|
1022
1051
|
if ("start" in i || "end" in i) {
|
|
1023
1052
|
const { start: o, end: a } = i;
|
|
1024
|
-
return o && a ? De(s, { timestamp: o }, { timestamp: a }) : o ?
|
|
1053
|
+
return o && a ? De(s, { timestamp: o }, { timestamp: a }) : o ? _e(s, { timestamp: o }) : a ? qe(s, { timestamp: a }) : null;
|
|
1025
1054
|
}
|
|
1026
1055
|
if ("value" in i && "operator" in i) {
|
|
1027
1056
|
const { value: o, operator: a } = i;
|
|
1028
1057
|
if (o == null || String(o) === "") return null;
|
|
1029
1058
|
switch (a) {
|
|
1030
1059
|
case "gt":
|
|
1031
|
-
return
|
|
1060
|
+
return Ue(s, o);
|
|
1032
1061
|
case "lt":
|
|
1033
|
-
return
|
|
1062
|
+
return Ne(s, o);
|
|
1034
1063
|
case "gte":
|
|
1035
|
-
return H(s, o);
|
|
1036
|
-
case "lte":
|
|
1037
1064
|
return Z(s, o);
|
|
1065
|
+
case "lte":
|
|
1066
|
+
return ee(s, o);
|
|
1038
1067
|
default:
|
|
1039
|
-
return
|
|
1068
|
+
return O(s, o);
|
|
1040
1069
|
}
|
|
1041
1070
|
}
|
|
1042
1071
|
if ("min" in i && "max" in i) {
|
|
1043
1072
|
const { min: o, max: a } = i;
|
|
1044
|
-
return o === void 0 || a === void 0 ? null :
|
|
1073
|
+
return o === void 0 || a === void 0 ? null : xe(s, o, a);
|
|
1045
1074
|
}
|
|
1046
1075
|
}
|
|
1047
1076
|
return null;
|
|
1048
1077
|
});
|
|
1049
|
-
return
|
|
1078
|
+
return te(...r);
|
|
1050
1079
|
}
|
|
1051
|
-
function
|
|
1080
|
+
function Ft(e) {
|
|
1052
1081
|
return JSON.stringify(e);
|
|
1053
1082
|
}
|
|
1054
|
-
function
|
|
1083
|
+
function ne(e) {
|
|
1055
1084
|
const t = e.type, n = e.coordinates;
|
|
1056
|
-
return t === "Point" ? [n] : t === "MultiPoint" || t === "LineString" ? n : t === "MultiLineString" || t === "Polygon" ? n.flat() : t === "MultiPolygon" ? n.flat(2) : t === "GeometryCollection" ? (e.geometries ?? []).flatMap(
|
|
1085
|
+
return t === "Point" ? [n] : t === "MultiPoint" || t === "LineString" ? n : t === "MultiLineString" || t === "Polygon" ? n.flat() : t === "MultiPolygon" ? n.flat(2) : t === "GeometryCollection" ? (e.geometries ?? []).flatMap(ne) : [];
|
|
1057
1086
|
}
|
|
1058
1087
|
const G = 0.01;
|
|
1059
|
-
function
|
|
1060
|
-
const t =
|
|
1088
|
+
function Rt(e) {
|
|
1089
|
+
const t = ne(e);
|
|
1061
1090
|
if (t.length === 0) return null;
|
|
1062
1091
|
let n = 1 / 0, r = 1 / 0, s = -1 / 0, i = -1 / 0;
|
|
1063
|
-
for (const [
|
|
1064
|
-
|
|
1092
|
+
for (const [c, o] of t)
|
|
1093
|
+
c < n && (n = c), c > s && (s = c), o < r && (r = o), o > i && (i = o);
|
|
1065
1094
|
return n === s && r === i && (n -= G, r -= G, s += G, i += G), [n, r, s, i];
|
|
1066
1095
|
}
|
|
1067
1096
|
export {
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1097
|
+
gt as $,
|
|
1098
|
+
tt as A,
|
|
1099
|
+
Ye as B,
|
|
1100
|
+
Ue as C,
|
|
1101
|
+
ft as D,
|
|
1073
1102
|
Z as E,
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1103
|
+
$t as F,
|
|
1104
|
+
Mt as G,
|
|
1105
|
+
wt as H,
|
|
1106
|
+
Ne as I,
|
|
1107
|
+
ee as J,
|
|
1108
|
+
St as K,
|
|
1109
|
+
Pt as L,
|
|
1110
|
+
vt as M,
|
|
1111
|
+
ht as N,
|
|
1112
|
+
pt as O,
|
|
1113
|
+
Lt as P,
|
|
1114
|
+
Ct as Q,
|
|
1115
|
+
kt as R,
|
|
1116
|
+
Ft as S,
|
|
1117
|
+
M as T,
|
|
1118
|
+
_e as U,
|
|
1119
|
+
qe as V,
|
|
1120
|
+
De as W,
|
|
1121
|
+
Ve as X,
|
|
1093
1122
|
lt as Y,
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1123
|
+
ut as Z,
|
|
1124
|
+
mt as _,
|
|
1125
|
+
te as a,
|
|
1126
|
+
ot as a0,
|
|
1127
|
+
ct as a1,
|
|
1128
|
+
at as a2,
|
|
1129
|
+
dt as a3,
|
|
1130
|
+
ze as a4,
|
|
1131
|
+
We as a5,
|
|
1132
|
+
pe as a6,
|
|
1133
|
+
Pe as a7,
|
|
1134
|
+
Ce as a8,
|
|
1135
|
+
$e as a9,
|
|
1136
|
+
we as aa,
|
|
1137
|
+
Me as ab,
|
|
1138
|
+
ve as ac,
|
|
1139
|
+
Ae as ad,
|
|
1140
|
+
Ge as ae,
|
|
1141
|
+
yt as af,
|
|
1142
|
+
bt as ag,
|
|
1143
|
+
q as ah,
|
|
1144
|
+
L as b,
|
|
1145
|
+
ke as c,
|
|
1146
|
+
Rt as d,
|
|
1147
|
+
xe as e,
|
|
1148
|
+
nt as f,
|
|
1149
|
+
it as g,
|
|
1150
|
+
H as h,
|
|
1151
|
+
O as i,
|
|
1152
|
+
je as j,
|
|
1153
|
+
Oe as k,
|
|
1154
|
+
Le as l,
|
|
1119
1155
|
Qe as m,
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1156
|
+
Ze as n,
|
|
1157
|
+
Ke as o,
|
|
1158
|
+
Xe as p,
|
|
1159
|
+
E as q,
|
|
1160
|
+
st as r,
|
|
1161
|
+
Ee as s,
|
|
1162
|
+
Be as t,
|
|
1163
|
+
Et as u,
|
|
1164
|
+
Ot as v,
|
|
1165
|
+
et as w,
|
|
1166
|
+
He as x,
|
|
1167
|
+
rt as y,
|
|
1168
|
+
Fe as z
|
|
1133
1169
|
};
|