@datagouv/components-next 1.4.1-dev.1374.g4dfe0257 → 1.4.1-dev.1375.ge1f9e509
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/{Control-CeBb5PEu.js → Control-DPuXeUqi.js} +3 -12
- package/dist/{Datafair.client-LChXlMI3.js → Datafair.client-LlEgG7WU.js} +2 -3
- package/dist/{Image-CBQwYbQB.js → Image-DVWRoLLI.js} +7 -22
- package/dist/{ImagePreview.client-DWNGZghK.js → ImagePreview.client-Db5dmxMP.js} +2 -3
- package/dist/{JsonPreview.client-DCklbUyJ.js → JsonPreview.client-DKy2AexC.js} +4 -6
- package/dist/{Layer-BPuffNS-.js → Layer-D_5tYbVm.js} +7 -9
- package/dist/{Map-QeL96qbQ.js → Map-CTBJEae_.js} +937 -967
- package/dist/{MapContainer.client-B-aQhH35.js → MapContainer.client-Clk9_bbS.js} +8 -10
- package/dist/{OSM-DT4I7v8A.js → OSM-B5Zc3qAf.js} +2 -3
- package/dist/{PdfPreview.client-1WFiBcXh.js → PdfPreview.client-D3wHTDb9.js} +130 -378
- package/dist/{PdfSkeleton-BvU7ERD1.js → PdfSkeleton-nas5Pmia.js} +2 -3
- package/dist/{Pmtiles.client-BlbOlwyy.js → Pmtiles.client-NGYdeSJY.js} +151 -350
- package/dist/{PreviewError-BfBCBDEx.js → PreviewError-EeaGx3SL.js} +6854 -6849
- package/dist/{PreviewWrapper-DvycGC7l.js → PreviewWrapper-BhldDdXK.js} +2 -3
- package/dist/{ScaleLine-Cwwk9wJo.js → ScaleLine-C_tuJ6VG.js} +3 -4
- package/dist/Tile-8nHSuqcv.js +571 -0
- package/dist/{Tile-4WpHaLOZ.js → Tile-Bu5lF4M5.js} +8 -13
- package/dist/{TileImage-CZZ4lgsm.js → TileImage-CgO5alXc.js} +105 -113
- package/dist/{View-DWqx4Jqr.js → View-Dad8DfSD.js} +25 -51
- package/dist/{XmlPreview.client-ClFD8R3a.js → XmlPreview.client-CmGbc3c3.js} +5 -7
- package/dist/assets/maplibre-gl-worker-CEzvAyZY.js +10 -0
- package/dist/components-next.js +9634 -10210
- package/dist/{en-C_qOt4Jn.js → en-OIaJCts4.js} +1 -2
- package/dist/{france-JfC0dOuE.js → france-BtSQqcqV.js} +5 -9
- package/dist/{hvd-ZlsiTVFh.js → hvd-CTia2VCz.js} +1 -2
- package/dist/{inspire-DZQ-yA5f.js → inspire-Cc-Kc4K-.js} +1 -2
- package/dist/{leaflet-src-lLkzhpcP.js → leaflet-src-BY_Zq0V0.js} +77 -126
- package/dist/{proj-DM6GW1n3.js → proj-COhZ08DR.js} +19 -37
- package/dist/{purify.es-D6pPunDo.js → purify.es-CGAWnSTR.js} +4 -27
- package/dist/{rolldown-runtime-CEFd7nDs.js → rolldown-runtime-DsPmjQRF.js} +2 -3
- package/dist/{sl-BxQ_ZY_w.js → sl-CKkMwQhf.js} +1 -2
- package/dist/{spd-Cs37HjuR.js → spd-Djcs02gw.js} +1 -2
- package/dist/{sr-JDtennFO.js → sr-DabGmchD.js} +1 -2
- package/dist/{src-D_UE0st7.js → src-D_o-aUzl.js} +1612 -2428
- package/dist/{text-clamp.esm-DRvX2Gzm.js → text-clamp.esm-DE3022VR.js} +3 -5
- package/dist/{transform-Ct1GejD-.js → transform-CNeEnSK9.js} +7 -13
- package/dist/{vue3-json-viewer-BJgUfh-l.js → vue3-json-viewer-CUx5EFVA.js} +1 -2
- package/dist/{vue3-xml-viewer.common-DbJwzvCC.js → vue3-xml-viewer.common-C0bbtsGT.js} +2 -3
- package/package.json +2 -2
- package/dist/Tile-BV44yf69.js +0 -574
- package/dist/assets/maplibre-gl-worker-C24SsKwV.js +0 -10
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { r as e } from "./rolldown-runtime-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { E as
|
|
6
|
-
import { a as
|
|
7
|
-
import { a as
|
|
8
|
-
|
|
9
|
-
var
|
|
1
|
+
import { r as e } from "./rolldown-runtime-DsPmjQRF.js";
|
|
2
|
+
import { $t as t, B as n, Bt as r, F as i, Gt as a, Kt as o, Ot as s, P as c, R as l, Rt as u, St as d, Ut as f, Wt as p, X as m, Xt as h, Yt as g, an as _, cn as v, ct as ee, dn as y, dt as b, et as te, in as x, jt as ne, l as re, ln as ie, on as S, un as ae, v as oe, wt as se, zt as C } from "./proj-COhZ08DR.js";
|
|
3
|
+
import { C as ce, S as le, _ as ue, a as w, b as de, c as fe, d as pe, f as me, l as he, o as ge, p as T, r as _e, u as ve, v as ye, w as be, x as xe, y as Se } from "./Image-DVWRoLLI.js";
|
|
4
|
+
import { c as Ce, i as we, l as Te, n as Ee, o as De, r as Oe, t as ke, u as Ae } from "./Control-DPuXeUqi.js";
|
|
5
|
+
import { E as je, S as E, i as Me, n as Ne, o as Pe, r as Fe, s as Ie, w as Le } from "./transform-CNeEnSK9.js";
|
|
6
|
+
import { a as Re, i as ze, o as Be, t as Ve } from "./View-Dad8DfSD.js";
|
|
7
|
+
import { a as He, c as Ue, d as We, f as Ge, i as Ke, l as qe, n as Je, o as Ye, p as Xe, r as Ze, s as Qe, t as $e, u as et } from "./Layer-D_5tYbVm.js";
|
|
8
|
+
// ../node_modules/ol/CollectionEventType.js
|
|
9
|
+
var D = {
|
|
10
10
|
ADD: "add",
|
|
11
11
|
REMOVE: "remove"
|
|
12
|
-
},
|
|
12
|
+
}, tt = { LENGTH: "length" }, nt = class extends p {
|
|
13
13
|
constructor(e, t, n) {
|
|
14
14
|
super(e), this.element = t, this.index = n;
|
|
15
15
|
}
|
|
16
|
-
},
|
|
16
|
+
}, O = class extends u {
|
|
17
17
|
constructor(e, t) {
|
|
18
18
|
if (super(), this.on, this.once, this.un, t ||= {}, this.unique_ = !!t.unique, this.array_ = e ?? [], this.unique_) for (let e = 1, t = this.array_.length; e < t; ++e) this.assertUnique_(this.array_[e], e);
|
|
19
19
|
this.updateLength_();
|
|
@@ -36,11 +36,11 @@ var k = {
|
|
|
36
36
|
return this.array_[e];
|
|
37
37
|
}
|
|
38
38
|
getLength() {
|
|
39
|
-
return this.get(
|
|
39
|
+
return this.get(tt.LENGTH);
|
|
40
40
|
}
|
|
41
41
|
insertAt(e, t) {
|
|
42
42
|
if (e < 0 || e > this.getLength()) throw Error("Index out of bounds: " + e);
|
|
43
|
-
this.unique_ && this.assertUnique_(t), this.array_.splice(e, 0, t), this.updateLength_(), this.dispatchEvent(new
|
|
43
|
+
this.unique_ && this.assertUnique_(t), this.array_.splice(e, 0, t), this.updateLength_(), this.dispatchEvent(new nt(D.ADD, t, e));
|
|
44
44
|
}
|
|
45
45
|
pop() {
|
|
46
46
|
return this.removeAt(this.getLength() - 1);
|
|
@@ -56,7 +56,7 @@ var k = {
|
|
|
56
56
|
removeAt(e) {
|
|
57
57
|
if (e < 0 || e >= this.getLength()) return;
|
|
58
58
|
let t = this.array_[e];
|
|
59
|
-
return this.array_.splice(e, 1), this.updateLength_(), this.dispatchEvent(new
|
|
59
|
+
return this.array_.splice(e, 1), this.updateLength_(), this.dispatchEvent(new nt(D.REMOVE, t, e)), t;
|
|
60
60
|
}
|
|
61
61
|
setAt(e, t) {
|
|
62
62
|
if (e >= this.getLength()) {
|
|
@@ -66,42 +66,40 @@ var k = {
|
|
|
66
66
|
if (e < 0) throw Error("Index out of bounds: " + e);
|
|
67
67
|
this.unique_ && this.assertUnique_(t, e);
|
|
68
68
|
let n = this.array_[e];
|
|
69
|
-
this.array_[e] = t, this.dispatchEvent(new
|
|
69
|
+
this.array_[e] = t, this.dispatchEvent(new nt(D.REMOVE, n, e)), this.dispatchEvent(new nt(D.ADD, t, e));
|
|
70
70
|
}
|
|
71
71
|
updateLength_() {
|
|
72
|
-
this.set(
|
|
72
|
+
this.set(tt.LENGTH, this.array_.length);
|
|
73
73
|
}
|
|
74
74
|
assertUnique_(e, t) {
|
|
75
75
|
let n = this.array_;
|
|
76
76
|
for (let r = 0, i = n.length; r < i; ++r) if (n[r] === e && r !== t) throw Error("Duplicate item added to a unique collection");
|
|
77
77
|
}
|
|
78
78
|
};
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
function tt(e, t, n = 0, r = e.length - 1, i = rt) {
|
|
79
|
+
// ../node_modules/quickselect/index.js
|
|
80
|
+
function rt(e, t, n = 0, r = e.length - 1, i = at) {
|
|
82
81
|
for (; r > n;) {
|
|
83
82
|
if (r - n > 600) {
|
|
84
83
|
let a = r - n + 1, o = t - n + 1, s = Math.log(a), c = .5 * Math.exp(2 * s / 3), l = .5 * Math.sqrt(s * c * (a - c) / a) * (o - a / 2 < 0 ? -1 : 1);
|
|
85
|
-
|
|
84
|
+
rt(e, t, Math.max(n, Math.floor(t - o * c / a + l)), Math.min(r, Math.floor(t + (a - o) * c / a + l)), i);
|
|
86
85
|
}
|
|
87
86
|
let a = e[t], o = n, s = r;
|
|
88
|
-
for (
|
|
89
|
-
for (
|
|
87
|
+
for (it(e, n, t), i(e[r], a) > 0 && it(e, n, r); o < s;) {
|
|
88
|
+
for (it(e, o, s), o++, s--; i(e[o], a) < 0;) o++;
|
|
90
89
|
for (; i(e[s], a) > 0;) s--;
|
|
91
90
|
}
|
|
92
|
-
i(e[n], a) === 0 ?
|
|
91
|
+
i(e[n], a) === 0 ? it(e, n, s) : (s++, it(e, s, r)), s <= t && (n = s + 1), t <= s && (r = s - 1);
|
|
93
92
|
}
|
|
94
93
|
}
|
|
95
|
-
function
|
|
94
|
+
function it(e, t, n) {
|
|
96
95
|
let r = e[t];
|
|
97
96
|
e[t] = e[n], e[n] = r;
|
|
98
97
|
}
|
|
99
|
-
function
|
|
98
|
+
function at(e, t) {
|
|
100
99
|
return e < t ? -1 : +(e > t);
|
|
101
100
|
}
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
var it = class {
|
|
101
|
+
// ../node_modules/rbush/index.js
|
|
102
|
+
var ot = class {
|
|
105
103
|
constructor(e = 9) {
|
|
106
104
|
this._maxEntries = Math.max(4, e), this._minEntries = Math.max(2, Math.ceil(this._maxEntries * .4)), this.clear();
|
|
107
105
|
}
|
|
@@ -110,12 +108,12 @@ var it = class {
|
|
|
110
108
|
}
|
|
111
109
|
search(e) {
|
|
112
110
|
let t = this.data, n = [];
|
|
113
|
-
if (!
|
|
111
|
+
if (!vt(e, t)) return n;
|
|
114
112
|
let r = this.toBBox, i = [];
|
|
115
113
|
for (; t;) {
|
|
116
114
|
for (let a = 0; a < t.children.length; a++) {
|
|
117
115
|
let o = t.children[a], s = t.leaf ? r(o) : o;
|
|
118
|
-
|
|
116
|
+
vt(e, s) && (t.leaf ? n.push(o) : _t(e, s) ? this._all(o, n) : i.push(o));
|
|
119
117
|
}
|
|
120
118
|
t = i.pop();
|
|
121
119
|
}
|
|
@@ -123,13 +121,13 @@ var it = class {
|
|
|
123
121
|
}
|
|
124
122
|
collides(e) {
|
|
125
123
|
let t = this.data;
|
|
126
|
-
if (!
|
|
124
|
+
if (!vt(e, t)) return !1;
|
|
127
125
|
let n = [];
|
|
128
126
|
for (; t;) {
|
|
129
127
|
for (let r = 0; r < t.children.length; r++) {
|
|
130
128
|
let i = t.children[r], a = t.leaf ? this.toBBox(i) : i;
|
|
131
|
-
if (
|
|
132
|
-
if (t.leaf ||
|
|
129
|
+
if (vt(e, a)) {
|
|
130
|
+
if (t.leaf || _t(e, a)) return !0;
|
|
133
131
|
n.push(i);
|
|
134
132
|
}
|
|
135
133
|
}
|
|
@@ -159,17 +157,17 @@ var it = class {
|
|
|
159
157
|
return e && this._insert(e, this.data.height - 1), this;
|
|
160
158
|
}
|
|
161
159
|
clear() {
|
|
162
|
-
return this.data =
|
|
160
|
+
return this.data = yt([]), this;
|
|
163
161
|
}
|
|
164
162
|
remove(e, t) {
|
|
165
163
|
if (!e) return this;
|
|
166
164
|
let n = this.data, r = this.toBBox(e), i = [], a = [], o, s, c;
|
|
167
165
|
for (; n || i.length;) {
|
|
168
166
|
if (n || (n = i.pop(), s = i[i.length - 1], o = a.pop(), c = !0), n.leaf) {
|
|
169
|
-
let r =
|
|
167
|
+
let r = st(e, n.children, t);
|
|
170
168
|
if (r !== -1) return n.children.splice(r, 1), i.push(n), this._condense(i), this;
|
|
171
169
|
}
|
|
172
|
-
!c && !n.leaf &&
|
|
170
|
+
!c && !n.leaf && _t(n, r) ? (i.push(n), a.push(o), o = 0, s = n, n = n.children[0]) : s ? (o++, n = s.children[o], c = !1) : n = null;
|
|
173
171
|
}
|
|
174
172
|
return this;
|
|
175
173
|
}
|
|
@@ -195,25 +193,25 @@ var it = class {
|
|
|
195
193
|
}
|
|
196
194
|
_build(e, t, n, r) {
|
|
197
195
|
let i = n - t + 1, a = this._maxEntries, o;
|
|
198
|
-
if (i <= a) return o =
|
|
199
|
-
r || (r = Math.ceil(Math.log(i) / Math.log(a)), a = Math.ceil(i / a ** (r - 1))), o =
|
|
196
|
+
if (i <= a) return o = yt(e.slice(t, n + 1)), ct(o, this.toBBox), o;
|
|
197
|
+
r || (r = Math.ceil(Math.log(i) / Math.log(a)), a = Math.ceil(i / a ** (r - 1))), o = yt([]), o.leaf = !1, o.height = r;
|
|
200
198
|
let s = Math.ceil(i / a), c = s * Math.ceil(Math.sqrt(a));
|
|
201
|
-
|
|
199
|
+
bt(e, t, n, c, this.compareMinX);
|
|
202
200
|
for (let i = t; i <= n; i += c) {
|
|
203
201
|
let t = Math.min(i + c - 1, n);
|
|
204
|
-
|
|
202
|
+
bt(e, i, t, s, this.compareMinY);
|
|
205
203
|
for (let n = i; n <= t; n += s) {
|
|
206
204
|
let i = Math.min(n + s - 1, t);
|
|
207
205
|
o.children.push(this._build(e, n, i, r - 1));
|
|
208
206
|
}
|
|
209
207
|
}
|
|
210
|
-
return
|
|
208
|
+
return ct(o, this.toBBox), o;
|
|
211
209
|
}
|
|
212
210
|
_chooseSubtree(e, t, n, r) {
|
|
213
211
|
for (; r.push(t), !(t.leaf || r.length - 1 === n);) {
|
|
214
212
|
let n = Infinity, r = Infinity, i;
|
|
215
213
|
for (let a = 0; a < t.children.length; a++) {
|
|
216
|
-
let o = t.children[a], s =
|
|
214
|
+
let o = t.children[a], s = pt(o), c = ht(e, o) - s;
|
|
217
215
|
c < r ? (r = c, n = s < n ? s : n, i = o) : c === r && s < n && (n = s, i = o);
|
|
218
216
|
}
|
|
219
217
|
t = i || t.children[0];
|
|
@@ -222,95 +220,95 @@ var it = class {
|
|
|
222
220
|
}
|
|
223
221
|
_insert(e, t, n) {
|
|
224
222
|
let r = n ? e : this.toBBox(e), i = [], a = this._chooseSubtree(r, this.data, t, i);
|
|
225
|
-
for (a.children.push(e),
|
|
223
|
+
for (a.children.push(e), ut(a, r); t >= 0 && i[t].children.length > this._maxEntries;) this._split(i, t), t--;
|
|
226
224
|
this._adjustParentBBoxes(r, i, t);
|
|
227
225
|
}
|
|
228
226
|
_split(e, t) {
|
|
229
227
|
let n = e[t], r = n.children.length, i = this._minEntries;
|
|
230
228
|
this._chooseSplitAxis(n, i, r);
|
|
231
|
-
let a = this._chooseSplitIndex(n, i, r), o =
|
|
232
|
-
o.height = n.height, o.leaf = n.leaf,
|
|
229
|
+
let a = this._chooseSplitIndex(n, i, r), o = yt(n.children.splice(a, n.children.length - a));
|
|
230
|
+
o.height = n.height, o.leaf = n.leaf, ct(n, this.toBBox), ct(o, this.toBBox), t ? e[t - 1].children.push(o) : this._splitRoot(n, o);
|
|
233
231
|
}
|
|
234
232
|
_splitRoot(e, t) {
|
|
235
|
-
this.data =
|
|
233
|
+
this.data = yt([e, t]), this.data.height = e.height + 1, this.data.leaf = !1, ct(this.data, this.toBBox);
|
|
236
234
|
}
|
|
237
235
|
_chooseSplitIndex(e, t, n) {
|
|
238
236
|
let r, i = Infinity, a = Infinity;
|
|
239
237
|
for (let o = t; o <= n - t; o++) {
|
|
240
|
-
let t =
|
|
238
|
+
let t = lt(e, 0, o, this.toBBox), s = lt(e, o, n, this.toBBox), c = gt(t, s), l = pt(t) + pt(s);
|
|
241
239
|
c < i ? (i = c, r = o, a = l < a ? l : a) : c === i && l < a && (a = l, r = o);
|
|
242
240
|
}
|
|
243
241
|
return r || n - t;
|
|
244
242
|
}
|
|
245
243
|
_chooseSplitAxis(e, t, n) {
|
|
246
|
-
let r = e.leaf ? this.compareMinX :
|
|
244
|
+
let r = e.leaf ? this.compareMinX : dt, i = e.leaf ? this.compareMinY : ft;
|
|
247
245
|
this._allDistMargin(e, t, n, r) < this._allDistMargin(e, t, n, i) && e.children.sort(r);
|
|
248
246
|
}
|
|
249
247
|
_allDistMargin(e, t, n, r) {
|
|
250
248
|
e.children.sort(r);
|
|
251
|
-
let i = this.toBBox, a =
|
|
249
|
+
let i = this.toBBox, a = lt(e, 0, t, i), o = lt(e, n - t, n, i), s = mt(a) + mt(o);
|
|
252
250
|
for (let r = t; r < n - t; r++) {
|
|
253
251
|
let t = e.children[r];
|
|
254
|
-
|
|
252
|
+
ut(a, e.leaf ? i(t) : t), s += mt(a);
|
|
255
253
|
}
|
|
256
254
|
for (let r = n - t - 1; r >= t; r--) {
|
|
257
255
|
let t = e.children[r];
|
|
258
|
-
|
|
256
|
+
ut(o, e.leaf ? i(t) : t), s += mt(o);
|
|
259
257
|
}
|
|
260
258
|
return s;
|
|
261
259
|
}
|
|
262
260
|
_adjustParentBBoxes(e, t, n) {
|
|
263
|
-
for (let r = n; r >= 0; r--)
|
|
261
|
+
for (let r = n; r >= 0; r--) ut(t[r], e);
|
|
264
262
|
}
|
|
265
263
|
_condense(e) {
|
|
266
|
-
for (let t = e.length - 1, n; t >= 0; t--) e[t].children.length === 0 ? t > 0 ? (n = e[t - 1].children, n.splice(n.indexOf(e[t]), 1)) : this.clear() :
|
|
264
|
+
for (let t = e.length - 1, n; t >= 0; t--) e[t].children.length === 0 ? t > 0 ? (n = e[t - 1].children, n.splice(n.indexOf(e[t]), 1)) : this.clear() : ct(e[t], this.toBBox);
|
|
267
265
|
}
|
|
268
266
|
};
|
|
269
|
-
function
|
|
267
|
+
function st(e, t, n) {
|
|
270
268
|
if (!n) return t.indexOf(e);
|
|
271
269
|
for (let r = 0; r < t.length; r++) if (n(e, t[r])) return r;
|
|
272
270
|
return -1;
|
|
273
271
|
}
|
|
274
|
-
function
|
|
275
|
-
|
|
272
|
+
function ct(e, t) {
|
|
273
|
+
lt(e, 0, e.children.length, t, e);
|
|
276
274
|
}
|
|
277
|
-
function
|
|
278
|
-
i ||=
|
|
275
|
+
function lt(e, t, n, r, i) {
|
|
276
|
+
i ||= yt(null), i.minX = Infinity, i.minY = Infinity, i.maxX = -Infinity, i.maxY = -Infinity;
|
|
279
277
|
for (let a = t; a < n; a++) {
|
|
280
278
|
let t = e.children[a];
|
|
281
|
-
|
|
279
|
+
ut(i, e.leaf ? r(t) : t);
|
|
282
280
|
}
|
|
283
281
|
return i;
|
|
284
282
|
}
|
|
285
|
-
function
|
|
283
|
+
function ut(e, t) {
|
|
286
284
|
return e.minX = Math.min(e.minX, t.minX), e.minY = Math.min(e.minY, t.minY), e.maxX = Math.max(e.maxX, t.maxX), e.maxY = Math.max(e.maxY, t.maxY), e;
|
|
287
285
|
}
|
|
288
|
-
function
|
|
286
|
+
function dt(e, t) {
|
|
289
287
|
return e.minX - t.minX;
|
|
290
288
|
}
|
|
291
|
-
function
|
|
289
|
+
function ft(e, t) {
|
|
292
290
|
return e.minY - t.minY;
|
|
293
291
|
}
|
|
294
|
-
function
|
|
292
|
+
function pt(e) {
|
|
295
293
|
return (e.maxX - e.minX) * (e.maxY - e.minY);
|
|
296
294
|
}
|
|
297
|
-
function
|
|
295
|
+
function mt(e) {
|
|
298
296
|
return e.maxX - e.minX + (e.maxY - e.minY);
|
|
299
297
|
}
|
|
300
|
-
function
|
|
298
|
+
function ht(e, t) {
|
|
301
299
|
return (Math.max(t.maxX, e.maxX) - Math.min(t.minX, e.minX)) * (Math.max(t.maxY, e.maxY) - Math.min(t.minY, e.minY));
|
|
302
300
|
}
|
|
303
|
-
function
|
|
301
|
+
function gt(e, t) {
|
|
304
302
|
let n = Math.max(e.minX, t.minX), r = Math.max(e.minY, t.minY), i = Math.min(e.maxX, t.maxX), a = Math.min(e.maxY, t.maxY);
|
|
305
303
|
return Math.max(0, i - n) * Math.max(0, a - r);
|
|
306
304
|
}
|
|
307
|
-
function
|
|
305
|
+
function _t(e, t) {
|
|
308
306
|
return e.minX <= t.minX && e.minY <= t.minY && t.maxX <= e.maxX && t.maxY <= e.maxY;
|
|
309
307
|
}
|
|
310
|
-
function
|
|
308
|
+
function vt(e, t) {
|
|
311
309
|
return t.minX <= e.maxX && t.minY <= e.maxY && t.maxX >= e.minX && t.maxY >= e.minY;
|
|
312
310
|
}
|
|
313
|
-
function
|
|
311
|
+
function yt(e) {
|
|
314
312
|
return {
|
|
315
313
|
children: e,
|
|
316
314
|
height: 1,
|
|
@@ -321,20 +319,19 @@ function _t(e) {
|
|
|
321
319
|
maxY: -Infinity
|
|
322
320
|
};
|
|
323
321
|
}
|
|
324
|
-
function
|
|
322
|
+
function bt(e, t, n, r, i) {
|
|
325
323
|
let a = [t, n];
|
|
326
324
|
for (; a.length;) {
|
|
327
325
|
if (n = a.pop(), t = a.pop(), n - t <= r) continue;
|
|
328
326
|
let o = t + Math.ceil((n - t) / r / 2) * r;
|
|
329
|
-
|
|
327
|
+
rt(e, o, t, n, i), a.push(t, o, o, n);
|
|
330
328
|
}
|
|
331
329
|
}
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
var j = {
|
|
330
|
+
// ../node_modules/ol/MapBrowserEventType.js
|
|
331
|
+
var k = {
|
|
335
332
|
SINGLECLICK: "singleclick",
|
|
336
|
-
CLICK:
|
|
337
|
-
DBLCLICK:
|
|
333
|
+
CLICK: _.CLICK,
|
|
334
|
+
DBLCLICK: _.DBLCLICK,
|
|
338
335
|
POINTERDRAG: "pointerdrag",
|
|
339
336
|
POINTERMOVE: "pointermove",
|
|
340
337
|
POINTERDOWN: "pointerdown",
|
|
@@ -344,12 +341,12 @@ var j = {
|
|
|
344
341
|
POINTERENTER: "pointerenter",
|
|
345
342
|
POINTERLEAVE: "pointerleave",
|
|
346
343
|
POINTERCANCEL: "pointercancel"
|
|
347
|
-
},
|
|
344
|
+
}, xt = { ACTIVE: "active" }, St = class extends u {
|
|
348
345
|
constructor(e) {
|
|
349
346
|
super(), this.on, this.once, this.un, e && e.handleEvent && (this.handleEvent = e.handleEvent), this.map_ = null, this.setActive(!0);
|
|
350
347
|
}
|
|
351
348
|
getActive() {
|
|
352
|
-
return this.get(
|
|
349
|
+
return this.get(xt.ACTIVE);
|
|
353
350
|
}
|
|
354
351
|
getMap() {
|
|
355
352
|
return this.map_;
|
|
@@ -358,24 +355,24 @@ var j = {
|
|
|
358
355
|
return !0;
|
|
359
356
|
}
|
|
360
357
|
setActive(e) {
|
|
361
|
-
this.set(
|
|
358
|
+
this.set(xt.ACTIVE, e);
|
|
362
359
|
}
|
|
363
360
|
setMap(e) {
|
|
364
361
|
this.map_ = e;
|
|
365
362
|
}
|
|
366
363
|
};
|
|
367
|
-
function
|
|
364
|
+
function Ct(e, t, n) {
|
|
368
365
|
let r = e.getCenterInternal();
|
|
369
366
|
if (r) {
|
|
370
367
|
let i = [r[0] + t[0], r[1] + t[1]];
|
|
371
368
|
e.animateInternal({
|
|
372
369
|
duration: n === void 0 ? 250 : n,
|
|
373
|
-
easing:
|
|
370
|
+
easing: je,
|
|
374
371
|
center: e.getConstrainedCenter(i)
|
|
375
372
|
});
|
|
376
373
|
}
|
|
377
374
|
}
|
|
378
|
-
function
|
|
375
|
+
function wt(e, t, n, r) {
|
|
379
376
|
let i = e.getZoom();
|
|
380
377
|
if (i === void 0) return;
|
|
381
378
|
let a = e.getConstrainedZoom(i + t), o = e.getResolutionForZoom(a);
|
|
@@ -383,12 +380,11 @@ function St(e, t, n, r) {
|
|
|
383
380
|
resolution: o,
|
|
384
381
|
anchor: n,
|
|
385
382
|
duration: r === void 0 ? 250 : r,
|
|
386
|
-
easing:
|
|
383
|
+
easing: Le
|
|
387
384
|
});
|
|
388
385
|
}
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
var Ct = class {
|
|
386
|
+
// ../node_modules/ol/Kinetic.js
|
|
387
|
+
var Tt = class {
|
|
392
388
|
constructor(e, t, n) {
|
|
393
389
|
this.decay_ = e, this.minVelocity_ = t, this.delay_ = n, this.points_ = [], this.angle_ = 0, this.initialVelocity_ = 0;
|
|
394
390
|
}
|
|
@@ -415,22 +411,21 @@ var Ct = class {
|
|
|
415
411
|
getAngle() {
|
|
416
412
|
return this.angle_;
|
|
417
413
|
}
|
|
418
|
-
},
|
|
414
|
+
}, Et = class extends St {
|
|
419
415
|
constructor(e) {
|
|
420
416
|
super(), e ||= {}, this.delta_ = e.delta ? e.delta : 1, this.duration_ = e.duration === void 0 ? 250 : e.duration;
|
|
421
417
|
}
|
|
422
418
|
handleEvent(e) {
|
|
423
419
|
let t = !1;
|
|
424
|
-
if (e.type ==
|
|
420
|
+
if (e.type == k.DBLCLICK) {
|
|
425
421
|
let n = e.originalEvent, r = e.map, i = e.coordinate, a = n.shiftKey ? -this.delta_ : this.delta_;
|
|
426
|
-
|
|
422
|
+
wt(r.getView(), a, i, this.duration_), n.preventDefault(), t = !0;
|
|
427
423
|
}
|
|
428
424
|
return !t;
|
|
429
425
|
}
|
|
430
426
|
};
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
function Tt(e) {
|
|
427
|
+
// ../node_modules/ol/events/condition.js
|
|
428
|
+
function Dt(e) {
|
|
434
429
|
let t = arguments;
|
|
435
430
|
return function(e) {
|
|
436
431
|
let n = !0;
|
|
@@ -438,44 +433,44 @@ function Tt(e) {
|
|
|
438
433
|
return n;
|
|
439
434
|
};
|
|
440
435
|
}
|
|
441
|
-
var
|
|
436
|
+
var Ot = function(e) {
|
|
442
437
|
let t = e.originalEvent;
|
|
443
438
|
return t.altKey && !(t.metaKey || t.ctrlKey) && !t.shiftKey;
|
|
444
|
-
},
|
|
439
|
+
}, kt = function(e) {
|
|
445
440
|
let t = e.originalEvent;
|
|
446
441
|
return t.altKey && !(t.metaKey || t.ctrlKey) && t.shiftKey;
|
|
447
|
-
},
|
|
442
|
+
}, At = function(e) {
|
|
448
443
|
let t = e.map.getTargetElement(), n = t.getRootNode(), r = e.map.getOwnerDocument().activeElement;
|
|
449
444
|
return n instanceof ShadowRoot ? n.host.contains(r) : t.contains(r);
|
|
450
|
-
},
|
|
445
|
+
}, jt = function(e) {
|
|
451
446
|
let t = e.map.getTargetElement(), n = t.getRootNode();
|
|
452
|
-
return !(n instanceof ShadowRoot ? n.host : t).hasAttribute("tabindex") ||
|
|
453
|
-
},
|
|
447
|
+
return !(n instanceof ShadowRoot ? n.host : t).hasAttribute("tabindex") || At(e);
|
|
448
|
+
}, Mt = o, Nt = function(e) {
|
|
454
449
|
let t = e.originalEvent;
|
|
455
|
-
return "pointerId" in t && t.button == 0 && !(
|
|
456
|
-
},
|
|
450
|
+
return "pointerId" in t && t.button == 0 && !(ce && xe && t.ctrlKey);
|
|
451
|
+
}, Pt = a, Ft = function(e) {
|
|
457
452
|
return e.type == "pointermove";
|
|
458
|
-
},
|
|
459
|
-
return e.type ==
|
|
460
|
-
},
|
|
453
|
+
}, It = function(e) {
|
|
454
|
+
return e.type == k.SINGLECLICK;
|
|
455
|
+
}, Lt = function(e) {
|
|
461
456
|
let t = e.originalEvent;
|
|
462
457
|
return !t.altKey && !(t.metaKey || t.ctrlKey) && !t.shiftKey;
|
|
463
|
-
},
|
|
458
|
+
}, Rt = function(e) {
|
|
464
459
|
let t = e.originalEvent;
|
|
465
|
-
return
|
|
466
|
-
},
|
|
460
|
+
return xe ? t.metaKey : t.ctrlKey;
|
|
461
|
+
}, zt = function(e) {
|
|
467
462
|
let t = e.originalEvent;
|
|
468
463
|
return !t.altKey && !(t.metaKey || t.ctrlKey) && t.shiftKey;
|
|
469
|
-
},
|
|
464
|
+
}, Bt = function(e) {
|
|
470
465
|
let t = e.originalEvent, n = t.target.tagName;
|
|
471
466
|
return n !== "INPUT" && n !== "SELECT" && n !== "TEXTAREA" && !t.target.isContentEditable;
|
|
472
|
-
},
|
|
467
|
+
}, Vt = function(e) {
|
|
473
468
|
let t = e.originalEvent;
|
|
474
469
|
return "pointerId" in t && t.pointerType == "mouse";
|
|
475
|
-
},
|
|
470
|
+
}, Ht = function(e) {
|
|
476
471
|
let t = e.originalEvent;
|
|
477
472
|
return "pointerId" in t && t.isPrimary && t.button === 0;
|
|
478
|
-
},
|
|
473
|
+
}, Ut = class extends St {
|
|
479
474
|
constructor(e) {
|
|
480
475
|
e ||= {}, super(e), e.handleDownEvent && (this.handleDownEvent = e.handleDownEvent), e.handleDragEvent && (this.handleDragEvent = e.handleDragEvent), e.handleMoveEvent && (this.handleMoveEvent = e.handleMoveEvent), e.handleUpEvent && (this.handleUpEvent = e.handleUpEvent), e.stopDown && (this.stopDown = e.stopDown), this.handlingDownUpSequence = !1, this.targetPointers = [];
|
|
481
476
|
}
|
|
@@ -490,15 +485,15 @@ var Et = function(e) {
|
|
|
490
485
|
if (!e.originalEvent) return !0;
|
|
491
486
|
let t = !1;
|
|
492
487
|
if (this.updateTrackedPointers_(e), this.handlingDownUpSequence) {
|
|
493
|
-
if (e.type ==
|
|
494
|
-
else if (e.type ==
|
|
488
|
+
if (e.type == k.POINTERDRAG) this.handleDragEvent(e), e.originalEvent.preventDefault();
|
|
489
|
+
else if (e.type == k.POINTERUP) {
|
|
495
490
|
let t = this.handleUpEvent(e);
|
|
496
491
|
this.handlingDownUpSequence = t && this.targetPointers.length > 0;
|
|
497
492
|
}
|
|
498
|
-
} else if (e.type ==
|
|
493
|
+
} else if (e.type == k.POINTERDOWN) {
|
|
499
494
|
let n = this.handleDownEvent(e);
|
|
500
495
|
this.handlingDownUpSequence = n, t = this.stopDown(n);
|
|
501
|
-
} else e.type ==
|
|
496
|
+
} else e.type == k.POINTERMOVE && this.handleMoveEvent(e);
|
|
502
497
|
return !t;
|
|
503
498
|
}
|
|
504
499
|
handleMoveEvent(e) {}
|
|
@@ -512,7 +507,7 @@ var Et = function(e) {
|
|
|
512
507
|
e.activePointers && (this.targetPointers = e.activePointers);
|
|
513
508
|
}
|
|
514
509
|
};
|
|
515
|
-
function
|
|
510
|
+
function Wt(e) {
|
|
516
511
|
let t = e.length, n = 0, r = 0;
|
|
517
512
|
for (let i = 0; i < t; i++) n += e[i].clientX, r += e[i].clientY;
|
|
518
513
|
return {
|
|
@@ -520,22 +515,21 @@ function Ht(e) {
|
|
|
520
515
|
clientY: r / t
|
|
521
516
|
};
|
|
522
517
|
}
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
var Ut = class extends Vt {
|
|
518
|
+
// ../node_modules/ol/interaction/DragPan.js
|
|
519
|
+
var Gt = class extends Ut {
|
|
526
520
|
constructor(e) {
|
|
527
|
-
super({ stopDown:
|
|
528
|
-
let t = e.condition ? e.condition :
|
|
529
|
-
this.condition_ = e.onFocusOnly ?
|
|
521
|
+
super({ stopDown: a }), e ||= {}, this.kinetic_ = e.kinetic, this.lastCentroid = null, this.lastPointersCount_, this.panning_ = !1;
|
|
522
|
+
let t = e.condition ? e.condition : Dt(Lt, Ht);
|
|
523
|
+
this.condition_ = e.onFocusOnly ? Dt(jt, t) : t, this.noKinetic_ = !1;
|
|
530
524
|
}
|
|
531
525
|
handleDragEvent(e) {
|
|
532
526
|
let t = e.map;
|
|
533
527
|
this.panning_ || (this.panning_ = !0, t.getView().beginInteraction());
|
|
534
|
-
let n = this.targetPointers, r = t.getEventPixel(
|
|
528
|
+
let n = this.targetPointers, r = t.getEventPixel(Wt(n));
|
|
535
529
|
if (n.length == this.lastPointersCount_) {
|
|
536
530
|
if (this.kinetic_ && this.kinetic_.update(r[0], r[1]), this.lastCentroid) {
|
|
537
531
|
let t = [this.lastCentroid[0] - r[0], r[1] - this.lastCentroid[1]], n = e.map.getView();
|
|
538
|
-
|
|
532
|
+
i(t, n.getResolution()), c(t, n.getRotation()), n.adjustCenterInternal(t);
|
|
539
533
|
}
|
|
540
534
|
} else this.kinetic_ && this.kinetic_.begin();
|
|
541
535
|
this.lastCentroid = r, this.lastPointersCount_ = n.length, e.originalEvent.preventDefault();
|
|
@@ -548,7 +542,7 @@ var Ut = class extends Vt {
|
|
|
548
542
|
n.animateInternal({
|
|
549
543
|
center: n.getConstrainedCenter(o),
|
|
550
544
|
duration: 500,
|
|
551
|
-
easing:
|
|
545
|
+
easing: Le
|
|
552
546
|
});
|
|
553
547
|
}
|
|
554
548
|
return this.panning_ && (this.panning_ = !1, n.endInteraction()), !1;
|
|
@@ -562,14 +556,14 @@ var Ut = class extends Vt {
|
|
|
562
556
|
}
|
|
563
557
|
return !1;
|
|
564
558
|
}
|
|
565
|
-
},
|
|
559
|
+
}, Kt = class extends Ut {
|
|
566
560
|
constructor(e) {
|
|
567
|
-
e ||= {}, super({ stopDown:
|
|
561
|
+
e ||= {}, super({ stopDown: a }), this.condition_ = e.condition ? e.condition : kt, this.lastAngle_ = void 0, this.duration_ = e.duration === void 0 ? 250 : e.duration;
|
|
568
562
|
}
|
|
569
563
|
handleDragEvent(e) {
|
|
570
|
-
if (!
|
|
564
|
+
if (!Vt(e)) return;
|
|
571
565
|
let t = e.map, n = t.getView();
|
|
572
|
-
if (n.getConstraints().rotation ===
|
|
566
|
+
if (n.getConstraints().rotation === Re) return;
|
|
573
567
|
let r = t.getSize(), i = e.pixel, a = Math.atan2(r[1] / 2 - i[1], i[0] - r[0] / 2);
|
|
574
568
|
if (this.lastAngle_ !== void 0) {
|
|
575
569
|
let e = a - this.lastAngle_;
|
|
@@ -578,12 +572,12 @@ var Ut = class extends Vt {
|
|
|
578
572
|
this.lastAngle_ = a;
|
|
579
573
|
}
|
|
580
574
|
handleUpEvent(e) {
|
|
581
|
-
return !
|
|
575
|
+
return !Vt(e) || (e.map.getView().endInteraction(this.duration_), !1);
|
|
582
576
|
}
|
|
583
577
|
handleDownEvent(e) {
|
|
584
|
-
return
|
|
578
|
+
return Vt(e) && Nt(e) && this.condition_(e) ? (e.map.getView().beginInteraction(), this.lastAngle_ = void 0, !0) : !1;
|
|
585
579
|
}
|
|
586
|
-
},
|
|
580
|
+
}, qt = class extends x {
|
|
587
581
|
constructor(e) {
|
|
588
582
|
super(), this.geometry_ = null, this.element_ = document.createElement("div"), this.element_.style.position = "absolute", this.element_.style.pointerEvents = "auto", this.element_.className = "ol-box " + e, this.map_ = null, this.startPixel_ = null, this.endPixel_ = null;
|
|
589
583
|
}
|
|
@@ -613,23 +607,23 @@ var Ut = class extends Vt {
|
|
|
613
607
|
t,
|
|
614
608
|
[t[0], e[1]]
|
|
615
609
|
].map(this.map_.getCoordinateFromPixelInternal, this.map_);
|
|
616
|
-
n[4] = n[0].slice(), this.geometry_ ? this.geometry_.setCoordinates([n]) : this.geometry_ = new
|
|
610
|
+
n[4] = n[0].slice(), this.geometry_ ? this.geometry_.setCoordinates([n]) : this.geometry_ = new Be([n]);
|
|
617
611
|
}
|
|
618
612
|
getGeometry() {
|
|
619
613
|
return this.geometry_;
|
|
620
614
|
}
|
|
621
|
-
},
|
|
615
|
+
}, Jt = {
|
|
622
616
|
BOXSTART: "boxstart",
|
|
623
617
|
BOXDRAG: "boxdrag",
|
|
624
618
|
BOXEND: "boxend",
|
|
625
619
|
BOXCANCEL: "boxcancel"
|
|
626
|
-
},
|
|
620
|
+
}, Yt = class extends p {
|
|
627
621
|
constructor(e, t, n) {
|
|
628
622
|
super(e), this.coordinate = t, this.mapBrowserEvent = n;
|
|
629
623
|
}
|
|
630
|
-
},
|
|
624
|
+
}, Xt = class extends Ut {
|
|
631
625
|
constructor(e) {
|
|
632
|
-
super(), this.on, this.once, this.un, e ??= {}, this.box_ = new
|
|
626
|
+
super(), this.on, this.once, this.un, e ??= {}, this.box_ = new qt(e.className || "ol-dragbox"), this.minArea_ = e.minArea ?? 64, e.onBoxEnd && (this.onBoxEnd = e.onBoxEnd), this.startPixel_ = null, this.condition_ = e.condition ?? Nt, this.boxEndCondition_ = e.boxEndCondition ?? this.defaultBoxEndCondition;
|
|
633
627
|
}
|
|
634
628
|
defaultBoxEndCondition(e, t, n) {
|
|
635
629
|
let r = n[0] - t[0], i = n[1] - t[1];
|
|
@@ -639,27 +633,27 @@ var Ut = class extends Vt {
|
|
|
639
633
|
return this.box_.getGeometry();
|
|
640
634
|
}
|
|
641
635
|
handleDragEvent(e) {
|
|
642
|
-
this.startPixel_ && (this.box_.setPixels(this.startPixel_, e.pixel), this.dispatchEvent(new
|
|
636
|
+
this.startPixel_ && (this.box_.setPixels(this.startPixel_, e.pixel), this.dispatchEvent(new Yt(Jt.BOXDRAG, e.coordinate, e)));
|
|
643
637
|
}
|
|
644
638
|
handleUpEvent(e) {
|
|
645
639
|
if (!this.startPixel_) return !1;
|
|
646
640
|
let t = this.boxEndCondition_(e, this.startPixel_, e.pixel);
|
|
647
|
-
return t && this.onBoxEnd(e), this.dispatchEvent(new
|
|
641
|
+
return t && this.onBoxEnd(e), this.dispatchEvent(new Yt(t ? Jt.BOXEND : Jt.BOXCANCEL, e.coordinate, e)), this.box_.setMap(null), this.startPixel_ = null, !1;
|
|
648
642
|
}
|
|
649
643
|
handleDownEvent(e) {
|
|
650
|
-
return this.condition_(e) ? (this.startPixel_ = e.pixel, this.box_.setMap(e.map), this.box_.setPixels(this.startPixel_, this.startPixel_), this.dispatchEvent(new
|
|
644
|
+
return this.condition_(e) ? (this.startPixel_ = e.pixel, this.box_.setMap(e.map), this.box_.setPixels(this.startPixel_, this.startPixel_), this.dispatchEvent(new Yt(Jt.BOXSTART, e.coordinate, e)), !0) : !1;
|
|
651
645
|
}
|
|
652
646
|
onBoxEnd(e) {}
|
|
653
647
|
setActive(e) {
|
|
654
|
-
e || (this.box_.setMap(null), this.startPixel_ &&= (this.dispatchEvent(new
|
|
648
|
+
e || (this.box_.setMap(null), this.startPixel_ &&= (this.dispatchEvent(new Yt(Jt.BOXCANCEL, this.startPixel_, null)), null)), super.setActive(e);
|
|
655
649
|
}
|
|
656
650
|
setMap(e) {
|
|
657
|
-
this.getMap() && (this.box_.setMap(null), this.startPixel_ &&= (this.dispatchEvent(new
|
|
651
|
+
this.getMap() && (this.box_.setMap(null), this.startPixel_ &&= (this.dispatchEvent(new Yt(Jt.BOXCANCEL, this.startPixel_, null)), null)), super.setMap(e);
|
|
658
652
|
}
|
|
659
|
-
},
|
|
653
|
+
}, Zt = class extends Xt {
|
|
660
654
|
constructor(e) {
|
|
661
655
|
e ||= {};
|
|
662
|
-
let t = e.condition ? e.condition :
|
|
656
|
+
let t = e.condition ? e.condition : zt;
|
|
663
657
|
super({
|
|
664
658
|
condition: t,
|
|
665
659
|
className: e.className || "ol-dragzoom",
|
|
@@ -674,62 +668,62 @@ var Ut = class extends Vt {
|
|
|
674
668
|
}
|
|
675
669
|
t.fitInternal(n, {
|
|
676
670
|
duration: this.duration_,
|
|
677
|
-
easing:
|
|
671
|
+
easing: Le
|
|
678
672
|
});
|
|
679
673
|
}
|
|
680
|
-
},
|
|
674
|
+
}, Qt = {
|
|
681
675
|
LEFT: "ArrowLeft",
|
|
682
676
|
UP: "ArrowUp",
|
|
683
677
|
RIGHT: "ArrowRight",
|
|
684
678
|
DOWN: "ArrowDown"
|
|
685
|
-
},
|
|
679
|
+
}, $t = class extends St {
|
|
686
680
|
constructor(e) {
|
|
687
681
|
super(), e ||= {}, this.defaultCondition_ = function(e) {
|
|
688
|
-
return
|
|
682
|
+
return Lt(e) && Bt(e);
|
|
689
683
|
}, this.condition_ = e.condition === void 0 ? this.defaultCondition_ : e.condition, this.duration_ = e.duration === void 0 ? 100 : e.duration, this.pixelDelta_ = e.pixelDelta === void 0 ? 128 : e.pixelDelta;
|
|
690
684
|
}
|
|
691
685
|
handleEvent(e) {
|
|
692
686
|
let t = !1;
|
|
693
|
-
if (e.type ==
|
|
687
|
+
if (e.type == _.KEYDOWN) {
|
|
694
688
|
let n = e.originalEvent, r = n.key;
|
|
695
|
-
if (this.condition_(e) && (r ==
|
|
689
|
+
if (this.condition_(e) && (r == Qt.DOWN || r == Qt.LEFT || r == Qt.RIGHT || r == Qt.UP)) {
|
|
696
690
|
let i = e.map.getView(), a = i.getResolution() * this.pixelDelta_, o = 0, s = 0;
|
|
697
|
-
r ==
|
|
698
|
-
let
|
|
699
|
-
|
|
691
|
+
r == Qt.DOWN ? s = -a : r == Qt.LEFT ? o = -a : r == Qt.RIGHT ? o = a : s = a;
|
|
692
|
+
let l = [o, s];
|
|
693
|
+
c(l, i.getRotation()), Ct(i, l, this.duration_), n.preventDefault(), t = !0;
|
|
700
694
|
}
|
|
701
695
|
}
|
|
702
696
|
return !t;
|
|
703
697
|
}
|
|
704
|
-
},
|
|
698
|
+
}, en = class extends St {
|
|
705
699
|
constructor(e) {
|
|
706
700
|
super(), e ||= {}, this.condition_ = e.condition ? e.condition : function(e) {
|
|
707
|
-
return !
|
|
701
|
+
return !Rt(e) && Bt(e);
|
|
708
702
|
}, this.delta_ = e.delta ? e.delta : 1, this.duration_ = e.duration === void 0 ? 100 : e.duration;
|
|
709
703
|
}
|
|
710
704
|
handleEvent(e) {
|
|
711
705
|
let t = !1;
|
|
712
|
-
if (e.type ==
|
|
706
|
+
if (e.type == _.KEYDOWN || e.type == _.KEYPRESS) {
|
|
713
707
|
let n = e.originalEvent, r = n.key;
|
|
714
708
|
if (this.condition_(e) && (r === "+" || r === "-")) {
|
|
715
709
|
let i = e.map, a = r === "+" ? this.delta_ : -this.delta_;
|
|
716
|
-
|
|
710
|
+
wt(i.getView(), a, void 0, this.duration_), n.preventDefault(), t = !0;
|
|
717
711
|
}
|
|
718
712
|
}
|
|
719
713
|
return !t;
|
|
720
714
|
}
|
|
721
|
-
},
|
|
715
|
+
}, tn = 40, nn = 300, rn = 3, an = class extends St {
|
|
722
716
|
constructor(e) {
|
|
723
717
|
e ||= {}, super(e), this.totalDelta_ = 0, this.lastDelta_ = 0, this.maxDelta_ = e.maxDelta === void 0 ? 1 : e.maxDelta, this.duration_ = e.duration === void 0 ? 250 : e.duration, this.timeout_ = e.timeout === void 0 ? 80 : e.timeout, this.useAnchor_ = e.useAnchor === void 0 || e.useAnchor, this.constrainResolution_ = e.constrainResolution !== void 0 && e.constrainResolution;
|
|
724
|
-
let t = e.condition ? e.condition :
|
|
725
|
-
this.condition_ = e.onFocusOnly ?
|
|
718
|
+
let t = e.condition ? e.condition : Mt;
|
|
719
|
+
this.condition_ = e.onFocusOnly ? Dt(jt, t) : t, this.lastAnchor_ = null, this.startTime_ = void 0, this.timeoutId_, this.mode_ = void 0, this.trackpadEventGap_ = 400, this.trackpadTimeoutId_, this.deltaPerZoom_ = 300, this.ctrlKeyPressed_ = !1, this.ctrlKeyListenerKeys_ = [];
|
|
726
720
|
}
|
|
727
721
|
setMap(e) {
|
|
728
|
-
if (this.ctrlKeyListenerKeys_.forEach(
|
|
722
|
+
if (this.ctrlKeyListenerKeys_.forEach(v), this.ctrlKeyListenerKeys_.length = 0, this.ctrlKeyPressed_ = !1, super.setMap(e), e) {
|
|
729
723
|
let t = e.getOwnerDocument();
|
|
730
|
-
this.ctrlKeyListenerKeys_.push(
|
|
724
|
+
this.ctrlKeyListenerKeys_.push(S(t, "keydown", (e) => {
|
|
731
725
|
e.key === "Control" && (this.ctrlKeyPressed_ = !0);
|
|
732
|
-
}),
|
|
726
|
+
}), S(t, "keyup", (e) => {
|
|
733
727
|
e.key === "Control" && (this.ctrlKeyPressed_ = !1);
|
|
734
728
|
}));
|
|
735
729
|
}
|
|
@@ -742,7 +736,7 @@ var Ut = class extends Vt {
|
|
|
742
736
|
t.endInteraction(this.constrainResolution_ || t.getConstrainResolution() ? 100 : void 0, n, this.lastAnchor_ ? e.getCoordinateFromPixel(this.lastAnchor_) : null);
|
|
743
737
|
}
|
|
744
738
|
handleEvent(e) {
|
|
745
|
-
if (!this.condition_(e) || e.type !==
|
|
739
|
+
if (!this.condition_(e) || e.type !== _.WHEEL) return !0;
|
|
746
740
|
let t = e.map, n = e.originalEvent;
|
|
747
741
|
n.preventDefault();
|
|
748
742
|
let r = n.ctrlKey && !this.ctrlKeyPressed_;
|
|
@@ -750,16 +744,16 @@ var Ut = class extends Vt {
|
|
|
750
744
|
let i = n.deltaY;
|
|
751
745
|
switch (n.deltaMode) {
|
|
752
746
|
case WheelEvent.DOM_DELTA_LINE:
|
|
753
|
-
i *=
|
|
747
|
+
i *= tn;
|
|
754
748
|
break;
|
|
755
|
-
case WheelEvent.DOM_DELTA_PAGE: i *=
|
|
749
|
+
case WheelEvent.DOM_DELTA_PAGE: i *= nn;
|
|
756
750
|
}
|
|
757
751
|
if (i === 0) return !1;
|
|
758
752
|
this.lastDelta_ = i;
|
|
759
753
|
let a = Date.now();
|
|
760
754
|
this.startTime_ === void 0 && (this.startTime_ = a), (!this.mode_ || a - this.startTime_ > this.trackpadEventGap_) && (this.mode_ = Math.abs(i) < 4 ? "trackpad" : "wheel");
|
|
761
755
|
let o = t.getView();
|
|
762
|
-
if (this.mode_ === "trackpad") return this.trackpadTimeoutId_ ? clearTimeout(this.trackpadTimeoutId_) : (o.getAnimating() && o.cancelAnimations(), o.beginInteraction()), this.trackpadTimeoutId_ = setTimeout(this.endInteraction_.bind(this), this.timeout_), r && (i *=
|
|
756
|
+
if (this.mode_ === "trackpad") return this.trackpadTimeoutId_ ? clearTimeout(this.trackpadTimeoutId_) : (o.getAnimating() && o.cancelAnimations(), o.beginInteraction()), this.trackpadTimeoutId_ = setTimeout(this.endInteraction_.bind(this), this.timeout_), r && (i *= rn), o.adjustZoom(-i / this.deltaPerZoom_, this.lastAnchor_ ? t.getCoordinateFromPixel(this.lastAnchor_) : null), this.startTime_ = a, !1;
|
|
763
757
|
this.totalDelta_ += i;
|
|
764
758
|
let s = Math.max(this.timeout_ - (a - this.startTime_), 0);
|
|
765
759
|
return clearTimeout(this.timeoutId_), this.timeoutId_ = setTimeout(this.handleWheelZoom_.bind(this, t), s), !1;
|
|
@@ -767,17 +761,17 @@ var Ut = class extends Vt {
|
|
|
767
761
|
handleWheelZoom_(e) {
|
|
768
762
|
let t = e.getView();
|
|
769
763
|
t.getAnimating() && t.cancelAnimations();
|
|
770
|
-
let
|
|
771
|
-
(t.getConstrainResolution() || this.constrainResolution_) && (
|
|
764
|
+
let r = -n(this.totalDelta_, -this.maxDelta_ * this.deltaPerZoom_, this.maxDelta_ * this.deltaPerZoom_) / this.deltaPerZoom_;
|
|
765
|
+
(t.getConstrainResolution() || this.constrainResolution_) && (r = r ? r > 0 ? 1 : -1 : 0), wt(t, r, this.lastAnchor_ ? e.getCoordinateFromPixel(this.lastAnchor_) : null, this.duration_), this.mode_ = void 0, this.totalDelta_ = 0, this.lastAnchor_ = null, this.startTime_ = void 0, this.timeoutId_ = void 0;
|
|
772
766
|
}
|
|
773
767
|
setMouseAnchor(e) {
|
|
774
768
|
this.useAnchor_ = e, e || (this.lastAnchor_ = null);
|
|
775
769
|
}
|
|
776
|
-
},
|
|
770
|
+
}, on = class extends Ut {
|
|
777
771
|
constructor(e) {
|
|
778
772
|
e ||= {};
|
|
779
773
|
let t = e;
|
|
780
|
-
t.stopDown ||=
|
|
774
|
+
t.stopDown ||= a, super(t), this.anchor_ = null, this.lastAngle_ = void 0, this.rotating_ = !1, this.rotationDelta_ = 0, this.threshold_ = e.threshold === void 0 ? .3 : e.threshold, this.duration_ = e.duration === void 0 ? 250 : e.duration;
|
|
781
775
|
}
|
|
782
776
|
handleDragEvent(e) {
|
|
783
777
|
let t = 0, n = this.targetPointers[0], r = this.targetPointers[1], i = Math.atan2(r.clientY - n.clientY, r.clientX - n.clientX);
|
|
@@ -787,7 +781,7 @@ var Ut = class extends Vt {
|
|
|
787
781
|
}
|
|
788
782
|
this.lastAngle_ = i;
|
|
789
783
|
let a = e.map, o = a.getView();
|
|
790
|
-
o.getConstraints().rotation !==
|
|
784
|
+
o.getConstraints().rotation !== Re && (this.anchor_ = a.getCoordinateFromPixelInternal(a.getEventPixel(Wt(this.targetPointers))), this.rotating_ && (a.render(), o.adjustRotationInternal(t, this.anchor_)));
|
|
791
785
|
}
|
|
792
786
|
handleUpEvent(e) {
|
|
793
787
|
return this.targetPointers.length < 2 ? (e.map.getView().endInteraction(this.duration_), !1) : !0;
|
|
@@ -799,17 +793,17 @@ var Ut = class extends Vt {
|
|
|
799
793
|
}
|
|
800
794
|
return !1;
|
|
801
795
|
}
|
|
802
|
-
},
|
|
796
|
+
}, sn = class extends Ut {
|
|
803
797
|
constructor(e) {
|
|
804
798
|
e ||= {};
|
|
805
799
|
let t = e;
|
|
806
|
-
t.stopDown ||=
|
|
800
|
+
t.stopDown ||= a, super(t), this.anchor_ = null, this.duration_ = e.duration === void 0 ? 400 : e.duration, this.lastDistance_ = void 0, this.lastScaleDelta_ = 1;
|
|
807
801
|
}
|
|
808
802
|
handleDragEvent(e) {
|
|
809
803
|
let t = 1, n = this.targetPointers[0], r = this.targetPointers[1], i = n.clientX - r.clientX, a = n.clientY - r.clientY, o = Math.sqrt(i * i + a * a);
|
|
810
804
|
this.lastDistance_ !== void 0 && (t = this.lastDistance_ / o), this.lastDistance_ = o;
|
|
811
805
|
let s = e.map, c = s.getView();
|
|
812
|
-
t != 1 && (this.lastScaleDelta_ = t), this.anchor_ = s.getCoordinateFromPixelInternal(s.getEventPixel(
|
|
806
|
+
t != 1 && (this.lastScaleDelta_ = t), this.anchor_ = s.getCoordinateFromPixelInternal(s.getEventPixel(Wt(this.targetPointers))), s.render(), c.adjustResolutionInternal(t, this.anchor_);
|
|
813
807
|
}
|
|
814
808
|
handleUpEvent(e) {
|
|
815
809
|
if (this.targetPointers.length < 2) {
|
|
@@ -826,32 +820,30 @@ var Ut = class extends Vt {
|
|
|
826
820
|
return !1;
|
|
827
821
|
}
|
|
828
822
|
};
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
function on(e) {
|
|
823
|
+
// ../node_modules/ol/interaction/defaults.js
|
|
824
|
+
function cn(e) {
|
|
832
825
|
e ||= {};
|
|
833
|
-
let t = new
|
|
834
|
-
return (e.altShiftDragRotate === void 0 || e.altShiftDragRotate) && t.push(new
|
|
826
|
+
let t = new O(), n = new Tt(-.005, .05, 100);
|
|
827
|
+
return (e.altShiftDragRotate === void 0 || e.altShiftDragRotate) && t.push(new Kt()), (e.doubleClickZoom === void 0 || e.doubleClickZoom) && t.push(new Et({
|
|
835
828
|
delta: e.zoomDelta,
|
|
836
829
|
duration: e.zoomDuration
|
|
837
|
-
})), (e.dragPan === void 0 || e.dragPan) && t.push(new
|
|
830
|
+
})), (e.dragPan === void 0 || e.dragPan) && t.push(new Gt({
|
|
838
831
|
onFocusOnly: e.onFocusOnly,
|
|
839
832
|
kinetic: n
|
|
840
|
-
})), (e.pinchRotate === void 0 || e.pinchRotate) && t.push(new
|
|
833
|
+
})), (e.pinchRotate === void 0 || e.pinchRotate) && t.push(new on()), (e.pinchZoom === void 0 || e.pinchZoom) && t.push(new sn({ duration: e.zoomDuration })), (e.keyboard === void 0 || e.keyboard) && (t.push(new $t()), t.push(new en({
|
|
841
834
|
delta: e.zoomDelta,
|
|
842
835
|
duration: e.zoomDuration
|
|
843
|
-
}))), (e.mouseWheelZoom === void 0 || e.mouseWheelZoom) && t.push(new
|
|
836
|
+
}))), (e.mouseWheelZoom === void 0 || e.mouseWheelZoom) && t.push(new an({
|
|
844
837
|
onFocusOnly: e.onFocusOnly,
|
|
845
838
|
duration: e.zoomDuration
|
|
846
|
-
})), (e.shiftDragZoom === void 0 || e.shiftDragZoom) && t.push(new
|
|
839
|
+
})), (e.shiftDragZoom === void 0 || e.shiftDragZoom) && t.push(new Zt({ duration: e.zoomDuration })), t;
|
|
847
840
|
}
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
var sn = class extends b {
|
|
841
|
+
// ../node_modules/ol/MapEvent.js
|
|
842
|
+
var ln = class extends p {
|
|
851
843
|
constructor(e, t, n) {
|
|
852
844
|
super(e), this.map = t, this.frameState = n === void 0 ? null : n;
|
|
853
845
|
}
|
|
854
|
-
},
|
|
846
|
+
}, A = class extends ln {
|
|
855
847
|
constructor(e, t, n, r, i, a) {
|
|
856
848
|
super(e, t, i), this.originalEvent = n, this.pixel_ = null, this.coordinate_ = null, this.dragging = r !== void 0 && r, this.activePointers = a;
|
|
857
849
|
}
|
|
@@ -873,7 +865,7 @@ var sn = class extends b {
|
|
|
873
865
|
stopPropagation() {
|
|
874
866
|
super.stopPropagation(), "stopPropagation" in this.originalEvent && this.originalEvent.stopPropagation();
|
|
875
867
|
}
|
|
876
|
-
},
|
|
868
|
+
}, un = class {
|
|
877
869
|
constructor() {
|
|
878
870
|
this.cache_ = {}, this.patternCache_ = {}, this.cacheSize_ = 0, this.maxCacheSize_ = 1024;
|
|
879
871
|
}
|
|
@@ -893,53 +885,53 @@ var sn = class extends b {
|
|
|
893
885
|
}
|
|
894
886
|
}
|
|
895
887
|
get(e, t) {
|
|
896
|
-
let n =
|
|
888
|
+
let n = dn(e, t);
|
|
897
889
|
return n in this.cache_ ? this.cache_[n] : null;
|
|
898
890
|
}
|
|
899
891
|
getPattern(e, t) {
|
|
900
|
-
let n =
|
|
892
|
+
let n = dn(e, t);
|
|
901
893
|
return n in this.patternCache_ ? this.patternCache_[n] : null;
|
|
902
894
|
}
|
|
903
895
|
set(e, t, n, r) {
|
|
904
|
-
let i =
|
|
905
|
-
this.cache_[i] = n, r && (n.getImageState() ===
|
|
906
|
-
this.patternCache_[i] =
|
|
907
|
-
}) : this.patternCache_[i] =
|
|
896
|
+
let i = dn(e, t), a = i in this.cache_;
|
|
897
|
+
this.cache_[i] = n, r && (n.getImageState() === w.IDLE && n.load(), n.getImageState() === w.LOADING ? n.ready().then(() => {
|
|
898
|
+
this.patternCache_[i] = me().createPattern(n.getImage(1), "repeat");
|
|
899
|
+
}) : this.patternCache_[i] = me().createPattern(n.getImage(1), "repeat")), a || ++this.cacheSize_;
|
|
908
900
|
}
|
|
909
901
|
setSize(e) {
|
|
910
902
|
this.maxCacheSize_ = e, this.expire();
|
|
911
903
|
}
|
|
912
904
|
};
|
|
913
|
-
function
|
|
914
|
-
let n = t ?
|
|
905
|
+
function dn(e, t) {
|
|
906
|
+
let n = t ? Ye(t) : "null";
|
|
915
907
|
return e + ":" + n;
|
|
916
908
|
}
|
|
917
|
-
var
|
|
909
|
+
var j = new un(), fn = null, pn = class extends f {
|
|
918
910
|
constructor(e, t, n, r, i) {
|
|
919
|
-
super(), this.hitDetectionImage_ = null, this.image_ = e, this.crossOrigin_ = n?.crossOrigin, this.referrerPolicy_ = n?.referrerPolicy, this.canvas_ = {}, this.color_ = i, this.imageState_ = r === void 0 ?
|
|
911
|
+
super(), this.hitDetectionImage_ = null, this.image_ = e, this.crossOrigin_ = n?.crossOrigin, this.referrerPolicy_ = n?.referrerPolicy, this.canvas_ = {}, this.color_ = i, this.imageState_ = r === void 0 ? w.IDLE : r, this.size_ = e && e.width && e.height ? [e.width, e.height] : null, this.src_ = t, this.tainted_, this.ready_ = null;
|
|
920
912
|
}
|
|
921
913
|
initializeImage_() {
|
|
922
914
|
this.image_ = new Image(), this.crossOrigin_ !== null && (this.image_.crossOrigin = this.crossOrigin_), this.referrerPolicy_ !== void 0 && (this.image_.referrerPolicy = this.referrerPolicy_);
|
|
923
915
|
}
|
|
924
916
|
isTainted_() {
|
|
925
|
-
if (this.tainted_ === void 0 && this.imageState_ ===
|
|
926
|
-
|
|
917
|
+
if (this.tainted_ === void 0 && this.imageState_ === w.LOADED) {
|
|
918
|
+
fn ||= ve(1, 1, void 0, { willReadFrequently: !0 }), fn.drawImage(this.image_, 0, 0);
|
|
927
919
|
try {
|
|
928
|
-
|
|
920
|
+
fn.getImageData(0, 0, 1, 1), this.tainted_ = !1;
|
|
929
921
|
} catch {
|
|
930
|
-
|
|
922
|
+
fn = null, this.tainted_ = !0;
|
|
931
923
|
}
|
|
932
924
|
}
|
|
933
925
|
return this.tainted_ === !0;
|
|
934
926
|
}
|
|
935
927
|
dispatchChangeEvent_() {
|
|
936
|
-
this.dispatchEvent(
|
|
928
|
+
this.dispatchEvent(_.CHANGE);
|
|
937
929
|
}
|
|
938
930
|
handleImageError_() {
|
|
939
|
-
this.imageState_ =
|
|
931
|
+
this.imageState_ = w.ERROR, this.dispatchChangeEvent_();
|
|
940
932
|
}
|
|
941
933
|
handleImageLoad_() {
|
|
942
|
-
this.imageState_ =
|
|
934
|
+
this.imageState_ = w.LOADED, this.size_ = [this.image_.width, this.image_.height], this.dispatchChangeEvent_();
|
|
943
935
|
}
|
|
944
936
|
getImage(e) {
|
|
945
937
|
return this.image_ || this.initializeImage_(), this.replaceColor_(e), this.canvas_[e] ? this.canvas_[e] : this.image_;
|
|
@@ -956,7 +948,7 @@ var N = new cn(), un = null, dn = class extends ee {
|
|
|
956
948
|
getHitDetectionImage() {
|
|
957
949
|
if (this.image_ || this.initializeImage_(), !this.hitDetectionImage_) {
|
|
958
950
|
if (this.isTainted_()) {
|
|
959
|
-
let e = this.size_[0], t = this.size_[1], n =
|
|
951
|
+
let e = this.size_[0], t = this.size_[1], n = ve(e, t);
|
|
960
952
|
n.fillRect(0, 0, e, t), this.hitDetectionImage_ = n.canvas;
|
|
961
953
|
} else this.hitDetectionImage_ = this.image_;
|
|
962
954
|
}
|
|
@@ -969,61 +961,59 @@ var N = new cn(), un = null, dn = class extends ee {
|
|
|
969
961
|
return this.src_;
|
|
970
962
|
}
|
|
971
963
|
load() {
|
|
972
|
-
if (this.imageState_ ===
|
|
973
|
-
this.image_ || this.initializeImage_(), this.imageState_ =
|
|
964
|
+
if (this.imageState_ === w.IDLE) {
|
|
965
|
+
this.image_ || this.initializeImage_(), this.imageState_ = w.LOADING;
|
|
974
966
|
try {
|
|
975
967
|
this.src_ !== void 0 && (this.image_.src = this.src_);
|
|
976
968
|
} catch {
|
|
977
969
|
this.handleImageError_();
|
|
978
970
|
}
|
|
979
|
-
this.image_ instanceof HTMLImageElement &&
|
|
971
|
+
this.image_ instanceof HTMLImageElement && _e(this.image_, this.src_).then((e) => {
|
|
980
972
|
this.image_ = e, this.handleImageLoad_();
|
|
981
973
|
}).catch(this.handleImageError_.bind(this));
|
|
982
974
|
}
|
|
983
975
|
}
|
|
984
976
|
replaceColor_(e) {
|
|
985
|
-
if (!this.color_ || this.canvas_[e] || this.imageState_ !==
|
|
986
|
-
let t = this.image_, n =
|
|
987
|
-
n.scale(e, e), n.drawImage(t, 0, 0), n.globalCompositeOperation = "multiply", n.fillStyle =
|
|
977
|
+
if (!this.color_ || this.canvas_[e] || this.imageState_ !== w.LOADED) return;
|
|
978
|
+
let t = this.image_, n = ve(Math.ceil(t.width * e), Math.ceil(t.height * e)), r = n.canvas;
|
|
979
|
+
n.scale(e, e), n.drawImage(t, 0, 0), n.globalCompositeOperation = "multiply", n.fillStyle = Qe(this.color_), n.fillRect(0, 0, r.width / e, r.height / e), n.globalCompositeOperation = "destination-in", n.drawImage(t, 0, 0), this.canvas_[e] = r;
|
|
988
980
|
}
|
|
989
981
|
ready() {
|
|
990
982
|
return this.ready_ ||= new Promise((e) => {
|
|
991
|
-
if (this.imageState_ ===
|
|
983
|
+
if (this.imageState_ === w.LOADED || this.imageState_ === w.ERROR) e();
|
|
992
984
|
else {
|
|
993
985
|
let t = () => {
|
|
994
|
-
(this.imageState_ ===
|
|
986
|
+
(this.imageState_ === w.LOADED || this.imageState_ === w.ERROR) && (this.removeEventListener(_.CHANGE, t), e());
|
|
995
987
|
};
|
|
996
|
-
this.addEventListener(
|
|
988
|
+
this.addEventListener(_.CHANGE, t);
|
|
997
989
|
}
|
|
998
990
|
}), this.ready_;
|
|
999
991
|
}
|
|
1000
992
|
};
|
|
1001
|
-
function
|
|
1002
|
-
let o = t === void 0 ? void 0 :
|
|
1003
|
-
return o || (o = new
|
|
1004
|
-
}
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
let t = e.src + ":" + e.offset, n = N.getPattern(t, e.color);
|
|
993
|
+
function mn(e, t, n, r, i, a) {
|
|
994
|
+
let o = t === void 0 ? void 0 : j.get(t, i);
|
|
995
|
+
return o || (o = new pn(e, e && "src" in e ? e.src || void 0 : t, n, r, i), j.set(t, i, o, a)), a && o && !j.getPattern(t, i) && j.set(t, i, o, a), o;
|
|
996
|
+
}
|
|
997
|
+
// ../node_modules/ol/colorlike.js
|
|
998
|
+
function hn(e) {
|
|
999
|
+
return e ? Array.isArray(e) ? We(e) : typeof e == "object" && "src" in e ? gn(e) : e : null;
|
|
1000
|
+
}
|
|
1001
|
+
function gn(e) {
|
|
1002
|
+
if (!e.offset || !e.size) return j.getPattern(e.src, e.color);
|
|
1003
|
+
let t = e.src + ":" + e.offset, n = j.getPattern(t, e.color);
|
|
1013
1004
|
if (n) return n;
|
|
1014
|
-
let r =
|
|
1015
|
-
if (r.getImageState() !==
|
|
1016
|
-
let i =
|
|
1017
|
-
return i.drawImage(r.getImage(1), e.offset[0], e.offset[1], e.size[0], e.size[1], 0, 0, e.size[0], e.size[1]),
|
|
1018
|
-
}
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
var hn = "10px sans-serif", gn = "#000", _n = "round", vn = [], yn = "round", bn = "#000", xn = "center", Sn = "middle", Cn = [
|
|
1005
|
+
let r = j.get(e.src, null);
|
|
1006
|
+
if (r.getImageState() !== w.LOADED) return null;
|
|
1007
|
+
let i = ve(e.size[0], e.size[1]);
|
|
1008
|
+
return i.drawImage(r.getImage(1), e.offset[0], e.offset[1], e.size[0], e.size[1], 0, 0, e.size[0], e.size[1]), mn(i.canvas, t, void 0, w.LOADED, e.color, !0), j.getPattern(t, e.color);
|
|
1009
|
+
}
|
|
1010
|
+
// ../node_modules/ol/render/canvas.js
|
|
1011
|
+
var _n = "10px sans-serif", vn = "#000", yn = "round", bn = [], xn = "round", Sn = "#000", Cn = "center", wn = "middle", Tn = [
|
|
1022
1012
|
0,
|
|
1023
1013
|
0,
|
|
1024
1014
|
0,
|
|
1025
1015
|
0
|
|
1026
|
-
],
|
|
1016
|
+
], En = new u(), Dn = null, On, kn = {}, An = /* @__PURE__ */ new Set([
|
|
1027
1017
|
"serif",
|
|
1028
1018
|
"sans-serif",
|
|
1029
1019
|
"monospace",
|
|
@@ -1038,66 +1028,66 @@ var hn = "10px sans-serif", gn = "#000", _n = "round", vn = [], yn = "round", bn
|
|
|
1038
1028
|
"math",
|
|
1039
1029
|
"fangsong"
|
|
1040
1030
|
]);
|
|
1041
|
-
function
|
|
1031
|
+
function jn(e, t, n) {
|
|
1042
1032
|
return `${e} ${t} 16px "${n}"`;
|
|
1043
1033
|
}
|
|
1044
|
-
var
|
|
1045
|
-
let e,
|
|
1046
|
-
async function
|
|
1047
|
-
await
|
|
1048
|
-
let
|
|
1049
|
-
return
|
|
1050
|
-
let
|
|
1051
|
-
|
|
1052
|
-
}),
|
|
1053
|
-
}
|
|
1054
|
-
async function
|
|
1055
|
-
await
|
|
1056
|
-
let
|
|
1034
|
+
var Mn = (function() {
|
|
1035
|
+
let e, t;
|
|
1036
|
+
async function n(e) {
|
|
1037
|
+
await t.ready;
|
|
1038
|
+
let n = Te(e), r = n.families[0].toLowerCase(), i = n.weight, a = [];
|
|
1039
|
+
return t.forEach((e) => {
|
|
1040
|
+
let t = e.family.replace(/^['"]|['"]$/g, "").toLowerCase(), o = Ce[e.weight] || e.weight;
|
|
1041
|
+
t === r && e.style === n.style && o == i && a.push(e);
|
|
1042
|
+
}), a.length !== 0 && (await Promise.all(a.map((e) => e.load().then(() => !0, () => !1)))).some((e) => e);
|
|
1043
|
+
}
|
|
1044
|
+
async function r() {
|
|
1045
|
+
await t.ready;
|
|
1046
|
+
let i = !0, a = En.getProperties(), o = Object.keys(a).filter((e) => a[e] < 100);
|
|
1057
1047
|
for (let e = o.length - 1; e >= 0; --e) {
|
|
1058
|
-
let
|
|
1059
|
-
|
|
1048
|
+
let t = o[e], r = a[t];
|
|
1049
|
+
r < 100 && (await n(t) ? (ie(kn), En.set(t, 100)) : (r += 10, En.set(t, r, !0), r < 100 && (i = !1)));
|
|
1060
1050
|
}
|
|
1061
|
-
e = void 0,
|
|
1051
|
+
e = void 0, i || (e = setTimeout(r, 100));
|
|
1062
1052
|
}
|
|
1063
|
-
return async function(
|
|
1064
|
-
|
|
1065
|
-
let i =
|
|
1053
|
+
return async function(n) {
|
|
1054
|
+
t ||= be ? self.fonts : document.fonts;
|
|
1055
|
+
let i = Te(n);
|
|
1066
1056
|
if (!i) return;
|
|
1067
|
-
let
|
|
1068
|
-
for (let e of
|
|
1069
|
-
if (
|
|
1070
|
-
let t =
|
|
1071
|
-
|
|
1057
|
+
let a = i.families, o = !1;
|
|
1058
|
+
for (let e of a) {
|
|
1059
|
+
if (An.has(e)) continue;
|
|
1060
|
+
let t = jn(i.style, i.weight, e);
|
|
1061
|
+
En.get(t) === void 0 && (En.set(t, 0, !0), o = !0);
|
|
1072
1062
|
}
|
|
1073
|
-
|
|
1063
|
+
o && (clearTimeout(e), e = setTimeout(r, 100));
|
|
1074
1064
|
};
|
|
1075
|
-
})(),
|
|
1065
|
+
})(), Nn = (function() {
|
|
1076
1066
|
let e;
|
|
1077
1067
|
return function(t) {
|
|
1078
|
-
let n =
|
|
1068
|
+
let n = kn[t];
|
|
1079
1069
|
if (n == null) {
|
|
1080
|
-
if (
|
|
1081
|
-
let e =
|
|
1082
|
-
n = (isNaN(Number(e.lineHeight)) ? 1.2 : Number(e.lineHeight)) * (
|
|
1070
|
+
if (be) {
|
|
1071
|
+
let e = Te(t), r = Pn(t, "Žg");
|
|
1072
|
+
n = (isNaN(Number(e.lineHeight)) ? 1.2 : Number(e.lineHeight)) * (r.actualBoundingBoxAscent + r.actualBoundingBoxDescent);
|
|
1083
1073
|
} else e || (e = document.createElement("div"), e.innerHTML = "M", e.style.minHeight = "0", e.style.maxHeight = "none", e.style.height = "auto", e.style.padding = "0", e.style.border = "none", e.style.position = "absolute", e.style.display = "block", e.style.left = "-99999px"), e.style.font = t, document.body.appendChild(e), n = e.offsetHeight, document.body.removeChild(e);
|
|
1084
|
-
|
|
1074
|
+
kn[t] = n;
|
|
1085
1075
|
}
|
|
1086
1076
|
return n;
|
|
1087
1077
|
};
|
|
1088
1078
|
})();
|
|
1089
|
-
function
|
|
1090
|
-
return
|
|
1079
|
+
function Pn(e, t) {
|
|
1080
|
+
return Dn ||= ve(1, 1), e != On && (Dn.font = e, On = Dn.font), Dn.measureText(t);
|
|
1091
1081
|
}
|
|
1092
|
-
function
|
|
1093
|
-
return
|
|
1082
|
+
function Fn(e, t) {
|
|
1083
|
+
return Pn(e, t).width;
|
|
1094
1084
|
}
|
|
1095
|
-
function
|
|
1085
|
+
function In(e, t, n) {
|
|
1096
1086
|
if (t in n) return n[t];
|
|
1097
|
-
let r = t.split("\n").reduce((t, n) => Math.max(t,
|
|
1087
|
+
let r = t.split("\n").reduce((t, n) => Math.max(t, Fn(e, n)), 0);
|
|
1098
1088
|
return n[t] = r, r;
|
|
1099
1089
|
}
|
|
1100
|
-
function
|
|
1090
|
+
function Ln(e, t) {
|
|
1101
1091
|
let n = [], r = [], i = [], a = 0, o = 0, s = 0, c = 0;
|
|
1102
1092
|
for (let l = 0, u = t.length; l <= u; l += 2) {
|
|
1103
1093
|
let d = t[l];
|
|
@@ -1105,9 +1095,9 @@ function Fn(e, t) {
|
|
|
1105
1095
|
a = Math.max(a, o), i.push(o), o = 0, s += c, c = 0;
|
|
1106
1096
|
continue;
|
|
1107
1097
|
}
|
|
1108
|
-
let f = t[l + 1] || e.font, p =
|
|
1098
|
+
let f = t[l + 1] || e.font, p = Fn(f, d);
|
|
1109
1099
|
n.push(p), o += p;
|
|
1110
|
-
let m =
|
|
1100
|
+
let m = Nn(f);
|
|
1111
1101
|
r.push(m), c = Math.max(c, m);
|
|
1112
1102
|
}
|
|
1113
1103
|
return {
|
|
@@ -1118,18 +1108,17 @@ function Fn(e, t) {
|
|
|
1118
1108
|
lineWidths: i
|
|
1119
1109
|
};
|
|
1120
1110
|
}
|
|
1121
|
-
function
|
|
1122
|
-
e.save(), n !== 1 && (e.globalAlpha === void 0 ? e.globalAlpha = (e) => e.globalAlpha *= n : e.globalAlpha *= n), t && e.transform.apply(e, t), r.contextInstructions ? (e.translate(c, l), e.scale(u[0], u[1]),
|
|
1111
|
+
function Rn(e, t, n, r, i, a, o, s, c, l, u) {
|
|
1112
|
+
e.save(), n !== 1 && (e.globalAlpha === void 0 ? e.globalAlpha = (e) => e.globalAlpha *= n : e.globalAlpha *= n), t && e.transform.apply(e, t), r.contextInstructions ? (e.translate(c, l), e.scale(u[0], u[1]), zn(r, e)) : u[0] < 0 || u[1] < 0 ? (e.translate(c, l), e.scale(u[0], u[1]), e.drawImage(r, i, a, o, s, 0, 0, o, s)) : e.drawImage(r, i, a, o, s, c, l, o * u[0], s * u[1]), e.restore();
|
|
1123
1113
|
}
|
|
1124
|
-
function
|
|
1114
|
+
function zn(e, t) {
|
|
1125
1115
|
let n = e.contextInstructions;
|
|
1126
1116
|
for (let e = 0, r = n.length; e < r; e += 2) Array.isArray(n[e + 1]) ? t[n[e]].apply(t, n[e + 1]) : t[n[e]] = n[e + 1];
|
|
1127
1117
|
}
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
var Rn = class e {
|
|
1118
|
+
// ../node_modules/ol/style/Image.js
|
|
1119
|
+
var Bn = class e {
|
|
1131
1120
|
constructor(e) {
|
|
1132
|
-
this.opacity_ = e.opacity, this.rotateWithView_ = e.rotateWithView, this.rotation_ = e.rotation, this.scale_ = e.scale, this.scaleArray_ =
|
|
1121
|
+
this.opacity_ = e.opacity, this.rotateWithView_ = e.rotateWithView, this.rotation_ = e.rotation, this.scale_ = e.scale, this.scaleArray_ = fe(e.scale), this.displacement_ = e.displacement, this.declutterMode_ = e.declutterMode;
|
|
1133
1122
|
}
|
|
1134
1123
|
clone() {
|
|
1135
1124
|
let t = this.getScale();
|
|
@@ -1164,28 +1153,28 @@ var Rn = class e {
|
|
|
1164
1153
|
return this.declutterMode_;
|
|
1165
1154
|
}
|
|
1166
1155
|
getAnchor() {
|
|
1167
|
-
return
|
|
1156
|
+
return C();
|
|
1168
1157
|
}
|
|
1169
1158
|
getImage(e) {
|
|
1170
|
-
return
|
|
1159
|
+
return C();
|
|
1171
1160
|
}
|
|
1172
1161
|
getHitDetectionImage() {
|
|
1173
|
-
return
|
|
1162
|
+
return C();
|
|
1174
1163
|
}
|
|
1175
1164
|
getPixelRatio(e) {
|
|
1176
1165
|
return 1;
|
|
1177
1166
|
}
|
|
1178
1167
|
getImageState() {
|
|
1179
|
-
return
|
|
1168
|
+
return C();
|
|
1180
1169
|
}
|
|
1181
1170
|
getImageSize() {
|
|
1182
|
-
return
|
|
1171
|
+
return C();
|
|
1183
1172
|
}
|
|
1184
1173
|
getOrigin() {
|
|
1185
|
-
return
|
|
1174
|
+
return C();
|
|
1186
1175
|
}
|
|
1187
1176
|
getSize() {
|
|
1188
|
-
return
|
|
1177
|
+
return C();
|
|
1189
1178
|
}
|
|
1190
1179
|
setDisplacement(e) {
|
|
1191
1180
|
this.displacement_ = e;
|
|
@@ -1200,45 +1189,44 @@ var Rn = class e {
|
|
|
1200
1189
|
this.rotation_ = e;
|
|
1201
1190
|
}
|
|
1202
1191
|
setScale(e) {
|
|
1203
|
-
this.scale_ = e, this.scaleArray_ =
|
|
1192
|
+
this.scale_ = e, this.scaleArray_ = fe(e);
|
|
1204
1193
|
}
|
|
1205
1194
|
listenImageChange(e) {
|
|
1206
|
-
|
|
1195
|
+
C();
|
|
1207
1196
|
}
|
|
1208
1197
|
load() {
|
|
1209
|
-
|
|
1198
|
+
C();
|
|
1210
1199
|
}
|
|
1211
1200
|
unlistenImageChange(e) {
|
|
1212
|
-
|
|
1201
|
+
C();
|
|
1213
1202
|
}
|
|
1214
1203
|
ready() {
|
|
1215
1204
|
return Promise.resolve();
|
|
1216
1205
|
}
|
|
1217
1206
|
};
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
function zn(e, t, n, r) {
|
|
1207
|
+
// ../node_modules/ol/style/Icon.js
|
|
1208
|
+
function Vn(e, t, n, r) {
|
|
1221
1209
|
return n !== void 0 && r !== void 0 ? [n / e, r / t] : n === void 0 ? r === void 0 ? 1 : r / t : n / e;
|
|
1222
1210
|
}
|
|
1223
|
-
var
|
|
1211
|
+
var Hn = class e extends Bn {
|
|
1224
1212
|
constructor(e) {
|
|
1225
1213
|
e ||= {};
|
|
1226
|
-
let t = e.opacity === void 0 ? 1 : e.opacity, n = e.rotation === void 0 ? 0 : e.rotation,
|
|
1214
|
+
let t = e.opacity === void 0 ? 1 : e.opacity, n = e.rotation === void 0 ? 0 : e.rotation, i = e.scale === void 0 ? 1 : e.scale, a = e.rotateWithView !== void 0 && e.rotateWithView;
|
|
1227
1215
|
super({
|
|
1228
1216
|
opacity: t,
|
|
1229
1217
|
rotation: n,
|
|
1230
|
-
scale:
|
|
1218
|
+
scale: i,
|
|
1231
1219
|
displacement: e.displacement === void 0 ? [0, 0] : e.displacement,
|
|
1232
|
-
rotateWithView:
|
|
1220
|
+
rotateWithView: a,
|
|
1233
1221
|
declutterMode: e.declutterMode
|
|
1234
1222
|
}), this.anchor_ = e.anchor === void 0 ? [.5, .5] : e.anchor, this.normalizedAnchor_ = null, this.anchorOrigin_ = e.anchorOrigin === void 0 ? "top-left" : e.anchorOrigin, this.anchorXUnits_ = e.anchorXUnits === void 0 ? "fraction" : e.anchorXUnits, this.anchorYUnits_ = e.anchorYUnits === void 0 ? "fraction" : e.anchorYUnits, this.crossOrigin_ = e.crossOrigin === void 0 ? null : e.crossOrigin, this.referrerPolicy_ = e.referrerPolicy;
|
|
1235
|
-
let
|
|
1236
|
-
|
|
1237
|
-
let
|
|
1238
|
-
if (e.src === void 0 ?
|
|
1223
|
+
let o = e.img === void 0 ? null : e.img, s = e.src;
|
|
1224
|
+
E(!(s !== void 0 && o), "`image` and `src` cannot be provided at the same time"), (s === void 0 || s.length === 0) && o && (s = o.src || r(o)), E(s !== void 0 && s.length > 0, "A defined and non-empty `src` or `image` must be provided"), E(e.width === void 0 && e.height === void 0 || e.scale === void 0, "`width` or `height` cannot be provided together with `scale`");
|
|
1225
|
+
let c;
|
|
1226
|
+
if (e.src === void 0 ? o !== void 0 && (c = "complete" in o ? o.complete ? o.src ? w.LOADED : w.IDLE : w.LOADING : w.LOADED) : c = w.IDLE, this.color_ = e.color === void 0 ? null : Ye(e.color), this.iconImage_ = mn(o, s, {
|
|
1239
1227
|
crossOrigin: this.crossOrigin_,
|
|
1240
1228
|
referrerPolicy: this.referrerPolicy_
|
|
1241
|
-
},
|
|
1229
|
+
}, c, this.color_), this.offset_ = e.offset === void 0 ? [0, 0] : e.offset, this.offsetOrigin_ = e.offsetOrigin === void 0 ? "top-left" : e.offsetOrigin, this.origin_ = null, this.size_ = e.size === void 0 ? null : e.size, this.initialOptions_, e.width !== void 0 || e.height !== void 0) {
|
|
1242
1230
|
let t, n;
|
|
1243
1231
|
if (e.size) [t, n] = e.size;
|
|
1244
1232
|
else {
|
|
@@ -1249,13 +1237,13 @@ var Bn = class e extends Rn {
|
|
|
1249
1237
|
let t = () => {
|
|
1250
1238
|
if (this.unlistenImageChange(t), !this.initialOptions_) return;
|
|
1251
1239
|
let n = this.iconImage_.getSize();
|
|
1252
|
-
this.setScale(
|
|
1240
|
+
this.setScale(Vn(n[0], n[1], e.width, e.height));
|
|
1253
1241
|
};
|
|
1254
1242
|
this.listenImageChange(t);
|
|
1255
1243
|
return;
|
|
1256
1244
|
}
|
|
1257
1245
|
}
|
|
1258
|
-
t !== void 0 && this.setScale(
|
|
1246
|
+
t !== void 0 && this.setScale(Vn(t, n, e.width, e.height));
|
|
1259
1247
|
}
|
|
1260
1248
|
}
|
|
1261
1249
|
clone() {
|
|
@@ -1307,11 +1295,11 @@ var Bn = class e extends Rn {
|
|
|
1307
1295
|
return this.color_;
|
|
1308
1296
|
}
|
|
1309
1297
|
setColor(e) {
|
|
1310
|
-
let t = e ?
|
|
1298
|
+
let t = e ? Ye(e) : null;
|
|
1311
1299
|
if (this.color_ === t || this.color_ && t && this.color_.length === t.length && this.color_.every((e, n) => e === t[n])) return;
|
|
1312
1300
|
this.color_ = t;
|
|
1313
|
-
let n = this.getSrc(), r = n === void 0 ? this.getHitDetectionImage() : null, i = n === void 0 ? this.iconImage_.getImageState() :
|
|
1314
|
-
this.iconImage_ =
|
|
1301
|
+
let n = this.getSrc(), r = n === void 0 ? this.getHitDetectionImage() : null, i = n === void 0 ? this.iconImage_.getImageState() : w.IDLE;
|
|
1302
|
+
this.iconImage_ = mn(r, n, {
|
|
1315
1303
|
crossOrigin: this.crossOrigin_,
|
|
1316
1304
|
referrerPolicy: this.referrerPolicy_
|
|
1317
1305
|
}, i, this.color_);
|
|
@@ -1345,10 +1333,10 @@ var Bn = class e extends Rn {
|
|
|
1345
1333
|
return this.iconImage_.getSrc();
|
|
1346
1334
|
}
|
|
1347
1335
|
setSrc(e) {
|
|
1348
|
-
this.iconImage_ =
|
|
1336
|
+
this.iconImage_ = mn(null, e, {
|
|
1349
1337
|
crossOrigin: this.crossOrigin_,
|
|
1350
1338
|
referrerPolicy: this.referrerPolicy_
|
|
1351
|
-
},
|
|
1339
|
+
}, w.IDLE, this.color_);
|
|
1352
1340
|
}
|
|
1353
1341
|
getSize() {
|
|
1354
1342
|
return this.size_ ? this.size_ : this.iconImage_.getSize();
|
|
@@ -1356,64 +1344,64 @@ var Bn = class e extends Rn {
|
|
|
1356
1344
|
getWidth() {
|
|
1357
1345
|
let e = this.getScaleArray();
|
|
1358
1346
|
if (this.size_) return this.size_[0] * e[0];
|
|
1359
|
-
if (this.iconImage_.getImageState() ==
|
|
1347
|
+
if (this.iconImage_.getImageState() == w.LOADED) return this.iconImage_.getSize()[0] * e[0];
|
|
1360
1348
|
}
|
|
1361
1349
|
getHeight() {
|
|
1362
1350
|
let e = this.getScaleArray();
|
|
1363
1351
|
if (this.size_) return this.size_[1] * e[1];
|
|
1364
|
-
if (this.iconImage_.getImageState() ==
|
|
1352
|
+
if (this.iconImage_.getImageState() == w.LOADED) return this.iconImage_.getSize()[1] * e[1];
|
|
1365
1353
|
}
|
|
1366
1354
|
setScale(e) {
|
|
1367
1355
|
delete this.initialOptions_, super.setScale(e);
|
|
1368
1356
|
}
|
|
1369
1357
|
listenImageChange(e) {
|
|
1370
|
-
this.iconImage_.addEventListener(
|
|
1358
|
+
this.iconImage_.addEventListener(_.CHANGE, e);
|
|
1371
1359
|
}
|
|
1372
1360
|
load() {
|
|
1373
1361
|
this.iconImage_.load();
|
|
1374
1362
|
}
|
|
1375
1363
|
unlistenImageChange(e) {
|
|
1376
|
-
this.iconImage_.removeEventListener(
|
|
1364
|
+
this.iconImage_.removeEventListener(_.CHANGE, e);
|
|
1377
1365
|
}
|
|
1378
1366
|
ready() {
|
|
1379
1367
|
return this.iconImage_.ready();
|
|
1380
1368
|
}
|
|
1381
|
-
},
|
|
1382
|
-
[
|
|
1383
|
-
[
|
|
1384
|
-
[
|
|
1385
|
-
[
|
|
1386
|
-
[
|
|
1387
|
-
[
|
|
1388
|
-
},
|
|
1389
|
-
function
|
|
1390
|
-
return e in
|
|
1391
|
-
}
|
|
1392
|
-
function
|
|
1369
|
+
}, Un = 0, M = 1 << Un++, N = 1 << Un++, P = 1 << Un++, F = 1 << Un++, I = 1 << Un++, Wn = 1 << Un++, Gn = 2 ** Un - 1, Kn = {
|
|
1370
|
+
[M]: "boolean",
|
|
1371
|
+
[N]: "number",
|
|
1372
|
+
[P]: "string",
|
|
1373
|
+
[F]: "color",
|
|
1374
|
+
[I]: "number[]",
|
|
1375
|
+
[Wn]: "size"
|
|
1376
|
+
}, qn = Object.keys(Kn).map(Number).sort(h);
|
|
1377
|
+
function Jn(e) {
|
|
1378
|
+
return e in Kn;
|
|
1379
|
+
}
|
|
1380
|
+
function L(e) {
|
|
1393
1381
|
let t = [];
|
|
1394
|
-
for (let n of
|
|
1382
|
+
for (let n of qn) Yn(e, n) && t.push(Kn[n]);
|
|
1395
1383
|
return t.length === 0 ? "untyped" : t.length < 3 ? t.join(" or ") : t.slice(0, -1).join(", ") + ", or " + t[t.length - 1];
|
|
1396
1384
|
}
|
|
1397
|
-
function
|
|
1385
|
+
function Yn(e, t) {
|
|
1398
1386
|
return (e & t) === t;
|
|
1399
1387
|
}
|
|
1400
|
-
function
|
|
1388
|
+
function Xn(e, t) {
|
|
1401
1389
|
return !!(e & t);
|
|
1402
1390
|
}
|
|
1403
|
-
function
|
|
1391
|
+
function R(e, t) {
|
|
1404
1392
|
return e === t;
|
|
1405
1393
|
}
|
|
1406
|
-
var
|
|
1394
|
+
var z = class {
|
|
1407
1395
|
constructor(e, t) {
|
|
1408
|
-
if (!
|
|
1396
|
+
if (!Jn(e)) throw Error(`literal expressions must have a specific type, got ${L(e)}`);
|
|
1409
1397
|
this.type = e, this.value = t;
|
|
1410
1398
|
}
|
|
1411
|
-
},
|
|
1399
|
+
}, Zn = class {
|
|
1412
1400
|
constructor(e, t, ...n) {
|
|
1413
1401
|
this.type = e, this.operator = t, this.args = n;
|
|
1414
1402
|
}
|
|
1415
1403
|
};
|
|
1416
|
-
function
|
|
1404
|
+
function Qn(e) {
|
|
1417
1405
|
return {
|
|
1418
1406
|
variables: /* @__PURE__ */ new Map(),
|
|
1419
1407
|
properties: /* @__PURE__ */ new Map(),
|
|
@@ -1424,41 +1412,41 @@ function Xn(e) {
|
|
|
1424
1412
|
inputVariables: e
|
|
1425
1413
|
};
|
|
1426
1414
|
}
|
|
1427
|
-
function
|
|
1415
|
+
function B(e, t, n) {
|
|
1428
1416
|
switch (typeof e) {
|
|
1429
1417
|
case "boolean":
|
|
1430
|
-
if (
|
|
1431
|
-
if (!
|
|
1432
|
-
return new
|
|
1418
|
+
if (R(t, P)) return new z(P, e ? "true" : "false");
|
|
1419
|
+
if (!Yn(t, M)) throw Error(`got a boolean, but expected ${L(t)}`);
|
|
1420
|
+
return new z(M, e);
|
|
1433
1421
|
case "number":
|
|
1434
|
-
if (
|
|
1435
|
-
if (
|
|
1436
|
-
if (
|
|
1437
|
-
if (!
|
|
1438
|
-
return new
|
|
1422
|
+
if (R(t, Wn)) return new z(Wn, fe(e));
|
|
1423
|
+
if (R(t, M)) return new z(M, !!e);
|
|
1424
|
+
if (R(t, P)) return new z(P, e.toString());
|
|
1425
|
+
if (!Yn(t, N)) throw Error(`got a number, but expected ${L(t)}`);
|
|
1426
|
+
return new z(N, e);
|
|
1439
1427
|
case "string":
|
|
1440
|
-
if (
|
|
1441
|
-
if (
|
|
1442
|
-
if (!
|
|
1443
|
-
return new
|
|
1428
|
+
if (R(t, F)) return new z(F, Ue(e));
|
|
1429
|
+
if (R(t, M)) return new z(M, !!e);
|
|
1430
|
+
if (!Yn(t, P)) throw Error(`got a string, but expected ${L(t)}`);
|
|
1431
|
+
return new z(P, e);
|
|
1444
1432
|
}
|
|
1445
1433
|
if (!Array.isArray(e)) throw Error("expression must be an array or a primitive value");
|
|
1446
1434
|
if (e.length === 0) throw Error("empty expression");
|
|
1447
|
-
if (typeof e[0] == "string") return
|
|
1435
|
+
if (typeof e[0] == "string") return gr(e, t, n);
|
|
1448
1436
|
for (let t of e) if (typeof t != "number") throw Error("expected an array of numbers");
|
|
1449
|
-
if (
|
|
1437
|
+
if (R(t, Wn)) {
|
|
1450
1438
|
if (e.length !== 2) throw Error(`expected an array of two values for a size, got ${e.length}`);
|
|
1451
|
-
return new
|
|
1439
|
+
return new z(Wn, e);
|
|
1452
1440
|
}
|
|
1453
|
-
if (
|
|
1454
|
-
if (e.length === 3) return new
|
|
1455
|
-
if (e.length === 4) return new
|
|
1441
|
+
if (R(t, F)) {
|
|
1442
|
+
if (e.length === 3) return new z(F, [...e, 1]);
|
|
1443
|
+
if (e.length === 4) return new z(F, e);
|
|
1456
1444
|
throw Error(`expected an array of 3 or 4 values for a color, got ${e.length}`);
|
|
1457
1445
|
}
|
|
1458
|
-
if (!
|
|
1459
|
-
return new
|
|
1446
|
+
if (!Yn(t, I)) throw Error(`got an array of numbers, but expected ${L(t)}`);
|
|
1447
|
+
return new z(I, e);
|
|
1460
1448
|
}
|
|
1461
|
-
var
|
|
1449
|
+
var V = {
|
|
1462
1450
|
Get: "get",
|
|
1463
1451
|
Var: "var",
|
|
1464
1452
|
Concat: "concat",
|
|
@@ -1506,65 +1494,65 @@ var U = {
|
|
|
1506
1494
|
Palette: "palette",
|
|
1507
1495
|
ToString: "to-string",
|
|
1508
1496
|
Has: "has"
|
|
1509
|
-
},
|
|
1510
|
-
[
|
|
1511
|
-
[
|
|
1512
|
-
[
|
|
1513
|
-
[
|
|
1514
|
-
[
|
|
1515
|
-
[
|
|
1516
|
-
[
|
|
1517
|
-
[
|
|
1518
|
-
[
|
|
1519
|
-
[
|
|
1520
|
-
[
|
|
1521
|
-
[
|
|
1522
|
-
[
|
|
1523
|
-
[
|
|
1524
|
-
[
|
|
1525
|
-
[
|
|
1526
|
-
[
|
|
1527
|
-
[
|
|
1528
|
-
[
|
|
1529
|
-
[
|
|
1530
|
-
[
|
|
1531
|
-
[
|
|
1532
|
-
[
|
|
1533
|
-
[
|
|
1534
|
-
[
|
|
1535
|
-
[
|
|
1536
|
-
[
|
|
1537
|
-
[
|
|
1538
|
-
[
|
|
1539
|
-
[
|
|
1540
|
-
[
|
|
1541
|
-
[
|
|
1542
|
-
[
|
|
1543
|
-
[
|
|
1544
|
-
[
|
|
1545
|
-
[
|
|
1546
|
-
[
|
|
1547
|
-
[
|
|
1548
|
-
[
|
|
1549
|
-
[
|
|
1550
|
-
[
|
|
1551
|
-
[
|
|
1552
|
-
[
|
|
1553
|
-
[
|
|
1554
|
-
[
|
|
1555
|
-
[
|
|
1556
|
-
[
|
|
1497
|
+
}, $n = {
|
|
1498
|
+
[V.Get]: W(H(1, Infinity), er),
|
|
1499
|
+
[V.Var]: tr(),
|
|
1500
|
+
[V.Has]: W(H(1, Infinity), er),
|
|
1501
|
+
[V.Id]: W(nr, or),
|
|
1502
|
+
[V.Concat]: W(H(2, Infinity), U(P)),
|
|
1503
|
+
[V.GeometryType]: W(rr, or),
|
|
1504
|
+
[V.LineMetric]: W(ir, or),
|
|
1505
|
+
[V.Resolution]: W(ar, or),
|
|
1506
|
+
[V.Zoom]: W(ar, or),
|
|
1507
|
+
[V.Time]: W(ar, or),
|
|
1508
|
+
[V.Any]: W(H(2, Infinity), U(M)),
|
|
1509
|
+
[V.All]: W(H(2, Infinity), U(M)),
|
|
1510
|
+
[V.Not]: W(H(1, 1), U(M)),
|
|
1511
|
+
[V.Equal]: W(H(2, 2), cr()),
|
|
1512
|
+
[V.NotEqual]: W(H(2, 2), cr()),
|
|
1513
|
+
[V.GreaterThan]: W(H(2, 2), U(N)),
|
|
1514
|
+
[V.GreaterThanOrEqualTo]: W(H(2, 2), U(N)),
|
|
1515
|
+
[V.LessThan]: W(H(2, 2), U(N)),
|
|
1516
|
+
[V.LessThanOrEqualTo]: W(H(2, 2), U(N)),
|
|
1517
|
+
[V.Multiply]: W(H(2, Infinity), sr),
|
|
1518
|
+
[V.Coalesce]: W(H(2, Infinity), sr),
|
|
1519
|
+
[V.Divide]: W(H(2, 2), U(N)),
|
|
1520
|
+
[V.Add]: W(H(2, Infinity), U(N)),
|
|
1521
|
+
[V.Subtract]: W(H(2, 2), U(N)),
|
|
1522
|
+
[V.Clamp]: W(H(3, 3), U(N)),
|
|
1523
|
+
[V.Mod]: W(H(2, 2), U(N)),
|
|
1524
|
+
[V.Pow]: W(H(2, 2), U(N)),
|
|
1525
|
+
[V.Abs]: W(H(1, 1), U(N)),
|
|
1526
|
+
[V.Floor]: W(H(1, 1), U(N)),
|
|
1527
|
+
[V.Ceil]: W(H(1, 1), U(N)),
|
|
1528
|
+
[V.Round]: W(H(1, 1), U(N)),
|
|
1529
|
+
[V.Sin]: W(H(1, 1), U(N)),
|
|
1530
|
+
[V.Cos]: W(H(1, 1), U(N)),
|
|
1531
|
+
[V.Atan]: W(H(1, 2), U(N)),
|
|
1532
|
+
[V.Sqrt]: W(H(1, 1), U(N)),
|
|
1533
|
+
[V.Match]: W(H(4, Infinity), ur, dr),
|
|
1534
|
+
[V.Between]: W(H(3, 3), U(N)),
|
|
1535
|
+
[V.Interpolate]: W(H(6, Infinity), ur, fr),
|
|
1536
|
+
[V.Case]: W(H(3, Infinity), lr, pr),
|
|
1537
|
+
[V.In]: W(H(2, 2), mr),
|
|
1538
|
+
[V.Number]: W(H(1, Infinity), U(Gn)),
|
|
1539
|
+
[V.String]: W(H(1, Infinity), U(Gn)),
|
|
1540
|
+
[V.Array]: W(H(1, Infinity), U(N)),
|
|
1541
|
+
[V.Color]: W(H(1, 4), U(N)),
|
|
1542
|
+
[V.Band]: W(H(1, 3), U(N)),
|
|
1543
|
+
[V.Palette]: W(H(2, 2), hr),
|
|
1544
|
+
[V.ToString]: W(H(1, 1), U(M | N | P | F))
|
|
1557
1545
|
};
|
|
1558
|
-
function
|
|
1546
|
+
function er(e, t, n) {
|
|
1559
1547
|
let r = e.length - 1, i = Array(r);
|
|
1560
1548
|
for (let a = 0; a < r; ++a) {
|
|
1561
1549
|
let r = e[a + 1];
|
|
1562
1550
|
switch (typeof r) {
|
|
1563
1551
|
case "number":
|
|
1564
|
-
i[a] = new
|
|
1552
|
+
i[a] = new z(N, r);
|
|
1565
1553
|
break;
|
|
1566
1554
|
case "string":
|
|
1567
|
-
i[a] = new
|
|
1555
|
+
i[a] = new z(P, r);
|
|
1568
1556
|
break;
|
|
1569
1557
|
default: throw Error(`expected a string key or numeric array index for a get operation, got ${r}`);
|
|
1570
1558
|
}
|
|
@@ -1572,42 +1560,42 @@ function Qn(e, t, n) {
|
|
|
1572
1560
|
}
|
|
1573
1561
|
return i;
|
|
1574
1562
|
}
|
|
1575
|
-
function
|
|
1563
|
+
function tr() {
|
|
1576
1564
|
return function(e, t, n) {
|
|
1577
1565
|
let r = e[1];
|
|
1578
1566
|
if (typeof r != "string") throw Error("expected a string argument for var operation");
|
|
1579
1567
|
let i = t, a = n.inputVariables?.[r];
|
|
1580
1568
|
if (a !== void 0) {
|
|
1581
|
-
let e =
|
|
1582
|
-
if (!(e instanceof
|
|
1569
|
+
let e = B(a, Gn, n);
|
|
1570
|
+
if (!(e instanceof z)) throw Error(`style variables should only be literal values (no expressions!), variable name: ${r}`);
|
|
1583
1571
|
let o = e.type;
|
|
1584
|
-
if (typeof a == "string" &&
|
|
1572
|
+
if (typeof a == "string" && Xn(i, F) && !Xn(i, P) ? o = F : Array.isArray(a) && a.length === 2 && Xn(i, Wn) && !Xn(i, I) && (o = Wn), i &= o, i === 0) throw Error(`the type expected from the var operator (${L(t)}) did not have any overlap with the type of the corresponding style variables (${L(o)}), variable name: ${r}`);
|
|
1585
1573
|
}
|
|
1586
1574
|
if (n.variables.has(r)) {
|
|
1587
1575
|
let e = n.variables.get(r);
|
|
1588
|
-
if (i &= e, i === 0) throw Error(`a new type expected from the var operator (${
|
|
1576
|
+
if (i &= e, i === 0) throw Error(`a new type expected from the var operator (${L(t)}) did not have any overlap with the previous type expected for it (${L(e)}), variable name: ${r}`);
|
|
1589
1577
|
}
|
|
1590
|
-
return n.variables.set(r, i), new
|
|
1578
|
+
return n.variables.set(r, i), new Zn(i, "var", new z(P, r));
|
|
1591
1579
|
};
|
|
1592
1580
|
}
|
|
1593
|
-
function
|
|
1581
|
+
function nr(e, t, n) {
|
|
1594
1582
|
n.featureId = !0;
|
|
1595
1583
|
}
|
|
1596
|
-
function
|
|
1584
|
+
function rr(e, t, n) {
|
|
1597
1585
|
n.geometryType = !0;
|
|
1598
1586
|
}
|
|
1599
|
-
function
|
|
1587
|
+
function ir(e, t, n) {
|
|
1600
1588
|
n.mCoordinate = !0;
|
|
1601
1589
|
}
|
|
1602
|
-
function
|
|
1590
|
+
function ar(e, t, n) {
|
|
1603
1591
|
n.mapState = !0;
|
|
1604
1592
|
}
|
|
1605
|
-
function
|
|
1593
|
+
function or(e, t, n) {
|
|
1606
1594
|
let r = e[0];
|
|
1607
1595
|
if (e.length !== 1) throw Error(`expected no arguments for ${r} operation`);
|
|
1608
1596
|
return [];
|
|
1609
1597
|
}
|
|
1610
|
-
function
|
|
1598
|
+
function H(e, t) {
|
|
1611
1599
|
return function(n, r, i) {
|
|
1612
1600
|
let a = n[0], o = n.length - 1;
|
|
1613
1601
|
if (e === t) {
|
|
@@ -1618,52 +1606,52 @@ function W(e, t) {
|
|
|
1618
1606
|
}
|
|
1619
1607
|
};
|
|
1620
1608
|
}
|
|
1621
|
-
function
|
|
1609
|
+
function sr(e, t, n) {
|
|
1622
1610
|
let r = e.length - 1, i = Array(r);
|
|
1623
1611
|
for (let a = 0; a < r; ++a) {
|
|
1624
|
-
let r =
|
|
1612
|
+
let r = B(e[a + 1], t, n);
|
|
1625
1613
|
i[a] = r;
|
|
1626
1614
|
}
|
|
1627
1615
|
return i;
|
|
1628
1616
|
}
|
|
1629
|
-
function
|
|
1617
|
+
function U(e) {
|
|
1630
1618
|
return function(t, n, r) {
|
|
1631
1619
|
let i = t.length - 1, a = Array(i);
|
|
1632
1620
|
for (let n = 0; n < i; ++n) {
|
|
1633
|
-
let i =
|
|
1621
|
+
let i = B(t[n + 1], e, r);
|
|
1634
1622
|
a[n] = i;
|
|
1635
1623
|
}
|
|
1636
1624
|
return a;
|
|
1637
1625
|
};
|
|
1638
1626
|
}
|
|
1639
|
-
function
|
|
1627
|
+
function cr() {
|
|
1640
1628
|
return function(e, t, n) {
|
|
1641
|
-
let r = e[0], i = e.length - 1, a = Array(i), o =
|
|
1629
|
+
let r = e[0], i = e.length - 1, a = Array(i), o = Gn;
|
|
1642
1630
|
for (let t = 0; t < i; ++t) {
|
|
1643
|
-
let r =
|
|
1631
|
+
let r = B(e[t + 1], o, n);
|
|
1644
1632
|
o &= r.type;
|
|
1645
1633
|
}
|
|
1646
1634
|
if (o === 0) throw Error(`no common type was found among the arguments of ${r}`);
|
|
1647
1635
|
for (let t = 0; t < i; ++t) {
|
|
1648
|
-
let r =
|
|
1636
|
+
let r = B(e[t + 1], o, n);
|
|
1649
1637
|
a[t] = r;
|
|
1650
1638
|
}
|
|
1651
1639
|
return a;
|
|
1652
1640
|
};
|
|
1653
1641
|
}
|
|
1654
|
-
function
|
|
1642
|
+
function lr(e, t, n) {
|
|
1655
1643
|
let r = e[0], i = e.length - 1;
|
|
1656
1644
|
if (i % 2 == 0) throw Error(`expected an odd number of arguments for ${r}, got ${i} instead`);
|
|
1657
1645
|
}
|
|
1658
|
-
function
|
|
1646
|
+
function ur(e, t, n) {
|
|
1659
1647
|
let r = e[0], i = e.length - 1;
|
|
1660
1648
|
if (i % 2 == 1) throw Error(`expected an even number of arguments for operation ${r}, got ${i} instead`);
|
|
1661
1649
|
}
|
|
1662
|
-
function
|
|
1663
|
-
let r = e.length - 1, i =
|
|
1650
|
+
function dr(e, t, n) {
|
|
1651
|
+
let r = e.length - 1, i = B(e[e.length - 1], t, n), a = P | N | M, o = Array(r - 2);
|
|
1664
1652
|
for (let t = 0; t < r - 2; t += 2) {
|
|
1665
1653
|
try {
|
|
1666
|
-
let r =
|
|
1654
|
+
let r = B(e[t + 2], a, n);
|
|
1667
1655
|
a &= r.type;
|
|
1668
1656
|
} catch (e) {
|
|
1669
1657
|
throw Error(`failed to parse argument ${t + 1} of match expression: ${e.message}`);
|
|
@@ -1672,25 +1660,25 @@ function lr(e, t, n) {
|
|
|
1672
1660
|
}
|
|
1673
1661
|
for (let t = 0; t < r - 2; t += 2) {
|
|
1674
1662
|
try {
|
|
1675
|
-
let r =
|
|
1663
|
+
let r = B(e[t + 2], a, n);
|
|
1676
1664
|
o[t] = r;
|
|
1677
1665
|
} catch (e) {
|
|
1678
1666
|
throw Error(`failed to parse argument ${t + 1} of match expression: ${e.message}`);
|
|
1679
1667
|
}
|
|
1680
1668
|
try {
|
|
1681
|
-
let r =
|
|
1669
|
+
let r = B(e[t + 3], i.type, n);
|
|
1682
1670
|
o[t + 1] = r;
|
|
1683
1671
|
} catch (e) {
|
|
1684
1672
|
throw Error(`failed to parse argument ${t + 2} of match expression: ${e.message}`);
|
|
1685
1673
|
}
|
|
1686
1674
|
}
|
|
1687
1675
|
return [
|
|
1688
|
-
|
|
1676
|
+
B(e[1], a, n),
|
|
1689
1677
|
...o,
|
|
1690
1678
|
i
|
|
1691
1679
|
];
|
|
1692
1680
|
}
|
|
1693
|
-
function
|
|
1681
|
+
function fr(e, t, n) {
|
|
1694
1682
|
let r = e[1], i;
|
|
1695
1683
|
switch (r[0]) {
|
|
1696
1684
|
case "linear":
|
|
@@ -1703,22 +1691,22 @@ function ur(e, t, n) {
|
|
|
1703
1691
|
break;
|
|
1704
1692
|
default: throw Error(`invalid interpolation type: ${JSON.stringify(r)}`);
|
|
1705
1693
|
}
|
|
1706
|
-
let a = new
|
|
1694
|
+
let a = new z(N, i), o;
|
|
1707
1695
|
try {
|
|
1708
|
-
o =
|
|
1696
|
+
o = B(e[2], N, n);
|
|
1709
1697
|
} catch (e) {
|
|
1710
1698
|
throw Error(`failed to parse argument 1 in interpolate expression: ${e.message}`);
|
|
1711
1699
|
}
|
|
1712
1700
|
let s = Array(e.length - 3);
|
|
1713
1701
|
for (let r = 0; r < s.length; r += 2) {
|
|
1714
1702
|
try {
|
|
1715
|
-
let t =
|
|
1703
|
+
let t = B(e[r + 3], N, n);
|
|
1716
1704
|
s[r] = t;
|
|
1717
1705
|
} catch (e) {
|
|
1718
1706
|
throw Error(`failed to parse argument ${r + 2} for interpolate expression: ${e.message}`);
|
|
1719
1707
|
}
|
|
1720
1708
|
try {
|
|
1721
|
-
let i =
|
|
1709
|
+
let i = B(e[r + 4], t, n);
|
|
1722
1710
|
s[r + 1] = i;
|
|
1723
1711
|
} catch (e) {
|
|
1724
1712
|
throw Error(`failed to parse argument ${r + 3} for interpolate expression: ${e.message}`);
|
|
@@ -1730,17 +1718,17 @@ function ur(e, t, n) {
|
|
|
1730
1718
|
...s
|
|
1731
1719
|
];
|
|
1732
1720
|
}
|
|
1733
|
-
function
|
|
1734
|
-
let r =
|
|
1721
|
+
function pr(e, t, n) {
|
|
1722
|
+
let r = B(e[e.length - 1], t, n), i = Array(e.length - 1);
|
|
1735
1723
|
for (let t = 0; t < i.length - 1; t += 2) {
|
|
1736
1724
|
try {
|
|
1737
|
-
let r =
|
|
1725
|
+
let r = B(e[t + 1], M, n);
|
|
1738
1726
|
i[t] = r;
|
|
1739
1727
|
} catch (e) {
|
|
1740
1728
|
throw Error(`failed to parse argument ${t} of case expression: ${e.message}`);
|
|
1741
1729
|
}
|
|
1742
1730
|
try {
|
|
1743
|
-
let a =
|
|
1731
|
+
let a = B(e[t + 2], r.type, n);
|
|
1744
1732
|
i[t + 1] = a;
|
|
1745
1733
|
} catch (e) {
|
|
1746
1734
|
throw Error(`failed to parse argument ${t + 1} of case expression: ${e.message}`);
|
|
@@ -1748,27 +1736,27 @@ function dr(e, t, n) {
|
|
|
1748
1736
|
}
|
|
1749
1737
|
return i[i.length - 1] = r, i;
|
|
1750
1738
|
}
|
|
1751
|
-
function
|
|
1739
|
+
function mr(e, t, n) {
|
|
1752
1740
|
let r = e[2];
|
|
1753
1741
|
if (!Array.isArray(r)) throw Error("the second argument for the \"in\" operator must be an array");
|
|
1754
1742
|
let i;
|
|
1755
1743
|
if (r[0] === "literal") {
|
|
1756
1744
|
if (r = r[1], !Array.isArray(r)) throw Error("failed to parse \"in\" expression: the literal operator must be followed by an array");
|
|
1757
1745
|
} else if (typeof r[0] == "string") throw Error("for the \"in\" operator, a string array should be wrapped in a \"literal\" operator to disambiguate from expressions");
|
|
1758
|
-
i = typeof r[0] == "string" ?
|
|
1746
|
+
i = typeof r[0] == "string" ? P : N;
|
|
1759
1747
|
let a = Array(r.length);
|
|
1760
1748
|
for (let e = 0; e < a.length; e++) try {
|
|
1761
|
-
let t =
|
|
1749
|
+
let t = B(r[e], i, n);
|
|
1762
1750
|
a[e] = t;
|
|
1763
1751
|
} catch (t) {
|
|
1764
1752
|
throw Error(`failed to parse haystack item ${e} for "in" expression: ${t.message}`);
|
|
1765
1753
|
}
|
|
1766
|
-
return [
|
|
1754
|
+
return [B(e[1], i, n), ...a];
|
|
1767
1755
|
}
|
|
1768
|
-
function
|
|
1756
|
+
function hr(e, t, n) {
|
|
1769
1757
|
let r;
|
|
1770
1758
|
try {
|
|
1771
|
-
r =
|
|
1759
|
+
r = B(e[1], N, n);
|
|
1772
1760
|
} catch (e) {
|
|
1773
1761
|
throw Error(`failed to parse first argument in palette expression: ${e.message}`);
|
|
1774
1762
|
}
|
|
@@ -1778,16 +1766,16 @@ function pr(e, t, n) {
|
|
|
1778
1766
|
for (let e = 0; e < a.length; e++) {
|
|
1779
1767
|
let t;
|
|
1780
1768
|
try {
|
|
1781
|
-
t =
|
|
1769
|
+
t = B(i[e], F, n);
|
|
1782
1770
|
} catch (t) {
|
|
1783
1771
|
throw Error(`failed to parse color at index ${e} in palette expression: ${t.message}`);
|
|
1784
1772
|
}
|
|
1785
|
-
if (!(t instanceof
|
|
1773
|
+
if (!(t instanceof z)) throw Error(`the palette color at index ${e} must be a literal value`);
|
|
1786
1774
|
a[e] = t;
|
|
1787
1775
|
}
|
|
1788
1776
|
return [r, ...a];
|
|
1789
1777
|
}
|
|
1790
|
-
function
|
|
1778
|
+
function W(...e) {
|
|
1791
1779
|
return function(t, n, r) {
|
|
1792
1780
|
let i = t[0], a;
|
|
1793
1781
|
for (let i = 0; i < e.length; i++) {
|
|
@@ -1797,15 +1785,15 @@ function K(...e) {
|
|
|
1797
1785
|
a = o;
|
|
1798
1786
|
}
|
|
1799
1787
|
}
|
|
1800
|
-
return new
|
|
1788
|
+
return new Zn(n, i, ...a);
|
|
1801
1789
|
};
|
|
1802
1790
|
}
|
|
1803
|
-
function
|
|
1804
|
-
let r = e[0], i =
|
|
1791
|
+
function gr(e, t, n) {
|
|
1792
|
+
let r = e[0], i = $n[r];
|
|
1805
1793
|
if (!i) throw Error(`unknown operator: ${r}`);
|
|
1806
1794
|
return i(e, t, n);
|
|
1807
1795
|
}
|
|
1808
|
-
function
|
|
1796
|
+
function _r(e) {
|
|
1809
1797
|
if (!e) return "";
|
|
1810
1798
|
let t = e.getType();
|
|
1811
1799
|
switch (t) {
|
|
@@ -1816,13 +1804,12 @@ function hr(e) {
|
|
|
1816
1804
|
case "MultiLineString":
|
|
1817
1805
|
case "MultiPolygon": return t.substring(5);
|
|
1818
1806
|
case "Circle": return "Polygon";
|
|
1819
|
-
case "GeometryCollection": return
|
|
1807
|
+
case "GeometryCollection": return _r(e.getGeometries()[0]);
|
|
1820
1808
|
default: return "";
|
|
1821
1809
|
}
|
|
1822
1810
|
}
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
function gr() {
|
|
1811
|
+
// ../node_modules/ol/expr/cpu.js
|
|
1812
|
+
function vr() {
|
|
1826
1813
|
return {
|
|
1827
1814
|
variables: {},
|
|
1828
1815
|
properties: {},
|
|
@@ -1831,13 +1818,13 @@ function gr() {
|
|
|
1831
1818
|
geometryType: ""
|
|
1832
1819
|
};
|
|
1833
1820
|
}
|
|
1834
|
-
function
|
|
1835
|
-
return
|
|
1821
|
+
function G(e, t, n) {
|
|
1822
|
+
return K(B(e, t, n), n);
|
|
1836
1823
|
}
|
|
1837
|
-
function
|
|
1838
|
-
if (e instanceof
|
|
1839
|
-
if (e.type ===
|
|
1840
|
-
let t =
|
|
1824
|
+
function K(e, t) {
|
|
1825
|
+
if (e instanceof z) {
|
|
1826
|
+
if (e.type === F && typeof e.value == "string") {
|
|
1827
|
+
let t = Ue(e.value);
|
|
1841
1828
|
return function() {
|
|
1842
1829
|
return t;
|
|
1843
1830
|
};
|
|
@@ -1848,65 +1835,65 @@ function J(e, t) {
|
|
|
1848
1835
|
}
|
|
1849
1836
|
let n = e.operator;
|
|
1850
1837
|
switch (n) {
|
|
1851
|
-
case
|
|
1852
|
-
case
|
|
1853
|
-
case
|
|
1854
|
-
case
|
|
1855
|
-
case
|
|
1856
|
-
case
|
|
1857
|
-
case
|
|
1858
|
-
case
|
|
1859
|
-
case
|
|
1860
|
-
let n = e.args.map((e) =>
|
|
1838
|
+
case V.Number:
|
|
1839
|
+
case V.String:
|
|
1840
|
+
case V.Coalesce: return yr(e, t);
|
|
1841
|
+
case V.Get:
|
|
1842
|
+
case V.Var:
|
|
1843
|
+
case V.Has: return br(e, t);
|
|
1844
|
+
case V.Id: return (e) => e.featureId;
|
|
1845
|
+
case V.GeometryType: return (e) => e.geometryType;
|
|
1846
|
+
case V.Concat: {
|
|
1847
|
+
let n = e.args.map((e) => K(e, t));
|
|
1861
1848
|
return (e) => "".concat(...n.map((t) => t(e).toString()));
|
|
1862
1849
|
}
|
|
1863
|
-
case
|
|
1864
|
-
case
|
|
1865
|
-
case
|
|
1866
|
-
case
|
|
1867
|
-
case
|
|
1868
|
-
case
|
|
1869
|
-
case
|
|
1870
|
-
case
|
|
1871
|
-
case
|
|
1872
|
-
case
|
|
1873
|
-
case
|
|
1874
|
-
case
|
|
1875
|
-
case
|
|
1876
|
-
case
|
|
1877
|
-
case
|
|
1878
|
-
case
|
|
1879
|
-
case
|
|
1880
|
-
case
|
|
1881
|
-
case
|
|
1882
|
-
case
|
|
1883
|
-
case
|
|
1884
|
-
case
|
|
1885
|
-
case
|
|
1886
|
-
case
|
|
1887
|
-
case
|
|
1888
|
-
case
|
|
1889
|
-
case
|
|
1890
|
-
case
|
|
1891
|
-
case
|
|
1892
|
-
case
|
|
1893
|
-
case
|
|
1850
|
+
case V.Resolution: return (e) => e.resolution;
|
|
1851
|
+
case V.Any:
|
|
1852
|
+
case V.All:
|
|
1853
|
+
case V.Between:
|
|
1854
|
+
case V.In:
|
|
1855
|
+
case V.Not: return Sr(e, t);
|
|
1856
|
+
case V.Equal:
|
|
1857
|
+
case V.NotEqual:
|
|
1858
|
+
case V.LessThan:
|
|
1859
|
+
case V.LessThanOrEqualTo:
|
|
1860
|
+
case V.GreaterThan:
|
|
1861
|
+
case V.GreaterThanOrEqualTo: return xr(e, t);
|
|
1862
|
+
case V.Multiply:
|
|
1863
|
+
case V.Divide:
|
|
1864
|
+
case V.Add:
|
|
1865
|
+
case V.Subtract:
|
|
1866
|
+
case V.Clamp:
|
|
1867
|
+
case V.Mod:
|
|
1868
|
+
case V.Pow:
|
|
1869
|
+
case V.Abs:
|
|
1870
|
+
case V.Floor:
|
|
1871
|
+
case V.Ceil:
|
|
1872
|
+
case V.Round:
|
|
1873
|
+
case V.Sin:
|
|
1874
|
+
case V.Cos:
|
|
1875
|
+
case V.Atan:
|
|
1876
|
+
case V.Sqrt: return Cr(e, t);
|
|
1877
|
+
case V.Case: return wr(e, t);
|
|
1878
|
+
case V.Match: return Tr(e, t);
|
|
1879
|
+
case V.Interpolate: return Er(e, t);
|
|
1880
|
+
case V.ToString: return Dr(e, t);
|
|
1894
1881
|
default: throw Error(`Unsupported operator ${n}`);
|
|
1895
1882
|
}
|
|
1896
1883
|
}
|
|
1897
|
-
function
|
|
1884
|
+
function yr(e, t) {
|
|
1898
1885
|
let n = e.operator, r = e.args.length, i = Array(r);
|
|
1899
|
-
for (let n = 0; n < r; ++n) i[n] =
|
|
1886
|
+
for (let n = 0; n < r; ++n) i[n] = K(e.args[n], t);
|
|
1900
1887
|
switch (n) {
|
|
1901
|
-
case
|
|
1888
|
+
case V.Coalesce: return (e) => {
|
|
1902
1889
|
for (let t = 0; t < r; ++t) {
|
|
1903
1890
|
let n = i[t](e);
|
|
1904
1891
|
if (n != null) return n;
|
|
1905
1892
|
}
|
|
1906
1893
|
throw Error("Expected one of the values to be non-null");
|
|
1907
1894
|
};
|
|
1908
|
-
case
|
|
1909
|
-
case
|
|
1895
|
+
case V.Number:
|
|
1896
|
+
case V.String: return (e) => {
|
|
1910
1897
|
for (let t = 0; t < r; ++t) {
|
|
1911
1898
|
let r = i[t](e);
|
|
1912
1899
|
if (typeof r === n) return r;
|
|
@@ -1916,10 +1903,10 @@ function _r(e, t) {
|
|
|
1916
1903
|
default: throw Error(`Unsupported assertion operator ${n}`);
|
|
1917
1904
|
}
|
|
1918
1905
|
}
|
|
1919
|
-
function
|
|
1906
|
+
function br(e, t) {
|
|
1920
1907
|
let n = e.args[0].value;
|
|
1921
1908
|
switch (e.operator) {
|
|
1922
|
-
case
|
|
1909
|
+
case V.Get: return (t) => {
|
|
1923
1910
|
let r = e.args, i = t.properties[n];
|
|
1924
1911
|
for (let e = 1, t = r.length; e < t; ++e) {
|
|
1925
1912
|
let t = r[e].value;
|
|
@@ -1927,8 +1914,8 @@ function vr(e, t) {
|
|
|
1927
1914
|
}
|
|
1928
1915
|
return i;
|
|
1929
1916
|
};
|
|
1930
|
-
case
|
|
1931
|
-
case
|
|
1917
|
+
case V.Var: return (e) => e.variables[n];
|
|
1918
|
+
case V.Has: return (t) => {
|
|
1932
1919
|
let r = e.args;
|
|
1933
1920
|
if (!(n in t.properties)) return !1;
|
|
1934
1921
|
let i = t.properties[n];
|
|
@@ -1942,140 +1929,139 @@ function vr(e, t) {
|
|
|
1942
1929
|
default: throw Error(`Unsupported accessor operator ${e.operator}`);
|
|
1943
1930
|
}
|
|
1944
1931
|
}
|
|
1945
|
-
function
|
|
1946
|
-
let n = e.operator, r =
|
|
1932
|
+
function xr(e, t) {
|
|
1933
|
+
let n = e.operator, r = K(e.args[0], t), i = K(e.args[1], t);
|
|
1947
1934
|
switch (n) {
|
|
1948
|
-
case
|
|
1949
|
-
case
|
|
1950
|
-
case
|
|
1951
|
-
case
|
|
1952
|
-
case
|
|
1953
|
-
case
|
|
1935
|
+
case V.Equal: return (e) => r(e) === i(e);
|
|
1936
|
+
case V.NotEqual: return (e) => r(e) !== i(e);
|
|
1937
|
+
case V.LessThan: return (e) => r(e) < i(e);
|
|
1938
|
+
case V.LessThanOrEqualTo: return (e) => r(e) <= i(e);
|
|
1939
|
+
case V.GreaterThan: return (e) => r(e) > i(e);
|
|
1940
|
+
case V.GreaterThanOrEqualTo: return (e) => r(e) >= i(e);
|
|
1954
1941
|
default: throw Error(`Unsupported comparison operator ${n}`);
|
|
1955
1942
|
}
|
|
1956
1943
|
}
|
|
1957
|
-
function
|
|
1944
|
+
function Sr(e, t) {
|
|
1958
1945
|
let n = e.operator, r = e.args.length, i = Array(r);
|
|
1959
|
-
for (let n = 0; n < r; ++n) i[n] =
|
|
1946
|
+
for (let n = 0; n < r; ++n) i[n] = K(e.args[n], t);
|
|
1960
1947
|
switch (n) {
|
|
1961
|
-
case
|
|
1948
|
+
case V.Any: return (e) => {
|
|
1962
1949
|
for (let t = 0; t < r; ++t) if (i[t](e)) return !0;
|
|
1963
1950
|
return !1;
|
|
1964
1951
|
};
|
|
1965
|
-
case
|
|
1952
|
+
case V.All: return (e) => {
|
|
1966
1953
|
for (let t = 0; t < r; ++t) if (!i[t](e)) return !1;
|
|
1967
1954
|
return !0;
|
|
1968
1955
|
};
|
|
1969
|
-
case
|
|
1956
|
+
case V.Between: return (e) => {
|
|
1970
1957
|
let t = i[0](e), n = i[1](e), r = i[2](e);
|
|
1971
1958
|
return t >= n && t <= r;
|
|
1972
1959
|
};
|
|
1973
|
-
case
|
|
1960
|
+
case V.In: return (e) => {
|
|
1974
1961
|
let t = i[0](e);
|
|
1975
1962
|
for (let n = 1; n < r; ++n) if (t === i[n](e)) return !0;
|
|
1976
1963
|
return !1;
|
|
1977
1964
|
};
|
|
1978
|
-
case
|
|
1965
|
+
case V.Not: return (e) => !i[0](e);
|
|
1979
1966
|
default: throw Error(`Unsupported logical operator ${n}`);
|
|
1980
1967
|
}
|
|
1981
1968
|
}
|
|
1982
|
-
function
|
|
1969
|
+
function Cr(e, t) {
|
|
1983
1970
|
let n = e.operator, r = e.args.length, i = Array(r);
|
|
1984
|
-
for (let n = 0; n < r; ++n) i[n] =
|
|
1971
|
+
for (let n = 0; n < r; ++n) i[n] = K(e.args[n], t);
|
|
1985
1972
|
switch (n) {
|
|
1986
|
-
case
|
|
1973
|
+
case V.Multiply: return (e) => {
|
|
1987
1974
|
let t = 1;
|
|
1988
1975
|
for (let n = 0; n < r; ++n) t *= i[n](e);
|
|
1989
1976
|
return t;
|
|
1990
1977
|
};
|
|
1991
|
-
case
|
|
1992
|
-
case
|
|
1978
|
+
case V.Divide: return (e) => i[0](e) / i[1](e);
|
|
1979
|
+
case V.Add: return (e) => {
|
|
1993
1980
|
let t = 0;
|
|
1994
1981
|
for (let n = 0; n < r; ++n) t += i[n](e);
|
|
1995
1982
|
return t;
|
|
1996
1983
|
};
|
|
1997
|
-
case
|
|
1998
|
-
case
|
|
1984
|
+
case V.Subtract: return (e) => i[0](e) - i[1](e);
|
|
1985
|
+
case V.Clamp: return (e) => {
|
|
1999
1986
|
let t = i[0](e), n = i[1](e);
|
|
2000
1987
|
if (t < n) return n;
|
|
2001
1988
|
let r = i[2](e);
|
|
2002
1989
|
return t > r ? r : t;
|
|
2003
1990
|
};
|
|
2004
|
-
case
|
|
2005
|
-
case
|
|
2006
|
-
case
|
|
2007
|
-
case
|
|
2008
|
-
case
|
|
2009
|
-
case
|
|
2010
|
-
case
|
|
2011
|
-
case
|
|
2012
|
-
case
|
|
2013
|
-
case
|
|
1991
|
+
case V.Mod: return (e) => i[0](e) % i[1](e);
|
|
1992
|
+
case V.Pow: return (e) => i[0](e) ** +i[1](e);
|
|
1993
|
+
case V.Abs: return (e) => Math.abs(i[0](e));
|
|
1994
|
+
case V.Floor: return (e) => Math.floor(i[0](e));
|
|
1995
|
+
case V.Ceil: return (e) => Math.ceil(i[0](e));
|
|
1996
|
+
case V.Round: return (e) => Math.round(i[0](e));
|
|
1997
|
+
case V.Sin: return (e) => Math.sin(i[0](e));
|
|
1998
|
+
case V.Cos: return (e) => Math.cos(i[0](e));
|
|
1999
|
+
case V.Atan: return r === 2 ? (e) => Math.atan2(i[0](e), i[1](e)) : (e) => Math.atan(i[0](e));
|
|
2000
|
+
case V.Sqrt: return (e) => Math.sqrt(i[0](e));
|
|
2014
2001
|
default: throw Error(`Unsupported numeric operator ${n}`);
|
|
2015
2002
|
}
|
|
2016
2003
|
}
|
|
2017
|
-
function
|
|
2004
|
+
function wr(e, t) {
|
|
2018
2005
|
let n = e.args.length, r = Array(n);
|
|
2019
|
-
for (let i = 0; i < n; ++i) r[i] =
|
|
2006
|
+
for (let i = 0; i < n; ++i) r[i] = K(e.args[i], t);
|
|
2020
2007
|
return (e) => {
|
|
2021
2008
|
for (let t = 0; t < n - 1; t += 2) if (r[t](e)) return r[t + 1](e);
|
|
2022
2009
|
return r[n - 1](e);
|
|
2023
2010
|
};
|
|
2024
2011
|
}
|
|
2025
|
-
function
|
|
2012
|
+
function Tr(e, t) {
|
|
2026
2013
|
let n = e.args.length, r = Array(n);
|
|
2027
|
-
for (let i = 0; i < n; ++i) r[i] =
|
|
2014
|
+
for (let i = 0; i < n; ++i) r[i] = K(e.args[i], t);
|
|
2028
2015
|
return (e) => {
|
|
2029
2016
|
let t = r[0](e);
|
|
2030
2017
|
for (let i = 1; i < n - 1; i += 2) if (t === r[i](e)) return r[i + 1](e);
|
|
2031
2018
|
return r[n - 1](e);
|
|
2032
2019
|
};
|
|
2033
2020
|
}
|
|
2034
|
-
function
|
|
2021
|
+
function Er(e, t) {
|
|
2035
2022
|
let n = e.args.length, r = Array(n);
|
|
2036
|
-
for (let i = 0; i < n; ++i) r[i] =
|
|
2023
|
+
for (let i = 0; i < n; ++i) r[i] = K(e.args[i], t);
|
|
2037
2024
|
return (e) => {
|
|
2038
2025
|
let t = r[0](e), i = r[1](e), a, o;
|
|
2039
2026
|
for (let s = 2; s < n; s += 2) {
|
|
2040
2027
|
let n = r[s](e), c = r[s + 1](e), l = Array.isArray(c);
|
|
2041
|
-
if (l && (c =
|
|
2028
|
+
if (l && (c = Ge(c)), n >= i) return s === 2 ? c : l ? kr(t, i, a, o, n, c) : Or(t, i, a, o, n, c);
|
|
2042
2029
|
a = n, o = c;
|
|
2043
2030
|
}
|
|
2044
2031
|
return o;
|
|
2045
2032
|
};
|
|
2046
2033
|
}
|
|
2047
|
-
function
|
|
2034
|
+
function Dr(e, t) {
|
|
2048
2035
|
let n = e.operator, r = e.args.length, i = Array(r);
|
|
2049
|
-
for (let n = 0; n < r; ++n) i[n] =
|
|
2036
|
+
for (let n = 0; n < r; ++n) i[n] = K(e.args[n], t);
|
|
2050
2037
|
switch (n) {
|
|
2051
|
-
case
|
|
2038
|
+
case V.ToString: return (t) => {
|
|
2052
2039
|
let n = i[0](t);
|
|
2053
|
-
return e.args[0].type ===
|
|
2040
|
+
return e.args[0].type === F ? We(n) : n.toString();
|
|
2054
2041
|
};
|
|
2055
2042
|
default: throw Error(`Unsupported convert operator ${n}`);
|
|
2056
2043
|
}
|
|
2057
2044
|
}
|
|
2058
|
-
function
|
|
2045
|
+
function Or(e, t, n, r, i, a) {
|
|
2059
2046
|
let o = i - n;
|
|
2060
2047
|
if (o === 0) return r;
|
|
2061
2048
|
let s = t - n;
|
|
2062
2049
|
return r + (e === 1 ? s / o : (e ** +s - 1) / (e ** +o - 1)) * (a - r);
|
|
2063
2050
|
}
|
|
2064
|
-
function
|
|
2051
|
+
function kr(e, t, n, r, i, a) {
|
|
2065
2052
|
if (i - n === 0) return r;
|
|
2066
|
-
let o =
|
|
2053
|
+
let o = et(r), s = et(a), c = s[2] - o[2];
|
|
2067
2054
|
c > 180 ? c -= 360 : c < -180 && (c += 360);
|
|
2068
2055
|
let l = [
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
o[2] +
|
|
2072
|
-
|
|
2056
|
+
Or(e, t, n, o[0], i, s[0]),
|
|
2057
|
+
Or(e, t, n, o[1], i, s[1]),
|
|
2058
|
+
o[2] + Or(e, t, n, 0, i, c),
|
|
2059
|
+
Or(e, t, n, r[3], i, a[3])
|
|
2073
2060
|
];
|
|
2074
|
-
return
|
|
2061
|
+
return qe(l);
|
|
2075
2062
|
}
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
var Or = class e extends Rn {
|
|
2063
|
+
// ../node_modules/ol/style/RegularShape.js
|
|
2064
|
+
var Ar = class e extends Bn {
|
|
2079
2065
|
constructor(e) {
|
|
2080
2066
|
super({
|
|
2081
2067
|
opacity: 1,
|
|
@@ -2084,7 +2070,7 @@ var Or = class e extends Rn {
|
|
|
2084
2070
|
scale: e.scale === void 0 ? 1 : e.scale,
|
|
2085
2071
|
displacement: e.displacement === void 0 ? [0, 0] : e.displacement,
|
|
2086
2072
|
declutterMode: e.declutterMode
|
|
2087
|
-
}), this.hitDetectionCanvas_ = null, this.fill_ = e.fill === void 0 ? null : e.fill, this.origin_ = [0, 0], this.points_ = e.points, this.radius = e.radius, this.radius2_ = e.radius2, this.angle_ = e.angle === void 0 ? 0 : e.angle, this.stroke_ = e.stroke === void 0 ? null : e.stroke, this.size_, this.renderOptions_, this.imageState_ = this.fill_ && this.fill_.loading() ?
|
|
2073
|
+
}), this.hitDetectionCanvas_ = null, this.fill_ = e.fill === void 0 ? null : e.fill, this.origin_ = [0, 0], this.points_ = e.points, this.radius = e.radius, this.radius2_ = e.radius2, this.angle_ = e.angle === void 0 ? 0 : e.angle, this.stroke_ = e.stroke === void 0 ? null : e.stroke, this.size_, this.renderOptions_, this.imageState_ = this.fill_ && this.fill_.loading() ? w.LOADING : w.LOADED, this.imageState_ === w.LOADING && this.ready().then(() => this.imageState_ = w.LOADED), this.render();
|
|
2088
2074
|
}
|
|
2089
2075
|
clone() {
|
|
2090
2076
|
let t = this.getScale(), n = new e({
|
|
@@ -2119,12 +2105,12 @@ var Or = class e extends Rn {
|
|
|
2119
2105
|
return this.hitDetectionCanvas_ ||= this.createHitDetectionCanvas_(this.renderOptions_), this.hitDetectionCanvas_;
|
|
2120
2106
|
}
|
|
2121
2107
|
getImage(e) {
|
|
2122
|
-
let t = this.fill_?.getKey(), n = `${e},${this.angle_},${this.radius},${this.radius2_},${this.points_},${t}` + Object.values(this.renderOptions_).join(","), r =
|
|
2108
|
+
let t = this.fill_?.getKey(), n = `${e},${this.angle_},${this.radius},${this.radius2_},${this.points_},${t}` + Object.values(this.renderOptions_).join(","), r = j.get(n, null)?.getImage(1);
|
|
2123
2109
|
if (!r) {
|
|
2124
|
-
let t = this.renderOptions_, i = Math.ceil(t.size * e), a =
|
|
2110
|
+
let t = this.renderOptions_, i = Math.ceil(t.size * e), a = ve(i, i);
|
|
2125
2111
|
this.draw_(t, a, e), r = a.canvas;
|
|
2126
|
-
let o = new
|
|
2127
|
-
|
|
2112
|
+
let o = new pn(r, void 0, null, w.LOADED, null);
|
|
2113
|
+
j.set(n, null, o), createImageBitmap(r).then((e) => {
|
|
2128
2114
|
o.setImage(e);
|
|
2129
2115
|
});
|
|
2130
2116
|
}
|
|
@@ -2188,8 +2174,8 @@ var Or = class e extends Rn {
|
|
|
2188
2174
|
return m * 2;
|
|
2189
2175
|
}
|
|
2190
2176
|
createRenderOptions() {
|
|
2191
|
-
let e =
|
|
2192
|
-
this.stroke_ && (a =
|
|
2177
|
+
let e = yn, t = xn, n = 0, r = null, i = 0, a, o = 0;
|
|
2178
|
+
this.stroke_ && (a = hn(this.stroke_.getColor() ?? "#000"), o = this.stroke_.getWidth() ?? 1, r = this.stroke_.getLineDash(), i = this.stroke_.getLineDashOffset() ?? 0, t = this.stroke_.getLineJoin() ?? "round", e = this.stroke_.getLineCap() ?? "round", n = this.stroke_.getMiterLimit() ?? 10);
|
|
2193
2179
|
let s = this.calculateLineJoinSize_(t, o, n), c = Math.max(this.radius, this.radius2_ || 0), l = Math.ceil(2 * c + s);
|
|
2194
2180
|
return {
|
|
2195
2181
|
strokeStyle: a,
|
|
@@ -2210,7 +2196,7 @@ var Or = class e extends Rn {
|
|
|
2210
2196
|
draw_(e, t, n) {
|
|
2211
2197
|
if (t.scale(n, n), t.translate(e.size / 2, e.size / 2), this.createPath_(t), this.fill_) {
|
|
2212
2198
|
let e = this.fill_.getColor();
|
|
2213
|
-
e === null && (e =
|
|
2199
|
+
e === null && (e = vn), t.fillStyle = hn(e), t.fill();
|
|
2214
2200
|
}
|
|
2215
2201
|
e.strokeStyle && (t.strokeStyle = e.strokeStyle, t.lineWidth = e.strokeWidth, e.lineDash && (t.setLineDash(e.lineDash), t.lineDashOffset = e.lineDashOffset), t.lineCap = e.lineCap, t.lineJoin = e.lineJoin, t.miterLimit = e.miterLimit, t.stroke());
|
|
2216
2202
|
}
|
|
@@ -2218,7 +2204,7 @@ var Or = class e extends Rn {
|
|
|
2218
2204
|
let t;
|
|
2219
2205
|
if (this.fill_) {
|
|
2220
2206
|
let n = this.fill_.getColor(), r = 0;
|
|
2221
|
-
typeof n == "string" && (n =
|
|
2207
|
+
typeof n == "string" && (n = Ye(n)), n === null ? r = 1 : Array.isArray(n) && (r = n.length === 4 ? n[3] : 1), r === 0 && (t = ve(e.size, e.size), this.drawHitDetectionCanvas_(e, t));
|
|
2222
2208
|
}
|
|
2223
2209
|
return t ? t.canvas : this.getImage(1);
|
|
2224
2210
|
}
|
|
@@ -2237,12 +2223,12 @@ var Or = class e extends Rn {
|
|
|
2237
2223
|
}
|
|
2238
2224
|
}
|
|
2239
2225
|
drawHitDetectionCanvas_(e, t) {
|
|
2240
|
-
t.translate(e.size / 2, e.size / 2), this.createPath_(t), t.fillStyle =
|
|
2226
|
+
t.translate(e.size / 2, e.size / 2), this.createPath_(t), t.fillStyle = vn, t.fill(), e.strokeStyle && (t.strokeStyle = e.strokeStyle, t.lineWidth = e.strokeWidth, e.lineDash && (t.setLineDash(e.lineDash), t.lineDashOffset = e.lineDashOffset), t.lineJoin = e.lineJoin, t.miterLimit = e.miterLimit, t.stroke());
|
|
2241
2227
|
}
|
|
2242
2228
|
ready() {
|
|
2243
2229
|
return this.fill_ ? this.fill_.ready() : Promise.resolve();
|
|
2244
2230
|
}
|
|
2245
|
-
},
|
|
2231
|
+
}, jr = class e extends Ar {
|
|
2246
2232
|
constructor(e) {
|
|
2247
2233
|
e ||= { radius: 5 }, super({
|
|
2248
2234
|
points: Infinity,
|
|
@@ -2269,7 +2255,7 @@ var Or = class e extends Rn {
|
|
|
2269
2255
|
});
|
|
2270
2256
|
return n.setOpacity(this.getOpacity()), n;
|
|
2271
2257
|
}
|
|
2272
|
-
},
|
|
2258
|
+
}, Mr = class e {
|
|
2273
2259
|
constructor(e) {
|
|
2274
2260
|
e ||= {}, this.patternImage_ = null, this.color_ = null, e.color !== void 0 && this.setColor(e.color);
|
|
2275
2261
|
}
|
|
@@ -2282,16 +2268,16 @@ var Or = class e extends Rn {
|
|
|
2282
2268
|
}
|
|
2283
2269
|
setColor(e) {
|
|
2284
2270
|
if (typeof e == "object" && e && "src" in e) {
|
|
2285
|
-
let t =
|
|
2271
|
+
let t = mn(null, e.src, { crossOrigin: "anonymous" }, void 0, e.offset ? null : e.color ? e.color : null, !(e.offset && e.size));
|
|
2286
2272
|
t.ready().then(() => {
|
|
2287
2273
|
this.patternImage_ = null;
|
|
2288
|
-
}), t.getImageState() ===
|
|
2274
|
+
}), t.getImageState() === w.IDLE && t.load(), t.getImageState() === w.LOADING && (this.patternImage_ = t);
|
|
2289
2275
|
}
|
|
2290
2276
|
this.color_ = e;
|
|
2291
2277
|
}
|
|
2292
2278
|
getKey() {
|
|
2293
2279
|
let e = this.getColor();
|
|
2294
|
-
return e ? e instanceof CanvasPattern || e instanceof CanvasGradient ?
|
|
2280
|
+
return e ? e instanceof CanvasPattern || e instanceof CanvasGradient ? r(e) : typeof e == "object" && "src" in e ? e.src + ":" + e.offset : Ye(e).toString() : "";
|
|
2295
2281
|
}
|
|
2296
2282
|
loading() {
|
|
2297
2283
|
return !!this.patternImage_;
|
|
@@ -2299,7 +2285,7 @@ var Or = class e extends Rn {
|
|
|
2299
2285
|
ready() {
|
|
2300
2286
|
return this.patternImage_ ? this.patternImage_.ready() : Promise.resolve();
|
|
2301
2287
|
}
|
|
2302
|
-
},
|
|
2288
|
+
}, Nr = class e {
|
|
2303
2289
|
constructor(e) {
|
|
2304
2290
|
e ||= {}, this.color_ = e.color === void 0 ? null : e.color, this.lineCap_ = e.lineCap, this.lineDash_ = e.lineDash === void 0 ? null : e.lineDash, this.lineDashOffset_ = e.lineDashOffset, this.lineJoin_ = e.lineJoin, this.miterLimit_ = e.miterLimit, this.offset_ = e.offset, this.width_ = e.width;
|
|
2305
2291
|
}
|
|
@@ -2364,9 +2350,9 @@ var Or = class e extends Rn {
|
|
|
2364
2350
|
setWidth(e) {
|
|
2365
2351
|
this.width_ = e;
|
|
2366
2352
|
}
|
|
2367
|
-
},
|
|
2353
|
+
}, q = class e {
|
|
2368
2354
|
constructor(e) {
|
|
2369
|
-
e ||= {}, this.geometry_ = null, this.geometryFunction_ =
|
|
2355
|
+
e ||= {}, this.geometry_ = null, this.geometryFunction_ = Rr, e.geometry !== void 0 && this.setGeometry(e.geometry), this.fill_ = e.fill === void 0 ? null : e.fill, this.image_ = e.image === void 0 ? null : e.image, this.renderer_ = e.renderer === void 0 ? null : e.renderer, this.hitDetectionRenderer_ = e.hitDetectionRenderer === void 0 ? null : e.hitDetectionRenderer, this.stroke_ = e.stroke === void 0 ? null : e.stroke, this.text_ = e.text === void 0 ? null : e.text, this.zIndex_ = e.zIndex;
|
|
2370
2356
|
}
|
|
2371
2357
|
clone() {
|
|
2372
2358
|
let t = this.getGeometry();
|
|
@@ -2430,32 +2416,32 @@ var Or = class e extends Rn {
|
|
|
2430
2416
|
return t.get(e);
|
|
2431
2417
|
} : e ? e !== void 0 && (this.geometryFunction_ = function() {
|
|
2432
2418
|
return e;
|
|
2433
|
-
}) : this.geometryFunction_ =
|
|
2419
|
+
}) : this.geometryFunction_ = Rr, this.geometry_ = e;
|
|
2434
2420
|
}
|
|
2435
2421
|
setZIndex(e) {
|
|
2436
2422
|
this.zIndex_ = e;
|
|
2437
2423
|
}
|
|
2438
2424
|
};
|
|
2439
|
-
function
|
|
2425
|
+
function Pr(e) {
|
|
2440
2426
|
let t;
|
|
2441
2427
|
if (typeof e == "function") t = e;
|
|
2442
2428
|
else {
|
|
2443
2429
|
let n;
|
|
2444
|
-
Array.isArray(e) ? n = e : (
|
|
2430
|
+
Array.isArray(e) ? n = e : (E(typeof e.getZIndex == "function", "Expected an `Style` or an array of `Style`"), n = [e]), t = function() {
|
|
2445
2431
|
return n;
|
|
2446
2432
|
};
|
|
2447
2433
|
}
|
|
2448
2434
|
return t;
|
|
2449
2435
|
}
|
|
2450
|
-
var
|
|
2451
|
-
function
|
|
2452
|
-
if (!
|
|
2453
|
-
let e = new
|
|
2436
|
+
var Fr = null;
|
|
2437
|
+
function Ir(e, t) {
|
|
2438
|
+
if (!Fr) {
|
|
2439
|
+
let e = new Mr({ color: "rgba(255,255,255,0.4)" }), t = new Nr({
|
|
2454
2440
|
color: "#3399CC",
|
|
2455
2441
|
width: 1.25
|
|
2456
2442
|
});
|
|
2457
|
-
|
|
2458
|
-
image: new
|
|
2443
|
+
Fr = [new q({
|
|
2444
|
+
image: new jr({
|
|
2459
2445
|
fill: e,
|
|
2460
2446
|
stroke: t,
|
|
2461
2447
|
radius: 5
|
|
@@ -2464,9 +2450,9 @@ function Pr(e, t) {
|
|
|
2464
2450
|
stroke: t
|
|
2465
2451
|
})];
|
|
2466
2452
|
}
|
|
2467
|
-
return
|
|
2453
|
+
return Fr;
|
|
2468
2454
|
}
|
|
2469
|
-
function
|
|
2455
|
+
function Lr() {
|
|
2470
2456
|
let e = {}, t = [
|
|
2471
2457
|
255,
|
|
2472
2458
|
255,
|
|
@@ -2478,22 +2464,22 @@ function Fr() {
|
|
|
2478
2464
|
255,
|
|
2479
2465
|
1
|
|
2480
2466
|
];
|
|
2481
|
-
return e.Polygon = [new
|
|
2467
|
+
return e.Polygon = [new q({ fill: new Mr({ color: [
|
|
2482
2468
|
255,
|
|
2483
2469
|
255,
|
|
2484
2470
|
255,
|
|
2485
2471
|
.5
|
|
2486
|
-
] }) })], e.MultiPolygon = e.Polygon, e.LineString = [new
|
|
2472
|
+
] }) })], e.MultiPolygon = e.Polygon, e.LineString = [new q({ stroke: new Nr({
|
|
2487
2473
|
color: t,
|
|
2488
2474
|
width: 5
|
|
2489
|
-
}) }), new
|
|
2475
|
+
}) }), new q({ stroke: new Nr({
|
|
2490
2476
|
color: n,
|
|
2491
2477
|
width: 3
|
|
2492
|
-
}) })], e.MultiLineString = e.LineString, e.Circle = e.Polygon.concat(e.LineString), e.Point = [new
|
|
2493
|
-
image: new
|
|
2478
|
+
}) })], e.MultiLineString = e.LineString, e.Circle = e.Polygon.concat(e.LineString), e.Point = [new q({
|
|
2479
|
+
image: new jr({
|
|
2494
2480
|
radius: 6,
|
|
2495
|
-
fill: new
|
|
2496
|
-
stroke: new
|
|
2481
|
+
fill: new Mr({ color: n }),
|
|
2482
|
+
stroke: new Nr({
|
|
2497
2483
|
color: t,
|
|
2498
2484
|
width: 3 / 2
|
|
2499
2485
|
})
|
|
@@ -2501,14 +2487,13 @@ function Fr() {
|
|
|
2501
2487
|
zIndex: Infinity
|
|
2502
2488
|
})], e.MultiPoint = e.Point, e.GeometryCollection = e.Polygon.concat(e.LineString, e.Point), e;
|
|
2503
2489
|
}
|
|
2504
|
-
function
|
|
2490
|
+
function Rr(e) {
|
|
2505
2491
|
return e.getGeometry();
|
|
2506
2492
|
}
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
var Lr = "#333", Rr = class e {
|
|
2493
|
+
// ../node_modules/ol/style/Text.js
|
|
2494
|
+
var zr = "#333", Br = class e {
|
|
2510
2495
|
constructor(e) {
|
|
2511
|
-
e ||= {}, this.font_ = e.font, this.rotation_ = e.rotation, this.rotateWithView_ = e.rotateWithView, this.keepUpright_ = e.keepUpright, this.scale_ = e.scale, this.scaleArray_ =
|
|
2496
|
+
e ||= {}, this.font_ = e.font, this.rotation_ = e.rotation, this.rotateWithView_ = e.rotateWithView, this.keepUpright_ = e.keepUpright, this.scale_ = e.scale, this.scaleArray_ = fe(e.scale === void 0 ? 1 : e.scale), this.text_ = e.text, this.textAlign_ = e.textAlign, this.justify_ = e.justify, this.repeat_ = e.repeat, this.textBaseline_ = e.textBaseline, this.fill_ = e.fill === void 0 ? new Mr({ color: zr }) : e.fill, this.maxAngle_ = e.maxAngle === void 0 ? Math.PI / 4 : e.maxAngle, this.placement_ = e.placement === void 0 ? "point" : e.placement, this.overflow_ = !!e.overflow, this.stroke_ = e.stroke === void 0 ? null : e.stroke, this.offsetX_ = e.offsetX === void 0 ? 0 : e.offsetX, this.offsetY_ = e.offsetY === void 0 ? 0 : e.offsetY, this.backgroundFill_ = e.backgroundFill ? e.backgroundFill : null, this.backgroundStroke_ = e.backgroundStroke ? e.backgroundStroke : null, this.padding_ = e.padding === void 0 ? null : e.padding, this.declutterMode_ = e.declutterMode;
|
|
2512
2497
|
}
|
|
2513
2498
|
clone() {
|
|
2514
2499
|
let t = this.getScale();
|
|
@@ -2526,7 +2511,7 @@ var Lr = "#333", Rr = class e {
|
|
|
2526
2511
|
textAlign: this.getTextAlign(),
|
|
2527
2512
|
justify: this.getJustify(),
|
|
2528
2513
|
textBaseline: this.getTextBaseline(),
|
|
2529
|
-
fill: this.getFill() instanceof
|
|
2514
|
+
fill: this.getFill() instanceof Mr ? this.getFill().clone() : this.getFill(),
|
|
2530
2515
|
stroke: this.getStroke() ? this.getStroke().clone() : void 0,
|
|
2531
2516
|
offsetX: this.getOffsetX(),
|
|
2532
2517
|
offsetY: this.getOffsetY(),
|
|
@@ -2636,7 +2621,7 @@ var Lr = "#333", Rr = class e {
|
|
|
2636
2621
|
this.rotation_ = e;
|
|
2637
2622
|
}
|
|
2638
2623
|
setScale(e) {
|
|
2639
|
-
this.scale_ = e, this.scaleArray_ =
|
|
2624
|
+
this.scale_ = e, this.scaleArray_ = fe(e === void 0 ? 1 : e);
|
|
2640
2625
|
}
|
|
2641
2626
|
setStroke(e) {
|
|
2642
2627
|
this.stroke_ = e;
|
|
@@ -2663,33 +2648,32 @@ var Lr = "#333", Rr = class e {
|
|
|
2663
2648
|
this.padding_ = e;
|
|
2664
2649
|
}
|
|
2665
2650
|
};
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
function zr(e) {
|
|
2651
|
+
// ../node_modules/ol/render/canvas/style.js
|
|
2652
|
+
function Vr(e) {
|
|
2669
2653
|
return !0;
|
|
2670
2654
|
}
|
|
2671
|
-
function
|
|
2672
|
-
t ??=
|
|
2673
|
-
let n =
|
|
2655
|
+
function Hr(e, t) {
|
|
2656
|
+
t ??= Qn();
|
|
2657
|
+
let n = Gr(e, t), r = vr();
|
|
2674
2658
|
return function(e, i) {
|
|
2675
2659
|
if (r.properties = e.getPropertiesInternal(), r.resolution = i, t.featureId) {
|
|
2676
2660
|
let t = e.getId();
|
|
2677
2661
|
t === void 0 ? r.featureId = null : r.featureId = t;
|
|
2678
2662
|
}
|
|
2679
|
-
return t.geometryType && (r.geometryType =
|
|
2663
|
+
return t.geometryType && (r.geometryType = _r(e.getGeometry())), n(r);
|
|
2680
2664
|
};
|
|
2681
2665
|
}
|
|
2682
|
-
function
|
|
2683
|
-
t ??=
|
|
2666
|
+
function Ur(e, t) {
|
|
2667
|
+
t ??= Qn();
|
|
2684
2668
|
let n = e.length, r = Array(n);
|
|
2685
|
-
for (let i = 0; i < n; ++i) r[i] =
|
|
2686
|
-
let i =
|
|
2669
|
+
for (let i = 0; i < n; ++i) r[i] = Kr(e[i], t);
|
|
2670
|
+
let i = vr(), a = Array(n);
|
|
2687
2671
|
return function(e, o) {
|
|
2688
2672
|
if (i.properties = e.getPropertiesInternal(), i.resolution = o, t.featureId) {
|
|
2689
2673
|
let t = e.getId();
|
|
2690
2674
|
t === void 0 ? i.featureId = null : i.featureId = t;
|
|
2691
2675
|
}
|
|
2692
|
-
t.geometryType && (i.geometryType =
|
|
2676
|
+
t.geometryType && (i.geometryType = _r(e.getGeometry()));
|
|
2693
2677
|
let s = 0;
|
|
2694
2678
|
for (let e = 0; e < n; ++e) {
|
|
2695
2679
|
let t = r[e](i);
|
|
@@ -2698,8 +2682,8 @@ function Vr(e, t) {
|
|
|
2698
2682
|
return a.length = s, a;
|
|
2699
2683
|
};
|
|
2700
2684
|
}
|
|
2701
|
-
function
|
|
2702
|
-
if (t ??=
|
|
2685
|
+
function Wr(e, t) {
|
|
2686
|
+
if (t ??= Qn(), !Array.isArray(e)) return Ur([e], t);
|
|
2703
2687
|
let n = e.length;
|
|
2704
2688
|
if ("style" in e[0]) {
|
|
2705
2689
|
let r = Array(n);
|
|
@@ -2708,19 +2692,19 @@ function Hr(e, t) {
|
|
|
2708
2692
|
if (!("style" in n)) throw Error("Expected a list of rules with a style property");
|
|
2709
2693
|
r[t] = n;
|
|
2710
2694
|
}
|
|
2711
|
-
return
|
|
2695
|
+
return Hr(r, t);
|
|
2712
2696
|
}
|
|
2713
|
-
return
|
|
2697
|
+
return Ur(e, t);
|
|
2714
2698
|
}
|
|
2715
|
-
function
|
|
2699
|
+
function Gr(e, t) {
|
|
2716
2700
|
let n = e.length, r = Array(n);
|
|
2717
2701
|
for (let i = 0; i < n; ++i) {
|
|
2718
|
-
let n = e[i], a = "filter" in n ?
|
|
2702
|
+
let n = e[i], a = "filter" in n ? G(n.filter, M, t) : Vr, o;
|
|
2719
2703
|
if (Array.isArray(n.style)) {
|
|
2720
2704
|
let e = n.style.length;
|
|
2721
2705
|
o = Array(e);
|
|
2722
|
-
for (let r = 0; r < e; ++r) o[r] =
|
|
2723
|
-
} else o = [
|
|
2706
|
+
for (let r = 0; r < e; ++r) o[r] = Kr(n.style[r], t);
|
|
2707
|
+
} else o = [Kr(n.style, t)];
|
|
2724
2708
|
r[i] = {
|
|
2725
2709
|
filter: a,
|
|
2726
2710
|
styles: o
|
|
@@ -2741,10 +2725,10 @@ function Ur(e, t) {
|
|
|
2741
2725
|
return i;
|
|
2742
2726
|
};
|
|
2743
2727
|
}
|
|
2744
|
-
function
|
|
2745
|
-
let n =
|
|
2746
|
-
if (!n && !r && !i && !a && !
|
|
2747
|
-
let s = new
|
|
2728
|
+
function Kr(e, t) {
|
|
2729
|
+
let n = qr(e, "", t), r = Jr(e, "", t), i = Yr(e, t), a = Xr(e, t), o = Y(e, "z-index", t);
|
|
2730
|
+
if (!n && !r && !i && !a && !ae(e)) throw Error("No fill, stroke, point, or text symbolizer properties in style: " + JSON.stringify(e));
|
|
2731
|
+
let s = new q();
|
|
2748
2732
|
return function(e) {
|
|
2749
2733
|
let t = !0;
|
|
2750
2734
|
if (n) {
|
|
@@ -2766,28 +2750,28 @@ function Wr(e, t) {
|
|
|
2766
2750
|
return o && s.setZIndex(o(e)), t ? null : s;
|
|
2767
2751
|
};
|
|
2768
2752
|
}
|
|
2769
|
-
function
|
|
2753
|
+
function qr(e, t, n) {
|
|
2770
2754
|
let r;
|
|
2771
|
-
if (t + "fill-pattern-src" in e) r =
|
|
2755
|
+
if (t + "fill-pattern-src" in e) r = ei(e, t + "fill-", n);
|
|
2772
2756
|
else {
|
|
2773
2757
|
if (e[t + "fill-color"] === "none") return (e) => null;
|
|
2774
|
-
r =
|
|
2758
|
+
r = ni(e, t + "fill-color", n);
|
|
2775
2759
|
}
|
|
2776
2760
|
if (!r) return null;
|
|
2777
|
-
let i = new
|
|
2761
|
+
let i = new Mr();
|
|
2778
2762
|
return function(e) {
|
|
2779
2763
|
let t = r(e);
|
|
2780
|
-
return t ===
|
|
2764
|
+
return t === He ? null : (i.setColor(t), i);
|
|
2781
2765
|
};
|
|
2782
2766
|
}
|
|
2783
|
-
function
|
|
2784
|
-
let r =
|
|
2767
|
+
function Jr(e, t, n) {
|
|
2768
|
+
let r = Y(e, t + "stroke-width", n), i = ni(e, t + "stroke-color", n);
|
|
2785
2769
|
if (!r && !i) return null;
|
|
2786
|
-
let a =
|
|
2770
|
+
let a = X(e, t + "stroke-line-cap", n), o = X(e, t + "stroke-line-join", n), s = ri(e, t + "stroke-line-dash", n), c = Y(e, t + "stroke-line-dash-offset", n), l = Y(e, t + "stroke-miter-limit", n), u = Y(e, t + "stroke-offset", n), d = new Nr();
|
|
2787
2771
|
return function(e) {
|
|
2788
2772
|
if (i) {
|
|
2789
2773
|
let t = i(e);
|
|
2790
|
-
if (t ===
|
|
2774
|
+
if (t === He) return null;
|
|
2791
2775
|
d.setColor(t);
|
|
2792
2776
|
}
|
|
2793
2777
|
if (r && d.setWidth(r(e)), a) {
|
|
@@ -2803,10 +2787,10 @@ function Kr(e, t, n) {
|
|
|
2803
2787
|
return s && d.setLineDash(s(e)), c && d.setLineDashOffset(c(e)), l && d.setMiterLimit(l(e)), u && d.setOffset(u(e)), d;
|
|
2804
2788
|
};
|
|
2805
2789
|
}
|
|
2806
|
-
function
|
|
2807
|
-
let n = "text-", r =
|
|
2790
|
+
function Yr(e, t) {
|
|
2791
|
+
let n = "text-", r = X(e, "text-value", t);
|
|
2808
2792
|
if (!r) return null;
|
|
2809
|
-
let i =
|
|
2793
|
+
let i = qr(e, n, t), a = qr(e, "text-background-", t), o = Jr(e, n, t), s = Jr(e, "text-background-", t), c = X(e, "text-font", t), l = Y(e, "text-max-angle", t), u = Y(e, "text-offset-x", t), d = Y(e, "text-offset-y", t), f = ti(e, "text-overflow", t), p = X(e, "text-placement", t), m = Y(e, "text-repeat", t), h = oi(e, "text-scale", t), g = ti(e, "text-rotate-with-view", t), _ = Y(e, "text-rotation", t), v = X(e, "text-align", t), ee = X(e, "text-justify", t), y = X(e, "text-baseline", t), b = ti(e, "text-keep-upright", t), te = ri(e, "text-padding", t), x = new Br({ declutterMode: pi(e, "text-declutter-mode") });
|
|
2810
2794
|
return function(e) {
|
|
2811
2795
|
if (x.setText(r(e)), i && x.setFill(i(e)), a && x.setBackgroundFill(a(e)), o && x.setStroke(o(e)), s && x.setBackgroundStroke(s(e)), c && x.setFont(c(e)), l && x.setMaxAngle(l(e)), u && x.setOffsetX(u(e)), d && x.setOffsetY(d(e)), f && x.setOverflow(f(e)), p) {
|
|
2812
2796
|
let t = p(e);
|
|
@@ -2818,26 +2802,26 @@ function qr(e, t) {
|
|
|
2818
2802
|
if (t !== "left" && t !== "center" && t !== "right" && t !== "end" && t !== "start") throw Error("Expected left, right, center, start, or end for text-align");
|
|
2819
2803
|
x.setTextAlign(t);
|
|
2820
2804
|
}
|
|
2821
|
-
if (
|
|
2822
|
-
let t =
|
|
2805
|
+
if (ee) {
|
|
2806
|
+
let t = ee(e);
|
|
2823
2807
|
if (t !== "left" && t !== "right" && t !== "center") throw Error("Expected left, right, or center for text-justify");
|
|
2824
2808
|
x.setJustify(t);
|
|
2825
2809
|
}
|
|
2826
|
-
if (
|
|
2827
|
-
let t =
|
|
2810
|
+
if (y) {
|
|
2811
|
+
let t = y(e);
|
|
2828
2812
|
if (t !== "bottom" && t !== "top" && t !== "middle" && t !== "alphabetic" && t !== "hanging") throw Error("Expected bottom, top, middle, alphabetic, or hanging for text-baseline");
|
|
2829
2813
|
x.setTextBaseline(t);
|
|
2830
2814
|
}
|
|
2831
2815
|
return te && x.setPadding(te(e)), b && x.setKeepUpright(b(e)), x;
|
|
2832
2816
|
};
|
|
2833
2817
|
}
|
|
2834
|
-
function
|
|
2835
|
-
return "icon-src" in e ?
|
|
2818
|
+
function Xr(e, t) {
|
|
2819
|
+
return "icon-src" in e ? Zr(e, t) : "shape-points" in e ? Qr(e, t) : "circle-radius" in e ? $r(e, t) : null;
|
|
2836
2820
|
}
|
|
2837
|
-
function
|
|
2838
|
-
let n = "icon-src", r =
|
|
2839
|
-
p !== void 0 && (Array.isArray(p) && p.length > 0 && typeof p[0] == "string" ? h =
|
|
2840
|
-
let g =
|
|
2821
|
+
function Zr(e, t) {
|
|
2822
|
+
let n = "icon-src", r = hi(e[n], n), i = ii(e, "icon-anchor", t), a = oi(e, "icon-scale", t), o = Y(e, "icon-opacity", t), s = ii(e, "icon-displacement", t), c = Y(e, "icon-rotation", t), l = ti(e, "icon-rotate-with-view", t), u = ui(e, "icon-anchor-origin"), d = di(e, "icon-anchor-x-units"), f = di(e, "icon-anchor-y-units"), p = J(e, "icon-color"), m, h = null;
|
|
2823
|
+
p !== void 0 && (Array.isArray(p) && p.length > 0 && typeof p[0] == "string" ? h = ni(e, "icon-color", t) : m = _i(p, "icon-color"));
|
|
2824
|
+
let g = li(e, "icon-cross-origin"), _ = fi(e, "icon-offset"), v = ui(e, "icon-offset-origin"), ee = si(e, "icon-width"), y = {
|
|
2841
2825
|
src: r,
|
|
2842
2826
|
anchorOrigin: u,
|
|
2843
2827
|
anchorXUnits: d,
|
|
@@ -2845,66 +2829,66 @@ function Yr(e, t) {
|
|
|
2845
2829
|
crossOrigin: g,
|
|
2846
2830
|
offset: _,
|
|
2847
2831
|
offsetOrigin: v,
|
|
2848
|
-
height:
|
|
2849
|
-
width:
|
|
2850
|
-
size:
|
|
2851
|
-
declutterMode:
|
|
2832
|
+
height: si(e, "icon-height"),
|
|
2833
|
+
width: ee,
|
|
2834
|
+
size: ci(e, "icon-size"),
|
|
2835
|
+
declutterMode: pi(e, "icon-declutter-mode")
|
|
2852
2836
|
}, b = null;
|
|
2853
2837
|
return function(e) {
|
|
2854
2838
|
if (b) h && b.setColor(h(e));
|
|
2855
2839
|
else {
|
|
2856
2840
|
let t = h ? h(e) : m;
|
|
2857
|
-
b = new
|
|
2841
|
+
b = new Hn(t === void 0 ? Object.assign({}, y) : Object.assign({}, y, { color: t }));
|
|
2858
2842
|
}
|
|
2859
2843
|
return o && b.setOpacity(o(e)), s && b.setDisplacement(s(e)), c && b.setRotation(c(e)), l && b.setRotateWithView(l(e)), a && b.setScale(a(e)), i && b.setAnchor(i(e)), b;
|
|
2860
2844
|
};
|
|
2861
2845
|
}
|
|
2862
|
-
function
|
|
2863
|
-
let n = "shape-", r = "shape-points", i = "shape-radius", a =
|
|
2846
|
+
function Qr(e, t) {
|
|
2847
|
+
let n = "shape-", r = "shape-points", i = "shape-radius", a = gi(e[r], r);
|
|
2864
2848
|
if (!(i in e)) throw Error(`Expected a number for ${i}`);
|
|
2865
|
-
let o =
|
|
2849
|
+
let o = Y(e, i, t), s = typeof e[i] == "number" ? e[i] : 5, c = "shape-radius2", l = Y(e, c, t), u = typeof e[c] == "number" ? e[c] : void 0, d = qr(e, n, t), f = Jr(e, n, t), p = oi(e, "shape-scale", t), m = ii(e, "shape-displacement", t), h = Y(e, "shape-rotation", t), g = ti(e, "shape-rotate-with-view", t), _ = new Ar({
|
|
2866
2850
|
points: a,
|
|
2867
2851
|
radius: s,
|
|
2868
2852
|
radius2: u,
|
|
2869
|
-
angle:
|
|
2870
|
-
declutterMode:
|
|
2853
|
+
angle: si(e, "shape-angle"),
|
|
2854
|
+
declutterMode: pi(e, "shape-declutter-mode")
|
|
2871
2855
|
});
|
|
2872
2856
|
return function(e) {
|
|
2873
2857
|
return o && _.setRadius(o(e)), l && _.setRadius2(l(e)), d && _.setFill(d(e)), f && _.setStroke(f(e)), m && _.setDisplacement(m(e)), h && _.setRotation(h(e)), g && _.setRotateWithView(g(e)), p && _.setScale(p(e)), _;
|
|
2874
2858
|
};
|
|
2875
2859
|
}
|
|
2876
|
-
function
|
|
2877
|
-
let n = "circle-", r =
|
|
2860
|
+
function $r(e, t) {
|
|
2861
|
+
let n = "circle-", r = qr(e, n, t), i = Jr(e, n, t), a = Y(e, "circle-radius", t), o = oi(e, "circle-scale", t), s = ii(e, "circle-displacement", t), c = Y(e, "circle-rotation", t), l = ti(e, "circle-rotate-with-view", t), u = new jr({
|
|
2878
2862
|
radius: 5,
|
|
2879
|
-
declutterMode:
|
|
2863
|
+
declutterMode: pi(e, "circle-declutter-mode")
|
|
2880
2864
|
});
|
|
2881
2865
|
return function(e) {
|
|
2882
2866
|
return a && u.setRadius(a(e)), r && u.setFill(r(e)), i && u.setStroke(i(e)), s && u.setDisplacement(s(e)), c && u.setRotation(c(e)), l && u.setRotateWithView(l(e)), o && u.setScale(o(e)), u;
|
|
2883
2867
|
};
|
|
2884
2868
|
}
|
|
2885
|
-
function
|
|
2869
|
+
function J(e, t) {
|
|
2886
2870
|
if (!(t in e)) return;
|
|
2887
2871
|
let n = e[t];
|
|
2888
2872
|
return n === void 0 ? void 0 : n;
|
|
2889
2873
|
}
|
|
2890
|
-
function
|
|
2891
|
-
let r =
|
|
2874
|
+
function Y(e, t, n) {
|
|
2875
|
+
let r = J(e, t);
|
|
2892
2876
|
if (r === void 0) return;
|
|
2893
|
-
let i =
|
|
2877
|
+
let i = G(r, N, n);
|
|
2894
2878
|
return function(e) {
|
|
2895
|
-
return
|
|
2879
|
+
return gi(i(e), t);
|
|
2896
2880
|
};
|
|
2897
2881
|
}
|
|
2898
|
-
function
|
|
2899
|
-
let r =
|
|
2882
|
+
function X(e, t, n) {
|
|
2883
|
+
let r = J(e, t);
|
|
2900
2884
|
if (r === void 0) return null;
|
|
2901
|
-
let i =
|
|
2885
|
+
let i = G(r, P, n);
|
|
2902
2886
|
return function(e) {
|
|
2903
|
-
return
|
|
2887
|
+
return hi(i(e), t);
|
|
2904
2888
|
};
|
|
2905
2889
|
}
|
|
2906
|
-
function
|
|
2907
|
-
let r =
|
|
2890
|
+
function ei(e, t, n) {
|
|
2891
|
+
let r = X(e, t + "pattern-src", n), i = ai(e, t + "pattern-offset", n), a = ai(e, t + "pattern-size", n), o = ni(e, t + "color", n);
|
|
2908
2892
|
return function(e) {
|
|
2909
2893
|
return {
|
|
2910
2894
|
src: r(e),
|
|
@@ -2914,33 +2898,33 @@ function Qr(e, t, n) {
|
|
|
2914
2898
|
};
|
|
2915
2899
|
};
|
|
2916
2900
|
}
|
|
2917
|
-
function
|
|
2918
|
-
let r =
|
|
2901
|
+
function ti(e, t, n) {
|
|
2902
|
+
let r = J(e, t);
|
|
2919
2903
|
if (r === void 0) return null;
|
|
2920
|
-
let i =
|
|
2904
|
+
let i = G(r, M, n);
|
|
2921
2905
|
return function(e) {
|
|
2922
2906
|
let n = i(e);
|
|
2923
2907
|
if (typeof n != "boolean") throw Error(`Expected a boolean for ${t}`);
|
|
2924
2908
|
return n;
|
|
2925
2909
|
};
|
|
2926
2910
|
}
|
|
2927
|
-
function
|
|
2928
|
-
let r =
|
|
2911
|
+
function ni(e, t, n) {
|
|
2912
|
+
let r = J(e, t);
|
|
2929
2913
|
if (r === void 0) return null;
|
|
2930
|
-
let i =
|
|
2914
|
+
let i = G(r, F, n);
|
|
2931
2915
|
return function(e) {
|
|
2932
|
-
return
|
|
2916
|
+
return _i(i(e), t);
|
|
2933
2917
|
};
|
|
2934
2918
|
}
|
|
2935
|
-
function
|
|
2936
|
-
let r =
|
|
2919
|
+
function ri(e, t, n) {
|
|
2920
|
+
let r = J(e, t);
|
|
2937
2921
|
if (r === void 0) return null;
|
|
2938
2922
|
if (Array.isArray(r) && (r.length === 0 || typeof r[0] != "string")) {
|
|
2939
2923
|
let e = r.map((e, r) => {
|
|
2940
2924
|
if (typeof e == "number") return () => e;
|
|
2941
|
-
let i =
|
|
2925
|
+
let i = G(e, N, n);
|
|
2942
2926
|
return function(e) {
|
|
2943
|
-
return
|
|
2927
|
+
return gi(i(e), `${t}[${r}]`);
|
|
2944
2928
|
};
|
|
2945
2929
|
});
|
|
2946
2930
|
return function(t) {
|
|
@@ -2949,78 +2933,78 @@ function ti(e, t, n) {
|
|
|
2949
2933
|
return n;
|
|
2950
2934
|
};
|
|
2951
2935
|
}
|
|
2952
|
-
let i =
|
|
2936
|
+
let i = G(r, I, n);
|
|
2953
2937
|
return function(e) {
|
|
2954
|
-
return
|
|
2938
|
+
return mi(i(e), t);
|
|
2955
2939
|
};
|
|
2956
2940
|
}
|
|
2957
|
-
function
|
|
2958
|
-
let r =
|
|
2941
|
+
function ii(e, t, n) {
|
|
2942
|
+
let r = J(e, t);
|
|
2959
2943
|
if (r === void 0) return null;
|
|
2960
|
-
let i =
|
|
2944
|
+
let i = G(r, I, n);
|
|
2961
2945
|
return function(e) {
|
|
2962
|
-
let n =
|
|
2946
|
+
let n = mi(i(e), t);
|
|
2963
2947
|
if (n.length !== 2) throw Error(`Expected two numbers for ${t}`);
|
|
2964
2948
|
return n;
|
|
2965
2949
|
};
|
|
2966
2950
|
}
|
|
2967
|
-
function
|
|
2968
|
-
let r =
|
|
2951
|
+
function ai(e, t, n) {
|
|
2952
|
+
let r = J(e, t);
|
|
2969
2953
|
if (r === void 0) return null;
|
|
2970
|
-
let i =
|
|
2954
|
+
let i = G(r, I, n);
|
|
2971
2955
|
return function(e) {
|
|
2972
|
-
return
|
|
2956
|
+
return vi(i(e), t);
|
|
2973
2957
|
};
|
|
2974
2958
|
}
|
|
2975
|
-
function
|
|
2976
|
-
let r =
|
|
2959
|
+
function oi(e, t, n) {
|
|
2960
|
+
let r = J(e, t);
|
|
2977
2961
|
if (r === void 0) return null;
|
|
2978
|
-
let i =
|
|
2962
|
+
let i = G(r, I | N, n);
|
|
2979
2963
|
return function(e) {
|
|
2980
|
-
return
|
|
2964
|
+
return yi(i(e), t);
|
|
2981
2965
|
};
|
|
2982
2966
|
}
|
|
2983
|
-
function
|
|
2967
|
+
function si(e, t) {
|
|
2984
2968
|
let n = e[t];
|
|
2985
2969
|
if (n !== void 0) {
|
|
2986
2970
|
if (typeof n != "number") throw Error(`Expected a number for ${t}`);
|
|
2987
2971
|
return n;
|
|
2988
2972
|
}
|
|
2989
2973
|
}
|
|
2990
|
-
function
|
|
2974
|
+
function ci(e, t) {
|
|
2991
2975
|
let n = e[t];
|
|
2992
2976
|
if (n !== void 0) {
|
|
2993
|
-
if (typeof n == "number") return
|
|
2977
|
+
if (typeof n == "number") return fe(n);
|
|
2994
2978
|
if (!Array.isArray(n) || n.length !== 2 || typeof n[0] != "number" || typeof n[1] != "number") throw Error(`Expected a number or size array for ${t}`);
|
|
2995
2979
|
return n;
|
|
2996
2980
|
}
|
|
2997
2981
|
}
|
|
2998
|
-
function
|
|
2982
|
+
function li(e, t) {
|
|
2999
2983
|
let n = e[t];
|
|
3000
2984
|
if (n !== void 0) {
|
|
3001
2985
|
if (typeof n != "string") throw Error(`Expected a string for ${t}`);
|
|
3002
2986
|
return n;
|
|
3003
2987
|
}
|
|
3004
2988
|
}
|
|
3005
|
-
function
|
|
2989
|
+
function ui(e, t) {
|
|
3006
2990
|
let n = e[t];
|
|
3007
2991
|
if (n !== void 0) {
|
|
3008
2992
|
if (n !== "bottom-left" && n !== "bottom-right" && n !== "top-left" && n !== "top-right") throw Error(`Expected bottom-left, bottom-right, top-left, or top-right for ${t}`);
|
|
3009
2993
|
return n;
|
|
3010
2994
|
}
|
|
3011
2995
|
}
|
|
3012
|
-
function
|
|
2996
|
+
function di(e, t) {
|
|
3013
2997
|
let n = e[t];
|
|
3014
2998
|
if (n !== void 0) {
|
|
3015
2999
|
if (n !== "pixels" && n !== "fraction") throw Error(`Expected pixels or fraction for ${t}`);
|
|
3016
3000
|
return n;
|
|
3017
3001
|
}
|
|
3018
3002
|
}
|
|
3019
|
-
function
|
|
3003
|
+
function fi(e, t) {
|
|
3020
3004
|
let n = e[t];
|
|
3021
|
-
if (n !== void 0) return
|
|
3005
|
+
if (n !== void 0) return mi(n, t);
|
|
3022
3006
|
}
|
|
3023
|
-
function
|
|
3007
|
+
function pi(e, t) {
|
|
3024
3008
|
let n = e[t];
|
|
3025
3009
|
if (n !== void 0) {
|
|
3026
3010
|
if (typeof n != "string") throw Error(`Expected a string for ${t}`);
|
|
@@ -3028,37 +3012,36 @@ function di(e, t) {
|
|
|
3028
3012
|
return n;
|
|
3029
3013
|
}
|
|
3030
3014
|
}
|
|
3031
|
-
function
|
|
3015
|
+
function mi(e, t) {
|
|
3032
3016
|
if (!Array.isArray(e)) throw Error(`Expected an array for ${t}`);
|
|
3033
3017
|
let n = e.length;
|
|
3034
3018
|
for (let r = 0; r < n; ++r) if (typeof e[r] != "number") throw Error(`Expected an array of numbers for ${t}`);
|
|
3035
3019
|
return e;
|
|
3036
3020
|
}
|
|
3037
|
-
function
|
|
3021
|
+
function hi(e, t) {
|
|
3038
3022
|
if (typeof e != "string") throw Error(`Expected a string for ${t}`);
|
|
3039
3023
|
return e;
|
|
3040
3024
|
}
|
|
3041
|
-
function
|
|
3025
|
+
function gi(e, t) {
|
|
3042
3026
|
if (typeof e != "number") throw Error(`Expected a number for ${t}`);
|
|
3043
3027
|
return e;
|
|
3044
3028
|
}
|
|
3045
|
-
function
|
|
3029
|
+
function _i(e, t) {
|
|
3046
3030
|
if (typeof e == "string") return e;
|
|
3047
|
-
let n =
|
|
3031
|
+
let n = mi(e, t), r = n.length;
|
|
3048
3032
|
if (r < 3 || r > 4) throw Error(`Expected a color with 3 or 4 values for ${t}`);
|
|
3049
3033
|
return n;
|
|
3050
3034
|
}
|
|
3051
|
-
function
|
|
3052
|
-
let n =
|
|
3035
|
+
function vi(e, t) {
|
|
3036
|
+
let n = mi(e, t);
|
|
3053
3037
|
if (n.length !== 2) throw Error(`Expected an array of two numbers for ${t}`);
|
|
3054
3038
|
return n;
|
|
3055
3039
|
}
|
|
3056
|
-
function
|
|
3057
|
-
return typeof e == "number" ? e :
|
|
3040
|
+
function yi(e, t) {
|
|
3041
|
+
return typeof e == "number" ? e : vi(e, t);
|
|
3058
3042
|
}
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
var vi = { RENDER_ORDER: "renderOrder" }, yi = class extends Ze {
|
|
3043
|
+
// ../node_modules/ol/layer/BaseVector.js
|
|
3044
|
+
var bi = { RENDER_ORDER: "renderOrder" }, xi = class extends $e {
|
|
3062
3045
|
constructor(e) {
|
|
3063
3046
|
e ||= {};
|
|
3064
3047
|
let t = Object.assign({}, e);
|
|
@@ -3074,7 +3057,7 @@ var vi = { RENDER_ORDER: "renderOrder" }, yi = class extends Ze {
|
|
|
3074
3057
|
return this.renderBuffer_;
|
|
3075
3058
|
}
|
|
3076
3059
|
getRenderOrder() {
|
|
3077
|
-
return this.get(
|
|
3060
|
+
return this.get(bi.RENDER_ORDER);
|
|
3078
3061
|
}
|
|
3079
3062
|
getStyle() {
|
|
3080
3063
|
return this.style_;
|
|
@@ -3090,39 +3073,38 @@ var vi = { RENDER_ORDER: "renderOrder" }, yi = class extends Ze {
|
|
|
3090
3073
|
}
|
|
3091
3074
|
renderDeclutter(e, t) {
|
|
3092
3075
|
let n = this.getDeclutter();
|
|
3093
|
-
n in e.declutter || (e.declutter[n] = new
|
|
3076
|
+
n in e.declutter || (e.declutter[n] = new ot(9)), this.getRenderer().renderDeclutter(e, t);
|
|
3094
3077
|
}
|
|
3095
3078
|
setRenderOrder(e) {
|
|
3096
|
-
this.set(
|
|
3079
|
+
this.set(bi.RENDER_ORDER, e);
|
|
3097
3080
|
}
|
|
3098
3081
|
setStyle(e) {
|
|
3099
|
-
this.style_ = e === void 0 ?
|
|
3100
|
-
let t =
|
|
3101
|
-
this.styleFunction_ = e === null ? void 0 :
|
|
3082
|
+
this.style_ = e === void 0 ? Ir : e;
|
|
3083
|
+
let t = Si(e);
|
|
3084
|
+
this.styleFunction_ = e === null ? void 0 : Pr(t), this.changed();
|
|
3102
3085
|
}
|
|
3103
3086
|
setDeclutter(e) {
|
|
3104
3087
|
this.declutter_ = e ? String(e) : void 0, this.changed();
|
|
3105
3088
|
}
|
|
3106
3089
|
};
|
|
3107
|
-
function
|
|
3108
|
-
if (e === void 0) return
|
|
3090
|
+
function Si(e) {
|
|
3091
|
+
if (e === void 0) return Ir;
|
|
3109
3092
|
if (!e) return null;
|
|
3110
|
-
if (typeof e == "function" || e instanceof
|
|
3093
|
+
if (typeof e == "function" || e instanceof q) return e;
|
|
3111
3094
|
if (Array.isArray(e) && e.length === 0) return [];
|
|
3112
|
-
if (Array.isArray(e) && e[0] instanceof
|
|
3095
|
+
if (Array.isArray(e) && e[0] instanceof q) {
|
|
3113
3096
|
let t = e.length, n = Array(t);
|
|
3114
3097
|
for (let r = 0; r < t; ++r) {
|
|
3115
3098
|
let t = e[r];
|
|
3116
|
-
if (!(t instanceof
|
|
3099
|
+
if (!(t instanceof q)) throw Error("Expected a list of style instances");
|
|
3117
3100
|
n[r] = t;
|
|
3118
3101
|
}
|
|
3119
3102
|
return n;
|
|
3120
3103
|
}
|
|
3121
|
-
return
|
|
3104
|
+
return Wr(e);
|
|
3122
3105
|
}
|
|
3123
|
-
|
|
3124
|
-
|
|
3125
|
-
var xi = {
|
|
3106
|
+
// ../node_modules/ol/pointer/EventType.js
|
|
3107
|
+
var Ci = {
|
|
3126
3108
|
POINTERMOVE: "pointermove",
|
|
3127
3109
|
POINTERDOWN: "pointerdown",
|
|
3128
3110
|
POINTERUP: "pointerup",
|
|
@@ -3131,83 +3113,83 @@ var xi = {
|
|
|
3131
3113
|
POINTERENTER: "pointerenter",
|
|
3132
3114
|
POINTERLEAVE: "pointerleave",
|
|
3133
3115
|
POINTERCANCEL: "pointercancel"
|
|
3134
|
-
},
|
|
3116
|
+
}, wi = class extends f {
|
|
3135
3117
|
constructor(e, t) {
|
|
3136
3118
|
super(e), this.map_ = e, this.clickTimeoutId_, this.emulateClicks_ = !1, this.dragging_ = !1, this.dragListenerKeys_ = [], this.moveTolerance_ = t === void 0 ? 1 : t, this.down_ = null;
|
|
3137
3119
|
let n = this.map_.getViewport();
|
|
3138
|
-
this.activePointers_ = [], this.trackedTouches_ = {}, this.element_ = n, this.pointerdownListenerKey_ =
|
|
3120
|
+
this.activePointers_ = [], this.trackedTouches_ = {}, this.element_ = n, this.pointerdownListenerKey_ = S(n, Ci.POINTERDOWN, this.handlePointerDown_, this), this.originalPointerMoveEvent_, this.relayedListenerKey_ = S(n, Ci.POINTERMOVE, this.relayMoveEvent_, this), this.boundHandleTouchMove_ = this.handleTouchMove_.bind(this), this.element_.addEventListener(_.TOUCHMOVE, this.boundHandleTouchMove_, le ? { passive: !1 } : !1);
|
|
3139
3121
|
}
|
|
3140
3122
|
emulateClick_(e) {
|
|
3141
|
-
let t = new
|
|
3123
|
+
let t = new A(k.CLICK, this.map_, e);
|
|
3142
3124
|
this.dispatchEvent(t), this.clickTimeoutId_ === void 0 ? this.clickTimeoutId_ = setTimeout(() => {
|
|
3143
3125
|
this.clickTimeoutId_ = void 0;
|
|
3144
|
-
let t = new
|
|
3126
|
+
let t = new A(k.SINGLECLICK, this.map_, e);
|
|
3145
3127
|
this.dispatchEvent(t);
|
|
3146
|
-
}, 250) : (clearTimeout(this.clickTimeoutId_), this.clickTimeoutId_ = void 0, t = new
|
|
3128
|
+
}, 250) : (clearTimeout(this.clickTimeoutId_), this.clickTimeoutId_ = void 0, t = new A(k.DBLCLICK, this.map_, e), this.dispatchEvent(t));
|
|
3147
3129
|
}
|
|
3148
3130
|
updateActivePointers_(e) {
|
|
3149
3131
|
let t = e, n = t.pointerId;
|
|
3150
|
-
if (t.type ==
|
|
3132
|
+
if (t.type == k.POINTERUP || t.type == k.POINTERCANCEL) {
|
|
3151
3133
|
delete this.trackedTouches_[n];
|
|
3152
3134
|
for (let e in this.trackedTouches_) if (this.trackedTouches_[e].target !== t.target) {
|
|
3153
3135
|
delete this.trackedTouches_[e];
|
|
3154
3136
|
break;
|
|
3155
3137
|
}
|
|
3156
|
-
} else (t.type ==
|
|
3138
|
+
} else (t.type == k.POINTERDOWN || t.type == k.POINTERMOVE) && (this.trackedTouches_[n] = t);
|
|
3157
3139
|
this.activePointers_ = Object.values(this.trackedTouches_);
|
|
3158
3140
|
}
|
|
3159
3141
|
handlePointerUp_(e) {
|
|
3160
3142
|
this.updateActivePointers_(e);
|
|
3161
|
-
let t = new
|
|
3162
|
-
this.dispatchEvent(t), this.emulateClicks_ && !t.defaultPrevented && !this.dragging_ && this.isMouseActionButton_(e) && this.emulateClick_(this.down_), this.activePointers_.length === 0 && (this.dragListenerKeys_.forEach(
|
|
3143
|
+
let t = new A(k.POINTERUP, this.map_, e, void 0, void 0, this.activePointers_);
|
|
3144
|
+
this.dispatchEvent(t), this.emulateClicks_ && !t.defaultPrevented && !this.dragging_ && this.isMouseActionButton_(e) && this.emulateClick_(this.down_), this.activePointers_.length === 0 && (this.dragListenerKeys_.forEach(v), this.dragListenerKeys_.length = 0, this.dragging_ = !1, this.down_ = null);
|
|
3163
3145
|
}
|
|
3164
3146
|
isMouseActionButton_(e) {
|
|
3165
3147
|
return e.button === 0;
|
|
3166
3148
|
}
|
|
3167
3149
|
handlePointerDown_(e) {
|
|
3168
3150
|
this.emulateClicks_ = this.activePointers_.length === 0, this.updateActivePointers_(e);
|
|
3169
|
-
let t = new
|
|
3151
|
+
let t = new A(k.POINTERDOWN, this.map_, e, void 0, void 0, this.activePointers_);
|
|
3170
3152
|
if (this.dispatchEvent(t), this.down_ = new PointerEvent(e.type, e), Object.defineProperty(this.down_, "target", {
|
|
3171
3153
|
writable: !1,
|
|
3172
3154
|
value: e.target
|
|
3173
3155
|
}), this.dragListenerKeys_.length === 0) {
|
|
3174
3156
|
let e = this.map_.getOwnerDocument();
|
|
3175
|
-
this.dragListenerKeys_.push(
|
|
3157
|
+
this.dragListenerKeys_.push(S(e, k.POINTERMOVE, this.handlePointerMove_, this), S(e, k.POINTERUP, this.handlePointerUp_, this), S(this.element_, k.POINTERCANCEL, this.handlePointerUp_, this)), this.element_.getRootNode && this.element_.getRootNode() !== e && this.dragListenerKeys_.push(S(this.element_.getRootNode(), k.POINTERUP, this.handlePointerUp_, this));
|
|
3176
3158
|
}
|
|
3177
3159
|
}
|
|
3178
3160
|
handlePointerMove_(e) {
|
|
3179
3161
|
if (this.isMoving_(e)) {
|
|
3180
3162
|
this.updateActivePointers_(e), this.dragging_ = !0;
|
|
3181
|
-
let t = new
|
|
3163
|
+
let t = new A(k.POINTERDRAG, this.map_, e, this.dragging_, void 0, this.activePointers_);
|
|
3182
3164
|
this.dispatchEvent(t);
|
|
3183
3165
|
}
|
|
3184
3166
|
}
|
|
3185
3167
|
relayMoveEvent_(e) {
|
|
3186
3168
|
this.originalPointerMoveEvent_ = e;
|
|
3187
3169
|
let t = !!(this.down_ && this.isMoving_(e));
|
|
3188
|
-
this.dispatchEvent(new
|
|
3170
|
+
this.dispatchEvent(new A(k.POINTERMOVE, this.map_, e, t));
|
|
3189
3171
|
}
|
|
3190
3172
|
handleTouchMove_(e) {
|
|
3191
3173
|
let t = this.originalPointerMoveEvent_;
|
|
3192
|
-
|
|
3174
|
+
t && !t.defaultPrevented || typeof e.cancelable == "boolean" && e.cancelable !== !0 || e.preventDefault();
|
|
3193
3175
|
}
|
|
3194
3176
|
isMoving_(e) {
|
|
3195
3177
|
return this.dragging_ || Math.abs(e.clientX - this.down_.clientX) > this.moveTolerance_ || Math.abs(e.clientY - this.down_.clientY) > this.moveTolerance_;
|
|
3196
3178
|
}
|
|
3197
3179
|
disposeInternal() {
|
|
3198
|
-
this.relayedListenerKey_ &&= (
|
|
3180
|
+
this.relayedListenerKey_ &&= (v(this.relayedListenerKey_), null), this.element_.removeEventListener(_.TOUCHMOVE, this.boundHandleTouchMove_), this.pointerdownListenerKey_ &&= (v(this.pointerdownListenerKey_), null), this.dragListenerKeys_.forEach(v), this.dragListenerKeys_.length = 0, this.element_ = null, super.disposeInternal();
|
|
3199
3181
|
}
|
|
3200
|
-
},
|
|
3182
|
+
}, Z = {
|
|
3201
3183
|
LAYERGROUP: "layergroup",
|
|
3202
3184
|
SIZE: "size",
|
|
3203
3185
|
TARGET: "target",
|
|
3204
3186
|
VIEW: "view"
|
|
3205
|
-
},
|
|
3187
|
+
}, Ti = Infinity, Ei = class {
|
|
3206
3188
|
constructor(e, t) {
|
|
3207
3189
|
this.priorityFunction_ = e, this.keyFunction_ = t, this.elements_ = [], this.priorities_ = [], this.queuedElements_ = {};
|
|
3208
3190
|
}
|
|
3209
3191
|
clear() {
|
|
3210
|
-
this.elements_.length = 0, this.priorities_.length = 0,
|
|
3192
|
+
this.elements_.length = 0, this.priorities_.length = 0, ie(this.queuedElements_);
|
|
3211
3193
|
}
|
|
3212
3194
|
dequeue() {
|
|
3213
3195
|
let e = this.elements_, t = this.priorities_, n = e[0];
|
|
@@ -3216,7 +3198,7 @@ var xi = {
|
|
|
3216
3198
|
return delete this.queuedElements_[r], n;
|
|
3217
3199
|
}
|
|
3218
3200
|
enqueue(e) {
|
|
3219
|
-
|
|
3201
|
+
E(!(this.keyFunction_(e) in this.queuedElements_), "Tried to enqueue an `element` that was already added to the queue");
|
|
3220
3202
|
let t = this.priorityFunction_(e);
|
|
3221
3203
|
return t != Infinity && (this.elements_.push(e), this.priorities_.push(t), this.queuedElements_[this.keyFunction_(e)] = !0, this.siftDown_(0, this.elements_.length - 1), !0);
|
|
3222
3204
|
}
|
|
@@ -3267,21 +3249,21 @@ var xi = {
|
|
|
3267
3249
|
for (o = 0; o < i; ++o) a = t[o], s = e(a), s == Infinity ? delete this.queuedElements_[this.keyFunction_(a)] : (n[r] = s, t[r++] = a);
|
|
3268
3250
|
t.length = r, n.length = r, this.heapify_();
|
|
3269
3251
|
}
|
|
3270
|
-
},
|
|
3252
|
+
}, Di = class extends Ei {
|
|
3271
3253
|
constructor(e, t) {
|
|
3272
3254
|
super((t) => e.apply(null, t), (e) => e[0].getKey()), this.boundHandleTileChange_ = this.handleTileChange.bind(this), this.tileChangeCallback_ = t, this.tilesLoading_ = 0, this.tilesLoadingKeys_ = {};
|
|
3273
3255
|
}
|
|
3274
3256
|
enqueue(e) {
|
|
3275
3257
|
let t = super.enqueue(e);
|
|
3276
|
-
return t && e[0].addEventListener(
|
|
3258
|
+
return t && e[0].addEventListener(_.CHANGE, this.boundHandleTileChange_), t;
|
|
3277
3259
|
}
|
|
3278
3260
|
getTilesLoading() {
|
|
3279
3261
|
return this.tilesLoading_;
|
|
3280
3262
|
}
|
|
3281
3263
|
handleTileChange(e) {
|
|
3282
3264
|
let t = e.target, n = t.getState();
|
|
3283
|
-
if (n ===
|
|
3284
|
-
n !==
|
|
3265
|
+
if (n === he.LOADED || n === he.ERROR || n === he.EMPTY) {
|
|
3266
|
+
n !== he.ERROR && t.removeEventListener(_.CHANGE, this.boundHandleTileChange_);
|
|
3285
3267
|
let e = t.getKey();
|
|
3286
3268
|
e in this.tilesLoadingKeys_ && (delete this.tilesLoadingKeys_[e], --this.tilesLoading_), this.tileChangeCallback_();
|
|
3287
3269
|
}
|
|
@@ -3290,32 +3272,31 @@ var xi = {
|
|
|
3290
3272
|
let n = 0;
|
|
3291
3273
|
for (; this.tilesLoading_ < e && n < t && this.getCount() > 0;) {
|
|
3292
3274
|
let e = this.dequeue()[0], t = e.getKey();
|
|
3293
|
-
e.getState() ===
|
|
3275
|
+
e.getState() === he.IDLE && !(t in this.tilesLoadingKeys_) && (this.tilesLoadingKeys_[t] = !0, ++this.tilesLoading_, ++n, e.load());
|
|
3294
3276
|
}
|
|
3295
3277
|
}
|
|
3296
3278
|
};
|
|
3297
|
-
function
|
|
3298
|
-
if (!e || !(n in e.wantedTiles) || !e.wantedTiles[n][t.getKey()]) return
|
|
3279
|
+
function Oi(e, t, n, r, i) {
|
|
3280
|
+
if (!e || !(n in e.wantedTiles) || !e.wantedTiles[n][t.getKey()]) return Ti;
|
|
3299
3281
|
let a = e.viewState.center, o = r[0] - a[0], s = r[1] - a[1];
|
|
3300
3282
|
return 65536 * Math.log(i) + Math.sqrt(o * o + s * s) / i;
|
|
3301
3283
|
}
|
|
3302
|
-
|
|
3303
|
-
|
|
3304
|
-
var Di = class extends s {
|
|
3284
|
+
// ../node_modules/ol/control/Attribution.js
|
|
3285
|
+
var ki = class extends ke {
|
|
3305
3286
|
constructor(e) {
|
|
3306
3287
|
e ||= {}, super({
|
|
3307
3288
|
element: document.createElement("div"),
|
|
3308
3289
|
render: e.render,
|
|
3309
3290
|
target: e.target
|
|
3310
3291
|
}), this.ulElement_ = document.createElement("ul"), this.collapsed_ = e.collapsed === void 0 || e.collapsed, this.userCollapsed_ = this.collapsed_, this.overrideCollapsible_ = e.collapsible !== void 0, this.collapsible_ = e.collapsible === void 0 || e.collapsible, this.collapsible_ || (this.collapsed_ = !1), this.attributions_ = e.attributions;
|
|
3311
|
-
let t = e.className === void 0 ? "ol-attribution" : e.className, n = e.tipLabel === void 0 ? "Attributions" : e.tipLabel, r = e.expandClassName === void 0 ? t + "-expand" : e.expandClassName,
|
|
3312
|
-
typeof
|
|
3313
|
-
let
|
|
3314
|
-
typeof
|
|
3315
|
-
let
|
|
3316
|
-
this.toggleButton_ = document.createElement("button"), this.toggleButton_.setAttribute("type", "button"), this.toggleButton_.setAttribute("aria-expanded", String(!this.collapsed_)), this.toggleButton_.title = n, this.toggleButton_.appendChild(
|
|
3317
|
-
let
|
|
3318
|
-
|
|
3292
|
+
let t = e.className === void 0 ? "ol-attribution" : e.className, n = e.tipLabel === void 0 ? "Attributions" : e.tipLabel, r = e.expandClassName === void 0 ? t + "-expand" : e.expandClassName, i = e.collapseLabel === void 0 ? "›" : e.collapseLabel, a = e.collapseClassName === void 0 ? t + "-collapse" : e.collapseClassName;
|
|
3293
|
+
typeof i == "string" ? (this.collapseLabel_ = document.createElement("span"), this.collapseLabel_.textContent = i, this.collapseLabel_.className = a) : this.collapseLabel_ = i;
|
|
3294
|
+
let o = e.label === void 0 ? "i" : e.label;
|
|
3295
|
+
typeof o == "string" ? (this.label_ = document.createElement("span"), this.label_.textContent = o, this.label_.className = r) : this.label_ = o;
|
|
3296
|
+
let s = this.collapsible_ && !this.collapsed_ ? this.collapseLabel_ : this.label_;
|
|
3297
|
+
this.toggleButton_ = document.createElement("button"), this.toggleButton_.setAttribute("type", "button"), this.toggleButton_.setAttribute("aria-expanded", String(!this.collapsed_)), this.toggleButton_.title = n, this.toggleButton_.appendChild(s), this.toggleButton_.addEventListener(_.CLICK, this.handleClick_.bind(this), !1);
|
|
3298
|
+
let c = t + " " + De + " " + Oe + (this.collapsed_ && this.collapsible_ ? " " + Ee : "") + (this.collapsible_ ? "" : " ol-uncollapsible"), l = this.element;
|
|
3299
|
+
l.className = c, l.appendChild(this.toggleButton_), l.appendChild(this.ulElement_), this.renderedAttributions_ = [], this.renderedVisible_ = !0;
|
|
3319
3300
|
}
|
|
3320
3301
|
collectSourceAttributions_(e) {
|
|
3321
3302
|
let t = this.getMap().getAllLayers(), n = new Set(t.flatMap((t) => t.getAttributions(e)));
|
|
@@ -3330,21 +3311,21 @@ var Di = class extends s {
|
|
|
3330
3311
|
this.renderedVisible_ &&= (this.element.style.display = "none", !1);
|
|
3331
3312
|
return;
|
|
3332
3313
|
}
|
|
3333
|
-
let
|
|
3334
|
-
if (this.renderedVisible_ !=
|
|
3335
|
-
|
|
3336
|
-
for (let e = 0,
|
|
3337
|
-
let
|
|
3338
|
-
|
|
3314
|
+
let n = await Promise.all(this.collectSourceAttributions_(e).map((e) => g(() => e))), r = n.length > 0;
|
|
3315
|
+
if (this.renderedVisible_ != r && (this.element.style.display = r ? "" : "none", this.renderedVisible_ = r), !t(n, this.renderedAttributions_)) {
|
|
3316
|
+
ue(this.ulElement_);
|
|
3317
|
+
for (let e = 0, t = n.length; e < t; ++e) {
|
|
3318
|
+
let t = document.createElement("li");
|
|
3319
|
+
t.innerHTML = n[e], this.ulElement_.appendChild(t);
|
|
3339
3320
|
}
|
|
3340
|
-
this.renderedAttributions_ =
|
|
3321
|
+
this.renderedAttributions_ = n;
|
|
3341
3322
|
}
|
|
3342
3323
|
}
|
|
3343
3324
|
handleClick_(e) {
|
|
3344
3325
|
e.preventDefault(), this.handleToggle_(), this.userCollapsed_ = this.collapsed_;
|
|
3345
3326
|
}
|
|
3346
3327
|
handleToggle_() {
|
|
3347
|
-
this.element.classList.toggle(
|
|
3328
|
+
this.element.classList.toggle(Ee), this.collapsed_ ? Se(this.collapseLabel_, this.label_) : Se(this.label_, this.collapseLabel_), this.collapsed_ = !this.collapsed_, this.toggleButton_.setAttribute("aria-expanded", String(!this.collapsed_));
|
|
3348
3329
|
}
|
|
3349
3330
|
getCollapsible() {
|
|
3350
3331
|
return this.collapsible_;
|
|
@@ -3361,19 +3342,19 @@ var Di = class extends s {
|
|
|
3361
3342
|
render(e) {
|
|
3362
3343
|
this.updateElement_(e.frameState);
|
|
3363
3344
|
}
|
|
3364
|
-
},
|
|
3345
|
+
}, Ai = class extends ke {
|
|
3365
3346
|
constructor(e) {
|
|
3366
3347
|
e ||= {}, super({
|
|
3367
3348
|
element: document.createElement("div"),
|
|
3368
3349
|
render: e.render,
|
|
3369
3350
|
target: e.target
|
|
3370
3351
|
});
|
|
3371
|
-
let t = e.className === void 0 ? "ol-rotate" : e.className,
|
|
3372
|
-
this.label_ = null, typeof
|
|
3373
|
-
let
|
|
3374
|
-
|
|
3375
|
-
let
|
|
3376
|
-
|
|
3352
|
+
let t = e.className === void 0 ? "ol-rotate" : e.className, n = e.label === void 0 ? "⇧" : e.label, r = e.compassClassName === void 0 ? "ol-compass" : e.compassClassName;
|
|
3353
|
+
this.label_ = null, typeof n == "string" ? (this.label_ = document.createElement("span"), this.label_.className = r, this.label_.textContent = n) : (this.label_ = n, this.label_.classList.add(r));
|
|
3354
|
+
let i = e.tipLabel ? e.tipLabel : "Reset rotation", a = document.createElement("button");
|
|
3355
|
+
a.className = t + "-reset", a.setAttribute("type", "button"), a.title = i, a.appendChild(this.label_), a.addEventListener(_.CLICK, this.handleClick_.bind(this), !1);
|
|
3356
|
+
let o = t + " " + De + " " + Oe, s = this.element;
|
|
3357
|
+
s.className = o, s.appendChild(a), this.callResetNorth_ = e.resetNorth ? e.resetNorth : void 0, this.duration_ = e.duration === void 0 ? 250 : e.duration, this.autoHide_ = e.autoHide === void 0 || e.autoHide, this.rotation_ = void 0, this.autoHide_ && this.element.classList.add(we);
|
|
3377
3358
|
}
|
|
3378
3359
|
handleClick_(e) {
|
|
3379
3360
|
e.preventDefault(), this.callResetNorth_ === void 0 ? this.resetNorth_() : this.callResetNorth_();
|
|
@@ -3385,35 +3366,35 @@ var Di = class extends s {
|
|
|
3385
3366
|
t !== void 0 && (this.duration_ > 0 && t % (2 * Math.PI) != 0 ? e.animate({
|
|
3386
3367
|
rotation: 0,
|
|
3387
3368
|
duration: this.duration_,
|
|
3388
|
-
easing:
|
|
3369
|
+
easing: Le
|
|
3389
3370
|
}) : e.setRotation(0));
|
|
3390
3371
|
}
|
|
3391
3372
|
render(e) {
|
|
3392
3373
|
let t = e.frameState;
|
|
3393
3374
|
if (!t) return;
|
|
3394
|
-
let
|
|
3395
|
-
if (
|
|
3396
|
-
let e = "rotate(" +
|
|
3375
|
+
let n = t.viewState.rotation;
|
|
3376
|
+
if (n != this.rotation_) {
|
|
3377
|
+
let e = "rotate(" + n + "rad)";
|
|
3397
3378
|
if (this.autoHide_) {
|
|
3398
|
-
let e = this.element.classList.contains(
|
|
3399
|
-
!e &&
|
|
3379
|
+
let e = this.element.classList.contains(we);
|
|
3380
|
+
!e && n === 0 ? this.element.classList.add(we) : e && n !== 0 && this.element.classList.remove(we);
|
|
3400
3381
|
}
|
|
3401
3382
|
this.label_.style.transform = e;
|
|
3402
3383
|
}
|
|
3403
|
-
this.rotation_ =
|
|
3384
|
+
this.rotation_ = n;
|
|
3404
3385
|
}
|
|
3405
|
-
},
|
|
3386
|
+
}, ji = class extends ke {
|
|
3406
3387
|
constructor(e) {
|
|
3407
3388
|
e ||= {}, super({
|
|
3408
3389
|
element: document.createElement("div"),
|
|
3409
3390
|
target: e.target
|
|
3410
3391
|
});
|
|
3411
|
-
let t = e.className === void 0 ? "ol-zoom" : e.className, n = e.delta === void 0 ? 1 : e.delta, r = e.zoomInClassName === void 0 ? t + "-in" : e.zoomInClassName, i = e.zoomOutClassName === void 0 ? t + "-out" : e.zoomOutClassName,
|
|
3412
|
-
|
|
3413
|
-
let
|
|
3414
|
-
|
|
3415
|
-
let
|
|
3416
|
-
|
|
3392
|
+
let t = e.className === void 0 ? "ol-zoom" : e.className, n = e.delta === void 0 ? 1 : e.delta, r = e.zoomInClassName === void 0 ? t + "-in" : e.zoomInClassName, i = e.zoomOutClassName === void 0 ? t + "-out" : e.zoomOutClassName, a = e.zoomInLabel === void 0 ? "+" : e.zoomInLabel, o = e.zoomOutLabel === void 0 ? "–" : e.zoomOutLabel, s = e.zoomInTipLabel === void 0 ? "Zoom in" : e.zoomInTipLabel, c = e.zoomOutTipLabel === void 0 ? "Zoom out" : e.zoomOutTipLabel, l = document.createElement("button");
|
|
3393
|
+
l.className = r, l.setAttribute("type", "button"), l.title = s, l.appendChild(typeof a == "string" ? document.createTextNode(a) : a), l.addEventListener(_.CLICK, this.handleClick_.bind(this, n), !1);
|
|
3394
|
+
let u = document.createElement("button");
|
|
3395
|
+
u.className = i, u.setAttribute("type", "button"), u.title = c, u.appendChild(typeof o == "string" ? document.createTextNode(o) : o), u.addEventListener(_.CLICK, this.handleClick_.bind(this, -n), !1);
|
|
3396
|
+
let d = t + " " + De + " " + Oe, f = this.element;
|
|
3397
|
+
f.className = d, f.appendChild(l), f.appendChild(u), this.duration_ = e.duration === void 0 ? 250 : e.duration;
|
|
3417
3398
|
}
|
|
3418
3399
|
handleClick_(e, t) {
|
|
3419
3400
|
t.preventDefault(), this.zoomByDelta_(e);
|
|
@@ -3427,68 +3408,66 @@ var Di = class extends s {
|
|
|
3427
3408
|
this.duration_ > 0 ? (t.getAnimating() && t.cancelAnimations(), t.animate({
|
|
3428
3409
|
zoom: r,
|
|
3429
3410
|
duration: this.duration_,
|
|
3430
|
-
easing:
|
|
3411
|
+
easing: Le
|
|
3431
3412
|
})) : t.setZoom(r);
|
|
3432
3413
|
}
|
|
3433
3414
|
}
|
|
3434
3415
|
};
|
|
3435
|
-
|
|
3436
|
-
|
|
3437
|
-
function Ai(e) {
|
|
3416
|
+
// ../node_modules/ol/control/defaults.js
|
|
3417
|
+
function Mi(e) {
|
|
3438
3418
|
e ||= {};
|
|
3439
|
-
let t = new
|
|
3440
|
-
return (e.zoom === void 0 || e.zoom) && t.push(new
|
|
3419
|
+
let t = new O();
|
|
3420
|
+
return (e.zoom === void 0 || e.zoom) && t.push(new ji(e.zoomOptions)), (e.rotate === void 0 || e.rotate) && t.push(new Ai(e.rotateOptions)), (e.attribution === void 0 || e.attribution) && t.push(new ki(e.attributionOptions)), t;
|
|
3441
3421
|
}
|
|
3442
|
-
|
|
3443
|
-
|
|
3444
|
-
var ji = {
|
|
3422
|
+
// ../node_modules/ol/layer/Group.js
|
|
3423
|
+
var Q = {
|
|
3445
3424
|
ADDLAYER: "addlayer",
|
|
3446
3425
|
REMOVELAYER: "removelayer"
|
|
3447
|
-
},
|
|
3426
|
+
}, $ = class extends p {
|
|
3448
3427
|
constructor(e, t) {
|
|
3449
3428
|
super(e), this.layer = t;
|
|
3450
3429
|
}
|
|
3451
|
-
}, Ni = { LAYERS: "layers" }, Pi = class e extends
|
|
3430
|
+
}, Ni = { LAYERS: "layers" }, Pi = class e extends Ze {
|
|
3452
3431
|
constructor(e) {
|
|
3453
3432
|
e ||= {};
|
|
3454
3433
|
let t = Object.assign({}, e);
|
|
3455
3434
|
delete t.layers;
|
|
3456
3435
|
let n = e.layers;
|
|
3457
|
-
super(t), this.on, this.once, this.un, this.layersListenerKeys_ = [], this.listenerKeys_ = {}, this.addChangeListener(Ni.LAYERS, this.handleLayersChanged_), n ? Array.isArray(n) ? n = new
|
|
3436
|
+
super(t), this.on, this.once, this.un, this.layersListenerKeys_ = [], this.listenerKeys_ = {}, this.addChangeListener(Ni.LAYERS, this.handleLayersChanged_), n ? Array.isArray(n) ? n = new O(n.slice(), { unique: !0 }) : E(typeof n.getArray == "function", "Expected `layers` to be an array or a `Collection`") : n = new O(void 0, { unique: !0 }), this.setLayers(n);
|
|
3458
3437
|
}
|
|
3459
3438
|
handleLayerChange_() {
|
|
3460
3439
|
this.changed();
|
|
3461
3440
|
}
|
|
3462
3441
|
handleLayersChanged_() {
|
|
3463
|
-
this.layersListenerKeys_.forEach(
|
|
3442
|
+
this.layersListenerKeys_.forEach(v), this.layersListenerKeys_.length = 0;
|
|
3464
3443
|
let e = this.getLayers();
|
|
3465
|
-
this.layersListenerKeys_.push(
|
|
3466
|
-
for (let e in this.listenerKeys_) this.listenerKeys_[e].forEach(
|
|
3467
|
-
|
|
3444
|
+
this.layersListenerKeys_.push(S(e, D.ADD, this.handleLayersAdd_, this), S(e, D.REMOVE, this.handleLayersRemove_, this));
|
|
3445
|
+
for (let e in this.listenerKeys_) this.listenerKeys_[e].forEach(v);
|
|
3446
|
+
ie(this.listenerKeys_);
|
|
3468
3447
|
let t = e.getArray();
|
|
3469
3448
|
for (let e = 0, n = t.length; e < n; e++) {
|
|
3470
3449
|
let n = t[e];
|
|
3471
|
-
this.registerLayerListeners_(n), this.dispatchEvent(new
|
|
3450
|
+
this.registerLayerListeners_(n), this.dispatchEvent(new $(Q.ADDLAYER, n));
|
|
3472
3451
|
}
|
|
3473
3452
|
this.changed();
|
|
3474
3453
|
}
|
|
3475
3454
|
registerLayerListeners_(t) {
|
|
3476
|
-
let n = [
|
|
3477
|
-
t instanceof e && n.push(
|
|
3455
|
+
let n = [S(t, y.PROPERTYCHANGE, this.handleLayerChange_, this), S(t, _.CHANGE, this.handleLayerChange_, this)];
|
|
3456
|
+
t instanceof e && n.push(S(t, Q.ADDLAYER, this.handleLayerGroupAdd_, this), S(t, Q.REMOVELAYER, this.handleLayerGroupRemove_, this)), this.listenerKeys_[r(t)] = n;
|
|
3478
3457
|
}
|
|
3479
3458
|
handleLayerGroupAdd_(e) {
|
|
3480
|
-
this.dispatchEvent(new
|
|
3459
|
+
this.dispatchEvent(new $(Q.ADDLAYER, e.layer));
|
|
3481
3460
|
}
|
|
3482
3461
|
handleLayerGroupRemove_(e) {
|
|
3483
|
-
this.dispatchEvent(new
|
|
3462
|
+
this.dispatchEvent(new $(Q.REMOVELAYER, e.layer));
|
|
3484
3463
|
}
|
|
3485
3464
|
handleLayersAdd_(e) {
|
|
3486
3465
|
let t = e.element;
|
|
3487
|
-
this.registerLayerListeners_(t), this.dispatchEvent(new
|
|
3466
|
+
this.registerLayerListeners_(t), this.dispatchEvent(new $(Q.ADDLAYER, t)), this.changed();
|
|
3488
3467
|
}
|
|
3489
3468
|
handleLayersRemove_(e) {
|
|
3490
|
-
let t = e.element, n =
|
|
3491
|
-
this.listenerKeys_[n].forEach(
|
|
3469
|
+
let t = e.element, n = r(t);
|
|
3470
|
+
this.listenerKeys_[n].forEach(v), delete this.listenerKeys_[n], this.dispatchEvent(new $(Q.REMOVELAYER, t)), this.changed();
|
|
3492
3471
|
}
|
|
3493
3472
|
getLayers() {
|
|
3494
3473
|
return this.get(Ni.LAYERS);
|
|
@@ -3497,7 +3476,7 @@ var ji = {
|
|
|
3497
3476
|
let t = this.getLayers();
|
|
3498
3477
|
if (t) {
|
|
3499
3478
|
let e = t.getArray();
|
|
3500
|
-
for (let t = 0, n = e.length; t < n; ++t) this.dispatchEvent(new
|
|
3479
|
+
for (let t = 0, n = e.length; t < n; ++t) this.dispatchEvent(new $(Q.REMOVELAYER, e[t]));
|
|
3501
3480
|
}
|
|
3502
3481
|
this.set(Ni.LAYERS, e);
|
|
3503
3482
|
}
|
|
@@ -3515,126 +3494,125 @@ var ji = {
|
|
|
3515
3494
|
!e && r.zIndex === void 0 && (i = 0);
|
|
3516
3495
|
for (let e = n, a = t.length; e < a; e++) {
|
|
3517
3496
|
let n = t[e];
|
|
3518
|
-
n.opacity *= r.opacity, n.visible = n.visible && r.visible, n.maxResolution = Math.min(n.maxResolution, r.maxResolution), n.minResolution = Math.max(n.minResolution, r.minResolution), n.minZoom = Math.max(n.minZoom, r.minZoom), n.maxZoom = Math.min(n.maxZoom, r.maxZoom), r.extent !== void 0 && (n.extent = n.extent === void 0 ? r.extent :
|
|
3497
|
+
n.opacity *= r.opacity, n.visible = n.visible && r.visible, n.maxResolution = Math.min(n.maxResolution, r.maxResolution), n.minResolution = Math.max(n.minResolution, r.minResolution), n.minZoom = Math.max(n.minZoom, r.minZoom), n.maxZoom = Math.min(n.maxZoom, r.maxZoom), r.extent !== void 0 && (n.extent = n.extent === void 0 ? r.extent : se(n.extent, r.extent)), n.zIndex === void 0 && (n.zIndex = i);
|
|
3519
3498
|
}
|
|
3520
3499
|
return t;
|
|
3521
3500
|
}
|
|
3522
3501
|
getSourceState() {
|
|
3523
3502
|
return "ready";
|
|
3524
3503
|
}
|
|
3525
|
-
}, Fi = class extends
|
|
3504
|
+
}, Fi = class extends x {
|
|
3526
3505
|
constructor(e) {
|
|
3527
3506
|
super(), this.map_ = e;
|
|
3528
3507
|
}
|
|
3529
3508
|
dispatchRenderEvent(e, t) {
|
|
3530
|
-
|
|
3509
|
+
C();
|
|
3531
3510
|
}
|
|
3532
3511
|
calculateMatrices2D(e) {
|
|
3533
3512
|
let t = e.viewState, n = e.coordinateToPixelTransform, r = e.pixelToCoordinateTransform;
|
|
3534
|
-
|
|
3513
|
+
Fe(n, e.size[0] / 2, e.size[1] / 2, 1 / t.resolution, -1 / t.resolution, -t.rotation, -t.center[0], -t.center[1]), Ie(r, n);
|
|
3535
3514
|
}
|
|
3536
|
-
forEachFeatureAtCoordinate(e, t, n, r, i, a, o,
|
|
3537
|
-
let
|
|
3538
|
-
function
|
|
3515
|
+
forEachFeatureAtCoordinate(e, t, n, r, i, a, o, c) {
|
|
3516
|
+
let u, d = t.viewState;
|
|
3517
|
+
function f(e, t, n, r) {
|
|
3539
3518
|
return i.call(a, t, e ? n : null, r);
|
|
3540
3519
|
}
|
|
3541
|
-
let
|
|
3542
|
-
if (
|
|
3543
|
-
let e =
|
|
3544
|
-
|
|
3520
|
+
let p = d.projection, m = l(e.slice(), p), h = [[0, 0]];
|
|
3521
|
+
if (p.canWrapX() && r) {
|
|
3522
|
+
let e = p.getExtent(), t = s(e);
|
|
3523
|
+
h.push([-t, 0], [t, 0]);
|
|
3545
3524
|
}
|
|
3546
|
-
let
|
|
3547
|
-
for (let r = 0; r <
|
|
3548
|
-
let a =
|
|
3549
|
-
if (
|
|
3550
|
-
let i =
|
|
3525
|
+
let g = t.layerStatesArray, _ = g.length, v = [], ee = [];
|
|
3526
|
+
for (let r = 0; r < h.length; r++) for (let i = _ - 1; i >= 0; --i) {
|
|
3527
|
+
let a = g[i], s = a.layer;
|
|
3528
|
+
if (s.hasRenderer() && Je(a, d) && o.call(c, s)) {
|
|
3529
|
+
let i = s.getRenderer(), o = s.getSource();
|
|
3551
3530
|
if (i && o) {
|
|
3552
|
-
let s = o.getWrapX() ?
|
|
3553
|
-
|
|
3531
|
+
let s = o.getWrapX() ? m : e, c = f.bind(null, a.managed);
|
|
3532
|
+
ee[0] = s[0] + h[r][0], ee[1] = s[1] + h[r][1], u = i.forEachFeatureAtCoordinate(ee, t, n, c, v);
|
|
3554
3533
|
}
|
|
3555
|
-
if (
|
|
3534
|
+
if (u) return u;
|
|
3556
3535
|
}
|
|
3557
3536
|
}
|
|
3558
3537
|
if (v.length === 0) return;
|
|
3559
|
-
let
|
|
3560
|
-
return v.forEach((e, t) => e.distanceSq += t *
|
|
3538
|
+
let y = 1 / v.length;
|
|
3539
|
+
return v.forEach((e, t) => e.distanceSq += t * y), v.sort((e, t) => e.distanceSq - t.distanceSq), v.some((e) => u = e.callback(e.feature, e.layer, e.geometry)), u;
|
|
3561
3540
|
}
|
|
3562
3541
|
hasFeatureAtCoordinate(e, t, n, r, i, a) {
|
|
3563
|
-
return this.forEachFeatureAtCoordinate(e, t, n, r,
|
|
3542
|
+
return this.forEachFeatureAtCoordinate(e, t, n, r, o, this, i, a) !== void 0;
|
|
3564
3543
|
}
|
|
3565
3544
|
getMap() {
|
|
3566
3545
|
return this.map_;
|
|
3567
3546
|
}
|
|
3568
3547
|
renderFrame(e) {
|
|
3569
|
-
|
|
3548
|
+
C();
|
|
3570
3549
|
}
|
|
3571
3550
|
scheduleExpireIconCache(e) {
|
|
3572
|
-
|
|
3551
|
+
j.canExpireCache() && e.postRenderFunctions.push(Ii);
|
|
3573
3552
|
}
|
|
3574
3553
|
};
|
|
3575
3554
|
function Ii(e, t) {
|
|
3576
|
-
|
|
3555
|
+
j.expire();
|
|
3577
3556
|
}
|
|
3578
|
-
|
|
3579
|
-
//#region ../node_modules/ol/renderer/Composite.js
|
|
3557
|
+
// ../node_modules/ol/renderer/Composite.js
|
|
3580
3558
|
var Li = class extends Fi {
|
|
3581
3559
|
constructor(e) {
|
|
3582
|
-
super(e), this.fontChangeListenerKey_ =
|
|
3560
|
+
super(e), this.fontChangeListenerKey_ = S(En, y.PROPERTYCHANGE, e.redrawText, e), this.element_ = be ? pe() : document.createElement("div");
|
|
3583
3561
|
let t = this.element_.style;
|
|
3584
|
-
t.position = "absolute", t.width = "100%", t.height = "100%", t.zIndex = "0", this.element_.className =
|
|
3562
|
+
t.position = "absolute", t.width = "100%", t.height = "100%", t.zIndex = "0", this.element_.className = De + " ol-layers";
|
|
3585
3563
|
let n = e.getViewport();
|
|
3586
3564
|
n && n.insertBefore(this.element_, n.firstChild || null), this.children_ = [], this.renderedVisible_ = !0;
|
|
3587
3565
|
}
|
|
3588
3566
|
dispatchRenderEvent(e, t) {
|
|
3589
3567
|
let n = this.getMap();
|
|
3590
3568
|
if (n.hasListener(e)) {
|
|
3591
|
-
let r = new
|
|
3569
|
+
let r = new Ke(e, void 0, t);
|
|
3592
3570
|
n.dispatchEvent(r);
|
|
3593
3571
|
}
|
|
3594
3572
|
}
|
|
3595
3573
|
disposeInternal() {
|
|
3596
|
-
|
|
3574
|
+
v(this.fontChangeListenerKey_), this.element_.remove(), super.disposeInternal();
|
|
3597
3575
|
}
|
|
3598
3576
|
renderFrame(e) {
|
|
3599
3577
|
if (!e) {
|
|
3600
3578
|
this.renderedVisible_ &&= (this.element_.style.display = "none", !1);
|
|
3601
3579
|
return;
|
|
3602
3580
|
}
|
|
3603
|
-
this.calculateMatrices2D(e), this.dispatchRenderEvent(
|
|
3581
|
+
this.calculateMatrices2D(e), this.dispatchRenderEvent(Xe.PRECOMPOSE, e);
|
|
3604
3582
|
let t = e.layerStatesArray.sort((e, t) => e.zIndex - t.zIndex);
|
|
3605
|
-
t.some((e) => e.layer instanceof
|
|
3583
|
+
t.some((e) => e.layer instanceof xi && e.layer.getDeclutter()) && (e.declutter = {});
|
|
3606
3584
|
let n = e.viewState;
|
|
3607
3585
|
this.children_.length = 0;
|
|
3608
3586
|
let r = this.getMap().getTargetElement(), i;
|
|
3609
|
-
|
|
3587
|
+
T(r) && (i = r.getContext("2d"), i.setTransform(1, 0, 0, 1, 0, 0), i.clearRect(0, 0, r.width, r.height));
|
|
3610
3588
|
let a = [], o = i ? r : null;
|
|
3611
3589
|
for (let r = 0, i = t.length; r < i; ++r) {
|
|
3612
3590
|
let i = t[r];
|
|
3613
3591
|
e.layerIndex = r;
|
|
3614
3592
|
let s = i.layer, c = s.getSourceState();
|
|
3615
|
-
if (!
|
|
3593
|
+
if (!Je(i, n) || c != "ready" && c != "undefined") {
|
|
3616
3594
|
s.unrender();
|
|
3617
3595
|
continue;
|
|
3618
3596
|
}
|
|
3619
3597
|
let l = s.render(e, o);
|
|
3620
3598
|
l && (l !== o && (this.children_.push(l), o = l), a.push(i));
|
|
3621
3599
|
}
|
|
3622
|
-
this.declutter(e, a),
|
|
3600
|
+
this.declutter(e, a), ye(this.element_, this.children_);
|
|
3623
3601
|
for (let e of i ? this.children_ : []) {
|
|
3624
3602
|
let t = e.firstElementChild || e, n = e.style.backgroundColor;
|
|
3625
|
-
if (n && (!
|
|
3603
|
+
if (n && (!T(t) || t.width > 0) && (i.fillStyle = n, i.fillRect(0, 0, i.canvas.width, i.canvas.height)), !T(t) || t.width === 0) continue;
|
|
3626
3604
|
i.save();
|
|
3627
3605
|
let r = e.style.opacity || t.style.opacity;
|
|
3628
3606
|
i.globalAlpha = r === "" ? 1 : Number(r);
|
|
3629
3607
|
let a = t.style.transform;
|
|
3630
|
-
if (a) i.transform(...
|
|
3608
|
+
if (a) i.transform(...Pe(a));
|
|
3631
3609
|
else {
|
|
3632
3610
|
let e = parseFloat(t.style.width) / t.width, n = parseFloat(t.style.height) / t.height;
|
|
3633
3611
|
i.transform(e, 0, 0, n, 0, 0);
|
|
3634
3612
|
}
|
|
3635
3613
|
i.drawImage(t, 0, 0), i.restore();
|
|
3636
3614
|
}
|
|
3637
|
-
this.dispatchRenderEvent(
|
|
3615
|
+
this.dispatchRenderEvent(Xe.POSTCOMPOSE, e), this.renderedVisible_ ||= (this.element_.style.display = "", !0), this.scheduleExpireIconCache(e);
|
|
3638
3616
|
}
|
|
3639
3617
|
declutter(e, t) {
|
|
3640
3618
|
if (e.declutter) {
|
|
@@ -3647,41 +3625,34 @@ var Li = class extends Fi {
|
|
|
3647
3625
|
}
|
|
3648
3626
|
}, Ri = /* @__PURE__ */ e({ default: () => Vi });
|
|
3649
3627
|
function zi(e) {
|
|
3650
|
-
|
|
3651
|
-
e.setMapInternal(null);
|
|
3652
|
-
return;
|
|
3653
|
-
}
|
|
3654
|
-
e instanceof Pi && e.getLayers().forEach(zi);
|
|
3628
|
+
e instanceof $e ? e.setMapInternal(null) : e instanceof Pi && e.getLayers().forEach(zi);
|
|
3655
3629
|
}
|
|
3656
3630
|
function Bi(e, t) {
|
|
3657
|
-
if (e instanceof
|
|
3658
|
-
|
|
3659
|
-
return;
|
|
3660
|
-
}
|
|
3661
|
-
if (e instanceof Pi) {
|
|
3631
|
+
if (e instanceof $e) e.setMapInternal(t);
|
|
3632
|
+
else if (e instanceof Pi) {
|
|
3662
3633
|
let n = e.getLayers().getArray();
|
|
3663
3634
|
for (let e = 0, r = n.length; e < r; ++e) Bi(n[e], t);
|
|
3664
3635
|
}
|
|
3665
3636
|
}
|
|
3666
|
-
var Vi = class extends
|
|
3637
|
+
var Vi = class extends u {
|
|
3667
3638
|
constructor(e) {
|
|
3668
3639
|
super(), e ||= {}, this.on, this.once, this.un;
|
|
3669
3640
|
let t = Hi(e);
|
|
3670
|
-
this.renderComplete_ = !1, this.loaded_ = !0, this.boundHandleBrowserEvent_ = this.handleBrowserEvent.bind(this), this.maxTilesLoading_ = e.maxTilesLoading === void 0 ? 16 : e.maxTilesLoading, this.pixelRatio_ = e.pixelRatio === void 0 ?
|
|
3641
|
+
this.renderComplete_ = !1, this.loaded_ = !0, this.boundHandleBrowserEvent_ = this.handleBrowserEvent.bind(this), this.maxTilesLoading_ = e.maxTilesLoading === void 0 ? 16 : e.maxTilesLoading, this.pixelRatio_ = e.pixelRatio === void 0 ? de : e.pixelRatio, this.postRenderTimeoutHandle_, this.animationDelayKey_, this.animationDelay_ = this.animationDelay_.bind(this), this.coordinateToPixelTransform_ = Me(), this.pixelToCoordinateTransform_ = Me(), this.frameIndex_ = 0, this.frameState_ = null, this.previousExtent_ = null, this.viewPropertyListenerKey_ = null, this.viewChangeListenerKey_ = null, this.layerGroupPropertyListenerKeys_ = null, be || (this.viewport_ = document.createElement("div"), this.viewport_.className = "ol-viewport" + ("ontouchstart" in window ? " ol-touch" : ""), this.viewport_.style.position = "relative", this.viewport_.style.overflow = "hidden", this.viewport_.style.width = "100%", this.viewport_.style.height = "100%", this.overlayContainer_ = document.createElement("div"), this.overlayContainer_.style.position = "absolute", this.overlayContainer_.style.zIndex = "0", this.overlayContainer_.style.width = "100%", this.overlayContainer_.style.height = "100%", this.overlayContainer_.style.pointerEvents = "none", this.overlayContainer_.className = "ol-overlaycontainer", this.viewport_.appendChild(this.overlayContainer_), this.overlayContainerStopEvent_ = document.createElement("div"), this.overlayContainerStopEvent_.style.position = "absolute", this.overlayContainerStopEvent_.style.zIndex = "0", this.overlayContainerStopEvent_.style.width = "100%", this.overlayContainerStopEvent_.style.height = "100%", this.overlayContainerStopEvent_.style.pointerEvents = "none", this.overlayContainerStopEvent_.className = "ol-overlaycontainer-stopevent", this.viewport_.appendChild(this.overlayContainerStopEvent_)), this.mapBrowserEventHandler_ = null, this.moveTolerance_ = e.moveTolerance, this.keyboardEventTarget_ = t.keyboardEventTarget, this.targetChangeHandlerKeys_ = null, this.targetElement_ = null, be || (this.resizeObserver_ = new ResizeObserver(() => this.updateSize())), this.controls = t.controls || (be ? new O() : Mi()), this.interactions = t.interactions || (be ? new O() : cn({ onFocusOnly: !0 })), this.overlays_ = t.overlays, this.overlayIdIndex_ = {}, this.renderer_ = null, this.postRenderFunctions_ = [], this.tileQueue_ = new Di(this.getTilePriority.bind(this), this.handleTileChange_.bind(this)), this.addChangeListener(Z.LAYERGROUP, this.handleLayerGroupChanged_), this.addChangeListener(Z.VIEW, this.handleViewChanged_), this.addChangeListener(Z.SIZE, this.handleSizeChanged_), this.addChangeListener(Z.TARGET, this.handleTargetChanged_), this.setProperties(t.values);
|
|
3671
3642
|
let n = this;
|
|
3672
|
-
e.view && !(e.view instanceof
|
|
3673
|
-
n.setView(new
|
|
3674
|
-
}), this.controls.addEventListener(
|
|
3643
|
+
e.view && !(e.view instanceof Ve) && e.view.then(function(e) {
|
|
3644
|
+
n.setView(new Ve(e));
|
|
3645
|
+
}), this.controls.addEventListener(D.ADD, (e) => {
|
|
3675
3646
|
e.element.setMap(this);
|
|
3676
|
-
}), this.controls.addEventListener(
|
|
3647
|
+
}), this.controls.addEventListener(D.REMOVE, (e) => {
|
|
3677
3648
|
e.element.setMap(null);
|
|
3678
|
-
}), this.interactions.addEventListener(
|
|
3649
|
+
}), this.interactions.addEventListener(D.ADD, (e) => {
|
|
3679
3650
|
e.element.setMap(this);
|
|
3680
|
-
}), this.interactions.addEventListener(
|
|
3651
|
+
}), this.interactions.addEventListener(D.REMOVE, (e) => {
|
|
3681
3652
|
e.element.setMap(null);
|
|
3682
|
-
}), this.overlays_.addEventListener(
|
|
3653
|
+
}), this.overlays_.addEventListener(D.ADD, (e) => {
|
|
3683
3654
|
this.addOverlayInternal_(e.element);
|
|
3684
|
-
}), this.overlays_.addEventListener(
|
|
3655
|
+
}), this.overlays_.addEventListener(D.REMOVE, (e) => {
|
|
3685
3656
|
let t = e.element.getId();
|
|
3686
3657
|
t !== void 0 && delete this.overlayIdIndex_[t.toString()], e.element.setMap(null);
|
|
3687
3658
|
}), this.controls.forEach((e) => {
|
|
@@ -3716,8 +3687,8 @@ var Vi = class extends v {
|
|
|
3716
3687
|
if (!this.frameState_ || !this.renderer_) return;
|
|
3717
3688
|
let r = this.getCoordinateFromPixelInternal(e);
|
|
3718
3689
|
n = n === void 0 ? {} : n;
|
|
3719
|
-
let i = n.hitTolerance === void 0 ? 0 : n.hitTolerance, a = n.layerFilter === void 0 ?
|
|
3720
|
-
return this.renderer_.forEachFeatureAtCoordinate(r, this.frameState_, i,
|
|
3690
|
+
let i = n.hitTolerance === void 0 ? 0 : n.hitTolerance, a = n.layerFilter === void 0 ? o : n.layerFilter, s = n.checkWrapped !== !1;
|
|
3691
|
+
return this.renderer_.forEachFeatureAtCoordinate(r, this.frameState_, i, s, t, null, a, null);
|
|
3721
3692
|
}
|
|
3722
3693
|
getFeaturesAtPixel(e, t) {
|
|
3723
3694
|
let n = [];
|
|
@@ -3738,7 +3709,7 @@ var Vi = class extends v {
|
|
|
3738
3709
|
if (!this.frameState_ || !this.renderer_) return !1;
|
|
3739
3710
|
let n = this.getCoordinateFromPixelInternal(e);
|
|
3740
3711
|
t = t === void 0 ? {} : t;
|
|
3741
|
-
let r = t.layerFilter === void 0 ?
|
|
3712
|
+
let r = t.layerFilter === void 0 ? o : t.layerFilter, i = t.hitTolerance === void 0 ? 0 : t.hitTolerance, a = t.checkWrapped !== !1;
|
|
3742
3713
|
return this.renderer_.hasFeatureAtCoordinate(n, this.frameState_, i, a, r, null);
|
|
3743
3714
|
}
|
|
3744
3715
|
getEventCoordinate(e) {
|
|
@@ -3752,17 +3723,17 @@ var Vi = class extends v {
|
|
|
3752
3723
|
return [(a.clientX - t.left) / r, (a.clientY - t.top) / i];
|
|
3753
3724
|
}
|
|
3754
3725
|
getTarget() {
|
|
3755
|
-
return this.get(
|
|
3726
|
+
return this.get(Z.TARGET);
|
|
3756
3727
|
}
|
|
3757
3728
|
getTargetElement() {
|
|
3758
3729
|
return this.targetElement_;
|
|
3759
3730
|
}
|
|
3760
3731
|
getCoordinateFromPixel(e) {
|
|
3761
|
-
return
|
|
3732
|
+
return oe(this.getCoordinateFromPixelInternal(e), this.getView().getProjection());
|
|
3762
3733
|
}
|
|
3763
3734
|
getCoordinateFromPixelInternal(e) {
|
|
3764
3735
|
let t = this.frameState_;
|
|
3765
|
-
return t ?
|
|
3736
|
+
return t ? Ne(t.pixelToCoordinateTransform, e.slice()) : null;
|
|
3766
3737
|
}
|
|
3767
3738
|
getControls() {
|
|
3768
3739
|
return this.controls;
|
|
@@ -3778,11 +3749,11 @@ var Vi = class extends v {
|
|
|
3778
3749
|
return this.interactions;
|
|
3779
3750
|
}
|
|
3780
3751
|
getLayerGroup() {
|
|
3781
|
-
return this.get(
|
|
3752
|
+
return this.get(Z.LAYERGROUP);
|
|
3782
3753
|
}
|
|
3783
3754
|
setLayers(e) {
|
|
3784
3755
|
let t = this.getLayerGroup();
|
|
3785
|
-
if (e instanceof
|
|
3756
|
+
if (e instanceof O) {
|
|
3786
3757
|
t.setLayers(e);
|
|
3787
3758
|
return;
|
|
3788
3759
|
}
|
|
@@ -3805,12 +3776,12 @@ var Vi = class extends v {
|
|
|
3805
3776
|
return !1;
|
|
3806
3777
|
}
|
|
3807
3778
|
getPixelFromCoordinate(e) {
|
|
3808
|
-
let t =
|
|
3779
|
+
let t = re(e, this.getView().getProjection());
|
|
3809
3780
|
return this.getPixelFromCoordinateInternal(t);
|
|
3810
3781
|
}
|
|
3811
3782
|
getPixelFromCoordinateInternal(e) {
|
|
3812
3783
|
let t = this.frameState_;
|
|
3813
|
-
return t ?
|
|
3784
|
+
return t ? Ne(t.coordinateToPixelTransform, e.slice(0, 2)) : null;
|
|
3814
3785
|
}
|
|
3815
3786
|
getPixelRatio() {
|
|
3816
3787
|
return this.pixelRatio_;
|
|
@@ -3822,10 +3793,10 @@ var Vi = class extends v {
|
|
|
3822
3793
|
return this.renderer_;
|
|
3823
3794
|
}
|
|
3824
3795
|
getSize() {
|
|
3825
|
-
return this.get(
|
|
3796
|
+
return this.get(Z.SIZE);
|
|
3826
3797
|
}
|
|
3827
3798
|
getView() {
|
|
3828
|
-
return this.get(
|
|
3799
|
+
return this.get(Z.VIEW);
|
|
3829
3800
|
}
|
|
3830
3801
|
getViewport() {
|
|
3831
3802
|
return this.viewport_;
|
|
@@ -3841,17 +3812,17 @@ var Vi = class extends v {
|
|
|
3841
3812
|
return e ? e.ownerDocument : document;
|
|
3842
3813
|
}
|
|
3843
3814
|
getTilePriority(e, t, n, r) {
|
|
3844
|
-
return
|
|
3815
|
+
return Oi(this.frameState_, e, t, n, r);
|
|
3845
3816
|
}
|
|
3846
3817
|
handleBrowserEvent(e, t) {
|
|
3847
3818
|
t ||= e.type;
|
|
3848
|
-
let n = new
|
|
3819
|
+
let n = new A(t, this, e);
|
|
3849
3820
|
this.handleMapBrowserEvent(n);
|
|
3850
3821
|
}
|
|
3851
3822
|
handleMapBrowserEvent(e) {
|
|
3852
3823
|
if (!this.frameState_) return;
|
|
3853
3824
|
let t = e.originalEvent, n = t.type;
|
|
3854
|
-
if (n ===
|
|
3825
|
+
if (n === Ci.POINTERDOWN || n === _.WHEEL || n === _.KEYDOWN) {
|
|
3855
3826
|
let e = this.getOwnerDocument(), n = this.viewport_.getRootNode ? this.viewport_.getRootNode() : e, r = t.target, i = n instanceof ShadowRoot ? n.host === r ? n.host.ownerDocument : n : n === e ? e.documentElement : n;
|
|
3856
3827
|
if (this.overlayContainerStopEvent_.contains(r) || !i.contains(r)) return;
|
|
3857
3828
|
}
|
|
@@ -3866,14 +3837,14 @@ var Vi = class extends v {
|
|
|
3866
3837
|
handlePostRender() {
|
|
3867
3838
|
let e = this.frameState_, t = this.tileQueue_;
|
|
3868
3839
|
if (!t.isEmpty()) {
|
|
3869
|
-
let n = this.maxTilesLoading_, r = n, i = e ? e.viewHints : void 0, a = i ? i[
|
|
3840
|
+
let n = this.maxTilesLoading_, r = n, i = e ? e.viewHints : void 0, a = i ? i[ze.ANIMATING] || i[ze.INTERACTING] : !1;
|
|
3870
3841
|
if (a) {
|
|
3871
3842
|
let t = Date.now() - e.time > 8;
|
|
3872
3843
|
n = t ? 0 : 8, r = t ? 0 : 2;
|
|
3873
3844
|
}
|
|
3874
3845
|
t.getTilesLoading() < n && (a && t.reprioritize(), t.loadMoreTiles(n, r));
|
|
3875
3846
|
}
|
|
3876
|
-
e && this.renderer_ && !e.animate && (this.renderComplete_ ? (this.hasListener(
|
|
3847
|
+
e && this.renderer_ && !e.animate && (this.renderComplete_ ? (this.hasListener(Xe.RENDERCOMPLETE) && this.renderer_.dispatchRenderEvent(Xe.RENDERCOMPLETE, e), this.loaded_ === !1 && (this.loaded_ = !0, this.dispatchEvent(new ln(Ae.LOADEND, this, e)))) : this.loaded_ === !0 && (this.loaded_ = !1, this.dispatchEvent(new ln(Ae.LOADSTART, this, e))));
|
|
3877
3848
|
let n = this.postRenderFunctions_;
|
|
3878
3849
|
if (e) for (let t = 0, r = n.length; t < r; ++t) n[t](this, e);
|
|
3879
3850
|
n.length = 0;
|
|
@@ -3883,10 +3854,10 @@ var Vi = class extends v {
|
|
|
3883
3854
|
}
|
|
3884
3855
|
handleTargetChanged_() {
|
|
3885
3856
|
if (this.mapBrowserEventHandler_) {
|
|
3886
|
-
for (let e = 0, t = this.targetChangeHandlerKeys_.length; e < t; ++e)
|
|
3887
|
-
this.targetChangeHandlerKeys_ = null, this.viewport_.removeEventListener(
|
|
3857
|
+
for (let e = 0, t = this.targetChangeHandlerKeys_.length; e < t; ++e) v(this.targetChangeHandlerKeys_[e]);
|
|
3858
|
+
this.targetChangeHandlerKeys_ = null, this.viewport_.removeEventListener(_.CONTEXTMENU, this.boundHandleBrowserEvent_), this.viewport_.removeEventListener(_.WHEEL, this.boundHandleBrowserEvent_), this.mapBrowserEventHandler_.dispose(), this.mapBrowserEventHandler_ = null, this.viewport_.remove();
|
|
3888
3859
|
}
|
|
3889
|
-
if (this.targetElement_ && !
|
|
3860
|
+
if (this.targetElement_ && !T(this.targetElement_)) {
|
|
3890
3861
|
this.resizeObserver_?.unobserve(this.targetElement_);
|
|
3891
3862
|
let e = this.targetElement_.getRootNode();
|
|
3892
3863
|
e instanceof ShadowRoot && this.resizeObserver_.unobserve(e.host), this.setSize(void 0);
|
|
@@ -3894,17 +3865,17 @@ var Vi = class extends v {
|
|
|
3894
3865
|
let e = this.getTarget(), t = typeof e == "string" ? document.getElementById(e) : e;
|
|
3895
3866
|
if (this.targetElement_ = t, !t) this.renderer_ &&= (clearTimeout(this.postRenderTimeoutHandle_), this.postRenderTimeoutHandle_ = void 0, this.postRenderFunctions_.length = 0, this.renderer_.dispose(), null), this.animationDelayKey_ &&= (cancelAnimationFrame(this.animationDelayKey_), void 0);
|
|
3896
3867
|
else {
|
|
3897
|
-
if (
|
|
3898
|
-
this.mapBrowserEventHandler_ = new
|
|
3899
|
-
for (let e in
|
|
3900
|
-
this.viewport_.addEventListener(
|
|
3868
|
+
if (T(t) || t.appendChild(this.viewport_), this.renderer_ ||= new Li(this), !T(t)) {
|
|
3869
|
+
this.mapBrowserEventHandler_ = new wi(this, this.moveTolerance_);
|
|
3870
|
+
for (let e in k) this.mapBrowserEventHandler_.addEventListener(k[e], this.handleMapBrowserEvent.bind(this));
|
|
3871
|
+
this.viewport_.addEventListener(_.CONTEXTMENU, this.boundHandleBrowserEvent_, !1), this.viewport_.addEventListener(_.WHEEL, this.boundHandleBrowserEvent_, le ? { passive: !1 } : !1);
|
|
3901
3872
|
let e;
|
|
3902
3873
|
if (this.keyboardEventTarget_) e = this.keyboardEventTarget_;
|
|
3903
3874
|
else {
|
|
3904
3875
|
let n = t.getRootNode();
|
|
3905
3876
|
e = n instanceof ShadowRoot ? n.host : t;
|
|
3906
3877
|
}
|
|
3907
|
-
if (this.targetChangeHandlerKeys_ = [
|
|
3878
|
+
if (this.targetChangeHandlerKeys_ = [S(e, _.KEYDOWN, this.handleBrowserEvent, this), S(e, _.KEYPRESS, this.handleBrowserEvent, this)], !T(t)) {
|
|
3908
3879
|
let e = t.getRootNode();
|
|
3909
3880
|
e instanceof ShadowRoot && this.resizeObserver_.observe(e.host), this.resizeObserver_?.observe(t);
|
|
3910
3881
|
}
|
|
@@ -3919,18 +3890,18 @@ var Vi = class extends v {
|
|
|
3919
3890
|
this.render();
|
|
3920
3891
|
}
|
|
3921
3892
|
handleViewChanged_() {
|
|
3922
|
-
this.viewPropertyListenerKey_ &&= (
|
|
3893
|
+
this.viewPropertyListenerKey_ &&= (v(this.viewPropertyListenerKey_), null), this.viewChangeListenerKey_ &&= (v(this.viewChangeListenerKey_), null);
|
|
3923
3894
|
let e = this.getView();
|
|
3924
|
-
e && (this.updateViewportSize_(this.getSize()), this.viewPropertyListenerKey_ =
|
|
3895
|
+
e && (this.updateViewportSize_(this.getSize()), this.viewPropertyListenerKey_ = S(e, y.PROPERTYCHANGE, this.handleViewPropertyChanged_, this), this.viewChangeListenerKey_ = S(e, _.CHANGE, this.handleViewPropertyChanged_, this), e.resolveConstraints(0)), this.render();
|
|
3925
3896
|
}
|
|
3926
3897
|
handleLayerGroupChanged_() {
|
|
3927
|
-
this.layerGroupPropertyListenerKeys_ &&= (this.layerGroupPropertyListenerKeys_.forEach(
|
|
3898
|
+
this.layerGroupPropertyListenerKeys_ &&= (this.layerGroupPropertyListenerKeys_.forEach(v), null);
|
|
3928
3899
|
let e = this.getLayerGroup();
|
|
3929
|
-
e && (this.handleLayerAdd_(new
|
|
3930
|
-
|
|
3931
|
-
|
|
3932
|
-
|
|
3933
|
-
|
|
3900
|
+
e && (this.handleLayerAdd_(new $("addlayer", e)), this.layerGroupPropertyListenerKeys_ = [
|
|
3901
|
+
S(e, y.PROPERTYCHANGE, this.render, this),
|
|
3902
|
+
S(e, _.CHANGE, this.render, this),
|
|
3903
|
+
S(e, "addlayer", this.handleLayerAdd_, this),
|
|
3904
|
+
S(e, "removelayer", this.handleLayerRemove_, this)
|
|
3934
3905
|
]), this.render();
|
|
3935
3906
|
}
|
|
3936
3907
|
isRendered() {
|
|
@@ -3969,14 +3940,14 @@ var Vi = class extends v {
|
|
|
3969
3940
|
return this.getOverlays().remove(e);
|
|
3970
3941
|
}
|
|
3971
3942
|
renderFrame_(e) {
|
|
3972
|
-
let t = this.getSize(), n = this.getView(),
|
|
3973
|
-
if (t !== void 0 &&
|
|
3974
|
-
let
|
|
3975
|
-
if (
|
|
3943
|
+
let t = this.getSize(), n = this.getView(), i = this.frameState_, a = null;
|
|
3944
|
+
if (t !== void 0 && ge(t) && n && n.isDef()) {
|
|
3945
|
+
let i = n.getHints(this.frameState_ ? this.frameState_.viewHints : void 0), o = n.getState();
|
|
3946
|
+
if (a = {
|
|
3976
3947
|
animate: !1,
|
|
3977
3948
|
coordinateToPixelTransform: this.coordinateToPixelTransform_,
|
|
3978
3949
|
declutter: null,
|
|
3979
|
-
extent:
|
|
3950
|
+
extent: d(o.center, o.resolution, o.rotation, t),
|
|
3980
3951
|
index: this.frameIndex_++,
|
|
3981
3952
|
layerIndex: 0,
|
|
3982
3953
|
layerStatesArray: this.getLayerGroup().getLayerStatesArray(),
|
|
@@ -3987,56 +3958,56 @@ var Vi = class extends v {
|
|
|
3987
3958
|
tileQueue: this.tileQueue_,
|
|
3988
3959
|
time: e,
|
|
3989
3960
|
usedTiles: {},
|
|
3990
|
-
viewState:
|
|
3991
|
-
viewHints:
|
|
3961
|
+
viewState: o,
|
|
3962
|
+
viewHints: i,
|
|
3992
3963
|
wantedTiles: {},
|
|
3993
|
-
mapId:
|
|
3964
|
+
mapId: r(this),
|
|
3994
3965
|
renderTargets: {}
|
|
3995
|
-
},
|
|
3996
|
-
let e = isNaN(
|
|
3997
|
-
|
|
3966
|
+
}, o.nextCenter && o.nextResolution) {
|
|
3967
|
+
let e = isNaN(o.nextRotation) ? o.rotation : o.nextRotation;
|
|
3968
|
+
a.nextExtent = d(o.nextCenter, o.nextResolution, e, t);
|
|
3998
3969
|
}
|
|
3999
3970
|
}
|
|
4000
|
-
this.frameState_ =
|
|
3971
|
+
this.frameState_ = a, this.renderer_.renderFrame(a), a && (a.animate && this.render(), Array.prototype.push.apply(this.postRenderFunctions_, a.postRenderFunctions), i && (this.previousExtent_ && (ne(this.previousExtent_) || b(a.extent, this.previousExtent_)) || (this.dispatchEvent(new ln(Ae.MOVESTART, this, i)), this.previousExtent_ = ee(this.previousExtent_))), this.previousExtent_ && !a.viewHints[ze.ANIMATING] && !a.viewHints[ze.INTERACTING] && !b(a.extent, this.previousExtent_) && (this.dispatchEvent(new ln(Ae.MOVEEND, this, a)), te(a.extent, this.previousExtent_))), this.dispatchEvent(new ln(Ae.POSTRENDER, this, a)), this.renderComplete_ = (this.hasListener(Ae.LOADSTART) || this.hasListener(Ae.LOADEND) || this.hasListener(Xe.RENDERCOMPLETE)) && !this.tileQueue_.getTilesLoading() && !this.tileQueue_.getCount() && !this.getLoadingOrNotReady(), this.postRenderTimeoutHandle_ ||= setTimeout(() => {
|
|
4001
3972
|
this.postRenderTimeoutHandle_ = void 0, this.handlePostRender();
|
|
4002
3973
|
}, 0);
|
|
4003
3974
|
}
|
|
4004
3975
|
setLayerGroup(e) {
|
|
4005
3976
|
let t = this.getLayerGroup();
|
|
4006
|
-
t && this.handleLayerRemove_(new
|
|
3977
|
+
t && this.handleLayerRemove_(new $("removelayer", t)), this.set(Z.LAYERGROUP, e);
|
|
4007
3978
|
}
|
|
4008
3979
|
setSize(e) {
|
|
4009
|
-
this.set(
|
|
3980
|
+
this.set(Z.SIZE, e);
|
|
4010
3981
|
}
|
|
4011
3982
|
setTarget(e) {
|
|
4012
|
-
this.set(
|
|
3983
|
+
this.set(Z.TARGET, e);
|
|
4013
3984
|
}
|
|
4014
3985
|
setView(e) {
|
|
4015
|
-
if (!e || e instanceof
|
|
4016
|
-
this.set(
|
|
3986
|
+
if (!e || e instanceof Ve) {
|
|
3987
|
+
this.set(Z.VIEW, e);
|
|
4017
3988
|
return;
|
|
4018
3989
|
}
|
|
4019
|
-
this.set(
|
|
3990
|
+
this.set(Z.VIEW, new Ve());
|
|
4020
3991
|
let t = this;
|
|
4021
3992
|
e.then(function(e) {
|
|
4022
|
-
t.setView(new
|
|
3993
|
+
t.setView(new Ve(e));
|
|
4023
3994
|
});
|
|
4024
3995
|
}
|
|
4025
3996
|
updateSize() {
|
|
4026
|
-
let e = this.getTargetElement(),
|
|
3997
|
+
let e = this.getTargetElement(), n;
|
|
4027
3998
|
if (e) {
|
|
4028
|
-
let
|
|
4029
|
-
if (
|
|
4030
|
-
let
|
|
4031
|
-
|
|
3999
|
+
let t, r;
|
|
4000
|
+
if (T(e)) {
|
|
4001
|
+
let n = e.getContext("2d").getTransform();
|
|
4002
|
+
t = e.width / n.a, r = e.height / n.d;
|
|
4032
4003
|
} else {
|
|
4033
|
-
let
|
|
4034
|
-
|
|
4004
|
+
let n = getComputedStyle(e);
|
|
4005
|
+
t = e.offsetWidth - parseFloat(n.borderLeftWidth) - parseFloat(n.paddingLeft) - parseFloat(n.paddingRight) - parseFloat(n.borderRightWidth), r = e.offsetHeight - parseFloat(n.borderTopWidth) - parseFloat(n.paddingTop) - parseFloat(n.paddingBottom) - parseFloat(n.borderBottomWidth);
|
|
4035
4006
|
}
|
|
4036
|
-
!isNaN(
|
|
4007
|
+
!isNaN(t) && !isNaN(r) && (n = [Math.max(0, t), Math.max(0, r)], !ge(n) && (e.offsetWidth || e.offsetHeight || e.getClientRects().length) && m("No map visible because the map container's width or height are 0."));
|
|
4037
4008
|
}
|
|
4038
|
-
let
|
|
4039
|
-
|
|
4009
|
+
let r = this.getSize();
|
|
4010
|
+
!n || r && t(n, r) || (this.updateViewportSize_(n), this.setSize(n));
|
|
4040
4011
|
}
|
|
4041
4012
|
updateViewportSize_(e) {
|
|
4042
4013
|
let t = this.getView();
|
|
@@ -4047,13 +4018,13 @@ function Hi(e) {
|
|
|
4047
4018
|
let t = null;
|
|
4048
4019
|
e.keyboardEventTarget !== void 0 && (t = typeof e.keyboardEventTarget == "string" ? document.getElementById(e.keyboardEventTarget) : e.keyboardEventTarget);
|
|
4049
4020
|
let n = {}, r = e.layers && typeof e.layers.getLayers == "function" ? e.layers : new Pi({ layers: e.layers });
|
|
4050
|
-
n[
|
|
4021
|
+
n[Z.LAYERGROUP] = r, n[Z.TARGET] = e.target, n[Z.VIEW] = e.view instanceof Ve ? e.view : new Ve();
|
|
4051
4022
|
let i;
|
|
4052
|
-
e.controls !== void 0 && (Array.isArray(e.controls) ? i = new
|
|
4023
|
+
e.controls !== void 0 && (Array.isArray(e.controls) ? i = new O(e.controls.slice()) : (E(typeof e.controls.getArray == "function", "Expected `controls` to be an array or an `ol/Collection.js`"), i = e.controls));
|
|
4053
4024
|
let a;
|
|
4054
|
-
e.interactions !== void 0 && (Array.isArray(e.interactions) ? a = new
|
|
4025
|
+
e.interactions !== void 0 && (Array.isArray(e.interactions) ? a = new O(e.interactions.slice()) : (E(typeof e.interactions.getArray == "function", "Expected `interactions` to be an array or an `ol/Collection.js`"), a = e.interactions));
|
|
4055
4026
|
let o;
|
|
4056
|
-
return e.overlays === void 0 ? o = new
|
|
4027
|
+
return e.overlays === void 0 ? o = new O() : Array.isArray(e.overlays) ? o = new O(e.overlays.slice()) : (E(typeof e.overlays.getArray == "function", "Expected `overlays` to be an array or an `ol/Collection.js`"), o = e.overlays), {
|
|
4057
4028
|
controls: i,
|
|
4058
4029
|
interactions: a,
|
|
4059
4030
|
keyboardEventTarget: t,
|
|
@@ -4061,5 +4032,4 @@ function Hi(e) {
|
|
|
4061
4032
|
values: n
|
|
4062
4033
|
};
|
|
4063
4034
|
}
|
|
4064
|
-
|
|
4065
|
-
export { pn as A, Pt as B, bn as C, Fn as D, In as E, Mt as F, A as G, yt as H, Ft as I, k as K, Nt as L, Vt as M, Et as N, Pn as O, At as P, Bt as R, Cn as S, Sn as T, j as U, bt as V, it as W, gn as _, Di as a, vn as b, Rr as c, jr as d, Ar as f, wn as g, Rn as h, ki as i, M as j, An as k, Y as l, Bn as m, Ri as n, $ as o, kr as p, Pi as r, yi as s, Vi as t, Fr as u, hn as v, xn as w, yn as x, _n as y, Lt as z };
|
|
4035
|
+
export { hn as A, It as B, Sn as C, Ln as D, Rn as E, Pt as F, O as G, xt as H, Lt as I, D as K, Ft as L, Ut as M, Ot as N, In as O, Mt as P, Ht as R, Tn as S, wn as T, k as U, St as V, ot as W, vn as _, ki as a, bn as b, Br as c, Nr as d, Mr as f, En as g, Bn as h, ji as i, A as j, Mn as k, q as l, Hn as m, Ri as n, Z as o, jr as p, Pi as r, xi as s, Vi as t, Lr as u, _n as v, Cn as w, xn as x, yn as y, zt as z };
|