@maptiler/geocoding-control 2.1.0-with-autocomplete-timeout → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/leaflet-controller.js +1942 -1523
- package/leaflet-controller.js.map +1 -1
- package/leaflet-controller.umd.js +1 -22
- package/leaflet-controller.umd.js.map +1 -1
- package/leaflet.js +2798 -2385
- package/leaflet.js.map +1 -1
- package/leaflet.umd.js +1 -22
- package/leaflet.umd.js.map +1 -1
- package/maplibregl-controller.js +1918 -1498
- package/maplibregl-controller.js.map +1 -1
- package/maplibregl-controller.umd.js +1 -22
- package/maplibregl-controller.umd.js.map +1 -1
- package/maplibregl.js +2892 -2478
- package/maplibregl.js.map +1 -1
- package/maplibregl.umd.js +1 -22
- package/maplibregl.umd.js.map +1 -1
- package/maptilersdk.js +2898 -2482
- package/maptilersdk.js.map +1 -1
- package/maptilersdk.umd.js +1 -22
- package/maptilersdk.umd.js.map +1 -1
- package/openlayers-controller.js +1686 -1264
- package/openlayers-controller.js.map +1 -1
- package/openlayers-controller.umd.js +1 -22
- package/openlayers-controller.umd.js.map +1 -1
- package/openlayers.js +2778 -2365
- package/openlayers.js.map +1 -1
- package/openlayers.umd.js +1 -22
- package/openlayers.umd.js.map +1 -1
- package/package.json +19 -19
- package/react.js +753 -756
- package/react.js.map +1 -1
- package/react.umd.js +1 -1
- package/react.umd.js.map +1 -1
- package/{MapLibreBasedGeocodingControl.d.ts → src/MapLibreBasedGeocodingControl.d.ts} +35 -69
- package/{maplibregl.d.ts → src/maplibregl.d.ts} +34 -68
- package/{maptilersdk.d.ts → src/maptilersdk.d.ts} +34 -68
- package/src/types.d.ts +391 -0
- package/svelte/GeocodingControl.svelte +71 -58
- package/svelte/GeocodingControl.svelte.d.ts +5 -3
- package/svelte/MapLibreBasedGeocodingControl.d.ts +35 -69
- package/svelte/maplibregl.d.ts +34 -68
- package/svelte/maptilersdk.d.ts +34 -68
- package/svelte/maptilersdk.js +2 -0
- package/svelte/react.js +3 -0
- package/svelte/types.d.ts +175 -128
- package/vanilla.js +847 -853
- package/vanilla.js.map +1 -1
- package/vanilla.umd.js +1 -1
- package/vanilla.umd.js.map +1 -1
- package/types.d.ts +0 -344
- /package/{geo-coordinates-parser.t.d.ts → src/geo-coordinates-parser.t.d.ts} +0 -0
- /package/{geoUtils.d.ts → src/geoUtils.d.ts} +0 -0
- /package/{leaflet-controller.d.ts → src/leaflet-controller.d.ts} +0 -0
- /package/{leaflet.d.ts → src/leaflet.d.ts} +0 -0
- /package/{maplibregl-controller.d.ts → src/maplibregl-controller.d.ts} +0 -0
- /package/{mask.d.ts → src/mask.d.ts} +0 -0
- /package/{openlayers-controller.d.ts → src/openlayers-controller.d.ts} +0 -0
- /package/{openlayers.d.ts → src/openlayers.d.ts} +0 -0
- /package/{proximity.d.ts → src/proximity.d.ts} +0 -0
- /package/{react.d.ts → src/react.d.ts} +0 -0
- /package/{vanilla.d.ts → src/vanilla.d.ts} +0 -0
package/vanilla.js
CHANGED
|
@@ -1,75 +1,63 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
1
|
+
var Ri = Object.defineProperty;
|
|
2
|
+
var Ui = Object.getPrototypeOf;
|
|
3
|
+
var Ii = Reflect.get;
|
|
4
|
+
var Rt = (i) => {
|
|
5
5
|
throw TypeError(i);
|
|
6
6
|
};
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
var
|
|
7
|
+
var Ai = (i, e, t) => e in i ? Ri(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
|
|
8
|
+
var gt = (i, e, t) => Ai(i, typeof e != "symbol" ? e + "" : e, t), ht = (i, e, t) => e.has(i) || Rt("Cannot " + t);
|
|
9
|
+
var re = (i, e, t) => (ht(i, e, "read from private field"), t ? t.call(i) : e.get(i)), bt = (i, e, t) => e.has(i) ? Rt("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(i) : e.set(i, t), Ut = (i, e, t, n) => (ht(i, e, "write to private field"), n ? n.call(i, t) : e.set(i, t), t), It = (i, e, t) => (ht(i, e, "access private method"), t);
|
|
10
|
+
var At = (i, e, t) => Ii(Ui(i), t, e);
|
|
11
11
|
function P() {
|
|
12
12
|
}
|
|
13
|
-
function
|
|
13
|
+
function Pi(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 ii(i) {
|
|
21
21
|
return i();
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function Pt() {
|
|
24
24
|
return /* @__PURE__ */ Object.create(null);
|
|
25
25
|
}
|
|
26
|
-
function
|
|
27
|
-
i.forEach(
|
|
26
|
+
function me(i) {
|
|
27
|
+
i.forEach(ii);
|
|
28
28
|
}
|
|
29
|
-
function
|
|
29
|
+
function ni(i) {
|
|
30
30
|
return typeof i == "function";
|
|
31
31
|
}
|
|
32
32
|
function we(i, e) {
|
|
33
33
|
return i != i ? e == e : i !== e || i && typeof i == "object" || typeof i == "function";
|
|
34
34
|
}
|
|
35
|
-
let
|
|
35
|
+
let Ye;
|
|
36
36
|
function X(i, e) {
|
|
37
|
-
return i === e ? !0 : (
|
|
37
|
+
return i === e ? !0 : (Ye || (Ye = document.createElement("a")), Ye.href = e, i === Ye.href);
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function Bi(i) {
|
|
40
40
|
return Object.keys(i).length === 0;
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function Fi(i, e, t, n) {
|
|
43
43
|
if (i) {
|
|
44
|
-
const r =
|
|
44
|
+
const r = ri(i, e, t, n);
|
|
45
45
|
return i[0](r);
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
|
-
function
|
|
49
|
-
return i[1] && n ?
|
|
48
|
+
function ri(i, e, t, n) {
|
|
49
|
+
return i[1] && n ? Pi(t.ctx.slice(), i[1](n(e))) : t.ctx;
|
|
50
50
|
}
|
|
51
|
-
function
|
|
52
|
-
|
|
53
|
-
const r = i[2](n(t));
|
|
54
|
-
if (e.dirty === void 0)
|
|
55
|
-
return r;
|
|
56
|
-
if (typeof r == "object") {
|
|
57
|
-
const l = [], c = Math.max(e.dirty.length, r.length);
|
|
58
|
-
for (let o = 0; o < c; o += 1)
|
|
59
|
-
l[o] = e.dirty[o] | r[o];
|
|
60
|
-
return l;
|
|
61
|
-
}
|
|
62
|
-
return e.dirty | r;
|
|
63
|
-
}
|
|
64
|
-
return e.dirty;
|
|
51
|
+
function ji(i, e, t, n) {
|
|
52
|
+
return i[2], e.dirty;
|
|
65
53
|
}
|
|
66
|
-
function
|
|
54
|
+
function Gi(i, e, t, n, r, l) {
|
|
67
55
|
if (r) {
|
|
68
|
-
const c =
|
|
56
|
+
const c = ri(e, t, n, l);
|
|
69
57
|
i.p(c, r);
|
|
70
58
|
}
|
|
71
59
|
}
|
|
72
|
-
function
|
|
60
|
+
function Hi(i) {
|
|
73
61
|
if (i.ctx.length > 32) {
|
|
74
62
|
const e = [], t = i.ctx.length / 32;
|
|
75
63
|
for (let n = 0; n < t; n++)
|
|
@@ -78,37 +66,37 @@ function Ii(i) {
|
|
|
78
66
|
}
|
|
79
67
|
return -1;
|
|
80
68
|
}
|
|
81
|
-
function
|
|
69
|
+
function $e(i) {
|
|
82
70
|
return i ?? "";
|
|
83
71
|
}
|
|
84
|
-
function
|
|
72
|
+
function M(i, e) {
|
|
85
73
|
i.appendChild(e);
|
|
86
74
|
}
|
|
87
|
-
function
|
|
75
|
+
function B(i, e, t) {
|
|
88
76
|
i.insertBefore(e, t || null);
|
|
89
77
|
}
|
|
90
|
-
function
|
|
78
|
+
function I(i) {
|
|
91
79
|
i.parentNode && i.parentNode.removeChild(i);
|
|
92
80
|
}
|
|
93
|
-
function
|
|
81
|
+
function R(i) {
|
|
94
82
|
return document.createElement(i);
|
|
95
83
|
}
|
|
96
|
-
function
|
|
84
|
+
function ce(i) {
|
|
97
85
|
return document.createElementNS("http://www.w3.org/2000/svg", i);
|
|
98
86
|
}
|
|
99
|
-
function
|
|
87
|
+
function be(i) {
|
|
100
88
|
return document.createTextNode(i);
|
|
101
89
|
}
|
|
102
|
-
function
|
|
103
|
-
return
|
|
90
|
+
function ee() {
|
|
91
|
+
return be(" ");
|
|
104
92
|
}
|
|
105
|
-
function
|
|
106
|
-
return
|
|
93
|
+
function Zi() {
|
|
94
|
+
return be("");
|
|
107
95
|
}
|
|
108
|
-
function
|
|
96
|
+
function q(i, e, t, n) {
|
|
109
97
|
return i.addEventListener(e, t, n), () => i.removeEventListener(e, t, n);
|
|
110
98
|
}
|
|
111
|
-
function
|
|
99
|
+
function qi(i) {
|
|
112
100
|
return function(e) {
|
|
113
101
|
return e.preventDefault(), i.call(this, e);
|
|
114
102
|
};
|
|
@@ -116,39 +104,39 @@ function Bi(i) {
|
|
|
116
104
|
function a(i, e, t) {
|
|
117
105
|
t == null ? i.removeAttribute(e) : i.getAttribute(e) !== t && i.setAttribute(e, t);
|
|
118
106
|
}
|
|
119
|
-
function
|
|
107
|
+
function Qi(i) {
|
|
120
108
|
return Array.from(i.childNodes);
|
|
121
109
|
}
|
|
122
|
-
function
|
|
110
|
+
function Pe(i, e) {
|
|
123
111
|
e = "" + e, i.data !== e && (i.data = /** @type {string} */
|
|
124
112
|
e);
|
|
125
113
|
}
|
|
126
|
-
function
|
|
114
|
+
function Bt(i, e) {
|
|
127
115
|
i.value = e ?? "";
|
|
128
116
|
}
|
|
129
|
-
function
|
|
117
|
+
function Ce(i, e, t) {
|
|
130
118
|
i.classList.toggle(e, !!t);
|
|
131
119
|
}
|
|
132
|
-
function
|
|
120
|
+
function Ki(i, e, { bubbles: t = !1, cancelable: n = !1 } = {}) {
|
|
133
121
|
return new CustomEvent(i, { detail: e, bubbles: t, cancelable: n });
|
|
134
122
|
}
|
|
135
|
-
let
|
|
136
|
-
function
|
|
137
|
-
|
|
123
|
+
let Be;
|
|
124
|
+
function Ae(i) {
|
|
125
|
+
Be = i;
|
|
138
126
|
}
|
|
139
|
-
function
|
|
140
|
-
if (!
|
|
141
|
-
return
|
|
127
|
+
function si() {
|
|
128
|
+
if (!Be) throw new Error("Function called outside component initialization");
|
|
129
|
+
return Be;
|
|
142
130
|
}
|
|
143
|
-
function
|
|
144
|
-
|
|
131
|
+
function Vi(i) {
|
|
132
|
+
si().$$.on_destroy.push(i);
|
|
145
133
|
}
|
|
146
|
-
function
|
|
147
|
-
const i =
|
|
134
|
+
function oi() {
|
|
135
|
+
const i = si();
|
|
148
136
|
return (e, t, { cancelable: n = !1 } = {}) => {
|
|
149
137
|
const r = i.$$.callbacks[e];
|
|
150
138
|
if (r) {
|
|
151
|
-
const l =
|
|
139
|
+
const l = Ki(
|
|
152
140
|
/** @type {string} */
|
|
153
141
|
e,
|
|
154
142
|
t,
|
|
@@ -161,60 +149,60 @@ function $t() {
|
|
|
161
149
|
return !0;
|
|
162
150
|
};
|
|
163
151
|
}
|
|
164
|
-
function
|
|
152
|
+
function Yi(i, e) {
|
|
165
153
|
const t = i.$$.callbacks[e.type];
|
|
166
154
|
t && t.slice().forEach((n) => n.call(this, e));
|
|
167
155
|
}
|
|
168
|
-
const
|
|
169
|
-
let
|
|
170
|
-
const
|
|
171
|
-
let
|
|
172
|
-
function
|
|
173
|
-
|
|
156
|
+
const Me = [], Lt = [];
|
|
157
|
+
let We = [];
|
|
158
|
+
const Ft = [], Xi = /* @__PURE__ */ Promise.resolve();
|
|
159
|
+
let _t = !1;
|
|
160
|
+
function Ji() {
|
|
161
|
+
_t || (_t = !0, Xi.then(ai));
|
|
174
162
|
}
|
|
175
|
-
function
|
|
176
|
-
|
|
163
|
+
function yt(i) {
|
|
164
|
+
We.push(i);
|
|
177
165
|
}
|
|
178
|
-
const
|
|
179
|
-
let
|
|
180
|
-
function
|
|
181
|
-
if (
|
|
166
|
+
const vt = /* @__PURE__ */ new Set();
|
|
167
|
+
let ke = 0;
|
|
168
|
+
function ai() {
|
|
169
|
+
if (ke !== 0)
|
|
182
170
|
return;
|
|
183
|
-
const i =
|
|
171
|
+
const i = Be;
|
|
184
172
|
do {
|
|
185
173
|
try {
|
|
186
|
-
for (;
|
|
187
|
-
const e =
|
|
188
|
-
|
|
174
|
+
for (; ke < Me.length; ) {
|
|
175
|
+
const e = Me[ke];
|
|
176
|
+
ke++, Ae(e), xi(e.$$);
|
|
189
177
|
}
|
|
190
178
|
} catch (e) {
|
|
191
|
-
throw
|
|
179
|
+
throw Me.length = 0, ke = 0, e;
|
|
192
180
|
}
|
|
193
|
-
for (
|
|
194
|
-
for (let e = 0; e <
|
|
195
|
-
const t =
|
|
196
|
-
|
|
181
|
+
for (Ae(null), Me.length = 0, ke = 0; Lt.length; ) Lt.pop()();
|
|
182
|
+
for (let e = 0; e < We.length; e += 1) {
|
|
183
|
+
const t = We[e];
|
|
184
|
+
vt.has(t) || (vt.add(t), t());
|
|
197
185
|
}
|
|
198
|
-
|
|
199
|
-
} while (
|
|
200
|
-
for (;
|
|
201
|
-
|
|
202
|
-
|
|
186
|
+
We.length = 0;
|
|
187
|
+
} while (Me.length);
|
|
188
|
+
for (; Ft.length; )
|
|
189
|
+
Ft.pop()();
|
|
190
|
+
_t = !1, vt.clear(), Ae(i);
|
|
203
191
|
}
|
|
204
|
-
function
|
|
192
|
+
function xi(i) {
|
|
205
193
|
if (i.fragment !== null) {
|
|
206
|
-
i.update(),
|
|
194
|
+
i.update(), me(i.before_update);
|
|
207
195
|
const e = i.dirty;
|
|
208
|
-
i.dirty = [-1], i.fragment && i.fragment.p(i.ctx, e), i.after_update.forEach(
|
|
196
|
+
i.dirty = [-1], i.fragment && i.fragment.p(i.ctx, e), i.after_update.forEach(yt);
|
|
209
197
|
}
|
|
210
198
|
}
|
|
211
|
-
function
|
|
199
|
+
function $i(i) {
|
|
212
200
|
const e = [], t = [];
|
|
213
|
-
|
|
201
|
+
We.forEach((n) => i.indexOf(n) === -1 ? e.push(n) : t.push(n)), t.forEach((n) => n()), We = e;
|
|
214
202
|
}
|
|
215
|
-
const
|
|
203
|
+
const Xe = /* @__PURE__ */ new Set();
|
|
216
204
|
let ye;
|
|
217
|
-
function
|
|
205
|
+
function Je() {
|
|
218
206
|
ye = {
|
|
219
207
|
r: 0,
|
|
220
208
|
c: [],
|
|
@@ -222,73 +210,73 @@ function Ve() {
|
|
|
222
210
|
// parent group
|
|
223
211
|
};
|
|
224
212
|
}
|
|
225
|
-
function
|
|
226
|
-
ye.r ||
|
|
213
|
+
function xe() {
|
|
214
|
+
ye.r || me(ye.c), ye = ye.p;
|
|
227
215
|
}
|
|
228
|
-
function
|
|
229
|
-
i && i.i && (
|
|
216
|
+
function G(i, e) {
|
|
217
|
+
i && i.i && (Xe.delete(i), i.i(e));
|
|
230
218
|
}
|
|
231
|
-
function
|
|
219
|
+
function Q(i, e, t, n) {
|
|
232
220
|
if (i && i.o) {
|
|
233
|
-
if (
|
|
234
|
-
|
|
235
|
-
|
|
221
|
+
if (Xe.has(i)) return;
|
|
222
|
+
Xe.add(i), ye.c.push(() => {
|
|
223
|
+
Xe.delete(i), n && (t && i.d(1), n());
|
|
236
224
|
}), i.o(e);
|
|
237
225
|
} else n && n();
|
|
238
226
|
}
|
|
239
|
-
function
|
|
227
|
+
function jt(i) {
|
|
240
228
|
return (i == null ? void 0 : i.length) !== void 0 ? i : Array.from(i);
|
|
241
229
|
}
|
|
242
|
-
function
|
|
243
|
-
|
|
230
|
+
function en(i, e) {
|
|
231
|
+
Q(i, 1, 1, () => {
|
|
244
232
|
e.delete(i.key);
|
|
245
233
|
});
|
|
246
234
|
}
|
|
247
|
-
function
|
|
235
|
+
function tn(i, e, t, n, r, l, c, s, d, u, f, g) {
|
|
248
236
|
let b = i.length, _ = l.length, w = b;
|
|
249
|
-
const
|
|
250
|
-
for (; w--; )
|
|
251
|
-
const
|
|
237
|
+
const U = {};
|
|
238
|
+
for (; w--; ) U[i[w].key] = w;
|
|
239
|
+
const p = [], S = /* @__PURE__ */ new Map(), z = /* @__PURE__ */ new Map(), W = [];
|
|
252
240
|
for (w = _; w--; ) {
|
|
253
|
-
const
|
|
254
|
-
let
|
|
255
|
-
|
|
241
|
+
const v = g(r, l, w), y = t(v);
|
|
242
|
+
let N = c.get(y);
|
|
243
|
+
N ? W.push(() => N.p(v, e)) : (N = u(y, v), N.c()), S.set(y, p[w] = N), y in U && z.set(y, Math.abs(w - U[y]));
|
|
256
244
|
}
|
|
257
|
-
const
|
|
258
|
-
function
|
|
259
|
-
|
|
245
|
+
const Z = /* @__PURE__ */ new Set(), V = /* @__PURE__ */ new Set();
|
|
246
|
+
function C(v) {
|
|
247
|
+
G(v, 1), v.m(s, f), c.set(v.key, v), f = v.first, _--;
|
|
260
248
|
}
|
|
261
249
|
for (; b && _; ) {
|
|
262
|
-
const
|
|
263
|
-
|
|
250
|
+
const v = p[_ - 1], y = i[b - 1], N = v.key, k = y.key;
|
|
251
|
+
v === y ? (f = v.first, b--, _--) : S.has(k) ? !c.has(N) || Z.has(N) ? C(v) : V.has(k) ? b-- : z.get(N) > z.get(k) ? (V.add(N), C(v)) : (Z.add(k), b--) : (d(y, c), b--);
|
|
264
252
|
}
|
|
265
253
|
for (; b--; ) {
|
|
266
|
-
const
|
|
267
|
-
|
|
254
|
+
const v = i[b];
|
|
255
|
+
S.has(v.key) || d(v, c);
|
|
268
256
|
}
|
|
269
|
-
for (; _; )
|
|
270
|
-
return
|
|
257
|
+
for (; _; ) C(p[_ - 1]);
|
|
258
|
+
return me(W), p;
|
|
271
259
|
}
|
|
272
|
-
function
|
|
260
|
+
function ve(i) {
|
|
273
261
|
i && i.c();
|
|
274
262
|
}
|
|
275
|
-
function
|
|
263
|
+
function de(i, e, t) {
|
|
276
264
|
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(
|
|
265
|
+
n && n.m(e, t), yt(() => {
|
|
266
|
+
const l = i.$$.on_mount.map(ii).filter(ni);
|
|
267
|
+
i.$$.on_destroy ? i.$$.on_destroy.push(...l) : me(l), i.$$.on_mount = [];
|
|
268
|
+
}), r.forEach(yt);
|
|
281
269
|
}
|
|
282
|
-
function
|
|
270
|
+
function fe(i, e) {
|
|
283
271
|
const t = i.$$;
|
|
284
|
-
t.fragment !== null && (
|
|
272
|
+
t.fragment !== null && ($i(t.after_update), me(t.on_destroy), t.fragment && t.fragment.d(e), t.on_destroy = t.fragment = null, t.ctx = []);
|
|
285
273
|
}
|
|
286
|
-
function
|
|
287
|
-
i.$$.dirty[0] === -1 && (
|
|
274
|
+
function nn(i, e) {
|
|
275
|
+
i.$$.dirty[0] === -1 && (Me.push(i), Ji(), i.$$.dirty.fill(0)), i.$$.dirty[e / 31 | 0] |= 1 << e % 31;
|
|
288
276
|
}
|
|
289
|
-
function
|
|
290
|
-
const d =
|
|
291
|
-
|
|
277
|
+
function Ee(i, e, t, n, r, l, c = null, s = [-1]) {
|
|
278
|
+
const d = Be;
|
|
279
|
+
Ae(i);
|
|
292
280
|
const u = i.$$ = {
|
|
293
281
|
fragment: null,
|
|
294
282
|
ctx: [],
|
|
@@ -296,7 +284,7 @@ function pe(i, e, t, n, r, l, c = null, o = [-1]) {
|
|
|
296
284
|
props: l,
|
|
297
285
|
update: P,
|
|
298
286
|
not_equal: r,
|
|
299
|
-
bound:
|
|
287
|
+
bound: Pt(),
|
|
300
288
|
// lifecycle
|
|
301
289
|
on_mount: [],
|
|
302
290
|
on_destroy: [],
|
|
@@ -305,8 +293,8 @@ function pe(i, e, t, n, r, l, c = null, o = [-1]) {
|
|
|
305
293
|
after_update: [],
|
|
306
294
|
context: new Map(e.context || (d ? d.$$.context : [])),
|
|
307
295
|
// everything else
|
|
308
|
-
callbacks:
|
|
309
|
-
dirty:
|
|
296
|
+
callbacks: Pt(),
|
|
297
|
+
dirty: s,
|
|
310
298
|
skip_bound: !1,
|
|
311
299
|
root: e.target || d.$$.root
|
|
312
300
|
};
|
|
@@ -314,18 +302,18 @@ function pe(i, e, t, n, r, l, c = null, o = [-1]) {
|
|
|
314
302
|
let f = !1;
|
|
315
303
|
if (u.ctx = t ? t(i, e.props || {}, (g, b, ..._) => {
|
|
316
304
|
const w = _.length ? _[0] : b;
|
|
317
|
-
return u.ctx && r(u.ctx[g], u.ctx[g] = w) && (!u.skip_bound && u.bound[g] && u.bound[g](w), f &&
|
|
318
|
-
}) : [], u.update(), f = !0,
|
|
305
|
+
return u.ctx && r(u.ctx[g], u.ctx[g] = w) && (!u.skip_bound && u.bound[g] && u.bound[g](w), f && nn(i, g)), b;
|
|
306
|
+
}) : [], u.update(), f = !0, me(u.before_update), u.fragment = n ? n(u.ctx) : !1, e.target) {
|
|
319
307
|
if (e.hydrate) {
|
|
320
|
-
const g =
|
|
321
|
-
u.fragment && u.fragment.l(g), g.forEach(
|
|
308
|
+
const g = Qi(e.target);
|
|
309
|
+
u.fragment && u.fragment.l(g), g.forEach(I);
|
|
322
310
|
} else
|
|
323
311
|
u.fragment && u.fragment.c();
|
|
324
|
-
e.intro &&
|
|
312
|
+
e.intro && G(i.$$.fragment), de(i, e.target, e.anchor), ai();
|
|
325
313
|
}
|
|
326
|
-
|
|
314
|
+
Ae(d);
|
|
327
315
|
}
|
|
328
|
-
class
|
|
316
|
+
class pe {
|
|
329
317
|
constructor() {
|
|
330
318
|
/**
|
|
331
319
|
* ### PRIVATE API
|
|
@@ -334,7 +322,7 @@ class Ee {
|
|
|
334
322
|
*
|
|
335
323
|
* @type {any}
|
|
336
324
|
*/
|
|
337
|
-
|
|
325
|
+
gt(this, "$$");
|
|
338
326
|
/**
|
|
339
327
|
* ### PRIVATE API
|
|
340
328
|
*
|
|
@@ -342,11 +330,11 @@ class Ee {
|
|
|
342
330
|
*
|
|
343
331
|
* @type {any}
|
|
344
332
|
*/
|
|
345
|
-
|
|
333
|
+
gt(this, "$$set");
|
|
346
334
|
}
|
|
347
335
|
/** @returns {void} */
|
|
348
336
|
$destroy() {
|
|
349
|
-
|
|
337
|
+
fe(this, 1), this.$destroy = P;
|
|
350
338
|
}
|
|
351
339
|
/**
|
|
352
340
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -355,7 +343,7 @@ class Ee {
|
|
|
355
343
|
* @returns {() => void}
|
|
356
344
|
*/
|
|
357
345
|
$on(e, t) {
|
|
358
|
-
if (!
|
|
346
|
+
if (!ni(t))
|
|
359
347
|
return P;
|
|
360
348
|
const n = this.$$.callbacks[e] || (this.$$.callbacks[e] = []);
|
|
361
349
|
return n.push(t), () => {
|
|
@@ -368,60 +356,60 @@ class Ee {
|
|
|
368
356
|
* @returns {void}
|
|
369
357
|
*/
|
|
370
358
|
$set(e) {
|
|
371
|
-
this.$$set && !
|
|
359
|
+
this.$$set && !Bi(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
|
|
372
360
|
}
|
|
373
361
|
}
|
|
374
|
-
const
|
|
375
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
376
|
-
function
|
|
362
|
+
const rn = "4";
|
|
363
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(rn);
|
|
364
|
+
function sn(i) {
|
|
377
365
|
let e, t;
|
|
378
366
|
return {
|
|
379
367
|
c() {
|
|
380
|
-
e =
|
|
368
|
+
e = ce("svg"), t = ce("path"), a(t, "d", "M13.12.706a.982.982 0 0 0-1.391 0L6.907 5.517 2.087.696a.982.982 0 1 0-1.391 1.39l4.821 4.821L.696 11.73a.982.982 0 1 0 1.39 1.39l4.821-4.821 4.822 4.821a.982.982 0 1 0 1.39-1.39L8.298 6.908l4.821-4.822a.988.988 0 0 0 0-1.38Z"), a(e, "viewBox", "0 0 14 14"), a(e, "width", "13"), a(e, "height", "13"), a(e, "class", "svelte-en2qvf");
|
|
381
369
|
},
|
|
382
370
|
m(n, r) {
|
|
383
|
-
|
|
371
|
+
B(n, e, r), M(e, t);
|
|
384
372
|
},
|
|
385
373
|
p: P,
|
|
386
374
|
i: P,
|
|
387
375
|
o: P,
|
|
388
376
|
d(n) {
|
|
389
|
-
n &&
|
|
377
|
+
n && I(e);
|
|
390
378
|
}
|
|
391
379
|
};
|
|
392
380
|
}
|
|
393
|
-
class
|
|
381
|
+
class li extends pe {
|
|
394
382
|
constructor(e) {
|
|
395
|
-
super(),
|
|
383
|
+
super(), Ee(this, e, null, sn, we, {});
|
|
396
384
|
}
|
|
397
385
|
}
|
|
398
|
-
function
|
|
386
|
+
function on(i) {
|
|
399
387
|
let e, t;
|
|
400
388
|
return {
|
|
401
389
|
c() {
|
|
402
|
-
e =
|
|
390
|
+
e = ce("svg"), t = ce("path"), a(t, "d", "M15 0C6.705 0 0 6.705 0 15C0 23.295 6.705 30 15 30C23.295 30 30 23.295 30 15C30 6.705 23.295 0 15 0ZM22.5 20.385L20.385 22.5L15 17.115L9.615 22.5L7.5 20.385L12.885 15L7.5 9.615L9.615 7.5L15 12.885L20.385 7.5L22.5 9.615L17.115 15L22.5 20.385Z"), a(e, "viewBox", "0 0 30 30"), a(e, "fill", "none"), a(e, "xmlns", "http://www.w3.org/2000/svg"), a(e, "class", "svelte-d2loi5");
|
|
403
391
|
},
|
|
404
392
|
m(n, r) {
|
|
405
|
-
|
|
393
|
+
B(n, e, r), M(e, t);
|
|
406
394
|
},
|
|
407
395
|
p: P,
|
|
408
396
|
i: P,
|
|
409
397
|
o: P,
|
|
410
398
|
d(n) {
|
|
411
|
-
n &&
|
|
399
|
+
n && I(e);
|
|
412
400
|
}
|
|
413
401
|
};
|
|
414
402
|
}
|
|
415
|
-
class
|
|
403
|
+
class ui extends pe {
|
|
416
404
|
constructor(e) {
|
|
417
|
-
super(),
|
|
405
|
+
super(), Ee(this, e, null, on, we, {});
|
|
418
406
|
}
|
|
419
407
|
}
|
|
420
|
-
function
|
|
408
|
+
function an(i) {
|
|
421
409
|
let e, t;
|
|
422
410
|
return {
|
|
423
411
|
c() {
|
|
424
|
-
e =
|
|
412
|
+
e = R("img"), X(e.src, t = /*iconsBaseUrl*/
|
|
425
413
|
i[3] + "area.svg") || a(e, "src", t), a(
|
|
426
414
|
e,
|
|
427
415
|
"alt",
|
|
@@ -435,7 +423,7 @@ function $i(i) {
|
|
|
435
423
|
), a(e, "class", "svelte-z7p9pp");
|
|
436
424
|
},
|
|
437
425
|
m(n, r) {
|
|
438
|
-
|
|
426
|
+
B(n, e, r);
|
|
439
427
|
},
|
|
440
428
|
p(n, r) {
|
|
441
429
|
r & /*iconsBaseUrl*/
|
|
@@ -455,15 +443,15 @@ function $i(i) {
|
|
|
455
443
|
);
|
|
456
444
|
},
|
|
457
445
|
d(n) {
|
|
458
|
-
n &&
|
|
446
|
+
n && I(e);
|
|
459
447
|
}
|
|
460
448
|
};
|
|
461
449
|
}
|
|
462
|
-
function
|
|
450
|
+
function ln(i) {
|
|
463
451
|
let e, t;
|
|
464
452
|
return {
|
|
465
453
|
c() {
|
|
466
|
-
e =
|
|
454
|
+
e = R("img"), X(e.src, t = /*iconsBaseUrl*/
|
|
467
455
|
i[3] + "reverse.svg") || a(e, "src", t), a(
|
|
468
456
|
e,
|
|
469
457
|
"alt",
|
|
@@ -477,7 +465,7 @@ function en(i) {
|
|
|
477
465
|
), a(e, "class", "svelte-z7p9pp");
|
|
478
466
|
},
|
|
479
467
|
m(n, r) {
|
|
480
|
-
|
|
468
|
+
B(n, e, r);
|
|
481
469
|
},
|
|
482
470
|
p(n, r) {
|
|
483
471
|
r & /*iconsBaseUrl*/
|
|
@@ -497,15 +485,15 @@ function en(i) {
|
|
|
497
485
|
);
|
|
498
486
|
},
|
|
499
487
|
d(n) {
|
|
500
|
-
n &&
|
|
488
|
+
n && I(e);
|
|
501
489
|
}
|
|
502
490
|
};
|
|
503
491
|
}
|
|
504
|
-
function
|
|
492
|
+
function un(i) {
|
|
505
493
|
let e, t;
|
|
506
494
|
return {
|
|
507
495
|
c() {
|
|
508
|
-
e =
|
|
496
|
+
e = R("img"), X(e.src, t = /*iconsBaseUrl*/
|
|
509
497
|
i[3] + "poi.svg") || a(e, "src", t), a(
|
|
510
498
|
e,
|
|
511
499
|
"alt",
|
|
@@ -519,7 +507,7 @@ function tn(i) {
|
|
|
519
507
|
), a(e, "class", "svelte-z7p9pp");
|
|
520
508
|
},
|
|
521
509
|
m(n, r) {
|
|
522
|
-
|
|
510
|
+
B(n, e, r);
|
|
523
511
|
},
|
|
524
512
|
p(n, r) {
|
|
525
513
|
r & /*iconsBaseUrl*/
|
|
@@ -539,15 +527,15 @@ function tn(i) {
|
|
|
539
527
|
);
|
|
540
528
|
},
|
|
541
529
|
d(n) {
|
|
542
|
-
n &&
|
|
530
|
+
n && I(e);
|
|
543
531
|
}
|
|
544
532
|
};
|
|
545
533
|
}
|
|
546
|
-
function
|
|
534
|
+
function cn(i) {
|
|
547
535
|
let e, t;
|
|
548
536
|
return {
|
|
549
537
|
c() {
|
|
550
|
-
e =
|
|
538
|
+
e = R("img"), X(e.src, t = /*iconsBaseUrl*/
|
|
551
539
|
i[3] + "postal_code.svg") || a(e, "src", t), a(
|
|
552
540
|
e,
|
|
553
541
|
"alt",
|
|
@@ -561,7 +549,7 @@ function nn(i) {
|
|
|
561
549
|
), a(e, "class", "svelte-z7p9pp");
|
|
562
550
|
},
|
|
563
551
|
m(n, r) {
|
|
564
|
-
|
|
552
|
+
B(n, e, r);
|
|
565
553
|
},
|
|
566
554
|
p(n, r) {
|
|
567
555
|
r & /*iconsBaseUrl*/
|
|
@@ -581,15 +569,15 @@ function nn(i) {
|
|
|
581
569
|
);
|
|
582
570
|
},
|
|
583
571
|
d(n) {
|
|
584
|
-
n &&
|
|
572
|
+
n && I(e);
|
|
585
573
|
}
|
|
586
574
|
};
|
|
587
575
|
}
|
|
588
|
-
function
|
|
576
|
+
function dn(i) {
|
|
589
577
|
let e, t;
|
|
590
578
|
return {
|
|
591
579
|
c() {
|
|
592
|
-
e =
|
|
580
|
+
e = R("img"), X(e.src, t = /*iconsBaseUrl*/
|
|
593
581
|
i[3] + "street.svg") || a(e, "src", t), a(
|
|
594
582
|
e,
|
|
595
583
|
"alt",
|
|
@@ -603,7 +591,7 @@ function rn(i) {
|
|
|
603
591
|
), a(e, "class", "svelte-z7p9pp");
|
|
604
592
|
},
|
|
605
593
|
m(n, r) {
|
|
606
|
-
|
|
594
|
+
B(n, e, r);
|
|
607
595
|
},
|
|
608
596
|
p(n, r) {
|
|
609
597
|
r & /*iconsBaseUrl*/
|
|
@@ -623,15 +611,15 @@ function rn(i) {
|
|
|
623
611
|
);
|
|
624
612
|
},
|
|
625
613
|
d(n) {
|
|
626
|
-
n &&
|
|
614
|
+
n && I(e);
|
|
627
615
|
}
|
|
628
616
|
};
|
|
629
617
|
}
|
|
630
|
-
function
|
|
618
|
+
function fn(i) {
|
|
631
619
|
let e, t;
|
|
632
620
|
return {
|
|
633
621
|
c() {
|
|
634
|
-
e =
|
|
622
|
+
e = R("img"), X(e.src, t = /*iconsBaseUrl*/
|
|
635
623
|
i[3] + "road.svg") || a(e, "src", t), a(
|
|
636
624
|
e,
|
|
637
625
|
"alt",
|
|
@@ -645,7 +633,7 @@ function on(i) {
|
|
|
645
633
|
), a(e, "class", "svelte-z7p9pp");
|
|
646
634
|
},
|
|
647
635
|
m(n, r) {
|
|
648
|
-
|
|
636
|
+
B(n, e, r);
|
|
649
637
|
},
|
|
650
638
|
p(n, r) {
|
|
651
639
|
r & /*iconsBaseUrl*/
|
|
@@ -665,15 +653,15 @@ function on(i) {
|
|
|
665
653
|
);
|
|
666
654
|
},
|
|
667
655
|
d(n) {
|
|
668
|
-
n &&
|
|
656
|
+
n && I(e);
|
|
669
657
|
}
|
|
670
658
|
};
|
|
671
659
|
}
|
|
672
|
-
function
|
|
660
|
+
function mn(i) {
|
|
673
661
|
let e, t;
|
|
674
662
|
return {
|
|
675
663
|
c() {
|
|
676
|
-
e =
|
|
664
|
+
e = R("img"), X(e.src, t = /*iconsBaseUrl*/
|
|
677
665
|
i[3] + "housenumber.svg") || a(e, "src", t), a(
|
|
678
666
|
e,
|
|
679
667
|
"alt",
|
|
@@ -687,7 +675,7 @@ function sn(i) {
|
|
|
687
675
|
), a(e, "class", "svelte-z7p9pp");
|
|
688
676
|
},
|
|
689
677
|
m(n, r) {
|
|
690
|
-
|
|
678
|
+
B(n, e, r);
|
|
691
679
|
},
|
|
692
680
|
p(n, r) {
|
|
693
681
|
r & /*iconsBaseUrl*/
|
|
@@ -707,15 +695,15 @@ function sn(i) {
|
|
|
707
695
|
);
|
|
708
696
|
},
|
|
709
697
|
d(n) {
|
|
710
|
-
n &&
|
|
698
|
+
n && I(e);
|
|
711
699
|
}
|
|
712
700
|
};
|
|
713
701
|
}
|
|
714
|
-
function
|
|
702
|
+
function gn(i) {
|
|
715
703
|
let e, t, n, r;
|
|
716
704
|
return {
|
|
717
705
|
c() {
|
|
718
|
-
e =
|
|
706
|
+
e = R("img"), X(e.src, t = /*imageUrl*/
|
|
719
707
|
i[5]) || a(e, "src", t), a(
|
|
720
708
|
e,
|
|
721
709
|
"alt",
|
|
@@ -729,7 +717,7 @@ function an(i) {
|
|
|
729
717
|
), a(e, "class", "svelte-z7p9pp");
|
|
730
718
|
},
|
|
731
719
|
m(l, c) {
|
|
732
|
-
|
|
720
|
+
B(l, e, c), n || (r = q(
|
|
733
721
|
e,
|
|
734
722
|
"error",
|
|
735
723
|
/*error_handler*/
|
|
@@ -754,37 +742,37 @@ function an(i) {
|
|
|
754
742
|
);
|
|
755
743
|
},
|
|
756
744
|
d(l) {
|
|
757
|
-
l &&
|
|
745
|
+
l && I(e), n = !1, r();
|
|
758
746
|
}
|
|
759
747
|
};
|
|
760
748
|
}
|
|
761
|
-
function
|
|
749
|
+
function Gt(i) {
|
|
762
750
|
let e, t;
|
|
763
751
|
return {
|
|
764
752
|
c() {
|
|
765
|
-
e =
|
|
753
|
+
e = R("span"), t = be(
|
|
766
754
|
/*placeType*/
|
|
767
755
|
i[6]
|
|
768
756
|
), a(e, "class", "secondary svelte-z7p9pp");
|
|
769
757
|
},
|
|
770
758
|
m(n, r) {
|
|
771
|
-
|
|
759
|
+
B(n, e, r), M(e, t);
|
|
772
760
|
},
|
|
773
761
|
p(n, r) {
|
|
774
762
|
r & /*placeType*/
|
|
775
|
-
64 &&
|
|
763
|
+
64 && Pe(
|
|
776
764
|
t,
|
|
777
765
|
/*placeType*/
|
|
778
766
|
n[6]
|
|
779
767
|
);
|
|
780
768
|
},
|
|
781
769
|
d(n) {
|
|
782
|
-
n &&
|
|
770
|
+
n && I(e);
|
|
783
771
|
}
|
|
784
772
|
};
|
|
785
773
|
}
|
|
786
|
-
function
|
|
787
|
-
let e, t, n, r, l, c,
|
|
774
|
+
function hn(i) {
|
|
775
|
+
let e, t, n, r, l, c, s, d, u, f = (
|
|
788
776
|
/*isReverse*/
|
|
789
777
|
(i[8] ? (
|
|
790
778
|
/*feature*/
|
|
@@ -804,152 +792,152 @@ function ln(i) {
|
|
|
804
792
|
i[0].id.startsWith("poi.") || !/*imageUrl*/
|
|
805
793
|
i[5]) && !/*isReverse*/
|
|
806
794
|
i[8]
|
|
807
|
-
), w,
|
|
795
|
+
), w, U, p = (
|
|
808
796
|
/*isReverse*/
|
|
809
797
|
(i[8] ? "" : (
|
|
810
798
|
/*feature*/
|
|
811
799
|
i[0].place_name.replace(/[^,]*,?\s*/, "")
|
|
812
800
|
)) + ""
|
|
813
|
-
),
|
|
814
|
-
function
|
|
815
|
-
return
|
|
816
|
-
1 && (t = null),
|
|
817
|
-
1 && (n = null),
|
|
818
|
-
1 && (r = null),
|
|
801
|
+
), S, z, W, Z, V, C;
|
|
802
|
+
function v(E, m) {
|
|
803
|
+
return m & /*feature*/
|
|
804
|
+
1 && (t = null), m & /*feature*/
|
|
805
|
+
1 && (n = null), m & /*feature*/
|
|
806
|
+
1 && (r = null), m & /*feature*/
|
|
819
807
|
1 && (l = null), /*imageUrl*/
|
|
820
|
-
|
|
808
|
+
E[5] ? gn : (
|
|
821
809
|
/*feature*/
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
810
|
+
E[0].address ? mn : (t == null && (t = !!/*feature*/
|
|
811
|
+
E[0].id.startsWith("road.")), t ? fn : (n == null && (n = !!/*feature*/
|
|
812
|
+
E[0].id.startsWith("address.")), n ? dn : (r == null && (r = !!/*feature*/
|
|
813
|
+
E[0].id.startsWith("postal_code.")), r ? cn : (l == null && (l = !!/*feature*/
|
|
814
|
+
E[0].id.startsWith("poi.")), l ? un : (
|
|
827
815
|
/*isReverse*/
|
|
828
|
-
|
|
816
|
+
E[8] ? ln : an
|
|
829
817
|
)))))
|
|
830
818
|
);
|
|
831
819
|
}
|
|
832
|
-
let y =
|
|
820
|
+
let y = v(i, -1), N = y(i), k = _ && Gt(i);
|
|
833
821
|
return {
|
|
834
822
|
c() {
|
|
835
|
-
e =
|
|
836
|
-
i[1] === "selected"), a(e, "aria-checked",
|
|
837
|
-
i[1] === "picked"), a(e, "class",
|
|
823
|
+
e = R("li"), N.c(), c = ee(), s = R("span"), d = R("span"), u = R("span"), g = be(f), b = ee(), k && k.c(), w = ee(), U = R("span"), S = be(p), a(u, "class", "primary svelte-z7p9pp"), a(d, "class", "svelte-z7p9pp"), a(U, "class", "line2 svelte-z7p9pp"), a(s, "class", "texts svelte-z7p9pp"), a(e, "tabindex", "-1"), a(e, "role", "option"), a(e, "aria-selected", z = /*style*/
|
|
824
|
+
i[1] === "selected"), a(e, "aria-checked", W = /*style*/
|
|
825
|
+
i[1] === "picked"), a(e, "class", Z = $e(
|
|
838
826
|
/*style*/
|
|
839
827
|
i[1]
|
|
840
828
|
) + " svelte-z7p9pp");
|
|
841
829
|
},
|
|
842
|
-
m(
|
|
843
|
-
|
|
844
|
-
|
|
830
|
+
m(E, m) {
|
|
831
|
+
B(E, e, m), N.m(e, null), M(e, c), M(e, s), M(s, d), M(d, u), M(u, g), M(d, b), k && k.m(d, null), M(s, w), M(s, U), M(U, S), V || (C = [
|
|
832
|
+
q(
|
|
845
833
|
e,
|
|
846
834
|
"mouseenter",
|
|
847
835
|
/*mouseenter_handler*/
|
|
848
836
|
i[13]
|
|
849
837
|
),
|
|
850
|
-
|
|
838
|
+
q(
|
|
851
839
|
e,
|
|
852
840
|
"focus",
|
|
853
841
|
/*focus_handler*/
|
|
854
842
|
i[15]
|
|
855
843
|
),
|
|
856
|
-
|
|
844
|
+
q(
|
|
857
845
|
e,
|
|
858
846
|
"click",
|
|
859
847
|
/*click_handler*/
|
|
860
848
|
i[16]
|
|
861
849
|
)
|
|
862
|
-
],
|
|
850
|
+
], V = !0);
|
|
863
851
|
},
|
|
864
|
-
p(
|
|
865
|
-
y === (y =
|
|
852
|
+
p(E, [m]) {
|
|
853
|
+
y === (y = v(E, m)) && N ? N.p(E, m) : (N.d(1), N = y(E), N && (N.c(), N.m(e, c))), m & /*feature*/
|
|
866
854
|
1 && f !== (f = /*isReverse*/
|
|
867
|
-
(
|
|
855
|
+
(E[8] ? (
|
|
868
856
|
/*feature*/
|
|
869
|
-
|
|
857
|
+
E[0].place_name
|
|
870
858
|
) : (
|
|
871
859
|
/*feature*/
|
|
872
|
-
|
|
873
|
-
)) + "") &&
|
|
860
|
+
E[0].place_name.replace(/,.*/, "")
|
|
861
|
+
)) + "") && Pe(g, f), m & /*showPlaceType, feature, imageUrl*/
|
|
874
862
|
37 && (_ = /*showPlaceType*/
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
1 &&
|
|
885
|
-
(
|
|
863
|
+
E[2] === "always" || /*showPlaceType*/
|
|
864
|
+
E[2] !== "never" && !/*feature*/
|
|
865
|
+
E[0].address && !/*feature*/
|
|
866
|
+
E[0].id.startsWith("road.") && !/*feature*/
|
|
867
|
+
E[0].id.startsWith("address.") && !/*feature*/
|
|
868
|
+
E[0].id.startsWith("postal_code.") && (!/*feature*/
|
|
869
|
+
E[0].id.startsWith("poi.") || !/*imageUrl*/
|
|
870
|
+
E[5]) && !/*isReverse*/
|
|
871
|
+
E[8]), _ ? k ? k.p(E, m) : (k = Gt(E), k.c(), k.m(d, null)) : k && (k.d(1), k = null), m & /*feature*/
|
|
872
|
+
1 && p !== (p = /*isReverse*/
|
|
873
|
+
(E[8] ? "" : (
|
|
886
874
|
/*feature*/
|
|
887
|
-
|
|
888
|
-
)) + "") &&
|
|
875
|
+
E[0].place_name.replace(/[^,]*,?\s*/, "")
|
|
876
|
+
)) + "") && Pe(S, p), m & /*style*/
|
|
889
877
|
2 && z !== (z = /*style*/
|
|
890
|
-
|
|
891
|
-
2 &&
|
|
892
|
-
|
|
893
|
-
2 &&
|
|
878
|
+
E[1] === "selected") && a(e, "aria-selected", z), m & /*style*/
|
|
879
|
+
2 && W !== (W = /*style*/
|
|
880
|
+
E[1] === "picked") && a(e, "aria-checked", W), m & /*style*/
|
|
881
|
+
2 && Z !== (Z = $e(
|
|
894
882
|
/*style*/
|
|
895
|
-
|
|
896
|
-
) + " svelte-z7p9pp") && a(e, "class",
|
|
883
|
+
E[1]
|
|
884
|
+
) + " svelte-z7p9pp") && a(e, "class", Z);
|
|
897
885
|
},
|
|
898
886
|
i: P,
|
|
899
887
|
o: P,
|
|
900
|
-
d(
|
|
901
|
-
|
|
888
|
+
d(E) {
|
|
889
|
+
E && I(e), N.d(), k && k.d(), V = !1, me(C);
|
|
902
890
|
}
|
|
903
891
|
};
|
|
904
892
|
}
|
|
905
|
-
function
|
|
906
|
-
var
|
|
907
|
-
let n, r, { feature: l } = e, { style: c = "default" } = e, { showPlaceType:
|
|
908
|
-
const f =
|
|
909
|
-
let b, _, w = 0,
|
|
910
|
-
function
|
|
893
|
+
function bn(i, e, t) {
|
|
894
|
+
var V;
|
|
895
|
+
let n, r, { feature: l } = e, { style: c = "default" } = e, { showPlaceType: s } = e, { missingIconsCache: d } = e, { iconsBaseUrl: u } = e;
|
|
896
|
+
const f = oi(), g = (V = l.properties) == null ? void 0 : V.categories;
|
|
897
|
+
let b, _, w = 0, U = l.place_type[0] === "reverse";
|
|
898
|
+
function p() {
|
|
911
899
|
_ && d.add(_), t(11, w++, w);
|
|
912
900
|
}
|
|
913
|
-
function
|
|
914
|
-
|
|
901
|
+
function S(C) {
|
|
902
|
+
Yi.call(this, i, C);
|
|
915
903
|
}
|
|
916
|
-
const z = () =>
|
|
917
|
-
document.activeElement !==
|
|
904
|
+
const z = () => p(), W = () => f("select", void 0), Z = (C) => {
|
|
905
|
+
document.activeElement !== C.target && f("select", void 0);
|
|
918
906
|
};
|
|
919
|
-
return i.$$set = (
|
|
920
|
-
"feature" in
|
|
907
|
+
return i.$$set = (C) => {
|
|
908
|
+
"feature" in C && t(0, l = C.feature), "style" in C && t(1, c = C.style), "showPlaceType" in C && t(2, s = C.showPlaceType), "missingIconsCache" in C && t(10, d = C.missingIconsCache), "iconsBaseUrl" in C && t(3, u = C.iconsBaseUrl);
|
|
921
909
|
}, i.$$.update = () => {
|
|
922
|
-
var
|
|
910
|
+
var C, v, y, N;
|
|
923
911
|
if (i.$$.dirty & /*loadIconAttempt, index, category, iconsBaseUrl, imageUrl, missingIconsCache*/
|
|
924
912
|
7224)
|
|
925
913
|
do
|
|
926
914
|
t(12, n--, n), t(4, b = g == null ? void 0 : g[n]), t(5, _ = b ? u + b.replace(/ /g, "_") + ".svg" : void 0);
|
|
927
915
|
while (n > -1 && (!_ || d.has(_)));
|
|
928
916
|
i.$$.dirty & /*feature*/
|
|
929
|
-
1 && t(6, r = ((
|
|
917
|
+
1 && t(6, r = ((v = (C = l.properties) == null ? void 0 : C.categories) == null ? void 0 : v.join(", ")) ?? ((N = (y = l.properties) == null ? void 0 : y.place_type_name) == null ? void 0 : N[0]) ?? l.place_type[0]);
|
|
930
918
|
}, t(12, n = (g == null ? void 0 : g.length) ?? 0), [
|
|
931
919
|
l,
|
|
932
920
|
c,
|
|
933
|
-
|
|
921
|
+
s,
|
|
934
922
|
u,
|
|
935
923
|
b,
|
|
936
924
|
_,
|
|
937
925
|
r,
|
|
938
926
|
f,
|
|
939
|
-
|
|
940
|
-
|
|
927
|
+
U,
|
|
928
|
+
p,
|
|
941
929
|
d,
|
|
942
930
|
w,
|
|
943
931
|
n,
|
|
944
|
-
|
|
932
|
+
S,
|
|
945
933
|
z,
|
|
946
|
-
|
|
947
|
-
|
|
934
|
+
W,
|
|
935
|
+
Z
|
|
948
936
|
];
|
|
949
937
|
}
|
|
950
|
-
class
|
|
938
|
+
class vn extends pe {
|
|
951
939
|
constructor(e) {
|
|
952
|
-
super(),
|
|
940
|
+
super(), Ee(this, e, bn, hn, we, {
|
|
953
941
|
feature: 0,
|
|
954
942
|
style: 1,
|
|
955
943
|
showPlaceType: 2,
|
|
@@ -958,98 +946,98 @@ class cn extends Ee {
|
|
|
958
946
|
});
|
|
959
947
|
}
|
|
960
948
|
}
|
|
961
|
-
function
|
|
949
|
+
function Ln(i) {
|
|
962
950
|
let e;
|
|
963
951
|
return {
|
|
964
952
|
c() {
|
|
965
|
-
e =
|
|
953
|
+
e = R("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");
|
|
966
954
|
},
|
|
967
955
|
m(t, n) {
|
|
968
|
-
|
|
956
|
+
B(t, e, n);
|
|
969
957
|
},
|
|
970
958
|
p: P,
|
|
971
959
|
i: P,
|
|
972
960
|
o: P,
|
|
973
961
|
d(t) {
|
|
974
|
-
t &&
|
|
962
|
+
t && I(e);
|
|
975
963
|
}
|
|
976
964
|
};
|
|
977
965
|
}
|
|
978
|
-
class
|
|
966
|
+
class _n extends pe {
|
|
979
967
|
constructor(e) {
|
|
980
|
-
super(),
|
|
968
|
+
super(), Ee(this, e, null, Ln, we, {});
|
|
981
969
|
}
|
|
982
970
|
}
|
|
983
|
-
function
|
|
971
|
+
function yn(i) {
|
|
984
972
|
let e, t;
|
|
985
973
|
return {
|
|
986
974
|
c() {
|
|
987
|
-
e =
|
|
975
|
+
e = ce("svg"), t = ce("path"), a(t, "d", "M30.003-26.765C13.46-26.765 0-14.158 0 1.337c0 23.286 24.535 42.952 28.39 46.04.24.192.402.316.471.376.323.282.732.424 1.142.424.41 0 .82-.142 1.142-.424.068-.06.231-.183.471-.376 3.856-3.09 28.39-22.754 28.39-46.04 0-15.495-13.46-28.102-30.003-28.102Zm1.757 12.469c4.38 0 7.858 1.052 10.431 3.158 2.595 2.105 3.89 4.913 3.89 8.422 0 2.34-.53 4.362-1.593 6.063-1.063 1.702-3.086 3.616-6.063 5.742-2.042 1.51-3.337 2.659-3.89 3.446-.532.787-.8 1.82-.8 3.096v1.914h-8.449V15.18c0-2.041.434-3.815 1.306-5.325.872-1.51 2.467-3.118 4.785-4.82 2.233-1.594 3.7-2.89 4.402-3.889a5.582 5.582 0 0 0 1.087-3.35c0-1.382-.51-2.435-1.531-3.158-1.02-.723-2.45-1.087-4.28-1.087-3.19 0-6.826 1.047-10.91 3.131l-3.472-6.986c4.742-2.659 9.77-3.992 15.087-3.992Zm-1.88 37.324c1.765 0 3.124.472 4.08 1.408.98.936 1.47 2.276 1.47 4.02 0 1.68-.49 3.007-1.47 3.985-.977.957-2.336 1.435-4.08 1.435-1.787 0-3.171-.465-4.15-1.4-.978-.958-1.47-2.298-1.47-4.02 0-1.787.48-3.14 1.436-4.054.957-.915 2.355-1.374 4.184-1.374Z"), a(e, "viewBox", "0 0 60.006 21.412"), a(e, "width", "14"), a(e, "height", "20"), a(e, "class", "svelte-en2qvf");
|
|
988
976
|
},
|
|
989
977
|
m(n, r) {
|
|
990
|
-
|
|
978
|
+
B(n, e, r), M(e, t);
|
|
991
979
|
},
|
|
992
980
|
p: P,
|
|
993
981
|
i: P,
|
|
994
982
|
o: P,
|
|
995
983
|
d(n) {
|
|
996
|
-
n &&
|
|
984
|
+
n && I(e);
|
|
997
985
|
}
|
|
998
986
|
};
|
|
999
987
|
}
|
|
1000
|
-
class
|
|
988
|
+
class wn extends pe {
|
|
1001
989
|
constructor(e) {
|
|
1002
|
-
super(),
|
|
990
|
+
super(), Ee(this, e, null, yn, we, {});
|
|
1003
991
|
}
|
|
1004
992
|
}
|
|
1005
|
-
function
|
|
993
|
+
function En(i) {
|
|
1006
994
|
let e, t, n;
|
|
1007
995
|
return {
|
|
1008
996
|
c() {
|
|
1009
|
-
e =
|
|
997
|
+
e = ce("svg"), t = ce("circle"), n = ce("path"), a(t, "cx", "4.789"), a(t, "cy", "4.787"), a(t, "r", "3.85"), a(t, "class", "svelte-1aq105l"), a(n, "d", "M12.063 12.063 7.635 7.635"), a(n, "class", "svelte-1aq105l"), a(e, "xmlns", "http://www.w3.org/2000/svg"), a(e, "width", "13"), a(e, "height", "13"), a(e, "viewBox", "0 0 13 13"), a(e, "class", "svelte-1aq105l");
|
|
1010
998
|
},
|
|
1011
999
|
m(r, l) {
|
|
1012
|
-
|
|
1000
|
+
B(r, e, l), M(e, t), M(e, n);
|
|
1013
1001
|
},
|
|
1014
1002
|
p: P,
|
|
1015
1003
|
i: P,
|
|
1016
1004
|
o: P,
|
|
1017
1005
|
d(r) {
|
|
1018
|
-
r &&
|
|
1006
|
+
r && I(e);
|
|
1019
1007
|
}
|
|
1020
1008
|
};
|
|
1021
1009
|
}
|
|
1022
|
-
class
|
|
1010
|
+
class pn extends pe {
|
|
1023
1011
|
constructor(e) {
|
|
1024
|
-
super(),
|
|
1012
|
+
super(), Ee(this, e, null, En, we, {});
|
|
1025
1013
|
}
|
|
1026
1014
|
}
|
|
1027
|
-
function
|
|
1015
|
+
function Sn(i, e, t) {
|
|
1028
1016
|
const n = e[1], r = e[0], l = n - r;
|
|
1029
1017
|
return i === n && t ? i : ((i - r) % l + l) % l + r;
|
|
1030
1018
|
}
|
|
1031
|
-
function
|
|
1019
|
+
function Ht(i) {
|
|
1032
1020
|
const e = [...i];
|
|
1033
1021
|
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;
|
|
1034
1022
|
}
|
|
1035
|
-
let
|
|
1036
|
-
async function
|
|
1023
|
+
let Ue;
|
|
1024
|
+
async function Tn(i, e, t) {
|
|
1037
1025
|
const n = i == null ? void 0 : i.getCenterAndZoom();
|
|
1038
1026
|
for (const r of e ?? [])
|
|
1039
1027
|
if (!(n && (r.minZoom != null && r.minZoom > n[0] || r.maxZoom != null && r.maxZoom < n[0]))) {
|
|
1040
1028
|
if (r.type === "fixed")
|
|
1041
1029
|
return r.coordinates.join(",");
|
|
1042
1030
|
e: if (r.type === "client-geolocation") {
|
|
1043
|
-
if (
|
|
1044
|
-
if (!
|
|
1031
|
+
if (Ue && r.cachedLocationExpiry && Ue.time + r.cachedLocationExpiry > Date.now()) {
|
|
1032
|
+
if (!Ue.coords)
|
|
1045
1033
|
break e;
|
|
1046
|
-
return
|
|
1034
|
+
return Ue.coords;
|
|
1047
1035
|
}
|
|
1048
1036
|
let l;
|
|
1049
1037
|
try {
|
|
1050
|
-
return l = await new Promise((c,
|
|
1038
|
+
return l = await new Promise((c, s) => {
|
|
1051
1039
|
t.signal.addEventListener("abort", () => {
|
|
1052
|
-
|
|
1040
|
+
s(Error("aborted"));
|
|
1053
1041
|
}), navigator.geolocation.getCurrentPosition(
|
|
1054
1042
|
(d) => {
|
|
1055
1043
|
c(
|
|
@@ -1057,14 +1045,14 @@ async function Ln(i, e, t) {
|
|
|
1057
1045
|
);
|
|
1058
1046
|
},
|
|
1059
1047
|
(d) => {
|
|
1060
|
-
|
|
1048
|
+
s(d);
|
|
1061
1049
|
},
|
|
1062
1050
|
r
|
|
1063
1051
|
);
|
|
1064
1052
|
}), l;
|
|
1065
1053
|
} catch {
|
|
1066
1054
|
} finally {
|
|
1067
|
-
r.cachedLocationExpiry && (
|
|
1055
|
+
r.cachedLocationExpiry && (Ue = {
|
|
1068
1056
|
time: Date.now(),
|
|
1069
1057
|
coords: l
|
|
1070
1058
|
});
|
|
@@ -1078,67 +1066,67 @@ async function Ln(i, e, t) {
|
|
|
1078
1066
|
return n[1].toFixed(6) + "," + n[2].toFixed(6);
|
|
1079
1067
|
}
|
|
1080
1068
|
}
|
|
1081
|
-
const
|
|
1082
|
-
function
|
|
1069
|
+
const Nn = /^(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, Zt = /^([+-]?[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,})$/, qt = /^(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, Qt = /^(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, Kt = /^(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, Vt = /^(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;
|
|
1070
|
+
function kn(i) {
|
|
1083
1071
|
if (!["DMS", "DM", "DD"].includes(i))
|
|
1084
1072
|
throw new Error("invalid format specified");
|
|
1085
1073
|
if (this.decimalCoordinates && this.decimalCoordinates.trim()) {
|
|
1086
|
-
const e = this.decimalCoordinates.split(",").map((_) => Number(_.trim())), t = Number(e[0]), n = Number(e[1]), r = Math.abs(t), l = Math.abs(n), c = t > 0 ? "N" : "S",
|
|
1074
|
+
const e = this.decimalCoordinates.split(",").map((_) => Number(_.trim())), t = Number(e[0]), n = Number(e[1]), r = Math.abs(t), l = Math.abs(n), c = t > 0 ? "N" : "S", s = n > 0 ? "E" : "W";
|
|
1087
1075
|
let d;
|
|
1088
|
-
i == "DD" && (d = `${r}° ${c}, ${l}° ${
|
|
1076
|
+
i == "DD" && (d = `${r}° ${c}, ${l}° ${s}`);
|
|
1089
1077
|
const u = Math.floor(r), f = Math.floor(l), g = (r - u) * 60, b = (l - f) * 60;
|
|
1090
1078
|
if (i == "DM") {
|
|
1091
|
-
let _ =
|
|
1092
|
-
_.endsWith(".000") && w.endsWith(".000") && (_ = _.replace(/\.000$/, ""), w = w.replace(/\.000$/, "")), d = `${u}° ${_}' ${c}, ${f}° ${w}' ${
|
|
1079
|
+
let _ = Yt(g, 3).toFixed(3).padStart(6, "0"), w = Yt(b, 3).toFixed(3).padStart(6, "0");
|
|
1080
|
+
_.endsWith(".000") && w.endsWith(".000") && (_ = _.replace(/\.000$/, ""), w = w.replace(/\.000$/, "")), d = `${u}° ${_}' ${c}, ${f}° ${w}' ${s}`;
|
|
1093
1081
|
}
|
|
1094
1082
|
if (i == "DMS") {
|
|
1095
1083
|
const _ = Math.floor(g), w = Math.floor(b);
|
|
1096
|
-
let
|
|
1097
|
-
const
|
|
1098
|
-
|
|
1084
|
+
let U = ((g - _) * 60).toFixed(1).padStart(4, "0"), p = ((b - w) * 60).toFixed(1).padStart(4, "0");
|
|
1085
|
+
const S = _.toString().padStart(2, "0"), z = w.toString().padStart(2, "0");
|
|
1086
|
+
U.endsWith(".0") && p.endsWith(".0") && (U = U.replace(/\.0$/, ""), p = p.replace(/\.0$/, "")), d = `${u}° ${S}' ${U}" ${c}, ${f}° ${z}' ${p}" ${s}`;
|
|
1099
1087
|
}
|
|
1100
1088
|
return d;
|
|
1101
1089
|
} else
|
|
1102
1090
|
throw new Error("no decimal coordinates to convert");
|
|
1103
1091
|
}
|
|
1104
|
-
function
|
|
1092
|
+
function Yt(i, e) {
|
|
1105
1093
|
const t = Math.pow(10, e);
|
|
1106
1094
|
return Math.round((i + Number.EPSILON) * t) / t;
|
|
1107
1095
|
}
|
|
1108
|
-
function
|
|
1096
|
+
function wt(i, e) {
|
|
1109
1097
|
e || (e = 5), i = i.replace(/\s+/g, " ").trim();
|
|
1110
|
-
let t = null, n = null, r = "", l = "", c = null,
|
|
1111
|
-
if (
|
|
1098
|
+
let t = null, n = null, r = "", l = "", c = null, s = [], d = !1;
|
|
1099
|
+
if (Nn.test(i))
|
|
1112
1100
|
throw new Error("invalid coordinate value");
|
|
1113
|
-
if (
|
|
1114
|
-
if (
|
|
1115
|
-
t = Math.abs(
|
|
1101
|
+
if (Zt.test(i))
|
|
1102
|
+
if (s = Zt.exec(i), d = Ie(s), d)
|
|
1103
|
+
t = Math.abs(s[1]) + s[2] / 60, Number(s[1]) < 0 && (t *= -1), n = Math.abs(s[3]) + s[4] / 60, Number(s[3]) < 0 && (n *= -1), c = "DM";
|
|
1116
1104
|
else
|
|
1117
1105
|
throw new Error("invalid coordinate format");
|
|
1118
|
-
else if (
|
|
1119
|
-
if (
|
|
1120
|
-
if (t =
|
|
1106
|
+
else if (qt.test(i))
|
|
1107
|
+
if (s = qt.exec(i), d = Ie(s), d) {
|
|
1108
|
+
if (t = s[2], n = s[6], t.includes(",") && (t = t.replace(",", ".")), n.includes(",") && (n = n.replace(",", ".")), c = "DD", Number(Math.round(t)) == Number(t))
|
|
1121
1109
|
throw new Error("integer only coordinate provided");
|
|
1122
1110
|
if (Number(Math.round(n)) == Number(n))
|
|
1123
1111
|
throw new Error("integer only coordinate provided");
|
|
1124
|
-
|
|
1112
|
+
s[1] ? (r = s[1], l = s[5]) : s[4] && (r = s[4], l = s[8]);
|
|
1125
1113
|
} else
|
|
1126
1114
|
throw new Error("invalid decimal coordinate format");
|
|
1127
|
-
else if (
|
|
1128
|
-
if (
|
|
1129
|
-
t = Math.abs(parseInt(
|
|
1115
|
+
else if (Qt.test(i))
|
|
1116
|
+
if (s = Qt.exec(i), d = Ie(s), d)
|
|
1117
|
+
t = Math.abs(parseInt(s[2])), s[4] && (t += s[4] / 60, c = "DM"), s[6] && (t += s[6].replace(",", ".") / 3600, c = "DMS"), parseInt(s[2]) < 0 && (t = -1 * t), n = Math.abs(parseInt(s[9])), s[11] && (n += s[11] / 60), s[13] && (n += s[13].replace(",", ".") / 3600), parseInt(s[9]) < 0 && (n = -1 * n), s[1] ? (r = s[1], l = s[8]) : s[7] && (r = s[7], l = s[14]);
|
|
1130
1118
|
else
|
|
1131
1119
|
throw new Error("invalid DMS coordinates format");
|
|
1132
|
-
else if (
|
|
1133
|
-
if (
|
|
1134
|
-
t = Math.abs(parseInt(
|
|
1120
|
+
else if (Kt.test(i))
|
|
1121
|
+
if (s = Kt.exec(i), d = Ie(s), d)
|
|
1122
|
+
t = Math.abs(parseInt(s[2])), s[4] && (t += s[4] / 60, c = "DM"), s[6] && (t += s[6] / 3600, c = "DMS"), parseInt(s[2]) < 0 && (t = -1 * t), n = Math.abs(parseInt(s[10])), s[12] && (n += s[12] / 60), s[14] && (n += s[14] / 3600), parseInt(s[10]) < 0 && (n = -1 * n), s[1] ? (r = s[1], l = s[9]) : s[8] && (r = s[8], l = s[16]);
|
|
1135
1123
|
else
|
|
1136
1124
|
throw new Error("invalid DMS coordinates format");
|
|
1137
|
-
else if (
|
|
1138
|
-
if (
|
|
1125
|
+
else if (Vt.test(i)) {
|
|
1126
|
+
if (s = Vt.exec(i), d = Ie(s), s.filter((u) => u).length <= 5)
|
|
1139
1127
|
throw new Error("invalid coordinates format");
|
|
1140
1128
|
if (d)
|
|
1141
|
-
t = Math.abs(parseInt(
|
|
1129
|
+
t = Math.abs(parseInt(s[2])), s[4] && (t += s[4].replace(",", ".") / 60, c = "DM"), s[6] && (t += s[6].replace(",", ".") / 3600, c = "DMS"), parseInt(s[2]) < 0 && (t = -1 * t), n = Math.abs(parseInt(s[10])), s[12] && (n += s[12].replace(",", ".") / 60), s[14] && (n += s[14].replace(",", ".") / 3600), parseInt(s[10]) < 0 && (n = -1 * n), s[1] ? (r = s[1], l = s[9]) : s[8] && (r = s[8], l = s[16]);
|
|
1142
1130
|
else
|
|
1143
1131
|
throw new Error("invalid coordinates format");
|
|
1144
1132
|
}
|
|
@@ -1154,30 +1142,30 @@ function Lt(i, e) {
|
|
|
1154
1142
|
t.toString().includes(",") && (t = t.replace(",", ".")), n.toString().includes(",") && (n = n.replace(",", "."));
|
|
1155
1143
|
let u = /S|SOUTH/i;
|
|
1156
1144
|
u.test(r) && t > 0 && (t = -1 * t), u = /W|WEST/i, u.test(l) && n > 0 && (n = -1 * n);
|
|
1157
|
-
const f =
|
|
1145
|
+
const f = s[0].trim();
|
|
1158
1146
|
let g, b;
|
|
1159
1147
|
const _ = /[,/;\u0020]/g, w = f.match(_);
|
|
1160
1148
|
if (w == null) {
|
|
1161
|
-
const
|
|
1162
|
-
g = f.substring(0,
|
|
1149
|
+
const S = Math.floor(i.length / 2);
|
|
1150
|
+
g = f.substring(0, S).trim(), b = f.substring(S).trim();
|
|
1163
1151
|
} else {
|
|
1164
|
-
let
|
|
1165
|
-
w.length % 2 == 1 ?
|
|
1152
|
+
let S;
|
|
1153
|
+
w.length % 2 == 1 ? S = Math.floor(w.length / 2) : S = w.length / 2 - 1;
|
|
1166
1154
|
let z = 0;
|
|
1167
|
-
if (
|
|
1155
|
+
if (S == 0)
|
|
1168
1156
|
z = f.indexOf(w[0]), g = f.substring(0, z).trim(), b = f.substring(z + 1).trim();
|
|
1169
1157
|
else {
|
|
1170
|
-
let
|
|
1171
|
-
for (;
|
|
1172
|
-
z = f.indexOf(w[
|
|
1158
|
+
let W = 0, Z = 0;
|
|
1159
|
+
for (; W <= S; )
|
|
1160
|
+
z = f.indexOf(w[W], Z), Z = z + 1, W++;
|
|
1173
1161
|
g = f.substring(0, z).trim(), b = f.substring(z + 1).trim();
|
|
1174
1162
|
}
|
|
1175
1163
|
}
|
|
1176
|
-
const
|
|
1177
|
-
if (
|
|
1164
|
+
const U = g.split(".");
|
|
1165
|
+
if (U.length == 2 && U[1] == 0 && U[1].length != 2)
|
|
1178
1166
|
throw new Error("invalid coordinates format");
|
|
1179
|
-
const
|
|
1180
|
-
if (
|
|
1167
|
+
const p = b.split(".");
|
|
1168
|
+
if (p.length == 2 && p[1] == 0 && p[1].length != 2)
|
|
1181
1169
|
throw new Error("invalid coordinates format");
|
|
1182
1170
|
if (/^\d+$/.test(g) || /^\d+$/.test(b))
|
|
1183
1171
|
throw new Error("degree only coordinate/s provided");
|
|
@@ -1189,13 +1177,13 @@ function Lt(i, e) {
|
|
|
1189
1177
|
decimalLongitude: n,
|
|
1190
1178
|
decimalCoordinates: `${t},${n}`,
|
|
1191
1179
|
originalFormat: c,
|
|
1192
|
-
closeEnough:
|
|
1193
|
-
toCoordinateFormat:
|
|
1180
|
+
closeEnough: Mn,
|
|
1181
|
+
toCoordinateFormat: kn
|
|
1194
1182
|
});
|
|
1195
1183
|
} else
|
|
1196
1184
|
throw new Error("coordinates pattern match failed");
|
|
1197
1185
|
}
|
|
1198
|
-
function
|
|
1186
|
+
function Ie(i) {
|
|
1199
1187
|
if (!isNaN(i[0]))
|
|
1200
1188
|
return !1;
|
|
1201
1189
|
const e = [...i];
|
|
@@ -1203,9 +1191,9 @@ function Re(i) {
|
|
|
1203
1191
|
return !1;
|
|
1204
1192
|
const t = /^[-+]?\d+([\.,]\d+)?$/, n = /[eastsouthnorthwest]+/i, r = e.length / 2;
|
|
1205
1193
|
for (let l = 0; l < r; l++) {
|
|
1206
|
-
const c = e[l],
|
|
1207
|
-
if (!(c == null &&
|
|
1208
|
-
if (c == null ||
|
|
1194
|
+
const c = e[l], s = e[l + r], d = t.test(c) && t.test(s), u = n.test(c) && n.test(s), f = c == s;
|
|
1195
|
+
if (!(c == null && s == null)) {
|
|
1196
|
+
if (c == null || s == null)
|
|
1209
1197
|
return !1;
|
|
1210
1198
|
if (d || u || f)
|
|
1211
1199
|
continue;
|
|
@@ -1214,28 +1202,28 @@ function Re(i) {
|
|
|
1214
1202
|
}
|
|
1215
1203
|
return !0;
|
|
1216
1204
|
}
|
|
1217
|
-
function
|
|
1205
|
+
function Xt(i, e) {
|
|
1218
1206
|
const t = Math.abs(i - e);
|
|
1219
1207
|
return Number(t.toFixed(6)) <= 1e-5;
|
|
1220
1208
|
}
|
|
1221
|
-
function
|
|
1209
|
+
function Mn(i) {
|
|
1222
1210
|
if (!i)
|
|
1223
1211
|
throw new Error("coords must be provided");
|
|
1224
1212
|
if (i.includes(",")) {
|
|
1225
1213
|
const e = i.split(",");
|
|
1226
1214
|
if (Number(e[0]) == NaN || Number(e[1]) == NaN)
|
|
1227
1215
|
throw new Error("coords are not valid decimals");
|
|
1228
|
-
return
|
|
1216
|
+
return Xt(this.decimalLatitude, Number(e[0])) && Xt(this.decimalLongitude, e[1]);
|
|
1229
1217
|
} else
|
|
1230
1218
|
throw new Error("coords being tested must be separated by a comma");
|
|
1231
1219
|
}
|
|
1232
|
-
const
|
|
1220
|
+
const Cn = Object.freeze({
|
|
1233
1221
|
DMS: "DMS",
|
|
1234
1222
|
DM: "DM",
|
|
1235
1223
|
DD: "DD"
|
|
1236
1224
|
});
|
|
1237
|
-
|
|
1238
|
-
const
|
|
1225
|
+
wt.to = Cn;
|
|
1226
|
+
const Wn = [
|
|
1239
1227
|
{
|
|
1240
1228
|
verbatimCoordinates: "40.123, -74.123",
|
|
1241
1229
|
verbatimLatitude: "40.123",
|
|
@@ -1376,10 +1364,10 @@ const En = [
|
|
|
1376
1364
|
verbatimLatitude: "40 7 22.8",
|
|
1377
1365
|
verbatimLongitude: "-74 7 22.8"
|
|
1378
1366
|
}
|
|
1379
|
-
],
|
|
1367
|
+
], zn = {
|
|
1380
1368
|
decimalLatitude: 40.123,
|
|
1381
1369
|
decimalLongitude: -74.123
|
|
1382
|
-
},
|
|
1370
|
+
}, On = [
|
|
1383
1371
|
{
|
|
1384
1372
|
verbatimCoordinates: `50°4'17.698"south, 14°24'2.826"east`,
|
|
1385
1373
|
verbatimLatitude: `50°4'17.698"south`,
|
|
@@ -1464,7 +1452,7 @@ const En = [
|
|
|
1464
1452
|
decimalLatitude: -18.4,
|
|
1465
1453
|
decimalLongitude: 22.75
|
|
1466
1454
|
}
|
|
1467
|
-
],
|
|
1455
|
+
], Dn = [
|
|
1468
1456
|
{
|
|
1469
1457
|
verbatimCoordinates: "10.432342S 10.6345345E",
|
|
1470
1458
|
verbatimLatitude: "10.432342S",
|
|
@@ -1599,72 +1587,72 @@ const En = [
|
|
|
1599
1587
|
decimalLongitude: 18.33453
|
|
1600
1588
|
}
|
|
1601
1589
|
];
|
|
1602
|
-
function
|
|
1590
|
+
function Rn() {
|
|
1603
1591
|
const i = [];
|
|
1604
|
-
return
|
|
1605
|
-
e.decimalLatitude ? i.push(e) : i.push({ ...e, ...
|
|
1606
|
-
}), [...i, ...
|
|
1607
|
-
}
|
|
1608
|
-
const
|
|
1609
|
-
|
|
1610
|
-
const
|
|
1611
|
-
function
|
|
1592
|
+
return Wn.forEach((e) => {
|
|
1593
|
+
e.decimalLatitude ? i.push(e) : i.push({ ...e, ...zn });
|
|
1594
|
+
}), [...i, ...On, ...Dn];
|
|
1595
|
+
}
|
|
1596
|
+
const Un = Rn();
|
|
1597
|
+
wt.formats = Un.map((i) => i.verbatimCoordinates);
|
|
1598
|
+
const In = wt;
|
|
1599
|
+
function Jt(i, e, t) {
|
|
1612
1600
|
const n = i.slice();
|
|
1613
|
-
return n[
|
|
1601
|
+
return n[97] = e[t], n[99] = t, n;
|
|
1614
1602
|
}
|
|
1615
|
-
function
|
|
1603
|
+
function xt(i) {
|
|
1616
1604
|
let e, t;
|
|
1617
|
-
return e = new
|
|
1605
|
+
return e = new _n({}), {
|
|
1618
1606
|
c() {
|
|
1619
|
-
|
|
1607
|
+
ve(e.$$.fragment);
|
|
1620
1608
|
},
|
|
1621
1609
|
m(n, r) {
|
|
1622
|
-
|
|
1610
|
+
de(e, n, r), t = !0;
|
|
1623
1611
|
},
|
|
1624
1612
|
i(n) {
|
|
1625
|
-
t || (
|
|
1613
|
+
t || (G(e.$$.fragment, n), t = !0);
|
|
1626
1614
|
},
|
|
1627
1615
|
o(n) {
|
|
1628
|
-
|
|
1616
|
+
Q(e.$$.fragment, n), t = !1;
|
|
1629
1617
|
},
|
|
1630
1618
|
d(n) {
|
|
1631
|
-
|
|
1619
|
+
fe(e, n);
|
|
1632
1620
|
}
|
|
1633
1621
|
};
|
|
1634
1622
|
}
|
|
1635
|
-
function
|
|
1623
|
+
function $t(i) {
|
|
1636
1624
|
let e, t, n, r, l;
|
|
1637
|
-
return t = new
|
|
1625
|
+
return t = new wn({}), {
|
|
1638
1626
|
c() {
|
|
1639
|
-
e =
|
|
1627
|
+
e = R("button"), ve(t.$$.fragment), a(e, "type", "button"), a(
|
|
1640
1628
|
e,
|
|
1641
1629
|
"title",
|
|
1642
1630
|
/*reverseButtonTitle*/
|
|
1643
1631
|
i[10]
|
|
1644
|
-
), a(e, "class", "svelte-bz0zu3"),
|
|
1632
|
+
), a(e, "class", "svelte-bz0zu3"), Ce(
|
|
1645
1633
|
e,
|
|
1646
1634
|
"active",
|
|
1647
1635
|
/*reverseActive*/
|
|
1648
1636
|
i[0]
|
|
1649
1637
|
);
|
|
1650
1638
|
},
|
|
1651
|
-
m(c,
|
|
1652
|
-
|
|
1639
|
+
m(c, s) {
|
|
1640
|
+
B(c, e, s), de(t, e, null), n = !0, r || (l = q(
|
|
1653
1641
|
e,
|
|
1654
1642
|
"click",
|
|
1655
1643
|
/*click_handler_3*/
|
|
1656
|
-
i[
|
|
1644
|
+
i[79]
|
|
1657
1645
|
), r = !0);
|
|
1658
1646
|
},
|
|
1659
|
-
p(c,
|
|
1660
|
-
(!n ||
|
|
1647
|
+
p(c, s) {
|
|
1648
|
+
(!n || s[0] & /*reverseButtonTitle*/
|
|
1661
1649
|
1024) && a(
|
|
1662
1650
|
e,
|
|
1663
1651
|
"title",
|
|
1664
1652
|
/*reverseButtonTitle*/
|
|
1665
1653
|
c[10]
|
|
1666
|
-
), (!n ||
|
|
1667
|
-
1) &&
|
|
1654
|
+
), (!n || s[0] & /*reverseActive*/
|
|
1655
|
+
1) && Ce(
|
|
1668
1656
|
e,
|
|
1669
1657
|
"active",
|
|
1670
1658
|
/*reverseActive*/
|
|
@@ -1672,56 +1660,56 @@ function Qt(i) {
|
|
|
1672
1660
|
);
|
|
1673
1661
|
},
|
|
1674
1662
|
i(c) {
|
|
1675
|
-
n || (
|
|
1663
|
+
n || (G(t.$$.fragment, c), n = !0);
|
|
1676
1664
|
},
|
|
1677
1665
|
o(c) {
|
|
1678
|
-
|
|
1666
|
+
Q(t.$$.fragment, c), n = !1;
|
|
1679
1667
|
},
|
|
1680
1668
|
d(c) {
|
|
1681
|
-
c &&
|
|
1669
|
+
c && I(e), fe(t), r = !1, l();
|
|
1682
1670
|
}
|
|
1683
1671
|
};
|
|
1684
1672
|
}
|
|
1685
|
-
function
|
|
1686
|
-
let e, t = [], n = /* @__PURE__ */ new Map(), r, l, c,
|
|
1673
|
+
function An(i) {
|
|
1674
|
+
let e, t = [], n = /* @__PURE__ */ new Map(), r, l, c, s = jt(
|
|
1687
1675
|
/*listFeatures*/
|
|
1688
1676
|
i[13]
|
|
1689
1677
|
);
|
|
1690
1678
|
const d = (u) => (
|
|
1691
1679
|
/*feature*/
|
|
1692
|
-
u[
|
|
1693
|
-
(u[
|
|
1694
|
-
u[
|
|
1680
|
+
u[97].id + /*feature*/
|
|
1681
|
+
(u[97].address ? "," + /*feature*/
|
|
1682
|
+
u[97].address : "")
|
|
1695
1683
|
);
|
|
1696
|
-
for (let u = 0; u <
|
|
1697
|
-
let f =
|
|
1698
|
-
n.set(g, t[u] =
|
|
1684
|
+
for (let u = 0; u < s.length; u += 1) {
|
|
1685
|
+
let f = Jt(i, s, u), g = d(f);
|
|
1686
|
+
n.set(g, t[u] = ei(g, f));
|
|
1699
1687
|
}
|
|
1700
1688
|
return {
|
|
1701
1689
|
c() {
|
|
1702
|
-
e =
|
|
1690
|
+
e = R("ul");
|
|
1703
1691
|
for (let u = 0; u < t.length; u += 1)
|
|
1704
1692
|
t[u].c();
|
|
1705
1693
|
a(e, "class", "options svelte-bz0zu3"), a(e, "role", "listbox");
|
|
1706
1694
|
},
|
|
1707
1695
|
m(u, f) {
|
|
1708
|
-
|
|
1696
|
+
B(u, e, f);
|
|
1709
1697
|
for (let g = 0; g < t.length; g += 1)
|
|
1710
1698
|
t[g] && t[g].m(e, null);
|
|
1711
1699
|
r = !0, l || (c = [
|
|
1712
|
-
|
|
1700
|
+
q(
|
|
1713
1701
|
e,
|
|
1714
1702
|
"mouseleave",
|
|
1715
1703
|
/*handleMouseLeave*/
|
|
1716
1704
|
i[27]
|
|
1717
1705
|
),
|
|
1718
|
-
|
|
1706
|
+
q(
|
|
1719
1707
|
e,
|
|
1720
1708
|
"blur",
|
|
1721
1709
|
/*blur_handler_1*/
|
|
1722
|
-
i[
|
|
1710
|
+
i[83]
|
|
1723
1711
|
),
|
|
1724
|
-
|
|
1712
|
+
q(
|
|
1725
1713
|
e,
|
|
1726
1714
|
"keydown",
|
|
1727
1715
|
/*handleKeyDown*/
|
|
@@ -1731,141 +1719,141 @@ function Wn(i) {
|
|
|
1731
1719
|
},
|
|
1732
1720
|
p(u, f) {
|
|
1733
1721
|
f[0] & /*listFeatures, showPlaceType, selectedItemIndex, picked, missingIconsCache, iconsBaseUrl, handleMouseEnter, pick*/
|
|
1734
|
-
102823936 && (
|
|
1722
|
+
102823936 && (s = jt(
|
|
1735
1723
|
/*listFeatures*/
|
|
1736
1724
|
u[13]
|
|
1737
|
-
),
|
|
1725
|
+
), Je(), t = tn(t, f, d, 1, u, s, n, e, en, ei, null, Jt), xe());
|
|
1738
1726
|
},
|
|
1739
1727
|
i(u) {
|
|
1740
1728
|
if (!r) {
|
|
1741
|
-
for (let f = 0; f <
|
|
1742
|
-
|
|
1729
|
+
for (let f = 0; f < s.length; f += 1)
|
|
1730
|
+
G(t[f]);
|
|
1743
1731
|
r = !0;
|
|
1744
1732
|
}
|
|
1745
1733
|
},
|
|
1746
1734
|
o(u) {
|
|
1747
1735
|
for (let f = 0; f < t.length; f += 1)
|
|
1748
|
-
|
|
1736
|
+
Q(t[f]);
|
|
1749
1737
|
r = !1;
|
|
1750
1738
|
},
|
|
1751
1739
|
d(u) {
|
|
1752
|
-
u &&
|
|
1740
|
+
u && I(e);
|
|
1753
1741
|
for (let f = 0; f < t.length; f += 1)
|
|
1754
1742
|
t[f].d();
|
|
1755
|
-
l = !1,
|
|
1743
|
+
l = !1, me(c);
|
|
1756
1744
|
}
|
|
1757
1745
|
};
|
|
1758
1746
|
}
|
|
1759
|
-
function
|
|
1747
|
+
function Pn(i) {
|
|
1760
1748
|
let e, t, n, r, l, c;
|
|
1761
|
-
return t = new
|
|
1749
|
+
return t = new ui({}), {
|
|
1762
1750
|
c() {
|
|
1763
|
-
e =
|
|
1751
|
+
e = R("div"), ve(t.$$.fragment), n = ee(), r = R("div"), l = be(
|
|
1764
1752
|
/*noResultsMessage*/
|
|
1765
1753
|
i[8]
|
|
1766
1754
|
), a(r, "class", "svelte-bz0zu3"), a(e, "class", "no-results svelte-bz0zu3");
|
|
1767
1755
|
},
|
|
1768
|
-
m(
|
|
1769
|
-
|
|
1756
|
+
m(s, d) {
|
|
1757
|
+
B(s, e, d), de(t, e, null), M(e, n), M(e, r), M(r, l), c = !0;
|
|
1770
1758
|
},
|
|
1771
|
-
p(
|
|
1759
|
+
p(s, d) {
|
|
1772
1760
|
(!c || d[0] & /*noResultsMessage*/
|
|
1773
|
-
256) &&
|
|
1761
|
+
256) && Pe(
|
|
1774
1762
|
l,
|
|
1775
1763
|
/*noResultsMessage*/
|
|
1776
|
-
|
|
1764
|
+
s[8]
|
|
1777
1765
|
);
|
|
1778
1766
|
},
|
|
1779
|
-
i(
|
|
1780
|
-
c || (
|
|
1767
|
+
i(s) {
|
|
1768
|
+
c || (G(t.$$.fragment, s), c = !0);
|
|
1781
1769
|
},
|
|
1782
|
-
o(
|
|
1783
|
-
|
|
1770
|
+
o(s) {
|
|
1771
|
+
Q(t.$$.fragment, s), c = !1;
|
|
1784
1772
|
},
|
|
1785
|
-
d(
|
|
1786
|
-
|
|
1773
|
+
d(s) {
|
|
1774
|
+
s && I(e), fe(t);
|
|
1787
1775
|
}
|
|
1788
1776
|
};
|
|
1789
1777
|
}
|
|
1790
|
-
function
|
|
1778
|
+
function Bn(i) {
|
|
1791
1779
|
let e = "", t;
|
|
1792
1780
|
return {
|
|
1793
1781
|
c() {
|
|
1794
|
-
t =
|
|
1782
|
+
t = be(e);
|
|
1795
1783
|
},
|
|
1796
1784
|
m(n, r) {
|
|
1797
|
-
|
|
1785
|
+
B(n, t, r);
|
|
1798
1786
|
},
|
|
1799
1787
|
p: P,
|
|
1800
1788
|
i: P,
|
|
1801
1789
|
o: P,
|
|
1802
1790
|
d(n) {
|
|
1803
|
-
n &&
|
|
1791
|
+
n && I(t);
|
|
1804
1792
|
}
|
|
1805
1793
|
};
|
|
1806
1794
|
}
|
|
1807
|
-
function
|
|
1808
|
-
let e, t, n, r, l, c,
|
|
1809
|
-
return t = new
|
|
1795
|
+
function Fn(i) {
|
|
1796
|
+
let e, t, n, r, l, c, s, d, u, f, g;
|
|
1797
|
+
return t = new ui({}), d = new li({}), {
|
|
1810
1798
|
c() {
|
|
1811
|
-
e =
|
|
1799
|
+
e = R("div"), ve(t.$$.fragment), n = ee(), r = R("div"), l = be(
|
|
1812
1800
|
/*errorMessage*/
|
|
1813
1801
|
i[7]
|
|
1814
|
-
), c =
|
|
1802
|
+
), c = ee(), s = R("button"), ve(d.$$.fragment), a(r, "class", "svelte-bz0zu3"), a(s, "class", "svelte-bz0zu3"), a(e, "class", "error svelte-bz0zu3");
|
|
1815
1803
|
},
|
|
1816
1804
|
m(b, _) {
|
|
1817
|
-
|
|
1818
|
-
|
|
1805
|
+
B(b, e, _), de(t, e, null), M(e, n), M(e, r), M(r, l), M(e, c), M(e, s), de(d, s, null), u = !0, f || (g = q(
|
|
1806
|
+
s,
|
|
1819
1807
|
"click",
|
|
1820
1808
|
/*click_handler_4*/
|
|
1821
|
-
i[
|
|
1809
|
+
i[80]
|
|
1822
1810
|
), f = !0);
|
|
1823
1811
|
},
|
|
1824
1812
|
p(b, _) {
|
|
1825
1813
|
(!u || _[0] & /*errorMessage*/
|
|
1826
|
-
128) &&
|
|
1814
|
+
128) && Pe(
|
|
1827
1815
|
l,
|
|
1828
1816
|
/*errorMessage*/
|
|
1829
1817
|
b[7]
|
|
1830
1818
|
);
|
|
1831
1819
|
},
|
|
1832
1820
|
i(b) {
|
|
1833
|
-
u || (
|
|
1821
|
+
u || (G(t.$$.fragment, b), G(d.$$.fragment, b), u = !0);
|
|
1834
1822
|
},
|
|
1835
1823
|
o(b) {
|
|
1836
|
-
|
|
1824
|
+
Q(t.$$.fragment, b), Q(d.$$.fragment, b), u = !1;
|
|
1837
1825
|
},
|
|
1838
1826
|
d(b) {
|
|
1839
|
-
b &&
|
|
1827
|
+
b && I(e), fe(t), fe(d), f = !1, g();
|
|
1840
1828
|
}
|
|
1841
1829
|
};
|
|
1842
1830
|
}
|
|
1843
|
-
function
|
|
1844
|
-
var
|
|
1831
|
+
function ei(i, e) {
|
|
1832
|
+
var s;
|
|
1845
1833
|
let t, n, r;
|
|
1846
1834
|
function l() {
|
|
1847
1835
|
return (
|
|
1848
1836
|
/*mouseenter_handler*/
|
|
1849
|
-
e[
|
|
1837
|
+
e[81](
|
|
1850
1838
|
/*i*/
|
|
1851
|
-
e[
|
|
1839
|
+
e[99]
|
|
1852
1840
|
)
|
|
1853
1841
|
);
|
|
1854
1842
|
}
|
|
1855
1843
|
function c() {
|
|
1856
1844
|
return (
|
|
1857
1845
|
/*select_handler*/
|
|
1858
|
-
e[
|
|
1846
|
+
e[82](
|
|
1859
1847
|
/*feature*/
|
|
1860
|
-
e[
|
|
1848
|
+
e[97]
|
|
1861
1849
|
)
|
|
1862
1850
|
);
|
|
1863
1851
|
}
|
|
1864
|
-
return n = new
|
|
1852
|
+
return n = new vn({
|
|
1865
1853
|
props: {
|
|
1866
1854
|
feature: (
|
|
1867
1855
|
/*feature*/
|
|
1868
|
-
e[
|
|
1856
|
+
e[97]
|
|
1869
1857
|
),
|
|
1870
1858
|
showPlaceType: (
|
|
1871
1859
|
/*showPlaceType*/
|
|
@@ -1874,10 +1862,10 @@ function Kt(i, e) {
|
|
|
1874
1862
|
style: (
|
|
1875
1863
|
/*selectedItemIndex*/
|
|
1876
1864
|
e[15] === /*i*/
|
|
1877
|
-
e[
|
|
1865
|
+
e[99] ? "selected" : (
|
|
1878
1866
|
/*picked*/
|
|
1879
|
-
((
|
|
1880
|
-
e[
|
|
1867
|
+
((s = e[14]) == null ? void 0 : s.id) === /*feature*/
|
|
1868
|
+
e[97].id ? "picked" : "default"
|
|
1881
1869
|
)
|
|
1882
1870
|
),
|
|
1883
1871
|
missingIconsCache: (
|
|
@@ -1893,10 +1881,10 @@ function Kt(i, e) {
|
|
|
1893
1881
|
key: i,
|
|
1894
1882
|
first: null,
|
|
1895
1883
|
c() {
|
|
1896
|
-
t =
|
|
1884
|
+
t = Zi(), ve(n.$$.fragment), this.first = t;
|
|
1897
1885
|
},
|
|
1898
1886
|
m(d, u) {
|
|
1899
|
-
|
|
1887
|
+
B(d, t, u), de(n, d, u), r = !0;
|
|
1900
1888
|
},
|
|
1901
1889
|
p(d, u) {
|
|
1902
1890
|
var g;
|
|
@@ -1904,93 +1892,93 @@ function Kt(i, e) {
|
|
|
1904
1892
|
const f = {};
|
|
1905
1893
|
u[0] & /*listFeatures*/
|
|
1906
1894
|
8192 && (f.feature = /*feature*/
|
|
1907
|
-
e[
|
|
1895
|
+
e[97]), u[0] & /*showPlaceType*/
|
|
1908
1896
|
2048 && (f.showPlaceType = /*showPlaceType*/
|
|
1909
1897
|
e[11]), u[0] & /*selectedItemIndex, listFeatures, picked*/
|
|
1910
1898
|
57344 && (f.style = /*selectedItemIndex*/
|
|
1911
1899
|
e[15] === /*i*/
|
|
1912
|
-
e[
|
|
1900
|
+
e[99] ? "selected" : (
|
|
1913
1901
|
/*picked*/
|
|
1914
1902
|
((g = e[14]) == null ? void 0 : g.id) === /*feature*/
|
|
1915
|
-
e[
|
|
1903
|
+
e[97].id ? "picked" : "default"
|
|
1916
1904
|
)), u[0] & /*iconsBaseUrl*/
|
|
1917
1905
|
4096 && (f.iconsBaseUrl = /*iconsBaseUrl*/
|
|
1918
1906
|
e[12]), n.$set(f);
|
|
1919
1907
|
},
|
|
1920
1908
|
i(d) {
|
|
1921
|
-
r || (
|
|
1909
|
+
r || (G(n.$$.fragment, d), r = !0);
|
|
1922
1910
|
},
|
|
1923
1911
|
o(d) {
|
|
1924
|
-
|
|
1912
|
+
Q(n.$$.fragment, d), r = !1;
|
|
1925
1913
|
},
|
|
1926
1914
|
d(d) {
|
|
1927
|
-
d &&
|
|
1915
|
+
d && I(t), fe(n, d);
|
|
1928
1916
|
}
|
|
1929
1917
|
};
|
|
1930
1918
|
}
|
|
1931
|
-
function
|
|
1932
|
-
let e, t, n, r, l, c,
|
|
1933
|
-
l = new
|
|
1934
|
-
let
|
|
1919
|
+
function jn(i) {
|
|
1920
|
+
let e, t, n, r, l, c, s, d, u, f, g, b, _, w, U, p, S, z, W, Z, V, C = !1;
|
|
1921
|
+
l = new pn({}), g = new li({});
|
|
1922
|
+
let v = (
|
|
1935
1923
|
/*abortController*/
|
|
1936
|
-
i[20] &&
|
|
1924
|
+
i[20] && xt()
|
|
1937
1925
|
), y = (
|
|
1938
1926
|
/*enableReverse*/
|
|
1939
|
-
i[6] === "button" &&
|
|
1927
|
+
i[6] === "button" && $t(i)
|
|
1940
1928
|
);
|
|
1941
|
-
const
|
|
1929
|
+
const N = (
|
|
1942
1930
|
/*#slots*/
|
|
1943
|
-
i[
|
|
1944
|
-
),
|
|
1945
|
-
|
|
1931
|
+
i[70].default
|
|
1932
|
+
), k = Fi(
|
|
1933
|
+
N,
|
|
1946
1934
|
i,
|
|
1947
1935
|
/*$$scope*/
|
|
1948
|
-
i[
|
|
1936
|
+
i[69],
|
|
1949
1937
|
null
|
|
1950
|
-
),
|
|
1951
|
-
function
|
|
1952
|
-
var se,
|
|
1938
|
+
), E = [Fn, Bn, Pn, An], m = [];
|
|
1939
|
+
function Le(L, F) {
|
|
1940
|
+
var se, te;
|
|
1953
1941
|
return (
|
|
1954
1942
|
/*error*/
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1943
|
+
L[19] ? 0 : !/*focusedDelayed*/
|
|
1944
|
+
L[16] && !/*keepListOpen*/
|
|
1945
|
+
L[4] ? 1 : (
|
|
1958
1946
|
/*listFeatures*/
|
|
1959
|
-
((se =
|
|
1947
|
+
((se = L[13]) == null ? void 0 : se.length) === 0 ? 2 : (
|
|
1960
1948
|
/*listFeatures*/
|
|
1961
|
-
(
|
|
1962
|
-
(
|
|
1963
|
-
|
|
1949
|
+
(te = L[13]) != null && te.length && /*focusedDelayed*/
|
|
1950
|
+
(L[16] || /*keepListOpen*/
|
|
1951
|
+
L[4]) ? 3 : -1
|
|
1964
1952
|
)
|
|
1965
1953
|
)
|
|
1966
1954
|
);
|
|
1967
1955
|
}
|
|
1968
|
-
return ~(
|
|
1956
|
+
return ~(p = Le(i)) && (S = m[p] = E[p](i)), {
|
|
1969
1957
|
c() {
|
|
1970
|
-
e =
|
|
1971
|
-
|
|
1958
|
+
e = ee(), t = R("form"), n = R("div"), r = R("button"), ve(l.$$.fragment), c = ee(), s = R("input"), d = ee(), u = R("div"), f = R("button"), ve(g.$$.fragment), b = ee(), v && v.c(), _ = ee(), y && y.c(), w = ee(), k && k.c(), U = ee(), S && S.c(), a(r, "class", "search-button svelte-bz0zu3"), a(r, "type", "button"), a(
|
|
1959
|
+
s,
|
|
1972
1960
|
"placeholder",
|
|
1973
1961
|
/*placeholder*/
|
|
1974
1962
|
i[9]
|
|
1975
1963
|
), a(
|
|
1976
|
-
|
|
1964
|
+
s,
|
|
1977
1965
|
"aria-label",
|
|
1978
1966
|
/*placeholder*/
|
|
1979
1967
|
i[9]
|
|
1980
|
-
), a(
|
|
1968
|
+
), a(s, "class", "svelte-bz0zu3"), a(f, "type", "button"), a(
|
|
1981
1969
|
f,
|
|
1982
1970
|
"title",
|
|
1983
1971
|
/*clearButtonTitle*/
|
|
1984
1972
|
i[3]
|
|
1985
|
-
), a(f, "class", "svelte-bz0zu3"), a(u, "class", "clear-button-container svelte-bz0zu3"),
|
|
1973
|
+
), a(f, "class", "svelte-bz0zu3"), a(u, "class", "clear-button-container svelte-bz0zu3"), Ce(
|
|
1986
1974
|
u,
|
|
1987
1975
|
"displayable",
|
|
1988
1976
|
/*searchValue*/
|
|
1989
1977
|
i[1] !== ""
|
|
1990
|
-
), a(n, "class", "input-group svelte-bz0zu3"), a(t, "class", z =
|
|
1978
|
+
), a(n, "class", "input-group svelte-bz0zu3"), a(t, "class", z = $e(
|
|
1991
1979
|
/*className*/
|
|
1992
1980
|
i[2]
|
|
1993
|
-
) + " svelte-bz0zu3"),
|
|
1981
|
+
) + " svelte-bz0zu3"), Ce(
|
|
1994
1982
|
t,
|
|
1995
1983
|
"can-collapse",
|
|
1996
1984
|
/*collapsed*/
|
|
@@ -1998,159 +1986,159 @@ function Dn(i) {
|
|
|
1998
1986
|
i[1] === ""
|
|
1999
1987
|
);
|
|
2000
1988
|
},
|
|
2001
|
-
m(
|
|
2002
|
-
|
|
2003
|
-
|
|
1989
|
+
m(L, F) {
|
|
1990
|
+
B(L, e, F), B(L, t, F), M(t, n), M(n, r), de(l, r, null), M(n, c), M(n, s), i[72](s), Bt(
|
|
1991
|
+
s,
|
|
2004
1992
|
/*searchValue*/
|
|
2005
1993
|
i[1]
|
|
2006
|
-
),
|
|
2007
|
-
|
|
1994
|
+
), M(n, d), M(n, u), M(u, f), de(g, f, null), M(u, b), v && v.m(u, null), M(n, _), y && y.m(n, null), M(n, w), k && k.m(n, null), M(t, U), ~p && m[p].m(t, null), W = !0, Z || (V = [
|
|
1995
|
+
q(
|
|
2008
1996
|
r,
|
|
2009
1997
|
"click",
|
|
2010
1998
|
/*click_handler*/
|
|
2011
|
-
i[
|
|
1999
|
+
i[71]
|
|
2012
2000
|
),
|
|
2013
|
-
|
|
2014
|
-
|
|
2001
|
+
q(
|
|
2002
|
+
s,
|
|
2015
2003
|
"input",
|
|
2016
2004
|
/*input_1_input_handler*/
|
|
2017
|
-
i[
|
|
2005
|
+
i[73]
|
|
2018
2006
|
),
|
|
2019
|
-
|
|
2020
|
-
|
|
2007
|
+
q(
|
|
2008
|
+
s,
|
|
2021
2009
|
"focus",
|
|
2022
2010
|
/*focus_handler*/
|
|
2023
|
-
i[
|
|
2011
|
+
i[74]
|
|
2024
2012
|
),
|
|
2025
|
-
|
|
2026
|
-
|
|
2013
|
+
q(
|
|
2014
|
+
s,
|
|
2027
2015
|
"blur",
|
|
2028
2016
|
/*blur_handler*/
|
|
2029
|
-
i[
|
|
2017
|
+
i[75]
|
|
2030
2018
|
),
|
|
2031
|
-
|
|
2032
|
-
|
|
2019
|
+
q(
|
|
2020
|
+
s,
|
|
2033
2021
|
"click",
|
|
2034
2022
|
/*click_handler_1*/
|
|
2035
|
-
i[
|
|
2023
|
+
i[76]
|
|
2036
2024
|
),
|
|
2037
|
-
|
|
2038
|
-
|
|
2025
|
+
q(
|
|
2026
|
+
s,
|
|
2039
2027
|
"keydown",
|
|
2040
2028
|
/*handleKeyDown*/
|
|
2041
2029
|
i[23]
|
|
2042
2030
|
),
|
|
2043
|
-
|
|
2044
|
-
|
|
2031
|
+
q(
|
|
2032
|
+
s,
|
|
2045
2033
|
"input",
|
|
2046
2034
|
/*handleInput*/
|
|
2047
2035
|
i[24]
|
|
2048
2036
|
),
|
|
2049
|
-
|
|
2050
|
-
|
|
2037
|
+
q(
|
|
2038
|
+
s,
|
|
2051
2039
|
"change",
|
|
2052
2040
|
/*change_handler*/
|
|
2053
|
-
i[
|
|
2041
|
+
i[77]
|
|
2054
2042
|
),
|
|
2055
|
-
|
|
2043
|
+
q(
|
|
2056
2044
|
f,
|
|
2057
2045
|
"click",
|
|
2058
2046
|
/*click_handler_2*/
|
|
2059
|
-
i[
|
|
2047
|
+
i[78]
|
|
2060
2048
|
),
|
|
2061
|
-
|
|
2049
|
+
q(t, "submit", qi(
|
|
2062
2050
|
/*handleSubmit*/
|
|
2063
2051
|
i[22]
|
|
2064
2052
|
))
|
|
2065
|
-
],
|
|
2053
|
+
], Z = !0);
|
|
2066
2054
|
},
|
|
2067
|
-
p(
|
|
2068
|
-
(!
|
|
2055
|
+
p(L, F) {
|
|
2056
|
+
(!W || F[0] & /*placeholder*/
|
|
2069
2057
|
512) && a(
|
|
2070
|
-
|
|
2058
|
+
s,
|
|
2071
2059
|
"placeholder",
|
|
2072
2060
|
/*placeholder*/
|
|
2073
|
-
|
|
2074
|
-
), (!
|
|
2061
|
+
L[9]
|
|
2062
|
+
), (!W || F[0] & /*placeholder*/
|
|
2075
2063
|
512) && a(
|
|
2076
|
-
|
|
2064
|
+
s,
|
|
2077
2065
|
"aria-label",
|
|
2078
2066
|
/*placeholder*/
|
|
2079
|
-
|
|
2080
|
-
),
|
|
2081
|
-
2 &&
|
|
2082
|
-
|
|
2083
|
-
|
|
2067
|
+
L[9]
|
|
2068
|
+
), F[0] & /*searchValue*/
|
|
2069
|
+
2 && s.value !== /*searchValue*/
|
|
2070
|
+
L[1] && Bt(
|
|
2071
|
+
s,
|
|
2084
2072
|
/*searchValue*/
|
|
2085
|
-
|
|
2086
|
-
), (!
|
|
2073
|
+
L[1]
|
|
2074
|
+
), (!W || F[0] & /*clearButtonTitle*/
|
|
2087
2075
|
8) && a(
|
|
2088
2076
|
f,
|
|
2089
2077
|
"title",
|
|
2090
2078
|
/*clearButtonTitle*/
|
|
2091
|
-
|
|
2079
|
+
L[3]
|
|
2092
2080
|
), /*abortController*/
|
|
2093
|
-
|
|
2094
|
-
1048576 &&
|
|
2095
|
-
|
|
2096
|
-
}),
|
|
2097
|
-
2) &&
|
|
2081
|
+
L[20] ? v ? F[0] & /*abortController*/
|
|
2082
|
+
1048576 && G(v, 1) : (v = xt(), v.c(), G(v, 1), v.m(u, null)) : v && (Je(), Q(v, 1, 1, () => {
|
|
2083
|
+
v = null;
|
|
2084
|
+
}), xe()), (!W || F[0] & /*searchValue*/
|
|
2085
|
+
2) && Ce(
|
|
2098
2086
|
u,
|
|
2099
2087
|
"displayable",
|
|
2100
2088
|
/*searchValue*/
|
|
2101
|
-
|
|
2089
|
+
L[1] !== ""
|
|
2102
2090
|
), /*enableReverse*/
|
|
2103
|
-
|
|
2104
|
-
64 &&
|
|
2091
|
+
L[6] === "button" ? y ? (y.p(L, F), F[0] & /*enableReverse*/
|
|
2092
|
+
64 && G(y, 1)) : (y = $t(L), y.c(), G(y, 1), y.m(n, w)) : y && (Je(), Q(y, 1, 1, () => {
|
|
2105
2093
|
y = null;
|
|
2106
|
-
}),
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2094
|
+
}), xe()), k && k.p && (!W || F[2] & /*$$scope*/
|
|
2095
|
+
128) && Gi(
|
|
2096
|
+
k,
|
|
2097
|
+
N,
|
|
2098
|
+
L,
|
|
2111
2099
|
/*$$scope*/
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2100
|
+
L[69],
|
|
2101
|
+
W ? ji(
|
|
2102
|
+
N,
|
|
2115
2103
|
/*$$scope*/
|
|
2116
|
-
|
|
2117
|
-
|
|
2104
|
+
L[69],
|
|
2105
|
+
F,
|
|
2118
2106
|
null
|
|
2119
|
-
) :
|
|
2107
|
+
) : Hi(
|
|
2120
2108
|
/*$$scope*/
|
|
2121
|
-
|
|
2109
|
+
L[69]
|
|
2122
2110
|
),
|
|
2123
2111
|
null
|
|
2124
2112
|
);
|
|
2125
|
-
let se =
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
}),
|
|
2129
|
-
4 && z !== (z =
|
|
2113
|
+
let se = p;
|
|
2114
|
+
p = Le(L), p === se ? ~p && m[p].p(L, F) : (S && (Je(), Q(m[se], 1, 1, () => {
|
|
2115
|
+
m[se] = null;
|
|
2116
|
+
}), xe()), ~p ? (S = m[p], S ? S.p(L, F) : (S = m[p] = E[p](L), S.c()), G(S, 1), S.m(t, null)) : S = null), (!W || F[0] & /*className*/
|
|
2117
|
+
4 && z !== (z = $e(
|
|
2130
2118
|
/*className*/
|
|
2131
|
-
|
|
2132
|
-
) + " svelte-bz0zu3")) && a(t, "class", z), (!
|
|
2133
|
-
38) &&
|
|
2119
|
+
L[2]
|
|
2120
|
+
) + " svelte-bz0zu3")) && a(t, "class", z), (!W || F[0] & /*className, collapsed, searchValue*/
|
|
2121
|
+
38) && Ce(
|
|
2134
2122
|
t,
|
|
2135
2123
|
"can-collapse",
|
|
2136
2124
|
/*collapsed*/
|
|
2137
|
-
|
|
2138
|
-
|
|
2125
|
+
L[5] && /*searchValue*/
|
|
2126
|
+
L[1] === ""
|
|
2139
2127
|
);
|
|
2140
2128
|
},
|
|
2141
|
-
i(
|
|
2142
|
-
|
|
2129
|
+
i(L) {
|
|
2130
|
+
W || (G(C), G(l.$$.fragment, L), G(g.$$.fragment, L), G(v), G(y), G(k, L), G(S), W = !0);
|
|
2143
2131
|
},
|
|
2144
|
-
o(
|
|
2145
|
-
|
|
2132
|
+
o(L) {
|
|
2133
|
+
Q(C), Q(l.$$.fragment, L), Q(g.$$.fragment, L), Q(v), Q(y), Q(k, L), Q(S), W = !1;
|
|
2146
2134
|
},
|
|
2147
|
-
d(
|
|
2148
|
-
|
|
2135
|
+
d(L) {
|
|
2136
|
+
L && (I(e), I(t)), fe(l), i[72](null), fe(g), v && v.d(), y && y.d(), k && k.d(L), ~p && m[p].d(), Z = !1, me(V);
|
|
2149
2137
|
}
|
|
2150
2138
|
};
|
|
2151
2139
|
}
|
|
2152
|
-
function
|
|
2153
|
-
let n, r, l, { $$slots: c = {}, $$scope:
|
|
2140
|
+
function Gn(i, e, t) {
|
|
2141
|
+
let n, r, l, { $$slots: c = {}, $$scope: s } = e;
|
|
2154
2142
|
const d = {
|
|
2155
2143
|
continental_marine: 4,
|
|
2156
2144
|
country: 4,
|
|
@@ -2175,351 +2163,355 @@ function Un(i, e, t) {
|
|
|
2175
2163
|
"poi.restaurant": 18,
|
|
2176
2164
|
"poi.aerodrome": 13
|
|
2177
2165
|
};
|
|
2178
|
-
let { class: u = void 0 } = e, { apiKey: f } = e, { bbox: g = void 0 } = e, { clearButtonTitle: b = "clear" } = e, { clearOnBlur: _ = !1 } = e, { clearListOnPick: w = !1 } = e, { keepListOpen:
|
|
2179
|
-
|
|
2166
|
+
let { class: u = void 0 } = e, { apiKey: f } = e, { bbox: g = void 0 } = e, { clearButtonTitle: b = "clear" } = e, { clearOnBlur: _ = !1 } = e, { clearListOnPick: w = !1 } = e, { keepListOpen: U = !1 } = e, { collapsed: p = !1 } = e, { country: S = void 0 } = e, { debounceSearch: z = 200 } = e, { enableReverse: W = "never" } = e, { errorMessage: Z = "Something went wrong…" } = e, { filter: V = () => !0 } = e, { flyTo: C = !0 } = e, { fuzzyMatch: v = !0 } = e, { language: y = void 0 } = e, { limit: N = void 0 } = e;
|
|
2167
|
+
const k = 41415112612;
|
|
2168
|
+
let { reverseGeocodingLimit: E = k } = e, { mapController: m = void 0 } = e, { minLength: Le = 2 } = e, { noResultsMessage: L = "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: F = "Search" } = e, { proximity: se = [{ type: "server-geolocation" }] } = e, { reverseActive: te = W === "always" } = e, { reverseButtonTitle: pt = "toggle reverse geocoding" } = e, { searchValue: K = "" } = e, { pickedResultStyle: Fe = "full-geometry" } = e, { showPlaceType: St = "if-needed" } = e, { showResultsWhileTyping: je = !0 } = e, { selectFirst: Se = !0 } = e, { flyToSelected: Ge = !1 } = e, { markerOnSelected: He = !0 } = e, { types: tt = void 0 } = e;
|
|
2169
|
+
const Tt = [];
|
|
2170
|
+
let { reverseGeocodingTypes: Ze = Tt } = e, { exhaustiveReverseGeocoding: it = !1 } = e, { excludeTypes: nt = !1 } = e;
|
|
2171
|
+
const Nt = void 0;
|
|
2172
|
+
let { reverseGeocodingExcludeTypes: qe = Nt } = e, { zoom: Qe = d } = e, { apiUrl: rt = "https://api.maptiler.com/geocoding" } = e, { fetchParameters: st = {} } = e, { iconsBaseUrl: kt = "https://cdn.maptiler.com/maptiler-geocoding-control/v2.1.1/icons/" } = e, { adjustUrlQuery: ot = () => {
|
|
2173
|
+
} } = e, { adjustUrl: at = () => {
|
|
2180
2174
|
} } = e;
|
|
2181
|
-
function
|
|
2182
|
-
|
|
2175
|
+
function di(o) {
|
|
2176
|
+
ne.focus(o);
|
|
2183
2177
|
}
|
|
2184
|
-
function
|
|
2185
|
-
|
|
2178
|
+
function fi() {
|
|
2179
|
+
ne.blur();
|
|
2186
2180
|
}
|
|
2187
|
-
function
|
|
2188
|
-
t(1,
|
|
2189
|
-
|
|
2181
|
+
function Mt(o, A = !0, j = !1) {
|
|
2182
|
+
t(1, K = o), A ? (t(15, O = -1), Wt()) : (zt(void 0, !j, j), setTimeout(() => {
|
|
2183
|
+
ne.focus(), ne.select();
|
|
2190
2184
|
}));
|
|
2191
2185
|
}
|
|
2192
|
-
function
|
|
2193
|
-
t(13,
|
|
2194
|
-
}
|
|
2195
|
-
function ai() {
|
|
2196
|
-
t(62, q = []), t(14, h = void 0);
|
|
2186
|
+
function mi() {
|
|
2187
|
+
t(13, T = void 0), t(14, h = void 0), t(15, O = -1);
|
|
2197
2188
|
}
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
function ui() {
|
|
2201
|
-
return !!$;
|
|
2189
|
+
function gi() {
|
|
2190
|
+
t(64, H = []), t(14, h = void 0);
|
|
2202
2191
|
}
|
|
2203
|
-
|
|
2192
|
+
let T, H, h, Ct = "", ne, O = -1, oe, Ke = [], _e, Te, Ne, lt, ue = !1;
|
|
2193
|
+
const hi = /* @__PURE__ */ new Set(), ge = oi();
|
|
2194
|
+
Vi(() => {
|
|
2204
2195
|
m && (m.setEventHandler(void 0), m.indicateReverse(!1), m.setSelectedMarker(-1), m.setFeatures(void 0, void 0, !1));
|
|
2205
2196
|
});
|
|
2206
|
-
function
|
|
2207
|
-
if (t(17,
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
const B = s || !ot(F);
|
|
2215
|
-
We(F, { exact: !0 }).then(() => {
|
|
2216
|
-
t(62, q = E), t(14, h = void 0), B && ci();
|
|
2217
|
-
}).catch((H) => t(19, re = H));
|
|
2197
|
+
function Wt(o) {
|
|
2198
|
+
if (t(17, ue = !1), Te && (clearTimeout(Te), Te = void 0), O > -1 && T)
|
|
2199
|
+
t(14, h = T[O]), t(1, K = h.place_type[0] === "reverse" ? h.place_name : h.place_name.replace(/,.*/, "")), t(19, oe = void 0), t(64, H = void 0), t(15, O = -1);
|
|
2200
|
+
else if (K) {
|
|
2201
|
+
const A = o || !ut(K);
|
|
2202
|
+
ct(K, { exact: !0 }).then(() => {
|
|
2203
|
+
t(64, H = T), t(14, h = void 0), A && bi();
|
|
2204
|
+
}).catch((j) => t(19, oe = j));
|
|
2218
2205
|
}
|
|
2219
2206
|
}
|
|
2220
|
-
function
|
|
2207
|
+
function ut(o) {
|
|
2221
2208
|
try {
|
|
2222
|
-
return
|
|
2209
|
+
return In(o, 6);
|
|
2223
2210
|
} catch {
|
|
2224
2211
|
return !1;
|
|
2225
2212
|
}
|
|
2226
2213
|
}
|
|
2227
|
-
async function
|
|
2228
|
-
var
|
|
2229
|
-
t(19,
|
|
2230
|
-
const
|
|
2231
|
-
t(20, _e =
|
|
2214
|
+
async function ct(o, { byId: A = !1, exact: j = !1 } = {}) {
|
|
2215
|
+
var $, ae, he;
|
|
2216
|
+
t(19, oe = void 0), _e == null || _e.abort();
|
|
2217
|
+
const x = new AbortController();
|
|
2218
|
+
t(20, _e = x);
|
|
2232
2219
|
try {
|
|
2233
|
-
const
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2220
|
+
const D = ut(o), Oe = new URL(rt + "/" + encodeURIComponent(D ? D.decimalLongitude + "," + D.decimalLatitude : o) + ".json"), ie = Oe.searchParams;
|
|
2221
|
+
y !== void 0 && ie.set("language", Array.isArray(y) ? y.join(",") : y ?? "");
|
|
2222
|
+
const [mt] = (m == null ? void 0 : m.getCenterAndZoom()) ?? [];
|
|
2223
|
+
let le = ($ = !D || Ze === Tt ? tt : Ze) == null ? void 0 : $.map((Y) => typeof Y == "string" ? Y : mt === void 0 || (Y[0] ?? 0) <= mt && mt < (Y[1] ?? 1 / 0) ? Y[2] : void 0).filter((Y) => Y !== void 0);
|
|
2224
|
+
le && (le = [...new Set(le)], ie.set("types", le.join(",")));
|
|
2225
|
+
const Dt = !D || qe === Nt ? nt : qe;
|
|
2226
|
+
if (Dt && ie.set("excludeTypes", String(Dt)), g && ie.set("bbox", g.map((Y) => Y.toFixed(6)).join(",")), S && ie.set("country", Array.isArray(S) ? S.join(",") : S), !A && !D) {
|
|
2227
|
+
const Y = await Tn(m, se, x);
|
|
2228
|
+
Y && ie.set("proximity", Y), (j || !je) && ie.set("autocomplete", "false"), ie.set("fuzzyMatch", String(v));
|
|
2237
2229
|
}
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2230
|
+
const De = E === k ? N : E;
|
|
2231
|
+
De !== void 0 && De > 1 && (le == null ? void 0 : le.length) !== 1 && console.warn("For reverse geocoding when limit > 1 then types must contain single value."), D ? (De === 1 || De !== void 0 && (it || (le == null ? void 0 : le.length) === 1)) && ie.set("limit", String(De)) : N !== void 0 && ie.set("limit", String(N)), ie.set("key", f), ot(ie), at(Oe);
|
|
2232
|
+
const Di = Oe.searchParams.get("types") === "" && Oe.searchParams.get("excludeTypes") !== "true", Ve = Oe.toString();
|
|
2233
|
+
if (Ve === Ct) {
|
|
2234
|
+
A ? (w && t(13, T = void 0), t(14, h = Ke[0])) : (t(13, T = Ke), ((ae = T[O]) == null ? void 0 : ae.id) !== (r == null ? void 0 : r.id) && t(15, O = -1));
|
|
2242
2235
|
return;
|
|
2243
2236
|
}
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
if (
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2237
|
+
Ct = Ve;
|
|
2238
|
+
let Re;
|
|
2239
|
+
if (Di)
|
|
2240
|
+
Re = { type: "FeatureCollection", features: [] };
|
|
2241
|
+
else {
|
|
2242
|
+
const Y = await fetch(Ve, { signal: x.signal, ...st });
|
|
2243
|
+
if (!Y.ok)
|
|
2244
|
+
throw new Error(await Y.text());
|
|
2245
|
+
Re = await Y.json();
|
|
2246
|
+
}
|
|
2247
|
+
ge("response", { url: Ve, featureCollection: Re }), A ? (w && t(13, T = void 0), t(14, h = Re.features[0]), Ke = [h]) : (t(13, T = Re.features.filter(V)), D && T.unshift({
|
|
2250
2248
|
type: "Feature",
|
|
2251
2249
|
properties: {},
|
|
2252
|
-
id: "reverse_" +
|
|
2253
|
-
text:
|
|
2254
|
-
place_name:
|
|
2250
|
+
id: "reverse_" + D.decimalLongitude + "_" + D.decimalLatitude,
|
|
2251
|
+
text: D.decimalLatitude + ", " + D.decimalLongitude,
|
|
2252
|
+
place_name: D.decimalLatitude + ", " + D.decimalLongitude,
|
|
2255
2253
|
place_type: ["reverse"],
|
|
2256
|
-
center: [
|
|
2254
|
+
center: [D.decimalLongitude, D.decimalLatitude],
|
|
2257
2255
|
bbox: [
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2256
|
+
D.decimalLongitude,
|
|
2257
|
+
D.decimalLatitude,
|
|
2258
|
+
D.decimalLongitude,
|
|
2259
|
+
D.decimalLatitude
|
|
2262
2260
|
],
|
|
2263
2261
|
geometry: {
|
|
2264
2262
|
type: "Point",
|
|
2265
|
-
coordinates: [
|
|
2263
|
+
coordinates: [D.decimalLongitude, D.decimalLatitude]
|
|
2266
2264
|
}
|
|
2267
|
-
}),
|
|
2268
|
-
} catch (
|
|
2269
|
-
if (
|
|
2265
|
+
}), Ke = T, ((he = T[O]) == null ? void 0 : he.id) !== (r == null ? void 0 : r.id) && t(15, O = -1), D && ne.focus());
|
|
2266
|
+
} catch (D) {
|
|
2267
|
+
if (D && typeof D == "object" && "name" in D && D.name === "AbortError")
|
|
2270
2268
|
return;
|
|
2271
|
-
throw
|
|
2269
|
+
throw D;
|
|
2272
2270
|
} finally {
|
|
2273
|
-
|
|
2271
|
+
x === _e && t(20, _e = void 0);
|
|
2274
2272
|
}
|
|
2275
2273
|
}
|
|
2276
|
-
function
|
|
2277
|
-
var
|
|
2278
|
-
if (!(
|
|
2274
|
+
function bi() {
|
|
2275
|
+
var x;
|
|
2276
|
+
if (!(H != null && H.length) || !C)
|
|
2279
2277
|
return;
|
|
2280
|
-
const
|
|
2281
|
-
let
|
|
2282
|
-
for (const
|
|
2283
|
-
const
|
|
2284
|
-
if (
|
|
2285
|
-
for (const
|
|
2286
|
-
|
|
2278
|
+
const o = [180, 90, -180, -90], A = !H.some(($) => !$.matching_text);
|
|
2279
|
+
let j;
|
|
2280
|
+
for (const $ of H) {
|
|
2281
|
+
const ae = ze($);
|
|
2282
|
+
if (j = j === void 0 ? ae : ae === void 0 ? j : Math.max(j, ae), A || !$.matching_text)
|
|
2283
|
+
for (const he of [0, 1, 2, 3])
|
|
2284
|
+
o[he] = Math[he < 2 ? "min" : "max"](o[he], ((x = $.bbox) == null ? void 0 : x[he]) ?? $.center[he % 2]);
|
|
2287
2285
|
}
|
|
2288
|
-
m &&
|
|
2286
|
+
m && H.length > 0 && (h && o[0] === o[2] && o[1] === o[3] ? m.flyTo(h.center, ze(h)) : m.fitBounds(Ht(o), 50, j));
|
|
2289
2287
|
}
|
|
2290
|
-
function
|
|
2291
|
-
!h || !m || (!h.bbox || h.bbox[0] === h.bbox[2] && h.bbox[1] === h.bbox[3] ? m.flyTo(h.center, ze(h)) : m.fitBounds(
|
|
2288
|
+
function dt() {
|
|
2289
|
+
!h || !m || (!h.bbox || h.bbox[0] === h.bbox[2] && h.bbox[1] === h.bbox[3] ? m.flyTo(h.center, ze(h)) : m.fitBounds(Ht(h.bbox), 50, ze(h)));
|
|
2292
2290
|
}
|
|
2293
|
-
function ze(
|
|
2294
|
-
var
|
|
2295
|
-
if (!
|
|
2291
|
+
function ze(o) {
|
|
2292
|
+
var j;
|
|
2293
|
+
if (!o.bbox || o.bbox[0] !== o.bbox[2] && o.bbox[1] !== o.bbox[3])
|
|
2296
2294
|
return;
|
|
2297
|
-
const
|
|
2298
|
-
return (Array.isArray((
|
|
2299
|
-
(
|
|
2300
|
-
const
|
|
2301
|
-
return
|
|
2295
|
+
const A = o.id.replace(/\..*/, "");
|
|
2296
|
+
return (Array.isArray((j = o.properties) == null ? void 0 : j.categories) ? o.properties.categories.reduce(
|
|
2297
|
+
(x, $) => {
|
|
2298
|
+
const ae = Qe[A + "." + $];
|
|
2299
|
+
return x === void 0 ? ae : ae === void 0 ? x : Math.max(x, ae);
|
|
2302
2300
|
},
|
|
2303
2301
|
void 0
|
|
2304
|
-
) : void 0) ??
|
|
2302
|
+
) : void 0) ?? Qe[A];
|
|
2305
2303
|
}
|
|
2306
|
-
function
|
|
2307
|
-
t(0,
|
|
2304
|
+
function vi(o) {
|
|
2305
|
+
t(0, te = W === "always"), t(13, T = void 0), t(14, h = void 0), t(15, O = -1), Mt(o[1].toFixed(6) + ", " + Sn(o[0], [-180, 180], !0).toFixed(6), !1, !0);
|
|
2308
2306
|
}
|
|
2309
|
-
function
|
|
2310
|
-
if (!
|
|
2307
|
+
function Li(o) {
|
|
2308
|
+
if (!T)
|
|
2311
2309
|
return;
|
|
2312
|
-
let
|
|
2313
|
-
|
|
2310
|
+
let A = o.key === "ArrowDown" ? 1 : o.key === "ArrowUp" ? -1 : 0;
|
|
2311
|
+
A && (ne.focus(), t(17, ue = !0), o.preventDefault(), h && O === -1 && t(15, O = T.findIndex((j) => j.id === (h == null ? void 0 : h.id))), O === (h || Se ? 0 : -1) && A === -1 && t(15, O = T.length), t(15, O += A), O >= T.length && t(15, O = -1), O < 0 && (h || Se) && t(15, O = 0));
|
|
2314
2312
|
}
|
|
2315
|
-
function
|
|
2316
|
-
if (t(19,
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
()
|
|
2328
|
-
t(63, $ = void 0), We(te, { appendSpace: !0 }).catch((V) => t(19, re = V));
|
|
2329
|
-
},
|
|
2330
|
-
xe
|
|
2331
|
-
));
|
|
2313
|
+
function zt(o, A = !0, j = !1) {
|
|
2314
|
+
if (t(19, oe = void 0), t(14, h = void 0), t(17, ue = !0), je || j) {
|
|
2315
|
+
if (Te && clearTimeout(Te), K.length < Le)
|
|
2316
|
+
return;
|
|
2317
|
+
const x = K;
|
|
2318
|
+
Te = window.setTimeout(
|
|
2319
|
+
() => {
|
|
2320
|
+
ct(x).catch(($) => t(19, oe = $));
|
|
2321
|
+
},
|
|
2322
|
+
A ? z : 0
|
|
2323
|
+
);
|
|
2324
|
+
} else
|
|
2325
|
+
t(13, T = void 0), t(19, oe = void 0);
|
|
2332
2326
|
}
|
|
2333
|
-
function
|
|
2334
|
-
h && (h == null ? void 0 : h.id) === (
|
|
2327
|
+
function ft(o) {
|
|
2328
|
+
h && (h == null ? void 0 : h.id) === (o == null ? void 0 : o.id) ? dt() : (t(14, h = o), t(1, K = o.place_name));
|
|
2335
2329
|
}
|
|
2336
|
-
function
|
|
2337
|
-
t(15,
|
|
2330
|
+
function Ot(o) {
|
|
2331
|
+
t(15, O = o);
|
|
2338
2332
|
}
|
|
2339
|
-
function
|
|
2340
|
-
(!
|
|
2333
|
+
function _i() {
|
|
2334
|
+
(!Se || h) && t(15, O = -1), Ge && dt();
|
|
2341
2335
|
}
|
|
2342
|
-
const
|
|
2343
|
-
function
|
|
2344
|
-
|
|
2345
|
-
|
|
2336
|
+
const yi = () => ne.focus();
|
|
2337
|
+
function wi(o) {
|
|
2338
|
+
Lt[o ? "unshift" : "push"](() => {
|
|
2339
|
+
ne = o, t(18, ne);
|
|
2346
2340
|
});
|
|
2347
2341
|
}
|
|
2348
|
-
function
|
|
2349
|
-
|
|
2342
|
+
function Ei() {
|
|
2343
|
+
K = this.value, t(1, K), t(17, ue), t(31, _), t(16, Ne);
|
|
2350
2344
|
}
|
|
2351
|
-
const
|
|
2352
|
-
t(1,
|
|
2353
|
-
},
|
|
2345
|
+
const pi = () => t(17, ue = !0), Si = () => t(17, ue = !1), Ti = () => t(17, ue = !0), Ni = () => t(14, h = void 0), ki = () => {
|
|
2346
|
+
t(1, K = ""), ne.focus();
|
|
2347
|
+
}, Mi = () => t(0, te = !te), Ci = () => t(19, oe = void 0), Wi = (o) => Ot(o), zi = (o) => ft(o), Oi = () => {
|
|
2354
2348
|
};
|
|
2355
|
-
return i.$$set = (
|
|
2356
|
-
"class" in
|
|
2349
|
+
return i.$$set = (o) => {
|
|
2350
|
+
"class" in o && t(2, u = o.class), "apiKey" in o && t(29, f = o.apiKey), "bbox" in o && t(30, g = o.bbox), "clearButtonTitle" in o && t(3, b = o.clearButtonTitle), "clearOnBlur" in o && t(31, _ = o.clearOnBlur), "clearListOnPick" in o && t(32, w = o.clearListOnPick), "keepListOpen" in o && t(4, U = o.keepListOpen), "collapsed" in o && t(5, p = o.collapsed), "country" in o && t(33, S = o.country), "debounceSearch" in o && t(34, z = o.debounceSearch), "enableReverse" in o && t(6, W = o.enableReverse), "errorMessage" in o && t(7, Z = o.errorMessage), "filter" in o && t(35, V = o.filter), "flyTo" in o && t(36, C = o.flyTo), "fuzzyMatch" in o && t(37, v = o.fuzzyMatch), "language" in o && t(38, y = o.language), "limit" in o && t(39, N = o.limit), "reverseGeocodingLimit" in o && t(40, E = o.reverseGeocodingLimit), "mapController" in o && t(41, m = o.mapController), "minLength" in o && t(42, Le = o.minLength), "noResultsMessage" in o && t(8, L = o.noResultsMessage), "placeholder" in o && t(9, F = o.placeholder), "proximity" in o && t(43, se = o.proximity), "reverseActive" in o && t(0, te = o.reverseActive), "reverseButtonTitle" in o && t(10, pt = o.reverseButtonTitle), "searchValue" in o && t(1, K = o.searchValue), "pickedResultStyle" in o && t(44, Fe = o.pickedResultStyle), "showPlaceType" in o && t(11, St = o.showPlaceType), "showResultsWhileTyping" in o && t(45, je = o.showResultsWhileTyping), "selectFirst" in o && t(46, Se = o.selectFirst), "flyToSelected" in o && t(47, Ge = o.flyToSelected), "markerOnSelected" in o && t(48, He = o.markerOnSelected), "types" in o && t(49, tt = o.types), "reverseGeocodingTypes" in o && t(50, Ze = o.reverseGeocodingTypes), "exhaustiveReverseGeocoding" in o && t(51, it = o.exhaustiveReverseGeocoding), "excludeTypes" in o && t(52, nt = o.excludeTypes), "reverseGeocodingExcludeTypes" in o && t(53, qe = o.reverseGeocodingExcludeTypes), "zoom" in o && t(54, Qe = o.zoom), "apiUrl" in o && t(55, rt = o.apiUrl), "fetchParameters" in o && t(56, st = o.fetchParameters), "iconsBaseUrl" in o && t(12, kt = o.iconsBaseUrl), "adjustUrlQuery" in o && t(57, ot = o.adjustUrlQuery), "adjustUrl" in o && t(58, at = o.adjustUrl), "$$scope" in o && t(69, s = o.$$scope);
|
|
2357
2351
|
}, i.$$.update = () => {
|
|
2358
2352
|
if (i.$$.dirty[0] & /*enableReverse*/
|
|
2359
|
-
64 && t(0,
|
|
2353
|
+
64 && t(0, te = W === "always"), i.$$.dirty[0] & /*picked*/
|
|
2360
2354
|
16384 | i.$$.dirty[1] & /*pickedResultStyle*/
|
|
2361
|
-
|
|
2355
|
+
8192 && Fe !== "marker-only" && h && !h.address && h.geometry.type === "Point" && h.place_type[0] !== "reverse" && ct(h.id, { byId: !0 }).catch((o) => t(19, oe = o)), i.$$.dirty[0] & /*picked*/
|
|
2362
2356
|
16384 | i.$$.dirty[1] & /*mapController, flyTo, clearListOnPick*/
|
|
2363
|
-
|
|
2364
|
-
|
|
2357
|
+
1058 | i.$$.dirty[2] & /*prevIdToFly*/
|
|
2358
|
+
8 && (m && h && h.id !== lt && C && (dt(), w && t(13, T = void 0), t(64, H = void 0), t(15, O = -1)), t(65, lt = h == null ? void 0 : h.id)), i.$$.dirty[0] & /*focused, focusedDelayed*/
|
|
2365
2359
|
196608 | i.$$.dirty[1] & /*clearOnBlur*/
|
|
2366
2360
|
1 && setTimeout(() => {
|
|
2367
|
-
t(16,
|
|
2361
|
+
t(16, Ne = ue), _ && !Ne && t(1, K = "");
|
|
2368
2362
|
}), i.$$.dirty[0] & /*searchValue, listFeatures*/
|
|
2369
2363
|
8194 | i.$$.dirty[1] & /*minLength*/
|
|
2370
|
-
|
|
2371
|
-
8192 | i.$$.dirty[1] & /*selectFirst*/
|
|
2372
|
-
32768 && ve && E != null && E.length && (ui() || t(15, W = 0)), i.$$.dirty[0] & /*listFeatures, selectedItemIndex, picked*/
|
|
2364
|
+
2048 && K.length < Le && (t(13, T = void 0), t(19, oe = void 0), t(64, H = T)), i.$$.dirty[0] & /*listFeatures, selectedItemIndex, picked*/
|
|
2373
2365
|
57344 | i.$$.dirty[1] & /*selectFirst*/
|
|
2374
|
-
32768 &&
|
|
2366
|
+
32768 && Se && T != null && T.length && O == -1 && !h && t(15, O = 0), i.$$.dirty[0] & /*listFeatures*/
|
|
2375
2367
|
8192 | i.$$.dirty[2] & /*markedFeatures*/
|
|
2376
|
-
|
|
2368
|
+
4 && H !== T && t(64, H = void 0), i.$$.dirty[0] & /*reverseActive, listFeatures, focusedDelayed*/
|
|
2377
2369
|
73729 | i.$$.dirty[1] & /*mapController*/
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
switch (
|
|
2370
|
+
1024 | i.$$.dirty[2] & /*markedFeatures*/
|
|
2371
|
+
4 && m && m.setEventHandler((o) => {
|
|
2372
|
+
switch (o.type) {
|
|
2381
2373
|
case "mapClick":
|
|
2382
|
-
|
|
2374
|
+
te && vi(o.coordinates);
|
|
2383
2375
|
break;
|
|
2384
2376
|
case "markerClick":
|
|
2385
2377
|
{
|
|
2386
|
-
const
|
|
2387
|
-
|
|
2378
|
+
const A = T == null ? void 0 : T.find((j) => j.id === o.id);
|
|
2379
|
+
A && ft(A);
|
|
2388
2380
|
}
|
|
2389
2381
|
break;
|
|
2390
2382
|
case "markerMouseEnter":
|
|
2391
|
-
|
|
2383
|
+
H && t(15, O = Ne ? (T == null ? void 0 : T.findIndex((A) => A.id === o.id)) ?? -1 : -1);
|
|
2392
2384
|
break;
|
|
2393
2385
|
case "markerMouseLeave":
|
|
2394
|
-
|
|
2386
|
+
H && t(15, O = -1);
|
|
2395
2387
|
break;
|
|
2396
2388
|
}
|
|
2397
2389
|
}), i.$$.dirty[0] & /*listFeatures, selectedItemIndex*/
|
|
2398
|
-
40960 && t(
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2390
|
+
40960 && t(66, r = T == null ? void 0 : T[O]), i.$$.dirty[1] & /*mapController, flyTo, flyToSelected*/
|
|
2391
|
+
66592 | i.$$.dirty[2] & /*selected*/
|
|
2392
|
+
16 && m && r && C && Ge && m.flyTo(r.center, ze(r)), i.$$.dirty[1] & /*pickedResultStyle*/
|
|
2393
|
+
8192 && t(68, n = Fe === "full-geometry-including-polygon-center-marker"), i.$$.dirty[1] & /*markerOnSelected, mapController*/
|
|
2394
|
+
132096 | i.$$.dirty[2] & /*showPolygonMarker*/
|
|
2395
|
+
64 && (He || m == null || m.setFeatures(void 0, void 0, n)), i.$$.dirty[0] & /*picked*/
|
|
2404
2396
|
16384 | i.$$.dirty[1] & /*mapController, markerOnSelected*/
|
|
2405
|
-
|
|
2406
|
-
|
|
2397
|
+
132096 | i.$$.dirty[2] & /*markedFeatures, selected, showPolygonMarker*/
|
|
2398
|
+
84 && m && He && !H && (m.setFeatures(r ? [r] : void 0, h, n), m.setSelectedMarker(r ? 0 : -1)), i.$$.dirty[0] & /*picked*/
|
|
2407
2399
|
16384 | i.$$.dirty[1] & /*mapController*/
|
|
2408
|
-
|
|
2409
|
-
|
|
2400
|
+
1024 | i.$$.dirty[2] & /*markedFeatures, showPolygonMarker*/
|
|
2401
|
+
68 && m && m.setFeatures(H, h, n), i.$$.dirty[0] & /*selectedItemIndex*/
|
|
2410
2402
|
32768 | i.$$.dirty[1] & /*mapController*/
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
10 && r && (window.clearTimeout($), t(63, $ = void 0)), i.$$.dirty[0] & /*searchValue*/
|
|
2403
|
+
1024 | i.$$.dirty[2] & /*markedFeatures*/
|
|
2404
|
+
4 && H && m && m.setSelectedMarker(O), i.$$.dirty[0] & /*searchValue*/
|
|
2414
2405
|
2 | i.$$.dirty[1] & /*mapController*/
|
|
2415
|
-
|
|
2416
|
-
const
|
|
2417
|
-
m.setReverseMarker(
|
|
2406
|
+
1024 && m) {
|
|
2407
|
+
const o = ut(K);
|
|
2408
|
+
m.setReverseMarker(o ? [o.decimalLongitude, o.decimalLatitude] : void 0);
|
|
2418
2409
|
}
|
|
2419
2410
|
i.$$.dirty[2] & /*selected*/
|
|
2420
|
-
|
|
2421
|
-
16384 &&
|
|
2422
|
-
73744 && t(
|
|
2423
|
-
|
|
2424
|
-
8192 &&
|
|
2425
|
-
|
|
2426
|
-
1 &&
|
|
2427
|
-
2 &&
|
|
2411
|
+
16 && ge("select", { feature: r }), i.$$.dirty[0] & /*picked*/
|
|
2412
|
+
16384 && ge("pick", { feature: h }), i.$$.dirty[0] & /*listFeatures, focusedDelayed, keepListOpen*/
|
|
2413
|
+
73744 && t(67, l = !!(T != null && T.length) && (Ne || U)), i.$$.dirty[2] & /*optionsVisible*/
|
|
2414
|
+
32 && ge("optionsvisibilitychange", { optionsVisible: l }), i.$$.dirty[0] & /*listFeatures*/
|
|
2415
|
+
8192 && ge("featureslisted", { features: T }), i.$$.dirty[2] & /*markedFeatures*/
|
|
2416
|
+
4 && ge("featuresmarked", { features: H }), i.$$.dirty[0] & /*reverseActive*/
|
|
2417
|
+
1 && ge("reversetoggle", { reverse: te }), i.$$.dirty[0] & /*searchValue*/
|
|
2418
|
+
2 && ge("querychange", { query: K }), i.$$.dirty[0] & /*reverseActive*/
|
|
2428
2419
|
1 | i.$$.dirty[1] & /*mapController*/
|
|
2429
|
-
|
|
2420
|
+
1024 && m && m.indicateReverse(te);
|
|
2430
2421
|
}, [
|
|
2431
|
-
|
|
2432
|
-
|
|
2422
|
+
te,
|
|
2423
|
+
K,
|
|
2433
2424
|
u,
|
|
2434
2425
|
b,
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
C,
|
|
2438
|
-
G,
|
|
2439
|
-
O,
|
|
2440
|
-
Ce,
|
|
2441
|
-
se,
|
|
2442
|
-
yt,
|
|
2443
|
-
wt,
|
|
2444
|
-
E,
|
|
2445
|
-
h,
|
|
2426
|
+
U,
|
|
2427
|
+
p,
|
|
2446
2428
|
W,
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
_e,
|
|
2452
|
-
li,
|
|
2429
|
+
Z,
|
|
2430
|
+
L,
|
|
2431
|
+
F,
|
|
2432
|
+
pt,
|
|
2453
2433
|
St,
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
2434
|
+
kt,
|
|
2435
|
+
T,
|
|
2436
|
+
h,
|
|
2437
|
+
O,
|
|
2438
|
+
Ne,
|
|
2439
|
+
ue,
|
|
2440
|
+
ne,
|
|
2441
|
+
oe,
|
|
2442
|
+
_e,
|
|
2443
|
+
hi,
|
|
2444
|
+
Wt,
|
|
2445
|
+
Li,
|
|
2446
|
+
zt,
|
|
2447
|
+
ft,
|
|
2448
|
+
Ot,
|
|
2449
|
+
_i,
|
|
2459
2450
|
d,
|
|
2460
2451
|
f,
|
|
2461
2452
|
g,
|
|
2462
2453
|
_,
|
|
2463
2454
|
w,
|
|
2464
|
-
|
|
2455
|
+
S,
|
|
2465
2456
|
z,
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2457
|
+
V,
|
|
2458
|
+
C,
|
|
2459
|
+
v,
|
|
2469
2460
|
y,
|
|
2470
|
-
|
|
2461
|
+
N,
|
|
2462
|
+
E,
|
|
2471
2463
|
m,
|
|
2472
|
-
p,
|
|
2473
|
-
v,
|
|
2474
|
-
Ae,
|
|
2475
|
-
Be,
|
|
2476
|
-
xe,
|
|
2477
|
-
ve,
|
|
2478
|
-
Pe,
|
|
2479
|
-
je,
|
|
2480
2464
|
Le,
|
|
2481
|
-
|
|
2465
|
+
se,
|
|
2482
2466
|
Fe,
|
|
2467
|
+
je,
|
|
2468
|
+
Se,
|
|
2469
|
+
Ge,
|
|
2483
2470
|
He,
|
|
2484
|
-
et,
|
|
2485
2471
|
tt,
|
|
2472
|
+
Ze,
|
|
2486
2473
|
it,
|
|
2487
2474
|
nt,
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
pt,
|
|
2491
|
-
si,
|
|
2492
|
-
ai,
|
|
2493
|
-
q,
|
|
2494
|
-
$,
|
|
2475
|
+
qe,
|
|
2476
|
+
Qe,
|
|
2495
2477
|
rt,
|
|
2478
|
+
st,
|
|
2479
|
+
ot,
|
|
2480
|
+
at,
|
|
2481
|
+
di,
|
|
2482
|
+
fi,
|
|
2483
|
+
Mt,
|
|
2484
|
+
mi,
|
|
2485
|
+
gi,
|
|
2486
|
+
H,
|
|
2487
|
+
lt,
|
|
2496
2488
|
r,
|
|
2497
2489
|
l,
|
|
2498
2490
|
n,
|
|
2499
|
-
|
|
2491
|
+
s,
|
|
2500
2492
|
c,
|
|
2501
|
-
gi,
|
|
2502
|
-
hi,
|
|
2503
|
-
bi,
|
|
2504
|
-
vi,
|
|
2505
|
-
Li,
|
|
2506
|
-
_i,
|
|
2507
2493
|
yi,
|
|
2508
2494
|
wi,
|
|
2509
|
-
pi,
|
|
2510
2495
|
Ei,
|
|
2496
|
+
pi,
|
|
2511
2497
|
Si,
|
|
2512
2498
|
Ti,
|
|
2513
|
-
Ni
|
|
2499
|
+
Ni,
|
|
2500
|
+
ki,
|
|
2501
|
+
Mi,
|
|
2502
|
+
Ci,
|
|
2503
|
+
Wi,
|
|
2504
|
+
zi,
|
|
2505
|
+
Oi
|
|
2514
2506
|
];
|
|
2515
2507
|
}
|
|
2516
|
-
let
|
|
2508
|
+
let Hn = class extends pe {
|
|
2517
2509
|
constructor(e) {
|
|
2518
|
-
super(),
|
|
2510
|
+
super(), Ee(
|
|
2519
2511
|
this,
|
|
2520
2512
|
e,
|
|
2521
|
-
|
|
2522
|
-
|
|
2513
|
+
Gn,
|
|
2514
|
+
jn,
|
|
2523
2515
|
we,
|
|
2524
2516
|
{
|
|
2525
2517
|
ZOOM_DEFAULTS: 28,
|
|
@@ -2540,35 +2532,37 @@ let In = class extends Ee {
|
|
|
2540
2532
|
fuzzyMatch: 37,
|
|
2541
2533
|
language: 38,
|
|
2542
2534
|
limit: 39,
|
|
2543
|
-
|
|
2544
|
-
|
|
2535
|
+
reverseGeocodingLimit: 40,
|
|
2536
|
+
mapController: 41,
|
|
2537
|
+
minLength: 42,
|
|
2545
2538
|
noResultsMessage: 8,
|
|
2546
2539
|
placeholder: 9,
|
|
2547
|
-
proximity:
|
|
2540
|
+
proximity: 43,
|
|
2548
2541
|
reverseActive: 0,
|
|
2549
2542
|
reverseButtonTitle: 10,
|
|
2550
2543
|
searchValue: 1,
|
|
2551
|
-
pickedResultStyle:
|
|
2544
|
+
pickedResultStyle: 44,
|
|
2552
2545
|
showPlaceType: 11,
|
|
2553
|
-
showResultsWhileTyping:
|
|
2554
|
-
autocompleteTimeout: 45,
|
|
2546
|
+
showResultsWhileTyping: 45,
|
|
2555
2547
|
selectFirst: 46,
|
|
2556
2548
|
flyToSelected: 47,
|
|
2557
2549
|
markerOnSelected: 48,
|
|
2558
2550
|
types: 49,
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
|
|
2551
|
+
reverseGeocodingTypes: 50,
|
|
2552
|
+
exhaustiveReverseGeocoding: 51,
|
|
2553
|
+
excludeTypes: 52,
|
|
2554
|
+
reverseGeocodingExcludeTypes: 53,
|
|
2555
|
+
zoom: 54,
|
|
2556
|
+
apiUrl: 55,
|
|
2557
|
+
fetchParameters: 56,
|
|
2564
2558
|
iconsBaseUrl: 12,
|
|
2565
|
-
adjustUrlQuery:
|
|
2566
|
-
adjustUrl:
|
|
2567
|
-
focus:
|
|
2568
|
-
blur:
|
|
2569
|
-
setQuery:
|
|
2570
|
-
clearList:
|
|
2571
|
-
clearMap:
|
|
2559
|
+
adjustUrlQuery: 57,
|
|
2560
|
+
adjustUrl: 58,
|
|
2561
|
+
focus: 59,
|
|
2562
|
+
blur: 60,
|
|
2563
|
+
setQuery: 61,
|
|
2564
|
+
clearList: 62,
|
|
2565
|
+
clearMap: 63
|
|
2572
2566
|
},
|
|
2573
2567
|
null,
|
|
2574
2568
|
[-1, -1, -1, -1]
|
|
@@ -2578,31 +2572,31 @@ let In = class extends Ee {
|
|
|
2578
2572
|
return this.$$.ctx[28];
|
|
2579
2573
|
}
|
|
2580
2574
|
get focus() {
|
|
2581
|
-
return this.$$.ctx[
|
|
2575
|
+
return this.$$.ctx[59];
|
|
2582
2576
|
}
|
|
2583
2577
|
get blur() {
|
|
2584
|
-
return this.$$.ctx[
|
|
2578
|
+
return this.$$.ctx[60];
|
|
2585
2579
|
}
|
|
2586
2580
|
get setQuery() {
|
|
2587
|
-
return this.$$.ctx[
|
|
2581
|
+
return this.$$.ctx[61];
|
|
2588
2582
|
}
|
|
2589
2583
|
get clearList() {
|
|
2590
|
-
return this.$$.ctx[
|
|
2584
|
+
return this.$$.ctx[62];
|
|
2591
2585
|
}
|
|
2592
2586
|
get clearMap() {
|
|
2593
|
-
return this.$$.ctx[
|
|
2587
|
+
return this.$$.ctx[63];
|
|
2594
2588
|
}
|
|
2595
2589
|
};
|
|
2596
|
-
const
|
|
2590
|
+
const Zn = new FinalizationRegistry((i) => {
|
|
2597
2591
|
i.$destroy();
|
|
2598
2592
|
});
|
|
2599
|
-
var
|
|
2600
|
-
const
|
|
2593
|
+
var J, et, ci;
|
|
2594
|
+
const Et = class Et extends EventTarget {
|
|
2601
2595
|
constructor({ target: t, ...n }) {
|
|
2602
2596
|
super();
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
|
|
2597
|
+
bt(this, et);
|
|
2598
|
+
bt(this, J);
|
|
2599
|
+
Ut(this, J, new Hn({
|
|
2606
2600
|
target: t,
|
|
2607
2601
|
props: n
|
|
2608
2602
|
}));
|
|
@@ -2616,15 +2610,15 @@ const _t = class _t extends EventTarget {
|
|
|
2616
2610
|
"reversetoggle",
|
|
2617
2611
|
"querychange"
|
|
2618
2612
|
])
|
|
2619
|
-
|
|
2620
|
-
|
|
2613
|
+
re(this, J).$on(r, (l) => {
|
|
2614
|
+
It(this, et, ci).call(this, r, l.detail);
|
|
2621
2615
|
});
|
|
2622
|
-
|
|
2616
|
+
re(this, J).$on("select", (r) => {
|
|
2623
2617
|
const l = new CustomEvent(r.type, {
|
|
2624
2618
|
detail: r.detail
|
|
2625
2619
|
});
|
|
2626
2620
|
this.dispatchEvent(l);
|
|
2627
|
-
}),
|
|
2621
|
+
}), Zn.register(this, re(this, J));
|
|
2628
2622
|
}
|
|
2629
2623
|
/**
|
|
2630
2624
|
* Update the control options.
|
|
@@ -2632,7 +2626,7 @@ const _t = class _t extends EventTarget {
|
|
|
2632
2626
|
* @param options options to update
|
|
2633
2627
|
*/
|
|
2634
2628
|
setOptions(t) {
|
|
2635
|
-
|
|
2629
|
+
re(this, J).$set(t);
|
|
2636
2630
|
}
|
|
2637
2631
|
/**
|
|
2638
2632
|
* Set the content of search input box.
|
|
@@ -2642,21 +2636,21 @@ const _t = class _t extends EventTarget {
|
|
|
2642
2636
|
*/
|
|
2643
2637
|
setQuery(t, n = !0) {
|
|
2644
2638
|
var r;
|
|
2645
|
-
(r =
|
|
2639
|
+
(r = re(this, J)) == null || r.setQuery(t, n);
|
|
2646
2640
|
}
|
|
2647
2641
|
/**
|
|
2648
2642
|
* Clear geocoding search results from the map.
|
|
2649
2643
|
*/
|
|
2650
2644
|
clearMap() {
|
|
2651
2645
|
var t;
|
|
2652
|
-
(t =
|
|
2646
|
+
(t = re(this, J)) == null || t.clearMap();
|
|
2653
2647
|
}
|
|
2654
2648
|
/**
|
|
2655
2649
|
* Clear search result list.
|
|
2656
2650
|
*/
|
|
2657
2651
|
clearList() {
|
|
2658
2652
|
var t;
|
|
2659
|
-
(t =
|
|
2653
|
+
(t = re(this, J)) == null || t.clearList();
|
|
2660
2654
|
}
|
|
2661
2655
|
/**
|
|
2662
2656
|
* Set reverse geocoding mode.
|
|
@@ -2665,7 +2659,7 @@ const _t = class _t extends EventTarget {
|
|
|
2665
2659
|
*/
|
|
2666
2660
|
setReverseMode(t) {
|
|
2667
2661
|
var n;
|
|
2668
|
-
(n =
|
|
2662
|
+
(n = re(this, J)) == null || n.$set({ reverseActive: t });
|
|
2669
2663
|
}
|
|
2670
2664
|
/**
|
|
2671
2665
|
* Focus the search input box.
|
|
@@ -2674,14 +2668,14 @@ const _t = class _t extends EventTarget {
|
|
|
2674
2668
|
*/
|
|
2675
2669
|
focus(t) {
|
|
2676
2670
|
var n;
|
|
2677
|
-
(n =
|
|
2671
|
+
(n = re(this, J)) == null || n.focus(t);
|
|
2678
2672
|
}
|
|
2679
2673
|
/**
|
|
2680
2674
|
* Blur the search input box.
|
|
2681
2675
|
*/
|
|
2682
2676
|
blur() {
|
|
2683
2677
|
var t;
|
|
2684
|
-
(t =
|
|
2678
|
+
(t = re(this, J)) == null || t.blur();
|
|
2685
2679
|
}
|
|
2686
2680
|
addEventListener(t, n, r) {
|
|
2687
2681
|
super.addEventListener(t, n, r);
|
|
@@ -2693,16 +2687,16 @@ const _t = class _t extends EventTarget {
|
|
|
2693
2687
|
return super.dispatchEvent(t);
|
|
2694
2688
|
}
|
|
2695
2689
|
};
|
|
2696
|
-
|
|
2697
|
-
return
|
|
2690
|
+
J = new WeakMap(), et = new WeakSet(), ci = function(t, n) {
|
|
2691
|
+
return At(Et.prototype, this, "dispatchEvent").call(
|
|
2698
2692
|
this,
|
|
2699
2693
|
new CustomEvent(t, {
|
|
2700
2694
|
detail: n
|
|
2701
2695
|
})
|
|
2702
2696
|
);
|
|
2703
2697
|
};
|
|
2704
|
-
let
|
|
2698
|
+
let ti = Et;
|
|
2705
2699
|
export {
|
|
2706
|
-
|
|
2700
|
+
ti as GeocodingControl
|
|
2707
2701
|
};
|
|
2708
2702
|
//# sourceMappingURL=vanilla.js.map
|