@maptiler/geocoding-control 2.0.0 → 2.0.1
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/MapLibreBasedGeocodingControl.d.ts +2616 -27
- package/leaflet-controller.d.ts +1 -1
- package/leaflet-controller.js +97 -95
- package/leaflet-controller.js.map +1 -1
- package/leaflet-controller.umd.js +2 -2
- package/leaflet-controller.umd.js.map +1 -1
- package/leaflet.d.ts +26 -4
- package/leaflet.js +906 -909
- package/leaflet.js.map +1 -1
- package/leaflet.umd.js +3 -3
- package/leaflet.umd.js.map +1 -1
- package/maplibregl-controller.d.ts +1 -1
- package/maplibregl-controller.js +480 -466
- package/maplibregl-controller.js.map +1 -1
- package/maplibregl-controller.umd.js +3 -3
- package/maplibregl-controller.umd.js.map +1 -1
- package/maplibregl.d.ts +2594 -9
- package/maplibregl.js +2094 -1969
- package/maplibregl.js.map +1 -1
- package/maplibregl.umd.js +3 -3
- package/maplibregl.umd.js.map +1 -1
- package/maptilersdk.d.ts +2594 -9
- package/maptilersdk.js +2086 -1964
- package/maptilersdk.js.map +1 -1
- package/maptilersdk.umd.js +3 -3
- package/maptilersdk.umd.js.map +1 -1
- package/openlayers-controller.d.ts +1 -1
- package/openlayers-controller.js +62 -60
- package/openlayers-controller.js.map +1 -1
- package/openlayers-controller.umd.js +2 -2
- package/openlayers-controller.umd.js.map +1 -1
- package/openlayers.d.ts +21 -0
- package/openlayers.js +754 -786
- package/openlayers.js.map +1 -1
- package/openlayers.umd.js +3 -3
- package/openlayers.umd.js.map +1 -1
- package/package.json +18 -18
- package/react.d.ts +4 -4
- package/react.js +619 -619
- package/react.js.map +1 -1
- package/react.umd.js +1 -1
- package/react.umd.js.map +1 -1
- package/style.css +1 -1
- package/svelte/FeatureItem.svelte +1 -1
- package/svelte/FeatureItem.svelte.d.ts +2 -2
- package/svelte/GeocodingControl.svelte +31 -32
- package/svelte/GeocodingControl.svelte.d.ts +26 -13
- package/svelte/MapLibreBasedGeocodingControl.d.ts +2616 -27
- package/svelte/MapLibreBasedGeocodingControl.js +120 -17
- package/svelte/leaflet-controller.d.ts +1 -1
- package/svelte/leaflet-controller.js +4 -1
- package/svelte/leaflet.d.ts +26 -4
- package/svelte/leaflet.js +17 -19
- package/svelte/maplibregl-controller.d.ts +1 -1
- package/svelte/maplibregl-controller.js +45 -36
- package/svelte/maplibregl.d.ts +2594 -9
- package/svelte/maplibregl.js +11 -3
- package/svelte/maptilersdk.d.ts +2594 -9
- package/svelte/maptilersdk.js +11 -3
- package/svelte/openlayers-controller.d.ts +1 -1
- package/svelte/openlayers-controller.js +4 -1
- package/svelte/openlayers.d.ts +21 -0
- package/svelte/openlayers.js +30 -45
- package/svelte/react.d.ts +4 -4
- package/svelte/react.js +5 -5
- package/svelte/types.d.ts +84 -35
- package/svelte/vanilla.d.ts +14 -1
- package/svelte/vanilla.js +31 -8
- package/types.d.ts +84 -35
- package/vanilla.d.ts +14 -1
- package/vanilla.js +929 -901
- package/vanilla.js.map +1 -1
- package/vanilla.umd.js +1 -1
- package/vanilla.umd.js.map +1 -1
package/leaflet.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
var dn = Object.defineProperty;
|
|
2
|
-
var
|
|
2
|
+
var Zt = (i) => {
|
|
3
3
|
throw TypeError(i);
|
|
4
4
|
};
|
|
5
5
|
var hn = (i, e, t) => e in i ? dn(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
import * as
|
|
9
|
-
function
|
|
6
|
+
var _t = (i, e, t) => hn(i, typeof e != "symbol" ? e + "" : e, t), Qt = (i, e, t) => e.has(i) || Zt("Cannot " + t);
|
|
7
|
+
var te = (i, e, t) => (Qt(i, e, "read from private field"), t ? t.call(i) : e.get(i)), Et = (i, e, t) => e.has(i) ? Zt("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(i) : e.set(i, t), Lt = (i, e, t, n) => (Qt(i, e, "write to private field"), n ? n.call(i, t) : e.set(i, t), t);
|
|
8
|
+
import * as se from "leaflet";
|
|
9
|
+
function z() {
|
|
10
10
|
}
|
|
11
11
|
function gn(i, e) {
|
|
12
12
|
for (const t in e) i[t] = e[t];
|
|
@@ -15,35 +15,35 @@ function gn(i, e) {
|
|
|
15
15
|
i
|
|
16
16
|
);
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function ki(i) {
|
|
19
19
|
return i();
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function Ht() {
|
|
22
22
|
return /* @__PURE__ */ Object.create(null);
|
|
23
23
|
}
|
|
24
24
|
function ye(i) {
|
|
25
|
-
i.forEach(
|
|
25
|
+
i.forEach(ki);
|
|
26
26
|
}
|
|
27
|
-
function
|
|
27
|
+
function Ni(i) {
|
|
28
28
|
return typeof i == "function";
|
|
29
29
|
}
|
|
30
30
|
function Se(i, e) {
|
|
31
31
|
return i != i ? e == e : i !== e || i && typeof i == "object" || typeof i == "function";
|
|
32
32
|
}
|
|
33
|
-
let
|
|
34
|
-
function
|
|
35
|
-
return i === e ? !0 : (
|
|
33
|
+
let it;
|
|
34
|
+
function Y(i, e) {
|
|
35
|
+
return i === e ? !0 : (it || (it = document.createElement("a")), it.href = e, i === it.href);
|
|
36
36
|
}
|
|
37
37
|
function mn(i) {
|
|
38
38
|
return Object.keys(i).length === 0;
|
|
39
39
|
}
|
|
40
40
|
function yn(i, e, t, n) {
|
|
41
41
|
if (i) {
|
|
42
|
-
const r =
|
|
42
|
+
const r = Pi(i, e, t, n);
|
|
43
43
|
return i[0](r);
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function Pi(i, e, t, n) {
|
|
47
47
|
return i[1] && n ? gn(t.ctx.slice(), i[1](n(e))) : t.ctx;
|
|
48
48
|
}
|
|
49
49
|
function pn(i, e, t, n) {
|
|
@@ -61,13 +61,13 @@ function pn(i, e, t, n) {
|
|
|
61
61
|
}
|
|
62
62
|
return e.dirty;
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function bn(i, e, t, n, r, o) {
|
|
65
65
|
if (r) {
|
|
66
|
-
const l =
|
|
66
|
+
const l = Pi(e, t, n, o);
|
|
67
67
|
i.p(l, r);
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function vn(i) {
|
|
71
71
|
if (i.ctx.length > 32) {
|
|
72
72
|
const e = [], t = i.ctx.length / 32;
|
|
73
73
|
for (let n = 0; n < t; n++)
|
|
@@ -76,7 +76,7 @@ function bn(i) {
|
|
|
76
76
|
}
|
|
77
77
|
return -1;
|
|
78
78
|
}
|
|
79
|
-
function
|
|
79
|
+
function Vt(i) {
|
|
80
80
|
return i ?? "";
|
|
81
81
|
}
|
|
82
82
|
function T(i, e) {
|
|
@@ -88,16 +88,16 @@ function F(i, e, t) {
|
|
|
88
88
|
function B(i) {
|
|
89
89
|
i.parentNode && i.parentNode.removeChild(i);
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function A(i) {
|
|
92
92
|
return document.createElement(i);
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function ue(i) {
|
|
95
95
|
return document.createElementNS("http://www.w3.org/2000/svg", i);
|
|
96
96
|
}
|
|
97
97
|
function _e(i) {
|
|
98
98
|
return document.createTextNode(i);
|
|
99
99
|
}
|
|
100
|
-
function
|
|
100
|
+
function ee() {
|
|
101
101
|
return _e(" ");
|
|
102
102
|
}
|
|
103
103
|
function wn() {
|
|
@@ -121,28 +121,28 @@ function je(i, e) {
|
|
|
121
121
|
e = "" + e, i.data !== e && (i.data = /** @type {string} */
|
|
122
122
|
e);
|
|
123
123
|
}
|
|
124
|
-
function
|
|
124
|
+
function Yt(i, e) {
|
|
125
125
|
i.value = e ?? "";
|
|
126
126
|
}
|
|
127
|
-
function
|
|
127
|
+
function re(i, e, t) {
|
|
128
128
|
i.classList.toggle(e, !!t);
|
|
129
129
|
}
|
|
130
130
|
function Ln(i, e, { bubbles: t = !1, cancelable: n = !1 } = {}) {
|
|
131
131
|
return new CustomEvent(i, { detail: e, bubbles: t, cancelable: n });
|
|
132
132
|
}
|
|
133
|
-
let
|
|
134
|
-
function
|
|
135
|
-
|
|
133
|
+
let qe;
|
|
134
|
+
function Ge(i) {
|
|
135
|
+
qe = i;
|
|
136
136
|
}
|
|
137
|
-
function
|
|
138
|
-
if (!
|
|
139
|
-
return
|
|
137
|
+
function Ti() {
|
|
138
|
+
if (!qe) throw new Error("Function called outside component initialization");
|
|
139
|
+
return qe;
|
|
140
140
|
}
|
|
141
141
|
function Sn(i) {
|
|
142
|
-
|
|
142
|
+
Ti().$$.on_destroy.push(i);
|
|
143
143
|
}
|
|
144
144
|
function xn() {
|
|
145
|
-
const i =
|
|
145
|
+
const i = Ti();
|
|
146
146
|
return (e, t, { cancelable: n = !1 } = {}) => {
|
|
147
147
|
const r = i.$$.callbacks[e];
|
|
148
148
|
if (r) {
|
|
@@ -159,45 +159,45 @@ function xn() {
|
|
|
159
159
|
return !0;
|
|
160
160
|
};
|
|
161
161
|
}
|
|
162
|
-
function
|
|
162
|
+
function Xt(i, e) {
|
|
163
163
|
const t = i.$$.callbacks[e.type];
|
|
164
164
|
t && t.slice().forEach((n) => n.call(this, e));
|
|
165
165
|
}
|
|
166
|
-
const
|
|
167
|
-
let
|
|
168
|
-
const
|
|
166
|
+
const We = [], Ct = [];
|
|
167
|
+
let ze = [];
|
|
168
|
+
const Kt = [], Mn = /* @__PURE__ */ Promise.resolve();
|
|
169
169
|
let kt = !1;
|
|
170
170
|
function Cn() {
|
|
171
|
-
kt || (kt = !0, Mn.then(
|
|
171
|
+
kt || (kt = !0, Mn.then(Ri));
|
|
172
172
|
}
|
|
173
173
|
function Nt(i) {
|
|
174
|
-
|
|
174
|
+
ze.push(i);
|
|
175
175
|
}
|
|
176
176
|
const St = /* @__PURE__ */ new Set();
|
|
177
177
|
let Oe = 0;
|
|
178
|
-
function
|
|
178
|
+
function Ri() {
|
|
179
179
|
if (Oe !== 0)
|
|
180
180
|
return;
|
|
181
|
-
const i =
|
|
181
|
+
const i = qe;
|
|
182
182
|
do {
|
|
183
183
|
try {
|
|
184
|
-
for (; Oe <
|
|
185
|
-
const e =
|
|
186
|
-
Oe++,
|
|
184
|
+
for (; Oe < We.length; ) {
|
|
185
|
+
const e = We[Oe];
|
|
186
|
+
Oe++, Ge(e), kn(e.$$);
|
|
187
187
|
}
|
|
188
188
|
} catch (e) {
|
|
189
|
-
throw
|
|
189
|
+
throw We.length = 0, Oe = 0, e;
|
|
190
190
|
}
|
|
191
|
-
for (
|
|
192
|
-
for (let e = 0; e <
|
|
193
|
-
const t =
|
|
191
|
+
for (Ge(null), We.length = 0, Oe = 0; Ct.length; ) Ct.pop()();
|
|
192
|
+
for (let e = 0; e < ze.length; e += 1) {
|
|
193
|
+
const t = ze[e];
|
|
194
194
|
St.has(t) || (St.add(t), t());
|
|
195
195
|
}
|
|
196
|
-
|
|
197
|
-
} while (
|
|
198
|
-
for (;
|
|
199
|
-
|
|
200
|
-
kt = !1, St.clear(),
|
|
196
|
+
ze.length = 0;
|
|
197
|
+
} while (We.length);
|
|
198
|
+
for (; Kt.length; )
|
|
199
|
+
Kt.pop()();
|
|
200
|
+
kt = !1, St.clear(), Ge(i);
|
|
201
201
|
}
|
|
202
202
|
function kn(i) {
|
|
203
203
|
if (i.fragment !== null) {
|
|
@@ -208,11 +208,11 @@ function kn(i) {
|
|
|
208
208
|
}
|
|
209
209
|
function Nn(i) {
|
|
210
210
|
const e = [], t = [];
|
|
211
|
-
|
|
211
|
+
ze.forEach((n) => i.indexOf(n) === -1 ? e.push(n) : t.push(n)), t.forEach((n) => n()), ze = e;
|
|
212
212
|
}
|
|
213
|
-
const
|
|
213
|
+
const nt = /* @__PURE__ */ new Set();
|
|
214
214
|
let Ne;
|
|
215
|
-
function
|
|
215
|
+
function rt() {
|
|
216
216
|
Ne = {
|
|
217
217
|
r: 0,
|
|
218
218
|
c: [],
|
|
@@ -220,52 +220,52 @@ function ot() {
|
|
|
220
220
|
// parent group
|
|
221
221
|
};
|
|
222
222
|
}
|
|
223
|
-
function
|
|
223
|
+
function ot() {
|
|
224
224
|
Ne.r || ye(Ne.c), Ne = Ne.p;
|
|
225
225
|
}
|
|
226
|
-
function
|
|
227
|
-
i && i.i && (
|
|
226
|
+
function G(i, e) {
|
|
227
|
+
i && i.i && (nt.delete(i), i.i(e));
|
|
228
228
|
}
|
|
229
|
-
function
|
|
229
|
+
function H(i, e, t, n) {
|
|
230
230
|
if (i && i.o) {
|
|
231
|
-
if (
|
|
232
|
-
|
|
233
|
-
|
|
231
|
+
if (nt.has(i)) return;
|
|
232
|
+
nt.add(i), Ne.c.push(() => {
|
|
233
|
+
nt.delete(i), n && (t && i.d(1), n());
|
|
234
234
|
}), i.o(e);
|
|
235
235
|
} else n && n();
|
|
236
236
|
}
|
|
237
|
-
function
|
|
237
|
+
function Jt(i) {
|
|
238
238
|
return (i == null ? void 0 : i.length) !== void 0 ? i : Array.from(i);
|
|
239
239
|
}
|
|
240
240
|
function Pn(i, e) {
|
|
241
|
-
|
|
241
|
+
H(i, 1, 1, () => {
|
|
242
242
|
e.delete(i.key);
|
|
243
243
|
});
|
|
244
244
|
}
|
|
245
|
-
function Tn(i, e, t, n, r, o, l, s, c, u,
|
|
246
|
-
let f = i.length,
|
|
245
|
+
function Tn(i, e, t, n, r, o, l, s, c, u, d, a) {
|
|
246
|
+
let f = i.length, h = o.length, g = f;
|
|
247
247
|
const v = {};
|
|
248
|
-
for (;
|
|
249
|
-
const
|
|
250
|
-
for (
|
|
251
|
-
const
|
|
252
|
-
let C = l.get(
|
|
253
|
-
C ?
|
|
248
|
+
for (; g--; ) v[i[g].key] = g;
|
|
249
|
+
const w = [], p = /* @__PURE__ */ new Map(), S = /* @__PURE__ */ new Map(), L = [];
|
|
250
|
+
for (g = h; g--; ) {
|
|
251
|
+
const b = a(r, o, g), _ = t(b);
|
|
252
|
+
let C = l.get(_);
|
|
253
|
+
C ? L.push(() => C.p(b, e)) : (C = u(_, b), C.c()), p.set(_, w[g] = C), _ in v && S.set(_, Math.abs(g - v[_]));
|
|
254
254
|
}
|
|
255
|
-
const
|
|
256
|
-
function
|
|
257
|
-
|
|
255
|
+
const E = /* @__PURE__ */ new Set(), M = /* @__PURE__ */ new Set();
|
|
256
|
+
function k(b) {
|
|
257
|
+
G(b, 1), b.m(s, d), l.set(b.key, b), d = b.first, h--;
|
|
258
258
|
}
|
|
259
|
-
for (; f &&
|
|
260
|
-
const
|
|
261
|
-
|
|
259
|
+
for (; f && h; ) {
|
|
260
|
+
const b = w[h - 1], _ = i[f - 1], C = b.key, I = _.key;
|
|
261
|
+
b === _ ? (d = b.first, f--, h--) : p.has(I) ? !l.has(C) || E.has(C) ? k(b) : M.has(I) ? f-- : S.get(C) > S.get(I) ? (M.add(C), k(b)) : (E.add(I), f--) : (c(_, l), f--);
|
|
262
262
|
}
|
|
263
263
|
for (; f--; ) {
|
|
264
|
-
const
|
|
265
|
-
p.has(
|
|
264
|
+
const b = i[f];
|
|
265
|
+
p.has(b.key) || c(b, l);
|
|
266
266
|
}
|
|
267
|
-
for (;
|
|
268
|
-
return ye(
|
|
267
|
+
for (; h; ) k(w[h - 1]);
|
|
268
|
+
return ye(L), w;
|
|
269
269
|
}
|
|
270
270
|
function Ee(i) {
|
|
271
271
|
i && i.c();
|
|
@@ -273,7 +273,7 @@ function Ee(i) {
|
|
|
273
273
|
function ge(i, e, t) {
|
|
274
274
|
const { fragment: n, after_update: r } = i.$$;
|
|
275
275
|
n && n.m(e, t), Nt(() => {
|
|
276
|
-
const o = i.$$.on_mount.map(
|
|
276
|
+
const o = i.$$.on_mount.map(ki).filter(Ni);
|
|
277
277
|
i.$$.on_destroy ? i.$$.on_destroy.push(...o) : ye(o), i.$$.on_mount = [];
|
|
278
278
|
}), r.forEach(Nt);
|
|
279
279
|
}
|
|
@@ -282,19 +282,19 @@ function me(i, e) {
|
|
|
282
282
|
t.fragment !== null && (Nn(t.after_update), ye(t.on_destroy), t.fragment && t.fragment.d(e), t.on_destroy = t.fragment = null, t.ctx = []);
|
|
283
283
|
}
|
|
284
284
|
function Rn(i, e) {
|
|
285
|
-
i.$$.dirty[0] === -1 && (
|
|
285
|
+
i.$$.dirty[0] === -1 && (We.push(i), Cn(), i.$$.dirty.fill(0)), i.$$.dirty[e / 31 | 0] |= 1 << e % 31;
|
|
286
286
|
}
|
|
287
287
|
function xe(i, e, t, n, r, o, l = null, s = [-1]) {
|
|
288
|
-
const c =
|
|
289
|
-
|
|
288
|
+
const c = qe;
|
|
289
|
+
Ge(i);
|
|
290
290
|
const u = i.$$ = {
|
|
291
291
|
fragment: null,
|
|
292
292
|
ctx: [],
|
|
293
293
|
// state
|
|
294
294
|
props: o,
|
|
295
|
-
update:
|
|
295
|
+
update: z,
|
|
296
296
|
not_equal: r,
|
|
297
|
-
bound:
|
|
297
|
+
bound: Ht(),
|
|
298
298
|
// lifecycle
|
|
299
299
|
on_mount: [],
|
|
300
300
|
on_destroy: [],
|
|
@@ -303,25 +303,25 @@ function xe(i, e, t, n, r, o, l = null, s = [-1]) {
|
|
|
303
303
|
after_update: [],
|
|
304
304
|
context: new Map(e.context || (c ? c.$$.context : [])),
|
|
305
305
|
// everything else
|
|
306
|
-
callbacks:
|
|
306
|
+
callbacks: Ht(),
|
|
307
307
|
dirty: s,
|
|
308
308
|
skip_bound: !1,
|
|
309
309
|
root: e.target || c.$$.root
|
|
310
310
|
};
|
|
311
311
|
l && l(u.root);
|
|
312
|
-
let
|
|
313
|
-
if (u.ctx = t ? t(i, e.props || {}, (a, f, ...
|
|
314
|
-
const
|
|
315
|
-
return u.ctx && r(u.ctx[a], u.ctx[a] =
|
|
316
|
-
}) : [], u.update(),
|
|
312
|
+
let d = !1;
|
|
313
|
+
if (u.ctx = t ? t(i, e.props || {}, (a, f, ...h) => {
|
|
314
|
+
const g = h.length ? h[0] : f;
|
|
315
|
+
return u.ctx && r(u.ctx[a], u.ctx[a] = g) && (!u.skip_bound && u.bound[a] && u.bound[a](g), d && Rn(i, a)), f;
|
|
316
|
+
}) : [], u.update(), d = !0, ye(u.before_update), u.fragment = n ? n(u.ctx) : !1, e.target) {
|
|
317
317
|
if (e.hydrate) {
|
|
318
318
|
const a = En(e.target);
|
|
319
319
|
u.fragment && u.fragment.l(a), a.forEach(B);
|
|
320
320
|
} else
|
|
321
321
|
u.fragment && u.fragment.c();
|
|
322
|
-
e.intro &&
|
|
322
|
+
e.intro && G(i.$$.fragment), ge(i, e.target, e.anchor), Ri();
|
|
323
323
|
}
|
|
324
|
-
|
|
324
|
+
Ge(c);
|
|
325
325
|
}
|
|
326
326
|
class Me {
|
|
327
327
|
constructor() {
|
|
@@ -332,7 +332,7 @@ class Me {
|
|
|
332
332
|
*
|
|
333
333
|
* @type {any}
|
|
334
334
|
*/
|
|
335
|
-
|
|
335
|
+
_t(this, "$$");
|
|
336
336
|
/**
|
|
337
337
|
* ### PRIVATE API
|
|
338
338
|
*
|
|
@@ -340,11 +340,11 @@ class Me {
|
|
|
340
340
|
*
|
|
341
341
|
* @type {any}
|
|
342
342
|
*/
|
|
343
|
-
|
|
343
|
+
_t(this, "$$set");
|
|
344
344
|
}
|
|
345
345
|
/** @returns {void} */
|
|
346
346
|
$destroy() {
|
|
347
|
-
me(this, 1), this.$destroy =
|
|
347
|
+
me(this, 1), this.$destroy = z;
|
|
348
348
|
}
|
|
349
349
|
/**
|
|
350
350
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -353,8 +353,8 @@ class Me {
|
|
|
353
353
|
* @returns {() => void}
|
|
354
354
|
*/
|
|
355
355
|
$on(e, t) {
|
|
356
|
-
if (!
|
|
357
|
-
return
|
|
356
|
+
if (!Ni(t))
|
|
357
|
+
return z;
|
|
358
358
|
const n = this.$$.callbacks[e] || (this.$$.callbacks[e] = []);
|
|
359
359
|
return n.push(t), () => {
|
|
360
360
|
const r = n.indexOf(t);
|
|
@@ -375,51 +375,51 @@ function On(i) {
|
|
|
375
375
|
let e, t;
|
|
376
376
|
return {
|
|
377
377
|
c() {
|
|
378
|
-
e =
|
|
378
|
+
e = ue("svg"), t = ue("path"), y(t, "d", "M13.12.706a.982.982 0 0 0-1.391 0L6.907 5.517 2.087.696a.982.982 0 1 0-1.391 1.39l4.821 4.821L.696 11.73a.982.982 0 1 0 1.39 1.39l4.821-4.821 4.822 4.821a.982.982 0 1 0 1.39-1.39L8.298 6.908l4.821-4.822a.988.988 0 0 0 0-1.38Z"), y(e, "viewBox", "0 0 14 14"), y(e, "width", "13"), y(e, "height", "13"), y(e, "class", "svelte-en2qvf");
|
|
379
379
|
},
|
|
380
380
|
m(n, r) {
|
|
381
381
|
F(n, e, r), T(e, t);
|
|
382
382
|
},
|
|
383
|
-
p:
|
|
384
|
-
i:
|
|
385
|
-
o:
|
|
383
|
+
p: z,
|
|
384
|
+
i: z,
|
|
385
|
+
o: z,
|
|
386
386
|
d(n) {
|
|
387
387
|
n && B(e);
|
|
388
388
|
}
|
|
389
389
|
};
|
|
390
390
|
}
|
|
391
|
-
class
|
|
391
|
+
class Ii extends Me {
|
|
392
392
|
constructor(e) {
|
|
393
393
|
super(), xe(this, e, null, On, Se, {});
|
|
394
394
|
}
|
|
395
395
|
}
|
|
396
|
-
function
|
|
396
|
+
function An(i) {
|
|
397
397
|
let e, t;
|
|
398
398
|
return {
|
|
399
399
|
c() {
|
|
400
|
-
e =
|
|
400
|
+
e = ue("svg"), t = ue("path"), y(t, "d", "M15 0C6.705 0 0 6.705 0 15C0 23.295 6.705 30 15 30C23.295 30 30 23.295 30 15C30 6.705 23.295 0 15 0ZM22.5 20.385L20.385 22.5L15 17.115L9.615 22.5L7.5 20.385L12.885 15L7.5 9.615L9.615 7.5L15 12.885L20.385 7.5L22.5 9.615L17.115 15L22.5 20.385Z"), y(e, "viewBox", "0 0 30 30"), y(e, "fill", "none"), y(e, "xmlns", "http://www.w3.org/2000/svg"), y(e, "class", "svelte-d2loi5");
|
|
401
401
|
},
|
|
402
402
|
m(n, r) {
|
|
403
403
|
F(n, e, r), T(e, t);
|
|
404
404
|
},
|
|
405
|
-
p:
|
|
406
|
-
i:
|
|
407
|
-
o:
|
|
405
|
+
p: z,
|
|
406
|
+
i: z,
|
|
407
|
+
o: z,
|
|
408
408
|
d(n) {
|
|
409
409
|
n && B(e);
|
|
410
410
|
}
|
|
411
411
|
};
|
|
412
412
|
}
|
|
413
|
-
class
|
|
413
|
+
class Oi extends Me {
|
|
414
414
|
constructor(e) {
|
|
415
|
-
super(), xe(this, e, null,
|
|
415
|
+
super(), xe(this, e, null, An, Se, {});
|
|
416
416
|
}
|
|
417
417
|
}
|
|
418
|
-
function
|
|
418
|
+
function Wn(i) {
|
|
419
419
|
let e, t;
|
|
420
420
|
return {
|
|
421
421
|
c() {
|
|
422
|
-
e =
|
|
422
|
+
e = A("img"), Y(e.src, t = /*iconsBaseUrl*/
|
|
423
423
|
i[3] + "area.svg") || y(e, "src", t), y(
|
|
424
424
|
e,
|
|
425
425
|
"alt",
|
|
@@ -432,7 +432,7 @@ function An(i) {
|
|
|
432
432
|
},
|
|
433
433
|
p(n, r) {
|
|
434
434
|
r & /*iconsBaseUrl*/
|
|
435
|
-
8 && !
|
|
435
|
+
8 && !Y(e.src, t = /*iconsBaseUrl*/
|
|
436
436
|
n[3] + "area.svg") && y(e, "src", t), r & /*placeType*/
|
|
437
437
|
64 && y(
|
|
438
438
|
e,
|
|
@@ -446,11 +446,11 @@ function An(i) {
|
|
|
446
446
|
}
|
|
447
447
|
};
|
|
448
448
|
}
|
|
449
|
-
function
|
|
449
|
+
function zn(i) {
|
|
450
450
|
let e, t;
|
|
451
451
|
return {
|
|
452
452
|
c() {
|
|
453
|
-
e =
|
|
453
|
+
e = A("img"), Y(e.src, t = /*iconsBaseUrl*/
|
|
454
454
|
i[3] + "reverse.svg") || y(e, "src", t), y(
|
|
455
455
|
e,
|
|
456
456
|
"alt",
|
|
@@ -463,7 +463,7 @@ function Bn(i) {
|
|
|
463
463
|
},
|
|
464
464
|
p(n, r) {
|
|
465
465
|
r & /*iconsBaseUrl*/
|
|
466
|
-
8 && !
|
|
466
|
+
8 && !Y(e.src, t = /*iconsBaseUrl*/
|
|
467
467
|
n[3] + "reverse.svg") && y(e, "src", t), r & /*placeType*/
|
|
468
468
|
64 && y(
|
|
469
469
|
e,
|
|
@@ -477,11 +477,11 @@ function Bn(i) {
|
|
|
477
477
|
}
|
|
478
478
|
};
|
|
479
479
|
}
|
|
480
|
-
function
|
|
480
|
+
function Bn(i) {
|
|
481
481
|
let e, t;
|
|
482
482
|
return {
|
|
483
483
|
c() {
|
|
484
|
-
e =
|
|
484
|
+
e = A("img"), Y(e.src, t = /*iconsBaseUrl*/
|
|
485
485
|
i[3] + "poi.svg") || y(e, "src", t), y(
|
|
486
486
|
e,
|
|
487
487
|
"alt",
|
|
@@ -494,7 +494,7 @@ function Dn(i) {
|
|
|
494
494
|
},
|
|
495
495
|
p(n, r) {
|
|
496
496
|
r & /*iconsBaseUrl*/
|
|
497
|
-
8 && !
|
|
497
|
+
8 && !Y(e.src, t = /*iconsBaseUrl*/
|
|
498
498
|
n[3] + "poi.svg") && y(e, "src", t), r & /*placeType*/
|
|
499
499
|
64 && y(
|
|
500
500
|
e,
|
|
@@ -508,11 +508,11 @@ function Dn(i) {
|
|
|
508
508
|
}
|
|
509
509
|
};
|
|
510
510
|
}
|
|
511
|
-
function
|
|
511
|
+
function Dn(i) {
|
|
512
512
|
let e, t;
|
|
513
513
|
return {
|
|
514
514
|
c() {
|
|
515
|
-
e =
|
|
515
|
+
e = A("img"), Y(e.src, t = /*iconsBaseUrl*/
|
|
516
516
|
i[3] + "postal_code.svg") || y(e, "src", t), y(
|
|
517
517
|
e,
|
|
518
518
|
"alt",
|
|
@@ -525,7 +525,7 @@ function Un(i) {
|
|
|
525
525
|
},
|
|
526
526
|
p(n, r) {
|
|
527
527
|
r & /*iconsBaseUrl*/
|
|
528
|
-
8 && !
|
|
528
|
+
8 && !Y(e.src, t = /*iconsBaseUrl*/
|
|
529
529
|
n[3] + "postal_code.svg") && y(e, "src", t), r & /*placeType*/
|
|
530
530
|
64 && y(
|
|
531
531
|
e,
|
|
@@ -543,7 +543,7 @@ function Fn(i) {
|
|
|
543
543
|
let e, t;
|
|
544
544
|
return {
|
|
545
545
|
c() {
|
|
546
|
-
e =
|
|
546
|
+
e = A("img"), Y(e.src, t = /*iconsBaseUrl*/
|
|
547
547
|
i[3] + "street.svg") || y(e, "src", t), y(
|
|
548
548
|
e,
|
|
549
549
|
"alt",
|
|
@@ -556,7 +556,7 @@ function Fn(i) {
|
|
|
556
556
|
},
|
|
557
557
|
p(n, r) {
|
|
558
558
|
r & /*iconsBaseUrl*/
|
|
559
|
-
8 && !
|
|
559
|
+
8 && !Y(e.src, t = /*iconsBaseUrl*/
|
|
560
560
|
n[3] + "street.svg") && y(e, "src", t), r & /*placeType*/
|
|
561
561
|
64 && y(
|
|
562
562
|
e,
|
|
@@ -570,11 +570,11 @@ function Fn(i) {
|
|
|
570
570
|
}
|
|
571
571
|
};
|
|
572
572
|
}
|
|
573
|
-
function
|
|
573
|
+
function Un(i) {
|
|
574
574
|
let e, t;
|
|
575
575
|
return {
|
|
576
576
|
c() {
|
|
577
|
-
e =
|
|
577
|
+
e = A("img"), Y(e.src, t = /*iconsBaseUrl*/
|
|
578
578
|
i[3] + "road.svg") || y(e, "src", t), y(
|
|
579
579
|
e,
|
|
580
580
|
"alt",
|
|
@@ -587,7 +587,7 @@ function Gn(i) {
|
|
|
587
587
|
},
|
|
588
588
|
p(n, r) {
|
|
589
589
|
r & /*iconsBaseUrl*/
|
|
590
|
-
8 && !
|
|
590
|
+
8 && !Y(e.src, t = /*iconsBaseUrl*/
|
|
591
591
|
n[3] + "road.svg") && y(e, "src", t), r & /*placeType*/
|
|
592
592
|
64 && y(
|
|
593
593
|
e,
|
|
@@ -601,11 +601,11 @@ function Gn(i) {
|
|
|
601
601
|
}
|
|
602
602
|
};
|
|
603
603
|
}
|
|
604
|
-
function
|
|
604
|
+
function Gn(i) {
|
|
605
605
|
let e, t;
|
|
606
606
|
return {
|
|
607
607
|
c() {
|
|
608
|
-
e =
|
|
608
|
+
e = A("img"), Y(e.src, t = /*iconsBaseUrl*/
|
|
609
609
|
i[3] + "housenumber.svg") || y(e, "src", t), y(
|
|
610
610
|
e,
|
|
611
611
|
"alt",
|
|
@@ -618,7 +618,7 @@ function zn(i) {
|
|
|
618
618
|
},
|
|
619
619
|
p(n, r) {
|
|
620
620
|
r & /*iconsBaseUrl*/
|
|
621
|
-
8 && !
|
|
621
|
+
8 && !Y(e.src, t = /*iconsBaseUrl*/
|
|
622
622
|
n[3] + "housenumber.svg") && y(e, "src", t), r & /*placeType*/
|
|
623
623
|
64 && y(
|
|
624
624
|
e,
|
|
@@ -636,7 +636,7 @@ function jn(i) {
|
|
|
636
636
|
let e, t, n, r;
|
|
637
637
|
return {
|
|
638
638
|
c() {
|
|
639
|
-
e =
|
|
639
|
+
e = A("img"), Y(e.src, t = /*imageUrl*/
|
|
640
640
|
i[5]) || y(e, "src", t), y(
|
|
641
641
|
e,
|
|
642
642
|
"alt",
|
|
@@ -654,7 +654,7 @@ function jn(i) {
|
|
|
654
654
|
},
|
|
655
655
|
p(o, l) {
|
|
656
656
|
l & /*imageUrl*/
|
|
657
|
-
32 && !
|
|
657
|
+
32 && !Y(e.src, t = /*imageUrl*/
|
|
658
658
|
o[5]) && y(e, "src", t), l & /*category*/
|
|
659
659
|
16 && y(
|
|
660
660
|
e,
|
|
@@ -668,11 +668,11 @@ function jn(i) {
|
|
|
668
668
|
}
|
|
669
669
|
};
|
|
670
670
|
}
|
|
671
|
-
function
|
|
671
|
+
function $t(i) {
|
|
672
672
|
let e, t;
|
|
673
673
|
return {
|
|
674
674
|
c() {
|
|
675
|
-
e =
|
|
675
|
+
e = A("span"), t = _e(
|
|
676
676
|
/*placeType*/
|
|
677
677
|
i[6]
|
|
678
678
|
), y(e, "class", "secondary svelte-ltkwvy");
|
|
@@ -693,8 +693,8 @@ function ei(i) {
|
|
|
693
693
|
}
|
|
694
694
|
};
|
|
695
695
|
}
|
|
696
|
-
function
|
|
697
|
-
let e, t, n, r, o, l, s, c, u,
|
|
696
|
+
function qn(i) {
|
|
697
|
+
let e, t, n, r, o, l, s, c, u, d = (
|
|
698
698
|
/*isReverse*/
|
|
699
699
|
(i[7] ? (
|
|
700
700
|
/*feature*/
|
|
@@ -703,10 +703,10 @@ function Zn(i) {
|
|
|
703
703
|
/*feature*/
|
|
704
704
|
i[0].place_name.replace(/,.*/, "")
|
|
705
705
|
)) + ""
|
|
706
|
-
), a, f,
|
|
706
|
+
), a, f, h = (
|
|
707
707
|
/*showPlaceType*/
|
|
708
708
|
i[2] === "always" || /*showPlaceType*/
|
|
709
|
-
i[2] && !/*feature*/
|
|
709
|
+
i[2] !== "never" && !/*feature*/
|
|
710
710
|
i[0].address && !/*feature*/
|
|
711
711
|
i[0].id.startsWith("road.") && !/*feature*/
|
|
712
712
|
i[0].id.startsWith("address.") && !/*feature*/
|
|
@@ -714,48 +714,48 @@ function Zn(i) {
|
|
|
714
714
|
i[0].id.startsWith("poi.") || !/*imageUrl*/
|
|
715
715
|
i[5]) && !/*isReverse*/
|
|
716
716
|
i[7]
|
|
717
|
-
),
|
|
717
|
+
), g, v, w = (
|
|
718
718
|
/*isReverse*/
|
|
719
719
|
(i[7] ? "" : (
|
|
720
720
|
/*feature*/
|
|
721
721
|
i[0].place_name.replace(/[^,]*,?\s*/, "")
|
|
722
722
|
)) + ""
|
|
723
|
-
), p,
|
|
724
|
-
function
|
|
723
|
+
), p, S, L;
|
|
724
|
+
function E(_, C) {
|
|
725
725
|
return C & /*feature*/
|
|
726
726
|
1 && (t = null), C & /*feature*/
|
|
727
727
|
1 && (n = null), C & /*feature*/
|
|
728
728
|
1 && (r = null), C & /*feature*/
|
|
729
729
|
1 && (o = null), /*imageUrl*/
|
|
730
|
-
|
|
730
|
+
_[5] ? jn : (
|
|
731
731
|
/*feature*/
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
732
|
+
_[0].address ? Gn : (t == null && (t = !!/*feature*/
|
|
733
|
+
_[0].id.startsWith("road.")), t ? Un : (n == null && (n = !!/*feature*/
|
|
734
|
+
_[0].id.startsWith("address.")), n ? Fn : (r == null && (r = !!/*feature*/
|
|
735
|
+
_[0].id.startsWith("postal_code.")), r ? Dn : (o == null && (o = !!/*feature*/
|
|
736
|
+
_[0].id.startsWith("poi.")), o ? Bn : (
|
|
737
737
|
/*isReverse*/
|
|
738
|
-
|
|
738
|
+
_[7] ? zn : Wn
|
|
739
739
|
)))))
|
|
740
740
|
);
|
|
741
741
|
}
|
|
742
|
-
let
|
|
742
|
+
let M = E(i, -1), k = M(i), b = h && $t(i);
|
|
743
743
|
return {
|
|
744
744
|
c() {
|
|
745
|
-
e =
|
|
745
|
+
e = A("li"), k.c(), l = ee(), s = A("span"), c = A("span"), u = A("span"), a = _e(d), f = ee(), b && b.c(), g = ee(), v = A("span"), p = _e(w), y(u, "class", "primary svelte-ltkwvy"), y(c, "class", "svelte-ltkwvy"), y(v, "class", "line2 svelte-ltkwvy"), y(s, "class", "texts svelte-ltkwvy"), y(e, "tabindex", "0"), y(
|
|
746
746
|
e,
|
|
747
747
|
"data-selected",
|
|
748
748
|
/*selected*/
|
|
749
749
|
i[1]
|
|
750
|
-
), y(e, "class", "svelte-ltkwvy"),
|
|
750
|
+
), y(e, "class", "svelte-ltkwvy"), re(
|
|
751
751
|
e,
|
|
752
752
|
"selected",
|
|
753
753
|
/*selected*/
|
|
754
754
|
i[1]
|
|
755
755
|
);
|
|
756
756
|
},
|
|
757
|
-
m(
|
|
758
|
-
F(
|
|
757
|
+
m(_, C) {
|
|
758
|
+
F(_, e, C), k.m(e, null), T(e, l), T(e, s), T(s, c), T(c, u), T(u, a), T(c, f), b && b.m(c, null), T(s, g), T(s, v), T(v, p), S || (L = [
|
|
759
759
|
J(
|
|
760
760
|
e,
|
|
761
761
|
"mouseenter",
|
|
@@ -768,80 +768,80 @@ function Zn(i) {
|
|
|
768
768
|
/*focus_handler*/
|
|
769
769
|
i[13]
|
|
770
770
|
)
|
|
771
|
-
],
|
|
771
|
+
], S = !0);
|
|
772
772
|
},
|
|
773
|
-
p(
|
|
774
|
-
|
|
775
|
-
1 &&
|
|
776
|
-
(
|
|
773
|
+
p(_, [C]) {
|
|
774
|
+
M === (M = E(_, C)) && k ? k.p(_, C) : (k.d(1), k = M(_), k && (k.c(), k.m(e, l))), C & /*feature*/
|
|
775
|
+
1 && d !== (d = /*isReverse*/
|
|
776
|
+
(_[7] ? (
|
|
777
777
|
/*feature*/
|
|
778
|
-
|
|
778
|
+
_[0].place_name
|
|
779
779
|
) : (
|
|
780
780
|
/*feature*/
|
|
781
|
-
|
|
782
|
-
)) + "") && je(a,
|
|
783
|
-
37 && (
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
1 &&
|
|
794
|
-
(
|
|
781
|
+
_[0].place_name.replace(/,.*/, "")
|
|
782
|
+
)) + "") && je(a, d), C & /*showPlaceType, feature, imageUrl*/
|
|
783
|
+
37 && (h = /*showPlaceType*/
|
|
784
|
+
_[2] === "always" || /*showPlaceType*/
|
|
785
|
+
_[2] !== "never" && !/*feature*/
|
|
786
|
+
_[0].address && !/*feature*/
|
|
787
|
+
_[0].id.startsWith("road.") && !/*feature*/
|
|
788
|
+
_[0].id.startsWith("address.") && !/*feature*/
|
|
789
|
+
_[0].id.startsWith("postal_code.") && (!/*feature*/
|
|
790
|
+
_[0].id.startsWith("poi.") || !/*imageUrl*/
|
|
791
|
+
_[5]) && !/*isReverse*/
|
|
792
|
+
_[7]), h ? b ? b.p(_, C) : (b = $t(_), b.c(), b.m(c, null)) : b && (b.d(1), b = null), C & /*feature*/
|
|
793
|
+
1 && w !== (w = /*isReverse*/
|
|
794
|
+
(_[7] ? "" : (
|
|
795
795
|
/*feature*/
|
|
796
|
-
|
|
797
|
-
)) + "") && je(p,
|
|
796
|
+
_[0].place_name.replace(/[^,]*,?\s*/, "")
|
|
797
|
+
)) + "") && je(p, w), C & /*selected*/
|
|
798
798
|
2 && y(
|
|
799
799
|
e,
|
|
800
800
|
"data-selected",
|
|
801
801
|
/*selected*/
|
|
802
|
-
|
|
802
|
+
_[1]
|
|
803
803
|
), C & /*selected*/
|
|
804
|
-
2 &&
|
|
804
|
+
2 && re(
|
|
805
805
|
e,
|
|
806
806
|
"selected",
|
|
807
807
|
/*selected*/
|
|
808
|
-
|
|
808
|
+
_[1]
|
|
809
809
|
);
|
|
810
810
|
},
|
|
811
|
-
i:
|
|
812
|
-
o:
|
|
813
|
-
d(
|
|
814
|
-
|
|
811
|
+
i: z,
|
|
812
|
+
o: z,
|
|
813
|
+
d(_) {
|
|
814
|
+
_ && B(e), k.d(), b && b.d(), S = !1, ye(L);
|
|
815
815
|
}
|
|
816
816
|
};
|
|
817
817
|
}
|
|
818
|
-
function
|
|
819
|
-
var
|
|
818
|
+
function Zn(i, e, t) {
|
|
819
|
+
var L;
|
|
820
820
|
let n, r, { feature: o } = e, { selected: l = !1 } = e, { showPlaceType: s } = e, { missingIconsCache: c } = e, { iconsBaseUrl: u } = e;
|
|
821
|
-
const
|
|
822
|
-
let a, f,
|
|
821
|
+
const d = (L = o.properties) == null ? void 0 : L.categories;
|
|
822
|
+
let a, f, h = 0, g = o.place_type[0] === "reverse";
|
|
823
823
|
function v() {
|
|
824
|
-
f && c.add(f), t(10,
|
|
824
|
+
f && c.add(f), t(10, h++, h);
|
|
825
825
|
}
|
|
826
|
-
function
|
|
827
|
-
|
|
826
|
+
function w(E) {
|
|
827
|
+
Xt.call(this, i, E);
|
|
828
828
|
}
|
|
829
|
-
function p(
|
|
830
|
-
|
|
829
|
+
function p(E) {
|
|
830
|
+
Xt.call(this, i, E);
|
|
831
831
|
}
|
|
832
|
-
const
|
|
833
|
-
return i.$$set = (
|
|
834
|
-
"feature" in
|
|
832
|
+
const S = () => v();
|
|
833
|
+
return i.$$set = (E) => {
|
|
834
|
+
"feature" in E && t(0, o = E.feature), "selected" in E && t(1, l = E.selected), "showPlaceType" in E && t(2, s = E.showPlaceType), "missingIconsCache" in E && t(9, c = E.missingIconsCache), "iconsBaseUrl" in E && t(3, u = E.iconsBaseUrl);
|
|
835
835
|
}, i.$$.update = () => {
|
|
836
|
-
var
|
|
836
|
+
var E, M, k, b;
|
|
837
837
|
if (i.$$.dirty & /*loadIconAttempt, index, category, iconsBaseUrl, imageUrl, missingIconsCache*/
|
|
838
838
|
3640)
|
|
839
839
|
do
|
|
840
|
-
t(11, n--, n), t(4, a =
|
|
840
|
+
t(11, n--, n), t(4, a = d == null ? void 0 : d[n]), t(5, f = a ? u + a.replace(/ /g, "_") + ".svg" : void 0);
|
|
841
841
|
while (n > -1 && (!f || c.has(f)));
|
|
842
842
|
i.$$.dirty & /*feature*/
|
|
843
|
-
1 && t(6, r = ((
|
|
844
|
-
}, t(11, n = (
|
|
843
|
+
1 && t(6, r = ((M = (E = o.properties) == null ? void 0 : E.categories) == null ? void 0 : M.join(", ")) ?? ((b = (k = o.properties) == null ? void 0 : k.place_type_name) == null ? void 0 : b[0]) ?? o.place_type[0]);
|
|
844
|
+
}, t(11, n = (d == null ? void 0 : d.length) ?? 0), [
|
|
845
845
|
o,
|
|
846
846
|
l,
|
|
847
847
|
s,
|
|
@@ -849,19 +849,19 @@ function qn(i, e, t) {
|
|
|
849
849
|
a,
|
|
850
850
|
f,
|
|
851
851
|
r,
|
|
852
|
-
|
|
852
|
+
g,
|
|
853
853
|
v,
|
|
854
854
|
c,
|
|
855
|
-
|
|
855
|
+
h,
|
|
856
856
|
n,
|
|
857
|
-
|
|
857
|
+
w,
|
|
858
858
|
p,
|
|
859
|
-
|
|
859
|
+
S
|
|
860
860
|
];
|
|
861
861
|
}
|
|
862
862
|
class Qn extends Me {
|
|
863
863
|
constructor(e) {
|
|
864
|
-
super(), xe(this, e,
|
|
864
|
+
super(), xe(this, e, Zn, qn, Se, {
|
|
865
865
|
feature: 0,
|
|
866
866
|
selected: 1,
|
|
867
867
|
showPlaceType: 2,
|
|
@@ -874,14 +874,14 @@ function Hn(i) {
|
|
|
874
874
|
let e;
|
|
875
875
|
return {
|
|
876
876
|
c() {
|
|
877
|
-
e =
|
|
877
|
+
e = A("div"), e.innerHTML = '<svg viewBox="0 0 18 18" width="24" height="24" class="svelte-7cmwmc"><path fill="#333" d="M4.4 4.4l.8.8c2.1-2.1 5.5-2.1 7.6 0l.8-.8c-2.5-2.5-6.7-2.5-9.2 0z"></path><path opacity=".1" d="M12.8 12.9c-2.1 2.1-5.5 2.1-7.6 0-2.1-2.1-2.1-5.5 0-7.7l-.8-.8c-2.5 2.5-2.5 6.7 0 9.2s6.6 2.5 9.2 0 2.5-6.6 0-9.2l-.8.8c2.2 2.1 2.2 5.6 0 7.7z"></path></svg>', y(e, "class", "svelte-7cmwmc");
|
|
878
878
|
},
|
|
879
879
|
m(t, n) {
|
|
880
880
|
F(t, e, n);
|
|
881
881
|
},
|
|
882
|
-
p:
|
|
883
|
-
i:
|
|
884
|
-
o:
|
|
882
|
+
p: z,
|
|
883
|
+
i: z,
|
|
884
|
+
o: z,
|
|
885
885
|
d(t) {
|
|
886
886
|
t && B(e);
|
|
887
887
|
}
|
|
@@ -896,13 +896,13 @@ function Yn(i) {
|
|
|
896
896
|
let e, t, n;
|
|
897
897
|
return {
|
|
898
898
|
c() {
|
|
899
|
-
e =
|
|
900
|
-
i[0] === "list" ? 20 : void 0), y(e, "viewBox", "0 0 70 85"), y(e, "fill", "none"), y(e, "class", "svelte-gzo3ar"),
|
|
899
|
+
e = ue("svg"), t = ue("path"), y(t, "stroke-width", "4"), y(t, "d", "M 5,33.103579 C 5,17.607779 18.457,5 35,5 C 51.543,5 65,17.607779 65,33.103579 C 65,56.388679 40.4668,76.048179 36.6112,79.137779 C 36.3714,79.329879 36.2116,79.457979 36.1427,79.518879 C 35.8203,79.800879 35.4102,79.942779 35,79.942779 C 34.5899,79.942779 34.1797,79.800879 33.8575,79.518879 C 33.7886,79.457979 33.6289,79.330079 33.3893,79.138079 C 29.5346,76.049279 5,56.389379 5,33.103579 Z M 35.0001,49.386379 C 43.1917,49.386379 49.8323,42.646079 49.8323,34.331379 C 49.8323,26.016779 43.1917,19.276479 35.0001,19.276479 C 26.8085,19.276479 20.1679,26.016779 20.1679,34.331379 C 20.1679,42.646079 26.8085,49.386379 35.0001,49.386379 Z"), y(t, "class", "svelte-gzo3ar"), y(e, "width", n = /*displayIn*/
|
|
900
|
+
i[0] === "list" ? 20 : void 0), y(e, "viewBox", "0 0 70 85"), y(e, "fill", "none"), y(e, "class", "svelte-gzo3ar"), re(
|
|
901
901
|
e,
|
|
902
902
|
"in-map",
|
|
903
903
|
/*displayIn*/
|
|
904
904
|
i[0] !== "list"
|
|
905
|
-
),
|
|
905
|
+
), re(
|
|
906
906
|
e,
|
|
907
907
|
"list-icon",
|
|
908
908
|
/*displayIn*/
|
|
@@ -916,21 +916,21 @@ function Yn(i) {
|
|
|
916
916
|
o & /*displayIn*/
|
|
917
917
|
1 && n !== (n = /*displayIn*/
|
|
918
918
|
r[0] === "list" ? 20 : void 0) && y(e, "width", n), o & /*displayIn*/
|
|
919
|
-
1 &&
|
|
919
|
+
1 && re(
|
|
920
920
|
e,
|
|
921
921
|
"in-map",
|
|
922
922
|
/*displayIn*/
|
|
923
923
|
r[0] !== "list"
|
|
924
924
|
), o & /*displayIn*/
|
|
925
|
-
1 &&
|
|
925
|
+
1 && re(
|
|
926
926
|
e,
|
|
927
927
|
"list-icon",
|
|
928
928
|
/*displayIn*/
|
|
929
929
|
r[0] === "list"
|
|
930
930
|
);
|
|
931
931
|
},
|
|
932
|
-
i:
|
|
933
|
-
o:
|
|
932
|
+
i: z,
|
|
933
|
+
o: z,
|
|
934
934
|
d(r) {
|
|
935
935
|
r && B(e);
|
|
936
936
|
}
|
|
@@ -951,14 +951,14 @@ function Jn(i) {
|
|
|
951
951
|
let e, t;
|
|
952
952
|
return {
|
|
953
953
|
c() {
|
|
954
|
-
e =
|
|
954
|
+
e = ue("svg"), t = ue("path"), y(t, "d", "M30.003-26.765C13.46-26.765 0-14.158 0 1.337c0 23.286 24.535 42.952 28.39 46.04.24.192.402.316.471.376.323.282.732.424 1.142.424.41 0 .82-.142 1.142-.424.068-.06.231-.183.471-.376 3.856-3.09 28.39-22.754 28.39-46.04 0-15.495-13.46-28.102-30.003-28.102Zm1.757 12.469c4.38 0 7.858 1.052 10.431 3.158 2.595 2.105 3.89 4.913 3.89 8.422 0 2.34-.53 4.362-1.593 6.063-1.063 1.702-3.086 3.616-6.063 5.742-2.042 1.51-3.337 2.659-3.89 3.446-.532.787-.8 1.82-.8 3.096v1.914h-8.449V15.18c0-2.041.434-3.815 1.306-5.325.872-1.51 2.467-3.118 4.785-4.82 2.233-1.594 3.7-2.89 4.402-3.889a5.582 5.582 0 0 0 1.087-3.35c0-1.382-.51-2.435-1.531-3.158-1.02-.723-2.45-1.087-4.28-1.087-3.19 0-6.826 1.047-10.91 3.131l-3.472-6.986c4.742-2.659 9.77-3.992 15.087-3.992Zm-1.88 37.324c1.765 0 3.124.472 4.08 1.408.98.936 1.47 2.276 1.47 4.02 0 1.68-.49 3.007-1.47 3.985-.977.957-2.336 1.435-4.08 1.435-1.787 0-3.171-.465-4.15-1.4-.978-.958-1.47-2.298-1.47-4.02 0-1.787.48-3.14 1.436-4.054.957-.915 2.355-1.374 4.184-1.374Z"), y(e, "viewBox", "0 0 60.006 21.412"), y(e, "width", "14"), y(e, "height", "20"), y(e, "class", "svelte-en2qvf");
|
|
955
955
|
},
|
|
956
956
|
m(n, r) {
|
|
957
957
|
F(n, e, r), T(e, t);
|
|
958
958
|
},
|
|
959
|
-
p:
|
|
960
|
-
i:
|
|
961
|
-
o:
|
|
959
|
+
p: z,
|
|
960
|
+
i: z,
|
|
961
|
+
o: z,
|
|
962
962
|
d(n) {
|
|
963
963
|
n && B(e);
|
|
964
964
|
}
|
|
@@ -973,14 +973,14 @@ function er(i) {
|
|
|
973
973
|
let e, t, n;
|
|
974
974
|
return {
|
|
975
975
|
c() {
|
|
976
|
-
e =
|
|
976
|
+
e = ue("svg"), t = ue("circle"), n = ue("path"), y(t, "cx", "4.789"), y(t, "cy", "4.787"), y(t, "r", "3.85"), y(t, "class", "svelte-1aq105l"), y(n, "d", "M12.063 12.063 7.635 7.635"), y(n, "class", "svelte-1aq105l"), y(e, "xmlns", "http://www.w3.org/2000/svg"), y(e, "width", "13"), y(e, "height", "13"), y(e, "viewBox", "0 0 13 13"), y(e, "class", "svelte-1aq105l");
|
|
977
977
|
},
|
|
978
978
|
m(r, o) {
|
|
979
979
|
F(r, e, o), T(e, t), T(e, n);
|
|
980
980
|
},
|
|
981
|
-
p:
|
|
982
|
-
i:
|
|
983
|
-
o:
|
|
981
|
+
p: z,
|
|
982
|
+
i: z,
|
|
983
|
+
o: z,
|
|
984
984
|
d(r) {
|
|
985
985
|
r && B(e);
|
|
986
986
|
}
|
|
@@ -995,11 +995,11 @@ function ir(i, e, t) {
|
|
|
995
995
|
const n = e[1], r = e[0], o = n - r;
|
|
996
996
|
return i === n && t ? i : ((i - r) % o + o) % o + r;
|
|
997
997
|
}
|
|
998
|
-
function
|
|
998
|
+
function Ze(i) {
|
|
999
999
|
const e = [...i];
|
|
1000
1000
|
return e[2] < e[0] && (Math.abs((e[0] + e[2] + 360) / 2) > Math.abs((e[0] - 360 + e[2]) / 2) ? e[0] -= 360 : e[2] += 360), e;
|
|
1001
1001
|
}
|
|
1002
|
-
let
|
|
1002
|
+
let De;
|
|
1003
1003
|
async function nr(i, e, t) {
|
|
1004
1004
|
const n = i == null ? void 0 : i.getCenterAndZoom();
|
|
1005
1005
|
for (const r of e ?? [])
|
|
@@ -1007,10 +1007,10 @@ async function nr(i, e, t) {
|
|
|
1007
1007
|
if (r.type === "fixed")
|
|
1008
1008
|
return r.coordinates.join(",");
|
|
1009
1009
|
e: if (r.type === "client-geolocation") {
|
|
1010
|
-
if (
|
|
1011
|
-
if (!
|
|
1010
|
+
if (De && r.cachedLocationExpiry && De.time + r.cachedLocationExpiry > Date.now()) {
|
|
1011
|
+
if (!De.coords)
|
|
1012
1012
|
break e;
|
|
1013
|
-
return
|
|
1013
|
+
return De.coords;
|
|
1014
1014
|
}
|
|
1015
1015
|
let o;
|
|
1016
1016
|
try {
|
|
@@ -1031,7 +1031,7 @@ async function nr(i, e, t) {
|
|
|
1031
1031
|
}), o;
|
|
1032
1032
|
} catch {
|
|
1033
1033
|
} finally {
|
|
1034
|
-
r.cachedLocationExpiry && (
|
|
1034
|
+
r.cachedLocationExpiry && (De = {
|
|
1035
1035
|
time: Date.now(),
|
|
1036
1036
|
coords: o
|
|
1037
1037
|
});
|
|
@@ -1045,45 +1045,45 @@ async function nr(i, e, t) {
|
|
|
1045
1045
|
return n[1].toFixed(6) + "," + n[2].toFixed(6);
|
|
1046
1046
|
}
|
|
1047
1047
|
}
|
|
1048
|
-
const rr = /^(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([6-9][0-9])\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([6-9][0-9])\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*(EAST|WEST|[EW])?$/i,
|
|
1048
|
+
const rr = /^(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([6-9][0-9])\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([6-9][0-9])\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*(EAST|WEST|[EW])?$/i, ei = /^([+-]?[0-8]?[0-9])\s+([0-5]?[0-9]\.\d{3,})[\s,]{1,}([+-]?[0-1]?[0-9]?[0-9])\s+([0-5]?[0-9]\.\d{3,})$/, ti = /^(NORTH|SOUTH|[NS])?[\s]*([+-]?[0-8]?[0-9](?:[\.,]\d{3,}))[\s]*([•º°]?)[\s]*(NORTH|SOUTH|[NS])?[\s]*[,/;]?[\s]*(EAST|WEST|[EW])?[\s]*([+-]?[0-1]?[0-9]?[0-9](?:[\.,]\d{3,}))[\s]*([•º°]?)[\s]*(EAST|WEST|[EW])?$/i, ii = /^(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*(\.)\s*([0-5]?[0-9])\s*(\.)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*(\.)\s*([0-5]?[0-9])\s*(\.)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(EAST|WEST|[EW])?$/i, ni = /^(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*(D(?:EG)?(?:REES)?)\s*([0-5]?[0-9])\s*(M(?:IN)?(?:UTES)?)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(S(?:EC)?(?:ONDS)?)?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*(D(?:EG)?(?:REES)?)\s*([0-5]?[0-9])\s*(M(?:IN)?(?:UTES)?)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(S(?:EC)?(?:ONDS)?)\s*(EAST|WEST|[EW])?$/i, ri = /^(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([0-5]?[0-9](?:[\.,]\d{1,})?)?\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*,?((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(''|′′|’’|´´|["″”\.])?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([0-5]?[0-9](?:[\.,]\d{1,})?)?\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*,?((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(''|′′|´´|’’|["″”\.])?\s*(EAST|WEST|[EW])?$/i;
|
|
1049
1049
|
function or(i) {
|
|
1050
1050
|
if (!["DMS", "DM", "DD"].includes(i))
|
|
1051
1051
|
throw new Error("invalid format specified");
|
|
1052
1052
|
if (this.decimalCoordinates && this.decimalCoordinates.trim()) {
|
|
1053
|
-
const e = this.decimalCoordinates.split(",").map((
|
|
1053
|
+
const e = this.decimalCoordinates.split(",").map((h) => Number(h.trim())), t = Number(e[0]), n = Number(e[1]), r = Math.abs(t), o = Math.abs(n), l = t > 0 ? "N" : "S", s = n > 0 ? "E" : "W";
|
|
1054
1054
|
let c;
|
|
1055
1055
|
i == "DD" && (c = `${r}° ${l}, ${o}° ${s}`);
|
|
1056
|
-
const u = Math.floor(r),
|
|
1056
|
+
const u = Math.floor(r), d = Math.floor(o), a = (r - u) * 60, f = (o - d) * 60;
|
|
1057
1057
|
if (i == "DM") {
|
|
1058
|
-
let
|
|
1059
|
-
|
|
1058
|
+
let h = oi(a, 3).toFixed(3).padStart(6, "0"), g = oi(f, 3).toFixed(3).padStart(6, "0");
|
|
1059
|
+
h.endsWith(".000") && g.endsWith(".000") && (h = h.replace(/\.000$/, ""), g = g.replace(/\.000$/, "")), c = `${u}° ${h}' ${l}, ${d}° ${g}' ${s}`;
|
|
1060
1060
|
}
|
|
1061
1061
|
if (i == "DMS") {
|
|
1062
|
-
const
|
|
1063
|
-
let v = ((a -
|
|
1064
|
-
const p =
|
|
1065
|
-
v.endsWith(".0") &&
|
|
1062
|
+
const h = Math.floor(a), g = Math.floor(f);
|
|
1063
|
+
let v = ((a - h) * 60).toFixed(1).padStart(4, "0"), w = ((f - g) * 60).toFixed(1).padStart(4, "0");
|
|
1064
|
+
const p = h.toString().padStart(2, "0"), S = g.toString().padStart(2, "0");
|
|
1065
|
+
v.endsWith(".0") && w.endsWith(".0") && (v = v.replace(/\.0$/, ""), w = w.replace(/\.0$/, "")), c = `${u}° ${p}' ${v}" ${l}, ${d}° ${S}' ${w}" ${s}`;
|
|
1066
1066
|
}
|
|
1067
1067
|
return c;
|
|
1068
1068
|
} else
|
|
1069
1069
|
throw new Error("no decimal coordinates to convert");
|
|
1070
1070
|
}
|
|
1071
|
-
function
|
|
1071
|
+
function oi(i, e) {
|
|
1072
1072
|
const t = Math.pow(10, e);
|
|
1073
1073
|
return Math.round((i + Number.EPSILON) * t) / t;
|
|
1074
1074
|
}
|
|
1075
|
-
function
|
|
1075
|
+
function Wt(i, e) {
|
|
1076
1076
|
e || (e = 5), i = i.replace(/\s+/g, " ").trim();
|
|
1077
1077
|
let t = null, n = null, r = "", o = "", l = null, s = [], c = !1;
|
|
1078
1078
|
if (rr.test(i))
|
|
1079
1079
|
throw new Error("invalid coordinate value");
|
|
1080
|
-
if (
|
|
1081
|
-
if (s =
|
|
1080
|
+
if (ei.test(i))
|
|
1081
|
+
if (s = ei.exec(i), c = Fe(s), c)
|
|
1082
1082
|
t = Math.abs(s[1]) + s[2] / 60, Number(s[1]) < 0 && (t *= -1), n = Math.abs(s[3]) + s[4] / 60, Number(s[3]) < 0 && (n *= -1), l = "DM";
|
|
1083
1083
|
else
|
|
1084
1084
|
throw new Error("invalid coordinate format");
|
|
1085
|
-
else if (
|
|
1086
|
-
if (s =
|
|
1085
|
+
else if (ti.test(i))
|
|
1086
|
+
if (s = ti.exec(i), c = Fe(s), c) {
|
|
1087
1087
|
if (t = s[2], n = s[6], t.includes(",") && (t = t.replace(",", ".")), n.includes(",") && (n = n.replace(",", ".")), l = "DD", Number(Math.round(t)) == Number(t))
|
|
1088
1088
|
throw new Error("integer only coordinate provided");
|
|
1089
1089
|
if (Number(Math.round(n)) == Number(n))
|
|
@@ -1091,18 +1091,18 @@ function At(i, e) {
|
|
|
1091
1091
|
s[1] ? (r = s[1], o = s[5]) : s[4] && (r = s[4], o = s[8]);
|
|
1092
1092
|
} else
|
|
1093
1093
|
throw new Error("invalid decimal coordinate format");
|
|
1094
|
-
else if (
|
|
1095
|
-
if (s =
|
|
1094
|
+
else if (ii.test(i))
|
|
1095
|
+
if (s = ii.exec(i), c = Fe(s), c)
|
|
1096
1096
|
t = Math.abs(parseInt(s[2])), s[4] && (t += s[4] / 60, l = "DM"), s[6] && (t += s[6].replace(",", ".") / 3600, l = "DMS"), parseInt(s[2]) < 0 && (t = -1 * t), n = Math.abs(parseInt(s[9])), s[11] && (n += s[11] / 60), s[13] && (n += s[13].replace(",", ".") / 3600), parseInt(s[9]) < 0 && (n = -1 * n), s[1] ? (r = s[1], o = s[8]) : s[7] && (r = s[7], o = s[14]);
|
|
1097
1097
|
else
|
|
1098
1098
|
throw new Error("invalid DMS coordinates format");
|
|
1099
|
-
else if (
|
|
1100
|
-
if (s =
|
|
1099
|
+
else if (ni.test(i))
|
|
1100
|
+
if (s = ni.exec(i), c = Fe(s), c)
|
|
1101
1101
|
t = Math.abs(parseInt(s[2])), s[4] && (t += s[4] / 60, l = "DM"), s[6] && (t += s[6] / 3600, l = "DMS"), parseInt(s[2]) < 0 && (t = -1 * t), n = Math.abs(parseInt(s[10])), s[12] && (n += s[12] / 60), s[14] && (n += s[14] / 3600), parseInt(s[10]) < 0 && (n = -1 * n), s[1] ? (r = s[1], o = s[9]) : s[8] && (r = s[8], o = s[16]);
|
|
1102
1102
|
else
|
|
1103
1103
|
throw new Error("invalid DMS coordinates format");
|
|
1104
|
-
else if (
|
|
1105
|
-
if (s =
|
|
1104
|
+
else if (ri.test(i)) {
|
|
1105
|
+
if (s = ri.exec(i), c = Fe(s), s.filter((u) => u).length <= 5)
|
|
1106
1106
|
throw new Error("invalid coordinates format");
|
|
1107
1107
|
if (c)
|
|
1108
1108
|
t = Math.abs(parseInt(s[2])), s[4] && (t += s[4].replace(",", ".") / 60, l = "DM"), s[6] && (t += s[6].replace(",", ".") / 3600, l = "DMS"), parseInt(s[2]) < 0 && (t = -1 * t), n = Math.abs(parseInt(s[10])), s[12] && (n += s[12].replace(",", ".") / 60), s[14] && (n += s[14].replace(",", ".") / 3600), parseInt(s[10]) < 0 && (n = -1 * n), s[1] ? (r = s[1], o = s[9]) : s[8] && (r = s[8], o = s[16]);
|
|
@@ -1121,35 +1121,35 @@ function At(i, e) {
|
|
|
1121
1121
|
t.toString().includes(",") && (t = t.replace(",", ".")), n.toString().includes(",") && (n = n.replace(",", "."));
|
|
1122
1122
|
let u = /S|SOUTH/i;
|
|
1123
1123
|
u.test(r) && t > 0 && (t = -1 * t), u = /W|WEST/i, u.test(o) && n > 0 && (n = -1 * n);
|
|
1124
|
-
const
|
|
1124
|
+
const d = s[0].trim();
|
|
1125
1125
|
let a, f;
|
|
1126
|
-
const
|
|
1127
|
-
if (
|
|
1126
|
+
const h = /[,/;\u0020]/g, g = d.match(h);
|
|
1127
|
+
if (g == null) {
|
|
1128
1128
|
const p = Math.floor(i.length / 2);
|
|
1129
|
-
a =
|
|
1129
|
+
a = d.substring(0, p).trim(), f = d.substring(p).trim();
|
|
1130
1130
|
} else {
|
|
1131
1131
|
let p;
|
|
1132
|
-
|
|
1133
|
-
let
|
|
1132
|
+
g.length % 2 == 1 ? p = Math.floor(g.length / 2) : p = g.length / 2 - 1;
|
|
1133
|
+
let S = 0;
|
|
1134
1134
|
if (p == 0)
|
|
1135
|
-
|
|
1135
|
+
S = d.indexOf(g[0]), a = d.substring(0, S).trim(), f = d.substring(S + 1).trim();
|
|
1136
1136
|
else {
|
|
1137
|
-
let
|
|
1138
|
-
for (;
|
|
1139
|
-
|
|
1140
|
-
a =
|
|
1137
|
+
let L = 0, E = 0;
|
|
1138
|
+
for (; L <= p; )
|
|
1139
|
+
S = d.indexOf(g[L], E), E = S + 1, L++;
|
|
1140
|
+
a = d.substring(0, S).trim(), f = d.substring(S + 1).trim();
|
|
1141
1141
|
}
|
|
1142
1142
|
}
|
|
1143
1143
|
const v = a.split(".");
|
|
1144
1144
|
if (v.length == 2 && v[1] == 0 && v[1].length != 2)
|
|
1145
1145
|
throw new Error("invalid coordinates format");
|
|
1146
|
-
const
|
|
1147
|
-
if (
|
|
1146
|
+
const w = f.split(".");
|
|
1147
|
+
if (w.length == 2 && w[1] == 0 && w[1].length != 2)
|
|
1148
1148
|
throw new Error("invalid coordinates format");
|
|
1149
1149
|
if (/^\d+$/.test(a) || /^\d+$/.test(f))
|
|
1150
1150
|
throw new Error("degree only coordinate/s provided");
|
|
1151
1151
|
return t = Number(Number(t).toFixed(e)), n = Number(Number(n).toFixed(e)), Object.freeze({
|
|
1152
|
-
verbatimCoordinates:
|
|
1152
|
+
verbatimCoordinates: d,
|
|
1153
1153
|
verbatimLatitude: a,
|
|
1154
1154
|
verbatimLongitude: f,
|
|
1155
1155
|
decimalLatitude: t,
|
|
@@ -1170,18 +1170,18 @@ function Fe(i) {
|
|
|
1170
1170
|
return !1;
|
|
1171
1171
|
const t = /^[-+]?\d+([\.,]\d+)?$/, n = /[eastsouthnorthwest]+/i, r = e.length / 2;
|
|
1172
1172
|
for (let o = 0; o < r; o++) {
|
|
1173
|
-
const l = e[o], s = e[o + r], c = t.test(l) && t.test(s), u = n.test(l) && n.test(s),
|
|
1173
|
+
const l = e[o], s = e[o + r], c = t.test(l) && t.test(s), u = n.test(l) && n.test(s), d = l == s;
|
|
1174
1174
|
if (!(l == null && s == null)) {
|
|
1175
1175
|
if (l == null || s == null)
|
|
1176
1176
|
return !1;
|
|
1177
|
-
if (c || u ||
|
|
1177
|
+
if (c || u || d)
|
|
1178
1178
|
continue;
|
|
1179
1179
|
return !1;
|
|
1180
1180
|
}
|
|
1181
1181
|
}
|
|
1182
1182
|
return !0;
|
|
1183
1183
|
}
|
|
1184
|
-
function
|
|
1184
|
+
function si(i, e) {
|
|
1185
1185
|
const t = Math.abs(i - e);
|
|
1186
1186
|
return Number(t.toFixed(6)) <= 1e-5;
|
|
1187
1187
|
}
|
|
@@ -1192,7 +1192,7 @@ function sr(i) {
|
|
|
1192
1192
|
const e = i.split(",");
|
|
1193
1193
|
if (Number(e[0]) == NaN || Number(e[1]) == NaN)
|
|
1194
1194
|
throw new Error("coords are not valid decimals");
|
|
1195
|
-
return
|
|
1195
|
+
return si(this.decimalLatitude, Number(e[0])) && si(this.decimalLongitude, e[1]);
|
|
1196
1196
|
} else
|
|
1197
1197
|
throw new Error("coords being tested must be separated by a comma");
|
|
1198
1198
|
}
|
|
@@ -1201,7 +1201,7 @@ const lr = Object.freeze({
|
|
|
1201
1201
|
DM: "DM",
|
|
1202
1202
|
DD: "DD"
|
|
1203
1203
|
});
|
|
1204
|
-
|
|
1204
|
+
Wt.to = lr;
|
|
1205
1205
|
const ur = [
|
|
1206
1206
|
{
|
|
1207
1207
|
verbatimCoordinates: "40.123, -74.123",
|
|
@@ -1573,13 +1573,13 @@ function dr() {
|
|
|
1573
1573
|
}), [...i, ...cr, ...fr];
|
|
1574
1574
|
}
|
|
1575
1575
|
const hr = dr();
|
|
1576
|
-
|
|
1577
|
-
const gr =
|
|
1578
|
-
function
|
|
1576
|
+
Wt.formats = hr.map((i) => i.verbatimCoordinates);
|
|
1577
|
+
const gr = Wt;
|
|
1578
|
+
function li(i, e, t) {
|
|
1579
1579
|
const n = i.slice();
|
|
1580
1580
|
return n[84] = e[t], n[86] = t, n;
|
|
1581
1581
|
}
|
|
1582
|
-
function
|
|
1582
|
+
function ui(i) {
|
|
1583
1583
|
let e, t;
|
|
1584
1584
|
return e = new Vn({}), {
|
|
1585
1585
|
c() {
|
|
@@ -1589,26 +1589,26 @@ function ai(i) {
|
|
|
1589
1589
|
ge(e, n, r), t = !0;
|
|
1590
1590
|
},
|
|
1591
1591
|
i(n) {
|
|
1592
|
-
t || (
|
|
1592
|
+
t || (G(e.$$.fragment, n), t = !0);
|
|
1593
1593
|
},
|
|
1594
1594
|
o(n) {
|
|
1595
|
-
|
|
1595
|
+
H(e.$$.fragment, n), t = !1;
|
|
1596
1596
|
},
|
|
1597
1597
|
d(n) {
|
|
1598
1598
|
me(e, n);
|
|
1599
1599
|
}
|
|
1600
1600
|
};
|
|
1601
1601
|
}
|
|
1602
|
-
function
|
|
1602
|
+
function ai(i) {
|
|
1603
1603
|
let e, t, n, r, o;
|
|
1604
1604
|
return t = new $n({}), {
|
|
1605
1605
|
c() {
|
|
1606
|
-
e =
|
|
1606
|
+
e = A("button"), Ee(t.$$.fragment), y(e, "type", "button"), y(
|
|
1607
1607
|
e,
|
|
1608
1608
|
"title",
|
|
1609
1609
|
/*reverseButtonTitle*/
|
|
1610
1610
|
i[9]
|
|
1611
|
-
), y(e, "class", "svelte-
|
|
1611
|
+
), y(e, "class", "svelte-bz0zu3"), re(
|
|
1612
1612
|
e,
|
|
1613
1613
|
"active",
|
|
1614
1614
|
/*reverseActive*/
|
|
@@ -1631,7 +1631,7 @@ function ci(i) {
|
|
|
1631
1631
|
/*reverseButtonTitle*/
|
|
1632
1632
|
l[9]
|
|
1633
1633
|
), (!n || s[0] & /*reverseActive*/
|
|
1634
|
-
1) &&
|
|
1634
|
+
1) && re(
|
|
1635
1635
|
e,
|
|
1636
1636
|
"active",
|
|
1637
1637
|
/*reverseActive*/
|
|
@@ -1639,10 +1639,10 @@ function ci(i) {
|
|
|
1639
1639
|
);
|
|
1640
1640
|
},
|
|
1641
1641
|
i(l) {
|
|
1642
|
-
n || (
|
|
1642
|
+
n || (G(t.$$.fragment, l), n = !0);
|
|
1643
1643
|
},
|
|
1644
1644
|
o(l) {
|
|
1645
|
-
|
|
1645
|
+
H(t.$$.fragment, l), n = !1;
|
|
1646
1646
|
},
|
|
1647
1647
|
d(l) {
|
|
1648
1648
|
l && B(e), me(t), r = !1, o();
|
|
@@ -1650,7 +1650,7 @@ function ci(i) {
|
|
|
1650
1650
|
};
|
|
1651
1651
|
}
|
|
1652
1652
|
function mr(i) {
|
|
1653
|
-
let e, t = [], n = /* @__PURE__ */ new Map(), r, o, l, s =
|
|
1653
|
+
let e, t = [], n = /* @__PURE__ */ new Map(), r, o, l, s = Jt(
|
|
1654
1654
|
/*listFeatures*/
|
|
1655
1655
|
i[14]
|
|
1656
1656
|
);
|
|
@@ -1661,18 +1661,18 @@ function mr(i) {
|
|
|
1661
1661
|
u[84].address : "")
|
|
1662
1662
|
);
|
|
1663
1663
|
for (let u = 0; u < s.length; u += 1) {
|
|
1664
|
-
let
|
|
1665
|
-
n.set(a, t[u] =
|
|
1664
|
+
let d = li(i, s, u), a = c(d);
|
|
1665
|
+
n.set(a, t[u] = ci(a, d));
|
|
1666
1666
|
}
|
|
1667
1667
|
return {
|
|
1668
1668
|
c() {
|
|
1669
|
-
e =
|
|
1669
|
+
e = A("ul");
|
|
1670
1670
|
for (let u = 0; u < t.length; u += 1)
|
|
1671
1671
|
t[u].c();
|
|
1672
|
-
y(e, "class", "svelte-
|
|
1672
|
+
y(e, "class", "options svelte-bz0zu3");
|
|
1673
1673
|
},
|
|
1674
|
-
m(u,
|
|
1675
|
-
F(u, e,
|
|
1674
|
+
m(u, d) {
|
|
1675
|
+
F(u, e, d);
|
|
1676
1676
|
for (let a = 0; a < t.length; a += 1)
|
|
1677
1677
|
t[a] && t[a].m(e, null);
|
|
1678
1678
|
r = !0, o || (l = [
|
|
@@ -1690,41 +1690,41 @@ function mr(i) {
|
|
|
1690
1690
|
)
|
|
1691
1691
|
], o = !0);
|
|
1692
1692
|
},
|
|
1693
|
-
p(u,
|
|
1694
|
-
|
|
1695
|
-
17880064 && (s =
|
|
1693
|
+
p(u, d) {
|
|
1694
|
+
d[0] & /*listFeatures, showPlaceType, selectedItemIndex, missingIconsCache, iconsBaseUrl, pick*/
|
|
1695
|
+
17880064 && (s = Jt(
|
|
1696
1696
|
/*listFeatures*/
|
|
1697
1697
|
u[14]
|
|
1698
|
-
),
|
|
1698
|
+
), rt(), t = Tn(t, d, c, 1, u, s, n, e, Pn, ci, null, li), ot());
|
|
1699
1699
|
},
|
|
1700
1700
|
i(u) {
|
|
1701
1701
|
if (!r) {
|
|
1702
|
-
for (let
|
|
1703
|
-
|
|
1702
|
+
for (let d = 0; d < s.length; d += 1)
|
|
1703
|
+
G(t[d]);
|
|
1704
1704
|
r = !0;
|
|
1705
1705
|
}
|
|
1706
1706
|
},
|
|
1707
1707
|
o(u) {
|
|
1708
|
-
for (let
|
|
1709
|
-
|
|
1708
|
+
for (let d = 0; d < t.length; d += 1)
|
|
1709
|
+
H(t[d]);
|
|
1710
1710
|
r = !1;
|
|
1711
1711
|
},
|
|
1712
1712
|
d(u) {
|
|
1713
1713
|
u && B(e);
|
|
1714
|
-
for (let
|
|
1715
|
-
t[
|
|
1714
|
+
for (let d = 0; d < t.length; d += 1)
|
|
1715
|
+
t[d].d();
|
|
1716
1716
|
o = !1, ye(l);
|
|
1717
1717
|
}
|
|
1718
1718
|
};
|
|
1719
1719
|
}
|
|
1720
1720
|
function yr(i) {
|
|
1721
1721
|
let e, t, n, r, o, l;
|
|
1722
|
-
return t = new
|
|
1722
|
+
return t = new Oi({}), {
|
|
1723
1723
|
c() {
|
|
1724
|
-
e =
|
|
1724
|
+
e = A("div"), Ee(t.$$.fragment), n = ee(), r = A("div"), o = _e(
|
|
1725
1725
|
/*noResultsMessage*/
|
|
1726
1726
|
i[7]
|
|
1727
|
-
), y(r, "class", "svelte-
|
|
1727
|
+
), y(r, "class", "svelte-bz0zu3"), y(e, "class", "no-results svelte-bz0zu3");
|
|
1728
1728
|
},
|
|
1729
1729
|
m(s, c) {
|
|
1730
1730
|
F(s, e, c), ge(t, e, null), T(e, n), T(e, r), T(r, o), l = !0;
|
|
@@ -1738,10 +1738,10 @@ function yr(i) {
|
|
|
1738
1738
|
);
|
|
1739
1739
|
},
|
|
1740
1740
|
i(s) {
|
|
1741
|
-
l || (
|
|
1741
|
+
l || (G(t.$$.fragment, s), l = !0);
|
|
1742
1742
|
},
|
|
1743
1743
|
o(s) {
|
|
1744
|
-
|
|
1744
|
+
H(t.$$.fragment, s), l = !1;
|
|
1745
1745
|
},
|
|
1746
1746
|
d(s) {
|
|
1747
1747
|
s && B(e), me(t);
|
|
@@ -1757,33 +1757,33 @@ function pr(i) {
|
|
|
1757
1757
|
m(n, r) {
|
|
1758
1758
|
F(n, t, r);
|
|
1759
1759
|
},
|
|
1760
|
-
p:
|
|
1761
|
-
i:
|
|
1762
|
-
o:
|
|
1760
|
+
p: z,
|
|
1761
|
+
i: z,
|
|
1762
|
+
o: z,
|
|
1763
1763
|
d(n) {
|
|
1764
1764
|
n && B(t);
|
|
1765
1765
|
}
|
|
1766
1766
|
};
|
|
1767
1767
|
}
|
|
1768
|
-
function
|
|
1769
|
-
let e, t, n, r, o, l, s, c, u,
|
|
1770
|
-
return t = new
|
|
1768
|
+
function br(i) {
|
|
1769
|
+
let e, t, n, r, o, l, s, c, u, d, a;
|
|
1770
|
+
return t = new Oi({}), c = new Ii({}), {
|
|
1771
1771
|
c() {
|
|
1772
|
-
e =
|
|
1772
|
+
e = A("div"), Ee(t.$$.fragment), n = ee(), r = A("div"), o = _e(
|
|
1773
1773
|
/*errorMessage*/
|
|
1774
1774
|
i[6]
|
|
1775
|
-
), l =
|
|
1775
|
+
), l = ee(), s = A("button"), Ee(c.$$.fragment), y(r, "class", "svelte-bz0zu3"), y(s, "class", "svelte-bz0zu3"), y(e, "class", "error svelte-bz0zu3");
|
|
1776
1776
|
},
|
|
1777
|
-
m(f,
|
|
1778
|
-
F(f, e,
|
|
1777
|
+
m(f, h) {
|
|
1778
|
+
F(f, e, h), ge(t, e, null), T(e, n), T(e, r), T(r, o), T(e, l), T(e, s), ge(c, s, null), u = !0, d || (a = J(
|
|
1779
1779
|
s,
|
|
1780
1780
|
"click",
|
|
1781
1781
|
/*click_handler_3*/
|
|
1782
1782
|
i[70]
|
|
1783
|
-
),
|
|
1783
|
+
), d = !0);
|
|
1784
1784
|
},
|
|
1785
|
-
p(f,
|
|
1786
|
-
(!u ||
|
|
1785
|
+
p(f, h) {
|
|
1786
|
+
(!u || h[0] & /*errorMessage*/
|
|
1787
1787
|
64) && je(
|
|
1788
1788
|
o,
|
|
1789
1789
|
/*errorMessage*/
|
|
@@ -1791,17 +1791,17 @@ function vr(i) {
|
|
|
1791
1791
|
);
|
|
1792
1792
|
},
|
|
1793
1793
|
i(f) {
|
|
1794
|
-
u || (
|
|
1794
|
+
u || (G(t.$$.fragment, f), G(c.$$.fragment, f), u = !0);
|
|
1795
1795
|
},
|
|
1796
1796
|
o(f) {
|
|
1797
|
-
|
|
1797
|
+
H(t.$$.fragment, f), H(c.$$.fragment, f), u = !1;
|
|
1798
1798
|
},
|
|
1799
1799
|
d(f) {
|
|
1800
|
-
f && B(e), me(t), me(c),
|
|
1800
|
+
f && B(e), me(t), me(c), d = !1, a();
|
|
1801
1801
|
}
|
|
1802
1802
|
};
|
|
1803
1803
|
}
|
|
1804
|
-
function
|
|
1804
|
+
function ci(i, e) {
|
|
1805
1805
|
let t, n, r;
|
|
1806
1806
|
function o() {
|
|
1807
1807
|
return (
|
|
@@ -1869,25 +1869,25 @@ function fi(i, e) {
|
|
|
1869
1869
|
e[12]), n.$set(u);
|
|
1870
1870
|
},
|
|
1871
1871
|
i(s) {
|
|
1872
|
-
r || (
|
|
1872
|
+
r || (G(n.$$.fragment, s), r = !0);
|
|
1873
1873
|
},
|
|
1874
1874
|
o(s) {
|
|
1875
|
-
|
|
1875
|
+
H(n.$$.fragment, s), r = !1;
|
|
1876
1876
|
},
|
|
1877
1877
|
d(s) {
|
|
1878
1878
|
s && B(t), me(n, s);
|
|
1879
1879
|
}
|
|
1880
1880
|
};
|
|
1881
1881
|
}
|
|
1882
|
-
function
|
|
1883
|
-
let e, t, n, r, o, l, s, c, u,
|
|
1884
|
-
o = new tr({}), a = new
|
|
1885
|
-
let
|
|
1882
|
+
function vr(i) {
|
|
1883
|
+
let e, t, n, r, o, l, s, c, u, d, a, f, h, g, v, w, p, S, L, E, M, k = !1;
|
|
1884
|
+
o = new tr({}), a = new Ii({});
|
|
1885
|
+
let b = (
|
|
1886
1886
|
/*abortController*/
|
|
1887
|
-
i[19] &&
|
|
1888
|
-
),
|
|
1887
|
+
i[19] && ui()
|
|
1888
|
+
), _ = (
|
|
1889
1889
|
/*enableReverse*/
|
|
1890
|
-
i[5] ===
|
|
1890
|
+
i[5] === "button" && ai(i)
|
|
1891
1891
|
);
|
|
1892
1892
|
const C = (
|
|
1893
1893
|
/*#slots*/
|
|
@@ -1898,27 +1898,27 @@ function br(i) {
|
|
|
1898
1898
|
/*$$scope*/
|
|
1899
1899
|
i[60],
|
|
1900
1900
|
null
|
|
1901
|
-
),
|
|
1902
|
-
function
|
|
1903
|
-
var
|
|
1901
|
+
), Q = [br, pr, yr, mr], O = [];
|
|
1902
|
+
function X(x, W) {
|
|
1903
|
+
var oe, de;
|
|
1904
1904
|
return (
|
|
1905
1905
|
/*error*/
|
|
1906
|
-
|
|
1906
|
+
x[18] ? 0 : (
|
|
1907
1907
|
/*focusedDelayed*/
|
|
1908
|
-
|
|
1908
|
+
x[16] ? (
|
|
1909
1909
|
/*listFeatures*/
|
|
1910
|
-
((
|
|
1910
|
+
((oe = x[14]) == null ? void 0 : oe.length) === 0 ? 2 : (
|
|
1911
1911
|
/*focusedDelayed*/
|
|
1912
|
-
|
|
1913
|
-
((
|
|
1912
|
+
x[16] && /*listFeatures*/
|
|
1913
|
+
((de = x[14]) != null && de.length) ? 3 : -1
|
|
1914
1914
|
)
|
|
1915
1915
|
) : 1
|
|
1916
1916
|
)
|
|
1917
1917
|
);
|
|
1918
1918
|
}
|
|
1919
|
-
return ~(
|
|
1919
|
+
return ~(w = X(i)) && (p = O[w] = Q[w](i)), {
|
|
1920
1920
|
c() {
|
|
1921
|
-
e =
|
|
1921
|
+
e = ee(), t = A("form"), n = A("div"), r = A("button"), Ee(o.$$.fragment), l = ee(), s = A("input"), c = ee(), u = A("div"), d = A("button"), Ee(a.$$.fragment), f = ee(), b && b.c(), h = ee(), _ && _.c(), g = ee(), I && I.c(), v = ee(), p && p.c(), y(r, "class", "search-button svelte-bz0zu3"), y(r, "type", "button"), y(
|
|
1922
1922
|
s,
|
|
1923
1923
|
"placeholder",
|
|
1924
1924
|
/*placeholder*/
|
|
@@ -1928,20 +1928,20 @@ function br(i) {
|
|
|
1928
1928
|
"aria-label",
|
|
1929
1929
|
/*placeholder*/
|
|
1930
1930
|
i[8]
|
|
1931
|
-
), y(s, "class", "svelte-
|
|
1932
|
-
|
|
1931
|
+
), y(s, "class", "svelte-bz0zu3"), y(d, "type", "button"), y(
|
|
1932
|
+
d,
|
|
1933
1933
|
"title",
|
|
1934
1934
|
/*clearButtonTitle*/
|
|
1935
1935
|
i[3]
|
|
1936
|
-
), y(
|
|
1936
|
+
), y(d, "class", "svelte-bz0zu3"), y(u, "class", "clear-button-container svelte-bz0zu3"), re(
|
|
1937
1937
|
u,
|
|
1938
1938
|
"displayable",
|
|
1939
1939
|
/*searchValue*/
|
|
1940
1940
|
i[1] !== ""
|
|
1941
|
-
), y(n, "class", "input-group svelte-
|
|
1941
|
+
), y(n, "class", "input-group svelte-bz0zu3"), y(t, "tabindex", "0"), y(t, "class", S = Vt(
|
|
1942
1942
|
/*className*/
|
|
1943
1943
|
i[2]
|
|
1944
|
-
) + " svelte-
|
|
1944
|
+
) + " svelte-bz0zu3"), re(
|
|
1945
1945
|
t,
|
|
1946
1946
|
"can-collapse",
|
|
1947
1947
|
/*collapsed*/
|
|
@@ -1949,12 +1949,12 @@ function br(i) {
|
|
|
1949
1949
|
i[1] === ""
|
|
1950
1950
|
);
|
|
1951
1951
|
},
|
|
1952
|
-
m(
|
|
1953
|
-
F(
|
|
1952
|
+
m(x, W) {
|
|
1953
|
+
F(x, e, W), F(x, t, W), T(t, n), T(n, r), ge(o, r, null), T(n, l), T(n, s), i[63](s), Yt(
|
|
1954
1954
|
s,
|
|
1955
1955
|
/*searchValue*/
|
|
1956
1956
|
i[1]
|
|
1957
|
-
), T(n, c), T(n, u), T(u,
|
|
1957
|
+
), T(n, c), T(n, u), T(u, d), ge(a, d, null), T(u, f), b && b.m(u, null), T(n, h), _ && _.m(n, null), T(n, g), I && I.m(n, null), T(t, v), ~w && O[w].m(t, null), L = !0, E || (M = [
|
|
1958
1958
|
J(
|
|
1959
1959
|
r,
|
|
1960
1960
|
"click",
|
|
@@ -1992,7 +1992,7 @@ function br(i) {
|
|
|
1992
1992
|
i[67]
|
|
1993
1993
|
),
|
|
1994
1994
|
J(
|
|
1995
|
-
|
|
1995
|
+
d,
|
|
1996
1996
|
"click",
|
|
1997
1997
|
/*click_handler_1*/
|
|
1998
1998
|
i[68]
|
|
@@ -2001,96 +2001,96 @@ function br(i) {
|
|
|
2001
2001
|
/*handleOnSubmit*/
|
|
2002
2002
|
i[21]
|
|
2003
2003
|
))
|
|
2004
|
-
],
|
|
2004
|
+
], E = !0);
|
|
2005
2005
|
},
|
|
2006
|
-
p(
|
|
2007
|
-
(!
|
|
2006
|
+
p(x, W) {
|
|
2007
|
+
(!L || W[0] & /*placeholder*/
|
|
2008
2008
|
256) && y(
|
|
2009
2009
|
s,
|
|
2010
2010
|
"placeholder",
|
|
2011
2011
|
/*placeholder*/
|
|
2012
|
-
|
|
2013
|
-
), (!
|
|
2012
|
+
x[8]
|
|
2013
|
+
), (!L || W[0] & /*placeholder*/
|
|
2014
2014
|
256) && y(
|
|
2015
2015
|
s,
|
|
2016
2016
|
"aria-label",
|
|
2017
2017
|
/*placeholder*/
|
|
2018
|
-
|
|
2019
|
-
),
|
|
2018
|
+
x[8]
|
|
2019
|
+
), W[0] & /*searchValue*/
|
|
2020
2020
|
2 && s.value !== /*searchValue*/
|
|
2021
|
-
|
|
2021
|
+
x[1] && Yt(
|
|
2022
2022
|
s,
|
|
2023
2023
|
/*searchValue*/
|
|
2024
|
-
|
|
2025
|
-
), (!
|
|
2024
|
+
x[1]
|
|
2025
|
+
), (!L || W[0] & /*clearButtonTitle*/
|
|
2026
2026
|
8) && y(
|
|
2027
|
-
|
|
2027
|
+
d,
|
|
2028
2028
|
"title",
|
|
2029
2029
|
/*clearButtonTitle*/
|
|
2030
|
-
|
|
2030
|
+
x[3]
|
|
2031
2031
|
), /*abortController*/
|
|
2032
|
-
|
|
2033
|
-
524288 &&
|
|
2034
|
-
|
|
2035
|
-
}),
|
|
2036
|
-
2) &&
|
|
2032
|
+
x[19] ? b ? W[0] & /*abortController*/
|
|
2033
|
+
524288 && G(b, 1) : (b = ui(), b.c(), G(b, 1), b.m(u, null)) : b && (rt(), H(b, 1, 1, () => {
|
|
2034
|
+
b = null;
|
|
2035
|
+
}), ot()), (!L || W[0] & /*searchValue*/
|
|
2036
|
+
2) && re(
|
|
2037
2037
|
u,
|
|
2038
2038
|
"displayable",
|
|
2039
2039
|
/*searchValue*/
|
|
2040
|
-
|
|
2040
|
+
x[1] !== ""
|
|
2041
2041
|
), /*enableReverse*/
|
|
2042
|
-
|
|
2043
|
-
32 &&
|
|
2044
|
-
|
|
2045
|
-
}),
|
|
2046
|
-
536870912) &&
|
|
2042
|
+
x[5] === "button" ? _ ? (_.p(x, W), W[0] & /*enableReverse*/
|
|
2043
|
+
32 && G(_, 1)) : (_ = ai(x), _.c(), G(_, 1), _.m(n, g)) : _ && (rt(), H(_, 1, 1, () => {
|
|
2044
|
+
_ = null;
|
|
2045
|
+
}), ot()), I && I.p && (!L || W[1] & /*$$scope*/
|
|
2046
|
+
536870912) && bn(
|
|
2047
2047
|
I,
|
|
2048
2048
|
C,
|
|
2049
|
-
|
|
2049
|
+
x,
|
|
2050
2050
|
/*$$scope*/
|
|
2051
|
-
|
|
2052
|
-
|
|
2051
|
+
x[60],
|
|
2052
|
+
L ? pn(
|
|
2053
2053
|
C,
|
|
2054
2054
|
/*$$scope*/
|
|
2055
|
-
|
|
2056
|
-
|
|
2055
|
+
x[60],
|
|
2056
|
+
W,
|
|
2057
2057
|
null
|
|
2058
|
-
) :
|
|
2058
|
+
) : vn(
|
|
2059
2059
|
/*$$scope*/
|
|
2060
|
-
|
|
2060
|
+
x[60]
|
|
2061
2061
|
),
|
|
2062
2062
|
null
|
|
2063
2063
|
);
|
|
2064
|
-
let
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
}),
|
|
2068
|
-
4 &&
|
|
2064
|
+
let oe = w;
|
|
2065
|
+
w = X(x), w === oe ? ~w && O[w].p(x, W) : (p && (rt(), H(O[oe], 1, 1, () => {
|
|
2066
|
+
O[oe] = null;
|
|
2067
|
+
}), ot()), ~w ? (p = O[w], p ? p.p(x, W) : (p = O[w] = Q[w](x), p.c()), G(p, 1), p.m(t, null)) : p = null), (!L || W[0] & /*className*/
|
|
2068
|
+
4 && S !== (S = Vt(
|
|
2069
2069
|
/*className*/
|
|
2070
|
-
|
|
2071
|
-
) + " svelte-
|
|
2072
|
-
22) &&
|
|
2070
|
+
x[2]
|
|
2071
|
+
) + " svelte-bz0zu3")) && y(t, "class", S), (!L || W[0] & /*className, collapsed, searchValue*/
|
|
2072
|
+
22) && re(
|
|
2073
2073
|
t,
|
|
2074
2074
|
"can-collapse",
|
|
2075
2075
|
/*collapsed*/
|
|
2076
|
-
|
|
2077
|
-
|
|
2076
|
+
x[4] && /*searchValue*/
|
|
2077
|
+
x[1] === ""
|
|
2078
2078
|
);
|
|
2079
2079
|
},
|
|
2080
|
-
i(
|
|
2081
|
-
|
|
2080
|
+
i(x) {
|
|
2081
|
+
L || (G(k), G(o.$$.fragment, x), G(a.$$.fragment, x), G(b), G(_), G(I, x), G(p), L = !0);
|
|
2082
2082
|
},
|
|
2083
|
-
o(
|
|
2084
|
-
|
|
2083
|
+
o(x) {
|
|
2084
|
+
H(k), H(o.$$.fragment, x), H(a.$$.fragment, x), H(b), H(_), H(I, x), H(p), L = !1;
|
|
2085
2085
|
},
|
|
2086
|
-
d(
|
|
2087
|
-
|
|
2086
|
+
d(x) {
|
|
2087
|
+
x && (B(e), B(t)), me(o), i[63](null), me(a), b && b.d(), _ && _.d(), I && I.d(x), ~w && O[w].d(), E = !1, ye(M);
|
|
2088
2088
|
}
|
|
2089
2089
|
};
|
|
2090
2090
|
}
|
|
2091
2091
|
function wr(i, e, t) {
|
|
2092
|
-
let n, { $$slots:
|
|
2093
|
-
const
|
|
2092
|
+
let n, r, { $$slots: o = {}, $$scope: l } = e;
|
|
2093
|
+
const s = {
|
|
2094
2094
|
continental_marine: 4,
|
|
2095
2095
|
country: 4,
|
|
2096
2096
|
major_landform: 8,
|
|
@@ -2114,69 +2114,69 @@ function wr(i, e, t) {
|
|
|
2114
2114
|
"poi.restaurant": 18,
|
|
2115
2115
|
"poi.aerodrome": 13
|
|
2116
2116
|
};
|
|
2117
|
-
let { class:
|
|
2117
|
+
let { class: c = void 0 } = e, { apiKey: u } = e, { bbox: d = void 0 } = e, { clearButtonTitle: a = "clear" } = e, { clearOnBlur: f = !1 } = e, { collapsed: h = !1 } = e, { country: g = void 0 } = e, { debounceSearch: v = 200 } = e, { enableReverse: w = "never" } = e, { errorMessage: p = "Something went wrong…" } = e, { filter: S = () => !0 } = e, { flyTo: L = !0 } = e, { fuzzyMatch: E = !0 } = e, { language: M = void 0 } = e, { limit: k = void 0 } = e, { mapController: b = void 0 } = e, { minLength: _ = 2 } = e, { noResultsMessage: C = "Oops! Looks like you're trying to predict something that's not quite right. We can't seem to find what you're looking for. Maybe try double-checking your spelling or try a different search term. Keep on typing - we'll do our best to get you where you need to go!" } = e, { placeholder: I = "Search" } = e, { proximity: Q = [{ type: "server-geolocation" }] } = e, { reverseActive: O = w === "always" } = e, { reverseButtonTitle: X = "toggle reverse geocoding" } = e, { searchValue: x = "" } = e, { pickedResultStyle: W = "full-geometry" } = e, { showPlaceType: oe = "if-needed" } = e, { showResultsWhileTyping: de = !0 } = e, { selectFirst: Te = !0 } = e, { flyToSelected: at = !1 } = e, { markerOnSelected: Xe = !0 } = e, { types: Ce = void 0 } = e, { exhaustiveReverseGeocoding: ct = !1 } = e, { excludeTypes: Ke = !1 } = e, { zoom: Je = s } = e, { apiUrl: ft = "https://api.maptiler.com/geocoding" } = e, { fetchParameters: dt = {} } = e, { iconsBaseUrl: Ut = "https://cdn.maptiler.com/maptiler-geocoding-control/v2.0.1/icons/" } = e, { adjustUrlQuery: ht = () => {
|
|
2118
2118
|
} } = e;
|
|
2119
|
-
function Zi() {
|
|
2120
|
-
ce.focus();
|
|
2121
|
-
}
|
|
2122
2119
|
function qi() {
|
|
2123
|
-
|
|
2120
|
+
ae.focus();
|
|
2121
|
+
}
|
|
2122
|
+
function Zi() {
|
|
2123
|
+
ae.blur();
|
|
2124
2124
|
}
|
|
2125
|
-
function
|
|
2126
|
-
t(1,
|
|
2127
|
-
|
|
2125
|
+
function Gt(m, U = !0, Z = !1) {
|
|
2126
|
+
t(1, x = m), U ? (t(15, D = -1), qt()) : (pt(!Z, Z), setTimeout(() => {
|
|
2127
|
+
ae.focus(), ae.select();
|
|
2128
2128
|
}));
|
|
2129
2129
|
}
|
|
2130
2130
|
function Qi() {
|
|
2131
|
-
t(14, R = void 0), t(
|
|
2131
|
+
t(14, R = void 0), t(56, N = void 0), t(15, D = -1);
|
|
2132
2132
|
}
|
|
2133
2133
|
function Hi() {
|
|
2134
|
-
t(
|
|
2134
|
+
t(55, j = []), t(56, N = void 0);
|
|
2135
2135
|
}
|
|
2136
|
-
let Re = !1, R,
|
|
2136
|
+
let Re = !1, R, j, N, jt = "", ae, D = -1, ce, $e = [], ke, Ie, et, gt;
|
|
2137
2137
|
const Vi = /* @__PURE__ */ new Set(), pe = xn();
|
|
2138
2138
|
Sn(() => {
|
|
2139
|
-
|
|
2139
|
+
b && (b.setEventHandler(void 0), b.indicateReverse(!1), b.setSelectedMarker(-1), b.setFeatures(void 0, void 0, !1));
|
|
2140
2140
|
});
|
|
2141
|
-
function qt(
|
|
2142
|
-
if (Ie && (clearTimeout(Ie), Ie = void 0),
|
|
2143
|
-
t(
|
|
2144
|
-
else if (
|
|
2145
|
-
const
|
|
2146
|
-
|
|
2147
|
-
t(
|
|
2148
|
-
}).catch((
|
|
2141
|
+
function qt(m) {
|
|
2142
|
+
if (Ie && (clearTimeout(Ie), Ie = void 0), D > -1 && R)
|
|
2143
|
+
t(56, N = R[D]), t(1, x = N.place_type[0] === "reverse" ? N.place_name : N.place_name.replace(/,.*/, "")), t(18, ce = void 0), t(55, j = void 0), t(15, D = -1);
|
|
2144
|
+
else if (x) {
|
|
2145
|
+
const U = m || !mt(x);
|
|
2146
|
+
yt(x, { exact: !0 }).then(() => {
|
|
2147
|
+
t(55, j = R), t(56, N = void 0), U && Yi();
|
|
2148
|
+
}).catch((Z) => t(18, ce = Z));
|
|
2149
2149
|
}
|
|
2150
2150
|
}
|
|
2151
|
-
function
|
|
2151
|
+
function mt(m) {
|
|
2152
2152
|
try {
|
|
2153
|
-
return gr(
|
|
2153
|
+
return gr(m, 6);
|
|
2154
2154
|
} catch {
|
|
2155
2155
|
return !1;
|
|
2156
2156
|
}
|
|
2157
2157
|
}
|
|
2158
|
-
async function
|
|
2159
|
-
t(18,
|
|
2160
|
-
const
|
|
2161
|
-
t(19, ke =
|
|
2158
|
+
async function yt(m, { byId: U = !1, exact: Z = !1 } = {}) {
|
|
2159
|
+
t(18, ce = void 0), ke == null || ke.abort();
|
|
2160
|
+
const $ = new AbortController();
|
|
2161
|
+
t(19, ke = $);
|
|
2162
2162
|
try {
|
|
2163
|
-
const P =
|
|
2164
|
-
if (
|
|
2165
|
-
const tt = await nr(
|
|
2166
|
-
tt &&
|
|
2163
|
+
const P = mt(m), q = new URLSearchParams();
|
|
2164
|
+
if (M !== void 0 && q.set("language", Array.isArray(M) ? M.join(",") : M ?? ""), Ce && q.set("types", Ce.join(",")), Ke && q.set("excludeTypes", String(Ke)), d && q.set("bbox", d.map((tt) => tt.toFixed(6)).join(",")), g && q.set("country", Array.isArray(g) ? g.join(",") : g), !U && !P) {
|
|
2165
|
+
const tt = await nr(b, Q, $);
|
|
2166
|
+
tt && q.set("proximity", tt), (Z || !de) && q.set("autocomplete", "false"), q.set("fuzzyMatch", String(E));
|
|
2167
2167
|
}
|
|
2168
|
-
k !== void 0 && (
|
|
2169
|
-
const
|
|
2170
|
-
if (
|
|
2171
|
-
|
|
2168
|
+
k !== void 0 && (ct || !P || (Ce == null ? void 0 : Ce.length) === 1) && q.set("limit", String(k)), q.set("key", u), ht(q);
|
|
2169
|
+
const fe = ft + "/" + encodeURIComponent(P ? P.decimalLongitude + "," + P.decimalLatitude : m) + ".json?" + q.toString();
|
|
2170
|
+
if (fe === jt) {
|
|
2171
|
+
U ? (t(14, R = void 0), t(56, N = $e[0])) : t(14, R = $e);
|
|
2172
2172
|
return;
|
|
2173
2173
|
}
|
|
2174
|
-
|
|
2175
|
-
const
|
|
2176
|
-
if (!
|
|
2177
|
-
throw new Error(await
|
|
2178
|
-
const
|
|
2179
|
-
pe("response", { url:
|
|
2174
|
+
jt = fe;
|
|
2175
|
+
const vt = await fetch(fe, { signal: $.signal, ...dt });
|
|
2176
|
+
if (!vt.ok)
|
|
2177
|
+
throw new Error(await vt.text());
|
|
2178
|
+
const wt = await vt.json();
|
|
2179
|
+
pe("response", { url: fe, featureCollection: wt }), U ? (t(14, R = void 0), t(56, N = wt.features[0]), $e = [N]) : (t(14, R = wt.features.filter(S)), P && R.unshift({
|
|
2180
2180
|
type: "Feature",
|
|
2181
2181
|
properties: {},
|
|
2182
2182
|
id: "reverse_" + P.decimalLongitude + "_" + P.decimalLatitude,
|
|
@@ -2194,206 +2194,207 @@ function wr(i, e, t) {
|
|
|
2194
2194
|
type: "Point",
|
|
2195
2195
|
coordinates: [P.decimalLongitude, P.decimalLatitude]
|
|
2196
2196
|
}
|
|
2197
|
-
}), $e = R, P &&
|
|
2197
|
+
}), $e = R, P && ae.focus());
|
|
2198
2198
|
} catch (P) {
|
|
2199
2199
|
if (P && typeof P == "object" && "name" in P && P.name === "AbortError")
|
|
2200
2200
|
return;
|
|
2201
2201
|
throw P;
|
|
2202
2202
|
} finally {
|
|
2203
|
-
|
|
2203
|
+
$ === ke && t(19, ke = void 0);
|
|
2204
2204
|
}
|
|
2205
2205
|
}
|
|
2206
2206
|
function Yi() {
|
|
2207
|
-
var
|
|
2208
|
-
if (!(
|
|
2207
|
+
var $;
|
|
2208
|
+
if (!(j != null && j.length) || !L)
|
|
2209
2209
|
return;
|
|
2210
|
-
const
|
|
2211
|
-
let
|
|
2212
|
-
for (const P of
|
|
2213
|
-
const
|
|
2214
|
-
if (
|
|
2215
|
-
for (const
|
|
2216
|
-
|
|
2210
|
+
const m = [180, 90, -180, -90], U = !j.some((P) => !P.matching_text);
|
|
2211
|
+
let Z;
|
|
2212
|
+
for (const P of j) {
|
|
2213
|
+
const q = Be(P);
|
|
2214
|
+
if (Z = Z === void 0 ? q : q === void 0 ? Z : Math.max(Z, q), U || !P.matching_text)
|
|
2215
|
+
for (const fe of [0, 1, 2, 3])
|
|
2216
|
+
m[fe] = Math[fe < 2 ? "min" : "max"](m[fe], (($ = P.bbox) == null ? void 0 : $[fe]) ?? P.center[fe % 2]);
|
|
2217
2217
|
}
|
|
2218
|
-
|
|
2218
|
+
b && j.length > 0 && (N && m[0] === m[2] && m[1] === m[3] ? b.flyTo(N.center, Be(N)) : b.fitBounds(Ze(m), 50, Z));
|
|
2219
2219
|
}
|
|
2220
|
-
function
|
|
2221
|
-
var
|
|
2222
|
-
if (!
|
|
2220
|
+
function Be(m) {
|
|
2221
|
+
var Z;
|
|
2222
|
+
if (!m.bbox || m.bbox[0] !== m.bbox[2] && m.bbox[1] !== m.bbox[3])
|
|
2223
2223
|
return;
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
const Q = Te[j + "." + P];
|
|
2230
|
-
return ee === void 0 ? Q : Q === void 0 ? ee : Math.max(ee, Q);
|
|
2224
|
+
const U = m.id.replace(/\..*/, "");
|
|
2225
|
+
return (Array.isArray((Z = m.properties) == null ? void 0 : Z.categories) ? m.properties.categories.reduce(
|
|
2226
|
+
($, P) => {
|
|
2227
|
+
const q = Je[U + "." + P];
|
|
2228
|
+
return $ === void 0 ? q : q === void 0 ? $ : Math.max($, q);
|
|
2231
2229
|
},
|
|
2232
2230
|
void 0
|
|
2233
|
-
) : void 0) ??
|
|
2231
|
+
) : void 0) ?? Je[U];
|
|
2234
2232
|
}
|
|
2235
|
-
function Xi(
|
|
2236
|
-
t(0,
|
|
2233
|
+
function Xi(m) {
|
|
2234
|
+
t(0, O = w === "always"), t(14, R = void 0), t(56, N = void 0), t(15, D = -1), Gt(m[1].toFixed(6) + ", " + ir(m[0], [-180, 180], !0).toFixed(6), !1, !0);
|
|
2237
2235
|
}
|
|
2238
|
-
function Ki(
|
|
2236
|
+
function Ki(m) {
|
|
2239
2237
|
if (!R)
|
|
2240
2238
|
return;
|
|
2241
|
-
let
|
|
2242
|
-
|
|
2239
|
+
let U = m.key === "ArrowDown" ? 1 : m.key === "ArrowUp" ? -1 : 0;
|
|
2240
|
+
U && (D === (Te ? 0 : -1) && U === -1 && t(15, D = R.length), t(15, D += U), D >= R.length && t(15, D = -1), D < 0 && Te && t(15, D = 0), m.preventDefault());
|
|
2243
2241
|
}
|
|
2244
|
-
function
|
|
2245
|
-
if (t(18,
|
|
2246
|
-
if (Ie && clearTimeout(Ie),
|
|
2242
|
+
function pt(m = !0, U = !1) {
|
|
2243
|
+
if (t(18, ce = void 0), de || U) {
|
|
2244
|
+
if (Ie && clearTimeout(Ie), x.length < _)
|
|
2247
2245
|
return;
|
|
2248
|
-
const
|
|
2246
|
+
const Z = x;
|
|
2249
2247
|
Ie = window.setTimeout(
|
|
2250
2248
|
() => {
|
|
2251
|
-
|
|
2249
|
+
yt(Z).catch(($) => t(18, ce = $));
|
|
2252
2250
|
},
|
|
2253
|
-
|
|
2251
|
+
m ? v : 0
|
|
2254
2252
|
);
|
|
2255
2253
|
} else
|
|
2256
|
-
t(14, R = void 0), t(18,
|
|
2254
|
+
t(14, R = void 0), t(18, ce = void 0);
|
|
2257
2255
|
}
|
|
2258
|
-
function bt(
|
|
2259
|
-
t(
|
|
2256
|
+
function bt(m) {
|
|
2257
|
+
t(56, N = m), t(1, x = m.place_name), t(15, D = -1);
|
|
2260
2258
|
}
|
|
2261
|
-
const Ji = () =>
|
|
2262
|
-
function $i(
|
|
2263
|
-
Ct[
|
|
2264
|
-
|
|
2259
|
+
const Ji = () => ae.focus();
|
|
2260
|
+
function $i(m) {
|
|
2261
|
+
Ct[m ? "unshift" : "push"](() => {
|
|
2262
|
+
ae = m, t(17, ae);
|
|
2265
2263
|
});
|
|
2266
2264
|
}
|
|
2267
2265
|
function en() {
|
|
2268
|
-
|
|
2266
|
+
x = this.value, t(1, x), t(13, Re), t(28, f);
|
|
2269
2267
|
}
|
|
2270
|
-
const tn = () => t(13, Re = !0), nn = () => t(13, Re = !1), rn = () =>
|
|
2271
|
-
t(1,
|
|
2272
|
-
}, sn = () => t(0,
|
|
2273
|
-
|
|
2268
|
+
const tn = () => t(13, Re = !0), nn = () => t(13, Re = !1), rn = () => pt(), on = () => {
|
|
2269
|
+
t(1, x = ""), ae.focus();
|
|
2270
|
+
}, sn = () => t(0, O = !O), ln = () => t(18, ce = void 0), un = (m) => t(15, D = m), an = (m) => bt(m), cn = () => {
|
|
2271
|
+
Te || t(15, D = -1);
|
|
2274
2272
|
}, fn = () => {
|
|
2275
2273
|
};
|
|
2276
|
-
return i.$$set = (
|
|
2277
|
-
"class" in
|
|
2274
|
+
return i.$$set = (m) => {
|
|
2275
|
+
"class" in m && t(2, c = m.class), "apiKey" in m && t(26, u = m.apiKey), "bbox" in m && t(27, d = m.bbox), "clearButtonTitle" in m && t(3, a = m.clearButtonTitle), "clearOnBlur" in m && t(28, f = m.clearOnBlur), "collapsed" in m && t(4, h = m.collapsed), "country" in m && t(29, g = m.country), "debounceSearch" in m && t(30, v = m.debounceSearch), "enableReverse" in m && t(5, w = m.enableReverse), "errorMessage" in m && t(6, p = m.errorMessage), "filter" in m && t(31, S = m.filter), "flyTo" in m && t(32, L = m.flyTo), "fuzzyMatch" in m && t(33, E = m.fuzzyMatch), "language" in m && t(34, M = m.language), "limit" in m && t(35, k = m.limit), "mapController" in m && t(36, b = m.mapController), "minLength" in m && t(37, _ = m.minLength), "noResultsMessage" in m && t(7, C = m.noResultsMessage), "placeholder" in m && t(8, I = m.placeholder), "proximity" in m && t(38, Q = m.proximity), "reverseActive" in m && t(0, O = m.reverseActive), "reverseButtonTitle" in m && t(9, X = m.reverseButtonTitle), "searchValue" in m && t(1, x = m.searchValue), "pickedResultStyle" in m && t(39, W = m.pickedResultStyle), "showPlaceType" in m && t(10, oe = m.showPlaceType), "showResultsWhileTyping" in m && t(40, de = m.showResultsWhileTyping), "selectFirst" in m && t(11, Te = m.selectFirst), "flyToSelected" in m && t(41, at = m.flyToSelected), "markerOnSelected" in m && t(42, Xe = m.markerOnSelected), "types" in m && t(43, Ce = m.types), "exhaustiveReverseGeocoding" in m && t(44, ct = m.exhaustiveReverseGeocoding), "excludeTypes" in m && t(45, Ke = m.excludeTypes), "zoom" in m && t(46, Je = m.zoom), "apiUrl" in m && t(47, ft = m.apiUrl), "fetchParameters" in m && t(48, dt = m.fetchParameters), "iconsBaseUrl" in m && t(12, Ut = m.iconsBaseUrl), "adjustUrlQuery" in m && t(49, ht = m.adjustUrlQuery), "$$scope" in m && t(60, l = m.$$scope);
|
|
2278
2276
|
}, i.$$.update = () => {
|
|
2279
2277
|
if (i.$$.dirty[0] & /*enableReverse*/
|
|
2280
|
-
32 && t(0,
|
|
2278
|
+
32 && t(0, O = w === "always"), i.$$.dirty[0] & /*focused, clearOnBlur*/
|
|
2281
2279
|
268443648 && setTimeout(() => {
|
|
2282
|
-
t(16, et = Re),
|
|
2280
|
+
t(16, et = Re), f && !Re && t(1, x = "");
|
|
2283
2281
|
}), i.$$.dirty[0] & /*searchValue, listFeatures*/
|
|
2284
2282
|
16386 | i.$$.dirty[1] & /*minLength*/
|
|
2285
|
-
64 &&
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
18432 &&
|
|
2289
|
-
2 && t(15,
|
|
2283
|
+
64 && x.length < _ && (t(56, N = void 0), t(14, R = void 0), t(18, ce = void 0), t(55, j = R)), i.$$.dirty[1] & /*pickedResultStyle, picked*/
|
|
2284
|
+
33554688 && W !== "marker-only" && N && !N.address && N.geometry.type === "Point" && N.place_type[0] !== "reverse" && yt(N.id, { byId: !0 }).catch((m) => t(18, ce = m)), i.$$.dirty[1] & /*mapController, picked, prevIdToFly, flyTo*/
|
|
2285
|
+
100663330 && (b && N && N.id !== gt && L && (!N.bbox || N.bbox[0] === N.bbox[2] && N.bbox[1] === N.bbox[3] ? b.flyTo(N.center, Be(N)) : b.fitBounds(Ze(N.bbox), 50, Be(N)), t(14, R = void 0), t(55, j = void 0), t(15, D = -1)), t(57, gt = N == null ? void 0 : N.id)), i.$$.dirty[0] & /*selectFirst, listFeatures*/
|
|
2286
|
+
18432 && Te && R != null && R.length && t(15, D = 0), i.$$.dirty[0] & /*searchValue*/
|
|
2287
|
+
2 && t(15, D = -1), i.$$.dirty[0] & /*listFeatures*/
|
|
2290
2288
|
16384 | i.$$.dirty[1] & /*markedFeatures*/
|
|
2291
|
-
|
|
2289
|
+
16777216 && j !== R && t(55, j = void 0), i.$$.dirty[0] & /*reverseActive, listFeatures, focusedDelayed*/
|
|
2292
2290
|
81921 | i.$$.dirty[1] & /*mapController, markedFeatures*/
|
|
2293
|
-
|
|
2294
|
-
switch (
|
|
2291
|
+
16777248 && b && b.setEventHandler((m) => {
|
|
2292
|
+
switch (m.type) {
|
|
2295
2293
|
case "mapClick":
|
|
2296
|
-
|
|
2294
|
+
O && Xi(m.coordinates);
|
|
2297
2295
|
break;
|
|
2298
2296
|
case "markerClick":
|
|
2299
2297
|
{
|
|
2300
|
-
const
|
|
2301
|
-
|
|
2298
|
+
const U = R == null ? void 0 : R.find((Z) => Z.id === m.id);
|
|
2299
|
+
U && bt(U);
|
|
2302
2300
|
}
|
|
2303
2301
|
break;
|
|
2304
2302
|
case "markerMouseEnter":
|
|
2305
|
-
|
|
2303
|
+
j && t(15, D = et ? (R == null ? void 0 : R.findIndex((U) => U.id === m.id)) ?? -1 : -1);
|
|
2306
2304
|
break;
|
|
2307
2305
|
case "markerMouseLeave":
|
|
2308
|
-
|
|
2306
|
+
j && t(15, D = -1);
|
|
2309
2307
|
break;
|
|
2310
2308
|
}
|
|
2311
2309
|
}), i.$$.dirty[0] & /*listFeatures, selectedItemIndex*/
|
|
2312
|
-
49152 && t(
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2310
|
+
49152 && t(58, r = R == null ? void 0 : R[D]), i.$$.dirty[1] & /*mapController, selected, flyTo, flyToSelected*/
|
|
2311
|
+
134218786 && b && r && L && at && b.flyTo(r.center, Be(r)), i.$$.dirty[1] & /*pickedResultStyle*/
|
|
2312
|
+
256 && t(59, n = W === "full-geometry-including-polygon-center-marker"), i.$$.dirty[1] & /*markerOnSelected, mapController, showPolygonMarker*/
|
|
2313
|
+
268437536 && (Xe || b == null || b.setFeatures(void 0, void 0, n)), i.$$.dirty[1] & /*mapController, markerOnSelected, markedFeatures, selected, showPolygonMarker*/
|
|
2314
|
+
419432480 && b && Xe && !j && (b.setFeatures(r ? [r] : void 0, void 0, n), b.setSelectedMarker(r ? 0 : -1)), i.$$.dirty[1] & /*mapController, markedFeatures, picked, showPolygonMarker*/
|
|
2315
|
+
318767136 && b && b.setFeatures(j, N, n), i.$$.dirty[0] & /*selectedItemIndex*/
|
|
2317
2316
|
32768 | i.$$.dirty[1] & /*markedFeatures, mapController*/
|
|
2318
|
-
|
|
2317
|
+
16777248 && j && b && b.setSelectedMarker(D), i.$$.dirty[0] & /*searchValue*/
|
|
2319
2318
|
2 | i.$$.dirty[1] & /*mapController*/
|
|
2320
|
-
32 &&
|
|
2321
|
-
const
|
|
2322
|
-
|
|
2319
|
+
32 && b) {
|
|
2320
|
+
const m = mt(x);
|
|
2321
|
+
b.setReverseMarker(m ? [m.decimalLongitude, m.decimalLatitude] : void 0);
|
|
2323
2322
|
}
|
|
2324
2323
|
i.$$.dirty[1] & /*selected*/
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
81920 && pe("
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2324
|
+
134217728 && pe("select", { feature: r }), i.$$.dirty[1] & /*picked*/
|
|
2325
|
+
33554432 && pe("pick", { feature: N }), i.$$.dirty[0] & /*focusedDelayed, listFeatures*/
|
|
2326
|
+
81920 && pe("optionsvisibilitychange", {
|
|
2327
|
+
optionsVisible: et && !!R
|
|
2328
|
+
}), i.$$.dirty[0] & /*listFeatures*/
|
|
2329
|
+
16384 && pe("featureslisted", { features: R }), i.$$.dirty[1] & /*markedFeatures*/
|
|
2330
|
+
16777216 && pe("featuresmarked", { features: j }), i.$$.dirty[0] & /*reverseActive*/
|
|
2331
|
+
1 && pe("reversetoggle", { reverse: O }), i.$$.dirty[0] & /*searchValue*/
|
|
2332
|
+
2 && pe("querychange", { query: x }), i.$$.dirty[0] & /*reverseActive*/
|
|
2332
2333
|
1 | i.$$.dirty[1] & /*mapController*/
|
|
2333
|
-
32 &&
|
|
2334
|
+
32 && b && b.indicateReverse(O);
|
|
2334
2335
|
}, [
|
|
2335
|
-
D,
|
|
2336
2336
|
O,
|
|
2337
|
-
|
|
2337
|
+
x,
|
|
2338
|
+
c,
|
|
2339
|
+
a,
|
|
2338
2340
|
h,
|
|
2339
|
-
f,
|
|
2340
|
-
v,
|
|
2341
|
-
b,
|
|
2342
2341
|
w,
|
|
2342
|
+
p,
|
|
2343
2343
|
C,
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2344
|
+
I,
|
|
2345
|
+
X,
|
|
2346
|
+
oe,
|
|
2347
|
+
Te,
|
|
2348
|
+
Ut,
|
|
2348
2349
|
Re,
|
|
2349
2350
|
R,
|
|
2350
|
-
|
|
2351
|
+
D,
|
|
2351
2352
|
et,
|
|
2353
|
+
ae,
|
|
2352
2354
|
ce,
|
|
2353
|
-
fe,
|
|
2354
2355
|
ke,
|
|
2355
2356
|
Vi,
|
|
2356
2357
|
qt,
|
|
2357
2358
|
Ki,
|
|
2358
|
-
|
|
2359
|
+
pt,
|
|
2359
2360
|
bt,
|
|
2360
|
-
|
|
2361
|
-
c,
|
|
2361
|
+
s,
|
|
2362
2362
|
u,
|
|
2363
|
-
a,
|
|
2364
2363
|
d,
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
E,
|
|
2364
|
+
f,
|
|
2365
|
+
g,
|
|
2366
|
+
v,
|
|
2369
2367
|
S,
|
|
2370
|
-
k,
|
|
2371
|
-
x,
|
|
2372
2368
|
L,
|
|
2373
|
-
|
|
2369
|
+
E,
|
|
2374
2370
|
M,
|
|
2375
|
-
|
|
2376
|
-
|
|
2371
|
+
k,
|
|
2372
|
+
b,
|
|
2373
|
+
_,
|
|
2374
|
+
Q,
|
|
2375
|
+
W,
|
|
2376
|
+
de,
|
|
2377
|
+
at,
|
|
2377
2378
|
Xe,
|
|
2378
2379
|
Ce,
|
|
2379
|
-
|
|
2380
|
+
ct,
|
|
2380
2381
|
Ke,
|
|
2381
|
-
Te,
|
|
2382
2382
|
Je,
|
|
2383
|
+
ft,
|
|
2383
2384
|
dt,
|
|
2384
2385
|
ht,
|
|
2385
|
-
gt,
|
|
2386
|
-
Zi,
|
|
2387
2386
|
qi,
|
|
2388
|
-
|
|
2387
|
+
Zi,
|
|
2388
|
+
Gt,
|
|
2389
2389
|
Qi,
|
|
2390
2390
|
Hi,
|
|
2391
|
-
|
|
2391
|
+
j,
|
|
2392
2392
|
N,
|
|
2393
|
-
|
|
2393
|
+
gt,
|
|
2394
|
+
r,
|
|
2394
2395
|
n,
|
|
2396
|
+
l,
|
|
2395
2397
|
o,
|
|
2396
|
-
r,
|
|
2397
2398
|
Ji,
|
|
2398
2399
|
$i,
|
|
2399
2400
|
en,
|
|
@@ -2415,7 +2416,7 @@ let _r = class extends Me {
|
|
|
2415
2416
|
this,
|
|
2416
2417
|
e,
|
|
2417
2418
|
wr,
|
|
2418
|
-
|
|
2419
|
+
vr,
|
|
2419
2420
|
Se,
|
|
2420
2421
|
{
|
|
2421
2422
|
ZOOM_DEFAULTS: 25,
|
|
@@ -2442,7 +2443,7 @@ let _r = class extends Me {
|
|
|
2442
2443
|
reverseActive: 0,
|
|
2443
2444
|
reverseButtonTitle: 9,
|
|
2444
2445
|
searchValue: 1,
|
|
2445
|
-
|
|
2446
|
+
pickedResultStyle: 39,
|
|
2446
2447
|
showPlaceType: 10,
|
|
2447
2448
|
showResultsWhileTyping: 40,
|
|
2448
2449
|
selectFirst: 11,
|
|
@@ -2452,16 +2453,15 @@ let _r = class extends Me {
|
|
|
2452
2453
|
exhaustiveReverseGeocoding: 44,
|
|
2453
2454
|
excludeTypes: 45,
|
|
2454
2455
|
zoom: 46,
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
fetchParameters: 49,
|
|
2456
|
+
apiUrl: 47,
|
|
2457
|
+
fetchParameters: 48,
|
|
2458
2458
|
iconsBaseUrl: 12,
|
|
2459
|
-
adjustUrlQuery:
|
|
2460
|
-
focus:
|
|
2461
|
-
blur:
|
|
2462
|
-
setQuery:
|
|
2463
|
-
clearList:
|
|
2464
|
-
clearMap:
|
|
2459
|
+
adjustUrlQuery: 49,
|
|
2460
|
+
focus: 50,
|
|
2461
|
+
blur: 51,
|
|
2462
|
+
setQuery: 52,
|
|
2463
|
+
clearList: 53,
|
|
2464
|
+
clearMap: 54
|
|
2465
2465
|
},
|
|
2466
2466
|
null,
|
|
2467
2467
|
[-1, -1, -1]
|
|
@@ -2471,26 +2471,26 @@ let _r = class extends Me {
|
|
|
2471
2471
|
return this.$$.ctx[25];
|
|
2472
2472
|
}
|
|
2473
2473
|
get focus() {
|
|
2474
|
-
return this.$$.ctx[
|
|
2474
|
+
return this.$$.ctx[50];
|
|
2475
2475
|
}
|
|
2476
2476
|
get blur() {
|
|
2477
|
-
return this.$$.ctx[
|
|
2477
|
+
return this.$$.ctx[51];
|
|
2478
2478
|
}
|
|
2479
2479
|
get setQuery() {
|
|
2480
|
-
return this.$$.ctx[
|
|
2480
|
+
return this.$$.ctx[52];
|
|
2481
2481
|
}
|
|
2482
2482
|
get clearList() {
|
|
2483
|
-
return this.$$.ctx[
|
|
2483
|
+
return this.$$.ctx[53];
|
|
2484
2484
|
}
|
|
2485
2485
|
get clearMap() {
|
|
2486
|
-
return this.$$.ctx[
|
|
2486
|
+
return this.$$.ctx[54];
|
|
2487
2487
|
}
|
|
2488
2488
|
};
|
|
2489
2489
|
function Qe(i, e, t = {}) {
|
|
2490
2490
|
const n = { type: "Feature" };
|
|
2491
2491
|
return (t.id === 0 || t.id) && (n.id = t.id), t.bbox && (n.bbox = t.bbox), n.properties = e || {}, n.geometry = i, n;
|
|
2492
2492
|
}
|
|
2493
|
-
function
|
|
2493
|
+
function zt(i, e, t = {}) {
|
|
2494
2494
|
for (const r of i) {
|
|
2495
2495
|
if (r.length < 4)
|
|
2496
2496
|
throw new Error(
|
|
@@ -2517,16 +2517,16 @@ function Ai(i, e, t = {}) {
|
|
|
2517
2517
|
coordinates: i
|
|
2518
2518
|
}, e, t);
|
|
2519
2519
|
}
|
|
2520
|
-
function
|
|
2520
|
+
function Wi(i, e, t) {
|
|
2521
2521
|
if (i !== null)
|
|
2522
|
-
for (var n, r, o, l, s, c, u,
|
|
2523
|
-
u =
|
|
2524
|
-
for (var
|
|
2525
|
-
var
|
|
2526
|
-
if (l = f ? u.geometries[
|
|
2522
|
+
for (var n, r, o, l, s, c, u, d = 0, a = 0, f, h = i.type, g = h === "FeatureCollection", v = h === "Feature", w = g ? i.features.length : 1, p = 0; p < w; p++) {
|
|
2523
|
+
u = g ? i.features[p].geometry : v ? i.geometry : i, f = u ? u.type === "GeometryCollection" : !1, s = f ? u.geometries.length : 1;
|
|
2524
|
+
for (var S = 0; S < s; S++) {
|
|
2525
|
+
var L = 0, E = 0;
|
|
2526
|
+
if (l = f ? u.geometries[S] : u, l !== null) {
|
|
2527
2527
|
c = l.coordinates;
|
|
2528
|
-
var
|
|
2529
|
-
switch (
|
|
2528
|
+
var M = l.type;
|
|
2529
|
+
switch (d = 0, M) {
|
|
2530
2530
|
case null:
|
|
2531
2531
|
break;
|
|
2532
2532
|
case "Point":
|
|
@@ -2534,11 +2534,11 @@ function Bi(i, e, t) {
|
|
|
2534
2534
|
c,
|
|
2535
2535
|
a,
|
|
2536
2536
|
p,
|
|
2537
|
-
|
|
2538
|
-
|
|
2537
|
+
L,
|
|
2538
|
+
E
|
|
2539
2539
|
) === !1)
|
|
2540
2540
|
return !1;
|
|
2541
|
-
a++,
|
|
2541
|
+
a++, L++;
|
|
2542
2542
|
break;
|
|
2543
2543
|
case "LineString":
|
|
2544
2544
|
case "MultiPoint":
|
|
@@ -2547,54 +2547,54 @@ function Bi(i, e, t) {
|
|
|
2547
2547
|
c[n],
|
|
2548
2548
|
a,
|
|
2549
2549
|
p,
|
|
2550
|
-
|
|
2551
|
-
|
|
2550
|
+
L,
|
|
2551
|
+
E
|
|
2552
2552
|
) === !1)
|
|
2553
2553
|
return !1;
|
|
2554
|
-
a++,
|
|
2554
|
+
a++, M === "MultiPoint" && L++;
|
|
2555
2555
|
}
|
|
2556
|
-
|
|
2556
|
+
M === "LineString" && L++;
|
|
2557
2557
|
break;
|
|
2558
2558
|
case "Polygon":
|
|
2559
2559
|
case "MultiLineString":
|
|
2560
2560
|
for (n = 0; n < c.length; n++) {
|
|
2561
|
-
for (r = 0; r < c[n].length -
|
|
2561
|
+
for (r = 0; r < c[n].length - d; r++) {
|
|
2562
2562
|
if (e(
|
|
2563
2563
|
c[n][r],
|
|
2564
2564
|
a,
|
|
2565
2565
|
p,
|
|
2566
|
-
|
|
2567
|
-
|
|
2566
|
+
L,
|
|
2567
|
+
E
|
|
2568
2568
|
) === !1)
|
|
2569
2569
|
return !1;
|
|
2570
2570
|
a++;
|
|
2571
2571
|
}
|
|
2572
|
-
|
|
2572
|
+
M === "MultiLineString" && L++, M === "Polygon" && E++;
|
|
2573
2573
|
}
|
|
2574
|
-
|
|
2574
|
+
M === "Polygon" && L++;
|
|
2575
2575
|
break;
|
|
2576
2576
|
case "MultiPolygon":
|
|
2577
2577
|
for (n = 0; n < c.length; n++) {
|
|
2578
|
-
for (
|
|
2579
|
-
for (o = 0; o < c[n][r].length -
|
|
2578
|
+
for (E = 0, r = 0; r < c[n].length; r++) {
|
|
2579
|
+
for (o = 0; o < c[n][r].length - d; o++) {
|
|
2580
2580
|
if (e(
|
|
2581
2581
|
c[n][r][o],
|
|
2582
2582
|
a,
|
|
2583
2583
|
p,
|
|
2584
|
-
|
|
2585
|
-
|
|
2584
|
+
L,
|
|
2585
|
+
E
|
|
2586
2586
|
) === !1)
|
|
2587
2587
|
return !1;
|
|
2588
2588
|
a++;
|
|
2589
2589
|
}
|
|
2590
|
-
|
|
2590
|
+
E++;
|
|
2591
2591
|
}
|
|
2592
|
-
|
|
2592
|
+
L++;
|
|
2593
2593
|
}
|
|
2594
2594
|
break;
|
|
2595
2595
|
case "GeometryCollection":
|
|
2596
2596
|
for (n = 0; n < l.geometries.length; n++)
|
|
2597
|
-
if (
|
|
2597
|
+
if (Wi(l.geometries[n], e) === !1)
|
|
2598
2598
|
return !1;
|
|
2599
2599
|
break;
|
|
2600
2600
|
default:
|
|
@@ -2604,16 +2604,16 @@ function Bi(i, e, t) {
|
|
|
2604
2604
|
}
|
|
2605
2605
|
}
|
|
2606
2606
|
}
|
|
2607
|
-
function
|
|
2608
|
-
var t, n, r, o, l, s, c, u,
|
|
2607
|
+
function Bt(i, e) {
|
|
2608
|
+
var t, n, r, o, l, s, c, u, d, a, f = 0, h = i.type === "FeatureCollection", g = i.type === "Feature", v = h ? i.features.length : 1;
|
|
2609
2609
|
for (t = 0; t < v; t++) {
|
|
2610
|
-
for (s =
|
|
2610
|
+
for (s = h ? i.features[t].geometry : g ? i.geometry : i, u = h ? i.features[t].properties : g ? i.properties : {}, d = h ? i.features[t].bbox : g ? i.bbox : void 0, a = h ? i.features[t].id : g ? i.id : void 0, c = s ? s.type === "GeometryCollection" : !1, l = c ? s.geometries.length : 1, r = 0; r < l; r++) {
|
|
2611
2611
|
if (o = c ? s.geometries[r] : s, o === null) {
|
|
2612
2612
|
if (e(
|
|
2613
2613
|
null,
|
|
2614
2614
|
f,
|
|
2615
2615
|
u,
|
|
2616
|
-
|
|
2616
|
+
d,
|
|
2617
2617
|
a
|
|
2618
2618
|
) === !1)
|
|
2619
2619
|
return !1;
|
|
@@ -2630,7 +2630,7 @@ function Dt(i, e) {
|
|
|
2630
2630
|
o,
|
|
2631
2631
|
f,
|
|
2632
2632
|
u,
|
|
2633
|
-
|
|
2633
|
+
d,
|
|
2634
2634
|
a
|
|
2635
2635
|
) === !1)
|
|
2636
2636
|
return !1;
|
|
@@ -2642,7 +2642,7 @@ function Dt(i, e) {
|
|
|
2642
2642
|
o.geometries[n],
|
|
2643
2643
|
f,
|
|
2644
2644
|
u,
|
|
2645
|
-
|
|
2645
|
+
d,
|
|
2646
2646
|
a
|
|
2647
2647
|
) === !1)
|
|
2648
2648
|
return !1;
|
|
@@ -2656,7 +2656,7 @@ function Dt(i, e) {
|
|
|
2656
2656
|
}
|
|
2657
2657
|
}
|
|
2658
2658
|
function Er(i, e) {
|
|
2659
|
-
|
|
2659
|
+
Bt(i, function(t, n, r, o, l) {
|
|
2660
2660
|
var s = t === null ? null : t.type;
|
|
2661
2661
|
switch (s) {
|
|
2662
2662
|
case null:
|
|
@@ -2682,9 +2682,9 @@ function Er(i, e) {
|
|
|
2682
2682
|
break;
|
|
2683
2683
|
}
|
|
2684
2684
|
for (var u = 0; u < t.coordinates.length; u++) {
|
|
2685
|
-
var
|
|
2685
|
+
var d = t.coordinates[u], a = {
|
|
2686
2686
|
type: c,
|
|
2687
|
-
coordinates:
|
|
2687
|
+
coordinates: d
|
|
2688
2688
|
};
|
|
2689
2689
|
if (e(Qe(a, r), n, u) === !1)
|
|
2690
2690
|
return !1;
|
|
@@ -2695,7 +2695,7 @@ function Lr(i, e = {}) {
|
|
|
2695
2695
|
if (i.bbox != null && e.recompute !== !0)
|
|
2696
2696
|
return i.bbox;
|
|
2697
2697
|
const t = [1 / 0, 1 / 0, -1 / 0, -1 / 0];
|
|
2698
|
-
return
|
|
2698
|
+
return Wi(i, (n) => {
|
|
2699
2699
|
t[0] > n[0] && (t[0] = n[0]), t[1] > n[1] && (t[1] = n[1]), t[2] < n[0] && (t[2] = n[0]), t[3] < n[1] && (t[3] = n[1]);
|
|
2700
2700
|
}), t;
|
|
2701
2701
|
}
|
|
@@ -2705,7 +2705,7 @@ function Sr(i) {
|
|
|
2705
2705
|
throw new Error("geojson is required");
|
|
2706
2706
|
switch (i.type) {
|
|
2707
2707
|
case "Feature":
|
|
2708
|
-
return
|
|
2708
|
+
return zi(i);
|
|
2709
2709
|
case "FeatureCollection":
|
|
2710
2710
|
return xr(i);
|
|
2711
2711
|
case "Point":
|
|
@@ -2715,12 +2715,12 @@ function Sr(i) {
|
|
|
2715
2715
|
case "MultiLineString":
|
|
2716
2716
|
case "MultiPolygon":
|
|
2717
2717
|
case "GeometryCollection":
|
|
2718
|
-
return
|
|
2718
|
+
return Dt(i);
|
|
2719
2719
|
default:
|
|
2720
2720
|
throw new Error("unknown GeoJSON type");
|
|
2721
2721
|
}
|
|
2722
2722
|
}
|
|
2723
|
-
function
|
|
2723
|
+
function zi(i) {
|
|
2724
2724
|
const e = { type: "Feature" };
|
|
2725
2725
|
return Object.keys(i).forEach((t) => {
|
|
2726
2726
|
switch (t) {
|
|
@@ -2731,13 +2731,13 @@ function Di(i) {
|
|
|
2731
2731
|
default:
|
|
2732
2732
|
e[t] = i[t];
|
|
2733
2733
|
}
|
|
2734
|
-
}), e.properties =
|
|
2734
|
+
}), e.properties = Bi(i.properties), i.geometry == null ? e.geometry = null : e.geometry = Dt(i.geometry), e;
|
|
2735
2735
|
}
|
|
2736
|
-
function
|
|
2736
|
+
function Bi(i) {
|
|
2737
2737
|
const e = {};
|
|
2738
2738
|
return i && Object.keys(i).forEach((t) => {
|
|
2739
2739
|
const n = i[t];
|
|
2740
|
-
typeof n == "object" ? n === null ? e[t] = null : Array.isArray(n) ? e[t] = n.map((r) => r) : e[t] =
|
|
2740
|
+
typeof n == "object" ? n === null ? e[t] = null : Array.isArray(n) ? e[t] = n.map((r) => r) : e[t] = Bi(n) : e[t] = n;
|
|
2741
2741
|
}), e;
|
|
2742
2742
|
}
|
|
2743
2743
|
function xr(i) {
|
|
@@ -2750,15 +2750,15 @@ function xr(i) {
|
|
|
2750
2750
|
default:
|
|
2751
2751
|
e[t] = i[t];
|
|
2752
2752
|
}
|
|
2753
|
-
}), e.features = i.features.map((t) =>
|
|
2753
|
+
}), e.features = i.features.map((t) => zi(t)), e;
|
|
2754
2754
|
}
|
|
2755
|
-
function
|
|
2755
|
+
function Dt(i) {
|
|
2756
2756
|
const e = { type: i.type };
|
|
2757
|
-
return i.bbox && (e.bbox = i.bbox), i.type === "GeometryCollection" ? (e.geometries = i.geometries.map((t) =>
|
|
2757
|
+
return i.bbox && (e.bbox = i.bbox), i.type === "GeometryCollection" ? (e.geometries = i.geometries.map((t) => Dt(t)), e) : (e.coordinates = Di(i.coordinates), e);
|
|
2758
2758
|
}
|
|
2759
|
-
function
|
|
2759
|
+
function Di(i) {
|
|
2760
2760
|
const e = i;
|
|
2761
|
-
return typeof e[0] != "object" ? e.slice() : e.map((t) =>
|
|
2761
|
+
return typeof e[0] != "object" ? e.slice() : e.map((t) => Di(t));
|
|
2762
2762
|
}
|
|
2763
2763
|
var Mr = Sr;
|
|
2764
2764
|
/**
|
|
@@ -2792,8 +2792,8 @@ function Cr(i, e) {
|
|
|
2792
2792
|
return this;
|
|
2793
2793
|
}), l;
|
|
2794
2794
|
function s(u) {
|
|
2795
|
-
return function(
|
|
2796
|
-
return c([u,
|
|
2795
|
+
return function(d) {
|
|
2796
|
+
return c([u, d]);
|
|
2797
2797
|
};
|
|
2798
2798
|
}
|
|
2799
2799
|
function c(u) {
|
|
@@ -2834,8 +2834,8 @@ function Cr(i, e) {
|
|
|
2834
2834
|
continue;
|
|
2835
2835
|
}
|
|
2836
2836
|
u = e.call(i, t);
|
|
2837
|
-
} catch (
|
|
2838
|
-
u = [6,
|
|
2837
|
+
} catch (d) {
|
|
2838
|
+
u = [6, d], r = 0;
|
|
2839
2839
|
} finally {
|
|
2840
2840
|
n = o = 0;
|
|
2841
2841
|
}
|
|
@@ -2855,7 +2855,7 @@ var Le = (
|
|
|
2855
2855
|
function kr(i, e) {
|
|
2856
2856
|
return i > e ? 1 : i < e ? -1 : 0;
|
|
2857
2857
|
}
|
|
2858
|
-
function
|
|
2858
|
+
function be(i, e, t) {
|
|
2859
2859
|
for (var n = new Le(null, null), r = n, o = n; ; ) {
|
|
2860
2860
|
var l = t(i, e.key);
|
|
2861
2861
|
if (l < 0) {
|
|
@@ -2885,21 +2885,21 @@ function xt(i, e, t, n) {
|
|
|
2885
2885
|
var r = new Le(i, e);
|
|
2886
2886
|
if (t === null)
|
|
2887
2887
|
return r.left = r.right = null, r;
|
|
2888
|
-
t =
|
|
2888
|
+
t = be(i, t, n);
|
|
2889
2889
|
var o = n(i, t.key);
|
|
2890
2890
|
return o < 0 ? (r.left = t.left, r.right = t, t.left = null) : o >= 0 && (r.right = t.right, r.left = t, t.right = null), r;
|
|
2891
2891
|
}
|
|
2892
|
-
function
|
|
2892
|
+
function fi(i, e, t) {
|
|
2893
2893
|
var n = null, r = null;
|
|
2894
2894
|
if (e) {
|
|
2895
|
-
e =
|
|
2895
|
+
e = be(i, e, t);
|
|
2896
2896
|
var o = t(e.key, i);
|
|
2897
2897
|
o === 0 ? (n = e.left, r = e.right) : o < 0 ? (r = e.right, e.right = null, n = e) : (n = e.left, e.left = null, r = e);
|
|
2898
2898
|
}
|
|
2899
2899
|
return { left: n, right: r };
|
|
2900
2900
|
}
|
|
2901
2901
|
function Nr(i, e, t) {
|
|
2902
|
-
return e === null ? i : (i === null || (e =
|
|
2902
|
+
return e === null ? i : (i === null || (e = be(i.key, e, t), e.left = i), e);
|
|
2903
2903
|
}
|
|
2904
2904
|
function Tt(i, e, t, n, r) {
|
|
2905
2905
|
if (i) {
|
|
@@ -2920,7 +2920,7 @@ var Ft = (
|
|
|
2920
2920
|
}, i.prototype.add = function(e, t) {
|
|
2921
2921
|
var n = new Le(e, t);
|
|
2922
2922
|
this._root === null && (n.left = n.right = null, this._size++, this._root = n);
|
|
2923
|
-
var r = this._comparator, o =
|
|
2923
|
+
var r = this._comparator, o = be(e, this._root, r), l = r(e, o.key);
|
|
2924
2924
|
return l === 0 ? this._root = o : (l < 0 ? (n.left = o.left, n.right = o, o.left = null) : l > 0 && (n.right = o.right, n.left = o, o.right = null), this._size++, this._root = n), this._root;
|
|
2925
2925
|
}, i.prototype.remove = function(e) {
|
|
2926
2926
|
this._root = this._remove(e, this._root, this._comparator);
|
|
@@ -2928,15 +2928,15 @@ var Ft = (
|
|
|
2928
2928
|
var r;
|
|
2929
2929
|
if (t === null)
|
|
2930
2930
|
return null;
|
|
2931
|
-
t =
|
|
2931
|
+
t = be(e, t, n);
|
|
2932
2932
|
var o = n(e, t.key);
|
|
2933
|
-
return o === 0 ? (t.left === null ? r = t.right : (r =
|
|
2933
|
+
return o === 0 ? (t.left === null ? r = t.right : (r = be(e, t.left, n), r.right = t.right), this._size--, r) : t;
|
|
2934
2934
|
}, i.prototype.pop = function() {
|
|
2935
2935
|
var e = this._root;
|
|
2936
2936
|
if (e) {
|
|
2937
2937
|
for (; e.left; )
|
|
2938
2938
|
e = e.left;
|
|
2939
|
-
return this._root =
|
|
2939
|
+
return this._root = be(e.key, this._root, this._comparator), this._root = this._remove(e.key, this._root, this._comparator), { key: e.key, data: e.data };
|
|
2940
2940
|
}
|
|
2941
2941
|
return null;
|
|
2942
2942
|
}, i.prototype.findStatic = function(e) {
|
|
@@ -2948,7 +2948,7 @@ var Ft = (
|
|
|
2948
2948
|
}
|
|
2949
2949
|
return null;
|
|
2950
2950
|
}, i.prototype.find = function(e) {
|
|
2951
|
-
return this._root && (this._root =
|
|
2951
|
+
return this._root && (this._root = be(e, this._root, this._comparator), this._comparator(e, this._root.key) !== 0) ? null : this._root;
|
|
2952
2952
|
}, i.prototype.contains = function(e) {
|
|
2953
2953
|
for (var t = this._root, n = this._comparator; t; ) {
|
|
2954
2954
|
var r = n(e, t.key);
|
|
@@ -3075,10 +3075,10 @@ var Ft = (
|
|
|
3075
3075
|
return t.push(n);
|
|
3076
3076
|
}, e), t.join("");
|
|
3077
3077
|
}, i.prototype.update = function(e, t, n) {
|
|
3078
|
-
var r = this._comparator, o =
|
|
3078
|
+
var r = this._comparator, o = fi(e, this._root, r), l = o.left, s = o.right;
|
|
3079
3079
|
r(e, t) < 0 ? s = xt(t, n, s, r) : l = xt(t, n, l, r), this._root = Nr(l, s, r);
|
|
3080
3080
|
}, i.prototype.split = function(e) {
|
|
3081
|
-
return
|
|
3081
|
+
return fi(e, this._root, this._comparator);
|
|
3082
3082
|
}, i.prototype[Symbol.iterator] = function() {
|
|
3083
3083
|
var e, t, n;
|
|
3084
3084
|
return Cr(this, function(r) {
|
|
@@ -3153,19 +3153,19 @@ function Ot(i, e, t, n, r) {
|
|
|
3153
3153
|
Ot(i, e, t, s, r), Ot(i, e, s + 1, n, r);
|
|
3154
3154
|
}
|
|
3155
3155
|
}
|
|
3156
|
-
const he = 11102230246251565e-32,
|
|
3156
|
+
const he = 11102230246251565e-32, V = 134217729, Ir = (3 + 8 * he) * he;
|
|
3157
3157
|
function Mt(i, e, t, n, r) {
|
|
3158
|
-
let o, l, s, c, u = e[0],
|
|
3159
|
-
|
|
3160
|
-
let
|
|
3158
|
+
let o, l, s, c, u = e[0], d = n[0], a = 0, f = 0;
|
|
3159
|
+
d > u == d > -u ? (o = u, u = e[++a]) : (o = d, d = n[++f]);
|
|
3160
|
+
let h = 0;
|
|
3161
3161
|
if (a < i && f < t)
|
|
3162
|
-
for (
|
|
3163
|
-
|
|
3162
|
+
for (d > u == d > -u ? (l = u + o, s = o - (l - u), u = e[++a]) : (l = d + o, s = o - (l - d), d = n[++f]), o = l, s !== 0 && (r[h++] = s); a < i && f < t; )
|
|
3163
|
+
d > u == d > -u ? (l = o + u, c = l - o, s = o - (l - c) + (u - c), u = e[++a]) : (l = o + d, c = l - o, s = o - (l - c) + (d - c), d = n[++f]), o = l, s !== 0 && (r[h++] = s);
|
|
3164
3164
|
for (; a < i; )
|
|
3165
|
-
l = o + u, c = l - o, s = o - (l - c) + (u - c), u = e[++a], o = l, s !== 0 && (r[
|
|
3165
|
+
l = o + u, c = l - o, s = o - (l - c) + (u - c), u = e[++a], o = l, s !== 0 && (r[h++] = s);
|
|
3166
3166
|
for (; f < t; )
|
|
3167
|
-
l = o +
|
|
3168
|
-
return (o !== 0 ||
|
|
3167
|
+
l = o + d, c = l - o, s = o - (l - c) + (d - c), d = n[++f], o = l, s !== 0 && (r[h++] = s);
|
|
3168
|
+
return (o !== 0 || h === 0) && (r[h++] = o), h;
|
|
3169
3169
|
}
|
|
3170
3170
|
function Or(i, e) {
|
|
3171
3171
|
let t = e[0];
|
|
@@ -3175,26 +3175,26 @@ function Or(i, e) {
|
|
|
3175
3175
|
function Ye(i) {
|
|
3176
3176
|
return new Float64Array(i);
|
|
3177
3177
|
}
|
|
3178
|
-
const
|
|
3179
|
-
function
|
|
3180
|
-
let s, c, u,
|
|
3181
|
-
const C = i - r, I = t - r,
|
|
3182
|
-
|
|
3183
|
-
let
|
|
3184
|
-
if (
|
|
3185
|
-
|
|
3186
|
-
const
|
|
3187
|
-
|
|
3188
|
-
const
|
|
3189
|
-
|
|
3190
|
-
const
|
|
3191
|
-
return
|
|
3192
|
-
}
|
|
3193
|
-
function
|
|
3178
|
+
const Ar = (3 + 16 * he) * he, Wr = (2 + 12 * he) * he, zr = (9 + 64 * he) * he * he, Ae = Ye(4), di = Ye(8), hi = Ye(12), gi = Ye(16), K = Ye(4);
|
|
3179
|
+
function Br(i, e, t, n, r, o, l) {
|
|
3180
|
+
let s, c, u, d, a, f, h, g, v, w, p, S, L, E, M, k, b, _;
|
|
3181
|
+
const C = i - r, I = t - r, Q = e - o, O = n - o;
|
|
3182
|
+
E = C * O, f = V * C, h = f - (f - C), g = C - h, f = V * O, v = f - (f - O), w = O - v, M = g * w - (E - h * v - g * v - h * w), k = Q * I, f = V * Q, h = f - (f - Q), g = Q - h, f = V * I, v = f - (f - I), w = I - v, b = g * w - (k - h * v - g * v - h * w), p = M - b, a = M - p, Ae[0] = M - (p + a) + (a - b), S = E + p, a = S - E, L = E - (S - a) + (p - a), p = L - k, a = L - p, Ae[1] = L - (p + a) + (a - k), _ = S + p, a = _ - S, Ae[2] = S - (_ - a) + (p - a), Ae[3] = _;
|
|
3183
|
+
let X = Or(4, Ae), x = Wr * l;
|
|
3184
|
+
if (X >= x || -X >= x || (a = i - C, s = i - (C + a) + (a - r), a = t - I, u = t - (I + a) + (a - r), a = e - Q, c = e - (Q + a) + (a - o), a = n - O, d = n - (O + a) + (a - o), s === 0 && c === 0 && u === 0 && d === 0) || (x = zr * l + Ir * Math.abs(X), X += C * d + O * s - (Q * u + I * c), X >= x || -X >= x)) return X;
|
|
3185
|
+
E = s * O, f = V * s, h = f - (f - s), g = s - h, f = V * O, v = f - (f - O), w = O - v, M = g * w - (E - h * v - g * v - h * w), k = c * I, f = V * c, h = f - (f - c), g = c - h, f = V * I, v = f - (f - I), w = I - v, b = g * w - (k - h * v - g * v - h * w), p = M - b, a = M - p, K[0] = M - (p + a) + (a - b), S = E + p, a = S - E, L = E - (S - a) + (p - a), p = L - k, a = L - p, K[1] = L - (p + a) + (a - k), _ = S + p, a = _ - S, K[2] = S - (_ - a) + (p - a), K[3] = _;
|
|
3186
|
+
const W = Mt(4, Ae, 4, K, di);
|
|
3187
|
+
E = C * d, f = V * C, h = f - (f - C), g = C - h, f = V * d, v = f - (f - d), w = d - v, M = g * w - (E - h * v - g * v - h * w), k = Q * u, f = V * Q, h = f - (f - Q), g = Q - h, f = V * u, v = f - (f - u), w = u - v, b = g * w - (k - h * v - g * v - h * w), p = M - b, a = M - p, K[0] = M - (p + a) + (a - b), S = E + p, a = S - E, L = E - (S - a) + (p - a), p = L - k, a = L - p, K[1] = L - (p + a) + (a - k), _ = S + p, a = _ - S, K[2] = S - (_ - a) + (p - a), K[3] = _;
|
|
3188
|
+
const oe = Mt(W, di, 4, K, hi);
|
|
3189
|
+
E = s * d, f = V * s, h = f - (f - s), g = s - h, f = V * d, v = f - (f - d), w = d - v, M = g * w - (E - h * v - g * v - h * w), k = c * u, f = V * c, h = f - (f - c), g = c - h, f = V * u, v = f - (f - u), w = u - v, b = g * w - (k - h * v - g * v - h * w), p = M - b, a = M - p, K[0] = M - (p + a) + (a - b), S = E + p, a = S - E, L = E - (S - a) + (p - a), p = L - k, a = L - p, K[1] = L - (p + a) + (a - k), _ = S + p, a = _ - S, K[2] = S - (_ - a) + (p - a), K[3] = _;
|
|
3190
|
+
const de = Mt(oe, hi, 4, K, gi);
|
|
3191
|
+
return gi[de - 1];
|
|
3192
|
+
}
|
|
3193
|
+
function Dr(i, e, t, n, r, o) {
|
|
3194
3194
|
const l = (e - o) * (t - r), s = (i - r) * (n - o), c = l - s, u = Math.abs(l + s);
|
|
3195
|
-
return Math.abs(c) >=
|
|
3195
|
+
return Math.abs(c) >= Ar * u ? c : -Br(i, e, t, n, r, o, u);
|
|
3196
3196
|
}
|
|
3197
|
-
const
|
|
3197
|
+
const Ue = (i, e) => i.ll.x <= e.x && e.x <= i.ur.x && i.ll.y <= e.y && e.y <= i.ur.y, At = (i, e) => {
|
|
3198
3198
|
if (e.ur.x < i.ll.x || i.ur.x < e.ll.x || e.ur.y < i.ll.y || i.ur.y < e.ll.y) return null;
|
|
3199
3199
|
const t = i.ll.x < e.ll.x ? e.ll.x : i.ll.x, n = i.ur.x < e.ur.x ? i.ur.x : e.ur.x, r = i.ll.y < e.ll.y ? e.ll.y : i.ll.y, o = i.ur.y < e.ur.y ? i.ur.y : e.ur.y;
|
|
3200
3200
|
return {
|
|
@@ -3208,20 +3208,20 @@ const Ge = (i, e) => i.ll.x <= e.x && e.x <= i.ur.x && i.ll.y <= e.y && e.y <= i
|
|
|
3208
3208
|
}
|
|
3209
3209
|
};
|
|
3210
3210
|
};
|
|
3211
|
-
let
|
|
3212
|
-
|
|
3213
|
-
const Fr =
|
|
3214
|
-
if (-
|
|
3211
|
+
let ve = Number.EPSILON;
|
|
3212
|
+
ve === void 0 && (ve = Math.pow(2, -52));
|
|
3213
|
+
const Fr = ve * ve, mi = (i, e) => {
|
|
3214
|
+
if (-ve < i && i < ve && -ve < e && e < ve)
|
|
3215
3215
|
return 0;
|
|
3216
3216
|
const t = i - e;
|
|
3217
3217
|
return t * t < Fr * i * e ? 0 : i < e ? -1 : 1;
|
|
3218
3218
|
};
|
|
3219
|
-
class
|
|
3219
|
+
class Ur {
|
|
3220
3220
|
constructor() {
|
|
3221
3221
|
this.reset();
|
|
3222
3222
|
}
|
|
3223
3223
|
reset() {
|
|
3224
|
-
this.xRounder = new
|
|
3224
|
+
this.xRounder = new yi(), this.yRounder = new yi();
|
|
3225
3225
|
}
|
|
3226
3226
|
round(e, t) {
|
|
3227
3227
|
return {
|
|
@@ -3230,7 +3230,7 @@ class Gr {
|
|
|
3230
3230
|
};
|
|
3231
3231
|
}
|
|
3232
3232
|
}
|
|
3233
|
-
class
|
|
3233
|
+
class yi {
|
|
3234
3234
|
constructor() {
|
|
3235
3235
|
this.tree = new Ft(), this.round(0);
|
|
3236
3236
|
}
|
|
@@ -3243,16 +3243,16 @@ class pi {
|
|
|
3243
3243
|
// angle for t-intersections).
|
|
3244
3244
|
round(e) {
|
|
3245
3245
|
const t = this.tree.add(e), n = this.tree.prev(t);
|
|
3246
|
-
if (n !== null &&
|
|
3246
|
+
if (n !== null && mi(t.key, n.key) === 0)
|
|
3247
3247
|
return this.tree.remove(e), n.key;
|
|
3248
3248
|
const r = this.tree.next(t);
|
|
3249
|
-
return r !== null &&
|
|
3249
|
+
return r !== null && mi(t.key, r.key) === 0 ? (this.tree.remove(e), r.key) : e;
|
|
3250
3250
|
}
|
|
3251
3251
|
}
|
|
3252
|
-
const Ve = new
|
|
3253
|
-
const n =
|
|
3252
|
+
const Ve = new Ur(), st = (i, e) => i.x * e.y - i.y * e.x, Fi = (i, e) => i.x * e.x + i.y * e.y, pi = (i, e, t) => {
|
|
3253
|
+
const n = Dr(i.x, i.y, e.x, e.y, t.x, t.y);
|
|
3254
3254
|
return n > 0 ? -1 : n < 0 ? 1 : 0;
|
|
3255
|
-
},
|
|
3255
|
+
}, lt = (i) => Math.sqrt(Fi(i, i)), Gr = (i, e, t) => {
|
|
3256
3256
|
const n = {
|
|
3257
3257
|
x: e.x - i.x,
|
|
3258
3258
|
y: e.y - i.y
|
|
@@ -3260,7 +3260,7 @@ const Ve = new Gr(), lt = (i, e) => i.x * e.y - i.y * e.x, Gi = (i, e) => i.x *
|
|
|
3260
3260
|
x: t.x - i.x,
|
|
3261
3261
|
y: t.y - i.y
|
|
3262
3262
|
};
|
|
3263
|
-
return
|
|
3263
|
+
return st(r, n) / lt(r) / lt(n);
|
|
3264
3264
|
}, jr = (i, e, t) => {
|
|
3265
3265
|
const n = {
|
|
3266
3266
|
x: e.x - i.x,
|
|
@@ -3269,27 +3269,27 @@ const Ve = new Gr(), lt = (i, e) => i.x * e.y - i.y * e.x, Gi = (i, e) => i.x *
|
|
|
3269
3269
|
x: t.x - i.x,
|
|
3270
3270
|
y: t.y - i.y
|
|
3271
3271
|
};
|
|
3272
|
-
return
|
|
3272
|
+
return Fi(r, n) / lt(r) / lt(n);
|
|
3273
3273
|
}, bi = (i, e, t) => e.y === 0 ? null : {
|
|
3274
3274
|
x: i.x + e.x / e.y * (t - i.y),
|
|
3275
3275
|
y: t
|
|
3276
|
-
},
|
|
3276
|
+
}, vi = (i, e, t) => e.x === 0 ? null : {
|
|
3277
3277
|
x: t,
|
|
3278
3278
|
y: i.y + e.y / e.x * (t - i.x)
|
|
3279
|
-
},
|
|
3280
|
-
if (e.x === 0) return
|
|
3281
|
-
if (n.x === 0) return
|
|
3279
|
+
}, qr = (i, e, t, n) => {
|
|
3280
|
+
if (e.x === 0) return vi(t, n, i.x);
|
|
3281
|
+
if (n.x === 0) return vi(i, e, t.x);
|
|
3282
3282
|
if (e.y === 0) return bi(t, n, i.y);
|
|
3283
3283
|
if (n.y === 0) return bi(i, e, t.y);
|
|
3284
|
-
const r =
|
|
3284
|
+
const r = st(e, n);
|
|
3285
3285
|
if (r == 0) return null;
|
|
3286
3286
|
const o = {
|
|
3287
3287
|
x: t.x - i.x,
|
|
3288
3288
|
y: t.y - i.y
|
|
3289
|
-
}, l =
|
|
3289
|
+
}, l = st(o, e) / r, s = st(o, n) / r, c = i.x + s * e.x, u = t.x + l * n.x, d = i.y + s * e.y, a = t.y + l * n.y, f = (c + u) / 2, h = (d + a) / 2;
|
|
3290
3290
|
return {
|
|
3291
3291
|
x: f,
|
|
3292
|
-
y:
|
|
3292
|
+
y: h
|
|
3293
3293
|
};
|
|
3294
3294
|
};
|
|
3295
3295
|
class ne {
|
|
@@ -3351,7 +3351,7 @@ class ne {
|
|
|
3351
3351
|
const t = /* @__PURE__ */ new Map(), n = (r) => {
|
|
3352
3352
|
const o = r.otherSE;
|
|
3353
3353
|
t.set(r, {
|
|
3354
|
-
sine:
|
|
3354
|
+
sine: Gr(this.point, e.point, o.point),
|
|
3355
3355
|
cosine: jr(this.point, e.point, o.point)
|
|
3356
3356
|
});
|
|
3357
3357
|
};
|
|
@@ -3368,7 +3368,7 @@ class ne {
|
|
|
3368
3368
|
};
|
|
3369
3369
|
}
|
|
3370
3370
|
}
|
|
3371
|
-
let
|
|
3371
|
+
let Zr = 0;
|
|
3372
3372
|
class we {
|
|
3373
3373
|
/* This compare() function is for ordering segments in the sweep
|
|
3374
3374
|
* line tree, and does so according to the following criteria:
|
|
@@ -3387,7 +3387,7 @@ class we {
|
|
|
3387
3387
|
const n = e.leftSE.point.x, r = t.leftSE.point.x, o = e.rightSE.point.x, l = t.rightSE.point.x;
|
|
3388
3388
|
if (l < n) return 1;
|
|
3389
3389
|
if (o < r) return -1;
|
|
3390
|
-
const s = e.leftSE.point.y, c = t.leftSE.point.y, u = e.rightSE.point.y,
|
|
3390
|
+
const s = e.leftSE.point.y, c = t.leftSE.point.y, u = e.rightSE.point.y, d = t.rightSE.point.y;
|
|
3391
3391
|
if (n < r) {
|
|
3392
3392
|
if (c < s && c < u) return 1;
|
|
3393
3393
|
if (c > s && c > u) return -1;
|
|
@@ -3398,8 +3398,8 @@ class we {
|
|
|
3398
3398
|
return f !== 0 ? f : -1;
|
|
3399
3399
|
}
|
|
3400
3400
|
if (n > r) {
|
|
3401
|
-
if (s < c && s <
|
|
3402
|
-
if (s > c && s >
|
|
3401
|
+
if (s < c && s < d) return -1;
|
|
3402
|
+
if (s > c && s > d) return 1;
|
|
3403
3403
|
const a = t.comparePoint(e.leftSE.point);
|
|
3404
3404
|
if (a !== 0) return a;
|
|
3405
3405
|
const f = e.comparePoint(t.rightSE.point);
|
|
@@ -3417,16 +3417,16 @@ class we {
|
|
|
3417
3417
|
if (a > 0) return -1;
|
|
3418
3418
|
}
|
|
3419
3419
|
if (o !== l) {
|
|
3420
|
-
const a = u - s, f = o - n,
|
|
3421
|
-
if (a > f &&
|
|
3422
|
-
if (a < f &&
|
|
3420
|
+
const a = u - s, f = o - n, h = d - c, g = l - r;
|
|
3421
|
+
if (a > f && h < g) return 1;
|
|
3422
|
+
if (a < f && h > g) return -1;
|
|
3423
3423
|
}
|
|
3424
|
-
return o > l ? 1 : o < l || u <
|
|
3424
|
+
return o > l ? 1 : o < l || u < d ? -1 : u > d ? 1 : e.id < t.id ? -1 : e.id > t.id ? 1 : 0;
|
|
3425
3425
|
}
|
|
3426
3426
|
/* Warning: a reference to ringWindings input will be stored,
|
|
3427
3427
|
* and possibly will be later modified */
|
|
3428
3428
|
constructor(e, t, n, r) {
|
|
3429
|
-
this.id = ++
|
|
3429
|
+
this.id = ++Zr, this.leftSE = e, e.segment = this, e.otherSE = t, this.rightSE = t, t.segment = this, t.otherSE = e, this.rings = n, this.windings = r;
|
|
3430
3430
|
}
|
|
3431
3431
|
static fromRing(e, t, n) {
|
|
3432
3432
|
let r, o, l;
|
|
@@ -3505,20 +3505,20 @@ class we {
|
|
|
3505
3505
|
* Else, return null.
|
|
3506
3506
|
*/
|
|
3507
3507
|
getIntersection(e) {
|
|
3508
|
-
const t = this.bbox(), n = e.bbox(), r =
|
|
3508
|
+
const t = this.bbox(), n = e.bbox(), r = At(t, n);
|
|
3509
3509
|
if (r === null) return null;
|
|
3510
|
-
const o = this.leftSE.point, l = this.rightSE.point, s = e.leftSE.point, c = e.rightSE.point, u =
|
|
3511
|
-
if (
|
|
3510
|
+
const o = this.leftSE.point, l = this.rightSE.point, s = e.leftSE.point, c = e.rightSE.point, u = Ue(t, s) && this.comparePoint(s) === 0, d = Ue(n, o) && e.comparePoint(o) === 0, a = Ue(t, c) && this.comparePoint(c) === 0, f = Ue(n, l) && e.comparePoint(l) === 0;
|
|
3511
|
+
if (d && u)
|
|
3512
3512
|
return f && !a ? l : !f && a ? c : null;
|
|
3513
|
-
if (
|
|
3513
|
+
if (d)
|
|
3514
3514
|
return a && o.x === c.x && o.y === c.y ? null : o;
|
|
3515
3515
|
if (u)
|
|
3516
3516
|
return f && l.x === s.x && l.y === s.y ? null : s;
|
|
3517
3517
|
if (f && a) return null;
|
|
3518
3518
|
if (f) return l;
|
|
3519
3519
|
if (a) return c;
|
|
3520
|
-
const
|
|
3521
|
-
return
|
|
3520
|
+
const h = qr(o, this.vector(), s, e.vector());
|
|
3521
|
+
return h === null || !Ue(r, h) ? null : Ve.round(h.x, h.y);
|
|
3522
3522
|
}
|
|
3523
3523
|
/**
|
|
3524
3524
|
* Split the given segment into multiple segments on the given points.
|
|
@@ -3595,17 +3595,17 @@ class we {
|
|
|
3595
3595
|
};
|
|
3596
3596
|
const t = this._afterState.rings, n = this._afterState.windings, r = this._afterState.multiPolys;
|
|
3597
3597
|
for (let s = 0, c = this.rings.length; s < c; s++) {
|
|
3598
|
-
const u = this.rings[s],
|
|
3599
|
-
a === -1 ? (t.push(u), n.push(
|
|
3598
|
+
const u = this.rings[s], d = this.windings[s], a = t.indexOf(u);
|
|
3599
|
+
a === -1 ? (t.push(u), n.push(d)) : n[a] += d;
|
|
3600
3600
|
}
|
|
3601
3601
|
const o = [], l = [];
|
|
3602
3602
|
for (let s = 0, c = t.length; s < c; s++) {
|
|
3603
3603
|
if (n[s] === 0) continue;
|
|
3604
|
-
const u = t[s],
|
|
3605
|
-
if (l.indexOf(
|
|
3606
|
-
if (u.isExterior) o.push(
|
|
3604
|
+
const u = t[s], d = u.poly;
|
|
3605
|
+
if (l.indexOf(d) === -1)
|
|
3606
|
+
if (u.isExterior) o.push(d);
|
|
3607
3607
|
else {
|
|
3608
|
-
l.indexOf(
|
|
3608
|
+
l.indexOf(d) === -1 && l.push(d);
|
|
3609
3609
|
const a = o.indexOf(u.poly);
|
|
3610
3610
|
a !== -1 && o.splice(a, 1);
|
|
3611
3611
|
}
|
|
@@ -3621,7 +3621,7 @@ class we {
|
|
|
3621
3621
|
if (this.consumedBy) return !1;
|
|
3622
3622
|
if (this._isInResult !== void 0) return this._isInResult;
|
|
3623
3623
|
const e = this.beforeState().multiPolys, t = this.afterState().multiPolys;
|
|
3624
|
-
switch (
|
|
3624
|
+
switch (le.type) {
|
|
3625
3625
|
case "union": {
|
|
3626
3626
|
const n = e.length === 0, r = t.length === 0;
|
|
3627
3627
|
this._isInResult = n !== r;
|
|
@@ -3629,7 +3629,7 @@ class we {
|
|
|
3629
3629
|
}
|
|
3630
3630
|
case "intersection": {
|
|
3631
3631
|
let n, r;
|
|
3632
|
-
e.length < t.length ? (n = e.length, r = t.length) : (n = t.length, r = e.length), this._isInResult = r ===
|
|
3632
|
+
e.length < t.length ? (n = e.length, r = t.length) : (n = t.length, r = e.length), this._isInResult = r === le.numMultiPolys && n < r;
|
|
3633
3633
|
break;
|
|
3634
3634
|
}
|
|
3635
3635
|
case "xor": {
|
|
@@ -3643,12 +3643,12 @@ class we {
|
|
|
3643
3643
|
break;
|
|
3644
3644
|
}
|
|
3645
3645
|
default:
|
|
3646
|
-
throw new Error(`Unrecognized operation type found ${
|
|
3646
|
+
throw new Error(`Unrecognized operation type found ${le.type}`);
|
|
3647
3647
|
}
|
|
3648
3648
|
return this._isInResult;
|
|
3649
3649
|
}
|
|
3650
3650
|
}
|
|
3651
|
-
class
|
|
3651
|
+
class wi {
|
|
3652
3652
|
constructor(e, t, n) {
|
|
3653
3653
|
if (!Array.isArray(e) || e.length === 0)
|
|
3654
3654
|
throw new Error("Input geometry is not a valid Polygon or MultiPolygon");
|
|
@@ -3687,7 +3687,7 @@ class Qr {
|
|
|
3687
3687
|
constructor(e, t) {
|
|
3688
3688
|
if (!Array.isArray(e))
|
|
3689
3689
|
throw new Error("Input geometry is not a valid Polygon or MultiPolygon");
|
|
3690
|
-
this.exteriorRing = new
|
|
3690
|
+
this.exteriorRing = new wi(e[0], this, !0), this.bbox = {
|
|
3691
3691
|
ll: {
|
|
3692
3692
|
x: this.exteriorRing.bbox.ll.x,
|
|
3693
3693
|
y: this.exteriorRing.bbox.ll.y
|
|
@@ -3698,7 +3698,7 @@ class Qr {
|
|
|
3698
3698
|
}
|
|
3699
3699
|
}, this.interiorRings = [];
|
|
3700
3700
|
for (let n = 1, r = e.length; n < r; n++) {
|
|
3701
|
-
const o = new
|
|
3701
|
+
const o = new wi(e[n], this, !1);
|
|
3702
3702
|
o.bbox.ll.x < this.bbox.ll.x && (this.bbox.ll.x = o.bbox.ll.x), o.bbox.ll.y < this.bbox.ll.y && (this.bbox.ll.y = o.bbox.ll.y), o.bbox.ur.x > this.bbox.ur.x && (this.bbox.ur.x = o.bbox.ur.x), o.bbox.ur.y > this.bbox.ur.y && (this.bbox.ur.y = o.bbox.ur.y), this.interiorRings.push(o);
|
|
3703
3703
|
}
|
|
3704
3704
|
this.multiPoly = t;
|
|
@@ -3713,7 +3713,7 @@ class Qr {
|
|
|
3713
3713
|
return e;
|
|
3714
3714
|
}
|
|
3715
3715
|
}
|
|
3716
|
-
class
|
|
3716
|
+
class _i {
|
|
3717
3717
|
constructor(e, t) {
|
|
3718
3718
|
if (!Array.isArray(e))
|
|
3719
3719
|
throw new Error("Input geometry is not a valid Polygon or MultiPolygon");
|
|
@@ -3747,7 +3747,7 @@ class Ei {
|
|
|
3747
3747
|
return e;
|
|
3748
3748
|
}
|
|
3749
3749
|
}
|
|
3750
|
-
class
|
|
3750
|
+
class ut {
|
|
3751
3751
|
/* Given the segments from the sweep line pass, compute & return a series
|
|
3752
3752
|
* of closed rings from all the segments marked to be part of the result */
|
|
3753
3753
|
static factory(e) {
|
|
@@ -3756,38 +3756,38 @@ class at {
|
|
|
3756
3756
|
const o = e[n];
|
|
3757
3757
|
if (!o.isInResult() || o.ringOut) continue;
|
|
3758
3758
|
let l = null, s = o.leftSE, c = o.rightSE;
|
|
3759
|
-
const u = [s],
|
|
3760
|
-
for (; l = s, s = c, u.push(s), s.point !==
|
|
3759
|
+
const u = [s], d = s.point, a = [];
|
|
3760
|
+
for (; l = s, s = c, u.push(s), s.point !== d; )
|
|
3761
3761
|
for (; ; ) {
|
|
3762
3762
|
const f = s.getAvailableLinkedEvents();
|
|
3763
3763
|
if (f.length === 0) {
|
|
3764
|
-
const v = u[0].point,
|
|
3765
|
-
throw new Error(`Unable to complete output ring starting at [${v.x}, ${v.y}]. Last matching segment found ends at [${
|
|
3764
|
+
const v = u[0].point, w = u[u.length - 1].point;
|
|
3765
|
+
throw new Error(`Unable to complete output ring starting at [${v.x}, ${v.y}]. Last matching segment found ends at [${w.x}, ${w.y}].`);
|
|
3766
3766
|
}
|
|
3767
3767
|
if (f.length === 1) {
|
|
3768
3768
|
c = f[0].otherSE;
|
|
3769
3769
|
break;
|
|
3770
3770
|
}
|
|
3771
|
-
let
|
|
3772
|
-
for (let v = 0,
|
|
3771
|
+
let h = null;
|
|
3772
|
+
for (let v = 0, w = a.length; v < w; v++)
|
|
3773
3773
|
if (a[v].point === s.point) {
|
|
3774
|
-
|
|
3774
|
+
h = v;
|
|
3775
3775
|
break;
|
|
3776
3776
|
}
|
|
3777
|
-
if (
|
|
3778
|
-
const v = a.splice(
|
|
3779
|
-
|
|
3777
|
+
if (h !== null) {
|
|
3778
|
+
const v = a.splice(h)[0], w = u.splice(v.index);
|
|
3779
|
+
w.unshift(w[0].otherSE), t.push(new ut(w.reverse()));
|
|
3780
3780
|
continue;
|
|
3781
3781
|
}
|
|
3782
3782
|
a.push({
|
|
3783
3783
|
index: u.length,
|
|
3784
3784
|
point: s.point
|
|
3785
3785
|
});
|
|
3786
|
-
const
|
|
3787
|
-
c = f.sort(
|
|
3786
|
+
const g = s.getLeftmostComparator(l);
|
|
3787
|
+
c = f.sort(g)[0].otherSE;
|
|
3788
3788
|
break;
|
|
3789
3789
|
}
|
|
3790
|
-
t.push(new
|
|
3790
|
+
t.push(new ut(u));
|
|
3791
3791
|
}
|
|
3792
3792
|
return t;
|
|
3793
3793
|
}
|
|
@@ -3800,13 +3800,13 @@ class at {
|
|
|
3800
3800
|
getGeom() {
|
|
3801
3801
|
let e = this.events[0].point;
|
|
3802
3802
|
const t = [e];
|
|
3803
|
-
for (let u = 1,
|
|
3803
|
+
for (let u = 1, d = this.events.length - 1; u < d; u++) {
|
|
3804
3804
|
const a = this.events[u].point, f = this.events[u + 1].point;
|
|
3805
|
-
|
|
3805
|
+
pi(a, e, f) !== 0 && (t.push(a), e = a);
|
|
3806
3806
|
}
|
|
3807
3807
|
if (t.length === 1) return null;
|
|
3808
3808
|
const n = t[0], r = t[1];
|
|
3809
|
-
|
|
3809
|
+
pi(n, e, r) === 0 && t.shift(), t.push(t[0]);
|
|
3810
3810
|
const o = this.isExteriorRing() ? 1 : -1, l = this.isExteriorRing() ? 0 : t.length - 1, s = this.isExteriorRing() ? t.length : -1, c = [];
|
|
3811
3811
|
for (let u = l; u != s; u += o) c.push([t[u].x, t[u].y]);
|
|
3812
3812
|
return c;
|
|
@@ -3838,7 +3838,7 @@ class at {
|
|
|
3838
3838
|
}
|
|
3839
3839
|
}
|
|
3840
3840
|
}
|
|
3841
|
-
class
|
|
3841
|
+
class Ei {
|
|
3842
3842
|
constructor(e) {
|
|
3843
3843
|
this.exteriorRing = e, e.poly = this, this.interiorRings = [];
|
|
3844
3844
|
}
|
|
@@ -3872,10 +3872,10 @@ class Hr {
|
|
|
3872
3872
|
for (let n = 0, r = e.length; n < r; n++) {
|
|
3873
3873
|
const o = e[n];
|
|
3874
3874
|
if (!o.poly)
|
|
3875
|
-
if (o.isExteriorRing()) t.push(new
|
|
3875
|
+
if (o.isExteriorRing()) t.push(new Ei(o));
|
|
3876
3876
|
else {
|
|
3877
3877
|
const l = o.enclosingRing();
|
|
3878
|
-
l.poly || t.push(new
|
|
3878
|
+
l.poly || t.push(new Ei(l)), l.poly.addInterior(o);
|
|
3879
3879
|
}
|
|
3880
3880
|
}
|
|
3881
3881
|
return t;
|
|
@@ -3903,25 +3903,25 @@ class Vr {
|
|
|
3903
3903
|
const a = s.getIntersection(t);
|
|
3904
3904
|
if (a !== null && (t.isAnEndpoint(a) || (u = a), !s.isAnEndpoint(a))) {
|
|
3905
3905
|
const f = this._splitSafely(s, a);
|
|
3906
|
-
for (let
|
|
3907
|
-
n.push(f[
|
|
3906
|
+
for (let h = 0, g = f.length; h < g; h++)
|
|
3907
|
+
n.push(f[h]);
|
|
3908
3908
|
}
|
|
3909
3909
|
}
|
|
3910
|
-
let
|
|
3910
|
+
let d = null;
|
|
3911
3911
|
if (c) {
|
|
3912
3912
|
const a = c.getIntersection(t);
|
|
3913
|
-
if (a !== null && (t.isAnEndpoint(a) || (
|
|
3913
|
+
if (a !== null && (t.isAnEndpoint(a) || (d = a), !c.isAnEndpoint(a))) {
|
|
3914
3914
|
const f = this._splitSafely(c, a);
|
|
3915
|
-
for (let
|
|
3916
|
-
n.push(f[
|
|
3915
|
+
for (let h = 0, g = f.length; h < g; h++)
|
|
3916
|
+
n.push(f[h]);
|
|
3917
3917
|
}
|
|
3918
3918
|
}
|
|
3919
|
-
if (u !== null ||
|
|
3919
|
+
if (u !== null || d !== null) {
|
|
3920
3920
|
let a = null;
|
|
3921
|
-
u === null ? a =
|
|
3921
|
+
u === null ? a = d : d === null ? a = u : a = ne.comparePoints(u, d) <= 0 ? u : d, this.queue.remove(t.rightSE), n.push(t.rightSE);
|
|
3922
3922
|
const f = t.split(a);
|
|
3923
|
-
for (let
|
|
3924
|
-
n.push(f[
|
|
3923
|
+
for (let h = 0, g = f.length; h < g; h++)
|
|
3924
|
+
n.push(f[h]);
|
|
3925
3925
|
}
|
|
3926
3926
|
n.length > 0 ? (this.tree.remove(t), n.push(e)) : (this.segments.push(t), t.prev = s);
|
|
3927
3927
|
} else {
|
|
@@ -3929,14 +3929,14 @@ class Vr {
|
|
|
3929
3929
|
const u = s.getIntersection(c);
|
|
3930
3930
|
if (u !== null) {
|
|
3931
3931
|
if (!s.isAnEndpoint(u)) {
|
|
3932
|
-
const
|
|
3933
|
-
for (let a = 0, f =
|
|
3934
|
-
n.push(
|
|
3932
|
+
const d = this._splitSafely(s, u);
|
|
3933
|
+
for (let a = 0, f = d.length; a < f; a++)
|
|
3934
|
+
n.push(d[a]);
|
|
3935
3935
|
}
|
|
3936
3936
|
if (!c.isAnEndpoint(u)) {
|
|
3937
|
-
const
|
|
3938
|
-
for (let a = 0, f =
|
|
3939
|
-
n.push(
|
|
3937
|
+
const d = this._splitSafely(c, u);
|
|
3938
|
+
for (let a = 0, f = d.length; a < f; a++)
|
|
3939
|
+
n.push(d[a]);
|
|
3940
3940
|
}
|
|
3941
3941
|
}
|
|
3942
3942
|
}
|
|
@@ -3954,30 +3954,30 @@ class Vr {
|
|
|
3954
3954
|
return r.push(n), e.consumedBy === void 0 && this.tree.add(e), r;
|
|
3955
3955
|
}
|
|
3956
3956
|
}
|
|
3957
|
-
const
|
|
3957
|
+
const Li = typeof process < "u" && process.env.POLYGON_CLIPPING_MAX_QUEUE_SIZE || 1e6, Yr = typeof process < "u" && process.env.POLYGON_CLIPPING_MAX_SWEEPLINE_SEGMENTS || 1e6;
|
|
3958
3958
|
class Xr {
|
|
3959
3959
|
run(e, t, n) {
|
|
3960
|
-
|
|
3961
|
-
const r = [new
|
|
3960
|
+
le.type = e, Ve.reset();
|
|
3961
|
+
const r = [new _i(t, !0)];
|
|
3962
3962
|
for (let a = 0, f = n.length; a < f; a++)
|
|
3963
|
-
r.push(new
|
|
3964
|
-
if (
|
|
3963
|
+
r.push(new _i(n[a], !1));
|
|
3964
|
+
if (le.numMultiPolys = r.length, le.type === "difference") {
|
|
3965
3965
|
const a = r[0];
|
|
3966
3966
|
let f = 1;
|
|
3967
3967
|
for (; f < r.length; )
|
|
3968
|
-
|
|
3968
|
+
At(r[f].bbox, a.bbox) !== null ? f++ : r.splice(f, 1);
|
|
3969
3969
|
}
|
|
3970
|
-
if (
|
|
3970
|
+
if (le.type === "intersection")
|
|
3971
3971
|
for (let a = 0, f = r.length; a < f; a++) {
|
|
3972
|
-
const
|
|
3973
|
-
for (let
|
|
3974
|
-
if (
|
|
3972
|
+
const h = r[a];
|
|
3973
|
+
for (let g = a + 1, v = r.length; g < v; g++)
|
|
3974
|
+
if (At(h.bbox, r[g].bbox) === null) return [];
|
|
3975
3975
|
}
|
|
3976
3976
|
const o = new Ft(ne.compare);
|
|
3977
3977
|
for (let a = 0, f = r.length; a < f; a++) {
|
|
3978
|
-
const
|
|
3979
|
-
for (let
|
|
3980
|
-
if (o.insert(
|
|
3978
|
+
const h = r[a].getSweepEvents();
|
|
3979
|
+
for (let g = 0, v = h.length; g < v; g++)
|
|
3980
|
+
if (o.insert(h[g]), o.size > Li)
|
|
3981
3981
|
throw new Error("Infinite loop when putting segment endpoints in a priority queue (queue size too big).");
|
|
3982
3982
|
}
|
|
3983
3983
|
const l = new Vr(o);
|
|
@@ -3985,43 +3985,43 @@ class Xr {
|
|
|
3985
3985
|
for (; c; ) {
|
|
3986
3986
|
const a = c.key;
|
|
3987
3987
|
if (o.size === s) {
|
|
3988
|
-
const
|
|
3989
|
-
throw new Error(`Unable to pop() ${a.isLeft ? "left" : "right"} SweepEvent [${a.point.x}, ${a.point.y}] from segment #${
|
|
3988
|
+
const h = a.segment;
|
|
3989
|
+
throw new Error(`Unable to pop() ${a.isLeft ? "left" : "right"} SweepEvent [${a.point.x}, ${a.point.y}] from segment #${h.id} [${h.leftSE.point.x}, ${h.leftSE.point.y}] -> [${h.rightSE.point.x}, ${h.rightSE.point.y}] from queue.`);
|
|
3990
3990
|
}
|
|
3991
|
-
if (o.size >
|
|
3991
|
+
if (o.size > Li)
|
|
3992
3992
|
throw new Error("Infinite loop when passing sweep line over endpoints (queue size too big).");
|
|
3993
3993
|
if (l.segments.length > Yr)
|
|
3994
3994
|
throw new Error("Infinite loop when passing sweep line over endpoints (too many sweep line segments).");
|
|
3995
3995
|
const f = l.process(a);
|
|
3996
|
-
for (let
|
|
3997
|
-
const v = f[
|
|
3996
|
+
for (let h = 0, g = f.length; h < g; h++) {
|
|
3997
|
+
const v = f[h];
|
|
3998
3998
|
v.consumedBy === void 0 && o.insert(v);
|
|
3999
3999
|
}
|
|
4000
4000
|
s = o.size, c = o.pop();
|
|
4001
4001
|
}
|
|
4002
4002
|
Ve.reset();
|
|
4003
|
-
const u =
|
|
4003
|
+
const u = ut.factory(l.segments);
|
|
4004
4004
|
return new Hr(u).getGeom();
|
|
4005
4005
|
}
|
|
4006
4006
|
}
|
|
4007
|
-
const
|
|
4007
|
+
const le = new Xr(), Kr = function(i) {
|
|
4008
4008
|
for (var e = arguments.length, t = new Array(e > 1 ? e - 1 : 0), n = 1; n < e; n++)
|
|
4009
4009
|
t[n - 1] = arguments[n];
|
|
4010
|
-
return
|
|
4010
|
+
return le.run("union", i, t);
|
|
4011
4011
|
}, Jr = function(i) {
|
|
4012
4012
|
for (var e = arguments.length, t = new Array(e > 1 ? e - 1 : 0), n = 1; n < e; n++)
|
|
4013
4013
|
t[n - 1] = arguments[n];
|
|
4014
|
-
return
|
|
4014
|
+
return le.run("intersection", i, t);
|
|
4015
4015
|
}, $r = function(i) {
|
|
4016
4016
|
for (var e = arguments.length, t = new Array(e > 1 ? e - 1 : 0), n = 1; n < e; n++)
|
|
4017
4017
|
t[n - 1] = arguments[n];
|
|
4018
|
-
return
|
|
4018
|
+
return le.run("xor", i, t);
|
|
4019
4019
|
}, eo = function(i) {
|
|
4020
4020
|
for (var e = arguments.length, t = new Array(e > 1 ? e - 1 : 0), n = 1; n < e; n++)
|
|
4021
4021
|
t[n - 1] = arguments[n];
|
|
4022
|
-
return
|
|
4022
|
+
return le.run("difference", i, t);
|
|
4023
4023
|
};
|
|
4024
|
-
var
|
|
4024
|
+
var Ui = {
|
|
4025
4025
|
union: Kr,
|
|
4026
4026
|
intersection: Jr,
|
|
4027
4027
|
xor: $r,
|
|
@@ -4029,22 +4029,22 @@ var zi = {
|
|
|
4029
4029
|
};
|
|
4030
4030
|
function to(i, e = {}) {
|
|
4031
4031
|
const t = [];
|
|
4032
|
-
if (
|
|
4032
|
+
if (Bt(i, (r) => {
|
|
4033
4033
|
t.push(r.coordinates);
|
|
4034
4034
|
}), t.length < 2)
|
|
4035
4035
|
throw new Error("Must have at least 2 geometries");
|
|
4036
|
-
const n =
|
|
4037
|
-
return n.length === 0 ? null : n.length === 1 ?
|
|
4036
|
+
const n = Ui.union(t[0], ...t.slice(1));
|
|
4037
|
+
return n.length === 0 ? null : n.length === 1 ? zt(n[0], e.properties) : Ai(n, e.properties);
|
|
4038
4038
|
}
|
|
4039
|
-
var
|
|
4039
|
+
var Gi = to;
|
|
4040
4040
|
function io(i) {
|
|
4041
4041
|
const e = [];
|
|
4042
|
-
if (
|
|
4042
|
+
if (Bt(i, (r) => {
|
|
4043
4043
|
e.push(r.coordinates);
|
|
4044
4044
|
}), e.length < 2)
|
|
4045
4045
|
throw new Error("Must have at least two features");
|
|
4046
|
-
const t = i.features[0].properties || {}, n =
|
|
4047
|
-
return n.length === 0 ? null : n.length === 1 ?
|
|
4046
|
+
const t = i.features[0].properties || {}, n = Ui.difference(e[0], ...e.slice(1));
|
|
4047
|
+
return n.length === 0 ? null : n.length === 1 ? zt(n[0], t) : Ai(n, t);
|
|
4048
4048
|
}
|
|
4049
4049
|
var no = io;
|
|
4050
4050
|
function ro(i) {
|
|
@@ -4056,10 +4056,10 @@ function ro(i) {
|
|
|
4056
4056
|
}), He(e);
|
|
4057
4057
|
}
|
|
4058
4058
|
var oo = ro;
|
|
4059
|
-
function
|
|
4059
|
+
function Si(i, e) {
|
|
4060
4060
|
const t = no(
|
|
4061
4061
|
He([
|
|
4062
|
-
|
|
4062
|
+
zt([
|
|
4063
4063
|
[
|
|
4064
4064
|
[180, 90],
|
|
4065
4065
|
[-180, 90],
|
|
@@ -4074,27 +4074,27 @@ function xi(i, e) {
|
|
|
4074
4074
|
if (!t)
|
|
4075
4075
|
return;
|
|
4076
4076
|
t.properties = { isMask: !0 };
|
|
4077
|
-
const n =
|
|
4077
|
+
const n = Ze(Pt(i)), r = (n[2] - n[0]) / 360 / 1e3, o = n[0] < -180, l = n[2] > 180, s = oo(i);
|
|
4078
4078
|
if (s.features.length > 1 && (o || l))
|
|
4079
4079
|
for (const c of s.features) {
|
|
4080
|
-
const u =
|
|
4080
|
+
const u = Ze(Pt(c));
|
|
4081
4081
|
if (l && u[0] < -180 + r)
|
|
4082
|
-
for (const
|
|
4083
|
-
for (const a of
|
|
4082
|
+
for (const d of c.geometry.coordinates)
|
|
4083
|
+
for (const a of d)
|
|
4084
4084
|
a[0] += 360 - r;
|
|
4085
4085
|
if (o && u[2] > 180 - r)
|
|
4086
|
-
for (const
|
|
4087
|
-
for (const a of
|
|
4086
|
+
for (const d of c.geometry.coordinates)
|
|
4087
|
+
for (const a of d)
|
|
4088
4088
|
a[0] -= 360 - r;
|
|
4089
4089
|
}
|
|
4090
4090
|
e(
|
|
4091
4091
|
He([
|
|
4092
|
-
s.features.length < 2 ? i :
|
|
4092
|
+
s.features.length < 2 ? i : Gi(s) ?? i,
|
|
4093
4093
|
t
|
|
4094
4094
|
])
|
|
4095
4095
|
);
|
|
4096
4096
|
}
|
|
4097
|
-
const
|
|
4097
|
+
const xi = (i) => {
|
|
4098
4098
|
var n, r, o;
|
|
4099
4099
|
const e = (n = i == null ? void 0 : i.geometry) == null ? void 0 : n.type, t = (r = i == null ? void 0 : i.properties) != null && r.isMask ? 0 : e === "LineString" || e === "MultiLineString" ? 3 : 2;
|
|
4100
4100
|
return {
|
|
@@ -4106,24 +4106,24 @@ const Mi = (i) => {
|
|
|
4106
4106
|
lineCap: "butt"
|
|
4107
4107
|
};
|
|
4108
4108
|
};
|
|
4109
|
-
function so(i, e = !0, t = !0, n = {}, r = {}, o =
|
|
4109
|
+
function so(i, e = !0, t = !0, n = {}, r = {}, o = xi) {
|
|
4110
4110
|
let l;
|
|
4111
4111
|
const s = [];
|
|
4112
4112
|
let c, u;
|
|
4113
|
-
const
|
|
4114
|
-
style: o === !0 ?
|
|
4113
|
+
const d = se.geoJSON(void 0, {
|
|
4114
|
+
style: o === !0 ? xi : o === !1 ? void 0 : o ?? void 0,
|
|
4115
4115
|
interactive: !1
|
|
4116
|
-
}).addTo(i), a = (
|
|
4116
|
+
}).addTo(i), a = (h) => {
|
|
4117
4117
|
l == null || l({
|
|
4118
4118
|
type: "mapClick",
|
|
4119
|
-
coordinates: [
|
|
4119
|
+
coordinates: [h.latlng.lng, h.latlng.lat]
|
|
4120
4120
|
});
|
|
4121
4121
|
};
|
|
4122
|
-
function f(
|
|
4122
|
+
function f(h, g = !1) {
|
|
4123
4123
|
const v = document.createElement("div");
|
|
4124
|
-
return new Kn({ props: { displayIn: "leaflet" }, target: v }), new
|
|
4125
|
-
interactive:
|
|
4126
|
-
icon: new
|
|
4124
|
+
return new Kn({ props: { displayIn: "leaflet" }, target: v }), new se.Marker(h, {
|
|
4125
|
+
interactive: g,
|
|
4126
|
+
icon: new se.DivIcon({
|
|
4127
4127
|
html: v,
|
|
4128
4128
|
className: "",
|
|
4129
4129
|
iconAnchor: [12, 26],
|
|
@@ -4133,239 +4133,236 @@ function so(i, e = !0, t = !0, n = {}, r = {}, o = Mi) {
|
|
|
4133
4133
|
});
|
|
4134
4134
|
}
|
|
4135
4135
|
return {
|
|
4136
|
-
setEventHandler(
|
|
4137
|
-
|
|
4136
|
+
setEventHandler(h) {
|
|
4137
|
+
h ? (l = h, i.on("click", a)) : (l = void 0, i.off("click", a));
|
|
4138
4138
|
},
|
|
4139
|
-
flyTo(
|
|
4140
|
-
i.flyTo([
|
|
4139
|
+
flyTo(h, g) {
|
|
4140
|
+
i.flyTo([h[1], h[0]], g, { duration: 2, ...n });
|
|
4141
4141
|
},
|
|
4142
|
-
fitBounds(
|
|
4142
|
+
fitBounds(h, g, v) {
|
|
4143
4143
|
i.flyToBounds(
|
|
4144
4144
|
[
|
|
4145
|
-
[
|
|
4146
|
-
[
|
|
4145
|
+
[h[1], h[0]],
|
|
4146
|
+
[h[3], h[2]]
|
|
4147
4147
|
],
|
|
4148
4148
|
{
|
|
4149
|
-
padding: [
|
|
4149
|
+
padding: [g, g],
|
|
4150
4150
|
duration: 2,
|
|
4151
4151
|
...v ? { maxZoom: v } : {},
|
|
4152
4152
|
...r
|
|
4153
4153
|
}
|
|
4154
4154
|
);
|
|
4155
4155
|
},
|
|
4156
|
-
indicateReverse(
|
|
4157
|
-
i.getContainer().style.cursor =
|
|
4156
|
+
indicateReverse(h) {
|
|
4157
|
+
i.getContainer().style.cursor = h ? "crosshair" : "";
|
|
4158
4158
|
},
|
|
4159
|
-
setReverseMarker(
|
|
4159
|
+
setReverseMarker(h) {
|
|
4160
4160
|
var v;
|
|
4161
4161
|
if (!e)
|
|
4162
4162
|
return;
|
|
4163
|
-
const
|
|
4164
|
-
u ?
|
|
4163
|
+
const g = h && [h[1], h[0]];
|
|
4164
|
+
u ? g ? u.setLatLng(g) : (u.remove(), u = void 0) : g && (e instanceof Function ? u = e(i) ?? void 0 : (u = (typeof e == "object" ? new se.Marker(g, e) : f(g)).addTo(i), (v = u.getElement()) == null || v.classList.add("marker-reverse")));
|
|
4165
4165
|
},
|
|
4166
|
-
|
|
4167
|
-
function
|
|
4168
|
-
|
|
4166
|
+
setFeatures(h, g, v) {
|
|
4167
|
+
function w(p) {
|
|
4168
|
+
d.clearLayers(), p && d.addData(p);
|
|
4169
4169
|
}
|
|
4170
|
-
for (const
|
|
4171
|
-
|
|
4172
|
-
if (s.length = 0,
|
|
4173
|
-
let
|
|
4174
|
-
if (
|
|
4175
|
-
const
|
|
4176
|
-
(
|
|
4170
|
+
for (const p of s)
|
|
4171
|
+
p.remove();
|
|
4172
|
+
if (s.length = 0, w(), g) {
|
|
4173
|
+
let p = !1;
|
|
4174
|
+
if (g.geometry.type === "GeometryCollection") {
|
|
4175
|
+
const S = g.geometry.geometries.filter(
|
|
4176
|
+
(L) => L.type === "Polygon" || L.type === "MultiPolygon"
|
|
4177
4177
|
);
|
|
4178
|
-
e: if (
|
|
4179
|
-
const
|
|
4180
|
-
He(
|
|
4178
|
+
e: if (S.length > 0) {
|
|
4179
|
+
const L = Gi(
|
|
4180
|
+
He(S.map((E) => Qe(E)))
|
|
4181
4181
|
);
|
|
4182
|
-
if (!
|
|
4182
|
+
if (!L)
|
|
4183
4183
|
break e;
|
|
4184
|
-
|
|
4184
|
+
Si(
|
|
4185
4185
|
{
|
|
4186
|
-
...
|
|
4187
|
-
geometry:
|
|
4186
|
+
...g,
|
|
4187
|
+
geometry: L.geometry
|
|
4188
4188
|
},
|
|
4189
|
-
|
|
4190
|
-
),
|
|
4189
|
+
w
|
|
4190
|
+
), p = !0;
|
|
4191
4191
|
} else {
|
|
4192
|
-
const
|
|
4192
|
+
const L = g.geometry.geometries.filter(
|
|
4193
4193
|
(E) => E.type === "LineString" || E.type === "MultiLineString"
|
|
4194
4194
|
);
|
|
4195
|
-
|
|
4196
|
-
...
|
|
4197
|
-
geometry: { type: "GeometryCollection", geometries:
|
|
4198
|
-
}),
|
|
4195
|
+
L.length > 0 && (w({
|
|
4196
|
+
...g,
|
|
4197
|
+
geometry: { type: "GeometryCollection", geometries: L }
|
|
4198
|
+
}), p = !0);
|
|
4199
4199
|
}
|
|
4200
4200
|
}
|
|
4201
|
-
if (!
|
|
4202
|
-
if (
|
|
4203
|
-
|
|
4204
|
-
if (!
|
|
4201
|
+
if (!p) {
|
|
4202
|
+
if (g.geometry.type === "Polygon" || g.geometry.type === "MultiPolygon")
|
|
4203
|
+
Si(g, (S) => {
|
|
4204
|
+
if (!S)
|
|
4205
4205
|
return;
|
|
4206
|
-
const
|
|
4207
|
-
E[0] -
|
|
4206
|
+
const L = [...S.features], E = Ze(Pt(g)), M = E[2] - E[0];
|
|
4207
|
+
E[0] - M / 4 < -180 && L.push(...Mi(S, -360).features), E[2] + M / 4 > 180 && L.push(...Mi(S, 360).features), w(He(L));
|
|
4208
4208
|
});
|
|
4209
|
-
else if (
|
|
4210
|
-
|
|
4209
|
+
else if (g.geometry.type === "LineString" || g.geometry.type === "MultiLineString") {
|
|
4210
|
+
w(g);
|
|
4211
4211
|
return;
|
|
4212
4212
|
}
|
|
4213
4213
|
}
|
|
4214
|
+
if (!v && g.geometry.type !== "Point")
|
|
4215
|
+
return;
|
|
4214
4216
|
if (e instanceof Function) {
|
|
4215
|
-
const
|
|
4216
|
-
|
|
4217
|
+
const S = e(i, g);
|
|
4218
|
+
S && s.push(S.addTo(i));
|
|
4217
4219
|
} else if (e) {
|
|
4218
|
-
const
|
|
4220
|
+
const S = [g.center[1], g.center[0]];
|
|
4219
4221
|
s.push(
|
|
4220
|
-
typeof e == "object" ? new
|
|
4222
|
+
typeof e == "object" ? new se.Marker(S, e) : f(S).addTo(i)
|
|
4221
4223
|
);
|
|
4222
4224
|
}
|
|
4223
4225
|
}
|
|
4224
4226
|
if (t)
|
|
4225
|
-
for (const
|
|
4226
|
-
if (
|
|
4227
|
+
for (const p of h ?? []) {
|
|
4228
|
+
if (p === g)
|
|
4227
4229
|
continue;
|
|
4228
|
-
const
|
|
4229
|
-
|
|
4230
|
-
|
|
4230
|
+
const S = [
|
|
4231
|
+
p.center[1],
|
|
4232
|
+
p.center[0]
|
|
4231
4233
|
];
|
|
4232
|
-
let
|
|
4234
|
+
let L;
|
|
4233
4235
|
if (t instanceof Function) {
|
|
4234
|
-
if (
|
|
4236
|
+
if (L = t(i, p), !L)
|
|
4235
4237
|
continue;
|
|
4236
4238
|
} else
|
|
4237
|
-
|
|
4238
|
-
|
|
4239
|
+
L = (typeof t == "object" ? new se.Marker(S, t) : f(S, !0)).addTo(i).bindTooltip(
|
|
4240
|
+
p.place_type[0] === "reverse" ? p.place_name : p.place_name.replace(/,.*/, ""),
|
|
4239
4241
|
{
|
|
4240
4242
|
direction: "top"
|
|
4241
4243
|
}
|
|
4242
4244
|
);
|
|
4243
|
-
const E =
|
|
4244
|
-
E && (E.addEventListener("click", (
|
|
4245
|
-
|
|
4245
|
+
const E = L.getElement();
|
|
4246
|
+
E && (E.addEventListener("click", (M) => {
|
|
4247
|
+
M.stopPropagation(), l == null || l({ type: "markerClick", id: p.id });
|
|
4246
4248
|
}), E.addEventListener("mouseenter", () => {
|
|
4247
|
-
l == null || l({ type: "markerMouseEnter", id:
|
|
4249
|
+
l == null || l({ type: "markerMouseEnter", id: p.id });
|
|
4248
4250
|
}), E.addEventListener("mouseleave", () => {
|
|
4249
|
-
l == null || l({ type: "markerMouseLeave", id:
|
|
4250
|
-
}), E.classList.toggle("marker-fuzzy", !!
|
|
4251
|
+
l == null || l({ type: "markerMouseLeave", id: p.id });
|
|
4252
|
+
}), E.classList.toggle("marker-fuzzy", !!p.matching_text)), s.push(L);
|
|
4251
4253
|
}
|
|
4252
4254
|
},
|
|
4253
|
-
setSelectedMarker(
|
|
4254
|
-
var
|
|
4255
|
-
c && ((
|
|
4255
|
+
setSelectedMarker(h) {
|
|
4256
|
+
var g, v;
|
|
4257
|
+
c && ((g = c.getElement()) == null || g.classList.toggle("marker-selected", !1)), c = h > -1 ? s[h] : void 0, (v = c == null ? void 0 : c.getElement()) == null || v.classList.toggle("marker-selected", !0);
|
|
4256
4258
|
},
|
|
4257
4259
|
getCenterAndZoom() {
|
|
4258
|
-
const
|
|
4259
|
-
return [i.getZoom(),
|
|
4260
|
+
const h = i.getCenter();
|
|
4261
|
+
return [i.getZoom(), h.lng, h.lat];
|
|
4260
4262
|
}
|
|
4261
4263
|
};
|
|
4262
4264
|
}
|
|
4263
|
-
function
|
|
4265
|
+
function Mi(i, e) {
|
|
4264
4266
|
const t = Mr(i);
|
|
4265
4267
|
for (const n of t.features)
|
|
4266
4268
|
if (n.geometry.type == "MultiPolygon")
|
|
4267
4269
|
for (const r of n.geometry.coordinates)
|
|
4268
|
-
|
|
4270
|
+
Ci(r, e);
|
|
4269
4271
|
else
|
|
4270
|
-
|
|
4272
|
+
Ci(n.geometry.coordinates, e);
|
|
4271
4273
|
return t;
|
|
4272
4274
|
}
|
|
4273
|
-
function
|
|
4275
|
+
function Ci(i, e) {
|
|
4274
4276
|
for (const t of i)
|
|
4275
4277
|
for (const n of t)
|
|
4276
4278
|
n[0] += e;
|
|
4277
4279
|
}
|
|
4278
|
-
class
|
|
4279
|
-
// eslint-disable-next-line @typescript-eslint/no-useless-constructor, @typescript-eslint/no-unused-vars
|
|
4280
|
-
constructor(...e) {
|
|
4281
|
-
}
|
|
4280
|
+
class ji extends se.Control {
|
|
4282
4281
|
}
|
|
4283
|
-
|
|
4284
|
-
re.Util.extend(Gt.prototype, re.Evented.prototype);
|
|
4282
|
+
se.Util.extend(ji.prototype, se.Evented.prototype);
|
|
4285
4283
|
var ie, Pe;
|
|
4286
|
-
class lo extends
|
|
4284
|
+
class lo extends ji {
|
|
4287
4285
|
constructor(t) {
|
|
4288
|
-
super();
|
|
4289
|
-
|
|
4290
|
-
|
|
4291
|
-
|
|
4286
|
+
super(t);
|
|
4287
|
+
Et(this, ie);
|
|
4288
|
+
Et(this, Pe);
|
|
4289
|
+
Lt(this, Pe, t);
|
|
4292
4290
|
}
|
|
4293
4291
|
onAdd(t) {
|
|
4294
4292
|
const n = document.createElement("div");
|
|
4295
|
-
n.className = "leaflet-ctrl-geocoder",
|
|
4293
|
+
n.className = "leaflet-ctrl-geocoder", se.DomEvent.disableClickPropagation(n), se.DomEvent.disableScrollPropagation(n);
|
|
4296
4294
|
const {
|
|
4297
4295
|
marker: r,
|
|
4298
4296
|
showResultMarkers: o,
|
|
4299
4297
|
flyTo: l,
|
|
4300
4298
|
fullGeometryStyle: s,
|
|
4301
|
-
|
|
4302
|
-
|
|
4299
|
+
position: c,
|
|
4300
|
+
...u
|
|
4301
|
+
} = te(this, Pe), d = typeof l == "boolean" ? {} : l, a = so(
|
|
4303
4302
|
t,
|
|
4304
4303
|
r,
|
|
4305
4304
|
o,
|
|
4306
|
-
|
|
4307
|
-
|
|
4305
|
+
d,
|
|
4306
|
+
d,
|
|
4308
4307
|
s
|
|
4309
4308
|
);
|
|
4310
|
-
|
|
4309
|
+
Lt(this, ie, new _r({
|
|
4311
4310
|
target: n,
|
|
4312
4311
|
props: {
|
|
4313
|
-
mapController:
|
|
4312
|
+
mapController: a,
|
|
4314
4313
|
flyTo: l === void 0 ? !0 : !!l,
|
|
4315
|
-
...
|
|
4314
|
+
...u
|
|
4316
4315
|
}
|
|
4317
4316
|
}));
|
|
4318
|
-
|
|
4319
|
-
|
|
4320
|
-
|
|
4321
|
-
|
|
4322
|
-
|
|
4323
|
-
|
|
4324
|
-
|
|
4325
|
-
|
|
4326
|
-
|
|
4327
|
-
|
|
4328
|
-
|
|
4329
|
-
|
|
4330
|
-
(f) => this.fire(a.toLowerCase(), f.detail)
|
|
4331
|
-
);
|
|
4317
|
+
const f = {
|
|
4318
|
+
select: void 0,
|
|
4319
|
+
pick: void 0,
|
|
4320
|
+
featureslisted: void 0,
|
|
4321
|
+
featuresmarked: void 0,
|
|
4322
|
+
response: void 0,
|
|
4323
|
+
optionsvisibilitychange: void 0,
|
|
4324
|
+
reversetoggle: void 0,
|
|
4325
|
+
querychange: void 0
|
|
4326
|
+
};
|
|
4327
|
+
for (const h in f)
|
|
4328
|
+
te(this, ie).$on(h, (g) => this.fire(h, g.detail));
|
|
4332
4329
|
return n;
|
|
4333
4330
|
}
|
|
4334
4331
|
setOptions(t) {
|
|
4335
4332
|
var c;
|
|
4336
|
-
|
|
4333
|
+
Object.assign(te(this, Pe), t);
|
|
4337
4334
|
const {
|
|
4338
4335
|
marker: n,
|
|
4339
4336
|
showResultMarkers: r,
|
|
4340
4337
|
flyTo: o,
|
|
4341
4338
|
fullGeometryStyle: l,
|
|
4342
4339
|
...s
|
|
4343
|
-
} =
|
|
4344
|
-
(c =
|
|
4340
|
+
} = te(this, Pe);
|
|
4341
|
+
(c = te(this, ie)) == null || c.$set(s);
|
|
4345
4342
|
}
|
|
4346
4343
|
setQuery(t, n = !0) {
|
|
4347
4344
|
var r;
|
|
4348
|
-
(r =
|
|
4345
|
+
(r = te(this, ie)) == null || r.setQuery(t, n);
|
|
4349
4346
|
}
|
|
4350
4347
|
clearMap() {
|
|
4351
4348
|
var t;
|
|
4352
|
-
(t =
|
|
4349
|
+
(t = te(this, ie)) == null || t.clearMap();
|
|
4353
4350
|
}
|
|
4354
4351
|
clearList() {
|
|
4355
4352
|
var t;
|
|
4356
|
-
(t =
|
|
4353
|
+
(t = te(this, ie)) == null || t.clearList();
|
|
4357
4354
|
}
|
|
4358
4355
|
focus() {
|
|
4359
4356
|
var t;
|
|
4360
|
-
(t =
|
|
4357
|
+
(t = te(this, ie)) == null || t.focus();
|
|
4361
4358
|
}
|
|
4362
4359
|
blur() {
|
|
4363
4360
|
var t;
|
|
4364
|
-
(t =
|
|
4361
|
+
(t = te(this, ie)) == null || t.blur();
|
|
4365
4362
|
}
|
|
4366
4363
|
onRemove() {
|
|
4367
4364
|
var t;
|
|
4368
|
-
(t =
|
|
4365
|
+
(t = te(this, ie)) == null || t.$destroy();
|
|
4369
4366
|
}
|
|
4370
4367
|
}
|
|
4371
4368
|
ie = new WeakMap(), Pe = new WeakMap();
|