@maptiler/geocoding-control 2.0.0-rc.5 → 2.0.0-rc.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/MapLibreBasedGeocodingControl.d.ts +1 -18
- package/leaflet-controller.d.ts +2 -3
- package/leaflet-controller.js +450 -453
- package/leaflet-controller.js.map +1 -1
- package/leaflet-controller.umd.js +3 -3
- package/leaflet-controller.umd.js.map +1 -1
- package/leaflet.js +949 -954
- package/leaflet.js.map +1 -1
- package/leaflet.umd.js +3 -3
- package/leaflet.umd.js.map +1 -1
- package/maplibregl-controller.d.ts +2 -3
- package/maplibregl-controller.js +140 -143
- package/maplibregl-controller.js.map +1 -1
- package/maplibregl-controller.umd.js +2 -2
- package/maplibregl-controller.umd.js.map +1 -1
- package/maplibregl.d.ts +0 -17
- package/maplibregl.js +1673 -1680
- package/maplibregl.js.map +1 -1
- package/maplibregl.umd.js +3 -3
- package/maplibregl.umd.js.map +1 -1
- package/maptilersdk.d.ts +0 -17
- package/maptilersdk.js +1670 -1677
- package/maptilersdk.js.map +1 -1
- package/maptilersdk.umd.js +3 -3
- package/maptilersdk.umd.js.map +1 -1
- package/openlayers-controller.d.ts +2 -3
- package/openlayers-controller.js +366 -369
- package/openlayers-controller.js.map +1 -1
- package/openlayers-controller.umd.js +3 -3
- package/openlayers-controller.umd.js.map +1 -1
- package/openlayers.js +1075 -1079
- package/openlayers.js.map +1 -1
- package/openlayers.umd.js +3 -3
- package/openlayers.umd.js.map +1 -1
- package/package.json +1 -1
- package/react.js +739 -737
- package/react.js.map +1 -1
- package/react.umd.js +1 -1
- package/react.umd.js.map +1 -1
- package/svelte/GeocodingControl.svelte +7 -5
- package/svelte/MapLibreBasedGeocodingControl.d.ts +1 -18
- package/svelte/MapLibreBasedGeocodingControl.js +2 -7
- package/svelte/leaflet-controller.d.ts +2 -3
- package/svelte/leaflet-controller.js +3 -7
- package/svelte/leaflet.js +2 -7
- package/svelte/maplibregl-controller.d.ts +2 -3
- package/svelte/maplibregl-controller.js +3 -7
- package/svelte/maplibregl.d.ts +0 -17
- package/svelte/maptilersdk.d.ts +0 -17
- package/svelte/openlayers-controller.d.ts +2 -3
- package/svelte/openlayers-controller.js +3 -7
- package/svelte/openlayers.js +2 -5
- package/svelte/types.d.ts +1 -2
- package/types.d.ts +1 -2
- package/vanilla.js +760 -758
- package/vanilla.js.map +1 -1
- package/vanilla.umd.js +1 -1
- package/vanilla.umd.js.map +1 -1
package/vanilla.js
CHANGED
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
1
|
+
var mi = Object.defineProperty;
|
|
2
|
+
var gi = Object.getPrototypeOf;
|
|
3
|
+
var hi = Reflect.get;
|
|
4
|
+
var gt = (i) => {
|
|
5
5
|
throw TypeError(i);
|
|
6
6
|
};
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
function
|
|
7
|
+
var bi = (i, e, t) => e in i ? mi(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
|
|
8
|
+
var tt = (i, e, t) => bi(i, typeof e != "symbol" ? e + "" : e, t), it = (i, e, t) => e.has(i) || gt("Cannot " + t);
|
|
9
|
+
var te = (i, e, t) => (it(i, e, "read from private field"), t ? t.call(i) : e.get(i)), nt = (i, e, t) => e.has(i) ? gt("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(i) : e.set(i, t), ht = (i, e, t, n) => (it(i, e, "write to private field"), n ? n.call(i, t) : e.set(i, t), t), bt = (i, e, t) => (it(i, e, "access private method"), t);
|
|
10
|
+
var vt = (i, e, t) => hi(gi(i), t, e);
|
|
11
|
+
function A() {
|
|
12
12
|
}
|
|
13
|
-
function
|
|
13
|
+
function vi(i, e) {
|
|
14
14
|
for (const t in e) i[t] = e[t];
|
|
15
15
|
return (
|
|
16
16
|
/** @type {T & S} */
|
|
17
17
|
i
|
|
18
18
|
);
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function Bt(i) {
|
|
21
21
|
return i();
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function Lt() {
|
|
24
24
|
return /* @__PURE__ */ Object.create(null);
|
|
25
25
|
}
|
|
26
|
-
function
|
|
27
|
-
i.forEach(
|
|
26
|
+
function se(i) {
|
|
27
|
+
i.forEach(Bt);
|
|
28
28
|
}
|
|
29
|
-
function
|
|
29
|
+
function Ft(i) {
|
|
30
30
|
return typeof i == "function";
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function he(i, e) {
|
|
33
33
|
return i != i ? e == e : i !== e || i && typeof i == "object" || typeof i == "function";
|
|
34
34
|
}
|
|
35
|
-
let
|
|
35
|
+
let Be;
|
|
36
36
|
function K(i, e) {
|
|
37
|
-
return i === e ? !0 : (
|
|
37
|
+
return i === e ? !0 : (Be || (Be = document.createElement("a")), Be.href = e, i === Be.href);
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function Li(i) {
|
|
40
40
|
return Object.keys(i).length === 0;
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function _i(i, e, t, n) {
|
|
43
43
|
if (i) {
|
|
44
|
-
const r =
|
|
44
|
+
const r = Ht(i, e, t, n);
|
|
45
45
|
return i[0](r);
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
|
-
function
|
|
49
|
-
return i[1] && n ?
|
|
48
|
+
function Ht(i, e, t, n) {
|
|
49
|
+
return i[1] && n ? vi(t.ctx.slice(), i[1](n(e))) : t.ctx;
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function yi(i, e, t, n) {
|
|
52
52
|
if (i[2] && n) {
|
|
53
53
|
const r = i[2](n(t));
|
|
54
54
|
if (e.dirty === void 0)
|
|
55
55
|
return r;
|
|
56
56
|
if (typeof r == "object") {
|
|
57
|
-
const l = [],
|
|
58
|
-
for (let o = 0; o <
|
|
57
|
+
const l = [], d = Math.max(e.dirty.length, r.length);
|
|
58
|
+
for (let o = 0; o < d; o += 1)
|
|
59
59
|
l[o] = e.dirty[o] | r[o];
|
|
60
60
|
return l;
|
|
61
61
|
}
|
|
@@ -63,13 +63,13 @@ function _i(i, e, t, n) {
|
|
|
63
63
|
}
|
|
64
64
|
return e.dirty;
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function wi(i, e, t, n, r, l) {
|
|
67
67
|
if (r) {
|
|
68
|
-
const
|
|
69
|
-
i.p(
|
|
68
|
+
const d = Ht(e, t, n, l);
|
|
69
|
+
i.p(d, r);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function Ei(i) {
|
|
73
73
|
if (i.ctx.length > 32) {
|
|
74
74
|
const e = [], t = i.ctx.length / 32;
|
|
75
75
|
for (let n = 0; n < t; n++)
|
|
@@ -78,37 +78,37 @@ function wi(i) {
|
|
|
78
78
|
}
|
|
79
79
|
return -1;
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function _t(i) {
|
|
82
82
|
return i ?? "";
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function k(i, e) {
|
|
85
85
|
i.appendChild(e);
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function B(i, e, t) {
|
|
88
88
|
i.insertBefore(e, t || null);
|
|
89
89
|
}
|
|
90
90
|
function D(i) {
|
|
91
91
|
i.parentNode && i.parentNode.removeChild(i);
|
|
92
92
|
}
|
|
93
|
-
function
|
|
93
|
+
function W(i) {
|
|
94
94
|
return document.createElement(i);
|
|
95
95
|
}
|
|
96
|
-
function
|
|
96
|
+
function ne(i) {
|
|
97
97
|
return document.createElementNS("http://www.w3.org/2000/svg", i);
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function ue(i) {
|
|
100
100
|
return document.createTextNode(i);
|
|
101
101
|
}
|
|
102
102
|
function X() {
|
|
103
|
-
return
|
|
103
|
+
return ue(" ");
|
|
104
104
|
}
|
|
105
|
-
function
|
|
106
|
-
return
|
|
105
|
+
function Si() {
|
|
106
|
+
return ue("");
|
|
107
107
|
}
|
|
108
108
|
function V(i, e, t, n) {
|
|
109
109
|
return i.addEventListener(e, t, n), () => i.removeEventListener(e, t, n);
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function pi(i) {
|
|
112
112
|
return function(e) {
|
|
113
113
|
return e.preventDefault(), i.call(this, e);
|
|
114
114
|
};
|
|
@@ -116,216 +116,216 @@ function Si(i) {
|
|
|
116
116
|
function a(i, e, t) {
|
|
117
117
|
t == null ? i.removeAttribute(e) : i.getAttribute(e) !== t && i.setAttribute(e, t);
|
|
118
118
|
}
|
|
119
|
-
function
|
|
119
|
+
function Ni(i) {
|
|
120
120
|
return Array.from(i.childNodes);
|
|
121
121
|
}
|
|
122
|
-
function
|
|
122
|
+
function We(i, e) {
|
|
123
123
|
e = "" + e, i.data !== e && (i.data = /** @type {string} */
|
|
124
124
|
e);
|
|
125
125
|
}
|
|
126
|
-
function
|
|
126
|
+
function yt(i, e) {
|
|
127
127
|
i.value = e ?? "";
|
|
128
128
|
}
|
|
129
|
-
function
|
|
129
|
+
function le(i, e, t) {
|
|
130
130
|
i.classList.toggle(e, !!t);
|
|
131
131
|
}
|
|
132
|
-
function
|
|
132
|
+
function ki(i, e, { bubbles: t = !1, cancelable: n = !1 } = {}) {
|
|
133
133
|
return new CustomEvent(i, { detail: e, bubbles: t, cancelable: n });
|
|
134
134
|
}
|
|
135
|
-
let
|
|
136
|
-
function
|
|
137
|
-
|
|
135
|
+
let ze;
|
|
136
|
+
function Ce(i) {
|
|
137
|
+
ze = i;
|
|
138
138
|
}
|
|
139
|
-
function
|
|
140
|
-
if (!
|
|
141
|
-
return
|
|
139
|
+
function Pt() {
|
|
140
|
+
if (!ze) throw new Error("Function called outside component initialization");
|
|
141
|
+
return ze;
|
|
142
142
|
}
|
|
143
|
-
function
|
|
144
|
-
|
|
143
|
+
function Mi(i) {
|
|
144
|
+
Pt().$$.on_destroy.push(i);
|
|
145
145
|
}
|
|
146
|
-
function
|
|
147
|
-
const i =
|
|
146
|
+
function Ti() {
|
|
147
|
+
const i = Pt();
|
|
148
148
|
return (e, t, { cancelable: n = !1 } = {}) => {
|
|
149
149
|
const r = i.$$.callbacks[e];
|
|
150
150
|
if (r) {
|
|
151
|
-
const l =
|
|
151
|
+
const l = ki(
|
|
152
152
|
/** @type {string} */
|
|
153
153
|
e,
|
|
154
154
|
t,
|
|
155
155
|
{ cancelable: n }
|
|
156
156
|
);
|
|
157
|
-
return r.slice().forEach((
|
|
158
|
-
|
|
157
|
+
return r.slice().forEach((d) => {
|
|
158
|
+
d.call(i, l);
|
|
159
159
|
}), !l.defaultPrevented;
|
|
160
160
|
}
|
|
161
161
|
return !0;
|
|
162
162
|
};
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function wt(i, e) {
|
|
165
165
|
const t = i.$$.callbacks[e.type];
|
|
166
166
|
t && t.slice().forEach((n) => n.call(this, e));
|
|
167
167
|
}
|
|
168
|
-
const Se = [],
|
|
168
|
+
const Se = [], ot = [];
|
|
169
169
|
let pe = [];
|
|
170
|
-
const
|
|
171
|
-
let
|
|
172
|
-
function
|
|
173
|
-
|
|
170
|
+
const Et = [], Ci = /* @__PURE__ */ Promise.resolve();
|
|
171
|
+
let st = !1;
|
|
172
|
+
function Wi() {
|
|
173
|
+
st || (st = !0, Ci.then(jt));
|
|
174
174
|
}
|
|
175
|
-
function
|
|
175
|
+
function at(i) {
|
|
176
176
|
pe.push(i);
|
|
177
177
|
}
|
|
178
|
-
const
|
|
178
|
+
const rt = /* @__PURE__ */ new Set();
|
|
179
179
|
let Ee = 0;
|
|
180
180
|
function jt() {
|
|
181
181
|
if (Ee !== 0)
|
|
182
182
|
return;
|
|
183
|
-
const i =
|
|
183
|
+
const i = ze;
|
|
184
184
|
do {
|
|
185
185
|
try {
|
|
186
186
|
for (; Ee < Se.length; ) {
|
|
187
187
|
const e = Se[Ee];
|
|
188
|
-
Ee++,
|
|
188
|
+
Ee++, Ce(e), zi(e.$$);
|
|
189
189
|
}
|
|
190
190
|
} catch (e) {
|
|
191
191
|
throw Se.length = 0, Ee = 0, e;
|
|
192
192
|
}
|
|
193
|
-
for (
|
|
193
|
+
for (Ce(null), Se.length = 0, Ee = 0; ot.length; ) ot.pop()();
|
|
194
194
|
for (let e = 0; e < pe.length; e += 1) {
|
|
195
195
|
const t = pe[e];
|
|
196
|
-
|
|
196
|
+
rt.has(t) || (rt.add(t), t());
|
|
197
197
|
}
|
|
198
198
|
pe.length = 0;
|
|
199
199
|
} while (Se.length);
|
|
200
|
-
for (;
|
|
201
|
-
|
|
202
|
-
|
|
200
|
+
for (; Et.length; )
|
|
201
|
+
Et.pop()();
|
|
202
|
+
st = !1, rt.clear(), Ce(i);
|
|
203
203
|
}
|
|
204
|
-
function
|
|
204
|
+
function zi(i) {
|
|
205
205
|
if (i.fragment !== null) {
|
|
206
|
-
i.update(),
|
|
206
|
+
i.update(), se(i.before_update);
|
|
207
207
|
const e = i.dirty;
|
|
208
|
-
i.dirty = [-1], i.fragment && i.fragment.p(i.ctx, e), i.after_update.forEach(
|
|
208
|
+
i.dirty = [-1], i.fragment && i.fragment.p(i.ctx, e), i.after_update.forEach(at);
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
|
-
function
|
|
211
|
+
function Ri(i) {
|
|
212
212
|
const e = [], t = [];
|
|
213
213
|
pe.forEach((n) => i.indexOf(n) === -1 ? e.push(n) : t.push(n)), t.forEach((n) => n()), pe = e;
|
|
214
214
|
}
|
|
215
|
-
const
|
|
216
|
-
let
|
|
217
|
-
function
|
|
218
|
-
|
|
215
|
+
const Fe = /* @__PURE__ */ new Set();
|
|
216
|
+
let ge;
|
|
217
|
+
function He() {
|
|
218
|
+
ge = {
|
|
219
219
|
r: 0,
|
|
220
220
|
c: [],
|
|
221
|
-
p:
|
|
221
|
+
p: ge
|
|
222
222
|
// parent group
|
|
223
223
|
};
|
|
224
224
|
}
|
|
225
|
-
function
|
|
226
|
-
|
|
225
|
+
function Pe() {
|
|
226
|
+
ge.r || se(ge.c), ge = ge.p;
|
|
227
227
|
}
|
|
228
228
|
function F(i, e) {
|
|
229
|
-
i && i.i && (
|
|
229
|
+
i && i.i && (Fe.delete(i), i.i(e));
|
|
230
230
|
}
|
|
231
231
|
function Q(i, e, t, n) {
|
|
232
232
|
if (i && i.o) {
|
|
233
|
-
if (
|
|
234
|
-
|
|
235
|
-
|
|
233
|
+
if (Fe.has(i)) return;
|
|
234
|
+
Fe.add(i), ge.c.push(() => {
|
|
235
|
+
Fe.delete(i), n && (t && i.d(1), n());
|
|
236
236
|
}), i.o(e);
|
|
237
237
|
} else n && n();
|
|
238
238
|
}
|
|
239
|
-
function
|
|
239
|
+
function St(i) {
|
|
240
240
|
return (i == null ? void 0 : i.length) !== void 0 ? i : Array.from(i);
|
|
241
241
|
}
|
|
242
|
-
function
|
|
242
|
+
function Oi(i, e) {
|
|
243
243
|
Q(i, 1, 1, () => {
|
|
244
244
|
e.delete(i.key);
|
|
245
245
|
});
|
|
246
246
|
}
|
|
247
|
-
function
|
|
248
|
-
let
|
|
249
|
-
const
|
|
250
|
-
for (;
|
|
251
|
-
const
|
|
252
|
-
for (
|
|
253
|
-
const
|
|
254
|
-
let
|
|
255
|
-
|
|
247
|
+
function Di(i, e, t, n, r, l, d, o, m, u, f, v) {
|
|
248
|
+
let b = i.length, y = l.length, _ = b;
|
|
249
|
+
const z = {};
|
|
250
|
+
for (; _--; ) z[i[_].key] = _;
|
|
251
|
+
const L = [], E = /* @__PURE__ */ new Map(), C = /* @__PURE__ */ new Map(), T = [];
|
|
252
|
+
for (_ = y; _--; ) {
|
|
253
|
+
const c = v(r, l, _), g = t(c);
|
|
254
|
+
let M = d.get(g);
|
|
255
|
+
M ? T.push(() => M.p(c, e)) : (M = u(g, c), M.c()), E.set(g, L[_] = M), g in z && C.set(g, Math.abs(_ - z[g]));
|
|
256
256
|
}
|
|
257
|
-
const p = /* @__PURE__ */ new Set(),
|
|
258
|
-
function
|
|
259
|
-
F(
|
|
257
|
+
const p = /* @__PURE__ */ new Set(), H = /* @__PURE__ */ new Set();
|
|
258
|
+
function R(c) {
|
|
259
|
+
F(c, 1), c.m(o, f), d.set(c.key, c), f = c.first, y--;
|
|
260
260
|
}
|
|
261
|
-
for (;
|
|
262
|
-
const
|
|
263
|
-
|
|
261
|
+
for (; b && y; ) {
|
|
262
|
+
const c = L[y - 1], g = i[b - 1], M = c.key, Z = g.key;
|
|
263
|
+
c === g ? (f = c.first, b--, y--) : E.has(Z) ? !d.has(M) || p.has(M) ? R(c) : H.has(Z) ? b-- : C.get(M) > C.get(Z) ? (H.add(M), R(c)) : (p.add(Z), b--) : (m(g, d), b--);
|
|
264
264
|
}
|
|
265
|
-
for (;
|
|
266
|
-
const
|
|
267
|
-
E.has(
|
|
265
|
+
for (; b--; ) {
|
|
266
|
+
const c = i[b];
|
|
267
|
+
E.has(c.key) || m(c, d);
|
|
268
268
|
}
|
|
269
|
-
for (;
|
|
270
|
-
return
|
|
269
|
+
for (; y; ) R(L[y - 1]);
|
|
270
|
+
return se(T), L;
|
|
271
271
|
}
|
|
272
|
-
function
|
|
272
|
+
function ce(i) {
|
|
273
273
|
i && i.c();
|
|
274
274
|
}
|
|
275
|
-
function
|
|
275
|
+
function re(i, e, t) {
|
|
276
276
|
const { fragment: n, after_update: r } = i.$$;
|
|
277
|
-
n && n.m(e, t),
|
|
278
|
-
const l = i.$$.on_mount.map(
|
|
279
|
-
i.$$.on_destroy ? i.$$.on_destroy.push(...l) :
|
|
280
|
-
}), r.forEach(
|
|
277
|
+
n && n.m(e, t), at(() => {
|
|
278
|
+
const l = i.$$.on_mount.map(Bt).filter(Ft);
|
|
279
|
+
i.$$.on_destroy ? i.$$.on_destroy.push(...l) : se(l), i.$$.on_mount = [];
|
|
280
|
+
}), r.forEach(at);
|
|
281
281
|
}
|
|
282
|
-
function
|
|
282
|
+
function oe(i, e) {
|
|
283
283
|
const t = i.$$;
|
|
284
|
-
t.fragment !== null && (
|
|
284
|
+
t.fragment !== null && (Ri(t.after_update), se(t.on_destroy), t.fragment && t.fragment.d(e), t.on_destroy = t.fragment = null, t.ctx = []);
|
|
285
285
|
}
|
|
286
|
-
function
|
|
287
|
-
i.$$.dirty[0] === -1 && (Se.push(i),
|
|
286
|
+
function Ui(i, e) {
|
|
287
|
+
i.$$.dirty[0] === -1 && (Se.push(i), Wi(), i.$$.dirty.fill(0)), i.$$.dirty[e / 31 | 0] |= 1 << e % 31;
|
|
288
288
|
}
|
|
289
|
-
function
|
|
290
|
-
const
|
|
291
|
-
|
|
289
|
+
function be(i, e, t, n, r, l, d = null, o = [-1]) {
|
|
290
|
+
const m = ze;
|
|
291
|
+
Ce(i);
|
|
292
292
|
const u = i.$$ = {
|
|
293
293
|
fragment: null,
|
|
294
294
|
ctx: [],
|
|
295
295
|
// state
|
|
296
296
|
props: l,
|
|
297
|
-
update:
|
|
297
|
+
update: A,
|
|
298
298
|
not_equal: r,
|
|
299
|
-
bound:
|
|
299
|
+
bound: Lt(),
|
|
300
300
|
// lifecycle
|
|
301
301
|
on_mount: [],
|
|
302
302
|
on_destroy: [],
|
|
303
303
|
on_disconnect: [],
|
|
304
304
|
before_update: [],
|
|
305
305
|
after_update: [],
|
|
306
|
-
context: new Map(e.context || (
|
|
306
|
+
context: new Map(e.context || (m ? m.$$.context : [])),
|
|
307
307
|
// everything else
|
|
308
|
-
callbacks:
|
|
308
|
+
callbacks: Lt(),
|
|
309
309
|
dirty: o,
|
|
310
310
|
skip_bound: !1,
|
|
311
|
-
root: e.target ||
|
|
311
|
+
root: e.target || m.$$.root
|
|
312
312
|
};
|
|
313
|
-
|
|
313
|
+
d && d(u.root);
|
|
314
314
|
let f = !1;
|
|
315
|
-
if (u.ctx = t ? t(i, e.props || {}, (
|
|
316
|
-
const
|
|
317
|
-
return u.ctx && r(u.ctx[
|
|
318
|
-
}) : [], u.update(), f = !0,
|
|
315
|
+
if (u.ctx = t ? t(i, e.props || {}, (v, b, ...y) => {
|
|
316
|
+
const _ = y.length ? y[0] : b;
|
|
317
|
+
return u.ctx && r(u.ctx[v], u.ctx[v] = _) && (!u.skip_bound && u.bound[v] && u.bound[v](_), f && Ui(i, v)), b;
|
|
318
|
+
}) : [], u.update(), f = !0, se(u.before_update), u.fragment = n ? n(u.ctx) : !1, e.target) {
|
|
319
319
|
if (e.hydrate) {
|
|
320
|
-
const
|
|
321
|
-
u.fragment && u.fragment.l(
|
|
320
|
+
const v = Ni(e.target);
|
|
321
|
+
u.fragment && u.fragment.l(v), v.forEach(D);
|
|
322
322
|
} else
|
|
323
323
|
u.fragment && u.fragment.c();
|
|
324
|
-
e.intro && F(i.$$.fragment),
|
|
324
|
+
e.intro && F(i.$$.fragment), re(i, e.target, e.anchor), jt();
|
|
325
325
|
}
|
|
326
|
-
|
|
326
|
+
Ce(m);
|
|
327
327
|
}
|
|
328
|
-
class
|
|
328
|
+
class ve {
|
|
329
329
|
constructor() {
|
|
330
330
|
/**
|
|
331
331
|
* ### PRIVATE API
|
|
@@ -334,7 +334,7 @@ class _e {
|
|
|
334
334
|
*
|
|
335
335
|
* @type {any}
|
|
336
336
|
*/
|
|
337
|
-
|
|
337
|
+
tt(this, "$$");
|
|
338
338
|
/**
|
|
339
339
|
* ### PRIVATE API
|
|
340
340
|
*
|
|
@@ -342,11 +342,11 @@ class _e {
|
|
|
342
342
|
*
|
|
343
343
|
* @type {any}
|
|
344
344
|
*/
|
|
345
|
-
|
|
345
|
+
tt(this, "$$set");
|
|
346
346
|
}
|
|
347
347
|
/** @returns {void} */
|
|
348
348
|
$destroy() {
|
|
349
|
-
|
|
349
|
+
oe(this, 1), this.$destroy = A;
|
|
350
350
|
}
|
|
351
351
|
/**
|
|
352
352
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -355,8 +355,8 @@ class _e {
|
|
|
355
355
|
* @returns {() => void}
|
|
356
356
|
*/
|
|
357
357
|
$on(e, t) {
|
|
358
|
-
if (!
|
|
359
|
-
return
|
|
358
|
+
if (!Ft(t))
|
|
359
|
+
return A;
|
|
360
360
|
const n = this.$$.callbacks[e] || (this.$$.callbacks[e] = []);
|
|
361
361
|
return n.push(t), () => {
|
|
362
362
|
const r = n.indexOf(t);
|
|
@@ -368,60 +368,60 @@ class _e {
|
|
|
368
368
|
* @returns {void}
|
|
369
369
|
*/
|
|
370
370
|
$set(e) {
|
|
371
|
-
this.$$set && !
|
|
371
|
+
this.$$set && !Li(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
|
|
372
372
|
}
|
|
373
373
|
}
|
|
374
|
-
const
|
|
375
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
376
|
-
function
|
|
374
|
+
const Ii = "4";
|
|
375
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Ii);
|
|
376
|
+
function Ai(i) {
|
|
377
377
|
let e, t;
|
|
378
378
|
return {
|
|
379
379
|
c() {
|
|
380
|
-
e =
|
|
380
|
+
e = ne("svg"), t = ne("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");
|
|
381
381
|
},
|
|
382
382
|
m(n, r) {
|
|
383
|
-
|
|
383
|
+
B(n, e, r), k(e, t);
|
|
384
384
|
},
|
|
385
|
-
p:
|
|
386
|
-
i:
|
|
387
|
-
o:
|
|
385
|
+
p: A,
|
|
386
|
+
i: A,
|
|
387
|
+
o: A,
|
|
388
388
|
d(n) {
|
|
389
389
|
n && D(e);
|
|
390
390
|
}
|
|
391
391
|
};
|
|
392
392
|
}
|
|
393
|
-
class
|
|
393
|
+
class Zt extends ve {
|
|
394
394
|
constructor(e) {
|
|
395
|
-
super(),
|
|
395
|
+
super(), be(this, e, null, Ai, he, {});
|
|
396
396
|
}
|
|
397
397
|
}
|
|
398
|
-
function
|
|
398
|
+
function Bi(i) {
|
|
399
399
|
let e, t;
|
|
400
400
|
return {
|
|
401
401
|
c() {
|
|
402
|
-
e =
|
|
402
|
+
e = ne("svg"), t = ne("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");
|
|
403
403
|
},
|
|
404
404
|
m(n, r) {
|
|
405
|
-
|
|
405
|
+
B(n, e, r), k(e, t);
|
|
406
406
|
},
|
|
407
|
-
p:
|
|
408
|
-
i:
|
|
409
|
-
o:
|
|
407
|
+
p: A,
|
|
408
|
+
i: A,
|
|
409
|
+
o: A,
|
|
410
410
|
d(n) {
|
|
411
411
|
n && D(e);
|
|
412
412
|
}
|
|
413
413
|
};
|
|
414
414
|
}
|
|
415
|
-
class
|
|
415
|
+
class qt extends ve {
|
|
416
416
|
constructor(e) {
|
|
417
|
-
super(),
|
|
417
|
+
super(), be(this, e, null, Bi, he, {});
|
|
418
418
|
}
|
|
419
419
|
}
|
|
420
|
-
function
|
|
420
|
+
function Fi(i) {
|
|
421
421
|
let e, t;
|
|
422
422
|
return {
|
|
423
423
|
c() {
|
|
424
|
-
e =
|
|
424
|
+
e = W("img"), K(e.src, t = /*iconsBaseUrl*/
|
|
425
425
|
i[3] + "area.svg") || a(e, "src", t), a(
|
|
426
426
|
e,
|
|
427
427
|
"alt",
|
|
@@ -430,7 +430,7 @@ function Bi(i) {
|
|
|
430
430
|
), a(e, "class", "svelte-ltkwvy");
|
|
431
431
|
},
|
|
432
432
|
m(n, r) {
|
|
433
|
-
|
|
433
|
+
B(n, e, r);
|
|
434
434
|
},
|
|
435
435
|
p(n, r) {
|
|
436
436
|
r & /*iconsBaseUrl*/
|
|
@@ -448,11 +448,11 @@ function Bi(i) {
|
|
|
448
448
|
}
|
|
449
449
|
};
|
|
450
450
|
}
|
|
451
|
-
function
|
|
451
|
+
function Hi(i) {
|
|
452
452
|
let e, t;
|
|
453
453
|
return {
|
|
454
454
|
c() {
|
|
455
|
-
e =
|
|
455
|
+
e = W("img"), K(e.src, t = /*iconsBaseUrl*/
|
|
456
456
|
i[3] + "reverse.svg") || a(e, "src", t), a(
|
|
457
457
|
e,
|
|
458
458
|
"alt",
|
|
@@ -461,7 +461,7 @@ function Fi(i) {
|
|
|
461
461
|
), a(e, "class", "svelte-ltkwvy");
|
|
462
462
|
},
|
|
463
463
|
m(n, r) {
|
|
464
|
-
|
|
464
|
+
B(n, e, r);
|
|
465
465
|
},
|
|
466
466
|
p(n, r) {
|
|
467
467
|
r & /*iconsBaseUrl*/
|
|
@@ -479,11 +479,11 @@ function Fi(i) {
|
|
|
479
479
|
}
|
|
480
480
|
};
|
|
481
481
|
}
|
|
482
|
-
function
|
|
482
|
+
function Pi(i) {
|
|
483
483
|
let e, t;
|
|
484
484
|
return {
|
|
485
485
|
c() {
|
|
486
|
-
e =
|
|
486
|
+
e = W("img"), K(e.src, t = /*iconsBaseUrl*/
|
|
487
487
|
i[3] + "poi.svg") || a(e, "src", t), a(
|
|
488
488
|
e,
|
|
489
489
|
"alt",
|
|
@@ -492,7 +492,7 @@ function Hi(i) {
|
|
|
492
492
|
), a(e, "class", "svelte-ltkwvy");
|
|
493
493
|
},
|
|
494
494
|
m(n, r) {
|
|
495
|
-
|
|
495
|
+
B(n, e, r);
|
|
496
496
|
},
|
|
497
497
|
p(n, r) {
|
|
498
498
|
r & /*iconsBaseUrl*/
|
|
@@ -514,7 +514,7 @@ function ji(i) {
|
|
|
514
514
|
let e, t;
|
|
515
515
|
return {
|
|
516
516
|
c() {
|
|
517
|
-
e =
|
|
517
|
+
e = W("img"), K(e.src, t = /*iconsBaseUrl*/
|
|
518
518
|
i[3] + "postal_code.svg") || a(e, "src", t), a(
|
|
519
519
|
e,
|
|
520
520
|
"alt",
|
|
@@ -523,7 +523,7 @@ function ji(i) {
|
|
|
523
523
|
), a(e, "class", "svelte-ltkwvy");
|
|
524
524
|
},
|
|
525
525
|
m(n, r) {
|
|
526
|
-
|
|
526
|
+
B(n, e, r);
|
|
527
527
|
},
|
|
528
528
|
p(n, r) {
|
|
529
529
|
r & /*iconsBaseUrl*/
|
|
@@ -541,11 +541,11 @@ function ji(i) {
|
|
|
541
541
|
}
|
|
542
542
|
};
|
|
543
543
|
}
|
|
544
|
-
function
|
|
544
|
+
function Zi(i) {
|
|
545
545
|
let e, t;
|
|
546
546
|
return {
|
|
547
547
|
c() {
|
|
548
|
-
e =
|
|
548
|
+
e = W("img"), K(e.src, t = /*iconsBaseUrl*/
|
|
549
549
|
i[3] + "street.svg") || a(e, "src", t), a(
|
|
550
550
|
e,
|
|
551
551
|
"alt",
|
|
@@ -554,7 +554,7 @@ function Pi(i) {
|
|
|
554
554
|
), a(e, "class", "svelte-ltkwvy");
|
|
555
555
|
},
|
|
556
556
|
m(n, r) {
|
|
557
|
-
|
|
557
|
+
B(n, e, r);
|
|
558
558
|
},
|
|
559
559
|
p(n, r) {
|
|
560
560
|
r & /*iconsBaseUrl*/
|
|
@@ -572,11 +572,11 @@ function Pi(i) {
|
|
|
572
572
|
}
|
|
573
573
|
};
|
|
574
574
|
}
|
|
575
|
-
function
|
|
575
|
+
function qi(i) {
|
|
576
576
|
let e, t;
|
|
577
577
|
return {
|
|
578
578
|
c() {
|
|
579
|
-
e =
|
|
579
|
+
e = W("img"), K(e.src, t = /*iconsBaseUrl*/
|
|
580
580
|
i[3] + "road.svg") || a(e, "src", t), a(
|
|
581
581
|
e,
|
|
582
582
|
"alt",
|
|
@@ -585,7 +585,7 @@ function Zi(i) {
|
|
|
585
585
|
), a(e, "class", "svelte-ltkwvy");
|
|
586
586
|
},
|
|
587
587
|
m(n, r) {
|
|
588
|
-
|
|
588
|
+
B(n, e, r);
|
|
589
589
|
},
|
|
590
590
|
p(n, r) {
|
|
591
591
|
r & /*iconsBaseUrl*/
|
|
@@ -603,11 +603,11 @@ function Zi(i) {
|
|
|
603
603
|
}
|
|
604
604
|
};
|
|
605
605
|
}
|
|
606
|
-
function
|
|
606
|
+
function Gi(i) {
|
|
607
607
|
let e, t;
|
|
608
608
|
return {
|
|
609
609
|
c() {
|
|
610
|
-
e =
|
|
610
|
+
e = W("img"), K(e.src, t = /*iconsBaseUrl*/
|
|
611
611
|
i[3] + "housenumber.svg") || a(e, "src", t), a(
|
|
612
612
|
e,
|
|
613
613
|
"alt",
|
|
@@ -616,7 +616,7 @@ function qi(i) {
|
|
|
616
616
|
), a(e, "class", "svelte-ltkwvy");
|
|
617
617
|
},
|
|
618
618
|
m(n, r) {
|
|
619
|
-
|
|
619
|
+
B(n, e, r);
|
|
620
620
|
},
|
|
621
621
|
p(n, r) {
|
|
622
622
|
r & /*iconsBaseUrl*/
|
|
@@ -634,11 +634,11 @@ function qi(i) {
|
|
|
634
634
|
}
|
|
635
635
|
};
|
|
636
636
|
}
|
|
637
|
-
function
|
|
637
|
+
function Qi(i) {
|
|
638
638
|
let e, t, n, r;
|
|
639
639
|
return {
|
|
640
640
|
c() {
|
|
641
|
-
e =
|
|
641
|
+
e = W("img"), K(e.src, t = /*imageUrl*/
|
|
642
642
|
i[5]) || a(e, "src", t), a(
|
|
643
643
|
e,
|
|
644
644
|
"alt",
|
|
@@ -646,18 +646,18 @@ function Gi(i) {
|
|
|
646
646
|
i[4]
|
|
647
647
|
), a(e, "class", "svelte-ltkwvy");
|
|
648
648
|
},
|
|
649
|
-
m(l,
|
|
650
|
-
|
|
649
|
+
m(l, d) {
|
|
650
|
+
B(l, e, d), n || (r = V(
|
|
651
651
|
e,
|
|
652
652
|
"error",
|
|
653
653
|
/*error_handler*/
|
|
654
654
|
i[14]
|
|
655
655
|
), n = !0);
|
|
656
656
|
},
|
|
657
|
-
p(l,
|
|
658
|
-
|
|
657
|
+
p(l, d) {
|
|
658
|
+
d & /*imageUrl*/
|
|
659
659
|
32 && !K(e.src, t = /*imageUrl*/
|
|
660
|
-
l[5]) && a(e, "src", t),
|
|
660
|
+
l[5]) && a(e, "src", t), d & /*category*/
|
|
661
661
|
16 && a(
|
|
662
662
|
e,
|
|
663
663
|
"alt",
|
|
@@ -670,21 +670,21 @@ function Gi(i) {
|
|
|
670
670
|
}
|
|
671
671
|
};
|
|
672
672
|
}
|
|
673
|
-
function
|
|
673
|
+
function pt(i) {
|
|
674
674
|
let e, t;
|
|
675
675
|
return {
|
|
676
676
|
c() {
|
|
677
|
-
e =
|
|
677
|
+
e = W("span"), t = ue(
|
|
678
678
|
/*placeType*/
|
|
679
679
|
i[6]
|
|
680
680
|
), a(e, "class", "secondary svelte-ltkwvy");
|
|
681
681
|
},
|
|
682
682
|
m(n, r) {
|
|
683
|
-
|
|
683
|
+
B(n, e, r), k(e, t);
|
|
684
684
|
},
|
|
685
685
|
p(n, r) {
|
|
686
686
|
r & /*placeType*/
|
|
687
|
-
64 &&
|
|
687
|
+
64 && We(
|
|
688
688
|
t,
|
|
689
689
|
/*placeType*/
|
|
690
690
|
n[6]
|
|
@@ -695,8 +695,8 @@ function St(i) {
|
|
|
695
695
|
}
|
|
696
696
|
};
|
|
697
697
|
}
|
|
698
|
-
function
|
|
699
|
-
let e, t, n, r, l,
|
|
698
|
+
function Ki(i) {
|
|
699
|
+
let e, t, n, r, l, d, o, m, u, f = (
|
|
700
700
|
/*isReverse*/
|
|
701
701
|
(i[7] ? (
|
|
702
702
|
/*feature*/
|
|
@@ -705,7 +705,7 @@ function Qi(i) {
|
|
|
705
705
|
/*feature*/
|
|
706
706
|
i[0].place_name.replace(/,.*/, "")
|
|
707
707
|
)) + ""
|
|
708
|
-
),
|
|
708
|
+
), v, b, y = (
|
|
709
709
|
/*showPlaceType*/
|
|
710
710
|
i[2] === "always" || /*showPlaceType*/
|
|
711
711
|
i[2] !== "never" && !/*feature*/
|
|
@@ -716,48 +716,48 @@ function Qi(i) {
|
|
|
716
716
|
i[0].id.startsWith("poi.") || !/*imageUrl*/
|
|
717
717
|
i[5]) && !/*isReverse*/
|
|
718
718
|
i[7]
|
|
719
|
-
),
|
|
719
|
+
), _, z, L = (
|
|
720
720
|
/*isReverse*/
|
|
721
721
|
(i[7] ? "" : (
|
|
722
722
|
/*feature*/
|
|
723
723
|
i[0].place_name.replace(/[^,]*,?\s*/, "")
|
|
724
724
|
)) + ""
|
|
725
|
-
), E, C,
|
|
726
|
-
function p(
|
|
727
|
-
return
|
|
728
|
-
1 && (t = null),
|
|
729
|
-
1 && (n = null),
|
|
730
|
-
1 && (r = null),
|
|
725
|
+
), E, C, T;
|
|
726
|
+
function p(g, M) {
|
|
727
|
+
return M & /*feature*/
|
|
728
|
+
1 && (t = null), M & /*feature*/
|
|
729
|
+
1 && (n = null), M & /*feature*/
|
|
730
|
+
1 && (r = null), M & /*feature*/
|
|
731
731
|
1 && (l = null), /*imageUrl*/
|
|
732
|
-
|
|
732
|
+
g[5] ? Qi : (
|
|
733
733
|
/*feature*/
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
734
|
+
g[0].address ? Gi : (t == null && (t = !!/*feature*/
|
|
735
|
+
g[0].id.startsWith("road.")), t ? qi : (n == null && (n = !!/*feature*/
|
|
736
|
+
g[0].id.startsWith("address.")), n ? Zi : (r == null && (r = !!/*feature*/
|
|
737
|
+
g[0].id.startsWith("postal_code.")), r ? ji : (l == null && (l = !!/*feature*/
|
|
738
|
+
g[0].id.startsWith("poi.")), l ? Pi : (
|
|
739
739
|
/*isReverse*/
|
|
740
|
-
|
|
740
|
+
g[7] ? Hi : Fi
|
|
741
741
|
)))))
|
|
742
742
|
);
|
|
743
743
|
}
|
|
744
|
-
let
|
|
744
|
+
let H = p(i, -1), R = H(i), c = y && pt(i);
|
|
745
745
|
return {
|
|
746
746
|
c() {
|
|
747
|
-
e =
|
|
747
|
+
e = W("li"), R.c(), d = X(), o = W("span"), m = W("span"), u = W("span"), v = ue(f), b = X(), c && c.c(), _ = X(), z = W("span"), E = ue(L), a(u, "class", "primary svelte-ltkwvy"), a(m, "class", "svelte-ltkwvy"), a(z, "class", "line2 svelte-ltkwvy"), a(o, "class", "texts svelte-ltkwvy"), a(e, "tabindex", "0"), a(
|
|
748
748
|
e,
|
|
749
749
|
"data-selected",
|
|
750
750
|
/*selected*/
|
|
751
751
|
i[1]
|
|
752
|
-
), a(e, "class", "svelte-ltkwvy"),
|
|
752
|
+
), a(e, "class", "svelte-ltkwvy"), le(
|
|
753
753
|
e,
|
|
754
754
|
"selected",
|
|
755
755
|
/*selected*/
|
|
756
756
|
i[1]
|
|
757
757
|
);
|
|
758
758
|
},
|
|
759
|
-
m(
|
|
760
|
-
|
|
759
|
+
m(g, M) {
|
|
760
|
+
B(g, e, M), R.m(e, null), k(e, d), k(e, o), k(o, m), k(m, u), k(u, v), k(m, b), c && c.m(m, null), k(o, _), k(o, z), k(z, E), C || (T = [
|
|
761
761
|
V(
|
|
762
762
|
e,
|
|
763
763
|
"mouseenter",
|
|
@@ -772,98 +772,98 @@ function Qi(i) {
|
|
|
772
772
|
)
|
|
773
773
|
], C = !0);
|
|
774
774
|
},
|
|
775
|
-
p(
|
|
776
|
-
|
|
775
|
+
p(g, [M]) {
|
|
776
|
+
H === (H = p(g, M)) && R ? R.p(g, M) : (R.d(1), R = H(g), R && (R.c(), R.m(e, d))), M & /*feature*/
|
|
777
777
|
1 && f !== (f = /*isReverse*/
|
|
778
|
-
(
|
|
778
|
+
(g[7] ? (
|
|
779
779
|
/*feature*/
|
|
780
|
-
|
|
780
|
+
g[0].place_name
|
|
781
781
|
) : (
|
|
782
782
|
/*feature*/
|
|
783
|
-
|
|
784
|
-
)) + "") &&
|
|
785
|
-
37 && (
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
1 &&
|
|
796
|
-
(
|
|
783
|
+
g[0].place_name.replace(/,.*/, "")
|
|
784
|
+
)) + "") && We(v, f), M & /*showPlaceType, feature, imageUrl*/
|
|
785
|
+
37 && (y = /*showPlaceType*/
|
|
786
|
+
g[2] === "always" || /*showPlaceType*/
|
|
787
|
+
g[2] !== "never" && !/*feature*/
|
|
788
|
+
g[0].address && !/*feature*/
|
|
789
|
+
g[0].id.startsWith("road.") && !/*feature*/
|
|
790
|
+
g[0].id.startsWith("address.") && !/*feature*/
|
|
791
|
+
g[0].id.startsWith("postal_code.") && (!/*feature*/
|
|
792
|
+
g[0].id.startsWith("poi.") || !/*imageUrl*/
|
|
793
|
+
g[5]) && !/*isReverse*/
|
|
794
|
+
g[7]), y ? c ? c.p(g, M) : (c = pt(g), c.c(), c.m(m, null)) : c && (c.d(1), c = null), M & /*feature*/
|
|
795
|
+
1 && L !== (L = /*isReverse*/
|
|
796
|
+
(g[7] ? "" : (
|
|
797
797
|
/*feature*/
|
|
798
|
-
|
|
799
|
-
)) + "") &&
|
|
798
|
+
g[0].place_name.replace(/[^,]*,?\s*/, "")
|
|
799
|
+
)) + "") && We(E, L), M & /*selected*/
|
|
800
800
|
2 && a(
|
|
801
801
|
e,
|
|
802
802
|
"data-selected",
|
|
803
803
|
/*selected*/
|
|
804
|
-
|
|
805
|
-
),
|
|
806
|
-
2 &&
|
|
804
|
+
g[1]
|
|
805
|
+
), M & /*selected*/
|
|
806
|
+
2 && le(
|
|
807
807
|
e,
|
|
808
808
|
"selected",
|
|
809
809
|
/*selected*/
|
|
810
|
-
|
|
810
|
+
g[1]
|
|
811
811
|
);
|
|
812
812
|
},
|
|
813
|
-
i:
|
|
814
|
-
o:
|
|
815
|
-
d(
|
|
816
|
-
|
|
813
|
+
i: A,
|
|
814
|
+
o: A,
|
|
815
|
+
d(g) {
|
|
816
|
+
g && D(e), R.d(), c && c.d(), C = !1, se(T);
|
|
817
817
|
}
|
|
818
818
|
};
|
|
819
819
|
}
|
|
820
|
-
function
|
|
821
|
-
var
|
|
822
|
-
let n, r, { feature: l } = e, { selected:
|
|
823
|
-
const f = (
|
|
824
|
-
let
|
|
825
|
-
function
|
|
826
|
-
|
|
820
|
+
function Vi(i, e, t) {
|
|
821
|
+
var T;
|
|
822
|
+
let n, r, { feature: l } = e, { selected: d = !1 } = e, { showPlaceType: o } = e, { missingIconsCache: m } = e, { iconsBaseUrl: u } = e;
|
|
823
|
+
const f = (T = l.properties) == null ? void 0 : T.categories;
|
|
824
|
+
let v, b, y = 0, _ = l.place_type[0] === "reverse";
|
|
825
|
+
function z() {
|
|
826
|
+
b && m.add(b), t(10, y++, y);
|
|
827
827
|
}
|
|
828
|
-
function
|
|
829
|
-
|
|
828
|
+
function L(p) {
|
|
829
|
+
wt.call(this, i, p);
|
|
830
830
|
}
|
|
831
831
|
function E(p) {
|
|
832
|
-
|
|
832
|
+
wt.call(this, i, p);
|
|
833
833
|
}
|
|
834
|
-
const C = () =>
|
|
834
|
+
const C = () => z();
|
|
835
835
|
return i.$$set = (p) => {
|
|
836
|
-
"feature" in p && t(0, l = p.feature), "selected" in p && t(1,
|
|
836
|
+
"feature" in p && t(0, l = p.feature), "selected" in p && t(1, d = p.selected), "showPlaceType" in p && t(2, o = p.showPlaceType), "missingIconsCache" in p && t(9, m = p.missingIconsCache), "iconsBaseUrl" in p && t(3, u = p.iconsBaseUrl);
|
|
837
837
|
}, i.$$.update = () => {
|
|
838
|
-
var p,
|
|
838
|
+
var p, H, R, c;
|
|
839
839
|
if (i.$$.dirty & /*loadIconAttempt, index, category, iconsBaseUrl, imageUrl, missingIconsCache*/
|
|
840
840
|
3640)
|
|
841
841
|
do
|
|
842
|
-
t(11, n--, n), t(4,
|
|
843
|
-
while (n > -1 && (!
|
|
842
|
+
t(11, n--, n), t(4, v = f == null ? void 0 : f[n]), t(5, b = v ? u + v.replace(/ /g, "_") + ".svg" : void 0);
|
|
843
|
+
while (n > -1 && (!b || m.has(b)));
|
|
844
844
|
i.$$.dirty & /*feature*/
|
|
845
|
-
1 && t(6, r = ((
|
|
845
|
+
1 && t(6, r = ((H = (p = l.properties) == null ? void 0 : p.categories) == null ? void 0 : H.join(", ")) ?? ((c = (R = l.properties) == null ? void 0 : R.place_type_name) == null ? void 0 : c[0]) ?? l.place_type[0]);
|
|
846
846
|
}, t(11, n = (f == null ? void 0 : f.length) ?? 0), [
|
|
847
847
|
l,
|
|
848
|
-
|
|
848
|
+
d,
|
|
849
849
|
o,
|
|
850
850
|
u,
|
|
851
|
-
h,
|
|
852
851
|
v,
|
|
852
|
+
b,
|
|
853
853
|
r,
|
|
854
|
-
w,
|
|
855
|
-
W,
|
|
856
|
-
d,
|
|
857
854
|
_,
|
|
858
|
-
|
|
855
|
+
z,
|
|
856
|
+
m,
|
|
859
857
|
y,
|
|
858
|
+
n,
|
|
859
|
+
L,
|
|
860
860
|
E,
|
|
861
861
|
C
|
|
862
862
|
];
|
|
863
863
|
}
|
|
864
|
-
class
|
|
864
|
+
class xi extends ve {
|
|
865
865
|
constructor(e) {
|
|
866
|
-
super(),
|
|
866
|
+
super(), be(this, e, Vi, Ki, he, {
|
|
867
867
|
feature: 0,
|
|
868
868
|
selected: 1,
|
|
869
869
|
showPlaceType: 2,
|
|
@@ -872,113 +872,113 @@ class Vi extends _e {
|
|
|
872
872
|
});
|
|
873
873
|
}
|
|
874
874
|
}
|
|
875
|
-
function
|
|
875
|
+
function Ji(i) {
|
|
876
876
|
let e;
|
|
877
877
|
return {
|
|
878
878
|
c() {
|
|
879
|
-
e =
|
|
879
|
+
e = W("div"), e.innerHTML = '<svg viewBox="0 0 18 18" width="24" height="24" class="svelte-7cmwmc"><path fill="#333" d="M4.4 4.4l.8.8c2.1-2.1 5.5-2.1 7.6 0l.8-.8c-2.5-2.5-6.7-2.5-9.2 0z"></path><path opacity=".1" d="M12.8 12.9c-2.1 2.1-5.5 2.1-7.6 0-2.1-2.1-2.1-5.5 0-7.7l-.8-.8c-2.5 2.5-2.5 6.7 0 9.2s6.6 2.5 9.2 0 2.5-6.6 0-9.2l-.8.8c2.2 2.1 2.2 5.6 0 7.7z"></path></svg>', a(e, "class", "svelte-7cmwmc");
|
|
880
880
|
},
|
|
881
881
|
m(t, n) {
|
|
882
|
-
|
|
882
|
+
B(t, e, n);
|
|
883
883
|
},
|
|
884
|
-
p:
|
|
885
|
-
i:
|
|
886
|
-
o:
|
|
884
|
+
p: A,
|
|
885
|
+
i: A,
|
|
886
|
+
o: A,
|
|
887
887
|
d(t) {
|
|
888
888
|
t && D(e);
|
|
889
889
|
}
|
|
890
890
|
};
|
|
891
891
|
}
|
|
892
|
-
class
|
|
892
|
+
class Xi extends ve {
|
|
893
893
|
constructor(e) {
|
|
894
|
-
super(),
|
|
894
|
+
super(), be(this, e, null, Ji, he, {});
|
|
895
895
|
}
|
|
896
896
|
}
|
|
897
|
-
function
|
|
897
|
+
function Yi(i) {
|
|
898
898
|
let e, t;
|
|
899
899
|
return {
|
|
900
900
|
c() {
|
|
901
|
-
e =
|
|
901
|
+
e = ne("svg"), t = ne("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");
|
|
902
902
|
},
|
|
903
903
|
m(n, r) {
|
|
904
|
-
|
|
904
|
+
B(n, e, r), k(e, t);
|
|
905
905
|
},
|
|
906
|
-
p:
|
|
907
|
-
i:
|
|
908
|
-
o:
|
|
906
|
+
p: A,
|
|
907
|
+
i: A,
|
|
908
|
+
o: A,
|
|
909
909
|
d(n) {
|
|
910
910
|
n && D(e);
|
|
911
911
|
}
|
|
912
912
|
};
|
|
913
913
|
}
|
|
914
|
-
class
|
|
914
|
+
class $i extends ve {
|
|
915
915
|
constructor(e) {
|
|
916
|
-
super(),
|
|
916
|
+
super(), be(this, e, null, Yi, he, {});
|
|
917
917
|
}
|
|
918
918
|
}
|
|
919
|
-
function
|
|
919
|
+
function en(i) {
|
|
920
920
|
let e, t, n;
|
|
921
921
|
return {
|
|
922
922
|
c() {
|
|
923
|
-
e =
|
|
923
|
+
e = ne("svg"), t = ne("circle"), n = ne("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");
|
|
924
924
|
},
|
|
925
925
|
m(r, l) {
|
|
926
|
-
|
|
926
|
+
B(r, e, l), k(e, t), k(e, n);
|
|
927
927
|
},
|
|
928
|
-
p:
|
|
929
|
-
i:
|
|
930
|
-
o:
|
|
928
|
+
p: A,
|
|
929
|
+
i: A,
|
|
930
|
+
o: A,
|
|
931
931
|
d(r) {
|
|
932
932
|
r && D(e);
|
|
933
933
|
}
|
|
934
934
|
};
|
|
935
935
|
}
|
|
936
|
-
class
|
|
936
|
+
class tn extends ve {
|
|
937
937
|
constructor(e) {
|
|
938
|
-
super(),
|
|
938
|
+
super(), be(this, e, null, en, he, {});
|
|
939
939
|
}
|
|
940
940
|
}
|
|
941
|
-
function
|
|
941
|
+
function nn(i, e, t) {
|
|
942
942
|
const n = e[1], r = e[0], l = n - r;
|
|
943
943
|
return i === n && t ? i : ((i - r) % l + l) % l + r;
|
|
944
944
|
}
|
|
945
|
-
function
|
|
945
|
+
function Nt(i) {
|
|
946
946
|
const e = [...i];
|
|
947
947
|
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;
|
|
948
948
|
}
|
|
949
|
-
let
|
|
950
|
-
async function
|
|
949
|
+
let Me;
|
|
950
|
+
async function rn(i, e, t) {
|
|
951
951
|
const n = i == null ? void 0 : i.getCenterAndZoom();
|
|
952
952
|
for (const r of e ?? [])
|
|
953
953
|
if (!(n && (r.minZoom != null && r.minZoom > n[0] || r.maxZoom != null && r.maxZoom < n[0]))) {
|
|
954
954
|
if (r.type === "fixed")
|
|
955
955
|
return r.coordinates.join(",");
|
|
956
956
|
e: if (r.type === "client-geolocation") {
|
|
957
|
-
if (
|
|
958
|
-
if (!
|
|
957
|
+
if (Me && r.cachedLocationExpiry && Me.time + r.cachedLocationExpiry > Date.now()) {
|
|
958
|
+
if (!Me.coords)
|
|
959
959
|
break e;
|
|
960
|
-
return
|
|
960
|
+
return Me.coords;
|
|
961
961
|
}
|
|
962
962
|
let l;
|
|
963
963
|
try {
|
|
964
|
-
return l = await new Promise((
|
|
964
|
+
return l = await new Promise((d, o) => {
|
|
965
965
|
t.signal.addEventListener("abort", () => {
|
|
966
966
|
o(Error("aborted"));
|
|
967
967
|
}), navigator.geolocation.getCurrentPosition(
|
|
968
|
-
(
|
|
969
|
-
|
|
970
|
-
[
|
|
968
|
+
(m) => {
|
|
969
|
+
d(
|
|
970
|
+
[m.coords.longitude, m.coords.latitude].map((u) => u.toFixed(6)).join(",")
|
|
971
971
|
);
|
|
972
972
|
},
|
|
973
|
-
(
|
|
974
|
-
o(
|
|
973
|
+
(m) => {
|
|
974
|
+
o(m);
|
|
975
975
|
},
|
|
976
976
|
r
|
|
977
977
|
);
|
|
978
978
|
}), l;
|
|
979
979
|
} catch {
|
|
980
980
|
} finally {
|
|
981
|
-
r.cachedLocationExpiry && (
|
|
981
|
+
r.cachedLocationExpiry && (Me = {
|
|
982
982
|
time: Date.now(),
|
|
983
983
|
coords: l
|
|
984
984
|
});
|
|
@@ -992,71 +992,71 @@ async function nn(i, e, t) {
|
|
|
992
992
|
return n[1].toFixed(6) + "," + n[2].toFixed(6);
|
|
993
993
|
}
|
|
994
994
|
}
|
|
995
|
-
const
|
|
996
|
-
function
|
|
995
|
+
const on = /^(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, kt = /^([+-]?[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,})$/, Mt = /^(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, Tt = /^(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, Ct = /^(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, Wt = /^(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;
|
|
996
|
+
function sn(i) {
|
|
997
997
|
if (!["DMS", "DM", "DD"].includes(i))
|
|
998
998
|
throw new Error("invalid format specified");
|
|
999
999
|
if (this.decimalCoordinates && this.decimalCoordinates.trim()) {
|
|
1000
|
-
const e = this.decimalCoordinates.split(",").map((
|
|
1001
|
-
let
|
|
1002
|
-
i == "DD" && (
|
|
1003
|
-
const u = Math.floor(r), f = Math.floor(l),
|
|
1000
|
+
const e = this.decimalCoordinates.split(",").map((y) => Number(y.trim())), t = Number(e[0]), n = Number(e[1]), r = Math.abs(t), l = Math.abs(n), d = t > 0 ? "N" : "S", o = n > 0 ? "E" : "W";
|
|
1001
|
+
let m;
|
|
1002
|
+
i == "DD" && (m = `${r}° ${d}, ${l}° ${o}`);
|
|
1003
|
+
const u = Math.floor(r), f = Math.floor(l), v = (r - u) * 60, b = (l - f) * 60;
|
|
1004
1004
|
if (i == "DM") {
|
|
1005
|
-
let
|
|
1006
|
-
|
|
1005
|
+
let y = zt(v, 3).toFixed(3).padStart(6, "0"), _ = zt(b, 3).toFixed(3).padStart(6, "0");
|
|
1006
|
+
y.endsWith(".000") && _.endsWith(".000") && (y = y.replace(/\.000$/, ""), _ = _.replace(/\.000$/, "")), m = `${u}° ${y}' ${d}, ${f}° ${_}' ${o}`;
|
|
1007
1007
|
}
|
|
1008
1008
|
if (i == "DMS") {
|
|
1009
|
-
const
|
|
1010
|
-
let
|
|
1011
|
-
const E =
|
|
1012
|
-
|
|
1009
|
+
const y = Math.floor(v), _ = Math.floor(b);
|
|
1010
|
+
let z = ((v - y) * 60).toFixed(1).padStart(4, "0"), L = ((b - _) * 60).toFixed(1).padStart(4, "0");
|
|
1011
|
+
const E = y.toString().padStart(2, "0"), C = _.toString().padStart(2, "0");
|
|
1012
|
+
z.endsWith(".0") && L.endsWith(".0") && (z = z.replace(/\.0$/, ""), L = L.replace(/\.0$/, "")), m = `${u}° ${E}' ${z}" ${d}, ${f}° ${C}' ${L}" ${o}`;
|
|
1013
1013
|
}
|
|
1014
|
-
return
|
|
1014
|
+
return m;
|
|
1015
1015
|
} else
|
|
1016
1016
|
throw new Error("no decimal coordinates to convert");
|
|
1017
1017
|
}
|
|
1018
|
-
function
|
|
1018
|
+
function zt(i, e) {
|
|
1019
1019
|
const t = Math.pow(10, e);
|
|
1020
1020
|
return Math.round((i + Number.EPSILON) * t) / t;
|
|
1021
1021
|
}
|
|
1022
|
-
function
|
|
1022
|
+
function lt(i, e) {
|
|
1023
1023
|
e || (e = 5), i = i.replace(/\s+/g, " ").trim();
|
|
1024
|
-
let t = null, n = null, r = "", l = "",
|
|
1025
|
-
if (
|
|
1024
|
+
let t = null, n = null, r = "", l = "", d = null, o = [], m = !1;
|
|
1025
|
+
if (on.test(i))
|
|
1026
1026
|
throw new Error("invalid coordinate value");
|
|
1027
|
-
if (
|
|
1028
|
-
if (o =
|
|
1029
|
-
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),
|
|
1027
|
+
if (kt.test(i))
|
|
1028
|
+
if (o = kt.exec(i), m = Te(o), m)
|
|
1029
|
+
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), d = "DM";
|
|
1030
1030
|
else
|
|
1031
1031
|
throw new Error("invalid coordinate format");
|
|
1032
|
-
else if (
|
|
1033
|
-
if (o =
|
|
1034
|
-
if (t = o[2], n = o[6], t.includes(",") && (t = t.replace(",", ".")), n.includes(",") && (n = n.replace(",", ".")),
|
|
1032
|
+
else if (Mt.test(i))
|
|
1033
|
+
if (o = Mt.exec(i), m = Te(o), m) {
|
|
1034
|
+
if (t = o[2], n = o[6], t.includes(",") && (t = t.replace(",", ".")), n.includes(",") && (n = n.replace(",", ".")), d = "DD", Number(Math.round(t)) == Number(t))
|
|
1035
1035
|
throw new Error("integer only coordinate provided");
|
|
1036
1036
|
if (Number(Math.round(n)) == Number(n))
|
|
1037
1037
|
throw new Error("integer only coordinate provided");
|
|
1038
1038
|
o[1] ? (r = o[1], l = o[5]) : o[4] && (r = o[4], l = o[8]);
|
|
1039
1039
|
} else
|
|
1040
1040
|
throw new Error("invalid decimal coordinate format");
|
|
1041
|
-
else if (
|
|
1042
|
-
if (o =
|
|
1043
|
-
t = Math.abs(parseInt(o[2])), o[4] && (t += o[4] / 60,
|
|
1041
|
+
else if (Tt.test(i))
|
|
1042
|
+
if (o = Tt.exec(i), m = Te(o), m)
|
|
1043
|
+
t = Math.abs(parseInt(o[2])), o[4] && (t += o[4] / 60, d = "DM"), o[6] && (t += o[6].replace(",", ".") / 3600, d = "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], l = o[8]) : o[7] && (r = o[7], l = o[14]);
|
|
1044
1044
|
else
|
|
1045
1045
|
throw new Error("invalid DMS coordinates format");
|
|
1046
|
-
else if (
|
|
1047
|
-
if (o =
|
|
1048
|
-
t = Math.abs(parseInt(o[2])), o[4] && (t += o[4] / 60,
|
|
1046
|
+
else if (Ct.test(i))
|
|
1047
|
+
if (o = Ct.exec(i), m = Te(o), m)
|
|
1048
|
+
t = Math.abs(parseInt(o[2])), o[4] && (t += o[4] / 60, d = "DM"), o[6] && (t += o[6] / 3600, d = "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], l = o[9]) : o[8] && (r = o[8], l = o[16]);
|
|
1049
1049
|
else
|
|
1050
1050
|
throw new Error("invalid DMS coordinates format");
|
|
1051
|
-
else if (
|
|
1052
|
-
if (o =
|
|
1051
|
+
else if (Wt.test(i)) {
|
|
1052
|
+
if (o = Wt.exec(i), m = Te(o), o.filter((u) => u).length <= 5)
|
|
1053
1053
|
throw new Error("invalid coordinates format");
|
|
1054
|
-
if (
|
|
1055
|
-
t = Math.abs(parseInt(o[2])), o[4] && (t += o[4].replace(",", ".") / 60,
|
|
1054
|
+
if (m)
|
|
1055
|
+
t = Math.abs(parseInt(o[2])), o[4] && (t += o[4].replace(",", ".") / 60, d = "DM"), o[6] && (t += o[6].replace(",", ".") / 3600, d = "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], l = o[9]) : o[8] && (r = o[8], l = o[16]);
|
|
1056
1056
|
else
|
|
1057
1057
|
throw new Error("invalid coordinates format");
|
|
1058
1058
|
}
|
|
1059
|
-
if (
|
|
1059
|
+
if (m) {
|
|
1060
1060
|
if (Math.abs(n) >= 180)
|
|
1061
1061
|
throw new Error("invalid longitude value");
|
|
1062
1062
|
if (Math.abs(t) >= 90)
|
|
@@ -1069,47 +1069,47 @@ function at(i, e) {
|
|
|
1069
1069
|
let u = /S|SOUTH/i;
|
|
1070
1070
|
u.test(r) && t > 0 && (t = -1 * t), u = /W|WEST/i, u.test(l) && n > 0 && (n = -1 * n);
|
|
1071
1071
|
const f = o[0].trim();
|
|
1072
|
-
let
|
|
1073
|
-
const
|
|
1074
|
-
if (
|
|
1072
|
+
let v, b;
|
|
1073
|
+
const y = /[,/;\u0020]/g, _ = f.match(y);
|
|
1074
|
+
if (_ == null) {
|
|
1075
1075
|
const E = Math.floor(i.length / 2);
|
|
1076
|
-
|
|
1076
|
+
v = f.substring(0, E).trim(), b = f.substring(E).trim();
|
|
1077
1077
|
} else {
|
|
1078
1078
|
let E;
|
|
1079
|
-
|
|
1079
|
+
_.length % 2 == 1 ? E = Math.floor(_.length / 2) : E = _.length / 2 - 1;
|
|
1080
1080
|
let C = 0;
|
|
1081
1081
|
if (E == 0)
|
|
1082
|
-
C = f.indexOf(
|
|
1082
|
+
C = f.indexOf(_[0]), v = f.substring(0, C).trim(), b = f.substring(C + 1).trim();
|
|
1083
1083
|
else {
|
|
1084
|
-
let
|
|
1085
|
-
for (;
|
|
1086
|
-
C = f.indexOf(
|
|
1087
|
-
|
|
1084
|
+
let T = 0, p = 0;
|
|
1085
|
+
for (; T <= E; )
|
|
1086
|
+
C = f.indexOf(_[T], p), p = C + 1, T++;
|
|
1087
|
+
v = f.substring(0, C).trim(), b = f.substring(C + 1).trim();
|
|
1088
1088
|
}
|
|
1089
1089
|
}
|
|
1090
|
-
const
|
|
1091
|
-
if (
|
|
1090
|
+
const z = v.split(".");
|
|
1091
|
+
if (z.length == 2 && z[1] == 0 && z[1].length != 2)
|
|
1092
1092
|
throw new Error("invalid coordinates format");
|
|
1093
|
-
const
|
|
1094
|
-
if (
|
|
1093
|
+
const L = b.split(".");
|
|
1094
|
+
if (L.length == 2 && L[1] == 0 && L[1].length != 2)
|
|
1095
1095
|
throw new Error("invalid coordinates format");
|
|
1096
|
-
if (/^\d+$/.test(
|
|
1096
|
+
if (/^\d+$/.test(v) || /^\d+$/.test(b))
|
|
1097
1097
|
throw new Error("degree only coordinate/s provided");
|
|
1098
1098
|
return t = Number(Number(t).toFixed(e)), n = Number(Number(n).toFixed(e)), Object.freeze({
|
|
1099
1099
|
verbatimCoordinates: f,
|
|
1100
|
-
verbatimLatitude:
|
|
1101
|
-
verbatimLongitude:
|
|
1100
|
+
verbatimLatitude: v,
|
|
1101
|
+
verbatimLongitude: b,
|
|
1102
1102
|
decimalLatitude: t,
|
|
1103
1103
|
decimalLongitude: n,
|
|
1104
1104
|
decimalCoordinates: `${t},${n}`,
|
|
1105
|
-
originalFormat:
|
|
1106
|
-
closeEnough:
|
|
1107
|
-
toCoordinateFormat:
|
|
1105
|
+
originalFormat: d,
|
|
1106
|
+
closeEnough: an,
|
|
1107
|
+
toCoordinateFormat: sn
|
|
1108
1108
|
});
|
|
1109
1109
|
} else
|
|
1110
1110
|
throw new Error("coordinates pattern match failed");
|
|
1111
1111
|
}
|
|
1112
|
-
function
|
|
1112
|
+
function Te(i) {
|
|
1113
1113
|
if (!isNaN(i[0]))
|
|
1114
1114
|
return !1;
|
|
1115
1115
|
const e = [...i];
|
|
@@ -1117,39 +1117,39 @@ function Me(i) {
|
|
|
1117
1117
|
return !1;
|
|
1118
1118
|
const t = /^[-+]?\d+([\.,]\d+)?$/, n = /[eastsouthnorthwest]+/i, r = e.length / 2;
|
|
1119
1119
|
for (let l = 0; l < r; l++) {
|
|
1120
|
-
const
|
|
1121
|
-
if (!(
|
|
1122
|
-
if (
|
|
1120
|
+
const d = e[l], o = e[l + r], m = t.test(d) && t.test(o), u = n.test(d) && n.test(o), f = d == o;
|
|
1121
|
+
if (!(d == null && o == null)) {
|
|
1122
|
+
if (d == null || o == null)
|
|
1123
1123
|
return !1;
|
|
1124
|
-
if (
|
|
1124
|
+
if (m || u || f)
|
|
1125
1125
|
continue;
|
|
1126
1126
|
return !1;
|
|
1127
1127
|
}
|
|
1128
1128
|
}
|
|
1129
1129
|
return !0;
|
|
1130
1130
|
}
|
|
1131
|
-
function
|
|
1131
|
+
function Rt(i, e) {
|
|
1132
1132
|
const t = Math.abs(i - e);
|
|
1133
1133
|
return Number(t.toFixed(6)) <= 1e-5;
|
|
1134
1134
|
}
|
|
1135
|
-
function
|
|
1135
|
+
function an(i) {
|
|
1136
1136
|
if (!i)
|
|
1137
1137
|
throw new Error("coords must be provided");
|
|
1138
1138
|
if (i.includes(",")) {
|
|
1139
1139
|
const e = i.split(",");
|
|
1140
1140
|
if (Number(e[0]) == NaN || Number(e[1]) == NaN)
|
|
1141
1141
|
throw new Error("coords are not valid decimals");
|
|
1142
|
-
return
|
|
1142
|
+
return Rt(this.decimalLatitude, Number(e[0])) && Rt(this.decimalLongitude, e[1]);
|
|
1143
1143
|
} else
|
|
1144
1144
|
throw new Error("coords being tested must be separated by a comma");
|
|
1145
1145
|
}
|
|
1146
|
-
const
|
|
1146
|
+
const ln = Object.freeze({
|
|
1147
1147
|
DMS: "DMS",
|
|
1148
1148
|
DM: "DM",
|
|
1149
1149
|
DD: "DD"
|
|
1150
1150
|
});
|
|
1151
|
-
|
|
1152
|
-
const
|
|
1151
|
+
lt.to = ln;
|
|
1152
|
+
const un = [
|
|
1153
1153
|
{
|
|
1154
1154
|
verbatimCoordinates: "40.123, -74.123",
|
|
1155
1155
|
verbatimLatitude: "40.123",
|
|
@@ -1290,10 +1290,10 @@ const ln = [
|
|
|
1290
1290
|
verbatimLatitude: "40 7 22.8",
|
|
1291
1291
|
verbatimLongitude: "-74 7 22.8"
|
|
1292
1292
|
}
|
|
1293
|
-
],
|
|
1293
|
+
], cn = {
|
|
1294
1294
|
decimalLatitude: 40.123,
|
|
1295
1295
|
decimalLongitude: -74.123
|
|
1296
|
-
},
|
|
1296
|
+
}, dn = [
|
|
1297
1297
|
{
|
|
1298
1298
|
verbatimCoordinates: `50°4'17.698"south, 14°24'2.826"east`,
|
|
1299
1299
|
verbatimLatitude: `50°4'17.698"south`,
|
|
@@ -1378,7 +1378,7 @@ const ln = [
|
|
|
1378
1378
|
decimalLatitude: -18.4,
|
|
1379
1379
|
decimalLongitude: 22.75
|
|
1380
1380
|
}
|
|
1381
|
-
],
|
|
1381
|
+
], fn = [
|
|
1382
1382
|
{
|
|
1383
1383
|
verbatimCoordinates: "10.432342S 10.6345345E",
|
|
1384
1384
|
verbatimLatitude: "10.432342S",
|
|
@@ -1513,27 +1513,27 @@ const ln = [
|
|
|
1513
1513
|
decimalLongitude: 18.33453
|
|
1514
1514
|
}
|
|
1515
1515
|
];
|
|
1516
|
-
function
|
|
1516
|
+
function mn() {
|
|
1517
1517
|
const i = [];
|
|
1518
|
-
return
|
|
1519
|
-
e.decimalLatitude ? i.push(e) : i.push({ ...e, ...
|
|
1520
|
-
}), [...i, ...
|
|
1521
|
-
}
|
|
1522
|
-
const
|
|
1523
|
-
|
|
1524
|
-
const
|
|
1525
|
-
function
|
|
1518
|
+
return un.forEach((e) => {
|
|
1519
|
+
e.decimalLatitude ? i.push(e) : i.push({ ...e, ...cn });
|
|
1520
|
+
}), [...i, ...dn, ...fn];
|
|
1521
|
+
}
|
|
1522
|
+
const gn = mn();
|
|
1523
|
+
lt.formats = gn.map((i) => i.verbatimCoordinates);
|
|
1524
|
+
const hn = lt;
|
|
1525
|
+
function Ot(i, e, t) {
|
|
1526
1526
|
const n = i.slice();
|
|
1527
|
-
return n[
|
|
1527
|
+
return n[84] = e[t], n[86] = t, n;
|
|
1528
1528
|
}
|
|
1529
|
-
function
|
|
1529
|
+
function Dt(i) {
|
|
1530
1530
|
let e, t;
|
|
1531
|
-
return e = new
|
|
1531
|
+
return e = new Xi({}), {
|
|
1532
1532
|
c() {
|
|
1533
|
-
|
|
1533
|
+
ce(e.$$.fragment);
|
|
1534
1534
|
},
|
|
1535
1535
|
m(n, r) {
|
|
1536
|
-
|
|
1536
|
+
re(e, n, r), t = !0;
|
|
1537
1537
|
},
|
|
1538
1538
|
i(n) {
|
|
1539
1539
|
t || (F(e.$$.fragment, n), t = !0);
|
|
@@ -1542,107 +1542,107 @@ function Ot(i) {
|
|
|
1542
1542
|
Q(e.$$.fragment, n), t = !1;
|
|
1543
1543
|
},
|
|
1544
1544
|
d(n) {
|
|
1545
|
-
|
|
1545
|
+
oe(e, n);
|
|
1546
1546
|
}
|
|
1547
1547
|
};
|
|
1548
1548
|
}
|
|
1549
|
-
function
|
|
1549
|
+
function Ut(i) {
|
|
1550
1550
|
let e, t, n, r, l;
|
|
1551
|
-
return t = new
|
|
1551
|
+
return t = new $i({}), {
|
|
1552
1552
|
c() {
|
|
1553
|
-
e =
|
|
1553
|
+
e = W("button"), ce(t.$$.fragment), a(e, "type", "button"), a(
|
|
1554
1554
|
e,
|
|
1555
1555
|
"title",
|
|
1556
1556
|
/*reverseButtonTitle*/
|
|
1557
1557
|
i[9]
|
|
1558
|
-
), a(e, "class", "svelte-bz0zu3"),
|
|
1558
|
+
), a(e, "class", "svelte-bz0zu3"), le(
|
|
1559
1559
|
e,
|
|
1560
1560
|
"active",
|
|
1561
1561
|
/*reverseActive*/
|
|
1562
1562
|
i[0]
|
|
1563
1563
|
);
|
|
1564
1564
|
},
|
|
1565
|
-
m(
|
|
1566
|
-
|
|
1565
|
+
m(d, o) {
|
|
1566
|
+
B(d, e, o), re(t, e, null), n = !0, r || (l = V(
|
|
1567
1567
|
e,
|
|
1568
1568
|
"click",
|
|
1569
1569
|
/*click_handler_2*/
|
|
1570
|
-
i[
|
|
1570
|
+
i[69]
|
|
1571
1571
|
), r = !0);
|
|
1572
1572
|
},
|
|
1573
|
-
p(
|
|
1573
|
+
p(d, o) {
|
|
1574
1574
|
(!n || o[0] & /*reverseButtonTitle*/
|
|
1575
1575
|
512) && a(
|
|
1576
1576
|
e,
|
|
1577
1577
|
"title",
|
|
1578
1578
|
/*reverseButtonTitle*/
|
|
1579
|
-
|
|
1579
|
+
d[9]
|
|
1580
1580
|
), (!n || o[0] & /*reverseActive*/
|
|
1581
|
-
1) &&
|
|
1581
|
+
1) && le(
|
|
1582
1582
|
e,
|
|
1583
1583
|
"active",
|
|
1584
1584
|
/*reverseActive*/
|
|
1585
|
-
|
|
1585
|
+
d[0]
|
|
1586
1586
|
);
|
|
1587
1587
|
},
|
|
1588
|
-
i(
|
|
1589
|
-
n || (F(t.$$.fragment,
|
|
1588
|
+
i(d) {
|
|
1589
|
+
n || (F(t.$$.fragment, d), n = !0);
|
|
1590
1590
|
},
|
|
1591
|
-
o(
|
|
1592
|
-
Q(t.$$.fragment,
|
|
1591
|
+
o(d) {
|
|
1592
|
+
Q(t.$$.fragment, d), n = !1;
|
|
1593
1593
|
},
|
|
1594
|
-
d(
|
|
1595
|
-
|
|
1594
|
+
d(d) {
|
|
1595
|
+
d && D(e), oe(t), r = !1, l();
|
|
1596
1596
|
}
|
|
1597
1597
|
};
|
|
1598
1598
|
}
|
|
1599
|
-
function
|
|
1600
|
-
let e, t = [], n = /* @__PURE__ */ new Map(), r, l,
|
|
1599
|
+
function bn(i) {
|
|
1600
|
+
let e, t = [], n = /* @__PURE__ */ new Map(), r, l, d, o = St(
|
|
1601
1601
|
/*listFeatures*/
|
|
1602
1602
|
i[14]
|
|
1603
1603
|
);
|
|
1604
|
-
const
|
|
1604
|
+
const m = (u) => (
|
|
1605
1605
|
/*feature*/
|
|
1606
|
-
u[
|
|
1607
|
-
(u[
|
|
1608
|
-
u[
|
|
1606
|
+
u[84].id + /*feature*/
|
|
1607
|
+
(u[84].address ? "," + /*feature*/
|
|
1608
|
+
u[84].address : "")
|
|
1609
1609
|
);
|
|
1610
1610
|
for (let u = 0; u < o.length; u += 1) {
|
|
1611
|
-
let f =
|
|
1612
|
-
n.set(
|
|
1611
|
+
let f = Ot(i, o, u), v = m(f);
|
|
1612
|
+
n.set(v, t[u] = It(v, f));
|
|
1613
1613
|
}
|
|
1614
1614
|
return {
|
|
1615
1615
|
c() {
|
|
1616
|
-
e =
|
|
1616
|
+
e = W("ul");
|
|
1617
1617
|
for (let u = 0; u < t.length; u += 1)
|
|
1618
1618
|
t[u].c();
|
|
1619
1619
|
a(e, "class", "options svelte-bz0zu3");
|
|
1620
1620
|
},
|
|
1621
1621
|
m(u, f) {
|
|
1622
|
-
|
|
1623
|
-
for (let
|
|
1624
|
-
t[
|
|
1625
|
-
r = !0, l || (
|
|
1622
|
+
B(u, e, f);
|
|
1623
|
+
for (let v = 0; v < t.length; v += 1)
|
|
1624
|
+
t[v] && t[v].m(e, null);
|
|
1625
|
+
r = !0, l || (d = [
|
|
1626
1626
|
V(
|
|
1627
1627
|
e,
|
|
1628
1628
|
"mouseleave",
|
|
1629
1629
|
/*mouseleave_handler*/
|
|
1630
|
-
i[
|
|
1630
|
+
i[73]
|
|
1631
1631
|
),
|
|
1632
1632
|
V(
|
|
1633
1633
|
e,
|
|
1634
1634
|
"blur",
|
|
1635
1635
|
/*blur_handler_1*/
|
|
1636
|
-
i[
|
|
1636
|
+
i[74]
|
|
1637
1637
|
)
|
|
1638
1638
|
], l = !0);
|
|
1639
1639
|
},
|
|
1640
1640
|
p(u, f) {
|
|
1641
1641
|
f[0] & /*listFeatures, showPlaceType, selectedItemIndex, missingIconsCache, iconsBaseUrl, pick*/
|
|
1642
|
-
17880064 && (o =
|
|
1642
|
+
17880064 && (o = St(
|
|
1643
1643
|
/*listFeatures*/
|
|
1644
1644
|
u[14]
|
|
1645
|
-
),
|
|
1645
|
+
), He(), t = Di(t, f, m, 1, u, o, n, e, Oi, It, null, Ot), Pe());
|
|
1646
1646
|
},
|
|
1647
1647
|
i(u) {
|
|
1648
1648
|
if (!r) {
|
|
@@ -1660,119 +1660,119 @@ function hn(i) {
|
|
|
1660
1660
|
u && D(e);
|
|
1661
1661
|
for (let f = 0; f < t.length; f += 1)
|
|
1662
1662
|
t[f].d();
|
|
1663
|
-
l = !1,
|
|
1663
|
+
l = !1, se(d);
|
|
1664
1664
|
}
|
|
1665
1665
|
};
|
|
1666
1666
|
}
|
|
1667
|
-
function
|
|
1668
|
-
let e, t, n, r, l,
|
|
1669
|
-
return t = new
|
|
1667
|
+
function vn(i) {
|
|
1668
|
+
let e, t, n, r, l, d;
|
|
1669
|
+
return t = new qt({}), {
|
|
1670
1670
|
c() {
|
|
1671
|
-
e =
|
|
1671
|
+
e = W("div"), ce(t.$$.fragment), n = X(), r = W("div"), l = ue(
|
|
1672
1672
|
/*noResultsMessage*/
|
|
1673
1673
|
i[7]
|
|
1674
1674
|
), a(r, "class", "svelte-bz0zu3"), a(e, "class", "no-results svelte-bz0zu3");
|
|
1675
1675
|
},
|
|
1676
|
-
m(o,
|
|
1677
|
-
|
|
1676
|
+
m(o, m) {
|
|
1677
|
+
B(o, e, m), re(t, e, null), k(e, n), k(e, r), k(r, l), d = !0;
|
|
1678
1678
|
},
|
|
1679
|
-
p(o,
|
|
1680
|
-
(!
|
|
1681
|
-
128) &&
|
|
1679
|
+
p(o, m) {
|
|
1680
|
+
(!d || m[0] & /*noResultsMessage*/
|
|
1681
|
+
128) && We(
|
|
1682
1682
|
l,
|
|
1683
1683
|
/*noResultsMessage*/
|
|
1684
1684
|
o[7]
|
|
1685
1685
|
);
|
|
1686
1686
|
},
|
|
1687
1687
|
i(o) {
|
|
1688
|
-
|
|
1688
|
+
d || (F(t.$$.fragment, o), d = !0);
|
|
1689
1689
|
},
|
|
1690
1690
|
o(o) {
|
|
1691
|
-
Q(t.$$.fragment, o),
|
|
1691
|
+
Q(t.$$.fragment, o), d = !1;
|
|
1692
1692
|
},
|
|
1693
1693
|
d(o) {
|
|
1694
|
-
o && D(e),
|
|
1694
|
+
o && D(e), oe(t);
|
|
1695
1695
|
}
|
|
1696
1696
|
};
|
|
1697
1697
|
}
|
|
1698
|
-
function
|
|
1698
|
+
function Ln(i) {
|
|
1699
1699
|
let e = "", t;
|
|
1700
1700
|
return {
|
|
1701
1701
|
c() {
|
|
1702
|
-
t =
|
|
1702
|
+
t = ue(e);
|
|
1703
1703
|
},
|
|
1704
1704
|
m(n, r) {
|
|
1705
|
-
|
|
1705
|
+
B(n, t, r);
|
|
1706
1706
|
},
|
|
1707
|
-
p:
|
|
1708
|
-
i:
|
|
1709
|
-
o:
|
|
1707
|
+
p: A,
|
|
1708
|
+
i: A,
|
|
1709
|
+
o: A,
|
|
1710
1710
|
d(n) {
|
|
1711
1711
|
n && D(t);
|
|
1712
1712
|
}
|
|
1713
1713
|
};
|
|
1714
1714
|
}
|
|
1715
|
-
function
|
|
1716
|
-
let e, t, n, r, l,
|
|
1717
|
-
return t = new
|
|
1715
|
+
function _n(i) {
|
|
1716
|
+
let e, t, n, r, l, d, o, m, u, f, v;
|
|
1717
|
+
return t = new qt({}), m = new Zt({}), {
|
|
1718
1718
|
c() {
|
|
1719
|
-
e =
|
|
1719
|
+
e = W("div"), ce(t.$$.fragment), n = X(), r = W("div"), l = ue(
|
|
1720
1720
|
/*errorMessage*/
|
|
1721
1721
|
i[6]
|
|
1722
|
-
),
|
|
1722
|
+
), d = X(), o = W("button"), ce(m.$$.fragment), a(r, "class", "svelte-bz0zu3"), a(o, "class", "svelte-bz0zu3"), a(e, "class", "error svelte-bz0zu3");
|
|
1723
1723
|
},
|
|
1724
|
-
m(
|
|
1725
|
-
|
|
1724
|
+
m(b, y) {
|
|
1725
|
+
B(b, e, y), re(t, e, null), k(e, n), k(e, r), k(r, l), k(e, d), k(e, o), re(m, o, null), u = !0, f || (v = V(
|
|
1726
1726
|
o,
|
|
1727
1727
|
"click",
|
|
1728
1728
|
/*click_handler_3*/
|
|
1729
|
-
i[
|
|
1729
|
+
i[70]
|
|
1730
1730
|
), f = !0);
|
|
1731
1731
|
},
|
|
1732
|
-
p(
|
|
1733
|
-
(!u ||
|
|
1734
|
-
64) &&
|
|
1732
|
+
p(b, y) {
|
|
1733
|
+
(!u || y[0] & /*errorMessage*/
|
|
1734
|
+
64) && We(
|
|
1735
1735
|
l,
|
|
1736
1736
|
/*errorMessage*/
|
|
1737
|
-
|
|
1737
|
+
b[6]
|
|
1738
1738
|
);
|
|
1739
1739
|
},
|
|
1740
|
-
i(
|
|
1741
|
-
u || (F(t.$$.fragment,
|
|
1740
|
+
i(b) {
|
|
1741
|
+
u || (F(t.$$.fragment, b), F(m.$$.fragment, b), u = !0);
|
|
1742
1742
|
},
|
|
1743
|
-
o(
|
|
1744
|
-
Q(t.$$.fragment,
|
|
1743
|
+
o(b) {
|
|
1744
|
+
Q(t.$$.fragment, b), Q(m.$$.fragment, b), u = !1;
|
|
1745
1745
|
},
|
|
1746
|
-
d(
|
|
1747
|
-
|
|
1746
|
+
d(b) {
|
|
1747
|
+
b && D(e), oe(t), oe(m), f = !1, v();
|
|
1748
1748
|
}
|
|
1749
1749
|
};
|
|
1750
1750
|
}
|
|
1751
|
-
function
|
|
1751
|
+
function It(i, e) {
|
|
1752
1752
|
let t, n, r;
|
|
1753
1753
|
function l() {
|
|
1754
1754
|
return (
|
|
1755
1755
|
/*mouseenter_handler*/
|
|
1756
|
-
e[
|
|
1756
|
+
e[71](
|
|
1757
1757
|
/*i*/
|
|
1758
|
-
e[
|
|
1758
|
+
e[86]
|
|
1759
1759
|
)
|
|
1760
1760
|
);
|
|
1761
1761
|
}
|
|
1762
|
-
function
|
|
1762
|
+
function d() {
|
|
1763
1763
|
return (
|
|
1764
1764
|
/*focus_handler_1*/
|
|
1765
|
-
e[
|
|
1765
|
+
e[72](
|
|
1766
1766
|
/*feature*/
|
|
1767
|
-
e[
|
|
1767
|
+
e[84]
|
|
1768
1768
|
)
|
|
1769
1769
|
);
|
|
1770
1770
|
}
|
|
1771
|
-
return n = new
|
|
1771
|
+
return n = new xi({
|
|
1772
1772
|
props: {
|
|
1773
1773
|
feature: (
|
|
1774
1774
|
/*feature*/
|
|
1775
|
-
e[
|
|
1775
|
+
e[84]
|
|
1776
1776
|
),
|
|
1777
1777
|
showPlaceType: (
|
|
1778
1778
|
/*showPlaceType*/
|
|
@@ -1781,7 +1781,7 @@ function Ut(i, e) {
|
|
|
1781
1781
|
selected: (
|
|
1782
1782
|
/*selectedItemIndex*/
|
|
1783
1783
|
e[15] === /*i*/
|
|
1784
|
-
e[
|
|
1784
|
+
e[86]
|
|
1785
1785
|
),
|
|
1786
1786
|
missingIconsCache: (
|
|
1787
1787
|
/*missingIconsCache*/
|
|
@@ -1792,26 +1792,26 @@ function Ut(i, e) {
|
|
|
1792
1792
|
e[12]
|
|
1793
1793
|
)
|
|
1794
1794
|
}
|
|
1795
|
-
}), n.$on("mouseenter", l), n.$on("focus",
|
|
1795
|
+
}), n.$on("mouseenter", l), n.$on("focus", d), {
|
|
1796
1796
|
key: i,
|
|
1797
1797
|
first: null,
|
|
1798
1798
|
c() {
|
|
1799
|
-
t =
|
|
1799
|
+
t = Si(), ce(n.$$.fragment), this.first = t;
|
|
1800
1800
|
},
|
|
1801
|
-
m(o,
|
|
1802
|
-
|
|
1801
|
+
m(o, m) {
|
|
1802
|
+
B(o, t, m), re(n, o, m), r = !0;
|
|
1803
1803
|
},
|
|
1804
|
-
p(o,
|
|
1804
|
+
p(o, m) {
|
|
1805
1805
|
e = o;
|
|
1806
1806
|
const u = {};
|
|
1807
|
-
|
|
1807
|
+
m[0] & /*listFeatures*/
|
|
1808
1808
|
16384 && (u.feature = /*feature*/
|
|
1809
|
-
e[
|
|
1809
|
+
e[84]), m[0] & /*showPlaceType*/
|
|
1810
1810
|
1024 && (u.showPlaceType = /*showPlaceType*/
|
|
1811
|
-
e[10]),
|
|
1811
|
+
e[10]), m[0] & /*selectedItemIndex, listFeatures*/
|
|
1812
1812
|
49152 && (u.selected = /*selectedItemIndex*/
|
|
1813
1813
|
e[15] === /*i*/
|
|
1814
|
-
e[
|
|
1814
|
+
e[86]), m[0] & /*iconsBaseUrl*/
|
|
1815
1815
|
4096 && (u.iconsBaseUrl = /*iconsBaseUrl*/
|
|
1816
1816
|
e[12]), n.$set(u);
|
|
1817
1817
|
},
|
|
@@ -1822,50 +1822,50 @@ function Ut(i, e) {
|
|
|
1822
1822
|
Q(n.$$.fragment, o), r = !1;
|
|
1823
1823
|
},
|
|
1824
1824
|
d(o) {
|
|
1825
|
-
o && D(t),
|
|
1825
|
+
o && D(t), oe(n, o);
|
|
1826
1826
|
}
|
|
1827
1827
|
};
|
|
1828
1828
|
}
|
|
1829
|
-
function
|
|
1830
|
-
let e, t, n, r, l,
|
|
1831
|
-
l = new
|
|
1832
|
-
let
|
|
1829
|
+
function yn(i) {
|
|
1830
|
+
let e, t, n, r, l, d, o, m, u, f, v, b, y, _, z, L, E, C, T, p, H, R = !1;
|
|
1831
|
+
l = new tn({}), v = new Zt({});
|
|
1832
|
+
let c = (
|
|
1833
1833
|
/*abortController*/
|
|
1834
|
-
i[19] &&
|
|
1835
|
-
),
|
|
1834
|
+
i[19] && Dt()
|
|
1835
|
+
), g = (
|
|
1836
1836
|
/*enableReverse*/
|
|
1837
|
-
i[5] === "button" &&
|
|
1837
|
+
i[5] === "button" && Ut(i)
|
|
1838
1838
|
);
|
|
1839
|
-
const
|
|
1839
|
+
const M = (
|
|
1840
1840
|
/*#slots*/
|
|
1841
|
-
i[
|
|
1842
|
-
),
|
|
1843
|
-
|
|
1841
|
+
i[61].default
|
|
1842
|
+
), Z = _i(
|
|
1843
|
+
M,
|
|
1844
1844
|
i,
|
|
1845
1845
|
/*$$scope*/
|
|
1846
|
-
i[
|
|
1846
|
+
i[60],
|
|
1847
1847
|
null
|
|
1848
|
-
),
|
|
1849
|
-
function
|
|
1850
|
-
var
|
|
1848
|
+
), Le = [_n, Ln, vn, bn], G = [];
|
|
1849
|
+
function Ne(h, U) {
|
|
1850
|
+
var ie, de;
|
|
1851
1851
|
return (
|
|
1852
1852
|
/*error*/
|
|
1853
|
-
|
|
1853
|
+
h[18] ? 0 : (
|
|
1854
1854
|
/*focusedDelayed*/
|
|
1855
|
-
|
|
1855
|
+
h[16] ? (
|
|
1856
1856
|
/*listFeatures*/
|
|
1857
|
-
((
|
|
1857
|
+
((ie = h[14]) == null ? void 0 : ie.length) === 0 ? 2 : (
|
|
1858
1858
|
/*focusedDelayed*/
|
|
1859
|
-
|
|
1860
|
-
((
|
|
1859
|
+
h[16] && /*listFeatures*/
|
|
1860
|
+
((de = h[14]) != null && de.length) ? 3 : -1
|
|
1861
1861
|
)
|
|
1862
1862
|
) : 1
|
|
1863
1863
|
)
|
|
1864
1864
|
);
|
|
1865
1865
|
}
|
|
1866
|
-
return ~(
|
|
1866
|
+
return ~(L = Ne(i)) && (E = G[L] = Le[L](i)), {
|
|
1867
1867
|
c() {
|
|
1868
|
-
e = X(), t =
|
|
1868
|
+
e = X(), t = W("form"), n = W("div"), r = W("button"), ce(l.$$.fragment), d = X(), o = W("input"), m = X(), u = W("div"), f = W("button"), ce(v.$$.fragment), b = X(), c && c.c(), y = X(), g && g.c(), _ = X(), Z && Z.c(), z = X(), E && E.c(), a(r, "class", "search-button svelte-bz0zu3"), a(r, "type", "button"), a(
|
|
1869
1869
|
o,
|
|
1870
1870
|
"placeholder",
|
|
1871
1871
|
/*placeholder*/
|
|
@@ -1880,15 +1880,15 @@ function _n(i) {
|
|
|
1880
1880
|
"title",
|
|
1881
1881
|
/*clearButtonTitle*/
|
|
1882
1882
|
i[3]
|
|
1883
|
-
), a(f, "class", "svelte-bz0zu3"), a(u, "class", "clear-button-container svelte-bz0zu3"),
|
|
1883
|
+
), a(f, "class", "svelte-bz0zu3"), a(u, "class", "clear-button-container svelte-bz0zu3"), le(
|
|
1884
1884
|
u,
|
|
1885
1885
|
"displayable",
|
|
1886
1886
|
/*searchValue*/
|
|
1887
1887
|
i[1] !== ""
|
|
1888
|
-
), a(n, "class", "input-group svelte-bz0zu3"), a(t, "tabindex", "0"), a(t, "class", C =
|
|
1888
|
+
), a(n, "class", "input-group svelte-bz0zu3"), a(t, "tabindex", "0"), a(t, "class", C = _t(
|
|
1889
1889
|
/*className*/
|
|
1890
1890
|
i[2]
|
|
1891
|
-
) + " svelte-bz0zu3"),
|
|
1891
|
+
) + " svelte-bz0zu3"), le(
|
|
1892
1892
|
t,
|
|
1893
1893
|
"can-collapse",
|
|
1894
1894
|
/*collapsed*/
|
|
@@ -1896,35 +1896,35 @@ function _n(i) {
|
|
|
1896
1896
|
i[1] === ""
|
|
1897
1897
|
);
|
|
1898
1898
|
},
|
|
1899
|
-
m(
|
|
1900
|
-
|
|
1899
|
+
m(h, U) {
|
|
1900
|
+
B(h, e, U), B(h, t, U), k(t, n), k(n, r), re(l, r, null), k(n, d), k(n, o), i[63](o), yt(
|
|
1901
1901
|
o,
|
|
1902
1902
|
/*searchValue*/
|
|
1903
1903
|
i[1]
|
|
1904
|
-
),
|
|
1904
|
+
), k(n, m), k(n, u), k(u, f), re(v, f, null), k(u, b), c && c.m(u, null), k(n, y), g && g.m(n, null), k(n, _), Z && Z.m(n, null), k(t, z), ~L && G[L].m(t, null), T = !0, p || (H = [
|
|
1905
1905
|
V(
|
|
1906
1906
|
r,
|
|
1907
1907
|
"click",
|
|
1908
1908
|
/*click_handler*/
|
|
1909
|
-
i[
|
|
1909
|
+
i[62]
|
|
1910
1910
|
),
|
|
1911
1911
|
V(
|
|
1912
1912
|
o,
|
|
1913
1913
|
"input",
|
|
1914
1914
|
/*input_1_input_handler*/
|
|
1915
|
-
i[
|
|
1915
|
+
i[64]
|
|
1916
1916
|
),
|
|
1917
1917
|
V(
|
|
1918
1918
|
o,
|
|
1919
1919
|
"focus",
|
|
1920
1920
|
/*focus_handler*/
|
|
1921
|
-
i[
|
|
1921
|
+
i[65]
|
|
1922
1922
|
),
|
|
1923
1923
|
V(
|
|
1924
1924
|
o,
|
|
1925
1925
|
"blur",
|
|
1926
1926
|
/*blur_handler*/
|
|
1927
|
-
i[
|
|
1927
|
+
i[66]
|
|
1928
1928
|
),
|
|
1929
1929
|
V(
|
|
1930
1930
|
o,
|
|
@@ -1936,108 +1936,108 @@ function _n(i) {
|
|
|
1936
1936
|
o,
|
|
1937
1937
|
"input",
|
|
1938
1938
|
/*input_handler*/
|
|
1939
|
-
i[
|
|
1939
|
+
i[67]
|
|
1940
1940
|
),
|
|
1941
1941
|
V(
|
|
1942
1942
|
f,
|
|
1943
1943
|
"click",
|
|
1944
1944
|
/*click_handler_1*/
|
|
1945
|
-
i[
|
|
1945
|
+
i[68]
|
|
1946
1946
|
),
|
|
1947
|
-
V(t, "submit",
|
|
1947
|
+
V(t, "submit", pi(
|
|
1948
1948
|
/*handleOnSubmit*/
|
|
1949
1949
|
i[21]
|
|
1950
1950
|
))
|
|
1951
1951
|
], p = !0);
|
|
1952
1952
|
},
|
|
1953
|
-
p(
|
|
1954
|
-
(!
|
|
1953
|
+
p(h, U) {
|
|
1954
|
+
(!T || U[0] & /*placeholder*/
|
|
1955
1955
|
256) && a(
|
|
1956
1956
|
o,
|
|
1957
1957
|
"placeholder",
|
|
1958
1958
|
/*placeholder*/
|
|
1959
|
-
|
|
1960
|
-
), (!
|
|
1959
|
+
h[8]
|
|
1960
|
+
), (!T || U[0] & /*placeholder*/
|
|
1961
1961
|
256) && a(
|
|
1962
1962
|
o,
|
|
1963
1963
|
"aria-label",
|
|
1964
1964
|
/*placeholder*/
|
|
1965
|
-
|
|
1966
|
-
),
|
|
1965
|
+
h[8]
|
|
1966
|
+
), U[0] & /*searchValue*/
|
|
1967
1967
|
2 && o.value !== /*searchValue*/
|
|
1968
|
-
|
|
1968
|
+
h[1] && yt(
|
|
1969
1969
|
o,
|
|
1970
1970
|
/*searchValue*/
|
|
1971
|
-
|
|
1972
|
-
), (!
|
|
1971
|
+
h[1]
|
|
1972
|
+
), (!T || U[0] & /*clearButtonTitle*/
|
|
1973
1973
|
8) && a(
|
|
1974
1974
|
f,
|
|
1975
1975
|
"title",
|
|
1976
1976
|
/*clearButtonTitle*/
|
|
1977
|
-
|
|
1977
|
+
h[3]
|
|
1978
1978
|
), /*abortController*/
|
|
1979
|
-
|
|
1980
|
-
524288 && F(
|
|
1981
|
-
|
|
1982
|
-
}),
|
|
1983
|
-
2) &&
|
|
1979
|
+
h[19] ? c ? U[0] & /*abortController*/
|
|
1980
|
+
524288 && F(c, 1) : (c = Dt(), c.c(), F(c, 1), c.m(u, null)) : c && (He(), Q(c, 1, 1, () => {
|
|
1981
|
+
c = null;
|
|
1982
|
+
}), Pe()), (!T || U[0] & /*searchValue*/
|
|
1983
|
+
2) && le(
|
|
1984
1984
|
u,
|
|
1985
1985
|
"displayable",
|
|
1986
1986
|
/*searchValue*/
|
|
1987
|
-
|
|
1987
|
+
h[1] !== ""
|
|
1988
1988
|
), /*enableReverse*/
|
|
1989
|
-
|
|
1990
|
-
32 && F(
|
|
1991
|
-
|
|
1992
|
-
}),
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1989
|
+
h[5] === "button" ? g ? (g.p(h, U), U[0] & /*enableReverse*/
|
|
1990
|
+
32 && F(g, 1)) : (g = Ut(h), g.c(), F(g, 1), g.m(n, _)) : g && (He(), Q(g, 1, 1, () => {
|
|
1991
|
+
g = null;
|
|
1992
|
+
}), Pe()), Z && Z.p && (!T || U[1] & /*$$scope*/
|
|
1993
|
+
536870912) && wi(
|
|
1994
|
+
Z,
|
|
1995
|
+
M,
|
|
1996
|
+
h,
|
|
1997
1997
|
/*$$scope*/
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
1998
|
+
h[60],
|
|
1999
|
+
T ? yi(
|
|
2000
|
+
M,
|
|
2001
2001
|
/*$$scope*/
|
|
2002
|
-
|
|
2003
|
-
|
|
2002
|
+
h[60],
|
|
2003
|
+
U,
|
|
2004
2004
|
null
|
|
2005
|
-
) :
|
|
2005
|
+
) : Ei(
|
|
2006
2006
|
/*$$scope*/
|
|
2007
|
-
|
|
2007
|
+
h[60]
|
|
2008
2008
|
),
|
|
2009
2009
|
null
|
|
2010
2010
|
);
|
|
2011
|
-
let
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
}),
|
|
2015
|
-
4 && C !== (C =
|
|
2011
|
+
let ie = L;
|
|
2012
|
+
L = Ne(h), L === ie ? ~L && G[L].p(h, U) : (E && (He(), Q(G[ie], 1, 1, () => {
|
|
2013
|
+
G[ie] = null;
|
|
2014
|
+
}), Pe()), ~L ? (E = G[L], E ? E.p(h, U) : (E = G[L] = Le[L](h), E.c()), F(E, 1), E.m(t, null)) : E = null), (!T || U[0] & /*className*/
|
|
2015
|
+
4 && C !== (C = _t(
|
|
2016
2016
|
/*className*/
|
|
2017
|
-
|
|
2018
|
-
) + " svelte-bz0zu3")) && a(t, "class", C), (!
|
|
2019
|
-
22) &&
|
|
2017
|
+
h[2]
|
|
2018
|
+
) + " svelte-bz0zu3")) && a(t, "class", C), (!T || U[0] & /*className, collapsed, searchValue*/
|
|
2019
|
+
22) && le(
|
|
2020
2020
|
t,
|
|
2021
2021
|
"can-collapse",
|
|
2022
2022
|
/*collapsed*/
|
|
2023
|
-
|
|
2024
|
-
|
|
2023
|
+
h[4] && /*searchValue*/
|
|
2024
|
+
h[1] === ""
|
|
2025
2025
|
);
|
|
2026
2026
|
},
|
|
2027
|
-
i(
|
|
2028
|
-
|
|
2027
|
+
i(h) {
|
|
2028
|
+
T || (F(R), F(l.$$.fragment, h), F(v.$$.fragment, h), F(c), F(g), F(Z, h), F(E), T = !0);
|
|
2029
2029
|
},
|
|
2030
|
-
o(
|
|
2031
|
-
Q(
|
|
2030
|
+
o(h) {
|
|
2031
|
+
Q(R), Q(l.$$.fragment, h), Q(v.$$.fragment, h), Q(c), Q(g), Q(Z, h), Q(E), T = !1;
|
|
2032
2032
|
},
|
|
2033
|
-
d(
|
|
2034
|
-
|
|
2033
|
+
d(h) {
|
|
2034
|
+
h && (D(e), D(t)), oe(l), i[63](null), oe(v), c && c.d(), g && g.d(), Z && Z.d(h), ~L && G[L].d(), p = !1, se(H);
|
|
2035
2035
|
}
|
|
2036
2036
|
};
|
|
2037
2037
|
}
|
|
2038
|
-
function
|
|
2039
|
-
let n, { $$slots:
|
|
2040
|
-
const
|
|
2038
|
+
function wn(i, e, t) {
|
|
2039
|
+
let n, r, { $$slots: l = {}, $$scope: d } = e;
|
|
2040
|
+
const o = {
|
|
2041
2041
|
continental_marine: 4,
|
|
2042
2042
|
country: 4,
|
|
2043
2043
|
major_landform: 8,
|
|
@@ -2061,286 +2061,287 @@ function yn(i, e, t) {
|
|
|
2061
2061
|
"poi.restaurant": 18,
|
|
2062
2062
|
"poi.aerodrome": 13
|
|
2063
2063
|
};
|
|
2064
|
-
let { class:
|
|
2064
|
+
let { class: m = void 0 } = e, { apiKey: u } = e, { bbox: f = void 0 } = e, { clearButtonTitle: v = "clear" } = e, { clearOnBlur: b = !1 } = e, { collapsed: y = !1 } = e, { country: _ = void 0 } = e, { debounceSearch: z = 200 } = e, { enableReverse: L = "never" } = e, { errorMessage: E = "Something went wrong…" } = e, { filter: C = () => !0 } = e, { flyTo: T = !0 } = e, { fuzzyMatch: p = !0 } = e, { language: H = void 0 } = e, { limit: R = void 0 } = e, { mapController: c = void 0 } = e, { minLength: g = 2 } = e, { noResultsMessage: M = "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: Z = "Search" } = e, { proximity: Le = [{ type: "server-geolocation" }] } = e, { reverseActive: G = L === "always" } = e, { reverseButtonTitle: Ne = "toggle reverse geocoding" } = e, { searchValue: h = "" } = e, { pickedResultStyle: U = "full-geometry" } = e, { showPlaceType: ie = "if-needed" } = e, { showResultsWhileTyping: de = !0 } = e, { selectFirst: _e = !0 } = e, { flyToSelected: Ze = !1 } = e, { markerOnSelected: Re = !0 } = e, { types: fe = void 0 } = e, { exhaustiveReverseGeocoding: qe = !1 } = e, { excludeTypes: Oe = !1 } = e, { zoom: De = o } = e, { apiUrl: Ge = "https://api.maptiler.com/geocoding" } = e, { fetchParameters: Qe = {} } = e, { iconsBaseUrl: ct = "https://cdn.maptiler.com/maptiler-geocoding-control/v2.0.0-rc.7/icons/" } = e, { adjustUrlQuery: Ke = () => {
|
|
2065
2065
|
} } = e;
|
|
2066
|
-
function Gt() {
|
|
2067
|
-
te.focus();
|
|
2068
|
-
}
|
|
2069
2066
|
function Qt() {
|
|
2070
|
-
|
|
2071
|
-
}
|
|
2072
|
-
function ct(s, U = !0, q = !1) {
|
|
2073
|
-
t(1, j = s), U ? (t(15, O = -1), ft()) : (Je(!q, q), setTimeout(() => {
|
|
2074
|
-
te.focus(), te.select();
|
|
2075
|
-
}));
|
|
2067
|
+
Y.focus();
|
|
2076
2068
|
}
|
|
2077
2069
|
function Kt() {
|
|
2078
|
-
|
|
2070
|
+
Y.blur();
|
|
2071
|
+
}
|
|
2072
|
+
function dt(s, I = !0, q = !1) {
|
|
2073
|
+
t(1, h = s), I ? (t(15, O = -1), mt()) : (Xe(!q, q), setTimeout(() => {
|
|
2074
|
+
Y.focus(), Y.select();
|
|
2075
|
+
}));
|
|
2079
2076
|
}
|
|
2080
2077
|
function Vt() {
|
|
2081
|
-
t(
|
|
2078
|
+
t(14, N = void 0), t(56, w = void 0), t(15, O = -1);
|
|
2082
2079
|
}
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2080
|
+
function xt() {
|
|
2081
|
+
t(55, P = []), t(56, w = void 0);
|
|
2082
|
+
}
|
|
2083
|
+
let ye = !1, N, P, w, ft = "", Y, O = -1, $, Ue = [], me, we, Ie, Ve;
|
|
2084
|
+
const Jt = /* @__PURE__ */ new Set(), ae = Ti();
|
|
2085
|
+
Mi(() => {
|
|
2086
|
+
c && (c.setEventHandler(void 0), c.indicateReverse(!1), c.setSelectedMarker(-1), c.setMarkers(void 0, void 0, !1));
|
|
2087
2087
|
});
|
|
2088
|
-
function
|
|
2089
|
-
if (we && (clearTimeout(we), we = void 0), O > -1 &&
|
|
2090
|
-
t(56,
|
|
2091
|
-
else if (
|
|
2092
|
-
const
|
|
2093
|
-
|
|
2094
|
-
t(55, P =
|
|
2095
|
-
}).catch((q) => t(18,
|
|
2088
|
+
function mt(s) {
|
|
2089
|
+
if (we && (clearTimeout(we), we = void 0), O > -1 && N)
|
|
2090
|
+
t(56, w = N[O]), t(1, h = w.place_type[0] === "reverse" ? w.place_name : w.place_name.replace(/,.*/, "")), t(18, $ = void 0), t(55, P = void 0), t(15, O = -1);
|
|
2091
|
+
else if (h) {
|
|
2092
|
+
const I = s || !xe(h);
|
|
2093
|
+
Je(h, { exact: !0 }).then(() => {
|
|
2094
|
+
t(55, P = N), t(56, w = void 0), I && Xt();
|
|
2095
|
+
}).catch((q) => t(18, $ = q));
|
|
2096
2096
|
}
|
|
2097
2097
|
}
|
|
2098
|
-
function
|
|
2098
|
+
function xe(s) {
|
|
2099
2099
|
try {
|
|
2100
|
-
return
|
|
2100
|
+
return hn(s, 6);
|
|
2101
2101
|
} catch {
|
|
2102
2102
|
return !1;
|
|
2103
2103
|
}
|
|
2104
2104
|
}
|
|
2105
|
-
async function
|
|
2106
|
-
t(18,
|
|
2105
|
+
async function Je(s, { byId: I = !1, exact: q = !1 } = {}) {
|
|
2106
|
+
t(18, $ = void 0), me == null || me.abort();
|
|
2107
2107
|
const x = new AbortController();
|
|
2108
|
-
t(19,
|
|
2108
|
+
t(19, me = x);
|
|
2109
2109
|
try {
|
|
2110
|
-
const
|
|
2111
|
-
if (
|
|
2112
|
-
const
|
|
2113
|
-
|
|
2110
|
+
const S = xe(s), j = new URLSearchParams();
|
|
2111
|
+
if (H !== void 0 && j.set("language", Array.isArray(H) ? H.join(",") : H ?? ""), fe && j.set("types", fe.join(",")), Oe && j.set("excludeTypes", String(Oe)), f && j.set("bbox", f.map((Ae) => Ae.toFixed(6)).join(",")), _ && j.set("country", Array.isArray(_) ? _.join(",") : _), !I && !S) {
|
|
2112
|
+
const Ae = await rn(c, Le, x);
|
|
2113
|
+
Ae && j.set("proximity", Ae), (q || !de) && j.set("autocomplete", "false"), j.set("fuzzyMatch", String(p));
|
|
2114
2114
|
}
|
|
2115
|
-
|
|
2116
|
-
const
|
|
2117
|
-
if (
|
|
2118
|
-
|
|
2115
|
+
R !== void 0 && (qe || !S || (fe == null ? void 0 : fe.length) === 1) && j.set("limit", String(R)), j.set("key", u), Ke(j);
|
|
2116
|
+
const ee = Ge + "/" + encodeURIComponent(S ? S.decimalLongitude + "," + S.decimalLatitude : s) + ".json?" + j.toString();
|
|
2117
|
+
if (ee === ft) {
|
|
2118
|
+
I ? (t(14, N = void 0), t(56, w = Ue[0])) : t(14, N = Ue);
|
|
2119
2119
|
return;
|
|
2120
2120
|
}
|
|
2121
|
-
|
|
2122
|
-
const
|
|
2123
|
-
if (
|
|
2124
|
-
throw new Error(await
|
|
2125
|
-
const
|
|
2126
|
-
|
|
2121
|
+
ft = ee;
|
|
2122
|
+
const $e = await fetch(ee, { signal: x.signal, ...Qe });
|
|
2123
|
+
if (!$e.ok)
|
|
2124
|
+
throw new Error(await $e.text());
|
|
2125
|
+
const et = await $e.json();
|
|
2126
|
+
ae("response", { url: ee, featureCollection: et }), I ? (t(14, N = void 0), t(56, w = et.features[0]), Ue = [w]) : (t(14, N = et.features.filter(C)), S && N.unshift({
|
|
2127
2127
|
type: "Feature",
|
|
2128
2128
|
properties: {},
|
|
2129
|
-
id: "reverse_" +
|
|
2130
|
-
text:
|
|
2131
|
-
place_name:
|
|
2129
|
+
id: "reverse_" + S.decimalLongitude + "_" + S.decimalLatitude,
|
|
2130
|
+
text: S.decimalLatitude + ", " + S.decimalLongitude,
|
|
2131
|
+
place_name: S.decimalLatitude + ", " + S.decimalLongitude,
|
|
2132
2132
|
place_type: ["reverse"],
|
|
2133
|
-
center: [
|
|
2133
|
+
center: [S.decimalLongitude, S.decimalLatitude],
|
|
2134
2134
|
bbox: [
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2135
|
+
S.decimalLongitude,
|
|
2136
|
+
S.decimalLatitude,
|
|
2137
|
+
S.decimalLongitude,
|
|
2138
|
+
S.decimalLatitude
|
|
2139
2139
|
],
|
|
2140
2140
|
geometry: {
|
|
2141
2141
|
type: "Point",
|
|
2142
|
-
coordinates: [
|
|
2142
|
+
coordinates: [S.decimalLongitude, S.decimalLatitude]
|
|
2143
2143
|
}
|
|
2144
|
-
}),
|
|
2145
|
-
} catch (
|
|
2146
|
-
if (
|
|
2144
|
+
}), Ue = N, S && Y.focus());
|
|
2145
|
+
} catch (S) {
|
|
2146
|
+
if (S && typeof S == "object" && "name" in S && S.name === "AbortError")
|
|
2147
2147
|
return;
|
|
2148
|
-
throw
|
|
2148
|
+
throw S;
|
|
2149
2149
|
} finally {
|
|
2150
|
-
x ===
|
|
2150
|
+
x === me && t(19, me = void 0);
|
|
2151
2151
|
}
|
|
2152
2152
|
}
|
|
2153
|
-
function
|
|
2153
|
+
function Xt() {
|
|
2154
2154
|
var x;
|
|
2155
|
-
if (!(P != null && P.length) || !
|
|
2155
|
+
if (!(P != null && P.length) || !T)
|
|
2156
2156
|
return;
|
|
2157
|
-
const s = [180, 90, -180, -90],
|
|
2157
|
+
const s = [180, 90, -180, -90], I = !P.some((S) => !S.matching_text);
|
|
2158
2158
|
let q;
|
|
2159
|
-
for (const
|
|
2160
|
-
const
|
|
2161
|
-
if (q = q === void 0 ?
|
|
2162
|
-
for (const
|
|
2163
|
-
s[
|
|
2159
|
+
for (const S of P) {
|
|
2160
|
+
const j = ke(S);
|
|
2161
|
+
if (q = q === void 0 ? j : j === void 0 ? q : Math.max(q, j), I || !S.matching_text)
|
|
2162
|
+
for (const ee of [0, 1, 2, 3])
|
|
2163
|
+
s[ee] = Math[ee < 2 ? "min" : "max"](s[ee], ((x = S.bbox) == null ? void 0 : x[ee]) ?? S.center[ee % 2]);
|
|
2164
2164
|
}
|
|
2165
|
-
|
|
2165
|
+
c && P.length > 0 && (w && s[0] === s[2] && s[1] === s[3] ? c.flyTo(w.center, ke(w)) : c.fitBounds(Nt(s), 50, q));
|
|
2166
2166
|
}
|
|
2167
|
-
function
|
|
2167
|
+
function ke(s) {
|
|
2168
2168
|
var q;
|
|
2169
2169
|
if (!s.bbox || s.bbox[0] !== s.bbox[2] && s.bbox[1] !== s.bbox[3])
|
|
2170
2170
|
return;
|
|
2171
|
-
const
|
|
2171
|
+
const I = s.id.replace(/\..*/, "");
|
|
2172
2172
|
return (Array.isArray((q = s.properties) == null ? void 0 : q.categories) ? s.properties.categories.reduce(
|
|
2173
|
-
(x,
|
|
2174
|
-
const
|
|
2175
|
-
return x === void 0 ?
|
|
2173
|
+
(x, S) => {
|
|
2174
|
+
const j = De[I + "." + S];
|
|
2175
|
+
return x === void 0 ? j : j === void 0 ? x : Math.max(x, j);
|
|
2176
2176
|
},
|
|
2177
2177
|
void 0
|
|
2178
|
-
) : void 0) ??
|
|
2179
|
-
}
|
|
2180
|
-
function Xt(s) {
|
|
2181
|
-
t(0, Y = W === "always"), t(14, k = void 0), t(56, S = void 0), t(15, O = -1), ct(s[1].toFixed(6) + ", " + tn(s[0], [-180, 180], !0).toFixed(6), !1, !0);
|
|
2178
|
+
) : void 0) ?? De[I];
|
|
2182
2179
|
}
|
|
2183
2180
|
function Yt(s) {
|
|
2184
|
-
|
|
2181
|
+
t(0, G = L === "always"), t(14, N = void 0), t(56, w = void 0), t(15, O = -1), dt(s[1].toFixed(6) + ", " + nn(s[0], [-180, 180], !0).toFixed(6), !1, !0);
|
|
2182
|
+
}
|
|
2183
|
+
function $t(s) {
|
|
2184
|
+
if (!N)
|
|
2185
2185
|
return;
|
|
2186
|
-
let
|
|
2187
|
-
|
|
2186
|
+
let I = s.key === "ArrowDown" ? 1 : s.key === "ArrowUp" ? -1 : 0;
|
|
2187
|
+
I && (O === (_e ? 0 : -1) && I === -1 && t(15, O = N.length), t(15, O += I), O >= N.length && t(15, O = -1), O < 0 && _e && t(15, O = 0), s.preventDefault());
|
|
2188
2188
|
}
|
|
2189
|
-
function
|
|
2190
|
-
if (t(18,
|
|
2191
|
-
if (we && clearTimeout(we),
|
|
2189
|
+
function Xe(s = !0, I = !1) {
|
|
2190
|
+
if (t(18, $ = void 0), de || I) {
|
|
2191
|
+
if (we && clearTimeout(we), h.length < g)
|
|
2192
2192
|
return;
|
|
2193
|
-
const q =
|
|
2193
|
+
const q = h;
|
|
2194
2194
|
we = window.setTimeout(
|
|
2195
2195
|
() => {
|
|
2196
|
-
|
|
2196
|
+
Je(q).catch((x) => t(18, $ = x));
|
|
2197
2197
|
},
|
|
2198
|
-
s ?
|
|
2198
|
+
s ? z : 0
|
|
2199
2199
|
);
|
|
2200
2200
|
} else
|
|
2201
|
-
t(14,
|
|
2201
|
+
t(14, N = void 0), t(18, $ = void 0);
|
|
2202
2202
|
}
|
|
2203
|
-
function
|
|
2204
|
-
t(56,
|
|
2203
|
+
function Ye(s) {
|
|
2204
|
+
t(56, w = s), t(1, h = s.place_name), t(15, O = -1);
|
|
2205
2205
|
}
|
|
2206
|
-
const
|
|
2207
|
-
function
|
|
2208
|
-
|
|
2209
|
-
|
|
2206
|
+
const ei = () => Y.focus();
|
|
2207
|
+
function ti(s) {
|
|
2208
|
+
ot[s ? "unshift" : "push"](() => {
|
|
2209
|
+
Y = s, t(17, Y);
|
|
2210
2210
|
});
|
|
2211
2211
|
}
|
|
2212
|
-
function
|
|
2213
|
-
|
|
2212
|
+
function ii() {
|
|
2213
|
+
h = this.value, t(1, h), t(13, ye), t(28, b);
|
|
2214
2214
|
}
|
|
2215
|
-
const
|
|
2216
|
-
t(1,
|
|
2217
|
-
},
|
|
2218
|
-
|
|
2219
|
-
},
|
|
2215
|
+
const ni = () => t(13, ye = !0), ri = () => t(13, ye = !1), oi = () => Xe(), si = () => {
|
|
2216
|
+
t(1, h = ""), Y.focus();
|
|
2217
|
+
}, ai = () => t(0, G = !G), li = () => t(18, $ = void 0), ui = (s) => t(15, O = s), ci = (s) => Ye(s), di = () => {
|
|
2218
|
+
_e || t(15, O = -1);
|
|
2219
|
+
}, fi = () => {
|
|
2220
2220
|
};
|
|
2221
2221
|
return i.$$set = (s) => {
|
|
2222
|
-
"class" in s && t(2,
|
|
2222
|
+
"class" in s && t(2, m = s.class), "apiKey" in s && t(26, u = s.apiKey), "bbox" in s && t(27, f = s.bbox), "clearButtonTitle" in s && t(3, v = s.clearButtonTitle), "clearOnBlur" in s && t(28, b = s.clearOnBlur), "collapsed" in s && t(4, y = s.collapsed), "country" in s && t(29, _ = s.country), "debounceSearch" in s && t(30, z = s.debounceSearch), "enableReverse" in s && t(5, L = s.enableReverse), "errorMessage" in s && t(6, E = s.errorMessage), "filter" in s && t(31, C = s.filter), "flyTo" in s && t(32, T = s.flyTo), "fuzzyMatch" in s && t(33, p = s.fuzzyMatch), "language" in s && t(34, H = s.language), "limit" in s && t(35, R = s.limit), "mapController" in s && t(36, c = s.mapController), "minLength" in s && t(37, g = s.minLength), "noResultsMessage" in s && t(7, M = s.noResultsMessage), "placeholder" in s && t(8, Z = s.placeholder), "proximity" in s && t(38, Le = s.proximity), "reverseActive" in s && t(0, G = s.reverseActive), "reverseButtonTitle" in s && t(9, Ne = s.reverseButtonTitle), "searchValue" in s && t(1, h = s.searchValue), "pickedResultStyle" in s && t(39, U = s.pickedResultStyle), "showPlaceType" in s && t(10, ie = s.showPlaceType), "showResultsWhileTyping" in s && t(40, de = s.showResultsWhileTyping), "selectFirst" in s && t(11, _e = s.selectFirst), "flyToSelected" in s && t(41, Ze = s.flyToSelected), "markerOnSelected" in s && t(42, Re = s.markerOnSelected), "types" in s && t(43, fe = s.types), "exhaustiveReverseGeocoding" in s && t(44, qe = s.exhaustiveReverseGeocoding), "excludeTypes" in s && t(45, Oe = s.excludeTypes), "zoom" in s && t(46, De = s.zoom), "apiUrl" in s && t(47, Ge = s.apiUrl), "fetchParameters" in s && t(48, Qe = s.fetchParameters), "iconsBaseUrl" in s && t(12, ct = s.iconsBaseUrl), "adjustUrlQuery" in s && t(49, Ke = s.adjustUrlQuery), "$$scope" in s && t(60, d = s.$$scope);
|
|
2223
2223
|
}, i.$$.update = () => {
|
|
2224
2224
|
if (i.$$.dirty[0] & /*enableReverse*/
|
|
2225
|
-
32 && t(0,
|
|
2225
|
+
32 && t(0, G = L === "always"), i.$$.dirty[0] & /*focused, clearOnBlur*/
|
|
2226
2226
|
268443648 && setTimeout(() => {
|
|
2227
|
-
t(16,
|
|
2227
|
+
t(16, Ie = ye), b && !ye && t(1, h = "");
|
|
2228
2228
|
}), i.$$.dirty[0] & /*searchValue, listFeatures*/
|
|
2229
2229
|
16386 | i.$$.dirty[1] & /*minLength*/
|
|
2230
|
-
64 &&
|
|
2231
|
-
33554688 &&
|
|
2232
|
-
100663330 && (
|
|
2233
|
-
18432 &&
|
|
2230
|
+
64 && h.length < g && (t(56, w = void 0), t(14, N = void 0), t(18, $ = void 0), t(55, P = N)), i.$$.dirty[1] & /*pickedResultStyle, picked*/
|
|
2231
|
+
33554688 && U !== "marker-only" && w && !w.address && w.geometry.type === "Point" && w.place_type[0] !== "reverse" && Je(w.id, { byId: !0 }).catch((s) => t(18, $ = s)), i.$$.dirty[1] & /*mapController, picked, prevIdToFly, flyTo*/
|
|
2232
|
+
100663330 && (c && w && w.id !== Ve && T && (!w.bbox || w.bbox[0] === w.bbox[2] && w.bbox[1] === w.bbox[3] ? c.flyTo(w.center, ke(w)) : c.fitBounds(Nt(w.bbox), 50, ke(w)), t(14, N = void 0), t(55, P = void 0), t(15, O = -1)), t(57, Ve = w == null ? void 0 : w.id)), i.$$.dirty[0] & /*selectFirst, listFeatures*/
|
|
2233
|
+
18432 && _e && N != null && N.length && t(15, O = 0), i.$$.dirty[0] & /*searchValue*/
|
|
2234
2234
|
2 && t(15, O = -1), i.$$.dirty[0] & /*listFeatures*/
|
|
2235
2235
|
16384 | i.$$.dirty[1] & /*markedFeatures*/
|
|
2236
|
-
16777216 && P !==
|
|
2236
|
+
16777216 && P !== N && t(55, P = void 0), i.$$.dirty[0] & /*reverseActive, listFeatures, focusedDelayed*/
|
|
2237
2237
|
81921 | i.$$.dirty[1] & /*mapController, markedFeatures*/
|
|
2238
|
-
16777248 &&
|
|
2238
|
+
16777248 && c && c.setEventHandler((s) => {
|
|
2239
2239
|
switch (s.type) {
|
|
2240
2240
|
case "mapClick":
|
|
2241
|
-
|
|
2241
|
+
G && Yt(s.coordinates);
|
|
2242
2242
|
break;
|
|
2243
2243
|
case "markerClick":
|
|
2244
2244
|
{
|
|
2245
|
-
const
|
|
2246
|
-
|
|
2245
|
+
const I = N == null ? void 0 : N.find((q) => q.id === s.id);
|
|
2246
|
+
I && Ye(I);
|
|
2247
2247
|
}
|
|
2248
2248
|
break;
|
|
2249
2249
|
case "markerMouseEnter":
|
|
2250
|
-
P && t(15, O =
|
|
2250
|
+
P && t(15, O = Ie ? (N == null ? void 0 : N.findIndex((I) => I.id === s.id)) ?? -1 : -1);
|
|
2251
2251
|
break;
|
|
2252
2252
|
case "markerMouseLeave":
|
|
2253
2253
|
P && t(15, O = -1);
|
|
2254
2254
|
break;
|
|
2255
2255
|
}
|
|
2256
2256
|
}), i.$$.dirty[0] & /*listFeatures, selectedItemIndex*/
|
|
2257
|
-
49152 && t(58,
|
|
2258
|
-
134218786 &&
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2257
|
+
49152 && t(58, r = N == null ? void 0 : N[O]), i.$$.dirty[1] & /*mapController, selected, flyTo, flyToSelected*/
|
|
2258
|
+
134218786 && c && r && T && Ze && c.flyTo(r.center, ke(r)), i.$$.dirty[1] & /*pickedResultStyle*/
|
|
2259
|
+
256 && t(59, n = U === "full-geometry-including-polygon-center-marker"), i.$$.dirty[1] & /*markerOnSelected, mapController, showPolygonMarker*/
|
|
2260
|
+
268437536 && (Re || c == null || c.setMarkers(void 0, void 0, n)), i.$$.dirty[1] & /*mapController, markerOnSelected, markedFeatures, selected, showPolygonMarker*/
|
|
2261
|
+
419432480 && c && Re && !P && (c.setMarkers(r ? [r] : void 0, void 0, n), c.setSelectedMarker(r ? 0 : -1)), i.$$.dirty[1] & /*mapController, markedFeatures, picked, showPolygonMarker*/
|
|
2262
|
+
318767136 && c && c.setMarkers(P, w, n), i.$$.dirty[0] & /*selectedItemIndex*/
|
|
2262
2263
|
32768 | i.$$.dirty[1] & /*markedFeatures, mapController*/
|
|
2263
|
-
16777248 && P &&
|
|
2264
|
+
16777248 && P && c && c.setSelectedMarker(O), i.$$.dirty[0] & /*searchValue*/
|
|
2264
2265
|
2 | i.$$.dirty[1] & /*mapController*/
|
|
2265
|
-
32 &&
|
|
2266
|
-
const s =
|
|
2267
|
-
|
|
2266
|
+
32 && c) {
|
|
2267
|
+
const s = xe(h);
|
|
2268
|
+
c.setReverseMarker(s ? [s.decimalLongitude, s.decimalLatitude] : void 0);
|
|
2268
2269
|
}
|
|
2269
2270
|
i.$$.dirty[1] & /*selected*/
|
|
2270
|
-
134217728 &&
|
|
2271
|
-
33554432 &&
|
|
2272
|
-
81920 &&
|
|
2273
|
-
optionsVisible:
|
|
2271
|
+
134217728 && ae("select", { feature: r }), i.$$.dirty[1] & /*picked*/
|
|
2272
|
+
33554432 && ae("pick", { feature: w }), i.$$.dirty[0] & /*focusedDelayed, listFeatures*/
|
|
2273
|
+
81920 && ae("optionsvisibilitychange", {
|
|
2274
|
+
optionsVisible: Ie && !!N
|
|
2274
2275
|
}), i.$$.dirty[0] & /*listFeatures*/
|
|
2275
|
-
16384 &&
|
|
2276
|
-
16777216 &&
|
|
2277
|
-
1 &&
|
|
2278
|
-
2 &&
|
|
2276
|
+
16384 && ae("featureslisted", { features: N }), i.$$.dirty[1] & /*markedFeatures*/
|
|
2277
|
+
16777216 && ae("featuresmarked", { features: P }), i.$$.dirty[0] & /*reverseActive*/
|
|
2278
|
+
1 && ae("reversetoggle", { reverse: G }), i.$$.dirty[0] & /*searchValue*/
|
|
2279
|
+
2 && ae("querychange", { query: h }), i.$$.dirty[0] & /*reverseActive*/
|
|
2279
2280
|
1 | i.$$.dirty[1] & /*mapController*/
|
|
2280
|
-
32 &&
|
|
2281
|
+
32 && c && c.indicateReverse(G);
|
|
2281
2282
|
}, [
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
f,
|
|
2283
|
+
G,
|
|
2284
|
+
h,
|
|
2285
|
+
m,
|
|
2286
2286
|
v,
|
|
2287
|
-
W,
|
|
2288
2287
|
y,
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2288
|
+
L,
|
|
2289
|
+
E,
|
|
2290
|
+
M,
|
|
2291
|
+
Z,
|
|
2292
|
+
Ne,
|
|
2293
|
+
ie,
|
|
2294
|
+
_e,
|
|
2295
|
+
ct,
|
|
2295
2296
|
ye,
|
|
2296
|
-
|
|
2297
|
+
N,
|
|
2297
2298
|
O,
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
Je,
|
|
2299
|
+
Ie,
|
|
2300
|
+
Y,
|
|
2301
|
+
$,
|
|
2302
|
+
me,
|
|
2303
|
+
Jt,
|
|
2304
|
+
mt,
|
|
2305
|
+
$t,
|
|
2306
2306
|
Xe,
|
|
2307
|
-
|
|
2308
|
-
|
|
2307
|
+
Ye,
|
|
2308
|
+
o,
|
|
2309
2309
|
u,
|
|
2310
|
-
|
|
2310
|
+
f,
|
|
2311
|
+
b,
|
|
2311
2312
|
_,
|
|
2312
|
-
w,
|
|
2313
|
-
E,
|
|
2314
|
-
C,
|
|
2315
2313
|
z,
|
|
2314
|
+
C,
|
|
2315
|
+
T,
|
|
2316
2316
|
p,
|
|
2317
|
-
G,
|
|
2318
|
-
b,
|
|
2319
|
-
g,
|
|
2320
2317
|
H,
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2318
|
+
R,
|
|
2319
|
+
c,
|
|
2320
|
+
g,
|
|
2321
|
+
Le,
|
|
2322
|
+
U,
|
|
2323
|
+
de,
|
|
2326
2324
|
Ze,
|
|
2327
2325
|
Re,
|
|
2328
|
-
|
|
2326
|
+
fe,
|
|
2329
2327
|
qe,
|
|
2328
|
+
Oe,
|
|
2329
|
+
De,
|
|
2330
2330
|
Ge,
|
|
2331
2331
|
Qe,
|
|
2332
|
-
|
|
2332
|
+
Ke,
|
|
2333
2333
|
Qt,
|
|
2334
|
-
ct,
|
|
2335
2334
|
Kt,
|
|
2335
|
+
dt,
|
|
2336
2336
|
Vt,
|
|
2337
|
+
xt,
|
|
2337
2338
|
P,
|
|
2338
|
-
|
|
2339
|
-
|
|
2339
|
+
w,
|
|
2340
|
+
Ve,
|
|
2341
|
+
r,
|
|
2340
2342
|
n,
|
|
2343
|
+
d,
|
|
2341
2344
|
l,
|
|
2342
|
-
r,
|
|
2343
|
-
$t,
|
|
2344
2345
|
ei,
|
|
2345
2346
|
ti,
|
|
2346
2347
|
ii,
|
|
@@ -2352,17 +2353,18 @@ function yn(i, e, t) {
|
|
|
2352
2353
|
li,
|
|
2353
2354
|
ui,
|
|
2354
2355
|
ci,
|
|
2355
|
-
di
|
|
2356
|
+
di,
|
|
2357
|
+
fi
|
|
2356
2358
|
];
|
|
2357
2359
|
}
|
|
2358
|
-
let
|
|
2360
|
+
let En = class extends ve {
|
|
2359
2361
|
constructor(e) {
|
|
2360
|
-
super(),
|
|
2362
|
+
super(), be(
|
|
2361
2363
|
this,
|
|
2362
2364
|
e,
|
|
2365
|
+
wn,
|
|
2363
2366
|
yn,
|
|
2364
|
-
|
|
2365
|
-
ve,
|
|
2367
|
+
he,
|
|
2366
2368
|
{
|
|
2367
2369
|
ZOOM_DEFAULTS: 25,
|
|
2368
2370
|
class: 2,
|
|
@@ -2431,16 +2433,16 @@ let wn = class extends _e {
|
|
|
2431
2433
|
return this.$$.ctx[54];
|
|
2432
2434
|
}
|
|
2433
2435
|
};
|
|
2434
|
-
const
|
|
2436
|
+
const Sn = new FinalizationRegistry((i) => {
|
|
2435
2437
|
i.$destroy();
|
|
2436
2438
|
});
|
|
2437
|
-
var J, je,
|
|
2438
|
-
const
|
|
2439
|
+
var J, je, Gt;
|
|
2440
|
+
const ut = class ut extends EventTarget {
|
|
2439
2441
|
constructor({ target: t, ...n }) {
|
|
2440
2442
|
super();
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2443
|
+
nt(this, je);
|
|
2444
|
+
nt(this, J);
|
|
2445
|
+
ht(this, J, new En({
|
|
2444
2446
|
target: t,
|
|
2445
2447
|
props: n
|
|
2446
2448
|
}));
|
|
@@ -2454,38 +2456,38 @@ const lt = class lt extends EventTarget {
|
|
|
2454
2456
|
"reversetoggle",
|
|
2455
2457
|
"querychange"
|
|
2456
2458
|
])
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
+
te(this, J).$on(r, (l) => {
|
|
2460
|
+
bt(this, je, Gt).call(this, r, l.detail);
|
|
2459
2461
|
});
|
|
2460
|
-
|
|
2462
|
+
te(this, J).$on("select", (r) => {
|
|
2461
2463
|
const l = new CustomEvent(r.type, {
|
|
2462
2464
|
detail: r.detail
|
|
2463
2465
|
});
|
|
2464
2466
|
this.dispatchEvent(l);
|
|
2465
|
-
}),
|
|
2467
|
+
}), Sn.register(this, te(this, J));
|
|
2466
2468
|
}
|
|
2467
2469
|
setOptions(t) {
|
|
2468
|
-
|
|
2470
|
+
te(this, J).$set(t);
|
|
2469
2471
|
}
|
|
2470
2472
|
setQuery(t, n = !0) {
|
|
2471
2473
|
var r;
|
|
2472
|
-
(r =
|
|
2474
|
+
(r = te(this, J)) == null || r.setQuery(t, n);
|
|
2473
2475
|
}
|
|
2474
2476
|
clearMap() {
|
|
2475
2477
|
var t;
|
|
2476
|
-
(t =
|
|
2478
|
+
(t = te(this, J)) == null || t.clearMap();
|
|
2477
2479
|
}
|
|
2478
2480
|
clearList() {
|
|
2479
2481
|
var t;
|
|
2480
|
-
(t =
|
|
2482
|
+
(t = te(this, J)) == null || t.clearList();
|
|
2481
2483
|
}
|
|
2482
2484
|
focus() {
|
|
2483
2485
|
var t;
|
|
2484
|
-
(t =
|
|
2486
|
+
(t = te(this, J)) == null || t.focus();
|
|
2485
2487
|
}
|
|
2486
2488
|
blur() {
|
|
2487
2489
|
var t;
|
|
2488
|
-
(t =
|
|
2490
|
+
(t = te(this, J)) == null || t.blur();
|
|
2489
2491
|
}
|
|
2490
2492
|
addEventListener(t, n, r) {
|
|
2491
2493
|
super.addEventListener(t, n, r);
|
|
@@ -2497,16 +2499,16 @@ const lt = class lt extends EventTarget {
|
|
|
2497
2499
|
return super.dispatchEvent(t);
|
|
2498
2500
|
}
|
|
2499
2501
|
};
|
|
2500
|
-
J = new WeakMap(), je = new WeakSet(),
|
|
2501
|
-
return
|
|
2502
|
+
J = new WeakMap(), je = new WeakSet(), Gt = function(t, n) {
|
|
2503
|
+
return vt(ut.prototype, this, "dispatchEvent").call(
|
|
2502
2504
|
this,
|
|
2503
2505
|
new CustomEvent(t, {
|
|
2504
2506
|
detail: n
|
|
2505
2507
|
})
|
|
2506
2508
|
);
|
|
2507
2509
|
};
|
|
2508
|
-
let
|
|
2510
|
+
let At = ut;
|
|
2509
2511
|
export {
|
|
2510
|
-
|
|
2512
|
+
At as GeocodingControl
|
|
2511
2513
|
};
|
|
2512
2514
|
//# sourceMappingURL=vanilla.js.map
|