@maptiler/geocoding-control 2.1.3-rc2 → 2.1.3
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/leaflet.js +914 -931
- package/leaflet.js.map +1 -1
- package/leaflet.umd.js +13 -13
- package/leaflet.umd.js.map +1 -1
- package/maplibregl.js +911 -928
- package/maplibregl.js.map +1 -1
- package/maplibregl.umd.js +13 -13
- package/maplibregl.umd.js.map +1 -1
- package/maptilersdk.js +912 -929
- package/maptilersdk.js.map +1 -1
- package/maptilersdk.umd.js +13 -13
- package/maptilersdk.umd.js.map +1 -1
- package/openlayers.js +932 -949
- package/openlayers.js.map +1 -1
- package/openlayers.umd.js +13 -13
- package/openlayers.umd.js.map +1 -1
- package/package.json +1 -1
- package/react.js +642 -659
- package/react.js.map +1 -1
- package/react.umd.js +13 -13
- package/react.umd.js.map +1 -1
- package/svelte/GeocodingControl.svelte +17 -45
- package/svelte/GeocodingControl.svelte.d.ts +0 -1
- package/svelte/info.json +1 -1
- package/svelte/types.d.ts +0 -1
- package/types.d.ts +0 -1
- package/vanilla.js +770 -787
- package/vanilla.js.map +1 -1
- package/vanilla.umd.js +12 -12
- package/vanilla.umd.js.map +1 -1
package/react.js
CHANGED
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { forwardRef as
|
|
1
|
+
var Oi = Object.defineProperty;
|
|
2
|
+
var Ri = (i, e, t) => e in i ? Oi(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
|
|
3
|
+
var gt = (i, e, t) => Ri(i, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
+
import { forwardRef as zi, useRef as zt, useEffect as ht, useImperativeHandle as Ui, createElement as Di } from "react";
|
|
5
5
|
function P() {
|
|
6
6
|
}
|
|
7
|
-
function
|
|
7
|
+
function Ii(i, e) {
|
|
8
8
|
for (const t in e) i[t] = e[t];
|
|
9
9
|
return (
|
|
10
10
|
/** @type {T & S} */
|
|
11
11
|
i
|
|
12
12
|
);
|
|
13
13
|
}
|
|
14
|
-
function
|
|
14
|
+
function $t(i) {
|
|
15
15
|
return i();
|
|
16
16
|
}
|
|
17
|
-
function
|
|
17
|
+
function Ut() {
|
|
18
18
|
return /* @__PURE__ */ Object.create(null);
|
|
19
19
|
}
|
|
20
|
-
function
|
|
21
|
-
i.forEach(
|
|
20
|
+
function me(i) {
|
|
21
|
+
i.forEach($t);
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function ei(i) {
|
|
24
24
|
return typeof i == "function";
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function we(i, e) {
|
|
27
27
|
return i != i ? e == e : i !== e || i && typeof i == "object" || typeof i == "function";
|
|
28
28
|
}
|
|
29
|
-
let
|
|
30
|
-
function
|
|
31
|
-
return i === e ? !0 : (
|
|
29
|
+
let Ye;
|
|
30
|
+
function Y(i, e) {
|
|
31
|
+
return i === e ? !0 : (Ye || (Ye = document.createElement("a")), Ye.href = e, i === Ye.href);
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function Ai(i) {
|
|
34
34
|
return Object.keys(i).length === 0;
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function Pi(i, e, t, n) {
|
|
37
37
|
if (i) {
|
|
38
|
-
const r =
|
|
38
|
+
const r = ti(i, e, t, n);
|
|
39
39
|
return i[0](r);
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
function
|
|
43
|
-
return i[1] && n ?
|
|
42
|
+
function ti(i, e, t, n) {
|
|
43
|
+
return i[1] && n ? Ii(t.ctx.slice(), i[1](n(e))) : t.ctx;
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function Bi(i, e, t, n) {
|
|
46
46
|
return i[2], e.dirty;
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function Fi(i, e, t, n, r, c) {
|
|
49
49
|
if (r) {
|
|
50
|
-
const l =
|
|
50
|
+
const l = ti(e, t, n, c);
|
|
51
51
|
i.p(l, r);
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function Gi(i) {
|
|
55
55
|
if (i.ctx.length > 32) {
|
|
56
56
|
const e = [], t = i.ctx.length / 32;
|
|
57
57
|
for (let n = 0; n < t; n++)
|
|
@@ -60,7 +60,7 @@ function qi(i) {
|
|
|
60
60
|
}
|
|
61
61
|
return -1;
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function et(i) {
|
|
64
64
|
return i ?? "";
|
|
65
65
|
}
|
|
66
66
|
function M(i, e) {
|
|
@@ -75,22 +75,22 @@ function D(i) {
|
|
|
75
75
|
function U(i) {
|
|
76
76
|
return document.createElement(i);
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function ce(i) {
|
|
79
79
|
return document.createElementNS("http://www.w3.org/2000/svg", i);
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function be(i) {
|
|
82
82
|
return document.createTextNode(i);
|
|
83
83
|
}
|
|
84
|
-
function
|
|
85
|
-
return
|
|
84
|
+
function $() {
|
|
85
|
+
return be(" ");
|
|
86
86
|
}
|
|
87
|
-
function
|
|
88
|
-
return
|
|
87
|
+
function ji() {
|
|
88
|
+
return be("");
|
|
89
89
|
}
|
|
90
|
-
function
|
|
90
|
+
function Z(i, e, t, n) {
|
|
91
91
|
return i.addEventListener(e, t, n), () => i.removeEventListener(e, t, n);
|
|
92
92
|
}
|
|
93
|
-
function
|
|
93
|
+
function Hi(i) {
|
|
94
94
|
return function(e) {
|
|
95
95
|
return e.preventDefault(), i.call(this, e);
|
|
96
96
|
};
|
|
@@ -98,39 +98,39 @@ function Ki(i) {
|
|
|
98
98
|
function a(i, e, t) {
|
|
99
99
|
t == null ? i.removeAttribute(e) : i.getAttribute(e) !== t && i.setAttribute(e, t);
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function Zi(i) {
|
|
102
102
|
return Array.from(i.childNodes);
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function Pe(i, e) {
|
|
105
105
|
e = "" + e, i.data !== e && (i.data = /** @type {string} */
|
|
106
106
|
e);
|
|
107
107
|
}
|
|
108
|
-
function
|
|
108
|
+
function Dt(i, e) {
|
|
109
109
|
i.value = e ?? "";
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function Ce(i, e, t) {
|
|
112
112
|
i.classList.toggle(e, !!t);
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function qi(i, e, { bubbles: t = !1, cancelable: n = !1 } = {}) {
|
|
115
115
|
return new CustomEvent(i, { detail: e, bubbles: t, cancelable: n });
|
|
116
116
|
}
|
|
117
|
-
let
|
|
118
|
-
function
|
|
119
|
-
|
|
117
|
+
let Be;
|
|
118
|
+
function Ae(i) {
|
|
119
|
+
Be = i;
|
|
120
120
|
}
|
|
121
|
-
function
|
|
122
|
-
if (!
|
|
123
|
-
return
|
|
121
|
+
function ii() {
|
|
122
|
+
if (!Be) throw new Error("Function called outside component initialization");
|
|
123
|
+
return Be;
|
|
124
124
|
}
|
|
125
|
-
function
|
|
126
|
-
|
|
125
|
+
function Qi(i) {
|
|
126
|
+
ii().$$.on_destroy.push(i);
|
|
127
127
|
}
|
|
128
|
-
function
|
|
129
|
-
const i =
|
|
128
|
+
function ni() {
|
|
129
|
+
const i = ii();
|
|
130
130
|
return (e, t, { cancelable: n = !1 } = {}) => {
|
|
131
131
|
const r = i.$$.callbacks[e];
|
|
132
132
|
if (r) {
|
|
133
|
-
const c =
|
|
133
|
+
const c = qi(
|
|
134
134
|
/** @type {string} */
|
|
135
135
|
e,
|
|
136
136
|
t,
|
|
@@ -143,134 +143,134 @@ function si() {
|
|
|
143
143
|
return !0;
|
|
144
144
|
};
|
|
145
145
|
}
|
|
146
|
-
function
|
|
146
|
+
function Ki(i, e) {
|
|
147
147
|
const t = i.$$.callbacks[e.type];
|
|
148
148
|
t && t.slice().forEach((n) => n.call(this, e));
|
|
149
149
|
}
|
|
150
|
-
const
|
|
151
|
-
let
|
|
152
|
-
const
|
|
153
|
-
let
|
|
154
|
-
function
|
|
155
|
-
|
|
150
|
+
const Me = [], vt = [];
|
|
151
|
+
let We = [];
|
|
152
|
+
const It = [], Vi = /* @__PURE__ */ Promise.resolve();
|
|
153
|
+
let Lt = !1;
|
|
154
|
+
function Yi() {
|
|
155
|
+
Lt || (Lt = !0, Vi.then(ri));
|
|
156
156
|
}
|
|
157
|
-
function
|
|
158
|
-
|
|
157
|
+
function _t(i) {
|
|
158
|
+
We.push(i);
|
|
159
159
|
}
|
|
160
|
-
const
|
|
161
|
-
let
|
|
162
|
-
function
|
|
163
|
-
if (
|
|
160
|
+
const bt = /* @__PURE__ */ new Set();
|
|
161
|
+
let Ne = 0;
|
|
162
|
+
function ri() {
|
|
163
|
+
if (Ne !== 0)
|
|
164
164
|
return;
|
|
165
|
-
const i =
|
|
165
|
+
const i = Be;
|
|
166
166
|
do {
|
|
167
167
|
try {
|
|
168
|
-
for (;
|
|
169
|
-
const e =
|
|
170
|
-
|
|
168
|
+
for (; Ne < Me.length; ) {
|
|
169
|
+
const e = Me[Ne];
|
|
170
|
+
Ne++, Ae(e), Xi(e.$$);
|
|
171
171
|
}
|
|
172
172
|
} catch (e) {
|
|
173
|
-
throw
|
|
173
|
+
throw Me.length = 0, Ne = 0, e;
|
|
174
174
|
}
|
|
175
|
-
for (
|
|
176
|
-
for (let e = 0; e <
|
|
177
|
-
const t =
|
|
178
|
-
|
|
175
|
+
for (Ae(null), Me.length = 0, Ne = 0; vt.length; ) vt.pop()();
|
|
176
|
+
for (let e = 0; e < We.length; e += 1) {
|
|
177
|
+
const t = We[e];
|
|
178
|
+
bt.has(t) || (bt.add(t), t());
|
|
179
179
|
}
|
|
180
|
-
|
|
181
|
-
} while (
|
|
182
|
-
for (;
|
|
183
|
-
|
|
184
|
-
|
|
180
|
+
We.length = 0;
|
|
181
|
+
} while (Me.length);
|
|
182
|
+
for (; It.length; )
|
|
183
|
+
It.pop()();
|
|
184
|
+
Lt = !1, bt.clear(), Ae(i);
|
|
185
185
|
}
|
|
186
|
-
function
|
|
186
|
+
function Xi(i) {
|
|
187
187
|
if (i.fragment !== null) {
|
|
188
|
-
i.update(),
|
|
188
|
+
i.update(), me(i.before_update);
|
|
189
189
|
const e = i.dirty;
|
|
190
|
-
i.dirty = [-1], i.fragment && i.fragment.p(i.ctx, e), i.after_update.forEach(
|
|
190
|
+
i.dirty = [-1], i.fragment && i.fragment.p(i.ctx, e), i.after_update.forEach(_t);
|
|
191
191
|
}
|
|
192
192
|
}
|
|
193
|
-
function
|
|
193
|
+
function Ji(i) {
|
|
194
194
|
const e = [], t = [];
|
|
195
|
-
|
|
195
|
+
We.forEach((n) => i.indexOf(n) === -1 ? e.push(n) : t.push(n)), t.forEach((n) => n()), We = e;
|
|
196
196
|
}
|
|
197
|
-
const
|
|
198
|
-
let
|
|
199
|
-
function
|
|
200
|
-
|
|
197
|
+
const Je = /* @__PURE__ */ new Set();
|
|
198
|
+
let ye;
|
|
199
|
+
function xe() {
|
|
200
|
+
ye = {
|
|
201
201
|
r: 0,
|
|
202
202
|
c: [],
|
|
203
|
-
p:
|
|
203
|
+
p: ye
|
|
204
204
|
// parent group
|
|
205
205
|
};
|
|
206
206
|
}
|
|
207
|
-
function
|
|
208
|
-
|
|
207
|
+
function $e() {
|
|
208
|
+
ye.r || me(ye.c), ye = ye.p;
|
|
209
209
|
}
|
|
210
|
-
function
|
|
211
|
-
i && i.i && (
|
|
210
|
+
function G(i, e) {
|
|
211
|
+
i && i.i && (Je.delete(i), i.i(e));
|
|
212
212
|
}
|
|
213
|
-
function
|
|
213
|
+
function q(i, e, t, n) {
|
|
214
214
|
if (i && i.o) {
|
|
215
|
-
if (
|
|
216
|
-
|
|
217
|
-
|
|
215
|
+
if (Je.has(i)) return;
|
|
216
|
+
Je.add(i), ye.c.push(() => {
|
|
217
|
+
Je.delete(i), n && (t && i.d(1), n());
|
|
218
218
|
}), i.o(e);
|
|
219
219
|
} else n && n();
|
|
220
220
|
}
|
|
221
|
-
function
|
|
221
|
+
function At(i) {
|
|
222
222
|
return (i == null ? void 0 : i.length) !== void 0 ? i : Array.from(i);
|
|
223
223
|
}
|
|
224
|
-
function
|
|
225
|
-
|
|
224
|
+
function xi(i, e) {
|
|
225
|
+
q(i, 1, 1, () => {
|
|
226
226
|
e.delete(i.key);
|
|
227
227
|
});
|
|
228
228
|
}
|
|
229
|
-
function
|
|
229
|
+
function $i(i, e, t, n, r, c, l, o, d, u, f, h) {
|
|
230
230
|
let v = i.length, y = c.length, E = v;
|
|
231
|
-
const
|
|
232
|
-
for (; E--; )
|
|
233
|
-
const
|
|
231
|
+
const O = {};
|
|
232
|
+
for (; E--; ) O[i[E].key] = E;
|
|
233
|
+
const p = [], S = /* @__PURE__ */ new Map(), W = /* @__PURE__ */ new Map(), C = [];
|
|
234
234
|
for (E = y; E--; ) {
|
|
235
235
|
const w = h(r, c, E), g = t(w);
|
|
236
236
|
let N = l.get(g);
|
|
237
|
-
N ? C.push(() => N.p(w, e)) : (N = u(g, w), N.c()), S.set(g,
|
|
237
|
+
N ? C.push(() => N.p(w, e)) : (N = u(g, w), N.c()), S.set(g, p[E] = N), g in O && W.set(g, Math.abs(E - O[g]));
|
|
238
238
|
}
|
|
239
|
-
const H = /* @__PURE__ */ new Set(),
|
|
240
|
-
function
|
|
241
|
-
|
|
239
|
+
const H = /* @__PURE__ */ new Set(), X = /* @__PURE__ */ new Set();
|
|
240
|
+
function Q(w) {
|
|
241
|
+
G(w, 1), w.m(o, f), l.set(w.key, w), f = w.first, y--;
|
|
242
242
|
}
|
|
243
243
|
for (; v && y; ) {
|
|
244
|
-
const w =
|
|
245
|
-
w === g ? (f = w.first, v--, y--) : S.has(k) ? !l.has(N) || H.has(N) ?
|
|
244
|
+
const w = p[y - 1], g = i[v - 1], N = w.key, k = g.key;
|
|
245
|
+
w === g ? (f = w.first, v--, y--) : S.has(k) ? !l.has(N) || H.has(N) ? Q(w) : X.has(k) ? v-- : W.get(N) > W.get(k) ? (X.add(N), Q(w)) : (H.add(k), v--) : (d(g, l), v--);
|
|
246
246
|
}
|
|
247
247
|
for (; v--; ) {
|
|
248
248
|
const w = i[v];
|
|
249
249
|
S.has(w.key) || d(w, l);
|
|
250
250
|
}
|
|
251
|
-
for (; y; )
|
|
252
|
-
return
|
|
251
|
+
for (; y; ) Q(p[y - 1]);
|
|
252
|
+
return me(C), p;
|
|
253
253
|
}
|
|
254
|
-
function
|
|
254
|
+
function ve(i) {
|
|
255
255
|
i && i.c();
|
|
256
256
|
}
|
|
257
|
-
function
|
|
257
|
+
function de(i, e, t) {
|
|
258
258
|
const { fragment: n, after_update: r } = i.$$;
|
|
259
|
-
n && n.m(e, t),
|
|
260
|
-
const c = i.$$.on_mount.map(
|
|
261
|
-
i.$$.on_destroy ? i.$$.on_destroy.push(...c) :
|
|
262
|
-
}), r.forEach(
|
|
259
|
+
n && n.m(e, t), _t(() => {
|
|
260
|
+
const c = i.$$.on_mount.map($t).filter(ei);
|
|
261
|
+
i.$$.on_destroy ? i.$$.on_destroy.push(...c) : me(c), i.$$.on_mount = [];
|
|
262
|
+
}), r.forEach(_t);
|
|
263
263
|
}
|
|
264
|
-
function
|
|
264
|
+
function fe(i, e) {
|
|
265
265
|
const t = i.$$;
|
|
266
|
-
t.fragment !== null && (
|
|
266
|
+
t.fragment !== null && (Ji(t.after_update), me(t.on_destroy), t.fragment && t.fragment.d(e), t.on_destroy = t.fragment = null, t.ctx = []);
|
|
267
267
|
}
|
|
268
|
-
function
|
|
269
|
-
i.$$.dirty[0] === -1 && (
|
|
268
|
+
function en(i, e) {
|
|
269
|
+
i.$$.dirty[0] === -1 && (Me.push(i), Yi(), i.$$.dirty.fill(0)), i.$$.dirty[e / 31 | 0] |= 1 << e % 31;
|
|
270
270
|
}
|
|
271
|
-
function
|
|
272
|
-
const d =
|
|
273
|
-
|
|
271
|
+
function Ee(i, e, t, n, r, c, l = null, o = [-1]) {
|
|
272
|
+
const d = Be;
|
|
273
|
+
Ae(i);
|
|
274
274
|
const u = i.$$ = {
|
|
275
275
|
fragment: null,
|
|
276
276
|
ctx: [],
|
|
@@ -278,7 +278,7 @@ function Te(i, e, t, n, r, c, l = null, o = [-1]) {
|
|
|
278
278
|
props: c,
|
|
279
279
|
update: P,
|
|
280
280
|
not_equal: r,
|
|
281
|
-
bound:
|
|
281
|
+
bound: Ut(),
|
|
282
282
|
// lifecycle
|
|
283
283
|
on_mount: [],
|
|
284
284
|
on_destroy: [],
|
|
@@ -287,7 +287,7 @@ function Te(i, e, t, n, r, c, l = null, o = [-1]) {
|
|
|
287
287
|
after_update: [],
|
|
288
288
|
context: new Map(e.context || (d ? d.$$.context : [])),
|
|
289
289
|
// everything else
|
|
290
|
-
callbacks:
|
|
290
|
+
callbacks: Ut(),
|
|
291
291
|
dirty: o,
|
|
292
292
|
skip_bound: !1,
|
|
293
293
|
root: e.target || d.$$.root
|
|
@@ -296,18 +296,18 @@ function Te(i, e, t, n, r, c, l = null, o = [-1]) {
|
|
|
296
296
|
let f = !1;
|
|
297
297
|
if (u.ctx = t ? t(i, e.props || {}, (h, v, ...y) => {
|
|
298
298
|
const E = y.length ? y[0] : v;
|
|
299
|
-
return u.ctx && r(u.ctx[h], u.ctx[h] = E) && (!u.skip_bound && u.bound[h] && u.bound[h](E), f &&
|
|
300
|
-
}) : [], u.update(), f = !0,
|
|
299
|
+
return u.ctx && r(u.ctx[h], u.ctx[h] = E) && (!u.skip_bound && u.bound[h] && u.bound[h](E), f && en(i, h)), v;
|
|
300
|
+
}) : [], u.update(), f = !0, me(u.before_update), u.fragment = n ? n(u.ctx) : !1, e.target) {
|
|
301
301
|
if (e.hydrate) {
|
|
302
|
-
const h =
|
|
302
|
+
const h = Zi(e.target);
|
|
303
303
|
u.fragment && u.fragment.l(h), h.forEach(D);
|
|
304
304
|
} else
|
|
305
305
|
u.fragment && u.fragment.c();
|
|
306
|
-
e.intro &&
|
|
306
|
+
e.intro && G(i.$$.fragment), de(i, e.target, e.anchor), ri();
|
|
307
307
|
}
|
|
308
|
-
|
|
308
|
+
Ae(d);
|
|
309
309
|
}
|
|
310
|
-
class
|
|
310
|
+
class Se {
|
|
311
311
|
constructor() {
|
|
312
312
|
/**
|
|
313
313
|
* ### PRIVATE API
|
|
@@ -316,7 +316,7 @@ class ke {
|
|
|
316
316
|
*
|
|
317
317
|
* @type {any}
|
|
318
318
|
*/
|
|
319
|
-
|
|
319
|
+
gt(this, "$$");
|
|
320
320
|
/**
|
|
321
321
|
* ### PRIVATE API
|
|
322
322
|
*
|
|
@@ -324,11 +324,11 @@ class ke {
|
|
|
324
324
|
*
|
|
325
325
|
* @type {any}
|
|
326
326
|
*/
|
|
327
|
-
|
|
327
|
+
gt(this, "$$set");
|
|
328
328
|
}
|
|
329
329
|
/** @returns {void} */
|
|
330
330
|
$destroy() {
|
|
331
|
-
|
|
331
|
+
fe(this, 1), this.$destroy = P;
|
|
332
332
|
}
|
|
333
333
|
/**
|
|
334
334
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -337,7 +337,7 @@ class ke {
|
|
|
337
337
|
* @returns {() => void}
|
|
338
338
|
*/
|
|
339
339
|
$on(e, t) {
|
|
340
|
-
if (!
|
|
340
|
+
if (!ei(t))
|
|
341
341
|
return P;
|
|
342
342
|
const n = this.$$.callbacks[e] || (this.$$.callbacks[e] = []);
|
|
343
343
|
return n.push(t), () => {
|
|
@@ -350,16 +350,16 @@ class ke {
|
|
|
350
350
|
* @returns {void}
|
|
351
351
|
*/
|
|
352
352
|
$set(e) {
|
|
353
|
-
this.$$set && !
|
|
353
|
+
this.$$set && !Ai(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
|
|
354
354
|
}
|
|
355
355
|
}
|
|
356
|
-
const
|
|
357
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
358
|
-
function
|
|
356
|
+
const tn = "4";
|
|
357
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(tn);
|
|
358
|
+
function nn(i) {
|
|
359
359
|
let e, t;
|
|
360
360
|
return {
|
|
361
361
|
c() {
|
|
362
|
-
e =
|
|
362
|
+
e = ce("svg"), t = ce("path"), a(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"), a(e, "viewBox", "0 0 14 14"), a(e, "width", "13"), a(e, "height", "13"), a(e, "class", "svelte-en2qvf");
|
|
363
363
|
},
|
|
364
364
|
m(n, r) {
|
|
365
365
|
I(n, e, r), M(e, t);
|
|
@@ -372,16 +372,16 @@ function an(i) {
|
|
|
372
372
|
}
|
|
373
373
|
};
|
|
374
374
|
}
|
|
375
|
-
class
|
|
375
|
+
class oi extends Se {
|
|
376
376
|
constructor(e) {
|
|
377
|
-
super(),
|
|
377
|
+
super(), Ee(this, e, null, nn, we, {});
|
|
378
378
|
}
|
|
379
379
|
}
|
|
380
|
-
function
|
|
380
|
+
function rn(i) {
|
|
381
381
|
let e, t;
|
|
382
382
|
return {
|
|
383
383
|
c() {
|
|
384
|
-
e =
|
|
384
|
+
e = ce("svg"), t = ce("path"), a(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"), a(e, "viewBox", "0 0 30 30"), a(e, "fill", "none"), a(e, "xmlns", "http://www.w3.org/2000/svg"), a(e, "class", "svelte-d2loi5");
|
|
385
385
|
},
|
|
386
386
|
m(n, r) {
|
|
387
387
|
I(n, e, r), M(e, t);
|
|
@@ -394,16 +394,16 @@ function ln(i) {
|
|
|
394
394
|
}
|
|
395
395
|
};
|
|
396
396
|
}
|
|
397
|
-
class
|
|
397
|
+
class si extends Se {
|
|
398
398
|
constructor(e) {
|
|
399
|
-
super(),
|
|
399
|
+
super(), Ee(this, e, null, rn, we, {});
|
|
400
400
|
}
|
|
401
401
|
}
|
|
402
|
-
function
|
|
402
|
+
function on(i) {
|
|
403
403
|
let e, t;
|
|
404
404
|
return {
|
|
405
405
|
c() {
|
|
406
|
-
e = U("img"),
|
|
406
|
+
e = U("img"), Y(e.src, t = /*iconsBaseUrl*/
|
|
407
407
|
i[3] + "area.svg") || a(e, "src", t), a(
|
|
408
408
|
e,
|
|
409
409
|
"alt",
|
|
@@ -421,7 +421,7 @@ function un(i) {
|
|
|
421
421
|
},
|
|
422
422
|
p(n, r) {
|
|
423
423
|
r & /*iconsBaseUrl*/
|
|
424
|
-
8 && !
|
|
424
|
+
8 && !Y(e.src, t = /*iconsBaseUrl*/
|
|
425
425
|
n[3] + "area.svg") && a(e, "src", t), r & /*placeType*/
|
|
426
426
|
128 && a(
|
|
427
427
|
e,
|
|
@@ -441,11 +441,11 @@ function un(i) {
|
|
|
441
441
|
}
|
|
442
442
|
};
|
|
443
443
|
}
|
|
444
|
-
function
|
|
444
|
+
function sn(i) {
|
|
445
445
|
let e, t;
|
|
446
446
|
return {
|
|
447
447
|
c() {
|
|
448
|
-
e = U("img"),
|
|
448
|
+
e = U("img"), Y(e.src, t = /*iconsBaseUrl*/
|
|
449
449
|
i[3] + "reverse.svg") || a(e, "src", t), a(
|
|
450
450
|
e,
|
|
451
451
|
"alt",
|
|
@@ -463,7 +463,7 @@ function cn(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") && a(e, "src", t), r & /*placeType*/
|
|
468
468
|
128 && a(
|
|
469
469
|
e,
|
|
@@ -483,11 +483,11 @@ function cn(i) {
|
|
|
483
483
|
}
|
|
484
484
|
};
|
|
485
485
|
}
|
|
486
|
-
function
|
|
486
|
+
function an(i) {
|
|
487
487
|
let e, t;
|
|
488
488
|
return {
|
|
489
489
|
c() {
|
|
490
|
-
e = U("img"),
|
|
490
|
+
e = U("img"), Y(e.src, t = /*iconsBaseUrl*/
|
|
491
491
|
i[3] + "poi.svg") || a(e, "src", t), a(
|
|
492
492
|
e,
|
|
493
493
|
"alt",
|
|
@@ -505,7 +505,7 @@ function dn(i) {
|
|
|
505
505
|
},
|
|
506
506
|
p(n, r) {
|
|
507
507
|
r & /*iconsBaseUrl*/
|
|
508
|
-
8 && !
|
|
508
|
+
8 && !Y(e.src, t = /*iconsBaseUrl*/
|
|
509
509
|
n[3] + "poi.svg") && a(e, "src", t), r & /*placeType*/
|
|
510
510
|
128 && a(
|
|
511
511
|
e,
|
|
@@ -525,11 +525,11 @@ function dn(i) {
|
|
|
525
525
|
}
|
|
526
526
|
};
|
|
527
527
|
}
|
|
528
|
-
function
|
|
528
|
+
function ln(i) {
|
|
529
529
|
let e, t;
|
|
530
530
|
return {
|
|
531
531
|
c() {
|
|
532
|
-
e = U("img"),
|
|
532
|
+
e = U("img"), Y(e.src, t = /*iconsBaseUrl*/
|
|
533
533
|
i[3] + "postal_code.svg") || a(e, "src", t), a(
|
|
534
534
|
e,
|
|
535
535
|
"alt",
|
|
@@ -547,7 +547,7 @@ function fn(i) {
|
|
|
547
547
|
},
|
|
548
548
|
p(n, r) {
|
|
549
549
|
r & /*iconsBaseUrl*/
|
|
550
|
-
8 && !
|
|
550
|
+
8 && !Y(e.src, t = /*iconsBaseUrl*/
|
|
551
551
|
n[3] + "postal_code.svg") && a(e, "src", t), r & /*placeType*/
|
|
552
552
|
128 && a(
|
|
553
553
|
e,
|
|
@@ -567,11 +567,11 @@ function fn(i) {
|
|
|
567
567
|
}
|
|
568
568
|
};
|
|
569
569
|
}
|
|
570
|
-
function
|
|
570
|
+
function un(i) {
|
|
571
571
|
let e, t;
|
|
572
572
|
return {
|
|
573
573
|
c() {
|
|
574
|
-
e = U("img"),
|
|
574
|
+
e = U("img"), Y(e.src, t = /*iconsBaseUrl*/
|
|
575
575
|
i[3] + "street.svg") || a(e, "src", t), a(
|
|
576
576
|
e,
|
|
577
577
|
"alt",
|
|
@@ -589,7 +589,7 @@ function mn(i) {
|
|
|
589
589
|
},
|
|
590
590
|
p(n, r) {
|
|
591
591
|
r & /*iconsBaseUrl*/
|
|
592
|
-
8 && !
|
|
592
|
+
8 && !Y(e.src, t = /*iconsBaseUrl*/
|
|
593
593
|
n[3] + "street.svg") && a(e, "src", t), r & /*placeType*/
|
|
594
594
|
128 && a(
|
|
595
595
|
e,
|
|
@@ -609,11 +609,11 @@ function mn(i) {
|
|
|
609
609
|
}
|
|
610
610
|
};
|
|
611
611
|
}
|
|
612
|
-
function
|
|
612
|
+
function cn(i) {
|
|
613
613
|
let e, t;
|
|
614
614
|
return {
|
|
615
615
|
c() {
|
|
616
|
-
e = U("img"),
|
|
616
|
+
e = U("img"), Y(e.src, t = /*iconsBaseUrl*/
|
|
617
617
|
i[3] + "road.svg") || a(e, "src", t), a(
|
|
618
618
|
e,
|
|
619
619
|
"alt",
|
|
@@ -631,7 +631,7 @@ function gn(i) {
|
|
|
631
631
|
},
|
|
632
632
|
p(n, r) {
|
|
633
633
|
r & /*iconsBaseUrl*/
|
|
634
|
-
8 && !
|
|
634
|
+
8 && !Y(e.src, t = /*iconsBaseUrl*/
|
|
635
635
|
n[3] + "road.svg") && a(e, "src", t), r & /*placeType*/
|
|
636
636
|
128 && a(
|
|
637
637
|
e,
|
|
@@ -651,11 +651,11 @@ function gn(i) {
|
|
|
651
651
|
}
|
|
652
652
|
};
|
|
653
653
|
}
|
|
654
|
-
function
|
|
654
|
+
function dn(i) {
|
|
655
655
|
let e, t;
|
|
656
656
|
return {
|
|
657
657
|
c() {
|
|
658
|
-
e = U("img"),
|
|
658
|
+
e = U("img"), Y(e.src, t = /*iconsBaseUrl*/
|
|
659
659
|
i[3] + "housenumber.svg") || a(e, "src", t), a(
|
|
660
660
|
e,
|
|
661
661
|
"alt",
|
|
@@ -673,7 +673,7 @@ function hn(i) {
|
|
|
673
673
|
},
|
|
674
674
|
p(n, r) {
|
|
675
675
|
r & /*iconsBaseUrl*/
|
|
676
|
-
8 && !
|
|
676
|
+
8 && !Y(e.src, t = /*iconsBaseUrl*/
|
|
677
677
|
n[3] + "housenumber.svg") && a(e, "src", t), r & /*placeType*/
|
|
678
678
|
128 && a(
|
|
679
679
|
e,
|
|
@@ -693,11 +693,11 @@ function hn(i) {
|
|
|
693
693
|
}
|
|
694
694
|
};
|
|
695
695
|
}
|
|
696
|
-
function
|
|
696
|
+
function fn(i) {
|
|
697
697
|
let e, t, n, r;
|
|
698
698
|
return {
|
|
699
699
|
c() {
|
|
700
|
-
e = U("img"),
|
|
700
|
+
e = U("img"), Y(e.src, t = /*imageUrl*/
|
|
701
701
|
i[5]) || a(e, "src", t), a(
|
|
702
702
|
e,
|
|
703
703
|
"alt",
|
|
@@ -711,7 +711,7 @@ function bn(i) {
|
|
|
711
711
|
), a(e, "class", "svelte-w9y5n9");
|
|
712
712
|
},
|
|
713
713
|
m(c, l) {
|
|
714
|
-
I(c, e, l), n || (r =
|
|
714
|
+
I(c, e, l), n || (r = Z(
|
|
715
715
|
e,
|
|
716
716
|
"error",
|
|
717
717
|
/*error_handler*/
|
|
@@ -720,7 +720,7 @@ function bn(i) {
|
|
|
720
720
|
},
|
|
721
721
|
p(c, l) {
|
|
722
722
|
l & /*imageUrl*/
|
|
723
|
-
32 && !
|
|
723
|
+
32 && !Y(e.src, t = /*imageUrl*/
|
|
724
724
|
c[5]) && a(e, "src", t), l & /*category*/
|
|
725
725
|
16 && a(
|
|
726
726
|
e,
|
|
@@ -740,7 +740,7 @@ function bn(i) {
|
|
|
740
740
|
}
|
|
741
741
|
};
|
|
742
742
|
}
|
|
743
|
-
function
|
|
743
|
+
function mn(i) {
|
|
744
744
|
let e, t;
|
|
745
745
|
return {
|
|
746
746
|
c() {
|
|
@@ -750,11 +750,11 @@ function vn(i) {
|
|
|
750
750
|
height: ${/*spriteIcon*/
|
|
751
751
|
i[6].height / ie}px;
|
|
752
752
|
background-image: url(${/*iconsBaseUrl*/
|
|
753
|
-
i[3]}sprite${
|
|
753
|
+
i[3]}sprite${yt}.png);
|
|
754
754
|
background-position: -${/*spriteIcon*/
|
|
755
755
|
i[6].x / ie}px -${/*spriteIcon*/
|
|
756
756
|
i[6].y / ie}px;
|
|
757
|
-
background-size: ${
|
|
757
|
+
background-size: ${re.width / ie}px ${re.height / ie}px;
|
|
758
758
|
`), a(
|
|
759
759
|
e,
|
|
760
760
|
"title",
|
|
@@ -773,11 +773,11 @@ function vn(i) {
|
|
|
773
773
|
height: ${/*spriteIcon*/
|
|
774
774
|
n[6].height / ie}px;
|
|
775
775
|
background-image: url(${/*iconsBaseUrl*/
|
|
776
|
-
n[3]}sprite${
|
|
776
|
+
n[3]}sprite${yt}.png);
|
|
777
777
|
background-position: -${/*spriteIcon*/
|
|
778
778
|
n[6].x / ie}px -${/*spriteIcon*/
|
|
779
779
|
n[6].y / ie}px;
|
|
780
|
-
background-size: ${
|
|
780
|
+
background-size: ${re.width / ie}px ${re.height / ie}px;
|
|
781
781
|
`) && a(e, "style", t), r & /*placeType*/
|
|
782
782
|
128 && a(
|
|
783
783
|
e,
|
|
@@ -791,11 +791,11 @@ function vn(i) {
|
|
|
791
791
|
}
|
|
792
792
|
};
|
|
793
793
|
}
|
|
794
|
-
function
|
|
794
|
+
function Pt(i) {
|
|
795
795
|
let e, t;
|
|
796
796
|
return {
|
|
797
797
|
c() {
|
|
798
|
-
e = U("span"), t =
|
|
798
|
+
e = U("span"), t = be(
|
|
799
799
|
/*placeType*/
|
|
800
800
|
i[7]
|
|
801
801
|
), a(e, "class", "secondary svelte-w9y5n9");
|
|
@@ -805,7 +805,7 @@ function jt(i) {
|
|
|
805
805
|
},
|
|
806
806
|
p(n, r) {
|
|
807
807
|
r & /*placeType*/
|
|
808
|
-
128 &&
|
|
808
|
+
128 && Pe(
|
|
809
809
|
t,
|
|
810
810
|
/*placeType*/
|
|
811
811
|
n[7]
|
|
@@ -816,7 +816,7 @@ function jt(i) {
|
|
|
816
816
|
}
|
|
817
817
|
};
|
|
818
818
|
}
|
|
819
|
-
function
|
|
819
|
+
function gn(i) {
|
|
820
820
|
let e, t, n, r, c, l, o, d, u, f = (
|
|
821
821
|
/*isReverse*/
|
|
822
822
|
(i[8] ? (
|
|
@@ -837,65 +837,65 @@ function Ln(i) {
|
|
|
837
837
|
i[0].id.startsWith("poi.") || !/*imageUrl*/
|
|
838
838
|
i[5]) && !/*isReverse*/
|
|
839
839
|
i[8]
|
|
840
|
-
), E,
|
|
840
|
+
), E, O, p = (
|
|
841
841
|
/*isReverse*/
|
|
842
842
|
(i[8] ? "" : (
|
|
843
843
|
/*feature*/
|
|
844
844
|
i[0].place_name.replace(/[^,]*,?\s*/, "")
|
|
845
845
|
)) + ""
|
|
846
|
-
), S, W, C, H,
|
|
846
|
+
), S, W, C, H, X, Q;
|
|
847
847
|
function w(L, m) {
|
|
848
848
|
return m & /*feature*/
|
|
849
849
|
1 && (t = null), m & /*feature*/
|
|
850
850
|
1 && (n = null), m & /*feature*/
|
|
851
851
|
1 && (r = null), m & /*feature*/
|
|
852
|
-
1 && (c = null),
|
|
853
|
-
L[6] ?
|
|
852
|
+
1 && (c = null), re && /*spriteIcon*/
|
|
853
|
+
L[6] ? mn : (
|
|
854
854
|
/*imageUrl*/
|
|
855
|
-
L[5] ?
|
|
855
|
+
L[5] ? fn : (
|
|
856
856
|
/*feature*/
|
|
857
|
-
L[0].address ?
|
|
858
|
-
L[0].id.startsWith("road.")), t ?
|
|
859
|
-
L[0].id.startsWith("address.")), n ?
|
|
860
|
-
L[0].id.startsWith("postal_code.")), r ?
|
|
861
|
-
L[0].id.startsWith("poi.")), c ?
|
|
857
|
+
L[0].address ? dn : (t == null && (t = !!/*feature*/
|
|
858
|
+
L[0].id.startsWith("road.")), t ? cn : (n == null && (n = !!/*feature*/
|
|
859
|
+
L[0].id.startsWith("address.")), n ? un : (r == null && (r = !!/*feature*/
|
|
860
|
+
L[0].id.startsWith("postal_code.")), r ? ln : (c == null && (c = !!/*feature*/
|
|
861
|
+
L[0].id.startsWith("poi.")), c ? an : (
|
|
862
862
|
/*isReverse*/
|
|
863
|
-
L[8] ?
|
|
863
|
+
L[8] ? sn : on
|
|
864
864
|
)))))
|
|
865
865
|
)
|
|
866
866
|
);
|
|
867
867
|
}
|
|
868
|
-
let g = w(i, -1), N = g(i), k = y &&
|
|
868
|
+
let g = w(i, -1), N = g(i), k = y && Pt(i);
|
|
869
869
|
return {
|
|
870
870
|
c() {
|
|
871
|
-
e = U("li"), N.c(), l =
|
|
871
|
+
e = U("li"), N.c(), l = $(), o = U("span"), d = U("span"), u = U("span"), h = be(f), v = $(), k && k.c(), E = $(), O = U("span"), S = be(p), a(u, "class", "primary svelte-w9y5n9"), a(d, "class", "svelte-w9y5n9"), a(O, "class", "line2 svelte-w9y5n9"), a(o, "class", "texts svelte-w9y5n9"), a(e, "tabindex", "-1"), a(e, "role", "option"), a(e, "aria-selected", W = /*style*/
|
|
872
872
|
i[1] === "selected"), a(e, "aria-checked", C = /*style*/
|
|
873
|
-
i[1] === "picked"), a(e, "class", H =
|
|
873
|
+
i[1] === "picked"), a(e, "class", H = et(
|
|
874
874
|
/*style*/
|
|
875
875
|
i[1]
|
|
876
876
|
) + " svelte-w9y5n9");
|
|
877
877
|
},
|
|
878
878
|
m(L, m) {
|
|
879
|
-
I(L, e, m), N.m(e, null), M(e, l), M(e, o), M(o, d), M(d, u), M(u, h), M(d, v), k && k.m(d, null), M(o, E), M(o,
|
|
880
|
-
|
|
879
|
+
I(L, e, m), N.m(e, null), M(e, l), M(e, o), M(o, d), M(d, u), M(u, h), M(d, v), k && k.m(d, null), M(o, E), M(o, O), M(O, S), X || (Q = [
|
|
880
|
+
Z(
|
|
881
881
|
e,
|
|
882
882
|
"mouseenter",
|
|
883
883
|
/*mouseenter_handler*/
|
|
884
884
|
i[13]
|
|
885
885
|
),
|
|
886
|
-
|
|
886
|
+
Z(
|
|
887
887
|
e,
|
|
888
888
|
"focus",
|
|
889
889
|
/*focus_handler*/
|
|
890
890
|
i[15]
|
|
891
891
|
),
|
|
892
|
-
|
|
892
|
+
Z(
|
|
893
893
|
e,
|
|
894
894
|
"click",
|
|
895
895
|
/*click_handler*/
|
|
896
896
|
i[16]
|
|
897
897
|
)
|
|
898
|
-
],
|
|
898
|
+
], X = !0);
|
|
899
899
|
},
|
|
900
900
|
p(L, [m]) {
|
|
901
901
|
g === (g = w(L, m)) && N ? N.p(L, m) : (N.d(1), N = g(L), N && (N.c(), N.m(e, l))), m & /*isReverse, feature*/
|
|
@@ -906,7 +906,7 @@ function Ln(i) {
|
|
|
906
906
|
) : (
|
|
907
907
|
/*feature*/
|
|
908
908
|
L[0].place_name.replace(/,.*/, "")
|
|
909
|
-
)) + "") &&
|
|
909
|
+
)) + "") && Pe(h, f), m & /*showPlaceType, feature, imageUrl, isReverse*/
|
|
910
910
|
293 && (y = /*showPlaceType*/
|
|
911
911
|
L[2] === "always" || /*showPlaceType*/
|
|
912
912
|
L[2] !== "never" && !/*feature*/
|
|
@@ -916,17 +916,17 @@ function Ln(i) {
|
|
|
916
916
|
L[0].id.startsWith("postal_code.") && (!/*feature*/
|
|
917
917
|
L[0].id.startsWith("poi.") || !/*imageUrl*/
|
|
918
918
|
L[5]) && !/*isReverse*/
|
|
919
|
-
L[8]), y ? k ? k.p(L, m) : (k =
|
|
920
|
-
257 &&
|
|
919
|
+
L[8]), y ? k ? k.p(L, m) : (k = Pt(L), k.c(), k.m(d, null)) : k && (k.d(1), k = null), m & /*isReverse, feature*/
|
|
920
|
+
257 && p !== (p = /*isReverse*/
|
|
921
921
|
(L[8] ? "" : (
|
|
922
922
|
/*feature*/
|
|
923
923
|
L[0].place_name.replace(/[^,]*,?\s*/, "")
|
|
924
|
-
)) + "") &&
|
|
924
|
+
)) + "") && Pe(S, p), m & /*style*/
|
|
925
925
|
2 && W !== (W = /*style*/
|
|
926
926
|
L[1] === "selected") && a(e, "aria-selected", W), m & /*style*/
|
|
927
927
|
2 && C !== (C = /*style*/
|
|
928
928
|
L[1] === "picked") && a(e, "aria-checked", C), m & /*style*/
|
|
929
|
-
2 && H !== (H =
|
|
929
|
+
2 && H !== (H = et(
|
|
930
930
|
/*style*/
|
|
931
931
|
L[1]
|
|
932
932
|
) + " svelte-w9y5n9") && a(e, "class", H);
|
|
@@ -934,40 +934,40 @@ function Ln(i) {
|
|
|
934
934
|
i: P,
|
|
935
935
|
o: P,
|
|
936
936
|
d(L) {
|
|
937
|
-
L && D(e), N.d(), k && k.d(),
|
|
937
|
+
L && D(e), N.d(), k && k.d(), X = !1, me(Q);
|
|
938
938
|
}
|
|
939
939
|
};
|
|
940
940
|
}
|
|
941
|
-
const
|
|
942
|
-
let
|
|
943
|
-
function
|
|
941
|
+
const ai = devicePixelRatio > 1.25, yt = ai ? "@2x" : "", ie = ai ? 2 : 1;
|
|
942
|
+
let re, Xe;
|
|
943
|
+
function hn(i, e, t) {
|
|
944
944
|
let n, r, c, { feature: l } = e, { style: o = "default" } = e, { showPlaceType: d } = e, { missingIconsCache: u } = e, { iconsBaseUrl: f } = e;
|
|
945
|
-
const h =
|
|
946
|
-
let v, y, E,
|
|
947
|
-
function
|
|
948
|
-
|
|
949
|
-
|
|
945
|
+
const h = ni();
|
|
946
|
+
let v, y, E, O;
|
|
947
|
+
function p() {
|
|
948
|
+
Xe ?? (Xe = fetch(`${f}sprite${yt}.json`).then((g) => g.json()).then((g) => {
|
|
949
|
+
re = g;
|
|
950
950
|
}).catch(() => {
|
|
951
|
-
|
|
951
|
+
re = null;
|
|
952
952
|
}));
|
|
953
953
|
}
|
|
954
954
|
function S() {
|
|
955
955
|
y && u.add(y), W();
|
|
956
956
|
}
|
|
957
957
|
function W() {
|
|
958
|
-
|
|
958
|
+
re !== void 0 ? C() : (p(), Xe == null || Xe.then(C));
|
|
959
959
|
}
|
|
960
960
|
function C() {
|
|
961
961
|
do {
|
|
962
|
-
if (
|
|
962
|
+
if (O--, t(4, v = n == null ? void 0 : n[O]), t(6, E = v ? re == null ? void 0 : re.icons[v] : void 0), E)
|
|
963
963
|
break;
|
|
964
964
|
t(5, y = v ? f + v.replace(/ /g, "_") + ".svg" : void 0);
|
|
965
|
-
} while (
|
|
965
|
+
} while (O > -1 && (!y || u.has(y)));
|
|
966
966
|
}
|
|
967
967
|
function H(g) {
|
|
968
|
-
|
|
968
|
+
Ki.call(this, i, g);
|
|
969
969
|
}
|
|
970
|
-
const
|
|
970
|
+
const X = () => S(), Q = () => h("select", void 0), w = (g) => {
|
|
971
971
|
document.activeElement !== g.target && h("select", void 0);
|
|
972
972
|
};
|
|
973
973
|
return i.$$set = (g) => {
|
|
@@ -978,7 +978,7 @@ function _n(i, e, t) {
|
|
|
978
978
|
1 && t(12, n = (g = l.properties) == null ? void 0 : g.categories), i.$$.dirty & /*feature*/
|
|
979
979
|
1 && t(8, r = l.place_type[0] === "reverse"), i.$$.dirty & /*feature*/
|
|
980
980
|
1 && t(7, c = ((k = (N = l.properties) == null ? void 0 : N.categories) == null ? void 0 : k.join(", ")) ?? ((m = (L = l.properties) == null ? void 0 : L.place_type_name) == null ? void 0 : m[0]) ?? l.place_type[0]), i.$$.dirty & /*categories*/
|
|
981
|
-
4096 && (
|
|
981
|
+
4096 && (O = (n == null ? void 0 : n.length) ?? 0, W());
|
|
982
982
|
}, [
|
|
983
983
|
l,
|
|
984
984
|
o,
|
|
@@ -994,14 +994,14 @@ function _n(i, e, t) {
|
|
|
994
994
|
u,
|
|
995
995
|
n,
|
|
996
996
|
H,
|
|
997
|
-
|
|
998
|
-
|
|
997
|
+
X,
|
|
998
|
+
Q,
|
|
999
999
|
w
|
|
1000
1000
|
];
|
|
1001
1001
|
}
|
|
1002
|
-
class
|
|
1002
|
+
class bn extends Se {
|
|
1003
1003
|
constructor(e) {
|
|
1004
|
-
super(),
|
|
1004
|
+
super(), Ee(this, e, hn, gn, we, {
|
|
1005
1005
|
feature: 0,
|
|
1006
1006
|
style: 1,
|
|
1007
1007
|
showPlaceType: 2,
|
|
@@ -1010,7 +1010,7 @@ class yn extends ke {
|
|
|
1010
1010
|
});
|
|
1011
1011
|
}
|
|
1012
1012
|
}
|
|
1013
|
-
function
|
|
1013
|
+
function vn(i) {
|
|
1014
1014
|
let e;
|
|
1015
1015
|
return {
|
|
1016
1016
|
c() {
|
|
@@ -1027,16 +1027,16 @@ function wn(i) {
|
|
|
1027
1027
|
}
|
|
1028
1028
|
};
|
|
1029
1029
|
}
|
|
1030
|
-
class
|
|
1030
|
+
class Ln extends Se {
|
|
1031
1031
|
constructor(e) {
|
|
1032
|
-
super(),
|
|
1032
|
+
super(), Ee(this, e, null, vn, we, {});
|
|
1033
1033
|
}
|
|
1034
1034
|
}
|
|
1035
|
-
function
|
|
1035
|
+
function _n(i) {
|
|
1036
1036
|
let e, t;
|
|
1037
1037
|
return {
|
|
1038
1038
|
c() {
|
|
1039
|
-
e =
|
|
1039
|
+
e = ce("svg"), t = ce("path"), a(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"), a(e, "viewBox", "0 0 60.006 21.412"), a(e, "width", "14"), a(e, "height", "20"), a(e, "class", "svelte-en2qvf");
|
|
1040
1040
|
},
|
|
1041
1041
|
m(n, r) {
|
|
1042
1042
|
I(n, e, r), M(e, t);
|
|
@@ -1049,16 +1049,16 @@ function Sn(i) {
|
|
|
1049
1049
|
}
|
|
1050
1050
|
};
|
|
1051
1051
|
}
|
|
1052
|
-
class
|
|
1052
|
+
class yn extends Se {
|
|
1053
1053
|
constructor(e) {
|
|
1054
|
-
super(),
|
|
1054
|
+
super(), Ee(this, e, null, _n, we, {});
|
|
1055
1055
|
}
|
|
1056
1056
|
}
|
|
1057
|
-
function
|
|
1057
|
+
function wn(i) {
|
|
1058
1058
|
let e, t, n;
|
|
1059
1059
|
return {
|
|
1060
1060
|
c() {
|
|
1061
|
-
e =
|
|
1061
|
+
e = ce("svg"), t = ce("circle"), n = ce("path"), a(t, "cx", "4.789"), a(t, "cy", "4.787"), a(t, "r", "3.85"), a(t, "class", "svelte-1aq105l"), a(n, "d", "M12.063 12.063 7.635 7.635"), a(n, "class", "svelte-1aq105l"), a(e, "xmlns", "http://www.w3.org/2000/svg"), a(e, "width", "13"), a(e, "height", "13"), a(e, "viewBox", "0 0 13 13"), a(e, "class", "svelte-1aq105l");
|
|
1062
1062
|
},
|
|
1063
1063
|
m(r, c) {
|
|
1064
1064
|
I(r, e, c), M(e, t), M(e, n);
|
|
@@ -1071,31 +1071,31 @@ function Tn(i) {
|
|
|
1071
1071
|
}
|
|
1072
1072
|
};
|
|
1073
1073
|
}
|
|
1074
|
-
class
|
|
1074
|
+
class En extends Se {
|
|
1075
1075
|
constructor(e) {
|
|
1076
|
-
super(),
|
|
1076
|
+
super(), Ee(this, e, null, wn, we, {});
|
|
1077
1077
|
}
|
|
1078
1078
|
}
|
|
1079
|
-
function
|
|
1079
|
+
function Sn(i, e, t) {
|
|
1080
1080
|
const n = e[1], r = e[0], c = n - r;
|
|
1081
1081
|
return i === n && t ? i : ((i - r) % c + c) % c + r;
|
|
1082
1082
|
}
|
|
1083
|
-
function
|
|
1083
|
+
function Bt(i) {
|
|
1084
1084
|
const e = [...i];
|
|
1085
1085
|
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;
|
|
1086
1086
|
}
|
|
1087
|
-
let
|
|
1088
|
-
async function
|
|
1087
|
+
let De;
|
|
1088
|
+
async function pn(i, e, t) {
|
|
1089
1089
|
const n = i == null ? void 0 : i.getCenterAndZoom();
|
|
1090
1090
|
for (const r of e ?? [])
|
|
1091
1091
|
if (!(n && (r.minZoom != null && r.minZoom > n[0] || r.maxZoom != null && r.maxZoom < n[0]))) {
|
|
1092
1092
|
if (r.type === "fixed")
|
|
1093
1093
|
return r.coordinates.join(",");
|
|
1094
1094
|
e: if (r.type === "client-geolocation") {
|
|
1095
|
-
if (
|
|
1096
|
-
if (!
|
|
1095
|
+
if (De && r.cachedLocationExpiry && De.time + r.cachedLocationExpiry > Date.now()) {
|
|
1096
|
+
if (!De.coords)
|
|
1097
1097
|
break e;
|
|
1098
|
-
return
|
|
1098
|
+
return De.coords;
|
|
1099
1099
|
}
|
|
1100
1100
|
let c;
|
|
1101
1101
|
try {
|
|
@@ -1116,7 +1116,7 @@ async function Mn(i, e, t) {
|
|
|
1116
1116
|
}), c;
|
|
1117
1117
|
} catch {
|
|
1118
1118
|
} finally {
|
|
1119
|
-
r.cachedLocationExpiry && (
|
|
1119
|
+
r.cachedLocationExpiry && (De = {
|
|
1120
1120
|
time: Date.now(),
|
|
1121
1121
|
coords: c
|
|
1122
1122
|
});
|
|
@@ -1130,8 +1130,8 @@ async function Mn(i, e, t) {
|
|
|
1130
1130
|
return n[1].toFixed(6) + "," + n[2].toFixed(6);
|
|
1131
1131
|
}
|
|
1132
1132
|
}
|
|
1133
|
-
const
|
|
1134
|
-
function
|
|
1133
|
+
const Tn = /^(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, Ft = /^([+-]?[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,})$/, Gt = /^(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, jt = /^(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, Ht = /^(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, Zt = /^(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;
|
|
1134
|
+
function kn(i) {
|
|
1135
1135
|
if (!["DMS", "DM", "DD"].includes(i))
|
|
1136
1136
|
throw new Error("invalid format specified");
|
|
1137
1137
|
if (this.decimalCoordinates && this.decimalCoordinates.trim()) {
|
|
@@ -1140,35 +1140,35 @@ function Wn(i) {
|
|
|
1140
1140
|
i == "DD" && (d = `${r}° ${l}, ${c}° ${o}`);
|
|
1141
1141
|
const u = Math.floor(r), f = Math.floor(c), h = (r - u) * 60, v = (c - f) * 60;
|
|
1142
1142
|
if (i == "DM") {
|
|
1143
|
-
let y =
|
|
1143
|
+
let y = qt(h, 3).toFixed(3).padStart(6, "0"), E = qt(v, 3).toFixed(3).padStart(6, "0");
|
|
1144
1144
|
y.endsWith(".000") && E.endsWith(".000") && (y = y.replace(/\.000$/, ""), E = E.replace(/\.000$/, "")), d = `${u}° ${y}' ${l}, ${f}° ${E}' ${o}`;
|
|
1145
1145
|
}
|
|
1146
1146
|
if (i == "DMS") {
|
|
1147
1147
|
const y = Math.floor(h), E = Math.floor(v);
|
|
1148
|
-
let
|
|
1148
|
+
let O = ((h - y) * 60).toFixed(1).padStart(4, "0"), p = ((v - E) * 60).toFixed(1).padStart(4, "0");
|
|
1149
1149
|
const S = y.toString().padStart(2, "0"), W = E.toString().padStart(2, "0");
|
|
1150
|
-
|
|
1150
|
+
O.endsWith(".0") && p.endsWith(".0") && (O = O.replace(/\.0$/, ""), p = p.replace(/\.0$/, "")), d = `${u}° ${S}' ${O}" ${l}, ${f}° ${W}' ${p}" ${o}`;
|
|
1151
1151
|
}
|
|
1152
1152
|
return d;
|
|
1153
1153
|
} else
|
|
1154
1154
|
throw new Error("no decimal coordinates to convert");
|
|
1155
1155
|
}
|
|
1156
|
-
function
|
|
1156
|
+
function qt(i, e) {
|
|
1157
1157
|
const t = Math.pow(10, e);
|
|
1158
1158
|
return Math.round((i + Number.EPSILON) * t) / t;
|
|
1159
1159
|
}
|
|
1160
|
-
function
|
|
1160
|
+
function wt(i, e) {
|
|
1161
1161
|
e || (e = 5), i = i.replace(/\s+/g, " ").trim();
|
|
1162
1162
|
let t = null, n = null, r = "", c = "", l = null, o = [], d = !1;
|
|
1163
|
-
if (
|
|
1163
|
+
if (Tn.test(i))
|
|
1164
1164
|
throw new Error("invalid coordinate value");
|
|
1165
|
-
if (
|
|
1166
|
-
if (o =
|
|
1165
|
+
if (Ft.test(i))
|
|
1166
|
+
if (o = Ft.exec(i), d = Ie(o), d)
|
|
1167
1167
|
t = Math.abs(o[1]) + o[2] / 60, Number(o[1]) < 0 && (t *= -1), n = Math.abs(o[3]) + o[4] / 60, Number(o[3]) < 0 && (n *= -1), l = "DM";
|
|
1168
1168
|
else
|
|
1169
1169
|
throw new Error("invalid coordinate format");
|
|
1170
|
-
else if (
|
|
1171
|
-
if (o =
|
|
1170
|
+
else if (Gt.test(i))
|
|
1171
|
+
if (o = Gt.exec(i), d = Ie(o), d) {
|
|
1172
1172
|
if (t = o[2], n = o[6], t.includes(",") && (t = t.replace(",", ".")), n.includes(",") && (n = n.replace(",", ".")), l = "DD", Number(Math.round(t)) == Number(t))
|
|
1173
1173
|
throw new Error("integer only coordinate provided");
|
|
1174
1174
|
if (Number(Math.round(n)) == Number(n))
|
|
@@ -1176,18 +1176,18 @@ function St(i, e) {
|
|
|
1176
1176
|
o[1] ? (r = o[1], c = o[5]) : o[4] && (r = o[4], c = o[8]);
|
|
1177
1177
|
} else
|
|
1178
1178
|
throw new Error("invalid decimal coordinate format");
|
|
1179
|
-
else if (
|
|
1180
|
-
if (o =
|
|
1179
|
+
else if (jt.test(i))
|
|
1180
|
+
if (o = jt.exec(i), d = Ie(o), d)
|
|
1181
1181
|
t = Math.abs(parseInt(o[2])), o[4] && (t += o[4] / 60, l = "DM"), o[6] && (t += o[6].replace(",", ".") / 3600, l = "DMS"), parseInt(o[2]) < 0 && (t = -1 * t), n = Math.abs(parseInt(o[9])), o[11] && (n += o[11] / 60), o[13] && (n += o[13].replace(",", ".") / 3600), parseInt(o[9]) < 0 && (n = -1 * n), o[1] ? (r = o[1], c = o[8]) : o[7] && (r = o[7], c = o[14]);
|
|
1182
1182
|
else
|
|
1183
1183
|
throw new Error("invalid DMS coordinates format");
|
|
1184
|
-
else if (
|
|
1185
|
-
if (o =
|
|
1184
|
+
else if (Ht.test(i))
|
|
1185
|
+
if (o = Ht.exec(i), d = Ie(o), d)
|
|
1186
1186
|
t = Math.abs(parseInt(o[2])), o[4] && (t += o[4] / 60, l = "DM"), o[6] && (t += o[6] / 3600, l = "DMS"), parseInt(o[2]) < 0 && (t = -1 * t), n = Math.abs(parseInt(o[10])), o[12] && (n += o[12] / 60), o[14] && (n += o[14] / 3600), parseInt(o[10]) < 0 && (n = -1 * n), o[1] ? (r = o[1], c = o[9]) : o[8] && (r = o[8], c = o[16]);
|
|
1187
1187
|
else
|
|
1188
1188
|
throw new Error("invalid DMS coordinates format");
|
|
1189
|
-
else if (
|
|
1190
|
-
if (o =
|
|
1189
|
+
else if (Zt.test(i)) {
|
|
1190
|
+
if (o = Zt.exec(i), d = Ie(o), o.filter((u) => u).length <= 5)
|
|
1191
1191
|
throw new Error("invalid coordinates format");
|
|
1192
1192
|
if (d)
|
|
1193
1193
|
t = Math.abs(parseInt(o[2])), o[4] && (t += o[4].replace(",", ".") / 60, l = "DM"), o[6] && (t += o[6].replace(",", ".") / 3600, l = "DMS"), parseInt(o[2]) < 0 && (t = -1 * t), n = Math.abs(parseInt(o[10])), o[12] && (n += o[12].replace(",", ".") / 60), o[14] && (n += o[14].replace(",", ".") / 3600), parseInt(o[10]) < 0 && (n = -1 * n), o[1] ? (r = o[1], c = o[9]) : o[8] && (r = o[8], c = o[16]);
|
|
@@ -1225,11 +1225,11 @@ function St(i, e) {
|
|
|
1225
1225
|
h = f.substring(0, W).trim(), v = f.substring(W + 1).trim();
|
|
1226
1226
|
}
|
|
1227
1227
|
}
|
|
1228
|
-
const
|
|
1229
|
-
if (
|
|
1228
|
+
const O = h.split(".");
|
|
1229
|
+
if (O.length == 2 && O[1] == 0 && O[1].length != 2)
|
|
1230
1230
|
throw new Error("invalid coordinates format");
|
|
1231
|
-
const
|
|
1232
|
-
if (
|
|
1231
|
+
const p = v.split(".");
|
|
1232
|
+
if (p.length == 2 && p[1] == 0 && p[1].length != 2)
|
|
1233
1233
|
throw new Error("invalid coordinates format");
|
|
1234
1234
|
if (/^\d+$/.test(h) || /^\d+$/.test(v))
|
|
1235
1235
|
throw new Error("degree only coordinate/s provided");
|
|
@@ -1241,13 +1241,13 @@ function St(i, e) {
|
|
|
1241
1241
|
decimalLongitude: n,
|
|
1242
1242
|
decimalCoordinates: `${t},${n}`,
|
|
1243
1243
|
originalFormat: l,
|
|
1244
|
-
closeEnough:
|
|
1245
|
-
toCoordinateFormat:
|
|
1244
|
+
closeEnough: Nn,
|
|
1245
|
+
toCoordinateFormat: kn
|
|
1246
1246
|
});
|
|
1247
1247
|
} else
|
|
1248
1248
|
throw new Error("coordinates pattern match failed");
|
|
1249
1249
|
}
|
|
1250
|
-
function
|
|
1250
|
+
function Ie(i) {
|
|
1251
1251
|
if (!isNaN(i[0]))
|
|
1252
1252
|
return !1;
|
|
1253
1253
|
const e = [...i];
|
|
@@ -1266,28 +1266,28 @@ function Pe(i) {
|
|
|
1266
1266
|
}
|
|
1267
1267
|
return !0;
|
|
1268
1268
|
}
|
|
1269
|
-
function
|
|
1269
|
+
function Qt(i, e) {
|
|
1270
1270
|
const t = Math.abs(i - e);
|
|
1271
1271
|
return Number(t.toFixed(6)) <= 1e-5;
|
|
1272
1272
|
}
|
|
1273
|
-
function
|
|
1273
|
+
function Nn(i) {
|
|
1274
1274
|
if (!i)
|
|
1275
1275
|
throw new Error("coords must be provided");
|
|
1276
1276
|
if (i.includes(",")) {
|
|
1277
1277
|
const e = i.split(",");
|
|
1278
1278
|
if (Number(e[0]) == NaN || Number(e[1]) == NaN)
|
|
1279
1279
|
throw new Error("coords are not valid decimals");
|
|
1280
|
-
return
|
|
1280
|
+
return Qt(this.decimalLatitude, Number(e[0])) && Qt(this.decimalLongitude, e[1]);
|
|
1281
1281
|
} else
|
|
1282
1282
|
throw new Error("coords being tested must be separated by a comma");
|
|
1283
1283
|
}
|
|
1284
|
-
const
|
|
1284
|
+
const Mn = Object.freeze({
|
|
1285
1285
|
DMS: "DMS",
|
|
1286
1286
|
DM: "DM",
|
|
1287
1287
|
DD: "DD"
|
|
1288
1288
|
});
|
|
1289
|
-
|
|
1290
|
-
const
|
|
1289
|
+
wt.to = Mn;
|
|
1290
|
+
const Cn = [
|
|
1291
1291
|
{
|
|
1292
1292
|
verbatimCoordinates: "40.123, -74.123",
|
|
1293
1293
|
verbatimLatitude: "40.123",
|
|
@@ -1428,10 +1428,10 @@ const zn = [
|
|
|
1428
1428
|
verbatimLatitude: "40 7 22.8",
|
|
1429
1429
|
verbatimLongitude: "-74 7 22.8"
|
|
1430
1430
|
}
|
|
1431
|
-
],
|
|
1431
|
+
], Wn = {
|
|
1432
1432
|
decimalLatitude: 40.123,
|
|
1433
1433
|
decimalLongitude: -74.123
|
|
1434
|
-
},
|
|
1434
|
+
}, On = [
|
|
1435
1435
|
{
|
|
1436
1436
|
verbatimCoordinates: `50°4'17.698"south, 14°24'2.826"east`,
|
|
1437
1437
|
verbatimLatitude: `50°4'17.698"south`,
|
|
@@ -1516,7 +1516,7 @@ const zn = [
|
|
|
1516
1516
|
decimalLatitude: -18.4,
|
|
1517
1517
|
decimalLongitude: 22.75
|
|
1518
1518
|
}
|
|
1519
|
-
],
|
|
1519
|
+
], Rn = [
|
|
1520
1520
|
{
|
|
1521
1521
|
verbatimCoordinates: "10.432342S 10.6345345E",
|
|
1522
1522
|
verbatimLatitude: "10.432342S",
|
|
@@ -1651,49 +1651,49 @@ const zn = [
|
|
|
1651
1651
|
decimalLongitude: 18.33453
|
|
1652
1652
|
}
|
|
1653
1653
|
];
|
|
1654
|
-
function
|
|
1654
|
+
function zn() {
|
|
1655
1655
|
const i = [];
|
|
1656
|
-
return
|
|
1657
|
-
e.decimalLatitude ? i.push(e) : i.push({ ...e, ...
|
|
1658
|
-
}), [...i, ...
|
|
1659
|
-
}
|
|
1660
|
-
const
|
|
1661
|
-
|
|
1662
|
-
const
|
|
1663
|
-
function
|
|
1656
|
+
return Cn.forEach((e) => {
|
|
1657
|
+
e.decimalLatitude ? i.push(e) : i.push({ ...e, ...Wn });
|
|
1658
|
+
}), [...i, ...On, ...Rn];
|
|
1659
|
+
}
|
|
1660
|
+
const Un = zn();
|
|
1661
|
+
wt.formats = Un.map((i) => i.verbatimCoordinates);
|
|
1662
|
+
const Dn = wt;
|
|
1663
|
+
function Kt(i, e, t) {
|
|
1664
1664
|
const n = i.slice();
|
|
1665
|
-
return n[
|
|
1665
|
+
return n[97] = e[t], n[99] = t, n;
|
|
1666
1666
|
}
|
|
1667
|
-
function
|
|
1667
|
+
function Vt(i) {
|
|
1668
1668
|
let e, t;
|
|
1669
|
-
return e = new
|
|
1669
|
+
return e = new Ln({}), {
|
|
1670
1670
|
c() {
|
|
1671
|
-
|
|
1671
|
+
ve(e.$$.fragment);
|
|
1672
1672
|
},
|
|
1673
1673
|
m(n, r) {
|
|
1674
|
-
|
|
1674
|
+
de(e, n, r), t = !0;
|
|
1675
1675
|
},
|
|
1676
1676
|
i(n) {
|
|
1677
|
-
t || (
|
|
1677
|
+
t || (G(e.$$.fragment, n), t = !0);
|
|
1678
1678
|
},
|
|
1679
1679
|
o(n) {
|
|
1680
|
-
|
|
1680
|
+
q(e.$$.fragment, n), t = !1;
|
|
1681
1681
|
},
|
|
1682
1682
|
d(n) {
|
|
1683
|
-
|
|
1683
|
+
fe(e, n);
|
|
1684
1684
|
}
|
|
1685
1685
|
};
|
|
1686
1686
|
}
|
|
1687
|
-
function
|
|
1687
|
+
function Yt(i) {
|
|
1688
1688
|
let e, t, n, r, c;
|
|
1689
|
-
return t = new
|
|
1689
|
+
return t = new yn({}), {
|
|
1690
1690
|
c() {
|
|
1691
|
-
e = U("button"),
|
|
1691
|
+
e = U("button"), ve(t.$$.fragment), a(e, "type", "button"), a(
|
|
1692
1692
|
e,
|
|
1693
1693
|
"title",
|
|
1694
1694
|
/*reverseButtonTitle*/
|
|
1695
1695
|
i[10]
|
|
1696
|
-
), a(e, "class", "svelte-bz0zu3"),
|
|
1696
|
+
), a(e, "class", "svelte-bz0zu3"), Ce(
|
|
1697
1697
|
e,
|
|
1698
1698
|
"active",
|
|
1699
1699
|
/*reverseActive*/
|
|
@@ -1701,11 +1701,11 @@ function xt(i) {
|
|
|
1701
1701
|
);
|
|
1702
1702
|
},
|
|
1703
1703
|
m(l, o) {
|
|
1704
|
-
I(l, e, o),
|
|
1704
|
+
I(l, e, o), de(t, e, null), n = !0, r || (c = Z(
|
|
1705
1705
|
e,
|
|
1706
1706
|
"click",
|
|
1707
1707
|
/*click_handler_3*/
|
|
1708
|
-
i[
|
|
1708
|
+
i[79]
|
|
1709
1709
|
), r = !0);
|
|
1710
1710
|
},
|
|
1711
1711
|
p(l, o) {
|
|
@@ -1716,7 +1716,7 @@ function xt(i) {
|
|
|
1716
1716
|
/*reverseButtonTitle*/
|
|
1717
1717
|
l[10]
|
|
1718
1718
|
), (!n || o[0] & /*reverseActive*/
|
|
1719
|
-
1) &&
|
|
1719
|
+
1) && Ce(
|
|
1720
1720
|
e,
|
|
1721
1721
|
"active",
|
|
1722
1722
|
/*reverseActive*/
|
|
@@ -1724,30 +1724,30 @@ function xt(i) {
|
|
|
1724
1724
|
);
|
|
1725
1725
|
},
|
|
1726
1726
|
i(l) {
|
|
1727
|
-
n || (
|
|
1727
|
+
n || (G(t.$$.fragment, l), n = !0);
|
|
1728
1728
|
},
|
|
1729
1729
|
o(l) {
|
|
1730
|
-
|
|
1730
|
+
q(t.$$.fragment, l), n = !1;
|
|
1731
1731
|
},
|
|
1732
1732
|
d(l) {
|
|
1733
|
-
l && D(e),
|
|
1733
|
+
l && D(e), fe(t), r = !1, c();
|
|
1734
1734
|
}
|
|
1735
1735
|
};
|
|
1736
1736
|
}
|
|
1737
|
-
function
|
|
1738
|
-
let e, t = [], n = /* @__PURE__ */ new Map(), r, c, l, o =
|
|
1737
|
+
function In(i) {
|
|
1738
|
+
let e, t = [], n = /* @__PURE__ */ new Map(), r, c, l, o = At(
|
|
1739
1739
|
/*listFeatures*/
|
|
1740
1740
|
i[13]
|
|
1741
1741
|
);
|
|
1742
1742
|
const d = (u) => (
|
|
1743
1743
|
/*feature*/
|
|
1744
|
-
u[
|
|
1745
|
-
(u[
|
|
1746
|
-
u[
|
|
1744
|
+
u[97].id + /*feature*/
|
|
1745
|
+
(u[97].address ? "," + /*feature*/
|
|
1746
|
+
u[97].address : "")
|
|
1747
1747
|
);
|
|
1748
1748
|
for (let u = 0; u < o.length; u += 1) {
|
|
1749
|
-
let f =
|
|
1750
|
-
n.set(h, t[u] =
|
|
1749
|
+
let f = Kt(i, o, u), h = d(f);
|
|
1750
|
+
n.set(h, t[u] = Xt(h, f));
|
|
1751
1751
|
}
|
|
1752
1752
|
return {
|
|
1753
1753
|
c() {
|
|
@@ -1761,19 +1761,19 @@ function Gn(i) {
|
|
|
1761
1761
|
for (let h = 0; h < t.length; h += 1)
|
|
1762
1762
|
t[h] && t[h].m(e, null);
|
|
1763
1763
|
r = !0, c || (l = [
|
|
1764
|
-
|
|
1764
|
+
Z(
|
|
1765
1765
|
e,
|
|
1766
1766
|
"mouseleave",
|
|
1767
1767
|
/*handleMouseLeave*/
|
|
1768
1768
|
i[27]
|
|
1769
1769
|
),
|
|
1770
|
-
|
|
1770
|
+
Z(
|
|
1771
1771
|
e,
|
|
1772
1772
|
"blur",
|
|
1773
1773
|
/*blur_handler_1*/
|
|
1774
|
-
i[
|
|
1774
|
+
i[83]
|
|
1775
1775
|
),
|
|
1776
|
-
|
|
1776
|
+
Z(
|
|
1777
1777
|
e,
|
|
1778
1778
|
"keydown",
|
|
1779
1779
|
/*handleKeyDown*/
|
|
@@ -1783,67 +1783,67 @@ function Gn(i) {
|
|
|
1783
1783
|
},
|
|
1784
1784
|
p(u, f) {
|
|
1785
1785
|
f[0] & /*listFeatures, showPlaceType, selectedItemIndex, picked, missingIconsCache, iconsBaseUrl, handleMouseEnter, pick*/
|
|
1786
|
-
102823936 && (o =
|
|
1786
|
+
102823936 && (o = At(
|
|
1787
1787
|
/*listFeatures*/
|
|
1788
1788
|
u[13]
|
|
1789
|
-
),
|
|
1789
|
+
), xe(), t = $i(t, f, d, 1, u, o, n, e, xi, Xt, null, Kt), $e());
|
|
1790
1790
|
},
|
|
1791
1791
|
i(u) {
|
|
1792
1792
|
if (!r) {
|
|
1793
1793
|
for (let f = 0; f < o.length; f += 1)
|
|
1794
|
-
|
|
1794
|
+
G(t[f]);
|
|
1795
1795
|
r = !0;
|
|
1796
1796
|
}
|
|
1797
1797
|
},
|
|
1798
1798
|
o(u) {
|
|
1799
1799
|
for (let f = 0; f < t.length; f += 1)
|
|
1800
|
-
|
|
1800
|
+
q(t[f]);
|
|
1801
1801
|
r = !1;
|
|
1802
1802
|
},
|
|
1803
1803
|
d(u) {
|
|
1804
1804
|
u && D(e);
|
|
1805
1805
|
for (let f = 0; f < t.length; f += 1)
|
|
1806
1806
|
t[f].d();
|
|
1807
|
-
c = !1,
|
|
1807
|
+
c = !1, me(l);
|
|
1808
1808
|
}
|
|
1809
1809
|
};
|
|
1810
1810
|
}
|
|
1811
|
-
function
|
|
1811
|
+
function An(i) {
|
|
1812
1812
|
let e, t, n, r, c, l;
|
|
1813
|
-
return t = new
|
|
1813
|
+
return t = new si({}), {
|
|
1814
1814
|
c() {
|
|
1815
|
-
e = U("div"),
|
|
1815
|
+
e = U("div"), ve(t.$$.fragment), n = $(), r = U("div"), c = be(
|
|
1816
1816
|
/*noResultsMessage*/
|
|
1817
1817
|
i[8]
|
|
1818
1818
|
), a(r, "class", "svelte-bz0zu3"), a(e, "class", "no-results svelte-bz0zu3");
|
|
1819
1819
|
},
|
|
1820
1820
|
m(o, d) {
|
|
1821
|
-
I(o, e, d),
|
|
1821
|
+
I(o, e, d), de(t, e, null), M(e, n), M(e, r), M(r, c), l = !0;
|
|
1822
1822
|
},
|
|
1823
1823
|
p(o, d) {
|
|
1824
1824
|
(!l || d[0] & /*noResultsMessage*/
|
|
1825
|
-
256) &&
|
|
1825
|
+
256) && Pe(
|
|
1826
1826
|
c,
|
|
1827
1827
|
/*noResultsMessage*/
|
|
1828
1828
|
o[8]
|
|
1829
1829
|
);
|
|
1830
1830
|
},
|
|
1831
1831
|
i(o) {
|
|
1832
|
-
l || (
|
|
1832
|
+
l || (G(t.$$.fragment, o), l = !0);
|
|
1833
1833
|
},
|
|
1834
1834
|
o(o) {
|
|
1835
|
-
|
|
1835
|
+
q(t.$$.fragment, o), l = !1;
|
|
1836
1836
|
},
|
|
1837
1837
|
d(o) {
|
|
1838
|
-
o && D(e),
|
|
1838
|
+
o && D(e), fe(t);
|
|
1839
1839
|
}
|
|
1840
1840
|
};
|
|
1841
1841
|
}
|
|
1842
|
-
function
|
|
1842
|
+
function Pn(i) {
|
|
1843
1843
|
let e = "", t;
|
|
1844
1844
|
return {
|
|
1845
1845
|
c() {
|
|
1846
|
-
t =
|
|
1846
|
+
t = be(e);
|
|
1847
1847
|
},
|
|
1848
1848
|
m(n, r) {
|
|
1849
1849
|
I(n, t, r);
|
|
@@ -1856,68 +1856,68 @@ function Fn(i) {
|
|
|
1856
1856
|
}
|
|
1857
1857
|
};
|
|
1858
1858
|
}
|
|
1859
|
-
function
|
|
1859
|
+
function Bn(i) {
|
|
1860
1860
|
let e, t, n, r, c, l, o, d, u, f, h;
|
|
1861
|
-
return t = new
|
|
1861
|
+
return t = new si({}), d = new oi({}), {
|
|
1862
1862
|
c() {
|
|
1863
|
-
e = U("div"),
|
|
1863
|
+
e = U("div"), ve(t.$$.fragment), n = $(), r = U("div"), c = be(
|
|
1864
1864
|
/*errorMessage*/
|
|
1865
1865
|
i[7]
|
|
1866
|
-
), l =
|
|
1866
|
+
), l = $(), o = U("button"), ve(d.$$.fragment), a(r, "class", "svelte-bz0zu3"), a(o, "class", "svelte-bz0zu3"), a(e, "class", "error svelte-bz0zu3");
|
|
1867
1867
|
},
|
|
1868
1868
|
m(v, y) {
|
|
1869
|
-
I(v, e, y),
|
|
1869
|
+
I(v, e, y), de(t, e, null), M(e, n), M(e, r), M(r, c), M(e, l), M(e, o), de(d, o, null), u = !0, f || (h = Z(
|
|
1870
1870
|
o,
|
|
1871
1871
|
"click",
|
|
1872
1872
|
/*click_handler_4*/
|
|
1873
|
-
i[
|
|
1873
|
+
i[80]
|
|
1874
1874
|
), f = !0);
|
|
1875
1875
|
},
|
|
1876
1876
|
p(v, y) {
|
|
1877
1877
|
(!u || y[0] & /*errorMessage*/
|
|
1878
|
-
128) &&
|
|
1878
|
+
128) && Pe(
|
|
1879
1879
|
c,
|
|
1880
1880
|
/*errorMessage*/
|
|
1881
1881
|
v[7]
|
|
1882
1882
|
);
|
|
1883
1883
|
},
|
|
1884
1884
|
i(v) {
|
|
1885
|
-
u || (
|
|
1885
|
+
u || (G(t.$$.fragment, v), G(d.$$.fragment, v), u = !0);
|
|
1886
1886
|
},
|
|
1887
1887
|
o(v) {
|
|
1888
|
-
|
|
1888
|
+
q(t.$$.fragment, v), q(d.$$.fragment, v), u = !1;
|
|
1889
1889
|
},
|
|
1890
1890
|
d(v) {
|
|
1891
|
-
v && D(e),
|
|
1891
|
+
v && D(e), fe(t), fe(d), f = !1, h();
|
|
1892
1892
|
}
|
|
1893
1893
|
};
|
|
1894
1894
|
}
|
|
1895
|
-
function
|
|
1895
|
+
function Xt(i, e) {
|
|
1896
1896
|
var o;
|
|
1897
1897
|
let t, n, r;
|
|
1898
1898
|
function c() {
|
|
1899
1899
|
return (
|
|
1900
1900
|
/*mouseenter_handler*/
|
|
1901
|
-
e[
|
|
1901
|
+
e[81](
|
|
1902
1902
|
/*i*/
|
|
1903
|
-
e[
|
|
1903
|
+
e[99]
|
|
1904
1904
|
)
|
|
1905
1905
|
);
|
|
1906
1906
|
}
|
|
1907
1907
|
function l() {
|
|
1908
1908
|
return (
|
|
1909
1909
|
/*select_handler*/
|
|
1910
|
-
e[
|
|
1910
|
+
e[82](
|
|
1911
1911
|
/*feature*/
|
|
1912
|
-
e[
|
|
1912
|
+
e[97]
|
|
1913
1913
|
)
|
|
1914
1914
|
);
|
|
1915
1915
|
}
|
|
1916
|
-
return n = new
|
|
1916
|
+
return n = new bn({
|
|
1917
1917
|
props: {
|
|
1918
1918
|
feature: (
|
|
1919
1919
|
/*feature*/
|
|
1920
|
-
e[
|
|
1920
|
+
e[97]
|
|
1921
1921
|
),
|
|
1922
1922
|
showPlaceType: (
|
|
1923
1923
|
/*showPlaceType*/
|
|
@@ -1926,10 +1926,10 @@ function $t(i, e) {
|
|
|
1926
1926
|
style: (
|
|
1927
1927
|
/*selectedItemIndex*/
|
|
1928
1928
|
e[15] === /*i*/
|
|
1929
|
-
e[
|
|
1929
|
+
e[99] ? "selected" : (
|
|
1930
1930
|
/*picked*/
|
|
1931
1931
|
((o = e[14]) == null ? void 0 : o.id) === /*feature*/
|
|
1932
|
-
e[
|
|
1932
|
+
e[97].id ? "picked" : "default"
|
|
1933
1933
|
)
|
|
1934
1934
|
),
|
|
1935
1935
|
missingIconsCache: (
|
|
@@ -1945,10 +1945,10 @@ function $t(i, e) {
|
|
|
1945
1945
|
key: i,
|
|
1946
1946
|
first: null,
|
|
1947
1947
|
c() {
|
|
1948
|
-
t =
|
|
1948
|
+
t = ji(), ve(n.$$.fragment), this.first = t;
|
|
1949
1949
|
},
|
|
1950
1950
|
m(d, u) {
|
|
1951
|
-
I(d, t, u),
|
|
1951
|
+
I(d, t, u), de(n, d, u), r = !0;
|
|
1952
1952
|
},
|
|
1953
1953
|
p(d, u) {
|
|
1954
1954
|
var h;
|
|
@@ -1956,70 +1956,70 @@ function $t(i, e) {
|
|
|
1956
1956
|
const f = {};
|
|
1957
1957
|
u[0] & /*listFeatures*/
|
|
1958
1958
|
8192 && (f.feature = /*feature*/
|
|
1959
|
-
e[
|
|
1959
|
+
e[97]), u[0] & /*showPlaceType*/
|
|
1960
1960
|
2048 && (f.showPlaceType = /*showPlaceType*/
|
|
1961
1961
|
e[11]), u[0] & /*selectedItemIndex, listFeatures, picked*/
|
|
1962
1962
|
57344 && (f.style = /*selectedItemIndex*/
|
|
1963
1963
|
e[15] === /*i*/
|
|
1964
|
-
e[
|
|
1964
|
+
e[99] ? "selected" : (
|
|
1965
1965
|
/*picked*/
|
|
1966
1966
|
((h = e[14]) == null ? void 0 : h.id) === /*feature*/
|
|
1967
|
-
e[
|
|
1967
|
+
e[97].id ? "picked" : "default"
|
|
1968
1968
|
)), u[0] & /*iconsBaseUrl*/
|
|
1969
1969
|
4096 && (f.iconsBaseUrl = /*iconsBaseUrl*/
|
|
1970
1970
|
e[12]), n.$set(f);
|
|
1971
1971
|
},
|
|
1972
1972
|
i(d) {
|
|
1973
|
-
r || (
|
|
1973
|
+
r || (G(n.$$.fragment, d), r = !0);
|
|
1974
1974
|
},
|
|
1975
1975
|
o(d) {
|
|
1976
|
-
|
|
1976
|
+
q(n.$$.fragment, d), r = !1;
|
|
1977
1977
|
},
|
|
1978
1978
|
d(d) {
|
|
1979
|
-
d && D(t),
|
|
1979
|
+
d && D(t), fe(n, d);
|
|
1980
1980
|
}
|
|
1981
1981
|
};
|
|
1982
1982
|
}
|
|
1983
|
-
function
|
|
1984
|
-
let e, t, n, r, c, l, o, d, u, f, h, v, y, E,
|
|
1985
|
-
c = new
|
|
1983
|
+
function Fn(i) {
|
|
1984
|
+
let e, t, n, r, c, l, o, d, u, f, h, v, y, E, O, p, S, W, C, H, X, Q = !1;
|
|
1985
|
+
c = new En({}), h = new oi({});
|
|
1986
1986
|
let w = (
|
|
1987
1987
|
/*abortController*/
|
|
1988
|
-
i[20] &&
|
|
1988
|
+
i[20] && Vt()
|
|
1989
1989
|
), g = (
|
|
1990
1990
|
/*enableReverse*/
|
|
1991
|
-
i[6] === "button" &&
|
|
1991
|
+
i[6] === "button" && Yt(i)
|
|
1992
1992
|
);
|
|
1993
1993
|
const N = (
|
|
1994
1994
|
/*#slots*/
|
|
1995
|
-
i[
|
|
1996
|
-
), k =
|
|
1995
|
+
i[70].default
|
|
1996
|
+
), k = Pi(
|
|
1997
1997
|
N,
|
|
1998
1998
|
i,
|
|
1999
1999
|
/*$$scope*/
|
|
2000
|
-
i[
|
|
2000
|
+
i[69],
|
|
2001
2001
|
null
|
|
2002
|
-
), L = [
|
|
2003
|
-
function
|
|
2004
|
-
var
|
|
2002
|
+
), L = [Bn, Pn, An, In], m = [];
|
|
2003
|
+
function Le(_, B) {
|
|
2004
|
+
var oe, ee;
|
|
2005
2005
|
return (
|
|
2006
2006
|
/*error*/
|
|
2007
2007
|
_[19] ? 0 : !/*focusedDelayed*/
|
|
2008
2008
|
_[16] && !/*keepListOpen*/
|
|
2009
2009
|
_[4] ? 1 : (
|
|
2010
2010
|
/*listFeatures*/
|
|
2011
|
-
((
|
|
2011
|
+
((oe = _[13]) == null ? void 0 : oe.length) === 0 ? 2 : (
|
|
2012
2012
|
/*listFeatures*/
|
|
2013
|
-
(
|
|
2013
|
+
(ee = _[13]) != null && ee.length && /*focusedDelayed*/
|
|
2014
2014
|
(_[16] || /*keepListOpen*/
|
|
2015
2015
|
_[4]) ? 3 : -1
|
|
2016
2016
|
)
|
|
2017
2017
|
)
|
|
2018
2018
|
);
|
|
2019
2019
|
}
|
|
2020
|
-
return ~(
|
|
2020
|
+
return ~(p = Le(i)) && (S = m[p] = L[p](i)), {
|
|
2021
2021
|
c() {
|
|
2022
|
-
e =
|
|
2022
|
+
e = $(), t = U("form"), n = U("div"), r = U("button"), ve(c.$$.fragment), l = $(), o = U("input"), d = $(), u = U("div"), f = U("button"), ve(h.$$.fragment), v = $(), w && w.c(), y = $(), g && g.c(), E = $(), k && k.c(), O = $(), S && S.c(), a(r, "class", "search-button svelte-bz0zu3"), a(r, "type", "button"), a(
|
|
2023
2023
|
o,
|
|
2024
2024
|
"placeholder",
|
|
2025
2025
|
/*placeholder*/
|
|
@@ -2034,15 +2034,15 @@ function Zn(i) {
|
|
|
2034
2034
|
"title",
|
|
2035
2035
|
/*clearButtonTitle*/
|
|
2036
2036
|
i[3]
|
|
2037
|
-
), a(f, "class", "svelte-bz0zu3"), a(u, "class", "clear-button-container svelte-bz0zu3"),
|
|
2037
|
+
), a(f, "class", "svelte-bz0zu3"), a(u, "class", "clear-button-container svelte-bz0zu3"), Ce(
|
|
2038
2038
|
u,
|
|
2039
2039
|
"displayable",
|
|
2040
2040
|
/*searchValue*/
|
|
2041
2041
|
i[1] !== ""
|
|
2042
|
-
), a(n, "class", "input-group svelte-bz0zu3"), a(t, "class", W =
|
|
2042
|
+
), a(n, "class", "input-group svelte-bz0zu3"), a(t, "class", W = et(
|
|
2043
2043
|
/*className*/
|
|
2044
2044
|
i[2]
|
|
2045
|
-
) + " svelte-bz0zu3"),
|
|
2045
|
+
) + " svelte-bz0zu3"), Ce(
|
|
2046
2046
|
t,
|
|
2047
2047
|
"can-collapse",
|
|
2048
2048
|
/*collapsed*/
|
|
@@ -2051,66 +2051,66 @@ function Zn(i) {
|
|
|
2051
2051
|
);
|
|
2052
2052
|
},
|
|
2053
2053
|
m(_, B) {
|
|
2054
|
-
I(_, e, B), I(_, t, B), M(t, n), M(n, r),
|
|
2054
|
+
I(_, e, B), I(_, t, B), M(t, n), M(n, r), de(c, r, null), M(n, l), M(n, o), i[72](o), Dt(
|
|
2055
2055
|
o,
|
|
2056
2056
|
/*searchValue*/
|
|
2057
2057
|
i[1]
|
|
2058
|
-
), M(n, d), M(n, u), M(u, f),
|
|
2059
|
-
|
|
2058
|
+
), M(n, d), M(n, u), M(u, f), de(h, f, null), M(u, v), w && w.m(u, null), M(n, y), g && g.m(n, null), M(n, E), k && k.m(n, null), M(t, O), ~p && m[p].m(t, null), C = !0, H || (X = [
|
|
2059
|
+
Z(
|
|
2060
2060
|
r,
|
|
2061
2061
|
"click",
|
|
2062
2062
|
/*click_handler*/
|
|
2063
|
-
i[
|
|
2063
|
+
i[71]
|
|
2064
2064
|
),
|
|
2065
|
-
|
|
2065
|
+
Z(
|
|
2066
2066
|
o,
|
|
2067
2067
|
"input",
|
|
2068
2068
|
/*input_1_input_handler*/
|
|
2069
|
-
i[
|
|
2069
|
+
i[73]
|
|
2070
2070
|
),
|
|
2071
|
-
|
|
2071
|
+
Z(
|
|
2072
2072
|
o,
|
|
2073
2073
|
"focus",
|
|
2074
2074
|
/*focus_handler*/
|
|
2075
|
-
i[
|
|
2075
|
+
i[74]
|
|
2076
2076
|
),
|
|
2077
|
-
|
|
2077
|
+
Z(
|
|
2078
2078
|
o,
|
|
2079
2079
|
"blur",
|
|
2080
2080
|
/*blur_handler*/
|
|
2081
|
-
i[
|
|
2081
|
+
i[75]
|
|
2082
2082
|
),
|
|
2083
|
-
|
|
2083
|
+
Z(
|
|
2084
2084
|
o,
|
|
2085
2085
|
"click",
|
|
2086
2086
|
/*click_handler_1*/
|
|
2087
|
-
i[
|
|
2087
|
+
i[76]
|
|
2088
2088
|
),
|
|
2089
|
-
|
|
2089
|
+
Z(
|
|
2090
2090
|
o,
|
|
2091
2091
|
"keydown",
|
|
2092
2092
|
/*handleKeyDown*/
|
|
2093
2093
|
i[23]
|
|
2094
2094
|
),
|
|
2095
|
-
|
|
2095
|
+
Z(
|
|
2096
2096
|
o,
|
|
2097
2097
|
"input",
|
|
2098
2098
|
/*handleInput*/
|
|
2099
2099
|
i[24]
|
|
2100
2100
|
),
|
|
2101
|
-
|
|
2101
|
+
Z(
|
|
2102
2102
|
o,
|
|
2103
2103
|
"change",
|
|
2104
2104
|
/*change_handler*/
|
|
2105
|
-
i[
|
|
2105
|
+
i[77]
|
|
2106
2106
|
),
|
|
2107
|
-
|
|
2107
|
+
Z(
|
|
2108
2108
|
f,
|
|
2109
2109
|
"click",
|
|
2110
2110
|
/*click_handler_2*/
|
|
2111
|
-
i[
|
|
2111
|
+
i[78]
|
|
2112
2112
|
),
|
|
2113
|
-
|
|
2113
|
+
Z(t, "submit", Hi(
|
|
2114
2114
|
/*handleSubmit*/
|
|
2115
2115
|
i[22]
|
|
2116
2116
|
))
|
|
@@ -2131,7 +2131,7 @@ function Zn(i) {
|
|
|
2131
2131
|
_[9]
|
|
2132
2132
|
), B[0] & /*searchValue*/
|
|
2133
2133
|
2 && o.value !== /*searchValue*/
|
|
2134
|
-
_[1] &&
|
|
2134
|
+
_[1] && Dt(
|
|
2135
2135
|
o,
|
|
2136
2136
|
/*searchValue*/
|
|
2137
2137
|
_[1]
|
|
@@ -2143,46 +2143,46 @@ function Zn(i) {
|
|
|
2143
2143
|
_[3]
|
|
2144
2144
|
), /*abortController*/
|
|
2145
2145
|
_[20] ? w ? B[0] & /*abortController*/
|
|
2146
|
-
1048576 &&
|
|
2146
|
+
1048576 && G(w, 1) : (w = Vt(), w.c(), G(w, 1), w.m(u, null)) : w && (xe(), q(w, 1, 1, () => {
|
|
2147
2147
|
w = null;
|
|
2148
|
-
}),
|
|
2149
|
-
2) &&
|
|
2148
|
+
}), $e()), (!C || B[0] & /*searchValue*/
|
|
2149
|
+
2) && Ce(
|
|
2150
2150
|
u,
|
|
2151
2151
|
"displayable",
|
|
2152
2152
|
/*searchValue*/
|
|
2153
2153
|
_[1] !== ""
|
|
2154
2154
|
), /*enableReverse*/
|
|
2155
2155
|
_[6] === "button" ? g ? (g.p(_, B), B[0] & /*enableReverse*/
|
|
2156
|
-
64 &&
|
|
2156
|
+
64 && G(g, 1)) : (g = Yt(_), g.c(), G(g, 1), g.m(n, E)) : g && (xe(), q(g, 1, 1, () => {
|
|
2157
2157
|
g = null;
|
|
2158
|
-
}),
|
|
2159
|
-
|
|
2158
|
+
}), $e()), k && k.p && (!C || B[2] & /*$$scope*/
|
|
2159
|
+
128) && Fi(
|
|
2160
2160
|
k,
|
|
2161
2161
|
N,
|
|
2162
2162
|
_,
|
|
2163
2163
|
/*$$scope*/
|
|
2164
|
-
_[
|
|
2165
|
-
C ?
|
|
2164
|
+
_[69],
|
|
2165
|
+
C ? Bi(
|
|
2166
2166
|
N,
|
|
2167
2167
|
/*$$scope*/
|
|
2168
|
-
_[
|
|
2168
|
+
_[69],
|
|
2169
2169
|
B,
|
|
2170
2170
|
null
|
|
2171
|
-
) :
|
|
2171
|
+
) : Gi(
|
|
2172
2172
|
/*$$scope*/
|
|
2173
|
-
_[
|
|
2173
|
+
_[69]
|
|
2174
2174
|
),
|
|
2175
2175
|
null
|
|
2176
2176
|
);
|
|
2177
|
-
let
|
|
2178
|
-
|
|
2179
|
-
m[
|
|
2180
|
-
}),
|
|
2181
|
-
4 && W !== (W =
|
|
2177
|
+
let oe = p;
|
|
2178
|
+
p = Le(_), p === oe ? ~p && m[p].p(_, B) : (S && (xe(), q(m[oe], 1, 1, () => {
|
|
2179
|
+
m[oe] = null;
|
|
2180
|
+
}), $e()), ~p ? (S = m[p], S ? S.p(_, B) : (S = m[p] = L[p](_), S.c()), G(S, 1), S.m(t, null)) : S = null), (!C || B[0] & /*className*/
|
|
2181
|
+
4 && W !== (W = et(
|
|
2182
2182
|
/*className*/
|
|
2183
2183
|
_[2]
|
|
2184
2184
|
) + " svelte-bz0zu3")) && a(t, "class", W), (!C || B[0] & /*className, collapsed, searchValue*/
|
|
2185
|
-
38) &&
|
|
2185
|
+
38) && Ce(
|
|
2186
2186
|
t,
|
|
2187
2187
|
"can-collapse",
|
|
2188
2188
|
/*collapsed*/
|
|
@@ -2191,17 +2191,17 @@ function Zn(i) {
|
|
|
2191
2191
|
);
|
|
2192
2192
|
},
|
|
2193
2193
|
i(_) {
|
|
2194
|
-
C || (
|
|
2194
|
+
C || (G(Q), G(c.$$.fragment, _), G(h.$$.fragment, _), G(w), G(g), G(k, _), G(S), C = !0);
|
|
2195
2195
|
},
|
|
2196
2196
|
o(_) {
|
|
2197
|
-
Q
|
|
2197
|
+
q(Q), q(c.$$.fragment, _), q(h.$$.fragment, _), q(w), q(g), q(k, _), q(S), C = !1;
|
|
2198
2198
|
},
|
|
2199
2199
|
d(_) {
|
|
2200
|
-
_ && (D(e), D(t)),
|
|
2200
|
+
_ && (D(e), D(t)), fe(c), i[72](null), fe(h), w && w.d(), g && g.d(), k && k.d(_), ~p && m[p].d(), H = !1, me(X);
|
|
2201
2201
|
}
|
|
2202
2202
|
};
|
|
2203
2203
|
}
|
|
2204
|
-
function
|
|
2204
|
+
function Gn(i, e, t) {
|
|
2205
2205
|
let n, r, c, { $$slots: l = {}, $$scope: o } = e;
|
|
2206
2206
|
const d = {
|
|
2207
2207
|
continental_marine: 4,
|
|
@@ -2227,95 +2227,88 @@ function qn(i, e, t) {
|
|
|
2227
2227
|
"poi.restaurant": 18,
|
|
2228
2228
|
"poi.aerodrome": 13
|
|
2229
2229
|
};
|
|
2230
|
-
let { class: u = void 0 } = e, { apiKey: f } = e, { bbox: h = void 0 } = e, { clearButtonTitle: v = "clear" } = e, { clearOnBlur: y = !1 } = e, { clearListOnPick: E = !1 } = e, { keepListOpen:
|
|
2230
|
+
let { class: u = void 0 } = e, { apiKey: f } = e, { bbox: h = void 0 } = e, { clearButtonTitle: v = "clear" } = e, { clearOnBlur: y = !1 } = e, { clearListOnPick: E = !1 } = e, { keepListOpen: O = !1 } = e, { collapsed: p = !1 } = e, { country: S = void 0 } = e, { debounceSearch: W = 200 } = e, { enableReverse: C = "never" } = e, { errorMessage: H = "Something went wrong…" } = e, { filter: X = () => !0 } = e, { flyTo: Q = !0 } = e, { fuzzyMatch: w = !0 } = e, { language: g = void 0 } = e, { limit: N = void 0 } = e;
|
|
2231
2231
|
const k = 41415112612;
|
|
2232
|
-
let { reverseGeocodingLimit: L = k } = e, { mapController: m = void 0 } = e, { minLength:
|
|
2233
|
-
const
|
|
2234
|
-
let { reverseGeocodingTypes:
|
|
2235
|
-
const
|
|
2236
|
-
let { reverseGeocodingExcludeTypes:
|
|
2237
|
-
} } = e, { adjustUrl:
|
|
2232
|
+
let { reverseGeocodingLimit: L = k } = e, { mapController: m = void 0 } = e, { minLength: Le = 2 } = e, { noResultsMessage: _ = "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: B = "Search" } = e, { proximity: oe = [{ type: "server-geolocation" }] } = e, { reverseActive: ee = C === "always" } = e, { reverseButtonTitle: Et = "toggle reverse geocoding" } = e, { searchValue: K = "" } = e, { pickedResultStyle: Fe = "full-geometry" } = e, { showPlaceType: St = "if-needed" } = e, { showResultsWhileTyping: Ge = !0 } = e, { selectFirst: pe = !0 } = e, { flyToSelected: je = !1 } = e, { markerOnSelected: He = !0 } = e, { types: tt = void 0 } = e;
|
|
2233
|
+
const pt = [];
|
|
2234
|
+
let { reverseGeocodingTypes: Ze = pt } = e, { exhaustiveReverseGeocoding: it = !1 } = e, { excludeTypes: nt = !1 } = e;
|
|
2235
|
+
const Tt = void 0;
|
|
2236
|
+
let { reverseGeocodingExcludeTypes: qe = Tt } = e, { zoom: Qe = d } = e, { apiUrl: rt = "https://api.maptiler.com/geocoding" } = e, { fetchParameters: ot = {} } = e, { iconsBaseUrl: kt = "https://cdn.maptiler.com/maptiler-geocoding-control/v2.1.3/icons/" } = e, { adjustUrlQuery: st = () => {
|
|
2237
|
+
} } = e, { adjustUrl: at = () => {
|
|
2238
2238
|
} } = e;
|
|
2239
|
-
function
|
|
2239
|
+
function li(s) {
|
|
2240
2240
|
ne.focus(s);
|
|
2241
2241
|
}
|
|
2242
|
-
function
|
|
2242
|
+
function ui() {
|
|
2243
2243
|
ne.blur();
|
|
2244
2244
|
}
|
|
2245
|
-
function
|
|
2246
|
-
t(1,
|
|
2245
|
+
function Nt(s, A = !0, F = !1) {
|
|
2246
|
+
t(1, K = s), A ? (t(15, R = -1), Ct()) : (Wt(void 0, !F, F), setTimeout(() => {
|
|
2247
2247
|
ne.focus(), ne.select();
|
|
2248
2248
|
}));
|
|
2249
2249
|
}
|
|
2250
|
-
function
|
|
2251
|
-
t(13,
|
|
2252
|
-
}
|
|
2253
|
-
function gi() {
|
|
2254
|
-
t(65, F = []), t(14, b = void 0);
|
|
2250
|
+
function ci() {
|
|
2251
|
+
t(13, T = void 0), t(14, b = void 0), t(15, R = -1);
|
|
2255
2252
|
}
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
function bi() {
|
|
2259
|
-
return !!ee;
|
|
2253
|
+
function di() {
|
|
2254
|
+
t(64, j = []), t(14, b = void 0);
|
|
2260
2255
|
}
|
|
2261
|
-
|
|
2256
|
+
let T, j, b, Mt = "", ne, R = -1, se, Ke = [], _e, Te, ke, lt, ue = !1;
|
|
2257
|
+
const fi = /* @__PURE__ */ new Set(), ge = ni();
|
|
2258
|
+
Qi(() => {
|
|
2262
2259
|
m && (m.setEventHandler(void 0), m.indicateReverse(!1), m.setSelectedMarker(-1), m.setFeatures(void 0, void 0, !1));
|
|
2263
2260
|
});
|
|
2264
|
-
function
|
|
2265
|
-
if (t(17,
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
const A = s || !ft(Z);
|
|
2273
|
-
Re(Z, { exact: !0 }).then(() => {
|
|
2274
|
-
t(65, F = p), t(14, b = void 0), A && vi();
|
|
2275
|
-
}).catch((G) => t(19, ae = G));
|
|
2261
|
+
function Ct(s) {
|
|
2262
|
+
if (t(17, ue = !1), Te && (clearTimeout(Te), Te = void 0), R > -1 && T)
|
|
2263
|
+
t(14, b = T[R]), t(1, K = b.place_type[0] === "reverse" ? b.place_name : b.place_name.replace(/,.*/, "")), t(19, se = void 0), t(64, j = void 0), t(15, R = -1);
|
|
2264
|
+
else if (K) {
|
|
2265
|
+
const A = s || !ut(K);
|
|
2266
|
+
ct(K, { exact: !0 }).then(() => {
|
|
2267
|
+
t(64, j = T), t(14, b = void 0), A && mi();
|
|
2268
|
+
}).catch((F) => t(19, se = F));
|
|
2276
2269
|
}
|
|
2277
2270
|
}
|
|
2278
|
-
function
|
|
2271
|
+
function ut(s) {
|
|
2279
2272
|
try {
|
|
2280
|
-
return
|
|
2273
|
+
return Dn(s, 6);
|
|
2281
2274
|
} catch {
|
|
2282
2275
|
return !1;
|
|
2283
2276
|
}
|
|
2284
2277
|
}
|
|
2285
|
-
async function
|
|
2286
|
-
var
|
|
2287
|
-
t(19,
|
|
2288
|
-
const
|
|
2289
|
-
t(20,
|
|
2278
|
+
async function ct(s, { byId: A = !1, exact: F = !1 } = {}) {
|
|
2279
|
+
var x, ae, he;
|
|
2280
|
+
t(19, se = void 0), _e == null || _e.abort();
|
|
2281
|
+
const J = new AbortController();
|
|
2282
|
+
t(20, _e = J);
|
|
2290
2283
|
try {
|
|
2291
|
-
const z =
|
|
2284
|
+
const z = ut(s), Re = new URL(rt + "/" + encodeURIComponent(z ? z.decimalLongitude + "," + z.decimalLatitude : s) + ".json"), te = Re.searchParams;
|
|
2292
2285
|
g !== void 0 && te.set("language", Array.isArray(g) ? g.join(",") : g ?? "");
|
|
2293
|
-
const [
|
|
2294
|
-
let
|
|
2295
|
-
|
|
2296
|
-
const
|
|
2297
|
-
if (
|
|
2298
|
-
const
|
|
2299
|
-
|
|
2286
|
+
const [mt] = (m == null ? void 0 : m.getCenterAndZoom()) ?? [];
|
|
2287
|
+
let le = (x = !z || Ze === pt ? tt : Ze) == null ? void 0 : x.map((V) => typeof V == "string" ? V : mt === void 0 || (V[0] ?? 0) <= mt && mt < (V[1] ?? 1 / 0) ? V[2] : void 0).filter((V) => V !== void 0);
|
|
2288
|
+
le && (le = [...new Set(le)], te.set("types", le.join(",")));
|
|
2289
|
+
const Rt = !z || qe === Tt ? nt : qe;
|
|
2290
|
+
if (Rt && te.set("excludeTypes", String(Rt)), h && te.set("bbox", h.map((V) => V.toFixed(6)).join(",")), S && te.set("country", Array.isArray(S) ? S.join(",") : S), !A && !z) {
|
|
2291
|
+
const V = await pn(m, oe, J);
|
|
2292
|
+
V && te.set("proximity", V), (F || !Ge) && te.set("autocomplete", "false"), te.set("fuzzyMatch", String(w));
|
|
2300
2293
|
}
|
|
2301
|
-
const
|
|
2302
|
-
|
|
2303
|
-
const
|
|
2304
|
-
if (
|
|
2305
|
-
A ? (E && t(13,
|
|
2294
|
+
const ze = L === k ? N : L;
|
|
2295
|
+
ze !== void 0 && ze > 1 && (le == null ? void 0 : le.length) !== 1 && console.warn("For reverse geocoding when limit > 1 then types must contain single value."), z ? (ze === 1 || ze !== void 0 && (it || (le == null ? void 0 : le.length) === 1)) && te.set("limit", String(ze)) : N !== void 0 && te.set("limit", String(N)), te.set("key", f), st(te), at(Re);
|
|
2296
|
+
const Wi = Re.searchParams.get("types") === "" && Re.searchParams.get("excludeTypes") !== "true", Ve = Re.toString();
|
|
2297
|
+
if (Ve === Mt) {
|
|
2298
|
+
A ? (E && t(13, T = void 0), t(14, b = Ke[0])) : (t(13, T = Ke), ((ae = T[R]) == null ? void 0 : ae.id) !== (r == null ? void 0 : r.id) && t(15, R = -1));
|
|
2306
2299
|
return;
|
|
2307
2300
|
}
|
|
2308
|
-
|
|
2309
|
-
let
|
|
2310
|
-
if (
|
|
2311
|
-
|
|
2301
|
+
Mt = Ve;
|
|
2302
|
+
let Ue;
|
|
2303
|
+
if (Wi)
|
|
2304
|
+
Ue = { type: "FeatureCollection", features: [] };
|
|
2312
2305
|
else {
|
|
2313
|
-
const
|
|
2314
|
-
if (!
|
|
2315
|
-
throw new Error(await
|
|
2316
|
-
|
|
2306
|
+
const V = await fetch(Ve, { signal: J.signal, ...ot });
|
|
2307
|
+
if (!V.ok)
|
|
2308
|
+
throw new Error(await V.text());
|
|
2309
|
+
Ue = await V.json();
|
|
2317
2310
|
}
|
|
2318
|
-
|
|
2311
|
+
ge("response", { url: Ve, featureCollection: Ue }), A ? (E && t(13, T = void 0), t(14, b = Ue.features[0]), Ke = [b]) : (t(13, T = Ue.features.filter(X)), z && T.unshift({
|
|
2319
2312
|
type: "Feature",
|
|
2320
2313
|
properties: {},
|
|
2321
2314
|
id: "reverse_" + z.decimalLongitude + "_" + z.decimalLatitude,
|
|
@@ -2333,198 +2326,191 @@ function qn(i, e, t) {
|
|
|
2333
2326
|
type: "Point",
|
|
2334
2327
|
coordinates: [z.decimalLongitude, z.decimalLatitude]
|
|
2335
2328
|
}
|
|
2336
|
-
}),
|
|
2329
|
+
}), Ke = T, ((he = T[R]) == null ? void 0 : he.id) !== (r == null ? void 0 : r.id) && t(15, R = -1), z && ne.focus());
|
|
2337
2330
|
} catch (z) {
|
|
2338
2331
|
if (z && typeof z == "object" && "name" in z && z.name === "AbortError")
|
|
2339
2332
|
return;
|
|
2340
2333
|
throw z;
|
|
2341
2334
|
} finally {
|
|
2342
|
-
|
|
2335
|
+
J === _e && t(20, _e = void 0);
|
|
2343
2336
|
}
|
|
2344
2337
|
}
|
|
2345
|
-
function
|
|
2346
|
-
var
|
|
2347
|
-
if (!(
|
|
2338
|
+
function mi() {
|
|
2339
|
+
var J;
|
|
2340
|
+
if (!(j != null && j.length) || !Q)
|
|
2348
2341
|
return;
|
|
2349
|
-
const s = [180, 90, -180, -90], A = !
|
|
2350
|
-
let
|
|
2351
|
-
for (const
|
|
2352
|
-
const
|
|
2353
|
-
if (
|
|
2354
|
-
for (const
|
|
2355
|
-
s[
|
|
2342
|
+
const s = [180, 90, -180, -90], A = !j.some((x) => !x.matching_text);
|
|
2343
|
+
let F;
|
|
2344
|
+
for (const x of j) {
|
|
2345
|
+
const ae = Oe(x);
|
|
2346
|
+
if (F = F === void 0 ? ae : ae === void 0 ? F : Math.max(F, ae), A || !x.matching_text)
|
|
2347
|
+
for (const he of [0, 1, 2, 3])
|
|
2348
|
+
s[he] = Math[he < 2 ? "min" : "max"](s[he], ((J = x.bbox) == null ? void 0 : J[he]) ?? x.center[he % 2]);
|
|
2356
2349
|
}
|
|
2357
|
-
m &&
|
|
2350
|
+
m && j.length > 0 && (b && s[0] === s[2] && s[1] === s[3] ? m.flyTo(b.center, Oe(b)) : m.fitBounds(Bt(s), 50, F));
|
|
2358
2351
|
}
|
|
2359
|
-
function
|
|
2360
|
-
!b || !m || (!b.bbox || b.bbox[0] === b.bbox[2] && b.bbox[1] === b.bbox[3] ? m.flyTo(b.center,
|
|
2352
|
+
function dt() {
|
|
2353
|
+
!b || !m || (!b.bbox || b.bbox[0] === b.bbox[2] && b.bbox[1] === b.bbox[3] ? m.flyTo(b.center, Oe(b)) : m.fitBounds(Bt(b.bbox), 50, Oe(b)));
|
|
2361
2354
|
}
|
|
2362
|
-
function
|
|
2363
|
-
var
|
|
2355
|
+
function Oe(s) {
|
|
2356
|
+
var F;
|
|
2364
2357
|
if (!s.bbox || s.bbox[0] !== s.bbox[2] && s.bbox[1] !== s.bbox[3])
|
|
2365
2358
|
return;
|
|
2366
2359
|
const A = s.id.replace(/\..*/, "");
|
|
2367
|
-
return (Array.isArray((
|
|
2368
|
-
(
|
|
2369
|
-
const
|
|
2370
|
-
return
|
|
2360
|
+
return (Array.isArray((F = s.properties) == null ? void 0 : F.categories) ? s.properties.categories.reduce(
|
|
2361
|
+
(J, x) => {
|
|
2362
|
+
const ae = Qe[A + "." + x];
|
|
2363
|
+
return J === void 0 ? ae : ae === void 0 ? J : Math.max(J, ae);
|
|
2371
2364
|
},
|
|
2372
2365
|
void 0
|
|
2373
|
-
) : void 0) ??
|
|
2366
|
+
) : void 0) ?? Qe[A];
|
|
2374
2367
|
}
|
|
2375
|
-
function
|
|
2376
|
-
t(0,
|
|
2368
|
+
function gi(s) {
|
|
2369
|
+
t(0, ee = C === "always"), t(13, T = void 0), t(14, b = void 0), t(15, R = -1), Nt(s[1].toFixed(6) + ", " + Sn(s[0], [-180, 180], !0).toFixed(6), !1, !0);
|
|
2377
2370
|
}
|
|
2378
|
-
function
|
|
2379
|
-
if (!
|
|
2371
|
+
function hi(s) {
|
|
2372
|
+
if (!T)
|
|
2380
2373
|
return;
|
|
2381
2374
|
let A = s.key === "ArrowDown" ? 1 : s.key === "ArrowUp" ? -1 : 0;
|
|
2382
|
-
A && (ne.focus(), t(17,
|
|
2375
|
+
A && (ne.focus(), t(17, ue = !0), s.preventDefault(), b && R === -1 && t(15, R = T.findIndex((F) => F.id === (b == null ? void 0 : b.id))), R === (b || pe ? 0 : -1) && A === -1 && t(15, R = T.length), t(15, R += A), R >= T.length && t(15, R = -1), R < 0 && (b || pe) && t(15, R = 0));
|
|
2383
2376
|
}
|
|
2384
|
-
function
|
|
2385
|
-
if (t(19,
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
()
|
|
2397
|
-
t(66, ee = void 0), Re(re, { appendSpace: !0 }).catch((V) => t(19, ae = V));
|
|
2398
|
-
},
|
|
2399
|
-
nt
|
|
2400
|
-
));
|
|
2377
|
+
function Wt(s, A = !0, F = !1) {
|
|
2378
|
+
if (t(19, se = void 0), t(14, b = void 0), t(17, ue = !0), Ge || F) {
|
|
2379
|
+
if (Te && clearTimeout(Te), K.length < Le)
|
|
2380
|
+
return;
|
|
2381
|
+
const J = K;
|
|
2382
|
+
Te = window.setTimeout(
|
|
2383
|
+
() => {
|
|
2384
|
+
ct(J).catch((x) => t(19, se = x));
|
|
2385
|
+
},
|
|
2386
|
+
A ? W : 0
|
|
2387
|
+
);
|
|
2388
|
+
} else
|
|
2389
|
+
t(13, T = void 0), t(19, se = void 0);
|
|
2401
2390
|
}
|
|
2402
|
-
function
|
|
2403
|
-
b && (b == null ? void 0 : b.id) === (s == null ? void 0 : s.id) ?
|
|
2391
|
+
function ft(s) {
|
|
2392
|
+
b && (b == null ? void 0 : b.id) === (s == null ? void 0 : s.id) ? dt() : (t(14, b = s), t(1, K = s.place_name));
|
|
2404
2393
|
}
|
|
2405
|
-
function
|
|
2406
|
-
t(15,
|
|
2394
|
+
function Ot(s) {
|
|
2395
|
+
t(15, R = s);
|
|
2407
2396
|
}
|
|
2408
|
-
function
|
|
2409
|
-
(!
|
|
2397
|
+
function bi() {
|
|
2398
|
+
(!pe || b) && t(15, R = -1), je && dt();
|
|
2410
2399
|
}
|
|
2411
|
-
const
|
|
2412
|
-
function
|
|
2413
|
-
|
|
2400
|
+
const vi = () => ne.focus();
|
|
2401
|
+
function Li(s) {
|
|
2402
|
+
vt[s ? "unshift" : "push"](() => {
|
|
2414
2403
|
ne = s, t(18, ne);
|
|
2415
2404
|
});
|
|
2416
2405
|
}
|
|
2417
|
-
function
|
|
2418
|
-
|
|
2406
|
+
function _i() {
|
|
2407
|
+
K = this.value, t(1, K), t(17, ue), t(31, y), t(16, ke);
|
|
2419
2408
|
}
|
|
2420
|
-
const
|
|
2421
|
-
t(1,
|
|
2422
|
-
},
|
|
2409
|
+
const yi = () => t(17, ue = !0), wi = () => t(17, ue = !1), Ei = () => t(17, ue = !0), Si = () => t(14, b = void 0), pi = () => {
|
|
2410
|
+
t(1, K = ""), t(14, b = void 0), ne.focus();
|
|
2411
|
+
}, Ti = () => t(0, ee = !ee), ki = () => t(19, se = void 0), Ni = (s) => Ot(s), Mi = (s) => ft(s), Ci = () => {
|
|
2423
2412
|
};
|
|
2424
2413
|
return i.$$set = (s) => {
|
|
2425
|
-
"class" in s && t(2, u = s.class), "apiKey" in s && t(29, f = s.apiKey), "bbox" in s && t(30, h = s.bbox), "clearButtonTitle" in s && t(3, v = s.clearButtonTitle), "clearOnBlur" in s && t(31, y = s.clearOnBlur), "clearListOnPick" in s && t(32, E = s.clearListOnPick), "keepListOpen" in s && t(4,
|
|
2414
|
+
"class" in s && t(2, u = s.class), "apiKey" in s && t(29, f = s.apiKey), "bbox" in s && t(30, h = s.bbox), "clearButtonTitle" in s && t(3, v = s.clearButtonTitle), "clearOnBlur" in s && t(31, y = s.clearOnBlur), "clearListOnPick" in s && t(32, E = s.clearListOnPick), "keepListOpen" in s && t(4, O = s.keepListOpen), "collapsed" in s && t(5, p = s.collapsed), "country" in s && t(33, S = s.country), "debounceSearch" in s && t(34, W = s.debounceSearch), "enableReverse" in s && t(6, C = s.enableReverse), "errorMessage" in s && t(7, H = s.errorMessage), "filter" in s && t(35, X = s.filter), "flyTo" in s && t(36, Q = s.flyTo), "fuzzyMatch" in s && t(37, w = s.fuzzyMatch), "language" in s && t(38, g = s.language), "limit" in s && t(39, N = s.limit), "reverseGeocodingLimit" in s && t(40, L = s.reverseGeocodingLimit), "mapController" in s && t(41, m = s.mapController), "minLength" in s && t(42, Le = s.minLength), "noResultsMessage" in s && t(8, _ = s.noResultsMessage), "placeholder" in s && t(9, B = s.placeholder), "proximity" in s && t(43, oe = s.proximity), "reverseActive" in s && t(0, ee = s.reverseActive), "reverseButtonTitle" in s && t(10, Et = s.reverseButtonTitle), "searchValue" in s && t(1, K = s.searchValue), "pickedResultStyle" in s && t(44, Fe = s.pickedResultStyle), "showPlaceType" in s && t(11, St = s.showPlaceType), "showResultsWhileTyping" in s && t(45, Ge = s.showResultsWhileTyping), "selectFirst" in s && t(46, pe = s.selectFirst), "flyToSelected" in s && t(47, je = s.flyToSelected), "markerOnSelected" in s && t(48, He = s.markerOnSelected), "types" in s && t(49, tt = s.types), "reverseGeocodingTypes" in s && t(50, Ze = s.reverseGeocodingTypes), "exhaustiveReverseGeocoding" in s && t(51, it = s.exhaustiveReverseGeocoding), "excludeTypes" in s && t(52, nt = s.excludeTypes), "reverseGeocodingExcludeTypes" in s && t(53, qe = s.reverseGeocodingExcludeTypes), "zoom" in s && t(54, Qe = s.zoom), "apiUrl" in s && t(55, rt = s.apiUrl), "fetchParameters" in s && t(56, ot = s.fetchParameters), "iconsBaseUrl" in s && t(12, kt = s.iconsBaseUrl), "adjustUrlQuery" in s && t(57, st = s.adjustUrlQuery), "adjustUrl" in s && t(58, at = s.adjustUrl), "$$scope" in s && t(69, o = s.$$scope);
|
|
2426
2415
|
}, i.$$.update = () => {
|
|
2427
2416
|
if (i.$$.dirty[0] & /*enableReverse*/
|
|
2428
|
-
64 && t(0,
|
|
2417
|
+
64 && t(0, ee = C === "always"), i.$$.dirty[0] & /*picked*/
|
|
2429
2418
|
16384 | i.$$.dirty[1] & /*pickedResultStyle*/
|
|
2430
|
-
8192 && Fe !== "marker-only" && b && !b.address && b.geometry.type === "Point" && b.place_type[0] !== "reverse" &&
|
|
2419
|
+
8192 && Fe !== "marker-only" && b && !b.address && b.geometry.type === "Point" && b.place_type[0] !== "reverse" && ct(b.id, { byId: !0 }).catch((s) => t(19, se = s)), i.$$.dirty[0] & /*picked*/
|
|
2431
2420
|
16384 | i.$$.dirty[1] & /*mapController, flyTo, clearListOnPick*/
|
|
2432
2421
|
1058 | i.$$.dirty[2] & /*prevIdToFly*/
|
|
2433
|
-
|
|
2422
|
+
8 && (m && b && b.id !== lt && Q && (dt(), E && t(13, T = void 0), t(64, j = void 0), t(15, R = -1)), t(65, lt = b == null ? void 0 : b.id)), i.$$.dirty[0] & /*focused, focusedDelayed*/
|
|
2434
2423
|
196608 | i.$$.dirty[1] & /*clearOnBlur*/
|
|
2435
2424
|
1 && setTimeout(() => {
|
|
2436
|
-
t(16,
|
|
2425
|
+
t(16, ke = ue), y && !ke && t(1, K = "");
|
|
2437
2426
|
}), i.$$.dirty[0] & /*searchValue, listFeatures*/
|
|
2438
2427
|
8194 | i.$$.dirty[1] & /*minLength*/
|
|
2439
|
-
2048 &&
|
|
2440
|
-
8192 | i.$$.dirty[1] & /*selectFirst*/
|
|
2441
|
-
65536 && we && p != null && p.length && (bi() || t(15, O = 0)), i.$$.dirty[0] & /*listFeatures, selectedItemIndex, picked*/
|
|
2428
|
+
2048 && K.length < Le && (t(13, T = void 0), t(19, se = void 0), t(64, j = T)), i.$$.dirty[0] & /*listFeatures, selectedItemIndex, picked*/
|
|
2442
2429
|
57344 | i.$$.dirty[1] & /*selectFirst*/
|
|
2443
|
-
|
|
2430
|
+
32768 && pe && T != null && T.length && R == -1 && !b && t(15, R = 0), i.$$.dirty[0] & /*listFeatures*/
|
|
2444
2431
|
8192 | i.$$.dirty[2] & /*markedFeatures*/
|
|
2445
|
-
|
|
2432
|
+
4 && j !== T && t(64, j = void 0), i.$$.dirty[0] & /*reverseActive, listFeatures, focusedDelayed*/
|
|
2446
2433
|
73729 | i.$$.dirty[1] & /*mapController*/
|
|
2447
2434
|
1024 | i.$$.dirty[2] & /*markedFeatures*/
|
|
2448
|
-
|
|
2435
|
+
4 && m && m.setEventHandler((s) => {
|
|
2449
2436
|
switch (s.type) {
|
|
2450
2437
|
case "mapClick":
|
|
2451
|
-
|
|
2438
|
+
ee && gi(s.coordinates);
|
|
2452
2439
|
break;
|
|
2453
2440
|
case "markerClick":
|
|
2454
2441
|
{
|
|
2455
|
-
const A =
|
|
2456
|
-
A &&
|
|
2442
|
+
const A = T == null ? void 0 : T.find((F) => F.id === s.id);
|
|
2443
|
+
A && ft(A);
|
|
2457
2444
|
}
|
|
2458
2445
|
break;
|
|
2459
2446
|
case "markerMouseEnter":
|
|
2460
|
-
|
|
2447
|
+
j && t(15, R = ke ? (T == null ? void 0 : T.findIndex((A) => A.id === s.id)) ?? -1 : -1);
|
|
2461
2448
|
break;
|
|
2462
2449
|
case "markerMouseLeave":
|
|
2463
|
-
|
|
2450
|
+
j && t(15, R = -1);
|
|
2464
2451
|
break;
|
|
2465
2452
|
}
|
|
2466
2453
|
}), i.$$.dirty[0] & /*listFeatures, selectedItemIndex*/
|
|
2467
|
-
40960 && t(
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
8192 && t(
|
|
2471
|
-
|
|
2472
|
-
|
|
2454
|
+
40960 && t(66, r = T == null ? void 0 : T[R]), i.$$.dirty[1] & /*mapController, flyTo, flyToSelected*/
|
|
2455
|
+
66592 | i.$$.dirty[2] & /*selected*/
|
|
2456
|
+
16 && m && r && Q && je && m.flyTo(r.center, Oe(r)), i.$$.dirty[1] & /*pickedResultStyle*/
|
|
2457
|
+
8192 && t(68, n = Fe === "full-geometry-including-polygon-center-marker"), i.$$.dirty[1] & /*markerOnSelected, mapController*/
|
|
2458
|
+
132096 | i.$$.dirty[2] & /*showPolygonMarker*/
|
|
2459
|
+
64 && (He || m == null || m.setFeatures(void 0, void 0, n)), i.$$.dirty[0] & /*picked*/
|
|
2473
2460
|
16384 | i.$$.dirty[1] & /*mapController, markerOnSelected*/
|
|
2474
|
-
|
|
2475
|
-
|
|
2461
|
+
132096 | i.$$.dirty[2] & /*markedFeatures, selected, showPolygonMarker*/
|
|
2462
|
+
84 && m && He && !j && (m.setFeatures(r ? [r] : void 0, b, n), m.setSelectedMarker(r ? 0 : -1)), i.$$.dirty[0] & /*picked*/
|
|
2476
2463
|
16384 | i.$$.dirty[1] & /*mapController*/
|
|
2477
2464
|
1024 | i.$$.dirty[2] & /*markedFeatures, showPolygonMarker*/
|
|
2478
|
-
|
|
2465
|
+
68 && m && m.setFeatures(j, b, n), i.$$.dirty[0] & /*selectedItemIndex*/
|
|
2479
2466
|
32768 | i.$$.dirty[1] & /*mapController*/
|
|
2480
2467
|
1024 | i.$$.dirty[2] & /*markedFeatures*/
|
|
2481
|
-
|
|
2482
|
-
80 && r && (window.clearTimeout(ee), t(66, ee = void 0)), i.$$.dirty[0] & /*searchValue*/
|
|
2468
|
+
4 && j && m && m.setSelectedMarker(R), i.$$.dirty[0] & /*searchValue*/
|
|
2483
2469
|
2 | i.$$.dirty[1] & /*mapController*/
|
|
2484
2470
|
1024 && m) {
|
|
2485
|
-
const s =
|
|
2471
|
+
const s = ut(K);
|
|
2486
2472
|
m.setReverseMarker(s ? [s.decimalLongitude, s.decimalLatitude] : void 0);
|
|
2487
2473
|
}
|
|
2488
2474
|
i.$$.dirty[2] & /*selected*/
|
|
2489
|
-
|
|
2490
|
-
16384 &&
|
|
2491
|
-
73744 && t(
|
|
2492
|
-
|
|
2493
|
-
8192 &&
|
|
2494
|
-
|
|
2495
|
-
1 &&
|
|
2496
|
-
2 &&
|
|
2475
|
+
16 && ge("select", { feature: r }), i.$$.dirty[0] & /*picked*/
|
|
2476
|
+
16384 && ge("pick", { feature: b }), i.$$.dirty[0] & /*listFeatures, focusedDelayed, keepListOpen*/
|
|
2477
|
+
73744 && t(67, c = !!(T != null && T.length) && (ke || O)), i.$$.dirty[2] & /*optionsVisible*/
|
|
2478
|
+
32 && ge("optionsvisibilitychange", { optionsVisible: c }), i.$$.dirty[0] & /*listFeatures*/
|
|
2479
|
+
8192 && ge("featureslisted", { features: T }), i.$$.dirty[2] & /*markedFeatures*/
|
|
2480
|
+
4 && ge("featuresmarked", { features: j }), i.$$.dirty[0] & /*reverseActive*/
|
|
2481
|
+
1 && ge("reversetoggle", { reverse: ee }), i.$$.dirty[0] & /*searchValue*/
|
|
2482
|
+
2 && ge("querychange", { query: K }), i.$$.dirty[0] & /*reverseActive*/
|
|
2497
2483
|
1 | i.$$.dirty[1] & /*mapController*/
|
|
2498
|
-
1024 && m && m.indicateReverse(
|
|
2484
|
+
1024 && m && m.indicateReverse(ee);
|
|
2499
2485
|
}, [
|
|
2500
|
-
|
|
2501
|
-
|
|
2486
|
+
ee,
|
|
2487
|
+
K,
|
|
2502
2488
|
u,
|
|
2503
2489
|
v,
|
|
2504
|
-
|
|
2505
|
-
|
|
2490
|
+
O,
|
|
2491
|
+
p,
|
|
2506
2492
|
C,
|
|
2507
2493
|
H,
|
|
2508
2494
|
_,
|
|
2509
2495
|
B,
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2496
|
+
Et,
|
|
2497
|
+
St,
|
|
2498
|
+
kt,
|
|
2499
|
+
T,
|
|
2514
2500
|
b,
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2501
|
+
R,
|
|
2502
|
+
ke,
|
|
2503
|
+
ue,
|
|
2518
2504
|
ne,
|
|
2519
|
-
|
|
2520
|
-
|
|
2505
|
+
se,
|
|
2506
|
+
_e,
|
|
2507
|
+
fi,
|
|
2508
|
+
Ct,
|
|
2521
2509
|
hi,
|
|
2510
|
+
Wt,
|
|
2511
|
+
ft,
|
|
2522
2512
|
Ot,
|
|
2523
|
-
|
|
2524
|
-
Rt,
|
|
2525
|
-
gt,
|
|
2526
|
-
zt,
|
|
2527
|
-
yi,
|
|
2513
|
+
bi,
|
|
2528
2514
|
d,
|
|
2529
2515
|
f,
|
|
2530
2516
|
h,
|
|
@@ -2532,44 +2518,46 @@ function qn(i, e, t) {
|
|
|
2532
2518
|
E,
|
|
2533
2519
|
S,
|
|
2534
2520
|
W,
|
|
2535
|
-
|
|
2536
|
-
|
|
2521
|
+
X,
|
|
2522
|
+
Q,
|
|
2537
2523
|
w,
|
|
2538
2524
|
g,
|
|
2539
2525
|
N,
|
|
2540
2526
|
L,
|
|
2541
2527
|
m,
|
|
2542
|
-
|
|
2543
|
-
|
|
2528
|
+
Le,
|
|
2529
|
+
oe,
|
|
2544
2530
|
Fe,
|
|
2531
|
+
Ge,
|
|
2532
|
+
pe,
|
|
2533
|
+
je,
|
|
2545
2534
|
He,
|
|
2546
|
-
|
|
2547
|
-
we,
|
|
2535
|
+
tt,
|
|
2548
2536
|
Ze,
|
|
2537
|
+
it,
|
|
2538
|
+
nt,
|
|
2549
2539
|
qe,
|
|
2550
|
-
rt,
|
|
2551
2540
|
Qe,
|
|
2541
|
+
rt,
|
|
2552
2542
|
ot,
|
|
2553
2543
|
st,
|
|
2554
|
-
Ke,
|
|
2555
|
-
Ve,
|
|
2556
2544
|
at,
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2545
|
+
li,
|
|
2546
|
+
ui,
|
|
2547
|
+
Nt,
|
|
2548
|
+
ci,
|
|
2560
2549
|
di,
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
mi,
|
|
2564
|
-
gi,
|
|
2565
|
-
F,
|
|
2566
|
-
ee,
|
|
2567
|
-
dt,
|
|
2550
|
+
j,
|
|
2551
|
+
lt,
|
|
2568
2552
|
r,
|
|
2569
2553
|
c,
|
|
2570
2554
|
n,
|
|
2571
2555
|
o,
|
|
2572
2556
|
l,
|
|
2557
|
+
vi,
|
|
2558
|
+
Li,
|
|
2559
|
+
_i,
|
|
2560
|
+
yi,
|
|
2573
2561
|
wi,
|
|
2574
2562
|
Ei,
|
|
2575
2563
|
Si,
|
|
@@ -2578,21 +2566,17 @@ function qn(i, e, t) {
|
|
|
2578
2566
|
ki,
|
|
2579
2567
|
Ni,
|
|
2580
2568
|
Mi,
|
|
2581
|
-
Ci
|
|
2582
|
-
Wi,
|
|
2583
|
-
Oi,
|
|
2584
|
-
Ri,
|
|
2585
|
-
zi
|
|
2569
|
+
Ci
|
|
2586
2570
|
];
|
|
2587
2571
|
}
|
|
2588
|
-
class
|
|
2572
|
+
class jn extends Se {
|
|
2589
2573
|
constructor(e) {
|
|
2590
|
-
super(),
|
|
2574
|
+
super(), Ee(
|
|
2591
2575
|
this,
|
|
2592
2576
|
e,
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
|
|
2577
|
+
Gn,
|
|
2578
|
+
Fn,
|
|
2579
|
+
we,
|
|
2596
2580
|
{
|
|
2597
2581
|
ZOOM_DEFAULTS: 28,
|
|
2598
2582
|
class: 2,
|
|
@@ -2624,26 +2608,25 @@ class Qn extends ke {
|
|
|
2624
2608
|
pickedResultStyle: 44,
|
|
2625
2609
|
showPlaceType: 11,
|
|
2626
2610
|
showResultsWhileTyping: 45,
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
fetchParameters: 57,
|
|
2611
|
+
selectFirst: 46,
|
|
2612
|
+
flyToSelected: 47,
|
|
2613
|
+
markerOnSelected: 48,
|
|
2614
|
+
types: 49,
|
|
2615
|
+
reverseGeocodingTypes: 50,
|
|
2616
|
+
exhaustiveReverseGeocoding: 51,
|
|
2617
|
+
excludeTypes: 52,
|
|
2618
|
+
reverseGeocodingExcludeTypes: 53,
|
|
2619
|
+
zoom: 54,
|
|
2620
|
+
apiUrl: 55,
|
|
2621
|
+
fetchParameters: 56,
|
|
2639
2622
|
iconsBaseUrl: 12,
|
|
2640
|
-
adjustUrlQuery:
|
|
2641
|
-
adjustUrl:
|
|
2642
|
-
focus:
|
|
2643
|
-
blur:
|
|
2644
|
-
setQuery:
|
|
2645
|
-
clearList:
|
|
2646
|
-
clearMap:
|
|
2623
|
+
adjustUrlQuery: 57,
|
|
2624
|
+
adjustUrl: 58,
|
|
2625
|
+
focus: 59,
|
|
2626
|
+
blur: 60,
|
|
2627
|
+
setQuery: 61,
|
|
2628
|
+
clearList: 62,
|
|
2629
|
+
clearMap: 63
|
|
2647
2630
|
},
|
|
2648
2631
|
null,
|
|
2649
2632
|
[-1, -1, -1, -1]
|
|
@@ -2653,22 +2636,22 @@ class Qn extends ke {
|
|
|
2653
2636
|
return this.$$.ctx[28];
|
|
2654
2637
|
}
|
|
2655
2638
|
get focus() {
|
|
2656
|
-
return this.$$.ctx[
|
|
2639
|
+
return this.$$.ctx[59];
|
|
2657
2640
|
}
|
|
2658
2641
|
get blur() {
|
|
2659
|
-
return this.$$.ctx[
|
|
2642
|
+
return this.$$.ctx[60];
|
|
2660
2643
|
}
|
|
2661
2644
|
get setQuery() {
|
|
2662
|
-
return this.$$.ctx[
|
|
2645
|
+
return this.$$.ctx[61];
|
|
2663
2646
|
}
|
|
2664
2647
|
get clearList() {
|
|
2665
|
-
return this.$$.ctx[
|
|
2648
|
+
return this.$$.ctx[62];
|
|
2666
2649
|
}
|
|
2667
2650
|
get clearMap() {
|
|
2668
|
-
return this.$$.ctx[
|
|
2651
|
+
return this.$$.ctx[63];
|
|
2669
2652
|
}
|
|
2670
2653
|
}
|
|
2671
|
-
const
|
|
2654
|
+
const Jt = [
|
|
2672
2655
|
"featuresListed",
|
|
2673
2656
|
"featuresMarked",
|
|
2674
2657
|
"optionsVisibilityChange",
|
|
@@ -2677,7 +2660,7 @@ const ei = [
|
|
|
2677
2660
|
"response",
|
|
2678
2661
|
"reverseToggle",
|
|
2679
2662
|
"select"
|
|
2680
|
-
],
|
|
2663
|
+
], Hn = [
|
|
2681
2664
|
"adjustUrlQuery",
|
|
2682
2665
|
"adjustUrl",
|
|
2683
2666
|
"apiKey",
|
|
@@ -2720,29 +2703,29 @@ const ei = [
|
|
|
2720
2703
|
"reverseGeocodingTypes",
|
|
2721
2704
|
"zoom"
|
|
2722
2705
|
];
|
|
2723
|
-
function
|
|
2706
|
+
function xt(i) {
|
|
2724
2707
|
return "on" + i[0].toUpperCase() + i.slice(1);
|
|
2725
2708
|
}
|
|
2726
|
-
const
|
|
2727
|
-
const n =
|
|
2728
|
-
for (const l of
|
|
2729
|
-
delete c[
|
|
2730
|
-
|
|
2709
|
+
const Qn = zi(function(e, t) {
|
|
2710
|
+
const n = zt(void 0), r = zt(void 0), c = { ...e };
|
|
2711
|
+
for (const l of Jt)
|
|
2712
|
+
delete c[xt(l)];
|
|
2713
|
+
ht(() => {
|
|
2731
2714
|
if (!n.current)
|
|
2732
2715
|
throw new Error();
|
|
2733
|
-
const l = new
|
|
2716
|
+
const l = new jn({
|
|
2734
2717
|
target: n.current,
|
|
2735
2718
|
props: c
|
|
2736
2719
|
});
|
|
2737
2720
|
return r.current = l, () => l.$destroy();
|
|
2738
2721
|
}, []);
|
|
2739
|
-
for (const l of
|
|
2740
|
-
|
|
2722
|
+
for (const l of Hn)
|
|
2723
|
+
ht(() => {
|
|
2741
2724
|
r.current && e[l] !== void 0 && r.current.$set({ [l]: e[l] });
|
|
2742
2725
|
}, [e[l]]);
|
|
2743
|
-
for (const l of
|
|
2744
|
-
const o = e[
|
|
2745
|
-
|
|
2726
|
+
for (const l of Jt) {
|
|
2727
|
+
const o = e[xt(l)];
|
|
2728
|
+
ht(
|
|
2746
2729
|
() => {
|
|
2747
2730
|
var d;
|
|
2748
2731
|
return o && ((d = r.current) == null ? void 0 : d.$on(l.toLowerCase(), (u) => {
|
|
@@ -2752,7 +2735,7 @@ const Xn = Ai(function(e, t) {
|
|
|
2752
2735
|
[o]
|
|
2753
2736
|
);
|
|
2754
2737
|
}
|
|
2755
|
-
return
|
|
2738
|
+
return Ui(t, () => ({
|
|
2756
2739
|
setQuery: (l, o = !0) => {
|
|
2757
2740
|
var d;
|
|
2758
2741
|
return (d = r.current) == null ? void 0 : d.setQuery(l, o);
|
|
@@ -2777,9 +2760,9 @@ const Xn = Ai(function(e, t) {
|
|
|
2777
2760
|
var o;
|
|
2778
2761
|
return (o = r.current) == null ? void 0 : o.$set({ reverseActive: l });
|
|
2779
2762
|
}
|
|
2780
|
-
})),
|
|
2763
|
+
})), Di("div", { ref: n });
|
|
2781
2764
|
});
|
|
2782
2765
|
export {
|
|
2783
|
-
|
|
2766
|
+
Qn as GeocodingControl
|
|
2784
2767
|
};
|
|
2785
2768
|
//# sourceMappingURL=react.js.map
|